2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65 for emacs 24.2.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.2.50'
553 PACKAGE_STRING
='emacs 24.2.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
609 LD_SWITCH_SYSTEM_TEMACS
613 gl_GNULIB_ENABLED_verify_FALSE
614 gl_GNULIB_ENABLED_verify_TRUE
615 gl_GNULIB_ENABLED_strtoull_FALSE
616 gl_GNULIB_ENABLED_strtoull_TRUE
617 gl_GNULIB_ENABLED_strtoll_FALSE
618 gl_GNULIB_ENABLED_strtoll_TRUE
619 gl_GNULIB_ENABLED_stat_FALSE
620 gl_GNULIB_ENABLED_stat_TRUE
621 gl_GNULIB_ENABLED_pathmax_FALSE
622 gl_GNULIB_ENABLED_pathmax_TRUE
623 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE
624 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE
625 gl_GNULIB_ENABLED_dosname_FALSE
626 gl_GNULIB_ENABLED_dosname_TRUE
631 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
633 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
634 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
635 TIME_H_DEFINES_STRUCT_TIMESPEC
636 NEXT_AS_FIRST_DIRECTIVE_TIME_H
638 WINDOWS_64_BIT_ST_SIZE
639 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
641 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
643 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
652 REPLACE_STDIO_WRITE_FUNCS
653 REPLACE_STDIO_READ_FUNCS
662 REPLACE_OBSTACK_PRINTF
687 HAVE_DECL_OBSTACK_PRINTF
693 GNULIB_VSPRINTF_POSIX
697 GNULIB_VFPRINTF_POSIX
704 GNULIB_STDIO_H_SIGPIPE
705 GNULIB_STDIO_H_NONBLOCKING
720 GNULIB_OBSTACK_PRINTF_POSIX
721 GNULIB_OBSTACK_PRINTF
746 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
748 GL_GENERATE_STDDEF_H_FALSE
749 GL_GENERATE_STDDEF_H_TRUE
754 GL_GENERATE_STDBOOL_H_FALSE
755 GL_GENERATE_STDBOOL_H_TRUE
757 GL_GENERATE_STDARG_H_FALSE
758 GL_GENERATE_STDARG_H_TRUE
760 NEXT_AS_FIRST_DIRECTIVE_STDARG_H
762 GL_GENERATE_STDALIGN_H_FALSE
763 GL_GENERATE_STDALIGN_H_TRUE
765 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H
769 REPLACE_PTHREAD_SIGMASK
771 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
772 HAVE_STRUCT_SIGACTION_SA_SIGACTION
778 HAVE_POSIX_SIGNALBLOCKING
781 GNULIB_SIGNAL_H_SIGPIPE
783 GNULIB_PTHREAD_SIGMASK
785 NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H
799 HAVE_DECL_LOCALTIME_R
838 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
840 UINT64_MAX_EQ_ULONG_MAX
841 UINT32_MAX_LT_UINTMAX_MAX
844 INT64_MAX_EQ_LONG_MAX
845 INT32_MAX_LT_INTMAX_MAX
855 GL_GENERATE_STDINT_H_FALSE
856 GL_GENERATE_STDINT_H_TRUE
865 HAVE_SIGNED_SIG_ATOMIC_T
868 BITSIZEOF_SIG_ATOMIC_T
871 APPLE_UNIVERSAL_BUILD
875 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
880 HAVE_UNSIGNED_LONG_LONG_INT
883 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H
885 REPLACE_STRUCT_TIMEVAL
891 GNULIB_GL_UNISTD_H_GETOPT
894 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
898 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
913 REPLACE_CANONICALIZE_FILE_NAME
918 HAVE_STRUCT_RANDOM_DATA
940 HAVE_CANONICALIZE_FILE_NAME
970 GNULIB_CANONICALIZE_FILE_NAME
974 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
975 UNISTD_H_HAVE_WINSOCK2_H
996 REPLACE_GETDOMAINNAME
1007 HAVE_DECL_SETHOSTNAME
1008 HAVE_DECL_GETUSERSHELL
1009 HAVE_DECL_GETPAGESIZE
1010 HAVE_DECL_GETLOGIN_R
1011 HAVE_DECL_GETDOMAINNAME
1050 GNULIB_UNISTD_H_SIGPIPE
1051 GNULIB_UNISTD_H_NONBLOCKING
1077 GNULIB_GETDTABLESIZE
1078 GNULIB_GETDOMAINNAME
1095 GL_GENERATE_ALLOCA_H_FALSE
1096 GL_GENERATE_ALLOCA_H_TRUE
1099 GL_COND_LIBTOOL_FALSE
1100 GL_COND_LIBTOOL_TRUE
1131 x_default_search_path
1201 INSTALL_ARCH_INDEP_EXTRA
1203 LD_SWITCH_X_SITE_RPATH
1272 INSTALL_STRIP_PROGRAM
1314 program_transform_name
1325 ac_subst_files
='deps_frag
1329 enable_option_checking
1353 with_toolkit_scroll_bars
1365 with_pkg_config_prog
1369 enable_ns_self_contained
1370 enable_locallisppath
1372 enable_check_lisp_object_type
1375 enable_dependency_tracking
1378 enable_link_time_optimization
1381 ac_precious_vars
='build_alias
1393 # Initialize some variables set by options.
1395 ac_init_version
=false
1396 ac_unrecognized_opts
=
1397 ac_unrecognized_sep
=
1398 # The variables have the same names as the options, with
1399 # dashes changed to underlines.
1400 cache_file
=/dev
/null
1407 program_transform_name
=s
,x
,x
,
1415 # Installation directory options.
1416 # These are left unexpanded so users can "make install exec_prefix=/foo"
1417 # and all the variables that are supposed to be based on exec_prefix
1418 # by default will actually change.
1419 # Use braces instead of parens because sh, perl, etc. also accept them.
1420 # (The list follows the same order as the GNU Coding Standards.)
1421 bindir
='${exec_prefix}/bin'
1422 sbindir
='${exec_prefix}/sbin'
1423 libexecdir
='${exec_prefix}/libexec'
1424 datarootdir
='${prefix}/share'
1425 datadir
='${datarootdir}'
1426 sysconfdir
='${prefix}/etc'
1427 sharedstatedir
='${prefix}/com'
1428 localstatedir
='${prefix}/var'
1429 includedir
='${prefix}/include'
1430 oldincludedir
='/usr/include'
1431 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
1432 infodir
='${datarootdir}/info'
1437 libdir
='${exec_prefix}/lib'
1438 localedir
='${datarootdir}/locale'
1439 mandir
='${datarootdir}/man'
1445 # If the previous option needs an argument, assign it.
1446 if test -n "$ac_prev"; then
1447 eval $ac_prev=\
$ac_option
1453 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1457 # Accept the important Cygnus configure options, so we can diagnose typos.
1459 case $ac_dashdash$ac_option in
1463 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1465 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1466 bindir
=$ac_optarg ;;
1468 -build |
--build |
--buil |
--bui |
--bu)
1469 ac_prev
=build_alias
;;
1470 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1471 build_alias
=$ac_optarg ;;
1473 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1474 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1475 ac_prev
=cache_file
;;
1476 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1477 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1478 cache_file
=$ac_optarg ;;
1480 --config-cache |
-C)
1481 cache_file
=config.cache
;;
1483 -datadir |
--datadir |
--datadi |
--datad)
1485 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1486 datadir
=$ac_optarg ;;
1488 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1489 |
--dataroo |
--dataro |
--datar)
1490 ac_prev
=datarootdir
;;
1491 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1492 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1493 datarootdir
=$ac_optarg ;;
1495 -disable-* |
--disable-*)
1496 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1497 # Reject names that are not valid shell variable names.
1498 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1499 as_fn_error
"invalid feature name: $ac_useropt"
1500 ac_useropt_orig
=$ac_useropt
1501 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1502 case $ac_user_opts in
1504 "enable_
$ac_useropt"
1506 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1507 ac_unrecognized_sep
=', ';;
1509 eval enable_
$ac_useropt=no
;;
1511 -docdir |
--docdir |
--docdi |
--doc |
--do)
1513 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1514 docdir
=$ac_optarg ;;
1516 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1518 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1519 dvidir
=$ac_optarg ;;
1521 -enable-* |
--enable-*)
1522 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1523 # Reject names that are not valid shell variable names.
1524 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1525 as_fn_error
"invalid feature name: $ac_useropt"
1526 ac_useropt_orig
=$ac_useropt
1527 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1528 case $ac_user_opts in
1530 "enable_
$ac_useropt"
1532 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1533 ac_unrecognized_sep
=', ';;
1535 eval enable_
$ac_useropt=\
$ac_optarg ;;
1537 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1538 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1539 |
--exec |
--exe |
--ex)
1540 ac_prev
=exec_prefix
;;
1541 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1542 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1543 |
--exec=* |
--exe=* |
--ex=*)
1544 exec_prefix
=$ac_optarg ;;
1546 -gas |
--gas |
--ga |
--g)
1547 # Obsolete; use --with-gas.
1550 -help |
--help |
--hel |
--he |
-h)
1551 ac_init_help
=long
;;
1552 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1553 ac_init_help
=recursive
;;
1554 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1555 ac_init_help
=short
;;
1557 -host |
--host |
--hos |
--ho)
1558 ac_prev
=host_alias
;;
1559 -host=* |
--host=* |
--hos=* |
--ho=*)
1560 host_alias
=$ac_optarg ;;
1562 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1564 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1566 htmldir
=$ac_optarg ;;
1568 -includedir |
--includedir |
--includedi |
--included |
--include \
1569 |
--includ |
--inclu |
--incl |
--inc)
1570 ac_prev
=includedir
;;
1571 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1572 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1573 includedir
=$ac_optarg ;;
1575 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1577 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1578 infodir
=$ac_optarg ;;
1580 -libdir |
--libdir |
--libdi |
--libd)
1582 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1583 libdir
=$ac_optarg ;;
1585 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1586 |
--libexe |
--libex |
--libe)
1587 ac_prev
=libexecdir
;;
1588 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1589 |
--libexe=* |
--libex=* |
--libe=*)
1590 libexecdir
=$ac_optarg ;;
1592 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1593 ac_prev
=localedir
;;
1594 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1595 localedir
=$ac_optarg ;;
1597 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1598 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1599 ac_prev
=localstatedir
;;
1600 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1601 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1602 localstatedir
=$ac_optarg ;;
1604 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1606 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1607 mandir
=$ac_optarg ;;
1609 -nfp |
--nfp |
--nf)
1610 # Obsolete; use --without-fp.
1613 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1614 |
--no-cr |
--no-c |
-n)
1617 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1618 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1621 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1622 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1623 |
--oldin |
--oldi |
--old |
--ol |
--o)
1624 ac_prev
=oldincludedir
;;
1625 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1626 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1627 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1628 oldincludedir
=$ac_optarg ;;
1630 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1632 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1633 prefix
=$ac_optarg ;;
1635 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1636 |
--program-pre |
--program-pr |
--program-p)
1637 ac_prev
=program_prefix
;;
1638 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1639 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1640 program_prefix
=$ac_optarg ;;
1642 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1643 |
--program-suf |
--program-su |
--program-s)
1644 ac_prev
=program_suffix
;;
1645 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1646 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1647 program_suffix
=$ac_optarg ;;
1649 -program-transform-name |
--program-transform-name \
1650 |
--program-transform-nam |
--program-transform-na \
1651 |
--program-transform-n |
--program-transform- \
1652 |
--program-transform |
--program-transfor \
1653 |
--program-transfo |
--program-transf \
1654 |
--program-trans |
--program-tran \
1655 |
--progr-tra |
--program-tr |
--program-t)
1656 ac_prev
=program_transform_name
;;
1657 -program-transform-name=* |
--program-transform-name=* \
1658 |
--program-transform-nam=* |
--program-transform-na=* \
1659 |
--program-transform-n=* |
--program-transform-=* \
1660 |
--program-transform=* |
--program-transfor=* \
1661 |
--program-transfo=* |
--program-transf=* \
1662 |
--program-trans=* |
--program-tran=* \
1663 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1664 program_transform_name
=$ac_optarg ;;
1666 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1668 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1669 pdfdir
=$ac_optarg ;;
1671 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1673 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1676 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1677 |
-silent |
--silent |
--silen |
--sile |
--sil)
1680 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1682 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1684 sbindir
=$ac_optarg ;;
1686 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1687 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1688 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1690 ac_prev
=sharedstatedir
;;
1691 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1692 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1693 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1695 sharedstatedir
=$ac_optarg ;;
1697 -site |
--site |
--sit)
1699 -site=* |
--site=* |
--sit=*)
1702 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1704 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1705 srcdir
=$ac_optarg ;;
1707 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1708 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1709 ac_prev
=sysconfdir
;;
1710 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1711 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1712 sysconfdir
=$ac_optarg ;;
1714 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1715 ac_prev
=target_alias
;;
1716 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1717 target_alias
=$ac_optarg ;;
1719 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1722 -version |
--version |
--versio |
--versi |
--vers |
-V)
1723 ac_init_version
=: ;;
1726 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1727 # Reject names that are not valid shell variable names.
1728 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1729 as_fn_error
"invalid package name: $ac_useropt"
1730 ac_useropt_orig
=$ac_useropt
1731 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1732 case $ac_user_opts in
1736 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1737 ac_unrecognized_sep
=', ';;
1739 eval with_
$ac_useropt=\
$ac_optarg ;;
1741 -without-* |
--without-*)
1742 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1743 # Reject names that are not valid shell variable names.
1744 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1745 as_fn_error
"invalid package name: $ac_useropt"
1746 ac_useropt_orig
=$ac_useropt
1747 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1748 case $ac_user_opts in
1752 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1753 ac_unrecognized_sep
=', ';;
1755 eval with_
$ac_useropt=no
;;
1758 # Obsolete; use --with-x.
1761 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1762 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1763 ac_prev
=x_includes
;;
1764 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1765 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1766 x_includes
=$ac_optarg ;;
1768 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1769 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1770 ac_prev
=x_libraries
;;
1771 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1772 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1773 x_libraries
=$ac_optarg ;;
1775 -*) as_fn_error
"unrecognized option: \`$ac_option'
1776 Try \`$0 --help' for more information."
1780 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1781 # Reject names that are not valid shell variable names.
1782 case $ac_envvar in #(
1783 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1784 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1786 eval $ac_envvar=\
$ac_optarg
1787 export $ac_envvar ;;
1790 # FIXME: should be removed in autoconf 3.0.
1791 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1792 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1793 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1794 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1800 if test -n "$ac_prev"; then
1801 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1802 as_fn_error
"missing argument to $ac_option"
1805 if test -n "$ac_unrecognized_opts"; then
1806 case $enable_option_checking in
1808 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1809 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1813 # Check all directory arguments for consistency.
1814 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1815 datadir sysconfdir sharedstatedir localstatedir includedir \
1816 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1817 libdir localedir mandir
1819 eval ac_val
=\$
$ac_var
1820 # Remove trailing slashes.
1823 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1824 eval $ac_var=\
$ac_val;;
1826 # Be sure to have absolute directory names.
1828 [\\/$
]* | ?
:[\\/]* ) continue;;
1829 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1831 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
1834 # There might be people who depend on the old broken behavior: `$host'
1835 # used to hold the argument of --host etc.
1836 # FIXME: To remove some day.
1839 target
=$target_alias
1841 # FIXME: To remove some day.
1842 if test "x$host_alias" != x
; then
1843 if test "x$build_alias" = x
; then
1844 cross_compiling
=maybe
1845 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1846 If a cross compiler is detected then cross compile mode will be used." >&2
1847 elif test "x$build_alias" != "x$host_alias"; then
1853 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1855 test "$silent" = yes && exec 6>/dev
/null
1858 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1859 ac_ls_di
=`ls -di .` &&
1860 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1861 as_fn_error
"working directory cannot be determined"
1862 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1863 as_fn_error
"pwd does not report name of working directory"
1866 # Find the source files, if location was not specified.
1867 if test -z "$srcdir"; then
1868 ac_srcdir_defaulted
=yes
1869 # Try the directory containing this script, then the parent directory.
1870 ac_confdir
=`$as_dirname -- "$as_myself" ||
1871 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1872 X"$as_myself" : 'X\(//\)[^/]' \| \
1873 X"$as_myself" : 'X\(//\)$' \| \
1874 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1875 $as_echo X"$as_myself" |
1876 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1894 if test ! -r "$srcdir/$ac_unique_file"; then
1898 ac_srcdir_defaulted
=no
1900 if test ! -r "$srcdir/$ac_unique_file"; then
1901 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1902 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
1904 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1906 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1908 # When building in place, set srcdir=.
1909 if test "$ac_abs_confdir" = "$ac_pwd"; then
1912 # Remove unnecessary trailing slashes from srcdir.
1913 # Double slashes in file names in object file debugging info
1914 # mess up M-x gdb in Emacs.
1916 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1918 for ac_var
in $ac_precious_vars; do
1919 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1920 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1921 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1922 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1926 # Report the --help message.
1928 if test "$ac_init_help" = "long"; then
1929 # Omit some internal or obsolete options to make the list less imposing.
1930 # This message is too long to be a string in the A/UX 3.1 sh.
1932 \`configure' configures emacs 24.2.50 to adapt to many kinds of systems.
1934 Usage: $0 [OPTION]... [VAR=VALUE]...
1936 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1937 VAR=VALUE. See below for descriptions of some of the useful variables.
1939 Defaults for the options are specified in brackets.
1942 -h, --help display this help and exit
1943 --help=short display options specific to this package
1944 --help=recursive display the short help of all the included packages
1945 -V, --version display version information and exit
1946 -q, --quiet, --silent do not print \`checking...' messages
1947 --cache-file=FILE cache test results in FILE [disabled]
1948 -C, --config-cache alias for \`--cache-file=config.cache'
1949 -n, --no-create do not create output files
1950 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1952 Installation directories:
1953 --prefix=PREFIX install architecture-independent files in PREFIX
1954 [$ac_default_prefix]
1955 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1958 By default, \`make install' will install all the files in
1959 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1960 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1961 for instance \`--prefix=\$HOME'.
1963 For better control, use the options below.
1965 Fine tuning of the installation directories:
1966 --bindir=DIR user executables [EPREFIX/bin]
1967 --sbindir=DIR system admin executables [EPREFIX/sbin]
1968 --libexecdir=DIR program executables [EPREFIX/libexec]
1969 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1970 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1971 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1972 --libdir=DIR object code libraries [EPREFIX/lib]
1973 --includedir=DIR C header files [PREFIX/include]
1974 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1975 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1976 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1977 --infodir=DIR info documentation [DATAROOTDIR/info]
1978 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1979 --mandir=DIR man documentation [DATAROOTDIR/man]
1980 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1981 --htmldir=DIR html documentation [DOCDIR]
1982 --dvidir=DIR dvi documentation [DOCDIR]
1983 --pdfdir=DIR pdf documentation [DOCDIR]
1984 --psdir=DIR ps documentation [DOCDIR]
1990 --program-prefix=PREFIX prepend PREFIX to installed program names
1991 --program-suffix=SUFFIX append SUFFIX to installed program names
1992 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1995 --x-includes=DIR X include files are
in DIR
1996 --x-libraries=DIR X library files are
in DIR
1999 --build=BUILD configure
for building on BUILD
[guessed
]
2000 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
2004 if test -n "$ac_init_help"; then
2005 case $ac_init_help in
2006 short | recursive
) echo "Configuration of emacs 24.2.50:";;
2011 --disable-option-checking ignore unrecognized
--enable/--with options
2012 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
2013 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
2014 --disable-ns-self-contained
2015 disable self contained build under NeXTstep
2016 --enable-locallisppath=PATH
2017 directories Emacs should search
for lisp files
2018 specific to this site
2019 --enable-checking[=LIST
]
2020 enable expensive run-time checks. With LIST
, enable
2021 only specific categories of checks. Categories are
:
2022 all
,yes,no. Flags are
: stringbytes
, stringoverrun
,
2023 stringfreelist
, xmallocoverrun
, conslist
, glyphs
2024 --enable-check-lisp-object-type
2025 enable compile
time checks
for the Lisp_Object data
2026 type. This is useful
for development
for catching
2027 certain types of bugs.
2028 --enable-profiling build emacs with profiling support. This might not
2029 work on all platforms
2030 --enable-autodepend automatically generate dependencies to .h-files.
2031 Requires GNU Make and Gcc. Enabled
if GNU Make and
2033 --disable-dependency-tracking speeds up one-time build
2034 --enable-dependency-tracking do not reject slow dependency extractors
2035 --disable-largefile omit support
for large files
2036 --enable-gcc-warnings turn on lots of GCC warnings. This is intended
for
2037 developers
, and may generate false alarms when used
2038 with older or non-GNU development tools.
2039 --enable-link-time-optimization
2040 build emacs with link-time optimization. This is
2041 supported only
for GCC since
4.5.0.
2044 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
2045 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
2046 --without-all omit almost all features and build small executable
2047 with minimal dependencies
2048 --without-pop don
't support POP mail retrieval with movemail
2049 --with-kerberos support Kerberos-authenticated POP
2050 --with-kerberos5 support Kerberos version 5 authenticated POP
2051 --with-hesiod support Hesiod to get the POP server host
2052 --with-mmdf support MMDF mailboxes
2053 --with-mail-unlink unlink, rather than empty, mail spool after reading
2054 --with-mailhost=HOSTNAME
2055 string giving default POP mail host
2056 --without-sound don't compile with sound support
2057 --without-sync-input process async input synchronously
2058 --with-x-toolkit=KIT use an X toolkit
(KIT one of
: yes or gtk
, gtk3
,
2059 lucid or athena
, motif
, no
)
2060 --with-wide-int prefer wide Emacs integers
(typically
62-bit)
2061 --without-xpm don
't compile with XPM image support
2062 --without-jpeg don't compile with JPEG image support
2063 --without-tiff don
't compile with TIFF image support
2064 --without-gif don't compile with GIF image support
2065 --without-png don
't compile with PNG image support
2066 --without-rsvg don't compile with SVG image support
2067 --without-xml2 don
't compile with XML parsing support
2068 --without-imagemagick don't compile with ImageMagick image support
2069 --without-xft don
't use XFT for anti aliased fonts
2070 --without-libotf don't use libotf
for OpenType font support
2071 --without-m17n-flt don
't use m17n-flt for text shaping
2072 --without-toolkit-scroll-bars
2073 don't use Motif or Xaw3d scroll bars
2074 --without-xaw3d don
't use Xaw3d
2075 --without-xim don't use X11 XIM
2076 --with-ns use NeXTstep
(Cocoa or GNUstep
) windowing system
2077 --without-gpm don
't use -lgpm for mouse support on a GNU/Linux
2079 --without-dbus don't compile with D-Bus support
2080 --without-gconf don
't compile with GConf support
2081 --without-gsettings don't compile with GSettings support
2082 --without-selinux don
't compile with SELinux support
2083 --without-gnutls don't use
-lgnutls for SSL
/TLS support
2084 --without-makeinfo don
't require makeinfo for building manuals
2085 --without-compress-info don't
compress the installed Info pages
2086 --with-pkg-config-prog=PATH
2087 path to pkg-config
for finding GTK and librsvg
2088 --with-crt-dir=DIR directory containing crtn.o etc. The default is
2089 /usr
/lib
, or
/usr
/lib64 on some platforms.
2090 --with-gameuser=USER user
for shared game score files
2091 --with-gnustep-conf=PATH
2092 path to GNUstep.conf
; default
$GNUSTEP_CONFIG_FILE,
2093 or
/etc
/GNUstep
/GNUstep.conf
2094 --with-x use the X Window System
2096 Some influential environment variables
:
2097 CC C compiler
command
2098 CFLAGS C compiler flags
2099 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
2100 nonstandard directory
<lib dir
>
2101 LIBS libraries to pass to the linker
, e.g.
-l<library
>
2102 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
2103 you have headers
in a nonstandard directory
<include dir
>
2105 XMKMF Path to xmkmf
, Makefile generator
for X Window System
2107 Use these variables to override the choices made by
`configure' or to help
2108 it to find libraries and programs with nonstandard names/locations.
2110 Report bugs to the package provider.
2115 if test "$ac_init_help" = "recursive"; then
2116 # If there are subdirs, report their specific --help.
2117 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2118 test -d "$ac_dir" ||
2119 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2124 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2126 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
2127 # A ".." for each directory in $ac_dir_suffix.
2128 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
2129 case $ac_top_builddir_sub in
2130 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2131 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2134 ac_abs_top_builddir=$ac_pwd
2135 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2136 # for backward compatibility:
2137 ac_top_builddir=$ac_top_build_prefix
2140 .) # We are building in place.
2142 ac_top_srcdir=$ac_top_builddir_sub
2143 ac_abs_top_srcdir=$ac_pwd ;;
2144 [\\/]* | ?:[\\/]* ) # Absolute name.
2145 ac_srcdir=$srcdir$ac_dir_suffix;
2146 ac_top_srcdir=$srcdir
2147 ac_abs_top_srcdir=$srcdir ;;
2149 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2150 ac_top_srcdir=$ac_top_build_prefix$srcdir
2151 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2153 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2155 cd "$ac_dir" || { ac_status=$?; continue; }
2156 # Check for guested configure.
2157 if test -f "$ac_srcdir/configure.gnu"; then
2159 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2160 elif test -f "$ac_srcdir/configure"; then
2162 $SHELL "$ac_srcdir/configure" --help=recursive
2164 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2166 cd "$ac_pwd" || { ac_status=$?; break; }
2170 test -n "$ac_init_help" && exit $ac_status
2171 if $ac_init_version; then
2173 emacs configure 24.2.50
2174 generated by GNU Autoconf 2.65
2176 Copyright (C) 2009 Free Software Foundation, Inc.
2177 This configure script is free software; the Free Software Foundation
2178 gives unlimited permission to copy, distribute and modify it.
2183 ## ------------------------ ##
2184 ## Autoconf initialization. ##
2185 ## ------------------------ ##
2187 # ac_fn_c_try_compile LINENO
2188 # --------------------------
2189 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2190 ac_fn_c_try_compile ()
2192 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2193 rm -f conftest.$ac_objext
2194 if { { ac_try="$ac_compile"
2196 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2197 *) ac_try_echo
=$ac_try;;
2199 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2200 $as_echo "$ac_try_echo"; } >&5
2201 (eval "$ac_compile") 2>conftest.err
2203 if test -s conftest.err
; then
2204 grep -v '^ *+' conftest.err
>conftest.er1
2205 cat conftest.er1
>&5
2206 mv -f conftest.er1 conftest.err
2208 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2209 test $ac_status = 0; } && {
2210 test -z "$ac_c_werror_flag" ||
2211 test ! -s conftest.err
2212 } && test -s conftest.
$ac_objext; then :
2215 $as_echo "$as_me: failed program was:" >&5
2216 sed 's/^/| /' conftest.
$ac_ext >&5
2220 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2221 as_fn_set_status
$ac_retval
2223 } # ac_fn_c_try_compile
2225 # ac_fn_c_try_cpp LINENO
2226 # ----------------------
2227 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2230 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2231 if { { ac_try
="$ac_cpp conftest.$ac_ext"
2233 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2234 *) ac_try_echo=$ac_try;;
2236 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2237 $as_echo "$ac_try_echo"; } >&5
2238 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2240 if test -s conftest.err; then
2241 grep -v '^ *+' conftest.err >conftest.er1
2242 cat conftest.er1 >&5
2243 mv -f conftest.er1 conftest.err
2245 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2246 test $ac_status = 0; } >/dev/null && {
2247 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2248 test ! -s conftest.err
2252 $as_echo "$as_me: failed program was:" >&5
2253 sed 's/^/| /' conftest.$ac_ext >&5
2257 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2258 as_fn_set_status $ac_retval
2262 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2263 # -------------------------------------------------------
2264 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2265 # the include files in INCLUDES and setting the cache variable VAR
2267 ac_fn_c_check_header_mongrel ()
2269 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2270 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2272 $as_echo_n "checking for $2... " >&6; }
2273 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2274 $as_echo_n "(cached) " >&6
2277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2278 $as_echo "$ac_res" >&6; }
2280 # Is the header compilable?
2281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2282 $as_echo_n "checking $2 usability... " >&6; }
2283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2284 /* end confdefs.h. */
2288 if ac_fn_c_try_compile "$LINENO"; then :
2289 ac_header_compiler=yes
2291 ac_header_compiler=no
2293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2295 $as_echo "$ac_header_compiler" >&6; }
2297 # Is the header present?
2298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2299 $as_echo_n "checking $2 presence... " >&6; }
2300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2301 /* end confdefs.h. */
2304 if ac_fn_c_try_cpp "$LINENO"; then :
2305 ac_header_preproc=yes
2307 ac_header_preproc=no
2309 rm -f conftest.err conftest.$ac_ext
2310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2311 $as_echo "$ac_header_preproc" >&6; }
2313 # So? What about this header?
2314 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2316 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2317 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2318 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2319 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2322 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2323 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2324 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2325 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2326 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2327 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2328 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2329 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2330 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2331 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2335 $as_echo_n "checking for $2... " >&6; }
2336 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2337 $as_echo_n "(cached) " >&6
2339 eval "$3=\$ac_header_compiler"
2342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2343 $as_echo "$ac_res" >&6; }
2345 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2347 } # ac_fn_c_check_header_mongrel
2349 # ac_fn_c_try_run LINENO
2350 # ----------------------
2351 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2352 # that executables *can* be run.
2355 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2356 if { { ac_try="$ac_link"
2358 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2359 *) ac_try_echo
=$ac_try;;
2361 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2362 $as_echo "$ac_try_echo"; } >&5
2363 (eval "$ac_link") 2>&5
2365 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2366 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
2367 { { case "(($ac_try" in
2368 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2369 *) ac_try_echo=$ac_try;;
2371 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2372 $as_echo "$ac_try_echo"; } >&5
2373 (eval "$ac_try") 2>&5
2375 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2376 test $ac_status = 0; }; }; then :
2379 $as_echo "$as_me: program exited with status $ac_status" >&5
2380 $as_echo "$as_me: failed program was:" >&5
2381 sed 's/^/| /' conftest.$ac_ext >&5
2383 ac_retval=$ac_status
2385 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2386 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2387 as_fn_set_status $ac_retval
2391 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2392 # -------------------------------------------------------
2393 # Tests whether HEADER exists and can be compiled using the include files in
2394 # INCLUDES, setting the cache variable VAR accordingly.
2395 ac_fn_c_check_header_compile ()
2397 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2399 $as_echo_n "checking for $2... " >&6; }
2400 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2401 $as_echo_n "(cached) " >&6
2403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2404 /* end confdefs.h. */
2408 if ac_fn_c_try_compile "$LINENO"; then :
2413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2417 $as_echo "$ac_res" >&6; }
2418 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2420 } # ac_fn_c_check_header_compile
2422 # ac_fn_c_try_link LINENO
2423 # -----------------------
2424 # Try to link conftest.$ac_ext, and return whether this succeeded.
2427 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2428 rm -f conftest.$ac_objext conftest$ac_exeext
2429 if { { ac_try="$ac_link"
2431 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2432 *) ac_try_echo
=$ac_try;;
2434 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2435 $as_echo "$ac_try_echo"; } >&5
2436 (eval "$ac_link") 2>conftest.err
2438 if test -s conftest.err
; then
2439 grep -v '^ *+' conftest.err
>conftest.er1
2440 cat conftest.er1
>&5
2441 mv -f conftest.er1 conftest.err
2443 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2444 test $ac_status = 0; } && {
2445 test -z "$ac_c_werror_flag" ||
2446 test ! -s conftest.err
2447 } && test -s conftest
$ac_exeext && {
2448 test "$cross_compiling" = yes ||
2449 $as_test_x conftest
$ac_exeext
2453 $as_echo "$as_me: failed program was:" >&5
2454 sed 's/^/| /' conftest.
$ac_ext >&5
2458 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2459 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2460 # interfere with the next link command; also delete a directory that is
2461 # left behind by Apple's compiler. We do this before executing the actions.
2462 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2463 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2464 as_fn_set_status
$ac_retval
2466 } # ac_fn_c_try_link
2468 # ac_fn_c_check_decl LINENO SYMBOL VAR
2469 # ------------------------------------
2470 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2471 ac_fn_c_check_decl
()
2473 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2475 $as_echo_n "checking whether $2 is declared... " >&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. */
2493 if ac_fn_c_try_compile
"$LINENO"; then :
2498 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2502 $as_echo "$ac_res" >&6; }
2503 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2505 } # ac_fn_c_check_decl
2507 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2508 # ----------------------------------------------
2509 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2510 ac_fn_c_check_header_preproc
()
2512 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2514 $as_echo_n "checking for $2... " >&6; }
2515 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2516 $as_echo_n "(cached) " >&6
2518 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2519 /* end confdefs.h. */
2522 if ac_fn_c_try_cpp
"$LINENO"; then :
2527 rm -f conftest.err conftest.
$ac_ext
2530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2531 $as_echo "$ac_res" >&6; }
2532 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2534 } # ac_fn_c_check_header_preproc
2536 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2537 # ----------------------------------------------------
2538 # Tries to find if the field MEMBER exists in type AGGR, after including
2539 # INCLUDES, setting cache variable VAR accordingly.
2540 ac_fn_c_check_member
()
2542 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2544 $as_echo_n "checking for $2.$3... " >&6; }
2545 if { as_var
=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2546 $as_echo_n "(cached) " >&6
2548 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2549 /* end confdefs.h. */
2561 if ac_fn_c_try_compile
"$LINENO"; then :
2564 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2565 /* end confdefs.h. */
2571 if (sizeof ac_aggr.$3)
2577 if ac_fn_c_try_compile
"$LINENO"; then :
2582 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2584 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2588 $as_echo "$ac_res" >&6; }
2589 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2591 } # ac_fn_c_check_member
2593 # ac_fn_c_check_func LINENO FUNC VAR
2594 # ----------------------------------
2595 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2596 ac_fn_c_check_func
()
2598 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2600 $as_echo_n "checking for $2... " >&6; }
2601 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2602 $as_echo_n "(cached) " >&6
2604 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2605 /* end confdefs.h. */
2606 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2607 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2608 #define $2 innocuous_$2
2610 /* System header to define __stub macros and hopefully few prototypes,
2611 which can conflict with char $2 (); below.
2612 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2613 <limits.h> exists even on freestanding compilers. */
2616 # include <limits.h>
2618 # include <assert.h>
2623 /* Override any GCC internal prototype to avoid an error.
2624 Use char because int might match the return type of a GCC
2625 builtin and then its argument prototype would still apply. */
2630 /* The GNU C library defines this for functions which it implements
2631 to always fail with ENOSYS. Some functions are actually named
2632 something starting with __ and the normal name is an alias. */
2633 #if defined __stub_$2 || defined __stub___$2
2645 if ac_fn_c_try_link
"$LINENO"; then :
2650 rm -f core conftest.err conftest.
$ac_objext \
2651 conftest
$ac_exeext conftest.
$ac_ext
2654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2655 $as_echo "$ac_res" >&6; }
2656 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2658 } # ac_fn_c_check_func
2660 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2661 # -------------------------------------------
2662 # Tests whether TYPE exists after having included INCLUDES, setting cache
2663 # variable VAR accordingly.
2664 ac_fn_c_check_type
()
2666 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2668 $as_echo_n "checking for $2... " >&6; }
2669 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2670 $as_echo_n "(cached) " >&6
2673 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2674 /* end confdefs.h. */
2685 if ac_fn_c_try_compile
"$LINENO"; then :
2686 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2687 /* end confdefs.h. */
2698 if ac_fn_c_try_compile
"$LINENO"; then :
2703 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2705 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2709 $as_echo "$ac_res" >&6; }
2710 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2712 } # ac_fn_c_check_type
2714 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2715 # --------------------------------------------
2716 # Tries to find the compile-time value of EXPR in a program that includes
2717 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2719 ac_fn_c_compute_int
()
2721 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2722 if test "$cross_compiling" = yes; then
2723 # Depending upon the size, compute the lo and hi bounds.
2724 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2725 /* end confdefs.h. */
2730 static int test_array [1 - 2 * !(($2) >= 0)];
2737 if ac_fn_c_try_compile
"$LINENO"; then :
2740 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2741 /* end confdefs.h. */
2746 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2753 if ac_fn_c_try_compile
"$LINENO"; then :
2754 ac_hi
=$ac_mid; break
2756 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
2757 if test $ac_lo -le $ac_mid; then
2761 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
2763 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2766 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2767 /* end confdefs.h. */
2772 static int test_array [1 - 2 * !(($2) < 0)];
2779 if ac_fn_c_try_compile
"$LINENO"; then :
2782 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2783 /* end confdefs.h. */
2788 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2795 if ac_fn_c_try_compile
"$LINENO"; then :
2796 ac_lo
=$ac_mid; break
2798 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
2799 if test $ac_mid -le $ac_hi; then
2803 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
2805 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2810 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2812 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2813 # Binary search between lo and hi bounds.
2814 while test "x$ac_lo" != "x$ac_hi"; do
2815 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
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 :
2832 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
2834 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2837 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
2841 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2842 /* end confdefs.h. */
2844 static long int longval () { return $2; }
2845 static unsigned long int ulongval () { return $2; }
2852 FILE *f = fopen ("conftest.val", "w");
2857 long int i = longval ();
2860 fprintf (f, "%ld", i);
2864 unsigned long int i = ulongval ();
2867 fprintf (f, "%lu", i);
2869 /* Do not output a trailing newline, as this causes \r\n confusion
2870 on some platforms. */
2871 return ferror (f) || fclose (f) != 0;
2877 if ac_fn_c_try_run
"$LINENO"; then :
2878 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
2882 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
2883 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
2887 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2888 as_fn_set_status
$ac_retval
2890 } # ac_fn_c_compute_int
2891 cat >config.log
<<_ACEOF
2892 This file contains any messages produced by compilers while
2893 running configure, to aid debugging if configure makes a mistake.
2895 It was created by emacs $as_me 24.2.50, which was
2896 generated by GNU Autoconf 2.65. Invocation command line was
2908 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2909 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2910 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2911 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2912 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2914 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2915 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2917 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2918 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2919 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2920 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2921 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2922 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2923 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2927 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2931 test -z "$as_dir" && as_dir
=.
2932 $as_echo "PATH: $as_dir"
2948 # Keep a trace of the command line.
2949 # Strip out --no-create and --no-recursion so they do not pile up.
2950 # Strip out --silent because we don't want to record it for future runs.
2951 # Also quote any args containing shell meta-characters.
2952 # Make two passes to allow for proper duplicate-argument suppression.
2956 ac_must_keep_next
=false
2962 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2963 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2964 |
-silent |
--silent |
--silen |
--sile |
--sil)
2967 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2970 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2972 as_fn_append ac_configure_args1
" '$ac_arg'"
2973 if test $ac_must_keep_next = true
; then
2974 ac_must_keep_next
=false
# Got value, back to normal.
2977 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2978 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2979 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2980 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2981 case "$ac_configure_args0 " in
2982 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2985 -* ) ac_must_keep_next
=true
;;
2988 as_fn_append ac_configure_args
" '$ac_arg'"
2993 { ac_configure_args0
=; unset ac_configure_args0
;}
2994 { ac_configure_args1
=; unset ac_configure_args1
;}
2996 # When interrupted or exit'd, cleanup temporary files, and complete
2997 # config.log. We remove comments because anyway the quotes in there
2998 # would cause problems or look ugly.
2999 # WARNING: Use '\'' to represent an apostrophe within the trap.
3000 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3001 trap 'exit_status=$?
3002 # Save into config.log some information that might help in debugging.
3007 ## ---------------- ##
3008 ## Cache variables. ##
3009 ## ---------------- ##
3012 # The following way of writing the cache mishandles newlines in values,
3014 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3015 eval ac_val=\$$ac_var
3019 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3020 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3023 _ | IFS | as_nl) ;; #(
3024 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3025 *) { eval $ac_var=; unset $ac_var;} ;;
3030 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3031 *${as_nl}ac_space=\ *)
3033 "s/'\''/'\''\\\\'\'''\''/g;
3034 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3037 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3045 ## ----------------- ##
3046 ## Output variables. ##
3047 ## ----------------- ##
3050 for ac_var in $ac_subst_vars
3052 eval ac_val=\$$ac_var
3054 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3056 $as_echo "$ac_var='\''$ac_val'\''"
3060 if test -n "$ac_subst_files"; then
3062 ## ------------------- ##
3063 ## File substitutions. ##
3064 ## ------------------- ##
3067 for ac_var
in $ac_subst_files
3069 eval ac_val
=\$
$ac_var
3071 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3073 $as_echo "$ac_var='\''$ac_val'\''"
3078 if test -s confdefs.h; then
3088 test "$ac_signal" != 0 &&
3089 $as_echo "$as_me: caught signal $ac_signal"
3090 $as_echo "$as_me: exit $exit_status"
3092 rm -f core *.core core.conftest.* &&
3093 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3096 for ac_signal
in 1 2 13 15; do
3097 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3101 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3102 rm -f -r conftest
* confdefs.h
3104 $as_echo "/* confdefs.h */" > confdefs.h
3106 # Predefined preprocessor variables.
3108 cat >>confdefs.h
<<_ACEOF
3109 #define PACKAGE_NAME "$PACKAGE_NAME"
3112 cat >>confdefs.h
<<_ACEOF
3113 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3116 cat >>confdefs.h
<<_ACEOF
3117 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3120 cat >>confdefs.h
<<_ACEOF
3121 #define PACKAGE_STRING "$PACKAGE_STRING"
3124 cat >>confdefs.h
<<_ACEOF
3125 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3128 cat >>confdefs.h
<<_ACEOF
3129 #define PACKAGE_URL "$PACKAGE_URL"
3133 # Let the site file select an alternate cache file if it wants to.
3134 # Prefer an explicitly selected file to automatically selected ones.
3137 if test -n "$CONFIG_SITE"; then
3138 ac_site_file1
=$CONFIG_SITE
3139 elif test "x$prefix" != xNONE
; then
3140 ac_site_file1
=$prefix/share
/config.site
3141 ac_site_file2
=$prefix/etc
/config.site
3143 ac_site_file1
=$ac_default_prefix/share
/config.site
3144 ac_site_file2
=$ac_default_prefix/etc
/config.site
3146 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
3148 test "x$ac_site_file" = xNONE
&& continue
3149 if test /dev
/null
!= "$ac_site_file" && test -r "$ac_site_file"; then
3150 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3151 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3152 sed 's/^/| /' "$ac_site_file" >&5
3157 if test -r "$cache_file"; then
3158 # Some versions of bash will fail to source /dev/null (special files
3159 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3160 if test /dev
/null
!= "$cache_file" && test -f "$cache_file"; then
3161 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3162 $as_echo "$as_me: loading cache $cache_file" >&6;}
3164 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
3165 *) .
"./$cache_file";;
3169 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3170 $as_echo "$as_me: creating cache $cache_file" >&6;}
3174 as_fn_append ac_header_list
" linux/version.h"
3175 as_fn_append ac_header_list
" sys/systeminfo.h"
3176 as_fn_append ac_header_list
" stdio_ext.h"
3177 as_fn_append ac_header_list
" fcntl.h"
3178 as_fn_append ac_header_list
" coff.h"
3179 as_fn_append ac_header_list
" pty.h"
3180 as_fn_append ac_header_list
" sys/vlimit.h"
3181 as_fn_append ac_header_list
" sys/resource.h"
3182 as_fn_append ac_header_list
" sys/utsname.h"
3183 as_fn_append ac_header_list
" pwd.h"
3184 as_fn_append ac_header_list
" utmp.h"
3185 as_fn_append ac_header_list
" dirent.h"
3186 as_fn_append ac_header_list
" util.h"
3187 as_fn_append ac_header_list
" sys/socket.h"
3188 as_fn_append ac_header_list
" stdlib.h"
3189 as_fn_append ac_header_list
" unistd.h"
3190 as_fn_append ac_header_list
" sys/param.h"
3191 as_fn_append ac_header_list
" pthread.h"
3192 as_fn_append ac_header_list
" malloc/malloc.h"
3193 as_fn_append ac_header_list
" maillock.h"
3194 as_fn_append ac_header_list
" sys/un.h"
3195 as_fn_append ac_func_list
" tzset"
3196 as_fn_append ac_func_list
" readlinkat"
3197 gl_getopt_required
=GNU
3198 as_fn_append ac_header_list
" getopt.h"
3199 as_fn_append ac_func_list
" gettimeofday"
3200 as_fn_append ac_func_list
" nanotime"
3201 as_fn_append ac_header_list
" sys/time.h"
3202 as_fn_append ac_header_list
" wchar.h"
3203 as_fn_append ac_header_list
" stdint.h"
3204 as_fn_append ac_header_list
" inttypes.h"
3205 as_fn_append ac_func_list
" lstat"
3206 as_fn_append ac_func_list
" alarm"
3207 as_fn_append ac_header_list
" sys/select.h"
3208 as_fn_append ac_func_list
" pselect"
3209 as_fn_append ac_func_list
" pthread_sigmask"
3210 as_fn_append ac_func_list
" readlink"
3211 as_fn_append ac_func_list
" strtoimax"
3212 as_fn_append ac_func_list
" strtoumax"
3213 as_fn_append ac_func_list
" symlink"
3214 as_fn_append ac_header_list
" sys/stat.h"
3215 as_fn_append ac_func_list
" localtime_r"
3216 as_fn_append ac_header_list
" utime.h"
3217 as_fn_append ac_func_list
" futimes"
3218 as_fn_append ac_func_list
" futimesat"
3219 as_fn_append ac_func_list
" futimens"
3220 as_fn_append ac_func_list
" utimensat"
3221 as_fn_append ac_func_list
" lutimes"
3222 # Check that the precious variables saved in the cache have kept the same
3224 ac_cache_corrupted
=false
3225 for ac_var
in $ac_precious_vars; do
3226 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
3227 eval ac_new_set
=\
$ac_env_${ac_var}_set
3228 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
3229 eval ac_new_val
=\
$ac_env_${ac_var}_value
3230 case $ac_old_set,$ac_new_set in
3232 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3233 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3234 ac_cache_corrupted
=: ;;
3236 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3237 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3238 ac_cache_corrupted
=: ;;
3241 if test "x$ac_old_val" != "x$ac_new_val"; then
3242 # differences in whitespace do not lead to failure.
3243 ac_old_val_w
=`echo x $ac_old_val`
3244 ac_new_val_w
=`echo x $ac_new_val`
3245 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3246 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3247 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3248 ac_cache_corrupted
=:
3250 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3251 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3252 eval $ac_var=\
$ac_old_val
3254 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3255 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3256 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3257 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3260 # Pass precious variables to config.status.
3261 if test "$ac_new_set" = set; then
3263 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3264 *) ac_arg
=$ac_var=$ac_new_val ;;
3266 case " $ac_configure_args " in
3267 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3268 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
3272 if $ac_cache_corrupted; then
3273 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3274 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3275 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3276 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3277 as_fn_error
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3279 ## -------------------- ##
3280 ## Main body of script. ##
3281 ## -------------------- ##
3284 ac_cpp
='$CPP $CPPFLAGS'
3285 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3286 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3287 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3290 ac_config_headers
="$ac_config_headers src/config.h:src/config.in"
3294 for ac_dir
in build-aux
"$srcdir"/build-aux
; do
3295 for ac_t
in install-sh
install.sh shtool
; do
3296 if test -f "$ac_dir/$ac_t"; then
3298 ac_install_sh
="$ac_aux_dir/$ac_t -c"
3303 if test -z "$ac_aux_dir"; then
3304 as_fn_error
"cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
3307 # These three variables are undocumented and unsupported,
3308 # and are intended to be withdrawn in a future Autoconf release.
3309 # They can cause serious problems if a builder's source tree is in a directory
3310 # whose full name contains unusual characters.
3311 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3312 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3313 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3316 am__api_version
='1.11'
3318 # Find a good install program. We prefer a C program (faster),
3319 # so one script is as good as another. But avoid the broken or
3320 # incompatible versions:
3321 # SysV /etc/install, /usr/sbin/install
3322 # SunOS /usr/etc/install
3323 # IRIX /sbin/install
3325 # AmigaOS /C/install, which installs bootblocks on floppy discs
3326 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3327 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3328 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3329 # OS/2's system install, which has a completely different semantic
3330 # ./install, which can be erroneously created by make from ./install.sh.
3331 # Reject install programs that cannot install multiple files.
3332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3333 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3334 if test -z "$INSTALL"; then
3335 if test "${ac_cv_path_install+set}" = set; then :
3336 $as_echo_n "(cached) " >&6
3338 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3342 test -z "$as_dir" && as_dir
=.
3343 # Account for people who put trailing slashes in PATH elements.
3344 case $as_dir/ in #((
3345 .
/ | .
// |
/[cC
]/* | \
3346 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
3347 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
3350 # OSF1 and SCO ODT 3.0 have their own names for install.
3351 # Don't use installbsd from OSF since it installs stuff as root
3353 for ac_prog
in ginstall scoinst
install; do
3354 for ac_exec_ext
in '' $ac_executable_extensions; do
3355 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3356 if test $ac_prog = install &&
3357 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3358 # AIX install. It has an incompatible calling convention.
3360 elif test $ac_prog = install &&
3361 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3362 # program-specific install script used by HP pwplus--don't use.
3365 rm -rf conftest.one conftest.two conftest.dir
3366 echo one
> conftest.one
3367 echo two
> conftest.two
3369 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
3370 test -s conftest.one
&& test -s conftest.two
&&
3371 test -s conftest.dir
/conftest.one
&&
3372 test -s conftest.dir
/conftest.two
3374 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
3387 rm -rf conftest.one conftest.two conftest.dir
3390 if test "${ac_cv_path_install+set}" = set; then
3391 INSTALL
=$ac_cv_path_install
3393 # As a last resort, use the slow shell script. Don't cache a
3394 # value for INSTALL within a source directory, because that will
3395 # break other packages using the cache if that directory is
3396 # removed, or if the value is a relative name.
3397 INSTALL
=$ac_install_sh
3400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3401 $as_echo "$INSTALL" >&6; }
3403 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3404 # It thinks the first close brace ends the variable substitution.
3405 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
3407 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
3409 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
3411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3412 $as_echo_n "checking whether build environment is sane... " >&6; }
3415 echo timestamp
> conftest.
file
3416 # Reject unsafe characters in $srcdir or the absolute working directory
3417 # name. Accept space and tab only in the latter.
3421 *[\\\"\
#\$\&\'\`$am_lf]*)
3422 as_fn_error
"unsafe absolute working directory name" "$LINENO" 5;;
3425 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
3426 as_fn_error
"unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3429 # Do `set' in a subshell so we don't clobber the current shell's
3430 # arguments. Must try -L first in case configure is actually a
3431 # symlink; some systems play weird games with the mod time of symlinks
3432 # (eg FreeBSD returns the mod time of the symlink's containing
3435 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3436 if test "$*" = "X"; then
3438 set X
`ls -t "$srcdir/configure" conftest.file`
3441 if test "$*" != "X $srcdir/configure conftest.file" \
3442 && test "$*" != "X conftest.file $srcdir/configure"; then
3444 # If neither matched, then we have a broken ls. This can happen
3445 # if, for instance, CONFIG_SHELL is bash and it inherits a
3446 # broken ls alias from the environment. This has actually
3447 # happened. Such a system could not be considered "sane".
3448 as_fn_error
"ls -t appears to fail. Make sure there is not a broken
3449 alias in your environment" "$LINENO" 5
3452 test "$2" = conftest.
file
3458 as_fn_error
"newly created file is older than distributed files!
3459 Check your system clock" "$LINENO" 5
3461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3462 $as_echo "yes" >&6; }
3463 test "$program_prefix" != NONE
&&
3464 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
3465 # Use a double $ so make ignores it.
3466 test "$program_suffix" != NONE
&&
3467 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
3468 # Double any \ or $.
3469 # By default was `s,x,x', remove it if useless.
3470 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
3471 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
3473 # expand $ac_aux_dir to an absolute path
3474 am_aux_dir
=`cd $ac_aux_dir && pwd`
3476 if test x
"${MISSING+set}" != xset
; then
3479 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
3481 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
3484 # Use eval to expand $SHELL
3485 if eval "$MISSING --run true"; then
3486 am_missing_run
="$MISSING --run "
3489 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3490 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3493 if test x
"${install_sh}" != xset
; then
3496 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
3498 install_sh
="\${SHELL} $am_aux_dir/install-sh"
3502 # Installed binaries are usually stripped using `strip' when the user
3503 # run `make install-strip'. However `strip' might not be the right
3504 # tool to use in cross-compilation environments, therefore Automake
3505 # will honor the `STRIP' environment variable to overrule this program.
3506 if test "$cross_compiling" != no
; then
3507 if test -n "$ac_tool_prefix"; then
3508 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3509 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
3510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3511 $as_echo_n "checking for $ac_word... " >&6; }
3512 if test "${ac_cv_prog_STRIP+set}" = set; then :
3513 $as_echo_n "(cached) " >&6
3515 if test -n "$STRIP"; then
3516 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
3518 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3522 test -z "$as_dir" && as_dir
=.
3523 for ac_exec_ext
in '' $ac_executable_extensions; do
3524 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3525 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
3526 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3535 STRIP
=$ac_cv_prog_STRIP
3536 if test -n "$STRIP"; then
3537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3538 $as_echo "$STRIP" >&6; }
3540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3541 $as_echo "no" >&6; }
3546 if test -z "$ac_cv_prog_STRIP"; then
3548 # Extract the first word of "strip", so it can be a program name with args.
3549 set dummy strip
; ac_word
=$2
3550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3551 $as_echo_n "checking for $ac_word... " >&6; }
3552 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3553 $as_echo_n "(cached) " >&6
3555 if test -n "$ac_ct_STRIP"; then
3556 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
3558 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3562 test -z "$as_dir" && as_dir
=.
3563 for ac_exec_ext
in '' $ac_executable_extensions; do
3564 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3565 ac_cv_prog_ac_ct_STRIP
="strip"
3566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3575 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
3576 if test -n "$ac_ct_STRIP"; then
3577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3578 $as_echo "$ac_ct_STRIP" >&6; }
3580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3581 $as_echo "no" >&6; }
3584 if test "x$ac_ct_STRIP" = x
; then
3587 case $cross_compiling:$ac_tool_warned in
3589 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3590 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3591 ac_tool_warned
=yes ;;
3596 STRIP
="$ac_cv_prog_STRIP"
3600 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
3602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3603 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3604 if test -z "$MKDIR_P"; then
3605 if test "${ac_cv_path_mkdir+set}" = set; then :
3606 $as_echo_n "(cached) " >&6
3608 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3609 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
3612 test -z "$as_dir" && as_dir
=.
3613 for ac_prog
in mkdir gmkdir
; do
3614 for ac_exec_ext
in '' $ac_executable_extensions; do
3615 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } ||
continue
3616 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3617 'mkdir (GNU coreutils) '* | \
3618 'mkdir (coreutils) '* | \
3619 'mkdir (fileutils) '4.1*)
3620 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
3630 test -d .
/--version && rmdir .
/--version
3631 if test "${ac_cv_path_mkdir+set}" = set; then
3632 MKDIR_P
="$ac_cv_path_mkdir -p"
3634 # As a last resort, use the slow shell script. Don't cache a
3635 # value for MKDIR_P within a source directory, because that will
3636 # break other packages using the cache if that directory is
3637 # removed, or if the value is a relative name.
3638 MKDIR_P
="$ac_install_sh -d"
3641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3642 $as_echo "$MKDIR_P" >&6; }
3647 [\\/$
]* | ?
:[\\/]*) ;;
3648 */*) mkdir_p
="\$(top_builddir)/$mkdir_p" ;;
3651 for ac_prog
in gawk mawk nawk
awk
3653 # Extract the first word of "$ac_prog", so it can be a program name with args.
3654 set dummy
$ac_prog; ac_word
=$2
3655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3656 $as_echo_n "checking for $ac_word... " >&6; }
3657 if test "${ac_cv_prog_AWK+set}" = set; then :
3658 $as_echo_n "(cached) " >&6
3660 if test -n "$AWK"; then
3661 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
3663 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3667 test -z "$as_dir" && as_dir
=.
3668 for ac_exec_ext
in '' $ac_executable_extensions; do
3669 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3670 ac_cv_prog_AWK
="$ac_prog"
3671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3681 if test -n "$AWK"; then
3682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3683 $as_echo "$AWK" >&6; }
3685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3686 $as_echo "no" >&6; }
3690 test -n "$AWK" && break
3693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3694 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3696 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3697 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3698 $as_echo_n "(cached) " >&6
3700 cat >conftest.
make <<\_ACEOF
3703 @
echo '@@@%%%=$(MAKE)=@@@%%%'
3705 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3706 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3708 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
3710 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
3714 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
3715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3716 $as_echo "yes" >&6; }
3719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3720 $as_echo "no" >&6; }
3721 SET_MAKE
="MAKE=${MAKE-make}"
3724 rm -rf .tst
2>/dev
/null
3725 mkdir .tst
2>/dev
/null
3726 if test -d .tst
; then
3731 rmdir .tst
2>/dev
/null
3733 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3734 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3735 # is not polluted with repeated "-I."
3736 am__isrc
=' -I$(srcdir)'
3737 # test to see if srcdir already configured
3738 if test -f $srcdir/config.status
; then
3739 as_fn_error
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3743 # test whether we have cygpath
3744 if test -z "$CYGPATH_W"; then
3745 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
3746 CYGPATH_W
='cygpath -w'
3753 # Define the identity of the package.
3758 cat >>confdefs.h
<<_ACEOF
3759 #define PACKAGE "$PACKAGE"
3763 cat >>confdefs.h
<<_ACEOF
3764 #define VERSION "$VERSION"
3767 # Some tools Automake needs.
3769 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3772 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
3775 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3778 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
3781 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
3783 # We need awk for the "check" target. The system "awk" is bad on
3785 # Always define AMTAR for backward compatibility.
3787 AMTAR
=${AMTAR-"${am_missing_run}tar"}
3789 am__tar
='${AMTAR} chof - "$$tardir"'; am__untar
='${AMTAR} xf -'
3798 lispdir
='${datadir}/emacs/${version}/lisp'
3799 leimdir
='${datadir}/emacs/${version}/leim'
3800 standardlisppath
='${lispdir}:${leimdir}'
3801 locallisppath
='${datadir}/emacs/${version}/site-lisp:'\
3802 '${datadir}/emacs/site-lisp'
3803 lisppath
='${locallisppath}:${standardlisppath}'
3804 etcdir
='${datadir}/emacs/${version}/etc'
3805 archlibdir
='${libexecdir}/emacs/${version}/${configuration}'
3806 docdir
='${datadir}/emacs/${version}/etc'
3807 gamedir
='${localstatedir}/games/emacs'
3810 # Check whether --with-all was given.
3811 if test "${with_all+set}" = set; then :
3812 withval
=$with_all; with_features
=$withval
3821 # Check whether --with-pop was given.
3822 if test "${with_pop+set}" = set; then :
3825 with_pop
=$with_features
3828 if test "$with_pop" = yes; then
3829 $as_echo "#define MAIL_USE_POP 1" >>confdefs.h
3834 # Check whether --with-kerberos was given.
3835 if test "${with_kerberos+set}" = set; then :
3836 withval
=$with_kerberos;
3841 if test "$with_kerberos" != no
; then
3842 $as_echo "#define KERBEROS 1" >>confdefs.h
3847 # Check whether --with-kerberos5 was given.
3848 if test "${with_kerberos5+set}" = set; then :
3849 withval
=$with_kerberos5;
3854 if test "${with_kerberos5}" != no
; then
3855 if test "${with_kerberos}" = no
; then
3857 $as_echo "#define KERBEROS 1" >>confdefs.h
3861 $as_echo "#define KERBEROS5 1" >>confdefs.h
3866 # Check whether --with-hesiod was given.
3867 if test "${with_hesiod+set}" = set; then :
3868 withval
=$with_hesiod;
3873 if test "$with_hesiod" != no
; then
3875 $as_echo "#define HESIOD 1" >>confdefs.h
3880 # Check whether --with-mmdf was given.
3881 if test "${with_mmdf+set}" = set; then :
3887 if test "$with_mmdf" != no
; then
3889 $as_echo "#define MAIL_USE_MMDF 1" >>confdefs.h
3894 # Check whether --with-mail-unlink was given.
3895 if test "${with_mail_unlink+set}" = set; then :
3896 withval
=$with_mail_unlink;
3901 if test "$with_mail_unlink" != no
; then
3903 $as_echo "#define MAIL_UNLINK_SPOOL 1" >>confdefs.h
3908 # Check whether --with-mailhost was given.
3909 if test "${with_mailhost+set}" = set; then :
3910 withval
=$with_mailhost;
3911 cat >>confdefs.h
<<_ACEOF
3912 #define MAILHOST "$withval"
3919 # Check whether --with-sound was given.
3920 if test "${with_sound+set}" = set; then :
3921 withval
=$with_sound;
3923 with_sound
=$with_features
3928 # Check whether --with-sync-input was given.
3929 if test "${with_sync_input+set}" = set; then :
3930 withval
=$with_sync_input;
3932 with_sync_input
=$with_features
3935 if test "$with_sync_input" = yes; then
3937 $as_echo "#define SYNC_INPUT 1" >>confdefs.h
3942 # Check whether --with-x-toolkit was given.
3943 if test "${with_x_toolkit+set}" = set; then :
3944 withval
=$with_x_toolkit; case "${withval}" in
3945 y | ye |
yes ) val
=gtk
;;
3947 l | lu | luc | luci | lucid
) val
=lucid
;;
3948 a |
at | ath | athe | athen | athena
) val
=athena
;;
3949 m | mo | mot | moti | motif
) val
=motif
;;
3950 g | gt | gtk
) val
=gtk
;;
3953 as_fn_error
"\`--with-x-toolkit=$withval' is invalid;
3954 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif', \`gtk' or
3955 \`gtk3'. \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." "$LINENO" 5
3964 # Check whether --with-wide-int was given.
3965 if test "${with_wide_int+set}" = set; then :
3966 withval
=$with_wide_int;
3971 if test "$with_wide_int" = yes; then
3973 $as_echo "#define WIDE_EMACS_INT 1" >>confdefs.h
3978 # Check whether --with-xpm was given.
3979 if test "${with_xpm+set}" = set; then :
3982 with_xpm
=$with_features
3986 # Check whether --with-jpeg was given.
3987 if test "${with_jpeg+set}" = set; then :
3990 with_jpeg
=$with_features
3994 # Check whether --with-tiff was given.
3995 if test "${with_tiff+set}" = set; then :
3998 with_tiff
=$with_features
4002 # Check whether --with-gif was given.
4003 if test "${with_gif+set}" = set; then :
4006 with_gif
=$with_features
4010 # Check whether --with-png was given.
4011 if test "${with_png+set}" = set; then :
4014 with_png
=$with_features
4018 # Check whether --with-rsvg was given.
4019 if test "${with_rsvg+set}" = set; then :
4022 with_rsvg
=$with_features
4026 # Check whether --with-xml2 was given.
4027 if test "${with_xml2+set}" = set; then :
4030 with_xml2
=$with_features
4034 # Check whether --with-imagemagick was given.
4035 if test "${with_imagemagick+set}" = set; then :
4036 withval
=$with_imagemagick;
4038 with_imagemagick
=$with_features
4043 # Check whether --with-xft was given.
4044 if test "${with_xft+set}" = set; then :
4047 with_xft
=$with_features
4051 # Check whether --with-libotf was given.
4052 if test "${with_libotf+set}" = set; then :
4053 withval
=$with_libotf;
4055 with_libotf
=$with_features
4059 # Check whether --with-m17n-flt was given.
4060 if test "${with_m17n_flt+set}" = set; then :
4061 withval
=$with_m17n_flt;
4063 with_m17n_flt
=$with_features
4068 # Check whether --with-toolkit-scroll-bars was given.
4069 if test "${with_toolkit_scroll_bars+set}" = set; then :
4070 withval
=$with_toolkit_scroll_bars;
4072 with_toolkit_scroll_bars
=$with_features
4076 # Check whether --with-xaw3d was given.
4077 if test "${with_xaw3d+set}" = set; then :
4078 withval
=$with_xaw3d;
4080 with_xaw3d
=$with_features
4084 # Check whether --with-xim was given.
4085 if test "${with_xim+set}" = set; then :
4088 with_xim
=$with_features
4092 # Check whether --with-ns was given.
4093 if test "${with_ns+set}" = set; then :
4101 # Check whether --with-gpm was given.
4102 if test "${with_gpm+set}" = set; then :
4105 with_gpm
=$with_features
4109 # Check whether --with-dbus was given.
4110 if test "${with_dbus+set}" = set; then :
4113 with_dbus
=$with_features
4117 # Check whether --with-gconf was given.
4118 if test "${with_gconf+set}" = set; then :
4119 withval
=$with_gconf;
4121 with_gconf
=$with_features
4125 # Check whether --with-gsettings was given.
4126 if test "${with_gsettings+set}" = set; then :
4127 withval
=$with_gsettings;
4129 with_gsettings
=$with_features
4133 # Check whether --with-selinux was given.
4134 if test "${with_selinux+set}" = set; then :
4135 withval
=$with_selinux;
4137 with_selinux
=$with_features
4141 # Check whether --with-gnutls was given.
4142 if test "${with_gnutls+set}" = set; then :
4143 withval
=$with_gnutls;
4145 with_gnutls
=$with_features
4149 ## For the times when you want to build Emacs but don't have
4150 ## a suitable makeinfo, and can live without the manuals.
4152 # Check whether --with-makeinfo was given.
4153 if test "${with_makeinfo+set}" = set; then :
4154 withval
=$with_makeinfo;
4156 with_makeinfo
=$with_features
4160 ## Makefile.in needs the cache file name.
4163 ## This is an option because I do not know if all info/man support
4164 ## compressed files, nor how to test if they do so.
4166 # Check whether --with-compress-info was given.
4167 if test "${with_compress_info+set}" = set; then :
4168 withval
=$with_compress_info;
4170 with_compress_info
=$with_features
4173 if test $with_compress_info = yes; then
4181 # Check whether --with-pkg-config-prog was given.
4182 if test "${with_pkg_config_prog+set}" = set; then :
4183 withval
=$with_pkg_config_prog;
4186 if test "X${with_pkg_config_prog}" != X
; then
4187 if test "${with_pkg_config_prog}" != yes; then
4188 PKG_CONFIG
="${with_pkg_config_prog}"
4194 # Check whether --with-crt-dir was given.
4195 if test "${with_crt_dir+set}" = set; then :
4196 withval
=$with_crt_dir;
4199 CRT_DIR
="${with_crt_dir}"
4202 # Check whether --with-gameuser was given.
4203 if test "${with_gameuser+set}" = set; then :
4204 withval
=$with_gameuser;
4207 test "X${with_gameuser}" != X
&& test "${with_gameuser}" != yes \
4208 && gameuser
="${with_gameuser}"
4209 test "X$gameuser" = X
&& gameuser
=games
4212 # Check whether --with-gnustep-conf was given.
4213 if test "${with_gnustep_conf+set}" = set; then :
4214 withval
=$with_gnustep_conf;
4217 test "X${with_gnustep_conf}" != X
&& test "${with_gnustep_conf}" != yes && \
4218 GNUSTEP_CONFIG_FILE
="${with_gnustep_conf}"
4219 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
4220 GNUSTEP_CONFIG_FILE
=/etc
/GNUstep
/GNUstep.conf
4222 # Check whether --enable-ns-self-contained was given.
4223 if test "${enable_ns_self_contained+set}" = set; then :
4224 enableval
=$enable_ns_self_contained; EN_NS_SELF_CONTAINED
=$enableval
4226 EN_NS_SELF_CONTAINED
=yes
4230 # Check whether --enable-locallisppath was given.
4231 if test "${enable_locallisppath+set}" = set; then :
4232 enableval
=$enable_locallisppath; if test "${enableval}" = "no"; then
4234 elif test "${enableval}" != "yes"; then
4235 locallisppath
=${enableval}
4240 # Check whether --enable-checking was given.
4241 if test "${enable_checking+set}" = set; then :
4242 enableval
=$enable_checking; ac_checking_flags
="${enableval}"
4245 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
4246 for check
in $ac_checking_flags
4249 # these set all the flags to specific states
4250 yes) ac_enable_checking
=1 ;;
4251 no
) ac_enable_checking
= ;
4252 ac_gc_check_stringbytes
= ;
4253 ac_gc_check_string_overrun
= ;
4254 ac_gc_check_string_free_list
= ;
4255 ac_xmalloc_overrun
= ;
4256 ac_gc_check_cons_list
= ;
4258 all
) ac_enable_checking
=1 ;
4259 ac_gc_check_stringbytes
=1 ;
4260 ac_gc_check_string_overrun
=1 ;
4261 ac_gc_check_string_free_list
=1 ;
4262 ac_xmalloc_overrun
=1 ;
4263 ac_gc_check_cons_list
=1 ;
4264 ac_glyphs_debug
=1 ;;
4265 # these enable particular checks
4266 stringbytes
) ac_gc_check_stringbytes
=1 ;;
4267 stringoverrun
) ac_gc_check_string_overrun
=1 ;;
4268 stringfreelist
) ac_gc_check_string_free_list
=1 ;;
4269 xmallocoverrun
) ac_xmalloc_overrun
=1 ;;
4270 conslist
) ac_gc_check_cons_list
=1 ;;
4271 glyphs
) ac_glyphs_debug
=1 ;;
4272 *) as_fn_error
"unknown check category $check" "$LINENO" 5 ;;
4277 if test x
$ac_enable_checking != x
; then
4279 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
4282 if test x
$ac_gc_check_stringbytes != x
; then
4284 $as_echo "#define GC_CHECK_STRING_BYTES 1" >>confdefs.h
4287 if test x
$ac_gc_check_string_overrun != x
; then
4289 $as_echo "#define GC_CHECK_STRING_OVERRUN 1" >>confdefs.h
4292 if test x
$ac_gc_check_string_free_list != x
; then
4294 $as_echo "#define GC_CHECK_STRING_FREE_LIST 1" >>confdefs.h
4297 if test x
$ac_xmalloc_overrun != x
; then
4299 $as_echo "#define XMALLOC_OVERRUN_CHECK 1" >>confdefs.h
4302 if test x
$ac_gc_check_cons_list != x
; then
4304 $as_echo "#define GC_CHECK_CONS_LIST 1" >>confdefs.h
4307 if test x
$ac_glyphs_debug != x
; then
4309 $as_echo "#define GLYPH_DEBUG 1" >>confdefs.h
4313 # Check whether --enable-check-lisp-object-type was given.
4314 if test "${enable_check_lisp_object_type+set}" = set; then :
4315 enableval
=$enable_check_lisp_object_type; if test "${enableval}" != "no"; then
4317 $as_echo "#define CHECK_LISP_OBJECT_TYPE 1" >>confdefs.h
4324 # Check whether --enable-profiling was given.
4325 if test "${enable_profiling+set}" = set; then :
4326 enableval
=$enable_profiling; ac_enable_profiling
="${enableval}"
4329 if test x
$ac_enable_profiling != x
; then
4330 PROFILING_CFLAGS
="-DPROFILING=1 -pg"
4336 # Check whether --enable-autodepend was given.
4337 if test "${enable_autodepend+set}" = set; then :
4338 enableval
=$enable_autodepend; ac_enable_autodepend
="${enableval}"
4340 ac_enable_autodepend
=yes
4344 #### Make srcdir absolute, if it isn't already. It's important to
4345 #### avoid running the path through pwd unnecessarily, since pwd can
4346 #### give you automounter prefixes, which can go away. We do all this
4347 #### so Emacs can find its files when run uninstalled.
4348 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
4353 ## We may be able to use the $PWD environment variable to make this
4354 ## absolute. But sometimes PWD is inaccurate.
4355 ## Note: we used to use ${PWD} at the end instead of `pwd`,
4356 ## but that tested only for a well-formed and valid PWD,
4357 ## it did not object when PWD was well-formed and valid but just wrong.
4358 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
4362 srcdir
="`(cd ${srcdir}; pwd)`"
4365 * ) srcdir
="`(cd ${srcdir}; pwd)`" ;;
4368 ### Canonicalize the configuration name.
4370 # Make sure we can run config.sub.
4371 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
4372 as_fn_error
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4375 $as_echo_n "checking build system type... " >&6; }
4376 if test "${ac_cv_build+set}" = set; then :
4377 $as_echo_n "(cached) " >&6
4379 ac_build_alias
=$build_alias
4380 test "x$ac_build_alias" = x
&&
4381 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
4382 test "x$ac_build_alias" = x
&&
4383 as_fn_error
"cannot guess build type; you must specify one" "$LINENO" 5
4384 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4385 as_fn_error
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4389 $as_echo "$ac_cv_build" >&6; }
4390 case $ac_cv_build in
4392 *) as_fn_error
"invalid value of canonical build" "$LINENO" 5;;
4395 ac_save_IFS
=$IFS; IFS
='-'
4401 # Remember, the first character of IFS is used to create $*,
4402 # except with old shells:
4405 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
4408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4409 $as_echo_n "checking host system type... " >&6; }
4410 if test "${ac_cv_host+set}" = set; then :
4411 $as_echo_n "(cached) " >&6
4413 if test "x$host_alias" = x
; then
4414 ac_cv_host
=$ac_cv_build
4416 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4417 as_fn_error
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4422 $as_echo "$ac_cv_host" >&6; }
4425 *) as_fn_error
"invalid value of canonical host" "$LINENO" 5;;
4428 ac_save_IFS
=$IFS; IFS
='-'
4434 # Remember, the first character of IFS is used to create $*,
4435 # except with old shells:
4438 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
4442 configuration
=${host_alias-${build_alias-$host}}
4446 ### If you add support for a new configuration, add code to this
4447 ### switch statement to recognize your configuration name and select
4448 ### the appropriate operating system file.
4450 ### You would hope that you could choose an s/*.h
4451 ### file based on the operating system portion. However, it turns out
4452 ### that each s/*.h file is pretty manufacturer-specific.
4453 ### So we basically have to have a special case for each
4454 ### configuration name.
4456 ### As far as handling version numbers on operating systems is
4457 ### concerned, make sure things will fail in a fixable way. If
4458 ### /etc/MACHINES doesn't say anything about version numbers, be
4459 ### prepared to handle anything reasonably. If version numbers
4460 ### matter, be sure /etc/MACHINES says something about it.
4462 opsys
='' unported
=no
4463 case "${canonical}" in
4465 ## GNU/Linux and similar ports
4475 ## FreeBSD kernel + glibc based userland
4490 ## Apple Darwin / Mac OS X
4492 case "${canonical}" in
4499 ## Use fink packages if available.
4500 ## FIXME find a better way to do this: http://debbugs.gnu.org/11507
4501 ## if test -d /sw/include && test -d /sw/lib; then
4502 ## GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
4503 ## NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
4507 ## HP 9000 series 700 and 800, running HP/UX
4508 hppa
*-hp-hpux10.2
* )
4511 hppa
*-hp-hpux1[1-9]* )
4513 CFLAGS
="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
4517 rs6000-ibm-aix4.
[23]* )
4520 powerpc-ibm-aix4.
[23]* )
4523 rs6000-ibm-aix
[56]* )
4526 powerpc-ibm-aix
[56]* )
4530 ## Silicon Graphics machines
4534 # Without defining _LANGUAGE_C, things get masked out in the headers
4535 # so that, for instance, grepping for `free' in stdlib.h fails and
4536 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
4537 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
4542 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* \
4543 | x86_64-
*-solaris2* | x86_64-
*-sunos5*)
4544 case "${canonical}" in
4546 amd64-
*-*|x86_64-
*-*) ;;
4550 case "${canonical}" in
4551 *-sunos5.6
* |
*-solaris2.6
* )
4555 *-sunos5.
[7-9]* |
*-solaris2.
[7-9]* )
4557 emacs_check_sunpro_c
=yes
4559 *-sunos5* |
*-solaris* )
4561 emacs_check_sunpro_c
=yes
4564 ## Watch out for a compiler that we know will not work.
4565 case "${canonical}" in
4566 *-solaris* |
*-sunos5* )
4567 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
4568 ## /usr/ucb/cc doesn't work;
4569 ## we should find some other compiler that does work.
4577 ## Intel 386 machines where we don't care about the manufacturer.
4579 case "${canonical}" in
4580 *-cygwin ) opsys
=cygwin
;;
4581 *-darwin* ) opsys
=darwin
;;
4582 *-sysv4.2uw
* ) opsys
=unixware
;;
4583 *-sysv5uw* ) opsys
=unixware
;;
4584 *-sysv5OpenUNIX* ) opsys
=unixware
;;
4585 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
4594 ### If the code above didn't choose an operating system, just choose
4595 ### an operating system based on the configuration name. You really
4596 ### only want to use this when you have no idea what the right
4597 ### operating system is; if you know what operating systems a machine
4598 ### runs, it's cleaner to make it explicit in the case statement
4600 if test x
"${opsys}" = x
; then
4601 case "${canonical}" in
4602 *-gnu* ) opsys
=gnu
;;
4611 if test $unported = yes; then
4612 as_fn_error
"Emacs hasn't been ported to \`${canonical}' systems.
4613 Check \`etc/MACHINES' for recognized configuration names." "$LINENO" 5
4617 #### Choose a compiler.
4620 ac_cpp
='$CPP $CPPFLAGS'
4621 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4622 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4623 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4624 if test -n "$ac_tool_prefix"; then
4625 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4626 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
4627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4628 $as_echo_n "checking for $ac_word... " >&6; }
4629 if test "${ac_cv_prog_CC+set}" = set; then :
4630 $as_echo_n "(cached) " >&6
4632 if test -n "$CC"; then
4633 ac_cv_prog_CC
="$CC" # Let the user override the test.
4635 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4639 test -z "$as_dir" && as_dir
=.
4640 for ac_exec_ext
in '' $ac_executable_extensions; do
4641 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4642 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
4643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4653 if test -n "$CC"; then
4654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4655 $as_echo "$CC" >&6; }
4657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4658 $as_echo "no" >&6; }
4663 if test -z "$ac_cv_prog_CC"; then
4665 # Extract the first word of "gcc", so it can be a program name with args.
4666 set dummy gcc
; ac_word
=$2
4667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4668 $as_echo_n "checking for $ac_word... " >&6; }
4669 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4670 $as_echo_n "(cached) " >&6
4672 if test -n "$ac_ct_CC"; then
4673 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4675 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4679 test -z "$as_dir" && as_dir
=.
4680 for ac_exec_ext
in '' $ac_executable_extensions; do
4681 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4682 ac_cv_prog_ac_ct_CC
="gcc"
4683 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4692 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4693 if test -n "$ac_ct_CC"; then
4694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4695 $as_echo "$ac_ct_CC" >&6; }
4697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4698 $as_echo "no" >&6; }
4701 if test "x$ac_ct_CC" = x
; then
4704 case $cross_compiling:$ac_tool_warned in
4706 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4707 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4708 ac_tool_warned
=yes ;;
4716 if test -z "$CC"; then
4717 if test -n "$ac_tool_prefix"; then
4718 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4719 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
4720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4721 $as_echo_n "checking for $ac_word... " >&6; }
4722 if test "${ac_cv_prog_CC+set}" = set; then :
4723 $as_echo_n "(cached) " >&6
4725 if test -n "$CC"; then
4726 ac_cv_prog_CC
="$CC" # Let the user override the test.
4728 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4732 test -z "$as_dir" && as_dir
=.
4733 for ac_exec_ext
in '' $ac_executable_extensions; do
4734 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4735 ac_cv_prog_CC
="${ac_tool_prefix}cc"
4736 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4746 if test -n "$CC"; then
4747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4748 $as_echo "$CC" >&6; }
4750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4751 $as_echo "no" >&6; }
4757 if test -z "$CC"; then
4758 # Extract the first word of "cc", so it can be a program name with args.
4759 set dummy cc
; ac_word
=$2
4760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4761 $as_echo_n "checking for $ac_word... " >&6; }
4762 if test "${ac_cv_prog_CC+set}" = set; then :
4763 $as_echo_n "(cached) " >&6
4765 if test -n "$CC"; then
4766 ac_cv_prog_CC
="$CC" # Let the user override the test.
4769 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4773 test -z "$as_dir" && as_dir
=.
4774 for ac_exec_ext
in '' $ac_executable_extensions; do
4775 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4776 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4777 ac_prog_rejected
=yes
4781 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4788 if test $ac_prog_rejected = yes; then
4789 # We found a bogon in the path, so make sure we never use it.
4790 set dummy
$ac_cv_prog_CC
4792 if test $# != 0; then
4793 # We chose a different compiler from the bogus one.
4794 # However, it has the same basename, so the bogon will be chosen
4795 # first if we set CC to just the basename; use the full file name.
4797 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
4803 if test -n "$CC"; then
4804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4805 $as_echo "$CC" >&6; }
4807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4808 $as_echo "no" >&6; }
4813 if test -z "$CC"; then
4814 if test -n "$ac_tool_prefix"; then
4815 for ac_prog
in cl.exe
4817 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4818 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4820 $as_echo_n "checking for $ac_word... " >&6; }
4821 if test "${ac_cv_prog_CC+set}" = set; then :
4822 $as_echo_n "(cached) " >&6
4824 if test -n "$CC"; then
4825 ac_cv_prog_CC
="$CC" # Let the user override the test.
4827 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4831 test -z "$as_dir" && as_dir
=.
4832 for ac_exec_ext
in '' $ac_executable_extensions; do
4833 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4834 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
4835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4845 if test -n "$CC"; then
4846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4847 $as_echo "$CC" >&6; }
4849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4850 $as_echo "no" >&6; }
4854 test -n "$CC" && break
4857 if test -z "$CC"; then
4859 for ac_prog
in cl.exe
4861 # Extract the first word of "$ac_prog", so it can be a program name with args.
4862 set dummy
$ac_prog; ac_word
=$2
4863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4864 $as_echo_n "checking for $ac_word... " >&6; }
4865 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4866 $as_echo_n "(cached) " >&6
4868 if test -n "$ac_ct_CC"; then
4869 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4871 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4875 test -z "$as_dir" && as_dir
=.
4876 for ac_exec_ext
in '' $ac_executable_extensions; do
4877 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4878 ac_cv_prog_ac_ct_CC
="$ac_prog"
4879 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4888 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4889 if test -n "$ac_ct_CC"; then
4890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4891 $as_echo "$ac_ct_CC" >&6; }
4893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4894 $as_echo "no" >&6; }
4898 test -n "$ac_ct_CC" && break
4901 if test "x$ac_ct_CC" = x
; then
4904 case $cross_compiling:$ac_tool_warned in
4906 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4907 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4908 ac_tool_warned
=yes ;;
4917 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4918 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4919 as_fn_error
"no acceptable C compiler found in \$PATH
4920 See \`config.log' for more details." "$LINENO" 5; }
4922 # Provide some information about the compiler.
4923 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4926 for ac_option
in --version -v -V -qversion; do
4927 { { ac_try
="$ac_compiler $ac_option >&5"
4929 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4930 *) ac_try_echo=$ac_try;;
4932 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4933 $as_echo "$ac_try_echo"; } >&5
4934 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4936 if test -s conftest.err; then
4938 ... rest of stderr output deleted ...
4939 10q' conftest.err >conftest.er1
4940 cat conftest.er1 >&5
4942 rm -f conftest.er1 conftest.err
4943 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4944 test $ac_status = 0; }
4947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4948 /* end confdefs.h. */
4958 ac_clean_files_save=$ac_clean_files
4959 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4960 # Try to create an executable without -o first, disregard a.out.
4961 # It will help us diagnose broken compilers, and finding out an intuition
4963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4964 $as_echo_n "checking whether the C compiler works... " >&6; }
4965 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
4967 # The possible output files:
4968 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4971 for ac_file in $ac_files
4974 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4975 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4980 if { { ac_try="$ac_link_default"
4982 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4983 *) ac_try_echo
=$ac_try;;
4985 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4986 $as_echo "$ac_try_echo"; } >&5
4987 (eval "$ac_link_default") 2>&5
4989 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4990 test $ac_status = 0; }; then :
4991 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4992 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4993 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4994 # so that the user can short-circuit this test for compilers unknown to
4996 for ac_file
in $ac_files ''
4998 test -f "$ac_file" ||
continue
5000 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
5003 # We found the default executable, but exeext='' is most
5007 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
5009 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
5011 # We set ac_cv_exeext here because the later test for it is not
5012 # safe: cross compilers may not add the suffix if given an `-o'
5013 # argument, so we may need to know it at that point already.
5014 # Even if this section looks crufty: it has the advantage of
5021 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
5026 if test -z "$ac_file"; then :
5027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5028 $as_echo "no" >&6; }
5029 $as_echo "$as_me: failed program was:" >&5
5030 sed 's/^/| /' conftest.
$ac_ext >&5
5032 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5033 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5034 { as_fn_set_status
77
5035 as_fn_error
"C compiler cannot create executables
5036 See \`config.log' for more details." "$LINENO" 5; }; }
5038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5039 $as_echo "yes" >&6; }
5041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
5042 $as_echo_n "checking for C compiler default output file name... " >&6; }
5043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
5044 $as_echo "$ac_file" >&6; }
5045 ac_exeext
=$ac_cv_exeext
5047 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
5048 ac_clean_files
=$ac_clean_files_save
5049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
5050 $as_echo_n "checking for suffix of executables... " >&6; }
5051 if { { ac_try
="$ac_link"
5053 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5054 *) ac_try_echo=$ac_try;;
5056 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5057 $as_echo "$ac_try_echo"; } >&5
5058 (eval "$ac_link") 2>&5
5060 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5061 test $ac_status = 0; }; then :
5062 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
5063 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
5064 # work properly (i.e., refer to `conftest.exe'), while it won't with
5066 for ac_file
in conftest.exe conftest conftest.
*; do
5067 test -f "$ac_file" ||
continue
5069 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
5070 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
5076 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5077 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5078 as_fn_error
"cannot compute suffix of executables: cannot compile and link
5079 See \`config.log' for more details." "$LINENO" 5; }
5081 rm -f conftest conftest
$ac_cv_exeext
5082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
5083 $as_echo "$ac_cv_exeext" >&6; }
5085 rm -f conftest.
$ac_ext
5086 EXEEXT
=$ac_cv_exeext
5088 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5089 /* end confdefs.h. */
5094 FILE *f = fopen ("conftest.out", "w");
5095 return ferror (f) || fclose (f) != 0;
5101 ac_clean_files
="$ac_clean_files conftest.out"
5102 # Check that the compiler produces executables we can run. If not, either
5103 # the compiler is broken, or we cross compile.
5104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5105 $as_echo_n "checking whether we are cross compiling... " >&6; }
5106 if test "$cross_compiling" != yes; then
5107 { { ac_try
="$ac_link"
5109 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5110 *) ac_try_echo=$ac_try;;
5112 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5113 $as_echo "$ac_try_echo"; } >&5
5114 (eval "$ac_link") 2>&5
5116 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5117 test $ac_status = 0; }
5118 if { ac_try='./conftest$ac_cv_exeext'
5119 { { case "(($ac_try" in
5120 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5121 *) ac_try_echo
=$ac_try;;
5123 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5124 $as_echo "$ac_try_echo"; } >&5
5125 (eval "$ac_try") 2>&5
5127 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5128 test $ac_status = 0; }; }; then
5131 if test "$cross_compiling" = maybe
; then
5134 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5135 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5136 as_fn_error
"cannot run C compiled programs.
5137 If you meant to cross compile, use \`--host'.
5138 See \`config.log' for more details." "$LINENO" 5; }
5142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5143 $as_echo "$cross_compiling" >&6; }
5145 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
5146 ac_clean_files
=$ac_clean_files_save
5147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
5148 $as_echo_n "checking for suffix of object files... " >&6; }
5149 if test "${ac_cv_objext+set}" = set; then :
5150 $as_echo_n "(cached) " >&6
5152 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5153 /* end confdefs.h. */
5163 rm -f conftest.o conftest.obj
5164 if { { ac_try
="$ac_compile"
5166 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5167 *) ac_try_echo=$ac_try;;
5169 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5170 $as_echo "$ac_try_echo"; } >&5
5171 (eval "$ac_compile") 2>&5
5173 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5174 test $ac_status = 0; }; then :
5175 for ac_file in conftest.o conftest.obj conftest.*; do
5176 test -f "$ac_file" || continue;
5178 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5179 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5184 $as_echo "$as_me: failed program was:" >&5
5185 sed 's/^/| /' conftest.$ac_ext >&5
5187 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5188 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5189 as_fn_error "cannot compute suffix of object files
: cannot compile
5190 See \
`config.log' for more details." "$LINENO" 5; }
5192 rm -f conftest.$ac_cv_objext conftest.$ac_ext
5194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5195 $as_echo "$ac_cv_objext" >&6; }
5196 OBJEXT=$ac_cv_objext
5198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5199 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5200 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5201 $as_echo_n "(cached) " >&6
5203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5204 /* end confdefs.h. */
5217 if ac_fn_c_try_compile "$LINENO"; then :
5222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5223 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5227 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5228 if test $ac_compiler_gnu = yes; then
5233 ac_test_CFLAGS=${CFLAGS+set}
5234 ac_save_CFLAGS=$CFLAGS
5235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5236 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5237 if test "${ac_cv_prog_cc_g+set}" = set; then :
5238 $as_echo_n "(cached) " >&6
5240 ac_save_c_werror_flag=$ac_c_werror_flag
5241 ac_c_werror_flag=yes
5244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5245 /* end confdefs.h. */
5255 if ac_fn_c_try_compile "$LINENO"; then :
5259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5260 /* end confdefs.h. */
5270 if ac_fn_c_try_compile "$LINENO"; then :
5273 ac_c_werror_flag=$ac_save_c_werror_flag
5275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5276 /* end confdefs.h. */
5286 if ac_fn_c_try_compile "$LINENO"; then :
5289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5294 ac_c_werror_flag=$ac_save_c_werror_flag
5296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5297 $as_echo "$ac_cv_prog_cc_g" >&6; }
5298 if test "$ac_test_CFLAGS" = set; then
5299 CFLAGS=$ac_save_CFLAGS
5300 elif test $ac_cv_prog_cc_g = yes; then
5301 if test "$GCC" = yes; then
5307 if test "$GCC" = yes; then
5313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5314 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5315 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5316 $as_echo_n "(cached) " >&6
5318 ac_cv_prog_cc_c89=no
5320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5321 /* end confdefs.h. */
5324 #include <sys/types.h>
5325 #include <sys/stat.h>
5326 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5327 struct buf { int x; };
5328 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5329 static char *e (p, i)
5335 static char *f (char * (*g) (char **, int), char **p, ...)
5340 s = g (p, va_arg (v,int));
5345 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5346 function prototypes and stuff, but not '\xHH' hex character constants.
5347 These don't provoke an error unfortunately, instead are silently treated
5348 as 'x'. The following induces an error, until -std is added to get
5349 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5350 array size at least. It's necessary to write '\x00'==0 to get something
5351 that's true only with -std. */
5352 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5354 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5355 inside strings and character constants. */
5357 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5359 int test (int i, double x);
5360 struct s1 {int (*f) (int a);};
5361 struct s2 {int (*f) (double a);};
5362 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5368 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5373 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5374 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5376 CC="$ac_save_CC $ac_arg"
5377 if ac_fn_c_try_compile "$LINENO"; then :
5378 ac_cv_prog_cc_c89=$ac_arg
5380 rm -f core conftest.err conftest.$ac_objext
5381 test "x$ac_cv_prog_cc_c89" != "xno" && break
5383 rm -f conftest.$ac_ext
5388 case "x$ac_cv_prog_cc_c89" in
5390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5391 $as_echo "none needed" >&6; } ;;
5393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5394 $as_echo "unsupported" >&6; } ;;
5396 CC="$CC $ac_cv_prog_cc_c89"
5397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5398 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5400 if test "x$ac_cv_prog_cc_c89" != xno; then :
5405 ac_cpp='$CPP $CPPFLAGS'
5406 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5407 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5408 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5409 DEPDIR="${am__leading_dot}deps"
5411 ac_config_commands="$ac_config_commands depfiles"
5414 am_make=${MAKE-make}
5415 cat > confinc << 'END'
5417 @echo this is the am__doit target
5420 # If we don't find an include directive, just comment out the code.
5421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
5422 $as_echo_n "checking for style of include used by $am_make... " >&6; }
5426 # First try GNU make style include.
5427 echo "include confinc" > confmf
5428 # Ignore all kinds of additional output from `make'.
5429 case `$am_make -s -f confmf 2> /dev/null` in #(
5430 *the\ am__doit\ target*)
5436 # Now try BSD make style include.
5437 if test "$am__include" = "#"; then
5438 echo '.include
"confinc"' > confmf
5439 case `$am_make -s -f confmf 2> /dev/null` in #(
5440 *the\ am__doit\ target*)
5441 am__include=.include
5449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5450 $as_echo "$_am_result" >&6; }
5451 rm -f confinc confmf
5453 # Check whether --enable-dependency-tracking was given.
5454 if test "${enable_dependency_tracking+set}" = set; then :
5455 enableval=$enable_dependency_tracking;
5458 if test "x$enable_dependency_tracking" != xno; then
5459 am_depcomp="$ac_aux_dir/depcomp"
5462 if test "x$enable_dependency_tracking" != xno
; then
5472 depcc
="$CC" am_compiler_list
=
5474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5475 $as_echo_n "checking dependency style of $depcc... " >&6; }
5476 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5477 $as_echo_n "(cached) " >&6
5479 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5480 # We make a subdir and do the tests there. Otherwise we can end up
5481 # making bogus files that we don't know about and never remove. For
5482 # instance it was reported that on HP-UX the gcc test will end up
5483 # making a dummy file named `D' -- because `-MD' means `put the output
5486 # Copy depcomp to subdir because otherwise we won't find it if we're
5487 # using a relative directory.
5488 cp "$am_depcomp" conftest.dir
5490 # We will build objects and dependencies in a subdirectory because
5491 # it helps to detect inapplicable dependency modes. For instance
5492 # both Tru64's cc and ICC support -MD to output dependencies as a
5493 # side effect of compilation, but ICC will put the dependencies in
5494 # the current directory while Tru64 will put them in the object
5498 am_cv_CC_dependencies_compiler_type
=none
5499 if test "$am_compiler_list" = ""; then
5500 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5503 case " $depcc " in #(
5504 *\
-arch\
*\
-arch\
*) am__universal
=true
;;
5507 for depmode
in $am_compiler_list; do
5508 # Setup a source with many dependencies, because some compilers
5509 # like to wrap large dependency lists on column 80 (with \), and
5510 # we should not choose a depcomp mode which is confused by this.
5512 # We need to recreate these files for each test, as the compiler may
5513 # overwrite some of them when testing with obscure command lines.
5514 # This happens at least with the AIX C compiler.
5516 for i
in 1 2 3 4 5 6; do
5517 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
5518 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5519 # Solaris 8's {/usr,}/bin/sh.
5520 touch sub
/conftst
$i.h
5522 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5524 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5525 # mode. It turns out that the SunPro C++ compiler does not properly
5526 # handle `-M -o', and we need to detect this. Also, some Intel
5527 # versions had trouble with output in subdirs
5528 am__obj
=sub
/conftest.
${OBJEXT-o}
5529 am__minus_obj
="-o $am__obj"
5532 # This depmode causes a compiler race in universal mode.
5533 test "$am__universal" = false ||
continue
5536 # after this tag, mechanisms are not by side-effect, so they'll
5537 # only be used when explicitly requested
5538 if test "x$enable_dependency_tracking" = xyes
; then
5544 msvisualcpp | msvcmsys
)
5545 # This compiler won't grok `-c -o', but also, the minuso test has
5546 # not run yet. These depmodes are late enough in the game, and
5547 # so weak that their functioning should not be impacted.
5548 am__obj
=conftest.
${OBJEXT-o}
5553 if depmode
=$depmode \
5554 source=sub
/conftest.c object
=$am__obj \
5555 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
5556 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
5557 >/dev
/null
2>conftest.err
&&
5558 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
5559 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
5560 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
5561 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
5562 # icc doesn't choke on unknown options, it will just issue warnings
5563 # or remarks (even with -Werror). So we grep stderr for any message
5564 # that says an option was ignored or not supported.
5565 # When given -MP, icc 7.0 and 7.1 complain thusly:
5566 # icc: Command line warning: ignoring option '-M'; no argument required
5567 # The diagnosis changed in icc 8.0:
5568 # icc: Command line remark: option '-MP' not supported
5569 if (grep 'ignoring option' conftest.err ||
5570 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
5571 am_cv_CC_dependencies_compiler_type
=$depmode
5580 am_cv_CC_dependencies_compiler_type
=none
5584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5585 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5586 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
5589 test "x$enable_dependency_tracking" != xno \
5590 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
5592 am__fastdepCC_FALSE
='#'
5594 am__fastdepCC_TRUE
='#'
5595 am__fastdepCC_FALSE
=
5599 if test "x$CC" != xcc
; then
5600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5601 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5604 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5606 set dummy
$CC; ac_cc
=`$as_echo "$2" |
5607 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5608 if { as_var
=ac_cv_prog_cc_
${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
5609 $as_echo_n "(cached) " >&6
5611 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5612 /* end confdefs.h. */
5622 # Make sure it works both with $CC and with simple cc.
5623 # We do the test twice because some compilers refuse to overwrite an
5624 # existing .o file with -o, though they will create one.
5625 ac_try
='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5627 if { { case "(($ac_try" in
5628 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5629 *) ac_try_echo=$ac_try;;
5631 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5632 $as_echo "$ac_try_echo"; } >&5
5633 (eval "$ac_try") 2>&5
5635 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5636 test $ac_status = 0; } &&
5637 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5638 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5639 *) ac_try_echo
=$ac_try;;
5641 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5642 $as_echo "$ac_try_echo"; } >&5
5643 (eval "$ac_try") 2>&5
5645 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5646 test $ac_status = 0; };
5648 eval ac_cv_prog_cc_
${ac_cc}_c_o
=yes
5649 if test "x$CC" != xcc
; then
5650 # Test first that cc exists at all.
5651 if { ac_try
='cc -c conftest.$ac_ext >&5'
5652 { { case "(($ac_try" in
5653 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5654 *) ac_try_echo=$ac_try;;
5656 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5657 $as_echo "$ac_try_echo"; } >&5
5658 (eval "$ac_try") 2>&5
5660 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5661 test $ac_status = 0; }; }; then
5662 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5664 if { { case "(($ac_try" in
5665 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5666 *) ac_try_echo
=$ac_try;;
5668 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5669 $as_echo "$ac_try_echo"; } >&5
5670 (eval "$ac_try") 2>&5
5672 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5673 test $ac_status = 0; } &&
5674 test -f conftest2.
$ac_objext && { { case "(($ac_try" in
5675 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5676 *) ac_try_echo=$ac_try;;
5678 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5679 $as_echo "$ac_try_echo"; } >&5
5680 (eval "$ac_try") 2>&5
5682 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5683 test $ac_status = 0; };
5688 # cc exists but doesn't like -o.
5689 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5694 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5696 rm -f core conftest*
5699 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5701 $as_echo "yes" >&6; }
5703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5704 $as_echo "no" >&6; }
5706 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5710 # FIXME: we rely on the cache variable name because
5711 # there is no other way.
5713 am_cc=`echo $2 |
sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5714 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5715 if test "$am_t" != yes; then
5716 # Losing compiler, so override with the script.
5717 # FIXME: It is wrong to rewrite CC.
5718 # But if we don't then we get into trouble of one sort or another.
5719 # A longer-term fix would be to have automake use am__CC in this case,
5720 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5721 CC="$am_aux_dir/compile $CC"
5726 if test x$GCC = xyes; then
5727 test "x$GCC_TEST_OPTIONS" != x && CC="$CC $GCC_TEST_OPTIONS"
5729 test "x$NON_GCC_TEST_OPTIONS" != x && CC="$CC $NON_GCC_TEST_OPTIONS"
5732 # Initialize gnulib right after choosing the compiler.
5735 ac_cpp='$CPP $CPPFLAGS'
5736 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5737 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5738 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5740 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5741 # On Suns, sometimes $CPP names a directory.
5742 if test -n "$CPP" && test -d "$CPP"; then
5745 if test -z "$CPP"; then
5746 if test "${ac_cv_prog_CPP+set}" = set; then :
5747 $as_echo_n "(cached) " >&6
5749 # Double quotes because CPP needs to be expanded
5750 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5753 for ac_c_preproc_warn_flag in '' yes
5755 # Use a header file that comes with gcc, so configuring glibc
5756 # with a fresh cross-compiler works.
5757 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5758 # <limits.h> exists even on freestanding compilers.
5759 # On the NeXT, cc -E runs the code through the compiler's parser,
5760 # not just through cpp. "Syntax error" is here to catch this case.
5761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5762 /* end confdefs.h. */
5764 # include <limits.h>
5766 # include <assert.h>
5770 if ac_fn_c_try_cpp "$LINENO"; then :
5773 # Broken: fails on valid input.
5776 rm -f conftest.err conftest.$ac_ext
5778 # OK, works on sane cases. Now check whether nonexistent headers
5779 # can be detected and how.
5780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5781 /* end confdefs.h. */
5782 #include <ac_nonexistent.h>
5784 if ac_fn_c_try_cpp "$LINENO"; then :
5785 # Broken: success on invalid input.
5788 # Passes both tests.
5792 rm -f conftest.err conftest.$ac_ext
5795 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5796 rm -f conftest.err conftest.
$ac_ext
5797 if $ac_preproc_ok; then :
5809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5810 $as_echo "$CPP" >&6; }
5812 for ac_c_preproc_warn_flag
in '' yes
5814 # Use a header file that comes with gcc, so configuring glibc
5815 # with a fresh cross-compiler works.
5816 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5817 # <limits.h> exists even on freestanding compilers.
5818 # On the NeXT, cc -E runs the code through the compiler's parser,
5819 # not just through cpp. "Syntax error" is here to catch this case.
5820 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5821 /* end confdefs.h. */
5823 # include <limits.h>
5825 # include <assert.h>
5829 if ac_fn_c_try_cpp
"$LINENO"; then :
5832 # Broken: fails on valid input.
5835 rm -f conftest.err conftest.
$ac_ext
5837 # OK, works on sane cases. Now check whether nonexistent headers
5838 # can be detected and how.
5839 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5840 /* end confdefs.h. */
5841 #include <ac_nonexistent.h>
5843 if ac_fn_c_try_cpp
"$LINENO"; then :
5844 # Broken: success on invalid input.
5847 # Passes both tests.
5851 rm -f conftest.err conftest.
$ac_ext
5854 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5855 rm -f conftest.err conftest.
$ac_ext
5856 if $ac_preproc_ok; then :
5859 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5860 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5861 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
5862 See \`config.log' for more details." "$LINENO" 5; }
5866 ac_cpp
='$CPP $CPPFLAGS'
5867 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5868 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5869 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5873 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5874 if test "${ac_cv_path_GREP+set}" = set; then :
5875 $as_echo_n "(cached) " >&6
5877 if test -z "$GREP"; then
5878 ac_path_GREP_found
=false
5879 # Loop through the user's path and test for each of PROGNAME-LIST
5880 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5881 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5884 test -z "$as_dir" && as_dir
=.
5885 for ac_prog
in grep ggrep
; do
5886 for ac_exec_ext
in '' $ac_executable_extensions; do
5887 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
5888 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
5889 # Check for GNU ac_path_GREP and select it if it is found.
5890 # Check for GNU $ac_path_GREP
5891 case `"$ac_path_GREP" --version 2>&1` in
5893 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
5896 $as_echo_n 0123456789 >"conftest.in"
5899 cat "conftest.in" "conftest.in" >"conftest.tmp"
5900 mv "conftest.tmp" "conftest.in"
5901 cp "conftest.in" "conftest.nl"
5902 $as_echo 'GREP' >> "conftest.nl"
5903 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5904 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5905 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5906 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5907 # Best one so far, save it but keep looking for a better one
5908 ac_cv_path_GREP
="$ac_path_GREP"
5909 ac_path_GREP_max
=$ac_count
5911 # 10*(2^10) chars as input seems more than enough
5912 test $ac_count -gt 10 && break
5914 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5917 $ac_path_GREP_found && break 3
5922 if test -z "$ac_cv_path_GREP"; then
5923 as_fn_error
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5926 ac_cv_path_GREP
=$GREP
5930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5931 $as_echo "$ac_cv_path_GREP" >&6; }
5932 GREP
="$ac_cv_path_GREP"
5935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5936 $as_echo_n "checking for egrep... " >&6; }
5937 if test "${ac_cv_path_EGREP+set}" = set; then :
5938 $as_echo_n "(cached) " >&6
5940 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
5941 then ac_cv_path_EGREP
="$GREP -E"
5943 if test -z "$EGREP"; then
5944 ac_path_EGREP_found
=false
5945 # Loop through the user's path and test for each of PROGNAME-LIST
5946 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5947 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5950 test -z "$as_dir" && as_dir
=.
5951 for ac_prog
in egrep; do
5952 for ac_exec_ext
in '' $ac_executable_extensions; do
5953 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
5954 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
5955 # Check for GNU ac_path_EGREP and select it if it is found.
5956 # Check for GNU $ac_path_EGREP
5957 case `"$ac_path_EGREP" --version 2>&1` in
5959 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
5962 $as_echo_n 0123456789 >"conftest.in"
5965 cat "conftest.in" "conftest.in" >"conftest.tmp"
5966 mv "conftest.tmp" "conftest.in"
5967 cp "conftest.in" "conftest.nl"
5968 $as_echo 'EGREP' >> "conftest.nl"
5969 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5970 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5971 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5972 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5973 # Best one so far, save it but keep looking for a better one
5974 ac_cv_path_EGREP
="$ac_path_EGREP"
5975 ac_path_EGREP_max
=$ac_count
5977 # 10*(2^10) chars as input seems more than enough
5978 test $ac_count -gt 10 && break
5980 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5983 $ac_path_EGREP_found && break 3
5988 if test -z "$ac_cv_path_EGREP"; then
5989 as_fn_error
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5992 ac_cv_path_EGREP
=$EGREP
5997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5998 $as_echo "$ac_cv_path_EGREP" >&6; }
5999 EGREP
="$ac_cv_path_EGREP"
6004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
6005 $as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
6006 if test "${gl_cv_c_amsterdam_compiler+set}" = set; then :
6007 $as_echo_n "(cached) " >&6
6010 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6011 /* end confdefs.h. */
6018 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6019 $EGREP "Amsterdam" >/dev
/null
2>&1; then :
6020 gl_cv_c_amsterdam_compiler
=yes
6022 gl_cv_c_amsterdam_compiler
=no
6028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
6029 $as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
6030 if test -z "$AR"; then
6031 if test $gl_cv_c_amsterdam_compiler = yes; then
6033 if test -z "$ARFLAGS"; then
6037 if test -n "$ac_tool_prefix"; then
6038 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6039 set dummy
${ac_tool_prefix}ar; ac_word
=$2
6040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6041 $as_echo_n "checking for $ac_word... " >&6; }
6042 if test "${ac_cv_prog_AR+set}" = set; then :
6043 $as_echo_n "(cached) " >&6
6045 if test -n "$AR"; then
6046 ac_cv_prog_AR
="$AR" # Let the user override the test.
6048 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6052 test -z "$as_dir" && as_dir
=.
6053 for ac_exec_ext
in '' $ac_executable_extensions; do
6054 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6055 ac_cv_prog_AR
="${ac_tool_prefix}ar"
6056 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6066 if test -n "$AR"; then
6067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6068 $as_echo "$AR" >&6; }
6070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6071 $as_echo "no" >&6; }
6076 if test -z "$ac_cv_prog_AR"; then
6078 # Extract the first word of "ar", so it can be a program name with args.
6079 set dummy
ar; ac_word
=$2
6080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6081 $as_echo_n "checking for $ac_word... " >&6; }
6082 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6083 $as_echo_n "(cached) " >&6
6085 if test -n "$ac_ct_AR"; then
6086 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
6088 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6092 test -z "$as_dir" && as_dir
=.
6093 for ac_exec_ext
in '' $ac_executable_extensions; do
6094 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6095 ac_cv_prog_ac_ct_AR
="ar"
6096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6105 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
6106 if test -n "$ac_ct_AR"; then
6107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6108 $as_echo "$ac_ct_AR" >&6; }
6110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6111 $as_echo "no" >&6; }
6114 if test "x$ac_ct_AR" = x
; then
6117 case $cross_compiling:$ac_tool_warned in
6119 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6120 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6121 ac_tool_warned
=yes ;;
6129 if test -z "$ARFLAGS"; then
6134 if test -z "$ARFLAGS"; then
6140 if test -z "$RANLIB"; then
6141 if test $gl_cv_c_amsterdam_compiler = yes; then
6144 if test -n "$ac_tool_prefix"; then
6145 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6146 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
6147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6148 $as_echo_n "checking for $ac_word... " >&6; }
6149 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6150 $as_echo_n "(cached) " >&6
6152 if test -n "$RANLIB"; then
6153 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
6155 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6159 test -z "$as_dir" && as_dir
=.
6160 for ac_exec_ext
in '' $ac_executable_extensions; do
6161 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6162 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
6163 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6172 RANLIB
=$ac_cv_prog_RANLIB
6173 if test -n "$RANLIB"; then
6174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6175 $as_echo "$RANLIB" >&6; }
6177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6178 $as_echo "no" >&6; }
6183 if test -z "$ac_cv_prog_RANLIB"; then
6184 ac_ct_RANLIB
=$RANLIB
6185 # Extract the first word of "ranlib", so it can be a program name with args.
6186 set dummy ranlib
; ac_word
=$2
6187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6188 $as_echo_n "checking for $ac_word... " >&6; }
6189 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6190 $as_echo_n "(cached) " >&6
6192 if test -n "$ac_ct_RANLIB"; then
6193 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
6195 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6199 test -z "$as_dir" && as_dir
=.
6200 for ac_exec_ext
in '' $ac_executable_extensions; do
6201 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6202 ac_cv_prog_ac_ct_RANLIB
="ranlib"
6203 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6212 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
6213 if test -n "$ac_ct_RANLIB"; then
6214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6215 $as_echo "$ac_ct_RANLIB" >&6; }
6217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6218 $as_echo "no" >&6; }
6221 if test "x$ac_ct_RANLIB" = x
; then
6224 case $cross_compiling:$ac_tool_warned in
6226 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6227 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6228 ac_tool_warned
=yes ;;
6230 RANLIB
=$ac_ct_RANLIB
6233 RANLIB
="$ac_cv_prog_RANLIB"
6240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6241 $as_echo_n "checking for ANSI C header files... " >&6; }
6242 if test "${ac_cv_header_stdc+set}" = set; then :
6243 $as_echo_n "(cached) " >&6
6245 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6246 /* end confdefs.h. */
6260 if ac_fn_c_try_compile
"$LINENO"; then :
6261 ac_cv_header_stdc
=yes
6263 ac_cv_header_stdc
=no
6265 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6267 if test $ac_cv_header_stdc = yes; then
6268 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6269 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6270 /* end confdefs.h. */
6274 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6275 $EGREP "memchr" >/dev
/null
2>&1; then :
6278 ac_cv_header_stdc
=no
6284 if test $ac_cv_header_stdc = yes; then
6285 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6286 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6287 /* end confdefs.h. */
6291 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6292 $EGREP "free" >/dev
/null
2>&1; then :
6295 ac_cv_header_stdc
=no
6301 if test $ac_cv_header_stdc = yes; then
6302 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6303 if test "$cross_compiling" = yes; then :
6306 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6307 /* end confdefs.h. */
6310 #if ((' ' & 0x0FF) == 0x020)
6311 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6312 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6314 # define ISLOWER(c) \
6315 (('a' <= (c) && (c) <= 'i') \
6316 || ('j' <= (c) && (c) <= 'r') \
6317 || ('s' <= (c) && (c) <= 'z'))
6318 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6321 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6326 for (i = 0; i < 256; i++)
6327 if (XOR (islower (i), ISLOWER (i))
6328 || toupper (i) != TOUPPER (i))
6333 if ac_fn_c_try_run
"$LINENO"; then :
6336 ac_cv_header_stdc
=no
6338 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6339 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6345 $as_echo "$ac_cv_header_stdc" >&6; }
6346 if test $ac_cv_header_stdc = yes; then
6348 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6352 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6353 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
6354 inttypes.h stdint.h unistd.h
6356 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6357 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6359 eval as_val
=\$
$as_ac_Header
6360 if test "x$as_val" = x
""yes; then :
6361 cat >>confdefs.h
<<_ACEOF
6362 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6373 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
6374 if test "x$ac_cv_header_minix_config_h" = x
""yes; then :
6381 if test "$MINIX" = yes; then
6383 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
6386 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
6389 $as_echo "#define _MINIX 1" >>confdefs.h
6396 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
6402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
6403 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
6404 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
6405 $as_echo_n "(cached) " >&6
6407 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6408 /* end confdefs.h. */
6410 # define __EXTENSIONS__ 1
6411 $ac_includes_default
6420 if ac_fn_c_try_compile
"$LINENO"; then :
6421 ac_cv_safe_to_define___extensions__
=yes
6423 ac_cv_safe_to_define___extensions__
=no
6425 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
6428 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6429 test $ac_cv_safe_to_define___extensions__ = yes &&
6430 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
6432 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6434 $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
6436 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
6438 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6440 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
6449 # Check whether --enable-largefile was given.
6450 if test "${enable_largefile+set}" = set; then :
6451 enableval
=$enable_largefile;
6454 if test "$enable_largefile" != no
; then
6456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6457 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6458 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
6459 $as_echo_n "(cached) " >&6
6461 ac_cv_sys_largefile_CC
=no
6462 if test "$GCC" != yes; then
6465 # IRIX 6.2 and later do not support large files by default,
6466 # so use the C compiler's -n32 option if that helps.
6467 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6468 /* end confdefs.h. */
6469 #include <sys/types.h>
6470 /* Check that off_t can represent 2**63 - 1 correctly.
6471 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6472 since some C++ compilers masquerading as C compilers
6473 incorrectly reject 9223372036854775807. */
6474 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6475 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6476 && LARGE_OFF_T % 2147483647 == 1)
6486 if ac_fn_c_try_compile
"$LINENO"; then :
6489 rm -f core conftest.err conftest.
$ac_objext
6491 if ac_fn_c_try_compile
"$LINENO"; then :
6492 ac_cv_sys_largefile_CC
=' -n32'; break
6494 rm -f core conftest.err conftest.
$ac_objext
6498 rm -f conftest.
$ac_ext
6501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6502 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6503 if test "$ac_cv_sys_largefile_CC" != no
; then
6504 CC
=$CC$ac_cv_sys_largefile_CC
6507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6508 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6509 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
6510 $as_echo_n "(cached) " >&6
6513 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6514 /* end confdefs.h. */
6515 #include <sys/types.h>
6516 /* Check that off_t can represent 2**63 - 1 correctly.
6517 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6518 since some C++ compilers masquerading as C compilers
6519 incorrectly reject 9223372036854775807. */
6520 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6521 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6522 && LARGE_OFF_T % 2147483647 == 1)
6532 if ac_fn_c_try_compile
"$LINENO"; then :
6533 ac_cv_sys_file_offset_bits
=no
; break
6535 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6536 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6537 /* end confdefs.h. */
6538 #define _FILE_OFFSET_BITS 64
6539 #include <sys/types.h>
6540 /* Check that off_t can represent 2**63 - 1 correctly.
6541 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6542 since some C++ compilers masquerading as C compilers
6543 incorrectly reject 9223372036854775807. */
6544 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6545 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6546 && LARGE_OFF_T % 2147483647 == 1)
6556 if ac_fn_c_try_compile
"$LINENO"; then :
6557 ac_cv_sys_file_offset_bits
=64; break
6559 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6560 ac_cv_sys_file_offset_bits
=unknown
6564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6565 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6566 case $ac_cv_sys_file_offset_bits in #(
6569 cat >>confdefs.h
<<_ACEOF
6570 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6575 if test $ac_cv_sys_file_offset_bits = unknown
; then
6576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6577 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6578 if test "${ac_cv_sys_large_files+set}" = set; then :
6579 $as_echo_n "(cached) " >&6
6582 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6583 /* end confdefs.h. */
6584 #include <sys/types.h>
6585 /* Check that off_t can represent 2**63 - 1 correctly.
6586 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6587 since some C++ compilers masquerading as C compilers
6588 incorrectly reject 9223372036854775807. */
6589 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6590 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6591 && LARGE_OFF_T % 2147483647 == 1)
6601 if ac_fn_c_try_compile
"$LINENO"; then :
6602 ac_cv_sys_large_files
=no
; break
6604 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6605 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6606 /* end confdefs.h. */
6607 #define _LARGE_FILES 1
6608 #include <sys/types.h>
6609 /* Check that off_t can represent 2**63 - 1 correctly.
6610 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6611 since some C++ compilers masquerading as C compilers
6612 incorrectly reject 9223372036854775807. */
6613 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6614 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6615 && LARGE_OFF_T % 2147483647 == 1)
6625 if ac_fn_c_try_compile
"$LINENO"; then :
6626 ac_cv_sys_large_files
=1; break
6628 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6629 ac_cv_sys_large_files
=unknown
6633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6634 $as_echo "$ac_cv_sys_large_files" >&6; }
6635 case $ac_cv_sys_large_files in #(
6638 cat >>confdefs.h
<<_ACEOF
6639 #define _LARGE_FILES $ac_cv_sys_large_files
6649 case $ac_cv_prog_cc_stdc in #(
6651 ac_cv_prog_cc_c99
=no
; ac_cv_prog_cc_c89
=no
;; #(
6653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
6654 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
6655 if test "${ac_cv_prog_cc_c99+set}" = set; then :
6656 $as_echo_n "(cached) " >&6
6658 ac_cv_prog_cc_c99
=no
6660 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6661 /* end confdefs.h. */
6663 #include <stdbool.h>
6668 // Check varargs macros. These examples are taken from C99 6.10.3.5.
6669 #define debug(...) fprintf (stderr, __VA_ARGS__)
6670 #define showlist(...) puts (#__VA_ARGS__)
6671 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6673 test_varargs_macros (void)
6678 debug ("X = %d\n", x);
6679 showlist (The first, second, and third items.);
6680 report (x>y, "x is %d but y is %d", x, y);
6683 // Check long long types.
6684 #define BIG64 18446744073709551615ull
6685 #define BIG32 4294967295ul
6686 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6688 your preprocessor is broken;
6692 your preprocessor is broken;
6694 static long long int bignum = -9223372036854775807LL;
6695 static unsigned long long int ubignum = BIG64;
6697 struct incomplete_array
6705 const wchar_t *name;
6709 typedef const char *ccp;
6712 test_restrict (ccp restrict text)
6714 // See if C++-style comments work.
6715 // Iterate through items via the restricted pointer.
6716 // Also check for declarations in for loops.
6717 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6722 // Check varargs and va_copy.
6724 test_varargs (const char *format, ...)
6727 va_start (args, format);
6729 va_copy (args_copy, args);
6740 str = va_arg (args_copy, const char *);
6743 number = va_arg (args_copy, int);
6746 fnumber = va_arg (args_copy, double);
6761 _Bool success = false;
6764 if (test_restrict ("String literal") == 0)
6766 char *restrict newvar = "Another string";
6769 test_varargs ("s, d' f .", "string", 65, 34.234);
6770 test_varargs_macros ();
6772 // Check flexible array members.
6773 struct incomplete_array *ia =
6774 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6776 for (int i = 0; i < ia->datasize; ++i)
6777 ia->data[i] = i * 1.234;
6779 // Check named initializers.
6780 struct named_init ni = {
6782 .name = L"Test wide string",
6783 .average = 543.34343,
6788 int dynamic_array[ni.number];
6789 dynamic_array[ni.number - 1] = 543;
6791 // work around unused variable warnings
6792 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
6793 || dynamic_array[ni.number - 1] != 543);
6799 for ac_arg
in '' -std=gnu99
-std=c99
-c99 -AC99 -xc99=all
-qlanglvl=extc99
6801 CC
="$ac_save_CC $ac_arg"
6802 if ac_fn_c_try_compile
"$LINENO"; then :
6803 ac_cv_prog_cc_c99
=$ac_arg
6805 rm -f core conftest.err conftest.
$ac_objext
6806 test "x$ac_cv_prog_cc_c99" != "xno" && break
6808 rm -f conftest.
$ac_ext
6813 case "x$ac_cv_prog_cc_c99" in
6815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6816 $as_echo "none needed" >&6; } ;;
6818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6819 $as_echo "unsupported" >&6; } ;;
6821 CC
="$CC $ac_cv_prog_cc_c99"
6822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
6823 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
6825 if test "x$ac_cv_prog_cc_c99" != xno
; then :
6826 ac_cv_prog_cc_stdc
=$ac_cv_prog_cc_c99
6828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6829 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6830 if test "${ac_cv_prog_cc_c89+set}" = set; then :
6831 $as_echo_n "(cached) " >&6
6833 ac_cv_prog_cc_c89
=no
6835 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6836 /* end confdefs.h. */
6839 #include <sys/types.h>
6840 #include <sys/stat.h>
6841 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6842 struct buf { int x; };
6843 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6844 static char *e (p, i)
6850 static char *f (char * (*g) (char **, int), char **p, ...)
6855 s = g (p, va_arg (v,int));
6860 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6861 function prototypes and stuff, but not '\xHH' hex character constants.
6862 These don't provoke an error unfortunately, instead are silently treated
6863 as 'x'. The following induces an error, until -std is added to get
6864 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6865 array size at least. It's necessary to write '\x00'==0 to get something
6866 that's true only with -std. */
6867 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6869 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6870 inside strings and character constants. */
6872 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6874 int test (int i, double x);
6875 struct s1 {int (*f) (int a);};
6876 struct s2 {int (*f) (double a);};
6877 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6883 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6888 for ac_arg
in '' -qlanglvl=extc89
-qlanglvl=ansi
-std \
6889 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6891 CC
="$ac_save_CC $ac_arg"
6892 if ac_fn_c_try_compile
"$LINENO"; then :
6893 ac_cv_prog_cc_c89
=$ac_arg
6895 rm -f core conftest.err conftest.
$ac_objext
6896 test "x$ac_cv_prog_cc_c89" != "xno" && break
6898 rm -f conftest.
$ac_ext
6903 case "x$ac_cv_prog_cc_c89" in
6905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6906 $as_echo "none needed" >&6; } ;;
6908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6909 $as_echo "unsupported" >&6; } ;;
6911 CC
="$CC $ac_cv_prog_cc_c89"
6912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6913 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6915 if test "x$ac_cv_prog_cc_c89" != xno
; then :
6916 ac_cv_prog_cc_stdc
=$ac_cv_prog_cc_c89
6918 ac_cv_prog_cc_stdc
=no
6924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
6925 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
6926 if test "${ac_cv_prog_cc_stdc+set}" = set; then :
6927 $as_echo_n "(cached) " >&6
6930 case $ac_cv_prog_cc_stdc in #(
6932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6933 $as_echo "unsupported" >&6; } ;; #(
6935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6936 $as_echo "none needed" >&6; } ;; #(
6938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
6939 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
6944 # Code from module alloca-opt:
6945 # Code from module allocator:
6946 # Code from module c-ctype:
6947 # Code from module c-strcase:
6948 # Code from module careadlinkat:
6949 # Code from module clock-time:
6950 # Code from module crypto/md5:
6951 # Code from module crypto/sha1:
6952 # Code from module crypto/sha256:
6953 # Code from module crypto/sha512:
6954 # Code from module dosname:
6955 # Code from module dtoastr:
6956 # Code from module dtotimespec:
6957 # Code from module dup2:
6958 # Code from module environ:
6959 # Code from module extensions:
6961 # Code from module extern-inline:
6962 # Code from module filemode:
6963 # Code from module getloadavg:
6964 # Code from module getopt-gnu:
6965 # Code from module getopt-posix:
6966 # Code from module gettext-h:
6967 # Code from module gettime:
6968 # Code from module gettimeofday:
6969 # Code from module ignore-value:
6970 # Code from module include_next:
6971 # Code from module intprops:
6972 # Code from module inttypes-incomplete:
6973 # Code from module largefile:
6975 # Code from module lstat:
6976 # Code from module manywarnings:
6977 # Code from module mktime:
6978 # Code from module multiarch:
6979 # Code from module nocrash:
6980 # Code from module pathmax:
6981 # Code from module pselect:
6982 # Code from module pthread_sigmask:
6983 # Code from module readlink:
6984 # Code from module signal-h:
6985 # Code from module snippet/_Noreturn:
6986 # Code from module snippet/arg-nonnull:
6987 # Code from module snippet/c++defs:
6988 # Code from module snippet/warn-on-use:
6989 # Code from module socklen:
6990 # Code from module ssize_t:
6991 # Code from module stat:
6992 # Code from module stat-time:
6993 # Code from module stdalign:
6994 # Code from module stdarg:
6998 # Code from module stdbool:
6999 # Code from module stddef:
7000 # Code from module stdint:
7001 # Code from module stdio:
7002 # Code from module stdlib:
7003 # Code from module strftime:
7004 # Code from module strtoimax:
7005 # Code from module strtoll:
7006 # Code from module strtoull:
7007 # Code from module strtoumax:
7008 # Code from module symlink:
7009 # Code from module sys_select:
7010 # Code from module sys_stat:
7011 # Code from module sys_time:
7012 # Code from module time:
7013 # Code from module time_r:
7014 # Code from module timespec:
7015 # Code from module timespec-add:
7016 # Code from module timespec-sub:
7017 # Code from module u64:
7018 # Code from module unistd:
7019 # Code from module utimens:
7020 # Code from module verify:
7021 # Code from module warnings:
7024 # Check whether --enable-gcc-warnings was given.
7025 if test "${enable_gcc_warnings+set}" = set; then :
7026 enableval
=$enable_gcc_warnings; case $enableval in
7028 *) as_fn_error
"bad value $enableval for gcc-warnings option" "$LINENO" 5 ;;
7030 gl_gcc_warnings
=$enableval
7037 # Check whether --enable-link-time-optimization was given.
7038 if test "${enable_link_time_optimization+set}" = set; then :
7039 enableval
=$enable_link_time_optimization; if test "${enableval}" != "no"; then
7040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether link-time optimization is supported" >&5
7041 $as_echo_n "checking whether link-time optimization is supported... " >&6; }
7043 if test x
$GCC = xyes
; then
7044 CPUS
=`getconf _NPROCESSORS_ONLN 2>/dev/null`
7045 if test x
$CPUS != x
; then
7051 CFLAGS
="$CFLAGS $LTO"
7052 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7053 /* end confdefs.h. */
7063 if ac_fn_c_try_compile
"$LINENO"; then :
7064 ac_lto_supported
=yes
7068 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7069 CFLAGS
="$old_CFLAGS"
7071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_lto_supported" >&5
7072 $as_echo "$ac_lto_supported" >&6; }
7073 if test "$ac_lto_supported" = "yes"; then
7074 CFLAGS
="$CFLAGS $LTO"
7080 # gl_GCC_VERSION_IFELSE([major], [minor], [run-if-found], [run-if-not-found])
7081 # ------------------------------------------------
7082 # If $CPP is gcc-MAJOR.MINOR or newer, then run RUN-IF-FOUND.
7083 # Otherwise, run RUN-IF-NOT-FOUND.
7086 # When compiling with GCC, prefer -isystem to -I when including system
7087 # include files, to avoid generating useless diagnostics for the files.
7088 if test "$gl_gcc_warnings" != yes; then
7093 # This, $nw, is the list of warnings we disable.
7096 case $with_x_toolkit in
7097 lucid | athena | motif
)
7098 # Old toolkits mishandle 'const'.
7099 nw
="$nw -Wwrite-strings"
7102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Werror" >&5
7103 $as_echo_n "checking whether C compiler handles -Werror... " >&6; }
7104 if test "${gl_cv_warn_c__Werror+set}" = set; then :
7105 $as_echo_n "(cached) " >&6
7108 gl_save_compiler_FLAGS
="$CFLAGS"
7109 as_fn_append CFLAGS
" -Werror"
7110 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7111 /* end confdefs.h. */
7121 if ac_fn_c_try_compile
"$LINENO"; then :
7122 gl_cv_warn_c__Werror
=yes
7124 gl_cv_warn_c__Werror
=no
7126 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7127 CFLAGS
="$gl_save_compiler_FLAGS"
7130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Werror" >&5
7131 $as_echo "$gl_cv_warn_c__Werror" >&6; }
7132 if test "x$gl_cv_warn_c__Werror" = x
""yes; then :
7133 as_fn_append WERROR_CFLAGS
" -Werror"
7141 nw
="$nw -Waggregate-return" # anachronistic
7142 nw
="$nw -Wlong-long" # C90 is anachronistic
7143 nw
="$nw -Wc++-compat" # We don't care about C++ compilers
7144 nw
="$nw -Wundef" # Warns on '#if GNULIB_FOO' etc in gnulib
7145 nw
="$nw -Wtraditional" # Warns on #elif which we use often
7146 nw
="$nw -Wcast-qual" # Too many warnings for now
7147 nw
="$nw -Wconversion" # Too many warnings for now
7148 nw
="$nw -Wsystem-headers" # Don't let system headers trigger warnings
7149 nw
="$nw -Wsign-conversion" # Too many warnings for now
7150 nw
="$nw -Woverlength-strings" # Not a problem these days
7151 nw
="$nw -Wtraditional-conversion" # Too many warnings for now
7152 nw
="$nw -Wunreachable-code" # so buggy that it's now silently ignored
7153 nw
="$nw -Wpadded" # Our structs are not padded
7154 nw
="$nw -Wredundant-decls" # we regularly (re)declare functions
7155 nw
="$nw -Wlogical-op" # any use of fwrite provokes this
7156 nw
="$nw -Wformat-nonliteral" # we do this a lot
7157 nw
="$nw -Wvla" # warnings in gettext.h
7158 nw
="$nw -Wnested-externs" # use of XARGMATCH/verify_function__
7159 nw
="$nw -Wswitch-enum" # Too many warnings for now
7160 nw
="$nw -Wswitch-default" # Too many warnings for now
7161 nw
="$nw -Wfloat-equal" # warns about high-quality code
7162 nw
="$nw -Winline" # OK to ignore 'inline'
7163 nw
="$nw -Wsync-nand" # irrelevant here, and provokes ObjC warning
7164 nw
="$nw -Wunsafe-loop-optimizations" # OK to suppress unsafe optimizations
7166 # Emacs doesn't care about shadowing; see
7167 # <http://lists.gnu.org/archive/html/emacs-diffs/2011-11/msg00265.html>.
7170 # The following lines should be removable at some point.
7171 nw
="$nw -Wstack-protector"
7172 nw
="$nw -Wstrict-overflow"
7173 nw
="$nw -Wsuggest-attribute=pure"
7177 if test -n "$GCC"; then
7179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is supported" >&5
7180 $as_echo_n "checking whether -Wno-missing-field-initializers is supported... " >&6; }
7181 if test "${gl_cv_cc_nomfi_supported+set}" = set; then :
7182 $as_echo_n "(cached) " >&6
7185 gl_save_CFLAGS
="$CFLAGS"
7186 CFLAGS
="$CFLAGS -W -Werror -Wno-missing-field-initializers"
7187 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7188 /* end confdefs.h. */
7198 if ac_fn_c_try_compile
"$LINENO"; then :
7199 gl_cv_cc_nomfi_supported
=yes
7201 gl_cv_cc_nomfi_supported
=no
7203 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7204 CFLAGS
="$gl_save_CFLAGS"
7207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_supported" >&5
7208 $as_echo "$gl_cv_cc_nomfi_supported" >&6; }
7210 if test "$gl_cv_cc_nomfi_supported" = yes; then
7211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is needed" >&5
7212 $as_echo_n "checking whether -Wno-missing-field-initializers is needed... " >&6; }
7213 if test "${gl_cv_cc_nomfi_needed+set}" = set; then :
7214 $as_echo_n "(cached) " >&6
7217 gl_save_CFLAGS
="$CFLAGS"
7218 CFLAGS
="$CFLAGS -W -Werror"
7219 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7220 /* end confdefs.h. */
7223 typedef struct { int a; int b; } s_t;
7235 if ac_fn_c_try_compile
"$LINENO"; then :
7236 gl_cv_cc_nomfi_needed
=no
7238 gl_cv_cc_nomfi_needed
=yes
7240 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7241 CFLAGS
="$gl_save_CFLAGS"
7245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_needed" >&5
7246 $as_echo "$gl_cv_cc_nomfi_needed" >&6; }
7251 for gl_manywarn_item
in \
7255 -Wformat-nonliteral \
7258 -Wmissing-include-dirs \
7268 -Wtraditional-conversion \
7269 -Wdeclaration-after-statement \
7272 -Wunsafe-loop-optimizations \
7274 -Wbad-function-cast \
7282 -Waggregate-return \
7283 -Wstrict-prototypes \
7284 -Wold-style-definition \
7285 -Wmissing-prototypes \
7286 -Wmissing-declarations \
7287 -Wmissing-noreturn \
7288 -Wmissing-format-attribute \
7293 -Wunreachable-code \
7298 -Wvolatile-register-var \
7299 -Wdisabled-optimization \
7301 -Woverlength-strings \
7302 -Wbuiltin-macro-redefined \
7304 -Wpacked-bitfield-compat \
7307 gl_manywarn_set
="$gl_manywarn_set $gl_manywarn_item"
7309 # The following are not documented in the manual but are included in
7310 # output from gcc --help=warnings.
7311 for gl_manywarn_item
in \
7313 -Wcoverage-mismatch \
7316 gl_manywarn_set
="$gl_manywarn_set $gl_manywarn_item"
7318 # More warnings from gcc 4.6.2 --help=warnings.
7319 for gl_manywarn_item
in \
7323 -Wdeprecated-declarations \
7325 -Wdouble-promotion \
7328 -Wformat-contains-nul \
7329 -Wformat-extra-args \
7330 -Wformat-zero-length \
7335 -Wpointer-to-int-cast \
7337 -Wsuggest-attribute=const \
7338 -Wsuggest-attribute=noreturn \
7339 -Wsuggest-attribute=pure \
7342 gl_manywarn_set
="$gl_manywarn_set $gl_manywarn_item"
7345 # Disable the missing-field-initializers warning if needed
7346 if test "$gl_cv_cc_nomfi_needed" = yes; then
7347 gl_manywarn_set
="$gl_manywarn_set -Wno-missing-field-initializers"
7358 *" $gl_warn_item "*)
7361 gl_warn_set
="$gl_warn_set $gl_warn_item"
7368 as_gl_Warn
=`$as_echo "gl_cv_warn_c_$w" | $as_tr_sh`
7369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles $w" >&5
7370 $as_echo_n "checking whether C compiler handles $w... " >&6; }
7371 if { as_var
=$as_gl_Warn; eval "test \"\${$as_var+set}\" = set"; }; then :
7372 $as_echo_n "(cached) " >&6
7375 gl_save_compiler_FLAGS
="$CFLAGS"
7376 as_fn_append CFLAGS
" $w"
7377 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7378 /* end confdefs.h. */
7388 if ac_fn_c_try_compile
"$LINENO"; then :
7389 eval "$as_gl_Warn=yes"
7391 eval "$as_gl_Warn=no"
7393 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7394 CFLAGS
="$gl_save_compiler_FLAGS"
7397 eval ac_res
=\$
$as_gl_Warn
7398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7399 $as_echo "$ac_res" >&6; }
7400 eval as_val
=\$
$as_gl_Warn
7401 if test "x$as_val" = x
""yes; then :
7402 as_fn_append WARN_CFLAGS
" $w"
7407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-missing-field-initializers" >&5
7408 $as_echo_n "checking whether C compiler handles -Wno-missing-field-initializers... " >&6; }
7409 if test "${gl_cv_warn_c__Wno_missing_field_initializers+set}" = set; then :
7410 $as_echo_n "(cached) " >&6
7413 gl_save_compiler_FLAGS
="$CFLAGS"
7414 as_fn_append CFLAGS
" -Wno-missing-field-initializers"
7415 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7416 /* end confdefs.h. */
7426 if ac_fn_c_try_compile
"$LINENO"; then :
7427 gl_cv_warn_c__Wno_missing_field_initializers
=yes
7429 gl_cv_warn_c__Wno_missing_field_initializers
=no
7431 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7432 CFLAGS
="$gl_save_compiler_FLAGS"
7435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_missing_field_initializers" >&5
7436 $as_echo "$gl_cv_warn_c__Wno_missing_field_initializers" >&6; }
7437 if test "x$gl_cv_warn_c__Wno_missing_field_initializers" = x
""yes; then :
7438 as_fn_append WARN_CFLAGS
" -Wno-missing-field-initializers"
7442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-sign-compare" >&5
7443 $as_echo_n "checking whether C compiler handles -Wno-sign-compare... " >&6; }
7444 if test "${gl_cv_warn_c__Wno_sign_compare+set}" = set; then :
7445 $as_echo_n "(cached) " >&6
7448 gl_save_compiler_FLAGS
="$CFLAGS"
7449 as_fn_append CFLAGS
" -Wno-sign-compare"
7450 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7451 /* end confdefs.h. */
7461 if ac_fn_c_try_compile
"$LINENO"; then :
7462 gl_cv_warn_c__Wno_sign_compare
=yes
7464 gl_cv_warn_c__Wno_sign_compare
=no
7466 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7467 CFLAGS
="$gl_save_compiler_FLAGS"
7470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_sign_compare" >&5
7471 $as_echo "$gl_cv_warn_c__Wno_sign_compare" >&6; }
7472 if test "x$gl_cv_warn_c__Wno_sign_compare" = x
""yes; then :
7473 as_fn_append WARN_CFLAGS
" -Wno-sign-compare"
7476 # Too many warnings for now
7477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-type-limits" >&5
7478 $as_echo_n "checking whether C compiler handles -Wno-type-limits... " >&6; }
7479 if test "${gl_cv_warn_c__Wno_type_limits+set}" = set; then :
7480 $as_echo_n "(cached) " >&6
7483 gl_save_compiler_FLAGS
="$CFLAGS"
7484 as_fn_append CFLAGS
" -Wno-type-limits"
7485 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7486 /* end confdefs.h. */
7496 if ac_fn_c_try_compile
"$LINENO"; then :
7497 gl_cv_warn_c__Wno_type_limits
=yes
7499 gl_cv_warn_c__Wno_type_limits
=no
7501 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7502 CFLAGS
="$gl_save_compiler_FLAGS"
7505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_type_limits" >&5
7506 $as_echo "$gl_cv_warn_c__Wno_type_limits" >&6; }
7507 if test "x$gl_cv_warn_c__Wno_type_limits" = x
""yes; then :
7508 as_fn_append WARN_CFLAGS
" -Wno-type-limits"
7511 # Too many warnings for now
7512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-switch" >&5
7513 $as_echo_n "checking whether C compiler handles -Wno-switch... " >&6; }
7514 if test "${gl_cv_warn_c__Wno_switch+set}" = set; then :
7515 $as_echo_n "(cached) " >&6
7518 gl_save_compiler_FLAGS
="$CFLAGS"
7519 as_fn_append CFLAGS
" -Wno-switch"
7520 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7521 /* end confdefs.h. */
7531 if ac_fn_c_try_compile
"$LINENO"; then :
7532 gl_cv_warn_c__Wno_switch
=yes
7534 gl_cv_warn_c__Wno_switch
=no
7536 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7537 CFLAGS
="$gl_save_compiler_FLAGS"
7540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_switch" >&5
7541 $as_echo "$gl_cv_warn_c__Wno_switch" >&6; }
7542 if test "x$gl_cv_warn_c__Wno_switch" = x
""yes; then :
7543 as_fn_append WARN_CFLAGS
" -Wno-switch"
7546 # Too many warnings for now
7547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-unused-parameter" >&5
7548 $as_echo_n "checking whether C compiler handles -Wno-unused-parameter... " >&6; }
7549 if test "${gl_cv_warn_c__Wno_unused_parameter+set}" = set; then :
7550 $as_echo_n "(cached) " >&6
7553 gl_save_compiler_FLAGS
="$CFLAGS"
7554 as_fn_append CFLAGS
" -Wno-unused-parameter"
7555 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7556 /* end confdefs.h. */
7566 if ac_fn_c_try_compile
"$LINENO"; then :
7567 gl_cv_warn_c__Wno_unused_parameter
=yes
7569 gl_cv_warn_c__Wno_unused_parameter
=no
7571 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7572 CFLAGS
="$gl_save_compiler_FLAGS"
7575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_unused_parameter" >&5
7576 $as_echo "$gl_cv_warn_c__Wno_unused_parameter" >&6; }
7577 if test "x$gl_cv_warn_c__Wno_unused_parameter" = x
""yes; then :
7578 as_fn_append WARN_CFLAGS
" -Wno-unused-parameter"
7581 # Too many warnings for now
7582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-format-nonliteral" >&5
7583 $as_echo_n "checking whether C compiler handles -Wno-format-nonliteral... " >&6; }
7584 if test "${gl_cv_warn_c__Wno_format_nonliteral+set}" = set; then :
7585 $as_echo_n "(cached) " >&6
7588 gl_save_compiler_FLAGS
="$CFLAGS"
7589 as_fn_append CFLAGS
" -Wno-format-nonliteral"
7590 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7591 /* end confdefs.h. */
7601 if ac_fn_c_try_compile
"$LINENO"; then :
7602 gl_cv_warn_c__Wno_format_nonliteral
=yes
7604 gl_cv_warn_c__Wno_format_nonliteral
=no
7606 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7607 CFLAGS
="$gl_save_compiler_FLAGS"
7610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_format_nonliteral" >&5
7611 $as_echo "$gl_cv_warn_c__Wno_format_nonliteral" >&6; }
7612 if test "x$gl_cv_warn_c__Wno_format_nonliteral" = x
""yes; then :
7613 as_fn_append WARN_CFLAGS
" -Wno-format-nonliteral"
7618 # In spite of excluding -Wlogical-op above, it is enabled, as of
7619 # gcc 4.5.0 20090517.
7620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-logical-op" >&5
7621 $as_echo_n "checking whether C compiler handles -Wno-logical-op... " >&6; }
7622 if test "${gl_cv_warn_c__Wno_logical_op+set}" = set; then :
7623 $as_echo_n "(cached) " >&6
7626 gl_save_compiler_FLAGS
="$CFLAGS"
7627 as_fn_append CFLAGS
" -Wno-logical-op"
7628 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7629 /* end confdefs.h. */
7639 if ac_fn_c_try_compile
"$LINENO"; then :
7640 gl_cv_warn_c__Wno_logical_op
=yes
7642 gl_cv_warn_c__Wno_logical_op
=no
7644 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7645 CFLAGS
="$gl_save_compiler_FLAGS"
7648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_logical_op" >&5
7649 $as_echo "$gl_cv_warn_c__Wno_logical_op" >&6; }
7650 if test "x$gl_cv_warn_c__Wno_logical_op" = x
""yes; then :
7651 as_fn_append WARN_CFLAGS
" -Wno-logical-op"
7656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -fdiagnostics-show-option" >&5
7657 $as_echo_n "checking whether C compiler handles -fdiagnostics-show-option... " >&6; }
7658 if test "${gl_cv_warn_c__fdiagnostics_show_option+set}" = set; then :
7659 $as_echo_n "(cached) " >&6
7662 gl_save_compiler_FLAGS
="$CFLAGS"
7663 as_fn_append CFLAGS
" -fdiagnostics-show-option"
7664 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7665 /* end confdefs.h. */
7675 if ac_fn_c_try_compile
"$LINENO"; then :
7676 gl_cv_warn_c__fdiagnostics_show_option
=yes
7678 gl_cv_warn_c__fdiagnostics_show_option
=no
7680 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7681 CFLAGS
="$gl_save_compiler_FLAGS"
7684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__fdiagnostics_show_option" >&5
7685 $as_echo "$gl_cv_warn_c__fdiagnostics_show_option" >&6; }
7686 if test "x$gl_cv_warn_c__fdiagnostics_show_option" = x
""yes; then :
7687 as_fn_append WARN_CFLAGS
" -fdiagnostics-show-option"
7691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -funit-at-a-time" >&5
7692 $as_echo_n "checking whether C compiler handles -funit-at-a-time... " >&6; }
7693 if test "${gl_cv_warn_c__funit_at_a_time+set}" = set; then :
7694 $as_echo_n "(cached) " >&6
7697 gl_save_compiler_FLAGS
="$CFLAGS"
7698 as_fn_append CFLAGS
" -funit-at-a-time"
7699 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7700 /* end confdefs.h. */
7710 if ac_fn_c_try_compile
"$LINENO"; then :
7711 gl_cv_warn_c__funit_at_a_time
=yes
7713 gl_cv_warn_c__funit_at_a_time
=no
7715 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7716 CFLAGS
="$gl_save_compiler_FLAGS"
7719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__funit_at_a_time" >&5
7720 $as_echo "$gl_cv_warn_c__funit_at_a_time" >&6; }
7721 if test "x$gl_cv_warn_c__funit_at_a_time" = x
""yes; then :
7722 as_fn_append WARN_CFLAGS
" -funit-at-a-time"
7728 $as_echo "#define lint 1" >>confdefs.h
7731 $as_echo "#define _FORTIFY_SOURCE 2" >>confdefs.h
7734 $as_echo "#define GNULIB_PORTCHECK 1" >>confdefs.h
7737 # We use a slightly smaller set of warning options for lib/.
7738 # Remove the following and save the result in GNULIB_WARN_CFLAGS.
7740 nw
="$nw -Wunused-macros"
7744 set x
$WARN_CFLAGS; shift
7748 *" $gl_warn_item "*)
7751 gl_warn_set
="$gl_warn_set $gl_warn_item"
7755 GNULIB_WARN_CFLAGS
=$gl_warn_set
7762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7763 $as_echo_n "checking whether ln -s works... " >&6; }
7765 if test "$LN_S" = "ln -s"; then
7766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7767 $as_echo "yes" >&6; }
7769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7770 $as_echo "no, using $LN_S" >&6; }
7774 # Extract the first word of "install-info", so it can be a program name with args.
7775 set dummy install-info
; ac_word
=$2
7776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7777 $as_echo_n "checking for $ac_word... " >&6; }
7778 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
7779 $as_echo_n "(cached) " >&6
7781 case $INSTALL_INFO in
7783 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
7786 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7787 for as_dir
in $PATH$PATH_SEPARATOR/usr
/sbin
$PATH_SEPARATOR/sbin
7790 test -z "$as_dir" && as_dir
=.
7791 for ac_exec_ext
in '' $ac_executable_extensions; do
7792 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7793 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
7794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7801 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
=":"
7805 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
7806 if test -n "$INSTALL_INFO"; then
7807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
7808 $as_echo "$INSTALL_INFO" >&6; }
7810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7811 $as_echo "no" >&6; }
7815 # Extract the first word of "gzip", so it can be a program name with args.
7816 set dummy
gzip; ac_word
=$2
7817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7818 $as_echo_n "checking for $ac_word... " >&6; }
7819 if test "${ac_cv_path_GZIP_PROG+set}" = set; then :
7820 $as_echo_n "(cached) " >&6
7824 ac_cv_path_GZIP_PROG
="$GZIP_PROG" # Let the user override the test with a path.
7827 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7831 test -z "$as_dir" && as_dir
=.
7832 for ac_exec_ext
in '' $ac_executable_extensions; do
7833 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7834 ac_cv_path_GZIP_PROG
="$as_dir/$ac_word$ac_exec_ext"
7835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7845 GZIP_PROG
=$ac_cv_path_GZIP_PROG
7846 if test -n "$GZIP_PROG"; then
7847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP_PROG" >&5
7848 $as_echo "$GZIP_PROG" >&6; }
7850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7851 $as_echo "no" >&6; }
7856 if test $opsys = gnu-linux
; then
7857 # Extract the first word of "paxctl", so it can be a program name with args.
7858 set dummy paxctl
; ac_word
=$2
7859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7860 $as_echo_n "checking for $ac_word... " >&6; }
7861 if test "${ac_cv_path_PAXCTL+set}" = set; then :
7862 $as_echo_n "(cached) " >&6
7866 ac_cv_path_PAXCTL
="$PAXCTL" # Let the user override the test with a path.
7869 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7870 for as_dir
in $PATH$PATH_SEPARATOR/sbin
$PATH_SEPARATOR/usr
/sbin
7873 test -z "$as_dir" && as_dir
=.
7874 for ac_exec_ext
in '' $ac_executable_extensions; do
7875 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7876 ac_cv_path_PAXCTL
="$as_dir/$ac_word$ac_exec_ext"
7877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7887 PAXCTL
=$ac_cv_path_PAXCTL
7888 if test -n "$PAXCTL"; then
7889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PAXCTL" >&5
7890 $as_echo "$PAXCTL" >&6; }
7892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7893 $as_echo "no" >&6; }
7897 if test "X$PAXCTL" != X
; then
7898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether binaries have a PT_PAX_FLAGS header" >&5
7899 $as_echo_n "checking whether binaries have a PT_PAX_FLAGS header... " >&6; }
7900 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7901 /* end confdefs.h. */
7911 if ac_fn_c_try_link
"$LINENO"; then :
7912 if $PAXCTL -v conftest
$EXEEXT >/dev
/null
2>&1; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7913 $as_echo "yes" >&6; }
7914 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7915 $as_echo "no" >&6; }; PAXCTL
=""; fi
7917 rm -f core conftest.err conftest.
$ac_objext \
7918 conftest
$ac_exeext conftest.
$ac_ext
7922 ## Need makeinfo >= 4.7 (?) to build the manuals.
7923 # Extract the first word of "makeinfo", so it can be a program name with args.
7924 set dummy makeinfo
; ac_word
=$2
7925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7926 $as_echo_n "checking for $ac_word... " >&6; }
7927 if test "${ac_cv_path_MAKEINFO+set}" = set; then :
7928 $as_echo_n "(cached) " >&6
7932 ac_cv_path_MAKEINFO
="$MAKEINFO" # Let the user override the test with a path.
7935 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7939 test -z "$as_dir" && as_dir
=.
7940 for ac_exec_ext
in '' $ac_executable_extensions; do
7941 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7942 ac_cv_path_MAKEINFO
="$as_dir/$ac_word$ac_exec_ext"
7943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7950 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO
="no"
7954 MAKEINFO
=$ac_cv_path_MAKEINFO
7955 if test -n "$MAKEINFO"; then
7956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7957 $as_echo "$MAKEINFO" >&6; }
7959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7960 $as_echo "no" >&6; }
7964 if test "$MAKEINFO" != "no" && \
7965 test x
"`$MAKEINFO --version 2> /dev/null | $EGREP 'texinfo[^0-9]*([1-4][0-9]+|[5-9]|4\.[7-9]|4\.[1-6][0-9]+)'`" = x
; then
7969 ## Makeinfo is unusual. For a released Emacs, the manuals are
7970 ## pre-built, and not deleted by the normal clean rules. makeinfo is
7971 ## therefore in the category of "special tools" not normally required, which
7972 ## configure does not have to check for (eg autoconf itself).
7973 ## In a Bazaar checkout on the other hand, the manuals are not included.
7974 ## So makeinfo is a requirement to build from Bazaar, and configure
7975 ## should test for it as it does for any other build requirement.
7976 ## We use the presence of $srcdir/info/emacs to distinguish a release,
7977 ## with pre-built manuals, from a Bazaar checkout.
7980 if test "$MAKEINFO" = "no"; then
7982 if test "x${with_makeinfo}" = "xno"; then
7984 elif test ! -e $srcdir/info
/emacs
; then
7985 as_fn_error
"You do not seem to have makeinfo >= 4.7, and your
7986 source tree does not seem to have pre-built manuals in the \`info' directory.
7987 Either install a suitable version of makeinfo, or re-run configure
7988 with the \`--without-makeinfo' option to build without the manuals. " "$LINENO" 5
7994 INFO_OPTS
=--no-split
7999 if test x
$GCC = xyes
; then
8000 test "x$GCC_LINK_TEST_OPTIONS" != x
&& \
8001 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
8003 test "x$NON_GCC_LINK_TEST_OPTIONS" != x
&& \
8004 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
8008 late_LDFLAGS
=$LDFLAGS
8009 if test x
$GCC = xyes
; then
8010 LDFLAGS
="$LDFLAGS -Wl,-znocombreloc"
8012 LDFLAGS
="$LDFLAGS -znocombreloc"
8015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -znocombreloc" >&5
8016 $as_echo_n "checking for -znocombreloc... " >&6; }
8017 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8018 /* end confdefs.h. */
8028 if ac_fn_c_try_link
"$LINENO"; then :
8029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8030 $as_echo "yes" >&6; }
8032 LDFLAGS
=$late_LDFLAGS
8033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8034 $as_echo "no" >&6; }
8036 rm -f core conftest.err conftest.
$ac_objext \
8037 conftest
$ac_exeext conftest.
$ac_ext
8040 test "x$CANNOT_DUMP" = "x" && CANNOT_DUMP
=no
8042 your-opsys-here
) CANNOT_DUMP
=yes ;;
8045 test "$CANNOT_DUMP" = "yes" && \
8047 $as_echo "#define CANNOT_DUMP 1" >>confdefs.h
8053 UNEXEC_OBJ
=unexelf.o
8055 # MSDOS uses unexcoff.o
8056 # MSWindows uses unexw32.o
8058 UNEXEC_OBJ
=unexaix.o
8064 UNEXEC_OBJ
=unexmacosx.o
8067 UNEXEC_OBJ
=unexhp9k800.o
8070 # Use the Solaris dldump() function, called from unexsol.c, to dump
8071 # emacs, instead of the generic ELF dump code found in unexelf.c.
8072 # The resulting binary has a complete symbol table, and is better
8073 # for debugging and other observability tools (debuggers, pstack, etc).
8075 # If you encounter a problem using dldump(), please consider sending
8076 # a message to the OpenSolaris tools-linking mailing list:
8077 # http://mail.opensolaris.org/mailman/listinfo/tools-linking
8079 # It is likely that dldump() works with older Solaris too, but this has
8080 # not been tested, so for now this change is for Solaris 10 or newer.
8081 UNEXEC_OBJ
=unexsol.o
8088 ## Let `ld' find image libs and similar things in /usr/local/lib.
8089 ## The system compiler, GCC, has apparently been modified to not
8090 ## look there, contrary to what a stock GCC would do.
8091 ### It's not our place to do this. See bug#10313#17.
8092 ### LD_SWITCH_SYSTEM=-L/usr/local/lib
8097 ## cpp test was "ifdef __mips__", but presumably this is equivalent...
8098 case $host_cpu in mips
*) LD_SWITCH_SYSTEM
="-G 0";; esac
8102 ### It's not our place to do this. See bug#10313#17.
8103 ### LD_SWITCH_SYSTEM="-Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib"
8108 ## Han Boetes <han@mijncomputer.nl> says this is necessary,
8109 ## otherwise Emacs dumps core on elf systems.
8110 LD_SWITCH_SYSTEM
="-Z"
8115 ac_link
="$ac_link $LD_SWITCH_SYSTEM"
8117 ## This setting of LD_SWITCH_SYSTEM references LD_SWITCH_X_SITE_RPATH,
8118 ## which has not been defined yet. When this was handled with cpp,
8119 ## it was expanded to null when configure sourced the s/*.h file.
8120 ## Thus LD_SWITCH_SYSTEM had different values in configure and the Makefiles.
8121 ## FIXME it would be cleaner to put this in LD_SWITCH_SYSTEM_TEMACS
8122 ## (or somesuch), but because it is supposed to go at the _front_
8123 ## of LD_SWITCH_SYSTEM, we cannot do that in exactly the same way.
8124 ## Compare with the gnu-linux case below, which added to the end
8125 ## of LD_SWITCH_SYSTEM, and so can instead go at the front of
8126 ## LD_SWITCH_SYSTEM_TEMACS.
8129 LD_SWITCH_SYSTEM
="\$(LD_SWITCH_X_SITE_RPATH) $LD_SWITCH_SYSTEM" ;;
8136 ac_fn_c_check_decl
"$LINENO" "__ELF__" "ac_cv_have_decl___ELF__" "$ac_includes_default"
8137 if test "x$ac_cv_have_decl___ELF__" = x
""yes; then :
8141 if test "$ac_cv_have_decl___ELF__" = "yes"; then
8142 ## With ELF, make sure that all common symbols get allocated to in the
8143 ## data section. Otherwise, the dump of temacs may miss variables in
8144 ## the shared library that have been initialized. For example, with
8145 ## GNU libc, __malloc_initialized would normally be resolved to the
8146 ## shared library's .bss section, which is fatal.
8147 if test "x$GCC" = "xyes"; then
8148 C_SWITCH_MACHINE
="-fno-common"
8150 as_fn_error
"What gives? Fix me if DEC Unix supports ELF now." "$LINENO" 5
8153 UNEXEC_OBJ
=unexalpha.o
8162 ## Some programs in src produce warnings saying certain subprograms
8163 ## are too complex and need a MAXMEM value greater than 2000 for
8164 ## additional optimization. --nils@exp-math.uni-essen.de
8165 test "$opsys" = "aix4.2" && test "x$GCC" != "xyes" && \
8166 C_SWITCH_SYSTEM
="-ma -qmaxmem=4000"
8167 ## gnu-linux might need -D_BSD_SOURCE on old libc5 systems.
8168 ## It is redundant in glibc2, since we define _GNU_SOURCE.
8174 ## IBM's X11R5 uses -lIM and -liconv in AIX 3.2.2.
8175 aix4-2
) LIBS_SYSTEM
="-lrts -lIM -liconv" ;;
8177 freebsd
) LIBS_SYSTEM
="-lutil" ;;
8179 hpux
*) LIBS_SYSTEM
="-l:libdld.sl" ;;
8181 sol2
*) LIBS_SYSTEM
="-lsocket -lnsl" ;;
8183 ## Motif needs -lgen.
8184 unixware
) LIBS_SYSTEM
="-lsocket -lnsl -lelf -lgen" ;;
8189 ### Make sure subsequent tests use flags consistent with the build flags.
8191 if test x
"${OVERRIDE_CPPFLAGS}" != x
; then
8192 CPPFLAGS
="${OVERRIDE_CPPFLAGS}"
8194 CPPFLAGS
="$C_SWITCH_SYSTEM $C_SWITCH_MACHINE $CPPFLAGS"
8197 # Suppress obsolescent Autoconf test for size_t; Emacs assumes C89 or better.
8199 # Likewise for obsolescent test for uid_t, gid_t; Emacs assumes them.
8206 SYSTEM_TYPE
=`echo $opsys | sed -e 's/[0-9].*//' -e 's|-|/|'`
8211 START_FILES
='pre-crt0.o'
8214 ## Adding -lm confuses the dynamic linker, so omit it.
8216 START_FILES
='pre-crt0.o'
8219 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtn.o'
8220 START_FILES
='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o'
8221 SYSTEM_TYPE
=berkeley-unix
8223 gnu-linux | gnu-kfreebsd
)
8224 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtn.o'
8225 START_FILES
='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o'
8227 hpux10-20 | hpux11
)
8229 START_FILES
='pre-crt0.o $(CRT_DIR)/crt0.o'
8232 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o'
8233 START_FILES
='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crtbegin.o'
8234 SYSTEM_TYPE
=berkeley-unix
8238 SYSTEM_TYPE
=usg-unix-v
8246 cat >>confdefs.h
<<_ACEOF
8247 #define SYSTEM_TYPE "$SYSTEM_TYPE"
8253 for file in x
$LIB_STANDARD $START_FILES; do
8255 *CRT_DIR
*) crt_files
="$crt_files `echo $file | sed -e 's|.*/||'`" ;;
8259 if test "x$crt_files" != x
; then
8261 ## If user specified a crt-dir, use that unconditionally.
8264 if test "X$CRT_DIR" = "X"; then
8266 CRT_DIR
=/usr
/lib
# default
8268 case "$canonical" in
8269 x86_64-
*-linux-gnu* | s390x-
*-linux-gnu*)
8270 ## On x86-64 and s390x GNU/Linux distributions, the standard library
8271 ## can be in a variety of places. We only try /usr/lib64 and /usr/lib.
8272 ## For anything else (eg /usr/lib32), it is up the user to specify
8273 ## the location (bug#5655).
8274 ## Test for crtn.o, not just the directory, because sometimes the
8275 ## directory exists but does not have the relevant files (bug#1287).
8276 ## FIXME better to test for binary compatibility somehow.
8277 test -e /usr
/lib64
/crtn.o
&& CRT_DIR
=/usr
/lib64
8280 powerpc64-
*-linux-gnu* | sparc64-
*-linux-gnu*) CRT_DIR
=/usr
/lib64
;;
8284 hpux10-20
) CRT_DIR
=/lib
;;
8287 test "x${GCC}" = xyes
&& crt_gcc
=yes
8293 for file in $crt_files; do
8295 ## If we're using gcc, try to determine it automatically by asking
8296 ## gcc. [If this doesn't work, CRT_DIR will remain at the
8297 ## system-dependent default from above.]
8298 if test $crt_gcc = yes && test ! -e $CRT_DIR/$file; then
8300 crt_file
=`$CC --print-file-name=$file 2>/dev/null`
8303 CRT_DIR
=`$as_dirname -- "$crt_file" ||
8304 $as_expr X"$crt_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8305 X"$crt_file" : 'X\(//\)[^/]' \| \
8306 X"$crt_file" : 'X\(//\)$' \| \
8307 X"$crt_file" : 'X\(/\)' \| . 2>/dev/null ||
8308 $as_echo X"$crt_file" |
8309 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8332 test -e $CRT_DIR/$file || crt_missing
="$crt_missing $file"
8335 test "x$crt_missing" = x || \
8336 as_fn_error
"Required file(s) not found:$crt_missing
8337 Try using the --with-crt-dir option." "$LINENO" 5
8339 fi # crt_files != ""
8345 if test -f $CRT_DIR/crti.o
; then
8347 test -f $CRT_DIR/crtn.o || \
8348 as_fn_error
"Required file not found: crtn.o" "$LINENO" 5
8350 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
8351 START_FILES
='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
8357 pre_PKG_CONFIG_CFLAGS
=$CFLAGS
8358 pre_PKG_CONFIG_LIBS
=$LIBS
8360 # Extract the first word of "pkg-config", so it can be a program name with args.
8361 set dummy pkg-config
; ac_word
=$2
8362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8363 $as_echo_n "checking for $ac_word... " >&6; }
8364 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8365 $as_echo_n "(cached) " >&6
8369 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
8372 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8376 test -z "$as_dir" && as_dir
=.
8377 for ac_exec_ext
in '' $ac_executable_extensions; do
8378 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8379 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
8380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8387 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
8391 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
8392 if test -n "$PKG_CONFIG"; then
8393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8394 $as_echo "$PKG_CONFIG" >&6; }
8396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8397 $as_echo "no" >&6; }
8405 if test "${with_sound}" != "no"; then
8406 # Sound support for GNU/Linux and the free BSDs.
8407 for ac_header
in machine
/soundcard.h sys
/soundcard.h soundcard.h
8409 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8410 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8411 eval as_val
=\$
$as_ac_Header
8412 if test "x$as_val" = x
""yes; then :
8413 cat >>confdefs.h
<<_ACEOF
8414 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8416 have_sound_header
=yes
8421 # Emulation library used on NetBSD.
8422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
8423 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
8424 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then :
8425 $as_echo_n "(cached) " >&6
8427 ac_check_lib_save_LIBS
=$LIBS
8428 LIBS
="-lossaudio $LIBS"
8429 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8430 /* end confdefs.h. */
8432 /* Override any GCC internal prototype to avoid an error.
8433 Use char because int might match the return type of a GCC
8434 builtin and then its argument prototype would still apply. */
8442 return _oss_ioctl ();
8447 if ac_fn_c_try_link
"$LINENO"; then :
8448 ac_cv_lib_ossaudio__oss_ioctl
=yes
8450 ac_cv_lib_ossaudio__oss_ioctl
=no
8452 rm -f core conftest.err conftest.
$ac_objext \
8453 conftest
$ac_exeext conftest.
$ac_ext
8454 LIBS
=$ac_check_lib_save_LIBS
8456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
8457 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
8458 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = x
""yes; then :
8467 ALSA_MODULES
="alsa >= $ALSA_REQUIRED"
8471 if test "$PKG_CONFIG" = "no" ; then
8474 PKG_CONFIG_MIN_VERSION
=0.9.0
8475 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ALSA_MODULES" >&5
8477 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
8479 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5 &&
8480 ALSA_CFLAGS
=`$PKG_CONFIG --cflags "$ALSA_MODULES" 2>&5` &&
8481 ALSA_LIBS
=`$PKG_CONFIG --libs "$ALSA_MODULES" 2>&5`; then
8488 ALSA_CFLAGS
=`$as_echo "$ALSA_CFLAGS" | sed -e "$edit_cflags"`
8489 ALSA_LIBS
=`$as_echo "$ALSA_LIBS" | sed -e 's,///*,/,g'`
8490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$ALSA_CFLAGS' LIBS='$ALSA_LIBS'" >&5
8491 $as_echo "yes CFLAGS='$ALSA_CFLAGS' LIBS='$ALSA_LIBS'" >&6; }
8494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8495 $as_echo "no" >&6; }
8498 ## If we have a custom action on failure, don't print errors, but
8499 ## do set a variable so people can do so.
8500 ALSA_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
8507 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8508 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8512 if test $succeeded = yes; then
8518 if test $HAVE_ALSA = yes; then
8519 SAVE_CFLAGS
="$CFLAGS"
8521 CFLAGS
="$ALSA_CFLAGS $CFLAGS"
8522 LIBS
="$ALSA_LIBS $LIBS"
8523 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8524 /* end confdefs.h. */
8525 #include <asoundlib.h>
8529 snd_lib_error_set_handler (0);
8534 if ac_fn_c_try_compile
"$LINENO"; then :
8535 emacs_alsa_normal
=yes
8537 emacs_alsa_normal
=no
8539 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8540 if test "$emacs_alsa_normal" != yes; then
8541 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8542 /* end confdefs.h. */
8543 #include <alsa/asoundlib.h>
8547 snd_lib_error_set_handler (0);
8552 if ac_fn_c_try_compile
"$LINENO"; then :
8553 emacs_alsa_subdir
=yes
8555 emacs_alsa_subdir
=no
8557 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8558 if test "$emacs_alsa_subdir" != yes; then
8559 as_fn_error
"pkg-config found alsa, but it does not compile. See config.log for error messages." "$LINENO" 5
8561 ALSA_CFLAGS
="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
8564 CFLAGS
="$SAVE_CFLAGS"
8566 LIBSOUND
="$LIBSOUND $ALSA_LIBS"
8567 CFLAGS_SOUND
="$CFLAGS_SOUND $ALSA_CFLAGS"
8569 $as_echo "#define HAVE_ALSA 1" >>confdefs.h
8573 if test x
$have_sound_header = xyes ||
test $HAVE_ALSA = yes; then
8575 gnu-linux|freebsd|netbsd
)
8577 $as_echo "#define HAVE_SOUND 1" >>confdefs.h
8589 for ac_header
in $ac_header_list
8591 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8592 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8594 eval as_val
=\$
$as_ac_Header
8595 if test "x$as_val" = x
""yes; then :
8596 cat >>confdefs.h
<<_ACEOF
8597 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if personality LINUX32 can be set" >&5
8633 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
8634 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8635 /* end confdefs.h. */
8636 #include <sys/personality.h>
8640 personality (PER_LINUX32)
8645 if ac_fn_c_try_compile
"$LINENO"; then :
8646 emacs_cv_personality_linux32
=yes
8648 emacs_cv_personality_linux32
=no
8650 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_personality_linux32" >&5
8652 $as_echo "$emacs_cv_personality_linux32" >&6; }
8654 if test $emacs_cv_personality_linux32 = yes; then
8656 $as_echo "#define HAVE_PERSONALITY_LINUX32 1" >>confdefs.h
8660 for ac_header
in term.h
8662 ac_fn_c_check_header_preproc
"$LINENO" "term.h" "ac_cv_header_term_h"
8663 if test "x$ac_cv_header_term_h" = x
""yes; then :
8664 cat >>confdefs.h
<<_ACEOF
8665 #define HAVE_TERM_H 1
8672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8673 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8674 if test "${ac_cv_header_time+set}" = set; then :
8675 $as_echo_n "(cached) " >&6
8677 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8678 /* end confdefs.h. */
8679 #include <sys/types.h>
8680 #include <sys/time.h>
8686 if ((struct tm *) 0)
8692 if ac_fn_c_try_compile
"$LINENO"; then :
8693 ac_cv_header_time
=yes
8695 ac_cv_header_time
=no
8697 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8700 $as_echo "$ac_cv_header_time" >&6; }
8701 if test $ac_cv_header_time = yes; then
8703 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8707 ac_fn_c_check_decl
"$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "$ac_includes_default"
8708 if test "x$ac_cv_have_decl_sys_siglist" = x
""yes; then :
8714 cat >>confdefs.h
<<_ACEOF
8715 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
8718 if test $ac_cv_have_decl_sys_siglist != yes; then
8719 # For Tru64, at least:
8720 ac_fn_c_check_decl
"$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "$ac_includes_default"
8721 if test "x$ac_cv_have_decl___sys_siglist" = x
""yes; then :
8727 cat >>confdefs.h
<<_ACEOF
8728 #define HAVE_DECL___SYS_SIGLIST $ac_have_decl
8731 if test $ac_cv_have_decl___sys_siglist = yes; then
8733 $as_echo "#define sys_siglist __sys_siglist" >>confdefs.h
8737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8738 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8739 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8740 $as_echo_n "(cached) " >&6
8742 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8743 /* end confdefs.h. */
8744 #include <sys/types.h>
8745 #include <sys/wait.h>
8747 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8750 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8758 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8763 if ac_fn_c_try_compile
"$LINENO"; then :
8764 ac_cv_header_sys_wait_h
=yes
8766 ac_cv_header_sys_wait_h
=no
8768 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8771 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8772 if test $ac_cv_header_sys_wait_h = yes; then
8774 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t" >&5
8780 $as_echo_n "checking for speed_t... " >&6; }
8781 if test "${emacs_cv_speed_t+set}" = set; then :
8782 $as_echo_n "(cached) " >&6
8784 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8785 /* end confdefs.h. */
8786 #include <termios.h>
8795 if ac_fn_c_try_compile
"$LINENO"; then :
8796 emacs_cv_speed_t
=yes
8800 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_speed_t" >&5
8803 $as_echo "$emacs_cv_speed_t" >&6; }
8804 if test $emacs_cv_speed_t = yes; then
8806 $as_echo "#define HAVE_SPEED_T 1" >>confdefs.h
8810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct exception" >&5
8811 $as_echo_n "checking for struct exception... " >&6; }
8812 if test "${emacs_cv_struct_exception+set}" = set; then :
8813 $as_echo_n "(cached) " >&6
8815 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8816 /* end confdefs.h. */
8821 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
8826 if ac_fn_c_try_compile
"$LINENO"; then :
8827 emacs_cv_struct_exception
=yes
8829 emacs_cv_struct_exception
=no
8831 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_exception" >&5
8834 $as_echo "$emacs_cv_struct_exception" >&6; }
8835 HAVE_EXCEPTION
=$emacs_cv_struct_exception
8836 if test $emacs_cv_struct_exception != yes ||
test $opsys = darwin
; then
8838 $as_echo "#define NO_MATHERR 1" >>confdefs.h
8845 for ac_header
in net
/if.h
8847 ac_fn_c_check_header_compile
"$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
8848 #if HAVE_SYS_SOCKET_H
8849 #include <sys/socket.h>
8852 if test "x$ac_cv_header_net_if_h" = x
""yes; then :
8853 cat >>confdefs.h
<<_ACEOF
8854 #define HAVE_NET_IF_H 1
8861 for ac_header
in ifaddrs.h
8863 ac_fn_c_check_header_compile
"$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "$ac_includes_default
8864 #if HAVE_SYS_SOCKET_H
8865 #include <sys/socket.h>
8868 if test "x$ac_cv_header_ifaddrs_h" = x
""yes; then :
8869 cat >>confdefs.h
<<_ACEOF
8870 #define HAVE_IFADDRS_H 1
8877 for ac_header
in net
/if_dl.h
8879 ac_fn_c_check_header_compile
"$LINENO" "net/if_dl.h" "ac_cv_header_net_if_dl_h" "$ac_includes_default
8880 #if HAVE_SYS_SOCKET_H
8881 #include <sys/socket.h>
8884 if test "x$ac_cv_header_net_if_dl_h" = x
""yes; then :
8885 cat >>confdefs.h
<<_ACEOF
8886 #define HAVE_NET_IF_DL_H 1
8894 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_flags" "ac_cv_member_struct_ifreq_ifr_flags" "$ac_includes_default
8895 #if HAVE_SYS_SOCKET_H
8896 #include <sys/socket.h>
8902 if test "x$ac_cv_member_struct_ifreq_ifr_flags" = x
""yes; then :
8904 cat >>confdefs.h
<<_ACEOF
8905 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8910 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "$ac_includes_default
8911 #if HAVE_SYS_SOCKET_H
8912 #include <sys/socket.h>
8918 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = x
""yes; then :
8920 cat >>confdefs.h
<<_ACEOF
8921 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8926 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_netmask" "ac_cv_member_struct_ifreq_ifr_netmask" "$ac_includes_default
8927 #if HAVE_SYS_SOCKET_H
8928 #include <sys/socket.h>
8934 if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = x
""yes; then :
8936 cat >>confdefs.h
<<_ACEOF
8937 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8942 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_broadaddr" "ac_cv_member_struct_ifreq_ifr_broadaddr" "$ac_includes_default
8943 #if HAVE_SYS_SOCKET_H
8944 #include <sys/socket.h>
8950 if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = x
""yes; then :
8952 cat >>confdefs.h
<<_ACEOF
8953 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8958 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_addr" "ac_cv_member_struct_ifreq_ifr_addr" "$ac_includes_default
8959 #if HAVE_SYS_SOCKET_H
8960 #include <sys/socket.h>
8966 if test "x$ac_cv_member_struct_ifreq_ifr_addr" = x
""yes; then :
8968 cat >>confdefs.h
<<_ACEOF
8969 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8974 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_addr.sa_len" "ac_cv_member_struct_ifreq_ifr_addr_sa_len" "$ac_includes_default
8975 #if HAVE_SYS_SOCKET_H
8976 #include <sys/socket.h>
8982 if test "x$ac_cv_member_struct_ifreq_ifr_addr_sa_len" = x
""yes; then :
8984 cat >>confdefs.h
<<_ACEOF
8985 #define HAVE_STRUCT_IFREQ_IFR_ADDR_SA_LEN 1
8997 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
8998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU Make" >&5
8999 $as_echo_n "checking whether we are using GNU Make... " >&6; }
9001 testval
=`${MAKE-make} --version 2>/dev/null | grep 'GNU Make'`
9002 if test "x$testval" != x
; then
9005 ac_enable_autodepend
=no
9007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_GNU_MAKE" >&5
9008 $as_echo "$HAVE_GNU_MAKE" >&6; }
9009 if test $HAVE_GNU_MAKE = yes; then
9010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -MMD -MF" >&5
9011 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
9012 SAVE_CFLAGS
="$CFLAGS"
9013 CFLAGS
="$CFLAGS -MMD -MF deps.d -MP"
9014 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9015 /* end confdefs.h. */
9025 if ac_fn_c_try_compile
"$LINENO"; then :
9028 ac_enable_autodepend
=no
9030 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9031 CFLAGS
="$SAVE_CFLAGS"
9032 test -f deps.d || ac_enable_autodepend
=no
9034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_autodepend" >&5
9035 $as_echo "$ac_enable_autodepend" >&6; }
9037 if test $ac_enable_autodepend = yes; then
9038 DEPFLAGS
='-MMD -MF ${DEPDIR}/$*.d -MP'
9039 ## MKDIR_P is documented (see AC_PROG_MKDIR_P) to be parallel-safe.
9040 MKDEPDIR
='${MKDIR_P} ${DEPDIR}'
9041 deps_frag
=autodeps.mk
9044 deps_frag
=$srcdir/src
/$deps_frag
9050 lisp_frag
=$srcdir/src
/lisp.mk
9054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5
9055 $as_echo_n "checking for long file names... " >&6; }
9056 if test "${ac_cv_sys_long_file_names+set}" = set; then :
9057 $as_echo_n "(cached) " >&6
9059 ac_cv_sys_long_file_names
=yes
9060 # Test for long file names in all the places we know might matter:
9061 # . the current directory, where building will happen
9062 # $prefix/lib where we will be installing things
9063 # $exec_prefix/lib likewise
9064 # $TMPDIR if set, where it might want to write temporary files
9065 # /tmp where it might want to write temporary files
9068 for ac_dir
in .
"$TMPDIR" /tmp
/var
/tmp
/usr
/tmp
"$prefix/lib" "$exec_prefix/lib"; do
9069 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9070 # in the usual case where exec_prefix is '${prefix}'.
9072 . |
/* | ?
:[\\/]*) ;; #(
9075 test -w "$ac_dir/." ||
continue # It is less confusing to not echo anything here.
9076 ac_xdir
=$ac_dir/cf$$
9077 (umask 077 && mkdir
"$ac_xdir" 2>/dev
/null
) ||
continue
9078 ac_tf1
=$ac_xdir/conftest9012345
9079 ac_tf2
=$ac_xdir/conftest9012346
9080 touch "$ac_tf1" 2>/dev
/null
&& test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9081 ac_cv_sys_long_file_names
=no
9082 rm -f -r "$ac_xdir" 2>/dev
/null
9083 test $ac_cv_sys_long_file_names = no
&& break
9086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5
9087 $as_echo "$ac_cv_sys_long_file_names" >&6; }
9088 if test $ac_cv_sys_long_file_names = yes; then
9090 $as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h
9095 #### Choose a window system.
9097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
9098 $as_echo_n "checking for X... " >&6; }
9101 # Check whether --with-x was given.
9102 if test "${with_x+set}" = set; then :
9106 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9107 if test "x$with_x" = xno
; then
9108 # The user explicitly disabled X.
9111 case $x_includes,$x_libraries in #(
9112 *\'*) as_fn_error
"cannot use X directory names containing '" "$LINENO" 5;; #(
9113 *,NONE | NONE
,*) if test "${ac_cv_have_x+set}" = set; then :
9114 $as_echo_n "(cached) " >&6
9116 # One or both of the vars are not set, and there is no cached value.
9117 ac_x_includes
=no ac_x_libraries
=no
9118 rm -f -r conftest.dir
9119 if mkdir conftest.dir
; then
9121 cat >Imakefile
<<'_ACEOF'
9123 @echo incroot='${INCROOT}'
9125 @echo usrlibdir='${USRLIBDIR}'
9127 @echo libdir='${LIBDIR}'
9129 if (export CC
; ${XMKMF-xmkmf}) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
9130 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9131 for ac_var
in incroot usrlibdir libdir
; do
9132 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
9134 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9135 for ac_extension
in a so sl dylib la dll
; do
9136 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9137 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9138 ac_im_usrlibdir
=$ac_im_libdir; break
9141 # Screen out bogus values from the imake configuration. They are
9142 # bogus both because they are the default anyway, and because
9143 # using them would break gcc on systems where it needs fixed includes.
9144 case $ac_im_incroot in
9145 /usr
/include
) ac_x_includes
= ;;
9146 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
9148 case $ac_im_usrlibdir in
9149 /usr
/lib |
/usr
/lib64 |
/lib |
/lib64
) ;;
9150 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
9154 rm -f -r conftest.dir
9157 # Standard set of common directories for X headers.
9158 # Check X11 before X11Rn because it is often a symlink to the current release.
9172 /usr/local/X11/include
9173 /usr/local/X11R7/include
9174 /usr/local/X11R6/include
9175 /usr/local/X11R5/include
9176 /usr/local/X11R4/include
9178 /usr/local/include/X11
9179 /usr/local/include/X11R7
9180 /usr/local/include/X11R6
9181 /usr/local/include/X11R5
9182 /usr/local/include/X11R4
9186 /usr/XFree86/include/X11
9190 /usr/unsupported/include
9192 /usr/local/x11r5/include
9193 /usr/lpp/Xamples/include
9195 /usr/openwin/include
9196 /usr/openwin/share/include'
9198 if test "$ac_x_includes" = no
; then
9199 # Guess where to find include files, by looking for Xlib.h.
9200 # First, try using that file with no special directory specified.
9201 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9202 /* end confdefs.h. */
9203 #include <X11/Xlib.h>
9205 if ac_fn_c_try_cpp
"$LINENO"; then :
9206 # We can compile using X headers with no special include directory.
9209 for ac_dir
in $ac_x_header_dirs; do
9210 if test -r "$ac_dir/X11/Xlib.h"; then
9211 ac_x_includes
=$ac_dir
9216 rm -f conftest.err conftest.
$ac_ext
9217 fi # $ac_x_includes = no
9219 if test "$ac_x_libraries" = no
; then
9220 # Check for the libraries.
9221 # See if we find them without any special options.
9222 # Don't add to $LIBS permanently.
9225 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9226 /* end confdefs.h. */
9227 #include <X11/Xlib.h>
9236 if ac_fn_c_try_link
"$LINENO"; then :
9238 # We can link X programs with no special library path.
9242 for ac_dir
in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9244 # Don't even attempt the hair of trying to link an X program!
9245 for ac_extension
in a so sl dylib la dll
; do
9246 if test -r "$ac_dir/libX11.$ac_extension"; then
9247 ac_x_libraries
=$ac_dir
9253 rm -f core conftest.err conftest.
$ac_objext \
9254 conftest
$ac_exeext conftest.
$ac_ext
9255 fi # $ac_x_libraries = no
9257 case $ac_x_includes,$ac_x_libraries in #(
9259 # Didn't find X, or a directory has "'" in its name.
9260 ac_cv_have_x
="have_x=no";; #(
9262 # Record where we found X for the cache.
9263 ac_cv_have_x
="have_x=yes\
9264 ac_x_includes='$ac_x_includes'\
9265 ac_x_libraries='$ac_x_libraries'"
9271 eval "$ac_cv_have_x"
9274 if test "$have_x" != yes; then
9275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
9276 $as_echo "$have_x" >&6; }
9279 # If each of the values was on the command line, it overrides each guess.
9280 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
9281 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
9282 # Update the cache value to reflect the command line values.
9283 ac_cv_have_x
="have_x=yes\
9284 ac_x_includes='$x_includes'\
9285 ac_x_libraries='$x_libraries'"
9286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
9287 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
9290 if test "$no_x" = yes; then
9296 LD_SWITCH_X_SITE_RPATH
=
9297 if test "${x_libraries}" != NONE
; then
9298 if test -n "${x_libraries}"; then
9299 LD_SWITCH_X_SITE
=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9300 LD_SWITCH_X_SITE_RPATH
=-Wl,-rpath,`echo ${x_libraries} | sed -e "s/:/ -Wl,-rpath,/g"`
9302 x_default_search_path
=""
9303 x_search_path
=${x_libraries}
9304 if test -z "${x_search_path}"; then
9305 x_search_path
=/usr
/lib
9307 for x_library
in `echo ${x_search_path}: | \
9308 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9310 ${x_library}/X11/%L/%T/%N%C%S:\
9311 ${x_library}/X11/%l/%T/%N%C%S:\
9312 ${x_library}/X11/%T/%N%C%S:\
9313 ${x_library}/X11/%L/%T/%N%S:\
9314 ${x_library}/X11/%l/%T/%N%S:\
9315 ${x_library}/X11/%T/%N%S"
9316 if test x
"${x_default_search_path}" = x
; then
9317 x_default_search_path
=${x_search_path}
9319 x_default_search_path
="${x_search_path}:${x_default_search_path}"
9325 if test "${x_includes}" != NONE
&& test -n "${x_includes}"; then
9326 C_SWITCH_X_SITE
="$isystem"`echo ${x_includes} | sed -e "s/:/ $isystem/g"`
9329 if test x
"${x_includes}" = x
; then
9330 bitmapdir
=/usr
/include
/X11
/bitmaps
9332 # accumulate include directories that have X11 bitmap subdirectories
9334 for bmd
in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9335 if test -d "${bmd}/X11/bitmaps"; then
9336 bmd_acc
="${bmd_acc}:${bmd}/X11/bitmaps"
9338 if test -d "${bmd}/bitmaps"; then
9339 bmd_acc
="${bmd_acc}:${bmd}/bitmaps"
9342 if test ${bmd_acc} != "dummyval"; then
9343 bitmapdir
=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9350 tmp_CPPFLAGS
="$CPPFLAGS"
9351 tmp_CFLAGS
="$CFLAGS"
9352 CPPFLAGS
="$CPPFLAGS -x objective-c"
9353 CFLAGS
="$CFLAGS -x objective-c"
9354 TEMACS_LDFLAGS2
="\${LDFLAGS}"
9356 if test "${with_ns}" != no
; then
9357 if test "${opsys}" = darwin
; then
9359 ns_appdir
=`pwd`/nextstep
/Emacs.app
9360 ns_appbindir
=${ns_appdir}/Contents
/MacOS
9361 ns_appresdir
=${ns_appdir}/Contents
/Resources
9362 ns_appsrc
=${srcdir}/nextstep
/Cocoa
/Emacs.base
9363 elif test -f $GNUSTEP_CONFIG_FILE; then
9365 ns_appdir
=`pwd`/nextstep
/Emacs.app
9366 ns_appbindir
=${ns_appdir}
9367 ns_appresdir
=${ns_appdir}/Resources
9368 ns_appsrc
=${srcdir}/nextstep
/GNUstep
/Emacs.base
9369 GNUSTEP_SYSTEM_HEADERS
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
9370 GNUSTEP_SYSTEM_LIBRARIES
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
9371 GNUSTEP_LOCAL_HEADERS
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_HEADERS)"
9372 GNUSTEP_LOCAL_LIBRARIES
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_LIBRARIES)"
9373 test "x${GNUSTEP_LOCAL_HEADERS}" != "x" && \
9374 GNUSTEP_LOCAL_HEADERS
="-I${GNUSTEP_LOCAL_HEADERS}"
9375 test "x${GNUSTEP_LOCAL_LIBRARIES}" != "x" && \
9376 GNUSTEP_LOCAL_LIBRARIES
="-L${GNUSTEP_LOCAL_LIBRARIES}"
9377 CPPFLAGS
="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
9378 CFLAGS
="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
9379 LDFLAGS
="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES}"
9383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GNUstep defines BASE_NATIVE_OBJC_EXCEPTIONS" >&5
9384 $as_echo_n "checking if GNUstep defines BASE_NATIVE_OBJC_EXCEPTIONS... " >&6; }
9385 if test "${emacs_cv_objc_exceptions+set}" = set; then :
9386 $as_echo_n "(cached) " >&6
9388 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9389 /* end confdefs.h. */
9390 #include <GNUstepBase/GSConfig.h>
9394 #if defined BASE_NATIVE_OBJC_EXCEPTIONS && BASE_NATIVE_OBJC_EXCEPTIONS > 0
9403 if ac_fn_c_try_compile
"$LINENO"; then :
9404 emacs_cv_objc_exceptions
=yes
9406 emacs_cv_objc_exceptions
=no
9408 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_objc_exceptions" >&5
9411 $as_echo "$emacs_cv_objc_exceptions" >&6; }
9412 if test $emacs_cv_objc_exceptions = yes; then
9414 $as_echo "#define _NATIVE_OBJC_EXCEPTIONS 1" >>confdefs.h
9416 GNU_OBJC_CFLAGS
="-fobjc-exceptions"
9420 CFLAGS
="$CFLAGS $GNU_OBJC_CFLAGS"
9422 ac_fn_c_check_header_mongrel
"$LINENO" "AppKit/AppKit.h" "ac_cv_header_AppKit_AppKit_h" "$ac_includes_default"
9423 if test "x$ac_cv_header_AppKit_AppKit_h" = x
""yes; then :
9426 as_fn_error
"\`--with-ns' was specified, but the include
9427 files are missing or cannot be compiled." "$LINENO" 5
9431 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9432 /* end confdefs.h. */
9433 #include <Foundation/NSObjCRuntime.h>
9442 if ac_fn_c_try_compile
"$LINENO"; then :
9443 ns_have_nsinteger
=yes
9445 ns_have_nsinteger
=no
9447 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9448 if test $ns_have_nsinteger = yes; then
9450 $as_echo "#define NS_HAVE_NSINTEGER 1" >>confdefs.h
9456 INSTALL_ARCH_INDEP_EXTRA
=install-etc
9457 ns_self_contained
=no
9461 if test "${HAVE_NS}" = yes; then
9462 if test "$with_toolkit_scroll_bars" = "no"; then
9463 as_fn_error
"Non-toolkit scroll bars are not implemented for Nextstep." "$LINENO" 5
9466 window_system
=nextstep
9468 # set up packaging dirs
9469 if test "${EN_NS_SELF_CONTAINED}" = yes; then
9470 ns_self_contained
=yes
9471 prefix
=${ns_appresdir}
9472 exec_prefix
=${ns_appbindir}
9473 libexecdir
="\${ns_appbindir}/libexec"
9474 archlibdir
="\${ns_appbindir}/libexec"
9475 docdir
="\${ns_appresdir}/etc"
9476 etcdir
="\${ns_appresdir}/etc"
9477 infodir
="\${ns_appresdir}/info"
9478 mandir
="\${ns_appresdir}/man"
9479 lispdir
="\${ns_appresdir}/lisp"
9480 leimdir
="\${ns_appresdir}/leim"
9481 INSTALL_ARCH_INDEP_EXTRA
=
9483 ns_frag
=$srcdir/src
/ns.mk
9484 NS_OBJ
="fontset.o fringe.o image.o"
9485 NS_OBJC_OBJ
="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o"
9487 CFLAGS
="$tmp_CFLAGS"
9488 CPPFLAGS
="$tmp_CPPFLAGS"
9496 case "${window_system}" in
9500 case "${with_x_toolkit}" in
9501 athena | lucid
) USE_X_TOOLKIT
=LUCID
;;
9502 motif
) USE_X_TOOLKIT
=MOTIF
;;
9504 USE_X_TOOLKIT
=none
;;
9505 gtk3
) with_gtk3
=yes
9506 USE_X_TOOLKIT
=none
;;
9507 no
) USE_X_TOOLKIT
=none
;;
9508 * ) USE_X_TOOLKIT
=maybe
;;
9518 if test "$window_system" = none
&& test "X$with_x" != "Xno"; then
9519 # Extract the first word of "X", so it can be a program name with args.
9520 set dummy X
; ac_word
=$2
9521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9522 $as_echo_n "checking for $ac_word... " >&6; }
9523 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then :
9524 $as_echo_n "(cached) " >&6
9526 if test -n "$HAVE_XSERVER"; then
9527 ac_cv_prog_HAVE_XSERVER
="$HAVE_XSERVER" # Let the user override the test.
9529 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9533 test -z "$as_dir" && as_dir
=.
9534 for ac_exec_ext
in '' $ac_executable_extensions; do
9535 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9536 ac_cv_prog_HAVE_XSERVER
="true"
9537 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9544 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER
="false"
9547 HAVE_XSERVER
=$ac_cv_prog_HAVE_XSERVER
9548 if test -n "$HAVE_XSERVER"; then
9549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_XSERVER" >&5
9550 $as_echo "$HAVE_XSERVER" >&6; }
9552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9553 $as_echo "no" >&6; }
9557 if test "$HAVE_XSERVER" = true ||
9558 test -n "$DISPLAY" ||
9559 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
9560 as_fn_error
"You seem to be running X, but no X development libraries
9561 were found. You should install the relevant development files for X
9562 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9563 sure you have development files for image handling, i.e.
9564 tiff, gif, jpeg, png and xpm.
9565 If you are sure you want Emacs compiled without X window support, pass
9567 to configure." "$LINENO" 5
9571 ### If we're using X11, we should use the X menu package.
9574 yes ) HAVE_MENUS
=yes ;;
9577 # Does the opsystem file prohibit the use of the GNU malloc?
9578 # Assume not, until told otherwise.
9581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc is Doug Lea style" >&5
9582 $as_echo_n "checking whether malloc is Doug Lea style... " >&6; }
9583 if test "${emacs_cv_var_doug_lea_malloc+set}" = set; then :
9584 $as_echo_n "(cached) " >&6
9586 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9587 /* end confdefs.h. */
9589 static void hook (void) {}
9593 malloc_set_state (malloc_get_state ());
9594 __after_morecore_hook = hook;
9595 __malloc_initialize_hook = hook;
9600 if ac_fn_c_try_link
"$LINENO"; then :
9601 emacs_cv_var_doug_lea_malloc
=yes
9603 emacs_cv_var_doug_lea_malloc
=no
9605 rm -f core conftest.err conftest.
$ac_objext \
9606 conftest
$ac_exeext conftest.
$ac_ext
9608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_var_doug_lea_malloc" >&5
9609 $as_echo "$emacs_cv_var_doug_lea_malloc" >&6; }
9610 doug_lea_malloc
=$emacs_cv_var_doug_lea_malloc
9615 ## darwin ld insists on the use of malloc routines in the System framework.
9616 darwin|sol2-10
) system_malloc
=yes ;;
9619 if test "${system_malloc}" = "yes"; then
9621 $as_echo "#define SYSTEM_MALLOC 1" >>confdefs.h
9625 (The GNU allocators don't work with this system configuration.)"
9629 test "$doug_lea_malloc" != "yes" && GMALLOC_OBJ
=gmalloc.o
9630 VMLIMIT_OBJ
=vm-limit.o
9635 if test "$doug_lea_malloc" = "yes" ; then
9636 if test "$GNU_MALLOC" = yes ; then
9638 (Using Doug Lea's new malloc from the GNU C Library.)"
9641 $as_echo "#define DOUG_LEA_MALLOC 1" >>confdefs.h
9644 ## Use mmap directly for allocating larger buffers.
9645 ## FIXME this comes from src/s/{gnu,gnu-linux}.h:
9646 ## #ifdef DOUG_LEA_MALLOC; #undef REL_ALLOC; #endif
9647 ## Does the AC_FUNC_MMAP test below make this check unnecessary?
9649 gnu
*) REL_ALLOC
=no
;;
9653 if test x
"${REL_ALLOC}" = x
; then
9654 REL_ALLOC
=${GNU_MALLOC}
9657 use_mmap_for_buffers
=no
9659 cygwin|freebsd|irix6-5
) use_mmap_for_buffers
=yes ;;
9669 for ac_func
in getpagesize
9671 ac_fn_c_check_func
"$LINENO" "getpagesize" "ac_cv_func_getpagesize"
9672 if test "x$ac_cv_func_getpagesize" = x
""yes; then :
9673 cat >>confdefs.h
<<_ACEOF
9674 #define HAVE_GETPAGESIZE 1
9680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
9681 $as_echo_n "checking for working mmap... " >&6; }
9682 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
9683 $as_echo_n "(cached) " >&6
9685 if test "$cross_compiling" = yes; then :
9686 ac_cv_func_mmap_fixed_mapped
=no
9688 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9689 /* end confdefs.h. */
9690 $ac_includes_default
9691 /* malloc might have been renamed as rpl_malloc. */
9694 /* Thanks to Mike Haertel and Jim Avera for this test.
9695 Here is a matrix of mmap possibilities:
9696 mmap private not fixed
9697 mmap private fixed at somewhere currently unmapped
9698 mmap private fixed at somewhere already mapped
9699 mmap shared not fixed
9700 mmap shared fixed at somewhere currently unmapped
9701 mmap shared fixed at somewhere already mapped
9702 For private mappings, we should verify that changes cannot be read()
9703 back from the file, nor mmap's back from the file at a different
9704 address. (There have been systems where private was not correctly
9705 implemented like the infamous i386 svr4.0, and systems where the
9706 VM page cache was not coherent with the file system buffer cache
9707 like early versions of FreeBSD and possibly contemporary NetBSD.)
9708 For shared mappings, we should conversely verify that changes get
9709 propagated back to all the places they're supposed to be.
9711 Grep wants private fixed already mapped.
9712 The main things grep needs to know about mmap are:
9713 * does it exist and is it safe to write into the mmap'd area
9714 * how to use it (BSD variants) */
9717 #include <sys/mman.h>
9719 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
9723 /* This mess was copied from the GNU getpagesize.h. */
9724 #ifndef HAVE_GETPAGESIZE
9725 # ifdef _SC_PAGESIZE
9726 # define getpagesize() sysconf(_SC_PAGESIZE)
9727 # else /* no _SC_PAGESIZE */
9728 # ifdef HAVE_SYS_PARAM_H
9729 # include <sys/param.h>
9730 # ifdef EXEC_PAGESIZE
9731 # define getpagesize() EXEC_PAGESIZE
9732 # else /* no EXEC_PAGESIZE */
9734 # define getpagesize() NBPG * CLSIZE
9737 # endif /* no CLSIZE */
9738 # else /* no NBPG */
9740 # define getpagesize() NBPC
9741 # else /* no NBPC */
9743 # define getpagesize() PAGESIZE
9744 # endif /* PAGESIZE */
9745 # endif /* no NBPC */
9746 # endif /* no NBPG */
9747 # endif /* no EXEC_PAGESIZE */
9748 # else /* no HAVE_SYS_PARAM_H */
9749 # define getpagesize() 8192 /* punt totally */
9750 # endif /* no HAVE_SYS_PARAM_H */
9751 # endif /* no _SC_PAGESIZE */
9753 #endif /* no HAVE_GETPAGESIZE */
9758 char *data, *data2, *data3;
9763 pagesize = getpagesize ();
9765 /* First, make a file with some known garbage in it. */
9766 data = (char *) malloc (pagesize);
9769 for (i = 0; i < pagesize; ++i)
9770 *(data + i) = rand ();
9772 fd = creat ("conftest.mmap", 0600);
9775 if (write (fd, data, pagesize) != pagesize)
9779 /* Next, check that the tail of a page is zero-filled. File must have
9780 non-zero length, otherwise we risk SIGBUS for entire page. */
9781 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
9785 if (write (fd2, cdata2, 1) != 1)
9787 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
9788 if (data2 == MAP_FAILED)
9790 for (i = 0; i < pagesize; ++i)
9794 if (munmap (data2, pagesize))
9797 /* Next, try to mmap the file at a fixed address which already has
9798 something else allocated at it. If we can, also make sure that
9799 we see the same garbage. */
9800 fd = open ("conftest.mmap", O_RDWR);
9803 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9804 MAP_PRIVATE | MAP_FIXED, fd, 0L))
9806 for (i = 0; i < pagesize; ++i)
9807 if (*(data + i) != *(data2 + i))
9810 /* Finally, make sure that changes to the mapped area do not
9811 percolate back to the file as seen by read(). (This is a bug on
9812 some variants of i386 svr4.0.) */
9813 for (i = 0; i < pagesize; ++i)
9814 *(data2 + i) = *(data2 + i) + 1;
9815 data3 = (char *) malloc (pagesize);
9818 if (read (fd, data3, pagesize) != pagesize)
9820 for (i = 0; i < pagesize; ++i)
9821 if (*(data + i) != *(data3 + i))
9827 if ac_fn_c_try_run
"$LINENO"; then :
9828 ac_cv_func_mmap_fixed_mapped
=yes
9830 ac_cv_func_mmap_fixed_mapped
=no
9832 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9833 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
9838 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
9839 if test $ac_cv_func_mmap_fixed_mapped = yes; then
9841 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
9844 rm -f conftest.mmap conftest.txt
9846 if test $use_mmap_for_buffers = yes; then
9848 $as_echo "#define USE_MMAP_FOR_BUFFERS 1" >>confdefs.h
9853 LIBS
="$LIBS_SYSTEM $LIBS"
9855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
9856 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
9857 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
9858 $as_echo_n "(cached) " >&6
9860 ac_check_lib_save_LIBS
=$LIBS
9862 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9863 /* end confdefs.h. */
9865 /* Override any GCC internal prototype to avoid an error.
9866 Use char because int might match the return type of a GCC
9867 builtin and then its argument prototype would still apply. */
9875 return dnet_ntoa ();
9880 if ac_fn_c_try_link
"$LINENO"; then :
9881 ac_cv_lib_dnet_dnet_ntoa
=yes
9883 ac_cv_lib_dnet_dnet_ntoa
=no
9885 rm -f core conftest.err conftest.
$ac_objext \
9886 conftest
$ac_exeext conftest.
$ac_ext
9887 LIBS
=$ac_check_lib_save_LIBS
9889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
9890 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
9891 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x
""yes; then :
9892 cat >>confdefs.h
<<_ACEOF
9893 #define HAVE_LIBDNET 1
9901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXbsd" >&5
9902 $as_echo_n "checking for main in -lXbsd... " >&6; }
9903 if test "${ac_cv_lib_Xbsd_main+set}" = set; then :
9904 $as_echo_n "(cached) " >&6
9906 ac_check_lib_save_LIBS
=$LIBS
9908 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9909 /* end confdefs.h. */
9920 if ac_fn_c_try_link
"$LINENO"; then :
9921 ac_cv_lib_Xbsd_main
=yes
9923 ac_cv_lib_Xbsd_main
=no
9925 rm -f core conftest.err conftest.
$ac_objext \
9926 conftest
$ac_exeext conftest.
$ac_ext
9927 LIBS
=$ac_check_lib_save_LIBS
9929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xbsd_main" >&5
9930 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
9931 if test "x$ac_cv_lib_Xbsd_main" = x
""yes; then :
9932 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -lXbsd"
9940 if test "$ac_cv_header_pthread_h"; then
9941 if test "$GMALLOC_OBJ" = gmalloc.o
; then
9942 emacs_pthread_function
=pthread_atfork
9944 emacs_pthread_function
=pthread_self
9946 as_ac_Lib
=`$as_echo "ac_cv_lib_pthread_$emacs_pthread_function" | $as_tr_sh`
9947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $emacs_pthread_function in -lpthread" >&5
9948 $as_echo_n "checking for $emacs_pthread_function in -lpthread... " >&6; }
9949 if { as_var
=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
9950 $as_echo_n "(cached) " >&6
9952 ac_check_lib_save_LIBS
=$LIBS
9953 LIBS
="-lpthread $LIBS"
9954 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9955 /* end confdefs.h. */
9957 /* Override any GCC internal prototype to avoid an error.
9958 Use char because int might match the return type of a GCC
9959 builtin and then its argument prototype would still apply. */
9963 char $emacs_pthread_function ();
9967 return $emacs_pthread_function ();
9972 if ac_fn_c_try_link
"$LINENO"; then :
9973 eval "$as_ac_Lib=yes"
9975 eval "$as_ac_Lib=no"
9977 rm -f core conftest.err conftest.
$ac_objext \
9978 conftest
$ac_exeext conftest.
$ac_ext
9979 LIBS
=$ac_check_lib_save_LIBS
9981 eval ac_res
=\$
$as_ac_Lib
9982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9983 $as_echo "$ac_res" >&6; }
9984 eval as_val
=\$
$as_ac_Lib
9985 if test "x$as_val" = x
""yes; then :
9990 if test "$HAVE_PTHREAD" = yes; then
9991 case "${canonical}" in
9993 *) LIB_PTHREAD
="-lpthread"
9994 LIBS
="$LIB_PTHREAD $LIBS" ;;
9997 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
10002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cma_open in -lpthreads" >&5
10003 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
10004 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then :
10005 $as_echo_n "(cached) " >&6
10007 ac_check_lib_save_LIBS
=$LIBS
10008 LIBS
="-lpthreads $LIBS"
10009 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10010 /* end confdefs.h. */
10012 /* Override any GCC internal prototype to avoid an error.
10013 Use char because int might match the return type of a GCC
10014 builtin and then its argument prototype would still apply. */
10022 return cma_open ();
10027 if ac_fn_c_try_link
"$LINENO"; then :
10028 ac_cv_lib_pthreads_cma_open
=yes
10030 ac_cv_lib_pthreads_cma_open
=no
10032 rm -f core conftest.err conftest.
$ac_objext \
10033 conftest
$ac_exeext conftest.
$ac_ext
10034 LIBS
=$ac_check_lib_save_LIBS
10036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_cma_open" >&5
10037 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
10038 if test "x$ac_cv_lib_pthreads_cma_open" = x
""yes; then :
10039 cat >>confdefs.h
<<_ACEOF
10040 #define HAVE_LIBPTHREADS 1
10043 LIBS
="-lpthreads $LIBS"
10048 ## Note: when using cpp in s/aix4.2.h, this definition depended on
10049 ## HAVE_LIBPTHREADS. That was not defined earlier in configure when
10050 ## the system file was sourced. Hence the value of LIBS_SYSTEM
10051 ## added to LIBS in configure would never contain the pthreads part,
10052 ## but the value used in Makefiles might. FIXME?
10054 ## -lpthreads seems to be necessary for Xlib in X11R6, and should
10055 ## be harmless on older versions of X where it happens to exist.
10056 test "$opsys" = "aix4-2" && \
10057 test $ac_cv_lib_pthreads_cma_open = yes && \
10058 LIBS_SYSTEM
="$LIBS_SYSTEM -lpthreads"
10063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
10064 $as_echo_n "checking for -bbigtoc option... " >&6; }
10065 if test "${gdb_cv_bigtoc+set}" = set; then :
10066 $as_echo_n "(cached) " >&6
10070 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
10071 *) gdb_cv_bigtoc
=-bbigtoc ;;
10074 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
10075 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10076 /* end confdefs.h. */
10086 if ac_fn_c_try_link
"$LINENO"; then :
10091 rm -f core conftest.err conftest.
$ac_objext \
10092 conftest
$ac_exeext conftest.
$ac_ext
10095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
10096 $as_echo "$gdb_cv_bigtoc" >&6; }
10100 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10101 # used for the tests that follow. We set them back to REAL_CFLAGS and
10102 # REAL_CPPFLAGS later on.
10104 REAL_CFLAGS
="$CFLAGS"
10105 REAL_CPPFLAGS
="$CPPFLAGS"
10107 if test "${HAVE_X11}" = "yes"; then
10108 DEFS
="$C_SWITCH_X_SITE $DEFS"
10109 LDFLAGS
="$LDFLAGS $LD_SWITCH_X_SITE"
10111 CFLAGS
="$C_SWITCH_X_SITE $CFLAGS"
10112 CPPFLAGS
="$C_SWITCH_X_SITE $CPPFLAGS"
10114 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10115 # This is handled by LD_SWITCH_X_SITE_RPATH during the real build,
10116 # but it's more convenient here to set LD_RUN_PATH since this
10117 # also works on hosts that don't understand LD_SWITCH_X_SITE_RPATH.
10118 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
10119 LD_RUN_PATH
=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10123 if test "${opsys}" = "gnu-linux"; then
10124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X on GNU/Linux needs -b to link" >&5
10125 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
10126 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10127 /* end confdefs.h. */
10132 XOpenDisplay ("foo");
10137 if ac_fn_c_try_link
"$LINENO"; then :
10138 xgnu_linux_first_failure
=no
10140 xgnu_linux_first_failure
=yes
10142 rm -f core conftest.err conftest.
$ac_objext \
10143 conftest
$ac_exeext conftest.
$ac_ext
10144 if test "${xgnu_linux_first_failure}" = "yes"; then
10145 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
10146 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
10147 OLD_CPPFLAGS
="$CPPFLAGS"
10149 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
10150 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
10151 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
10152 LIBS
="$LIBS -b i486-linuxaout"
10153 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10154 /* end confdefs.h. */
10159 XOpenDisplay ("foo");
10164 if ac_fn_c_try_link
"$LINENO"; then :
10165 xgnu_linux_second_failure
=no
10167 xgnu_linux_second_failure
=yes
10169 rm -f core conftest.err conftest.
$ac_objext \
10170 conftest
$ac_exeext conftest.
$ac_ext
10171 if test "${xgnu_linux_second_failure}" = "yes"; then
10172 # If we get the same failure with -b, there is no use adding -b.
10173 # So take it out. This plays safe.
10174 LD_SWITCH_X_SITE
="$OLD_LD_SWITCH_X_SITE"
10175 C_SWITCH_X_SITE
="$OLD_C_SWITCH_X_SITE"
10176 CPPFLAGS
="$OLD_CPPFLAGS"
10178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10179 $as_echo "no" >&6; }
10181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10182 $as_echo "yes" >&6; }
10185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10186 $as_echo "no" >&6; }
10190 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10191 # header files included from there.
10192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xkb" >&5
10193 $as_echo_n "checking for Xkb... " >&6; }
10194 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10195 /* end confdefs.h. */
10196 #include <X11/Xlib.h>
10197 #include <X11/XKBlib.h>
10201 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10206 if ac_fn_c_try_link
"$LINENO"; then :
10211 rm -f core conftest.err conftest.
$ac_objext \
10212 conftest
$ac_exeext conftest.
$ac_ext
10213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_xkb" >&5
10214 $as_echo "$emacs_xkb" >&6; }
10215 if test $emacs_xkb = yes; then
10217 $as_echo "#define HAVE_XKBGETKEYBOARD 1" >>confdefs.h
10221 for ac_func
in XrmSetDatabase XScreenResourceString \
10222 XScreenNumberOfScreen
10224 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10225 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10226 eval as_val
=\$
$as_ac_var
10227 if test "x$as_val" = x
""yes; then :
10228 cat >>confdefs.h
<<_ACEOF
10229 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10237 if test "${window_system}" = "x11"; then
10238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 version 6" >&5
10239 $as_echo_n "checking X11 version 6... " >&6; }
10240 if test "${emacs_cv_x11_version_6+set}" = set; then :
10241 $as_echo_n "(cached) " >&6
10243 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10244 /* end confdefs.h. */
10245 #include <X11/Xlib.h>
10249 #if XlibSpecificationRelease < 6
10257 if ac_fn_c_try_link
"$LINENO"; then :
10258 emacs_cv_x11_version_6
=yes
10260 emacs_cv_x11_version_6
=no
10262 rm -f core conftest.err conftest.
$ac_objext \
10263 conftest
$ac_exeext conftest.
$ac_ext
10266 if test $emacs_cv_x11_version_6 = yes; then
10267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
10268 $as_echo "6 or newer" >&6; }
10270 $as_echo "#define HAVE_X11R6 1" >>confdefs.h
10273 $as_echo "#define HAVE_X_I18N 1" >>confdefs.h
10275 ## inoue@ainet.or.jp says Solaris has a bug related to X11R6-style
10280 $as_echo "#define HAVE_X11R6_XIM 1" >>confdefs.h
10285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
10286 $as_echo "before 6" >&6; }
10291 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
10293 if test "${HAVE_X11}" = "yes" ||
test "${HAVE_NS}" = "yes"; then
10294 if test "${with_rsvg}" != "no"; then
10295 RSVG_REQUIRED
=2.11.0
10296 RSVG_MODULE
="librsvg-2.0 >= $RSVG_REQUIRED"
10301 if test "$PKG_CONFIG" = "no" ; then
10304 PKG_CONFIG_MIN_VERSION
=0.9.0
10305 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $RSVG_MODULE" >&5
10307 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
10309 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5 &&
10310 RSVG_CFLAGS
=`$PKG_CONFIG --cflags "$RSVG_MODULE" 2>&5` &&
10311 RSVG_LIBS
=`$PKG_CONFIG --libs "$RSVG_MODULE" 2>&5`; then
10318 RSVG_CFLAGS
=`$as_echo "$RSVG_CFLAGS" | sed -e "$edit_cflags"`
10319 RSVG_LIBS
=`$as_echo "$RSVG_LIBS" | sed -e 's,///*,/,g'`
10320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$RSVG_CFLAGS' LIBS='$RSVG_LIBS'" >&5
10321 $as_echo "yes CFLAGS='$RSVG_CFLAGS' LIBS='$RSVG_LIBS'" >&6; }
10324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10325 $as_echo "no" >&6; }
10328 ## If we have a custom action on failure, don't print errors, but
10329 ## do set a variable so people can do so.
10330 RSVG_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
10337 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10338 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10342 if test $succeeded = yes; then
10351 if test $HAVE_RSVG = yes; then
10353 $as_echo "#define HAVE_RSVG 1" >>confdefs.h
10355 CFLAGS
="$CFLAGS $RSVG_CFLAGS"
10356 LIBS
="$RSVG_LIBS $LIBS"
10361 HAVE_IMAGEMAGICK
=no
10362 if test "${HAVE_X11}" = "yes"; then
10363 if test "${with_imagemagick}" != "no"; then
10364 ## 6.2.8 is the earliest version known to work, but earlier versions
10365 ## might work - let us know if you find one.
10366 ## 6.0.7 does not work. See bug#7955.
10367 IMAGEMAGICK_MODULE
="Wand >= 6.2.8"
10371 if test "$PKG_CONFIG" = "no" ; then
10374 PKG_CONFIG_MIN_VERSION
=0.9.0
10375 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $IMAGEMAGICK_MODULE" >&5
10377 $as_echo_n "checking for $IMAGEMAGICK_MODULE... " >&6; }
10379 if $PKG_CONFIG --exists "$IMAGEMAGICK_MODULE" 2>&5 &&
10380 IMAGEMAGICK_CFLAGS
=`$PKG_CONFIG --cflags "$IMAGEMAGICK_MODULE" 2>&5` &&
10381 IMAGEMAGICK_LIBS
=`$PKG_CONFIG --libs "$IMAGEMAGICK_MODULE" 2>&5`; then
10388 IMAGEMAGICK_CFLAGS
=`$as_echo "$IMAGEMAGICK_CFLAGS" | sed -e "$edit_cflags"`
10389 IMAGEMAGICK_LIBS
=`$as_echo "$IMAGEMAGICK_LIBS" | sed -e 's,///*,/,g'`
10390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$IMAGEMAGICK_CFLAGS' LIBS='$IMAGEMAGICK_LIBS'" >&5
10391 $as_echo "yes CFLAGS='$IMAGEMAGICK_CFLAGS' LIBS='$IMAGEMAGICK_LIBS'" >&6; }
10394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10395 $as_echo "no" >&6; }
10396 IMAGEMAGICK_CFLAGS
=""
10397 IMAGEMAGICK_LIBS
=""
10398 ## If we have a custom action on failure, don't print errors, but
10399 ## do set a variable so people can do so.
10400 IMAGEMAGICK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$IMAGEMAGICK_MODULE"`
10407 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10408 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10412 if test $succeeded = yes; then
10413 HAVE_IMAGEMAGICK
=yes
10421 if test $HAVE_IMAGEMAGICK = yes; then
10423 $as_echo "#define HAVE_IMAGEMAGICK 1" >>confdefs.h
10425 CFLAGS
="$CFLAGS $IMAGEMAGICK_CFLAGS"
10426 LIBS
="$IMAGEMAGICK_LIBS $LIBS"
10427 for ac_func
in MagickExportImagePixels MagickMergeImageLayers
10429 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10430 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10431 eval as_val
=\$
$as_ac_var
10432 if test "x$as_val" = x
""yes; then :
10433 cat >>confdefs.h
<<_ACEOF
10434 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10447 if test "${with_gtk3}" = "yes"; then
10450 GTK_MODULES
="gtk+-3.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10455 if test "$PKG_CONFIG" = "no" ; then
10458 PKG_CONFIG_MIN_VERSION
=0.9.0
10459 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
10461 $as_echo_n "checking for $GTK_MODULES... " >&6; }
10463 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5 &&
10464 GTK_CFLAGS
=`$PKG_CONFIG --cflags "$GTK_MODULES" 2>&5` &&
10465 GTK_LIBS
=`$PKG_CONFIG --libs "$GTK_MODULES" 2>&5`; then
10472 GTK_CFLAGS
=`$as_echo "$GTK_CFLAGS" | sed -e "$edit_cflags"`
10473 GTK_LIBS
=`$as_echo "$GTK_LIBS" | sed -e 's,///*,/,g'`
10474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&5
10475 $as_echo "yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&6; }
10478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10479 $as_echo "no" >&6; }
10482 ## If we have a custom action on failure, don't print errors, but
10483 ## do set a variable so people can do so.
10484 GTK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
10491 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10492 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10496 if test $succeeded = yes; then
10502 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
10503 as_fn_error
"$GTK_PKG_ERRORS" "$LINENO" 5
10506 $as_echo "#define HAVE_GTK3 1" >>confdefs.h
10508 GTK_OBJ
=emacsgtkfixed.o
10511 if test "$pkg_check_gtk" != "yes"; then
10513 if test "${with_gtk}" = "yes" ||
test "$USE_X_TOOLKIT" = "maybe"; then
10516 GTK_MODULES
="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10521 if test "$PKG_CONFIG" = "no" ; then
10524 PKG_CONFIG_MIN_VERSION
=0.9.0
10525 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
10527 $as_echo_n "checking for $GTK_MODULES... " >&6; }
10529 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5 &&
10530 GTK_CFLAGS
=`$PKG_CONFIG --cflags "$GTK_MODULES" 2>&5` &&
10531 GTK_LIBS
=`$PKG_CONFIG --libs "$GTK_MODULES" 2>&5`; then
10538 GTK_CFLAGS
=`$as_echo "$GTK_CFLAGS" | sed -e "$edit_cflags"`
10539 GTK_LIBS
=`$as_echo "$GTK_LIBS" | sed -e 's,///*,/,g'`
10540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&5
10541 $as_echo "yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&6; }
10544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10545 $as_echo "no" >&6; }
10548 ## If we have a custom action on failure, don't print errors, but
10549 ## do set a variable so people can do so.
10550 GTK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
10557 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10558 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10562 if test $succeeded = yes; then
10568 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
10569 as_fn_error
"$GTK_PKG_ERRORS" "$LINENO" 5
10574 if test x
"$pkg_check_gtk" = xyes
; then
10578 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $GTK_CFLAGS"
10579 CFLAGS
="$CFLAGS $GTK_CFLAGS"
10580 LIBS
="$GTK_LIBS $LIBS"
10582 for ac_func
in gtk_main
10584 ac_fn_c_check_func
"$LINENO" "gtk_main" "ac_cv_func_gtk_main"
10585 if test "x$ac_cv_func_gtk_main" = x
""yes; then :
10586 cat >>confdefs.h
<<_ACEOF
10587 #define HAVE_GTK_MAIN 1
10593 if test "${GTK_COMPILES}" != "yes"; then
10594 if test "$USE_X_TOOLKIT" != "maybe"; then
10595 as_fn_error
"Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" "$LINENO" 5;
10600 $as_echo "#define USE_GTK 1" >>confdefs.h
10602 GTK_OBJ
="gtkutil.o $GTK_OBJ"
10604 if $PKG_CONFIG --atleast-version=2.10 gtk
+-2.0
; then
10607 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of Gtk+ will have problems with
10608 closing open displays. This is no problem if you just use
10609 one display, but if you use more than one and close one of them
10610 Emacs may crash." >&5
10611 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
10612 closing open displays. This is no problem if you just use
10613 one display, but if you use more than one and close one of them
10614 Emacs may crash." >&2;}
10623 if test "${HAVE_GTK}" = "yes"; then
10625 if test "$with_toolkit_scroll_bars" != no
; then
10626 with_toolkit_scroll_bars
=yes
10629 HAVE_GTK_FILE_SELECTION
=no
10630 ac_fn_c_check_decl
"$LINENO" "GTK_TYPE_FILE_SELECTION" "ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" "$ac_includes_default
10631 #include <gtk/gtk.h>
10633 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = x
""yes; then :
10634 HAVE_GTK_FILE_SELECTION
=yes
10636 HAVE_GTK_FILE_SELECTION
=no
10639 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
10640 for ac_func
in gtk_file_selection_new
10642 ac_fn_c_check_func
"$LINENO" "gtk_file_selection_new" "ac_cv_func_gtk_file_selection_new"
10643 if test "x$ac_cv_func_gtk_file_selection_new" = x
""yes; then :
10644 cat >>confdefs.h
<<_ACEOF
10645 #define HAVE_GTK_FILE_SELECTION_NEW 1
10654 for ac_func
in gtk_widget_get_window gtk_widget_set_has_window \
10655 gtk_dialog_get_action_area gtk_widget_get_sensitive \
10656 gtk_widget_get_mapped gtk_adjustment_get_page_size \
10657 gtk_orientable_set_orientation \
10658 gtk_window_set_has_resize_grip
10660 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10661 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10662 eval as_val
=\$
$as_ac_var
10663 if test "x$as_val" = x
""yes; then :
10664 cat >>confdefs.h
<<_ACEOF
10665 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10675 if test "${with_dbus}" = "yes"; then
10679 if test "$PKG_CONFIG" = "no" ; then
10682 PKG_CONFIG_MIN_VERSION
=0.9.0
10683 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1 >= 1.0" >&5
10685 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
10687 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5 &&
10688 DBUS_CFLAGS
=`$PKG_CONFIG --cflags "dbus-1 >= 1.0" 2>&5` &&
10689 DBUS_LIBS
=`$PKG_CONFIG --libs "dbus-1 >= 1.0" 2>&5`; then
10696 DBUS_CFLAGS
=`$as_echo "$DBUS_CFLAGS" | sed -e "$edit_cflags"`
10697 DBUS_LIBS
=`$as_echo "$DBUS_LIBS" | sed -e 's,///*,/,g'`
10698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$DBUS_CFLAGS' LIBS='$DBUS_LIBS'" >&5
10699 $as_echo "yes CFLAGS='$DBUS_CFLAGS' LIBS='$DBUS_LIBS'" >&6; }
10702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10703 $as_echo "no" >&6; }
10706 ## If we have a custom action on failure, don't print errors, but
10707 ## do set a variable so people can do so.
10708 DBUS_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
10715 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10716 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10720 if test $succeeded = yes; then
10726 if test "$HAVE_DBUS" = yes; then
10727 LIBS
="$LIBS $DBUS_LIBS"
10729 $as_echo "#define HAVE_DBUS 1" >>confdefs.h
10731 for ac_func
in dbus_watch_get_unix_fd \
10732 dbus_type_is_valid \
10733 dbus_validate_bus_name \
10734 dbus_validate_path \
10735 dbus_validate_interface \
10736 dbus_validate_member
10738 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10739 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10740 eval as_val
=\$
$as_ac_var
10741 if test "x$as_val" = x
""yes; then :
10742 cat >>confdefs.h
<<_ACEOF
10743 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10749 DBUS_OBJ
=dbusbind.o
10755 if test "${HAVE_X11}" = "yes" && test "${with_gsettings}" = "yes"; then
10759 if test "$PKG_CONFIG" = "no" ; then
10762 PKG_CONFIG_MIN_VERSION
=0.9.0
10763 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gio-2.0 >= 2.26" >&5
10765 $as_echo_n "checking for gio-2.0 >= 2.26... " >&6; }
10767 if $PKG_CONFIG --exists "gio-2.0 >= 2.26" 2>&5 &&
10768 GSETTINGS_CFLAGS
=`$PKG_CONFIG --cflags "gio-2.0 >= 2.26" 2>&5` &&
10769 GSETTINGS_LIBS
=`$PKG_CONFIG --libs "gio-2.0 >= 2.26" 2>&5`; then
10776 GSETTINGS_CFLAGS
=`$as_echo "$GSETTINGS_CFLAGS" | sed -e "$edit_cflags"`
10777 GSETTINGS_LIBS
=`$as_echo "$GSETTINGS_LIBS" | sed -e 's,///*,/,g'`
10778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GSETTINGS_CFLAGS' LIBS='$GSETTINGS_LIBS'" >&5
10779 $as_echo "yes CFLAGS='$GSETTINGS_CFLAGS' LIBS='$GSETTINGS_LIBS'" >&6; }
10782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10783 $as_echo "no" >&6; }
10784 GSETTINGS_CFLAGS
=""
10786 ## If we have a custom action on failure, don't print errors, but
10787 ## do set a variable so people can do so.
10788 GSETTINGS_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "gio-2.0 >= 2.26"`
10795 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10796 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10800 if test $succeeded = yes; then
10806 if test "$HAVE_GSETTINGS" = "yes"; then
10808 $as_echo "#define HAVE_GSETTINGS 1" >>confdefs.h
10810 SETTINGS_CFLAGS
="$GSETTINGS_CFLAGS"
10811 SETTINGS_LIBS
="$GSETTINGS_LIBS"
10816 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
10820 if test "$PKG_CONFIG" = "no" ; then
10823 PKG_CONFIG_MIN_VERSION
=0.9.0
10824 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.13" >&5
10826 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
10828 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5 &&
10829 GCONF_CFLAGS
=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13" 2>&5` &&
10830 GCONF_LIBS
=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13" 2>&5`; then
10837 GCONF_CFLAGS
=`$as_echo "$GCONF_CFLAGS" | sed -e "$edit_cflags"`
10838 GCONF_LIBS
=`$as_echo "$GCONF_LIBS" | sed -e 's,///*,/,g'`
10839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GCONF_CFLAGS' LIBS='$GCONF_LIBS'" >&5
10840 $as_echo "yes CFLAGS='$GCONF_CFLAGS' LIBS='$GCONF_LIBS'" >&6; }
10843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10844 $as_echo "no" >&6; }
10847 ## If we have a custom action on failure, don't print errors, but
10848 ## do set a variable so people can do so.
10849 GCONF_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.13"`
10856 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10857 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10861 if test $succeeded = yes; then
10867 if test "$HAVE_GCONF" = yes; then
10869 $as_echo "#define HAVE_GCONF 1" >>confdefs.h
10871 SETTINGS_CFLAGS
="$SETTINGS_CFLAGS $GCONF_CFLAGS"
10872 SETTINGS_LIBS
="$SETTINGS_LIBS $GCONF_LIBS"
10876 if test "$HAVE_GSETTINGS" = "yes" ||
test "$HAVE_GCONF" = "yes"; then
10877 SAVE_CFLAGS
="$CFLAGS"
10879 CFLAGS
="$SETTINGS_CFLAGS $CFLAGS"
10880 LIBS
="$SETTINGS_LIBS $LIBS"
10881 for ac_func
in g_type_init
10883 ac_fn_c_check_func
"$LINENO" "g_type_init" "ac_cv_func_g_type_init"
10884 if test "x$ac_cv_func_g_type_init" = x
""yes; then :
10885 cat >>confdefs.h
<<_ACEOF
10886 #define HAVE_G_TYPE_INIT 1
10892 CFLAGS
="$SAVE_CFLAGS"
10901 if test "${with_selinux}" = "yes"; then
10902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgetfilecon in -lselinux" >&5
10903 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
10904 if test "${ac_cv_lib_selinux_lgetfilecon+set}" = set; then :
10905 $as_echo_n "(cached) " >&6
10907 ac_check_lib_save_LIBS
=$LIBS
10908 LIBS
="-lselinux $LIBS"
10909 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10910 /* end confdefs.h. */
10912 /* Override any GCC internal prototype to avoid an error.
10913 Use char because int might match the return type of a GCC
10914 builtin and then its argument prototype would still apply. */
10918 char lgetfilecon ();
10922 return lgetfilecon ();
10927 if ac_fn_c_try_link
"$LINENO"; then :
10928 ac_cv_lib_selinux_lgetfilecon
=yes
10930 ac_cv_lib_selinux_lgetfilecon
=no
10932 rm -f core conftest.err conftest.
$ac_objext \
10933 conftest
$ac_exeext conftest.
$ac_ext
10934 LIBS
=$ac_check_lib_save_LIBS
10936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_lgetfilecon" >&5
10937 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
10938 if test "x$ac_cv_lib_selinux_lgetfilecon" = x
""yes; then :
10939 HAVE_LIBSELINUX
=yes
10944 if test "$HAVE_LIBSELINUX" = yes; then
10946 $as_echo "#define HAVE_LIBSELINUX 1" >>confdefs.h
10948 LIBSELINUX_LIBS
=-lselinux
10954 HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY
=no
10955 if test "${with_gnutls}" = "yes" ; then
10959 if test "$PKG_CONFIG" = "no" ; then
10962 PKG_CONFIG_MIN_VERSION
=0.9.0
10963 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls >= 2.6.6" >&5
10965 $as_echo_n "checking for gnutls >= 2.6.6... " >&6; }
10967 if $PKG_CONFIG --exists "gnutls >= 2.6.6" 2>&5 &&
10968 LIBGNUTLS_CFLAGS
=`$PKG_CONFIG --cflags "gnutls >= 2.6.6" 2>&5` &&
10969 LIBGNUTLS_LIBS
=`$PKG_CONFIG --libs "gnutls >= 2.6.6" 2>&5`; then
10976 LIBGNUTLS_CFLAGS
=`$as_echo "$LIBGNUTLS_CFLAGS" | sed -e "$edit_cflags"`
10977 LIBGNUTLS_LIBS
=`$as_echo "$LIBGNUTLS_LIBS" | sed -e 's,///*,/,g'`
10978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBGNUTLS_CFLAGS' LIBS='$LIBGNUTLS_LIBS'" >&5
10979 $as_echo "yes CFLAGS='$LIBGNUTLS_CFLAGS' LIBS='$LIBGNUTLS_LIBS'" >&6; }
10982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10983 $as_echo "no" >&6; }
10984 LIBGNUTLS_CFLAGS
=""
10986 ## If we have a custom action on failure, don't print errors, but
10987 ## do set a variable so people can do so.
10988 LIBGNUTLS_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "gnutls >= 2.6.6"`
10995 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10996 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11000 if test $succeeded = yes; then
11006 if test "${HAVE_GNUTLS}" = "yes"; then
11008 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
11012 CFLAGS
="$CFLAGS $LIBGNUTLS_CFLAGS"
11013 LIBS
="$LIBGNUTLS_LIBS $LIBS"
11014 for ac_func
in gnutls_certificate_set_verify_function
11016 ac_fn_c_check_func
"$LINENO" "gnutls_certificate_set_verify_function" "ac_cv_func_gnutls_certificate_set_verify_function"
11017 if test "x$ac_cv_func_gnutls_certificate_set_verify_function" = x
""yes; then :
11018 cat >>confdefs.h
<<_ACEOF
11019 #define HAVE_GNUTLS_CERTIFICATE_SET_VERIFY_FUNCTION 1
11021 HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY
=yes
11026 if test "${HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY}" = "yes"; then
11028 $as_echo "#define HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY 1" >>confdefs.h
11038 if test x
"${USE_X_TOOLKIT}" = xmaybe ||
test x
"${USE_X_TOOLKIT}" = xLUCID
; then
11039 if test "$with_xaw3d" != no
; then
11040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
11041 $as_echo_n "checking for xaw3d... " >&6; }
11042 if test "${emacs_cv_xaw3d+set}" = set; then :
11043 $as_echo_n "(cached) " >&6
11045 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11046 /* end confdefs.h. */
11048 #include <X11/Intrinsic.h>
11049 #include <X11/Xaw3d/Simple.h>
11058 if ac_fn_c_try_link
"$LINENO"; then :
11059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XawScrollbarSetThumb in -lXaw3d" >&5
11060 $as_echo_n "checking for XawScrollbarSetThumb in -lXaw3d... " >&6; }
11061 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then :
11062 $as_echo_n "(cached) " >&6
11064 ac_check_lib_save_LIBS
=$LIBS
11065 LIBS
="-lXaw3d $LIBS"
11066 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11067 /* end confdefs.h. */
11069 /* Override any GCC internal prototype to avoid an error.
11070 Use char because int might match the return type of a GCC
11071 builtin and then its argument prototype would still apply. */
11075 char XawScrollbarSetThumb ();
11079 return XawScrollbarSetThumb ();
11084 if ac_fn_c_try_link
"$LINENO"; then :
11085 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=yes
11087 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=no
11089 rm -f core conftest.err conftest.
$ac_objext \
11090 conftest
$ac_exeext conftest.
$ac_ext
11091 LIBS
=$ac_check_lib_save_LIBS
11093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
11094 $as_echo "$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6; }
11095 if test "x$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" = x
""yes; then :
11104 rm -f core conftest.err conftest.
$ac_objext \
11105 conftest
$ac_exeext conftest.
$ac_ext
11111 if test $emacs_cv_xaw3d = yes; then
11112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
11113 $as_echo "yes; using Lucid toolkit" >&6; }
11114 USE_X_TOOLKIT
=LUCID
11118 $as_echo "#define HAVE_XAW3D 1" >>confdefs.h
11121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11122 $as_echo "no" >&6; }
11123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXaw" >&5
11124 $as_echo_n "checking for libXaw... " >&6; }
11125 if test "${emacs_cv_xaw+set}" = set; then :
11126 $as_echo_n "(cached) " >&6
11128 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11129 /* end confdefs.h. */
11131 #include <X11/Intrinsic.h>
11132 #include <X11/Xaw/Simple.h>
11141 if ac_fn_c_try_link
"$LINENO"; then :
11146 rm -f core conftest.err conftest.
$ac_objext \
11147 conftest
$ac_exeext conftest.
$ac_ext
11150 if test $emacs_cv_xaw = yes; then
11151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
11152 $as_echo "yes; using Lucid toolkit" >&6; }
11153 USE_X_TOOLKIT
=LUCID
11155 elif test x
"${USE_X_TOOLKIT}" = xLUCID
; then
11156 as_fn_error
"Lucid toolkit requires X11/Xaw include files" "$LINENO" 5
11158 as_fn_error
"No X toolkit could be found.
11159 If you are sure you want Emacs compiled without an X toolkit, pass
11160 --with-x-toolkit=no
11161 to configure. Otherwise, install the development libraries for the toolkit
11162 that you want to use (e.g. Gtk+) and re-run configure." "$LINENO" 5
11167 X_TOOLKIT_TYPE
=$USE_X_TOOLKIT
11170 if test "${USE_X_TOOLKIT}" != "none"; then
11171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 toolkit version" >&5
11172 $as_echo_n "checking X11 toolkit version... " >&6; }
11173 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then :
11174 $as_echo_n "(cached) " >&6
11176 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11177 /* end confdefs.h. */
11178 #include <X11/Intrinsic.h>
11182 #if XtSpecificationRelease < 6
11190 if ac_fn_c_try_link
"$LINENO"; then :
11191 emacs_cv_x11_toolkit_version_6
=yes
11193 emacs_cv_x11_toolkit_version_6
=no
11195 rm -f core conftest.err conftest.
$ac_objext \
11196 conftest
$ac_exeext conftest.
$ac_ext
11199 HAVE_X11XTR6
=$emacs_cv_x11_toolkit_version_6
11200 if test $emacs_cv_x11_toolkit_version_6 = yes; then
11201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
11202 $as_echo "6 or newer" >&6; }
11204 $as_echo "#define HAVE_X11XTR6 1" >>confdefs.h
11206 LIBXTR6
="-lSM -lICE"
11208 ## Use libw.a along with X11R6 Xt.
11209 unixware
) LIBXTR6
="$LIBXTR6 -lw" ;;
11212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
11213 $as_echo "before 6" >&6; }
11217 if test x
$HAVE_X11XTR6 = xyes
; then
11218 LIBS
="-lXt -lSM -lICE $LIBS"
11222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuConvertStandardSelection in -lXmu" >&5
11223 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
11224 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then :
11225 $as_echo_n "(cached) " >&6
11227 ac_check_lib_save_LIBS
=$LIBS
11229 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11230 /* end confdefs.h. */
11232 /* Override any GCC internal prototype to avoid an error.
11233 Use char because int might match the return type of a GCC
11234 builtin and then its argument prototype would still apply. */
11238 char XmuConvertStandardSelection ();
11242 return XmuConvertStandardSelection ();
11247 if ac_fn_c_try_link
"$LINENO"; then :
11248 ac_cv_lib_Xmu_XmuConvertStandardSelection
=yes
11250 ac_cv_lib_Xmu_XmuConvertStandardSelection
=no
11252 rm -f core conftest.err conftest.
$ac_objext \
11253 conftest
$ac_exeext conftest.
$ac_ext
11254 LIBS
=$ac_check_lib_save_LIBS
11256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
11257 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
11258 if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = x
""yes; then :
11259 cat >>confdefs.h
<<_ACEOF
11260 #define HAVE_LIBXMU 1
11267 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no
&& LIBS
="$OLDLIBS"
11273 ## These systems don't supply Xmu.
11275 test "X$ac_cv_lib_Xmu_XmuConvertStandardSelection" != "Xyes" && LIBXMU
=
11280 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
11281 if test "${HAVE_X11}" = "yes"; then
11282 if test "${USE_X_TOOLKIT}" != "none"; then
11283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
11284 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
11285 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then :
11286 $as_echo_n "(cached) " >&6
11288 ac_check_lib_save_LIBS
=$LIBS
11289 LIBS
="-lXext $LIBS"
11290 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11291 /* end confdefs.h. */
11293 /* Override any GCC internal prototype to avoid an error.
11294 Use char because int might match the return type of a GCC
11295 builtin and then its argument prototype would still apply. */
11299 char XShapeQueryExtension ();
11303 return XShapeQueryExtension ();
11308 if ac_fn_c_try_link
"$LINENO"; then :
11309 ac_cv_lib_Xext_XShapeQueryExtension
=yes
11311 ac_cv_lib_Xext_XShapeQueryExtension
=no
11313 rm -f core conftest.err conftest.
$ac_objext \
11314 conftest
$ac_exeext conftest.
$ac_ext
11315 LIBS
=$ac_check_lib_save_LIBS
11317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
11318 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
11319 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x
""yes; then :
11320 cat >>confdefs.h
<<_ACEOF
11321 #define HAVE_LIBXEXT 1
11324 LIBS
="-lXext $LIBS"
11332 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11333 # OpenMotif may be installed in such a way on some GNU/Linux systems.
11334 if test -d /usr
/include
/openmotif
; then
11335 CPPFLAGS
="-I/usr/include/openmotif $CPPFLAGS"
11336 emacs_cv_openmotif
=yes
11337 case "$canonical" in
11338 x86_64-
*-linux-gnu* | powerpc64-
*-linux-gnu* | sparc64-
*-linux-gnu*)
11339 test -d /usr
/lib64
/openmotif
&& LDFLAGS
="-L/usr/lib64/openmotif $LDFLAGS"
11342 test -d /usr
/lib
/openmotif
&& LDFLAGS
="-L/usr/lib/openmotif $LDFLAGS"
11345 emacs_cv_openmotif
=no
11347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for (Open)Motif version 2.1" >&5
11348 $as_echo_n "checking for (Open)Motif version 2.1... " >&6; }
11349 if test "${emacs_cv_motif_version_2_1+set}" = set; then :
11350 $as_echo_n "(cached) " >&6
11352 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11353 /* end confdefs.h. */
11358 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
11361 Motif version prior to 2.1.
11367 if ac_fn_c_try_compile
"$LINENO"; then :
11368 emacs_cv_motif_version_2_1
=yes
11370 emacs_cv_motif_version_2_1
=no
11372 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_motif_version_2_1" >&5
11375 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
11376 if test $emacs_cv_motif_version_2_1 = yes; then
11377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpCreateContext in -lXp" >&5
11378 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
11379 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then :
11380 $as_echo_n "(cached) " >&6
11382 ac_check_lib_save_LIBS
=$LIBS
11384 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11385 /* end confdefs.h. */
11387 /* Override any GCC internal prototype to avoid an error.
11388 Use char because int might match the return type of a GCC
11389 builtin and then its argument prototype would still apply. */
11393 char XpCreateContext ();
11397 return XpCreateContext ();
11402 if ac_fn_c_try_link
"$LINENO"; then :
11403 ac_cv_lib_Xp_XpCreateContext
=yes
11405 ac_cv_lib_Xp_XpCreateContext
=no
11407 rm -f core conftest.err conftest.
$ac_objext \
11408 conftest
$ac_exeext conftest.
$ac_ext
11409 LIBS
=$ac_check_lib_save_LIBS
11411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpCreateContext" >&5
11412 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
11413 if test "x$ac_cv_lib_Xp_XpCreateContext" = x
""yes; then :
11417 if test x
$emacs_cv_openmotif = xyes
; then
11418 REAL_CPPFLAGS
="-I/usr/include/openmotif $REAL_CPPFLAGS"
11421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LessTif where some systems put it" >&5
11422 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
11423 if test "${emacs_cv_lesstif+set}" = set; then :
11424 $as_echo_n "(cached) " >&6
11426 # We put this in CFLAGS temporarily to precede other -I options
11427 # that might be in CFLAGS temporarily.
11428 # We put this in CPPFLAGS where it precedes the other -I options.
11429 OLD_CPPFLAGS
=$CPPFLAGS
11431 CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
11432 CFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
11433 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11434 /* end confdefs.h. */
11435 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
11444 if ac_fn_c_try_compile
"$LINENO"; then :
11445 emacs_cv_lesstif
=yes
11447 emacs_cv_lesstif
=no
11449 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_lesstif" >&5
11452 $as_echo "$emacs_cv_lesstif" >&6; }
11453 if test $emacs_cv_lesstif = yes; then
11454 # Make sure this -I option remains in CPPFLAGS after it is set
11455 # back to REAL_CPPFLAGS.
11456 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
11457 # have those other -I options anyway. Ultimately, having this
11458 # directory ultimately in CPPFLAGS will be enough.
11459 REAL_CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
11460 LDFLAGS
="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
11463 CPPFLAGS
=$OLD_CPPFLAGS
11466 ac_fn_c_check_header_mongrel
"$LINENO" "Xm/BulletinB.h" "ac_cv_header_Xm_BulletinB_h" "$ac_includes_default"
11467 if test "x$ac_cv_header_Xm_BulletinB_h" = x
""yes; then :
11470 as_fn_error
"Motif toolkit requested but requirements not found." "$LINENO" 5
11477 USE_TOOLKIT_SCROLL_BARS
=no
11478 if test "${with_toolkit_scroll_bars}" != "no"; then
11479 if test "${USE_X_TOOLKIT}" != "none"; then
11480 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11481 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11484 USE_TOOLKIT_SCROLL_BARS
=yes
11485 elif test "${HAVE_XAW3D}" = "yes" ||
test "${USE_X_TOOLKIT}" = "LUCID"; then
11486 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11488 USE_TOOLKIT_SCROLL_BARS
=yes
11490 elif test "${HAVE_GTK}" = "yes"; then
11491 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11493 USE_TOOLKIT_SCROLL_BARS
=yes
11494 elif test "${HAVE_NS}" = "yes"; then
11495 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11497 USE_TOOLKIT_SCROLL_BARS
=yes
11501 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11502 /* end confdefs.h. */
11504 #include <X11/Xlib.h>
11505 #include <X11/Xresource.h>
11514 if ac_fn_c_try_compile
"$LINENO"; then :
11517 $as_echo "#define HAVE_XIM 1" >>confdefs.h
11522 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11525 if test "${with_xim}" != "no"; then
11527 $as_echo "#define USE_XIM 1" >>confdefs.h
11532 if test "${HAVE_XIM}" != "no"; then
11533 late_CFLAGS
=$CFLAGS
11534 if test "$GCC" = yes; then
11535 CFLAGS
="$CFLAGS --pedantic-errors"
11537 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11538 /* end confdefs.h. */
11540 #include <X11/Xlib.h>
11541 #include <X11/Xresource.h>
11550 XPointer *client_data;
11552 /* If we're not using GCC, it's probably not XFree86, and this is
11553 probably right, but we can't use something like --pedantic-errors. */
11554 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
11555 char*, XIMProc, XPointer*);
11557 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
11563 if ac_fn_c_try_compile
"$LINENO"; then :
11564 emacs_cv_arg6_star
=yes
11566 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11567 if test "$emacs_cv_arg6_star" = yes; then
11568 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer*" >>confdefs.h
11571 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer" >>confdefs.h
11574 CFLAGS
=$late_CFLAGS
11577 ### Start of font-backend (under any platform) section.
11578 # (nothing here yet -- this is a placeholder)
11579 ### End of font-backend (under any platform) section.
11581 ### Start of font-backend (under X11) section.
11582 if test "${HAVE_X11}" = "yes"; then
11586 if test "$PKG_CONFIG" = "no" ; then
11589 PKG_CONFIG_MIN_VERSION
=0.9.0
11590 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.2.0" >&5
11592 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
11594 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5 &&
11595 FONTCONFIG_CFLAGS
=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0" 2>&5` &&
11596 FONTCONFIG_LIBS
=`$PKG_CONFIG --libs "fontconfig >= 2.2.0" 2>&5`; then
11603 FONTCONFIG_CFLAGS
=`$as_echo "$FONTCONFIG_CFLAGS" | sed -e "$edit_cflags"`
11604 FONTCONFIG_LIBS
=`$as_echo "$FONTCONFIG_LIBS" | sed -e 's,///*,/,g'`
11605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$FONTCONFIG_CFLAGS' LIBS='$FONTCONFIG_LIBS'" >&5
11606 $as_echo "yes CFLAGS='$FONTCONFIG_CFLAGS' LIBS='$FONTCONFIG_LIBS'" >&6; }
11609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11610 $as_echo "no" >&6; }
11611 FONTCONFIG_CFLAGS
=""
11613 ## If we have a custom action on failure, don't print errors, but
11614 ## do set a variable so people can do so.
11615 FONTCONFIG_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2.0"`
11622 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11623 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11627 if test $succeeded = yes; then
11634 ## Use -lXft if available, unless `--with-xft=no'.
11636 if test "${HAVE_FC}" = "no" ||
test "x${with_x}" = "xno"; then
11639 if test "x${with_xft}" != "xno"; then
11644 if test "$PKG_CONFIG" = "no" ; then
11647 PKG_CONFIG_MIN_VERSION
=0.9.0
11648 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xft >= 0.13.0" >&5
11650 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
11652 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5 &&
11653 XFT_CFLAGS
=`$PKG_CONFIG --cflags "xft >= 0.13.0" 2>&5` &&
11654 XFT_LIBS
=`$PKG_CONFIG --libs "xft >= 0.13.0" 2>&5`; then
11661 XFT_CFLAGS
=`$as_echo "$XFT_CFLAGS" | sed -e "$edit_cflags"`
11662 XFT_LIBS
=`$as_echo "$XFT_LIBS" | sed -e 's,///*,/,g'`
11663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$XFT_CFLAGS' LIBS='$XFT_LIBS'" >&5
11664 $as_echo "yes CFLAGS='$XFT_CFLAGS' LIBS='$XFT_LIBS'" >&6; }
11667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11668 $as_echo "no" >&6; }
11671 ## If we have a custom action on failure, don't print errors, but
11672 ## do set a variable so people can do so.
11673 XFT_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
11680 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11681 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11685 if test $succeeded = yes; then
11691 ## Because xftfont.c uses XRenderQueryExtension, we also
11692 ## need to link to -lXrender.
11694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5
11695 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
11696 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then :
11697 $as_echo_n "(cached) " >&6
11699 ac_check_lib_save_LIBS
=$LIBS
11700 LIBS
="-lXrender $LIBS"
11701 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11702 /* end confdefs.h. */
11704 /* Override any GCC internal prototype to avoid an error.
11705 Use char because int might match the return type of a GCC
11706 builtin and then its argument prototype would still apply. */
11710 char XRenderQueryExtension ();
11714 return XRenderQueryExtension ();
11719 if ac_fn_c_try_link
"$LINENO"; then :
11720 ac_cv_lib_Xrender_XRenderQueryExtension
=yes
11722 ac_cv_lib_Xrender_XRenderQueryExtension
=no
11724 rm -f core conftest.err conftest.
$ac_objext \
11725 conftest
$ac_exeext conftest.
$ac_ext
11726 LIBS
=$ac_check_lib_save_LIBS
11728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
11729 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
11730 if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = x
""yes; then :
11734 if test "$HAVE_XFT" != no
&& test "$HAVE_XRENDER" != no
; then
11735 OLD_CPPFLAGS
="$CPPFLAGS"
11736 OLD_CFLAGS
="$CFLAGS"
11738 CPPFLAGS
="$CPPFLAGS $XFT_CFLAGS"
11739 CFLAGS
="$CFLAGS $XFT_CFLAGS"
11740 XFT_LIBS
="-lXrender $XFT_LIBS"
11741 LIBS
="$XFT_LIBS $LIBS"
11742 ac_fn_c_check_header_mongrel
"$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default"
11743 if test "x$ac_cv_header_X11_Xft_Xft_h" = x
""yes; then :
11744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5
11745 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
11746 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then :
11747 $as_echo_n "(cached) " >&6
11749 ac_check_lib_save_LIBS
=$LIBS
11750 LIBS
="-lXft $XFT_LIBS $LIBS"
11751 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11752 /* end confdefs.h. */
11754 /* Override any GCC internal prototype to avoid an error.
11755 Use char because int might match the return type of a GCC
11756 builtin and then its argument prototype would still apply. */
11760 char XftFontOpen ();
11764 return XftFontOpen ();
11769 if ac_fn_c_try_link
"$LINENO"; then :
11770 ac_cv_lib_Xft_XftFontOpen
=yes
11772 ac_cv_lib_Xft_XftFontOpen
=no
11774 rm -f core conftest.err conftest.
$ac_objext \
11775 conftest
$ac_exeext conftest.
$ac_ext
11776 LIBS
=$ac_check_lib_save_LIBS
11778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftFontOpen" >&5
11779 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
11780 if test "x$ac_cv_lib_Xft_XftFontOpen" = x
""yes; then :
11788 if test "${HAVE_XFT}" = "yes"; then
11790 $as_echo "#define HAVE_XFT 1" >>confdefs.h
11793 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $XFT_CFLAGS"
11795 CPPFLAGS
="$OLD_CPPFLAGS"
11796 CFLAGS
="$OLD_CFLAGS"
11798 fi # "${HAVE_XFT}" = "yes"
11799 fi # "$HAVE_XFT" != no
11800 fi # "x${with_xft}" != "xno"
11802 ## We used to allow building with FreeType and without Xft.
11803 ## However, the ftx font backend driver is not in good shape.
11804 if test "$HAVE_XFT" != "yes"; then
11811 if test "$PKG_CONFIG" = "no" ; then
11814 PKG_CONFIG_MIN_VERSION
=0.9.0
11815 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype2" >&5
11817 $as_echo_n "checking for freetype2... " >&6; }
11819 if $PKG_CONFIG --exists "freetype2" 2>&5 &&
11820 FREETYPE_CFLAGS
=`$PKG_CONFIG --cflags "freetype2" 2>&5` &&
11821 FREETYPE_LIBS
=`$PKG_CONFIG --libs "freetype2" 2>&5`; then
11828 FREETYPE_CFLAGS
=`$as_echo "$FREETYPE_CFLAGS" | sed -e "$edit_cflags"`
11829 FREETYPE_LIBS
=`$as_echo "$FREETYPE_LIBS" | sed -e 's,///*,/,g'`
11830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$FREETYPE_CFLAGS' LIBS='$FREETYPE_LIBS'" >&5
11831 $as_echo "yes CFLAGS='$FREETYPE_CFLAGS' LIBS='$FREETYPE_LIBS'" >&6; }
11834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11835 $as_echo "no" >&6; }
11838 ## If we have a custom action on failure, don't print errors, but
11839 ## do set a variable so people can do so.
11840 FREETYPE_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2"`
11847 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11848 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11852 if test $succeeded = yes; then
11859 test "$HAVE_FREETYPE" = "no" && as_fn_error
"libxft requires libfreetype" "$LINENO" 5
11863 if test "${HAVE_FREETYPE}" = "yes"; then
11865 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
11867 if test "${with_libotf}" != "no"; then
11871 if test "$PKG_CONFIG" = "no" ; then
11874 PKG_CONFIG_MIN_VERSION
=0.9.0
11875 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libotf" >&5
11877 $as_echo_n "checking for libotf... " >&6; }
11879 if $PKG_CONFIG --exists "libotf" 2>&5 &&
11880 LIBOTF_CFLAGS
=`$PKG_CONFIG --cflags "libotf" 2>&5` &&
11881 LIBOTF_LIBS
=`$PKG_CONFIG --libs "libotf" 2>&5`; then
11888 LIBOTF_CFLAGS
=`$as_echo "$LIBOTF_CFLAGS" | sed -e "$edit_cflags"`
11889 LIBOTF_LIBS
=`$as_echo "$LIBOTF_LIBS" | sed -e 's,///*,/,g'`
11890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBOTF_CFLAGS' LIBS='$LIBOTF_LIBS'" >&5
11891 $as_echo "yes CFLAGS='$LIBOTF_CFLAGS' LIBS='$LIBOTF_LIBS'" >&6; }
11894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11895 $as_echo "no" >&6; }
11898 ## If we have a custom action on failure, don't print errors, but
11899 ## do set a variable so people can do so.
11900 LIBOTF_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
11907 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11908 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11912 if test $succeeded = yes; then
11918 if test "$HAVE_LIBOTF" = "yes"; then
11920 $as_echo "#define HAVE_LIBOTF 1" >>confdefs.h
11922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTF_get_variation_glyphs in -lotf" >&5
11923 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
11924 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then :
11925 $as_echo_n "(cached) " >&6
11927 ac_check_lib_save_LIBS
=$LIBS
11929 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11930 /* end confdefs.h. */
11932 /* Override any GCC internal prototype to avoid an error.
11933 Use char because int might match the return type of a GCC
11934 builtin and then its argument prototype would still apply. */
11938 char OTF_get_variation_glyphs ();
11942 return OTF_get_variation_glyphs ();
11947 if ac_fn_c_try_link
"$LINENO"; then :
11948 ac_cv_lib_otf_OTF_get_variation_glyphs
=yes
11950 ac_cv_lib_otf_OTF_get_variation_glyphs
=no
11952 rm -f core conftest.err conftest.
$ac_objext \
11953 conftest
$ac_exeext conftest.
$ac_ext
11954 LIBS
=$ac_check_lib_save_LIBS
11956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
11957 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
11958 if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = x
""yes; then :
11959 HAVE_OTF_GET_VARIATION_GLYPHS
=yes
11961 HAVE_OTF_GET_VARIATION_GLYPHS
=no
11964 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
11966 $as_echo "#define HAVE_OTF_GET_VARIATION_GLYPHS 1" >>confdefs.h
11974 if test "${HAVE_LIBOTF}" = yes; then
11975 if test "${with_m17n_flt}" != "no"; then
11979 if test "$PKG_CONFIG" = "no" ; then
11982 PKG_CONFIG_MIN_VERSION
=0.9.0
11983 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m17n-flt" >&5
11985 $as_echo_n "checking for m17n-flt... " >&6; }
11987 if $PKG_CONFIG --exists "m17n-flt" 2>&5 &&
11988 M17N_FLT_CFLAGS
=`$PKG_CONFIG --cflags "m17n-flt" 2>&5` &&
11989 M17N_FLT_LIBS
=`$PKG_CONFIG --libs "m17n-flt" 2>&5`; then
11996 M17N_FLT_CFLAGS
=`$as_echo "$M17N_FLT_CFLAGS" | sed -e "$edit_cflags"`
11997 M17N_FLT_LIBS
=`$as_echo "$M17N_FLT_LIBS" | sed -e 's,///*,/,g'`
11998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$M17N_FLT_CFLAGS' LIBS='$M17N_FLT_LIBS'" >&5
11999 $as_echo "yes CFLAGS='$M17N_FLT_CFLAGS' LIBS='$M17N_FLT_LIBS'" >&6; }
12002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12003 $as_echo "no" >&6; }
12006 ## If we have a custom action on failure, don't print errors, but
12007 ## do set a variable so people can do so.
12008 M17N_FLT_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
12015 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12016 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12020 if test $succeeded = yes; then
12026 if test "$HAVE_M17N_FLT" = "yes"; then
12028 $as_echo "#define HAVE_M17N_FLT 1" >>confdefs.h
12040 ### End of font-backend (under X11) section.
12051 ### Use -lXpm if available, unless `--with-xpm=no'.
12054 if test "${HAVE_X11}" = "yes"; then
12055 if test "${with_xpm}" != "no"; then
12056 ac_fn_c_check_header_mongrel
"$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
12057 if test "x$ac_cv_header_X11_xpm_h" = x
""yes; then :
12058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToPixmap in -lXpm" >&5
12059 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
12060 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then :
12061 $as_echo_n "(cached) " >&6
12063 ac_check_lib_save_LIBS
=$LIBS
12064 LIBS
="-lXpm -lX11 $LIBS"
12065 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12066 /* end confdefs.h. */
12068 /* Override any GCC internal prototype to avoid an error.
12069 Use char because int might match the return type of a GCC
12070 builtin and then its argument prototype would still apply. */
12074 char XpmReadFileToPixmap ();
12078 return XpmReadFileToPixmap ();
12083 if ac_fn_c_try_link
"$LINENO"; then :
12084 ac_cv_lib_Xpm_XpmReadFileToPixmap
=yes
12086 ac_cv_lib_Xpm_XpmReadFileToPixmap
=no
12088 rm -f core conftest.err conftest.
$ac_objext \
12089 conftest
$ac_exeext conftest.
$ac_ext
12090 LIBS
=$ac_check_lib_save_LIBS
12092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
12093 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
12094 if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = x
""yes; then :
12101 if test "${HAVE_XPM}" = "yes"; then
12102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
12103 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
12104 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12105 /* end confdefs.h. */
12106 #include "X11/xpm.h"
12107 #ifndef XpmReturnAllocPixels
12108 no_return_alloc_pixels
12112 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12113 $EGREP "no_return_alloc_pixels" >/dev
/null
2>&1; then :
12121 if test "${HAVE_XPM}" = "yes"; then
12122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12123 $as_echo "yes" >&6; }
12125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12126 $as_echo "no" >&6; }
12131 if test "${HAVE_XPM}" = "yes"; then
12133 $as_echo "#define HAVE_XPM 1" >>confdefs.h
12140 ### Use -ljpeg if available, unless `--with-jpeg=no'.
12143 if test "${HAVE_X11}" = "yes"; then
12144 if test "${with_jpeg}" != "no"; then
12145 ac_fn_c_check_header_mongrel
"$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
12146 if test "x$ac_cv_header_jerror_h" = x
""yes; then :
12147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_compress in -ljpeg" >&5
12148 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
12149 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then :
12150 $as_echo_n "(cached) " >&6
12152 ac_check_lib_save_LIBS
=$LIBS
12153 LIBS
="-ljpeg $LIBS"
12154 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12155 /* end confdefs.h. */
12157 /* Override any GCC internal prototype to avoid an error.
12158 Use char because int might match the return type of a GCC
12159 builtin and then its argument prototype would still apply. */
12163 char jpeg_destroy_compress ();
12167 return jpeg_destroy_compress ();
12172 if ac_fn_c_try_link
"$LINENO"; then :
12173 ac_cv_lib_jpeg_jpeg_destroy_compress
=yes
12175 ac_cv_lib_jpeg_jpeg_destroy_compress
=no
12177 rm -f core conftest.err conftest.
$ac_objext \
12178 conftest
$ac_exeext conftest.
$ac_ext
12179 LIBS
=$ac_check_lib_save_LIBS
12181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
12182 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
12183 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = x
""yes; then :
12192 if test "${HAVE_JPEG}" = "yes"; then
12193 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
12195 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12196 /* end confdefs.h. */
12197 #include <jpeglib.h>
12198 version=JPEG_LIB_VERSION
12201 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12202 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev
/null
2>&1; then :
12203 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
12206 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5
12207 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
12213 if test "${HAVE_JPEG}" = "yes"; then
12219 ### Use -lpng if available, unless `--with-png=no'.
12222 if test "${HAVE_X11}" = "yes"; then
12223 if test "${with_png}" != "no"; then
12224 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
12225 # in /usr/include/libpng.
12226 for ac_header
in png.h libpng
/png.h
12228 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12229 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12230 eval as_val
=\$
$as_ac_Header
12231 if test "x$as_val" = x
""yes; then :
12232 cat >>confdefs.h
<<_ACEOF
12233 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12240 if test "$ac_cv_header_png_h" = yes ||
test "$ac_cv_header_libpng_png_h" = yes ; then
12241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_channels in -lpng" >&5
12242 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
12243 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then :
12244 $as_echo_n "(cached) " >&6
12246 ac_check_lib_save_LIBS
=$LIBS
12247 LIBS
="-lpng -lz -lm $LIBS"
12248 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12249 /* end confdefs.h. */
12251 /* Override any GCC internal prototype to avoid an error.
12252 Use char because int might match the return type of a GCC
12253 builtin and then its argument prototype would still apply. */
12257 char png_get_channels ();
12261 return png_get_channels ();
12266 if ac_fn_c_try_link
"$LINENO"; then :
12267 ac_cv_lib_png_png_get_channels
=yes
12269 ac_cv_lib_png_png_get_channels
=no
12271 rm -f core conftest.err conftest.
$ac_objext \
12272 conftest
$ac_exeext conftest.
$ac_ext
12273 LIBS
=$ac_check_lib_save_LIBS
12275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_channels" >&5
12276 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
12277 if test "x$ac_cv_lib_png_png_get_channels" = x
""yes; then :
12284 if test "${HAVE_PNG}" = "yes"; then
12286 $as_echo "#define HAVE_PNG 1" >>confdefs.h
12288 LIBPNG
="-lpng -lz -lm"
12290 ac_fn_c_check_decl
"$LINENO" "png_longjmp" "ac_cv_have_decl_png_longjmp" "#ifdef HAVE_LIBPNG_PNG_H
12291 # include <libpng/png.h>
12297 if test "x$ac_cv_have_decl_png_longjmp" = x
""yes; then :
12301 $as_echo "#define PNG_DEPSTRUCT /**/" >>confdefs.h
12309 ### Use -ltiff if available, unless `--with-tiff=no'.
12312 if test "${HAVE_X11}" = "yes"; then
12313 if test "${with_tiff}" != "no"; then
12314 ac_fn_c_check_header_mongrel
"$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
12315 if test "x$ac_cv_header_tiffio_h" = x
""yes; then :
12317 # At least one tiff package requires the jpeg library.
12318 if test "${HAVE_JPEG}" = yes; then tifflibs
="-ljpeg $tifflibs"; fi
12319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFGetVersion in -ltiff" >&5
12320 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
12321 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then :
12322 $as_echo_n "(cached) " >&6
12324 ac_check_lib_save_LIBS
=$LIBS
12325 LIBS
="-ltiff $tifflibs $LIBS"
12326 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12327 /* end confdefs.h. */
12329 /* Override any GCC internal prototype to avoid an error.
12330 Use char because int might match the return type of a GCC
12331 builtin and then its argument prototype would still apply. */
12335 char TIFFGetVersion ();
12339 return TIFFGetVersion ();
12344 if ac_fn_c_try_link
"$LINENO"; then :
12345 ac_cv_lib_tiff_TIFFGetVersion
=yes
12347 ac_cv_lib_tiff_TIFFGetVersion
=no
12349 rm -f core conftest.err conftest.
$ac_objext \
12350 conftest
$ac_exeext conftest.
$ac_ext
12351 LIBS
=$ac_check_lib_save_LIBS
12353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
12354 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
12355 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = x
""yes; then :
12364 if test "${HAVE_TIFF}" = "yes"; then
12366 $as_echo "#define HAVE_TIFF 1" >>confdefs.h
12373 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
12376 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
12377 ac_fn_c_check_header_mongrel
"$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
12378 if test "x$ac_cv_header_gif_lib_h" = x
""yes; then :
12379 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
12380 # Earlier versions can crash Emacs.
12381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lgif" >&5
12382 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
12383 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then :
12384 $as_echo_n "(cached) " >&6
12386 ac_check_lib_save_LIBS
=$LIBS
12388 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12389 /* end confdefs.h. */
12391 /* Override any GCC internal prototype to avoid an error.
12392 Use char because int might match the return type of a GCC
12393 builtin and then its argument prototype would still apply. */
12397 char EGifPutExtensionLast ();
12401 return EGifPutExtensionLast ();
12406 if ac_fn_c_try_link
"$LINENO"; then :
12407 ac_cv_lib_gif_EGifPutExtensionLast
=yes
12409 ac_cv_lib_gif_EGifPutExtensionLast
=no
12411 rm -f core conftest.err conftest.
$ac_objext \
12412 conftest
$ac_exeext conftest.
$ac_ext
12413 LIBS
=$ac_check_lib_save_LIBS
12415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
12416 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
12417 if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = x
""yes; then :
12427 if test "$HAVE_GIF" = yes; then
12429 elif test "$HAVE_GIF" = maybe
; then
12430 # If gif_lib.h but no libgif, try libungif.
12431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lungif" >&5
12432 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
12433 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then :
12434 $as_echo_n "(cached) " >&6
12436 ac_check_lib_save_LIBS
=$LIBS
12437 LIBS
="-lungif $LIBS"
12438 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12439 /* end confdefs.h. */
12441 /* Override any GCC internal prototype to avoid an error.
12442 Use char because int might match the return type of a GCC
12443 builtin and then its argument prototype would still apply. */
12447 char EGifPutExtensionLast ();
12451 return EGifPutExtensionLast ();
12456 if ac_fn_c_try_link
"$LINENO"; then :
12457 ac_cv_lib_ungif_EGifPutExtensionLast
=yes
12459 ac_cv_lib_ungif_EGifPutExtensionLast
=no
12461 rm -f core conftest.err conftest.
$ac_objext \
12462 conftest
$ac_exeext conftest.
$ac_ext
12463 LIBS
=$ac_check_lib_save_LIBS
12465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
12466 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
12467 if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = x
""yes; then :
12473 test "$HAVE_GIF" = yes && LIBGIF
=-lungif
12476 if test "${HAVE_GIF}" = "yes"; then
12478 $as_echo "#define HAVE_GIF 1" >>confdefs.h
12484 if test "${HAVE_X11}" = "yes"; then
12487 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
12488 MISSING
="libXpm" && WITH_NO
="--with-xpm=no"
12489 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
12490 MISSING
="$MISSING libjpeg" && WITH_NO
="$WITH_NO --with-jpeg=no"
12491 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
12492 MISSING
="$MISSING libpng" && WITH_NO
="$WITH_NO --with-png=no"
12493 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
12494 MISSING
="$MISSING libgif/libungif" && WITH_NO
="$WITH_NO --with-gif=no"
12495 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
12496 MISSING
="$MISSING libtiff" && WITH_NO
="$WITH_NO --with-tiff=no"
12498 if test "X${MISSING}" != X
; then
12499 as_fn_error
"The following required libraries were not found:
12501 Maybe some development libraries/packages are missing?
12502 If you don't want to link with them give
12504 as options to configure" "$LINENO" 5
12508 ### Use -lgpm if available, unless `--with-gpm=no'.
12511 if test "${with_gpm}" != "no"; then
12512 ac_fn_c_check_header_mongrel
"$LINENO" "gpm.h" "ac_cv_header_gpm_h" "$ac_includes_default"
12513 if test "x$ac_cv_header_gpm_h" = x
""yes; then :
12514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5
12515 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
12516 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then :
12517 $as_echo_n "(cached) " >&6
12519 ac_check_lib_save_LIBS
=$LIBS
12521 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12522 /* end confdefs.h. */
12524 /* Override any GCC internal prototype to avoid an error.
12525 Use char because int might match the return type of a GCC
12526 builtin and then its argument prototype would still apply. */
12534 return Gpm_Open ();
12539 if ac_fn_c_try_link
"$LINENO"; then :
12540 ac_cv_lib_gpm_Gpm_Open
=yes
12542 ac_cv_lib_gpm_Gpm_Open
=no
12544 rm -f core conftest.err conftest.
$ac_objext \
12545 conftest
$ac_exeext conftest.
$ac_ext
12546 LIBS
=$ac_check_lib_save_LIBS
12548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Open" >&5
12549 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
12550 if test "x$ac_cv_lib_gpm_Gpm_Open" = x
""yes; then :
12558 if test "${HAVE_GPM}" = "yes"; then
12560 $as_echo "#define HAVE_GPM 1" >>confdefs.h
12572 ### Use NeXTstep API to implement GUI.
12573 if test "${HAVE_NS}" = "yes"; then
12575 $as_echo "#define HAVE_NS 1" >>confdefs.h
12577 if test "${NS_IMPL_COCOA}" = "yes"; then
12579 $as_echo "#define NS_IMPL_COCOA 1" >>confdefs.h
12582 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
12584 $as_echo "#define NS_IMPL_GNUSTEP 1" >>confdefs.h
12586 # See also .m.o rule in Makefile.in */
12587 # FIXME: are all these flags really needed? Document here why. */
12588 GNUSTEP_CFLAGS
="-D_REENTRANT -fPIC -fno-strict-aliasing -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
12589 ## Extra CFLAGS applied to src/*.m files.
12590 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"
12592 # We also have mouse menus.
12598 ### Use session management (-lSM -lICE) if available
12601 if test "${HAVE_X11}" = "yes"; then
12602 ac_fn_c_check_header_mongrel
"$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
12603 if test "x$ac_cv_header_X11_SM_SMlib_h" = x
""yes; then :
12604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5
12605 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
12606 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then :
12607 $as_echo_n "(cached) " >&6
12609 ac_check_lib_save_LIBS
=$LIBS
12610 LIBS
="-lSM -lICE $LIBS"
12611 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12612 /* end confdefs.h. */
12614 /* Override any GCC internal prototype to avoid an error.
12615 Use char because int might match the return type of a GCC
12616 builtin and then its argument prototype would still apply. */
12620 char SmcOpenConnection ();
12624 return SmcOpenConnection ();
12629 if ac_fn_c_try_link
"$LINENO"; then :
12630 ac_cv_lib_SM_SmcOpenConnection
=yes
12632 ac_cv_lib_SM_SmcOpenConnection
=no
12634 rm -f core conftest.err conftest.
$ac_objext \
12635 conftest
$ac_exeext conftest.
$ac_ext
12636 LIBS
=$ac_check_lib_save_LIBS
12638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
12639 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
12640 if test "x$ac_cv_lib_SM_SmcOpenConnection" = x
""yes; then :
12648 if test "${HAVE_X_SM}" = "yes"; then
12650 $as_echo "#define HAVE_X_SM 1" >>confdefs.h
12652 LIBXSM
="-lSM -lICE"
12655 *) LIBS
="$LIBXSM $LIBS" ;;
12661 ### Use libxml (-lxml2) if available
12663 if test "${with_xml2}" != "no"; then
12664 ### I'm not sure what the version number should be, so I just guessed.
12668 if test "$PKG_CONFIG" = "no" ; then
12671 PKG_CONFIG_MIN_VERSION
=0.9.0
12672 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 > 2.6.17" >&5
12674 $as_echo_n "checking for libxml-2.0 > 2.6.17... " >&6; }
12676 if $PKG_CONFIG --exists "libxml-2.0 > 2.6.17" 2>&5 &&
12677 LIBXML2_CFLAGS
=`$PKG_CONFIG --cflags "libxml-2.0 > 2.6.17" 2>&5` &&
12678 LIBXML2_LIBS
=`$PKG_CONFIG --libs "libxml-2.0 > 2.6.17" 2>&5`; then
12685 LIBXML2_CFLAGS
=`$as_echo "$LIBXML2_CFLAGS" | sed -e "$edit_cflags"`
12686 LIBXML2_LIBS
=`$as_echo "$LIBXML2_LIBS" | sed -e 's,///*,/,g'`
12687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBXML2_CFLAGS' LIBS='$LIBXML2_LIBS'" >&5
12688 $as_echo "yes CFLAGS='$LIBXML2_CFLAGS' LIBS='$LIBXML2_LIBS'" >&6; }
12691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12692 $as_echo "no" >&6; }
12695 ## If we have a custom action on failure, don't print errors, but
12696 ## do set a variable so people can do so.
12697 LIBXML2_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "libxml-2.0 > 2.6.17"`
12704 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12705 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12709 if test $succeeded = yes; then
12715 if test "${HAVE_LIBXML2}" = "yes"; then
12716 LIBS
="$LIBXML2_LIBS $LIBS"
12717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htmlReadMemory in -lxml2" >&5
12718 $as_echo_n "checking for htmlReadMemory in -lxml2... " >&6; }
12719 if test "${ac_cv_lib_xml2_htmlReadMemory+set}" = set; then :
12720 $as_echo_n "(cached) " >&6
12722 ac_check_lib_save_LIBS
=$LIBS
12723 LIBS
="-lxml2 $LIBS"
12724 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12725 /* end confdefs.h. */
12727 /* Override any GCC internal prototype to avoid an error.
12728 Use char because int might match the return type of a GCC
12729 builtin and then its argument prototype would still apply. */
12733 char htmlReadMemory ();
12737 return htmlReadMemory ();
12742 if ac_fn_c_try_link
"$LINENO"; then :
12743 ac_cv_lib_xml2_htmlReadMemory
=yes
12745 ac_cv_lib_xml2_htmlReadMemory
=no
12747 rm -f core conftest.err conftest.
$ac_objext \
12748 conftest
$ac_exeext conftest.
$ac_ext
12749 LIBS
=$ac_check_lib_save_LIBS
12751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_htmlReadMemory" >&5
12752 $as_echo "$ac_cv_lib_xml2_htmlReadMemory" >&6; }
12753 if test "x$ac_cv_lib_xml2_htmlReadMemory" = x
""yes; then :
12759 if test "${HAVE_LIBXML2}" = "yes"; then
12761 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
12772 # If netdb.h doesn't declare h_errno, we must declare it by hand.
12773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netdb declares h_errno" >&5
12774 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
12775 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then :
12776 $as_echo_n "(cached) " >&6
12778 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12779 /* end confdefs.h. */
12789 if ac_fn_c_try_link
"$LINENO"; then :
12790 emacs_cv_netdb_declares_h_errno
=yes
12792 emacs_cv_netdb_declares_h_errno
=no
12794 rm -f core conftest.err conftest.
$ac_objext \
12795 conftest
$ac_exeext conftest.
$ac_ext
12797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_netdb_declares_h_errno" >&5
12798 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
12799 if test $emacs_cv_netdb_declares_h_errno = yes; then
12801 $as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h
12805 # fmod, logb, and frexp are found in -lm on most systems.
12806 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
12807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
12808 $as_echo_n "checking for sqrt in -lm... " >&6; }
12809 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
12810 $as_echo_n "(cached) " >&6
12812 ac_check_lib_save_LIBS
=$LIBS
12814 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12815 /* end confdefs.h. */
12817 /* Override any GCC internal prototype to avoid an error.
12818 Use char because int might match the return type of a GCC
12819 builtin and then its argument prototype would still apply. */
12832 if ac_fn_c_try_link
"$LINENO"; then :
12833 ac_cv_lib_m_sqrt
=yes
12835 ac_cv_lib_m_sqrt
=no
12837 rm -f core conftest.err conftest.
$ac_objext \
12838 conftest
$ac_exeext conftest.
$ac_ext
12839 LIBS
=$ac_check_lib_save_LIBS
12841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
12842 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
12843 if test "x$ac_cv_lib_m_sqrt" = x
""yes; then :
12844 cat >>confdefs.h
<<_ACEOF
12845 #define HAVE_LIBM 1
12853 # Check for mail-locking functions in a "mail" library. Probably this should
12854 # have the same check as for liblockfile below.
12855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -lmail" >&5
12856 $as_echo_n "checking for maillock in -lmail... " >&6; }
12857 if test "${ac_cv_lib_mail_maillock+set}" = set; then :
12858 $as_echo_n "(cached) " >&6
12860 ac_check_lib_save_LIBS
=$LIBS
12861 LIBS
="-lmail $LIBS"
12862 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12863 /* end confdefs.h. */
12865 /* Override any GCC internal prototype to avoid an error.
12866 Use char because int might match the return type of a GCC
12867 builtin and then its argument prototype would still apply. */
12875 return maillock ();
12880 if ac_fn_c_try_link
"$LINENO"; then :
12881 ac_cv_lib_mail_maillock
=yes
12883 ac_cv_lib_mail_maillock
=no
12885 rm -f core conftest.err conftest.
$ac_objext \
12886 conftest
$ac_exeext conftest.
$ac_ext
12887 LIBS
=$ac_check_lib_save_LIBS
12889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mail_maillock" >&5
12890 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
12891 if test "x$ac_cv_lib_mail_maillock" = x
""yes; then :
12897 if test $have_mail = yes; then
12899 LIBS
="$LIBS_MAIL $LIBS"
12901 $as_echo "#define HAVE_LIBMAIL 1" >>confdefs.h
12906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -llockfile" >&5
12907 $as_echo_n "checking for maillock in -llockfile... " >&6; }
12908 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then :
12909 $as_echo_n "(cached) " >&6
12911 ac_check_lib_save_LIBS
=$LIBS
12912 LIBS
="-llockfile $LIBS"
12913 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12914 /* end confdefs.h. */
12916 /* Override any GCC internal prototype to avoid an error.
12917 Use char because int might match the return type of a GCC
12918 builtin and then its argument prototype would still apply. */
12926 return maillock ();
12931 if ac_fn_c_try_link
"$LINENO"; then :
12932 ac_cv_lib_lockfile_maillock
=yes
12934 ac_cv_lib_lockfile_maillock
=no
12936 rm -f core conftest.err conftest.
$ac_objext \
12937 conftest
$ac_exeext conftest.
$ac_ext
12938 LIBS
=$ac_check_lib_save_LIBS
12940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lockfile_maillock" >&5
12941 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
12942 if test "x$ac_cv_lib_lockfile_maillock" = x
""yes; then :
12948 if test $have_lockfile = yes; then
12949 LIBS_MAIL
=-llockfile
12950 LIBS
="$LIBS_MAIL $LIBS"
12952 $as_echo "#define HAVE_LIBLOCKFILE 1" >>confdefs.h
12955 # If we have the shared liblockfile, assume we must use it for mail
12956 # locking (e.g. Debian). If we couldn't link against liblockfile
12957 # (no liblockfile.a installed), ensure that we don't need to.
12958 # Extract the first word of "liblockfile.so", so it can be a program name with args.
12959 set dummy liblockfile.so
; ac_word
=$2
12960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12961 $as_echo_n "checking for $ac_word... " >&6; }
12962 if test "${ac_cv_prog_liblockfile+set}" = set; then :
12963 $as_echo_n "(cached) " >&6
12965 if test -n "$liblockfile"; then
12966 ac_cv_prog_liblockfile
="$liblockfile" # Let the user override the test.
12968 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12969 as_dummy
="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
12970 for as_dir
in $as_dummy
12973 test -z "$as_dir" && as_dir
=.
12974 for ac_exec_ext
in '' $ac_executable_extensions; do
12975 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12976 ac_cv_prog_liblockfile
="yes"
12977 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12984 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile
="no"
12987 liblockfile
=$ac_cv_prog_liblockfile
12988 if test -n "$liblockfile"; then
12989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblockfile" >&5
12990 $as_echo "$liblockfile" >&6; }
12992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12993 $as_echo "no" >&6; }
12997 if test $ac_cv_prog_liblockfile = yes; then
12998 as_fn_error
"Shared liblockfile found but can't link against it.
12999 This probably means that movemail could lose mail.
13000 There may be a \`development' package to install containing liblockfile." "$LINENO" 5
13008 ## Define MAIL_USE_FLOCK (or LOCKF) if the mailer uses flock (or lockf) to
13009 ## interlock access to the mail spool. The alternative is a lock file named
13010 ## /usr/spool/mail/$USER.lock.
13013 aix4-2
) mail_lock
="lockf" ;;
13015 gnu|freebsd|netbsd|openbsd|darwin|irix6-5
) mail_lock
="flock" ;;
13017 ## On GNU/Linux systems, both methods are used by various mail programs.
13018 ## I assume most people are using newer mailers that have heard of flock.
13019 ## Change this if you need to.
13020 ## Debian contains a patch which says: ``On Debian/GNU/Linux systems,
13021 ## configure gets the right answers, and that means *NOT* using flock.
13022 ## Using flock is guaranteed to be the wrong thing. See Debian Policy
13023 ## for details.'' and then uses `#ifdef DEBIAN'. Unfortunately the
13024 ## Debian maintainer hasn't provided a clean fix for Emacs.
13025 ## movemail.c will use `maillock' when MAILDIR, HAVE_LIBMAIL and
13026 ## HAVE_MAILLOCK_H are defined, so the following appears to be the
13027 ## correct logic. -- fx
13028 ## We must check for HAVE_LIBLOCKFILE too, as movemail does.
13029 ## liblockfile is a Free Software replacement for libmail, used on
13030 ## Debian systems and elsewhere. -rfr.
13033 if test $have_mail = yes ||
test $have_lockfile = yes; then
13034 test $ac_cv_header_maillock_h = yes && mail_lock
=no
13040 case "$mail_lock" in
13042 $as_echo "#define MAIL_USE_FLOCK 1" >>confdefs.h
13046 $as_echo "#define MAIL_USE_LOCKF 1" >>confdefs.h
13049 *) BLESSMAIL_TARGET
="need-blessmail" ;;
13054 for ac_func
in gethostname \
13055 closedir getrusage get_current_dir_name \
13056 lrand48 logb frexp fmod cbrt setsid \
13057 fpathconf
select euidaccess getpagesize setlocale \
13058 utimes getrlimit setrlimit setpgid getcwd shutdown getaddrinfo \
13059 __fpending strsignal setitimer \
13060 sendto recvfrom getsockname getpeername getifaddrs freeifaddrs \
13061 gai_strerror mkstemp getline getdelim fsync sync \
13062 difftime posix_memalign \
13063 getpwent endpwent getgrent endgrent \
13065 cfmakeraw cfsetspeed copysign __executable_start
13067 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13068 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
13069 eval as_val
=\$
$as_ac_var
13070 if test "x$as_val" = x
""yes; then :
13071 cat >>confdefs.h
<<_ACEOF
13072 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13079 if test $opsys = unixware
; then
13081 $as_echo "#define BROKEN_GETWD 1" >>confdefs.h
13084 for ac_func
in getwd
13086 ac_fn_c_check_func
"$LINENO" "getwd" "ac_cv_func_getwd"
13087 if test "x$ac_cv_func_getwd" = x
""yes; then :
13088 cat >>confdefs.h
<<_ACEOF
13089 #define HAVE_GETWD 1
13097 ## Eric Backus <ericb@lsid.hp.com> says, HP-UX 9.x on HP 700 machines
13098 ## has a broken `rint' in some library versions including math library
13099 ## version number A.09.05.
13100 ## You can fix the math library by installing patch number PHSS_4630.
13101 ## But we can fix it more reliably for Emacs by just not using rint.
13102 ## We also skip HAVE_RANDOM - see comments in src/conf_post.h.
13105 *) for ac_func
in random rint
13107 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13108 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
13109 eval as_val
=\$
$as_ac_var
13110 if test "x$as_val" = x
""yes; then :
13111 cat >>confdefs.h
<<_ACEOF
13112 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_unwind_init" >&5
13121 $as_echo_n "checking for __builtin_unwind_init... " >&6; }
13122 if test "${emacs_cv_func___builtin_unwind_init+set}" = set; then :
13123 $as_echo_n "(cached) " >&6
13125 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13126 /* end confdefs.h. */
13131 __builtin_unwind_init ();
13136 if ac_fn_c_try_link
"$LINENO"; then :
13137 emacs_cv_func___builtin_unwind_init
=yes
13139 emacs_cv_func___builtin_unwind_init
=no
13141 rm -f core conftest.err conftest.
$ac_objext \
13142 conftest
$ac_exeext conftest.
$ac_ext
13144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func___builtin_unwind_init" >&5
13145 $as_echo "$emacs_cv_func___builtin_unwind_init" >&6; }
13146 if test $emacs_cv_func___builtin_unwind_init = yes; then
13148 $as_echo "#define HAVE___BUILTIN_UNWIND_INIT 1" >>confdefs.h
13156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
13157 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
13158 if test "${ac_cv_sys_largefile_source+set}" = set; then :
13159 $as_echo_n "(cached) " >&6
13162 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13163 /* end confdefs.h. */
13164 #include <sys/types.h> /* for off_t */
13169 int (*fp) (FILE *, off_t, int) = fseeko;
13170 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13175 if ac_fn_c_try_link
"$LINENO"; then :
13176 ac_cv_sys_largefile_source
=no
; break
13178 rm -f core conftest.err conftest.
$ac_objext \
13179 conftest
$ac_exeext conftest.
$ac_ext
13180 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13181 /* end confdefs.h. */
13182 #define _LARGEFILE_SOURCE 1
13183 #include <sys/types.h> /* for off_t */
13188 int (*fp) (FILE *, off_t, int) = fseeko;
13189 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13194 if ac_fn_c_try_link
"$LINENO"; then :
13195 ac_cv_sys_largefile_source
=1; break
13197 rm -f core conftest.err conftest.
$ac_objext \
13198 conftest
$ac_exeext conftest.
$ac_ext
13199 ac_cv_sys_largefile_source
=unknown
13203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
13204 $as_echo "$ac_cv_sys_largefile_source" >&6; }
13205 case $ac_cv_sys_largefile_source in #(
13208 cat >>confdefs.h
<<_ACEOF
13209 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
13215 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
13216 # in glibc 2.1.3, but that breaks too many other things.
13217 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
13218 if test $ac_cv_sys_largefile_source != unknown
; then
13220 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
13225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5
13226 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
13227 if test "${ac_cv_func_getpgrp_void+set}" = set; then :
13228 $as_echo_n "(cached) " >&6
13230 # Use it with a single arg.
13231 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13232 /* end confdefs.h. */
13233 $ac_includes_default
13242 if ac_fn_c_try_compile
"$LINENO"; then :
13243 ac_cv_func_getpgrp_void
=no
13245 ac_cv_func_getpgrp_void
=yes
13247 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5
13251 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
13252 if test $ac_cv_func_getpgrp_void = yes; then
13254 $as_echo "#define GETPGRP_VOID 1" >>confdefs.h
13260 for ac_func
in grantpt
13262 ac_fn_c_check_func
"$LINENO" "grantpt" "ac_cv_func_grantpt"
13263 if test "x$ac_cv_func_grantpt" = x
""yes; then :
13264 cat >>confdefs.h
<<_ACEOF
13265 #define HAVE_GRANTPT 1
13272 # PTY-related GNU extensions.
13273 for ac_func
in getpt posix_openpt
13275 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13276 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
13277 eval as_val
=\$
$as_ac_var
13278 if test "x$as_val" = x
""yes; then :
13279 cat >>confdefs.h
<<_ACEOF
13280 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13287 # Check this now, so that we will NOT find the above functions in ncurses.
13288 # That is because we have not set up to link ncurses in lib-src.
13289 # It's better to believe a function is not available
13290 # than to expect to find it in ncurses.
13291 # Also we need tputs and friends to be able to build at all.
13292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tputs" >&5
13293 $as_echo_n "checking for library containing tputs... " >&6; }
13294 # Run a test program that contains a call to tputs, a call that is
13295 # never executed. This tests whether a pre-'main' dynamic linker
13296 # works with the library. It's too much trouble to actually call
13297 # tputs in the test program, due to portability hassles. When
13298 # cross-compiling, assume the test program will run if it links.
13300 # Maybe curses should be tried earlier?
13301 # See http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9736#35
13302 for tputs_library
in '' tinfo ncurses terminfo termcap curses
; do
13304 if test -z "$tputs_library"; then
13306 msg
='none required'
13308 LIBS_TERMCAP
=-l$tputs_library
13310 LIBS
="$LIBS_TERMCAP $LIBS"
13312 if test "$cross_compiling" = yes; then :
13313 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13314 /* end confdefs.h. */
13316 extern void tputs (const char *, int, int (*)(int));
13317 int main (int argc, char **argv)
13320 tputs (argv[0], 0, 0);
13325 if ac_fn_c_try_link
"$LINENO"; then :
13330 rm -f core conftest.err conftest.
$ac_objext \
13331 conftest
$ac_exeext conftest.
$ac_ext
13333 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13334 /* end confdefs.h. */
13336 extern void tputs (const char *, int, int (*)(int));
13337 int main (int argc, char **argv)
13340 tputs (argv[0], 0, 0);
13345 if ac_fn_c_try_run
"$LINENO"; then :
13350 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13351 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13355 if test "X$msg" != Xno
; then
13359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg" >&5
13360 $as_echo "$msg" >&6; }
13361 if test "X$msg" = Xno
; then
13362 as_fn_error
"The required function \`tputs' was not found in any library.
13363 The following libraries were tried (in order):
13364 libtinfo, libncurses, libterminfo, libtermcap, libcurses
13365 Please try installing whichever of these libraries is most appropriate
13366 for your system, together with its header files.
13367 For example, a libncurses-dev(el) or similar package." "$LINENO" 5
13370 ## Use termcap instead of terminfo?
13371 ## Only true for: freebsd < 40000, ms-w32, msdos, netbsd < 599002500.
13373 ## FIXME? In the cases below where we unconditionally set
13374 ## LIBS_TERMCAP="-lncurses", this overrides LIBS_TERMCAP = -ltinfo,
13375 ## if that was found above to have tputs.
13376 ## Should we use the gnu* logic everywhere?
13378 ## darwin: Prevents crashes when running Emacs in Terminal.app under 10.2.
13379 ## The ncurses library has been moved out of the System framework in
13380 ## Mac OS X 10.2. So if configure detects it, set the command-line
13381 ## option to use it.
13382 darwin
) LIBS_TERMCAP
="-lncurses" ;;
13384 gnu
*) test -z "$LIBS_TERMCAP" && LIBS_TERMCAP
="-lncurses" ;;
13387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FreeBSD is new enough to use terminfo" >&5
13388 $as_echo_n "checking whether FreeBSD is new enough to use terminfo... " >&6; }
13389 if test "${emacs_cv_freebsd_terminfo+set}" = set; then :
13390 $as_echo_n "(cached) " >&6
13392 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13393 /* end confdefs.h. */
13394 #include <osreldate.h>
13398 #if __FreeBSD_version < 400000
13406 if ac_fn_c_try_link
"$LINENO"; then :
13407 emacs_cv_freebsd_terminfo
=yes
13409 emacs_cv_freebsd_terminfo
=no
13411 rm -f core conftest.err conftest.
$ac_objext \
13412 conftest
$ac_exeext conftest.
$ac_ext
13416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_freebsd_terminfo" >&5
13417 $as_echo "$emacs_cv_freebsd_terminfo" >&6; }
13419 if test $emacs_cv_freebsd_terminfo = yes; then
13420 LIBS_TERMCAP
="-lncurses"
13423 LIBS_TERMCAP
="-ltermcap"
13428 if test "x$LIBS_TERMCAP" != "x-lterminfo"; then
13430 LIBS_TERMCAP
="-ltermcap"
13434 openbsd
) LIBS_TERMCAP
="-lncurses" ;;
13436 ## hpux: Make sure we get select from libc rather than from libcurses
13437 ## because libcurses on HPUX 10.10 has a broken version of select.
13438 ## We used to use -lc -lcurses, but this may be cleaner.
13439 ## FIXME? But TERMINFO = yes on hpux (it used to be explicitly
13440 # set that way, now it uses the default). Isn't this a contradiction?
13441 hpux
*) LIBS_TERMCAP
="-ltermcap" ;;
13445 TERMCAP_OBJ
=tparam.o
13446 if test $TERMINFO = yes; then
13448 $as_echo "#define TERMINFO 1" >>confdefs.h
13450 TERMCAP_OBJ
=terminfo.o
13456 # Do we have res_init, for detecting changes in /etc/resolv.conf?
13457 # On Darwin, res_init appears not to be useful: see bug#562 and
13458 # http://lists.gnu.org/archive/html/emacs-devel/2007-11/msg01467.html
13461 if test $opsys != darwin
; then
13463 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13464 /* end confdefs.h. */
13465 #include <netinet/in.h>
13466 #include <arpa/nameser.h>
13467 #include <resolv.h>
13476 if ac_fn_c_try_link
"$LINENO"; then :
13481 rm -f core conftest.err conftest.
$ac_objext \
13482 conftest
$ac_exeext conftest.
$ac_ext
13483 if test "$have_res_init" = no
; then
13485 LIBS
="$LIBS -lresolv"
13486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5
13487 $as_echo_n "checking for res_init with -lresolv... " >&6; }
13488 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13489 /* end confdefs.h. */
13490 #include <netinet/in.h>
13491 #include <arpa/nameser.h>
13492 #include <resolv.h>
13501 if ac_fn_c_try_link
"$LINENO"; then :
13506 rm -f core conftest.err conftest.
$ac_objext \
13507 conftest
$ac_exeext conftest.
$ac_ext
13508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5
13509 $as_echo "$have_res_init" >&6; }
13510 if test "$have_res_init" = yes ; then
13516 if test "$have_res_init" = yes; then
13518 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
13522 # Do we need the Hesiod library to provide the support routines?
13524 if test "$with_hesiod" != no
; then
13525 # Don't set $LIBS here -- see comments above. FIXME which comments?
13526 ac_fn_c_check_func
"$LINENO" "res_send" "ac_cv_func_res_send"
13527 if test "x$ac_cv_func_res_send" = x
""yes; then :
13530 ac_fn_c_check_func
"$LINENO" "__res_send" "ac_cv_func___res_send"
13531 if test "x$ac_cv_func___res_send" = x
""yes; then :
13534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5
13535 $as_echo_n "checking for res_send in -lresolv... " >&6; }
13536 if test "${ac_cv_lib_resolv_res_send+set}" = set; then :
13537 $as_echo_n "(cached) " >&6
13539 ac_check_lib_save_LIBS
=$LIBS
13540 LIBS
="-lresolv $LIBS"
13541 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13542 /* end confdefs.h. */
13544 /* Override any GCC internal prototype to avoid an error.
13545 Use char because int might match the return type of a GCC
13546 builtin and then its argument prototype would still apply. */
13554 return res_send ();
13559 if ac_fn_c_try_link
"$LINENO"; then :
13560 ac_cv_lib_resolv_res_send
=yes
13562 ac_cv_lib_resolv_res_send
=no
13564 rm -f core conftest.err conftest.
$ac_objext \
13565 conftest
$ac_exeext conftest.
$ac_ext
13566 LIBS
=$ac_check_lib_save_LIBS
13568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5
13569 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
13570 if test "x$ac_cv_lib_resolv_res_send" = x
""yes; then :
13573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5
13574 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
13575 if test "${ac_cv_lib_resolv___res_send+set}" = set; then :
13576 $as_echo_n "(cached) " >&6
13578 ac_check_lib_save_LIBS
=$LIBS
13579 LIBS
="-lresolv $LIBS"
13580 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13581 /* end confdefs.h. */
13583 /* Override any GCC internal prototype to avoid an error.
13584 Use char because int might match the return type of a GCC
13585 builtin and then its argument prototype would still apply. */
13589 char __res_send ();
13593 return __res_send ();
13598 if ac_fn_c_try_link
"$LINENO"; then :
13599 ac_cv_lib_resolv___res_send
=yes
13601 ac_cv_lib_resolv___res_send
=no
13603 rm -f core conftest.err conftest.
$ac_objext \
13604 conftest
$ac_exeext conftest.
$ac_ext
13605 LIBS
=$ac_check_lib_save_LIBS
13607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5
13608 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
13609 if test "x$ac_cv_lib_resolv___res_send" = x
""yes; then :
13619 if test "$resolv" = yes ; then
13624 ac_fn_c_check_func
"$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost"
13625 if test "x$ac_cv_func_hes_getmailhost" = x
""yes; then :
13628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5
13629 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
13630 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then :
13631 $as_echo_n "(cached) " >&6
13633 ac_check_lib_save_LIBS
=$LIBS
13634 LIBS
="-lhesiod $RESOLVLIB $LIBS"
13635 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13636 /* end confdefs.h. */
13638 /* Override any GCC internal prototype to avoid an error.
13639 Use char because int might match the return type of a GCC
13640 builtin and then its argument prototype would still apply. */
13644 char hes_getmailhost ();
13648 return hes_getmailhost ();
13653 if ac_fn_c_try_link
"$LINENO"; then :
13654 ac_cv_lib_hesiod_hes_getmailhost
=yes
13656 ac_cv_lib_hesiod_hes_getmailhost
=no
13658 rm -f core conftest.err conftest.
$ac_objext \
13659 conftest
$ac_exeext conftest.
$ac_ext
13660 LIBS
=$ac_check_lib_save_LIBS
13662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
13663 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
13664 if test "x$ac_cv_lib_hesiod_hes_getmailhost" = x
""yes; then :
13673 if test x
"$hesiod" = xyes
; then
13675 $as_echo "#define HAVE_LIBHESIOD 1" >>confdefs.h
13682 # Do we need libresolv (due to res_init or Hesiod)?
13683 if test "$resolv" = yes && test $opsys != darwin
; then
13685 $as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
13693 # These tell us which Kerberos-related libraries to use.
13700 if test "${with_kerberos}" != no
; then
13701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
13702 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
13703 if test "${ac_cv_lib_com_err_com_err+set}" = set; then :
13704 $as_echo_n "(cached) " >&6
13706 ac_check_lib_save_LIBS
=$LIBS
13707 LIBS
="-lcom_err $LIBS"
13708 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13709 /* end confdefs.h. */
13711 /* Override any GCC internal prototype to avoid an error.
13712 Use char because int might match the return type of a GCC
13713 builtin and then its argument prototype would still apply. */
13726 if ac_fn_c_try_link
"$LINENO"; then :
13727 ac_cv_lib_com_err_com_err
=yes
13729 ac_cv_lib_com_err_com_err
=no
13731 rm -f core conftest.err conftest.
$ac_objext \
13732 conftest
$ac_exeext conftest.
$ac_ext
13733 LIBS
=$ac_check_lib_save_LIBS
13735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
13736 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
13737 if test "x$ac_cv_lib_com_err_com_err" = x
""yes; then :
13743 if test $have_com_err = yes; then
13744 COM_ERRLIB
=-lcom_err
13745 LIBS
="$COM_ERRLIB $LIBS"
13747 $as_echo "#define HAVE_LIBCOM_ERR 1" >>confdefs.h
13750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5
13751 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
13752 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then :
13753 $as_echo_n "(cached) " >&6
13755 ac_check_lib_save_LIBS
=$LIBS
13756 LIBS
="-lcrypto $LIBS"
13757 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13758 /* end confdefs.h. */
13760 /* Override any GCC internal prototype to avoid an error.
13761 Use char because int might match the return type of a GCC
13762 builtin and then its argument prototype would still apply. */
13766 char mit_des_cbc_encrypt ();
13770 return mit_des_cbc_encrypt ();
13775 if ac_fn_c_try_link
"$LINENO"; then :
13776 ac_cv_lib_crypto_mit_des_cbc_encrypt
=yes
13778 ac_cv_lib_crypto_mit_des_cbc_encrypt
=no
13780 rm -f core conftest.err conftest.
$ac_objext \
13781 conftest
$ac_exeext conftest.
$ac_ext
13782 LIBS
=$ac_check_lib_save_LIBS
13784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
13785 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
13786 if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = x
""yes; then :
13792 if test $have_crypto = yes; then
13794 LIBS
="$CRYPTOLIB $LIBS"
13796 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
13799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
13800 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
13801 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then :
13802 $as_echo_n "(cached) " >&6
13804 ac_check_lib_save_LIBS
=$LIBS
13805 LIBS
="-lk5crypto $LIBS"
13806 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13807 /* end confdefs.h. */
13809 /* Override any GCC internal prototype to avoid an error.
13810 Use char because int might match the return type of a GCC
13811 builtin and then its argument prototype would still apply. */
13815 char mit_des_cbc_encrypt ();
13819 return mit_des_cbc_encrypt ();
13824 if ac_fn_c_try_link
"$LINENO"; then :
13825 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=yes
13827 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=no
13829 rm -f core conftest.err conftest.
$ac_objext \
13830 conftest
$ac_exeext conftest.
$ac_ext
13831 LIBS
=$ac_check_lib_save_LIBS
13833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
13834 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
13835 if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = x
""yes; then :
13841 if test $have_k5crypto = yes; then
13842 CRYPTOLIB
=-lk5crypto
13843 LIBS
="$CRYPTOLIB $LIBS"
13845 $as_echo "#define HAVE_LIBK5CRYPTO 1" >>confdefs.h
13848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
13849 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
13850 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then :
13851 $as_echo_n "(cached) " >&6
13853 ac_check_lib_save_LIBS
=$LIBS
13854 LIBS
="-lkrb5 $LIBS"
13855 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13856 /* end confdefs.h. */
13858 /* Override any GCC internal prototype to avoid an error.
13859 Use char because int might match the return type of a GCC
13860 builtin and then its argument prototype would still apply. */
13864 char krb5_init_context ();
13868 return krb5_init_context ();
13873 if ac_fn_c_try_link
"$LINENO"; then :
13874 ac_cv_lib_krb5_krb5_init_context
=yes
13876 ac_cv_lib_krb5_krb5_init_context
=no
13878 rm -f core conftest.err conftest.
$ac_objext \
13879 conftest
$ac_exeext conftest.
$ac_ext
13880 LIBS
=$ac_check_lib_save_LIBS
13882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
13883 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
13884 if test "x$ac_cv_lib_krb5_krb5_init_context" = x
""yes; then :
13890 if test $have_krb5=yes; then
13892 LIBS
="$KRB5LIB $LIBS"
13894 $as_echo "#define HAVE_LIBKRB5 1" >>confdefs.h
13897 if test "${with_kerberos5}" = no
; then
13898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
13899 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
13900 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then :
13901 $as_echo_n "(cached) " >&6
13903 ac_check_lib_save_LIBS
=$LIBS
13904 LIBS
="-ldes425 $LIBS"
13905 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13906 /* end confdefs.h. */
13908 /* Override any GCC internal prototype to avoid an error.
13909 Use char because int might match the return type of a GCC
13910 builtin and then its argument prototype would still apply. */
13914 char des_cbc_encrypt ();
13918 return des_cbc_encrypt ();
13923 if ac_fn_c_try_link
"$LINENO"; then :
13924 ac_cv_lib_des425_des_cbc_encrypt
=yes
13926 ac_cv_lib_des425_des_cbc_encrypt
=no
13928 rm -f core conftest.err conftest.
$ac_objext \
13929 conftest
$ac_exeext conftest.
$ac_ext
13930 LIBS
=$ac_check_lib_save_LIBS
13932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
13933 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
13934 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = x
""yes; then :
13940 if test $have_des425 = yes; then
13942 LIBS
="$DESLIB $LIBS"
13944 $as_echo "#define HAVE_LIBDES425 1" >>confdefs.h
13947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
13948 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
13949 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then :
13950 $as_echo_n "(cached) " >&6
13952 ac_check_lib_save_LIBS
=$LIBS
13954 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13955 /* end confdefs.h. */
13957 /* Override any GCC internal prototype to avoid an error.
13958 Use char because int might match the return type of a GCC
13959 builtin and then its argument prototype would still apply. */
13963 char des_cbc_encrypt ();
13967 return des_cbc_encrypt ();
13972 if ac_fn_c_try_link
"$LINENO"; then :
13973 ac_cv_lib_des_des_cbc_encrypt
=yes
13975 ac_cv_lib_des_des_cbc_encrypt
=no
13977 rm -f core conftest.err conftest.
$ac_objext \
13978 conftest
$ac_exeext conftest.
$ac_ext
13979 LIBS
=$ac_check_lib_save_LIBS
13981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
13982 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
13983 if test "x$ac_cv_lib_des_des_cbc_encrypt" = x
""yes; then :
13989 if test $have_des = yes; then
13991 LIBS
="$DESLIB $LIBS"
13993 $as_echo "#define HAVE_LIBDES 1" >>confdefs.h
13997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5
13998 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
13999 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then :
14000 $as_echo_n "(cached) " >&6
14002 ac_check_lib_save_LIBS
=$LIBS
14003 LIBS
="-lkrb4 $LIBS"
14004 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14005 /* end confdefs.h. */
14007 /* Override any GCC internal prototype to avoid an error.
14008 Use char because int might match the return type of a GCC
14009 builtin and then its argument prototype would still apply. */
14013 char krb_get_cred ();
14017 return krb_get_cred ();
14022 if ac_fn_c_try_link
"$LINENO"; then :
14023 ac_cv_lib_krb4_krb_get_cred
=yes
14025 ac_cv_lib_krb4_krb_get_cred
=no
14027 rm -f core conftest.err conftest.
$ac_objext \
14028 conftest
$ac_exeext conftest.
$ac_ext
14029 LIBS
=$ac_check_lib_save_LIBS
14031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5
14032 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
14033 if test "x$ac_cv_lib_krb4_krb_get_cred" = x
""yes; then :
14039 if test $have_krb4 = yes; then
14041 LIBS
="$KRB4LIB $LIBS"
14043 $as_echo "#define HAVE_LIBKRB4 1" >>confdefs.h
14046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5
14047 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
14048 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then :
14049 $as_echo_n "(cached) " >&6
14051 ac_check_lib_save_LIBS
=$LIBS
14053 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14054 /* end confdefs.h. */
14056 /* Override any GCC internal prototype to avoid an error.
14057 Use char because int might match the return type of a GCC
14058 builtin and then its argument prototype would still apply. */
14062 char krb_get_cred ();
14066 return krb_get_cred ();
14071 if ac_fn_c_try_link
"$LINENO"; then :
14072 ac_cv_lib_krb_krb_get_cred
=yes
14074 ac_cv_lib_krb_krb_get_cred
=no
14076 rm -f core conftest.err conftest.
$ac_objext \
14077 conftest
$ac_exeext conftest.
$ac_ext
14078 LIBS
=$ac_check_lib_save_LIBS
14080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5
14081 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
14082 if test "x$ac_cv_lib_krb_krb_get_cred" = x
""yes; then :
14088 if test $have_krb = yes; then
14090 LIBS
="$KRB4LIB $LIBS"
14092 $as_echo "#define HAVE_LIBKRB 1" >>confdefs.h
14098 if test "${with_kerberos5}" != no
; then
14099 for ac_header
in krb5.h
14101 ac_fn_c_check_header_mongrel
"$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
14102 if test "x$ac_cv_header_krb5_h" = x
""yes; then :
14103 cat >>confdefs.h
<<_ACEOF
14104 #define HAVE_KRB5_H 1
14106 ac_fn_c_check_member
"$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h>
14108 if test "x$ac_cv_member_krb5_error_text" = x
""yes; then :
14110 cat >>confdefs.h
<<_ACEOF
14111 #define HAVE_KRB5_ERROR_TEXT 1
14116 ac_fn_c_check_member
"$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h>
14118 if test "x$ac_cv_member_krb5_error_e_text" = x
""yes; then :
14120 cat >>confdefs.h
<<_ACEOF
14121 #define HAVE_KRB5_ERROR_E_TEXT 1
14132 for ac_header
in des.h
14134 ac_fn_c_check_header_mongrel
"$LINENO" "des.h" "ac_cv_header_des_h" "$ac_includes_default"
14135 if test "x$ac_cv_header_des_h" = x
""yes; then :
14136 cat >>confdefs.h
<<_ACEOF
14137 #define HAVE_DES_H 1
14141 for ac_header
in kerberosIV
/des.h
14143 ac_fn_c_check_header_mongrel
"$LINENO" "kerberosIV/des.h" "ac_cv_header_kerberosIV_des_h" "$ac_includes_default"
14144 if test "x$ac_cv_header_kerberosIV_des_h" = x
""yes; then :
14145 cat >>confdefs.h
<<_ACEOF
14146 #define HAVE_KERBEROSIV_DES_H 1
14150 for ac_header
in kerberos
/des.h
14152 ac_fn_c_check_header_mongrel
"$LINENO" "kerberos/des.h" "ac_cv_header_kerberos_des_h" "$ac_includes_default"
14153 if test "x$ac_cv_header_kerberos_des_h" = x
""yes; then :
14154 cat >>confdefs.h
<<_ACEOF
14155 #define HAVE_KERBEROS_DES_H 1
14170 for ac_header
in krb.h
14172 ac_fn_c_check_header_mongrel
"$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
14173 if test "x$ac_cv_header_krb_h" = x
""yes; then :
14174 cat >>confdefs.h
<<_ACEOF
14175 #define HAVE_KRB_H 1
14179 for ac_header
in kerberosIV
/krb.h
14181 ac_fn_c_check_header_mongrel
"$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default"
14182 if test "x$ac_cv_header_kerberosIV_krb_h" = x
""yes; then :
14183 cat >>confdefs.h
<<_ACEOF
14184 #define HAVE_KERBEROSIV_KRB_H 1
14188 for ac_header
in kerberos
/krb.h
14190 ac_fn_c_check_header_mongrel
"$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default"
14191 if test "x$ac_cv_header_kerberos_krb_h" = x
""yes; then :
14192 cat >>confdefs.h
<<_ACEOF
14193 #define HAVE_KERBEROS_KRB_H 1
14209 for ac_header
in com_err.h
14211 ac_fn_c_check_header_mongrel
"$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default"
14212 if test "x$ac_cv_header_com_err_h" = x
""yes; then :
14213 cat >>confdefs.h
<<_ACEOF
14214 #define HAVE_COM_ERR_H 1
14232 for ac_func
in $ac_func_list
14234 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14235 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
14236 eval as_val
=\$
$as_ac_var
14237 if test "x$as_val" = x
""yes; then :
14238 cat >>confdefs.h
<<_ACEOF
14239 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5
14249 $as_echo_n "checking whether localtime caches TZ... " >&6; }
14250 if test "${emacs_cv_localtime_cache+set}" = set; then :
14251 $as_echo_n "(cached) " >&6
14253 if test x
$ac_cv_func_tzset = xyes
; then
14254 if test "$cross_compiling" = yes; then :
14255 # If we have tzset, assume the worst when cross-compiling.
14256 emacs_cv_localtime_cache
=yes
14258 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14259 /* end confdefs.h. */
14261 char TZ_GMT0[] = "TZ=GMT0";
14262 char TZ_PST8[] = "TZ=PST8";
14265 time_t now = time ((time_t *) 0);
14266 int hour_GMT0, hour_unset;
14267 if (putenv (TZ_GMT0) != 0)
14269 hour_GMT0 = localtime (&now)->tm_hour;
14271 hour_unset = localtime (&now)->tm_hour;
14272 if (putenv (TZ_PST8) != 0)
14274 if (localtime (&now)->tm_hour == hour_GMT0)
14277 if (localtime (&now)->tm_hour != hour_unset)
14282 if ac_fn_c_try_run
"$LINENO"; then :
14283 emacs_cv_localtime_cache
=no
14285 emacs_cv_localtime_cache
=yes
14287 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14288 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14292 # If we lack tzset, report that localtime does not cache TZ,
14293 # since we can't invalidate the cache if we don't have tzset.
14294 emacs_cv_localtime_cache
=no
14297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5
14298 $as_echo "$emacs_cv_localtime_cache" >&6; }
14299 if test $emacs_cv_localtime_cache = yes; then
14301 $as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h
14306 ac_fn_c_check_func
"$LINENO" "socket" "ac_cv_func_socket"
14307 if test "x$ac_cv_func_socket" = x
""yes; then :
14313 if test $ok_so_far = yes; then
14314 ac_fn_c_check_header_mongrel
"$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
14315 if test "x$ac_cv_header_netinet_in_h" = x
""yes; then :
14323 if test $ok_so_far = yes; then
14324 ac_fn_c_check_header_mongrel
"$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
14325 if test "x$ac_cv_header_arpa_inet_h" = x
""yes; then :
14333 if test $ok_so_far = yes; then
14335 $as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h
14339 if test -f /usr
/lpp
/X11
/bin
/smt.exp
; then
14341 $as_echo "#define HAVE_AIX_SMT_EXP 1" >>confdefs.h
14345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports dynamic ptys" >&5
14346 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
14347 if test -d /dev
/pts
&& ls -d /dev
/ptmx
> /dev
/null
2>&1 ; then
14348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14349 $as_echo "yes" >&6; }
14351 $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
14354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14355 $as_echo "no" >&6; }
14358 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
14359 if test "x$ac_cv_type_pid_t" = x
""yes; then :
14363 cat >>confdefs.h
<<_ACEOF
14369 for ac_header
in vfork.h
14371 ac_fn_c_check_header_mongrel
"$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
14372 if test "x$ac_cv_header_vfork_h" = x
""yes; then :
14373 cat >>confdefs.h
<<_ACEOF
14374 #define HAVE_VFORK_H 1
14381 for ac_func
in fork vfork
14383 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14384 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
14385 eval as_val
=\$
$as_ac_var
14386 if test "x$as_val" = x
""yes; then :
14387 cat >>confdefs.h
<<_ACEOF
14388 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14394 if test "x$ac_cv_func_fork" = xyes
; then
14395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
14396 $as_echo_n "checking for working fork... " >&6; }
14397 if test "${ac_cv_func_fork_works+set}" = set; then :
14398 $as_echo_n "(cached) " >&6
14400 if test "$cross_compiling" = yes; then :
14401 ac_cv_func_fork_works
=cross
14403 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14404 /* end confdefs.h. */
14405 $ac_includes_default
14410 /* By Ruediger Kuhlmann. */
14411 return fork () < 0;
14417 if ac_fn_c_try_run
"$LINENO"; then :
14418 ac_cv_func_fork_works
=yes
14420 ac_cv_func_fork_works
=no
14422 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14423 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
14428 $as_echo "$ac_cv_func_fork_works" >&6; }
14431 ac_cv_func_fork_works
=$ac_cv_func_fork
14433 if test "x$ac_cv_func_fork_works" = xcross
; then
14435 *-*-amigaos* |
*-*-msdosdjgpp*)
14436 # Override, as these systems have only a dummy fork() stub
14437 ac_cv_func_fork_works
=no
14440 ac_cv_func_fork_works
=yes
14443 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
14444 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
14446 ac_cv_func_vfork_works
=$ac_cv_func_vfork
14447 if test "x$ac_cv_func_vfork" = xyes
; then
14448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
14449 $as_echo_n "checking for working vfork... " >&6; }
14450 if test "${ac_cv_func_vfork_works+set}" = set; then :
14451 $as_echo_n "(cached) " >&6
14453 if test "$cross_compiling" = yes; then :
14454 ac_cv_func_vfork_works
=cross
14456 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14457 /* end confdefs.h. */
14458 /* Thanks to Paul Eggert for this test. */
14459 $ac_includes_default
14460 #include <sys/wait.h>
14461 #ifdef HAVE_VFORK_H
14462 # include <vfork.h>
14464 /* On some sparc systems, changes by the child to local and incoming
14465 argument registers are propagated back to the parent. The compiler
14466 is told about this with #include <vfork.h>, but some compilers
14467 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
14468 static variable whose address is put into a register that is
14469 clobbered by the vfork. */
14472 sparc_address_test (int arg)
14474 sparc_address_test (arg) int arg;
14477 static pid_t child;
14495 pid_t parent = getpid ();
14498 sparc_address_test (0);
14503 /* Here is another test for sparc vfork register problems. This
14504 test uses lots of local variables, at least as many local
14505 variables as main has allocated so far including compiler
14506 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
14507 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
14508 reuse the register of parent for one of the local variables,
14509 since it will think that parent can't possibly be used any more
14510 in this routine. Assigning to the local variable will thus
14511 munge parent in the parent process. */
14513 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
14514 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
14515 /* Convince the compiler that p..p7 are live; otherwise, it might
14516 use the same hardware register for all 8 local variables. */
14517 if (p != p1 || p != p2 || p != p3 || p != p4
14518 || p != p5 || p != p6 || p != p7)
14521 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
14522 from child file descriptors. If the child closes a descriptor
14523 before it execs or exits, this munges the parent's descriptor
14524 as well. Test for this by closing stdout in the child. */
14525 _exit(close(fileno(stdout)) != 0);
14530 while (wait(&status) != child)
14533 /* Was there some problem with vforking? */
14536 /* Did the child fail? (This shouldn't happen.) */
14539 /* Did the vfork/compiler bug occur? */
14540 || parent != getpid()
14542 /* Did the file descriptor bug occur? */
14543 || fstat(fileno(stdout), &st) != 0
14548 if ac_fn_c_try_run
"$LINENO"; then :
14549 ac_cv_func_vfork_works
=yes
14551 ac_cv_func_vfork_works
=no
14553 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14554 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
14559 $as_echo "$ac_cv_func_vfork_works" >&6; }
14562 if test "x$ac_cv_func_fork_works" = xcross
; then
14563 ac_cv_func_vfork_works
=$ac_cv_func_vfork
14564 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
14565 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
14568 if test "x$ac_cv_func_vfork_works" = xyes
; then
14570 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
14574 $as_echo "#define vfork fork" >>confdefs.h
14577 if test "x$ac_cv_func_fork_works" = xyes
; then
14579 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
14584 for ac_func
in snprintf
14586 ac_fn_c_check_func
"$LINENO" "snprintf" "ac_cv_func_snprintf"
14587 if test "x$ac_cv_func_snprintf" = x
""yes; then :
14588 cat >>confdefs.h
<<_ACEOF
14589 #define HAVE_SNPRINTF 1
14596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
14597 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
14598 if test "${emacs_cv_langinfo_codeset+set}" = set; then :
14599 $as_echo_n "(cached) " >&6
14601 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14602 /* end confdefs.h. */
14603 #include <langinfo.h>
14607 char* cs = nl_langinfo(CODESET);
14612 if ac_fn_c_try_link
"$LINENO"; then :
14613 emacs_cv_langinfo_codeset
=yes
14615 emacs_cv_langinfo_codeset
=no
14617 rm -f core conftest.err conftest.
$ac_objext \
14618 conftest
$ac_exeext conftest.
$ac_ext
14621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5
14622 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
14623 if test $emacs_cv_langinfo_codeset = yes; then
14625 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
14629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
14630 $as_echo_n "checking for mbstate_t... " >&6; }
14631 if test "${ac_cv_type_mbstate_t+set}" = set; then :
14632 $as_echo_n "(cached) " >&6
14634 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14635 /* end confdefs.h. */
14636 $ac_includes_default
14637 # include <wchar.h>
14641 mbstate_t x; return sizeof x;
14646 if ac_fn_c_try_compile
"$LINENO"; then :
14647 ac_cv_type_mbstate_t
=yes
14649 ac_cv_type_mbstate_t
=no
14651 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
14654 $as_echo "$ac_cv_type_mbstate_t" >&6; }
14655 if test $ac_cv_type_mbstate_t = yes; then
14657 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
14661 $as_echo "#define mbstate_t int" >>confdefs.h
14665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5
14666 $as_echo_n "checking for C restricted array declarations... " >&6; }
14667 if test "${emacs_cv_c_restrict_arr+set}" = set; then :
14668 $as_echo_n "(cached) " >&6
14670 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14671 /* end confdefs.h. */
14672 void fred (int x[__restrict]);
14681 if ac_fn_c_try_compile
"$LINENO"; then :
14682 emacs_cv_c_restrict_arr
=yes
14684 emacs_cv_c_restrict_arr
=no
14686 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5
14689 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
14690 if test "$emacs_cv_c_restrict_arr" = yes; then
14692 $as_echo "#define __restrict_arr __restrict" >>confdefs.h
14698 $as_echo "#define AMPERSAND_FULL_NAME 1" >>confdefs.h
14702 $as_echo "#define CLASH_DETECTION 1" >>confdefs.h
14709 ## Note: PTYs are broken on darwin <6. Use at your own risk.
14711 $as_echo "#define HAVE_PTYS 1" >>confdefs.h
14715 $as_echo "#define HAVE_SOCKETS 1" >>confdefs.h
14721 $as_echo "#define NULL_DEVICE \"/dev/null\"" >>confdefs.h
14725 $as_echo "#define SEPCHAR ':'" >>confdefs.h
14729 $as_echo "#define subprocesses 1" >>confdefs.h
14733 $as_echo "#define USER_FULL_NAME pw->pw_gecos" >>confdefs.h
14738 $as_echo "#define DIRECTORY_SEP '/'" >>confdefs.h
14744 $as_echo "#define IS_DEVICE_SEP(_c_) 0" >>confdefs.h
14748 $as_echo "#define IS_DIRECTORY_SEP(_c_) ((_c_) == DIRECTORY_SEP)" >>confdefs.h
14752 $as_echo "#define IS_ANY_SEP(_c_) (IS_DIRECTORY_SEP (_c_))" >>confdefs.h
14760 if test x
$ac_cv_lib_Xmu_XmuConvertStandardSelection != xyes
; then
14761 $as_echo "#define NO_EDITRES 1" >>confdefs.h
14767 $as_echo "#define NO_EDITRES 1" >>confdefs.h
14774 darwin | gnu | hpux
* |
*bsd
)
14776 $as_echo "#define NO_TERMIO 1" >>confdefs.h
14780 irix6-5 | sol2
* | unixware
)
14782 $as_echo "#define NSIG_MINIMUM 32" >>confdefs.h
14789 hpux
* | irix6-5 | openbsd | sol2
* | unixware
)
14791 $as_echo "#define BROKEN_SIGIO 1" >>confdefs.h
14797 $as_echo "#define BROKEN_FIONREAD 1" >>confdefs.h
14800 $as_echo "#define BROKEN_SIGAIO 1" >>confdefs.h
14803 $as_echo "#define BROKEN_SIGPOLL 1" >>confdefs.h
14806 $as_echo "#define BROKEN_SIGPTY 1" >>confdefs.h
14810 $as_echo "#define BROKEN_GET_CURRENT_DIR_NAME 1" >>confdefs.h
14816 $as_echo "#define BROKEN_PTY_READ_AFTER_EAGAIN 1" >>confdefs.h
14822 $as_echo "#define NO_ABORT 1" >>confdefs.h
14830 $as_echo "#define HAVE_PROCFS 1" >>confdefs.h
14836 darwin | freebsd | netbsd | openbsd
)
14838 $as_echo "#define DONT_REOPEN_PTY 1" >>confdefs.h
14844 netbsd | openbsd
) sound_device
="/dev/audio" ;;
14845 *) sound_device
="/dev/dsp" ;;
14849 cat >>confdefs.h
<<_ACEOF
14850 #define DEFAULT_SOUND_DEVICE "$sound_device"
14856 darwin | gnu-linux | gnu-kfreebsd
)
14858 $as_echo "#define INTERRUPT_INPUT 1" >>confdefs.h
14865 cygwin|gnu|gnu-linux|gnu-kfreebsd|irix6-5|freebsd|netbsd|openbsd
)
14867 $as_echo "#define NARROWPROTO 1" >>confdefs.h
14881 $as_echo "#define PTY_ITERATION int c; for (c = 0; !c ; c++)" >>confdefs.h
14883 $as_echo "#define PTY_NAME_SPRINTF strcpy (pty_name, \"/dev/ptc\");" >>confdefs.h
14885 $as_echo "#define PTY_TTY_NAME_SPRINTF strcpy (pty_name, ttyname (fd));" >>confdefs.h
14890 $as_echo "#define PTY_ITERATION int i; for (i = 0; i < 1; i++)" >>confdefs.h
14892 $as_echo "#define PTY_OPEN do { int dummy; SIGMASKTYPE mask; mask = sigblock (sigmask (SIGCHLD)); if (-1 == openpty (&fd, &dummy, pty_name, 0, 0)) fd = -1; sigsetmask (mask); if (fd >= 0) emacs_close (dummy); } while (0)" >>confdefs.h
14894 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
14896 $as_echo "#define PTY_TTY_NAME_SPRINTF /**/" >>confdefs.h
14901 $as_echo "#define PTY_ITERATION int i; for (i = 0; i < 1; i++)" >>confdefs.h
14903 $as_echo "#define FIRST_PTY_LETTER 'p'" >>confdefs.h
14905 $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
14907 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
14909 $as_echo "#define PTY_TTY_NAME_SPRINTF /**/" >>confdefs.h
14914 $as_echo "#define FIRST_PTY_LETTER 'p'" >>confdefs.h
14918 gnu-linux | gnu-kfreebsd | freebsd | netbsd
)
14919 if test "x$ac_cv_func_grantpt" = xyes
; then
14921 $as_echo "#define UNIX98_PTYS 1" >>confdefs.h
14923 $as_echo "#define PTY_ITERATION int i; for (i = 0; i < 1; i++)" >>confdefs.h
14925 $as_echo "#define PTY_TTY_NAME_SPRINTF { char *ptyname; sigblock (sigmask (SIGCHLD)); if (grantpt (fd) == -1 || unlockpt (fd) == -1 || !(ptyname = ptsname(fd))) { sigunblock (sigmask (SIGCHLD)); close (fd); return -1; } snprintf (pty_name, sizeof pty_name, \"%s\", ptyname); sigunblock (sigmask (SIGCHLD)); }" >>confdefs.h
14927 if test "x$ac_cv_func_posix_openpt" = xyes
; then
14928 $as_echo "#define PTY_OPEN fd = posix_openpt (O_RDWR | O_NOCTTY)" >>confdefs.h
14930 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
14932 elif test "x$ac_cv_func_getpt" = xyes
; then
14933 $as_echo "#define PTY_OPEN fd = getpt ()" >>confdefs.h
14935 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
14938 $as_echo "#define PTY_NAME_SPRINTF strcpy (pty_name, \"/dev/ptmx\");" >>confdefs.h
14942 $as_echo "#define FIRST_PTY_LETTER 'p'" >>confdefs.h
14948 $as_echo "#define FIRST_PTY_LETTER 'p'" >>confdefs.h
14950 $as_echo "#define PTY_NAME_SPRINTF sprintf (pty_name, \"/dev/ptym/pty%c%x\", c, i);" >>confdefs.h
14952 $as_echo "#define PTY_TTY_NAME_SPRINTF sprintf (pty_name, \"/dev/pty/tty%c%x\", c, i);" >>confdefs.h
14957 $as_echo "#define PTY_ITERATION /**/" >>confdefs.h
14959 $as_echo "#define FIRST_PTY_LETTER 'q'" >>confdefs.h
14961 $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(SIGCLD, &cstat, &ocstat); name = _getpty (&fd, O_RDWR | O_NDELAY, 0600, 0); sigaction(SIGCLD, &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
14963 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
14965 $as_echo "#define PTY_TTY_NAME_SPRINTF /**/" >>confdefs.h
14970 $as_echo "#define PTY_TTY_NAME_SPRINTF { char *ptsname (int), *ptyname; sigblock (sigmask (SIGCLD)); if (grantpt (fd) == -1) { emacs_close (fd); return -1; } sigunblock (sigmask (SIGCLD)); if (unlockpt (fd) == -1) { emacs_close (fd); return -1; } if (!(ptyname = ptsname (fd))) { emacs_close (fd); return -1; } snprintf (pty_name, sizeof pty_name, \"%s\", ptyname); }" >>confdefs.h
14975 $as_echo "#define PTY_TTY_NAME_SPRINTF { char *ptsname (int), *ptyname; sigblock(sigmask(SIGCLD)); if (grantpt(fd) == -1) fatal(\"could not grant slave pty\"); sigunblock(sigmask(SIGCLD)); 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
14983 $as_echo "#define FIRST_PTY_LETTER 'z'" >>confdefs.h
14985 $as_echo "#define PTY_NAME_SPRINTF strcpy (pty_name, \"/dev/ptmx\");" >>confdefs.h
14988 $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
14997 aix4-2 | cygwin | gnu | irix6-5 | freebsd | netbsd | openbsd
)
14998 $as_echo "#define SIGNALS_VIA_CHARACTERS 1" >>confdefs.h
15002 gnu-linux | gnu-kfreebsd
)
15004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signals via characters" >&5
15005 $as_echo_n "checking for signals via characters... " >&6; }
15006 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15007 /* end confdefs.h. */
15009 #include <linux/version.h>
15010 #if LINUX_VERSION_CODE < 0x20400
15011 # error "Linux version too old"
15022 if ac_fn_c_try_cpp
"$LINENO"; then :
15023 emacs_signals_via_chars
=yes
15025 emacs_signals_via_chars
=no
15027 rm -f conftest.err conftest.
$ac_ext
15029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_signals_via_chars" >&5
15030 $as_echo "$emacs_signals_via_chars" >&6; }
15031 test $emacs_signals_via_chars = yes && $as_echo "#define SIGNALS_VIA_CHARACTERS 1" >>confdefs.h
15039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C library" >&5
15040 $as_echo_n "checking whether we are using the GNU C library... " >&6; }
15041 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15042 /* end confdefs.h. */
15044 #include <features.h>
15045 #ifndef __GNU_LIBRARY__
15046 # error "this is not the GNU C library"
15057 if ac_fn_c_try_cpp
"$LINENO"; then :
15062 rm -f conftest.err conftest.
$ac_ext
15063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_glibc" >&5
15064 $as_echo "$emacs_glibc" >&6; }
15066 if test $emacs_glibc = yes; then
15068 emacs_pending_output
=unknown
15071 gnu | gnu-linux | gnu-kfreebsd
)
15072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of pending output formalism" >&5
15073 $as_echo_n "checking for style of pending output formalism... " >&6; }
15074 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15075 /* end confdefs.h. */
15078 #if !defined (_IO_STDIO_H) && !defined (_STDIO_USES_IOSTREAM)
15079 # error "stdio definitions not found"
15090 if ac_fn_c_try_cpp
"$LINENO"; then :
15091 emacs_pending_output
=new
15093 rm -f conftest.err conftest.
$ac_ext
15095 if test $emacs_pending_output = unknown
; then
15097 gnu-linux | gnu-kfreebsd
)
15098 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15099 /* end confdefs.h. */
15103 # error "not using uclibc"
15114 if ac_fn_c_try_cpp
"$LINENO"; then :
15115 emacs_pending_output
=uclibc
15117 emacs_pending_output
=old
15119 rm -f conftest.err conftest.
$ac_ext
15124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_pending_output" >&5
15125 $as_echo "$emacs_pending_output" >&6; }
15127 case $emacs_pending_output in
15129 $as_echo "#define PENDING_OUTPUT_COUNT(FILE) ((FILE)->_IO_write_ptr - (FILE)->_IO_write_base)" >>confdefs.h
15133 $as_echo "#define PENDING_OUTPUT_COUNT(FILE) ((FILE)->__bufpos - (FILE)->__bufstart)" >>confdefs.h
15137 $as_echo "#define PENDING_OUTPUT_COUNT(FILE) ((FILE)->_pptr - (FILE)->_pbase)" >>confdefs.h
15143 if test $emacs_pending_output = unknown
; then
15144 $as_echo "#define PENDING_OUTPUT_COUNT(FILE) ((FILE)->__bufp - (FILE)->__buffer)" >>confdefs.h
15150 cygwin | darwin | freebsd | netbsd | openbsd
)
15151 $as_echo "#define PENDING_OUTPUT_COUNT(FILE) ((FILE)->_p - (FILE)->_bf._base)" >>confdefs.h
15156 $as_echo "#define PENDING_OUTPUT_COUNT(FILE) ((FILE)->__ptr - (FILE)->__base)" >>confdefs.h
15161 if test x
$ac_cv_header_stdio_ext_h = xyes
&& \
15162 test x
$ac_cv_func___fpending = xyes
; then
15163 $as_echo "#define PENDING_OUTPUT_COUNT(FILE) __fpending (FILE)" >>confdefs.h
15166 $as_echo "#define DISPNEW_NEEDS_STDIO_EXT 1" >>confdefs.h
15169 $as_echo "#define PENDING_OUTPUT_COUNT(FILE) ((FILE)->_ptr - (FILE)->_base)" >>confdefs.h
15181 $as_echo "#define DATA_START ({ extern int data_start; (char *) &data_start; })" >>confdefs.h
15186 $as_echo "#define DATA_START 0x40000000" >>confdefs.h
15188 $as_echo "#define DATA_SEG_BITS 0x40000000" >>confdefs.h
15192 $as_echo "#define DATA_START 0x10000000" >>confdefs.h
15194 $as_echo "#define DATA_SEG_BITS 0x10000000" >>confdefs.h
15204 darwin
) $as_echo "#define TAB3 OXTABS" >>confdefs.h
15207 gnu | freebsd | netbsd | openbsd
)
15209 $as_echo "#define TABDLY OXTABS" >>confdefs.h
15211 $as_echo "#define TAB3 OXTABS" >>confdefs.h
15215 gnu-linux | gnu-kfreebsd
)
15216 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15217 /* end confdefs.h. */
15231 if ac_fn_c_try_cpp
"$LINENO"; then :
15232 $as_echo "#define ULIMIT_BREAK_VALUE (32*1024*1024)" >>confdefs.h
15235 rm -f conftest.err conftest.
$ac_ext
15237 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15238 /* end confdefs.h. */
15252 if ac_fn_c_try_cpp
"$LINENO"; then :
15254 $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
15257 rm -f conftest.err conftest.
$ac_ext
15262 $as_echo "#define RUN_TIME_REMAP 1" >>confdefs.h
15267 $as_echo "#define ULIMIT_BREAK_VALUE 0x14000000" >>confdefs.h
15279 aix4-2 | hpux
* | unixware
)
15280 $as_echo "#define GC_MARK_STACK GC_USE_GCPROS_AS_BEFORE" >>confdefs.h
15284 gnu-linux | gnu-kfreebsd
)
15285 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15286 /* end confdefs.h. */
15288 #if defined __i386__ || defined __sparc__ || defined __mc68000__ \
15289 || defined __alpha__ || defined __mips__ || defined __s390__ \
15290 || defined __arm__ || defined __powerpc__ || defined __amd64__ \
15291 || defined __ia64__ || defined __sh__
15294 # error "setjmp not known to work on this arch"
15305 if ac_fn_c_try_cpp
"$LINENO"; then :
15306 $as_echo "#define GC_SETJMP_WORKS 1" >>confdefs.h
15309 $as_echo "#define GC_MARK_STACK GC_USE_GCPROS_AS_BEFORE" >>confdefs.h
15312 rm -f conftest.err conftest.
$ac_ext
15317 if test x
$GCC = xyes
; then
15318 $as_echo "#define GC_SETJMP_WORKS 1" >>confdefs.h
15322 freebsd | netbsd | openbsd | irix6-5 | sol2
* )
15323 $as_echo "#define GC_SETJMP_WORKS 1" >>confdefs.h
15332 $as_echo "#define _setjmp setjmp" >>confdefs.h
15335 $as_echo "#define _longjmp longjmp" >>confdefs.h
15338 $as_echo "#define TIOCSIGSEND TIOCSIGNAL" >>confdefs.h
15347 $as_echo "#define XOS_NEEDS_TIME_H 1" >>confdefs.h
15353 $as_echo "#define SIGNAL_H_AHB 1" >>confdefs.h
15369 $as_echo "#define USG /**/" >>confdefs.h
15371 $as_echo "#define USG5 /**/" >>confdefs.h
15373 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15374 /* end confdefs.h. */
15377 # error "_AIX not defined"
15388 if ac_fn_c_try_cpp
"$LINENO"; then :
15392 $as_echo "#define _AIX /**/" >>confdefs.h
15395 rm -f conftest.err conftest.
$ac_ext
15400 $as_echo "#define CYGWIN 1" >>confdefs.h
15405 $as_echo "#define BSD4_2 /**/" >>confdefs.h
15407 $as_echo "#define BSD_SYSTEM /**/" >>confdefs.h
15410 $as_echo "#define DARWIN_OS /**/" >>confdefs.h
15415 $as_echo "#define BSD4_2 /**/" >>confdefs.h
15418 $as_echo "#define BSD_SYSTEM_AHB 1" >>confdefs.h
15422 gnu | netbsd | openbsd
)
15423 $as_echo "#define BSD4_2 /**/" >>confdefs.h
15425 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15426 /* end confdefs.h. */
15429 # error "BSD_SYSTEM not defined"
15440 if ac_fn_c_try_cpp
"$LINENO"; then :
15443 $as_echo "#define BSD_SYSTEM 43" >>confdefs.h
15446 rm -f conftest.err conftest.
$ac_ext
15449 gnu-linux | gnu-kfreebsd
)
15450 $as_echo "#define USG /**/" >>confdefs.h
15453 $as_echo "#define GNU_LINUX /**/" >>confdefs.h
15458 $as_echo "#define USG /**/" >>confdefs.h
15460 $as_echo "#define USG5 /**/" >>confdefs.h
15463 $as_echo "#define HPUX /**/" >>confdefs.h
15468 $as_echo "#define USG /**/" >>confdefs.h
15470 $as_echo "#define USG5 /**/" >>confdefs.h
15472 $as_echo "#define USG5_4 /**/" >>confdefs.h
15475 $as_echo "#define IRIX6_5 /**/" >>confdefs.h
15480 $as_echo "#define USG /**/" >>confdefs.h
15482 $as_echo "#define USG5 /**/" >>confdefs.h
15484 $as_echo "#define USG5_4 /**/" >>confdefs.h
15487 $as_echo "#define SOLARIS2 /**/" >>confdefs.h
15492 $as_echo "#define USG /**/" >>confdefs.h
15494 $as_echo "#define USG5 /**/" >>confdefs.h
15496 $as_echo "#define USG5_4 /**/" >>confdefs.h
15505 $as_echo "#define G_SLICE_ALWAYS_MALLOC 1" >>confdefs.h
15511 $as_echo "#define BROKEN_SA_RESTART 1" >>confdefs.h
15514 $as_echo "#define USG_SUBTTY_WORKS 1" >>confdefs.h
15520 $as_echo "#define PREFER_VSUSP 1" >>confdefs.h
15523 $as_echo "#define SETPGRP_RELEASES_CTTY 1" >>confdefs.h
15529 $as_echo "#define _STRUCTURED_PROC 1" >>confdefs.h
15534 # Set up the CFLAGS for real compilation, so we can substitute it.
15535 CFLAGS
="$REAL_CFLAGS"
15536 CPPFLAGS
="$REAL_CPPFLAGS"
15538 ## Hack to detect a buggy GCC version.
15539 if test "x$GCC" = xyes \
15540 && test x
"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
15541 && test x
"`echo $CFLAGS | grep '\-O[23]'`" != x \
15542 && test x
"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x
; then
15543 as_fn_error
"GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." "$LINENO" 5
15546 version
=$PACKAGE_VERSION
15548 ### Specify what sort of things we'll be editing into Makefile and config.h.
15549 ### Use configuration here uncanonicalized to avoid exceeding size limits.
15575 ## FIXME? Nothing uses @LD_SWITCH_X_SITE@.
15576 ## src/Makefile.in did add LD_SWITCH_X_SITE (as a cpp define) to the
15577 ## end of LIBX_BASE, but nothing ever set it.
15582 ## Used in lwlib/Makefile.in.
15592 cat >>confdefs.h
<<_ACEOF
15593 #define EMACS_CONFIGURATION "${canonical}"
15597 cat >>confdefs.h
<<_ACEOF
15598 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
15606 if test "${HAVE_X_WINDOWS}" = "yes" ; then
15608 $as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h
15611 XOBJ
="xterm.o xfns.o xselect.o xrdb.o fontset.o xsmfns.o fringe.o image.o xsettings.o xgselect.o"
15613 if test "$HAVE_XFT" = "yes"; then
15614 FONT_OBJ
="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
15615 elif test "$HAVE_FREETYPE" = "yes"; then
15616 FONT_OBJ
="$FONT_OBJ ftfont.o ftxfont.o"
15626 if test "${USE_X_TOOLKIT}" != "none" ; then
15627 WIDGET_OBJ
=widget.o
15629 $as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h
15631 if test "${USE_X_TOOLKIT}" = "LUCID"; then
15633 $as_echo "#define USE_LUCID 1" >>confdefs.h
15635 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
15637 $as_echo "#define USE_MOTIF 1" >>confdefs.h
15642 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
15643 MOTIF_LIBW
="$MOTIF_LIBW -lXpm"
15647 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
15648 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
15649 MOTIF_LIBW
="MOTIF_LIBW -lXimp"
15653 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
15654 MOTIF_LIBW
="$MOTIF_LIBW -li18n"
15657 MOTIF_LIBW
="$MOTIF_LIBW $LIBXP"
15663 case "$USE_X_TOOLKIT" in
15664 MOTIF
) TOOLKIT_LIBW
="$MOTIF_LIBW" ;;
15665 LUCID
) TOOLKIT_LIBW
="$LUCID_LIBW" ;;
15666 none
) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW
="$GTK_LIBS" ;;
15670 if test "$USE_X_TOOLKIT" = "none"; then
15671 LIBXT_OTHER
="\$(LIBXSM)"
15672 OLDXMENU_TARGET
="really-oldXMenu"
15674 LIBXT_OTHER
="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext"
15675 OLDXMENU_TARGET
="really-lwlib"
15679 ## The X Menu stuff is present in the X10 distribution, but missing
15680 ## from X11. If we have X10, just use the installed library;
15681 ## otherwise, use our own copy.
15682 if test "${HAVE_X11}" = "yes" ; then
15684 $as_echo "#define HAVE_X11 1" >>confdefs.h
15687 if test "$USE_X_TOOLKIT" = "none"; then
15688 OLDXMENU
="\${oldXMenudir}/libXMenu11.a"
15690 OLDXMENU
="\${lwlibdir}/liblw.a"
15692 LIBXMENU
="\$(OLDXMENU)"
15693 LIBX_OTHER
="\$(LIBXT) \$(LIBX_EXTRA)"
15694 OLDXMENU_DEPS
="\${OLDXMENU} ../src/\${OLDXMENU}"
15696 ## For a syntactically valid Makefile; not actually used for anything.
15697 ## See comments in src/Makefile.in.
15699 ## FIXME This case (!HAVE_X11 && HAVE_X_WINDOWS) is no longer possible(?).
15700 if test "${HAVE_X_WINDOWS}" = "yes"; then
15709 if test "$HAVE_GTK" = "yes" ||
test "$HAVE_MENUS" != "yes"; then
15722 if test "${HAVE_MENUS}" = "yes" ; then
15724 $as_echo "#define HAVE_MENUS 1" >>confdefs.h
15728 if test "${GNU_MALLOC}" = "yes" ; then
15730 $as_echo "#define GNU_MALLOC 1" >>confdefs.h
15735 if test "${REL_ALLOC}" = "yes" ; then
15737 $as_echo "#define REL_ALLOC 1" >>confdefs.h
15740 test "$system_malloc" != "yes" && RALLOC_OBJ
=ralloc.o
15744 if test "$opsys" = "cygwin"; then
15745 CYGWIN_OBJ
="sheap.o"
15746 ## Cygwin differs because of its unexec().
15748 POST_ALLOC_OBJ
=lastfile.o
15751 PRE_ALLOC_OBJ
=lastfile.o
15758 # Configure gnulib. Although this does not affect CFLAGS or LIBS permanently.
15759 # it temporarily reverts them to their pre-pkg-config values,
15760 # because gnulib needs to work with both src (which uses the
15761 # pkg-config stuff) and lib-src (which does not). For example, gnulib
15762 # may need to determine whether LIB_CLOCK_GETTIME should contain -lrt,
15763 # and it therefore needs to run in an environment where LIBS does not
15764 # already contain -lrt merely because 'pkg-config --libs' printed '-lrt'
15765 # for some package unrelated to lib-src.
15766 SAVE_CFLAGS
=$CFLAGS
15768 CFLAGS
=$pre_PKG_CONFIG_CFLAGS
15769 LIBS
="$LIB_PTHREAD $pre_PKG_CONFIG_LIBS"
15781 LIBC_FATAL_STDERR_
=1
15782 export LIBC_FATAL_STDERR_
15784 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15785 # for constant arguments. Useless!
15786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
15787 $as_echo_n "checking for working alloca.h... " >&6; }
15788 if test "${ac_cv_working_alloca_h+set}" = set; then :
15789 $as_echo_n "(cached) " >&6
15791 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15792 /* end confdefs.h. */
15793 #include <alloca.h>
15797 char *p = (char *) alloca (2 * sizeof (int));
15803 if ac_fn_c_try_link
"$LINENO"; then :
15804 ac_cv_working_alloca_h
=yes
15806 ac_cv_working_alloca_h
=no
15808 rm -f core conftest.err conftest.
$ac_objext \
15809 conftest
$ac_exeext conftest.
$ac_ext
15811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
15812 $as_echo "$ac_cv_working_alloca_h" >&6; }
15813 if test $ac_cv_working_alloca_h = yes; then
15815 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
15819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
15820 $as_echo_n "checking for alloca... " >&6; }
15821 if test "${ac_cv_func_alloca_works+set}" = set; then :
15822 $as_echo_n "(cached) " >&6
15824 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15825 /* end confdefs.h. */
15827 # define alloca __builtin_alloca
15830 # include <malloc.h>
15831 # define alloca _alloca
15833 # ifdef HAVE_ALLOCA_H
15834 # include <alloca.h>
15839 # ifndef alloca /* predefined by HP cc +Olibcalls */
15850 char *p = (char *) alloca (1);
15856 if ac_fn_c_try_link
"$LINENO"; then :
15857 ac_cv_func_alloca_works
=yes
15859 ac_cv_func_alloca_works
=no
15861 rm -f core conftest.err conftest.
$ac_objext \
15862 conftest
$ac_exeext conftest.
$ac_ext
15864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
15865 $as_echo "$ac_cv_func_alloca_works" >&6; }
15867 if test $ac_cv_func_alloca_works = yes; then
15869 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
15872 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15873 # that cause trouble. Some versions do not even contain alloca or
15874 # contain a buggy version. If you still want to use their alloca,
15875 # use ar to extract alloca.o from them instead of compiling alloca.c.
15881 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
15883 $as_echo "#define C_ALLOCA 1" >>confdefs.h
15886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 'alloca.c' needs Cray hooks" >&5
15887 $as_echo_n "checking whether 'alloca.c' needs Cray hooks... " >&6; }
15888 if test "${ac_cv_os_cray+set}" = set; then :
15889 $as_echo_n "(cached) " >&6
15891 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15892 /* end confdefs.h. */
15893 #if defined CRAY && ! defined CRAY2
15900 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15901 $EGREP "webecray" >/dev
/null
2>&1; then :
15909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
15910 $as_echo "$ac_cv_os_cray" >&6; }
15911 if test $ac_cv_os_cray = yes; then
15912 for ac_func
in _getb67 GETB67 getb67
; do
15913 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15914 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
15915 eval as_val
=\$
$as_ac_var
15916 if test "x$as_val" = x
""yes; then :
15918 cat >>confdefs.h
<<_ACEOF
15919 #define CRAY_STACKSEG_END $ac_func
15928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
15929 $as_echo_n "checking stack direction for C alloca... " >&6; }
15930 if test "${ac_cv_c_stack_direction+set}" = set; then :
15931 $as_echo_n "(cached) " >&6
15933 if test "$cross_compiling" = yes; then :
15934 ac_cv_c_stack_direction
=0
15936 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15937 /* end confdefs.h. */
15938 $ac_includes_default
15940 find_stack_direction (int *addr, int depth)
15942 int dir, dummy = 0;
15945 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
15946 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
15947 return dir + dummy;
15951 main (int argc, char **argv)
15953 return find_stack_direction (0, argc + !argv + 20) < 0;
15956 if ac_fn_c_try_run
"$LINENO"; then :
15957 ac_cv_c_stack_direction
=1
15959 ac_cv_c_stack_direction
=-1
15961 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15962 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
15967 $as_echo "$ac_cv_c_stack_direction" >&6; }
15968 cat >>confdefs.h
<<_ACEOF
15969 #define STACK_DIRECTION $ac_cv_c_stack_direction
15978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
15979 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
15980 if test "${ac_cv_c_bigendian+set}" = set; then :
15981 $as_echo_n "(cached) " >&6
15983 ac_cv_c_bigendian
=unknown
15984 # See if we're dealing with a universal compiler.
15985 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15986 /* end confdefs.h. */
15987 #ifndef __APPLE_CC__
15988 not a universal capable compiler
15993 if ac_fn_c_try_compile
"$LINENO"; then :
15995 # Check for potential -arch flags. It is not universal unless
15996 # there are at least two -arch flags with different values.
15999 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
16000 if test -n "$ac_prev"; then
16002 i?
86 | x86_64 | ppc | ppc64
)
16003 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
16006 ac_cv_c_bigendian
=universal
16012 elif test "x$ac_word" = "x-arch"; then
16017 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16018 if test $ac_cv_c_bigendian = unknown
; then
16019 # See if sys/param.h defines the BYTE_ORDER macro.
16020 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16021 /* end confdefs.h. */
16022 #include <sys/types.h>
16023 #include <sys/param.h>
16028 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
16029 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
16031 bogus endian macros
16038 if ac_fn_c_try_compile
"$LINENO"; then :
16039 # It does; now see whether it defined to BIG_ENDIAN or not.
16040 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16041 /* end confdefs.h. */
16042 #include <sys/types.h>
16043 #include <sys/param.h>
16048 #if BYTE_ORDER != BIG_ENDIAN
16056 if ac_fn_c_try_compile
"$LINENO"; then :
16057 ac_cv_c_bigendian
=yes
16059 ac_cv_c_bigendian
=no
16061 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16063 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16065 if test $ac_cv_c_bigendian = unknown
; then
16066 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
16067 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16068 /* end confdefs.h. */
16069 #include <limits.h>
16074 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
16075 bogus endian macros
16082 if ac_fn_c_try_compile
"$LINENO"; then :
16083 # It does; now see whether it defined to _BIG_ENDIAN or not.
16084 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16085 /* end confdefs.h. */
16086 #include <limits.h>
16091 #ifndef _BIG_ENDIAN
16099 if ac_fn_c_try_compile
"$LINENO"; then :
16100 ac_cv_c_bigendian
=yes
16102 ac_cv_c_bigendian
=no
16104 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16106 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16108 if test $ac_cv_c_bigendian = unknown
; then
16109 # Compile a test program.
16110 if test "$cross_compiling" = yes; then :
16111 # Try to guess by grepping values from an object file.
16112 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16113 /* end confdefs.h. */
16114 short int ascii_mm[] =
16115 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
16116 short int ascii_ii[] =
16117 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
16118 int use_ascii (int i) {
16119 return ascii_mm[i] + ascii_ii[i];
16121 short int ebcdic_ii[] =
16122 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
16123 short int ebcdic_mm[] =
16124 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
16125 int use_ebcdic (int i) {
16126 return ebcdic_mm[i] + ebcdic_ii[i];
16133 return use_ascii (foo) == use_ebcdic (foo);
16138 if ac_fn_c_try_compile
"$LINENO"; then :
16139 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
16140 ac_cv_c_bigendian
=yes
16142 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
16143 if test "$ac_cv_c_bigendian" = unknown
; then
16144 ac_cv_c_bigendian
=no
16146 # finding both strings is unlikely to happen, but who knows?
16147 ac_cv_c_bigendian
=unknown
16151 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16153 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16154 /* end confdefs.h. */
16155 $ac_includes_default
16160 /* Are we little or big endian? From Harbison&Steele. */
16164 char c[sizeof (long int)];
16167 return u.c[sizeof (long int) - 1] == 1;
16173 if ac_fn_c_try_run
"$LINENO"; then :
16174 ac_cv_c_bigendian
=no
16176 ac_cv_c_bigendian
=yes
16178 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16179 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
16185 $as_echo "$ac_cv_c_bigendian" >&6; }
16186 case $ac_cv_c_bigendian in #(
16188 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
16194 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
16198 as_fn_error
"unknown endianness
16199 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
16203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
16204 $as_echo_n "checking for inline... " >&6; }
16205 if test "${ac_cv_c_inline+set}" = set; then :
16206 $as_echo_n "(cached) " >&6
16209 for ac_kw
in inline __inline__ __inline
; do
16210 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16211 /* end confdefs.h. */
16212 #ifndef __cplusplus
16214 static $ac_kw foo_t static_foo () {return 0; }
16215 $ac_kw foo_t foo () {return 0; }
16219 if ac_fn_c_try_compile
"$LINENO"; then :
16220 ac_cv_c_inline
=$ac_kw
16222 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16223 test "$ac_cv_c_inline" != no
&& break
16227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
16228 $as_echo "$ac_cv_c_inline" >&6; }
16230 case $ac_cv_c_inline in
16233 case $ac_cv_c_inline in
16235 *) ac_val
=$ac_cv_c_inline;;
16237 cat >>confdefs.h
<<_ACEOF
16238 #ifndef __cplusplus
16239 #define inline $ac_val
16246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtold conforms to C99" >&5
16247 $as_echo_n "checking whether strtold conforms to C99... " >&6; }
16248 if test "${gl_cv_func_c99_strtold+set}" = set; then :
16249 $as_echo_n "(cached) " >&6
16251 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16252 /* end confdefs.h. */
16253 /* On HP-UX before 11.23, strtold returns a struct instead of
16254 long double. Reject implementations like that, by requiring
16255 compatibility with the C99 prototype. */
16256 #include <stdlib.h>
16257 static long double (*p) (char const *, char **) = strtold;
16259 test (char const *nptr, char **endptr)
16262 r = strtold (nptr, endptr);
16268 return test ("1.0", NULL) != 1 || p ("1.0", NULL) != 1;
16273 if ac_fn_c_try_link
"$LINENO"; then :
16274 gl_cv_func_c99_strtold
=yes
16276 gl_cv_func_c99_strtold
=no
16278 rm -f core conftest.err conftest.
$ac_objext \
16279 conftest
$ac_exeext conftest.
$ac_ext
16281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_c99_strtold" >&5
16282 $as_echo "$gl_cv_func_c99_strtold" >&6; }
16283 if test $gl_cv_func_c99_strtold = yes; then
16285 $as_echo "#define HAVE_C99_STRTOLD 1" >>confdefs.h
16297 GNULIB_EUIDACCESS
=0;
16298 GNULIB_FACCESSAT
=0;
16301 GNULIB_FDATASYNC
=0;
16303 GNULIB_FTRUNCATE
=0;
16305 GNULIB_GETDOMAINNAME
=0;
16306 GNULIB_GETDTABLESIZE
=0;
16307 GNULIB_GETGROUPS
=0;
16308 GNULIB_GETHOSTNAME
=0;
16310 GNULIB_GETLOGIN_R
=0;
16311 GNULIB_GETPAGESIZE
=0;
16312 GNULIB_GETUSERSHELL
=0;
16313 GNULIB_GROUP_MEMBER
=0;
16325 GNULIB_READLINKAT
=0;
16327 GNULIB_SETHOSTNAME
=0;
16330 GNULIB_SYMLINKAT
=0;
16331 GNULIB_TTYNAME_R
=0;
16332 GNULIB_UNISTD_H_NONBLOCKING
=0;
16333 GNULIB_UNISTD_H_SIGPIPE
=0;
16348 HAVE_GETDTABLESIZE
=1;
16350 HAVE_GETHOSTNAME
=1;
16352 HAVE_GETPAGESIZE
=1;
16353 HAVE_GROUP_MEMBER
=1;
16363 HAVE_SETHOSTNAME
=1;
16369 HAVE_DECL_ENVIRON
=1;
16370 HAVE_DECL_FCHDIR
=1;
16371 HAVE_DECL_FDATASYNC
=1;
16372 HAVE_DECL_GETDOMAINNAME
=1;
16373 HAVE_DECL_GETLOGIN_R
=1;
16374 HAVE_DECL_GETPAGESIZE
=1;
16375 HAVE_DECL_GETUSERSHELL
=1;
16376 HAVE_DECL_SETHOSTNAME
=1;
16377 HAVE_DECL_TTYNAME_R
=1;
16379 HAVE_SYS_PARAM_H
=0;
16384 REPLACE_FCHOWNAT
=0;
16385 REPLACE_FTRUNCATE
=0;
16387 REPLACE_GETDOMAINNAME
=0;
16388 REPLACE_GETLOGIN_R
=0;
16389 REPLACE_GETGROUPS
=0;
16390 REPLACE_GETPAGESIZE
=0;
16399 REPLACE_READLINK
=0;
16403 REPLACE_TTYNAME_R
=0;
16405 REPLACE_UNLINKAT
=0;
16408 UNISTD_H_HAVE_WINSOCK2_H
=0;
16409 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
=0;
16419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if environ is properly declared" >&5
16420 $as_echo_n "checking if environ is properly declared... " >&6; }
16421 if test "${gt_cv_var_environ_declaration+set}" = set; then :
16422 $as_echo_n "(cached) " >&6
16425 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16426 /* end confdefs.h. */
16428 #include <unistd.h>
16430 /* mingw, BeOS, Haiku declare environ in <stdlib.h>, not in <unistd.h>. */
16431 #include <stdlib.h>
16433 extern struct { int foo; } environ;
16442 if ac_fn_c_try_compile
"$LINENO"; then :
16443 gt_cv_var_environ_declaration
=no
16445 gt_cv_var_environ_declaration
=yes
16447 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_var_environ_declaration" >&5
16451 $as_echo "$gt_cv_var_environ_declaration" >&6; }
16452 if test $gt_cv_var_environ_declaration = yes; then
16454 $as_echo "#define HAVE_ENVIRON_DECL 1" >>confdefs.h
16459 if test $gt_cv_var_environ_declaration != yes; then
16460 HAVE_DECL_ENVIRON
=0
16467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_dm_mode in struct stat" >&5
16468 $as_echo_n "checking for st_dm_mode in struct stat... " >&6; }
16469 if test "${ac_cv_struct_st_dm_mode+set}" = set; then :
16470 $as_echo_n "(cached) " >&6
16472 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16473 /* end confdefs.h. */
16475 #include <sys/types.h>
16476 #include <sys/stat.h>
16480 struct stat s; s.st_dm_mode;
16485 if ac_fn_c_try_compile
"$LINENO"; then :
16486 ac_cv_struct_st_dm_mode
=yes
16488 ac_cv_struct_st_dm_mode
=no
16490 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_st_dm_mode" >&5
16493 $as_echo "$ac_cv_struct_st_dm_mode" >&6; }
16495 if test $ac_cv_struct_st_dm_mode = yes; then
16497 $as_echo "#define HAVE_ST_DM_MODE 1" >>confdefs.h
16502 ac_fn_c_check_decl
"$LINENO" "strmode" "ac_cv_have_decl_strmode" "$ac_includes_default"
16503 if test "x$ac_cv_have_decl_strmode" = x
""yes; then :
16509 cat >>confdefs.h
<<_ACEOF
16510 #define HAVE_DECL_STRMODE $ac_have_decl
16516 GNULIB_CALLOC_POSIX
=0;
16517 GNULIB_CANONICALIZE_FILE_NAME
=0;
16518 GNULIB_GETLOADAVG
=0;
16519 GNULIB_GETSUBOPT
=0;
16521 GNULIB_MALLOC_POSIX
=0;
16525 GNULIB_MKOSTEMPS
=0;
16528 GNULIB_POSIX_OPENPT
=0;
16530 GNULIB_PTSNAME_R
=0;
16534 GNULIB_REALLOC_POSIX
=0;
16541 GNULIB_SYSTEM_POSIX
=0;
16547 HAVE_CANONICALIZE_FILE_NAME
=1;
16548 HAVE_DECL_GETLOADAVG
=1;
16556 HAVE_POSIX_OPENPT
=1;
16565 HAVE_DECL_SETENV
=1;
16569 HAVE_STRUCT_RANDOM_DATA
=1;
16570 HAVE_SYS_LOADAVG_H
=0;
16572 HAVE_DECL_UNSETENV
=1;
16574 REPLACE_CANONICALIZE_FILE_NAME
=0;
16578 REPLACE_PTSNAME_R
=0;
16580 REPLACE_RANDOM_R
=0;
16582 REPLACE_REALPATH
=0;
16585 REPLACE_UNSETENV
=0;
16590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
16591 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
16592 if test "${gl_cv_have_include_next+set}" = set; then :
16593 $as_echo_n "(cached) " >&6
16595 rm -rf conftestd1a conftestd1b conftestd2
16596 mkdir conftestd1a conftestd1b conftestd2
16597 cat <<EOF > conftestd1a/conftest.h
16598 #define DEFINED_IN_CONFTESTD1
16599 #include_next <conftest.h>
16600 #ifdef DEFINED_IN_CONFTESTD2
16603 #error "include_next doesn't work"
16606 cat <<EOF > conftestd1b/conftest.h
16607 #define DEFINED_IN_CONFTESTD1
16609 #include_next <conftest.h>
16610 #ifdef DEFINED_IN_CONFTESTD2
16613 #error "include_next doesn't work"
16616 cat <<EOF > conftestd2/conftest.h
16617 #ifndef DEFINED_IN_CONFTESTD1
16618 #error "include_next test doesn't work"
16620 #define DEFINED_IN_CONFTESTD2
16622 gl_save_CPPFLAGS
="$CPPFLAGS"
16623 CPPFLAGS
="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
16624 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16625 /* end confdefs.h. */
16626 #include <conftest.h>
16628 if ac_fn_c_try_compile
"$LINENO"; then :
16629 gl_cv_have_include_next
=yes
16631 CPPFLAGS
="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
16632 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16633 /* end confdefs.h. */
16634 #include <conftest.h>
16636 if ac_fn_c_try_compile
"$LINENO"; then :
16637 gl_cv_have_include_next
=buggy
16639 gl_cv_have_include_next
=no
16641 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16644 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16645 CPPFLAGS
="$gl_save_CPPFLAGS"
16646 rm -rf conftestd1a conftestd1b conftestd2
16649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
16650 $as_echo "$gl_cv_have_include_next" >&6; }
16651 PRAGMA_SYSTEM_HEADER
=
16652 if test $gl_cv_have_include_next = yes; then
16653 INCLUDE_NEXT
=include_next
16654 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include_next
16655 if test -n "$GCC"; then
16656 PRAGMA_SYSTEM_HEADER
='#pragma GCC system_header'
16659 if test $gl_cv_have_include_next = buggy
; then
16660 INCLUDE_NEXT
=include
16661 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include_next
16663 INCLUDE_NEXT
=include
16664 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include
16670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
16671 $as_echo_n "checking whether system header files limit the line length... " >&6; }
16672 if test "${gl_cv_pragma_columns+set}" = set; then :
16673 $as_echo_n "(cached) " >&6
16675 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16676 /* end confdefs.h. */
16683 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16684 $EGREP "choke me" >/dev
/null
2>&1; then :
16685 gl_cv_pragma_columns
=yes
16687 gl_cv_pragma_columns
=no
16693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
16694 $as_echo "$gl_cv_pragma_columns" >&6; }
16695 if test $gl_cv_pragma_columns = yes; then
16696 PRAGMA_COLUMNS
="#pragma COLUMNS 10000"
16717 if test $gl_cv_have_include_next = yes; then
16718 gl_cv_next_getopt_h
='<'getopt.h
'>'
16720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <getopt.h>" >&5
16721 $as_echo_n "checking absolute name of <getopt.h>... " >&6; }
16722 if test "${gl_cv_next_getopt_h+set}" = set; then :
16723 $as_echo_n "(cached) " >&6
16726 if test $ac_cv_header_getopt_h = yes; then
16729 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16730 /* end confdefs.h. */
16731 #include <getopt.h>
16735 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
16736 *) gl_absname_cpp
="$ac_cpp" ;;
16741 gl_dirsep_regex
='[/\\]'
16744 gl_dirsep_regex
='\/'
16747 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
16749 gl_header_literal_regex
=`echo 'getopt.h' \
16750 | sed -e "$gl_make_literal_regex_sed"`
16751 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
16752 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
16757 gl_cv_next_getopt_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16758 sed -n "$gl_absolute_header_sed"`'"'
16760 gl_cv_next_getopt_h
='<'getopt.h
'>'
16765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_getopt_h" >&5
16766 $as_echo "$gl_cv_next_getopt_h" >&6; }
16768 NEXT_GETOPT_H
=$gl_cv_next_getopt_h
16770 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
16771 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16772 gl_next_as_first_directive
='<'getopt.h
'>'
16774 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16775 gl_next_as_first_directive
=$gl_cv_next_getopt_h
16777 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
=$gl_next_as_first_directive
16782 if test $ac_cv_header_getopt_h = yes; then
16791 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU
; then
16792 for ac_header
in getopt.h
16794 ac_fn_c_check_header_mongrel
"$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
16795 if test "x$ac_cv_header_getopt_h" = x
""yes; then :
16796 cat >>confdefs.h
<<_ACEOF
16797 #define HAVE_GETOPT_H 1
16801 gl_replace_getopt
=yes
16808 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU
; then
16809 for ac_func
in getopt_long_only
16811 ac_fn_c_check_func
"$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
16812 if test "x$ac_cv_func_getopt_long_only" = x
""yes; then :
16813 cat >>confdefs.h
<<_ACEOF
16814 #define HAVE_GETOPT_LONG_ONLY 1
16818 gl_replace_getopt
=yes
16824 if test -z "$gl_replace_getopt"; then
16825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt is POSIX compatible" >&5
16826 $as_echo_n "checking whether getopt is POSIX compatible... " >&6; }
16827 if test "${gl_cv_func_getopt_posix+set}" = set; then :
16828 $as_echo_n "(cached) " >&6
16831 if test $cross_compiling = no
; then
16832 if test "$cross_compiling" = yes; then :
16833 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16834 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16835 as_fn_error
"cannot run test program while cross compiling
16836 See \`config.log' for more details." "$LINENO" 5; }
16838 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16839 /* end confdefs.h. */
16841 #include <unistd.h>
16842 #include <stdlib.h>
16843 #include <string.h>
16848 static char program[] = "program";
16849 static char a[] = "-a";
16850 static char foo[] = "foo";
16851 static char bar[] = "bar";
16852 char *argv[] = { program, a, foo, bar, NULL };
16855 c = getopt (4, argv, "ab");
16858 c = getopt (4, argv, "ab");
16861 if (!(optind == 2))
16867 if ac_fn_c_try_run
"$LINENO"; then :
16868 gl_cv_func_getopt_posix
=maybe
16870 gl_cv_func_getopt_posix
=no
16872 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16873 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16876 if test $gl_cv_func_getopt_posix = maybe
; then
16877 if test "$cross_compiling" = yes; then :
16878 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16879 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16880 as_fn_error
"cannot run test program while cross compiling
16881 See \`config.log' for more details." "$LINENO" 5; }
16883 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16884 /* end confdefs.h. */
16886 #include <unistd.h>
16887 #include <stdlib.h>
16888 #include <string.h>
16893 static char program[] = "program";
16894 static char donald[] = "donald";
16895 static char p[] = "-p";
16896 static char billy[] = "billy";
16897 static char duck[] = "duck";
16898 static char a[] = "-a";
16899 static char bar[] = "bar";
16900 char *argv[] = { program, donald, p, billy, duck, a, bar, NULL };
16903 c = getopt (7, argv, "+abp:q:");
16906 if (!(strcmp (argv[0], "program") == 0))
16908 if (!(strcmp (argv[1], "donald") == 0))
16910 if (!(strcmp (argv[2], "-p") == 0))
16912 if (!(strcmp (argv[3], "billy") == 0))
16914 if (!(strcmp (argv[4], "duck") == 0))
16916 if (!(strcmp (argv[5], "-a") == 0))
16918 if (!(strcmp (argv[6], "bar") == 0))
16920 if (!(optind == 1))
16926 if ac_fn_c_try_run
"$LINENO"; then :
16927 gl_cv_func_getopt_posix
=maybe
16929 gl_cv_func_getopt_posix
=no
16931 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16932 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16936 if test $gl_cv_func_getopt_posix = maybe
; then
16937 if test "$cross_compiling" = yes; then :
16938 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16939 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16940 as_fn_error
"cannot run test program while cross compiling
16941 See \`config.log' for more details." "$LINENO" 5; }
16943 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16944 /* end confdefs.h. */
16946 #include <unistd.h>
16947 #include <stdlib.h>
16948 #include <string.h>
16953 static char program[] = "program";
16954 static char ab[] = "-ab";
16955 char *argv[3] = { program, ab, NULL };
16956 if (getopt (2, argv, "ab:") != 'a')
16958 if (getopt (2, argv, "ab:") != '?')
16968 if ac_fn_c_try_run
"$LINENO"; then :
16969 gl_cv_func_getopt_posix
=yes
16971 gl_cv_func_getopt_posix
=no
16973 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16974 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16980 darwin
* | aix
* | mingw
*) gl_cv_func_getopt_posix
="guessing no";;
16981 *) gl_cv_func_getopt_posix
="guessing yes";;
16986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_posix" >&5
16987 $as_echo "$gl_cv_func_getopt_posix" >&6; }
16988 case "$gl_cv_func_getopt_posix" in
16989 *no
) gl_replace_getopt
=yes ;;
16993 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU
; then
16994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
16995 $as_echo_n "checking for working GNU getopt function... " >&6; }
16996 if test "${gl_cv_func_getopt_gnu+set}" = set; then :
16997 $as_echo_n "(cached) " >&6
16999 # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the
17000 # optstring is necessary for programs like m4 that have POSIX-mandated
17001 # semantics for supporting options interspersed with files.
17002 # Also, since getopt_long is a GNU extension, we require optind=0.
17003 # Bash ties 'set -o posix' to a non-exported POSIXLY_CORRECT;
17004 # so take care to revert to the correct (non-)export state.
17005 gl_awk_probe
='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }'
17006 case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" </dev/null` in
17007 xx
) gl_had_POSIXLY_CORRECT
=exported
;;
17008 x
) gl_had_POSIXLY_CORRECT
=yes ;;
17009 *) gl_had_POSIXLY_CORRECT
= ;;
17012 export POSIXLY_CORRECT
17013 if test "$cross_compiling" = yes; then :
17014 gl_cv_func_getopt_gnu
="guessing no"
17017 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17018 /* end confdefs.h. */
17019 #include <getopt.h>
17020 #include <stddef.h>
17021 #include <string.h>
17023 #include <stdlib.h>
17024 #if defined __MACH__ && defined __APPLE__
17025 /* Avoid a crash on Mac OS X. */
17026 #include <mach/mach.h>
17027 #include <mach/mach_error.h>
17028 #include <mach/thread_status.h>
17029 #include <mach/exception.h>
17030 #include <mach/task.h>
17031 #include <pthread.h>
17032 /* The exception port on which our thread listens. */
17033 static mach_port_t our_exception_port;
17034 /* The main function of the thread listening for exceptions of type
17037 mach_exception_thread (void *arg)
17039 /* Buffer for a message to be received. */
17041 mach_msg_header_t head;
17042 mach_msg_body_t msgh_body;
17045 mach_msg_return_t retval;
17046 /* Wait for a message on the exception port. */
17047 retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
17048 our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
17049 if (retval != MACH_MSG_SUCCESS)
17054 nocrash_init (void)
17056 mach_port_t self = mach_task_self ();
17057 /* Allocate a port on which the thread shall listen for exceptions. */
17058 if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
17060 /* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html. */
17061 if (mach_port_insert_right (self, our_exception_port, our_exception_port,
17062 MACH_MSG_TYPE_MAKE_SEND)
17064 /* The exceptions we want to catch. Only EXC_BAD_ACCESS is interesting
17066 exception_mask_t mask = EXC_MASK_BAD_ACCESS;
17067 /* Create the thread listening on the exception port. */
17068 pthread_attr_t attr;
17070 if (pthread_attr_init (&attr) == 0
17071 && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
17072 && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
17073 pthread_attr_destroy (&attr);
17074 /* Replace the exception port info for these exceptions with our own.
17075 Note that we replace the exception port for the entire task, not only
17076 for a particular thread. This has the effect that when our exception
17077 port gets the message, the thread specific exception port has already
17078 been asked, and we don't need to bother about it.
17079 See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html. */
17080 task_set_exception_ports (self, mask, our_exception_port,
17081 EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
17086 #elif (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
17087 /* Avoid a crash on native Windows. */
17088 #define WIN32_LEAN_AND_MEAN
17089 #include <windows.h>
17090 #include <winerror.h>
17092 exception_filter (EXCEPTION_POINTERS *ExceptionInfo)
17094 switch (ExceptionInfo->ExceptionRecord->ExceptionCode)
17096 case EXCEPTION_ACCESS_VIOLATION:
17097 case EXCEPTION_IN_PAGE_ERROR:
17098 case EXCEPTION_STACK_OVERFLOW:
17099 case EXCEPTION_GUARD_PAGE:
17100 case EXCEPTION_PRIV_INSTRUCTION:
17101 case EXCEPTION_ILLEGAL_INSTRUCTION:
17102 case EXCEPTION_DATATYPE_MISALIGNMENT:
17103 case EXCEPTION_ARRAY_BOUNDS_EXCEEDED:
17104 case EXCEPTION_NONCONTINUABLE_EXCEPTION:
17107 return EXCEPTION_CONTINUE_SEARCH;
17110 nocrash_init (void)
17112 SetUnhandledExceptionFilter ((LPTOP_LEVEL_EXCEPTION_FILTER) exception_filter);
17115 /* Avoid a crash on POSIX systems. */
17116 #include <signal.h>
17117 /* A POSIX signal handler. */
17119 exception_handler (int sig)
17124 nocrash_init (void)
17127 signal (SIGSEGV, exception_handler);
17130 signal (SIGBUS, exception_handler);
17144 /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
17145 and fails on Mac OS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
17146 OSF/1 5.1, Solaris 10. */
17148 static char conftest[] = "conftest";
17149 static char plus[] = "-+";
17150 char *argv[3] = { conftest, plus, NULL };
17152 if (getopt (2, argv, "+a") != '?')
17155 /* This code succeeds on glibc 2.8, mingw,
17156 and fails on Mac OS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
17157 IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x. */
17159 static char program[] = "program";
17160 static char p[] = "-p";
17161 static char foo[] = "foo";
17162 static char bar[] = "bar";
17163 char *argv[] = { program, p, foo, bar, NULL };
17166 if (getopt (4, argv, "p::") != 'p')
17168 else if (optarg != NULL)
17170 else if (getopt (4, argv, "p::") != -1)
17172 else if (optind != 2)
17175 /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0. */
17177 static char program[] = "program";
17178 static char foo[] = "foo";
17179 static char p[] = "-p";
17180 char *argv[] = { program, foo, p, NULL };
17182 if (getopt (3, argv, "-p") != 1)
17184 else if (getopt (3, argv, "-p") != 'p')
17187 /* This code fails on glibc 2.11. */
17189 static char program[] = "program";
17190 static char b[] = "-b";
17191 static char a[] = "-a";
17192 char *argv[] = { program, b, a, NULL };
17193 optind = opterr = 0;
17194 if (getopt (3, argv, "+:a:b") != 'b')
17196 else if (getopt (3, argv, "+:a:b") != ':')
17199 /* This code dumps core on glibc 2.14. */
17201 static char program[] = "program";
17202 static char w[] = "-W";
17203 static char dummy[] = "dummy";
17204 char *argv[] = { program, w, dummy, NULL };
17205 optind = opterr = 1;
17206 if (getopt (3, argv, "W;") != 'W')
17215 if ac_fn_c_try_run
"$LINENO"; then :
17216 gl_cv_func_getopt_gnu
=yes
17218 gl_cv_func_getopt_gnu
=no
17220 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17221 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17224 case $gl_had_POSIXLY_CORRECT in
17226 yes) { POSIXLY_CORRECT
=; unset POSIXLY_CORRECT
;}; POSIXLY_CORRECT
=1 ;;
17227 *) { POSIXLY_CORRECT
=; unset POSIXLY_CORRECT
;} ;;
17231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_gnu" >&5
17232 $as_echo "$gl_cv_func_getopt_gnu" >&6; }
17233 if test "$gl_cv_func_getopt_gnu" != yes; then
17234 gl_replace_getopt
=yes
17236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt_long function" >&5
17237 $as_echo_n "checking for working GNU getopt_long function... " >&6; }
17238 if test "${gl_cv_func_getopt_long_gnu+set}" = set; then :
17239 $as_echo_n "(cached) " >&6
17241 if test "$cross_compiling" = yes; then :
17243 openbsd
*) gl_cv_func_getopt_long_gnu
="guessing no";;
17244 *) gl_cv_func_getopt_long_gnu
="guessing yes";;
17248 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17249 /* end confdefs.h. */
17250 #include <getopt.h>
17251 #include <stddef.h>
17252 #include <string.h>
17257 static const struct option long_options[] =
17259 { "xtremely-",no_argument, NULL, 1003 },
17260 { "xtra", no_argument, NULL, 1001 },
17261 { "xtreme", no_argument, NULL, 1002 },
17262 { "xtremely", no_argument, NULL, 1003 },
17263 { NULL, 0, NULL, 0 }
17265 /* This code fails on OpenBSD 5.0. */
17267 static char program[] = "program";
17268 static char xtremel[] = "--xtremel";
17269 char *argv[] = { program, xtremel, NULL };
17271 optind = 1; opterr = 0;
17272 if (getopt_long (2, argv, "", long_options, &option_index) != 1003)
17281 if ac_fn_c_try_run
"$LINENO"; then :
17282 gl_cv_func_getopt_long_gnu
=yes
17284 gl_cv_func_getopt_long_gnu
=no
17286 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17287 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_long_gnu" >&5
17293 $as_echo "$gl_cv_func_getopt_long_gnu" >&6; }
17294 case "$gl_cv_func_getopt_long_gnu" in
17296 *) gl_replace_getopt
=yes ;;
17307 if test -n "$gl_replace_getopt"; then
17311 if test $REPLACE_GETOPT = 1; then
17315 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
17321 ac_fn_c_check_decl
"$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
17322 if test "x$ac_cv_have_decl_getenv" = x
""yes; then :
17328 cat >>confdefs.h
<<_ACEOF
17329 #define HAVE_DECL_GETENV $ac_have_decl
17337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
17338 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
17339 if test "${ac_cv_c_restrict+set}" = set; then :
17340 $as_echo_n "(cached) " >&6
17342 ac_cv_c_restrict
=no
17343 # The order here caters to the fact that C++ does not require restrict.
17344 for ac_kw
in __restrict __restrict__ _Restrict restrict
; do
17345 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17346 /* end confdefs.h. */
17347 typedef int * int_ptr;
17348 int foo (int_ptr $ac_kw ip) {
17355 int * $ac_kw t = s;
17362 if ac_fn_c_try_compile
"$LINENO"; then :
17363 ac_cv_c_restrict
=$ac_kw
17365 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17366 test "$ac_cv_c_restrict" != no
&& break
17370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
17371 $as_echo "$ac_cv_c_restrict" >&6; }
17373 case $ac_cv_c_restrict in
17375 no
) $as_echo "#define restrict /**/" >>confdefs.h
17377 *) cat >>confdefs.h
<<_ACEOF
17378 #define restrict $ac_cv_c_restrict
17384 GNULIB_GETTIMEOFDAY
=0;
17385 HAVE_GETTIMEOFDAY
=1;
17386 HAVE_STRUCT_TIMEVAL
=1;
17388 REPLACE_GETTIMEOFDAY
=0;
17389 REPLACE_STRUCT_TIMEVAL
=0;
17406 if test $gl_cv_have_include_next = yes; then
17407 gl_cv_next_sys_time_h
='<'sys
/time.h
'>'
17409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/time.h>" >&5
17410 $as_echo_n "checking absolute name of <sys/time.h>... " >&6; }
17411 if test "${gl_cv_next_sys_time_h+set}" = set; then :
17412 $as_echo_n "(cached) " >&6
17415 if test $ac_cv_header_sys_time_h = yes; then
17418 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17419 /* end confdefs.h. */
17420 #include <sys/time.h>
17424 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
17425 *) gl_absname_cpp
="$ac_cpp" ;;
17430 gl_dirsep_regex
='[/\\]'
17433 gl_dirsep_regex
='\/'
17436 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
17438 gl_header_literal_regex
=`echo 'sys/time.h' \
17439 | sed -e "$gl_make_literal_regex_sed"`
17440 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
17441 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
17446 gl_cv_next_sys_time_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17447 sed -n "$gl_absolute_header_sed"`'"'
17449 gl_cv_next_sys_time_h
='<'sys
/time.h
'>'
17454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_time_h" >&5
17455 $as_echo "$gl_cv_next_sys_time_h" >&6; }
17457 NEXT_SYS_TIME_H
=$gl_cv_next_sys_time_h
17459 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
17460 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17461 gl_next_as_first_directive
='<'sys
/time.h
'>'
17463 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17464 gl_next_as_first_directive
=$gl_cv_next_sys_time_h
17466 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H
=$gl_next_as_first_directive
17472 if test $ac_cv_header_sys_time_h != yes; then
17480 if test $ac_cv_header_sys_socket_h != yes; then
17481 for ac_header
in winsock2.h
17483 ac_fn_c_check_header_mongrel
"$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
17484 if test "x$ac_cv_header_winsock2_h" = x
""yes; then :
17485 cat >>confdefs.h
<<_ACEOF
17486 #define HAVE_WINSOCK2_H 1
17494 if test "$ac_cv_header_winsock2_h" = yes; then
17496 UNISTD_H_HAVE_WINSOCK2_H
=1
17497 SYS_IOCTL_H_HAVE_WINSOCK2_H
=1
17503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
17504 $as_echo_n "checking for struct timeval... " >&6; }
17505 if test "${gl_cv_sys_struct_timeval+set}" = set; then :
17506 $as_echo_n "(cached) " >&6
17508 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17509 /* end confdefs.h. */
17510 #if HAVE_SYS_TIME_H
17511 #include <sys/time.h>
17514 #if HAVE_WINSOCK2_H
17515 # include <winsock2.h>
17521 static struct timeval x; x.tv_sec = x.tv_usec;
17526 if ac_fn_c_try_compile
"$LINENO"; then :
17527 gl_cv_sys_struct_timeval
=yes
17529 gl_cv_sys_struct_timeval
=no
17531 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval" >&5
17535 $as_echo "$gl_cv_sys_struct_timeval" >&6; }
17536 if test $gl_cv_sys_struct_timeval != yes; then
17537 HAVE_STRUCT_TIMEVAL
=0
17539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wide-enough struct timeval.tv_sec member" >&5
17540 $as_echo_n "checking for wide-enough struct timeval.tv_sec member... " >&6; }
17541 if test "${gl_cv_sys_struct_timeval_tv_sec+set}" = set; then :
17542 $as_echo_n "(cached) " >&6
17544 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17545 /* end confdefs.h. */
17546 #if HAVE_SYS_TIME_H
17547 #include <sys/time.h>
17550 #if HAVE_WINSOCK2_H
17551 # include <winsock2.h>
17557 static struct timeval x;
17558 typedef int verify_tv_sec_type[
17559 sizeof (time_t) <= sizeof x.tv_sec ? 1 : -1
17566 if ac_fn_c_try_compile
"$LINENO"; then :
17567 gl_cv_sys_struct_timeval_tv_sec
=yes
17569 gl_cv_sys_struct_timeval_tv_sec
=no
17571 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval_tv_sec" >&5
17575 $as_echo "$gl_cv_sys_struct_timeval_tv_sec" >&6; }
17576 if test $gl_cv_sys_struct_timeval_tv_sec != yes; then
17577 REPLACE_STRUCT_TIMEVAL
=1
17587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
17588 $as_echo_n "checking for unsigned long long int... " >&6; }
17589 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
17590 $as_echo_n "(cached) " >&6
17592 ac_cv_type_unsigned_long_long_int
=yes
17593 if test "x${ac_cv_prog_cc_c99-no}" = xno
; then
17594 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17595 /* end confdefs.h. */
17597 /* For now, do not test the preprocessor; as of 2007 there are too many
17598 implementations with broken preprocessors. Perhaps this can
17599 be revisited in 2012. In the meantime, code should not expect
17600 #if to work with literals wider than 32 bits. */
17601 /* Test literals. */
17602 long long int ll = 9223372036854775807ll;
17603 long long int nll = -9223372036854775807LL;
17604 unsigned long long int ull = 18446744073709551615ULL;
17605 /* Test constant expressions. */
17606 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
17608 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
17614 /* Test availability of runtime routines for shift and division. */
17615 long long int llmax = 9223372036854775807ll;
17616 unsigned long long int ullmax = 18446744073709551615ull;
17617 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
17618 | (llmax / ll) | (llmax % ll)
17619 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
17620 | (ullmax / ull) | (ullmax % ull));
17626 if ac_fn_c_try_link
"$LINENO"; then :
17629 ac_cv_type_unsigned_long_long_int
=no
17631 rm -f core conftest.err conftest.
$ac_objext \
17632 conftest
$ac_exeext conftest.
$ac_ext
17635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
17636 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
17637 if test $ac_cv_type_unsigned_long_long_int = yes; then
17639 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
17645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
17646 $as_echo_n "checking for long long int... " >&6; }
17647 if test "${ac_cv_type_long_long_int+set}" = set; then :
17648 $as_echo_n "(cached) " >&6
17650 ac_cv_type_long_long_int
=yes
17651 if test "x${ac_cv_prog_cc_c99-no}" = xno
; then
17652 ac_cv_type_long_long_int
=$ac_cv_type_unsigned_long_long_int
17653 if test $ac_cv_type_long_long_int = yes; then
17654 if test "$cross_compiling" = yes; then :
17657 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17658 /* end confdefs.h. */
17659 #include <limits.h>
17662 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
17663 # define LLONG_MAX (HALF - 1 + HALF)
17668 long long int n = 1;
17672 long long int m = n << i;
17675 if (LLONG_MAX / 2 < m)
17683 if ac_fn_c_try_run
"$LINENO"; then :
17686 ac_cv_type_long_long_int
=no
17688 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17689 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
17696 $as_echo "$ac_cv_type_long_long_int" >&6; }
17697 if test $ac_cv_type_long_long_int = yes; then
17699 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
17708 gl_cv_c_multiarch
=no
17709 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17710 /* end confdefs.h. */
17711 #ifndef __APPLE_CC__
17712 not a universal capable compiler
17717 if ac_fn_c_try_compile
"$LINENO"; then :
17721 for word
in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
17722 if test -n "$prev"; then
17724 i?
86 | x86_64 | ppc | ppc64
)
17725 if test -z "$arch" ||
test "$arch" = "$word"; then
17728 gl_cv_c_multiarch
=yes
17734 if test "x$word" = "x-arch"; then
17741 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17742 if test $gl_cv_c_multiarch = yes; then
17743 APPLE_UNIVERSAL_BUILD
=1
17745 APPLE_UNIVERSAL_BUILD
=0
17752 if test $ac_cv_type_long_long_int = yes; then
17753 HAVE_LONG_LONG_INT
=1
17755 HAVE_LONG_LONG_INT
=0
17759 if test $ac_cv_type_unsigned_long_long_int = yes; then
17760 HAVE_UNSIGNED_LONG_LONG_INT
=1
17762 HAVE_UNSIGNED_LONG_LONG_INT
=0
17767 if test $ac_cv_header_wchar_h = yes; then
17774 if test $ac_cv_header_inttypes_h = yes; then
17781 if test $ac_cv_header_sys_types_h = yes; then
17797 if test $gl_cv_have_include_next = yes; then
17798 gl_cv_next_stdint_h
='<'stdint.h
'>'
17800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
17801 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
17802 if test "${gl_cv_next_stdint_h+set}" = set; then :
17803 $as_echo_n "(cached) " >&6
17806 if test $ac_cv_header_stdint_h = yes; then
17809 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17810 /* end confdefs.h. */
17811 #include <stdint.h>
17815 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
17816 *) gl_absname_cpp
="$ac_cpp" ;;
17821 gl_dirsep_regex
='[/\\]'
17824 gl_dirsep_regex
='\/'
17827 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
17829 gl_header_literal_regex
=`echo 'stdint.h' \
17830 | sed -e "$gl_make_literal_regex_sed"`
17831 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
17832 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
17837 gl_cv_next_stdint_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17838 sed -n "$gl_absolute_header_sed"`'"'
17840 gl_cv_next_stdint_h
='<'stdint.h
'>'
17845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
17846 $as_echo "$gl_cv_next_stdint_h" >&6; }
17848 NEXT_STDINT_H
=$gl_cv_next_stdint_h
17850 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
17851 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17852 gl_next_as_first_directive
='<'stdint.h
'>'
17854 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17855 gl_next_as_first_directive
=$gl_cv_next_stdint_h
17857 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
=$gl_next_as_first_directive
17862 if test $ac_cv_header_stdint_h = yes; then
17869 if test $ac_cv_header_stdint_h = yes; then
17870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
17871 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
17872 if test "${gl_cv_header_working_stdint_h+set}" = set; then :
17873 $as_echo_n "(cached) " >&6
17875 gl_cv_header_working_stdint_h
=no
17876 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17877 /* end confdefs.h. */
17880 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
17881 #include <stdint.h>
17882 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
17883 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
17884 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
17888 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17889 included before <wchar.h>. */
17890 #include <stddef.h>
17891 #include <signal.h>
17893 # include <stdio.h>
17895 # include <wchar.h>
17900 int8_t a1 = INT8_MAX;
17901 int8_t a1min = INT8_MIN;
17904 int16_t a2 = INT16_MAX;
17905 int16_t a2min = INT16_MIN;
17908 int32_t a3 = INT32_MAX;
17909 int32_t a3min = INT32_MIN;
17912 int64_t a4 = INT64_MAX;
17913 int64_t a4min = INT64_MIN;
17916 uint8_t b1 = UINT8_MAX;
17918 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
17921 uint16_t b2 = UINT16_MAX;
17924 uint32_t b3 = UINT32_MAX;
17927 uint64_t b4 = UINT64_MAX;
17929 int_least8_t c1 = INT8_C (0x7f);
17930 int_least8_t c1max = INT_LEAST8_MAX;
17931 int_least8_t c1min = INT_LEAST8_MIN;
17932 int_least16_t c2 = INT16_C (0x7fff);
17933 int_least16_t c2max = INT_LEAST16_MAX;
17934 int_least16_t c2min = INT_LEAST16_MIN;
17935 int_least32_t c3 = INT32_C (0x7fffffff);
17936 int_least32_t c3max = INT_LEAST32_MAX;
17937 int_least32_t c3min = INT_LEAST32_MIN;
17938 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
17939 int_least64_t c4max = INT_LEAST64_MAX;
17940 int_least64_t c4min = INT_LEAST64_MIN;
17941 uint_least8_t d1 = UINT8_C (0xff);
17942 uint_least8_t d1max = UINT_LEAST8_MAX;
17943 uint_least16_t d2 = UINT16_C (0xffff);
17944 uint_least16_t d2max = UINT_LEAST16_MAX;
17945 uint_least32_t d3 = UINT32_C (0xffffffff);
17946 uint_least32_t d3max = UINT_LEAST32_MAX;
17947 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
17948 uint_least64_t d4max = UINT_LEAST64_MAX;
17949 int_fast8_t e1 = INT_FAST8_MAX;
17950 int_fast8_t e1min = INT_FAST8_MIN;
17951 int_fast16_t e2 = INT_FAST16_MAX;
17952 int_fast16_t e2min = INT_FAST16_MIN;
17953 int_fast32_t e3 = INT_FAST32_MAX;
17954 int_fast32_t e3min = INT_FAST32_MIN;
17955 int_fast64_t e4 = INT_FAST64_MAX;
17956 int_fast64_t e4min = INT_FAST64_MIN;
17957 uint_fast8_t f1 = UINT_FAST8_MAX;
17958 uint_fast16_t f2 = UINT_FAST16_MAX;
17959 uint_fast32_t f3 = UINT_FAST32_MAX;
17960 uint_fast64_t f4 = UINT_FAST64_MAX;
17962 intptr_t g = INTPTR_MAX;
17963 intptr_t gmin = INTPTR_MIN;
17966 uintptr_t h = UINTPTR_MAX;
17968 intmax_t i = INTMAX_MAX;
17969 uintmax_t j = UINTMAX_MAX;
17971 #include <limits.h> /* for CHAR_BIT */
17972 #define TYPE_MINIMUM(t) \
17973 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
17974 #define TYPE_MAXIMUM(t) \
17975 ((t) ((t) 0 < (t) -1 \
17977 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
17980 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
17981 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
17983 /* Detect bug in FreeBSD 6.0 / ia64. */
17984 int check_SIG_ATOMIC:
17985 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
17986 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
17988 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
17990 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
17991 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
17993 /* Detect bug in mingw. */
17995 WINT_MIN == TYPE_MINIMUM (wint_t)
17996 && WINT_MAX == TYPE_MAXIMUM (wint_t)
17999 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
18001 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
18002 int check_UINT16_C:
18003 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
18005 /* Detect bugs in OpenBSD 3.9 stdint.h. */
18007 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
18010 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
18013 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
18016 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
18018 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
18019 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
18020 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
18021 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
18022 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
18023 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
18024 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
18025 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
18026 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
18027 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
18028 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
18039 if ac_fn_c_try_compile
"$LINENO"; then :
18040 if test "$cross_compiling" = yes; then :
18041 gl_cv_header_working_stdint_h
=yes
18044 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18045 /* end confdefs.h. */
18048 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
18049 #include <stdint.h>
18052 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18053 included before <wchar.h>. */
18054 #include <stddef.h>
18055 #include <signal.h>
18057 # include <stdio.h>
18059 # include <wchar.h>
18064 #include <string.h>
18065 #define MVAL(macro) MVAL1(macro)
18066 #define MVAL1(expression) #expression
18067 static const char *macro_values[] =
18101 for (mv = macro_values; *mv != NULL; mv++)
18103 const char *value = *mv;
18104 /* Test whether it looks like a cast expression. */
18105 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
18106 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
18107 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
18108 || strncmp (value, "((int)"/*)*/, 6) == 0
18109 || strncmp (value, "((signed short)"/*)*/, 15) == 0
18110 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
18111 return mv - macro_values + 1;
18119 if ac_fn_c_try_run
"$LINENO"; then :
18120 gl_cv_header_working_stdint_h
=yes
18122 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
18123 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18128 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
18132 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
18134 if test "$gl_cv_header_working_stdint_h" = yes; then
18137 for ac_header
in sys
/inttypes.h sys
/bitypes.h
18139 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18140 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18141 eval as_val
=\$
$as_ac_Header
18142 if test "x$as_val" = x
""yes; then :
18143 cat >>confdefs.h
<<_ACEOF
18144 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18151 if test $ac_cv_header_sys_inttypes_h = yes; then
18152 HAVE_SYS_INTTYPES_H
=1
18154 HAVE_SYS_INTTYPES_H
=0
18157 if test $ac_cv_header_sys_bitypes_h = yes; then
18158 HAVE_SYS_BITYPES_H
=1
18160 HAVE_SYS_BITYPES_H
=0
18166 if test $APPLE_UNIVERSAL_BUILD = 0; then
18169 for gltype
in ptrdiff_t size_t
; do
18170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
18171 $as_echo_n "checking for bit size of $gltype... " >&6; }
18172 if { as_var
=gl_cv_bitsizeof_
${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
18173 $as_echo_n "(cached) " >&6
18175 if ac_fn_c_compute_int
"$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
18176 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18177 included before <wchar.h>. */
18178 #include <stddef.h>
18179 #include <signal.h>
18181 # include <stdio.h>
18183 # include <wchar.h>
18186 #include <limits.h>"; then :
18192 eval gl_cv_bitsizeof_
${gltype}=\
$result
18195 eval ac_res
=\
$gl_cv_bitsizeof_${gltype}
18196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18197 $as_echo "$ac_res" >&6; }
18198 eval result
=\
$gl_cv_bitsizeof_${gltype}
18199 if test $result = unknown
; then
18202 GLTYPE
=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18203 cat >>confdefs.h
<<_ACEOF
18204 #define BITSIZEOF_${GLTYPE} $result
18207 eval BITSIZEOF_
${GLTYPE}=\
$result
18214 for gltype
in sig_atomic_t wchar_t wint_t
; do
18215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
18216 $as_echo_n "checking for bit size of $gltype... " >&6; }
18217 if { as_var
=gl_cv_bitsizeof_
${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
18218 $as_echo_n "(cached) " >&6
18220 if ac_fn_c_compute_int
"$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
18221 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18222 included before <wchar.h>. */
18223 #include <stddef.h>
18224 #include <signal.h>
18226 # include <stdio.h>
18228 # include <wchar.h>
18231 #include <limits.h>"; then :
18237 eval gl_cv_bitsizeof_
${gltype}=\
$result
18240 eval ac_res
=\
$gl_cv_bitsizeof_${gltype}
18241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18242 $as_echo "$ac_res" >&6; }
18243 eval result
=\
$gl_cv_bitsizeof_${gltype}
18244 if test $result = unknown
; then
18247 GLTYPE
=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18248 cat >>confdefs.h
<<_ACEOF
18249 #define BITSIZEOF_${GLTYPE} $result
18252 eval BITSIZEOF_
${GLTYPE}=\
$result
18258 for gltype
in sig_atomic_t wchar_t wint_t
; do
18259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
18260 $as_echo_n "checking whether $gltype is signed... " >&6; }
18261 if { as_var
=gl_cv_type_
${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then :
18262 $as_echo_n "(cached) " >&6
18264 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18265 /* end confdefs.h. */
18267 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18268 included before <wchar.h>. */
18269 #include <stddef.h>
18270 #include <signal.h>
18272 # include <stdio.h>
18274 # include <wchar.h>
18277 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
18286 if ac_fn_c_try_compile
"$LINENO"; then :
18291 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18292 eval gl_cv_type_
${gltype}_signed
=\
$result
18295 eval ac_res
=\
$gl_cv_type_${gltype}_signed
18296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18297 $as_echo "$ac_res" >&6; }
18298 eval result
=\
$gl_cv_type_${gltype}_signed
18299 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18300 if test "$result" = yes; then
18301 cat >>confdefs.h
<<_ACEOF
18302 #define HAVE_SIGNED_${GLTYPE} 1
18305 eval HAVE_SIGNED_
${GLTYPE}=1
18307 eval HAVE_SIGNED_
${GLTYPE}=0
18312 gl_cv_type_ptrdiff_t_signed
=yes
18313 gl_cv_type_size_t_signed
=no
18314 if test $APPLE_UNIVERSAL_BUILD = 0; then
18317 for gltype
in ptrdiff_t size_t
; do
18318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
18319 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
18320 if { as_var
=gl_cv_type_
${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
18321 $as_echo_n "(cached) " >&6
18323 eval gl_cv_type_
${gltype}_suffix
=no
18324 eval result
=\
$gl_cv_type_${gltype}_signed
18325 if test "$result" = yes; then
18330 for glsuf
in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64
; do
18332 '') gltype1
='int';;
18333 l
) gltype1
='long int';;
18334 ll
) gltype1
='long long int';;
18335 i64
) gltype1
='__int64';;
18336 u
) gltype1
='unsigned int';;
18337 ul
) gltype1
='unsigned long int';;
18338 ull
) gltype1
='unsigned long long int';;
18339 ui64
)gltype1
='unsigned __int64';;
18341 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18342 /* end confdefs.h. */
18344 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18345 included before <wchar.h>. */
18346 #include <stddef.h>
18347 #include <signal.h>
18349 # include <stdio.h>
18351 # include <wchar.h>
18354 extern $gltype foo;
18355 extern $gltype1 foo;
18364 if ac_fn_c_try_compile
"$LINENO"; then :
18365 eval gl_cv_type_
${gltype}_suffix
=\
$glsuf
18367 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18368 eval result
=\
$gl_cv_type_${gltype}_suffix
18369 test "$result" != no
&& break
18372 eval ac_res
=\
$gl_cv_type_${gltype}_suffix
18373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18374 $as_echo "$ac_res" >&6; }
18375 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18376 eval result
=\
$gl_cv_type_${gltype}_suffix
18377 test "$result" = no
&& result
=
18378 eval ${GLTYPE}_SUFFIX
=\
$result
18379 cat >>confdefs.h
<<_ACEOF
18380 #define ${GLTYPE}_SUFFIX $result
18389 for gltype
in sig_atomic_t wchar_t wint_t
; do
18390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
18391 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
18392 if { as_var
=gl_cv_type_
${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
18393 $as_echo_n "(cached) " >&6
18395 eval gl_cv_type_
${gltype}_suffix
=no
18396 eval result
=\
$gl_cv_type_${gltype}_signed
18397 if test "$result" = yes; then
18402 for glsuf
in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64
; do
18404 '') gltype1
='int';;
18405 l
) gltype1
='long int';;
18406 ll
) gltype1
='long long int';;
18407 i64
) gltype1
='__int64';;
18408 u
) gltype1
='unsigned int';;
18409 ul
) gltype1
='unsigned long int';;
18410 ull
) gltype1
='unsigned long long int';;
18411 ui64
)gltype1
='unsigned __int64';;
18413 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18414 /* end confdefs.h. */
18416 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18417 included before <wchar.h>. */
18418 #include <stddef.h>
18419 #include <signal.h>
18421 # include <stdio.h>
18423 # include <wchar.h>
18426 extern $gltype foo;
18427 extern $gltype1 foo;
18436 if ac_fn_c_try_compile
"$LINENO"; then :
18437 eval gl_cv_type_
${gltype}_suffix
=\
$glsuf
18439 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18440 eval result
=\
$gl_cv_type_${gltype}_suffix
18441 test "$result" != no
&& break
18444 eval ac_res
=\
$gl_cv_type_${gltype}_suffix
18445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18446 $as_echo "$ac_res" >&6; }
18447 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18448 eval result
=\
$gl_cv_type_${gltype}_suffix
18449 test "$result" = no
&& result
=
18450 eval ${GLTYPE}_SUFFIX
=\
$result
18451 cat >>confdefs.h
<<_ACEOF
18452 #define ${GLTYPE}_SUFFIX $result
18459 if test $BITSIZEOF_WINT_T -lt 32; then
18460 BITSIZEOF_WINT_T
=32
18466 if test -n "$STDINT_H"; then
18467 GL_GENERATE_STDINT_H_TRUE
=
18468 GL_GENERATE_STDINT_H_FALSE
='#'
18470 GL_GENERATE_STDINT_H_TRUE
='#'
18471 GL_GENERATE_STDINT_H_FALSE
=
18480 GNULIB_STRTOIMAX
=0;
18481 GNULIB_STRTOUMAX
=0;
18482 HAVE_DECL_IMAXABS
=1;
18483 HAVE_DECL_IMAXDIV
=1;
18484 HAVE_DECL_STRTOIMAX
=1;
18485 HAVE_DECL_STRTOUMAX
=1;
18486 REPLACE_STRTOIMAX
=0;
18487 INT32_MAX_LT_INTMAX_MAX
=1;
18488 INT64_MAX_EQ_LONG_MAX
='defined _LP64';
18489 PRI_MACROS_BROKEN
=0;
18490 PRIPTR_PREFIX
=__PRIPTR_PREFIX
;
18491 UINT32_MAX_LT_UINTMAX_MAX
=1;
18492 UINT64_MAX_EQ_ULONG_MAX
='defined _LP64';
18508 if test $gl_cv_have_include_next = yes; then
18509 gl_cv_next_inttypes_h
='<'inttypes.h
'>'
18511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5
18512 $as_echo_n "checking absolute name of <inttypes.h>... " >&6; }
18513 if test "${gl_cv_next_inttypes_h+set}" = set; then :
18514 $as_echo_n "(cached) " >&6
18517 if test $ac_cv_header_inttypes_h = yes; then
18520 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18521 /* end confdefs.h. */
18522 #include <inttypes.h>
18526 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
18527 *) gl_absname_cpp
="$ac_cpp" ;;
18532 gl_dirsep_regex
='[/\\]'
18535 gl_dirsep_regex
='\/'
18538 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
18540 gl_header_literal_regex
=`echo 'inttypes.h' \
18541 | sed -e "$gl_make_literal_regex_sed"`
18542 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
18543 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
18548 gl_cv_next_inttypes_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18549 sed -n "$gl_absolute_header_sed"`'"'
18551 gl_cv_next_inttypes_h
='<'inttypes.h
'>'
18556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5
18557 $as_echo "$gl_cv_next_inttypes_h" >&6; }
18559 NEXT_INTTYPES_H
=$gl_cv_next_inttypes_h
18561 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
18562 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18563 gl_next_as_first_directive
='<'inttypes.h
'>'
18565 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18566 gl_next_as_first_directive
=$gl_cv_next_inttypes_h
18568 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
=$gl_next_as_first_directive
18582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit off_t" >&5
18583 $as_echo_n "checking for 64-bit off_t... " >&6; }
18584 if test "${gl_cv_type_off_t_64+set}" = set; then :
18585 $as_echo_n "(cached) " >&6
18587 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18588 /* end confdefs.h. */
18589 #include <sys/types.h>
18590 int verify_off_t_size[sizeof (off_t) >= 8 ? 1 : -1];
18600 if ac_fn_c_try_compile
"$LINENO"; then :
18601 gl_cv_type_off_t_64
=yes
18603 gl_cv_type_off_t_64
=no
18605 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_off_t_64" >&5
18609 $as_echo "$gl_cv_type_off_t_64" >&6; }
18610 if test $gl_cv_type_off_t_64 = no
; then
18611 WINDOWS_64_BIT_OFF_T
=1
18613 WINDOWS_64_BIT_OFF_T
=0
18615 WINDOWS_64_BIT_ST_SIZE
=1
18618 WINDOWS_64_BIT_OFF_T
=0
18619 WINDOWS_64_BIT_ST_SIZE
=0
18636 GNULIB_UTIMENSAT
=0;
18650 REPLACE_FUTIMENS
=0;
18656 REPLACE_UTIMENSAT
=0;
18661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
18662 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
18663 if test "${gl_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
18664 $as_echo_n "(cached) " >&6
18666 rm -f conftest.sym conftest.
file
18667 echo >conftest.
file
18668 if test "$as_ln_s" = "ln -s" && ln -s conftest.
file conftest.sym
; then
18669 if test "$cross_compiling" = yes; then :
18671 # Guess yes on glibc systems.
18672 *-gnu*) gl_cv_func_lstat_dereferences_slashed_symlink
="guessing yes" ;;
18673 # If we don't know, assume the worst.
18674 *) gl_cv_func_lstat_dereferences_slashed_symlink
="guessing no" ;;
18678 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18679 /* end confdefs.h. */
18680 $ac_includes_default
18685 /* Linux will dereference the symlink and fail, as required by
18686 POSIX. That is better in the sense that it means we will not
18687 have to compile and use the lstat wrapper. */
18688 return lstat ("conftest.sym/", &sbuf) == 0;
18694 if ac_fn_c_try_run
"$LINENO"; then :
18695 gl_cv_func_lstat_dereferences_slashed_symlink
=yes
18697 gl_cv_func_lstat_dereferences_slashed_symlink
=no
18699 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
18700 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18704 # If the 'ln -s' command failed, then we probably don't even
18705 # have an lstat function.
18706 gl_cv_func_lstat_dereferences_slashed_symlink
="guessing no"
18708 rm -f conftest.sym conftest.
file
18711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lstat_dereferences_slashed_symlink" >&5
18712 $as_echo "$gl_cv_func_lstat_dereferences_slashed_symlink" >&6; }
18713 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
18716 cat >>confdefs.h
<<_ACEOF
18717 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
18725 GNULIB_NANOSLEEP
=0;
18729 HAVE_DECL_LOCALTIME_R
=1;
18733 REPLACE_LOCALTIME_R
=GNULIB_PORTCHECK
;
18734 REPLACE_MKTIME
=GNULIB_PORTCHECK
;
18735 REPLACE_NANOSLEEP
=GNULIB_PORTCHECK
;
18736 REPLACE_TIMEGM
=GNULIB_PORTCHECK
;
18752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/select.h> is self-contained" >&5
18753 $as_echo_n "checking whether <sys/select.h> is self-contained... " >&6; }
18754 if test "${gl_cv_header_sys_select_h_selfcontained+set}" = set; then :
18755 $as_echo_n "(cached) " >&6
18758 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18759 /* end confdefs.h. */
18760 #include <sys/select.h>
18769 if ac_fn_c_try_compile
"$LINENO"; then :
18770 gl_cv_header_sys_select_h_selfcontained
=yes
18772 gl_cv_header_sys_select_h_selfcontained
=no
18774 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18775 if test $gl_cv_header_sys_select_h_selfcontained = yes; then
18776 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18777 /* end confdefs.h. */
18778 #include <sys/select.h>
18782 int memset; int bzero;
18788 if ac_fn_c_try_compile
"$LINENO"; then :
18789 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18790 /* end confdefs.h. */
18791 #include <sys/select.h>
18797 #define memset nonexistent_memset
18802 void *memset (void *, int, unsigned long);
18804 #define bzero nonexistent_bzero
18809 void bzero (void *, unsigned long);
18818 if ac_fn_c_try_link
"$LINENO"; then :
18821 gl_cv_header_sys_select_h_selfcontained
=no
18823 rm -f core conftest.err conftest.
$ac_objext \
18824 conftest
$ac_exeext conftest.
$ac_ext
18827 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_select_h_selfcontained" >&5
18832 $as_echo "$gl_cv_header_sys_select_h_selfcontained" >&6; }
18842 if test $gl_cv_have_include_next = yes; then
18843 gl_cv_next_sys_select_h
='<'sys
/select.h
'>'
18845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/select.h>" >&5
18846 $as_echo_n "checking absolute name of <sys/select.h>... " >&6; }
18847 if test "${gl_cv_next_sys_select_h+set}" = set; then :
18848 $as_echo_n "(cached) " >&6
18851 if test $ac_cv_header_sys_select_h = yes; then
18854 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18855 /* end confdefs.h. */
18856 #include <sys/select.h>
18860 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
18861 *) gl_absname_cpp
="$ac_cpp" ;;
18866 gl_dirsep_regex
='[/\\]'
18869 gl_dirsep_regex
='\/'
18872 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
18874 gl_header_literal_regex
=`echo 'sys/select.h' \
18875 | sed -e "$gl_make_literal_regex_sed"`
18876 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
18877 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
18882 gl_cv_next_sys_select_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18883 sed -n "$gl_absolute_header_sed"`'"'
18885 gl_cv_next_sys_select_h
='<'sys
/select.h
'>'
18890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_select_h" >&5
18891 $as_echo "$gl_cv_next_sys_select_h" >&6; }
18893 NEXT_SYS_SELECT_H
=$gl_cv_next_sys_select_h
18895 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
18896 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18897 gl_next_as_first_directive
='<'sys
/select.h
'>'
18899 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18900 gl_next_as_first_directive
=$gl_cv_next_sys_select_h
18902 NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H
=$gl_next_as_first_directive
18907 if test $ac_cv_header_sys_select_h = yes; then
18908 HAVE_SYS_SELECT_H
=1
18910 HAVE_SYS_SELECT_H
=0
18917 if test $ac_cv_header_sys_socket_h != yes; then
18918 for ac_header
in winsock2.h
18920 ac_fn_c_check_header_mongrel
"$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
18921 if test "x$ac_cv_header_winsock2_h" = x
""yes; then :
18922 cat >>confdefs.h
<<_ACEOF
18923 #define HAVE_WINSOCK2_H 1
18931 if test "$ac_cv_header_winsock2_h" = yes; then
18933 UNISTD_H_HAVE_WINSOCK2_H
=1
18934 SYS_IOCTL_H_HAVE_WINSOCK2_H
=1
18946 GNULIB_PTHREAD_SIGMASK
=0;
18948 GNULIB_SIGNAL_H_SIGPIPE
=0;
18949 GNULIB_SIGPROCMASK
=0;
18950 GNULIB_SIGACTION
=0;
18951 HAVE_POSIX_SIGNALBLOCKING
=1;
18952 HAVE_PTHREAD_SIGMASK
=1;
18957 HAVE_STRUCT_SIGACTION_SA_SIGACTION
=1;
18959 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
=1;
18961 HAVE_SIGHANDLER_T
=1;
18962 REPLACE_PTHREAD_SIGMASK
=0;
18970 ac_fn_c_check_type
"$LINENO" "sigset_t" "ac_cv_type_sigset_t" "
18971 #include <signal.h>
18972 /* Mingw defines sigset_t not in <signal.h>, but in <sys/types.h>. */
18973 #include <sys/types.h>
18976 if test "x$ac_cv_type_sigset_t" = x
""yes; then :
18978 cat >>confdefs.h
<<_ACEOF
18979 #define HAVE_SIGSET_T 1
18982 gl_cv_type_sigset_t
=yes
18984 gl_cv_type_sigset_t
=no
18987 if test $gl_cv_type_sigset_t != yes; then
18993 if test $ac_cv_header_sys_socket_h = no
; then
18994 for ac_header
in ws2tcpip.h
18996 ac_fn_c_check_header_mongrel
"$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
18997 if test "x$ac_cv_header_ws2tcpip_h" = x
""yes; then :
18998 cat >>confdefs.h
<<_ACEOF
18999 #define HAVE_WS2TCPIP_H 1
19008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
19009 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
19010 if test "${ac_cv_header_stdbool_h+set}" = set; then :
19011 $as_echo_n "(cached) " >&6
19013 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19014 /* end confdefs.h. */
19016 #include <stdbool.h>
19018 "error: bool is not defined"
19021 "error: false is not defined"
19024 "error: false is not 0"
19027 "error: true is not defined"
19030 "error: true is not 1"
19032 #ifndef __bool_true_false_are_defined
19033 "error: __bool_true_false_are_defined is not defined"
19036 struct s { _Bool s: 1; _Bool t; } s;
19038 char a[true == 1 ? 1 : -1];
19039 char b[false == 0 ? 1 : -1];
19040 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
19041 char d[(bool) 0.5 == true ? 1 : -1];
19042 /* See body of main program for 'e'. */
19043 char f[(_Bool) 0.0 == false ? 1 : -1];
19045 char h[sizeof (_Bool)];
19046 char i[sizeof s.t];
19047 enum { j = false, k = true, l = false * true, m = true * 256 };
19048 /* The following fails for
19049 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
19051 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
19052 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
19053 /* Catch a bug in an HP-UX C compiler. See
19054 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
19055 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
19067 /* Refer to every declared value, to avoid compiler optimizations. */
19068 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
19069 + !m + !n + !o + !p + !q + !pq);
19075 if ac_fn_c_try_compile
"$LINENO"; then :
19076 ac_cv_header_stdbool_h
=yes
19078 ac_cv_header_stdbool_h
=no
19080 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
19083 $as_echo "$ac_cv_header_stdbool_h" >&6; }
19084 ac_fn_c_check_type
"$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
19085 if test "x$ac_cv_type__Bool" = x
""yes; then :
19087 cat >>confdefs.h
<<_ACEOF
19088 #define HAVE__BOOL 1
19100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
19101 $as_echo_n "checking for wchar_t... " >&6; }
19102 if test "${gt_cv_c_wchar_t+set}" = set; then :
19103 $as_echo_n "(cached) " >&6
19105 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19106 /* end confdefs.h. */
19107 #include <stddef.h>
19108 wchar_t foo = (wchar_t)'\0';
19117 if ac_fn_c_try_compile
"$LINENO"; then :
19118 gt_cv_c_wchar_t
=yes
19122 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
19125 $as_echo "$gt_cv_c_wchar_t" >&6; }
19126 if test $gt_cv_c_wchar_t = yes; then
19128 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
19141 GNULIB_FPRINTF_POSIX
=0;
19157 GNULIB_OBSTACK_PRINTF
=0;
19158 GNULIB_OBSTACK_PRINTF_POSIX
=0;
19163 GNULIB_PRINTF_POSIX
=0;
19172 GNULIB_SPRINTF_POSIX
=0;
19173 GNULIB_STDIO_H_NONBLOCKING
=0;
19174 GNULIB_STDIO_H_SIGPIPE
=0;
19176 GNULIB_VASPRINTF
=0;
19181 GNULIB_VFPRINTF_POSIX
=0;
19183 GNULIB_VPRINTF_POSIX
=0;
19184 GNULIB_VSNPRINTF
=0;
19185 GNULIB_VSPRINTF_POSIX
=0;
19186 HAVE_DECL_FPURGE
=1;
19187 HAVE_DECL_FSEEKO
=1;
19188 HAVE_DECL_FTELLO
=1;
19189 HAVE_DECL_GETDELIM
=1;
19190 HAVE_DECL_GETLINE
=1;
19191 HAVE_DECL_OBSTACK_PRINTF
=1;
19192 HAVE_DECL_SNPRINTF
=1;
19193 HAVE_DECL_VSNPRINTF
=1;
19214 REPLACE_GETDELIM
=0;
19216 REPLACE_OBSTACK_PRINTF
=0;
19222 REPLACE_RENAMEAT
=0;
19223 REPLACE_SNPRINTF
=0;
19225 REPLACE_STDIO_READ_FUNCS
=0;
19226 REPLACE_STDIO_WRITE_FUNCS
=0;
19228 REPLACE_VASPRINTF
=0;
19229 REPLACE_VDPRINTF
=0;
19230 REPLACE_VFPRINTF
=0;
19232 REPLACE_VSNPRINTF
=0;
19233 REPLACE_VSPRINTF
=0;
19235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
19236 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
19237 if test "${ac_cv_struct_tm+set}" = set; then :
19238 $as_echo_n "(cached) " >&6
19240 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19241 /* end confdefs.h. */
19242 #include <sys/types.h>
19249 int *p = &tm.tm_sec;
19255 if ac_fn_c_try_compile
"$LINENO"; then :
19256 ac_cv_struct_tm
=time.h
19258 ac_cv_struct_tm
=sys
/time.h
19260 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
19263 $as_echo "$ac_cv_struct_tm" >&6; }
19264 if test $ac_cv_struct_tm = sys
/time.h
; then
19266 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
19270 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
19271 #include <$ac_cv_struct_tm>
19274 if test "x$ac_cv_member_struct_tm_tm_zone" = x
""yes; then :
19276 cat >>confdefs.h
<<_ACEOF
19277 #define HAVE_STRUCT_TM_TM_ZONE 1
19283 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
19285 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
19288 ac_fn_c_check_decl
"$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
19290 if test "x$ac_cv_have_decl_tzname" = x
""yes; then :
19296 cat >>confdefs.h
<<_ACEOF
19297 #define HAVE_DECL_TZNAME $ac_have_decl
19300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
19301 $as_echo_n "checking for tzname... " >&6; }
19302 if test "${ac_cv_var_tzname+set}" = set; then :
19303 $as_echo_n "(cached) " >&6
19305 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19306 /* end confdefs.h. */
19308 #if !HAVE_DECL_TZNAME
19309 extern char *tzname[];
19315 return tzname[0][0];
19320 if ac_fn_c_try_link
"$LINENO"; then :
19321 ac_cv_var_tzname
=yes
19323 ac_cv_var_tzname
=no
19325 rm -f core conftest.err conftest.
$ac_objext \
19326 conftest
$ac_exeext conftest.
$ac_ext
19328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
19329 $as_echo "$ac_cv_var_tzname" >&6; }
19330 if test $ac_cv_var_tzname = yes; then
19332 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
19338 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
19340 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x
""yes; then :
19342 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
19349 ac_fn_c_check_decl
"$LINENO" "strtoimax" "ac_cv_have_decl_strtoimax" "$ac_includes_default"
19350 if test "x$ac_cv_have_decl_strtoimax" = x
""yes; then :
19356 cat >>confdefs.h
<<_ACEOF
19357 #define HAVE_DECL_STRTOIMAX $ac_have_decl
19362 ac_fn_c_check_decl
"$LINENO" "strtoumax" "ac_cv_have_decl_strtoumax" "$ac_includes_default"
19363 if test "x$ac_cv_have_decl_strtoumax" = x
""yes; then :
19369 cat >>confdefs.h
<<_ACEOF
19370 #define HAVE_DECL_STRTOUMAX $ac_have_decl
19375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
19376 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
19377 if test "${ac_cv_header_stat_broken+set}" = set; then :
19378 $as_echo_n "(cached) " >&6
19380 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19381 /* end confdefs.h. */
19382 #include <sys/types.h>
19383 #include <sys/stat.h>
19385 #if defined S_ISBLK && defined S_IFDIR
19386 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
19389 #if defined S_ISBLK && defined S_IFCHR
19390 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
19393 #if defined S_ISLNK && defined S_IFREG
19394 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
19397 #if defined S_ISSOCK && defined S_IFREG
19398 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
19402 if ac_fn_c_try_compile
"$LINENO"; then :
19403 ac_cv_header_stat_broken
=no
19405 ac_cv_header_stat_broken
=yes
19407 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
19410 $as_echo "$ac_cv_header_stat_broken" >&6; }
19411 if test $ac_cv_header_stat_broken = yes; then
19413 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
19419 ac_fn_c_check_type
"$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
19420 if test "x$ac_cv_type_mode_t" = x
""yes; then :
19424 cat >>confdefs.h
<<_ACEOF
19432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
19433 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
19434 if test "${gl_cv_sys_struct_timespec_in_time_h+set}" = set; then :
19435 $as_echo_n "(cached) " >&6
19437 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19438 /* end confdefs.h. */
19444 static struct timespec x; x.tv_sec = x.tv_nsec;
19449 if ac_fn_c_try_compile
"$LINENO"; then :
19450 gl_cv_sys_struct_timespec_in_time_h
=yes
19452 gl_cv_sys_struct_timespec_in_time_h
=no
19454 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
19457 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
19459 TIME_H_DEFINES_STRUCT_TIMESPEC
=0
19460 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
=0
19461 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
=0
19462 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
19463 TIME_H_DEFINES_STRUCT_TIMESPEC
=1
19465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
19466 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
19467 if test "${gl_cv_sys_struct_timespec_in_sys_time_h+set}" = set; then :
19468 $as_echo_n "(cached) " >&6
19470 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19471 /* end confdefs.h. */
19472 #include <sys/time.h>
19477 static struct timespec x; x.tv_sec = x.tv_nsec;
19482 if ac_fn_c_try_compile
"$LINENO"; then :
19483 gl_cv_sys_struct_timespec_in_sys_time_h
=yes
19485 gl_cv_sys_struct_timespec_in_sys_time_h
=no
19487 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
19490 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
19491 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
19492 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
=1
19494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
19495 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
19496 if test "${gl_cv_sys_struct_timespec_in_pthread_h+set}" = set; then :
19497 $as_echo_n "(cached) " >&6
19499 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19500 /* end confdefs.h. */
19501 #include <pthread.h>
19506 static struct timespec x; x.tv_sec = x.tv_nsec;
19511 if ac_fn_c_try_compile
"$LINENO"; then :
19512 gl_cv_sys_struct_timespec_in_pthread_h
=yes
19514 gl_cv_sys_struct_timespec_in_pthread_h
=no
19516 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
19519 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
19520 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
19521 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
=1
19540 if test $gl_cv_have_include_next = yes; then
19541 gl_cv_next_time_h
='<'time.h
'>'
19543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
19544 $as_echo_n "checking absolute name of <time.h>... " >&6; }
19545 if test "${gl_cv_next_time_h+set}" = set; then :
19546 $as_echo_n "(cached) " >&6
19549 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19550 /* end confdefs.h. */
19555 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
19556 *) gl_absname_cpp
="$ac_cpp" ;;
19561 gl_dirsep_regex
='[/\\]'
19564 gl_dirsep_regex
='\/'
19567 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
19569 gl_header_literal_regex
=`echo 'time.h' \
19570 | sed -e "$gl_make_literal_regex_sed"`
19571 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
19572 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
19577 gl_cv_next_time_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19578 sed -n "$gl_absolute_header_sed"`'"'
19582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
19583 $as_echo "$gl_cv_next_time_h" >&6; }
19585 NEXT_TIME_H
=$gl_cv_next_time_h
19587 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
19588 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19589 gl_next_as_first_directive
='<'time.h
'>'
19591 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19592 gl_next_as_first_directive
=$gl_cv_next_time_h
19594 NEXT_AS_FIRST_DIRECTIVE_TIME_H
=$gl_next_as_first_directive
19610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the utimes function works" >&5
19611 $as_echo_n "checking whether the utimes function works... " >&6; }
19612 if test "${gl_cv_func_working_utimes+set}" = set; then :
19613 $as_echo_n "(cached) " >&6
19616 if test "$cross_compiling" = yes; then :
19617 gl_cv_func_working_utimes
=no
19619 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19620 /* end confdefs.h. */
19622 #include <sys/types.h>
19623 #include <sys/stat.h>
19625 #include <sys/time.h>
19627 #include <unistd.h>
19628 #include <stdlib.h>
19633 inorder (time_t a, time_t b, time_t c)
19635 return a <= b && b <= c;
19642 char const *file = "conftest.utimes";
19643 static struct timeval timeval[2] = {{9, 10}, {999999, 999999}};
19645 /* Test whether utimes() essentially works. */
19648 FILE *f = fopen (file, "w");
19651 else if (fclose (f) != 0)
19653 else if (utimes (file, timeval) != 0)
19655 else if (lstat (file, &sbuf) != 0)
19657 else if (!(sbuf.st_atime == timeval[0].tv_sec
19658 && sbuf.st_mtime == timeval[1].tv_sec))
19660 if (unlink (file) != 0)
19664 /* Test whether utimes() with a NULL argument sets the file's timestamp
19665 to the current time. Use 'fstat' as well as 'time' to
19666 determine the "current" time, to accommodate NFS file systems
19667 if there is a time skew between the host and the NFS server. */
19669 int fd = open (file, O_WRONLY|O_CREAT, 0644);
19675 struct stat st0, st1, st2;
19676 if (time (&t0) == (time_t) -1)
19678 else if (fstat (fd, &st0) != 0)
19680 else if (utimes (file, timeval) != 0)
19682 else if (utimes (file, NULL) != 0)
19684 else if (fstat (fd, &st1) != 0)
19686 else if (write (fd, "\n", 1) != 1)
19688 else if (fstat (fd, &st2) != 0)
19690 else if (time (&t2) == (time_t) -1)
19694 int m_ok_POSIX = inorder (t0, st1.st_mtime, t2);
19695 int m_ok_NFS = inorder (st0.st_mtime, st1.st_mtime, st2.st_mtime);
19696 if (! (st1.st_atime == st1.st_mtime))
19698 if (! (m_ok_POSIX || m_ok_NFS))
19701 if (close (fd) != 0)
19704 if (unlink (file) != 0)
19708 /* Test whether utimes() with a NULL argument works on read-only files. */
19710 int fd = open (file, O_WRONLY|O_CREAT, 0444);
19713 else if (close (fd) != 0)
19715 else if (utimes (file, NULL) != 0)
19717 if (unlink (file) != 0)
19725 if ac_fn_c_try_run
"$LINENO"; then :
19726 gl_cv_func_working_utimes
=yes
19728 gl_cv_func_working_utimes
=no
19730 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19731 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_utimes" >&5
19736 $as_echo "$gl_cv_func_working_utimes" >&6; }
19738 if test $gl_cv_func_working_utimes = yes; then
19740 $as_echo "#define HAVE_WORKING_UTIMES 1" >>confdefs.h
19748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utimbuf" >&5
19749 $as_echo_n "checking for struct utimbuf... " >&6; }
19750 if test "${gl_cv_sys_struct_utimbuf+set}" = set; then :
19751 $as_echo_n "(cached) " >&6
19753 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19754 /* end confdefs.h. */
19755 #if HAVE_SYS_TIME_H
19756 #include <sys/time.h>
19759 #ifdef HAVE_UTIME_H
19766 static struct utimbuf x; x.actime = x.modtime;
19771 if ac_fn_c_try_compile
"$LINENO"; then :
19772 gl_cv_sys_struct_utimbuf
=yes
19774 gl_cv_sys_struct_utimbuf
=no
19776 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_utimbuf" >&5
19779 $as_echo "$gl_cv_sys_struct_utimbuf" >&6; }
19781 if test $gl_cv_sys_struct_utimbuf = yes; then
19783 $as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h
19799 GL_COND_LIBTOOL_TRUE
=
19800 GL_COND_LIBTOOL_FALSE
='#'
19802 GL_COND_LIBTOOL_TRUE
='#'
19803 GL_COND_LIBTOOL_FALSE
=
19806 gl_cond_libtool
=false
19819 gl_source_base
='lib'
19822 if test $ac_cv_func_alloca_works = no
; then
19826 # Define an additional variable used in the Makefile substitution.
19827 if test $ac_cv_working_alloca_h = yes; then
19828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
19829 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
19830 if test "${gl_cv_rpl_alloca+set}" = set; then :
19831 $as_echo_n "(cached) " >&6
19834 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19835 /* end confdefs.h. */
19837 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
19842 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19843 $EGREP "Need own alloca" >/dev
/null
2>&1; then :
19844 gl_cv_rpl_alloca
=yes
19846 gl_cv_rpl_alloca
=no
19852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
19853 $as_echo "$gl_cv_rpl_alloca" >&6; }
19854 if test $gl_cv_rpl_alloca = yes; then
19856 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
19866 if test -n "$ALLOCA_H"; then
19867 GL_GENERATE_ALLOCA_H_TRUE
=
19868 GL_GENERATE_ALLOCA_H_FALSE
='#'
19870 GL_GENERATE_ALLOCA_H_TRUE
='#'
19871 GL_GENERATE_ALLOCA_H_FALSE
=
19879 # Solaris 2.5.1 needs -lposix4 to get the clock_gettime function.
19880 # Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4.
19882 # Save and restore LIBS so e.g., -lrt, isn't added to it. Otherwise, *all*
19883 # programs in the package would end up linked with that potentially-shared
19884 # library, inducing unnecessary run-time overhead.
19887 gl_saved_libs
=$LIBS
19888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
19889 $as_echo_n "checking for library containing clock_gettime... " >&6; }
19890 if test "${ac_cv_search_clock_gettime+set}" = set; then :
19891 $as_echo_n "(cached) " >&6
19893 ac_func_search_save_LIBS
=$LIBS
19894 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19895 /* end confdefs.h. */
19897 /* Override any GCC internal prototype to avoid an error.
19898 Use char because int might match the return type of a GCC
19899 builtin and then its argument prototype would still apply. */
19903 char clock_gettime ();
19907 return clock_gettime ();
19912 for ac_lib
in '' rt posix4
; do
19913 if test -z "$ac_lib"; then
19914 ac_res
="none required"
19917 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
19919 if ac_fn_c_try_link
"$LINENO"; then :
19920 ac_cv_search_clock_gettime
=$ac_res
19922 rm -f core conftest.err conftest.
$ac_objext \
19924 if test "${ac_cv_search_clock_gettime+set}" = set; then :
19928 if test "${ac_cv_search_clock_gettime+set}" = set; then :
19931 ac_cv_search_clock_gettime
=no
19933 rm conftest.
$ac_ext
19934 LIBS
=$ac_func_search_save_LIBS
19936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
19937 $as_echo "$ac_cv_search_clock_gettime" >&6; }
19938 ac_res
=$ac_cv_search_clock_gettime
19939 if test "$ac_res" != no
; then :
19940 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
19941 test "$ac_cv_search_clock_gettime" = "none required" ||
19942 LIB_CLOCK_GETTIME
=$ac_cv_search_clock_gettime
19945 for ac_func
in clock_gettime clock_settime
19947 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19948 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
19949 eval as_val
=\$
$as_ac_var
19950 if test "x$as_val" = x
""yes; then :
19951 cat >>confdefs.h
<<_ACEOF
19952 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19958 LIBS
=$gl_saved_libs
19984 $as_echo "#define HAVE_DUP2 1" >>confdefs.h
19987 if test $HAVE_DUP2 = 1; then
19988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dup2 works" >&5
19989 $as_echo_n "checking whether dup2 works... " >&6; }
19990 if test "${gl_cv_func_dup2_works+set}" = set; then :
19991 $as_echo_n "(cached) " >&6
19993 if test "$cross_compiling" = yes; then :
19995 mingw
*) # on this platform, dup2 always returns 0 for success
19996 gl_cv_func_dup2_works
="guessing no" ;;
19997 cygwin
*) # on cygwin 1.5.x, dup2(1,1) returns 0
19998 gl_cv_func_dup2_works
="guessing no" ;;
19999 linux
*) # On linux between 2008-07-27 and 2009-05-11, dup2 of a
20000 # closed fd may yield -EBADF instead of -1 / errno=EBADF.
20001 gl_cv_func_dup2_works
="guessing no" ;;
20002 freebsd
*) # on FreeBSD 6.1, dup2(1,1000000) gives EMFILE, not EBADF.
20003 gl_cv_func_dup2_works
="guessing no" ;;
20004 haiku
*) # on Haiku alpha 2, dup2(1, 1) resets FD_CLOEXEC.
20005 gl_cv_func_dup2_works
="guessing no" ;;
20006 *) gl_cv_func_dup2_works
="guessing yes" ;;
20009 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20010 /* end confdefs.h. */
20012 #include <unistd.h>
20020 if (fcntl (1, F_SETFD, FD_CLOEXEC) == -1)
20023 if (dup2 (1, 1) == 0)
20026 if (fcntl (1, F_GETFD) != FD_CLOEXEC)
20030 if (dup2 (0, 0) != -1)
20032 /* Many gnulib modules require POSIX conformance of EBADF. */
20033 if (dup2 (2, 1000000) == -1 && errno != EBADF)
20042 if ac_fn_c_try_run
"$LINENO"; then :
20043 gl_cv_func_dup2_works
=yes
20045 gl_cv_func_dup2_works
=no
20047 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20048 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dup2_works" >&5
20054 $as_echo "$gl_cv_func_dup2_works" >&6; }
20055 case "$gl_cv_func_dup2_works" in
20064 if test $HAVE_DUP2 = 0 ||
test $REPLACE_DUP2 = 1; then
20073 gl_LIBOBJS
="$gl_LIBOBJS dup2.$ac_objext"
20107 # Persuade glibc <stdlib.h> to declare getloadavg().
20112 # getloadvg is present in libc on glibc >= 2.2, Mac OS X, FreeBSD >= 2.0,
20113 # NetBSD >= 0.9, OpenBSD >= 2.0, Solaris >= 7.
20115 ac_fn_c_check_func
"$LINENO" "getloadavg" "ac_cv_func_getloadavg"
20116 if test "x$ac_cv_func_getloadavg" = x
""yes; then :
20119 gl_func_getloadavg_done
=no
20121 # Some systems with -lutil have (and need) -lkvm as well, some do not.
20122 # On Solaris, -lkvm requires nlist from -lelf, so check that first
20123 # to get the right answer into the cache.
20124 # For kstat on solaris, we need to test for libelf and libkvm to force the
20125 # definition of SVR4 below.
20126 if test $gl_func_getloadavg_done = no
; then
20127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
20128 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
20129 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then :
20130 $as_echo_n "(cached) " >&6
20132 ac_check_lib_save_LIBS
=$LIBS
20134 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20135 /* end confdefs.h. */
20137 /* Override any GCC internal prototype to avoid an error.
20138 Use char because int might match the return type of a GCC
20139 builtin and then its argument prototype would still apply. */
20147 return elf_begin ();
20152 if ac_fn_c_try_link
"$LINENO"; then :
20153 ac_cv_lib_elf_elf_begin
=yes
20155 ac_cv_lib_elf_elf_begin
=no
20157 rm -f core conftest.err conftest.
$ac_objext \
20158 conftest
$ac_exeext conftest.
$ac_ext
20159 LIBS
=$ac_check_lib_save_LIBS
20161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
20162 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
20163 if test "x$ac_cv_lib_elf_elf_begin" = x
""yes; then :
20167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
20168 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
20169 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then :
20170 $as_echo_n "(cached) " >&6
20172 ac_check_lib_save_LIBS
=$LIBS
20174 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20175 /* end confdefs.h. */
20177 /* Override any GCC internal prototype to avoid an error.
20178 Use char because int might match the return type of a GCC
20179 builtin and then its argument prototype would still apply. */
20187 return kvm_open ();
20192 if ac_fn_c_try_link
"$LINENO"; then :
20193 ac_cv_lib_kvm_kvm_open
=yes
20195 ac_cv_lib_kvm_kvm_open
=no
20197 rm -f core conftest.err conftest.
$ac_objext \
20198 conftest
$ac_exeext conftest.
$ac_ext
20199 LIBS
=$ac_check_lib_save_LIBS
20201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
20202 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
20203 if test "x$ac_cv_lib_kvm_kvm_open" = x
""yes; then :
20207 # Check for the 4.4BSD definition of getloadavg.
20208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5
20209 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
20210 if test "${ac_cv_lib_util_getloadavg+set}" = set; then :
20211 $as_echo_n "(cached) " >&6
20213 ac_check_lib_save_LIBS
=$LIBS
20214 LIBS
="-lutil $LIBS"
20215 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20216 /* end confdefs.h. */
20218 /* Override any GCC internal prototype to avoid an error.
20219 Use char because int might match the return type of a GCC
20220 builtin and then its argument prototype would still apply. */
20224 char getloadavg ();
20228 return getloadavg ();
20233 if ac_fn_c_try_link
"$LINENO"; then :
20234 ac_cv_lib_util_getloadavg
=yes
20236 ac_cv_lib_util_getloadavg
=no
20238 rm -f core conftest.err conftest.
$ac_objext \
20239 conftest
$ac_exeext conftest.
$ac_ext
20240 LIBS
=$ac_check_lib_save_LIBS
20242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5
20243 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
20244 if test "x$ac_cv_lib_util_getloadavg" = x
""yes; then :
20245 LIBS
="-lutil $LIBS" gl_func_getloadavg_done
=yes
20250 if test $gl_func_getloadavg_done = no
; then
20251 # There is a commonly available library for RS/6000 AIX.
20252 # Since it is not a standard part of AIX, it might be installed locally.
20253 gl_getloadavg_LIBS
=$LIBS
20254 LIBS
="-L/usr/local/lib $LIBS"
20255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5
20256 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
20257 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then :
20258 $as_echo_n "(cached) " >&6
20260 ac_check_lib_save_LIBS
=$LIBS
20261 LIBS
="-lgetloadavg $LIBS"
20262 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20263 /* end confdefs.h. */
20265 /* Override any GCC internal prototype to avoid an error.
20266 Use char because int might match the return type of a GCC
20267 builtin and then its argument prototype would still apply. */
20271 char getloadavg ();
20275 return getloadavg ();
20280 if ac_fn_c_try_link
"$LINENO"; then :
20281 ac_cv_lib_getloadavg_getloadavg
=yes
20283 ac_cv_lib_getloadavg_getloadavg
=no
20285 rm -f core conftest.err conftest.
$ac_objext \
20286 conftest
$ac_exeext conftest.
$ac_ext
20287 LIBS
=$ac_check_lib_save_LIBS
20289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5
20290 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
20291 if test "x$ac_cv_lib_getloadavg_getloadavg" = x
""yes; then :
20292 LIBS
="-lgetloadavg $LIBS" gl_func_getloadavg_done
=yes
20294 LIBS
=$gl_getloadavg_LIBS
20299 # Set up the replacement function if necessary.
20300 if test $gl_func_getloadavg_done = no
; then
20303 # Solaris has libkstat which does not require root.
20304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
20305 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
20306 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then :
20307 $as_echo_n "(cached) " >&6
20309 ac_check_lib_save_LIBS
=$LIBS
20310 LIBS
="-lkstat $LIBS"
20311 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20312 /* end confdefs.h. */
20314 /* Override any GCC internal prototype to avoid an error.
20315 Use char because int might match the return type of a GCC
20316 builtin and then its argument prototype would still apply. */
20320 char kstat_open ();
20324 return kstat_open ();
20329 if ac_fn_c_try_link
"$LINENO"; then :
20330 ac_cv_lib_kstat_kstat_open
=yes
20332 ac_cv_lib_kstat_kstat_open
=no
20334 rm -f core conftest.err conftest.
$ac_objext \
20335 conftest
$ac_exeext conftest.
$ac_ext
20336 LIBS
=$ac_check_lib_save_LIBS
20338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
20339 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
20340 if test "x$ac_cv_lib_kstat_kstat_open" = x
""yes; then :
20341 cat >>confdefs.h
<<_ACEOF
20342 #define HAVE_LIBKSTAT 1
20345 LIBS
="-lkstat $LIBS"
20349 test $ac_cv_lib_kstat_kstat_open = yes && gl_func_getloadavg_done
=yes
20351 # AIX has libperfstat which does not require root
20352 if test $gl_func_getloadavg_done = no
; then
20353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perfstat_cpu_total in -lperfstat" >&5
20354 $as_echo_n "checking for perfstat_cpu_total in -lperfstat... " >&6; }
20355 if test "${ac_cv_lib_perfstat_perfstat_cpu_total+set}" = set; then :
20356 $as_echo_n "(cached) " >&6
20358 ac_check_lib_save_LIBS
=$LIBS
20359 LIBS
="-lperfstat $LIBS"
20360 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20361 /* end confdefs.h. */
20363 /* Override any GCC internal prototype to avoid an error.
20364 Use char because int might match the return type of a GCC
20365 builtin and then its argument prototype would still apply. */
20369 char perfstat_cpu_total ();
20373 return perfstat_cpu_total ();
20378 if ac_fn_c_try_link
"$LINENO"; then :
20379 ac_cv_lib_perfstat_perfstat_cpu_total
=yes
20381 ac_cv_lib_perfstat_perfstat_cpu_total
=no
20383 rm -f core conftest.err conftest.
$ac_objext \
20384 conftest
$ac_exeext conftest.
$ac_ext
20385 LIBS
=$ac_check_lib_save_LIBS
20387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_perfstat_perfstat_cpu_total" >&5
20388 $as_echo "$ac_cv_lib_perfstat_perfstat_cpu_total" >&6; }
20389 if test "x$ac_cv_lib_perfstat_perfstat_cpu_total" = x
""yes; then :
20390 cat >>confdefs.h
<<_ACEOF
20391 #define HAVE_LIBPERFSTAT 1
20394 LIBS
="-lperfstat $LIBS"
20398 test $ac_cv_lib_perfstat_perfstat_cpu_total = yes && gl_func_getloadavg_done
=yes
20401 if test $gl_func_getloadavg_done = no
; then
20402 ac_fn_c_check_header_mongrel
"$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
20403 if test "x$ac_cv_header_sys_dg_sys_info_h" = x
""yes; then :
20404 gl_func_getloadavg_done
=yes
20406 $as_echo "#define DGUX 1" >>confdefs.h
20408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5
20409 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
20410 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then :
20411 $as_echo_n "(cached) " >&6
20413 ac_check_lib_save_LIBS
=$LIBS
20415 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20416 /* end confdefs.h. */
20418 /* Override any GCC internal prototype to avoid an error.
20419 Use char because int might match the return type of a GCC
20420 builtin and then its argument prototype would still apply. */
20424 char dg_sys_info ();
20428 return dg_sys_info ();
20433 if ac_fn_c_try_link
"$LINENO"; then :
20434 ac_cv_lib_dgc_dg_sys_info
=yes
20436 ac_cv_lib_dgc_dg_sys_info
=no
20438 rm -f core conftest.err conftest.
$ac_objext \
20439 conftest
$ac_exeext conftest.
$ac_ext
20440 LIBS
=$ac_check_lib_save_LIBS
20442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5
20443 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
20444 if test "x$ac_cv_lib_dgc_dg_sys_info" = x
""yes; then :
20445 cat >>confdefs.h
<<_ACEOF
20446 #define HAVE_LIBDGC 1
20461 if test "x$gl_save_LIBS" = x
; then
20462 GETLOADAVG_LIBS
=$LIBS
20464 GETLOADAVG_LIBS
=`echo "$LIBS" | sed "s!$gl_save_LIBS!!"`
20469 # Test whether the system declares getloadavg. Solaris has the function
20470 # but declares it in <sys/loadavg.h>, not <stdlib.h>.
20471 for ac_header
in sys
/loadavg.h
20473 ac_fn_c_check_header_mongrel
"$LINENO" "sys/loadavg.h" "ac_cv_header_sys_loadavg_h" "$ac_includes_default"
20474 if test "x$ac_cv_header_sys_loadavg_h" = x
""yes; then :
20475 cat >>confdefs.h
<<_ACEOF
20476 #define HAVE_SYS_LOADAVG_H 1
20483 if test $ac_cv_header_sys_loadavg_h = yes; then
20484 HAVE_SYS_LOADAVG_H
=1
20486 HAVE_SYS_LOADAVG_H
=0
20488 ac_fn_c_check_decl
"$LINENO" "getloadavg" "ac_cv_have_decl_getloadavg" "#if HAVE_SYS_LOADAVG_H
20489 # include <sys/loadavg.h>
20491 #include <stdlib.h>
20493 if test "x$ac_cv_have_decl_getloadavg" = x
""yes; then :
20496 HAVE_DECL_GETLOADAVG
=0
20500 if test $HAVE_GETLOADAVG = 0; then
20509 gl_LIBOBJS
="$gl_LIBOBJS getloadavg.$ac_objext"
20512 # Figure out what our getloadavg.c needs.
20516 # On HPUX9, an unprivileged user can get load averages this way.
20517 if test $gl_func_getloadavg_done = no
; then
20518 for ac_func
in pstat_getdynamic
20520 ac_fn_c_check_func
"$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic"
20521 if test "x$ac_cv_func_pstat_getdynamic" = x
""yes; then :
20522 cat >>confdefs.h
<<_ACEOF
20523 #define HAVE_PSTAT_GETDYNAMIC 1
20525 gl_func_getloadavg_done
=yes
20531 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
20532 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
20533 # Irix 4.0.5F has the header but not the library.
20534 if test $gl_func_getloadavg_done = no
&& test "$ac_cv_lib_elf_elf_begin" = yes \
20535 && test "$ac_cv_lib_kvm_kvm_open" = yes; then
20536 gl_func_getloadavg_done
=yes
20538 $as_echo "#define SVR4 1" >>confdefs.h
20542 if test $gl_func_getloadavg_done = no
; then
20543 ac_fn_c_check_header_mongrel
"$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default"
20544 if test "x$ac_cv_header_inq_stats_cpustats_h" = x
""yes; then :
20545 gl_func_getloadavg_done
=yes
20547 $as_echo "#define UMAX 1" >>confdefs.h
20550 $as_echo "#define UMAX4_3 1" >>confdefs.h
20557 if test $gl_func_getloadavg_done = no
; then
20558 ac_fn_c_check_header_mongrel
"$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default"
20559 if test "x$ac_cv_header_sys_cpustats_h" = x
""yes; then :
20560 gl_func_getloadavg_done
=yes; $as_echo "#define UMAX 1" >>confdefs.h
20567 if test $gl_func_getloadavg_done = no
; then
20568 for ac_header
in mach
/mach.h
20570 ac_fn_c_check_header_mongrel
"$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
20571 if test "x$ac_cv_header_mach_mach_h" = x
""yes; then :
20572 cat >>confdefs.h
<<_ACEOF
20573 #define HAVE_MACH_MACH_H 1
20582 for ac_header
in nlist.h
20584 ac_fn_c_check_header_mongrel
"$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
20585 if test "x$ac_cv_header_nlist_h" = x
""yes; then :
20586 cat >>confdefs.h
<<_ACEOF
20587 #define HAVE_NLIST_H 1
20589 ac_fn_c_check_member
"$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h>
20591 if test "x$ac_cv_member_struct_nlist_n_un_n_name" = x
""yes; then :
20593 cat >>confdefs.h
<<_ACEOF
20594 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
20600 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20601 /* end confdefs.h. */
20607 #ifdef HAVE_STRUCT_NLIST_N_UN_N_NAME
20608 x.n_un.n_name = "";
20616 if ac_fn_c_try_link
"$LINENO"; then :
20618 $as_echo "#define N_NAME_POINTER 1" >>confdefs.h
20621 rm -f core conftest.err conftest.
$ac_objext \
20622 conftest
$ac_exeext conftest.
$ac_ext
20634 GNULIB_GETLOADAVG
=1
20645 if test $REPLACE_GETOPT = 1; then
20654 gl_LIBOBJS
="$gl_LIBOBJS getopt.$ac_objext"
20664 gl_LIBOBJS
="$gl_LIBOBJS getopt1.$ac_objext"
20669 GNULIB_GL_UNISTD_H_GETOPT
=1
20679 if test -n "$gl_replace_getopt"; then
20683 if test $REPLACE_GETOPT = 1; then
20687 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
20693 if test $REPLACE_GETOPT = 1; then
20702 gl_LIBOBJS
="$gl_LIBOBJS getopt.$ac_objext"
20712 gl_LIBOBJS
="$gl_LIBOBJS getopt1.$ac_objext"
20717 GNULIB_GL_UNISTD_H_GETOPT
=1
20731 gl_gettimeofday_timezone
=void
20732 if test $ac_cv_func_gettimeofday != yes; then
20733 HAVE_GETTIMEOFDAY
=0
20738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday clobbers localtime buffer" >&5
20739 $as_echo_n "checking whether gettimeofday clobbers localtime buffer... " >&6; }
20740 if test "${gl_cv_func_gettimeofday_clobber+set}" = set; then :
20741 $as_echo_n "(cached) " >&6
20743 if test "$cross_compiling" = yes; then :
20744 # When cross-compiling:
20746 # Guess all is fine on glibc systems.
20747 *-gnu*) gl_cv_func_gettimeofday_clobber
="guessing no" ;;
20748 # If we don't know, assume the worst.
20749 *) gl_cv_func_gettimeofday_clobber
="guessing yes" ;;
20753 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20754 /* end confdefs.h. */
20755 #include <string.h>
20756 #include <sys/time.h>
20758 #include <stdlib.h>
20766 struct tm saved_lt;
20768 lt = localtime (&t);
20770 gettimeofday (&tv, NULL);
20771 return memcmp (lt, &saved_lt, sizeof (struct tm)) != 0;
20777 if ac_fn_c_try_run
"$LINENO"; then :
20778 gl_cv_func_gettimeofday_clobber
=no
20780 gl_cv_func_gettimeofday_clobber
=yes
20782 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20783 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_clobber" >&5
20788 $as_echo "$gl_cv_func_gettimeofday_clobber" >&6; }
20790 case "$gl_cv_func_gettimeofday_clobber" in
20792 REPLACE_GETTIMEOFDAY
=1
20795 $as_echo "#define gmtime rpl_gmtime" >>confdefs.h
20798 $as_echo "#define localtime rpl_localtime" >>confdefs.h
20802 $as_echo "#define GETTIMEOFDAY_CLOBBERS_LOCALTIME 1" >>confdefs.h
20807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettimeofday with POSIX signature" >&5
20808 $as_echo_n "checking for gettimeofday with POSIX signature... " >&6; }
20809 if test "${gl_cv_func_gettimeofday_posix_signature+set}" = set; then :
20810 $as_echo_n "(cached) " >&6
20812 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20813 /* end confdefs.h. */
20814 #include <sys/time.h>
20816 int gettimeofday (struct timeval *restrict, void *restrict);
20821 /* glibc uses struct timezone * rather than the POSIX void *
20822 if _GNU_SOURCE is defined. However, since the only portable
20823 use of gettimeofday uses NULL as the second parameter, and
20824 since the glibc definition is actually more typesafe, it is
20825 not worth wrapping this to get a compliant signature. */
20826 int (*f) (struct timeval *restrict, void *restrict)
20829 return !(x | c.tv_sec | c.tv_usec);
20835 if ac_fn_c_try_compile
"$LINENO"; then :
20836 gl_cv_func_gettimeofday_posix_signature
=yes
20838 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20839 /* end confdefs.h. */
20840 #include <sys/time.h>
20841 int gettimeofday (struct timeval *restrict, struct timezone *restrict);
20851 if ac_fn_c_try_compile
"$LINENO"; then :
20852 gl_cv_func_gettimeofday_posix_signature
=almost
20854 gl_cv_func_gettimeofday_posix_signature
=no
20856 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20858 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_posix_signature" >&5
20861 $as_echo "$gl_cv_func_gettimeofday_posix_signature" >&6; }
20862 if test $gl_cv_func_gettimeofday_posix_signature = almost
; then
20863 gl_gettimeofday_timezone
='struct timezone'
20864 elif test $gl_cv_func_gettimeofday_posix_signature != yes; then
20865 REPLACE_GETTIMEOFDAY
=1
20867 if test $REPLACE_STRUCT_TIMEVAL = 1; then
20868 REPLACE_GETTIMEOFDAY
=1
20873 cat >>confdefs.h
<<_ACEOF
20874 #define GETTIMEOFDAY_TIMEZONE $gl_gettimeofday_timezone
20878 if test $HAVE_GETTIMEOFDAY = 0 ||
test $REPLACE_GETTIMEOFDAY = 1; then
20887 gl_LIBOBJS
="$gl_LIBOBJS gettimeofday.$ac_objext"
20890 for ac_header
in sys
/timeb.h
20892 ac_fn_c_check_header_mongrel
"$LINENO" "sys/timeb.h" "ac_cv_header_sys_timeb_h" "$ac_includes_default"
20893 if test "x$ac_cv_header_sys_timeb_h" = x
""yes; then :
20894 cat >>confdefs.h
<<_ACEOF
20895 #define HAVE_SYS_TIMEB_H 1
20902 for ac_func
in _ftime
20904 ac_fn_c_check_func
"$LINENO" "_ftime" "ac_cv_func__ftime"
20905 if test "x$ac_cv_func__ftime" = x
""yes; then :
20906 cat >>confdefs.h
<<_ACEOF
20907 #define HAVE__FTIME 1
20920 GNULIB_GETTIMEOFDAY
=1
20931 if test $ac_cv_func_lstat = yes; then
20933 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
20942 if test $REPLACE_LSTAT = 1; then
20951 gl_LIBOBJS
="$gl_LIBOBJS lstat.$ac_objext"
20975 if test $APPLE_UNIVERSAL_BUILD = 1; then
20976 # A universal build on Apple Mac OS X platforms.
20977 # The test result would be 'yes' in 32-bit mode and 'no' in 64-bit mode.
20978 # But we need a configuration result that is valid in both modes.
20979 gl_cv_func_working_mktime
=no
20981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
20982 $as_echo_n "checking for working mktime... " >&6; }
20983 if test "${gl_cv_func_working_mktime+set}" = set; then :
20984 $as_echo_n "(cached) " >&6
20986 if test "$cross_compiling" = yes; then :
20987 gl_cv_func_working_mktime
=no
20989 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20990 /* end confdefs.h. */
20991 /* Test program from Paul Eggert and Tony Leneis. */
20992 #include <limits.h>
20993 #include <stdlib.h>
20996 #ifdef HAVE_UNISTD_H
20997 # include <unistd.h>
21001 # define alarm(X) /* empty */
21004 /* Work around redefinition to rpl_putenv by other config tests. */
21007 static time_t time_t_max;
21008 static time_t time_t_min;
21010 /* Values we'll use to set the TZ environment variable. */
21011 static char *tz_strings[] = {
21012 (char *) 0, "TZ=GMT0", "TZ=JST-9",
21013 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
21015 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
21017 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
21018 Based on a problem report from Andreas Jaeger. */
21020 spring_forward_gap ()
21022 /* glibc (up to about 1998-10-07) failed this test. */
21025 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
21026 instead of "TZ=America/Vancouver" in order to detect the bug even
21027 on systems that don't support the Olson extension, or don't have the
21028 full zoneinfo tables installed. */
21029 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
21038 return mktime (&tm) != (time_t) -1;
21042 mktime_test1 (time_t now)
21045 return ! (lt = localtime (&now)) || mktime (lt) == now;
21049 mktime_test (time_t now)
21051 return (mktime_test1 (now)
21052 && mktime_test1 ((time_t) (time_t_max - now))
21053 && mktime_test1 ((time_t) (time_t_min + now)));
21059 /* Based on code from Ariel Faigon. */
21069 return tm.tm_mon == 2 && tm.tm_mday == 31;
21073 bigtime_test (int j)
21077 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
21078 now = mktime (&tm);
21079 if (now != (time_t) -1)
21081 struct tm *lt = localtime (&now);
21083 && lt->tm_year == tm.tm_year
21084 && lt->tm_mon == tm.tm_mon
21085 && lt->tm_mday == tm.tm_mday
21086 && lt->tm_hour == tm.tm_hour
21087 && lt->tm_min == tm.tm_min
21088 && lt->tm_sec == tm.tm_sec
21089 && lt->tm_yday == tm.tm_yday
21090 && lt->tm_wday == tm.tm_wday
21091 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
21092 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
21101 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
21102 ignoring leap seconds. */
21103 unsigned long int answer = 2527315200UL;
21107 tm.tm_year = 2050 - 1900;
21110 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
21113 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
21114 instead of "TZ=America/Vancouver" in order to detect the bug even
21115 on systems that don't support the Olson extension, or don't have the
21116 full zoneinfo tables installed. */
21117 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
21121 /* Check that the result is either a failure, or close enough
21122 to the correct answer that we can assume the discrepancy is
21123 due to leap seconds. */
21124 return (t == (time_t) -1
21125 || (0 < t && answer - 120 <= t && t <= answer + 120));
21134 int time_t_signed_magnitude = (time_t) ~ (time_t) 0 < (time_t) -1;
21135 int time_t_signed = ! ((time_t) 0 < (time_t) -1);
21137 /* This test makes some buggy mktime implementations loop.
21138 Give up after 60 seconds; a mktime slower than that
21139 isn't worth using anyway. */
21142 time_t_max = (! time_t_signed
21144 : ((((time_t) 1 << (sizeof (time_t) * CHAR_BIT - 2)) - 1)
21146 time_t_min = (! time_t_signed
21148 : time_t_signed_magnitude
21152 delta = time_t_max / 997; /* a suitable prime number */
21153 for (i = 0; i < N_STRINGS; i++)
21156 putenv (tz_strings[i]);
21158 for (t = 0; t <= time_t_max - delta && (result & 1) == 0; t += delta)
21159 if (! mktime_test (t))
21161 if ((result & 2) == 0
21162 && ! (mktime_test ((time_t) 1)
21163 && mktime_test ((time_t) (60 * 60))
21164 && mktime_test ((time_t) (60 * 60 * 24))))
21167 for (j = 1; (result & 4) == 0; j <<= 1)
21169 if (! bigtime_test (j))
21171 if (INT_MAX / 2 < j)
21174 if ((result & 8) == 0 && ! bigtime_test (INT_MAX))
21177 if (! irix_6_4_bug ())
21179 if (! spring_forward_gap ())
21181 if (! year_2050_test ())
21186 if ac_fn_c_try_run
"$LINENO"; then :
21187 gl_cv_func_working_mktime
=yes
21189 gl_cv_func_working_mktime
=no
21191 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
21192 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_mktime" >&5
21198 $as_echo "$gl_cv_func_working_mktime" >&6; }
21200 if test $gl_cv_func_working_mktime = no
; then
21206 if test $REPLACE_MKTIME = 1; then
21215 gl_LIBOBJS
="$gl_LIBOBJS mktime.$ac_objext"
21236 if test $ac_cv_func_pselect = yes; then
21237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether signature of pselect conforms to POSIX" >&5
21238 $as_echo_n "checking whether signature of pselect conforms to POSIX... " >&6; }
21239 if test "${gl_cv_sig_pselect+set}" = set; then :
21240 $as_echo_n "(cached) " >&6
21242 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21243 /* end confdefs.h. */
21244 #include <sys/select.h>
21249 int (*p) (int, fd_set *, fd_set *, fd_set *restrict,
21250 struct timespec const *restrict,
21251 sigset_t const *restrict) = pselect;
21257 if ac_fn_c_try_link
"$LINENO"; then :
21258 gl_cv_sig_pselect
=yes
21260 gl_cv_sig_pselect
=no
21262 rm -f core conftest.err conftest.
$ac_objext \
21263 conftest
$ac_exeext conftest.
$ac_ext
21265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sig_pselect" >&5
21266 $as_echo "$gl_cv_sig_pselect" >&6; }
21269 if test $ac_cv_func_pselect = no ||
test $gl_cv_sig_pselect = no
; then
21273 if test $HAVE_PSELECT = 0 ||
test $REPLACE_PSELECT = 1; then
21282 gl_LIBOBJS
="$gl_LIBOBJS pselect.$ac_objext"
21300 LIB_PTHREAD_SIGMASK
=
21303 if test $ac_cv_func_pthread_sigmask = yes; then
21306 HAVE_PTHREAD_SIGMASK
=0
21307 REPLACE_PTHREAD_SIGMASK
=1
21313 if test $HAVE_PTHREAD_SIGMASK = 1; then
21316 if test -z "$LIB_PTHREAD_SIGMASK"; then
21317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask works without -lpthread" >&5
21318 $as_echo_n "checking whether pthread_sigmask works without -lpthread... " >&6; }
21319 if test "${gl_cv_func_pthread_sigmask_in_libc_works+set}" = set; then :
21320 $as_echo_n "(cached) " >&6
21323 if test "$cross_compiling" = yes; then :
21326 freebsd
* | hpux
* | solaris | solaris2.
[2-9]*)
21327 gl_cv_func_pthread_sigmask_in_libc_works
="guessing no";;
21329 gl_cv_func_pthread_sigmask_in_libc_works
="guessing yes";;
21333 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21334 /* end confdefs.h. */
21336 #include <pthread.h>
21337 #include <signal.h>
21338 #include <stddef.h>
21342 sigemptyset (&set);
21343 return pthread_sigmask (1729, &set, NULL) != 0;
21346 if ac_fn_c_try_run
"$LINENO"; then :
21347 gl_cv_func_pthread_sigmask_in_libc_works
=no
21349 gl_cv_func_pthread_sigmask_in_libc_works
=yes
21351 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
21352 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_in_libc_works" >&5
21358 $as_echo "$gl_cv_func_pthread_sigmask_in_libc_works" >&6; }
21359 case "$gl_cv_func_pthread_sigmask_in_libc_works" in
21361 REPLACE_PTHREAD_SIGMASK
=1
21363 $as_echo "#define PTHREAD_SIGMASK_INEFFECTIVE 1" >>confdefs.h
21369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask returns error numbers" >&5
21370 $as_echo_n "checking whether pthread_sigmask returns error numbers... " >&6; }
21371 if test "${gl_cv_func_pthread_sigmask_return_works+set}" = set; then :
21372 $as_echo_n "(cached) " >&6
21375 gl_save_LIBS
="$LIBS"
21376 LIBS
="$LIBS $LIB_PTHREAD_SIGMASK"
21377 if test "$cross_compiling" = yes; then :
21380 gl_cv_func_pthread_sigmask_return_works
="guessing no";;
21382 gl_cv_func_pthread_sigmask_return_works
="guessing yes";;
21386 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21387 /* end confdefs.h. */
21389 #include <pthread.h>
21390 #include <signal.h>
21391 #include <stddef.h>
21395 sigemptyset (&set);
21396 if (pthread_sigmask (1729, &set, NULL) == -1)
21401 if ac_fn_c_try_run
"$LINENO"; then :
21402 gl_cv_func_pthread_sigmask_return_works
=yes
21404 gl_cv_func_pthread_sigmask_return_works
=no
21406 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
21407 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21410 LIBS
="$gl_save_LIBS"
21413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_return_works" >&5
21414 $as_echo "$gl_cv_func_pthread_sigmask_return_works" >&6; }
21415 case "$gl_cv_func_pthread_sigmask_return_works" in
21417 REPLACE_PTHREAD_SIGMASK
=1
21419 $as_echo "#define PTHREAD_SIGMASK_FAILS_WITH_ERRNO 1" >>confdefs.h
21424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask unblocks signals correctly" >&5
21425 $as_echo_n "checking whether pthread_sigmask unblocks signals correctly... " >&6; }
21426 if test "${gl_cv_func_pthread_sigmask_unblock_works+set}" = set; then :
21427 $as_echo_n "(cached) " >&6
21432 gl_cv_func_pthread_sigmask_unblock_works
="guessing no";;
21434 gl_cv_func_pthread_sigmask_unblock_works
="guessing yes";;
21436 gl_save_LIBS
="$LIBS"
21437 LIBS
="$LIBS $LIBMULTITHREAD"
21438 if test "$cross_compiling" = yes; then :
21441 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21442 /* end confdefs.h. */
21444 #include <pthread.h>
21445 #include <signal.h>
21447 #include <stdlib.h>
21448 #include <unistd.h>
21449 static volatile int sigint_occurred;
21451 sigint_handler (int sig)
21458 int pid = getpid ();
21460 signal (SIGINT, sigint_handler);
21461 sigemptyset (&set);
21462 sigaddset (&set, SIGINT);
21463 if (!(pthread_sigmask (SIG_BLOCK, &set, NULL) == 0))
21465 sprintf (command, "sh -c 'sleep 1; kill -%d %d' &", SIGINT, pid);
21466 if (!(system (command) == 0))
21469 if (!(sigint_occurred == 0))
21471 if (!(pthread_sigmask (SIG_UNBLOCK, &set, NULL) == 0))
21473 if (!(sigint_occurred == 1)) /* This fails on IRIX. */
21478 if ac_fn_c_try_run
"$LINENO"; then :
21481 gl_cv_func_pthread_sigmask_unblock_works
=no
21483 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
21484 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21487 LIBS
="$gl_save_LIBS"
21490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_unblock_works" >&5
21491 $as_echo "$gl_cv_func_pthread_sigmask_unblock_works" >&6; }
21492 case "$gl_cv_func_pthread_sigmask_unblock_works" in
21494 REPLACE_PTHREAD_SIGMASK
=1
21496 $as_echo "#define PTHREAD_SIGMASK_UNBLOCK_BUG 1" >>confdefs.h
21502 if test $HAVE_PTHREAD_SIGMASK = 0 ||
test $REPLACE_PTHREAD_SIGMASK = 1; then
21511 gl_LIBOBJS
="$gl_LIBOBJS pthread_sigmask.$ac_objext"
21514 if test $HAVE_PTHREAD_SIGMASK = 1; then
21516 $as_echo "#define HAVE_PTHREAD_SIGMASK 1" >>confdefs.h
21526 GNULIB_PTHREAD_SIGMASK
=1
21535 if test $ac_cv_func_readlink = no
; then
21538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink signature is correct" >&5
21539 $as_echo_n "checking whether readlink signature is correct... " >&6; }
21540 if test "${gl_cv_decl_readlink_works+set}" = set; then :
21541 $as_echo_n "(cached) " >&6
21543 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21544 /* end confdefs.h. */
21545 #include <unistd.h>
21546 /* Cause compilation failure if original declaration has wrong type. */
21547 ssize_t readlink (const char *, char *, size_t);
21556 if ac_fn_c_try_compile
"$LINENO"; then :
21557 gl_cv_decl_readlink_works
=yes
21559 gl_cv_decl_readlink_works
=no
21561 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_readlink_works" >&5
21564 $as_echo "$gl_cv_decl_readlink_works" >&6; }
21565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink handles trailing slash correctly" >&5
21566 $as_echo_n "checking whether readlink handles trailing slash correctly... " >&6; }
21567 if test "${gl_cv_func_readlink_works+set}" = set; then :
21568 $as_echo_n "(cached) " >&6
21570 # We have readlink, so assume ln -s works.
21571 ln -s conftest.no-such conftest.link
21572 ln -s conftest.link conftest.lnk2
21573 if test "$cross_compiling" = yes; then :
21575 # Guess yes on glibc systems.
21576 *-gnu*) gl_cv_func_readlink_works
="guessing yes" ;;
21577 # If we don't know, assume the worst.
21578 *) gl_cv_func_readlink_works
="guessing no" ;;
21582 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21583 /* end confdefs.h. */
21584 #include <unistd.h>
21590 return readlink ("conftest.lnk2/", buf, sizeof buf) != -1;
21595 if ac_fn_c_try_run
"$LINENO"; then :
21596 gl_cv_func_readlink_works
=yes
21598 gl_cv_func_readlink_works
=no
21600 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
21601 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21604 rm -f conftest.link conftest.lnk2
21606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_readlink_works" >&5
21607 $as_echo "$gl_cv_func_readlink_works" >&6; }
21608 case "$gl_cv_func_readlink_works" in
21610 if test "$gl_cv_decl_readlink_works" != yes; then
21616 $as_echo "#define READLINK_TRAILING_SLASH_BUG 1" >>confdefs.h
21623 if test $HAVE_READLINK = 0 ||
test $REPLACE_READLINK = 1; then
21632 gl_LIBOBJS
="$gl_LIBOBJS readlink.$ac_objext"
21660 if test $gl_cv_have_include_next = yes; then
21661 gl_cv_next_signal_h
='<'signal.h
'>'
21663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <signal.h>" >&5
21664 $as_echo_n "checking absolute name of <signal.h>... " >&6; }
21665 if test "${gl_cv_next_signal_h+set}" = set; then :
21666 $as_echo_n "(cached) " >&6
21669 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21670 /* end confdefs.h. */
21671 #include <signal.h>
21675 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
21676 *) gl_absname_cpp
="$ac_cpp" ;;
21681 gl_dirsep_regex
='[/\\]'
21684 gl_dirsep_regex
='\/'
21687 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
21689 gl_header_literal_regex
=`echo 'signal.h' \
21690 | sed -e "$gl_make_literal_regex_sed"`
21691 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
21692 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
21697 gl_cv_next_signal_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21698 sed -n "$gl_absolute_header_sed"`'"'
21702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_signal_h" >&5
21703 $as_echo "$gl_cv_next_signal_h" >&6; }
21705 NEXT_SIGNAL_H
=$gl_cv_next_signal_h
21707 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
21708 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21709 gl_next_as_first_directive
='<'signal.h
'>'
21711 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21712 gl_next_as_first_directive
=$gl_cv_next_signal_h
21714 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H
=$gl_next_as_first_directive
21720 # AIX declares sig_atomic_t to already include volatile, and C89 compilers
21721 # then choke on 'volatile sig_atomic_t'. C99 requires that it compile.
21722 ac_fn_c_check_type
"$LINENO" "volatile sig_atomic_t" "ac_cv_type_volatile_sig_atomic_t" "
21723 #include <signal.h>
21726 if test "x$ac_cv_type_volatile_sig_atomic_t" = x
""yes; then :
21729 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
=0
21738 ac_fn_c_check_type
"$LINENO" "sighandler_t" "ac_cv_type_sighandler_t" "
21739 #include <signal.h>
21742 if test "x$ac_cv_type_sighandler_t" = x
""yes; then :
21745 HAVE_SIGHANDLER_T
=0
21751 ac_fn_c_check_type
"$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
21752 /* <sys/types.h> is not needed according to POSIX, but the
21753 <sys/socket.h> in i386-unknown-freebsd4.10 and
21754 powerpc-apple-darwin5.5 required it. */
21755 #include <sys/types.h>
21756 #if HAVE_SYS_SOCKET_H
21757 # include <sys/socket.h>
21758 #elif HAVE_WS2TCPIP_H
21759 # include <ws2tcpip.h>
21763 if test "x$ac_cv_type_socklen_t" = x
""yes; then :
21766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
21767 $as_echo_n "checking for socklen_t equivalent... " >&6; }
21768 if test "${gl_cv_socklen_t_equiv+set}" = set; then :
21769 $as_echo_n "(cached) " >&6
21771 # Systems have either "struct sockaddr *" or
21772 # "void *" as the second argument to getpeername
21773 gl_cv_socklen_t_equiv
=
21774 for arg2
in "struct sockaddr" void
; do
21775 for t
in int size_t
"unsigned int" "long int" "unsigned long int"; do
21776 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21777 /* end confdefs.h. */
21778 #include <sys/types.h>
21779 #include <sys/socket.h>
21781 int getpeername (int, $arg2 *, $t *);
21786 getpeername (0, 0, &len);
21791 if ac_fn_c_try_compile
"$LINENO"; then :
21792 gl_cv_socklen_t_equiv
="$t"
21794 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21795 test "$gl_cv_socklen_t_equiv" != "" && break
21797 test "$gl_cv_socklen_t_equiv" != "" && break
21802 if test "$gl_cv_socklen_t_equiv" = ""; then
21803 as_fn_error
"Cannot find a type to use in place of socklen_t" "$LINENO" 5
21805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socklen_t_equiv" >&5
21806 $as_echo "$gl_cv_socklen_t_equiv" >&6; }
21808 cat >>confdefs.h
<<_ACEOF
21809 #define socklen_t $gl_cv_socklen_t_equiv
21815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
21816 $as_echo_n "checking for ssize_t... " >&6; }
21817 if test "${gt_cv_ssize_t+set}" = set; then :
21818 $as_echo_n "(cached) " >&6
21820 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21821 /* end confdefs.h. */
21822 #include <sys/types.h>
21826 int x = sizeof (ssize_t *) + sizeof (ssize_t);
21832 if ac_fn_c_try_compile
"$LINENO"; then :
21837 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
21840 $as_echo "$gt_cv_ssize_t" >&6; }
21841 if test $gt_cv_ssize_t = no
; then
21843 $as_echo "#define ssize_t int" >>confdefs.h
21851 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>
21852 #include <sys/stat.h>
21854 if test "x$ac_cv_member_struct_stat_st_atim_tv_nsec" = x
""yes; then :
21856 cat >>confdefs.h
<<_ACEOF
21857 #define HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC 1
21860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat.st_atim is of type struct timespec" >&5
21861 $as_echo_n "checking whether struct stat.st_atim is of type struct timespec... " >&6; }
21862 if test "${ac_cv_typeof_struct_stat_st_atim_is_struct_timespec+set}" = set; then :
21863 $as_echo_n "(cached) " >&6
21865 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21866 /* end confdefs.h. */
21868 #include <sys/types.h>
21869 #include <sys/stat.h>
21870 #if HAVE_SYS_TIME_H
21871 # include <sys/time.h>
21874 struct timespec ts;
21887 if ac_fn_c_try_compile
"$LINENO"; then :
21888 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec
=yes
21890 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec
=no
21892 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&5
21895 $as_echo "$ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&6; }
21896 if test $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec = yes; then
21898 $as_echo "#define TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC 1" >>confdefs.h
21902 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>
21903 #include <sys/stat.h>
21905 if test "x$ac_cv_member_struct_stat_st_atimespec_tv_nsec" = x
""yes; then :
21907 cat >>confdefs.h
<<_ACEOF
21908 #define HAVE_STRUCT_STAT_ST_ATIMESPEC_TV_NSEC 1
21913 ac_fn_c_check_member
"$LINENO" "struct stat" "st_atimensec" "ac_cv_member_struct_stat_st_atimensec" "#include <sys/types.h>
21914 #include <sys/stat.h>
21916 if test "x$ac_cv_member_struct_stat_st_atimensec" = x
""yes; then :
21918 cat >>confdefs.h
<<_ACEOF
21919 #define HAVE_STRUCT_STAT_ST_ATIMENSEC 1
21924 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>
21925 #include <sys/stat.h>
21927 if test "x$ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" = x
""yes; then :
21929 cat >>confdefs.h
<<_ACEOF
21930 #define HAVE_STRUCT_STAT_ST_ATIM_ST__TIM_TV_NSEC 1
21946 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>
21947 #include <sys/stat.h>
21949 if test "x$ac_cv_member_struct_stat_st_birthtimespec_tv_nsec" = x
""yes; then :
21951 cat >>confdefs.h
<<_ACEOF
21952 #define HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC_TV_NSEC 1
21957 ac_fn_c_check_member
"$LINENO" "struct stat" "st_birthtimensec" "ac_cv_member_struct_stat_st_birthtimensec" "#include <sys/types.h>
21958 #include <sys/stat.h>
21960 if test "x$ac_cv_member_struct_stat_st_birthtimensec" = x
""yes; then :
21962 cat >>confdefs.h
<<_ACEOF
21963 #define HAVE_STRUCT_STAT_ST_BIRTHTIMENSEC 1
21968 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>
21969 #include <sys/stat.h>
21971 if test "x$ac_cv_member_struct_stat_st_birthtim_tv_nsec" = x
""yes; then :
21973 cat >>confdefs.h
<<_ACEOF
21974 #define HAVE_STRUCT_STAT_ST_BIRTHTIM_TV_NSEC 1
21986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working stdalign.h" >&5
21987 $as_echo_n "checking for working stdalign.h... " >&6; }
21988 if test "${gl_cv_header_working_stdalign_h+set}" = set; then :
21989 $as_echo_n "(cached) " >&6
21991 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21992 /* end confdefs.h. */
21993 #include <stdalign.h>
21994 #include <stddef.h>
21996 /* Test that alignof yields a result consistent with offsetof.
21997 This catches GCC bug 52023
21998 <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023>. */
22000 template <class t> struct alignof_helper { char a; t b; };
22001 # define ao(type) offsetof (alignof_helper<type>, b)
22003 # define ao(type) offsetof (struct { char a; type b; }, b)
22005 char test_double[ao (double) % _Alignof (double) == 0 ? 1 : -1];
22006 char test_long[ao (long int) % _Alignof (long int) == 0 ? 1 : -1];
22007 char test_alignof[alignof (double) == _Alignof (double) ? 1 : -1];
22009 /* Test _Alignas only on platforms where gnulib can help. */
22011 (__GNUC__ || __IBMC__ || __IBMCPP__ \
22012 || 0x5110 <= __SUNPRO_C || 1300 <= _MSC_VER)
22013 int alignas (8) alignas_int = 1;
22014 char test_alignas[_Alignof (alignas_int) == 8 ? 1 : -1];
22025 if ac_fn_c_try_compile
"$LINENO"; then :
22026 gl_cv_header_working_stdalign_h
=yes
22028 gl_cv_header_working_stdalign_h
=no
22030 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdalign_h" >&5
22033 $as_echo "$gl_cv_header_working_stdalign_h" >&6; }
22035 if test $gl_cv_header_working_stdalign_h = yes; then
22038 STDALIGN_H
='stdalign.h'
22042 if test -n "$STDALIGN_H"; then
22043 GL_GENERATE_STDALIGN_H_TRUE
=
22044 GL_GENERATE_STDALIGN_H_FALSE
='#'
22046 GL_GENERATE_STDALIGN_H_TRUE
='#'
22047 GL_GENERATE_STDALIGN_H_FALSE
=
22053 NEXT_STDARG_H
='<stdarg.h>'
22054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
22055 $as_echo_n "checking for va_copy... " >&6; }
22056 if test "${gl_cv_func_va_copy+set}" = set; then :
22057 $as_echo_n "(cached) " >&6
22060 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22061 /* end confdefs.h. */
22062 #include <stdarg.h>
22068 void (*func) (va_list, va_list) = va_copy;
22075 if ac_fn_c_try_compile
"$LINENO"; then :
22076 gl_cv_func_va_copy
=yes
22078 gl_cv_func_va_copy
=no
22080 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_va_copy" >&5
22084 $as_echo "$gl_cv_func_va_copy" >&6; }
22085 if test $gl_cv_func_va_copy = no
; then
22086 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22087 /* end confdefs.h. */
22088 #if defined _AIX && !defined __GNUC__
22093 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22094 $EGREP "vaccine" >/dev
/null
2>&1; then :
22101 if test $gl_aixcc = yes; then
22111 if test $gl_cv_have_include_next = yes; then
22112 gl_cv_next_stdarg_h
='<'stdarg.h
'>'
22114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdarg.h>" >&5
22115 $as_echo_n "checking absolute name of <stdarg.h>... " >&6; }
22116 if test "${gl_cv_next_stdarg_h+set}" = set; then :
22117 $as_echo_n "(cached) " >&6
22120 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22121 /* end confdefs.h. */
22122 #include <stdarg.h>
22126 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
22127 *) gl_absname_cpp
="$ac_cpp" ;;
22132 gl_dirsep_regex
='[/\\]'
22135 gl_dirsep_regex
='\/'
22138 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
22140 gl_header_literal_regex
=`echo 'stdarg.h' \
22141 | sed -e "$gl_make_literal_regex_sed"`
22142 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22143 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22148 gl_cv_next_stdarg_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22149 sed -n "$gl_absolute_header_sed"`'"'
22153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdarg_h" >&5
22154 $as_echo "$gl_cv_next_stdarg_h" >&6; }
22156 NEXT_STDARG_H
=$gl_cv_next_stdarg_h
22158 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
22159 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22160 gl_next_as_first_directive
='<'stdarg.h
'>'
22162 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22163 gl_next_as_first_directive
=$gl_cv_next_stdarg_h
22165 NEXT_AS_FIRST_DIRECTIVE_STDARG_H
=$gl_next_as_first_directive
22170 if test "$gl_cv_next_stdarg_h" = '""'; then
22171 gl_cv_next_stdarg_h
='"///usr/include/stdarg.h"'
22172 NEXT_STDARG_H
="$gl_cv_next_stdarg_h"
22176 saved_as_echo_n
="$as_echo_n"
22178 if test "${gl_cv_func___va_copy+set}" = set; then :
22179 $as_echo_n "(cached) " >&6
22182 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22183 /* end confdefs.h. */
22184 #include <stdarg.h>
22197 if ac_fn_c_try_compile
"$LINENO"; then :
22198 gl_cv_func___va_copy
=yes
22200 gl_cv_func___va_copy
=no
22202 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22205 as_echo_n
="$saved_as_echo_n"
22207 if test $gl_cv_func___va_copy = yes; then
22209 $as_echo "#define va_copy __va_copy" >>confdefs.h
22214 $as_echo "#define va_copy gl_va_copy" >>confdefs.h
22220 if test -n "$STDARG_H"; then
22221 GL_GENERATE_STDARG_H_TRUE
=
22222 GL_GENERATE_STDARG_H_FALSE
='#'
22224 GL_GENERATE_STDARG_H_TRUE
='#'
22225 GL_GENERATE_STDARG_H_FALSE
=
22233 # Define two additional variables used in the Makefile substitution.
22235 if test "$ac_cv_header_stdbool_h" = yes; then
22238 STDBOOL_H
='stdbool.h'
22241 if test -n "$STDBOOL_H"; then
22242 GL_GENERATE_STDBOOL_H_TRUE
=
22243 GL_GENERATE_STDBOOL_H_FALSE
='#'
22245 GL_GENERATE_STDBOOL_H_TRUE
='#'
22246 GL_GENERATE_STDBOOL_H_FALSE
=
22250 if test "$ac_cv_type__Bool" = yes; then
22261 if test $gt_cv_c_wchar_t = no
; then
22265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
22266 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
22267 if test "${gl_cv_decl_null_works+set}" = set; then :
22268 $as_echo_n "(cached) " >&6
22270 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22271 /* end confdefs.h. */
22272 #include <stddef.h>
22273 int test[2 * (sizeof NULL == sizeof (void *)) -1];
22283 if ac_fn_c_try_compile
"$LINENO"; then :
22284 gl_cv_decl_null_works
=yes
22286 gl_cv_decl_null_works
=no
22288 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
22291 $as_echo "$gl_cv_decl_null_works" >&6; }
22292 if test $gl_cv_decl_null_works = no
; then
22297 if test -n "$STDDEF_H"; then
22298 GL_GENERATE_STDDEF_H_TRUE
=
22299 GL_GENERATE_STDDEF_H_FALSE
='#'
22301 GL_GENERATE_STDDEF_H_TRUE
='#'
22302 GL_GENERATE_STDDEF_H_FALSE
=
22305 if test -n "$STDDEF_H"; then
22314 if test $gl_cv_have_include_next = yes; then
22315 gl_cv_next_stddef_h
='<'stddef.h
'>'
22317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
22318 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
22319 if test "${gl_cv_next_stddef_h+set}" = set; then :
22320 $as_echo_n "(cached) " >&6
22323 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22324 /* end confdefs.h. */
22325 #include <stddef.h>
22329 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
22330 *) gl_absname_cpp
="$ac_cpp" ;;
22335 gl_dirsep_regex
='[/\\]'
22338 gl_dirsep_regex
='\/'
22341 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
22343 gl_header_literal_regex
=`echo 'stddef.h' \
22344 | sed -e "$gl_make_literal_regex_sed"`
22345 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22346 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22351 gl_cv_next_stddef_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22352 sed -n "$gl_absolute_header_sed"`'"'
22356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
22357 $as_echo "$gl_cv_next_stddef_h" >&6; }
22359 NEXT_STDDEF_H
=$gl_cv_next_stddef_h
22361 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
22362 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22363 gl_next_as_first_directive
='<'stddef.h
'>'
22365 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22366 gl_next_as_first_directive
=$gl_cv_next_stddef_h
22368 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
=$gl_next_as_first_directive
22387 if test $gl_cv_have_include_next = yes; then
22388 gl_cv_next_stdio_h
='<'stdio.h
'>'
22390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
22391 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
22392 if test "${gl_cv_next_stdio_h+set}" = set; then :
22393 $as_echo_n "(cached) " >&6
22396 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22397 /* end confdefs.h. */
22402 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
22403 *) gl_absname_cpp
="$ac_cpp" ;;
22408 gl_dirsep_regex
='[/\\]'
22411 gl_dirsep_regex
='\/'
22414 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
22416 gl_header_literal_regex
=`echo 'stdio.h' \
22417 | sed -e "$gl_make_literal_regex_sed"`
22418 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22419 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22424 gl_cv_next_stdio_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22425 sed -n "$gl_absolute_header_sed"`'"'
22429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
22430 $as_echo "$gl_cv_next_stdio_h" >&6; }
22432 NEXT_STDIO_H
=$gl_cv_next_stdio_h
22434 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
22435 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22436 gl_next_as_first_directive
='<'stdio.h
'>'
22438 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22439 gl_next_as_first_directive
=$gl_cv_next_stdio_h
22441 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
=$gl_next_as_first_directive
22450 cat >>confdefs.h
<<_ACEOF
22451 #define GNULIB_FSCANF 1
22458 cat >>confdefs.h
<<_ACEOF
22459 #define GNULIB_SCANF 1
22495 if test $gl_cv_have_include_next = yes; then
22496 gl_cv_next_stdlib_h
='<'stdlib.h
'>'
22498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
22499 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
22500 if test "${gl_cv_next_stdlib_h+set}" = set; then :
22501 $as_echo_n "(cached) " >&6
22504 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22505 /* end confdefs.h. */
22506 #include <stdlib.h>
22510 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
22511 *) gl_absname_cpp
="$ac_cpp" ;;
22516 gl_dirsep_regex
='[/\\]'
22519 gl_dirsep_regex
='\/'
22522 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
22524 gl_header_literal_regex
=`echo 'stdlib.h' \
22525 | sed -e "$gl_make_literal_regex_sed"`
22526 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22527 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22532 gl_cv_next_stdlib_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22533 sed -n "$gl_absolute_header_sed"`'"'
22537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
22538 $as_echo "$gl_cv_next_stdlib_h" >&6; }
22540 NEXT_STDLIB_H
=$gl_cv_next_stdlib_h
22542 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
22543 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22544 gl_next_as_first_directive
='<'stdlib.h
'>'
22546 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22547 gl_next_as_first_directive
=$gl_cv_next_stdlib_h
22549 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
=$gl_next_as_first_directive
22559 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
22567 $as_echo "#define my_strftime nstrftime" >>confdefs.h
22576 if test "$ac_cv_have_decl_strtoimax" != yes; then
22577 HAVE_DECL_STRTOIMAX
=0
22580 if test $ac_cv_func_strtoimax = yes; then
22582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtoimax works" >&5
22583 $as_echo_n "checking whether strtoimax works... " >&6; }
22584 if test "${gl_cv_func_strtoimax+set}" = set; then :
22585 $as_echo_n "(cached) " >&6
22587 if test "$cross_compiling" = yes; then :
22589 # Guess no on AIX 5.
22590 aix5
*) gl_cv_func_strtoimax
="guessing no" ;;
22591 # Guess yes otherwise.
22592 *) gl_cv_func_strtoimax
="guessing yes" ;;
22596 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22597 /* end confdefs.h. */
22600 #include <string.h>
22601 #include <inttypes.h>
22604 if (sizeof (intmax_t) > sizeof (int))
22606 const char *s = "4294967295";
22610 res = strtoimax (s, &p, 10);
22611 if (p != s + strlen (s))
22615 if (res != (intmax_t) 65535 * (intmax_t) 65537)
22620 const char *s = "2147483647";
22624 res = strtoimax (s, &p, 10);
22625 if (p != s + strlen (s))
22629 if (res != 2147483647)
22636 if ac_fn_c_try_run
"$LINENO"; then :
22637 gl_cv_func_strtoimax
=yes
22639 gl_cv_func_strtoimax
=no
22641 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22642 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strtoimax" >&5
22648 $as_echo "$gl_cv_func_strtoimax" >&6; }
22649 case "$gl_cv_func_strtoimax" in
22650 *no
) REPLACE_STRTOIMAX
=1 ;;
22656 if test $HAVE_STRTOIMAX = 0 ||
test $REPLACE_STRTOIMAX = 1; then
22665 gl_LIBOBJS
="$gl_LIBOBJS strtoimax.$ac_objext"
22668 ac_fn_c_check_decl
"$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
22669 if test "x$ac_cv_have_decl_strtoll" = x
""yes; then :
22675 cat >>confdefs.h
<<_ACEOF
22676 #define HAVE_DECL_STRTOLL $ac_have_decl
22697 if test "$ac_cv_have_decl_strtoumax" != yes; then
22698 HAVE_DECL_STRTOUMAX
=0
22701 if test $ac_cv_func_strtoumax = no
; then
22710 gl_LIBOBJS
="$gl_LIBOBJS strtoumax.$ac_objext"
22713 ac_fn_c_check_decl
"$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
22714 if test "x$ac_cv_have_decl_strtoull" = x
""yes; then :
22720 cat >>confdefs.h
<<_ACEOF
22721 #define HAVE_DECL_STRTOULL $ac_have_decl
22740 if test $ac_cv_func_symlink = no
; then
22743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symlink handles trailing slash correctly" >&5
22744 $as_echo_n "checking whether symlink handles trailing slash correctly... " >&6; }
22745 if test "${gl_cv_func_symlink_works+set}" = set; then :
22746 $as_echo_n "(cached) " >&6
22748 if test "$cross_compiling" = yes; then :
22750 # Guess yes on glibc systems.
22751 *-gnu*) gl_cv_func_symlink_works
="guessing yes" ;;
22752 # If we don't know, assume the worst.
22753 *) gl_cv_func_symlink_works
="guessing no" ;;
22757 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22758 /* end confdefs.h. */
22759 #include <unistd.h>
22765 if (!symlink ("a", "conftest.link/"))
22767 if (symlink ("conftest.f", "conftest.lnk2"))
22769 else if (!symlink ("a", "conftest.lnk2/"))
22777 if ac_fn_c_try_run
"$LINENO"; then :
22778 gl_cv_func_symlink_works
=yes
22780 gl_cv_func_symlink_works
=no
22782 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22783 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22786 rm -f conftest.f conftest.link conftest.lnk2
22788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_symlink_works" >&5
22789 $as_echo "$gl_cv_func_symlink_works" >&6; }
22790 case "$gl_cv_func_symlink_works" in
22798 if test $HAVE_SYMLINK = 0 ||
test $REPLACE_SYMLINK = 1; then
22807 gl_LIBOBJS
="$gl_LIBOBJS symlink.$ac_objext"
22824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/select.h> is self-contained" >&5
22825 $as_echo_n "checking whether <sys/select.h> is self-contained... " >&6; }
22826 if test "${gl_cv_header_sys_select_h_selfcontained+set}" = set; then :
22827 $as_echo_n "(cached) " >&6
22830 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22831 /* end confdefs.h. */
22832 #include <sys/select.h>
22841 if ac_fn_c_try_compile
"$LINENO"; then :
22842 gl_cv_header_sys_select_h_selfcontained
=yes
22844 gl_cv_header_sys_select_h_selfcontained
=no
22846 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22847 if test $gl_cv_header_sys_select_h_selfcontained = yes; then
22848 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22849 /* end confdefs.h. */
22850 #include <sys/select.h>
22854 int memset; int bzero;
22860 if ac_fn_c_try_compile
"$LINENO"; then :
22861 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22862 /* end confdefs.h. */
22863 #include <sys/select.h>
22869 #define memset nonexistent_memset
22874 void *memset (void *, int, unsigned long);
22876 #define bzero nonexistent_bzero
22881 void bzero (void *, unsigned long);
22890 if ac_fn_c_try_link
"$LINENO"; then :
22893 gl_cv_header_sys_select_h_selfcontained
=no
22895 rm -f core conftest.err conftest.
$ac_objext \
22896 conftest
$ac_exeext conftest.
$ac_ext
22899 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_select_h_selfcontained" >&5
22904 $as_echo "$gl_cv_header_sys_select_h_selfcontained" >&6; }
22914 if test $gl_cv_have_include_next = yes; then
22915 gl_cv_next_sys_select_h
='<'sys
/select.h
'>'
22917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/select.h>" >&5
22918 $as_echo_n "checking absolute name of <sys/select.h>... " >&6; }
22919 if test "${gl_cv_next_sys_select_h+set}" = set; then :
22920 $as_echo_n "(cached) " >&6
22923 if test $ac_cv_header_sys_select_h = yes; then
22926 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22927 /* end confdefs.h. */
22928 #include <sys/select.h>
22932 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
22933 *) gl_absname_cpp
="$ac_cpp" ;;
22938 gl_dirsep_regex
='[/\\]'
22941 gl_dirsep_regex
='\/'
22944 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
22946 gl_header_literal_regex
=`echo 'sys/select.h' \
22947 | sed -e "$gl_make_literal_regex_sed"`
22948 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22949 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22954 gl_cv_next_sys_select_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22955 sed -n "$gl_absolute_header_sed"`'"'
22957 gl_cv_next_sys_select_h
='<'sys
/select.h
'>'
22962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_select_h" >&5
22963 $as_echo "$gl_cv_next_sys_select_h" >&6; }
22965 NEXT_SYS_SELECT_H
=$gl_cv_next_sys_select_h
22967 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
22968 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22969 gl_next_as_first_directive
='<'sys
/select.h
'>'
22971 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22972 gl_next_as_first_directive
=$gl_cv_next_sys_select_h
22974 NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H
=$gl_next_as_first_directive
22979 if test $ac_cv_header_sys_select_h = yes; then
22980 HAVE_SYS_SELECT_H
=1
22982 HAVE_SYS_SELECT_H
=0
22989 if test $ac_cv_header_sys_socket_h != yes; then
22990 for ac_header
in winsock2.h
22992 ac_fn_c_check_header_mongrel
"$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
22993 if test "x$ac_cv_header_winsock2_h" = x
""yes; then :
22994 cat >>confdefs.h
<<_ACEOF
22995 #define HAVE_WINSOCK2_H 1
23003 if test "$ac_cv_header_winsock2_h" = yes; then
23005 UNISTD_H_HAVE_WINSOCK2_H
=1
23006 SYS_IOCTL_H_HAVE_WINSOCK2_H
=1
23032 if test $gl_cv_have_include_next = yes; then
23033 gl_cv_next_sys_stat_h
='<'sys
/stat.h
'>'
23035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
23036 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
23037 if test "${gl_cv_next_sys_stat_h+set}" = set; then :
23038 $as_echo_n "(cached) " >&6
23041 if test $ac_cv_header_sys_stat_h = yes; then
23044 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23045 /* end confdefs.h. */
23046 #include <sys/stat.h>
23050 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
23051 *) gl_absname_cpp
="$ac_cpp" ;;
23056 gl_dirsep_regex
='[/\\]'
23059 gl_dirsep_regex
='\/'
23062 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
23064 gl_header_literal_regex
=`echo 'sys/stat.h' \
23065 | sed -e "$gl_make_literal_regex_sed"`
23066 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23067 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23072 gl_cv_next_sys_stat_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23073 sed -n "$gl_absolute_header_sed"`'"'
23075 gl_cv_next_sys_stat_h
='<'sys
/stat.h
'>'
23080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
23081 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
23083 NEXT_SYS_STAT_H
=$gl_cv_next_sys_stat_h
23085 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
23086 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23087 gl_next_as_first_directive
='<'sys
/stat.h
'>'
23089 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23090 gl_next_as_first_directive
=$gl_cv_next_sys_stat_h
23092 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
=$gl_next_as_first_directive
23104 if test $WINDOWS_64_BIT_ST_SIZE = 1; then
23106 $as_echo "#define _GL_WINDOWS_64_BIT_ST_SIZE 1" >>confdefs.h
23110 ac_fn_c_check_type
"$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
23111 #include <sys/stat.h>
23113 if test "x$ac_cv_type_nlink_t" = x
""yes; then :
23117 $as_echo "#define nlink_t int" >>confdefs.h
23138 ac_fn_c_check_decl
"$LINENO" "localtime_r" "ac_cv_have_decl_localtime_r" "#include <time.h>
23140 if test "x$ac_cv_have_decl_localtime_r" = x
""yes; then :
23146 cat >>confdefs.h
<<_ACEOF
23147 #define HAVE_DECL_LOCALTIME_R $ac_have_decl
23150 if test $ac_cv_have_decl_localtime_r = no
; then
23151 HAVE_DECL_LOCALTIME_R
=0
23155 if test $ac_cv_func_localtime_r = yes; then
23157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime_r is compatible with its POSIX signature" >&5
23158 $as_echo_n "checking whether localtime_r is compatible with its POSIX signature... " >&6; }
23159 if test "${gl_cv_time_r_posix+set}" = set; then :
23160 $as_echo_n "(cached) " >&6
23162 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23163 /* end confdefs.h. */
23168 /* We don't need to append 'restrict's to the argument types,
23169 even though the POSIX signature has the 'restrict's,
23170 since C99 says they can't affect type compatibility. */
23171 struct tm * (*ptr) (time_t const *, struct tm *) = localtime_r;
23173 /* Check the return type is a pointer.
23174 On HP-UX 10 it is 'int'. */
23175 *localtime_r (0, 0);
23181 if ac_fn_c_try_compile
"$LINENO"; then :
23182 gl_cv_time_r_posix
=yes
23184 gl_cv_time_r_posix
=no
23186 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_time_r_posix" >&5
23190 $as_echo "$gl_cv_time_r_posix" >&6; }
23191 if test $gl_cv_time_r_posix = yes; then
23192 REPLACE_LOCALTIME_R
=0
23194 REPLACE_LOCALTIME_R
=1
23200 if test $HAVE_LOCALTIME_R = 0 ||
test $REPLACE_LOCALTIME_R = 1; then
23209 gl_LIBOBJS
="$gl_LIBOBJS time_r.$ac_objext"
23240 if test $gl_cv_have_include_next = yes; then
23241 gl_cv_next_unistd_h
='<'unistd.h
'>'
23243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
23244 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
23245 if test "${gl_cv_next_unistd_h+set}" = set; then :
23246 $as_echo_n "(cached) " >&6
23249 if test $ac_cv_header_unistd_h = yes; then
23252 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23253 /* end confdefs.h. */
23254 #include <unistd.h>
23258 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
23259 *) gl_absname_cpp
="$ac_cpp" ;;
23264 gl_dirsep_regex
='[/\\]'
23267 gl_dirsep_regex
='\/'
23270 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
23272 gl_header_literal_regex
=`echo 'unistd.h' \
23273 | sed -e "$gl_make_literal_regex_sed"`
23274 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23275 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23280 gl_cv_next_unistd_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23281 sed -n "$gl_absolute_header_sed"`'"'
23283 gl_cv_next_unistd_h
='<'unistd.h
'>'
23288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
23289 $as_echo "$gl_cv_next_unistd_h" >&6; }
23291 NEXT_UNISTD_H
=$gl_cv_next_unistd_h
23293 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
23294 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23295 gl_next_as_first_directive
='<'unistd.h
'>'
23297 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23298 gl_next_as_first_directive
=$gl_cv_next_unistd_h
23300 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
=$gl_next_as_first_directive
23305 if test $ac_cv_header_unistd_h = yes; then
23324 if test $ac_cv_func_futimens = no
&& test $ac_cv_func_futimesat = yes; then
23325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether futimesat handles NULL file" >&5
23326 $as_echo_n "checking whether futimesat handles NULL file... " >&6; }
23327 if test "${gl_cv_func_futimesat_works+set}" = set; then :
23328 $as_echo_n "(cached) " >&6
23330 touch conftest.
file
23331 if test "$cross_compiling" = yes; then :
23333 # Guess yes on glibc systems.
23334 *-gnu*) gl_cv_func_futimesat_works
="guessing yes" ;;
23335 # If we don't know, assume the worst.
23336 *) gl_cv_func_futimesat_works
="guessing no" ;;
23340 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23341 /* end confdefs.h. */
23343 #include <stddef.h>
23344 #include <sys/times.h>
23350 int fd = open ("conftest.file", O_RDWR);
23351 if (fd < 0) return 1;
23352 if (futimesat (fd, NULL, NULL)) return 2;
23358 if ac_fn_c_try_run
"$LINENO"; then :
23359 gl_cv_func_futimesat_works
=yes
23361 gl_cv_func_futimesat_works
=no
23363 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23364 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23367 rm -f conftest.
file
23369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_futimesat_works" >&5
23370 $as_echo "$gl_cv_func_futimesat_works" >&6; }
23371 case "$gl_cv_func_futimesat_works" in
23375 $as_echo "#define FUTIMESAT_NULL_BUG 1" >>confdefs.h
23381 gl_gnulib_enabled_dosname
=false
23382 gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36
=false
23383 gl_gnulib_enabled_pathmax
=false
23384 gl_gnulib_enabled_stat
=false
23385 gl_gnulib_enabled_strtoll
=false
23386 gl_gnulib_enabled_strtoull
=false
23387 gl_gnulib_enabled_verify
=false
23388 func_gl_gnulib_m4code_dosname
()
23390 if ! $gl_gnulib_enabled_dosname; then
23391 gl_gnulib_enabled_dosname
=true
23394 func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36
()
23396 if ! $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
23399 gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36
=true
23402 func_gl_gnulib_m4code_pathmax
()
23404 if ! $gl_gnulib_enabled_pathmax; then
23408 gl_gnulib_enabled_pathmax
=true
23411 func_gl_gnulib_m4code_stat
()
23413 if ! $gl_gnulib_enabled_stat; then
23417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on directories" >&5
23418 $as_echo_n "checking whether stat handles trailing slashes on directories... " >&6; }
23419 if test "${gl_cv_func_stat_dir_slash+set}" = set; then :
23420 $as_echo_n "(cached) " >&6
23422 if test "$cross_compiling" = yes; then :
23424 mingw
*) gl_cv_func_stat_dir_slash
="guessing no";;
23425 *) gl_cv_func_stat_dir_slash
="guessing yes";;
23428 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23429 /* end confdefs.h. */
23430 #include <sys/stat.h>
23435 struct stat st; return stat (".", &st) != stat ("./", &st);
23440 if ac_fn_c_try_run
"$LINENO"; then :
23441 gl_cv_func_stat_dir_slash
=yes
23443 gl_cv_func_stat_dir_slash
=no
23445 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23446 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_dir_slash" >&5
23451 $as_echo "$gl_cv_func_stat_dir_slash" >&6; }
23452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
23453 $as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
23454 if test "${gl_cv_func_stat_file_slash+set}" = set; then :
23455 $as_echo_n "(cached) " >&6
23458 # Assume that if we have lstat, we can also check symlinks.
23459 if test $ac_cv_func_lstat = yes; then
23460 ln -s conftest.tmp conftest.lnk
23462 if test "$cross_compiling" = yes; then :
23464 # Guess yes on glibc systems.
23465 *-gnu*) gl_cv_func_stat_file_slash
="guessing yes" ;;
23466 # If we don't know, assume the worst.
23467 *) gl_cv_func_stat_file_slash
="guessing no" ;;
23471 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23472 /* end confdefs.h. */
23473 #include <sys/stat.h>
23480 if (!stat ("conftest.tmp/", &st))
23483 if (!stat ("conftest.lnk/", &st))
23492 if ac_fn_c_try_run
"$LINENO"; then :
23493 gl_cv_func_stat_file_slash
=yes
23495 gl_cv_func_stat_file_slash
=no
23497 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23498 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23501 rm -f conftest.tmp conftest.lnk
23503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
23504 $as_echo "$gl_cv_func_stat_file_slash" >&6; }
23505 case $gl_cv_func_stat_dir_slash in
23506 *no
) REPLACE_STAT
=1
23508 $as_echo "#define REPLACE_FUNC_STAT_DIR 1" >>confdefs.h
23511 case $gl_cv_func_stat_file_slash in
23512 *no
) REPLACE_STAT
=1
23514 $as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
23518 if test $REPLACE_STAT = 1; then
23527 gl_LIBOBJS
="$gl_LIBOBJS stat.$ac_objext"
23545 gl_gnulib_enabled_stat
=true
23546 if test $REPLACE_STAT = 1; then
23547 func_gl_gnulib_m4code_dosname
23549 if test $REPLACE_STAT = 1; then
23550 func_gl_gnulib_m4code_pathmax
23552 if test $REPLACE_STAT = 1; then
23553 func_gl_gnulib_m4code_verify
23557 func_gl_gnulib_m4code_strtoll
()
23559 if ! $gl_gnulib_enabled_strtoll; then
23563 if test "$ac_cv_type_long_long_int" = yes; then
23564 for ac_func
in strtoll
23566 ac_fn_c_check_func
"$LINENO" "strtoll" "ac_cv_func_strtoll"
23567 if test "x$ac_cv_func_strtoll" = x
""yes; then :
23568 cat >>confdefs.h
<<_ACEOF
23569 #define HAVE_STRTOLL 1
23575 if test $ac_cv_func_strtoll = no
; then
23580 if test $HAVE_STRTOLL = 0; then
23589 gl_LIBOBJS
="$gl_LIBOBJS strtoll.$ac_objext"
23606 gl_gnulib_enabled_strtoll
=true
23609 func_gl_gnulib_m4code_strtoull
()
23611 if ! $gl_gnulib_enabled_strtoull; then
23615 if test "$ac_cv_type_unsigned_long_long_int" = yes; then
23616 for ac_func
in strtoull
23618 ac_fn_c_check_func
"$LINENO" "strtoull" "ac_cv_func_strtoull"
23619 if test "x$ac_cv_func_strtoull" = x
""yes; then :
23620 cat >>confdefs.h
<<_ACEOF
23621 #define HAVE_STRTOULL 1
23627 if test $ac_cv_func_strtoull = no
; then
23632 if test $HAVE_STRTOULL = 0; then
23641 gl_LIBOBJS
="$gl_LIBOBJS strtoull.$ac_objext"
23658 gl_gnulib_enabled_strtoull
=true
23661 func_gl_gnulib_m4code_verify
()
23663 if ! $gl_gnulib_enabled_verify; then
23664 gl_gnulib_enabled_verify
=true
23667 if test $REPLACE_GETOPT = 1; then
23668 func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36
23670 if test $REPLACE_LSTAT = 1; then
23671 func_gl_gnulib_m4code_dosname
23673 if test $REPLACE_LSTAT = 1; then
23674 func_gl_gnulib_m4code_stat
23676 if test $HAVE_READLINK = 0 ||
test $REPLACE_READLINK = 1; then
23677 func_gl_gnulib_m4code_stat
23679 if { test $HAVE_STRTOIMAX = 0 ||
test $REPLACE_STRTOIMAX = 1; } && test $ac_cv_type_long_long_int = yes; then
23680 func_gl_gnulib_m4code_strtoll
23682 if test $HAVE_STRTOIMAX = 0 ||
test $REPLACE_STRTOIMAX = 1; then
23683 func_gl_gnulib_m4code_verify
23685 if test $ac_cv_func_strtoumax = no
&& test $ac_cv_type_unsigned_long_long_int = yes; then
23686 func_gl_gnulib_m4code_strtoull
23688 if test $ac_cv_func_strtoumax = no
; then
23689 func_gl_gnulib_m4code_verify
23692 if $gl_gnulib_enabled_dosname; then
23693 gl_GNULIB_ENABLED_dosname_TRUE
=
23694 gl_GNULIB_ENABLED_dosname_FALSE
='#'
23696 gl_GNULIB_ENABLED_dosname_TRUE
='#'
23697 gl_GNULIB_ENABLED_dosname_FALSE
=
23700 if $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
23701 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE
=
23702 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE
='#'
23704 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE
='#'
23705 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE
=
23708 if $gl_gnulib_enabled_pathmax; then
23709 gl_GNULIB_ENABLED_pathmax_TRUE
=
23710 gl_GNULIB_ENABLED_pathmax_FALSE
='#'
23712 gl_GNULIB_ENABLED_pathmax_TRUE
='#'
23713 gl_GNULIB_ENABLED_pathmax_FALSE
=
23716 if $gl_gnulib_enabled_stat; then
23717 gl_GNULIB_ENABLED_stat_TRUE
=
23718 gl_GNULIB_ENABLED_stat_FALSE
='#'
23720 gl_GNULIB_ENABLED_stat_TRUE
='#'
23721 gl_GNULIB_ENABLED_stat_FALSE
=
23724 if $gl_gnulib_enabled_strtoll; then
23725 gl_GNULIB_ENABLED_strtoll_TRUE
=
23726 gl_GNULIB_ENABLED_strtoll_FALSE
='#'
23728 gl_GNULIB_ENABLED_strtoll_TRUE
='#'
23729 gl_GNULIB_ENABLED_strtoll_FALSE
=
23732 if $gl_gnulib_enabled_strtoull; then
23733 gl_GNULIB_ENABLED_strtoull_TRUE
=
23734 gl_GNULIB_ENABLED_strtoull_FALSE
='#'
23736 gl_GNULIB_ENABLED_strtoull_TRUE
='#'
23737 gl_GNULIB_ENABLED_strtoull_FALSE
=
23740 if $gl_gnulib_enabled_verify; then
23741 gl_GNULIB_ENABLED_verify_TRUE
=
23742 gl_GNULIB_ENABLED_verify_FALSE
='#'
23744 gl_GNULIB_ENABLED_verify_TRUE
='#'
23745 gl_GNULIB_ENABLED_verify_FALSE
=
23748 # End of code from modules
23769 gl_source_base
='tests'
23770 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
23772 gl_module_indicator_condition
=$gltests_WITNESS
23783 LIBGNU_LIBDEPS
="$gl_libdeps"
23785 LIBGNU_LTLIBDEPS
="$gl_ltlibdeps"
23788 CFLAGS
=$SAVE_CFLAGS
23792 aix4-2
) LD_SWITCH_SYSTEM_TEMACS
="-Wl,-bnodelcsect" ;;
23795 ## The -headerpad option tells ld (see man page) to leave room at the
23796 ## end of the header for adding load commands. Needed for dumping.
23797 ## 0x690 is the total size of 30 segment load commands (at 56
23798 ## each); under Cocoa 31 commands are required.
23799 if test "$HAVE_NS" = "yes"; then
23800 libs_nsgui
="-framework AppKit"
23801 headerpad_extra
=6C8
23804 headerpad_extra
=690
23806 LD_SWITCH_SYSTEM_TEMACS
="-fno-pie -prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra"
23808 ## This is here because src/Makefile.in did some extra fiddling around
23809 ## with LD_SWITCH_SYSTEM. The cpp logic was:
23810 ## #ifndef LD_SWITCH_SYSTEM
23811 ## #if !defined (__GNUC__) && ((defined (BSD_SYSTEM) && !defined (COFF)))
23812 ## Since all the *bsds define LD_SWITCH_SYSTEM, this simplifies to:
23813 ## not using gcc, darwin.
23814 ## Because this was done in src/Makefile.in, the resulting part of
23815 ## LD_SWITCH_SYSTEM was not used in configure (ie, in ac_link).
23816 ## It therefore seems cleaner to put this in LD_SWITCH_SYSTEM_TEMACS,
23817 ## rather than LD_SWITCH_SYSTEM.
23818 test "x$LD_SWITCH_SYSTEM" = "x" && test "x$GCC" != "xyes" && \
23819 LD_SWITCH_SYSTEM_TEMACS
="-X $LD_SWITCH_SYSTEM_TEMACS"
23822 ## LD_SWITCH_X_SITE_RPATH is a -rpath option saying where to
23823 ## find X at run-time.
23824 ## When handled by cpp, this was in LD_SWITCH_SYSTEM. However, at the
23825 ## point where configure sourced the s/*.h file, LD_SWITCH_X_SITE_RPATH
23826 ## had not yet been defined and was expanded to null. Hence LD_SWITCH_SYSTEM
23827 ## had different values in configure (in ac_link) and src/Makefile.in.
23828 ## It seems clearer therefore to put this piece in LD_SWITCH_SYSTEM_TEMACS.
23829 gnu
*) LD_SWITCH_SYSTEM_TEMACS
="\$(LD_SWITCH_X_SITE_RPATH)" ;;
23831 *) LD_SWITCH_SYSTEM_TEMACS
= ;;
23834 if test "$NS_IMPL_GNUSTEP" = "yes"; then
23835 LD_SWITCH_SYSTEM_TEMACS
="${LD_SWITCH_SYSTEM_TEMACS} -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES} -lgnustep-gui -lgnustep-base -lobjc -lpthread"
23844 ## gnu: GNU needs its own crt0.
23845 aix4-2|cygwin|darwin|gnu|hpux
*|irix6-5|sol2
*|unixware
) ORDINARY_LINK
=yes ;;
23847 ## On post 1.3 releases of NetBSD, gcc -nostdlib also clears the
23848 ## library search parth, i.e. it won't search /usr/lib for libc and
23849 ## friends. Using -nostartfiles instead avoids this problem, and
23850 ## will also work on earlier NetBSD releases.
23851 netbsd|openbsd
) LD_FIRSTFLAG
="-nostartfiles" ;;
23853 ## powerpc*: NAKAJI Hiroyuki <nakaji@tutrp.tut.ac.jp> says
23854 ## MkLinux/LinuxPPC needs this.
23855 ## s390x-* only supports opsys = gnu-linux so it can be added here.
23857 case "$canonical" in
23858 powerpc
*|s390x-
*) LD_FIRSTFLAG
="-nostdlib" ;;
23864 if test "x$ORDINARY_LINK" = "xyes"; then
23868 $as_echo "#define ORDINARY_LINK 1" >>confdefs.h
23871 ## The system files defining neither ORDINARY_LINK nor LD_FIRSTFLAG are:
23872 ## freebsd, gnu-* not on powerpc*|s390x*.
23873 elif test "x$GCC" = "xyes" && test "x$LD_FIRSTFLAG" = "x"; then
23875 ## Versions of GCC >= 2.0 put their library, libgcc.a, in obscure
23876 ## places that are difficult to figure out at make time. Fortunately,
23877 ## these same versions allow you to pass arbitrary flags on to the
23878 ## linker, so there is no reason not to use it as a linker.
23880 ## Well, it is not quite perfect. The "-nostdlib" keeps GCC from
23881 ## searching for libraries in its internal directories, so we have to
23882 ## ask GCC explicitly where to find libgcc.a (LIB_GCC below).
23883 LD_FIRSTFLAG
="-nostdlib"
23886 ## FIXME? What setting of EDIT_LDFLAGS should this have?
23887 test "$NS_IMPL_GNUSTEP" = "yes" && LD_FIRSTFLAG
="-rdynamic"
23892 ## FIXME? The logic here is not precisely the same as that above.
23893 ## There is no check here for a pre-defined LD_FIRSTFLAG.
23894 ## Should we only be setting LIB_GCC if LD ~ -nostdlib?
23896 if test "x$GCC" = "xyes" && test "x$ORDINARY_LINK" != "xyes"; then
23899 freebsd|netbsd|openbsd
) LIB_GCC
= ;;
23902 ## armin76@gentoo.org reported that the lgcc_s flag is necessary to
23903 ## build on ARM EABI under GNU/Linux. (Bug#5518)
23909 ## FIXME? s/gnu-linux.h used to define LIB_GCC as below, then
23910 ## immediately undefine it again and redefine it to empty.
23911 ## Was the C_SWITCH_X_SITE part really necessary?
23912 ## LIB_GCC=`$CC $C_SWITCH_X_SITE -print-libgcc-file-name`
23918 ## Ask GCC where to find libgcc.a.
23919 *) LIB_GCC
=`$CC -print-libgcc-file-name 2> /dev/null` ;;
23924 ## If we're using X11/GNUstep, define some consequences.
23925 if test "$HAVE_X_WINDOWS" = "yes" ||
test "$HAVE_NS" = "yes"; then
23927 $as_echo "#define HAVE_WINDOW_SYSTEM 1" >>confdefs.h
23930 $as_echo "#define HAVE_MOUSE 1" >>confdefs.h
23937 #### Report on what we decided to do.
23938 #### Report GTK as a toolkit, even if it doesn't use Xt.
23939 #### It makes printing result more understandable as using GTK sets
23940 #### toolkit_scroll_bars to yes by default.
23941 if test "${HAVE_GTK}" = "yes"; then
23942 if test "${with_gtk3}" = "yes"; then
23950 Configured for \`${canonical}'.
23952 Where should the build process find the source code? ${srcdir}
23953 What compiler should emacs be built with? ${CC} ${CFLAGS}
23954 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
23955 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
23956 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
23957 What window system should Emacs use? ${window_system}
23958 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
23960 if test -n "${x_includes}"; then
23961 echo " Where do we find X Windows header files? ${x_includes}"
23963 echo " Where do we find X Windows header files? Standard dirs"
23965 if test -n "${x_libraries}"; then
23966 echo " Where do we find X Windows libraries? ${x_libraries}"
23968 echo " Where do we find X Windows libraries? Standard dirs"
23971 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
23972 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
23973 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
23974 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
23975 echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
23976 echo " Does Emacs use -lpng? ${HAVE_PNG}"
23977 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
23978 echo " Does Emacs use imagemagick? ${HAVE_IMAGEMAGICK}"
23980 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
23981 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
23982 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
23983 echo " Does Emacs use GSettings? ${HAVE_GSETTINGS}"
23984 echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
23985 echo " Does Emacs use -lgnutls? ${HAVE_GNUTLS}"
23986 echo " Does Emacs use -lxml2? ${HAVE_LIBXML2}"
23988 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
23989 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
23990 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
23991 echo " Does Emacs use -lxft? ${HAVE_XFT}"
23993 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
23996 if test -n "${EMACSDATA}"; then
23997 echo " Environment variable EMACSDATA set to: $EMACSDATA"
23999 if test -n "${EMACSDOC}"; then
24000 echo " Environment variable EMACSDOC set to: $EMACSDOC"
24005 if test "$HAVE_NS" = "yes"; then
24007 echo "You must run \"${MAKE-make} install\" in order to test the built application.
24008 The installed application will go to nextstep/Emacs.app and can be
24009 run or moved from there."
24010 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
24011 echo "The application will be fully self-contained."
24013 echo "The lisp resources for the application will be installed under ${prefix}.
24014 You may need to run \"${MAKE-make} install\" with sudo. The application will fail
24015 to run if these resources are not installed."
24020 if test "${opsys}" = "cygwin"; then
24022 1.5.
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: building Emacs on Cygwin 1.5 is not supported." >&5
24023 $as_echo "$as_me: WARNING: building Emacs on Cygwin 1.5 is not supported." >&2;}
24029 # Remove any trailing slashes in these variables.
24030 test "${prefix}" != NONE
&&
24031 prefix
=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
24032 test "${exec_prefix}" != NONE
&&
24033 exec_prefix
=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
24035 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"
24037 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"
24040 opt_makefile
=test
/automated
/Makefile
24042 if test -f $srcdir/${opt_makefile}.
in; then
24043 SUBDIR_MAKEFILES
="$SUBDIR_MAKEFILES $opt_makefile"
24044 ac_config_files
="$ac_config_files test/automated/Makefile"
24049 opt_makefile
=admin
/unidata
/Makefile
24051 if test -f $srcdir/${opt_makefile}.
in; then
24052 SUBDIR_MAKEFILES
="$SUBDIR_MAKEFILES $opt_makefile"
24053 ac_config_files
="$ac_config_files admin/unidata/Makefile"
24058 SUBDIR_MAKEFILES_IN
=`echo " ${SUBDIR_MAKEFILES}" | sed -e 's| | $(srcdir)/|g' -e 's|Makefile|Makefile.in|g'`
24062 ac_config_commands
="$ac_config_commands mkdirs"
24065 ac_config_commands
="$ac_config_commands epaths"
24068 ac_config_commands
="$ac_config_commands gdbinit"
24071 cat >confcache
<<\_ACEOF
24072 # This file is a shell script that caches the results of configure
24073 # tests run on this system so they can be shared between configure
24074 # scripts and configure runs, see configure's option --config-cache.
24075 # It is not useful on other systems. If it contains results you don't
24076 # want to keep, you may remove or edit it.
24078 # config.status only pays attention to the cache file if you give it
24079 # the --recheck option to rerun configure.
24081 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24082 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24083 # following values.
24087 # The following way of writing the cache mishandles newlines in values,
24088 # but we know of no workaround that is simple, portable, and efficient.
24089 # So, we kill variables containing newlines.
24090 # Ultrix sh set writes to stderr and can't be redirected directly,
24091 # and sets the high bit in the cache file unless we assign to the vars.
24093 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24094 eval ac_val
=\$
$ac_var
24098 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
24099 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
24102 _ | IFS | as_nl
) ;; #(
24103 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
24104 *) { eval $ac_var=; unset $ac_var;} ;;
24110 case $as_nl`(ac_space=' '; set) 2>&1` in #(
24111 *${as_nl}ac_space
=\
*)
24112 # `set' does not quote correctly, so add quotes: double-quote
24113 # substitution turns \\\\ into \\, and sed turns \\ into \.
24116 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24119 # `set' quotes correctly as required by POSIX, so do not add quotes.
24120 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
24129 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24131 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24133 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
24134 if test -w "$cache_file"; then
24135 test "x$cache_file" != "x/dev/null" &&
24136 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
24137 $as_echo "$as_me: updating cache $cache_file" >&6;}
24138 cat confcache
>$cache_file
24140 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
24141 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
24146 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
24147 # Let make expand exec_prefix.
24148 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
24150 DEFS
=-DHAVE_CONFIG_H
24154 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
24155 # 1. Remove the extension, and $U if already installed.
24156 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
24157 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
24158 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
24159 # will be set to the directory where LIBOBJS objects are built.
24160 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
24161 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
24163 LIBOBJS
=$ac_libobjs
24165 LTLIBOBJS
=$ac_ltlibobjs
24168 if test -n "$EXEEXT"; then
24170 am__EXEEXT_FALSE
='#'
24172 am__EXEEXT_TRUE
='#'
24176 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
24177 as_fn_error
"conditional \"AMDEP\" was never defined.
24178 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24180 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
24181 as_fn_error
"conditional \"am__fastdepCC\" was never defined.
24182 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24184 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
24185 as_fn_error
"conditional \"GL_COND_LIBTOOL\" was never defined.
24186 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24188 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
24189 as_fn_error
"conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
24190 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24193 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
24194 as_fn_error
"conditional \"GL_GENERATE_STDINT_H\" was never defined.
24195 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24197 if test -z "${GL_GENERATE_STDALIGN_H_TRUE}" && test -z "${GL_GENERATE_STDALIGN_H_FALSE}"; then
24198 as_fn_error
"conditional \"GL_GENERATE_STDALIGN_H\" was never defined.
24199 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24201 if test -z "${GL_GENERATE_STDARG_H_TRUE}" && test -z "${GL_GENERATE_STDARG_H_FALSE}"; then
24202 as_fn_error
"conditional \"GL_GENERATE_STDARG_H\" was never defined.
24203 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24205 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
24206 as_fn_error
"conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
24207 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24209 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
24210 as_fn_error
"conditional \"GL_GENERATE_STDDEF_H\" was never defined.
24211 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24213 if test -z "${gl_GNULIB_ENABLED_dosname_TRUE}" && test -z "${gl_GNULIB_ENABLED_dosname_FALSE}"; then
24214 as_fn_error
"conditional \"gl_GNULIB_ENABLED_dosname\" was never defined.
24215 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24217 if test -z "${gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE}" && test -z "${gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE}"; then
24218 as_fn_error
"conditional \"gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36\" was never defined.
24219 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24221 if test -z "${gl_GNULIB_ENABLED_pathmax_TRUE}" && test -z "${gl_GNULIB_ENABLED_pathmax_FALSE}"; then
24222 as_fn_error
"conditional \"gl_GNULIB_ENABLED_pathmax\" was never defined.
24223 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24225 if test -z "${gl_GNULIB_ENABLED_stat_TRUE}" && test -z "${gl_GNULIB_ENABLED_stat_FALSE}"; then
24226 as_fn_error
"conditional \"gl_GNULIB_ENABLED_stat\" was never defined.
24227 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24229 if test -z "${gl_GNULIB_ENABLED_strtoll_TRUE}" && test -z "${gl_GNULIB_ENABLED_strtoll_FALSE}"; then
24230 as_fn_error
"conditional \"gl_GNULIB_ENABLED_strtoll\" was never defined.
24231 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24233 if test -z "${gl_GNULIB_ENABLED_strtoull_TRUE}" && test -z "${gl_GNULIB_ENABLED_strtoull_FALSE}"; then
24234 as_fn_error
"conditional \"gl_GNULIB_ENABLED_strtoull\" was never defined.
24235 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24237 if test -z "${gl_GNULIB_ENABLED_verify_TRUE}" && test -z "${gl_GNULIB_ENABLED_verify_FALSE}"; then
24238 as_fn_error
"conditional \"gl_GNULIB_ENABLED_verify\" was never defined.
24239 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24244 if test -n "$gl_LIBOBJS"; then
24245 # Remove the extension.
24246 sed_drop_objext
='s/\.o$//;s/\.obj$//'
24247 for i
in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
24248 gl_libobjs
="$gl_libobjs $i.$ac_objext"
24249 gl_ltlibobjs
="$gl_ltlibobjs $i.lo"
24252 gl_LIBOBJS
=$gl_libobjs
24254 gl_LTLIBOBJS
=$gl_ltlibobjs
24260 if test -n "$gltests_LIBOBJS"; then
24261 # Remove the extension.
24262 sed_drop_objext
='s/\.o$//;s/\.obj$//'
24263 for i
in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
24264 gltests_libobjs
="$gltests_libobjs $i.$ac_objext"
24265 gltests_ltlibobjs
="$gltests_ltlibobjs $i.lo"
24268 gltests_LIBOBJS
=$gltests_libobjs
24270 gltests_LTLIBOBJS
=$gltests_ltlibobjs
24274 : ${CONFIG_STATUS=./config.status}
24276 ac_clean_files_save
=$ac_clean_files
24277 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
24278 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
24279 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
24281 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
24283 # Generated by $as_me.
24284 # Run this file to recreate the current configuration.
24285 # Compiler output produced by configure, useful for debugging
24286 # configure, is in config.log if it exists.
24289 ac_cs_recheck=false
24292 SHELL=\${CONFIG_SHELL-$SHELL}
24295 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
24296 ## -------------------- ##
24297 ## M4sh Initialization. ##
24298 ## -------------------- ##
24300 # Be more Bourne compatible
24301 DUALCASE
=1; export DUALCASE
# for MKS sh
24302 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
24305 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24306 # is contrary to our usage. Disable this feature.
24307 alias -g '${1+"$@"}'='"$@"'
24308 setopt NO_GLOB_SUBST
24310 case `(set -o) 2>/dev/null` in #(
24322 # Printing a long string crashes Solaris 7 /usr/bin/printf.
24323 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
24324 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
24325 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
24326 # Prefer a ksh shell builtin over an external printf program on Solaris,
24327 # but without wasting forks for bash or zsh.
24328 if test -z "$BASH_VERSION$ZSH_VERSION" \
24329 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
24330 as_echo='print
-r --'
24331 as_echo_n='print
-rn --'
24332 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
24333 as_echo='printf %s
\n'
24334 as_echo_n='printf %s
'
24336 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
24337 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
24338 as_echo_n='/usr
/ucb
/echo -n'
24340 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
24341 as_echo_n_body='eval
24345 expr "X$arg" : "X\\(.*\\)$as_nl";
24346 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
24348 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
24350 export as_echo_n_body
24351 as_echo_n='sh
-c $as_echo_n_body as_echo
'
24353 export as_echo_body
24354 as_echo='sh
-c $as_echo_body as_echo
'
24357 # The user is always right.
24358 if test "${PATH_SEPARATOR+set}" != set; then
24360 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
24361 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
24368 # We need space, tab and new line, in precisely that order. Quoting is
24369 # there to prevent editors from complaining about space-tab.
24370 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
24371 # splitting by setting IFS to empty value.)
24374 # Find who we are. Look in the path if we contain no directory separator.
24376 *[\\/]* ) as_myself=$0 ;;
24377 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24378 for as_dir in $PATH
24381 test -z "$as_dir" && as_dir=.
24382 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24388 # We did not find ourselves, most probably we were run as `sh COMMAND'
24389 # in which case we are not to be found in the path.
24390 if test "x$as_myself" = x
; then
24393 if test ! -f "$as_myself"; then
24394 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24398 # Unset variables that we do not need and which cause bugs (e.g. in
24399 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
24400 # suppresses any "Segmentation fault" message there. '((' could
24401 # trigger a bug in pdksh 5.2.14.
24402 for as_var
in BASH_ENV ENV MAIL MAILPATH
24403 do eval test x\
${$as_var+set} = xset \
24404 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
24417 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
24420 # as_fn_error ERROR [LINENO LOG_FD]
24421 # ---------------------------------
24422 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
24423 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
24424 # script with status $?, using 1 if that was 0.
24427 as_status
=$?
; test $as_status -eq 0 && as_status
=1
24429 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
24430 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
24432 $as_echo "$as_me: error: $1" >&2
24433 as_fn_exit
$as_status
24437 # as_fn_set_status STATUS
24438 # -----------------------
24439 # Set $? to STATUS, without forking.
24440 as_fn_set_status
()
24443 } # as_fn_set_status
24445 # as_fn_exit STATUS
24446 # -----------------
24447 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
24451 as_fn_set_status
$1
24457 # Portably unset VAR.
24460 { eval $1=; unset $1;}
24462 as_unset
=as_fn_unset
24463 # as_fn_append VAR VALUE
24464 # ----------------------
24465 # Append the text in VALUE to the end of the definition contained in VAR. Take
24466 # advantage of any shell optimizations that allow amortized linear growth over
24467 # repeated appends, instead of the typical quadratic growth present in naive
24469 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
24470 eval 'as_fn_append ()
24481 # as_fn_arith ARG...
24482 # ------------------
24483 # Perform arithmetic evaluation on the ARGs, and store the result in the
24484 # global $as_val. Take advantage of shells that can avoid forks. The arguments
24485 # must be portable across $(()) and expr.
24486 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
24487 eval 'as_fn_arith ()
24494 as_val
=`expr "$@" || test $? -eq 1`
24499 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
24500 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
24506 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24507 as_basename
=basename
24512 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
24518 as_me
=`$as_basename -- "$0" ||
24519 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24520 X"$0" : 'X\(//\)$' \| \
24521 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24523 sed '/^.*\/\([^/][^/]*\)\/*$/{
24537 # Avoid depending upon Character Ranges.
24538 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
24539 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24540 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
24541 as_cr_digits
='0123456789'
24542 as_cr_alnum
=$as_cr_Letters$as_cr_digits
24544 ECHO_C
= ECHO_N
= ECHO_T
=
24545 case `echo -n x` in #(((((
24547 case `echo 'xy\c'` in
24548 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
24550 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
24557 rm -f conf$$ conf$$.exe conf$$.
file
24558 if test -d conf$$.dir
; then
24559 rm -f conf$$.dir
/conf$$.
file
24562 mkdir conf$$.dir
2>/dev
/null
24564 if (echo >conf$$.
file) 2>/dev
/null
; then
24565 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
24567 # ... but there are two gotchas:
24568 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24569 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
24570 # In both cases, we have to default to `cp -p'.
24571 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
24573 elif ln conf$$.
file conf$$
2>/dev
/null
; then
24581 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
24582 rmdir conf$$.dir
2>/dev
/null
24587 # Create "$as_dir" as a directory, including parents if necessary.
24592 -*) as_dir
=.
/$as_dir;;
24594 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
24598 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
24599 *) as_qdir
=$as_dir;;
24601 as_dirs
="'$as_qdir' $as_dirs"
24602 as_dir
=`$as_dirname -- "$as_dir" ||
24603 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24604 X"$as_dir" : 'X\(//\)[^/]' \| \
24605 X"$as_dir" : 'X\(//\)$' \| \
24606 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24607 $as_echo X"$as_dir" |
24608 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24612 /^X\(\/\/\)[^/].*/{
24625 test -d "$as_dir" && break
24627 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
24628 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
24632 if mkdir
-p .
2>/dev
/null
; then
24633 as_mkdir_p
='mkdir -p "$as_dir"'
24635 test -d .
/-p && rmdir .
/-p
24639 if test -x / >/dev
/null
2>&1; then
24640 as_test_x
='test -x'
24642 if ls -dL / >/dev
/null
2>&1; then
24649 if test -d "$1"; then
24655 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
24656 ???[sx]*):;;*)false;;esac;fi
24660 as_executable_p
=$as_test_x
24662 # Sed expression to map a string onto a valid CPP name.
24663 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24665 # Sed expression to map a string onto a valid variable name.
24666 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24670 ## ----------------------------------- ##
24671 ## Main body of $CONFIG_STATUS script. ##
24672 ## ----------------------------------- ##
24674 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
24676 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
24677 # Save the log message, to keep $0 and so on meaningful, and to
24678 # report actual input values of CONFIG_FILES etc. instead of their
24679 # values after options handling.
24681 This file was extended by emacs $as_me 24.2.50, which was
24682 generated by GNU Autoconf 2.65. Invocation command line was
24684 CONFIG_FILES = $CONFIG_FILES
24685 CONFIG_HEADERS = $CONFIG_HEADERS
24686 CONFIG_LINKS = $CONFIG_LINKS
24687 CONFIG_COMMANDS = $CONFIG_COMMANDS
24690 on `(hostname || uname -n) 2>/dev/null | sed 1q`
24695 case $ac_config_files in *"
24696 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
24699 case $ac_config_headers in *"
24700 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
24704 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24705 # Files that config.status was made for.
24706 config_files="$ac_config_files"
24707 config_headers="$ac_config_headers"
24708 config_commands="$ac_config_commands"
24712 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
24714 \`$as_me' instantiates files and other configuration actions
24715 from templates according to the current configuration. Unless the files
24716 and actions are specified as TAGs, all are instantiated by default.
24718 Usage: $0 [OPTION]... [TAG]...
24720 -h, --help print this help, then exit
24721 -V, --version print version number and configuration settings, then exit
24722 --config print configuration, then exit
24723 -q, --quiet, --silent
24724 do not print progress messages
24725 -d, --debug don't remove temporary files
24726 --recheck update $as_me by reconfiguring in the same conditions
24727 --file=FILE[:TEMPLATE]
24728 instantiate the configuration file FILE
24729 --header=FILE[:TEMPLATE]
24730 instantiate the configuration header FILE
24732 Configuration files:
24735 Configuration headers:
24738 Configuration commands:
24741 Report bugs to the package provider."
24744 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24745 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
24747 emacs config.status 24.2.50
24748 configured by $0, generated by GNU Autoconf 2.65,
24749 with options \\"\$ac_cs_config\\"
24751 Copyright (C) 2009 Free Software Foundation, Inc.
24752 This config.status script is free software; the Free Software Foundation
24753 gives unlimited permission to copy, distribute and modify it."
24760 test -n "\$AWK" || AWK=awk
24763 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
24764 # The default lists apply if the user does not specify any file.
24770 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
24771 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
24782 # Handling of the options.
24783 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
24785 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
24786 $as_echo "$ac_cs_version"; exit ;;
24787 --config |
--confi |
--conf |
--con |
--co |
--c )
24788 $as_echo "$ac_cs_config"; exit ;;
24789 --debug |
--debu |
--deb |
--de |
--d |
-d )
24791 --file |
--fil |
--fi |
--f )
24794 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
24796 as_fn_append CONFIG_FILES
" '$ac_optarg'"
24797 ac_need_defaults
=false
;;
24798 --header |
--heade |
--head |
--hea )
24801 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
24803 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
24804 ac_need_defaults
=false
;;
24806 # Conflict between --help and --header
24807 as_fn_error
"ambiguous option: \`$1'
24808 Try \`$0 --help' for more information.";;
24809 --help |
--hel |
-h )
24810 $as_echo "$ac_cs_usage"; exit ;;
24811 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
24812 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
24815 # This is an error.
24816 -*) as_fn_error
"unrecognized option: \`$1'
24817 Try \`$0 --help' for more information." ;;
24819 *) as_fn_append ac_config_targets
" $1"
24820 ac_need_defaults
=false
;;
24826 ac_configure_extra_args
=
24828 if $ac_cs_silent; then
24830 ac_configure_extra_args
="$ac_configure_extra_args --silent"
24834 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24835 if \$ac_cs_recheck; then
24836 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24838 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
24839 CONFIG_SHELL='$SHELL'
24840 export CONFIG_SHELL
24845 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
24849 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24850 ## Running $as_me. ##
24856 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24860 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
24861 GCC="$GCC" CPPFLAGS="$CPPFLAGS"
24865 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
24867 # Handling of arguments.
24868 for ac_config_target
in $ac_config_targets
24870 case $ac_config_target in
24871 "src/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
24872 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
24873 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
24874 "lib/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/Makefile" ;;
24875 "lib-src/Makefile") CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile" ;;
24876 "oldXMenu/Makefile") CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
24877 "doc/emacs/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/emacs/Makefile" ;;
24878 "doc/misc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/misc/Makefile" ;;
24879 "doc/lispintro/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispintro/Makefile" ;;
24880 "doc/lispref/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispref/Makefile" ;;
24881 "src/Makefile") CONFIG_FILES
="$CONFIG_FILES src/Makefile" ;;
24882 "lwlib/Makefile") CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
24883 "lisp/Makefile") CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
24884 "leim/Makefile") CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
24885 "test/automated/Makefile") CONFIG_FILES
="$CONFIG_FILES test/automated/Makefile" ;;
24886 "admin/unidata/Makefile") CONFIG_FILES
="$CONFIG_FILES admin/unidata/Makefile" ;;
24887 "mkdirs") CONFIG_COMMANDS
="$CONFIG_COMMANDS mkdirs" ;;
24888 "epaths") CONFIG_COMMANDS
="$CONFIG_COMMANDS epaths" ;;
24889 "gdbinit") CONFIG_COMMANDS
="$CONFIG_COMMANDS gdbinit" ;;
24891 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
24896 # If the user did not use the arguments to specify the items to instantiate,
24897 # then the envvar interface is used. Set only those that are not.
24898 # We use the long form for the default assignment because of an extremely
24899 # bizarre bug on SunOS 4.1.3.
24900 if $ac_need_defaults; then
24901 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
24902 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
24903 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
24906 # Have a temporary directory for convenience. Make it in the build tree
24907 # simply because there is no reason against having it here, and in addition,
24908 # creating and moving files from /tmp can sometimes cause problems.
24909 # Hook for its removal unless debugging.
24910 # Note that there is a small window in which the directory will not be cleaned:
24911 # after its creation but before its name has been assigned to `$tmp'.
24915 trap 'exit_status=$?
24916 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
24918 trap 'as_fn_exit 1' 1 2 13 15
24920 # Create a (secure) tmp directory for tmp files.
24923 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
24924 test -n "$tmp" && test -d "$tmp"
24927 tmp
=.
/conf$$
-$RANDOM
24928 (umask 077 && mkdir
"$tmp")
24929 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
24931 # Set up the scripts for CONFIG_FILES section.
24932 # No need to generate them if there are no CONFIG_FILES.
24933 # This happens for instance with `./config.status config.h'.
24934 if test -n "$CONFIG_FILES"; then
24936 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
24937 ac_cs_awk_getline
=:
24938 ac_cs_awk_pipe_init
=
24939 ac_cs_awk_read_file
='
24940 while ((getline aline < (F[key])) > 0)
24943 ac_cs_awk_pipe_fini
=
24945 ac_cs_awk_getline
=false
24946 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
24947 ac_cs_awk_read_file
='
24949 print "cat " F[key] " &&"
24950 '$ac_cs_awk_pipe_init
24951 # The final `:' finishes the AND list.
24952 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
24954 ac_cr
=`echo X | tr X '\015'`
24955 # On cygwin, bash can eat \r inside `` if the user requested igncr.
24956 # But we know of no other shell where ac_cr would be empty at this
24957 # point, so we can use a bashism as a fallback.
24958 if test "x$ac_cr" = x
; then
24959 eval ac_cr
=\$
\'\\r
\'
24961 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
24962 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
24965 ac_cs_awk_cr
=$ac_cr
24968 echo 'BEGIN {' >"$tmp/subs1.awk" &&
24971 # Create commands to substitute file output variables.
24973 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
24974 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
24975 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
24978 } >conf$
$files.sh
&&
24979 . .
/conf$
$files.sh ||
24980 as_fn_error
"could not make $CONFIG_STATUS" "$LINENO" 5
24981 rm -f conf$
$files.sh
24984 echo "cat >conf$$subs.awk <<_ACEOF" &&
24985 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
24987 } >conf$$subs.sh ||
24988 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
24989 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
24991 for ac_last_try in false false false false false :; do
24992 . ./conf$$subs.sh ||
24993 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
24995 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
24996 if test $ac_delim_n = $ac_delim_num; then
24998 elif $ac_last_try; then
24999 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
25001 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
25004 rm -f conf$$subs.sh
25006 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25007 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
25011 s/^/S["/; s
/!.
*/"]=/
25021 s/\(.\{148\}\)..*/\1/
25023 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
25028 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
25035 s/\(.\{148\}\)..*/\1/
25037 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
25041 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
25046 ' <conf$$subs.awk | sed '
25051 ' >>$CONFIG_STATUS || ac_write_fail=1
25052 rm -f conf$$subs.awk
25053 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25055 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
25056 for (key in S) S_is_set[key] = 1
25058 \$ac_cs_awk_pipe_init
25062 nfields = split(line, field, "@
")
25064 len = length(field[1])
25065 for (i = 2; i < nfields; i++) {
25067 keylen = length(key)
25068 if (S_is_set[key]) {
25070 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
25071 len += length(value) + length(field[++i])
25076 if (nfields == 3 && !substed) {
25078 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
25079 \$ac_cs_awk_read_file
25085 \$ac_cs_awk_pipe_fini
25088 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25089 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
25090 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
25093 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
25094 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
25097 # VPATH may cause trouble with some makes, so we remove $(srcdir),
25098 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
25099 # trailing colons and then remove the whole line if VPATH becomes empty
25100 # (actually we leave an empty line to preserve line numbers).
25101 if test "x
$srcdir" = x.; then
25102 ac_vpsub='/^[ ]*VPATH[ ]*=/{
25103 s/:*\$(srcdir):*/:/
25104 s/:*\${srcdir}:*/:/
25106 s/^\([^=]*=[ ]*\):*/\1/
25112 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25113 fi # test -n "$CONFIG_FILES"
25115 # Set up the scripts for CONFIG_HEADERS section.
25116 # No need to generate them if there are no CONFIG_HEADERS.
25117 # This happens for instance with `./config.status Makefile'.
25118 if test -n "$CONFIG_HEADERS"; then
25119 cat >"$tmp/defines.
awk" <<\_ACAWK ||
25123 # Transform confdefs.h into an awk script `defines.awk', embedded as
25124 # here-document in config.status, that substitutes the proper values into
25125 # config.h.in to produce config.h.
25127 # Create a delimiter string that does not exist in confdefs.h, to ease
25128 # handling of long lines.
25130 for ac_last_try in false false :; do
25131 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
25132 if test -z "$ac_t"; then
25134 elif $ac_last_try; then
25135 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
25137 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
25141 # For the awk script, D is an array of macro values keyed by name,
25142 # likewise P contains macro parameters if any. Preserve backslash
25143 # newline sequences.
25145 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
25147 s/.\{148\}/&'"$ac_delim"'/g
25150 s/^[ ]*#[ ]*define[ ][ ]*/ /
25157 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
25159 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
25163 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
25164 D["\
1"]=" \
3\\\\\\n
"\\/p
25166 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
25171 s/.\{148\}/&'"$ac_delim"'/g
25176 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
25179 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
25181 ' <confdefs.h | sed '
25182 s/'"$ac_delim"'/"\\\
25183 "/g' >>$CONFIG_STATUS || ac_write_fail=1
25185 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25186 for (key in D) D_is_set[key] = 1
25189 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
25191 split(line, arg, " ")
25192 if (arg[1] == "#") {
25196 defundef
= substr
(arg
[1], 2)
25199 split(mac1
, mac2
, "(") #)
25201 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
25202 if (D_is_set
[macro
]) {
25203 # Preserve the white space surrounding the "#".
25204 print prefix
"define", macro P
[macro
] D
[macro
]
25207 # Replace #undef with comments. This is necessary, for example,
25208 # in the case of _POSIX_SOURCE, which is predefined and required
25209 # on some systems where configure will not decide to define it.
25210 if (defundef
== "undef") {
25211 print
"/*", prefix defundef
, macro
, "*/"
25219 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
25220 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
25221 fi # test -n "$CONFIG_HEADERS"
25224 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
25229 :[FHLC
]) ac_mode
=$ac_tag; continue;;
25231 case $ac_mode$ac_tag in
25233 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
25234 :[FH
]-) ac_tag
=-:-;;
25235 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
25252 -) ac_f
="$tmp/stdin";;
25253 *) # Look for the file first in the build tree, then in the source tree
25254 # (if the path is not absolute). The absolute path cannot be DOS-style,
25255 # because $ac_f cannot contain `:'.
25259 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
25261 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
25263 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
25264 as_fn_append ac_file_inputs
" '$ac_f'"
25267 # Let's still pretend it is `configure' which instantiates (i.e., don't
25268 # use $as_me), people would be surprised to read:
25269 # /* config.h. Generated by config.status. */
25270 configure_input
='Generated from '`
25271 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
25273 if test x
"$ac_file" != x-
; then
25274 configure_input
="$ac_file. $configure_input"
25275 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
25276 $as_echo "$as_me: creating $ac_file" >&6;}
25278 # Neutralize special characters interpreted by sed in replacement strings.
25279 case $configure_input in #(
25280 *\
&* |
*\|
* |
*\\* )
25281 ac_sed_conf_input
=`$as_echo "$configure_input" |
25282 sed 's/[\\\\&|]/\\\\&/g'`;; #(
25283 *) ac_sed_conf_input
=$configure_input;;
25287 *:-:* |
*:-) cat >"$tmp/stdin" \
25288 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
25293 ac_dir
=`$as_dirname -- "$ac_file" ||
25294 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25295 X"$ac_file" : 'X\(//\)[^/]' \| \
25296 X"$ac_file" : 'X\(//\)$' \| \
25297 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
25298 $as_echo X"$ac_file" |
25299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25303 /^X\(\/\/\)[^/].*/{
25316 as_dir
="$ac_dir"; as_fn_mkdir_p
25320 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
25322 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
25323 # A ".." for each directory in $ac_dir_suffix.
25324 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
25325 case $ac_top_builddir_sub in
25326 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
25327 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
25330 ac_abs_top_builddir
=$ac_pwd
25331 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
25332 # for backward compatibility:
25333 ac_top_builddir
=$ac_top_build_prefix
25336 .
) # We are building in place.
25338 ac_top_srcdir
=$ac_top_builddir_sub
25339 ac_abs_top_srcdir
=$ac_pwd ;;
25340 [\\/]* | ?
:[\\/]* ) # Absolute name.
25341 ac_srcdir
=$srcdir$ac_dir_suffix;
25342 ac_top_srcdir
=$srcdir
25343 ac_abs_top_srcdir
=$srcdir ;;
25344 *) # Relative name.
25345 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
25346 ac_top_srcdir
=$ac_top_build_prefix$srcdir
25347 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
25349 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
25359 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
25360 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
25362 ac_MKDIR_P
=$MKDIR_P
25364 [\\/$
]* | ?
:[\\/]* ) ;;
25365 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
25369 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
25370 # If the template does not know about datarootdir, expand it.
25371 # FIXME: This hack should be removed a few years after 2.60.
25372 ac_datarootdir_hack
=; ac_datarootdir_seen
=
25383 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
25384 *datarootdir
*) ac_datarootdir_seen
=yes;;
25385 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
25386 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
25387 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
25389 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25390 ac_datarootdir_hack='
25391 s&@datadir@&$datadir&g
25392 s&@docdir@&$docdir&g
25393 s&@infodir@&$infodir&g
25394 s&@localedir@&$localedir&g
25395 s&@mandir@&$mandir&g
25396 s&\\\${datarootdir}&$datarootdir&g' ;;
25400 # Neutralize VPATH when `$srcdir' = `.'.
25401 # Shell code in configure.ac might set extrasub.
25402 # FIXME: do we really want to maintain this feature?
25403 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25404 ac_sed_extra="$ac_vpsub
25407 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
25409 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
25410 s|@configure_input@|
$ac_sed_conf_input|
;t t
25411 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
25412 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
25413 s
&@srcdir@
&$ac_srcdir&;t t
25414 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
25415 s
&@top_srcdir@
&$ac_top_srcdir&;t t
25416 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
25417 s
&@builddir@
&$ac_builddir&;t t
25418 s
&@abs_builddir@
&$ac_abs_builddir&;t t
25419 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
25420 s
&@INSTALL@
&$ac_INSTALL&;t t
25421 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
25422 $ac_datarootdir_hack
25424 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
25425 if $ac_cs_awk_getline; then
25426 $AWK -f "$tmp/subs.
awk"
25428 $AWK -f "$tmp/subs.
awk" | $SHELL
25430 || as_fn_error "could not create
$ac_file" "$LINENO" 5
25432 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
25433 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
25434 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
25435 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
25436 which seems to be undefined. Please make sure it is defined." >&5
25437 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
25438 which seems to be undefined. Please make sure it is defined." >&2;}
25442 -) cat "$tmp/out" && rm -f "$tmp/out";;
25443 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
25445 || as_fn_error "could not create $ac_file" "$LINENO" 5
25451 if test x"$ac_file" != x-; then
25453 $as_echo "/* $configure_input */" \
25454 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
25455 } >"$tmp/config.h" \
25456 || as_fn_error "could not create $ac_file" "$LINENO" 5
25457 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
25458 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
25459 $as_echo "$as_me: $ac_file is unchanged" >&6;}
25462 mv "$tmp/config.h" "$ac_file" \
25463 || as_fn_error "could not create $ac_file" "$LINENO" 5
25466 $as_echo "/* $configure_input */" \
25467 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
25468 || as_fn_error "could not create -" "$LINENO" 5
25470 # Compute "$ac_file"'s index
in $config_headers.
25473 for _am_header
in $config_headers :; do
25474 case $_am_header in
25475 $_am_arg |
$_am_arg:* )
25478 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
25481 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
25482 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25483 X"$_am_arg" : 'X\(//\)[^/]' \| \
25484 X"$_am_arg" : 'X\(//\)$' \| \
25485 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
25486 $as_echo X"$_am_arg" |
25487 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25491 /^X\(\/\/\)[^/].*/{
25503 s/.*/./; q'`/stamp-h
$_am_stamp_count
25506 :C
) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
25507 $as_echo "$as_me: executing $ac_file commands" >&6;}
25512 case $ac_file$ac_mode in
25513 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
{
25514 # Autoconf 2.62 quotes --file arguments for eval, but not when files
25515 # are listed without --file. Let's play safe and only enable the eval
25516 # if we detect the quoting.
25517 case $CONFIG_FILES in
25518 *\'*) eval set x
"$CONFIG_FILES" ;;
25519 *) set x
$CONFIG_FILES ;;
25524 # Strip MF so we end up with the name of the file.
25525 mf
=`echo "$mf" | sed -e 's/:.*$//'`
25526 # Check whether this is an Automake generated Makefile or not.
25527 # We used to match only the files named `Makefile.in', but
25528 # some people rename them; so instead we look at the file content.
25529 # Grep'ing the first line is not enough: some people post-process
25530 # each Makefile.in and add a new line on top of each file to say so.
25531 # Grep'ing the whole file is not good either: AIX grep has a line
25532 # limit of 2048, but all sed's we know have understand at least 4000.
25533 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
25534 dirpart
=`$as_dirname -- "$mf" ||
25535 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25536 X"$mf" : 'X\(//\)[^/]' \| \
25537 X"$mf" : 'X\(//\)$' \| \
25538 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
25540 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25544 /^X\(\/\/\)[^/].*/{
25560 # Extract the definition of DEPDIR, am__include, and am__quote
25561 # from the Makefile without running `make'.
25562 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
25563 test -z "$DEPDIR" && continue
25564 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
25565 test -z "am__include" && continue
25566 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
25567 # When using ansi2knr, U may be empty or an underscore; expand it
25568 U
=`sed -n 's/^U = //p' < "$mf"`
25569 # Find all dependency output files, they are included files with
25570 # $(DEPDIR) in their names. We invoke sed twice because it is the
25571 # simplest approach to changing $(DEPDIR) to its actual value in the
25573 for file in `sed -n "
25574 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
25575 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
25576 # Make sure the directory exists.
25577 test -f "$dirpart/$file" && continue
25578 fdir
=`$as_dirname -- "$file" ||
25579 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25580 X"$file" : 'X\(//\)[^/]' \| \
25581 X"$file" : 'X\(//\)$' \| \
25582 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
25583 $as_echo X"$file" |
25584 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25588 /^X\(\/\/\)[^/].*/{
25601 as_dir
=$dirpart/$fdir; as_fn_mkdir_p
25602 # echo "creating $dirpart/$file"
25603 echo '# dummy' > "$dirpart/$file"
25609 for dir
in etc lisp
; do
25610 test -d ${dir} || mkdir
${dir}
25614 echo creating src
/epaths.h
25615 ${MAKE-make} MAKEFILE_NAME
=do-not-make-Makefile epaths-force
25618 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
25619 echo creating src
/.gdbinit
25620 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
25630 ac_clean_files
=$ac_clean_files_save
25632 test $ac_write_fail = 0 ||
25633 as_fn_error
"write failure creating $CONFIG_STATUS" "$LINENO" 5
25636 # configure is writing to config.log, and then calls config.status.
25637 # config.status does its own redirection, appending to config.log.
25638 # Unfortunately, on DOS this fails, as config.log is still kept open
25639 # by configure, so config.status won't be able to write to it; its
25640 # output is simply discarded. So we exec the FD to /dev/null,
25641 # effectively closing config.log, so it can be properly (re)opened and
25642 # appended to by config.status. When coming back to configure, we
25643 # need to make the FD available again.
25644 if test "$no_create" != yes; then
25646 ac_config_status_args
=
25647 test "$silent" = yes &&
25648 ac_config_status_args
="$ac_config_status_args --quiet"
25650 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
25652 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25653 # would make configure fail if this is the last instruction.
25654 $ac_cs_success || as_fn_exit $?
25656 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
25657 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
25658 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}