2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65 for emacs 24.0.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.0.50'
553 PACKAGE_STRING
='emacs 24.0.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
642 x_default_search_path
662 gl_GNULIB_ENABLED_verify_FALSE
663 gl_GNULIB_ENABLED_verify_TRUE
664 gl_GNULIB_ENABLED_strtoull_FALSE
665 gl_GNULIB_ENABLED_strtoull_TRUE
666 gl_GNULIB_ENABLED_stat_FALSE
667 gl_GNULIB_ENABLED_stat_TRUE
668 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE
669 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE
670 gl_GNULIB_ENABLED_dosname_FALSE
671 gl_GNULIB_ENABLED_dosname_TRUE
675 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
677 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
678 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
679 TIME_H_DEFINES_STRUCT_TIMESPEC
680 NEXT_AS_FIRST_DIRECTIVE_TIME_H
682 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
684 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
686 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
695 REPLACE_STDIO_WRITE_FUNCS
696 REPLACE_STDIO_READ_FUNCS
705 REPLACE_OBSTACK_PRINTF
727 HAVE_DECL_OBSTACK_PRINTF
733 GNULIB_VSPRINTF_POSIX
737 GNULIB_VFPRINTF_POSIX
744 GNULIB_STDIO_H_SIGPIPE
745 GNULIB_STDIO_H_NONBLOCKING
759 GNULIB_OBSTACK_PRINTF_POSIX
760 GNULIB_OBSTACK_PRINTF
785 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
787 GL_GENERATE_STDDEF_H_FALSE
788 GL_GENERATE_STDDEF_H_TRUE
793 GL_GENERATE_STDBOOL_H_FALSE
794 GL_GENERATE_STDBOOL_H_TRUE
796 GL_GENERATE_STDARG_H_FALSE
797 GL_GENERATE_STDARG_H_TRUE
799 NEXT_AS_FIRST_DIRECTIVE_STDARG_H
808 HAVE_DECL_LOCALTIME_R
846 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
848 UINT64_MAX_EQ_ULONG_MAX
849 UINT32_MAX_LT_UINTMAX_MAX
852 INT64_MAX_EQ_LONG_MAX
853 INT32_MAX_LT_INTMAX_MAX
862 GL_GENERATE_STDINT_H_FALSE
863 GL_GENERATE_STDINT_H_TRUE
872 HAVE_SIGNED_SIG_ATOMIC_T
875 BITSIZEOF_SIG_ATOMIC_T
878 APPLE_UNIVERSAL_BUILD
882 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
887 HAVE_UNSIGNED_LONG_LONG_INT
891 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
895 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
908 REPLACE_CANONICALIZE_FILE_NAME
913 HAVE_STRUCT_RANDOM_DATA
932 HAVE_CANONICALIZE_FILE_NAME
959 GNULIB_CANONICALIZE_FILE_NAME
963 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
964 UNISTD_H_HAVE_WINSOCK2_H
984 REPLACE_GETDOMAINNAME
994 HAVE_DECL_GETUSERSHELL
995 HAVE_DECL_GETPAGESIZE
997 HAVE_DECL_GETDOMAINNAME
1033 GNULIB_UNISTD_H_SIGPIPE
1034 GNULIB_UNISTD_H_NONBLOCKING
1035 GNULIB_UNISTD_H_GETOPT
1059 GNULIB_GETDTABLESIZE
1060 GNULIB_GETDOMAINNAME
1073 GL_GENERATE_ALLOCA_H_FALSE
1074 GL_GENERATE_ALLOCA_H_TRUE
1077 GL_COND_LIBTOOL_FALSE
1078 GL_COND_LIBTOOL_TRUE
1126 LD_SWITCH_X_SITE_AUX_RPATH
1127 LD_SWITCH_X_SITE_AUX
1188 INSTALL_STRIP_PROGRAM
1230 program_transform_name
1241 ac_subst_files
='deps_frag
1245 enable_option_checking
1268 with_toolkit_scroll_bars
1279 with_pkg_config_prog
1283 enable_ns_self_contained
1285 enable_maintainer_mode
1286 enable_locallisppath
1288 enable_use_lisp_union_type
1291 enable_dependency_tracking
1295 ac_precious_vars
='build_alias
1307 # Initialize some variables set by options.
1309 ac_init_version
=false
1310 ac_unrecognized_opts
=
1311 ac_unrecognized_sep
=
1312 # The variables have the same names as the options, with
1313 # dashes changed to underlines.
1314 cache_file
=/dev
/null
1321 program_transform_name
=s
,x
,x
,
1329 # Installation directory options.
1330 # These are left unexpanded so users can "make install exec_prefix=/foo"
1331 # and all the variables that are supposed to be based on exec_prefix
1332 # by default will actually change.
1333 # Use braces instead of parens because sh, perl, etc. also accept them.
1334 # (The list follows the same order as the GNU Coding Standards.)
1335 bindir
='${exec_prefix}/bin'
1336 sbindir
='${exec_prefix}/sbin'
1337 libexecdir
='${exec_prefix}/libexec'
1338 datarootdir
='${prefix}/share'
1339 datadir
='${datarootdir}'
1340 sysconfdir
='${prefix}/etc'
1341 sharedstatedir
='${prefix}/com'
1342 localstatedir
='${prefix}/var'
1343 includedir
='${prefix}/include'
1344 oldincludedir
='/usr/include'
1345 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
1346 infodir
='${datarootdir}/info'
1351 libdir
='${exec_prefix}/lib'
1352 localedir
='${datarootdir}/locale'
1353 mandir
='${datarootdir}/man'
1359 # If the previous option needs an argument, assign it.
1360 if test -n "$ac_prev"; then
1361 eval $ac_prev=\
$ac_option
1367 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1371 # Accept the important Cygnus configure options, so we can diagnose typos.
1373 case $ac_dashdash$ac_option in
1377 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1379 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1380 bindir
=$ac_optarg ;;
1382 -build |
--build |
--buil |
--bui |
--bu)
1383 ac_prev
=build_alias
;;
1384 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1385 build_alias
=$ac_optarg ;;
1387 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1388 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1389 ac_prev
=cache_file
;;
1390 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1391 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1392 cache_file
=$ac_optarg ;;
1394 --config-cache |
-C)
1395 cache_file
=config.cache
;;
1397 -datadir |
--datadir |
--datadi |
--datad)
1399 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1400 datadir
=$ac_optarg ;;
1402 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1403 |
--dataroo |
--dataro |
--datar)
1404 ac_prev
=datarootdir
;;
1405 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1406 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1407 datarootdir
=$ac_optarg ;;
1409 -disable-* |
--disable-*)
1410 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1411 # Reject names that are not valid shell variable names.
1412 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1413 as_fn_error
"invalid feature name: $ac_useropt"
1414 ac_useropt_orig
=$ac_useropt
1415 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1416 case $ac_user_opts in
1418 "enable_
$ac_useropt"
1420 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1421 ac_unrecognized_sep
=', ';;
1423 eval enable_
$ac_useropt=no
;;
1425 -docdir |
--docdir |
--docdi |
--doc |
--do)
1427 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1428 docdir
=$ac_optarg ;;
1430 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1432 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1433 dvidir
=$ac_optarg ;;
1435 -enable-* |
--enable-*)
1436 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1437 # Reject names that are not valid shell variable names.
1438 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1439 as_fn_error
"invalid feature name: $ac_useropt"
1440 ac_useropt_orig
=$ac_useropt
1441 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1442 case $ac_user_opts in
1444 "enable_
$ac_useropt"
1446 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1447 ac_unrecognized_sep
=', ';;
1449 eval enable_
$ac_useropt=\
$ac_optarg ;;
1451 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1452 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1453 |
--exec |
--exe |
--ex)
1454 ac_prev
=exec_prefix
;;
1455 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1456 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1457 |
--exec=* |
--exe=* |
--ex=*)
1458 exec_prefix
=$ac_optarg ;;
1460 -gas |
--gas |
--ga |
--g)
1461 # Obsolete; use --with-gas.
1464 -help |
--help |
--hel |
--he |
-h)
1465 ac_init_help
=long
;;
1466 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1467 ac_init_help
=recursive
;;
1468 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1469 ac_init_help
=short
;;
1471 -host |
--host |
--hos |
--ho)
1472 ac_prev
=host_alias
;;
1473 -host=* |
--host=* |
--hos=* |
--ho=*)
1474 host_alias
=$ac_optarg ;;
1476 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1478 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1480 htmldir
=$ac_optarg ;;
1482 -includedir |
--includedir |
--includedi |
--included |
--include \
1483 |
--includ |
--inclu |
--incl |
--inc)
1484 ac_prev
=includedir
;;
1485 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1486 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1487 includedir
=$ac_optarg ;;
1489 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1491 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1492 infodir
=$ac_optarg ;;
1494 -libdir |
--libdir |
--libdi |
--libd)
1496 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1497 libdir
=$ac_optarg ;;
1499 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1500 |
--libexe |
--libex |
--libe)
1501 ac_prev
=libexecdir
;;
1502 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1503 |
--libexe=* |
--libex=* |
--libe=*)
1504 libexecdir
=$ac_optarg ;;
1506 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1507 ac_prev
=localedir
;;
1508 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1509 localedir
=$ac_optarg ;;
1511 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1512 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1513 ac_prev
=localstatedir
;;
1514 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1515 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1516 localstatedir
=$ac_optarg ;;
1518 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1520 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1521 mandir
=$ac_optarg ;;
1523 -nfp |
--nfp |
--nf)
1524 # Obsolete; use --without-fp.
1527 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1528 |
--no-cr |
--no-c |
-n)
1531 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1532 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1535 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1536 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1537 |
--oldin |
--oldi |
--old |
--ol |
--o)
1538 ac_prev
=oldincludedir
;;
1539 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1540 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1541 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1542 oldincludedir
=$ac_optarg ;;
1544 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1546 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1547 prefix
=$ac_optarg ;;
1549 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1550 |
--program-pre |
--program-pr |
--program-p)
1551 ac_prev
=program_prefix
;;
1552 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1553 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1554 program_prefix
=$ac_optarg ;;
1556 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1557 |
--program-suf |
--program-su |
--program-s)
1558 ac_prev
=program_suffix
;;
1559 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1560 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1561 program_suffix
=$ac_optarg ;;
1563 -program-transform-name |
--program-transform-name \
1564 |
--program-transform-nam |
--program-transform-na \
1565 |
--program-transform-n |
--program-transform- \
1566 |
--program-transform |
--program-transfor \
1567 |
--program-transfo |
--program-transf \
1568 |
--program-trans |
--program-tran \
1569 |
--progr-tra |
--program-tr |
--program-t)
1570 ac_prev
=program_transform_name
;;
1571 -program-transform-name=* |
--program-transform-name=* \
1572 |
--program-transform-nam=* |
--program-transform-na=* \
1573 |
--program-transform-n=* |
--program-transform-=* \
1574 |
--program-transform=* |
--program-transfor=* \
1575 |
--program-transfo=* |
--program-transf=* \
1576 |
--program-trans=* |
--program-tran=* \
1577 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1578 program_transform_name
=$ac_optarg ;;
1580 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1582 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1583 pdfdir
=$ac_optarg ;;
1585 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1587 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1590 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1591 |
-silent |
--silent |
--silen |
--sile |
--sil)
1594 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1596 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1598 sbindir
=$ac_optarg ;;
1600 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1601 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1602 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1604 ac_prev
=sharedstatedir
;;
1605 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1606 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1607 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1609 sharedstatedir
=$ac_optarg ;;
1611 -site |
--site |
--sit)
1613 -site=* |
--site=* |
--sit=*)
1616 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1618 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1619 srcdir
=$ac_optarg ;;
1621 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1622 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1623 ac_prev
=sysconfdir
;;
1624 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1625 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1626 sysconfdir
=$ac_optarg ;;
1628 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1629 ac_prev
=target_alias
;;
1630 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1631 target_alias
=$ac_optarg ;;
1633 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1636 -version |
--version |
--versio |
--versi |
--vers |
-V)
1637 ac_init_version
=: ;;
1640 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1641 # Reject names that are not valid shell variable names.
1642 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1643 as_fn_error
"invalid package name: $ac_useropt"
1644 ac_useropt_orig
=$ac_useropt
1645 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1646 case $ac_user_opts in
1650 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1651 ac_unrecognized_sep
=', ';;
1653 eval with_
$ac_useropt=\
$ac_optarg ;;
1655 -without-* |
--without-*)
1656 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1657 # Reject names that are not valid shell variable names.
1658 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1659 as_fn_error
"invalid package name: $ac_useropt"
1660 ac_useropt_orig
=$ac_useropt
1661 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1662 case $ac_user_opts in
1666 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1667 ac_unrecognized_sep
=', ';;
1669 eval with_
$ac_useropt=no
;;
1672 # Obsolete; use --with-x.
1675 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1676 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1677 ac_prev
=x_includes
;;
1678 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1679 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1680 x_includes
=$ac_optarg ;;
1682 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1683 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1684 ac_prev
=x_libraries
;;
1685 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1686 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1687 x_libraries
=$ac_optarg ;;
1689 -*) as_fn_error
"unrecognized option: \`$ac_option'
1690 Try \`$0 --help' for more information."
1694 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1695 # Reject names that are not valid shell variable names.
1696 case $ac_envvar in #(
1697 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1698 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1700 eval $ac_envvar=\
$ac_optarg
1701 export $ac_envvar ;;
1704 # FIXME: should be removed in autoconf 3.0.
1705 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1706 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1707 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1708 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1714 if test -n "$ac_prev"; then
1715 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1716 as_fn_error
"missing argument to $ac_option"
1719 if test -n "$ac_unrecognized_opts"; then
1720 case $enable_option_checking in
1722 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1723 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1727 # Check all directory arguments for consistency.
1728 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1729 datadir sysconfdir sharedstatedir localstatedir includedir \
1730 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1731 libdir localedir mandir
1733 eval ac_val
=\$
$ac_var
1734 # Remove trailing slashes.
1737 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1738 eval $ac_var=\
$ac_val;;
1740 # Be sure to have absolute directory names.
1742 [\\/$
]* | ?
:[\\/]* ) continue;;
1743 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1745 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
1748 # There might be people who depend on the old broken behavior: `$host'
1749 # used to hold the argument of --host etc.
1750 # FIXME: To remove some day.
1753 target
=$target_alias
1755 # FIXME: To remove some day.
1756 if test "x$host_alias" != x
; then
1757 if test "x$build_alias" = x
; then
1758 cross_compiling
=maybe
1759 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1760 If a cross compiler is detected then cross compile mode will be used." >&2
1761 elif test "x$build_alias" != "x$host_alias"; then
1767 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1769 test "$silent" = yes && exec 6>/dev
/null
1772 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1773 ac_ls_di
=`ls -di .` &&
1774 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1775 as_fn_error
"working directory cannot be determined"
1776 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1777 as_fn_error
"pwd does not report name of working directory"
1780 # Find the source files, if location was not specified.
1781 if test -z "$srcdir"; then
1782 ac_srcdir_defaulted
=yes
1783 # Try the directory containing this script, then the parent directory.
1784 ac_confdir
=`$as_dirname -- "$as_myself" ||
1785 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1786 X"$as_myself" : 'X\(//\)[^/]' \| \
1787 X"$as_myself" : 'X\(//\)$' \| \
1788 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1789 $as_echo X"$as_myself" |
1790 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1808 if test ! -r "$srcdir/$ac_unique_file"; then
1812 ac_srcdir_defaulted
=no
1814 if test ! -r "$srcdir/$ac_unique_file"; then
1815 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1816 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
1818 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1820 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1822 # When building in place, set srcdir=.
1823 if test "$ac_abs_confdir" = "$ac_pwd"; then
1826 # Remove unnecessary trailing slashes from srcdir.
1827 # Double slashes in file names in object file debugging info
1828 # mess up M-x gdb in Emacs.
1830 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1832 for ac_var
in $ac_precious_vars; do
1833 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1834 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1835 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1836 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1840 # Report the --help message.
1842 if test "$ac_init_help" = "long"; then
1843 # Omit some internal or obsolete options to make the list less imposing.
1844 # This message is too long to be a string in the A/UX 3.1 sh.
1846 \`configure' configures emacs 24.0.50 to adapt to many kinds of systems.
1848 Usage: $0 [OPTION]... [VAR=VALUE]...
1850 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1851 VAR=VALUE. See below for descriptions of some of the useful variables.
1853 Defaults for the options are specified in brackets.
1856 -h, --help display this help and exit
1857 --help=short display options specific to this package
1858 --help=recursive display the short help of all the included packages
1859 -V, --version display version information and exit
1860 -q, --quiet, --silent do not print \`checking...' messages
1861 --cache-file=FILE cache test results in FILE [disabled]
1862 -C, --config-cache alias for \`--cache-file=config.cache'
1863 -n, --no-create do not create output files
1864 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1866 Installation directories:
1867 --prefix=PREFIX install architecture-independent files in PREFIX
1868 [$ac_default_prefix]
1869 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1872 By default, \`make install' will install all the files in
1873 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1874 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1875 for instance \`--prefix=\$HOME'.
1877 For better control, use the options below.
1879 Fine tuning of the installation directories:
1880 --bindir=DIR user executables [EPREFIX/bin]
1881 --sbindir=DIR system admin executables [EPREFIX/sbin]
1882 --libexecdir=DIR program executables [EPREFIX/libexec]
1883 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1884 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1885 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1886 --libdir=DIR object code libraries [EPREFIX/lib]
1887 --includedir=DIR C header files [PREFIX/include]
1888 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1889 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1890 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1891 --infodir=DIR info documentation [DATAROOTDIR/info]
1892 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1893 --mandir=DIR man documentation [DATAROOTDIR/man]
1894 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1895 --htmldir=DIR html documentation [DOCDIR]
1896 --dvidir=DIR dvi documentation [DOCDIR]
1897 --pdfdir=DIR pdf documentation [DOCDIR]
1898 --psdir=DIR ps documentation [DOCDIR]
1904 --program-prefix=PREFIX prepend PREFIX to installed program names
1905 --program-suffix=SUFFIX append SUFFIX to installed program names
1906 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1909 --x-includes=DIR X include files are
in DIR
1910 --x-libraries=DIR X library files are
in DIR
1913 --build=BUILD configure
for building on BUILD
[guessed
]
1914 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1918 if test -n "$ac_init_help"; then
1919 case $ac_init_help in
1920 short | recursive
) echo "Configuration of emacs 24.0.50:";;
1925 --disable-option-checking ignore unrecognized
--enable/--with options
1926 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1927 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1928 --disable-ns-self-contained
1929 disable self contained build under NeXTstep
1930 --enable-asserts compile code with asserts enabled
1931 --enable-maintainer-mode
1932 enable make rules and dependencies not useful
(and
1933 sometimes confusing
) to the casual installer
1934 --enable-locallisppath=PATH
1935 directories Emacs should search
for lisp files
1936 specific to this site
1937 --enable-checking[=LIST
]
1938 enable expensive run-time checks. With LIST
, enable
1939 only specific categories of checks. Categories are
:
1940 all
,yes,no. Flags are
: stringbytes
, stringoverrun
,
1941 stringfreelist
, xmallocoverrun
, conslist
1942 --enable-use-lisp-union-type
1943 use a union
for the Lisp_Object data
type. This is
1944 only useful
for development
for catching certain
1946 --enable-profiling build emacs with profiling support. This might not
1947 work on all platforms
1948 --enable-autodepend automatically generate dependencies to .h-files.
1949 Requires GNU Make and Gcc. Enabled
if GNU Make and
1951 --disable-dependency-tracking speeds up one-time build
1952 --enable-dependency-tracking do not reject slow dependency extractors
1953 --disable-largefile omit support
for large files
1956 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1957 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1958 --without-pop don
't support POP mail retrieval with movemail
1959 --with-kerberos support Kerberos-authenticated POP
1960 --with-kerberos5 support Kerberos version 5 authenticated POP
1961 --with-hesiod support Hesiod to get the POP server host
1962 --with-mmdf support MMDF mailboxes
1963 --with-mail-unlink unlink, rather than empty, mail spool after reading
1964 --with-mailhost=HOSTNAME
1965 string giving default POP mail host
1966 --without-sound don't compile with sound support
1967 --without-sync-input process async input synchronously
1968 --with-x-toolkit=KIT use an X toolkit
(KIT one of
: yes or gtk
, gtk3
,
1969 lucid or athena
, motif
, no
)
1970 --with-wide-int prefer wide Emacs integers
(typically
62-bit)
1971 --without-xpm don
't compile with XPM image support
1972 --without-jpeg don't compile with JPEG image support
1973 --without-tiff don
't compile with TIFF image support
1974 --without-gif don't compile with GIF image support
1975 --without-png don
't compile with PNG image support
1976 --without-rsvg don't compile with SVG image support
1977 --without-xml2 don
't compile with XML parsing support
1978 --without-imagemagick don't compile with ImageMagick image support
1979 --without-xft don
't use XFT for anti aliased fonts
1980 --without-libotf don't use libotf
for OpenType font support
1981 --without-m17n-flt don
't use m17n-flt for text shaping
1982 --without-toolkit-scroll-bars
1983 don't use Motif or Xaw3d scroll bars
1984 --without-xaw3d don
't use Xaw3d
1985 --without-xim don't use X11 XIM
1986 --with-ns use NeXTstep
(Cocoa or GNUstep
) windowing system
1987 --without-gpm don
't use -lgpm for mouse support on a GNU/Linux
1989 --without-dbus don't compile with D-Bus support
1990 --without-gconf don
't compile with GConf support
1991 --without-selinux don't compile with SELinux support
1992 --without-gnutls don
't use -lgnutls for SSL/TLS support
1993 --without-makeinfo don't require makeinfo
for building manuals
1994 --without-compress-info don
't compress the installed Info pages
1995 --with-pkg-config-prog=PATH
1996 path to pkg-config for finding GTK and librsvg
1997 --with-crt-dir=DIR directory containing crtn.o etc. The default is
1998 /usr/lib, or /usr/lib64 on some platforms.
1999 --with-gameuser=USER user for shared game score files
2000 --with-gnustep-conf=PATH
2001 path to GNUstep.conf; default $GNUSTEP_CONFIG_FILE,
2002 or /etc/GNUstep/GNUstep.conf
2003 --with-x use the X Window System
2005 Some influential environment variables:
2006 CC C compiler command
2007 CFLAGS C compiler flags
2008 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
2009 nonstandard directory <lib dir>
2010 LIBS libraries to pass to the linker, e.g. -l<library>
2011 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2012 you have headers in a nonstandard directory <include dir>
2014 XMKMF Path to xmkmf, Makefile generator for X Window System
2016 Use these variables to override the choices made by `configure' or to
help
2017 it to
find libraries and programs with nonstandard names
/locations.
2019 Report bugs to the package provider.
2024 if test "$ac_init_help" = "recursive"; then
2025 # If there are subdirs, report their specific --help.
2026 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
2027 test -d "$ac_dir" ||
2028 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
2033 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
2035 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2036 # A ".." for each directory in $ac_dir_suffix.
2037 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2038 case $ac_top_builddir_sub in
2039 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
2040 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
2043 ac_abs_top_builddir
=$ac_pwd
2044 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
2045 # for backward compatibility:
2046 ac_top_builddir
=$ac_top_build_prefix
2049 .
) # We are building in place.
2051 ac_top_srcdir
=$ac_top_builddir_sub
2052 ac_abs_top_srcdir
=$ac_pwd ;;
2053 [\\/]* | ?
:[\\/]* ) # Absolute name.
2054 ac_srcdir
=$srcdir$ac_dir_suffix;
2055 ac_top_srcdir
=$srcdir
2056 ac_abs_top_srcdir
=$srcdir ;;
2058 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
2059 ac_top_srcdir
=$ac_top_build_prefix$srcdir
2060 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
2062 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
2064 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
2065 # Check for guested configure.
2066 if test -f "$ac_srcdir/configure.gnu"; then
2068 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2069 elif test -f "$ac_srcdir/configure"; then
2071 $SHELL "$ac_srcdir/configure" --help=recursive
2073 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2075 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
2079 test -n "$ac_init_help" && exit $ac_status
2080 if $ac_init_version; then
2082 emacs configure
24.0.50
2083 generated by GNU Autoconf
2.65
2085 Copyright
(C
) 2009 Free Software Foundation
, Inc.
2086 This configure
script is free software
; the Free Software Foundation
2087 gives unlimited permission to copy
, distribute and modify it.
2092 ## ------------------------ ##
2093 ## Autoconf initialization. ##
2094 ## ------------------------ ##
2096 # ac_fn_c_try_compile LINENO
2097 # --------------------------
2098 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2099 ac_fn_c_try_compile
()
2101 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2102 rm -f conftest.
$ac_objext
2103 if { { ac_try
="$ac_compile"
2105 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2106 *) ac_try_echo=$ac_try;;
2108 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2109 $as_echo "$ac_try_echo"; } >&5
2110 (eval "$ac_compile") 2>conftest.err
2112 if test -s conftest.err; then
2113 grep -v '^ *+' conftest.err >conftest.er1
2114 cat conftest.er1 >&5
2115 mv -f conftest.er1 conftest.err
2117 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2118 test $ac_status = 0; } && {
2119 test -z "$ac_c_werror_flag" ||
2120 test ! -s conftest.err
2121 } && test -s conftest.$ac_objext; then :
2124 $as_echo "$as_me: failed program was:" >&5
2125 sed 's/^/| /' conftest.$ac_ext >&5
2129 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2130 as_fn_set_status $ac_retval
2132 } # ac_fn_c_try_compile
2134 # ac_fn_c_try_cpp LINENO
2135 # ----------------------
2136 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2139 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2140 if { { ac_try="$ac_cpp conftest.$ac_ext"
2142 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2143 *) ac_try_echo
=$ac_try;;
2145 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2146 $as_echo "$ac_try_echo"; } >&5
2147 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2149 if test -s conftest.err
; then
2150 grep -v '^ *+' conftest.err
>conftest.er1
2151 cat conftest.er1
>&5
2152 mv -f conftest.er1 conftest.err
2154 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2155 test $ac_status = 0; } >/dev
/null
&& {
2156 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2157 test ! -s conftest.err
2161 $as_echo "$as_me: failed program was:" >&5
2162 sed 's/^/| /' conftest.
$ac_ext >&5
2166 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2167 as_fn_set_status
$ac_retval
2171 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2172 # -------------------------------------------------------
2173 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2174 # the include files in INCLUDES and setting the cache variable VAR
2176 ac_fn_c_check_header_mongrel
()
2178 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2179 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2181 $as_echo_n "checking for $2... " >&6; }
2182 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2183 $as_echo_n "(cached) " >&6
2186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2187 $as_echo "$ac_res" >&6; }
2189 # Is the header compilable?
2190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2191 $as_echo_n "checking $2 usability... " >&6; }
2192 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2193 /* end confdefs.h. */
2197 if ac_fn_c_try_compile
"$LINENO"; then :
2198 ac_header_compiler
=yes
2200 ac_header_compiler
=no
2202 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2204 $as_echo "$ac_header_compiler" >&6; }
2206 # Is the header present?
2207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2208 $as_echo_n "checking $2 presence... " >&6; }
2209 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2210 /* end confdefs.h. */
2213 if ac_fn_c_try_cpp
"$LINENO"; then :
2214 ac_header_preproc
=yes
2216 ac_header_preproc
=no
2218 rm -f conftest.err conftest.
$ac_ext
2219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2220 $as_echo "$ac_header_preproc" >&6; }
2222 # So? What about this header?
2223 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2225 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2226 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2227 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2228 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2231 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2232 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2233 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2234 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2235 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2236 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2237 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2238 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2239 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2240 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2244 $as_echo_n "checking for $2... " >&6; }
2245 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2246 $as_echo_n "(cached) " >&6
2248 eval "$3=\$ac_header_compiler"
2251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2252 $as_echo "$ac_res" >&6; }
2254 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2256 } # ac_fn_c_check_header_mongrel
2258 # ac_fn_c_try_run LINENO
2259 # ----------------------
2260 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2261 # that executables *can* be run.
2264 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2265 if { { ac_try
="$ac_link"
2267 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2268 *) ac_try_echo=$ac_try;;
2270 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2271 $as_echo "$ac_try_echo"; } >&5
2272 (eval "$ac_link") 2>&5
2274 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2275 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2276 { { case "(($ac_try" in
2277 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2278 *) ac_try_echo
=$ac_try;;
2280 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2281 $as_echo "$ac_try_echo"; } >&5
2282 (eval "$ac_try") 2>&5
2284 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2285 test $ac_status = 0; }; }; then :
2288 $as_echo "$as_me: program exited with status $ac_status" >&5
2289 $as_echo "$as_me: failed program was:" >&5
2290 sed 's/^/| /' conftest.
$ac_ext >&5
2292 ac_retval
=$ac_status
2294 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2295 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2296 as_fn_set_status
$ac_retval
2300 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2301 # -------------------------------------------------------
2302 # Tests whether HEADER exists and can be compiled using the include files in
2303 # INCLUDES, setting the cache variable VAR accordingly.
2304 ac_fn_c_check_header_compile
()
2306 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2308 $as_echo_n "checking for $2... " >&6; }
2309 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2310 $as_echo_n "(cached) " >&6
2312 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2313 /* end confdefs.h. */
2317 if ac_fn_c_try_compile
"$LINENO"; then :
2322 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2326 $as_echo "$ac_res" >&6; }
2327 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2329 } # ac_fn_c_check_header_compile
2331 # ac_fn_c_try_link LINENO
2332 # -----------------------
2333 # Try to link conftest.$ac_ext, and return whether this succeeded.
2336 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2337 rm -f conftest.
$ac_objext conftest
$ac_exeext
2338 if { { ac_try
="$ac_link"
2340 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2341 *) ac_try_echo=$ac_try;;
2343 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2344 $as_echo "$ac_try_echo"; } >&5
2345 (eval "$ac_link") 2>conftest.err
2347 if test -s conftest.err; then
2348 grep -v '^ *+' conftest.err >conftest.er1
2349 cat conftest.er1 >&5
2350 mv -f conftest.er1 conftest.err
2352 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2353 test $ac_status = 0; } && {
2354 test -z "$ac_c_werror_flag" ||
2355 test ! -s conftest.err
2356 } && test -s conftest$ac_exeext && {
2357 test "$cross_compiling" = yes ||
2358 $as_test_x conftest$ac_exeext
2362 $as_echo "$as_me: failed program was:" >&5
2363 sed 's/^/| /' conftest.$ac_ext >&5
2367 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2368 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2369 # interfere with the next link command; also delete a directory that is
2370 # left behind by Apple's compiler. We do this before executing the actions.
2371 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2372 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2373 as_fn_set_status $ac_retval
2375 } # ac_fn_c_try_link
2377 # ac_fn_c_check_decl LINENO SYMBOL VAR
2378 # ------------------------------------
2379 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2380 ac_fn_c_check_decl ()
2382 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2384 $as_echo_n "checking whether $2 is declared... " >&6; }
2385 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2386 $as_echo_n "(cached) " >&6
2388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2389 /* end confdefs.h. */
2402 if ac_fn_c_try_compile "$LINENO"; then :
2407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2411 $as_echo "$ac_res" >&6; }
2412 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2414 } # ac_fn_c_check_decl
2416 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2417 # ----------------------------------------------
2418 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2419 ac_fn_c_check_header_preproc ()
2421 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2423 $as_echo_n "checking for $2... " >&6; }
2424 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2425 $as_echo_n "(cached) " >&6
2427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2428 /* end confdefs.h. */
2431 if ac_fn_c_try_cpp "$LINENO"; then :
2436 rm -f conftest.err conftest.$ac_ext
2439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2440 $as_echo "$ac_res" >&6; }
2441 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2443 } # ac_fn_c_check_header_preproc
2445 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2446 # ----------------------------------------------------
2447 # Tries to find if the field MEMBER exists in type AGGR, after including
2448 # INCLUDES, setting cache variable VAR accordingly.
2449 ac_fn_c_check_member ()
2451 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2453 $as_echo_n "checking for $2.$3... " >&6; }
2454 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2455 $as_echo_n "(cached) " >&6
2457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2458 /* end confdefs.h. */
2470 if ac_fn_c_try_compile "$LINENO"; then :
2473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2474 /* end confdefs.h. */
2480 if (sizeof ac_aggr.$3)
2486 if ac_fn_c_try_compile "$LINENO"; then :
2491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2497 $as_echo "$ac_res" >&6; }
2498 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2500 } # ac_fn_c_check_member
2502 # ac_fn_c_check_func LINENO FUNC VAR
2503 # ----------------------------------
2504 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2505 ac_fn_c_check_func ()
2507 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2509 $as_echo_n "checking for $2... " >&6; }
2510 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2511 $as_echo_n "(cached) " >&6
2513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2514 /* end confdefs.h. */
2515 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2516 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2517 #define $2 innocuous_$2
2519 /* System header to define __stub macros and hopefully few prototypes,
2520 which can conflict with char $2 (); below.
2521 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2522 <limits.h> exists even on freestanding compilers. */
2525 # include <limits.h>
2527 # include <assert.h>
2532 /* Override any GCC internal prototype to avoid an error.
2533 Use char because int might match the return type of a GCC
2534 builtin and then its argument prototype would still apply. */
2539 /* The GNU C library defines this for functions which it implements
2540 to always fail with ENOSYS. Some functions are actually named
2541 something starting with __ and the normal name is an alias. */
2542 #if defined __stub_$2 || defined __stub___$2
2554 if ac_fn_c_try_link "$LINENO"; then :
2559 rm -f core conftest.err conftest.$ac_objext \
2560 conftest$ac_exeext conftest.$ac_ext
2563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2564 $as_echo "$ac_res" >&6; }
2565 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2567 } # ac_fn_c_check_func
2569 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2570 # --------------------------------------------
2571 # Tries to find the compile-time value of EXPR in a program that includes
2572 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2574 ac_fn_c_compute_int ()
2576 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2577 if test "$cross_compiling" = yes; then
2578 # Depending upon the size, compute the lo and hi bounds.
2579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2580 /* end confdefs.h. */
2585 static int test_array [1 - 2 * !(($2) >= 0)];
2592 if ac_fn_c_try_compile "$LINENO"; then :
2595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2596 /* end confdefs.h. */
2601 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2608 if ac_fn_c_try_compile "$LINENO"; then :
2609 ac_hi=$ac_mid; break
2611 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2612 if test $ac_lo -le $ac_mid; then
2616 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2622 /* end confdefs.h. */
2627 static int test_array [1 - 2 * !(($2) < 0)];
2634 if ac_fn_c_try_compile "$LINENO"; then :
2637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2638 /* end confdefs.h. */
2643 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2650 if ac_fn_c_try_compile "$LINENO"; then :
2651 ac_lo=$ac_mid; break
2653 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2654 if test $ac_mid -le $ac_hi; then
2658 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2668 # Binary search between lo and hi bounds.
2669 while test "x$ac_lo" != "x$ac_hi"; do
2670 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2672 /* end confdefs.h. */
2677 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2684 if ac_fn_c_try_compile "$LINENO"; then :
2687 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2692 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2697 /* end confdefs.h. */
2699 static long int longval () { return $2; }
2700 static unsigned long int ulongval () { return $2; }
2707 FILE *f = fopen ("conftest.val", "w");
2712 long int i = longval ();
2715 fprintf (f, "%ld", i);
2719 unsigned long int i = ulongval ();
2722 fprintf (f, "%lu", i);
2724 /* Do not output a trailing newline, as this causes \r\n confusion
2725 on some platforms. */
2726 return ferror (f) || fclose (f) != 0;
2732 if ac_fn_c_try_run "$LINENO"; then :
2733 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2737 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2738 conftest.$ac_objext conftest.beam conftest.$ac_ext
2742 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2743 as_fn_set_status $ac_retval
2745 } # ac_fn_c_compute_int
2747 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2748 # -------------------------------------------
2749 # Tests whether TYPE exists after having included INCLUDES, setting cache
2750 # variable VAR accordingly.
2751 ac_fn_c_check_type ()
2753 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2755 $as_echo_n "checking for $2... " >&6; }
2756 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2757 $as_echo_n "(cached) " >&6
2760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2761 /* end confdefs.h. */
2772 if ac_fn_c_try_compile "$LINENO"; then :
2773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2774 /* end confdefs.h. */
2785 if ac_fn_c_try_compile "$LINENO"; then :
2790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2796 $as_echo "$ac_res" >&6; }
2797 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2799 } # ac_fn_c_check_type
2800 cat >config.log <<_ACEOF
2801 This file contains any messages produced by compilers while
2802 running configure, to aid debugging if configure makes a mistake.
2804 It was created by emacs $as_me 24.0.50, which was
2805 generated by GNU Autoconf 2.65. Invocation command line was
2817 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2818 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2819 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2820 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2821 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2823 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2824 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2826 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2827 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2828 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2829 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2830 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2831 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2832 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2840 test -z "$as_dir" && as_dir=.
2841 $as_echo "PATH: $as_dir"
2857 # Keep a trace of the command line.
2858 # Strip out --no-create and --no-recursion so they do not pile up.
2859 # Strip out --silent because we don't want to record it for future runs.
2860 # Also quote any args containing shell meta-characters.
2861 # Make two passes to allow for proper duplicate-argument suppression.
2865 ac_must_keep_next=false
2871 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2872 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2873 | -silent | --silent | --silen | --sile | --sil)
2876 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2879 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2881 as_fn_append ac_configure_args1 " '$ac_arg'"
2882 if test $ac_must_keep_next = true; then
2883 ac_must_keep_next=false # Got value, back to normal.
2886 *=* | --config-cache | -C | -disable-* | --disable-* \
2887 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2888 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2889 | -with-* | --with-* | -without-* | --without-* | --x)
2890 case "$ac_configure_args0 " in
2891 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2894 -* ) ac_must_keep_next=true ;;
2897 as_fn_append ac_configure_args " '$ac_arg'"
2902 { ac_configure_args0=; unset ac_configure_args0;}
2903 { ac_configure_args1=; unset ac_configure_args1;}
2905 # When interrupted or exit'd, cleanup temporary files, and complete
2906 # config.log. We remove comments because anyway the quotes in there
2907 # would cause problems or look ugly.
2908 # WARNING: Use '\'' to represent an apostrophe within the trap.
2909 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2910 trap 'exit_status=$?
2911 # Save into config.log some information that might help in debugging.
2916 ## ---------------- ##
2917 ## Cache variables. ##
2918 ## ---------------- ##
2921 # The following way of writing the cache mishandles newlines in values,
2923 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2924 eval ac_val=\$$ac_var
2928 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2929 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2932 _ | IFS | as_nl) ;; #(
2933 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2934 *) { eval $ac_var=; unset $ac_var;} ;;
2939 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2940 *${as_nl}ac_space=\ *)
2942 "s/'\''/'\''\\\\'\'''\''/g;
2943 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2946 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2954 ## ----------------- ##
2955 ## Output variables. ##
2956 ## ----------------- ##
2959 for ac_var in $ac_subst_vars
2961 eval ac_val=\$$ac_var
2963 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2965 $as_echo "$ac_var='\''$ac_val'\''"
2969 if test -n "$ac_subst_files"; then
2971 ## ------------------- ##
2972 ## File substitutions. ##
2973 ## ------------------- ##
2976 for ac_var in $ac_subst_files
2978 eval ac_val=\$$ac_var
2980 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2982 $as_echo "$ac_var='\''$ac_val'\''"
2987 if test -s confdefs.h; then
2997 test "$ac_signal" != 0 &&
2998 $as_echo "$as_me: caught signal $ac_signal"
2999 $as_echo "$as_me: exit $exit_status"
3001 rm -f core *.core core.conftest.* &&
3002 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3005 for ac_signal in 1 2 13 15; do
3006 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3010 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3011 rm -f -r conftest* confdefs.h
3013 $as_echo "/* confdefs.h */" > confdefs.h
3015 # Predefined preprocessor variables.
3017 cat >>confdefs.h <<_ACEOF
3018 #define PACKAGE_NAME "$PACKAGE_NAME"
3021 cat >>confdefs.h <<_ACEOF
3022 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3025 cat >>confdefs.h <<_ACEOF
3026 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3029 cat >>confdefs.h <<_ACEOF
3030 #define PACKAGE_STRING "$PACKAGE_STRING"
3033 cat >>confdefs.h <<_ACEOF
3034 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3037 cat >>confdefs.h <<_ACEOF
3038 #define PACKAGE_URL "$PACKAGE_URL"
3042 # Let the site file select an alternate cache file if it wants to.
3043 # Prefer an explicitly selected file to automatically selected ones.
3046 if test -n "$CONFIG_SITE"; then
3047 ac_site_file1=$CONFIG_SITE
3048 elif test "x$prefix" != xNONE; then
3049 ac_site_file1=$prefix/share/config.site
3050 ac_site_file2=$prefix/etc/config.site
3052 ac_site_file1=$ac_default_prefix/share/config.site
3053 ac_site_file2=$ac_default_prefix/etc/config.site
3055 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3057 test "x$ac_site_file" = xNONE && continue
3058 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3059 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3060 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3061 sed 's/^/| /' "$ac_site_file" >&5
3066 if test -r "$cache_file"; then
3067 # Some versions of bash will fail to source /dev/null (special files
3068 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3069 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3070 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3071 $as_echo "$as_me: loading cache $cache_file" >&6;}
3073 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3074 *) . "./$cache_file";;
3078 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3079 $as_echo "$as_me: creating cache $cache_file" >&6;}
3083 as_fn_append ac_header_list " stdlib.h"
3084 as_fn_append ac_header_list " unistd.h"
3085 as_fn_append ac_header_list " sys/param.h"
3086 as_fn_append ac_func_list " readlinkat"
3087 as_fn_append ac_func_list " dup2"
3088 gl_getopt_required=GNU
3089 as_fn_append ac_header_list " getopt.h"
3090 as_fn_append ac_header_list " wchar.h"
3091 as_fn_append ac_header_list " stdint.h"
3092 as_fn_append ac_header_list " inttypes.h"
3093 as_fn_append ac_func_list " lstat"
3094 as_fn_append ac_func_list " alarm"
3095 as_fn_append ac_func_list " readlink"
3096 as_fn_append ac_header_list " sys/socket.h"
3097 as_fn_append ac_func_list " tzset"
3098 as_fn_append ac_func_list " symlink"
3099 as_fn_append ac_header_list " sys/stat.h"
3100 as_fn_append ac_header_list " sys/time.h"
3101 as_fn_append ac_func_list " localtime_r"
3102 # Check that the precious variables saved in the cache have kept the same
3104 ac_cache_corrupted=false
3105 for ac_var in $ac_precious_vars; do
3106 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3107 eval ac_new_set=\$ac_env_${ac_var}_set
3108 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3109 eval ac_new_val=\$ac_env_${ac_var}_value
3110 case $ac_old_set,$ac_new_set in
3112 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
3113 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3114 ac_cache_corrupted=: ;;
3116 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
3117 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
3118 ac_cache_corrupted=: ;;
3121 if test "x$ac_old_val" != "x$ac_new_val"; then
3122 # differences in whitespace do not lead to failure.
3123 ac_old_val_w=`echo x
$ac_old_val`
3124 ac_new_val_w=`echo x
$ac_new_val`
3125 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3126 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3127 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
3128 ac_cache_corrupted=:
3130 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
3131 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3132 eval $ac_var=\$ac_old_val
3134 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3135 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
3136 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3137 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3140 # Pass precious variables to config.status.
3141 if test "$ac_new_set" = set; then
3143 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
3144 *) ac_arg=$ac_var=$ac_new_val ;;
3146 case " $ac_configure_args " in
3147 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3148 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3152 if $ac_cache_corrupted; then
3153 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
3154 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3155 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3156 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3157 as_fn_error "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
3159 ## -------------------- ##
3160 ## Main body of script. ##
3161 ## -------------------- ##
3164 ac_cpp='$CPP $CPPFLAGS'
3165 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3166 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3167 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3170 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
3173 am__api_version='1.11'
3176 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3177 for ac_t in install-sh install.sh shtool; do
3178 if test -f "$ac_dir/$ac_t"; then
3180 ac_install_sh="$ac_aux_dir/$ac_t -c"
3185 if test -z "$ac_aux_dir"; then
3186 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3189 # These three variables are undocumented and unsupported,
3190 # and are intended to be withdrawn in a future Autoconf release.
3191 # They can cause serious problems if a builder's source tree is in a directory
3192 # whose full name contains unusual characters.
3193 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3194 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3195 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3198 # Find a good install program. We prefer a C program (faster),
3199 # so one script is as good as another. But avoid the broken or
3200 # incompatible versions:
3201 # SysV /etc/install, /usr/sbin/install
3202 # SunOS /usr/etc/install
3203 # IRIX /sbin/install
3205 # AmigaOS /C/install, which installs bootblocks on floppy discs
3206 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3207 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3208 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3209 # OS/2's system install, which has a completely different semantic
3210 # ./install, which can be erroneously created by make from ./install.sh.
3211 # Reject install programs that cannot install multiple files.
3212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3213 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3214 if test -z "$INSTALL"; then
3215 if test "${ac_cv_path_install+set}" = set; then :
3216 $as_echo_n "(cached) " >&6
3218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3222 test -z "$as_dir" && as_dir=.
3223 # Account for people who put trailing slashes in PATH elements.
3224 case $as_dir/ in #((
3225 ./ | .// | /[cC]/* | \
3226 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3227 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3230 # OSF1 and SCO ODT 3.0 have their own names for install.
3231 # Don't use installbsd from OSF since it installs stuff as root
3233 for ac_prog in ginstall scoinst install; do
3234 for ac_exec_ext in '' $ac_executable_extensions; do
3235 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3236 if test $ac_prog = install &&
3237 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3238 # AIX install. It has an incompatible calling convention.
3240 elif test $ac_prog = install &&
3241 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3242 # program-specific install script used by HP pwplus--don't use.
3245 rm -rf conftest.one conftest.two conftest.dir
3246 echo one > conftest.one
3247 echo two > conftest.two
3249 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3250 test -s conftest.one && test -s conftest.two &&
3251 test -s conftest.dir/conftest.one &&
3252 test -s conftest.dir/conftest.two
3254 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3267 rm -rf conftest.one conftest.two conftest.dir
3270 if test "${ac_cv_path_install+set}" = set; then
3271 INSTALL=$ac_cv_path_install
3273 # As a last resort, use the slow shell script. Don't cache a
3274 # value for INSTALL within a source directory, because that will
3275 # break other packages using the cache if that directory is
3276 # removed, or if the value is a relative name.
3277 INSTALL=$ac_install_sh
3280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3281 $as_echo "$INSTALL" >&6; }
3283 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3284 # It thinks the first close brace ends the variable substitution.
3285 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3287 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3289 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3292 $as_echo_n "checking whether build environment is sane... " >&6; }
3295 echo timestamp > conftest.file
3296 # Reject unsafe characters in $srcdir or the absolute working directory
3297 # name. Accept space and tab only in the latter.
3301 *[\\\"\#\$\&\'\`$am_lf]*)
3302 as_fn_error
"unsafe absolute working directory name" "$LINENO" 5;;
3305 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
3306 as_fn_error
"unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3309 # Do `set' in a subshell so we don't clobber the current shell's
3310 # arguments. Must try -L first in case configure is actually a
3311 # symlink; some systems play weird games with the mod time of symlinks
3312 # (eg FreeBSD returns the mod time of the symlink's containing
3315 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3316 if test "$*" = "X"; then
3318 set X
`ls -t "$srcdir/configure" conftest.file`
3321 if test "$*" != "X $srcdir/configure conftest.file" \
3322 && test "$*" != "X conftest.file $srcdir/configure"; then
3324 # If neither matched, then we have a broken ls. This can happen
3325 # if, for instance, CONFIG_SHELL is bash and it inherits a
3326 # broken ls alias from the environment. This has actually
3327 # happened. Such a system could not be considered "sane".
3328 as_fn_error
"ls -t appears to fail. Make sure there is not a broken
3329 alias in your environment" "$LINENO" 5
3332 test "$2" = conftest.
file
3338 as_fn_error
"newly created file is older than distributed files!
3339 Check your system clock" "$LINENO" 5
3341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3342 $as_echo "yes" >&6; }
3343 test "$program_prefix" != NONE
&&
3344 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
3345 # Use a double $ so make ignores it.
3346 test "$program_suffix" != NONE
&&
3347 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
3348 # Double any \ or $.
3349 # By default was `s,x,x', remove it if useless.
3350 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
3351 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
3353 # expand $ac_aux_dir to an absolute path
3354 am_aux_dir
=`cd $ac_aux_dir && pwd`
3356 if test x
"${MISSING+set}" != xset
; then
3359 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
3361 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
3364 # Use eval to expand $SHELL
3365 if eval "$MISSING --run true"; then
3366 am_missing_run
="$MISSING --run "
3369 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3370 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3373 if test x
"${install_sh}" != xset
; then
3376 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
3378 install_sh
="\${SHELL} $am_aux_dir/install-sh"
3382 # Installed binaries are usually stripped using `strip' when the user
3383 # run `make install-strip'. However `strip' might not be the right
3384 # tool to use in cross-compilation environments, therefore Automake
3385 # will honor the `STRIP' environment variable to overrule this program.
3386 if test "$cross_compiling" != no
; then
3387 if test -n "$ac_tool_prefix"; then
3388 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3389 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
3390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3391 $as_echo_n "checking for $ac_word... " >&6; }
3392 if test "${ac_cv_prog_STRIP+set}" = set; then :
3393 $as_echo_n "(cached) " >&6
3395 if test -n "$STRIP"; then
3396 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
3398 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3402 test -z "$as_dir" && as_dir
=.
3403 for ac_exec_ext
in '' $ac_executable_extensions; do
3404 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3405 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
3406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3415 STRIP
=$ac_cv_prog_STRIP
3416 if test -n "$STRIP"; then
3417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3418 $as_echo "$STRIP" >&6; }
3420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3421 $as_echo "no" >&6; }
3426 if test -z "$ac_cv_prog_STRIP"; then
3428 # Extract the first word of "strip", so it can be a program name with args.
3429 set dummy strip
; ac_word
=$2
3430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3431 $as_echo_n "checking for $ac_word... " >&6; }
3432 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3433 $as_echo_n "(cached) " >&6
3435 if test -n "$ac_ct_STRIP"; then
3436 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
3438 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3442 test -z "$as_dir" && as_dir
=.
3443 for ac_exec_ext
in '' $ac_executable_extensions; do
3444 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3445 ac_cv_prog_ac_ct_STRIP
="strip"
3446 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3455 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
3456 if test -n "$ac_ct_STRIP"; then
3457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3458 $as_echo "$ac_ct_STRIP" >&6; }
3460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3461 $as_echo "no" >&6; }
3464 if test "x$ac_ct_STRIP" = x
; then
3467 case $cross_compiling:$ac_tool_warned in
3469 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3470 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3471 ac_tool_warned
=yes ;;
3476 STRIP
="$ac_cv_prog_STRIP"
3480 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
3482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3483 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3484 if test -z "$MKDIR_P"; then
3485 if test "${ac_cv_path_mkdir+set}" = set; then :
3486 $as_echo_n "(cached) " >&6
3488 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3489 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
3492 test -z "$as_dir" && as_dir
=.
3493 for ac_prog
in mkdir gmkdir
; do
3494 for ac_exec_ext
in '' $ac_executable_extensions; do
3495 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } ||
continue
3496 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3497 'mkdir (GNU coreutils) '* | \
3498 'mkdir (coreutils) '* | \
3499 'mkdir (fileutils) '4.1*)
3500 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
3510 test -d .
/--version && rmdir .
/--version
3511 if test "${ac_cv_path_mkdir+set}" = set; then
3512 MKDIR_P
="$ac_cv_path_mkdir -p"
3514 # As a last resort, use the slow shell script. Don't cache a
3515 # value for MKDIR_P within a source directory, because that will
3516 # break other packages using the cache if that directory is
3517 # removed, or if the value is a relative name.
3518 MKDIR_P
="$ac_install_sh -d"
3521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3522 $as_echo "$MKDIR_P" >&6; }
3527 [\\/$
]* | ?
:[\\/]*) ;;
3528 */*) mkdir_p
="\$(top_builddir)/$mkdir_p" ;;
3531 for ac_prog
in gawk mawk nawk
awk
3533 # Extract the first word of "$ac_prog", so it can be a program name with args.
3534 set dummy
$ac_prog; ac_word
=$2
3535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3536 $as_echo_n "checking for $ac_word... " >&6; }
3537 if test "${ac_cv_prog_AWK+set}" = set; then :
3538 $as_echo_n "(cached) " >&6
3540 if test -n "$AWK"; then
3541 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
3543 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3547 test -z "$as_dir" && as_dir
=.
3548 for ac_exec_ext
in '' $ac_executable_extensions; do
3549 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3550 ac_cv_prog_AWK
="$ac_prog"
3551 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3561 if test -n "$AWK"; then
3562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3563 $as_echo "$AWK" >&6; }
3565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3566 $as_echo "no" >&6; }
3570 test -n "$AWK" && break
3573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3574 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3576 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3577 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3578 $as_echo_n "(cached) " >&6
3580 cat >conftest.
make <<\_ACEOF
3583 @
echo '@@@%%%=$(MAKE)=@@@%%%'
3585 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3586 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3588 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
3590 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
3594 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
3595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3596 $as_echo "yes" >&6; }
3599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3600 $as_echo "no" >&6; }
3601 SET_MAKE
="MAKE=${MAKE-make}"
3604 rm -rf .tst
2>/dev
/null
3605 mkdir .tst
2>/dev
/null
3606 if test -d .tst
; then
3611 rmdir .tst
2>/dev
/null
3613 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3614 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3615 # is not polluted with repeated "-I."
3616 am__isrc
=' -I$(srcdir)'
3617 # test to see if srcdir already configured
3618 if test -f $srcdir/config.status
; then
3619 as_fn_error
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3623 # test whether we have cygpath
3624 if test -z "$CYGPATH_W"; then
3625 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
3626 CYGPATH_W
='cygpath -w'
3633 # Define the identity of the package.
3638 cat >>confdefs.h
<<_ACEOF
3639 #define PACKAGE "$PACKAGE"
3643 cat >>confdefs.h
<<_ACEOF
3644 #define VERSION "$VERSION"
3647 # Some tools Automake needs.
3649 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3652 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
3655 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3658 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
3661 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
3663 # We need awk for the "check" target. The system "awk" is bad on
3665 # Always define AMTAR for backward compatibility.
3667 AMTAR
=${AMTAR-"${am_missing_run}tar"}
3669 am__tar
='${AMTAR} chof - "$$tardir"'; am__untar
='${AMTAR} xf -'
3678 lispdir
='${datadir}/emacs/${version}/lisp'
3679 locallisppath
='${datadir}/emacs/${version}/site-lisp:'\
3680 '${datadir}/emacs/site-lisp'
3681 lisppath
='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
3682 etcdir
='${datadir}/emacs/${version}/etc'
3683 archlibdir
='${libexecdir}/emacs/${version}/${configuration}'
3684 docdir
='${datadir}/emacs/${version}/etc'
3685 gamedir
='${localstatedir}/games/emacs'
3690 # Check whether --with-pop was given.
3691 if test "${with_pop+set}" = set; then :
3697 if test "$with_pop" = yes; then
3698 $as_echo "#define MAIL_USE_POP 1" >>confdefs.h
3703 # Check whether --with-kerberos was given.
3704 if test "${with_kerberos+set}" = set; then :
3705 withval
=$with_kerberos;
3710 if test "$with_kerberos" != no
; then
3711 $as_echo "#define KERBEROS 1" >>confdefs.h
3716 # Check whether --with-kerberos5 was given.
3717 if test "${with_kerberos5+set}" = set; then :
3718 withval
=$with_kerberos5;
3723 if test "${with_kerberos5}" != no
; then
3724 if test "${with_kerberos}" = no
; then
3726 $as_echo "#define KERBEROS 1" >>confdefs.h
3730 $as_echo "#define KERBEROS5 1" >>confdefs.h
3735 # Check whether --with-hesiod was given.
3736 if test "${with_hesiod+set}" = set; then :
3737 withval
=$with_hesiod;
3742 if test "$with_hesiod" != no
; then
3744 $as_echo "#define HESIOD 1" >>confdefs.h
3749 # Check whether --with-mmdf was given.
3750 if test "${with_mmdf+set}" = set; then :
3756 if test "$with_mmdf" != no
; then
3758 $as_echo "#define MAIL_USE_MMDF 1" >>confdefs.h
3763 # Check whether --with-mail-unlink was given.
3764 if test "${with_mail_unlink+set}" = set; then :
3765 withval
=$with_mail_unlink;
3770 if test "$with_mail_unlink" != no
; then
3772 $as_echo "#define MAIL_UNLINK_SPOOL 1" >>confdefs.h
3777 # Check whether --with-mailhost was given.
3778 if test "${with_mailhost+set}" = set; then :
3779 withval
=$with_mailhost;
3780 cat >>confdefs.h
<<_ACEOF
3781 #define MAILHOST "$withval"
3788 # Check whether --with-sound was given.
3789 if test "${with_sound+set}" = set; then :
3790 withval
=$with_sound;
3797 # Check whether --with-sync-input was given.
3798 if test "${with_sync_input+set}" = set; then :
3799 withval
=$with_sync_input;
3804 if test "$with_sync_input" = yes; then
3806 $as_echo "#define SYNC_INPUT 1" >>confdefs.h
3811 # Check whether --with-x-toolkit was given.
3812 if test "${with_x_toolkit+set}" = set; then :
3813 withval
=$with_x_toolkit; case "${withval}" in
3814 y | ye |
yes ) val
=gtk
;;
3816 l | lu | luc | luci | lucid
) val
=lucid
;;
3817 a |
at | ath | athe | athen | athena
) val
=athena
;;
3818 m | mo | mot | moti | motif
) val
=motif
;;
3819 g | gt | gtk
) val
=gtk
;;
3822 as_fn_error
"\`--with-x-toolkit=$withval' is invalid;
3823 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif', \`gtk' or
3824 \`gtk3'. \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." "$LINENO" 5
3833 # Check whether --with-wide-int was given.
3834 if test "${with_wide_int+set}" = set; then :
3835 withval
=$with_wide_int;
3840 if test "$with_wide_int" = yes; then
3842 $as_echo "#define WIDE_EMACS_INT 1" >>confdefs.h
3847 # Check whether --with-xpm was given.
3848 if test "${with_xpm+set}" = set; then :
3855 # Check whether --with-jpeg was given.
3856 if test "${with_jpeg+set}" = set; then :
3863 # Check whether --with-tiff was given.
3864 if test "${with_tiff+set}" = set; then :
3871 # Check whether --with-gif was given.
3872 if test "${with_gif+set}" = set; then :
3879 # Check whether --with-png was given.
3880 if test "${with_png+set}" = set; then :
3887 # Check whether --with-rsvg was given.
3888 if test "${with_rsvg+set}" = set; then :
3895 # Check whether --with-xml2 was given.
3896 if test "${with_xml2+set}" = set; then :
3903 # Check whether --with-imagemagick was given.
3904 if test "${with_imagemagick+set}" = set; then :
3905 withval
=$with_imagemagick;
3907 with_imagemagick
=yes
3912 # Check whether --with-xft was given.
3913 if test "${with_xft+set}" = set; then :
3920 # Check whether --with-libotf was given.
3921 if test "${with_libotf+set}" = set; then :
3922 withval
=$with_libotf;
3928 # Check whether --with-m17n-flt was given.
3929 if test "${with_m17n_flt+set}" = set; then :
3930 withval
=$with_m17n_flt;
3937 # Check whether --with-toolkit-scroll-bars was given.
3938 if test "${with_toolkit_scroll_bars+set}" = set; then :
3939 withval
=$with_toolkit_scroll_bars;
3941 with_toolkit_scroll_bars
=yes
3945 # Check whether --with-xaw3d was given.
3946 if test "${with_xaw3d+set}" = set; then :
3947 withval
=$with_xaw3d;
3953 # Check whether --with-xim was given.
3954 if test "${with_xim+set}" = set; then :
3961 # Check whether --with-ns was given.
3962 if test "${with_ns+set}" = set; then :
3970 # Check whether --with-gpm was given.
3971 if test "${with_gpm+set}" = set; then :
3978 # Check whether --with-dbus was given.
3979 if test "${with_dbus+set}" = set; then :
3986 # Check whether --with-gconf was given.
3987 if test "${with_gconf+set}" = set; then :
3988 withval
=$with_gconf;
3994 # Check whether --with-selinux was given.
3995 if test "${with_selinux+set}" = set; then :
3996 withval
=$with_selinux;
4002 # Check whether --with-gnutls was given.
4003 if test "${with_gnutls+set}" = set; then :
4004 withval
=$with_gnutls;
4010 ## For the times when you want to build Emacs but don't have
4011 ## a suitable makeinfo, and can live without the manuals.
4013 # Check whether --with-makeinfo was given.
4014 if test "${with_makeinfo+set}" = set; then :
4015 withval
=$with_makeinfo;
4021 ## This is an option because I do not know if all info/man support
4022 ## compressed files, nor how to test if they do so.
4024 # Check whether --with-compress-info was given.
4025 if test "${with_compress_info+set}" = set; then :
4026 withval
=$with_compress_info;
4028 with_compress_info
=yes
4031 if test $with_compress_info = yes; then
4039 # Check whether --with-pkg-config-prog was given.
4040 if test "${with_pkg_config_prog+set}" = set; then :
4041 withval
=$with_pkg_config_prog;
4044 if test "X${with_pkg_config_prog}" != X
; then
4045 if test "${with_pkg_config_prog}" != yes; then
4046 PKG_CONFIG
="${with_pkg_config_prog}"
4052 # Check whether --with-crt-dir was given.
4053 if test "${with_crt_dir+set}" = set; then :
4054 withval
=$with_crt_dir;
4057 CRT_DIR
="${with_crt_dir}"
4060 # Check whether --with-gameuser was given.
4061 if test "${with_gameuser+set}" = set; then :
4062 withval
=$with_gameuser;
4065 test "X${with_gameuser}" != X
&& test "${with_gameuser}" != yes \
4066 && gameuser
="${with_gameuser}"
4067 test "X$gameuser" = X
&& gameuser
=games
4070 # Check whether --with-gnustep-conf was given.
4071 if test "${with_gnustep_conf+set}" = set; then :
4072 withval
=$with_gnustep_conf;
4075 test "X${with_gnustep_conf}" != X
&& test "${with_gnustep_conf}" != yes && \
4076 GNUSTEP_CONFIG_FILE
="${with_gnustep_conf}"
4077 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
4078 GNUSTEP_CONFIG_FILE
=/etc
/GNUstep
/GNUstep.conf
4080 # Check whether --enable-ns-self-contained was given.
4081 if test "${enable_ns_self_contained+set}" = set; then :
4082 enableval
=$enable_ns_self_contained; EN_NS_SELF_CONTAINED
=$enableval
4084 EN_NS_SELF_CONTAINED
=yes
4088 # Check whether --enable-asserts was given.
4089 if test "${enable_asserts+set}" = set; then :
4090 enableval
=$enable_asserts; USE_XASSERTS
=$enableval
4096 # Check whether --enable-maintainer-mode was given.
4097 if test "${enable_maintainer_mode+set}" = set; then :
4098 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
4100 USE_MAINTAINER_MODE
=yes
4103 if test $USE_MAINTAINER_MODE = yes; then
4110 # Check whether --enable-locallisppath was given.
4111 if test "${enable_locallisppath+set}" = set; then :
4112 enableval
=$enable_locallisppath; if test "${enableval}" = "no"; then
4114 elif test "${enableval}" != "yes"; then
4115 locallisppath
=${enableval}
4120 # Check whether --enable-checking was given.
4121 if test "${enable_checking+set}" = set; then :
4122 enableval
=$enable_checking; ac_checking_flags
="${enableval}"
4125 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
4126 for check
in $ac_checking_flags
4129 # these set all the flags to specific states
4130 yes) ac_enable_checking
=1 ;;
4131 no
) ac_enable_checking
= ;
4132 ac_gc_check_stringbytes
= ;
4133 ac_gc_check_string_overrun
= ;
4134 ac_gc_check_string_free_list
= ;
4135 ac_xmalloc_overrun
= ;
4136 ac_gc_check_cons_list
= ;;
4137 all
) ac_enable_checking
=1 ;
4138 ac_gc_check_stringbytes
=1 ;
4139 ac_gc_check_string_overrun
=1 ;
4140 ac_gc_check_string_free_list
=1 ;
4141 ac_xmalloc_overrun
=1 ;
4142 ac_gc_check_cons_list
=1 ;;
4143 # these enable particular checks
4144 stringbytes
) ac_gc_check_stringbytes
=1 ;;
4145 stringoverrun
) ac_gc_check_string_overrun
=1 ;;
4146 stringfreelist
) ac_gc_check_string_free_list
=1 ;;
4147 xmallocoverrun
) ac_xmalloc_overrun
=1 ;;
4148 conslist
) ac_gc_check_cons_list
=1 ;;
4149 *) as_fn_error
"unknown check category $check" "$LINENO" 5 ;;
4154 if test x
$ac_enable_checking != x
; then
4156 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
4159 if test x
$ac_gc_check_stringbytes != x
; then
4161 $as_echo "#define GC_CHECK_STRING_BYTES 1" >>confdefs.h
4164 if test x
$ac_gc_check_string_overrun != x
; then
4166 $as_echo "#define GC_CHECK_STRING_OVERRUN 1" >>confdefs.h
4169 if test x
$ac_gc_check_string_free_list != x
; then
4171 $as_echo "#define GC_CHECK_STRING_FREE_LIST 1" >>confdefs.h
4174 if test x
$ac_xmalloc_overrun != x
; then
4176 $as_echo "#define XMALLOC_OVERRUN_CHECK 1" >>confdefs.h
4179 if test x
$ac_gc_check_cons_list != x
; then
4181 $as_echo "#define GC_CHECK_CONS_LIST 1" >>confdefs.h
4185 # Check whether --enable-use-lisp-union-type was given.
4186 if test "${enable_use_lisp_union_type+set}" = set; then :
4187 enableval
=$enable_use_lisp_union_type; if test "${enableval}" != "no"; then
4189 $as_echo "#define USE_LISP_UNION_TYPE 1" >>confdefs.h
4196 # Check whether --enable-profiling was given.
4197 if test "${enable_profiling+set}" = set; then :
4198 enableval
=$enable_profiling; ac_enable_profiling
="${enableval}"
4201 if test x
$ac_enable_profiling != x
; then
4202 PROFILING_CFLAGS
="-DPROFILING=1 -pg"
4208 # Check whether --enable-autodepend was given.
4209 if test "${enable_autodepend+set}" = set; then :
4210 enableval
=$enable_autodepend; ac_enable_autodepend
="${enableval}"
4212 ac_enable_autodepend
=yes
4216 #### Make srcdir absolute, if it isn't already. It's important to
4217 #### avoid running the path through pwd unnecessarily, since pwd can
4218 #### give you automounter prefixes, which can go away. We do all this
4219 #### so Emacs can find its files when run uninstalled.
4220 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
4225 ## We may be able to use the $PWD environment variable to make this
4226 ## absolute. But sometimes PWD is inaccurate.
4227 ## Note: we used to use ${PWD} at the end instead of `pwd`,
4228 ## but that tested only for a well-formed and valid PWD,
4229 ## it did not object when PWD was well-formed and valid but just wrong.
4230 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
4234 srcdir
="`(cd ${srcdir}; pwd)`"
4237 * ) srcdir
="`(cd ${srcdir}; pwd)`" ;;
4240 #### Given the configuration name, set machfile and opsysfile to the
4241 #### names of the m/*.h and s/*.h files we should use.
4243 ### Canonicalize the configuration name.
4245 # Make sure we can run config.sub.
4246 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
4247 as_fn_error
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4250 $as_echo_n "checking build system type... " >&6; }
4251 if test "${ac_cv_build+set}" = set; then :
4252 $as_echo_n "(cached) " >&6
4254 ac_build_alias
=$build_alias
4255 test "x$ac_build_alias" = x
&&
4256 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
4257 test "x$ac_build_alias" = x
&&
4258 as_fn_error
"cannot guess build type; you must specify one" "$LINENO" 5
4259 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4260 as_fn_error
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4264 $as_echo "$ac_cv_build" >&6; }
4265 case $ac_cv_build in
4267 *) as_fn_error
"invalid value of canonical build" "$LINENO" 5;;
4270 ac_save_IFS
=$IFS; IFS
='-'
4276 # Remember, the first character of IFS is used to create $*,
4277 # except with old shells:
4280 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
4283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4284 $as_echo_n "checking host system type... " >&6; }
4285 if test "${ac_cv_host+set}" = set; then :
4286 $as_echo_n "(cached) " >&6
4288 if test "x$host_alias" = x
; then
4289 ac_cv_host
=$ac_cv_build
4291 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4292 as_fn_error
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4297 $as_echo "$ac_cv_host" >&6; }
4300 *) as_fn_error
"invalid value of canonical host" "$LINENO" 5;;
4303 ac_save_IFS
=$IFS; IFS
='-'
4309 # Remember, the first character of IFS is used to create $*,
4310 # except with old shells:
4313 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
4317 configuration
=${host_alias-${build_alias-$host}}
4321 ### If you add support for a new configuration, add code to this
4322 ### switch statement to recognize your configuration name and select
4323 ### the appropriate operating system and machine description files.
4325 ### You would hope that you could choose an m/*.h file pretty much
4326 ### based on the machine portion of the configuration name, and an s/*.h
4327 ### file based on the operating system portion. However, it turns out
4328 ### that each m/*.h file is pretty manufacturer-specific - for
4329 ### example mips.h is MIPS
4330 ### So we basically have to have a special case for each
4331 ### configuration name.
4333 ### As far as handling version numbers on operating systems is
4334 ### concerned, make sure things will fail in a fixable way. If
4335 ### /etc/MACHINES doesn't say anything about version numbers, be
4336 ### prepared to handle anything reasonably. If version numbers
4337 ### matter, be sure /etc/MACHINES says something about it.
4339 machine
='' opsys
='' unported
=no
4340 case "${canonical}" in
4345 case ${canonical} in
4346 alpha
*) machine
=alpha
;;
4347 s390-
*) machine
=ibms390
;;
4348 s390x-
*) machine
=ibms390x
;;
4349 powerpc
*) machine
=macppc
;;
4350 sparc
*) machine
=sparc
;;
4351 ia64
*) machine
=ia64
;;
4352 m68k
*) machine
=m68k
;;
4353 x86_64
*) machine
=amdx86-64
;;
4360 case "${canonical}" in
4361 alpha
*) machine
=alpha
;;
4362 amd64-
*|x86_64-
*) machine
=amdx86-64
;;
4363 ia64-
*) machine
=ia64
;;
4364 i
[3456]86-*) machine
=intel386
;;
4365 powerpc-
*) machine
=macppc
;;
4366 sparc-
*) machine
=sparc
;;
4367 sparc64-
*) machine
=sparc
;;
4371 ## FreeBSD kernel + glibc based userland
4374 case "${canonical}" in
4375 alpha
*) machine
=alpha
;;
4376 amd64-
*|x86_64-
*) machine
=amdx86-64
;;
4377 ia64-
*) machine
=ia64
;;
4378 i
[3456]86-*) machine
=intel386
;;
4379 powerpc-
*) machine
=macppc
;;
4380 sparc-
*) machine
=sparc
;;
4381 sparc64-
*) machine
=sparc
;;
4388 case "${canonical}" in
4389 alpha
*) machine
=alpha
;;
4390 x86_64-
*) machine
=amdx86-64
;;
4391 i
[3456]86-*) machine
=intel386
;;
4392 m68k-
*) machine
=m68k
;;
4393 powerpc-
*) machine
=macppc
;;
4394 sparc
*-) machine
=sparc
;;
4395 vax-
*) machine
=vax
;;
4402 case "${canonical}" in
4403 alpha
*) machine
=alpha
;;
4404 x86_64-
*) machine
=amdx86-64
;;
4405 i386-
*) machine
=intel386
;;
4406 powerpc-
*) machine
=macppc
;;
4407 sparc
*) machine
=sparc
;;
4408 vax-
*) machine
=vax
;;
4412 ## Apple Darwin / Mac OS X
4414 case "${canonical}" in
4415 i
[3456]86-* ) machine
=intel386
;;
4416 powerpc-
* ) machine
=macppc
;;
4417 x86_64-
* ) machine
=amdx86-64
;;
4421 # Define CPP as follows to make autoconf work correctly.
4422 CPP
="${CC-cc} -E -no-cpp-precomp"
4423 # Use fink packages if available.
4424 if test -d /sw
/include
&& test -d /sw
/lib
; then
4425 GCC_TEST_OPTIONS
="-I/sw/include -L/sw/lib"
4426 CPP
="${CPP} ${GCC_TEST_OPTIONS}"
4427 NON_GCC_TEST_OPTIONS
=${GCC_TEST_OPTIONS}
4431 ## HP 9000 series 700 and 800, running HP/UX
4432 hppa
*-hp-hpux10.2
* )
4435 hppa
*-hp-hpux1[1-9]* )
4437 CFLAGS
="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
4440 ia64
*-hp-hpux1[1-9]* )
4441 machine
=hp800 opsys
=hpux11
4442 ## FIXME. Peter O'Gorman reports that dumping using unexelf.o doesn't
4443 ## work either: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=6811
4447 hppa
*-*-linux-gnu* )
4448 machine
=hp800 opsys
=gnu-linux
4452 rs6000-ibm-aix4.
[23]* )
4453 machine
=ibmrs6000 opsys
=aix4-2
4455 powerpc-ibm-aix4.
[23]* )
4456 machine
=ibmrs6000 opsys
=aix4-2
4458 rs6000-ibm-aix
[56]* )
4459 machine
=ibmrs6000 opsys
=aix4-2
4461 powerpc-ibm-aix
[56]* )
4462 machine
=ibmrs6000 opsys
=aix4-2
4465 ## Silicon Graphics machines
4468 machine
=iris4d opsys
=irix6-5
4469 # Without defining _LANGUAGE_C, things get masked out in the headers
4470 # so that, for instance, grepping for `free' in stdlib.h fails and
4471 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
4472 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
4473 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
4478 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* \
4479 | x86_64-
*-solaris2* | x86_64-
*-sunos5*)
4480 case "${canonical}" in
4481 i
[3456]86-*-* ) machine
=intel386
;;
4482 amd64-
*-*|x86_64-
*-*) machine
=amdx86-64
;;
4483 sparc
* ) machine
=sparc
;;
4486 case "${canonical}" in
4487 *-sunos5.6
* |
*-solaris2.6
* )
4489 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
4492 *-sunos5.
[7-9]* |
*-solaris2.
[7-9]* )
4494 emacs_check_sunpro_c
=yes
4495 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
4497 *-sunos5* |
*-solaris* )
4499 emacs_check_sunpro_c
=yes
4500 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
4503 ## Watch out for a compiler that we know will not work.
4504 case "${canonical}" in
4505 *-solaris* |
*-sunos5* )
4506 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
4507 ## /usr/ucb/cc doesn't work;
4508 ## we should find some other compiler that does work.
4516 ## Intel 386 machines where we don't care about the manufacturer.
4519 case "${canonical}" in
4520 *-cygwin ) opsys
=cygwin
;;
4521 *-darwin* ) opsys
=darwin
4522 CPP
="${CC-cc} -E -no-cpp-precomp"
4524 *-sysv4.2uw
* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
4525 *-sysv5uw* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
4526 *-sysv5OpenUNIX* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
4527 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
4536 ### If the code above didn't choose an operating system, just choose
4537 ### an operating system based on the configuration name. You really
4538 ### only want to use this when you have no idea what the right
4539 ### operating system is; if you know what operating systems a machine
4540 ### runs, it's cleaner to make it explicit in the case statement
4542 if test x
"${opsys}" = x
; then
4543 case "${canonical}" in
4544 *-gnu* ) opsys
=gnu
;;
4553 if test $unported = yes; then
4554 as_fn_error
"Emacs hasn't been ported to \`${canonical}' systems.
4555 Check \`etc/MACHINES' for recognized configuration names." "$LINENO" 5
4558 if test -n "$machine"; then
4559 machfile
="m/${machine}.h"
4563 opsysfile
="s/${opsys}.h"
4566 #### Choose a compiler.
4567 test -n "$CC" && cc_specified
=yes
4569 # Save the value of CFLAGS that the user specified.
4570 SPECIFIED_CFLAGS
="$CFLAGS"
4573 ac_cpp
='$CPP $CPPFLAGS'
4574 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4575 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4576 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4577 if test -n "$ac_tool_prefix"; then
4578 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4579 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
4580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4581 $as_echo_n "checking for $ac_word... " >&6; }
4582 if test "${ac_cv_prog_CC+set}" = set; then :
4583 $as_echo_n "(cached) " >&6
4585 if test -n "$CC"; then
4586 ac_cv_prog_CC
="$CC" # Let the user override the test.
4588 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4592 test -z "$as_dir" && as_dir
=.
4593 for ac_exec_ext
in '' $ac_executable_extensions; do
4594 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4595 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
4596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4606 if test -n "$CC"; then
4607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4608 $as_echo "$CC" >&6; }
4610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4611 $as_echo "no" >&6; }
4616 if test -z "$ac_cv_prog_CC"; then
4618 # Extract the first word of "gcc", so it can be a program name with args.
4619 set dummy gcc
; ac_word
=$2
4620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4621 $as_echo_n "checking for $ac_word... " >&6; }
4622 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4623 $as_echo_n "(cached) " >&6
4625 if test -n "$ac_ct_CC"; then
4626 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4628 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4632 test -z "$as_dir" && as_dir
=.
4633 for ac_exec_ext
in '' $ac_executable_extensions; do
4634 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4635 ac_cv_prog_ac_ct_CC
="gcc"
4636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4645 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4646 if test -n "$ac_ct_CC"; then
4647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4648 $as_echo "$ac_ct_CC" >&6; }
4650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4651 $as_echo "no" >&6; }
4654 if test "x$ac_ct_CC" = x
; then
4657 case $cross_compiling:$ac_tool_warned in
4659 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4660 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4661 ac_tool_warned
=yes ;;
4669 if test -z "$CC"; then
4670 if test -n "$ac_tool_prefix"; then
4671 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4672 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
4673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4674 $as_echo_n "checking for $ac_word... " >&6; }
4675 if test "${ac_cv_prog_CC+set}" = set; then :
4676 $as_echo_n "(cached) " >&6
4678 if test -n "$CC"; then
4679 ac_cv_prog_CC
="$CC" # Let the user override the test.
4681 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4685 test -z "$as_dir" && as_dir
=.
4686 for ac_exec_ext
in '' $ac_executable_extensions; do
4687 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4688 ac_cv_prog_CC
="${ac_tool_prefix}cc"
4689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4699 if test -n "$CC"; then
4700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4701 $as_echo "$CC" >&6; }
4703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4704 $as_echo "no" >&6; }
4710 if test -z "$CC"; then
4711 # Extract the first word of "cc", so it can be a program name with args.
4712 set dummy cc
; ac_word
=$2
4713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4714 $as_echo_n "checking for $ac_word... " >&6; }
4715 if test "${ac_cv_prog_CC+set}" = set; then :
4716 $as_echo_n "(cached) " >&6
4718 if test -n "$CC"; then
4719 ac_cv_prog_CC
="$CC" # Let the user override the test.
4722 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4726 test -z "$as_dir" && as_dir
=.
4727 for ac_exec_ext
in '' $ac_executable_extensions; do
4728 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4729 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4730 ac_prog_rejected
=yes
4734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4741 if test $ac_prog_rejected = yes; then
4742 # We found a bogon in the path, so make sure we never use it.
4743 set dummy
$ac_cv_prog_CC
4745 if test $# != 0; then
4746 # We chose a different compiler from the bogus one.
4747 # However, it has the same basename, so the bogon will be chosen
4748 # first if we set CC to just the basename; use the full file name.
4750 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
4756 if test -n "$CC"; then
4757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4758 $as_echo "$CC" >&6; }
4760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4761 $as_echo "no" >&6; }
4766 if test -z "$CC"; then
4767 if test -n "$ac_tool_prefix"; then
4768 for ac_prog
in cl.exe
4770 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4771 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4773 $as_echo_n "checking for $ac_word... " >&6; }
4774 if test "${ac_cv_prog_CC+set}" = set; then :
4775 $as_echo_n "(cached) " >&6
4777 if test -n "$CC"; then
4778 ac_cv_prog_CC
="$CC" # Let the user override the test.
4780 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4784 test -z "$as_dir" && as_dir
=.
4785 for ac_exec_ext
in '' $ac_executable_extensions; do
4786 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4787 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
4788 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4798 if test -n "$CC"; then
4799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4800 $as_echo "$CC" >&6; }
4802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4803 $as_echo "no" >&6; }
4807 test -n "$CC" && break
4810 if test -z "$CC"; then
4812 for ac_prog
in cl.exe
4814 # Extract the first word of "$ac_prog", so it can be a program name with args.
4815 set dummy
$ac_prog; ac_word
=$2
4816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4817 $as_echo_n "checking for $ac_word... " >&6; }
4818 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4819 $as_echo_n "(cached) " >&6
4821 if test -n "$ac_ct_CC"; then
4822 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4824 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4828 test -z "$as_dir" && as_dir
=.
4829 for ac_exec_ext
in '' $ac_executable_extensions; do
4830 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4831 ac_cv_prog_ac_ct_CC
="$ac_prog"
4832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4841 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4842 if test -n "$ac_ct_CC"; then
4843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4844 $as_echo "$ac_ct_CC" >&6; }
4846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4847 $as_echo "no" >&6; }
4851 test -n "$ac_ct_CC" && break
4854 if test "x$ac_ct_CC" = x
; then
4857 case $cross_compiling:$ac_tool_warned in
4859 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4860 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4861 ac_tool_warned
=yes ;;
4870 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4871 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4872 as_fn_error
"no acceptable C compiler found in \$PATH
4873 See \`config.log' for more details." "$LINENO" 5; }
4875 # Provide some information about the compiler.
4876 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4879 for ac_option
in --version -v -V -qversion; do
4880 { { ac_try
="$ac_compiler $ac_option >&5"
4882 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4883 *) ac_try_echo=$ac_try;;
4885 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4886 $as_echo "$ac_try_echo"; } >&5
4887 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4889 if test -s conftest.err; then
4891 ... rest of stderr output deleted ...
4892 10q' conftest.err >conftest.er1
4893 cat conftest.er1 >&5
4895 rm -f conftest.er1 conftest.err
4896 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4897 test $ac_status = 0; }
4900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4901 /* end confdefs.h. */
4911 ac_clean_files_save=$ac_clean_files
4912 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4913 # Try to create an executable without -o first, disregard a.out.
4914 # It will help us diagnose broken compilers, and finding out an intuition
4916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4917 $as_echo_n "checking whether the C compiler works... " >&6; }
4918 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
4920 # The possible output files:
4921 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4924 for ac_file in $ac_files
4927 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4928 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4933 if { { ac_try="$ac_link_default"
4935 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4936 *) ac_try_echo
=$ac_try;;
4938 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4939 $as_echo "$ac_try_echo"; } >&5
4940 (eval "$ac_link_default") 2>&5
4942 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4943 test $ac_status = 0; }; then :
4944 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4945 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4946 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4947 # so that the user can short-circuit this test for compilers unknown to
4949 for ac_file
in $ac_files ''
4951 test -f "$ac_file" ||
continue
4953 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
4956 # We found the default executable, but exeext='' is most
4960 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
4962 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4964 # We set ac_cv_exeext here because the later test for it is not
4965 # safe: cross compilers may not add the suffix if given an `-o'
4966 # argument, so we may need to know it at that point already.
4967 # Even if this section looks crufty: it has the advantage of
4974 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
4979 if test -z "$ac_file"; then :
4980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4981 $as_echo "no" >&6; }
4982 $as_echo "$as_me: failed program was:" >&5
4983 sed 's/^/| /' conftest.
$ac_ext >&5
4985 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4986 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4987 { as_fn_set_status
77
4988 as_fn_error
"C compiler cannot create executables
4989 See \`config.log' for more details." "$LINENO" 5; }; }
4991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4992 $as_echo "yes" >&6; }
4994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4995 $as_echo_n "checking for C compiler default output file name... " >&6; }
4996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4997 $as_echo "$ac_file" >&6; }
4998 ac_exeext
=$ac_cv_exeext
5000 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
5001 ac_clean_files
=$ac_clean_files_save
5002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
5003 $as_echo_n "checking for suffix of executables... " >&6; }
5004 if { { ac_try
="$ac_link"
5006 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5007 *) ac_try_echo=$ac_try;;
5009 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5010 $as_echo "$ac_try_echo"; } >&5
5011 (eval "$ac_link") 2>&5
5013 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5014 test $ac_status = 0; }; then :
5015 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
5016 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
5017 # work properly (i.e., refer to `conftest.exe'), while it won't with
5019 for ac_file
in conftest.exe conftest conftest.
*; do
5020 test -f "$ac_file" ||
continue
5022 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
5023 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
5029 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5030 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5031 as_fn_error
"cannot compute suffix of executables: cannot compile and link
5032 See \`config.log' for more details." "$LINENO" 5; }
5034 rm -f conftest conftest
$ac_cv_exeext
5035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
5036 $as_echo "$ac_cv_exeext" >&6; }
5038 rm -f conftest.
$ac_ext
5039 EXEEXT
=$ac_cv_exeext
5041 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5042 /* end confdefs.h. */
5047 FILE *f = fopen ("conftest.out", "w");
5048 return ferror (f) || fclose (f) != 0;
5054 ac_clean_files
="$ac_clean_files conftest.out"
5055 # Check that the compiler produces executables we can run. If not, either
5056 # the compiler is broken, or we cross compile.
5057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5058 $as_echo_n "checking whether we are cross compiling... " >&6; }
5059 if test "$cross_compiling" != yes; then
5060 { { ac_try
="$ac_link"
5062 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5063 *) ac_try_echo=$ac_try;;
5065 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5066 $as_echo "$ac_try_echo"; } >&5
5067 (eval "$ac_link") 2>&5
5069 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5070 test $ac_status = 0; }
5071 if { ac_try='./conftest$ac_cv_exeext'
5072 { { case "(($ac_try" in
5073 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5074 *) ac_try_echo
=$ac_try;;
5076 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5077 $as_echo "$ac_try_echo"; } >&5
5078 (eval "$ac_try") 2>&5
5080 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5081 test $ac_status = 0; }; }; then
5084 if test "$cross_compiling" = maybe
; then
5087 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5088 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5089 as_fn_error
"cannot run C compiled programs.
5090 If you meant to cross compile, use \`--host'.
5091 See \`config.log' for more details." "$LINENO" 5; }
5095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5096 $as_echo "$cross_compiling" >&6; }
5098 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
5099 ac_clean_files
=$ac_clean_files_save
5100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
5101 $as_echo_n "checking for suffix of object files... " >&6; }
5102 if test "${ac_cv_objext+set}" = set; then :
5103 $as_echo_n "(cached) " >&6
5105 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5106 /* end confdefs.h. */
5116 rm -f conftest.o conftest.obj
5117 if { { ac_try
="$ac_compile"
5119 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5120 *) ac_try_echo=$ac_try;;
5122 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5123 $as_echo "$ac_try_echo"; } >&5
5124 (eval "$ac_compile") 2>&5
5126 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5127 test $ac_status = 0; }; then :
5128 for ac_file in conftest.o conftest.obj conftest.*; do
5129 test -f "$ac_file" || continue;
5131 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5132 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5137 $as_echo "$as_me: failed program was:" >&5
5138 sed 's/^/| /' conftest.$ac_ext >&5
5140 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5141 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5142 as_fn_error "cannot compute suffix of object files
: cannot compile
5143 See \
`config.log' for more details." "$LINENO" 5; }
5145 rm -f conftest.$ac_cv_objext conftest.$ac_ext
5147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5148 $as_echo "$ac_cv_objext" >&6; }
5149 OBJEXT=$ac_cv_objext
5151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5152 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5153 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5154 $as_echo_n "(cached) " >&6
5156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5157 /* end confdefs.h. */
5170 if ac_fn_c_try_compile "$LINENO"; then :
5175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5176 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5180 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5181 if test $ac_compiler_gnu = yes; then
5186 ac_test_CFLAGS=${CFLAGS+set}
5187 ac_save_CFLAGS=$CFLAGS
5188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5189 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5190 if test "${ac_cv_prog_cc_g+set}" = set; then :
5191 $as_echo_n "(cached) " >&6
5193 ac_save_c_werror_flag=$ac_c_werror_flag
5194 ac_c_werror_flag=yes
5197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5198 /* end confdefs.h. */
5208 if ac_fn_c_try_compile "$LINENO"; then :
5212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5213 /* end confdefs.h. */
5223 if ac_fn_c_try_compile "$LINENO"; then :
5226 ac_c_werror_flag=$ac_save_c_werror_flag
5228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5229 /* end confdefs.h. */
5239 if ac_fn_c_try_compile "$LINENO"; then :
5242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5247 ac_c_werror_flag=$ac_save_c_werror_flag
5249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5250 $as_echo "$ac_cv_prog_cc_g" >&6; }
5251 if test "$ac_test_CFLAGS" = set; then
5252 CFLAGS=$ac_save_CFLAGS
5253 elif test $ac_cv_prog_cc_g = yes; then
5254 if test "$GCC" = yes; then
5260 if test "$GCC" = yes; then
5266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5267 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5268 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5269 $as_echo_n "(cached) " >&6
5271 ac_cv_prog_cc_c89=no
5273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5274 /* end confdefs.h. */
5277 #include <sys/types.h>
5278 #include <sys/stat.h>
5279 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5280 struct buf { int x; };
5281 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5282 static char *e (p, i)
5288 static char *f (char * (*g) (char **, int), char **p, ...)
5293 s = g (p, va_arg (v,int));
5298 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5299 function prototypes and stuff, but not '\xHH' hex character constants.
5300 These don't provoke an error unfortunately, instead are silently treated
5301 as 'x'. The following induces an error, until -std is added to get
5302 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5303 array size at least. It's necessary to write '\x00'==0 to get something
5304 that's true only with -std. */
5305 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5307 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5308 inside strings and character constants. */
5310 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5312 int test (int i, double x);
5313 struct s1 {int (*f) (int a);};
5314 struct s2 {int (*f) (double a);};
5315 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5321 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5326 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5327 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5329 CC="$ac_save_CC $ac_arg"
5330 if ac_fn_c_try_compile "$LINENO"; then :
5331 ac_cv_prog_cc_c89=$ac_arg
5333 rm -f core conftest.err conftest.$ac_objext
5334 test "x$ac_cv_prog_cc_c89" != "xno" && break
5336 rm -f conftest.$ac_ext
5341 case "x$ac_cv_prog_cc_c89" in
5343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5344 $as_echo "none needed" >&6; } ;;
5346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5347 $as_echo "unsupported" >&6; } ;;
5349 CC="$CC $ac_cv_prog_cc_c89"
5350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5351 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5353 if test "x$ac_cv_prog_cc_c89" != xno; then :
5358 ac_cpp='$CPP $CPPFLAGS'
5359 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5360 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5361 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5362 DEPDIR="${am__leading_dot}deps"
5364 ac_config_commands="$ac_config_commands depfiles"
5367 am_make=${MAKE-make}
5368 cat > confinc << 'END'
5370 @echo this is the am__doit target
5373 # If we don't find an include directive, just comment out the code.
5374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
5375 $as_echo_n "checking for style of include used by $am_make... " >&6; }
5379 # First try GNU make style include.
5380 echo "include confinc" > confmf
5381 # Ignore all kinds of additional output from `make'.
5382 case `$am_make -s -f confmf 2> /dev/null` in #(
5383 *the\ am__doit\ target*)
5389 # Now try BSD make style include.
5390 if test "$am__include" = "#"; then
5391 echo '.include
"confinc"' > confmf
5392 case `$am_make -s -f confmf 2> /dev/null` in #(
5393 *the\ am__doit\ target*)
5394 am__include=.include
5402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5403 $as_echo "$_am_result" >&6; }
5404 rm -f confinc confmf
5406 # Check whether --enable-dependency-tracking was given.
5407 if test "${enable_dependency_tracking+set}" = set; then :
5408 enableval=$enable_dependency_tracking;
5411 if test "x$enable_dependency_tracking" != xno; then
5412 am_depcomp="$ac_aux_dir/depcomp"
5415 if test "x$enable_dependency_tracking" != xno
; then
5425 depcc
="$CC" am_compiler_list
=
5427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5428 $as_echo_n "checking dependency style of $depcc... " >&6; }
5429 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5430 $as_echo_n "(cached) " >&6
5432 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5433 # We make a subdir and do the tests there. Otherwise we can end up
5434 # making bogus files that we don't know about and never remove. For
5435 # instance it was reported that on HP-UX the gcc test will end up
5436 # making a dummy file named `D' -- because `-MD' means `put the output
5439 # Copy depcomp to subdir because otherwise we won't find it if we're
5440 # using a relative directory.
5441 cp "$am_depcomp" conftest.dir
5443 # We will build objects and dependencies in a subdirectory because
5444 # it helps to detect inapplicable dependency modes. For instance
5445 # both Tru64's cc and ICC support -MD to output dependencies as a
5446 # side effect of compilation, but ICC will put the dependencies in
5447 # the current directory while Tru64 will put them in the object
5451 am_cv_CC_dependencies_compiler_type
=none
5452 if test "$am_compiler_list" = ""; then
5453 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5456 case " $depcc " in #(
5457 *\
-arch\
*\
-arch\
*) am__universal
=true
;;
5460 for depmode
in $am_compiler_list; do
5461 # Setup a source with many dependencies, because some compilers
5462 # like to wrap large dependency lists on column 80 (with \), and
5463 # we should not choose a depcomp mode which is confused by this.
5465 # We need to recreate these files for each test, as the compiler may
5466 # overwrite some of them when testing with obscure command lines.
5467 # This happens at least with the AIX C compiler.
5469 for i
in 1 2 3 4 5 6; do
5470 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
5471 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5472 # Solaris 8's {/usr,}/bin/sh.
5473 touch sub
/conftst
$i.h
5475 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5477 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5478 # mode. It turns out that the SunPro C++ compiler does not properly
5479 # handle `-M -o', and we need to detect this. Also, some Intel
5480 # versions had trouble with output in subdirs
5481 am__obj
=sub
/conftest.
${OBJEXT-o}
5482 am__minus_obj
="-o $am__obj"
5485 # This depmode causes a compiler race in universal mode.
5486 test "$am__universal" = false ||
continue
5489 # after this tag, mechanisms are not by side-effect, so they'll
5490 # only be used when explicitly requested
5491 if test "x$enable_dependency_tracking" = xyes
; then
5497 msvisualcpp | msvcmsys
)
5498 # This compiler won't grok `-c -o', but also, the minuso test has
5499 # not run yet. These depmodes are late enough in the game, and
5500 # so weak that their functioning should not be impacted.
5501 am__obj
=conftest.
${OBJEXT-o}
5506 if depmode
=$depmode \
5507 source=sub
/conftest.c object
=$am__obj \
5508 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
5509 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
5510 >/dev
/null
2>conftest.err
&&
5511 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
5512 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
5513 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
5514 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
5515 # icc doesn't choke on unknown options, it will just issue warnings
5516 # or remarks (even with -Werror). So we grep stderr for any message
5517 # that says an option was ignored or not supported.
5518 # When given -MP, icc 7.0 and 7.1 complain thusly:
5519 # icc: Command line warning: ignoring option '-M'; no argument required
5520 # The diagnosis changed in icc 8.0:
5521 # icc: Command line remark: option '-MP' not supported
5522 if (grep 'ignoring option' conftest.err ||
5523 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
5524 am_cv_CC_dependencies_compiler_type
=$depmode
5533 am_cv_CC_dependencies_compiler_type
=none
5537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5538 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5539 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
5542 test "x$enable_dependency_tracking" != xno \
5543 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
5545 am__fastdepCC_FALSE
='#'
5547 am__fastdepCC_TRUE
='#'
5548 am__fastdepCC_FALSE
=
5552 if test "x$CC" != xcc
; then
5553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5554 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5557 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5559 set dummy
$CC; ac_cc
=`$as_echo "$2" |
5560 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5561 if { as_var
=ac_cv_prog_cc_
${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
5562 $as_echo_n "(cached) " >&6
5564 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5565 /* end confdefs.h. */
5575 # Make sure it works both with $CC and with simple cc.
5576 # We do the test twice because some compilers refuse to overwrite an
5577 # existing .o file with -o, though they will create one.
5578 ac_try
='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5580 if { { case "(($ac_try" in
5581 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5582 *) ac_try_echo=$ac_try;;
5584 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5585 $as_echo "$ac_try_echo"; } >&5
5586 (eval "$ac_try") 2>&5
5588 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5589 test $ac_status = 0; } &&
5590 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5591 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5592 *) ac_try_echo
=$ac_try;;
5594 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5595 $as_echo "$ac_try_echo"; } >&5
5596 (eval "$ac_try") 2>&5
5598 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5599 test $ac_status = 0; };
5601 eval ac_cv_prog_cc_
${ac_cc}_c_o
=yes
5602 if test "x$CC" != xcc
; then
5603 # Test first that cc exists at all.
5604 if { ac_try
='cc -c conftest.$ac_ext >&5'
5605 { { case "(($ac_try" in
5606 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5607 *) ac_try_echo=$ac_try;;
5609 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5610 $as_echo "$ac_try_echo"; } >&5
5611 (eval "$ac_try") 2>&5
5613 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5614 test $ac_status = 0; }; }; then
5615 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5617 if { { case "(($ac_try" in
5618 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5619 *) ac_try_echo
=$ac_try;;
5621 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5622 $as_echo "$ac_try_echo"; } >&5
5623 (eval "$ac_try") 2>&5
5625 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5626 test $ac_status = 0; } &&
5627 test -f conftest2.
$ac_objext && { { 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; };
5641 # cc exists but doesn't like -o.
5642 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5647 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5649 rm -f core conftest*
5652 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5654 $as_echo "yes" >&6; }
5656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5657 $as_echo "no" >&6; }
5659 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5663 # FIXME: we rely on the cache variable name because
5664 # there is no other way.
5666 am_cc=`echo $2 |
sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5667 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5668 if test "$am_t" != yes; then
5669 # Losing compiler, so override with the script.
5670 # FIXME: It is wrong to rewrite CC.
5671 # But if we don't then we get into trouble of one sort or another.
5672 # A longer-term fix would be to have automake use am__CC in this case,
5673 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5674 CC="$am_aux_dir/compile $CC"
5679 # Initialize gnulib right after verifying that the C compiler works.
5680 if test -n "$ac_tool_prefix"; then
5681 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5682 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5684 $as_echo_n "checking for $ac_word... " >&6; }
5685 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5686 $as_echo_n "(cached) " >&6
5688 if test -n "$RANLIB"; then
5689 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5695 test -z "$as_dir" && as_dir=.
5696 for ac_exec_ext in '' $ac_executable_extensions; do
5697 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5698 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5699 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5708 RANLIB=$ac_cv_prog_RANLIB
5709 if test -n "$RANLIB"; then
5710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5711 $as_echo "$RANLIB" >&6; }
5713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5714 $as_echo "no" >&6; }
5719 if test -z "$ac_cv_prog_RANLIB"; then
5720 ac_ct_RANLIB=$RANLIB
5721 # Extract the first word of "ranlib", so it can be a program name with args.
5722 set dummy ranlib; ac_word=$2
5723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5724 $as_echo_n "checking for $ac_word... " >&6; }
5725 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5726 $as_echo_n "(cached) " >&6
5728 if test -n "$ac_ct_RANLIB"; then
5729 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5735 test -z "$as_dir" && as_dir=.
5736 for ac_exec_ext in '' $ac_executable_extensions; do
5737 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5738 ac_cv_prog_ac_ct_RANLIB="ranlib"
5739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5748 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5749 if test -n "$ac_ct_RANLIB"; then
5750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5751 $as_echo "$ac_ct_RANLIB" >&6; }
5753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5754 $as_echo "no" >&6; }
5757 if test "x$ac_ct_RANLIB" = x; then
5760 case $cross_compiling:$ac_tool_warned in
5762 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5763 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5764 ac_tool_warned=yes ;;
5766 RANLIB=$ac_ct_RANLIB
5769 RANLIB="$ac_cv_prog_RANLIB"
5774 ac_cpp='$CPP $CPPFLAGS'
5775 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5776 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5777 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5779 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5780 # On Suns, sometimes $CPP names a directory.
5781 if test -n "$CPP" && test -d "$CPP"; then
5784 if test -z "$CPP"; then
5785 if test "${ac_cv_prog_CPP+set}" = set; then :
5786 $as_echo_n "(cached) " >&6
5788 # Double quotes because CPP needs to be expanded
5789 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5792 for ac_c_preproc_warn_flag in '' yes
5794 # Use a header file that comes with gcc, so configuring glibc
5795 # with a fresh cross-compiler works.
5796 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5797 # <limits.h> exists even on freestanding compilers.
5798 # On the NeXT, cc -E runs the code through the compiler's parser,
5799 # not just through cpp. "Syntax error" is here to catch this case.
5800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5801 /* end confdefs.h. */
5803 # include <limits.h>
5805 # include <assert.h>
5809 if ac_fn_c_try_cpp "$LINENO"; then :
5812 # Broken: fails on valid input.
5815 rm -f conftest.err conftest.$ac_ext
5817 # OK, works on sane cases. Now check whether nonexistent headers
5818 # can be detected and how.
5819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5820 /* end confdefs.h. */
5821 #include <ac_nonexistent.h>
5823 if ac_fn_c_try_cpp "$LINENO"; then :
5824 # Broken: success on invalid input.
5827 # Passes both tests.
5831 rm -f conftest.err conftest.$ac_ext
5834 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5835 rm -f conftest.err conftest.
$ac_ext
5836 if $ac_preproc_ok; then :
5848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5849 $as_echo "$CPP" >&6; }
5851 for ac_c_preproc_warn_flag
in '' yes
5853 # Use a header file that comes with gcc, so configuring glibc
5854 # with a fresh cross-compiler works.
5855 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5856 # <limits.h> exists even on freestanding compilers.
5857 # On the NeXT, cc -E runs the code through the compiler's parser,
5858 # not just through cpp. "Syntax error" is here to catch this case.
5859 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5860 /* end confdefs.h. */
5862 # include <limits.h>
5864 # include <assert.h>
5868 if ac_fn_c_try_cpp
"$LINENO"; then :
5871 # Broken: fails on valid input.
5874 rm -f conftest.err conftest.
$ac_ext
5876 # OK, works on sane cases. Now check whether nonexistent headers
5877 # can be detected and how.
5878 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5879 /* end confdefs.h. */
5880 #include <ac_nonexistent.h>
5882 if ac_fn_c_try_cpp
"$LINENO"; then :
5883 # Broken: success on invalid input.
5886 # Passes both tests.
5890 rm -f conftest.err conftest.
$ac_ext
5893 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5894 rm -f conftest.err conftest.
$ac_ext
5895 if $ac_preproc_ok; then :
5898 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5899 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5900 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
5901 See \`config.log' for more details." "$LINENO" 5; }
5905 ac_cpp
='$CPP $CPPFLAGS'
5906 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5907 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5908 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5912 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5913 if test "${ac_cv_path_GREP+set}" = set; then :
5914 $as_echo_n "(cached) " >&6
5916 if test -z "$GREP"; then
5917 ac_path_GREP_found
=false
5918 # Loop through the user's path and test for each of PROGNAME-LIST
5919 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5920 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5923 test -z "$as_dir" && as_dir
=.
5924 for ac_prog
in grep ggrep
; do
5925 for ac_exec_ext
in '' $ac_executable_extensions; do
5926 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
5927 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
5928 # Check for GNU ac_path_GREP and select it if it is found.
5929 # Check for GNU $ac_path_GREP
5930 case `"$ac_path_GREP" --version 2>&1` in
5932 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
5935 $as_echo_n 0123456789 >"conftest.in"
5938 cat "conftest.in" "conftest.in" >"conftest.tmp"
5939 mv "conftest.tmp" "conftest.in"
5940 cp "conftest.in" "conftest.nl"
5941 $as_echo 'GREP' >> "conftest.nl"
5942 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5943 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5944 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5945 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5946 # Best one so far, save it but keep looking for a better one
5947 ac_cv_path_GREP
="$ac_path_GREP"
5948 ac_path_GREP_max
=$ac_count
5950 # 10*(2^10) chars as input seems more than enough
5951 test $ac_count -gt 10 && break
5953 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5956 $ac_path_GREP_found && break 3
5961 if test -z "$ac_cv_path_GREP"; then
5962 as_fn_error
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5965 ac_cv_path_GREP
=$GREP
5969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5970 $as_echo "$ac_cv_path_GREP" >&6; }
5971 GREP
="$ac_cv_path_GREP"
5974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5975 $as_echo_n "checking for egrep... " >&6; }
5976 if test "${ac_cv_path_EGREP+set}" = set; then :
5977 $as_echo_n "(cached) " >&6
5979 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
5980 then ac_cv_path_EGREP
="$GREP -E"
5982 if test -z "$EGREP"; then
5983 ac_path_EGREP_found
=false
5984 # Loop through the user's path and test for each of PROGNAME-LIST
5985 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5986 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5989 test -z "$as_dir" && as_dir
=.
5990 for ac_prog
in egrep; do
5991 for ac_exec_ext
in '' $ac_executable_extensions; do
5992 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
5993 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
5994 # Check for GNU ac_path_EGREP and select it if it is found.
5995 # Check for GNU $ac_path_EGREP
5996 case `"$ac_path_EGREP" --version 2>&1` in
5998 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
6001 $as_echo_n 0123456789 >"conftest.in"
6004 cat "conftest.in" "conftest.in" >"conftest.tmp"
6005 mv "conftest.tmp" "conftest.in"
6006 cp "conftest.in" "conftest.nl"
6007 $as_echo 'EGREP' >> "conftest.nl"
6008 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
6009 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
6010 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
6011 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6012 # Best one so far, save it but keep looking for a better one
6013 ac_cv_path_EGREP
="$ac_path_EGREP"
6014 ac_path_EGREP_max
=$ac_count
6016 # 10*(2^10) chars as input seems more than enough
6017 test $ac_count -gt 10 && break
6019 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
6022 $ac_path_EGREP_found && break 3
6027 if test -z "$ac_cv_path_EGREP"; then
6028 as_fn_error
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6031 ac_cv_path_EGREP
=$EGREP
6036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6037 $as_echo "$ac_cv_path_EGREP" >&6; }
6038 EGREP
="$ac_cv_path_EGREP"
6041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6042 $as_echo_n "checking for ANSI C header files... " >&6; }
6043 if test "${ac_cv_header_stdc+set}" = set; then :
6044 $as_echo_n "(cached) " >&6
6046 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6047 /* end confdefs.h. */
6061 if ac_fn_c_try_compile
"$LINENO"; then :
6062 ac_cv_header_stdc
=yes
6064 ac_cv_header_stdc
=no
6066 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6068 if test $ac_cv_header_stdc = yes; then
6069 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6070 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6071 /* end confdefs.h. */
6075 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6076 $EGREP "memchr" >/dev
/null
2>&1; then :
6079 ac_cv_header_stdc
=no
6085 if test $ac_cv_header_stdc = yes; then
6086 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6087 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6088 /* end confdefs.h. */
6092 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6093 $EGREP "free" >/dev
/null
2>&1; then :
6096 ac_cv_header_stdc
=no
6102 if test $ac_cv_header_stdc = yes; then
6103 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6104 if test "$cross_compiling" = yes; then :
6107 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6108 /* end confdefs.h. */
6111 #if ((' ' & 0x0FF) == 0x020)
6112 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6113 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6115 # define ISLOWER(c) \
6116 (('a' <= (c) && (c) <= 'i') \
6117 || ('j' <= (c) && (c) <= 'r') \
6118 || ('s' <= (c) && (c) <= 'z'))
6119 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6122 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6127 for (i = 0; i < 256; i++)
6128 if (XOR (islower (i), ISLOWER (i))
6129 || toupper (i) != TOUPPER (i))
6134 if ac_fn_c_try_run
"$LINENO"; then :
6137 ac_cv_header_stdc
=no
6139 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6140 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6146 $as_echo "$ac_cv_header_stdc" >&6; }
6147 if test $ac_cv_header_stdc = yes; then
6149 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6153 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6154 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
6155 inttypes.h stdint.h unistd.h
6157 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6158 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6160 eval as_val
=\$
$as_ac_Header
6161 if test "x$as_val" = x
""yes; then :
6162 cat >>confdefs.h
<<_ACEOF
6163 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6174 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
6175 if test "x$ac_cv_header_minix_config_h" = x
""yes; then :
6182 if test "$MINIX" = yes; then
6184 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
6187 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
6190 $as_echo "#define _MINIX 1" >>confdefs.h
6197 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
6203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
6204 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
6205 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
6206 $as_echo_n "(cached) " >&6
6208 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6209 /* end confdefs.h. */
6211 # define __EXTENSIONS__ 1
6212 $ac_includes_default
6221 if ac_fn_c_try_compile
"$LINENO"; then :
6222 ac_cv_safe_to_define___extensions__
=yes
6224 ac_cv_safe_to_define___extensions__
=no
6226 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
6229 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6230 test $ac_cv_safe_to_define___extensions__ = yes &&
6231 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
6233 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6235 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
6237 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6239 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
6248 case $ac_cv_prog_cc_stdc in #(
6250 ac_cv_prog_cc_c99
=no
; ac_cv_prog_cc_c89
=no
;; #(
6252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
6253 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
6254 if test "${ac_cv_prog_cc_c99+set}" = set; then :
6255 $as_echo_n "(cached) " >&6
6257 ac_cv_prog_cc_c99
=no
6259 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6260 /* end confdefs.h. */
6262 #include <stdbool.h>
6267 // Check varargs macros. These examples are taken from C99 6.10.3.5.
6268 #define debug(...) fprintf (stderr, __VA_ARGS__)
6269 #define showlist(...) puts (#__VA_ARGS__)
6270 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6272 test_varargs_macros (void)
6277 debug ("X = %d\n", x);
6278 showlist (The first, second, and third items.);
6279 report (x>y, "x is %d but y is %d", x, y);
6282 // Check long long types.
6283 #define BIG64 18446744073709551615ull
6284 #define BIG32 4294967295ul
6285 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6287 your preprocessor is broken;
6291 your preprocessor is broken;
6293 static long long int bignum = -9223372036854775807LL;
6294 static unsigned long long int ubignum = BIG64;
6296 struct incomplete_array
6304 const wchar_t *name;
6308 typedef const char *ccp;
6311 test_restrict (ccp restrict text)
6313 // See if C++-style comments work.
6314 // Iterate through items via the restricted pointer.
6315 // Also check for declarations in for loops.
6316 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6321 // Check varargs and va_copy.
6323 test_varargs (const char *format, ...)
6326 va_start (args, format);
6328 va_copy (args_copy, args);
6339 str = va_arg (args_copy, const char *);
6342 number = va_arg (args_copy, int);
6345 fnumber = va_arg (args_copy, double);
6360 _Bool success = false;
6363 if (test_restrict ("String literal") == 0)
6365 char *restrict newvar = "Another string";
6368 test_varargs ("s, d' f .", "string", 65, 34.234);
6369 test_varargs_macros ();
6371 // Check flexible array members.
6372 struct incomplete_array *ia =
6373 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6375 for (int i = 0; i < ia->datasize; ++i)
6376 ia->data[i] = i * 1.234;
6378 // Check named initializers.
6379 struct named_init ni = {
6381 .name = L"Test wide string",
6382 .average = 543.34343,
6387 int dynamic_array[ni.number];
6388 dynamic_array[ni.number - 1] = 543;
6390 // work around unused variable warnings
6391 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
6392 || dynamic_array[ni.number - 1] != 543);
6398 for ac_arg
in '' -std=gnu99
-std=c99
-c99 -AC99 -xc99=all
-qlanglvl=extc99
6400 CC
="$ac_save_CC $ac_arg"
6401 if ac_fn_c_try_compile
"$LINENO"; then :
6402 ac_cv_prog_cc_c99
=$ac_arg
6404 rm -f core conftest.err conftest.
$ac_objext
6405 test "x$ac_cv_prog_cc_c99" != "xno" && break
6407 rm -f conftest.
$ac_ext
6412 case "x$ac_cv_prog_cc_c99" in
6414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6415 $as_echo "none needed" >&6; } ;;
6417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6418 $as_echo "unsupported" >&6; } ;;
6420 CC
="$CC $ac_cv_prog_cc_c99"
6421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
6422 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
6424 if test "x$ac_cv_prog_cc_c99" != xno
; then :
6425 ac_cv_prog_cc_stdc
=$ac_cv_prog_cc_c99
6427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6428 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6429 if test "${ac_cv_prog_cc_c89+set}" = set; then :
6430 $as_echo_n "(cached) " >&6
6432 ac_cv_prog_cc_c89
=no
6434 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6435 /* end confdefs.h. */
6438 #include <sys/types.h>
6439 #include <sys/stat.h>
6440 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6441 struct buf { int x; };
6442 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6443 static char *e (p, i)
6449 static char *f (char * (*g) (char **, int), char **p, ...)
6454 s = g (p, va_arg (v,int));
6459 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6460 function prototypes and stuff, but not '\xHH' hex character constants.
6461 These don't provoke an error unfortunately, instead are silently treated
6462 as 'x'. The following induces an error, until -std is added to get
6463 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6464 array size at least. It's necessary to write '\x00'==0 to get something
6465 that's true only with -std. */
6466 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6468 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6469 inside strings and character constants. */
6471 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6473 int test (int i, double x);
6474 struct s1 {int (*f) (int a);};
6475 struct s2 {int (*f) (double a);};
6476 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6482 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6487 for ac_arg
in '' -qlanglvl=extc89
-qlanglvl=ansi
-std \
6488 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6490 CC
="$ac_save_CC $ac_arg"
6491 if ac_fn_c_try_compile
"$LINENO"; then :
6492 ac_cv_prog_cc_c89
=$ac_arg
6494 rm -f core conftest.err conftest.
$ac_objext
6495 test "x$ac_cv_prog_cc_c89" != "xno" && break
6497 rm -f conftest.
$ac_ext
6502 case "x$ac_cv_prog_cc_c89" in
6504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6505 $as_echo "none needed" >&6; } ;;
6507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6508 $as_echo "unsupported" >&6; } ;;
6510 CC
="$CC $ac_cv_prog_cc_c89"
6511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6512 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6514 if test "x$ac_cv_prog_cc_c89" != xno
; then :
6515 ac_cv_prog_cc_stdc
=$ac_cv_prog_cc_c89
6517 ac_cv_prog_cc_stdc
=no
6523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
6524 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
6525 if test "${ac_cv_prog_cc_stdc+set}" = set; then :
6526 $as_echo_n "(cached) " >&6
6529 case $ac_cv_prog_cc_stdc in #(
6531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6532 $as_echo "unsupported" >&6; } ;; #(
6534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6535 $as_echo "none needed" >&6; } ;; #(
6537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
6538 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
6543 # Code from module alloca-opt:
6544 # Code from module allocator:
6545 # Code from module arg-nonnull:
6546 # Code from module c++defs:
6547 # Code from module careadlinkat:
6548 # Code from module crypto/md5:
6549 # Code from module crypto/sha1:
6550 # Code from module crypto/sha256:
6551 # Code from module crypto/sha512:
6552 # Code from module dosname:
6553 # Code from module dtoastr:
6554 # Code from module dup2:
6555 # Code from module extensions:
6557 # Code from module filemode:
6558 # Code from module getloadavg:
6559 # Code from module getopt-gnu:
6560 # Code from module getopt-posix:
6561 # Code from module gettext-h:
6562 # Code from module ignore-value:
6563 # Code from module include_next:
6564 # Code from module intprops:
6565 # Code from module inttypes-incomplete:
6566 # Code from module lstat:
6567 # Code from module mktime:
6568 # Code from module multiarch:
6569 # Code from module readlink:
6570 # Code from module socklen:
6571 # Code from module ssize_t:
6572 # Code from module stat:
6573 # Code from module stdarg:
6575 # Code from module stdbool:
6576 # Code from module stddef:
6577 # Code from module stdint:
6578 # Code from module stdio:
6579 # Code from module stdlib:
6580 # Code from module strftime:
6581 # Code from module strtoull:
6582 # Code from module strtoumax:
6583 # Code from module symlink:
6584 # Code from module sys_stat:
6585 # Code from module time:
6586 # Code from module time_r:
6587 # Code from module u64:
6588 # Code from module unistd:
6589 # Code from module verify:
6590 # Code from module warn-on-use:
6593 # On Suns, sometimes $CPP names a directory.
6594 if test -n "$CPP" && test -d "$CPP"; then
6598 ## If not using gcc, and on Solaris, and no CPP specified, see if
6599 ## using a Sun compiler, which needs -Xs to prevent whitespace.
6600 if test x
"$GCC" != xyes
&& test x
"$emacs_check_sunpro_c" = xyes
&& \
6601 test x
"$CPP" = x
; then
6602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using a Sun C compiler" >&5
6603 $as_echo_n "checking whether we are using a Sun C compiler... " >&6; }
6604 if test "${emacs_cv_sunpro_c+set}" = set; then :
6605 $as_echo_n "(cached) " >&6
6607 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6608 /* end confdefs.h. */
6621 if ac_fn_c_try_link
"$LINENO"; then :
6622 emacs_cv_sunpro_c
=yes
6624 emacs_cv_sunpro_c
=no
6626 rm -f core conftest.err conftest.
$ac_objext \
6627 conftest
$ac_exeext conftest.
$ac_ext
6630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_sunpro_c" >&5
6631 $as_echo "$emacs_cv_sunpro_c" >&6; }
6633 if test x
"$emacs_cv_sunpro_c" = xyes
; then
6634 NON_GNU_CPP
="$CC -E -Xs"
6638 #### Some systems specify a CPP to use unless we are using GCC.
6639 #### Now that we know whether we are using GCC, we can decide whether
6640 #### to use that one.
6641 if test "x$NON_GNU_CPP" != x
&& test x
$GCC != xyes
&& test "x$CPP" = x
6646 #### Some systems specify a CC to use unless we are using GCC.
6647 #### Now that we know whether we are using GCC, we can decide whether
6648 #### to use that one.
6649 if test "x$NON_GNU_CC" != x
&& test x
$GCC != xyes
&&
6650 test x
$cc_specified != xyes
6655 if test x
$GCC = xyes
; then
6656 test "x$GCC_TEST_OPTIONS" != x
&& CC
="$CC $GCC_TEST_OPTIONS"
6658 test "x$NON_GCC_TEST_OPTIONS" != x
&& CC
="$CC $NON_GCC_TEST_OPTIONS"
6661 ### Use -Wdeclaration-after-statement if the compiler supports it
6662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wdeclaration-after-statement" >&5
6663 $as_echo_n "checking whether gcc understands -Wdeclaration-after-statement... " >&6; }
6664 SAVE_CFLAGS
="$CFLAGS"
6665 CFLAGS
="$CFLAGS -Wdeclaration-after-statement"
6666 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6667 /* end confdefs.h. */
6677 if ac_fn_c_try_compile
"$LINENO"; then :
6682 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6683 if test $has_option = yes; then
6684 C_WARNINGS_SWITCH
="-Wdeclaration-after-statement $C_WARNINGS_SWITCH"
6686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
6687 $as_echo "$has_option" >&6; }
6688 CFLAGS
="$SAVE_CFLAGS"
6692 ### Use -Wold-style-definition if the compiler supports it
6693 # This can be removed when conversion to standard C is finished.
6694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wold-style-definition" >&5
6695 $as_echo_n "checking whether gcc understands -Wold-style-definition... " >&6; }
6696 SAVE_CFLAGS
="$CFLAGS"
6697 CFLAGS
="$CFLAGS -Wold-style-definition"
6698 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6699 /* end confdefs.h. */
6709 if ac_fn_c_try_compile
"$LINENO"; then :
6714 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6715 if test $has_option = yes; then
6716 C_WARNINGS_SWITCH
="-Wold-style-definition $C_WARNINGS_SWITCH"
6718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
6719 $as_echo "$has_option" >&6; }
6720 CFLAGS
="$SAVE_CFLAGS"
6724 ### Use -Wimplicit-function-declaration if the compiler supports it
6725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wimplicit-function-declaration" >&5
6726 $as_echo_n "checking whether gcc understands -Wimplicit-function-declaration... " >&6; }
6727 SAVE_CFLAGS
="$CFLAGS"
6728 CFLAGS
="$CFLAGS -Wimplicit-function-declaration"
6729 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6730 /* end confdefs.h. */
6740 if ac_fn_c_try_compile
"$LINENO"; then :
6745 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6746 if test $has_option = yes; then
6747 C_WARNINGS_SWITCH
="-Wimplicit-function-declaration $C_WARNINGS_SWITCH"
6749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
6750 $as_echo "$has_option" >&6; }
6751 CFLAGS
="$SAVE_CFLAGS"
6758 #### Some other nice autoconf tests.
6761 ac_cpp
='$CPP $CPPFLAGS'
6762 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6763 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6764 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6766 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6767 # On Suns, sometimes $CPP names a directory.
6768 if test -n "$CPP" && test -d "$CPP"; then
6771 if test -z "$CPP"; then
6772 if test "${ac_cv_prog_CPP+set}" = set; then :
6773 $as_echo_n "(cached) " >&6
6775 # Double quotes because CPP needs to be expanded
6776 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6779 for ac_c_preproc_warn_flag
in '' yes
6781 # Use a header file that comes with gcc, so configuring glibc
6782 # with a fresh cross-compiler works.
6783 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6784 # <limits.h> exists even on freestanding compilers.
6785 # On the NeXT, cc -E runs the code through the compiler's parser,
6786 # not just through cpp. "Syntax error" is here to catch this case.
6787 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6788 /* end confdefs.h. */
6790 # include <limits.h>
6792 # include <assert.h>
6796 if ac_fn_c_try_cpp
"$LINENO"; then :
6799 # Broken: fails on valid input.
6802 rm -f conftest.err conftest.
$ac_ext
6804 # OK, works on sane cases. Now check whether nonexistent headers
6805 # can be detected and how.
6806 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6807 /* end confdefs.h. */
6808 #include <ac_nonexistent.h>
6810 if ac_fn_c_try_cpp
"$LINENO"; then :
6811 # Broken: success on invalid input.
6814 # Passes both tests.
6818 rm -f conftest.err conftest.
$ac_ext
6821 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6822 rm -f conftest.err conftest.
$ac_ext
6823 if $ac_preproc_ok; then :
6835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6836 $as_echo "$CPP" >&6; }
6838 for ac_c_preproc_warn_flag
in '' yes
6840 # Use a header file that comes with gcc, so configuring glibc
6841 # with a fresh cross-compiler works.
6842 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6843 # <limits.h> exists even on freestanding compilers.
6844 # On the NeXT, cc -E runs the code through the compiler's parser,
6845 # not just through cpp. "Syntax error" is here to catch this case.
6846 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6847 /* end confdefs.h. */
6849 # include <limits.h>
6851 # include <assert.h>
6855 if ac_fn_c_try_cpp
"$LINENO"; then :
6858 # Broken: fails on valid input.
6861 rm -f conftest.err conftest.
$ac_ext
6863 # OK, works on sane cases. Now check whether nonexistent headers
6864 # can be detected and how.
6865 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6866 /* end confdefs.h. */
6867 #include <ac_nonexistent.h>
6869 if ac_fn_c_try_cpp
"$LINENO"; then :
6870 # Broken: success on invalid input.
6873 # Passes both tests.
6877 rm -f conftest.err conftest.
$ac_ext
6880 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6881 rm -f conftest.err conftest.
$ac_ext
6882 if $ac_preproc_ok; then :
6885 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6886 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6887 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
6888 See \`config.log' for more details." "$LINENO" 5; }
6892 ac_cpp
='$CPP $CPPFLAGS'
6893 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6894 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6895 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6898 if test "x$RANLIB" = x
; then
6899 if test -n "$ac_tool_prefix"; then
6900 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6901 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
6902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6903 $as_echo_n "checking for $ac_word... " >&6; }
6904 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6905 $as_echo_n "(cached) " >&6
6907 if test -n "$RANLIB"; then
6908 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
6910 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6914 test -z "$as_dir" && as_dir
=.
6915 for ac_exec_ext
in '' $ac_executable_extensions; do
6916 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6917 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
6918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6927 RANLIB
=$ac_cv_prog_RANLIB
6928 if test -n "$RANLIB"; then
6929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6930 $as_echo "$RANLIB" >&6; }
6932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6933 $as_echo "no" >&6; }
6938 if test -z "$ac_cv_prog_RANLIB"; then
6939 ac_ct_RANLIB
=$RANLIB
6940 # Extract the first word of "ranlib", so it can be a program name with args.
6941 set dummy ranlib
; ac_word
=$2
6942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6943 $as_echo_n "checking for $ac_word... " >&6; }
6944 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6945 $as_echo_n "(cached) " >&6
6947 if test -n "$ac_ct_RANLIB"; then
6948 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
6950 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6954 test -z "$as_dir" && as_dir
=.
6955 for ac_exec_ext
in '' $ac_executable_extensions; do
6956 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6957 ac_cv_prog_ac_ct_RANLIB
="ranlib"
6958 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6967 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
6968 if test -n "$ac_ct_RANLIB"; then
6969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6970 $as_echo "$ac_ct_RANLIB" >&6; }
6972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6973 $as_echo "no" >&6; }
6976 if test "x$ac_ct_RANLIB" = x
; then
6979 case $cross_compiling:$ac_tool_warned in
6981 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6982 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6983 ac_tool_warned
=yes ;;
6985 RANLIB
=$ac_ct_RANLIB
6988 RANLIB
="$ac_cv_prog_RANLIB"
6993 ## Although we're running on an amd64 kernel, we're actually compiling for
6994 ## the x86 architecture. The user should probably have provided an
6995 ## explicit --build to `configure', but if everything else than the kernel
6996 ## is running in i386 mode, we can help them out.
6997 if test "$machine" = "amdx86-64"; then
6998 ac_fn_c_check_decl
"$LINENO" "i386" "ac_cv_have_decl_i386" "$ac_includes_default"
6999 if test "x$ac_cv_have_decl_i386" = x
""yes; then :
7003 if test "$ac_cv_have_decl_i386" = "yes"; then
7004 canonical
=`echo "$canonical" | sed -e 's/^amd64/i386/' -e 's/^x86_64/i386/'`
7006 machfile
="m/${machine}.h"
7010 # Extract the first word of "install-info", so it can be a program name with args.
7011 set dummy install-info
; ac_word
=$2
7012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7013 $as_echo_n "checking for $ac_word... " >&6; }
7014 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
7015 $as_echo_n "(cached) " >&6
7017 case $INSTALL_INFO in
7019 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
7022 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7026 test -z "$as_dir" && as_dir
=.
7027 for ac_exec_ext
in '' $ac_executable_extensions; do
7028 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7029 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
7030 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7040 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
7041 if test -n "$INSTALL_INFO"; then
7042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
7043 $as_echo "$INSTALL_INFO" >&6; }
7045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7046 $as_echo "no" >&6; }
7050 # Extract the first word of "install-info", so it can be a program name with args.
7051 set dummy install-info
; ac_word
=$2
7052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7053 $as_echo_n "checking for $ac_word... " >&6; }
7054 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
7055 $as_echo_n "(cached) " >&6
7057 case $INSTALL_INFO in
7059 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
7062 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7063 for as_dir
in /usr
/sbin
7066 test -z "$as_dir" && as_dir
=.
7067 for ac_exec_ext
in '' $ac_executable_extensions; do
7068 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7069 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
7070 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7080 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
7081 if test -n "$INSTALL_INFO"; then
7082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
7083 $as_echo "$INSTALL_INFO" >&6; }
7085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7086 $as_echo "no" >&6; }
7090 # Extract the first word of "install-info", so it can be a program name with args.
7091 set dummy install-info
; ac_word
=$2
7092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7093 $as_echo_n "checking for $ac_word... " >&6; }
7094 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
7095 $as_echo_n "(cached) " >&6
7097 case $INSTALL_INFO in
7099 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
7102 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7106 test -z "$as_dir" && as_dir
=.
7107 for ac_exec_ext
in '' $ac_executable_extensions; do
7108 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7109 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
7110 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7117 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
=":"
7121 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
7122 if test -n "$INSTALL_INFO"; then
7123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
7124 $as_echo "$INSTALL_INFO" >&6; }
7126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7127 $as_echo "no" >&6; }
7131 # Extract the first word of "gzip", so it can be a program name with args.
7132 set dummy
gzip; ac_word
=$2
7133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7134 $as_echo_n "checking for $ac_word... " >&6; }
7135 if test "${ac_cv_path_GZIP_PROG+set}" = set; then :
7136 $as_echo_n "(cached) " >&6
7140 ac_cv_path_GZIP_PROG
="$GZIP_PROG" # Let the user override the test with a path.
7143 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7147 test -z "$as_dir" && as_dir
=.
7148 for ac_exec_ext
in '' $ac_executable_extensions; do
7149 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7150 ac_cv_path_GZIP_PROG
="$as_dir/$ac_word$ac_exec_ext"
7151 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7161 GZIP_PROG
=$ac_cv_path_GZIP_PROG
7162 if test -n "$GZIP_PROG"; then
7163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP_PROG" >&5
7164 $as_echo "$GZIP_PROG" >&6; }
7166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7167 $as_echo "no" >&6; }
7173 ## Need makeinfo >= 4.6 (?) to build the manuals.
7174 # Extract the first word of "makeinfo", so it can be a program name with args.
7175 set dummy makeinfo
; ac_word
=$2
7176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7177 $as_echo_n "checking for $ac_word... " >&6; }
7178 if test "${ac_cv_path_MAKEINFO+set}" = set; then :
7179 $as_echo_n "(cached) " >&6
7183 ac_cv_path_MAKEINFO
="$MAKEINFO" # Let the user override the test with a path.
7186 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7190 test -z "$as_dir" && as_dir
=.
7191 for ac_exec_ext
in '' $ac_executable_extensions; do
7192 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7193 ac_cv_path_MAKEINFO
="$as_dir/$ac_word$ac_exec_ext"
7194 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7201 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO
="no"
7205 MAKEINFO
=$ac_cv_path_MAKEINFO
7206 if test -n "$MAKEINFO"; then
7207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7208 $as_echo "$MAKEINFO" >&6; }
7210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7211 $as_echo "no" >&6; }
7215 if test "$MAKEINFO" != "no" && \
7216 test x
"`$MAKEINFO --version 2> /dev/null | $EGREP 'texinfo[^0-9]*([1-4][0-9]+|[5-9]|4\.[6-9]|4\.[1-5][0-9]+)'`" = x
; then
7220 ## Makeinfo is unusual. For a released Emacs, the manuals are
7221 ## pre-built, and not deleted by the normal clean rules. makeinfo is
7222 ## therefore in the category of "special tools" not normally required, which
7223 ## configure does not have to check for (eg autoconf itself).
7224 ## In a Bazaar checkout on the other hand, the manuals are not included.
7225 ## So makeinfo is a requirement to build from Bazaar, and configure
7226 ## should test for it as it does for any other build requirement.
7227 ## We use the presence of $srcdir/info/emacs to distinguish a release,
7228 ## with pre-built manuals, from a Bazaar checkout.
7231 if test "$MAKEINFO" = "no"; then
7233 if test "x${with_makeinfo}" = "xno"; then
7235 elif test ! -e $srcdir/info
/emacs
; then
7236 as_fn_error
"You do not seem to have makeinfo >= 4.6, and your
7237 source tree does not seem to have pre-built manuals in the \`info' directory.
7238 Either install a suitable version of makeinfo, or re-run configure
7239 with the \`--without-makeinfo' option to build without the manuals. " "$LINENO" 5
7245 if test x
$GCC = xyes
; then
7246 test "x$GCC_LINK_TEST_OPTIONS" != x
&& \
7247 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
7249 test "x$NON_GCC_LINK_TEST_OPTIONS" != x
&& \
7250 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
7254 late_LDFLAGS
=$LDFLAGS
7255 if test x
$GCC = xyes
; then
7256 LDFLAGS
="$LDFLAGS -Wl,-znocombreloc"
7258 LDFLAGS
="$LDFLAGS -znocombreloc"
7261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -znocombreloc" >&5
7262 $as_echo_n "checking for -znocombreloc... " >&6; }
7263 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7264 /* end confdefs.h. */
7274 if ac_fn_c_try_link
"$LINENO"; then :
7275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7276 $as_echo "yes" >&6; }
7278 LDFLAGS
=$late_LDFLAGS
7279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7280 $as_echo "no" >&6; }
7282 rm -f core conftest.err conftest.
$ac_objext \
7283 conftest
$ac_exeext conftest.
$ac_ext
7286 # The value of CPP is a quoted variable reference, so we need to do this
7287 # to get its actual value...
7288 CPP
=`eval "echo $CPP"`
7291 test "x$CANNOT_DUMP" = "x" && CANNOT_DUMP
=no
7293 your-opsys-here
) CANNOT_DUMP
=yes ;;
7296 test "$CANNOT_DUMP" = "yes" && \
7298 $as_echo "#define CANNOT_DUMP 1" >>confdefs.h
7304 UNEXEC_OBJ
=unexelf.o
7306 # MSDOS uses unexcoff.o
7307 # MSWindows uses unexw32.o
7309 UNEXEC_OBJ
=unexaix.o
7315 UNEXEC_OBJ
=unexmacosx.o
7318 UNEXEC_OBJ
=unexhp9k800.o
7321 # Use the Solaris dldump() function, called from unexsol.c, to dump
7322 # emacs, instead of the generic ELF dump code found in unexelf.c.
7323 # The resulting binary has a complete symbol table, and is better
7324 # for debugging and other observability tools (debuggers, pstack, etc).
7326 # If you encounter a problem using dldump(), please consider sending
7327 # a message to the OpenSolaris tools-linking mailing list:
7328 # http://mail.opensolaris.org/mailman/listinfo/tools-linking
7330 # It is likely that dldump() works with older Solaris too, but this has
7331 # not been tested, so for now this change is for Solaris 10 or newer.
7332 UNEXEC_OBJ
=unexsol.o
7339 ## Let `ld' find image libs and similar things in /usr/local/lib.
7340 ## The system compiler, GCC, has apparently been modified to not
7341 ## look there, contrary to what a stock GCC would do.
7342 LD_SWITCH_SYSTEM
=-L/usr
/local
/lib
7346 ## cpp test was "ifdef __mips__", but presumably this is equivalent...
7347 case $host_cpu in mips
*) LD_SWITCH_SYSTEM
="-G 0";; esac
7351 LD_SWITCH_SYSTEM
="-Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib"
7355 ## Han Boetes <han@mijncomputer.nl> says this is necessary,
7356 ## otherwise Emacs dumps core on elf systems.
7357 LD_SWITCH_SYSTEM
="-Z"
7362 ac_link
="$ac_link $LD_SWITCH_SYSTEM"
7364 ## This setting of LD_SWITCH_SYSTEM references LD_SWITCH_X_SITE_AUX,
7365 ## which has not been defined yet. When this was handled with cpp,
7366 ## it was expanded to null when configure sourced the s/*.h file.
7367 ## Thus LD_SWITCH_SYSTEM had different values in configure and the Makefiles.
7368 ## FIXME it would be cleaner to put this in LD_SWITCH_SYSTEM_TEMACS
7369 ## (or somesuch), but because it is supposed to go at the _front_
7370 ## of LD_SWITCH_SYSTEM, we cannot do that in exactly the same way.
7371 ## Compare with the gnu-linux case below, which added to the end
7372 ## of LD_SWITCH_SYSTEM, and so can instead go at the front of
7373 ## LD_SWITCH_SYSTEM_TEMACS.
7376 ## _AUX_RPATH is like _AUX, but uses -rpath instead of -R.
7377 LD_SWITCH_SYSTEM
="\$(LD_SWITCH_X_SITE_AUX_RPATH) $LD_SWITCH_SYSTEM" ;;
7382 if test "$machine" = "alpha"; then
7383 ac_fn_c_check_decl
"$LINENO" "__ELF__" "ac_cv_have_decl___ELF__" "$ac_includes_default"
7384 if test "x$ac_cv_have_decl___ELF__" = x
""yes; then :
7388 if test "$ac_cv_have_decl___ELF__" = "yes"; then
7389 ## With ELF, make sure that all common symbols get allocated to in the
7390 ## data section. Otherwise, the dump of temacs may miss variables in
7391 ## the shared library that have been initialized. For example, with
7392 ## GNU libc, __malloc_initialized would normally be resolved to the
7393 ## shared library's .bss section, which is fatal.
7394 if test "x$GCC" = "xyes"; then
7395 C_SWITCH_MACHINE
="-fno-common"
7397 as_fn_error
"What gives? Fix me if DEC Unix supports ELF now." "$LINENO" 5
7400 UNEXEC_OBJ
=unexalpha.o
7408 ## Some programs in src produce warnings saying certain subprograms
7409 ## are too complex and need a MAXMEM value greater than 2000 for
7410 ## additional optimization. --nils@exp-math.uni-essen.de
7411 test "$opsys" = "aix4.2" && test "x$GCC" != "xyes" && \
7412 C_SWITCH_SYSTEM
="-ma -qmaxmem=4000"
7413 ## gnu-linux might need -D_BSD_SOURCE on old libc5 systems.
7414 ## It is redundant in glibc2, since we define _GNU_SOURCE.
7420 ## IBM's X11R5 uses -lIM and -liconv in AIX 3.2.2.
7421 aix4-2
) LIBS_SYSTEM
="-lrts -lIM -liconv" ;;
7423 freebsd
) LIBS_SYSTEM
="-lutil" ;;
7425 hpux
*) LIBS_SYSTEM
="-l:libdld.sl" ;;
7427 sol2
*) LIBS_SYSTEM
="-lsocket -lnsl" ;;
7429 ## Motif needs -lgen.
7430 unixware
) LIBS_SYSTEM
="-lsocket -lnsl -lelf -lgen" ;;
7435 ### Make sure subsequent tests use flags consistent with the build flags.
7437 if test x
"${OVERRIDE_CPPFLAGS}" != x
; then
7438 CPPFLAGS
="${OVERRIDE_CPPFLAGS}"
7440 CPPFLAGS
="$C_SWITCH_SYSTEM $C_SWITCH_MACHINE $CPPFLAGS"
7443 # Suppress obsolescent Autoconf test for size_t; Emacs assumes C89 or better.
7446 # Check whether --enable-largefile was given.
7447 if test "${enable_largefile+set}" = set; then :
7448 enableval
=$enable_largefile;
7451 if test "$enable_largefile" != no
; then
7453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
7454 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
7455 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
7456 $as_echo_n "(cached) " >&6
7458 ac_cv_sys_largefile_CC
=no
7459 if test "$GCC" != yes; then
7462 # IRIX 6.2 and later do not support large files by default,
7463 # so use the C compiler's -n32 option if that helps.
7464 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7465 /* end confdefs.h. */
7466 #include <sys/types.h>
7467 /* Check that off_t can represent 2**63 - 1 correctly.
7468 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7469 since some C++ compilers masquerading as C compilers
7470 incorrectly reject 9223372036854775807. */
7471 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7472 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7473 && LARGE_OFF_T % 2147483647 == 1)
7483 if ac_fn_c_try_compile
"$LINENO"; then :
7486 rm -f core conftest.err conftest.
$ac_objext
7488 if ac_fn_c_try_compile
"$LINENO"; then :
7489 ac_cv_sys_largefile_CC
=' -n32'; break
7491 rm -f core conftest.err conftest.
$ac_objext
7495 rm -f conftest.
$ac_ext
7498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
7499 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
7500 if test "$ac_cv_sys_largefile_CC" != no
; then
7501 CC
=$CC$ac_cv_sys_largefile_CC
7504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
7505 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
7506 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
7507 $as_echo_n "(cached) " >&6
7510 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7511 /* end confdefs.h. */
7512 #include <sys/types.h>
7513 /* Check that off_t can represent 2**63 - 1 correctly.
7514 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7515 since some C++ compilers masquerading as C compilers
7516 incorrectly reject 9223372036854775807. */
7517 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7518 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7519 && LARGE_OFF_T % 2147483647 == 1)
7529 if ac_fn_c_try_compile
"$LINENO"; then :
7530 ac_cv_sys_file_offset_bits
=no
; break
7532 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7533 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7534 /* end confdefs.h. */
7535 #define _FILE_OFFSET_BITS 64
7536 #include <sys/types.h>
7537 /* Check that off_t can represent 2**63 - 1 correctly.
7538 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7539 since some C++ compilers masquerading as C compilers
7540 incorrectly reject 9223372036854775807. */
7541 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7542 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7543 && LARGE_OFF_T % 2147483647 == 1)
7553 if ac_fn_c_try_compile
"$LINENO"; then :
7554 ac_cv_sys_file_offset_bits
=64; break
7556 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7557 ac_cv_sys_file_offset_bits
=unknown
7561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
7562 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
7563 case $ac_cv_sys_file_offset_bits in #(
7566 cat >>confdefs.h
<<_ACEOF
7567 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
7572 if test $ac_cv_sys_file_offset_bits = unknown
; then
7573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
7574 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
7575 if test "${ac_cv_sys_large_files+set}" = set; then :
7576 $as_echo_n "(cached) " >&6
7579 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7580 /* end confdefs.h. */
7581 #include <sys/types.h>
7582 /* Check that off_t can represent 2**63 - 1 correctly.
7583 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7584 since some C++ compilers masquerading as C compilers
7585 incorrectly reject 9223372036854775807. */
7586 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7587 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7588 && LARGE_OFF_T % 2147483647 == 1)
7598 if ac_fn_c_try_compile
"$LINENO"; then :
7599 ac_cv_sys_large_files
=no
; break
7601 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7602 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7603 /* end confdefs.h. */
7604 #define _LARGE_FILES 1
7605 #include <sys/types.h>
7606 /* Check that off_t can represent 2**63 - 1 correctly.
7607 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7608 since some C++ compilers masquerading as C compilers
7609 incorrectly reject 9223372036854775807. */
7610 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7611 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7612 && LARGE_OFF_T % 2147483647 == 1)
7622 if ac_fn_c_try_compile
"$LINENO"; then :
7623 ac_cv_sys_large_files
=1; break
7625 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7626 ac_cv_sys_large_files
=unknown
7630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
7631 $as_echo "$ac_cv_sys_large_files" >&6; }
7632 case $ac_cv_sys_large_files in #(
7635 cat >>confdefs.h
<<_ACEOF
7636 #define _LARGE_FILES $ac_cv_sys_large_files
7646 ## If user specified a crt-dir, use that unconditionally.
7647 if test "X$CRT_DIR" = "X"; then
7649 case "$canonical" in
7650 x86_64-
*-linux-gnu* | s390x-
*-linux-gnu*)
7651 ## On x86-64 and s390x GNU/Linux distributions, the standard library
7652 ## can be in a variety of places. We only try /usr/lib64 and /usr/lib.
7653 ## For anything else (eg /usr/lib32), it is up the user to specify
7654 ## the location (bug#5655).
7655 ## Test for crtn.o, not just the directory, because sometimes the
7656 ## directory exists but does not have the relevant files (bug#1287).
7657 ## FIXME better to test for binary compatibility somehow.
7658 test -e /usr
/lib64
/crtn.o
&& CRT_DIR
=/usr
/lib64
7661 powerpc64-
*-linux-gnu* | sparc64-
*-linux-gnu*) CRT_DIR
=/usr
/lib64
;;
7665 hpux10-20
) CRT_DIR
=/lib
;;
7668 ## Default is /usr/lib.
7669 test "X$CRT_DIR" = "X" && CRT_DIR
=/usr
/lib
7671 ## If we're using gcc, try to determine it automatically by asking
7672 ## gcc. [If this doesn't work, CRT_DIR will remain at the
7673 ## system-dependent default from above.]
7674 if test "x${GCC}" = xyes
; then
7675 crt_file
=`$CC --print-file-name=crt1.o 2>/dev/null`
7678 CRT_DIR
=`$as_dirname -- "$crt_file" ||
7679 $as_expr X"$crt_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7680 X"$crt_file" : 'X\(//\)[^/]' \| \
7681 X"$crt_file" : 'X\(//\)$' \| \
7682 X"$crt_file" : 'X\(/\)' \| . 2>/dev/null ||
7683 $as_echo X"$crt_file" |
7684 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7707 ## Some platforms don't use any of these files, so it is not
7708 ## appropriate to put this test outside the if block.
7709 test -e $CRT_DIR/crtn.o ||
test -e $CRT_DIR/crt0.o || \
7710 as_fn_error
"crt*.o not found in specified location." "$LINENO" 5
7723 START_FILES
='pre-crt0.o'
7726 ## Adding -lm confuses the dynamic linker, so omit it.
7728 START_FILES
='pre-crt0.o'
7731 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
7732 START_FILES
='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
7734 gnu-linux | gnu-kfreebsd
)
7735 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtn.o'
7736 START_FILES
='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o'
7738 hpux10-20 | hpux11
)
7740 START_FILES
='pre-crt0.o $(CRT_DIR)/crt0.o'
7743 if test -f $CRT_DIR/crti.o
; then
7744 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
7745 START_FILES
='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
7747 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o'
7748 START_FILES
='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crtbegin.o'
7759 if test "${with_sound}" != "no"; then
7760 # Sound support for GNU/Linux and the free BSDs.
7761 for ac_header
in machine
/soundcard.h sys
/soundcard.h soundcard.h
7763 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7764 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7765 eval as_val
=\$
$as_ac_Header
7766 if test "x$as_val" = x
""yes; then :
7767 cat >>confdefs.h
<<_ACEOF
7768 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7770 have_sound_header
=yes
7775 # Emulation library used on NetBSD.
7776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
7777 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
7778 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then :
7779 $as_echo_n "(cached) " >&6
7781 ac_check_lib_save_LIBS
=$LIBS
7782 LIBS
="-lossaudio $LIBS"
7783 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7784 /* end confdefs.h. */
7786 /* Override any GCC internal prototype to avoid an error.
7787 Use char because int might match the return type of a GCC
7788 builtin and then its argument prototype would still apply. */
7796 return _oss_ioctl ();
7801 if ac_fn_c_try_link
"$LINENO"; then :
7802 ac_cv_lib_ossaudio__oss_ioctl
=yes
7804 ac_cv_lib_ossaudio__oss_ioctl
=no
7806 rm -f core conftest.err conftest.
$ac_objext \
7807 conftest
$ac_exeext conftest.
$ac_ext
7808 LIBS
=$ac_check_lib_save_LIBS
7810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
7811 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
7812 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = x
""yes; then :
7821 ALSA_MODULES
="alsa >= $ALSA_REQUIRED"
7825 # Extract the first word of "pkg-config", so it can be a program name with args.
7826 set dummy pkg-config
; ac_word
=$2
7827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7828 $as_echo_n "checking for $ac_word... " >&6; }
7829 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
7830 $as_echo_n "(cached) " >&6
7834 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
7837 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7841 test -z "$as_dir" && as_dir
=.
7842 for ac_exec_ext
in '' $ac_executable_extensions; do
7843 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7844 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
7845 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7852 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
7856 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
7857 if test -n "$PKG_CONFIG"; then
7858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7859 $as_echo "$PKG_CONFIG" >&6; }
7861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7862 $as_echo "no" >&6; }
7867 if test "$PKG_CONFIG" = "no" ; then
7870 PKG_CONFIG_MIN_VERSION
=0.9.0
7871 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
7872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ALSA_MODULES" >&5
7873 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
7875 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
7876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7877 $as_echo "yes" >&6; }
7880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_CFLAGS" >&5
7881 $as_echo_n "checking ALSA_CFLAGS... " >&6; }
7882 ALSA_CFLAGS
=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
7883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
7884 $as_echo "$ALSA_CFLAGS" >&6; }
7886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_LIBS" >&5
7887 $as_echo_n "checking ALSA_LIBS... " >&6; }
7888 ALSA_LIBS
=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
7889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
7890 $as_echo "$ALSA_LIBS" >&6; }
7892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7893 $as_echo "no" >&6; }
7896 ## If we have a custom action on failure, don't print errors, but
7897 ## do set a variable so people can do so.
7898 ALSA_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
7905 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
7906 echo "*** See http://www.freedesktop.org/software/pkgconfig"
7910 if test $succeeded = yes; then
7916 if test $HAVE_ALSA = yes; then
7917 SAVE_CFLAGS
="$CFLAGS"
7918 SAVE_LDFLAGS
="$LDFLAGS"
7919 CFLAGS
="$ALSA_CFLAGS $CFLAGS"
7920 LDFLAGS
="$ALSA_LIBS $LDFLAGS"
7921 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7922 /* end confdefs.h. */
7923 #include <asoundlib.h>
7927 snd_lib_error_set_handler (0);
7932 if ac_fn_c_try_compile
"$LINENO"; then :
7933 emacs_alsa_normal
=yes
7935 emacs_alsa_normal
=no
7937 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7938 if test "$emacs_alsa_normal" != yes; then
7939 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7940 /* end confdefs.h. */
7941 #include <alsa/asoundlib.h>
7945 snd_lib_error_set_handler (0);
7950 if ac_fn_c_try_compile
"$LINENO"; then :
7951 emacs_alsa_subdir
=yes
7953 emacs_alsa_subdir
=no
7955 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7956 if test "$emacs_alsa_subdir" != yes; then
7957 as_fn_error
"pkg-config found alsa, but it does not compile. See config.log for error messages." "$LINENO" 5
7959 ALSA_CFLAGS
="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
7962 CFLAGS
="$SAVE_CFLAGS"
7963 LDFLAGS
="$SAVE_LDFLAGS"
7964 LIBSOUND
="$LIBSOUND $ALSA_LIBS"
7965 CFLAGS_SOUND
="$CFLAGS_SOUND $ALSA_CFLAGS"
7967 $as_echo "#define HAVE_ALSA 1" >>confdefs.h
7971 if test x
$have_sound_header = xyes ||
test $HAVE_ALSA = yes; then
7973 gnu-linux|freebsd|netbsd
)
7975 $as_echo "#define HAVE_SOUND 1" >>confdefs.h
7984 for ac_header
in sys
/select.h sys
/time.h unistd.h utime.h \
7985 linux
/version.h sys
/systeminfo.h \
7986 stdio_ext.h fcntl.h coff.h pty.h sys
/mman.h \
7987 sys
/vlimit.h sys
/resource.h locale.h sys
/_mbstate_t.h \
7988 sys
/utsname.h
pwd.h utmp.h dirent.h util.h
7990 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7991 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7992 eval as_val
=\$
$as_ac_Header
7993 if test "x$as_val" = x
""yes; then :
7994 cat >>confdefs.h
<<_ACEOF
7995 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if personality LINUX32 can be set" >&5
8004 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
8005 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8006 /* end confdefs.h. */
8007 #include <sys/personality.h>
8011 personality (PER_LINUX32)
8016 if ac_fn_c_try_compile
"$LINENO"; then :
8017 emacs_cv_personality_linux32
=yes
8019 emacs_cv_personality_linux32
=no
8021 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_personality_linux32" >&5
8023 $as_echo "$emacs_cv_personality_linux32" >&6; }
8025 if test $emacs_cv_personality_linux32 = yes; then
8027 $as_echo "#define HAVE_PERSONALITY_LINUX32 1" >>confdefs.h
8031 for ac_header
in term.h
8033 ac_fn_c_check_header_preproc
"$LINENO" "term.h" "ac_cv_header_term_h"
8034 if test "x$ac_cv_header_term_h" = x
""yes; then :
8035 cat >>confdefs.h
<<_ACEOF
8036 #define HAVE_TERM_H 1
8043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8044 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8045 if test "${ac_cv_header_time+set}" = set; then :
8046 $as_echo_n "(cached) " >&6
8048 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8049 /* end confdefs.h. */
8050 #include <sys/types.h>
8051 #include <sys/time.h>
8057 if ((struct tm *) 0)
8063 if ac_fn_c_try_compile
"$LINENO"; then :
8064 ac_cv_header_time
=yes
8066 ac_cv_header_time
=no
8068 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8071 $as_echo "$ac_cv_header_time" >&6; }
8072 if test $ac_cv_header_time = yes; then
8074 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8078 ac_fn_c_check_decl
"$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "$ac_includes_default"
8079 if test "x$ac_cv_have_decl_sys_siglist" = x
""yes; then :
8085 cat >>confdefs.h
<<_ACEOF
8086 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
8089 if test $ac_cv_have_decl_sys_siglist != yes; then
8090 # For Tru64, at least:
8091 ac_fn_c_check_decl
"$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "$ac_includes_default"
8092 if test "x$ac_cv_have_decl___sys_siglist" = x
""yes; then :
8098 cat >>confdefs.h
<<_ACEOF
8099 #define HAVE_DECL___SYS_SIGLIST $ac_have_decl
8102 if test $ac_cv_have_decl___sys_siglist = yes; then
8104 $as_echo "#define sys_siglist __sys_siglist" >>confdefs.h
8108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8109 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8110 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8111 $as_echo_n "(cached) " >&6
8113 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8114 /* end confdefs.h. */
8115 #include <sys/types.h>
8116 #include <sys/wait.h>
8118 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8121 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8129 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8134 if ac_fn_c_try_compile
"$LINENO"; then :
8135 ac_cv_header_sys_wait_h
=yes
8137 ac_cv_header_sys_wait_h
=no
8139 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8142 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8143 if test $ac_cv_header_sys_wait_h = yes; then
8145 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utimbuf" >&5
8151 $as_echo_n "checking for struct utimbuf... " >&6; }
8152 if test "${emacs_cv_struct_utimbuf+set}" = set; then :
8153 $as_echo_n "(cached) " >&6
8155 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8156 /* end confdefs.h. */
8157 #ifdef TIME_WITH_SYS_TIME
8158 #include <sys/time.h>
8161 #ifdef HAVE_SYS_TIME_H
8162 #include <sys/time.h>
8173 static struct utimbuf x; x.actime = x.modtime;
8178 if ac_fn_c_try_compile
"$LINENO"; then :
8179 emacs_cv_struct_utimbuf
=yes
8181 emacs_cv_struct_utimbuf
=no
8183 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_utimbuf" >&5
8186 $as_echo "$emacs_cv_struct_utimbuf" >&6; }
8187 if test $emacs_cv_struct_utimbuf = yes; then
8189 $as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h
8193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t" >&5
8194 $as_echo_n "checking for speed_t... " >&6; }
8195 if test "${emacs_cv_speed_t+set}" = set; then :
8196 $as_echo_n "(cached) " >&6
8198 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8199 /* end confdefs.h. */
8200 #include <termios.h>
8209 if ac_fn_c_try_compile
"$LINENO"; then :
8210 emacs_cv_speed_t
=yes
8214 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_speed_t" >&5
8217 $as_echo "$emacs_cv_speed_t" >&6; }
8218 if test $emacs_cv_speed_t = yes; then
8220 $as_echo "#define HAVE_SPEED_T 1" >>confdefs.h
8224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
8225 $as_echo_n "checking for struct timeval... " >&6; }
8226 if test "${emacs_cv_struct_timeval+set}" = set; then :
8227 $as_echo_n "(cached) " >&6
8229 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8230 /* end confdefs.h. */
8231 #ifdef TIME_WITH_SYS_TIME
8232 #include <sys/time.h>
8235 #ifdef HAVE_SYS_TIME_H
8236 #include <sys/time.h>
8244 static struct timeval x; x.tv_sec = x.tv_usec;
8249 if ac_fn_c_try_compile
"$LINENO"; then :
8250 emacs_cv_struct_timeval
=yes
8252 emacs_cv_struct_timeval
=no
8254 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_timeval" >&5
8257 $as_echo "$emacs_cv_struct_timeval" >&6; }
8258 HAVE_TIMEVAL
=$emacs_cv_struct_timeval
8259 if test $emacs_cv_struct_timeval = yes; then
8261 $as_echo "#define HAVE_TIMEVAL 1" >>confdefs.h
8265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct exception" >&5
8266 $as_echo_n "checking for struct exception... " >&6; }
8267 if test "${emacs_cv_struct_exception+set}" = set; then :
8268 $as_echo_n "(cached) " >&6
8270 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8271 /* end confdefs.h. */
8276 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
8281 if ac_fn_c_try_compile
"$LINENO"; then :
8282 emacs_cv_struct_exception
=yes
8284 emacs_cv_struct_exception
=no
8286 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_exception" >&5
8289 $as_echo "$emacs_cv_struct_exception" >&6; }
8290 HAVE_EXCEPTION
=$emacs_cv_struct_exception
8291 if test $emacs_cv_struct_exception != yes; then
8293 $as_echo "#define NO_MATHERR 1" >>confdefs.h
8297 for ac_header
in net
/if.h
8299 ac_fn_c_check_header_compile
"$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
8300 #if HAVE_SYS_SOCKET_H
8301 #include <sys/socket.h>
8304 if test "x$ac_cv_header_net_if_h" = x
""yes; then :
8305 cat >>confdefs.h
<<_ACEOF
8306 #define HAVE_NET_IF_H 1
8314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
8315 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
8316 if test "${ac_cv_struct_tm+set}" = set; then :
8317 $as_echo_n "(cached) " >&6
8319 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8320 /* end confdefs.h. */
8321 #include <sys/types.h>
8328 int *p = &tm.tm_sec;
8334 if ac_fn_c_try_compile
"$LINENO"; then :
8335 ac_cv_struct_tm
=time.h
8337 ac_cv_struct_tm
=sys
/time.h
8339 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
8342 $as_echo "$ac_cv_struct_tm" >&6; }
8343 if test $ac_cv_struct_tm = sys
/time.h
; then
8345 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
8349 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
8350 #include <$ac_cv_struct_tm>
8353 if test "x$ac_cv_member_struct_tm_tm_zone" = x
""yes; then :
8355 cat >>confdefs.h
<<_ACEOF
8356 #define HAVE_STRUCT_TM_TM_ZONE 1
8362 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
8364 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
8367 ac_fn_c_check_decl
"$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
8369 if test "x$ac_cv_have_decl_tzname" = x
""yes; then :
8375 cat >>confdefs.h
<<_ACEOF
8376 #define HAVE_DECL_TZNAME $ac_have_decl
8379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
8380 $as_echo_n "checking for tzname... " >&6; }
8381 if test "${ac_cv_var_tzname+set}" = set; then :
8382 $as_echo_n "(cached) " >&6
8384 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8385 /* end confdefs.h. */
8387 #if !HAVE_DECL_TZNAME
8388 extern char *tzname[];
8394 return tzname[0][0];
8399 if ac_fn_c_try_link
"$LINENO"; then :
8400 ac_cv_var_tzname
=yes
8404 rm -f core conftest.err conftest.
$ac_objext \
8405 conftest
$ac_exeext conftest.
$ac_ext
8407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
8408 $as_echo "$ac_cv_var_tzname" >&6; }
8409 if test $ac_cv_var_tzname = yes; then
8411 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
8416 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
8418 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x
""yes; then :
8420 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
8424 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_flags" "ac_cv_member_struct_ifreq_ifr_flags" "$ac_includes_default
8425 #if HAVE_SYS_SOCKET_H
8426 #include <sys/socket.h>
8432 if test "x$ac_cv_member_struct_ifreq_ifr_flags" = x
""yes; then :
8434 cat >>confdefs.h
<<_ACEOF
8435 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8440 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "$ac_includes_default
8441 #if HAVE_SYS_SOCKET_H
8442 #include <sys/socket.h>
8448 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = x
""yes; then :
8450 cat >>confdefs.h
<<_ACEOF
8451 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8456 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_netmask" "ac_cv_member_struct_ifreq_ifr_netmask" "$ac_includes_default
8457 #if HAVE_SYS_SOCKET_H
8458 #include <sys/socket.h>
8464 if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = x
""yes; then :
8466 cat >>confdefs.h
<<_ACEOF
8467 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8472 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_broadaddr" "ac_cv_member_struct_ifreq_ifr_broadaddr" "$ac_includes_default
8473 #if HAVE_SYS_SOCKET_H
8474 #include <sys/socket.h>
8480 if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = x
""yes; then :
8482 cat >>confdefs.h
<<_ACEOF
8483 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8488 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_addr" "ac_cv_member_struct_ifreq_ifr_addr" "$ac_includes_default
8489 #if HAVE_SYS_SOCKET_H
8490 #include <sys/socket.h>
8496 if test "x$ac_cv_member_struct_ifreq_ifr_addr" = x
""yes; then :
8498 cat >>confdefs.h
<<_ACEOF
8499 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
8508 $as_echo_n "checking for function prototypes... " >&6; }
8509 if test "$ac_cv_prog_cc_c89" != no
; then
8510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8511 $as_echo "yes" >&6; }
8513 $as_echo "#define PROTOTYPES 1" >>confdefs.h
8516 $as_echo "#define __PROTOTYPES 1" >>confdefs.h
8519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8520 $as_echo "no" >&6; }
8523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
8524 $as_echo_n "checking for working volatile... " >&6; }
8525 if test "${ac_cv_c_volatile+set}" = set; then :
8526 $as_echo_n "(cached) " >&6
8528 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8529 /* end confdefs.h. */
8536 int * volatile y = (int *) 0;
8542 if ac_fn_c_try_compile
"$LINENO"; then :
8543 ac_cv_c_volatile
=yes
8547 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
8550 $as_echo "$ac_cv_c_volatile" >&6; }
8551 if test $ac_cv_c_volatile = no
; then
8553 $as_echo "#define volatile /**/" >>confdefs.h
8557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
8558 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
8559 if test "${ac_cv_c_const+set}" = set; then :
8560 $as_echo_n "(cached) " >&6
8562 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8563 /* end confdefs.h. */
8568 /* FIXME: Include the comments suggested by Paul. */
8570 /* Ultrix mips cc rejects this. */
8571 typedef int charset[2];
8573 /* SunOS 4.1.1 cc rejects this. */
8574 char const *const *pcpcc;
8576 /* NEC SVR4.0.2 mips cc rejects this. */
8577 struct point {int x, y;};
8578 static struct point const zero = {0,0};
8579 /* AIX XL C 1.02.0.0 rejects this.
8580 It does not let you subtract one const X* pointer from another in
8581 an arm of an if-expression whose if-part is not a constant
8583 const char *g = "string";
8584 pcpcc = &g + (g ? g-g : 0);
8585 /* HPUX 7.0 cc rejects these. */
8587 ppc = (char**) pcpcc;
8588 pcpcc = (char const *const *) ppc;
8589 { /* SCO 3.2v4 cc rejects this. */
8591 char const *s = 0 ? (char *) 0 : (char const *) 0;
8596 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8598 const int *foo = &x[0];
8601 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8602 typedef const int *iptr;
8606 { /* AIX XL C 1.02.0.0 rejects this saying
8607 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8608 struct s { int j; const int *ap[3]; };
8609 struct s *b; b->j = 5;
8611 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8615 return !cs[0] && !zero.x;
8622 if ac_fn_c_try_compile
"$LINENO"; then :
8627 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
8630 $as_echo "$ac_cv_c_const" >&6; }
8631 if test $ac_cv_c_const = no
; then
8633 $as_echo "#define const /**/" >>confdefs.h
8637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for void * support" >&5
8638 $as_echo_n "checking for void * support... " >&6; }
8639 if test "${emacs_cv_void_star+set}" = set; then :
8640 $as_echo_n "(cached) " >&6
8642 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8643 /* end confdefs.h. */
8653 if ac_fn_c_try_compile
"$LINENO"; then :
8654 emacs_cv_void_star
=yes
8656 emacs_cv_void_star
=no
8658 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_void_star" >&5
8661 $as_echo "$emacs_cv_void_star" >&6; }
8662 if test $emacs_cv_void_star = yes; then
8663 $as_echo "#define POINTER_TYPE void" >>confdefs.h
8666 $as_echo "#define POINTER_TYPE char" >>confdefs.h
8670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8671 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8672 if test "${ac_cv_c_bigendian+set}" = set; then :
8673 $as_echo_n "(cached) " >&6
8675 ac_cv_c_bigendian
=unknown
8676 # See if we're dealing with a universal compiler.
8677 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8678 /* end confdefs.h. */
8679 #ifndef __APPLE_CC__
8680 not a universal capable compiler
8685 if ac_fn_c_try_compile
"$LINENO"; then :
8687 # Check for potential -arch flags. It is not universal unless
8688 # there are at least two -arch flags with different values.
8691 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8692 if test -n "$ac_prev"; then
8694 i?
86 | x86_64 | ppc | ppc64
)
8695 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
8698 ac_cv_c_bigendian
=universal
8704 elif test "x$ac_word" = "x-arch"; then
8709 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8710 if test $ac_cv_c_bigendian = unknown
; then
8711 # See if sys/param.h defines the BYTE_ORDER macro.
8712 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8713 /* end confdefs.h. */
8714 #include <sys/types.h>
8715 #include <sys/param.h>
8720 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8721 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8730 if ac_fn_c_try_compile
"$LINENO"; then :
8731 # It does; now see whether it defined to BIG_ENDIAN or not.
8732 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8733 /* end confdefs.h. */
8734 #include <sys/types.h>
8735 #include <sys/param.h>
8740 #if BYTE_ORDER != BIG_ENDIAN
8748 if ac_fn_c_try_compile
"$LINENO"; then :
8749 ac_cv_c_bigendian
=yes
8751 ac_cv_c_bigendian
=no
8753 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8755 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8757 if test $ac_cv_c_bigendian = unknown
; then
8758 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8759 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8760 /* end confdefs.h. */
8766 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8774 if ac_fn_c_try_compile
"$LINENO"; then :
8775 # It does; now see whether it defined to _BIG_ENDIAN or not.
8776 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8777 /* end confdefs.h. */
8791 if ac_fn_c_try_compile
"$LINENO"; then :
8792 ac_cv_c_bigendian
=yes
8794 ac_cv_c_bigendian
=no
8796 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8798 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8800 if test $ac_cv_c_bigendian = unknown
; then
8801 # Compile a test program.
8802 if test "$cross_compiling" = yes; then :
8803 # Try to guess by grepping values from an object file.
8804 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8805 /* end confdefs.h. */
8806 short int ascii_mm[] =
8807 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8808 short int ascii_ii[] =
8809 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8810 int use_ascii (int i) {
8811 return ascii_mm[i] + ascii_ii[i];
8813 short int ebcdic_ii[] =
8814 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8815 short int ebcdic_mm[] =
8816 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8817 int use_ebcdic (int i) {
8818 return ebcdic_mm[i] + ebcdic_ii[i];
8825 return use_ascii (foo) == use_ebcdic (foo);
8830 if ac_fn_c_try_compile
"$LINENO"; then :
8831 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
8832 ac_cv_c_bigendian
=yes
8834 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
8835 if test "$ac_cv_c_bigendian" = unknown
; then
8836 ac_cv_c_bigendian
=no
8838 # finding both strings is unlikely to happen, but who knows?
8839 ac_cv_c_bigendian
=unknown
8843 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8845 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8846 /* end confdefs.h. */
8847 $ac_includes_default
8852 /* Are we little or big endian? From Harbison&Steele. */
8856 char c[sizeof (long int)];
8859 return u.c[sizeof (long int) - 1] == 1;
8865 if ac_fn_c_try_run
"$LINENO"; then :
8866 ac_cv_c_bigendian
=no
8868 ac_cv_c_bigendian
=yes
8870 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8871 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8877 $as_echo "$ac_cv_c_bigendian" >&6; }
8878 case $ac_cv_c_bigendian in #(
8880 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8886 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8890 as_fn_error
"unknown endianness
8891 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__ ((__aligned__ (expr)))" >&5
8896 $as_echo_n "checking for __attribute__ ((__aligned__ (expr)))... " >&6; }
8897 if test "${emacs_cv_attribute_aligned+set}" = set; then :
8898 $as_echo_n "(cached) " >&6
8900 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8901 /* end confdefs.h. */
8902 char __attribute__ ((__aligned__ (1 << 3))) c;
8911 if ac_fn_c_try_compile
"$LINENO"; then :
8912 emacs_cv_attribute_aligned
=yes
8914 emacs_cv_attribute_aligned
=no
8916 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_attribute_aligned" >&5
8919 $as_echo "$emacs_cv_attribute_aligned" >&6; }
8920 if test $emacs_cv_attribute_aligned = yes; then
8922 $as_echo "#define HAVE_ATTRIBUTE_ALIGNED 1" >>confdefs.h
8926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8927 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
8929 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8930 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
8931 $as_echo_n "(cached) " >&6
8933 cat >conftest.
make <<\_ACEOF
8936 @
echo '@@@%%%=$(MAKE)=@@@%%%'
8938 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8939 case `${MAKE-make} -f conftest.make 2>/dev/null` in
8941 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
8943 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
8947 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
8948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8949 $as_echo "yes" >&6; }
8952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8953 $as_echo "no" >&6; }
8954 SET_MAKE
="MAKE=${MAKE-make}"
8961 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
8962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU Make" >&5
8963 $as_echo_n "checking whether we are using GNU Make... " >&6; }
8965 testval
=`make --version 2>/dev/null | grep 'GNU Make'`
8966 if test "x$testval" != x
; then
8969 ac_enable_autodepend
=no
8971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_GNU_MAKE" >&5
8972 $as_echo "$HAVE_GNU_MAKE" >&6; }
8973 if test $HAVE_GNU_MAKE = yes; then
8974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -MMD -MF" >&5
8975 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
8976 SAVE_CFLAGS
="$CFLAGS"
8977 CFLAGS
="$CFLAGS -MMD -MF deps.d"
8978 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8979 /* end confdefs.h. */
8989 if ac_fn_c_try_compile
"$LINENO"; then :
8992 ac_enable_autodepend
=no
8994 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8995 CFLAGS
="$SAVE_CFLAGS"
8996 test -f deps.d || ac_enable_autodepend
=no
8998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_autodepend" >&5
8999 $as_echo "$ac_enable_autodepend" >&6; }
9001 if test $ac_enable_autodepend = yes; then
9002 DEPFLAGS
='-MMD -MF ${DEPDIR}/$*.d'
9003 ## In parallel builds, another make might create depdir between
9004 ## the first test and mkdir, so stick another test on the end.
9005 ## Or use install-sh -d? mkdir -p is not portable.
9006 MKDEPDIR
='test -d ${DEPDIR} || mkdir ${DEPDIR} || test -d ${DEPDIR}'
9007 deps_frag
=autodeps.mk
9010 deps_frag
=$srcdir/src
/$deps_frag
9016 lisp_frag
=$srcdir/src
/lisp.mk
9020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5
9021 $as_echo_n "checking for long file names... " >&6; }
9022 if test "${ac_cv_sys_long_file_names+set}" = set; then :
9023 $as_echo_n "(cached) " >&6
9025 ac_cv_sys_long_file_names
=yes
9026 # Test for long file names in all the places we know might matter:
9027 # . the current directory, where building will happen
9028 # $prefix/lib where we will be installing things
9029 # $exec_prefix/lib likewise
9030 # $TMPDIR if set, where it might want to write temporary files
9031 # /tmp where it might want to write temporary files
9034 for ac_dir
in .
"$TMPDIR" /tmp
/var
/tmp
/usr
/tmp
"$prefix/lib" "$exec_prefix/lib"; do
9035 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9036 # in the usual case where exec_prefix is '${prefix}'.
9038 . |
/* | ?
:[\\/]*) ;; #(
9041 test -w "$ac_dir/." ||
continue # It is less confusing to not echo anything here.
9042 ac_xdir
=$ac_dir/cf$$
9043 (umask 077 && mkdir
"$ac_xdir" 2>/dev
/null
) ||
continue
9044 ac_tf1
=$ac_xdir/conftest9012345
9045 ac_tf2
=$ac_xdir/conftest9012346
9046 touch "$ac_tf1" 2>/dev
/null
&& test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9047 ac_cv_sys_long_file_names
=no
9048 rm -f -r "$ac_xdir" 2>/dev
/null
9049 test $ac_cv_sys_long_file_names = no
&& break
9052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5
9053 $as_echo "$ac_cv_sys_long_file_names" >&6; }
9054 if test $ac_cv_sys_long_file_names = yes; then
9056 $as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h
9061 #### Choose a window system.
9063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
9064 $as_echo_n "checking for X... " >&6; }
9067 # Check whether --with-x was given.
9068 if test "${with_x+set}" = set; then :
9072 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9073 if test "x$with_x" = xno
; then
9074 # The user explicitly disabled X.
9077 case $x_includes,$x_libraries in #(
9078 *\'*) as_fn_error
"cannot use X directory names containing '" "$LINENO" 5;; #(
9079 *,NONE | NONE
,*) if test "${ac_cv_have_x+set}" = set; then :
9080 $as_echo_n "(cached) " >&6
9082 # One or both of the vars are not set, and there is no cached value.
9083 ac_x_includes
=no ac_x_libraries
=no
9084 rm -f -r conftest.dir
9085 if mkdir conftest.dir
; then
9087 cat >Imakefile
<<'_ACEOF'
9089 @echo incroot='${INCROOT}'
9091 @echo usrlibdir='${USRLIBDIR}'
9093 @echo libdir='${LIBDIR}'
9095 if (export CC
; ${XMKMF-xmkmf}) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
9096 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9097 for ac_var
in incroot usrlibdir libdir
; do
9098 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
9100 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9101 for ac_extension
in a so sl dylib la dll
; do
9102 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9103 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9104 ac_im_usrlibdir
=$ac_im_libdir; break
9107 # Screen out bogus values from the imake configuration. They are
9108 # bogus both because they are the default anyway, and because
9109 # using them would break gcc on systems where it needs fixed includes.
9110 case $ac_im_incroot in
9111 /usr
/include
) ac_x_includes
= ;;
9112 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
9114 case $ac_im_usrlibdir in
9115 /usr
/lib |
/usr
/lib64 |
/lib |
/lib64
) ;;
9116 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
9120 rm -f -r conftest.dir
9123 # Standard set of common directories for X headers.
9124 # Check X11 before X11Rn because it is often a symlink to the current release.
9138 /usr/local/X11/include
9139 /usr/local/X11R7/include
9140 /usr/local/X11R6/include
9141 /usr/local/X11R5/include
9142 /usr/local/X11R4/include
9144 /usr/local/include/X11
9145 /usr/local/include/X11R7
9146 /usr/local/include/X11R6
9147 /usr/local/include/X11R5
9148 /usr/local/include/X11R4
9152 /usr/XFree86/include/X11
9156 /usr/unsupported/include
9158 /usr/local/x11r5/include
9159 /usr/lpp/Xamples/include
9161 /usr/openwin/include
9162 /usr/openwin/share/include'
9164 if test "$ac_x_includes" = no
; then
9165 # Guess where to find include files, by looking for Xlib.h.
9166 # First, try using that file with no special directory specified.
9167 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9168 /* end confdefs.h. */
9169 #include <X11/Xlib.h>
9171 if ac_fn_c_try_cpp
"$LINENO"; then :
9172 # We can compile using X headers with no special include directory.
9175 for ac_dir
in $ac_x_header_dirs; do
9176 if test -r "$ac_dir/X11/Xlib.h"; then
9177 ac_x_includes
=$ac_dir
9182 rm -f conftest.err conftest.
$ac_ext
9183 fi # $ac_x_includes = no
9185 if test "$ac_x_libraries" = no
; then
9186 # Check for the libraries.
9187 # See if we find them without any special options.
9188 # Don't add to $LIBS permanently.
9191 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9192 /* end confdefs.h. */
9193 #include <X11/Xlib.h>
9202 if ac_fn_c_try_link
"$LINENO"; then :
9204 # We can link X programs with no special library path.
9208 for ac_dir
in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9210 # Don't even attempt the hair of trying to link an X program!
9211 for ac_extension
in a so sl dylib la dll
; do
9212 if test -r "$ac_dir/libX11.$ac_extension"; then
9213 ac_x_libraries
=$ac_dir
9219 rm -f core conftest.err conftest.
$ac_objext \
9220 conftest
$ac_exeext conftest.
$ac_ext
9221 fi # $ac_x_libraries = no
9223 case $ac_x_includes,$ac_x_libraries in #(
9225 # Didn't find X, or a directory has "'" in its name.
9226 ac_cv_have_x
="have_x=no";; #(
9228 # Record where we found X for the cache.
9229 ac_cv_have_x
="have_x=yes\
9230 ac_x_includes='$ac_x_includes'\
9231 ac_x_libraries='$ac_x_libraries'"
9237 eval "$ac_cv_have_x"
9240 if test "$have_x" != yes; then
9241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
9242 $as_echo "$have_x" >&6; }
9245 # If each of the values was on the command line, it overrides each guess.
9246 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
9247 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
9248 # Update the cache value to reflect the command line values.
9249 ac_cv_have_x
="have_x=yes\
9250 ac_x_includes='$x_includes'\
9251 ac_x_libraries='$x_libraries'"
9252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
9253 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
9256 if test "$no_x" = yes; then
9262 ## Workaround for bug in autoconf <= 2.62.
9263 ## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
9264 ## No need to do anything special for these standard directories.
9265 if test -n "${x_libraries}" && test x
"${x_libraries}" != xNONE
; then
9267 x_libraries
=`echo :${x_libraries}: | sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
9271 LD_SWITCH_X_SITE_AUX
=
9272 LD_SWITCH_X_SITE_AUX_RPATH
=
9273 if test "${x_libraries}" != NONE
; then
9274 if test -n "${x_libraries}"; then
9275 LD_SWITCH_X_SITE
=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9276 LD_SWITCH_X_SITE_AUX
=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
9277 LD_SWITCH_X_SITE_AUX_RPATH
=`echo ${LD_SWITCH_X_SITE_AUX} | sed -e 's/-R/-Wl,-rpath,/'`
9279 x_default_search_path
=""
9280 x_search_path
=${x_libraries}
9281 if test -z "${x_search_path}"; then
9282 x_search_path
=/usr
/lib
9284 for x_library
in `echo ${x_search_path}: | \
9285 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9287 ${x_library}/X11/%L/%T/%N%C%S:\
9288 ${x_library}/X11/%l/%T/%N%C%S:\
9289 ${x_library}/X11/%T/%N%C%S:\
9290 ${x_library}/X11/%L/%T/%N%S:\
9291 ${x_library}/X11/%l/%T/%N%S:\
9292 ${x_library}/X11/%T/%N%S"
9293 if test x
"${x_default_search_path}" = x
; then
9294 x_default_search_path
=${x_search_path}
9296 x_default_search_path
="${x_search_path}:${x_default_search_path}"
9303 if test "${x_includes}" != NONE
&& test -n "${x_includes}"; then
9304 C_SWITCH_X_SITE
=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
9307 if test x
"${x_includes}" = x
; then
9308 bitmapdir
=/usr
/include
/X11
/bitmaps
9310 # accumulate include directories that have X11 bitmap subdirectories
9312 for bmd
in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9313 if test -d "${bmd}/X11/bitmaps"; then
9314 bmd_acc
="${bmd_acc}:${bmd}/X11/bitmaps"
9316 if test -d "${bmd}/bitmaps"; then
9317 bmd_acc
="${bmd_acc}:${bmd}/bitmaps"
9320 if test ${bmd_acc} != "dummyval"; then
9321 bitmapdir
=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9328 tmp_CPPFLAGS
="$CPPFLAGS"
9329 tmp_CFLAGS
="$CFLAGS"
9330 CPPFLAGS
="$CPPFLAGS -x objective-c"
9331 CFLAGS
="$CFLAGS -x objective-c"
9332 TEMACS_LDFLAGS2
="\${LDFLAGS}"
9333 if test "${with_ns}" != no
; then
9334 if test "${opsys}" = darwin
; then
9336 ns_appdir
=`pwd`/nextstep
/Emacs.app
9337 ns_appbindir
=${ns_appdir}/Contents
/MacOS
/
9338 ns_appresdir
=${ns_appdir}/Contents
/Resources
9339 ns_appsrc
=${srcdir}/nextstep
/Cocoa
/Emacs.base
9340 elif test -f $GNUSTEP_CONFIG_FILE; then
9342 ns_appdir
=`pwd`/nextstep
/Emacs.app
9343 ns_appbindir
=${ns_appdir}/
9344 ns_appresdir
=${ns_appdir}/Resources
9345 ns_appsrc
=${srcdir}/nextstep
/GNUstep
/Emacs.base
9346 GNUSTEP_SYSTEM_HEADERS
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
9347 GNUSTEP_SYSTEM_LIBRARIES
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
9348 GNUSTEP_LOCAL_HEADERS
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_HEADERS)"
9349 GNUSTEP_LOCAL_LIBRARIES
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_LIBRARIES)"
9350 test "x${GNUSTEP_LOCAL_HEADERS}" != "x" && \
9351 GNUSTEP_LOCAL_HEADERS
="-I${GNUSTEP_LOCAL_HEADERS}"
9352 test "x${GNUSTEP_LOCAL_LIBRARIES}" != "x" && \
9353 GNUSTEP_LOCAL_LIBRARIES
="-L${GNUSTEP_LOCAL_LIBRARIES}"
9354 CPPFLAGS
="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
9355 CFLAGS
="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
9356 LDFLAGS
="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES}"
9361 ac_fn_c_check_header_mongrel
"$LINENO" "AppKit/AppKit.h" "ac_cv_header_AppKit_AppKit_h" "$ac_includes_default"
9362 if test "x$ac_cv_header_AppKit_AppKit_h" = x
""yes; then :
9365 as_fn_error
"\`--with-ns' was specified, but the include
9366 files are missing or cannot be compiled." "$LINENO" 5
9370 NS_HAVE_NSINTEGER
=yes
9371 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9372 /* end confdefs.h. */
9373 #include <Foundation/NSObjCRuntime.h>
9382 if ac_fn_c_try_compile
"$LINENO"; then :
9383 ns_have_nsinteger
=yes
9385 ns_have_nsinteger
=no
9387 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9388 if test $ns_have_nsinteger = no
; then
9389 NS_HAVE_NSINTEGER
=no
9397 if test "${HAVE_NS}" = yes; then
9398 window_system
=nextstep
9400 # set up packaging dirs
9401 exec_prefix
=${ns_appbindir}
9402 libexecdir
=${ns_appbindir}/libexec
9403 if test "${EN_NS_SELF_CONTAINED}" = yes; then
9404 prefix
=${ns_appresdir}
9406 ns_frag
=$srcdir/src
/ns.mk
9407 NS_OBJ
="fontset.o fringe.o image.o"
9408 NS_OBJC_OBJ
="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o"
9410 CFLAGS
="$tmp_CFLAGS"
9411 CPPFLAGS
="$tmp_CPPFLAGS"
9417 case "${window_system}" in
9421 case "${with_x_toolkit}" in
9422 athena | lucid
) USE_X_TOOLKIT
=LUCID
;;
9423 motif
) USE_X_TOOLKIT
=MOTIF
;;
9425 USE_X_TOOLKIT
=none
;;
9426 gtk3
) with_gtk3
=yes
9427 USE_X_TOOLKIT
=none
;;
9428 no
) USE_X_TOOLKIT
=none
;;
9429 * ) USE_X_TOOLKIT
=maybe
;;
9439 if test "$window_system" = none
&& test "X$with_x" != "Xno"; then
9440 # Extract the first word of "X", so it can be a program name with args.
9441 set dummy X
; ac_word
=$2
9442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9443 $as_echo_n "checking for $ac_word... " >&6; }
9444 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then :
9445 $as_echo_n "(cached) " >&6
9447 if test -n "$HAVE_XSERVER"; then
9448 ac_cv_prog_HAVE_XSERVER
="$HAVE_XSERVER" # Let the user override the test.
9450 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9454 test -z "$as_dir" && as_dir
=.
9455 for ac_exec_ext
in '' $ac_executable_extensions; do
9456 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9457 ac_cv_prog_HAVE_XSERVER
="true"
9458 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9465 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER
="false"
9468 HAVE_XSERVER
=$ac_cv_prog_HAVE_XSERVER
9469 if test -n "$HAVE_XSERVER"; then
9470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_XSERVER" >&5
9471 $as_echo "$HAVE_XSERVER" >&6; }
9473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9474 $as_echo "no" >&6; }
9478 if test "$HAVE_XSERVER" = true ||
9479 test -n "$DISPLAY" ||
9480 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
9481 as_fn_error
"You seem to be running X, but no X development libraries
9482 were found. You should install the relevant development files for X
9483 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9484 sure you have development files for image handling, i.e.
9485 tiff, gif, jpeg, png and xpm.
9486 If you are sure you want Emacs compiled without X window support, pass
9488 to configure." "$LINENO" 5
9492 ### If we're using X11, we should use the X menu package.
9495 yes ) HAVE_MENUS
=yes ;;
9498 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9499 # Assume not, until told otherwise.
9502 ac_fn_c_check_func
"$LINENO" "malloc_get_state" "ac_cv_func_malloc_get_state"
9503 if test "x$ac_cv_func_malloc_get_state" = x
""yes; then :
9509 ac_fn_c_check_func
"$LINENO" "malloc_set_state" "ac_cv_func_malloc_set_state"
9510 if test "x$ac_cv_func_malloc_set_state" = x
""yes; then :
9516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __after_morecore_hook exists" >&5
9517 $as_echo_n "checking whether __after_morecore_hook exists... " >&6; }
9518 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then :
9519 $as_echo_n "(cached) " >&6
9521 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9522 /* end confdefs.h. */
9523 extern void (* __after_morecore_hook)();
9527 __after_morecore_hook = 0
9532 if ac_fn_c_try_link
"$LINENO"; then :
9533 emacs_cv_var___after_morecore_hook
=yes
9535 emacs_cv_var___after_morecore_hook
=no
9537 rm -f core conftest.err conftest.
$ac_objext \
9538 conftest
$ac_exeext conftest.
$ac_ext
9540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_var___after_morecore_hook" >&5
9541 $as_echo "$emacs_cv_var___after_morecore_hook" >&6; }
9542 if test $emacs_cv_var___after_morecore_hook = no
; then
9549 ## darwin ld insists on the use of malloc routines in the System framework.
9550 darwin|sol2-10
) system_malloc
=yes ;;
9553 if test "${system_malloc}" = "yes"; then
9555 $as_echo "#define SYSTEM_MALLOC 1" >>confdefs.h
9559 (The GNU allocators don't work with this system configuration.)"
9563 test "$doug_lea_malloc" != "yes" && GMALLOC_OBJ
=gmalloc.o
9564 VMLIMIT_OBJ
=vm-limit.o
9569 if test "$doug_lea_malloc" = "yes" ; then
9570 if test "$GNU_MALLOC" = yes ; then
9572 (Using Doug Lea's new malloc from the GNU C Library.)"
9575 $as_echo "#define DOUG_LEA_MALLOC 1" >>confdefs.h
9578 ## Use mmap directly for allocating larger buffers.
9579 ## FIXME this comes from src/s/{gnu,gnu-linux}.h:
9580 ## #ifdef DOUG_LEA_MALLOC; #undef REL_ALLOC; #endif
9581 ## Does the AC_FUNC_MMAP test below make this check unecessary?
9583 gnu
*) REL_ALLOC
=no
;;
9587 if test x
"${REL_ALLOC}" = x
; then
9588 REL_ALLOC
=${GNU_MALLOC}
9591 use_mmap_for_buffers
=no
9593 cygwin|freebsd|irix6-5
) use_mmap_for_buffers
=yes ;;
9599 for ac_header
in $ac_header_list
9601 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9602 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9604 eval as_val
=\$
$as_ac_Header
9605 if test "x$as_val" = x
""yes; then :
9606 cat >>confdefs.h
<<_ACEOF
9607 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9621 for ac_func
in getpagesize
9623 ac_fn_c_check_func
"$LINENO" "getpagesize" "ac_cv_func_getpagesize"
9624 if test "x$ac_cv_func_getpagesize" = x
""yes; then :
9625 cat >>confdefs.h
<<_ACEOF
9626 #define HAVE_GETPAGESIZE 1
9632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
9633 $as_echo_n "checking for working mmap... " >&6; }
9634 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
9635 $as_echo_n "(cached) " >&6
9637 if test "$cross_compiling" = yes; then :
9638 ac_cv_func_mmap_fixed_mapped
=no
9640 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9641 /* end confdefs.h. */
9642 $ac_includes_default
9643 /* malloc might have been renamed as rpl_malloc. */
9646 /* Thanks to Mike Haertel and Jim Avera for this test.
9647 Here is a matrix of mmap possibilities:
9648 mmap private not fixed
9649 mmap private fixed at somewhere currently unmapped
9650 mmap private fixed at somewhere already mapped
9651 mmap shared not fixed
9652 mmap shared fixed at somewhere currently unmapped
9653 mmap shared fixed at somewhere already mapped
9654 For private mappings, we should verify that changes cannot be read()
9655 back from the file, nor mmap's back from the file at a different
9656 address. (There have been systems where private was not correctly
9657 implemented like the infamous i386 svr4.0, and systems where the
9658 VM page cache was not coherent with the file system buffer cache
9659 like early versions of FreeBSD and possibly contemporary NetBSD.)
9660 For shared mappings, we should conversely verify that changes get
9661 propagated back to all the places they're supposed to be.
9663 Grep wants private fixed already mapped.
9664 The main things grep needs to know about mmap are:
9665 * does it exist and is it safe to write into the mmap'd area
9666 * how to use it (BSD variants) */
9669 #include <sys/mman.h>
9671 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
9675 /* This mess was copied from the GNU getpagesize.h. */
9676 #ifndef HAVE_GETPAGESIZE
9677 # ifdef _SC_PAGESIZE
9678 # define getpagesize() sysconf(_SC_PAGESIZE)
9679 # else /* no _SC_PAGESIZE */
9680 # ifdef HAVE_SYS_PARAM_H
9681 # include <sys/param.h>
9682 # ifdef EXEC_PAGESIZE
9683 # define getpagesize() EXEC_PAGESIZE
9684 # else /* no EXEC_PAGESIZE */
9686 # define getpagesize() NBPG * CLSIZE
9689 # endif /* no CLSIZE */
9690 # else /* no NBPG */
9692 # define getpagesize() NBPC
9693 # else /* no NBPC */
9695 # define getpagesize() PAGESIZE
9696 # endif /* PAGESIZE */
9697 # endif /* no NBPC */
9698 # endif /* no NBPG */
9699 # endif /* no EXEC_PAGESIZE */
9700 # else /* no HAVE_SYS_PARAM_H */
9701 # define getpagesize() 8192 /* punt totally */
9702 # endif /* no HAVE_SYS_PARAM_H */
9703 # endif /* no _SC_PAGESIZE */
9705 #endif /* no HAVE_GETPAGESIZE */
9710 char *data, *data2, *data3;
9715 pagesize = getpagesize ();
9717 /* First, make a file with some known garbage in it. */
9718 data = (char *) malloc (pagesize);
9721 for (i = 0; i < pagesize; ++i)
9722 *(data + i) = rand ();
9724 fd = creat ("conftest.mmap", 0600);
9727 if (write (fd, data, pagesize) != pagesize)
9731 /* Next, check that the tail of a page is zero-filled. File must have
9732 non-zero length, otherwise we risk SIGBUS for entire page. */
9733 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
9737 if (write (fd2, cdata2, 1) != 1)
9739 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
9740 if (data2 == MAP_FAILED)
9742 for (i = 0; i < pagesize; ++i)
9746 if (munmap (data2, pagesize))
9749 /* Next, try to mmap the file at a fixed address which already has
9750 something else allocated at it. If we can, also make sure that
9751 we see the same garbage. */
9752 fd = open ("conftest.mmap", O_RDWR);
9755 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9756 MAP_PRIVATE | MAP_FIXED, fd, 0L))
9758 for (i = 0; i < pagesize; ++i)
9759 if (*(data + i) != *(data2 + i))
9762 /* Finally, make sure that changes to the mapped area do not
9763 percolate back to the file as seen by read(). (This is a bug on
9764 some variants of i386 svr4.0.) */
9765 for (i = 0; i < pagesize; ++i)
9766 *(data2 + i) = *(data2 + i) + 1;
9767 data3 = (char *) malloc (pagesize);
9770 if (read (fd, data3, pagesize) != pagesize)
9772 for (i = 0; i < pagesize; ++i)
9773 if (*(data + i) != *(data3 + i))
9779 if ac_fn_c_try_run
"$LINENO"; then :
9780 ac_cv_func_mmap_fixed_mapped
=yes
9782 ac_cv_func_mmap_fixed_mapped
=no
9784 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9785 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
9790 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
9791 if test $ac_cv_func_mmap_fixed_mapped = yes; then
9793 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
9796 rm -f conftest.mmap conftest.txt
9798 if test $use_mmap_for_buffers = yes; then
9800 $as_echo "#define USE_MMAP_FOR_BUFFERS 1" >>confdefs.h
9805 LIBS
="$LIBS_SYSTEM $LIBS"
9807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
9808 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
9809 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
9810 $as_echo_n "(cached) " >&6
9812 ac_check_lib_save_LIBS
=$LIBS
9814 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9815 /* end confdefs.h. */
9817 /* Override any GCC internal prototype to avoid an error.
9818 Use char because int might match the return type of a GCC
9819 builtin and then its argument prototype would still apply. */
9827 return dnet_ntoa ();
9832 if ac_fn_c_try_link
"$LINENO"; then :
9833 ac_cv_lib_dnet_dnet_ntoa
=yes
9835 ac_cv_lib_dnet_dnet_ntoa
=no
9837 rm -f core conftest.err conftest.
$ac_objext \
9838 conftest
$ac_exeext conftest.
$ac_ext
9839 LIBS
=$ac_check_lib_save_LIBS
9841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
9842 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
9843 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x
""yes; then :
9844 cat >>confdefs.h
<<_ACEOF
9845 #define HAVE_LIBDNET 1
9853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXbsd" >&5
9854 $as_echo_n "checking for main in -lXbsd... " >&6; }
9855 if test "${ac_cv_lib_Xbsd_main+set}" = set; then :
9856 $as_echo_n "(cached) " >&6
9858 ac_check_lib_save_LIBS
=$LIBS
9860 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9861 /* end confdefs.h. */
9872 if ac_fn_c_try_link
"$LINENO"; then :
9873 ac_cv_lib_Xbsd_main
=yes
9875 ac_cv_lib_Xbsd_main
=no
9877 rm -f core conftest.err conftest.
$ac_objext \
9878 conftest
$ac_exeext conftest.
$ac_ext
9879 LIBS
=$ac_check_lib_save_LIBS
9881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xbsd_main" >&5
9882 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
9883 if test "x$ac_cv_lib_Xbsd_main" = x
""yes; then :
9884 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -lXbsd"
9889 for ac_header
in pthread.h
9891 ac_fn_c_check_header_mongrel
"$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
9892 if test "x$ac_cv_header_pthread_h" = x
""yes; then :
9893 cat >>confdefs.h
<<_ACEOF
9894 #define HAVE_PTHREAD_H 1
9901 if test "$ac_cv_header_pthread_h"; then
9902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_self in -lpthread" >&5
9903 $as_echo_n "checking for pthread_self in -lpthread... " >&6; }
9904 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then :
9905 $as_echo_n "(cached) " >&6
9907 ac_check_lib_save_LIBS
=$LIBS
9908 LIBS
="-lpthread $LIBS"
9909 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9910 /* end confdefs.h. */
9912 /* Override any GCC internal prototype to avoid an error.
9913 Use char because int might match the return type of a GCC
9914 builtin and then its argument prototype would still apply. */
9918 char pthread_self ();
9922 return pthread_self ();
9927 if ac_fn_c_try_link
"$LINENO"; then :
9928 ac_cv_lib_pthread_pthread_self
=yes
9930 ac_cv_lib_pthread_pthread_self
=no
9932 rm -f core conftest.err conftest.
$ac_objext \
9933 conftest
$ac_exeext conftest.
$ac_ext
9934 LIBS
=$ac_check_lib_save_LIBS
9936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_self" >&5
9937 $as_echo "$ac_cv_lib_pthread_pthread_self" >&6; }
9938 if test "x$ac_cv_lib_pthread_pthread_self" = x
""yes; then :
9943 if test "$HAVE_PTHREAD" = yes; then
9944 case "${canonical}" in
9946 *) LIB_PTHREAD
="-lpthread" ;;
9949 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
9954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cma_open in -lpthreads" >&5
9955 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
9956 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then :
9957 $as_echo_n "(cached) " >&6
9959 ac_check_lib_save_LIBS
=$LIBS
9960 LIBS
="-lpthreads $LIBS"
9961 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9962 /* end confdefs.h. */
9964 /* Override any GCC internal prototype to avoid an error.
9965 Use char because int might match the return type of a GCC
9966 builtin and then its argument prototype would still apply. */
9979 if ac_fn_c_try_link
"$LINENO"; then :
9980 ac_cv_lib_pthreads_cma_open
=yes
9982 ac_cv_lib_pthreads_cma_open
=no
9984 rm -f core conftest.err conftest.
$ac_objext \
9985 conftest
$ac_exeext conftest.
$ac_ext
9986 LIBS
=$ac_check_lib_save_LIBS
9988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_cma_open" >&5
9989 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
9990 if test "x$ac_cv_lib_pthreads_cma_open" = x
""yes; then :
9991 cat >>confdefs.h
<<_ACEOF
9992 #define HAVE_LIBPTHREADS 1
9995 LIBS
="-lpthreads $LIBS"
10000 ## Note: when using cpp in s/aix4.2.h, this definition depended on
10001 ## HAVE_LIBPTHREADS. That was not defined earlier in configure when
10002 ## the system file was sourced. Hence the value of LIBS_SYSTEM
10003 ## added to LIBS in configure would never contain the pthreads part,
10004 ## but the value used in Makefiles might. FIXME?
10006 ## -lpthreads seems to be necessary for Xlib in X11R6, and should
10007 ## be harmless on older versions of X where it happens to exist.
10008 test "$opsys" = "aix4-2" && \
10009 test $ac_cv_lib_pthreads_cma_open = yes && \
10010 LIBS_SYSTEM
="$LIBS_SYSTEM -lpthreads"
10015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
10016 $as_echo_n "checking for -bbigtoc option... " >&6; }
10017 if test "${gdb_cv_bigtoc+set}" = set; then :
10018 $as_echo_n "(cached) " >&6
10022 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
10023 *) gdb_cv_bigtoc
=-bbigtoc ;;
10026 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
10027 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10028 /* end confdefs.h. */
10038 if ac_fn_c_try_link
"$LINENO"; then :
10043 rm -f core conftest.err conftest.
$ac_objext \
10044 conftest
$ac_exeext conftest.
$ac_ext
10047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
10048 $as_echo "$gdb_cv_bigtoc" >&6; }
10052 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10053 # used for the tests that follow. We set them back to REAL_CFLAGS and
10054 # REAL_CPPFLAGS later on.
10056 REAL_CFLAGS
="$CFLAGS"
10057 REAL_CPPFLAGS
="$CPPFLAGS"
10059 if test "${HAVE_X11}" = "yes"; then
10060 DEFS
="$C_SWITCH_X_SITE $DEFS"
10061 LDFLAGS
="$LDFLAGS $LD_SWITCH_X_SITE"
10063 CFLAGS
="$C_SWITCH_X_SITE $CFLAGS"
10064 CPPFLAGS
="$C_SWITCH_X_SITE $CPPFLAGS"
10066 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10067 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
10068 # but it's more convenient here to set LD_RUN_PATH
10069 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
10070 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
10071 LD_RUN_PATH
=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10075 if test "${opsys}" = "gnu-linux"; then
10076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X on GNU/Linux needs -b to link" >&5
10077 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
10078 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10079 /* end confdefs.h. */
10084 XOpenDisplay ("foo");
10089 if ac_fn_c_try_link
"$LINENO"; then :
10090 xlinux_first_failure
=no
10092 xlinux_first_failure
=yes
10094 rm -f core conftest.err conftest.
$ac_objext \
10095 conftest
$ac_exeext conftest.
$ac_ext
10096 if test "${xlinux_first_failure}" = "yes"; then
10097 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
10098 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
10099 OLD_CPPFLAGS
="$CPPFLAGS"
10101 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
10102 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
10103 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
10104 LIBS
="$LIBS -b i486-linuxaout"
10105 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10106 /* end confdefs.h. */
10111 XOpenDisplay ("foo");
10116 if ac_fn_c_try_link
"$LINENO"; then :
10117 xlinux_second_failure
=no
10119 xlinux_second_failure
=yes
10121 rm -f core conftest.err conftest.
$ac_objext \
10122 conftest
$ac_exeext conftest.
$ac_ext
10123 if test "${xlinux_second_failure}" = "yes"; then
10124 # If we get the same failure with -b, there is no use adding -b.
10125 # So take it out. This plays safe.
10126 LD_SWITCH_X_SITE
="$OLD_LD_SWITCH_X_SITE"
10127 C_SWITCH_X_SITE
="$OLD_C_SWITCH_X_SITE"
10128 CPPFLAGS
="$OLD_CPPFLAGS"
10130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10131 $as_echo "no" >&6; }
10133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10134 $as_echo "yes" >&6; }
10137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10138 $as_echo "no" >&6; }
10142 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10143 # header files included from there.
10144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xkb" >&5
10145 $as_echo_n "checking for Xkb... " >&6; }
10146 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10147 /* end confdefs.h. */
10148 #include <X11/Xlib.h>
10149 #include <X11/XKBlib.h>
10153 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10158 if ac_fn_c_try_link
"$LINENO"; then :
10163 rm -f core conftest.err conftest.
$ac_objext \
10164 conftest
$ac_exeext conftest.
$ac_ext
10165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_xkb" >&5
10166 $as_echo "$emacs_xkb" >&6; }
10167 if test $emacs_xkb = yes; then
10169 $as_echo "#define HAVE_XKBGETKEYBOARD 1" >>confdefs.h
10173 for ac_func
in XrmSetDatabase XScreenResourceString \
10174 XScreenNumberOfScreen XSetWMProtocols
10176 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10177 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10178 eval as_val
=\$
$as_ac_var
10179 if test "x$as_val" = x
""yes; then :
10180 cat >>confdefs.h
<<_ACEOF
10181 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10189 if test "${window_system}" = "x11"; then
10190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 version 6" >&5
10191 $as_echo_n "checking X11 version 6... " >&6; }
10192 if test "${emacs_cv_x11_version_6+set}" = set; then :
10193 $as_echo_n "(cached) " >&6
10195 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10196 /* end confdefs.h. */
10197 #include <X11/Xlib.h>
10201 #if XlibSpecificationRelease < 6
10209 if ac_fn_c_try_link
"$LINENO"; then :
10210 emacs_cv_x11_version_6
=yes
10212 emacs_cv_x11_version_6
=no
10214 rm -f core conftest.err conftest.
$ac_objext \
10215 conftest
$ac_exeext conftest.
$ac_ext
10218 if test $emacs_cv_x11_version_6 = yes; then
10219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
10220 $as_echo "6 or newer" >&6; }
10222 $as_echo "#define HAVE_X11R6 1" >>confdefs.h
10225 $as_echo "#define HAVE_X_I18N 1" >>confdefs.h
10227 ## inoue@ainet.or.jp says Solaris has a bug related to X11R6-style
10232 $as_echo "#define HAVE_X11R6_XIM 1" >>confdefs.h
10237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
10238 $as_echo "before 6" >&6; }
10243 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
10245 if test "${HAVE_X11}" = "yes" ||
test "${HAVE_NS}" = "yes"; then
10246 if test "${with_rsvg}" != "no"; then
10247 RSVG_REQUIRED
=2.11.0
10248 RSVG_MODULE
="librsvg-2.0 >= $RSVG_REQUIRED"
10253 # Extract the first word of "pkg-config", so it can be a program name with args.
10254 set dummy pkg-config
; ac_word
=$2
10255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10256 $as_echo_n "checking for $ac_word... " >&6; }
10257 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10258 $as_echo_n "(cached) " >&6
10260 case $PKG_CONFIG in
10262 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
10265 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10266 for as_dir
in $PATH
10269 test -z "$as_dir" && as_dir
=.
10270 for ac_exec_ext
in '' $ac_executable_extensions; do
10271 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10272 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
10273 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10280 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
10284 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
10285 if test -n "$PKG_CONFIG"; then
10286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10287 $as_echo "$PKG_CONFIG" >&6; }
10289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10290 $as_echo "no" >&6; }
10295 if test "$PKG_CONFIG" = "no" ; then
10298 PKG_CONFIG_MIN_VERSION
=0.9.0
10299 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $RSVG_MODULE" >&5
10301 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
10303 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
10304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10305 $as_echo "yes" >&6; }
10308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_CFLAGS" >&5
10309 $as_echo_n "checking RSVG_CFLAGS... " >&6; }
10310 RSVG_CFLAGS
=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
10311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_CFLAGS" >&5
10312 $as_echo "$RSVG_CFLAGS" >&6; }
10314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_LIBS" >&5
10315 $as_echo_n "checking RSVG_LIBS... " >&6; }
10316 RSVG_LIBS
=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
10317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_LIBS" >&5
10318 $as_echo "$RSVG_LIBS" >&6; }
10320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10321 $as_echo "no" >&6; }
10324 ## If we have a custom action on failure, don't print errors, but
10325 ## do set a variable so people can do so.
10326 RSVG_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
10333 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10334 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10338 if test $succeeded = yes; then
10347 if test $HAVE_RSVG = yes; then
10349 $as_echo "#define HAVE_RSVG 1" >>confdefs.h
10351 CFLAGS
="$CFLAGS $RSVG_CFLAGS"
10352 LIBS
="$RSVG_LIBS $LIBS"
10357 HAVE_IMAGEMAGICK
=no
10358 if test "${HAVE_X11}" = "yes"; then
10359 if test "${with_imagemagick}" != "no"; then
10360 ## 6.2.8 is the earliest version known to work, but earlier versions
10361 ## might work - let us know if you find one.
10362 ## 6.0.7 does not work. See bug#7955.
10363 IMAGEMAGICK_MODULE
="Wand >= 6.2.8"
10367 # Extract the first word of "pkg-config", so it can be a program name with args.
10368 set dummy pkg-config
; ac_word
=$2
10369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10370 $as_echo_n "checking for $ac_word... " >&6; }
10371 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10372 $as_echo_n "(cached) " >&6
10374 case $PKG_CONFIG in
10376 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
10379 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10380 for as_dir
in $PATH
10383 test -z "$as_dir" && as_dir
=.
10384 for ac_exec_ext
in '' $ac_executable_extensions; do
10385 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10386 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
10387 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10394 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
10398 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
10399 if test -n "$PKG_CONFIG"; then
10400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10401 $as_echo "$PKG_CONFIG" >&6; }
10403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10404 $as_echo "no" >&6; }
10409 if test "$PKG_CONFIG" = "no" ; then
10412 PKG_CONFIG_MIN_VERSION
=0.9.0
10413 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $IMAGEMAGICK_MODULE" >&5
10415 $as_echo_n "checking for $IMAGEMAGICK_MODULE... " >&6; }
10417 if $PKG_CONFIG --exists "$IMAGEMAGICK_MODULE" 2>&5; then
10418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10419 $as_echo "yes" >&6; }
10422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking IMAGEMAGICK_CFLAGS" >&5
10423 $as_echo_n "checking IMAGEMAGICK_CFLAGS... " >&6; }
10424 IMAGEMAGICK_CFLAGS
=`$PKG_CONFIG --cflags "$IMAGEMAGICK_MODULE"|sed -e 's,///*,/,g'`
10425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMAGEMAGICK_CFLAGS" >&5
10426 $as_echo "$IMAGEMAGICK_CFLAGS" >&6; }
10428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking IMAGEMAGICK_LIBS" >&5
10429 $as_echo_n "checking IMAGEMAGICK_LIBS... " >&6; }
10430 IMAGEMAGICK_LIBS
=`$PKG_CONFIG --libs "$IMAGEMAGICK_MODULE"|sed -e 's,///*,/,g'`
10431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMAGEMAGICK_LIBS" >&5
10432 $as_echo "$IMAGEMAGICK_LIBS" >&6; }
10434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10435 $as_echo "no" >&6; }
10436 IMAGEMAGICK_CFLAGS
=""
10437 IMAGEMAGICK_LIBS
=""
10438 ## If we have a custom action on failure, don't print errors, but
10439 ## do set a variable so people can do so.
10440 IMAGEMAGICK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$IMAGEMAGICK_MODULE"`
10447 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10448 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10452 if test $succeeded = yes; then
10453 HAVE_IMAGEMAGICK
=yes
10461 if test $HAVE_IMAGEMAGICK = yes; then
10463 $as_echo "#define HAVE_IMAGEMAGICK 1" >>confdefs.h
10465 CFLAGS
="$CFLAGS $IMAGEMAGICK_CFLAGS"
10466 LIBS
="$IMAGEMAGICK_LIBS $LIBS"
10467 for ac_func
in MagickExportImagePixels
10469 ac_fn_c_check_func
"$LINENO" "MagickExportImagePixels" "ac_cv_func_MagickExportImagePixels"
10470 if test "x$ac_cv_func_MagickExportImagePixels" = x
""yes; then :
10471 cat >>confdefs.h
<<_ACEOF
10472 #define HAVE_MAGICKEXPORTIMAGEPIXELS 1
10485 if test "${with_gtk3}" = "yes"; then
10488 GTK_MODULES
="gtk+-3.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10493 # Extract the first word of "pkg-config", so it can be a program name with args.
10494 set dummy pkg-config
; ac_word
=$2
10495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10496 $as_echo_n "checking for $ac_word... " >&6; }
10497 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10498 $as_echo_n "(cached) " >&6
10500 case $PKG_CONFIG in
10502 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
10505 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10506 for as_dir
in $PATH
10509 test -z "$as_dir" && as_dir
=.
10510 for ac_exec_ext
in '' $ac_executable_extensions; do
10511 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10512 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
10513 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10520 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
10524 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
10525 if test -n "$PKG_CONFIG"; then
10526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10527 $as_echo "$PKG_CONFIG" >&6; }
10529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10530 $as_echo "no" >&6; }
10535 if test "$PKG_CONFIG" = "no" ; then
10538 PKG_CONFIG_MIN_VERSION
=0.9.0
10539 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
10541 $as_echo_n "checking for $GTK_MODULES... " >&6; }
10543 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
10544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10545 $as_echo "yes" >&6; }
10548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
10549 $as_echo_n "checking GTK_CFLAGS... " >&6; }
10550 GTK_CFLAGS
=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
10551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
10552 $as_echo "$GTK_CFLAGS" >&6; }
10554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
10555 $as_echo_n "checking GTK_LIBS... " >&6; }
10556 GTK_LIBS
=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
10557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
10558 $as_echo "$GTK_LIBS" >&6; }
10560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10561 $as_echo "no" >&6; }
10564 ## If we have a custom action on failure, don't print errors, but
10565 ## do set a variable so people can do so.
10566 GTK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
10573 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10574 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10578 if test $succeeded = yes; then
10584 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
10585 as_fn_error
"$GTK_PKG_ERRORS" "$LINENO" 5
10588 $as_echo "#define HAVE_GTK3 1" >>confdefs.h
10590 GTK_OBJ
=emacsgtkfixed.o
10593 if test "$pkg_check_gtk" != "yes"; then
10595 if test "${with_gtk}" = "yes" ||
test "$USE_X_TOOLKIT" = "maybe"; then
10598 GTK_MODULES
="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10603 # Extract the first word of "pkg-config", so it can be a program name with args.
10604 set dummy pkg-config
; ac_word
=$2
10605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10606 $as_echo_n "checking for $ac_word... " >&6; }
10607 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10608 $as_echo_n "(cached) " >&6
10610 case $PKG_CONFIG in
10612 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
10615 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10616 for as_dir
in $PATH
10619 test -z "$as_dir" && as_dir
=.
10620 for ac_exec_ext
in '' $ac_executable_extensions; do
10621 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10622 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
10623 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10630 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
10634 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
10635 if test -n "$PKG_CONFIG"; then
10636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10637 $as_echo "$PKG_CONFIG" >&6; }
10639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10640 $as_echo "no" >&6; }
10645 if test "$PKG_CONFIG" = "no" ; then
10648 PKG_CONFIG_MIN_VERSION
=0.9.0
10649 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
10651 $as_echo_n "checking for $GTK_MODULES... " >&6; }
10653 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
10654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10655 $as_echo "yes" >&6; }
10658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
10659 $as_echo_n "checking GTK_CFLAGS... " >&6; }
10660 GTK_CFLAGS
=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
10661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
10662 $as_echo "$GTK_CFLAGS" >&6; }
10664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
10665 $as_echo_n "checking GTK_LIBS... " >&6; }
10666 GTK_LIBS
=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
10667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
10668 $as_echo "$GTK_LIBS" >&6; }
10670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10671 $as_echo "no" >&6; }
10674 ## If we have a custom action on failure, don't print errors, but
10675 ## do set a variable so people can do so.
10676 GTK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
10683 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10684 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10688 if test $succeeded = yes; then
10694 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
10695 as_fn_error
"$GTK_PKG_ERRORS" "$LINENO" 5
10700 if test x
"$pkg_check_gtk" = xyes
; then
10704 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $GTK_CFLAGS"
10705 CFLAGS
="$CFLAGS $GTK_CFLAGS"
10706 LIBS
="$GTK_LIBS $LIBS"
10708 for ac_func
in gtk_main
10710 ac_fn_c_check_func
"$LINENO" "gtk_main" "ac_cv_func_gtk_main"
10711 if test "x$ac_cv_func_gtk_main" = x
""yes; then :
10712 cat >>confdefs.h
<<_ACEOF
10713 #define HAVE_GTK_MAIN 1
10719 if test "${GTK_COMPILES}" != "yes"; then
10720 if test "$USE_X_TOOLKIT" != "maybe"; then
10721 as_fn_error
"Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" "$LINENO" 5;
10726 $as_echo "#define USE_GTK 1" >>confdefs.h
10728 GTK_OBJ
="gtkutil.o $GTK_OBJ"
10730 if $PKG_CONFIG --atleast-version=2.10 gtk
+-2.0
; then
10733 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of Gtk+ will have problems with
10734 closing open displays. This is no problem if you just use
10735 one display, but if you use more than one and close one of them
10736 Emacs may crash." >&5
10737 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
10738 closing open displays. This is no problem if you just use
10739 one display, but if you use more than one and close one of them
10740 Emacs may crash." >&2;}
10749 if test "${HAVE_GTK}" = "yes"; then
10751 if test "$with_toolkit_scroll_bars" != no
; then
10752 with_toolkit_scroll_bars
=yes
10755 HAVE_GTK_FILE_SELECTION
=no
10756 ac_fn_c_check_decl
"$LINENO" "GTK_TYPE_FILE_SELECTION" "ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" "$ac_includes_default
10757 #include <gtk/gtk.h>
10759 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = x
""yes; then :
10760 HAVE_GTK_FILE_SELECTION
=yes
10762 HAVE_GTK_FILE_SELECTION
=no
10765 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
10766 for ac_func
in gtk_file_selection_new
10768 ac_fn_c_check_func
"$LINENO" "gtk_file_selection_new" "ac_cv_func_gtk_file_selection_new"
10769 if test "x$ac_cv_func_gtk_file_selection_new" = x
""yes; then :
10770 cat >>confdefs.h
<<_ACEOF
10771 #define HAVE_GTK_FILE_SELECTION_NEW 1
10780 for ac_func
in gtk_widget_get_window gtk_widget_set_has_window \
10781 gtk_dialog_get_action_area gtk_widget_get_sensitive \
10782 gtk_widget_get_mapped gtk_adjustment_get_page_size \
10783 gtk_orientable_set_orientation
10785 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10786 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10787 eval as_val
=\$
$as_ac_var
10788 if test "x$as_val" = x
""yes; then :
10789 cat >>confdefs.h
<<_ACEOF
10790 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10801 if test "${with_dbus}" = "yes"; then
10805 # Extract the first word of "pkg-config", so it can be a program name with args.
10806 set dummy pkg-config
; ac_word
=$2
10807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10808 $as_echo_n "checking for $ac_word... " >&6; }
10809 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10810 $as_echo_n "(cached) " >&6
10812 case $PKG_CONFIG in
10814 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
10817 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10818 for as_dir
in $PATH
10821 test -z "$as_dir" && as_dir
=.
10822 for ac_exec_ext
in '' $ac_executable_extensions; do
10823 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10824 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
10825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10832 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
10836 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
10837 if test -n "$PKG_CONFIG"; then
10838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10839 $as_echo "$PKG_CONFIG" >&6; }
10841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10842 $as_echo "no" >&6; }
10847 if test "$PKG_CONFIG" = "no" ; then
10850 PKG_CONFIG_MIN_VERSION
=0.9.0
10851 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1 >= 1.0" >&5
10853 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
10855 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
10856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10857 $as_echo "yes" >&6; }
10860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_CFLAGS" >&5
10861 $as_echo_n "checking DBUS_CFLAGS... " >&6; }
10862 DBUS_CFLAGS
=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
10863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_CFLAGS" >&5
10864 $as_echo "$DBUS_CFLAGS" >&6; }
10866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_LIBS" >&5
10867 $as_echo_n "checking DBUS_LIBS... " >&6; }
10868 DBUS_LIBS
=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
10869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_LIBS" >&5
10870 $as_echo "$DBUS_LIBS" >&6; }
10872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10873 $as_echo "no" >&6; }
10876 ## If we have a custom action on failure, don't print errors, but
10877 ## do set a variable so people can do so.
10878 DBUS_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
10885 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10886 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10890 if test $succeeded = yes; then
10896 if test "$HAVE_DBUS" = yes; then
10897 LIBS
="$LIBS $DBUS_LIBS"
10899 $as_echo "#define HAVE_DBUS 1" >>confdefs.h
10901 for ac_func
in dbus_watch_get_unix_fd
10903 ac_fn_c_check_func
"$LINENO" "dbus_watch_get_unix_fd" "ac_cv_func_dbus_watch_get_unix_fd"
10904 if test "x$ac_cv_func_dbus_watch_get_unix_fd" = x
""yes; then :
10905 cat >>confdefs.h
<<_ACEOF
10906 #define HAVE_DBUS_WATCH_GET_UNIX_FD 1
10912 DBUS_OBJ
=dbusbind.o
10918 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
10922 # Extract the first word of "pkg-config", so it can be a program name with args.
10923 set dummy pkg-config
; ac_word
=$2
10924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10925 $as_echo_n "checking for $ac_word... " >&6; }
10926 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10927 $as_echo_n "(cached) " >&6
10929 case $PKG_CONFIG in
10931 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
10934 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10935 for as_dir
in $PATH
10938 test -z "$as_dir" && as_dir
=.
10939 for ac_exec_ext
in '' $ac_executable_extensions; do
10940 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10941 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
10942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10949 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
10953 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
10954 if test -n "$PKG_CONFIG"; then
10955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10956 $as_echo "$PKG_CONFIG" >&6; }
10958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10959 $as_echo "no" >&6; }
10964 if test "$PKG_CONFIG" = "no" ; then
10967 PKG_CONFIG_MIN_VERSION
=0.9.0
10968 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.13" >&5
10970 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
10972 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5; then
10973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10974 $as_echo "yes" >&6; }
10977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_CFLAGS" >&5
10978 $as_echo_n "checking GCONF_CFLAGS... " >&6; }
10979 GCONF_CFLAGS
=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
10980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_CFLAGS" >&5
10981 $as_echo "$GCONF_CFLAGS" >&6; }
10983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_LIBS" >&5
10984 $as_echo_n "checking GCONF_LIBS... " >&6; }
10985 GCONF_LIBS
=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
10986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_LIBS" >&5
10987 $as_echo "$GCONF_LIBS" >&6; }
10989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10990 $as_echo "no" >&6; }
10993 ## If we have a custom action on failure, don't print errors, but
10994 ## do set a variable so people can do so.
10995 GCONF_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.13"`
11002 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11003 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11007 if test $succeeded = yes; then
11013 if test "$HAVE_GCONF" = yes; then
11015 $as_echo "#define HAVE_GCONF 1" >>confdefs.h
11017 for ac_func
in g_type_init
11019 ac_fn_c_check_func
"$LINENO" "g_type_init" "ac_cv_func_g_type_init"
11020 if test "x$ac_cv_func_g_type_init" = x
""yes; then :
11021 cat >>confdefs.h
<<_ACEOF
11022 #define HAVE_G_TYPE_INIT 1
11033 if test "${with_selinux}" = "yes"; then
11034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgetfilecon in -lselinux" >&5
11035 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
11036 if test "${ac_cv_lib_selinux_lgetfilecon+set}" = set; then :
11037 $as_echo_n "(cached) " >&6
11039 ac_check_lib_save_LIBS
=$LIBS
11040 LIBS
="-lselinux $LIBS"
11041 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11042 /* end confdefs.h. */
11044 /* Override any GCC internal prototype to avoid an error.
11045 Use char because int might match the return type of a GCC
11046 builtin and then its argument prototype would still apply. */
11050 char lgetfilecon ();
11054 return lgetfilecon ();
11059 if ac_fn_c_try_link
"$LINENO"; then :
11060 ac_cv_lib_selinux_lgetfilecon
=yes
11062 ac_cv_lib_selinux_lgetfilecon
=no
11064 rm -f core conftest.err conftest.
$ac_objext \
11065 conftest
$ac_exeext conftest.
$ac_ext
11066 LIBS
=$ac_check_lib_save_LIBS
11068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_lgetfilecon" >&5
11069 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
11070 if test "x$ac_cv_lib_selinux_lgetfilecon" = x
""yes; then :
11071 HAVE_LIBSELINUX
=yes
11076 if test "$HAVE_LIBSELINUX" = yes; then
11078 $as_echo "#define HAVE_LIBSELINUX 1" >>confdefs.h
11080 LIBSELINUX_LIBS
=-lselinux
11086 HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY
=no
11087 if test "${with_gnutls}" = "yes" ; then
11091 # Extract the first word of "pkg-config", so it can be a program name with args.
11092 set dummy pkg-config
; ac_word
=$2
11093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11094 $as_echo_n "checking for $ac_word... " >&6; }
11095 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11096 $as_echo_n "(cached) " >&6
11098 case $PKG_CONFIG in
11100 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11103 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11104 for as_dir
in $PATH
11107 test -z "$as_dir" && as_dir
=.
11108 for ac_exec_ext
in '' $ac_executable_extensions; do
11109 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11110 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11111 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11118 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11122 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11123 if test -n "$PKG_CONFIG"; then
11124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11125 $as_echo "$PKG_CONFIG" >&6; }
11127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11128 $as_echo "no" >&6; }
11133 if test "$PKG_CONFIG" = "no" ; then
11136 PKG_CONFIG_MIN_VERSION
=0.9.0
11137 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls >= 2.6.0" >&5
11139 $as_echo_n "checking for gnutls >= 2.6.0... " >&6; }
11141 if $PKG_CONFIG --exists "gnutls >= 2.6.0" 2>&5; then
11142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11143 $as_echo "yes" >&6; }
11146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGNUTLS_CFLAGS" >&5
11147 $as_echo_n "checking LIBGNUTLS_CFLAGS... " >&6; }
11148 LIBGNUTLS_CFLAGS
=`$PKG_CONFIG --cflags "gnutls >= 2.6.0"|sed -e 's,///*,/,g'`
11149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLS_CFLAGS" >&5
11150 $as_echo "$LIBGNUTLS_CFLAGS" >&6; }
11152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGNUTLS_LIBS" >&5
11153 $as_echo_n "checking LIBGNUTLS_LIBS... " >&6; }
11154 LIBGNUTLS_LIBS
=`$PKG_CONFIG --libs "gnutls >= 2.6.0"|sed -e 's,///*,/,g'`
11155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLS_LIBS" >&5
11156 $as_echo "$LIBGNUTLS_LIBS" >&6; }
11158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11159 $as_echo "no" >&6; }
11160 LIBGNUTLS_CFLAGS
=""
11162 ## If we have a custom action on failure, don't print errors, but
11163 ## do set a variable so people can do so.
11164 LIBGNUTLS_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "gnutls >= 2.6.0"`
11171 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11172 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11176 if test $succeeded = yes; then
11182 if test "${HAVE_GNUTLS}" = "yes"; then
11184 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
11188 CFLAGS
="$CFLAGS $LIBGNUTLS_CFLAGS"
11189 LIBS
="$LIBGNUTLS_LIBS $LIBS"
11190 for ac_func
in gnutls_certificate_set_verify_function
11192 ac_fn_c_check_func
"$LINENO" "gnutls_certificate_set_verify_function" "ac_cv_func_gnutls_certificate_set_verify_function"
11193 if test "x$ac_cv_func_gnutls_certificate_set_verify_function" = x
""yes; then :
11194 cat >>confdefs.h
<<_ACEOF
11195 #define HAVE_GNUTLS_CERTIFICATE_SET_VERIFY_FUNCTION 1
11197 HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY
=yes
11202 if test "${HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY}" = "yes"; then
11204 $as_echo "#define HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY 1" >>confdefs.h
11214 if test x
"${USE_X_TOOLKIT}" = xmaybe ||
test x
"${USE_X_TOOLKIT}" = xLUCID
; then
11215 if test "$with_xaw3d" != no
; then
11216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
11217 $as_echo_n "checking for xaw3d... " >&6; }
11218 if test "${emacs_cv_xaw3d+set}" = set; then :
11219 $as_echo_n "(cached) " >&6
11221 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11222 /* end confdefs.h. */
11224 #include <X11/Intrinsic.h>
11225 #include <X11/Xaw3d/Simple.h>
11234 if ac_fn_c_try_link
"$LINENO"; then :
11235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XawScrollbarSetThumb in -lXaw3d" >&5
11236 $as_echo_n "checking for XawScrollbarSetThumb in -lXaw3d... " >&6; }
11237 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then :
11238 $as_echo_n "(cached) " >&6
11240 ac_check_lib_save_LIBS
=$LIBS
11241 LIBS
="-lXaw3d $LIBS"
11242 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11243 /* end confdefs.h. */
11245 /* Override any GCC internal prototype to avoid an error.
11246 Use char because int might match the return type of a GCC
11247 builtin and then its argument prototype would still apply. */
11251 char XawScrollbarSetThumb ();
11255 return XawScrollbarSetThumb ();
11260 if ac_fn_c_try_link
"$LINENO"; then :
11261 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=yes
11263 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=no
11265 rm -f core conftest.err conftest.
$ac_objext \
11266 conftest
$ac_exeext conftest.
$ac_ext
11267 LIBS
=$ac_check_lib_save_LIBS
11269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
11270 $as_echo "$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6; }
11271 if test "x$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" = x
""yes; then :
11280 rm -f core conftest.err conftest.
$ac_objext \
11281 conftest
$ac_exeext conftest.
$ac_ext
11287 if test $emacs_cv_xaw3d = yes; then
11288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
11289 $as_echo "yes; using Lucid toolkit" >&6; }
11290 USE_X_TOOLKIT
=LUCID
11294 $as_echo "#define HAVE_XAW3D 1" >>confdefs.h
11297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11298 $as_echo "no" >&6; }
11299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXaw" >&5
11300 $as_echo_n "checking for libXaw... " >&6; }
11301 if test "${emacs_cv_xaw+set}" = set; then :
11302 $as_echo_n "(cached) " >&6
11304 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11305 /* end confdefs.h. */
11307 #include <X11/Intrinsic.h>
11308 #include <X11/Xaw/Simple.h>
11317 if ac_fn_c_try_link
"$LINENO"; then :
11322 rm -f core conftest.err conftest.
$ac_objext \
11323 conftest
$ac_exeext conftest.
$ac_ext
11326 if test $emacs_cv_xaw = yes; then
11327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
11328 $as_echo "yes; using Lucid toolkit" >&6; }
11329 USE_X_TOOLKIT
=LUCID
11331 elif test x
"${USE_X_TOOLKIT}" = xLUCID
; then
11332 as_fn_error
"Lucid toolkit requires X11/Xaw include files" "$LINENO" 5
11334 as_fn_error
"No X toolkit could be found.
11335 If you are sure you want Emacs compiled without an X toolkit, pass
11336 --with-x-toolkit=no
11337 to configure. Otherwise, install the development libraries for the toolkit
11338 that you want to use (e.g. Gtk+) and re-run configure." "$LINENO" 5
11343 X_TOOLKIT_TYPE
=$USE_X_TOOLKIT
11346 if test "${USE_X_TOOLKIT}" != "none"; then
11347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 toolkit version" >&5
11348 $as_echo_n "checking X11 toolkit version... " >&6; }
11349 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then :
11350 $as_echo_n "(cached) " >&6
11352 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11353 /* end confdefs.h. */
11354 #include <X11/Intrinsic.h>
11358 #if XtSpecificationRelease < 6
11366 if ac_fn_c_try_link
"$LINENO"; then :
11367 emacs_cv_x11_toolkit_version_6
=yes
11369 emacs_cv_x11_toolkit_version_6
=no
11371 rm -f core conftest.err conftest.
$ac_objext \
11372 conftest
$ac_exeext conftest.
$ac_ext
11375 HAVE_X11XTR6
=$emacs_cv_x11_toolkit_version_6
11376 if test $emacs_cv_x11_toolkit_version_6 = yes; then
11377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
11378 $as_echo "6 or newer" >&6; }
11380 $as_echo "#define HAVE_X11XTR6 1" >>confdefs.h
11382 LIBXTR6
="-lSM -lICE"
11384 ## Use libw.a along with X11R6 Xt.
11385 unixware
) LIBXTR6
="$LIBXTR6 -lw" ;;
11388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
11389 $as_echo "before 6" >&6; }
11393 if test x
$HAVE_X11XTR6 = xyes
; then
11394 LIBS
="-lXt -lSM -lICE $LIBS"
11398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuConvertStandardSelection in -lXmu" >&5
11399 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
11400 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then :
11401 $as_echo_n "(cached) " >&6
11403 ac_check_lib_save_LIBS
=$LIBS
11405 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11406 /* end confdefs.h. */
11408 /* Override any GCC internal prototype to avoid an error.
11409 Use char because int might match the return type of a GCC
11410 builtin and then its argument prototype would still apply. */
11414 char XmuConvertStandardSelection ();
11418 return XmuConvertStandardSelection ();
11423 if ac_fn_c_try_link
"$LINENO"; then :
11424 ac_cv_lib_Xmu_XmuConvertStandardSelection
=yes
11426 ac_cv_lib_Xmu_XmuConvertStandardSelection
=no
11428 rm -f core conftest.err conftest.
$ac_objext \
11429 conftest
$ac_exeext conftest.
$ac_ext
11430 LIBS
=$ac_check_lib_save_LIBS
11432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
11433 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
11434 if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = x
""yes; then :
11435 cat >>confdefs.h
<<_ACEOF
11436 #define HAVE_LIBXMU 1
11443 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no
&& LIBS
="$OLDLIBS"
11449 ## These systems don't supply Xmu.
11451 test "X$ac_cv_lib_Xmu_XmuConvertStandardSelection" != "Xyes" && LIBXMU
=
11456 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
11457 if test "${HAVE_X11}" = "yes"; then
11458 if test "${USE_X_TOOLKIT}" != "none"; then
11459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
11460 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
11461 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then :
11462 $as_echo_n "(cached) " >&6
11464 ac_check_lib_save_LIBS
=$LIBS
11465 LIBS
="-lXext $LIBS"
11466 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11467 /* end confdefs.h. */
11469 /* Override any GCC internal prototype to avoid an error.
11470 Use char because int might match the return type of a GCC
11471 builtin and then its argument prototype would still apply. */
11475 char XShapeQueryExtension ();
11479 return XShapeQueryExtension ();
11484 if ac_fn_c_try_link
"$LINENO"; then :
11485 ac_cv_lib_Xext_XShapeQueryExtension
=yes
11487 ac_cv_lib_Xext_XShapeQueryExtension
=no
11489 rm -f core conftest.err conftest.
$ac_objext \
11490 conftest
$ac_exeext conftest.
$ac_ext
11491 LIBS
=$ac_check_lib_save_LIBS
11493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
11494 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
11495 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x
""yes; then :
11496 cat >>confdefs.h
<<_ACEOF
11497 #define HAVE_LIBXEXT 1
11500 LIBS
="-lXext $LIBS"
11508 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Motif version 2.1" >&5
11510 $as_echo_n "checking for Motif version 2.1... " >&6; }
11511 if test "${emacs_cv_motif_version_2_1+set}" = set; then :
11512 $as_echo_n "(cached) " >&6
11514 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11515 /* end confdefs.h. */
11520 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
11523 Motif version prior to 2.1.
11529 if ac_fn_c_try_compile
"$LINENO"; then :
11530 emacs_cv_motif_version_2_1
=yes
11532 emacs_cv_motif_version_2_1
=no
11534 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_motif_version_2_1" >&5
11537 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
11538 if test $emacs_cv_motif_version_2_1 = yes; then
11539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpCreateContext in -lXp" >&5
11540 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
11541 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then :
11542 $as_echo_n "(cached) " >&6
11544 ac_check_lib_save_LIBS
=$LIBS
11546 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11547 /* end confdefs.h. */
11549 /* Override any GCC internal prototype to avoid an error.
11550 Use char because int might match the return type of a GCC
11551 builtin and then its argument prototype would still apply. */
11555 char XpCreateContext ();
11559 return XpCreateContext ();
11564 if ac_fn_c_try_link
"$LINENO"; then :
11565 ac_cv_lib_Xp_XpCreateContext
=yes
11567 ac_cv_lib_Xp_XpCreateContext
=no
11569 rm -f core conftest.err conftest.
$ac_objext \
11570 conftest
$ac_exeext conftest.
$ac_ext
11571 LIBS
=$ac_check_lib_save_LIBS
11573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpCreateContext" >&5
11574 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
11575 if test "x$ac_cv_lib_Xp_XpCreateContext" = x
""yes; then :
11580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LessTif where some systems put it" >&5
11581 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
11582 if test "${emacs_cv_lesstif+set}" = set; then :
11583 $as_echo_n "(cached) " >&6
11585 # We put this in CFLAGS temporarily to precede other -I options
11586 # that might be in CFLAGS temporarily.
11587 # We put this in CPPFLAGS where it precedes the other -I options.
11588 OLD_CPPFLAGS
=$CPPFLAGS
11590 CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
11591 CFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
11592 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11593 /* end confdefs.h. */
11594 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
11603 if ac_fn_c_try_compile
"$LINENO"; then :
11604 emacs_cv_lesstif
=yes
11606 emacs_cv_lesstif
=no
11608 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_lesstif" >&5
11611 $as_echo "$emacs_cv_lesstif" >&6; }
11612 if test $emacs_cv_lesstif = yes; then
11613 # Make sure this -I option remains in CPPFLAGS after it is set
11614 # back to REAL_CPPFLAGS.
11615 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
11616 # have those other -I options anyway. Ultimately, having this
11617 # directory ultimately in CPPFLAGS will be enough.
11618 REAL_CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
11619 LDFLAGS
="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
11622 CPPFLAGS
=$OLD_CPPFLAGS
11628 USE_TOOLKIT_SCROLL_BARS
=no
11629 if test "${with_toolkit_scroll_bars}" != "no"; then
11630 if test "${USE_X_TOOLKIT}" != "none"; then
11631 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11632 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11635 USE_TOOLKIT_SCROLL_BARS
=yes
11636 elif test "${HAVE_XAW3D}" = "yes"; then
11637 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11639 USE_TOOLKIT_SCROLL_BARS
=yes
11641 elif test "${HAVE_GTK}" = "yes"; then
11642 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11644 USE_TOOLKIT_SCROLL_BARS
=yes
11645 elif test "${HAVE_NS}" = "yes"; then
11646 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11648 USE_TOOLKIT_SCROLL_BARS
=yes
11652 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11653 /* end confdefs.h. */
11655 #include <X11/Xlib.h>
11656 #include <X11/Xresource.h>
11665 if ac_fn_c_try_compile
"$LINENO"; then :
11668 $as_echo "#define HAVE_XIM 1" >>confdefs.h
11673 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11676 if test "${with_xim}" != "no"; then
11678 $as_echo "#define USE_XIM 1" >>confdefs.h
11683 if test "${HAVE_XIM}" != "no"; then
11684 late_CFLAGS
=$CFLAGS
11685 if test "$GCC" = yes; then
11686 CFLAGS
="$CFLAGS --pedantic-errors"
11688 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11689 /* end confdefs.h. */
11691 #include <X11/Xlib.h>
11692 #include <X11/Xresource.h>
11701 XPointer *client_data;
11703 /* If we're not using GCC, it's probably not XFree86, and this is
11704 probably right, but we can't use something like --pedantic-errors. */
11705 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
11706 char*, XIMProc, XPointer*);
11708 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
11714 if ac_fn_c_try_compile
"$LINENO"; then :
11715 emacs_cv_arg6_star
=yes
11717 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11718 if test "$emacs_cv_arg6_star" = yes; then
11719 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer*" >>confdefs.h
11722 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer" >>confdefs.h
11725 CFLAGS
=$late_CFLAGS
11728 ### Start of font-backend (under any platform) section.
11729 # (nothing here yet -- this is a placeholder)
11730 ### End of font-backend (under any platform) section.
11732 ### Start of font-backend (under X11) section.
11733 if test "${HAVE_X11}" = "yes"; then
11737 # Extract the first word of "pkg-config", so it can be a program name with args.
11738 set dummy pkg-config
; ac_word
=$2
11739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11740 $as_echo_n "checking for $ac_word... " >&6; }
11741 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11742 $as_echo_n "(cached) " >&6
11744 case $PKG_CONFIG in
11746 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11749 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11750 for as_dir
in $PATH
11753 test -z "$as_dir" && as_dir
=.
11754 for ac_exec_ext
in '' $ac_executable_extensions; do
11755 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11756 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11764 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11768 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11769 if test -n "$PKG_CONFIG"; then
11770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11771 $as_echo "$PKG_CONFIG" >&6; }
11773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11774 $as_echo "no" >&6; }
11779 if test "$PKG_CONFIG" = "no" ; then
11782 PKG_CONFIG_MIN_VERSION
=0.9.0
11783 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.2.0" >&5
11785 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
11787 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5; then
11788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11789 $as_echo "yes" >&6; }
11792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_CFLAGS" >&5
11793 $as_echo_n "checking FONTCONFIG_CFLAGS... " >&6; }
11794 FONTCONFIG_CFLAGS
=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
11795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_CFLAGS" >&5
11796 $as_echo "$FONTCONFIG_CFLAGS" >&6; }
11798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_LIBS" >&5
11799 $as_echo_n "checking FONTCONFIG_LIBS... " >&6; }
11800 FONTCONFIG_LIBS
=`$PKG_CONFIG --libs "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
11801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_LIBS" >&5
11802 $as_echo "$FONTCONFIG_LIBS" >&6; }
11804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11805 $as_echo "no" >&6; }
11806 FONTCONFIG_CFLAGS
=""
11808 ## If we have a custom action on failure, don't print errors, but
11809 ## do set a variable so people can do so.
11810 FONTCONFIG_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2.0"`
11817 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11818 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11822 if test $succeeded = yes; then
11829 ## Use -lXft if available, unless `--with-xft=no'.
11831 if test "${HAVE_FC}" = "no" ||
test "x${with_x}" = "xno"; then
11834 if test "x${with_xft}" != "xno"; then
11839 # Extract the first word of "pkg-config", so it can be a program name with args.
11840 set dummy pkg-config
; ac_word
=$2
11841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11842 $as_echo_n "checking for $ac_word... " >&6; }
11843 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11844 $as_echo_n "(cached) " >&6
11846 case $PKG_CONFIG in
11848 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11851 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11852 for as_dir
in $PATH
11855 test -z "$as_dir" && as_dir
=.
11856 for ac_exec_ext
in '' $ac_executable_extensions; do
11857 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11858 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11866 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11870 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11871 if test -n "$PKG_CONFIG"; then
11872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11873 $as_echo "$PKG_CONFIG" >&6; }
11875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11876 $as_echo "no" >&6; }
11881 if test "$PKG_CONFIG" = "no" ; then
11884 PKG_CONFIG_MIN_VERSION
=0.9.0
11885 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xft >= 0.13.0" >&5
11887 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
11889 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
11890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11891 $as_echo "yes" >&6; }
11894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_CFLAGS" >&5
11895 $as_echo_n "checking XFT_CFLAGS... " >&6; }
11896 XFT_CFLAGS
=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
11897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_CFLAGS" >&5
11898 $as_echo "$XFT_CFLAGS" >&6; }
11900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_LIBS" >&5
11901 $as_echo_n "checking XFT_LIBS... " >&6; }
11902 XFT_LIBS
=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
11903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_LIBS" >&5
11904 $as_echo "$XFT_LIBS" >&6; }
11906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11907 $as_echo "no" >&6; }
11910 ## If we have a custom action on failure, don't print errors, but
11911 ## do set a variable so people can do so.
11912 XFT_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
11919 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11920 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11924 if test $succeeded = yes; then
11930 ## Because xftfont.c uses XRenderQueryExtension, we also
11931 ## need to link to -lXrender.
11933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5
11934 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
11935 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then :
11936 $as_echo_n "(cached) " >&6
11938 ac_check_lib_save_LIBS
=$LIBS
11939 LIBS
="-lXrender $LIBS"
11940 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11941 /* end confdefs.h. */
11943 /* Override any GCC internal prototype to avoid an error.
11944 Use char because int might match the return type of a GCC
11945 builtin and then its argument prototype would still apply. */
11949 char XRenderQueryExtension ();
11953 return XRenderQueryExtension ();
11958 if ac_fn_c_try_link
"$LINENO"; then :
11959 ac_cv_lib_Xrender_XRenderQueryExtension
=yes
11961 ac_cv_lib_Xrender_XRenderQueryExtension
=no
11963 rm -f core conftest.err conftest.
$ac_objext \
11964 conftest
$ac_exeext conftest.
$ac_ext
11965 LIBS
=$ac_check_lib_save_LIBS
11967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
11968 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
11969 if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = x
""yes; then :
11973 if test "$HAVE_XFT" != no
&& test "$HAVE_XRENDER" != no
; then
11974 OLD_CPPFLAGS
="$CPPFLAGS"
11975 OLD_CFLAGS
="$CFLAGS"
11977 CPPFLAGS
="$CPPFLAGS $XFT_CFLAGS"
11978 CFLAGS
="$CFLAGS $XFT_CFLAGS"
11979 XFT_LIBS
="-lXrender $XFT_LIBS"
11980 LIBS
="$XFT_LIBS $LIBS"
11981 ac_fn_c_check_header_mongrel
"$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default"
11982 if test "x$ac_cv_header_X11_Xft_Xft_h" = x
""yes; then :
11983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5
11984 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
11985 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then :
11986 $as_echo_n "(cached) " >&6
11988 ac_check_lib_save_LIBS
=$LIBS
11989 LIBS
="-lXft $XFT_LIBS $LIBS"
11990 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11991 /* end confdefs.h. */
11993 /* Override any GCC internal prototype to avoid an error.
11994 Use char because int might match the return type of a GCC
11995 builtin and then its argument prototype would still apply. */
11999 char XftFontOpen ();
12003 return XftFontOpen ();
12008 if ac_fn_c_try_link
"$LINENO"; then :
12009 ac_cv_lib_Xft_XftFontOpen
=yes
12011 ac_cv_lib_Xft_XftFontOpen
=no
12013 rm -f core conftest.err conftest.
$ac_objext \
12014 conftest
$ac_exeext conftest.
$ac_ext
12015 LIBS
=$ac_check_lib_save_LIBS
12017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftFontOpen" >&5
12018 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
12019 if test "x$ac_cv_lib_Xft_XftFontOpen" = x
""yes; then :
12027 if test "${HAVE_XFT}" = "yes"; then
12029 $as_echo "#define HAVE_XFT 1" >>confdefs.h
12032 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $XFT_CFLAGS"
12034 CPPFLAGS
="$OLD_CPPFLAGS"
12035 CFLAGS
="$OLD_CFLAGS"
12037 fi # "${HAVE_XFT}" = "yes"
12038 fi # "$HAVE_XFT" != no
12039 fi # "x${with_xft}" != "xno"
12041 ## We used to allow building with FreeType and without Xft.
12042 ## However, the ftx font backend driver is not in good shape.
12043 if test "$HAVE_XFT" != "yes"; then
12050 # Extract the first word of "pkg-config", so it can be a program name with args.
12051 set dummy pkg-config
; ac_word
=$2
12052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12053 $as_echo_n "checking for $ac_word... " >&6; }
12054 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
12055 $as_echo_n "(cached) " >&6
12057 case $PKG_CONFIG in
12059 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
12062 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12063 for as_dir
in $PATH
12066 test -z "$as_dir" && as_dir
=.
12067 for ac_exec_ext
in '' $ac_executable_extensions; do
12068 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12069 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
12070 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12077 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
12081 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
12082 if test -n "$PKG_CONFIG"; then
12083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12084 $as_echo "$PKG_CONFIG" >&6; }
12086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12087 $as_echo "no" >&6; }
12092 if test "$PKG_CONFIG" = "no" ; then
12095 PKG_CONFIG_MIN_VERSION
=0.9.0
12096 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype2" >&5
12098 $as_echo_n "checking for freetype2... " >&6; }
12100 if $PKG_CONFIG --exists "freetype2" 2>&5; then
12101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12102 $as_echo "yes" >&6; }
12105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FREETYPE_CFLAGS" >&5
12106 $as_echo_n "checking FREETYPE_CFLAGS... " >&6; }
12107 FREETYPE_CFLAGS
=`$PKG_CONFIG --cflags "freetype2"|sed -e 's,///*,/,g'`
12108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_CFLAGS" >&5
12109 $as_echo "$FREETYPE_CFLAGS" >&6; }
12111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FREETYPE_LIBS" >&5
12112 $as_echo_n "checking FREETYPE_LIBS... " >&6; }
12113 FREETYPE_LIBS
=`$PKG_CONFIG --libs "freetype2"|sed -e 's,///*,/,g'`
12114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIBS" >&5
12115 $as_echo "$FREETYPE_LIBS" >&6; }
12117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12118 $as_echo "no" >&6; }
12121 ## If we have a custom action on failure, don't print errors, but
12122 ## do set a variable so people can do so.
12123 FREETYPE_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2"`
12130 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12131 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12135 if test $succeeded = yes; then
12142 test "$HAVE_FREETYPE" = "no" && as_fn_error
"libxft requires libfreetype" "$LINENO" 5
12146 if test "${HAVE_FREETYPE}" = "yes"; then
12148 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
12150 if test "${with_libotf}" != "no"; then
12154 # Extract the first word of "pkg-config", so it can be a program name with args.
12155 set dummy pkg-config
; ac_word
=$2
12156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12157 $as_echo_n "checking for $ac_word... " >&6; }
12158 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
12159 $as_echo_n "(cached) " >&6
12161 case $PKG_CONFIG in
12163 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
12166 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12167 for as_dir
in $PATH
12170 test -z "$as_dir" && as_dir
=.
12171 for ac_exec_ext
in '' $ac_executable_extensions; do
12172 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12173 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
12174 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12181 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
12185 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
12186 if test -n "$PKG_CONFIG"; then
12187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12188 $as_echo "$PKG_CONFIG" >&6; }
12190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12191 $as_echo "no" >&6; }
12196 if test "$PKG_CONFIG" = "no" ; then
12199 PKG_CONFIG_MIN_VERSION
=0.9.0
12200 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libotf" >&5
12202 $as_echo_n "checking for libotf... " >&6; }
12204 if $PKG_CONFIG --exists "libotf" 2>&5; then
12205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12206 $as_echo "yes" >&6; }
12209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_CFLAGS" >&5
12210 $as_echo_n "checking LIBOTF_CFLAGS... " >&6; }
12211 LIBOTF_CFLAGS
=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
12212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_CFLAGS" >&5
12213 $as_echo "$LIBOTF_CFLAGS" >&6; }
12215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_LIBS" >&5
12216 $as_echo_n "checking LIBOTF_LIBS... " >&6; }
12217 LIBOTF_LIBS
=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
12218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_LIBS" >&5
12219 $as_echo "$LIBOTF_LIBS" >&6; }
12221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12222 $as_echo "no" >&6; }
12225 ## If we have a custom action on failure, don't print errors, but
12226 ## do set a variable so people can do so.
12227 LIBOTF_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
12234 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12235 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12239 if test $succeeded = yes; then
12245 if test "$HAVE_LIBOTF" = "yes"; then
12247 $as_echo "#define HAVE_LIBOTF 1" >>confdefs.h
12249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTF_get_variation_glyphs in -lotf" >&5
12250 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
12251 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then :
12252 $as_echo_n "(cached) " >&6
12254 ac_check_lib_save_LIBS
=$LIBS
12256 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12257 /* end confdefs.h. */
12259 /* Override any GCC internal prototype to avoid an error.
12260 Use char because int might match the return type of a GCC
12261 builtin and then its argument prototype would still apply. */
12265 char OTF_get_variation_glyphs ();
12269 return OTF_get_variation_glyphs ();
12274 if ac_fn_c_try_link
"$LINENO"; then :
12275 ac_cv_lib_otf_OTF_get_variation_glyphs
=yes
12277 ac_cv_lib_otf_OTF_get_variation_glyphs
=no
12279 rm -f core conftest.err conftest.
$ac_objext \
12280 conftest
$ac_exeext conftest.
$ac_ext
12281 LIBS
=$ac_check_lib_save_LIBS
12283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
12284 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
12285 if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = x
""yes; then :
12286 HAVE_OTF_GET_VARIATION_GLYPHS
=yes
12288 HAVE_OTF_GET_VARIATION_GLYPHS
=no
12291 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
12293 $as_echo "#define HAVE_OTF_GET_VARIATION_GLYPHS 1" >>confdefs.h
12301 if test "${HAVE_LIBOTF}" = yes; then
12302 if test "${with_m17n_flt}" != "no"; then
12306 # Extract the first word of "pkg-config", so it can be a program name with args.
12307 set dummy pkg-config
; ac_word
=$2
12308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12309 $as_echo_n "checking for $ac_word... " >&6; }
12310 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
12311 $as_echo_n "(cached) " >&6
12313 case $PKG_CONFIG in
12315 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
12318 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12319 for as_dir
in $PATH
12322 test -z "$as_dir" && as_dir
=.
12323 for ac_exec_ext
in '' $ac_executable_extensions; do
12324 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12325 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
12326 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12333 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
12337 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
12338 if test -n "$PKG_CONFIG"; then
12339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12340 $as_echo "$PKG_CONFIG" >&6; }
12342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12343 $as_echo "no" >&6; }
12348 if test "$PKG_CONFIG" = "no" ; then
12351 PKG_CONFIG_MIN_VERSION
=0.9.0
12352 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m17n-flt" >&5
12354 $as_echo_n "checking for m17n-flt... " >&6; }
12356 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
12357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12358 $as_echo "yes" >&6; }
12361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_CFLAGS" >&5
12362 $as_echo_n "checking M17N_FLT_CFLAGS... " >&6; }
12363 M17N_FLT_CFLAGS
=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
12364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_CFLAGS" >&5
12365 $as_echo "$M17N_FLT_CFLAGS" >&6; }
12367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_LIBS" >&5
12368 $as_echo_n "checking M17N_FLT_LIBS... " >&6; }
12369 M17N_FLT_LIBS
=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
12370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_LIBS" >&5
12371 $as_echo "$M17N_FLT_LIBS" >&6; }
12373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12374 $as_echo "no" >&6; }
12377 ## If we have a custom action on failure, don't print errors, but
12378 ## do set a variable so people can do so.
12379 M17N_FLT_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
12386 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12387 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12391 if test $succeeded = yes; then
12397 if test "$HAVE_M17N_FLT" = "yes"; then
12399 $as_echo "#define HAVE_M17N_FLT 1" >>confdefs.h
12411 ### End of font-backend (under X11) section.
12422 ### Use -lXpm if available, unless `--with-xpm=no'.
12425 if test "${HAVE_X11}" = "yes"; then
12426 if test "${with_xpm}" != "no"; then
12427 ac_fn_c_check_header_mongrel
"$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
12428 if test "x$ac_cv_header_X11_xpm_h" = x
""yes; then :
12429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToPixmap in -lXpm" >&5
12430 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
12431 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then :
12432 $as_echo_n "(cached) " >&6
12434 ac_check_lib_save_LIBS
=$LIBS
12435 LIBS
="-lXpm -lX11 $LIBS"
12436 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12437 /* end confdefs.h. */
12439 /* Override any GCC internal prototype to avoid an error.
12440 Use char because int might match the return type of a GCC
12441 builtin and then its argument prototype would still apply. */
12445 char XpmReadFileToPixmap ();
12449 return XpmReadFileToPixmap ();
12454 if ac_fn_c_try_link
"$LINENO"; then :
12455 ac_cv_lib_Xpm_XpmReadFileToPixmap
=yes
12457 ac_cv_lib_Xpm_XpmReadFileToPixmap
=no
12459 rm -f core conftest.err conftest.
$ac_objext \
12460 conftest
$ac_exeext conftest.
$ac_ext
12461 LIBS
=$ac_check_lib_save_LIBS
12463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
12464 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
12465 if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = x
""yes; then :
12472 if test "${HAVE_XPM}" = "yes"; then
12473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
12474 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
12475 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12476 /* end confdefs.h. */
12477 #include "X11/xpm.h"
12478 #ifndef XpmReturnAllocPixels
12479 no_return_alloc_pixels
12483 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12484 $EGREP "no_return_alloc_pixels" >/dev
/null
2>&1; then :
12492 if test "${HAVE_XPM}" = "yes"; then
12493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12494 $as_echo "yes" >&6; }
12496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12497 $as_echo "no" >&6; }
12502 if test "${HAVE_XPM}" = "yes"; then
12504 $as_echo "#define HAVE_XPM 1" >>confdefs.h
12511 ### Use -ljpeg if available, unless `--with-jpeg=no'.
12514 if test "${HAVE_X11}" = "yes"; then
12515 if test "${with_jpeg}" != "no"; then
12516 ac_fn_c_check_header_mongrel
"$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
12517 if test "x$ac_cv_header_jerror_h" = x
""yes; then :
12518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_compress in -ljpeg" >&5
12519 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
12520 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then :
12521 $as_echo_n "(cached) " >&6
12523 ac_check_lib_save_LIBS
=$LIBS
12524 LIBS
="-ljpeg $LIBS"
12525 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12526 /* end confdefs.h. */
12528 /* Override any GCC internal prototype to avoid an error.
12529 Use char because int might match the return type of a GCC
12530 builtin and then its argument prototype would still apply. */
12534 char jpeg_destroy_compress ();
12538 return jpeg_destroy_compress ();
12543 if ac_fn_c_try_link
"$LINENO"; then :
12544 ac_cv_lib_jpeg_jpeg_destroy_compress
=yes
12546 ac_cv_lib_jpeg_jpeg_destroy_compress
=no
12548 rm -f core conftest.err conftest.
$ac_objext \
12549 conftest
$ac_exeext conftest.
$ac_ext
12550 LIBS
=$ac_check_lib_save_LIBS
12552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
12553 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
12554 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = x
""yes; then :
12563 if test "${HAVE_JPEG}" = "yes"; then
12564 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
12566 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12567 /* end confdefs.h. */
12568 #include <jpeglib.h>
12569 version=JPEG_LIB_VERSION
12572 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12573 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev
/null
2>&1; then :
12574 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
12577 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5
12578 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
12584 if test "${HAVE_JPEG}" = "yes"; then
12590 ### Use -lpng if available, unless `--with-png=no'.
12593 if test "${HAVE_X11}" = "yes"; then
12594 if test "${with_png}" != "no"; then
12595 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
12596 # in /usr/include/libpng.
12597 for ac_header
in png.h libpng
/png.h
12599 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12600 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12601 eval as_val
=\$
$as_ac_Header
12602 if test "x$as_val" = x
""yes; then :
12603 cat >>confdefs.h
<<_ACEOF
12604 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12611 if test "$ac_cv_header_png_h" = yes ||
test "$ac_cv_header_libpng_png_h" = yes ; then
12612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_channels in -lpng" >&5
12613 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
12614 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then :
12615 $as_echo_n "(cached) " >&6
12617 ac_check_lib_save_LIBS
=$LIBS
12618 LIBS
="-lpng -lz -lm $LIBS"
12619 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12620 /* end confdefs.h. */
12622 /* Override any GCC internal prototype to avoid an error.
12623 Use char because int might match the return type of a GCC
12624 builtin and then its argument prototype would still apply. */
12628 char png_get_channels ();
12632 return png_get_channels ();
12637 if ac_fn_c_try_link
"$LINENO"; then :
12638 ac_cv_lib_png_png_get_channels
=yes
12640 ac_cv_lib_png_png_get_channels
=no
12642 rm -f core conftest.err conftest.
$ac_objext \
12643 conftest
$ac_exeext conftest.
$ac_ext
12644 LIBS
=$ac_check_lib_save_LIBS
12646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_channels" >&5
12647 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
12648 if test "x$ac_cv_lib_png_png_get_channels" = x
""yes; then :
12655 if test "${HAVE_PNG}" = "yes"; then
12657 $as_echo "#define HAVE_PNG 1" >>confdefs.h
12659 LIBPNG
="-lpng -lz -lm"
12664 ### Use -ltiff if available, unless `--with-tiff=no'.
12667 if test "${HAVE_X11}" = "yes"; then
12668 if test "${with_tiff}" != "no"; then
12669 ac_fn_c_check_header_mongrel
"$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
12670 if test "x$ac_cv_header_tiffio_h" = x
""yes; then :
12672 # At least one tiff package requires the jpeg library.
12673 if test "${HAVE_JPEG}" = yes; then tifflibs
="-ljpeg $tifflibs"; fi
12674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFGetVersion in -ltiff" >&5
12675 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
12676 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then :
12677 $as_echo_n "(cached) " >&6
12679 ac_check_lib_save_LIBS
=$LIBS
12680 LIBS
="-ltiff $tifflibs $LIBS"
12681 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12682 /* end confdefs.h. */
12684 /* Override any GCC internal prototype to avoid an error.
12685 Use char because int might match the return type of a GCC
12686 builtin and then its argument prototype would still apply. */
12690 char TIFFGetVersion ();
12694 return TIFFGetVersion ();
12699 if ac_fn_c_try_link
"$LINENO"; then :
12700 ac_cv_lib_tiff_TIFFGetVersion
=yes
12702 ac_cv_lib_tiff_TIFFGetVersion
=no
12704 rm -f core conftest.err conftest.
$ac_objext \
12705 conftest
$ac_exeext conftest.
$ac_ext
12706 LIBS
=$ac_check_lib_save_LIBS
12708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
12709 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
12710 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = x
""yes; then :
12719 if test "${HAVE_TIFF}" = "yes"; then
12721 $as_echo "#define HAVE_TIFF 1" >>confdefs.h
12728 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
12731 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
12732 ac_fn_c_check_header_mongrel
"$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
12733 if test "x$ac_cv_header_gif_lib_h" = x
""yes; then :
12734 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
12735 # Earlier versions can crash Emacs.
12736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lgif" >&5
12737 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
12738 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then :
12739 $as_echo_n "(cached) " >&6
12741 ac_check_lib_save_LIBS
=$LIBS
12743 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12744 /* end confdefs.h. */
12746 /* Override any GCC internal prototype to avoid an error.
12747 Use char because int might match the return type of a GCC
12748 builtin and then its argument prototype would still apply. */
12752 char EGifPutExtensionLast ();
12756 return EGifPutExtensionLast ();
12761 if ac_fn_c_try_link
"$LINENO"; then :
12762 ac_cv_lib_gif_EGifPutExtensionLast
=yes
12764 ac_cv_lib_gif_EGifPutExtensionLast
=no
12766 rm -f core conftest.err conftest.
$ac_objext \
12767 conftest
$ac_exeext conftest.
$ac_ext
12768 LIBS
=$ac_check_lib_save_LIBS
12770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
12771 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
12772 if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = x
""yes; then :
12782 if test "$HAVE_GIF" = yes; then
12784 elif test "$HAVE_GIF" = maybe
; then
12785 # If gif_lib.h but no libgif, try libungif.
12786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lungif" >&5
12787 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
12788 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then :
12789 $as_echo_n "(cached) " >&6
12791 ac_check_lib_save_LIBS
=$LIBS
12792 LIBS
="-lungif $LIBS"
12793 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12794 /* end confdefs.h. */
12796 /* Override any GCC internal prototype to avoid an error.
12797 Use char because int might match the return type of a GCC
12798 builtin and then its argument prototype would still apply. */
12802 char EGifPutExtensionLast ();
12806 return EGifPutExtensionLast ();
12811 if ac_fn_c_try_link
"$LINENO"; then :
12812 ac_cv_lib_ungif_EGifPutExtensionLast
=yes
12814 ac_cv_lib_ungif_EGifPutExtensionLast
=no
12816 rm -f core conftest.err conftest.
$ac_objext \
12817 conftest
$ac_exeext conftest.
$ac_ext
12818 LIBS
=$ac_check_lib_save_LIBS
12820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
12821 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
12822 if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = x
""yes; then :
12828 test "$HAVE_GIF" = yes && LIBGIF
=-lungif
12831 if test "${HAVE_GIF}" = "yes"; then
12833 $as_echo "#define HAVE_GIF 1" >>confdefs.h
12839 if test "${HAVE_X11}" = "yes"; then
12842 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
12843 MISSING
="libXpm" && WITH_NO
="--with-xpm=no"
12844 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
12845 MISSING
="$MISSING libjpeg" && WITH_NO
="$WITH_NO --with-jpeg=no"
12846 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
12847 MISSING
="$MISSING libpng" && WITH_NO
="$WITH_NO --with-png=no"
12848 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
12849 MISSING
="$MISSING libgif/libungif" && WITH_NO
="$WITH_NO --with-gif=no"
12850 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
12851 MISSING
="$MISSING libtiff" && WITH_NO
="$WITH_NO --with-tiff=no"
12853 if test "X${MISSING}" != X
; then
12854 as_fn_error
"The following required libraries were not found:
12856 Maybe some development libraries/packages are missing?
12857 If you don't want to link with them give
12859 as options to configure" "$LINENO" 5
12863 ### Use -lgpm if available, unless `--with-gpm=no'.
12866 if test "${with_gpm}" != "no"; then
12867 ac_fn_c_check_header_mongrel
"$LINENO" "gpm.h" "ac_cv_header_gpm_h" "$ac_includes_default"
12868 if test "x$ac_cv_header_gpm_h" = x
""yes; then :
12869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5
12870 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
12871 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then :
12872 $as_echo_n "(cached) " >&6
12874 ac_check_lib_save_LIBS
=$LIBS
12876 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12877 /* end confdefs.h. */
12879 /* Override any GCC internal prototype to avoid an error.
12880 Use char because int might match the return type of a GCC
12881 builtin and then its argument prototype would still apply. */
12889 return Gpm_Open ();
12894 if ac_fn_c_try_link
"$LINENO"; then :
12895 ac_cv_lib_gpm_Gpm_Open
=yes
12897 ac_cv_lib_gpm_Gpm_Open
=no
12899 rm -f core conftest.err conftest.
$ac_objext \
12900 conftest
$ac_exeext conftest.
$ac_ext
12901 LIBS
=$ac_check_lib_save_LIBS
12903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Open" >&5
12904 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
12905 if test "x$ac_cv_lib_gpm_Gpm_Open" = x
""yes; then :
12913 if test "${HAVE_GPM}" = "yes"; then
12915 $as_echo "#define HAVE_GPM 1" >>confdefs.h
12922 ac_fn_c_check_header_mongrel
"$LINENO" "malloc/malloc.h" "ac_cv_header_malloc_malloc_h" "$ac_includes_default"
12923 if test "x$ac_cv_header_malloc_malloc_h" = x
""yes; then :
12925 $as_echo "#define HAVE_MALLOC_MALLOC_H 1" >>confdefs.h
12932 ### Use NeXTstep API to implement GUI.
12933 if test "${HAVE_NS}" = "yes"; then
12935 $as_echo "#define HAVE_NS 1" >>confdefs.h
12937 if test "${NS_IMPL_COCOA}" = "yes"; then
12939 $as_echo "#define NS_IMPL_COCOA 1" >>confdefs.h
12943 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
12945 $as_echo "#define NS_IMPL_GNUSTEP 1" >>confdefs.h
12947 # See also .m.o rule in Makefile.in */
12948 # FIXME: are all these flags really needed? Document here why. */
12949 C_SWITCH_X_SYSTEM
="-D_REENTRANT -fPIC -fno-strict-aliasing"
12950 GNU_OBJC_CFLAGS
="-fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE"
12952 if test "${NS_HAVE_NSINTEGER}" = "yes"; then
12954 $as_echo "#define NS_HAVE_NSINTEGER 1" >>confdefs.h
12957 # We also have mouse menus.
12963 ### Use session management (-lSM -lICE) if available
12966 if test "${HAVE_X11}" = "yes"; then
12967 ac_fn_c_check_header_mongrel
"$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
12968 if test "x$ac_cv_header_X11_SM_SMlib_h" = x
""yes; then :
12969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5
12970 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
12971 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then :
12972 $as_echo_n "(cached) " >&6
12974 ac_check_lib_save_LIBS
=$LIBS
12975 LIBS
="-lSM -lICE $LIBS"
12976 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12977 /* end confdefs.h. */
12979 /* Override any GCC internal prototype to avoid an error.
12980 Use char because int might match the return type of a GCC
12981 builtin and then its argument prototype would still apply. */
12985 char SmcOpenConnection ();
12989 return SmcOpenConnection ();
12994 if ac_fn_c_try_link
"$LINENO"; then :
12995 ac_cv_lib_SM_SmcOpenConnection
=yes
12997 ac_cv_lib_SM_SmcOpenConnection
=no
12999 rm -f core conftest.err conftest.
$ac_objext \
13000 conftest
$ac_exeext conftest.
$ac_ext
13001 LIBS
=$ac_check_lib_save_LIBS
13003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
13004 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
13005 if test "x$ac_cv_lib_SM_SmcOpenConnection" = x
""yes; then :
13013 if test "${HAVE_X_SM}" = "yes"; then
13015 $as_echo "#define HAVE_X_SM 1" >>confdefs.h
13017 LIBXSM
="-lSM -lICE"
13020 *) LIBS
="$LIBXSM $LIBS" ;;
13026 ### Use libxml (-lxml2) if available
13027 if test "${with_xml2}" != "no"; then
13028 ### I'm not sure what the version number should be, so I just guessed.
13032 # Extract the first word of "pkg-config", so it can be a program name with args.
13033 set dummy pkg-config
; ac_word
=$2
13034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13035 $as_echo_n "checking for $ac_word... " >&6; }
13036 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
13037 $as_echo_n "(cached) " >&6
13039 case $PKG_CONFIG in
13041 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
13044 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13045 for as_dir
in $PATH
13048 test -z "$as_dir" && as_dir
=.
13049 for ac_exec_ext
in '' $ac_executable_extensions; do
13050 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13051 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
13052 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13059 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
13063 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
13064 if test -n "$PKG_CONFIG"; then
13065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13066 $as_echo "$PKG_CONFIG" >&6; }
13068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13069 $as_echo "no" >&6; }
13074 if test "$PKG_CONFIG" = "no" ; then
13077 PKG_CONFIG_MIN_VERSION
=0.9.0
13078 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 > 2.6.17" >&5
13080 $as_echo_n "checking for libxml-2.0 > 2.6.17... " >&6; }
13082 if $PKG_CONFIG --exists "libxml-2.0 > 2.6.17" 2>&5; then
13083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13084 $as_echo "yes" >&6; }
13087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBXML2_CFLAGS" >&5
13088 $as_echo_n "checking LIBXML2_CFLAGS... " >&6; }
13089 LIBXML2_CFLAGS
=`$PKG_CONFIG --cflags "libxml-2.0 > 2.6.17"|sed -e 's,///*,/,g'`
13090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXML2_CFLAGS" >&5
13091 $as_echo "$LIBXML2_CFLAGS" >&6; }
13093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBXML2_LIBS" >&5
13094 $as_echo_n "checking LIBXML2_LIBS... " >&6; }
13095 LIBXML2_LIBS
=`$PKG_CONFIG --libs "libxml-2.0 > 2.6.17"|sed -e 's,///*,/,g'`
13096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXML2_LIBS" >&5
13097 $as_echo "$LIBXML2_LIBS" >&6; }
13099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13100 $as_echo "no" >&6; }
13103 ## If we have a custom action on failure, don't print errors, but
13104 ## do set a variable so people can do so.
13105 LIBXML2_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "libxml-2.0 > 2.6.17"`
13112 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13113 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13117 if test $succeeded = yes; then
13123 if test "${HAVE_LIBXML2}" = "yes"; then
13124 LIBS
="$LIBXML2_LIBS $LIBS"
13125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htmlReadMemory in -lxml2" >&5
13126 $as_echo_n "checking for htmlReadMemory in -lxml2... " >&6; }
13127 if test "${ac_cv_lib_xml2_htmlReadMemory+set}" = set; then :
13128 $as_echo_n "(cached) " >&6
13130 ac_check_lib_save_LIBS
=$LIBS
13131 LIBS
="-lxml2 $LIBS"
13132 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13133 /* end confdefs.h. */
13135 /* Override any GCC internal prototype to avoid an error.
13136 Use char because int might match the return type of a GCC
13137 builtin and then its argument prototype would still apply. */
13141 char htmlReadMemory ();
13145 return htmlReadMemory ();
13150 if ac_fn_c_try_link
"$LINENO"; then :
13151 ac_cv_lib_xml2_htmlReadMemory
=yes
13153 ac_cv_lib_xml2_htmlReadMemory
=no
13155 rm -f core conftest.err conftest.
$ac_objext \
13156 conftest
$ac_exeext conftest.
$ac_ext
13157 LIBS
=$ac_check_lib_save_LIBS
13159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_htmlReadMemory" >&5
13160 $as_echo "$ac_cv_lib_xml2_htmlReadMemory" >&6; }
13161 if test "x$ac_cv_lib_xml2_htmlReadMemory" = x
""yes; then :
13167 if test "${HAVE_LIBXML2}" = "yes"; then
13169 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
13180 # If netdb.h doesn't declare h_errno, we must declare it by hand.
13181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netdb declares h_errno" >&5
13182 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
13183 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then :
13184 $as_echo_n "(cached) " >&6
13186 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13187 /* end confdefs.h. */
13197 if ac_fn_c_try_link
"$LINENO"; then :
13198 emacs_cv_netdb_declares_h_errno
=yes
13200 emacs_cv_netdb_declares_h_errno
=no
13202 rm -f core conftest.err conftest.
$ac_objext \
13203 conftest
$ac_exeext conftest.
$ac_ext
13205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_netdb_declares_h_errno" >&5
13206 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
13207 if test $emacs_cv_netdb_declares_h_errno = yes; then
13209 $as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h
13213 # fmod, logb, and frexp are found in -lm on most systems.
13214 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
13215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
13216 $as_echo_n "checking for sqrt in -lm... " >&6; }
13217 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
13218 $as_echo_n "(cached) " >&6
13220 ac_check_lib_save_LIBS
=$LIBS
13222 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13223 /* end confdefs.h. */
13225 /* Override any GCC internal prototype to avoid an error.
13226 Use char because int might match the return type of a GCC
13227 builtin and then its argument prototype would still apply. */
13240 if ac_fn_c_try_link
"$LINENO"; then :
13241 ac_cv_lib_m_sqrt
=yes
13243 ac_cv_lib_m_sqrt
=no
13245 rm -f core conftest.err conftest.
$ac_objext \
13246 conftest
$ac_exeext conftest.
$ac_ext
13247 LIBS
=$ac_check_lib_save_LIBS
13249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
13250 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
13251 if test "x$ac_cv_lib_m_sqrt" = x
""yes; then :
13252 cat >>confdefs.h
<<_ACEOF
13253 #define HAVE_LIBM 1
13261 # Check for mail-locking functions in a "mail" library. Probably this should
13262 # have the same check as for liblockfile below.
13263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -lmail" >&5
13264 $as_echo_n "checking for maillock in -lmail... " >&6; }
13265 if test "${ac_cv_lib_mail_maillock+set}" = set; then :
13266 $as_echo_n "(cached) " >&6
13268 ac_check_lib_save_LIBS
=$LIBS
13269 LIBS
="-lmail $LIBS"
13270 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13271 /* end confdefs.h. */
13273 /* Override any GCC internal prototype to avoid an error.
13274 Use char because int might match the return type of a GCC
13275 builtin and then its argument prototype would still apply. */
13283 return maillock ();
13288 if ac_fn_c_try_link
"$LINENO"; then :
13289 ac_cv_lib_mail_maillock
=yes
13291 ac_cv_lib_mail_maillock
=no
13293 rm -f core conftest.err conftest.
$ac_objext \
13294 conftest
$ac_exeext conftest.
$ac_ext
13295 LIBS
=$ac_check_lib_save_LIBS
13297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mail_maillock" >&5
13298 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
13299 if test "x$ac_cv_lib_mail_maillock" = x
""yes; then :
13305 if test $have_mail = yes; then
13307 LIBS
="$LIBS_MAIL $LIBS"
13309 $as_echo "#define HAVE_LIBMAIL 1" >>confdefs.h
13314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -llockfile" >&5
13315 $as_echo_n "checking for maillock in -llockfile... " >&6; }
13316 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then :
13317 $as_echo_n "(cached) " >&6
13319 ac_check_lib_save_LIBS
=$LIBS
13320 LIBS
="-llockfile $LIBS"
13321 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13322 /* end confdefs.h. */
13324 /* Override any GCC internal prototype to avoid an error.
13325 Use char because int might match the return type of a GCC
13326 builtin and then its argument prototype would still apply. */
13334 return maillock ();
13339 if ac_fn_c_try_link
"$LINENO"; then :
13340 ac_cv_lib_lockfile_maillock
=yes
13342 ac_cv_lib_lockfile_maillock
=no
13344 rm -f core conftest.err conftest.
$ac_objext \
13345 conftest
$ac_exeext conftest.
$ac_ext
13346 LIBS
=$ac_check_lib_save_LIBS
13348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lockfile_maillock" >&5
13349 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
13350 if test "x$ac_cv_lib_lockfile_maillock" = x
""yes; then :
13356 if test $have_lockfile = yes; then
13357 LIBS_MAIL
=-llockfile
13358 LIBS
="$LIBS_MAIL $LIBS"
13360 $as_echo "#define HAVE_LIBLOCKFILE 1" >>confdefs.h
13363 # If we have the shared liblockfile, assume we must use it for mail
13364 # locking (e.g. Debian). If we couldn't link against liblockfile
13365 # (no liblockfile.a installed), ensure that we don't need to.
13366 # Extract the first word of "liblockfile.so", so it can be a program name with args.
13367 set dummy liblockfile.so
; ac_word
=$2
13368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13369 $as_echo_n "checking for $ac_word... " >&6; }
13370 if test "${ac_cv_prog_liblockfile+set}" = set; then :
13371 $as_echo_n "(cached) " >&6
13373 if test -n "$liblockfile"; then
13374 ac_cv_prog_liblockfile
="$liblockfile" # Let the user override the test.
13376 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13377 as_dummy
="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
13378 for as_dir
in $as_dummy
13381 test -z "$as_dir" && as_dir
=.
13382 for ac_exec_ext
in '' $ac_executable_extensions; do
13383 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13384 ac_cv_prog_liblockfile
="yes"
13385 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13392 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile
="no"
13395 liblockfile
=$ac_cv_prog_liblockfile
13396 if test -n "$liblockfile"; then
13397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblockfile" >&5
13398 $as_echo "$liblockfile" >&6; }
13400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13401 $as_echo "no" >&6; }
13405 if test $ac_cv_prog_liblockfile = yes; then
13406 as_fn_error
"Shared liblockfile found but can't link against it.
13407 This probably means that movemail could lose mail.
13408 There may be a \`development' package to install containing liblockfile." "$LINENO" 5
13411 for ac_func
in touchlock
13413 ac_fn_c_check_func
"$LINENO" "touchlock" "ac_cv_func_touchlock"
13414 if test "x$ac_cv_func_touchlock" = x
""yes; then :
13415 cat >>confdefs.h
<<_ACEOF
13416 #define HAVE_TOUCHLOCK 1
13422 for ac_header
in maillock.h
13424 ac_fn_c_check_header_mongrel
"$LINENO" "maillock.h" "ac_cv_header_maillock_h" "$ac_includes_default"
13425 if test "x$ac_cv_header_maillock_h" = x
""yes; then :
13426 cat >>confdefs.h
<<_ACEOF
13427 #define HAVE_MAILLOCK_H 1
13436 ## Define MAIL_USE_FLOCK (or LOCKF) if the mailer uses flock (or lockf) to
13437 ## interlock access to the mail spool. The alternative is a lock file named
13438 ## /usr/spool/mail/$USER.lock.
13441 aix4-2
) mail_lock
="lockf" ;;
13443 gnu|freebsd|netbsd|openbsd|darwin|irix6-5
) mail_lock
="flock" ;;
13445 ## On GNU/Linux systems, both methods are used by various mail programs.
13446 ## I assume most people are using newer mailers that have heard of flock.
13447 ## Change this if you need to.
13448 ## Debian contains a patch which says: ``On Debian/GNU/Linux systems,
13449 ## configure gets the right answers, and that means *NOT* using flock.
13450 ## Using flock is guaranteed to be the wrong thing. See Debian Policy
13451 ## for details.'' and then uses `#ifdef DEBIAN'. Unfortunately the
13452 ## Debian maintainer hasn't provided a clean fix for Emacs.
13453 ## movemail.c will use `maillock' when MAILDIR, HAVE_LIBMAIL and
13454 ## HAVE_MAILLOCK_H are defined, so the following appears to be the
13455 ## correct logic. -- fx
13456 ## We must check for HAVE_LIBLOCKFILE too, as movemail does.
13457 ## liblockfile is a Free Software replacement for libmail, used on
13458 ## Debian systems and elsewhere. -rfr.
13461 if test $have_mail = yes ||
test $have_lockfile = yes; then
13462 test $ac_cv_header_maillock_h = yes && mail_lock
=no
13468 case "$mail_lock" in
13470 $as_echo "#define MAIL_USE_FLOCK 1" >>confdefs.h
13474 $as_echo "#define MAIL_USE_LOCKF 1" >>confdefs.h
13477 *) BLESSMAIL_TARGET
="need-blessmail" ;;
13482 for ac_func
in gethostname getdomainname \
13483 rename closedir mkdir
rmdir sysinfo getrusage get_current_dir_name \
13484 random lrand48 logb frexp fmod rint cbrt ftime setsid \
13485 strerror fpathconf
select euidaccess getpagesize tzset setlocale \
13486 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
13487 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm \
13488 sendto recvfrom getsockopt setsockopt getsockname getpeername \
13489 gai_strerror mkstemp getline getdelim mremap fsync sync \
13490 difftime mempcpy mblen mbrlen posix_memalign \
13491 cfmakeraw cfsetspeed isnan copysign __executable_start
13493 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13494 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
13495 eval as_val
=\$
$as_ac_var
13496 if test "x$as_val" = x
""yes; then :
13497 cat >>confdefs.h
<<_ACEOF
13498 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_unwind_init" >&5
13506 $as_echo_n "checking for __builtin_unwind_init... " >&6; }
13507 if test "${emacs_cv_func___builtin_unwind_init+set}" = set; then :
13508 $as_echo_n "(cached) " >&6
13510 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13511 /* end confdefs.h. */
13516 __builtin_unwind_init ();
13521 if ac_fn_c_try_link
"$LINENO"; then :
13522 emacs_cv_func___builtin_unwind_init
=yes
13524 emacs_cv_func___builtin_unwind_init
=no
13526 rm -f core conftest.err conftest.
$ac_objext \
13527 conftest
$ac_exeext conftest.
$ac_ext
13529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func___builtin_unwind_init" >&5
13530 $as_echo "$emacs_cv_func___builtin_unwind_init" >&6; }
13531 if test $emacs_cv_func___builtin_unwind_init = yes; then
13533 $as_echo "#define HAVE___BUILTIN_UNWIND_INIT 1" >>confdefs.h
13537 for ac_header
in sys
/un.h
13539 ac_fn_c_check_header_mongrel
"$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default"
13540 if test "x$ac_cv_header_sys_un_h" = x
""yes; then :
13541 cat >>confdefs.h
<<_ACEOF
13542 #define HAVE_SYS_UN_H 1
13550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
13551 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
13552 if test "${ac_cv_sys_largefile_source+set}" = set; then :
13553 $as_echo_n "(cached) " >&6
13556 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13557 /* end confdefs.h. */
13558 #include <sys/types.h> /* for off_t */
13563 int (*fp) (FILE *, off_t, int) = fseeko;
13564 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13569 if ac_fn_c_try_link
"$LINENO"; then :
13570 ac_cv_sys_largefile_source
=no
; break
13572 rm -f core conftest.err conftest.
$ac_objext \
13573 conftest
$ac_exeext conftest.
$ac_ext
13574 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13575 /* end confdefs.h. */
13576 #define _LARGEFILE_SOURCE 1
13577 #include <sys/types.h> /* for off_t */
13582 int (*fp) (FILE *, off_t, int) = fseeko;
13583 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13588 if ac_fn_c_try_link
"$LINENO"; then :
13589 ac_cv_sys_largefile_source
=1; break
13591 rm -f core conftest.err conftest.
$ac_objext \
13592 conftest
$ac_exeext conftest.
$ac_ext
13593 ac_cv_sys_largefile_source
=unknown
13597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
13598 $as_echo "$ac_cv_sys_largefile_source" >&6; }
13599 case $ac_cv_sys_largefile_source in #(
13602 cat >>confdefs.h
<<_ACEOF
13603 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
13609 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
13610 # in glibc 2.1.3, but that breaks too many other things.
13611 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
13612 if test $ac_cv_sys_largefile_source != unknown
; then
13614 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
13619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5
13620 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
13621 if test "${ac_cv_func_getpgrp_void+set}" = set; then :
13622 $as_echo_n "(cached) " >&6
13624 # Use it with a single arg.
13625 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13626 /* end confdefs.h. */
13627 $ac_includes_default
13636 if ac_fn_c_try_compile
"$LINENO"; then :
13637 ac_cv_func_getpgrp_void
=no
13639 ac_cv_func_getpgrp_void
=yes
13641 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5
13645 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
13646 if test $ac_cv_func_getpgrp_void = yes; then
13648 $as_echo "#define GETPGRP_VOID 1" >>confdefs.h
13654 # Configure gnulib.
13657 for ac_func in grantpt
13659 ac_fn_c_check_func "$LINENO" "grantpt" "ac_cv_func_grantpt"
13660 if test "x$ac_cv_func_grantpt" = x""yes; then :
13661 cat >>confdefs.h <<_ACEOF
13662 #define HAVE_GRANTPT 1
13669 # PTY-related GNU extensions.
13670 for ac_func in getpt
13672 ac_fn_c_check_func "$LINENO" "getpt" "ac_cv_func_getpt"
13673 if test "x$ac_cv_func_getpt" = x""yes; then :
13674 cat >>confdefs.h <<_ACEOF
13675 #define HAVE_GETPT 1
13682 # Check this now, so that we will NOT find the above functions in ncurses.
13683 # That is because we have not set up to link ncurses in lib-src.
13684 # It's better to believe a function is not available
13685 # than to expect to find it in ncurses.
13686 # Also we need tputs and friends to be able to build at all.
13687 have_tputs_et_al=true
13688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tputs" >&5
13689 $as_echo_n "checking for library containing tputs... " >&6; }
13690 if test "${ac_cv_search_tputs+set}" = set; then :
13691 $as_echo_n "(cached) " >&6
13693 ac_func_search_save_LIBS=$LIBS
13694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13695 /* end confdefs.h. */
13697 /* Override any GCC internal prototype to avoid an error.
13698 Use char because int might match the return type of a GCC
13699 builtin and then its argument prototype would still apply. */
13712 for ac_lib in '' ncurses terminfo termcap; do
13713 if test -z "$ac_lib"; then
13714 ac_res="none required"
13717 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13719 if ac_fn_c_try_link "$LINENO"; then :
13720 ac_cv_search_tputs=$ac_res
13722 rm -f core conftest.err conftest.$ac_objext \
13724 if test "${ac_cv_search_tputs+set}" = set; then :
13728 if test "${ac_cv_search_tputs+set}" = set; then :
13731 ac_cv_search_tputs=no
13733 rm conftest.$ac_ext
13734 LIBS=$ac_func_search_save_LIBS
13736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tputs" >&5
13737 $as_echo "$ac_cv_search_tputs" >&6; }
13738 ac_res=$ac_cv_search_tputs
13739 if test "$ac_res" != no; then :
13740 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13743 have_tputs_et_al=false
13746 if test "$have_tputs_et_al" != true; then
13747 as_fn_error "I couldn't find termcap functions (tputs and friends).
13748 Maybe some development libraries/packages are missing? Try installing
13749 libncurses-dev(el), libterminfo-dev(el) or similar." "$LINENO" 5
13751 # Must define this when any termcap library is found.
13753 $as_echo "#define HAVE_LIBNCURSES 1" >>confdefs.h
13755 ## FIXME This was the cpp logic, but I am not sure it is right.
13756 ## The above test has not necessarily found libncurses.
13757 HAVE_LIBNCURSES=yes
13759 ## Use terminfo instead of termcap?
13760 ## Note only system files NOT using terminfo are:
13761 ## freebsd < 40000, ms-w32, msdos, netbsd < 599002500, and
13762 ## darwin|gnu without ncurses.
13766 ## cygwin: Fewer environment variables to go wrong, more terminal types.
13767 ## hpux10-20: Use the system provided termcap(3) library.
13768 ## openbsd: David Mazieres <dm@reeducation-labor.lcs.mit.edu> says this
13769 ## is necessary. Otherwise Emacs dumps core when run -nw.
13770 aix4-2|cygwin|hpux*|irix6-5|openbsd|sol2*|unixware) TERMINFO=yes ;;
13772 ## darwin: Prevents crashes when running Emacs in Terminal.app under 10.2.
13773 ## The ncurses library has been moved out of the System framework in
13774 ## Mac OS X 10.2. So if configure detects it, set the command-line
13775 ## option to use it.
13777 ## (HAVE_LIBNCURSES was not always true, but is since 2010-03-18.)
13778 if test "x$HAVE_LIBNCURSES" = "xyes"; then
13780 LIBS_TERMCAP="-lncurses"
13785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FreeBSD is new enough to use terminfo" >&5
13786 $as_echo_n "checking whether FreeBSD is new enough to use terminfo... " >&6; }
13787 if test "${emacs_cv_freebsd_terminfo+set}" = set; then :
13788 $as_echo_n "(cached) " >&6
13790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13791 /* end confdefs.h. */
13792 #include <osreldate.h>
13796 #if __FreeBSD_version < 400000
13804 if ac_fn_c_try_link "$LINENO"; then :
13805 emacs_cv_freebsd_terminfo=yes
13807 emacs_cv_freebsd_terminfo=no
13809 rm -f core conftest.err conftest.$ac_objext \
13810 conftest$ac_exeext conftest.$ac_ext
13814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_freebsd_terminfo" >&5
13815 $as_echo "$emacs_cv_freebsd_terminfo" >&6; }
13817 if test $emacs_cv_freebsd_terminfo = yes; then
13819 LIBS_TERMCAP="-lncurses"
13821 LIBS_TERMCAP="-ltermcap"
13826 if test $ac_cv_search_tputs = -lterminfo; then
13828 LIBS_TERMCAP="-lterminfo"
13830 LIBS_TERMCAP="-ltermcap"
13837 ## hpux: Make sure we get select from libc rather than from libcurses
13838 ## because libcurses on HPUX 10.10 has a broken version of select.
13839 ## We used to use -lc -lcurses, but this may be cleaner.
13840 hpux*) LIBS_TERMCAP="-ltermcap" ;;
13842 openbsd) LIBS_TERMCAP="-lncurses" ;;
13844 ## Must use system termcap, if we use any termcap. It does special things.
13845 sol2*) test "$TERMINFO" != yes && LIBS_TERMCAP="-ltermcap" ;;
13848 TERMCAP_OBJ=tparam.o
13849 if test $TERMINFO = yes; then
13851 $as_echo "#define TERMINFO 1" >>confdefs.h
13854 ## Default used to be -ltermcap. Add a case above if need something else.
13855 test "x$LIBS_TERMCAP" = "x" && LIBS_TERMCAP="-lcurses"
13857 TERMCAP_OBJ=terminfo.o
13863 # Do we have res_init, for detecting changes in /etc/resolv.conf?
13865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13866 /* end confdefs.h. */
13867 #include <netinet/in.h>
13868 #include <arpa/nameser.h>
13869 #include <resolv.h>
13878 if ac_fn_c_try_link "$LINENO"; then :
13883 rm -f core conftest.err conftest.$ac_objext \
13884 conftest$ac_exeext conftest.$ac_ext
13885 if test "$have_res_init" = no; then
13887 LIBS="$LIBS -lresolv"
13888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5
13889 $as_echo_n "checking for res_init with -lresolv... " >&6; }
13890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13891 /* end confdefs.h. */
13892 #include <netinet/in.h>
13893 #include <arpa/nameser.h>
13894 #include <resolv.h>
13903 if ac_fn_c_try_link "$LINENO"; then :
13908 rm -f core conftest.err conftest.$ac_objext \
13909 conftest$ac_exeext conftest.$ac_ext
13910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5
13911 $as_echo "$have_res_init" >&6; }
13912 if test "$have_res_init" = yes ; then
13918 if test "$have_res_init" = yes; then
13920 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
13924 # Do we need the Hesiod library to provide the support routines?
13926 if test "$with_hesiod" != no ; then
13927 # Don't set $LIBS here -- see comments above. FIXME which comments?
13928 ac_fn_c_check_func "$LINENO" "res_send" "ac_cv_func_res_send"
13929 if test "x$ac_cv_func_res_send" = x""yes; then :
13932 ac_fn_c_check_func "$LINENO" "__res_send" "ac_cv_func___res_send"
13933 if test "x$ac_cv_func___res_send" = x""yes; then :
13936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5
13937 $as_echo_n "checking for res_send in -lresolv... " >&6; }
13938 if test "${ac_cv_lib_resolv_res_send+set}" = set; then :
13939 $as_echo_n "(cached) " >&6
13941 ac_check_lib_save_LIBS=$LIBS
13942 LIBS="-lresolv $LIBS"
13943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13944 /* end confdefs.h. */
13946 /* Override any GCC internal prototype to avoid an error.
13947 Use char because int might match the return type of a GCC
13948 builtin and then its argument prototype would still apply. */
13956 return res_send ();
13961 if ac_fn_c_try_link "$LINENO"; then :
13962 ac_cv_lib_resolv_res_send=yes
13964 ac_cv_lib_resolv_res_send=no
13966 rm -f core conftest.err conftest.$ac_objext \
13967 conftest$ac_exeext conftest.$ac_ext
13968 LIBS=$ac_check_lib_save_LIBS
13970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5
13971 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
13972 if test "x$ac_cv_lib_resolv_res_send" = x""yes; then :
13975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5
13976 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
13977 if test "${ac_cv_lib_resolv___res_send+set}" = set; then :
13978 $as_echo_n "(cached) " >&6
13980 ac_check_lib_save_LIBS=$LIBS
13981 LIBS="-lresolv $LIBS"
13982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13983 /* end confdefs.h. */
13985 /* Override any GCC internal prototype to avoid an error.
13986 Use char because int might match the return type of a GCC
13987 builtin and then its argument prototype would still apply. */
13991 char __res_send ();
13995 return __res_send ();
14000 if ac_fn_c_try_link "$LINENO"; then :
14001 ac_cv_lib_resolv___res_send=yes
14003 ac_cv_lib_resolv___res_send=no
14005 rm -f core conftest.err conftest.$ac_objext \
14006 conftest$ac_exeext conftest.$ac_ext
14007 LIBS=$ac_check_lib_save_LIBS
14009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5
14010 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
14011 if test "x$ac_cv_lib_resolv___res_send" = x""yes; then :
14021 if test "$resolv" = yes ; then
14026 ac_fn_c_check_func "$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost"
14027 if test "x$ac_cv_func_hes_getmailhost" = x""yes; then :
14030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5
14031 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
14032 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then :
14033 $as_echo_n "(cached) " >&6
14035 ac_check_lib_save_LIBS=$LIBS
14036 LIBS="-lhesiod $RESOLVLIB $LIBS"
14037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14038 /* end confdefs.h. */
14040 /* Override any GCC internal prototype to avoid an error.
14041 Use char because int might match the return type of a GCC
14042 builtin and then its argument prototype would still apply. */
14046 char hes_getmailhost ();
14050 return hes_getmailhost ();
14055 if ac_fn_c_try_link "$LINENO"; then :
14056 ac_cv_lib_hesiod_hes_getmailhost=yes
14058 ac_cv_lib_hesiod_hes_getmailhost=no
14060 rm -f core conftest.err conftest.$ac_objext \
14061 conftest$ac_exeext conftest.$ac_ext
14062 LIBS=$ac_check_lib_save_LIBS
14064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
14065 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
14066 if test "x$ac_cv_lib_hesiod_hes_getmailhost" = x""yes; then :
14075 if test x"$hesiod" = xyes; then
14077 $as_echo "#define HAVE_LIBHESIOD 1" >>confdefs.h
14084 # Do we need libresolv (due to res_init or Hesiod)?
14085 if test "$resolv" = yes ; then
14087 $as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
14095 # These tell us which Kerberos-related libraries to use.
14102 if test "${with_kerberos}" != no; then
14103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
14104 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
14105 if test "${ac_cv_lib_com_err_com_err+set}" = set; then :
14106 $as_echo_n "(cached) " >&6
14108 ac_check_lib_save_LIBS=$LIBS
14109 LIBS="-lcom_err $LIBS"
14110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14111 /* end confdefs.h. */
14113 /* Override any GCC internal prototype to avoid an error.
14114 Use char because int might match the return type of a GCC
14115 builtin and then its argument prototype would still apply. */
14128 if ac_fn_c_try_link "$LINENO"; then :
14129 ac_cv_lib_com_err_com_err=yes
14131 ac_cv_lib_com_err_com_err=no
14133 rm -f core conftest.err conftest.$ac_objext \
14134 conftest$ac_exeext conftest.$ac_ext
14135 LIBS=$ac_check_lib_save_LIBS
14137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
14138 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
14139 if test "x$ac_cv_lib_com_err_com_err" = x""yes; then :
14145 if test $have_com_err = yes; then
14146 COM_ERRLIB=-lcom_err
14147 LIBS="$COM_ERRLIB $LIBS"
14149 $as_echo "#define HAVE_LIBCOM_ERR 1" >>confdefs.h
14152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5
14153 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
14154 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then :
14155 $as_echo_n "(cached) " >&6
14157 ac_check_lib_save_LIBS=$LIBS
14158 LIBS="-lcrypto $LIBS"
14159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14160 /* end confdefs.h. */
14162 /* Override any GCC internal prototype to avoid an error.
14163 Use char because int might match the return type of a GCC
14164 builtin and then its argument prototype would still apply. */
14168 char mit_des_cbc_encrypt ();
14172 return mit_des_cbc_encrypt ();
14177 if ac_fn_c_try_link "$LINENO"; then :
14178 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
14180 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
14182 rm -f core conftest.err conftest.$ac_objext \
14183 conftest$ac_exeext conftest.$ac_ext
14184 LIBS=$ac_check_lib_save_LIBS
14186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
14187 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
14188 if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = x""yes; then :
14194 if test $have_crypto = yes; then
14196 LIBS="$CRYPTOLIB $LIBS"
14198 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
14201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
14202 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
14203 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then :
14204 $as_echo_n "(cached) " >&6
14206 ac_check_lib_save_LIBS=$LIBS
14207 LIBS="-lk5crypto $LIBS"
14208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14209 /* end confdefs.h. */
14211 /* Override any GCC internal prototype to avoid an error.
14212 Use char because int might match the return type of a GCC
14213 builtin and then its argument prototype would still apply. */
14217 char mit_des_cbc_encrypt ();
14221 return mit_des_cbc_encrypt ();
14226 if ac_fn_c_try_link "$LINENO"; then :
14227 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
14229 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
14231 rm -f core conftest.err conftest.$ac_objext \
14232 conftest$ac_exeext conftest.$ac_ext
14233 LIBS=$ac_check_lib_save_LIBS
14235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
14236 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
14237 if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = x""yes; then :
14243 if test $have_k5crypto = yes; then
14244 CRYPTOLIB=-lk5crypto
14245 LIBS="$CRYPTOLIB $LIBS"
14247 $as_echo "#define HAVE_LIBK5CRYPTO 1" >>confdefs.h
14250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
14251 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
14252 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then :
14253 $as_echo_n "(cached) " >&6
14255 ac_check_lib_save_LIBS=$LIBS
14256 LIBS="-lkrb5 $LIBS"
14257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14258 /* end confdefs.h. */
14260 /* Override any GCC internal prototype to avoid an error.
14261 Use char because int might match the return type of a GCC
14262 builtin and then its argument prototype would still apply. */
14266 char krb5_init_context ();
14270 return krb5_init_context ();
14275 if ac_fn_c_try_link "$LINENO"; then :
14276 ac_cv_lib_krb5_krb5_init_context=yes
14278 ac_cv_lib_krb5_krb5_init_context=no
14280 rm -f core conftest.err conftest.$ac_objext \
14281 conftest$ac_exeext conftest.$ac_ext
14282 LIBS=$ac_check_lib_save_LIBS
14284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
14285 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
14286 if test "x$ac_cv_lib_krb5_krb5_init_context" = x""yes; then :
14292 if test $have_krb5=yes; then
14294 LIBS="$KRB5LIB $LIBS"
14296 $as_echo "#define HAVE_LIBKRB5 1" >>confdefs.h
14299 if test "${with_kerberos5}" = no; then
14300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
14301 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
14302 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then :
14303 $as_echo_n "(cached) " >&6
14305 ac_check_lib_save_LIBS=$LIBS
14306 LIBS="-ldes425 $LIBS"
14307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14308 /* end confdefs.h. */
14310 /* Override any GCC internal prototype to avoid an error.
14311 Use char because int might match the return type of a GCC
14312 builtin and then its argument prototype would still apply. */
14316 char des_cbc_encrypt ();
14320 return des_cbc_encrypt ();
14325 if ac_fn_c_try_link "$LINENO"; then :
14326 ac_cv_lib_des425_des_cbc_encrypt=yes
14328 ac_cv_lib_des425_des_cbc_encrypt=no
14330 rm -f core conftest.err conftest.$ac_objext \
14331 conftest$ac_exeext conftest.$ac_ext
14332 LIBS=$ac_check_lib_save_LIBS
14334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
14335 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
14336 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = x""yes; then :
14342 if test $have_des425 = yes; then
14344 LIBS="$DESLIB $LIBS"
14346 $as_echo "#define HAVE_LIBDES425 1" >>confdefs.h
14349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
14350 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
14351 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then :
14352 $as_echo_n "(cached) " >&6
14354 ac_check_lib_save_LIBS=$LIBS
14356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14357 /* end confdefs.h. */
14359 /* Override any GCC internal prototype to avoid an error.
14360 Use char because int might match the return type of a GCC
14361 builtin and then its argument prototype would still apply. */
14365 char des_cbc_encrypt ();
14369 return des_cbc_encrypt ();
14374 if ac_fn_c_try_link "$LINENO"; then :
14375 ac_cv_lib_des_des_cbc_encrypt=yes
14377 ac_cv_lib_des_des_cbc_encrypt=no
14379 rm -f core conftest.err conftest.$ac_objext \
14380 conftest$ac_exeext conftest.$ac_ext
14381 LIBS=$ac_check_lib_save_LIBS
14383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
14384 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
14385 if test "x$ac_cv_lib_des_des_cbc_encrypt" = x""yes; then :
14391 if test $have_des = yes; then
14393 LIBS="$DESLIB $LIBS"
14395 $as_echo "#define HAVE_LIBDES 1" >>confdefs.h
14399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5
14400 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
14401 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then :
14402 $as_echo_n "(cached) " >&6
14404 ac_check_lib_save_LIBS=$LIBS
14405 LIBS="-lkrb4 $LIBS"
14406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14407 /* end confdefs.h. */
14409 /* Override any GCC internal prototype to avoid an error.
14410 Use char because int might match the return type of a GCC
14411 builtin and then its argument prototype would still apply. */
14415 char krb_get_cred ();
14419 return krb_get_cred ();
14424 if ac_fn_c_try_link "$LINENO"; then :
14425 ac_cv_lib_krb4_krb_get_cred=yes
14427 ac_cv_lib_krb4_krb_get_cred=no
14429 rm -f core conftest.err conftest.$ac_objext \
14430 conftest$ac_exeext conftest.$ac_ext
14431 LIBS=$ac_check_lib_save_LIBS
14433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5
14434 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
14435 if test "x$ac_cv_lib_krb4_krb_get_cred" = x""yes; then :
14441 if test $have_krb4 = yes; then
14443 LIBS="$KRB4LIB $LIBS"
14445 $as_echo "#define HAVE_LIBKRB4 1" >>confdefs.h
14448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5
14449 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
14450 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then :
14451 $as_echo_n "(cached) " >&6
14453 ac_check_lib_save_LIBS=$LIBS
14455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14456 /* end confdefs.h. */
14458 /* Override any GCC internal prototype to avoid an error.
14459 Use char because int might match the return type of a GCC
14460 builtin and then its argument prototype would still apply. */
14464 char krb_get_cred ();
14468 return krb_get_cred ();
14473 if ac_fn_c_try_link "$LINENO"; then :
14474 ac_cv_lib_krb_krb_get_cred=yes
14476 ac_cv_lib_krb_krb_get_cred=no
14478 rm -f core conftest.err conftest.$ac_objext \
14479 conftest$ac_exeext conftest.$ac_ext
14480 LIBS=$ac_check_lib_save_LIBS
14482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5
14483 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
14484 if test "x$ac_cv_lib_krb_krb_get_cred" = x""yes; then :
14490 if test $have_krb = yes; then
14492 LIBS="$KRB4LIB $LIBS"
14494 $as_echo "#define HAVE_LIBKRB 1" >>confdefs.h
14500 if test "${with_kerberos5}" != no; then
14501 for ac_header in krb5.h
14503 ac_fn_c_check_header_mongrel "$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
14504 if test "x$ac_cv_header_krb5_h" = x""yes; then :
14505 cat >>confdefs.h <<_ACEOF
14506 #define HAVE_KRB5_H 1
14508 ac_fn_c_check_member "$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h>
14510 if test "x$ac_cv_member_krb5_error_text" = x""yes; then :
14512 cat >>confdefs.h <<_ACEOF
14513 #define HAVE_KRB5_ERROR_TEXT 1
14518 ac_fn_c_check_member "$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h>
14520 if test "x$ac_cv_member_krb5_error_e_text" = x""yes; then :
14522 cat >>confdefs.h <<_ACEOF
14523 #define HAVE_KRB5_ERROR_E_TEXT 1
14534 for ac_header in des.h
14536 ac_fn_c_check_header_mongrel "$LINENO" "des.h" "ac_cv_header_des_h" "$ac_includes_default"
14537 if test "x$ac_cv_header_des_h" = x""yes; then :
14538 cat >>confdefs.h <<_ACEOF
14539 #define HAVE_DES_H 1
14543 for ac_header in kerberosIV/des.h
14545 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/des.h" "ac_cv_header_kerberosIV_des_h" "$ac_includes_default"
14546 if test "x$ac_cv_header_kerberosIV_des_h" = x""yes; then :
14547 cat >>confdefs.h <<_ACEOF
14548 #define HAVE_KERBEROSIV_DES_H 1
14552 for ac_header in kerberos/des.h
14554 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/des.h" "ac_cv_header_kerberos_des_h" "$ac_includes_default"
14555 if test "x$ac_cv_header_kerberos_des_h" = x""yes; then :
14556 cat >>confdefs.h <<_ACEOF
14557 #define HAVE_KERBEROS_DES_H 1
14572 for ac_header in krb.h
14574 ac_fn_c_check_header_mongrel "$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
14575 if test "x$ac_cv_header_krb_h" = x""yes; then :
14576 cat >>confdefs.h <<_ACEOF
14577 #define HAVE_KRB_H 1
14581 for ac_header in kerberosIV/krb.h
14583 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default"
14584 if test "x$ac_cv_header_kerberosIV_krb_h" = x""yes; then :
14585 cat >>confdefs.h <<_ACEOF
14586 #define HAVE_KERBEROSIV_KRB_H 1
14590 for ac_header in kerberos/krb.h
14592 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default"
14593 if test "x$ac_cv_header_kerberos_krb_h" = x""yes; then :
14594 cat >>confdefs.h <<_ACEOF
14595 #define HAVE_KERBEROS_KRB_H 1
14611 for ac_header in com_err.h
14613 ac_fn_c_check_header_mongrel "$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default"
14614 if test "x$ac_cv_header_com_err_h" = x""yes; then :
14615 cat >>confdefs.h <<_ACEOF
14616 #define HAVE_COM_ERR_H 1
14631 # Solaris requires -lintl if you want strerror (which calls dgettext)
14632 # to return localized messages.
14633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in -lintl" >&5
14634 $as_echo_n "checking for dgettext in -lintl... " >&6; }
14635 if test "${ac_cv_lib_intl_dgettext+set}" = set; then :
14636 $as_echo_n "(cached) " >&6
14638 ac_check_lib_save_LIBS=$LIBS
14639 LIBS="-lintl $LIBS"
14640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14641 /* end confdefs.h. */
14643 /* Override any GCC internal prototype to avoid an error.
14644 Use char because int might match the return type of a GCC
14645 builtin and then its argument prototype would still apply. */
14653 return dgettext ();
14658 if ac_fn_c_try_link "$LINENO"; then :
14659 ac_cv_lib_intl_dgettext=yes
14661 ac_cv_lib_intl_dgettext=no
14663 rm -f core conftest.err conftest.$ac_objext \
14664 conftest$ac_exeext conftest.$ac_ext
14665 LIBS=$ac_check_lib_save_LIBS
14667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dgettext" >&5
14668 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
14669 if test "x$ac_cv_lib_intl_dgettext" = x""yes; then :
14670 cat >>confdefs.h <<_ACEOF
14671 #define HAVE_LIBINTL 1
14674 LIBS="-lintl $LIBS"
14679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5
14680 $as_echo_n "checking whether localtime caches TZ... " >&6; }
14681 if test "${emacs_cv_localtime_cache+set}" = set; then :
14682 $as_echo_n "(cached) " >&6
14684 if test x$ac_cv_func_tzset = xyes; then
14685 if test "$cross_compiling" = yes; then :
14686 # If we have tzset, assume the worst when cross-compiling.
14687 emacs_cv_localtime_cache=yes
14689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14690 /* end confdefs.h. */
14692 char TZ_GMT0[] = "TZ=GMT0";
14693 char TZ_PST8[] = "TZ=PST8";
14696 time_t now = time ((time_t *) 0);
14697 int hour_GMT0, hour_unset;
14698 if (putenv (TZ_GMT0) != 0)
14700 hour_GMT0 = localtime (&now)->tm_hour;
14702 hour_unset = localtime (&now)->tm_hour;
14703 if (putenv (TZ_PST8) != 0)
14705 if (localtime (&now)->tm_hour == hour_GMT0)
14708 if (localtime (&now)->tm_hour != hour_unset)
14713 if ac_fn_c_try_run "$LINENO"; then :
14714 emacs_cv_localtime_cache=no
14716 emacs_cv_localtime_cache=yes
14718 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14719 conftest.$ac_objext conftest.beam conftest.$ac_ext
14723 # If we lack tzset, report that localtime does not cache TZ,
14724 # since we can't invalidate the cache if we don't have tzset.
14725 emacs_cv_localtime_cache=no
14728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5
14729 $as_echo "$emacs_cv_localtime_cache" >&6; }
14730 if test $emacs_cv_localtime_cache = yes; then
14732 $as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h
14736 if test "x$HAVE_TIMEVAL" = xyes; then
14737 for ac_func in gettimeofday
14739 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
14740 if test "x$ac_cv_func_gettimeofday" = x""yes; then :
14741 cat >>confdefs.h <<_ACEOF
14742 #define HAVE_GETTIMEOFDAY 1
14748 if test $ac_cv_func_gettimeofday = yes; then
14749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday can accept two arguments" >&5
14750 $as_echo_n "checking whether gettimeofday can accept two arguments... " >&6; }
14751 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then :
14752 $as_echo_n "(cached) " >&6
14754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14755 /* end confdefs.h. */
14757 #ifdef TIME_WITH_SYS_TIME
14758 #include <sys/time.h>
14761 #ifdef HAVE_SYS_TIME_H
14762 #include <sys/time.h>
14770 struct timeval time;
14771 gettimeofday (&time, 0);
14776 if ac_fn_c_try_compile "$LINENO"; then :
14777 emacs_cv_gettimeofday_two_arguments=yes
14779 emacs_cv_gettimeofday_two_arguments=no
14781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_gettimeofday_two_arguments" >&5
14784 $as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; }
14785 if test $emacs_cv_gettimeofday_two_arguments = no; then
14787 $as_echo "#define GETTIMEOFDAY_ONE_ARGUMENT 1" >>confdefs.h
14794 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
14795 if test "x$ac_cv_func_socket" = x""yes; then :
14801 if test $ok_so_far = yes; then
14802 ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
14803 if test "x$ac_cv_header_netinet_in_h" = x""yes; then :
14811 if test $ok_so_far = yes; then
14812 ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
14813 if test "x$ac_cv_header_arpa_inet_h" = x""yes; then :
14821 if test $ok_so_far = yes; then
14823 $as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h
14827 if test -f /usr/lpp/X11/bin/smt.exp; then
14829 $as_echo "#define HAVE_AIX_SMT_EXP 1" >>confdefs.h
14833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports dynamic ptys" >&5
14834 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
14835 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
14836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14837 $as_echo "yes" >&6; }
14839 $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
14842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14843 $as_echo "no" >&6; }
14846 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
14847 if test "x$ac_cv_type_pid_t" = x""yes; then :
14851 cat >>confdefs.h <<_ACEOF
14857 for ac_header in vfork.h
14859 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
14860 if test "x$ac_cv_header_vfork_h" = x""yes; then :
14861 cat >>confdefs.h <<_ACEOF
14862 #define HAVE_VFORK_H 1
14869 for ac_func in fork vfork
14871 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14872 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14873 eval as_val=\$$as_ac_var
14874 if test "x$as_val" = x""yes; then :
14875 cat >>confdefs.h <<_ACEOF
14876 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14882 if test "x$ac_cv_func_fork" = xyes; then
14883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
14884 $as_echo_n "checking for working fork... " >&6; }
14885 if test "${ac_cv_func_fork_works+set}" = set; then :
14886 $as_echo_n "(cached) " >&6
14888 if test "$cross_compiling" = yes; then :
14889 ac_cv_func_fork_works=cross
14891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14892 /* end confdefs.h. */
14893 $ac_includes_default
14898 /* By Ruediger Kuhlmann. */
14899 return fork () < 0;
14905 if ac_fn_c_try_run "$LINENO"; then :
14906 ac_cv_func_fork_works=yes
14908 ac_cv_func_fork_works=no
14910 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14911 conftest.$ac_objext conftest.beam conftest.$ac_ext
14915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
14916 $as_echo "$ac_cv_func_fork_works" >&6; }
14919 ac_cv_func_fork_works=$ac_cv_func_fork
14921 if test "x$ac_cv_func_fork_works" = xcross; then
14923 *-*-amigaos* | *-*-msdosdjgpp*)
14924 # Override, as these systems have only a dummy fork() stub
14925 ac_cv_func_fork_works=no
14928 ac_cv_func_fork_works=yes
14931 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
14932 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
14934 ac_cv_func_vfork_works=$ac_cv_func_vfork
14935 if test "x$ac_cv_func_vfork" = xyes; then
14936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
14937 $as_echo_n "checking for working vfork... " >&6; }
14938 if test "${ac_cv_func_vfork_works+set}" = set; then :
14939 $as_echo_n "(cached) " >&6
14941 if test "$cross_compiling" = yes; then :
14942 ac_cv_func_vfork_works=cross
14944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14945 /* end confdefs.h. */
14946 /* Thanks to Paul Eggert for this test. */
14947 $ac_includes_default
14948 #include <sys/wait.h>
14949 #ifdef HAVE_VFORK_H
14950 # include <vfork.h>
14952 /* On some sparc systems, changes by the child to local and incoming
14953 argument registers are propagated back to the parent. The compiler
14954 is told about this with #include <vfork.h>, but some compilers
14955 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
14956 static variable whose address is put into a register that is
14957 clobbered by the vfork. */
14960 sparc_address_test (int arg)
14962 sparc_address_test (arg) int arg;
14965 static pid_t child;
14983 pid_t parent = getpid ();
14986 sparc_address_test (0);
14991 /* Here is another test for sparc vfork register problems. This
14992 test uses lots of local variables, at least as many local
14993 variables as main has allocated so far including compiler
14994 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
14995 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
14996 reuse the register of parent for one of the local variables,
14997 since it will think that parent can't possibly be used any more
14998 in this routine. Assigning to the local variable will thus
14999 munge parent in the parent process. */
15001 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
15002 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
15003 /* Convince the compiler that p..p7 are live; otherwise, it might
15004 use the same hardware register for all 8 local variables. */
15005 if (p != p1 || p != p2 || p != p3 || p != p4
15006 || p != p5 || p != p6 || p != p7)
15009 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
15010 from child file descriptors. If the child closes a descriptor
15011 before it execs or exits, this munges the parent's descriptor
15012 as well. Test for this by closing stdout in the child. */
15013 _exit(close(fileno(stdout)) != 0);
15018 while (wait(&status) != child)
15021 /* Was there some problem with vforking? */
15024 /* Did the child fail? (This shouldn't happen.) */
15027 /* Did the vfork/compiler bug occur? */
15028 || parent != getpid()
15030 /* Did the file descriptor bug occur? */
15031 || fstat(fileno(stdout), &st) != 0
15036 if ac_fn_c_try_run "$LINENO"; then :
15037 ac_cv_func_vfork_works=yes
15039 ac_cv_func_vfork_works=no
15041 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15042 conftest.$ac_objext conftest.beam conftest.$ac_ext
15046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
15047 $as_echo "$ac_cv_func_vfork_works" >&6; }
15050 if test "x$ac_cv_func_fork_works" = xcross; then
15051 ac_cv_func_vfork_works=$ac_cv_func_vfork
15052 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
15053 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
15056 if test "x$ac_cv_func_vfork_works" = xyes; then
15058 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
15062 $as_echo "#define vfork fork" >>confdefs.h
15065 if test "x$ac_cv_func_fork_works" = xyes; then
15067 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
15072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
15073 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
15074 if test "${emacs_cv_langinfo_codeset+set}" = set; then :
15075 $as_echo_n "(cached) " >&6
15077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15078 /* end confdefs.h. */
15079 #include <langinfo.h>
15083 char* cs = nl_langinfo(CODESET);
15088 if ac_fn_c_try_link "$LINENO"; then :
15089 emacs_cv_langinfo_codeset=yes
15091 emacs_cv_langinfo_codeset=no
15093 rm -f core conftest.err conftest.$ac_objext \
15094 conftest$ac_exeext conftest.$ac_ext
15097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5
15098 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
15099 if test $emacs_cv_langinfo_codeset = yes; then
15101 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
15105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
15106 $as_echo_n "checking for mbstate_t... " >&6; }
15107 if test "${ac_cv_type_mbstate_t+set}" = set; then :
15108 $as_echo_n "(cached) " >&6
15110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15111 /* end confdefs.h. */
15112 $ac_includes_default
15113 # include <wchar.h>
15117 mbstate_t x; return sizeof x;
15122 if ac_fn_c_try_compile "$LINENO"; then :
15123 ac_cv_type_mbstate_t=yes
15125 ac_cv_type_mbstate_t=no
15127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
15130 $as_echo "$ac_cv_type_mbstate_t" >&6; }
15131 if test $ac_cv_type_mbstate_t = yes; then
15133 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
15137 $as_echo "#define mbstate_t int" >>confdefs.h
15141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5
15142 $as_echo_n "checking for C restricted array declarations... " >&6; }
15143 if test "${emacs_cv_c_restrict_arr+set}" = set; then :
15144 $as_echo_n "(cached) " >&6
15146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15147 /* end confdefs.h. */
15148 void fred (int x[__restrict]);
15157 if ac_fn_c_try_compile "$LINENO"; then :
15158 emacs_cv_c_restrict_arr=yes
15160 emacs_cv_c_restrict_arr=no
15162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5
15165 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
15166 if test "$emacs_cv_c_restrict_arr" = yes; then
15168 $as_echo "#define __restrict_arr __restrict" >>confdefs.h
15173 # Set up the CFLAGS for real compilation, so we can substitute it.
15174 CFLAGS="$REAL_CFLAGS"
15175 CPPFLAGS="$REAL_CPPFLAGS"
15177 ## Hack to detect a buggy GCC version.
15178 if test "x$GCC" = xyes \
15179 && test x"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
15180 && test x"`echo $CFLAGS | grep '\-O[23]'`" != x \
15181 && test x"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x; then
15182 as_fn_error "GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." "$LINENO" 5
15185 version=$PACKAGE_VERSION
15187 ### Specify what sort of things we'll be editing into Makefile and config.h.
15188 ### Use configuration here uncanonicalized to avoid exceeding size limits.
15212 ## FIXME? Nothing uses @LD_SWITCH_X_SITE@.
15213 ## src/Makefile.in did add LD_SWITCH_X_SITE (as a cpp define) to the
15214 ## end of LIBX_BASE, but nothing ever set it.
15219 ## Used in lwlib/Makefile.in.
15221 if test -n "${machfile}"; then
15222 M_FILE="\$(srcdir)/${machfile}"
15226 S_FILE="\$(srcdir)/${opsysfile}"
15237 cat >>confdefs.h <<_ACEOF
15238 #define EMACS_CONFIGURATION "${canonical}"
15242 cat >>confdefs.h <<_ACEOF
15243 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
15246 if test -n "$machfile"; then
15248 cat >>confdefs.h <<_ACEOF
15249 #define config_machfile "${machfile}"
15254 cat >>confdefs.h <<_ACEOF
15255 #define config_opsysfile "${opsysfile}"
15262 if test "${HAVE_X_WINDOWS}" = "yes" ; then
15264 $as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h
15267 XOBJ="xterm.o xfns.o xselect.o xrdb.o fontset.o xsmfns.o fringe.o image.o xsettings.o xgselect.o"
15269 if test "$HAVE_XFT" = "yes"; then
15270 FONT_OBJ="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
15271 elif test "$HAVE_FREETYPE" = "yes"; then
15272 FONT_OBJ="$FONT_OBJ ftfont.o ftxfont.o"
15282 if test "${USE_X_TOOLKIT}" != "none" ; then
15283 WIDGET_OBJ=widget.o
15285 $as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h
15287 if test "${USE_X_TOOLKIT}" = "LUCID"; then
15289 $as_echo "#define USE_LUCID 1" >>confdefs.h
15291 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
15293 $as_echo "#define USE_MOTIF 1" >>confdefs.h
15298 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
15299 MOTIF_LIBW="$MOTIF_LIBW -lXpm"
15303 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
15304 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
15305 MOTIF_LIBW="MOTIF_LIBW -lXimp"
15309 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
15310 MOTIF_LIBW="$MOTIF_LIBW -li18n"
15313 MOTIF_LIBW="$MOTIF_LIBW $LIBXP"
15319 case "$USE_X_TOOLKIT" in
15320 MOTIF) TOOLKIT_LIBW="$MOTIF_LIBW" ;;
15321 LUCID) TOOLKIT_LIBW="$LUCID_LIBW" ;;
15322 none) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW="$GTK_LIBS" ;;
15326 if test "$USE_X_TOOLKIT" = "none"; then
15327 LIBXT_OTHER="\$(LIBXSM)"
15328 OLDXMENU_TARGET="really-oldXMenu"
15330 LIBXT_OTHER="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext"
15331 OLDXMENU_TARGET="really-lwlib"
15335 ## The X Menu stuff is present in the X10 distribution, but missing
15336 ## from X11. If we have X10, just use the installed library;
15337 ## otherwise, use our own copy.
15338 if test "${HAVE_X11}" = "yes" ; then
15340 $as_echo "#define HAVE_X11 1" >>confdefs.h
15343 if test "$USE_X_TOOLKIT" = "none"; then
15344 OLDXMENU="\${oldXMenudir}/libXMenu11.a"
15346 OLDXMENU="\${lwlibdir}/liblw.a"
15348 LIBXMENU="\$(OLDXMENU)"
15349 LIBX_OTHER="\$(LIBXT) \$(LIBX_EXTRA)"
15350 OLDXMENU_DEPS="\${OLDXMENU} ../src/\${OLDXMENU}"
15352 ## For a syntactically valid Makefile; not actually used for anything.
15353 ## See comments in src/Makefile.in.
15355 ## FIXME This case (!HAVE_X11 && HAVE_X_WINDOWS) is no longer possible(?).
15356 if test "${HAVE_X_WINDOWS}" = "yes"; then
15365 if test "$HAVE_GTK" = "yes" || test "$HAVE_MENUS" != "yes"; then
15378 if test "${HAVE_MENUS}" = "yes" ; then
15380 $as_echo "#define HAVE_MENUS 1" >>confdefs.h
15384 if test "${GNU_MALLOC}" = "yes" ; then
15386 $as_echo "#define GNU_MALLOC 1" >>confdefs.h
15391 if test "${REL_ALLOC}" = "yes" ; then
15393 $as_echo "#define REL_ALLOC 1" >>confdefs.h
15396 test "$system_malloc" != "yes" && RALLOC_OBJ=ralloc.o
15400 if test "$opsys" = "cygwin"; then
15401 CYGWIN_OBJ="sheap.o"
15402 ## Cygwin differs because of its unexec().
15404 POST_ALLOC_OBJ=lastfile.o
15407 PRE_ALLOC_OBJ=lastfile.o
15414 # Configure gnulib here, now that we know LIBS.
15415 >>>>>>> MERGE-SOURCE
15426 LIBC_FATAL_STDERR_=1
15427 export LIBC_FATAL_STDERR_
15429 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15430 # for constant arguments. Useless!
15431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
15432 $as_echo_n "checking for working alloca.h... " >&6; }
15433 if test "${ac_cv_working_alloca_h+set}" = set; then :
15434 $as_echo_n "(cached) " >&6
15436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15437 /* end confdefs.h. */
15438 #include <alloca.h>
15442 char *p = (char *) alloca (2 * sizeof (int));
15448 if ac_fn_c_try_link "$LINENO"; then :
15449 ac_cv_working_alloca_h=yes
15451 ac_cv_working_alloca_h=no
15453 rm -f core conftest.err conftest.$ac_objext \
15454 conftest$ac_exeext conftest.$ac_ext
15456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
15457 $as_echo "$ac_cv_working_alloca_h" >&6; }
15458 if test $ac_cv_working_alloca_h = yes; then
15460 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
15464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
15465 $as_echo_n "checking for alloca... " >&6; }
15466 if test "${ac_cv_func_alloca_works+set}" = set; then :
15467 $as_echo_n "(cached) " >&6
15469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15470 /* end confdefs.h. */
15472 # define alloca __builtin_alloca
15475 # include <malloc.h>
15476 # define alloca _alloca
15478 # ifdef HAVE_ALLOCA_H
15479 # include <alloca.h>
15484 # ifndef alloca /* predefined by HP cc +Olibcalls */
15495 char *p = (char *) alloca (1);
15501 if ac_fn_c_try_link "$LINENO"; then :
15502 ac_cv_func_alloca_works=yes
15504 ac_cv_func_alloca_works=no
15506 rm -f core conftest.err conftest.$ac_objext \
15507 conftest$ac_exeext conftest.$ac_ext
15509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
15510 $as_echo "$ac_cv_func_alloca_works" >&6; }
15512 if test $ac_cv_func_alloca_works = yes; then
15514 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
15517 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15518 # that cause trouble. Some versions do not even contain alloca or
15519 # contain a buggy version. If you still want to use their alloca,
15520 # use ar to extract alloca.o from them instead of compiling alloca.c.
15526 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
15528 $as_echo "#define C_ALLOCA 1" >>confdefs.h
15531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
15532 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
15533 if test "${ac_cv_os_cray+set}" = set; then :
15534 $as_echo_n "(cached) " >&6
15536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15537 /* end confdefs.h. */
15538 #if defined CRAY && ! defined CRAY2
15545 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15546 $EGREP "webecray" >/dev/null 2>&1; then :
15554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
15555 $as_echo "$ac_cv_os_cray" >&6; }
15556 if test $ac_cv_os_cray = yes; then
15557 for ac_func in _getb67 GETB67 getb67; do
15558 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15559 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15560 eval as_val=\$$as_ac_var
15561 if test "x$as_val" = x""yes; then :
15563 cat >>confdefs.h <<_ACEOF
15564 #define CRAY_STACKSEG_END $ac_func
15573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
15574 $as_echo_n "checking stack direction for C alloca... " >&6; }
15575 if test "${ac_cv_c_stack_direction+set}" = set; then :
15576 $as_echo_n "(cached) " >&6
15578 if test "$cross_compiling" = yes; then :
15579 ac_cv_c_stack_direction=0
15581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15582 /* end confdefs.h. */
15583 $ac_includes_default
15585 find_stack_direction (int *addr, int depth)
15587 int dir, dummy = 0;
15590 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
15591 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
15592 return dir + dummy;
15596 main (int argc, char **argv)
15598 return find_stack_direction (0, argc + !argv + 20) < 0;
15601 if ac_fn_c_try_run "$LINENO"; then :
15602 ac_cv_c_stack_direction=1
15604 ac_cv_c_stack_direction=-1
15606 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15607 conftest.$ac_objext conftest.beam conftest.$ac_ext
15611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
15612 $as_echo "$ac_cv_c_stack_direction" >&6; }
15613 cat >>confdefs.h <<_ACEOF
15614 #define STACK_DIRECTION $ac_cv_c_stack_direction
15623 for ac_func in $ac_func_list
15625 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15626 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15627 eval as_val=\$$as_ac_var
15628 if test "x$as_val" = x""yes; then :
15629 cat >>confdefs.h <<_ACEOF
15630 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
15640 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
15641 if test "${ac_cv_c_bigendian+set}" = set; then :
15642 $as_echo_n "(cached) " >&6
15644 ac_cv_c_bigendian=unknown
15645 # See if we're dealing with a universal compiler.
15646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15647 /* end confdefs.h. */
15648 #ifndef __APPLE_CC__
15649 not a universal capable compiler
15654 if ac_fn_c_try_compile "$LINENO"; then :
15656 # Check for potential -arch flags. It is not universal unless
15657 # there are at least two -arch flags with different values.
15660 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
15661 if test -n "$ac_prev"; then
15663 i?86 | x86_64 | ppc | ppc64)
15664 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
15667 ac_cv_c_bigendian=universal
15673 elif test "x$ac_word" = "x-arch"; then
15678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15679 if test $ac_cv_c_bigendian = unknown; then
15680 # See if sys/param.h defines the BYTE_ORDER macro.
15681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15682 /* end confdefs.h. */
15683 #include <sys/types.h>
15684 #include <sys/param.h>
15689 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
15690 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
15692 bogus endian macros
15699 if ac_fn_c_try_compile "$LINENO"; then :
15700 # It does; now see whether it defined to BIG_ENDIAN or not.
15701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15702 /* end confdefs.h. */
15703 #include <sys/types.h>
15704 #include <sys/param.h>
15709 #if BYTE_ORDER != BIG_ENDIAN
15717 if ac_fn_c_try_compile "$LINENO"; then :
15718 ac_cv_c_bigendian=yes
15720 ac_cv_c_bigendian=no
15722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15726 if test $ac_cv_c_bigendian = unknown; then
15727 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
15728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15729 /* end confdefs.h. */
15730 #include <limits.h>
15735 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
15736 bogus endian macros
15743 if ac_fn_c_try_compile "$LINENO"; then :
15744 # It does; now see whether it defined to _BIG_ENDIAN or not.
15745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15746 /* end confdefs.h. */
15747 #include <limits.h>
15752 #ifndef _BIG_ENDIAN
15760 if ac_fn_c_try_compile "$LINENO"; then :
15761 ac_cv_c_bigendian=yes
15763 ac_cv_c_bigendian=no
15765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15769 if test $ac_cv_c_bigendian = unknown; then
15770 # Compile a test program.
15771 if test "$cross_compiling" = yes; then :
15772 # Try to guess by grepping values from an object file.
15773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15774 /* end confdefs.h. */
15775 short int ascii_mm[] =
15776 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
15777 short int ascii_ii[] =
15778 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
15779 int use_ascii (int i) {
15780 return ascii_mm[i] + ascii_ii[i];
15782 short int ebcdic_ii[] =
15783 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
15784 short int ebcdic_mm[] =
15785 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
15786 int use_ebcdic (int i) {
15787 return ebcdic_mm[i] + ebcdic_ii[i];
15794 return use_ascii (foo) == use_ebcdic (foo);
15799 if ac_fn_c_try_compile "$LINENO"; then :
15800 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
15801 ac_cv_c_bigendian=yes
15803 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
15804 if test "$ac_cv_c_bigendian" = unknown; then
15805 ac_cv_c_bigendian=no
15807 # finding both strings is unlikely to happen, but who knows?
15808 ac_cv_c_bigendian=unknown
15812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15815 /* end confdefs.h. */
15816 $ac_includes_default
15821 /* Are we little or big endian? From Harbison&Steele. */
15825 char c[sizeof (long int)];
15828 return u.c[sizeof (long int) - 1] == 1;
15834 if ac_fn_c_try_run "$LINENO"; then :
15835 ac_cv_c_bigendian=no
15837 ac_cv_c_bigendian=yes
15839 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15840 conftest.$ac_objext conftest.beam conftest.$ac_ext
15845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
15846 $as_echo "$ac_cv_c_bigendian" >&6; }
15847 case $ac_cv_c_bigendian in #(
15849 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
15855 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
15859 as_fn_error "unknown endianness
15860 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
15864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
15865 $as_echo_n "checking for inline... " >&6; }
15866 if test "${ac_cv_c_inline+set}" = set; then :
15867 $as_echo_n "(cached) " >&6
15870 for ac_kw in inline __inline__ __inline; do
15871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15872 /* end confdefs.h. */
15873 #ifndef __cplusplus
15875 static $ac_kw foo_t static_foo () {return 0; }
15876 $ac_kw foo_t foo () {return 0; }
15880 if ac_fn_c_try_compile "$LINENO"; then :
15881 ac_cv_c_inline=$ac_kw
15883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15884 test "$ac_cv_c_inline" != no && break
15888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
15889 $as_echo "$ac_cv_c_inline" >&6; }
15891 case $ac_cv_c_inline in
15894 case $ac_cv_c_inline in
15896 *) ac_val=$ac_cv_c_inline;;
15898 cat >>confdefs.h <<_ACEOF
15899 #ifndef __cplusplus
15900 #define inline $ac_val
15907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtold conforms to C99" >&5
15908 $as_echo_n "checking whether strtold conforms to C99... " >&6; }
15909 if test "${gl_cv_func_c99_strtold+set}" = set; then :
15910 $as_echo_n "(cached) " >&6
15912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15913 /* end confdefs.h. */
15914 /* On HP-UX before 11.23, strtold returns a struct instead of
15915 long double. Reject implementations like that, by requiring
15916 compatibility with the C99 prototype. */
15917 #include <stdlib.h>
15918 static long double (*p) (char const *, char **) = strtold;
15920 test (char const *nptr, char **endptr)
15923 r = strtold (nptr, endptr);
15929 return test ("1.0", NULL) != 1 || p ("1.0", NULL) != 1;
15934 if ac_fn_c_try_link "$LINENO"; then :
15935 gl_cv_func_c99_strtold=yes
15937 gl_cv_func_c99_strtold=no
15939 rm -f core conftest.err conftest.$ac_objext \
15940 conftest$ac_exeext conftest.$ac_ext
15942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_c99_strtold" >&5
15943 $as_echo "$gl_cv_func_c99_strtold" >&6; }
15944 if test $gl_cv_func_c99_strtold = yes; then
15946 $as_echo "#define HAVE_C99_STRTOLD 1" >>confdefs.h
15956 GNULIB_EUIDACCESS=0;
15957 GNULIB_FACCESSAT=0;
15961 GNULIB_FTRUNCATE=0;
15963 GNULIB_GETDOMAINNAME=0;
15964 GNULIB_GETDTABLESIZE=0;
15965 GNULIB_GETGROUPS=0;
15966 GNULIB_GETHOSTNAME=0;
15968 GNULIB_GETLOGIN_R=0;
15969 GNULIB_GETPAGESIZE=0;
15970 GNULIB_GETUSERSHELL=0;
15971 GNULIB_GROUP_MEMBER=0;
15982 GNULIB_READLINKAT=0;
15986 GNULIB_SYMLINKAT=0;
15987 GNULIB_TTYNAME_R=0;
15988 GNULIB_UNISTD_H_GETOPT=0;
15989 GNULIB_UNISTD_H_NONBLOCKING=0;
15990 GNULIB_UNISTD_H_SIGPIPE=0;
16004 HAVE_GETDTABLESIZE=1;
16006 HAVE_GETHOSTNAME=1;
16008 HAVE_GETPAGESIZE=1;
16009 HAVE_GROUP_MEMBER=1;
16024 HAVE_DECL_ENVIRON=1;
16025 HAVE_DECL_FCHDIR=1;
16026 HAVE_DECL_GETDOMAINNAME=1;
16027 HAVE_DECL_GETLOGIN_R=1;
16028 HAVE_DECL_GETPAGESIZE=1;
16029 HAVE_DECL_GETUSERSHELL=1;
16030 HAVE_DECL_TTYNAME_R=1;
16032 HAVE_SYS_PARAM_H=0;
16037 REPLACE_FCHOWNAT=0;
16039 REPLACE_GETDOMAINNAME=0;
16040 REPLACE_GETLOGIN_R=0;
16041 REPLACE_GETGROUPS=0;
16042 REPLACE_GETPAGESIZE=0;
16050 REPLACE_READLINK=0;
16054 REPLACE_TTYNAME_R=0;
16056 REPLACE_UNLINKAT=0;
16059 UNISTD_H_HAVE_WINSOCK2_H=0;
16060 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
16065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_dm_mode in struct stat" >&5
16066 $as_echo_n "checking for st_dm_mode in struct stat... " >&6; }
16067 if test "${ac_cv_struct_st_dm_mode+set}" = set; then :
16068 $as_echo_n "(cached) " >&6
16070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16071 /* end confdefs.h. */
16073 #include <sys/types.h>
16074 #include <sys/stat.h>
16078 struct stat s; s.st_dm_mode;
16083 if ac_fn_c_try_compile "$LINENO"; then :
16084 ac_cv_struct_st_dm_mode=yes
16086 ac_cv_struct_st_dm_mode=no
16088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_st_dm_mode" >&5
16091 $as_echo "$ac_cv_struct_st_dm_mode" >&6; }
16093 if test $ac_cv_struct_st_dm_mode = yes; then
16095 $as_echo "#define HAVE_ST_DM_MODE 1" >>confdefs.h
16100 ac_fn_c_check_decl "$LINENO" "strmode" "ac_cv_have_decl_strmode" "$ac_includes_default"
16101 if test "x$ac_cv_have_decl_strmode" = x""yes; then :
16107 cat >>confdefs.h <<_ACEOF
16108 #define HAVE_DECL_STRMODE $ac_have_decl
16114 GNULIB_CALLOC_POSIX=0;
16115 GNULIB_CANONICALIZE_FILE_NAME=0;
16116 GNULIB_GETLOADAVG=0;
16117 GNULIB_GETSUBOPT=0;
16119 GNULIB_MALLOC_POSIX=0;
16123 GNULIB_MKOSTEMPS=0;
16129 GNULIB_REALLOC_POSIX=0;
16136 GNULIB_SYSTEM_POSIX=0;
16142 HAVE_CANONICALIZE_FILE_NAME=1;
16143 HAVE_DECL_GETLOADAVG=1;
16157 HAVE_DECL_SETENV=1;
16161 HAVE_STRUCT_RANDOM_DATA=1;
16162 HAVE_SYS_LOADAVG_H=0;
16164 HAVE_DECL_UNSETENV=1;
16166 REPLACE_CANONICALIZE_FILE_NAME=0;
16172 REPLACE_REALPATH=0;
16175 REPLACE_UNSETENV=0;
16180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
16181 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
16182 if test "${gl_cv_have_include_next+set}" = set; then :
16183 $as_echo_n "(cached) " >&6
16185 rm -rf conftestd1a conftestd1b conftestd2
16186 mkdir conftestd1a conftestd1b conftestd2
16187 cat <<EOF > conftestd1a/conftest.h
16188 #define DEFINED_IN_CONFTESTD1
16189 #include_next <conftest.h>
16190 #ifdef DEFINED_IN_CONFTESTD2
16193 #error "include_next doesn't work"
16196 cat <<EOF > conftestd1b/conftest.h
16197 #define DEFINED_IN_CONFTESTD1
16199 #include_next <conftest.h>
16200 #ifdef DEFINED_IN_CONFTESTD2
16203 #error "include_next doesn't work"
16206 cat <<EOF > conftestd2/conftest.h
16207 #ifndef DEFINED_IN_CONFTESTD1
16208 #error "include_next test doesn't work"
16210 #define DEFINED_IN_CONFTESTD2
16212 gl_save_CPPFLAGS="$CPPFLAGS"
16213 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
16214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16215 /* end confdefs.h. */
16216 #include <conftest.h>
16218 if ac_fn_c_try_compile "$LINENO"; then :
16219 gl_cv_have_include_next=yes
16221 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
16222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16223 /* end confdefs.h. */
16224 #include <conftest.h>
16226 if ac_fn_c_try_compile "$LINENO"; then :
16227 gl_cv_have_include_next=buggy
16229 gl_cv_have_include_next=no
16231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16235 CPPFLAGS="$gl_save_CPPFLAGS"
16236 rm -rf conftestd1a conftestd1b conftestd2
16239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
16240 $as_echo "$gl_cv_have_include_next" >&6; }
16241 PRAGMA_SYSTEM_HEADER=
16242 if test $gl_cv_have_include_next = yes; then
16243 INCLUDE_NEXT=include_next
16244 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
16245 if test -n "$GCC"; then
16246 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
16249 if test $gl_cv_have_include_next = buggy; then
16250 INCLUDE_NEXT=include
16251 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
16253 INCLUDE_NEXT=include
16254 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
16260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
16261 $as_echo_n "checking whether system header files limit the line length... " >&6; }
16262 if test "${gl_cv_pragma_columns+set}" = set; then :
16263 $as_echo_n "(cached) " >&6
16265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16266 /* end confdefs.h. */
16273 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16274 $EGREP "choke me" >/dev/null 2>&1; then :
16275 gl_cv_pragma_columns=yes
16277 gl_cv_pragma_columns=no
16283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
16284 $as_echo "$gl_cv_pragma_columns" >&6; }
16285 if test $gl_cv_pragma_columns = yes; then
16286 PRAGMA_COLUMNS="#pragma COLUMNS 10000"
16307 if test $gl_cv_have_include_next = yes; then
16308 gl_cv_next_getopt_h='<'getopt.h'>'
16310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <getopt.h>" >&5
16311 $as_echo_n "checking absolute name of <getopt.h>... " >&6; }
16312 if test "${gl_cv_next_getopt_h+set}" = set; then :
16313 $as_echo_n "(cached) " >&6
16316 if test $ac_cv_header_getopt_h = yes; then
16319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16320 /* end confdefs.h. */
16321 #include <getopt.h>
16325 aix*) gl_absname_cpp="$ac_cpp -C" ;;
16326 *) gl_absname_cpp="$ac_cpp" ;;
16328 gl_cv_next_getopt_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16329 sed -n '\#/getopt.h#{
16330 s#.*"\(.*/getopt.h\)".*#\1#
16336 gl_cv_next_getopt_h='<'getopt.h'>'
16341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_getopt_h" >&5
16342 $as_echo "$gl_cv_next_getopt_h" >&6; }
16344 NEXT_GETOPT_H=$gl_cv_next_getopt_h
16346 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
16347 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16348 gl_next_as_first_directive='<'getopt.h'>'
16350 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16351 gl_next_as_first_directive=$gl_cv_next_getopt_h
16353 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H=$gl_next_as_first_directive
16358 if test $ac_cv_header_getopt_h = yes; then
16367 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
16368 for ac_header in getopt.h
16370 ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
16371 if test "x$ac_cv_header_getopt_h" = x""yes; then :
16372 cat >>confdefs.h <<_ACEOF
16373 #define HAVE_GETOPT_H 1
16377 gl_replace_getopt=yes
16384 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
16385 for ac_func in getopt_long_only
16387 ac_fn_c_check_func "$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
16388 if test "x$ac_cv_func_getopt_long_only" = x""yes; then :
16389 cat >>confdefs.h <<_ACEOF
16390 #define HAVE_GETOPT_LONG_ONLY 1
16394 gl_replace_getopt=yes
16400 if test -z "$gl_replace_getopt"; then
16401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt is POSIX compatible" >&5
16402 $as_echo_n "checking whether getopt is POSIX compatible... " >&6; }
16403 if test "${gl_cv_func_getopt_posix+set}" = set; then :
16404 $as_echo_n "(cached) " >&6
16407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16408 /* end confdefs.h. */
16409 #include <unistd.h>
16413 int *p = &optreset; return optreset;
16418 if ac_fn_c_try_compile "$LINENO"; then :
16421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16422 /* end confdefs.h. */
16423 #include <getopt.h>
16427 return !getopt_clip;
16432 if ac_fn_c_try_compile "$LINENO"; then :
16437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16441 gl_save_CPPFLAGS=$CPPFLAGS
16442 CPPFLAGS="$CPPFLAGS -DOPTIND_MIN=$gl_optind_min"
16443 if test "$cross_compiling" = yes; then :
16445 mingw*) gl_cv_func_getopt_posix="guessing no";;
16446 darwin* | aix*) gl_cv_func_getopt_posix="guessing no";;
16447 *) gl_cv_func_getopt_posix="guessing yes";;
16451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16452 /* end confdefs.h. */
16454 #include <unistd.h>
16455 #include <stdlib.h>
16456 #include <string.h>
16466 argv[argc++] = "program";
16467 argv[argc++] = "-a";
16468 argv[argc++] = "foo";
16469 argv[argc++] = "bar";
16471 optind = OPTIND_MIN;
16474 c = getopt (argc, argv, "ab");
16477 c = getopt (argc, argv, "ab");
16480 if (!(optind == 2))
16483 /* Some internal state exists at this point. */
16489 argv[argc++] = "program";
16490 argv[argc++] = "donald";
16491 argv[argc++] = "-p";
16492 argv[argc++] = "billy";
16493 argv[argc++] = "duck";
16494 argv[argc++] = "-a";
16495 argv[argc++] = "bar";
16497 optind = OPTIND_MIN;
16500 c = getopt (argc, argv, "+abp:q:");
16503 if (!(strcmp (argv[0], "program") == 0))
16505 if (!(strcmp (argv[1], "donald") == 0))
16507 if (!(strcmp (argv[2], "-p") == 0))
16509 if (!(strcmp (argv[3], "billy") == 0))
16511 if (!(strcmp (argv[4], "duck") == 0))
16513 if (!(strcmp (argv[5], "-a") == 0))
16515 if (!(strcmp (argv[6], "bar") == 0))
16517 if (!(optind == 1))
16520 /* Detect MacOS 10.5, AIX 7.1 bug. */
16522 char *argv[3] = { "program", "-ab", NULL };
16523 optind = OPTIND_MIN;
16525 if (getopt (2, argv, "ab:") != 'a')
16527 if (getopt (2, argv, "ab:") != '?')
16539 if ac_fn_c_try_run "$LINENO"; then :
16540 gl_cv_func_getopt_posix=yes
16542 gl_cv_func_getopt_posix=no
16544 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16545 conftest.$ac_objext conftest.beam conftest.$ac_ext
16548 CPPFLAGS=$gl_save_CPPFLAGS
16551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_posix" >&5
16552 $as_echo "$gl_cv_func_getopt_posix" >&6; }
16553 case "$gl_cv_func_getopt_posix" in
16554 *no) gl_replace_getopt=yes ;;
16558 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
16559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
16560 $as_echo_n "checking for working GNU getopt function... " >&6; }
16561 if test "${gl_cv_func_getopt_gnu+set}" = set; then :
16562 $as_echo_n "(cached) " >&6
16564 # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the
16565 # optstring is necessary for programs like m4 that have POSIX-mandated
16566 # semantics for supporting options interspersed with files.
16567 # Also, since getopt_long is a GNU extension, we require optind=0.
16568 # Bash ties 'set -o posix' to a non-exported POSIXLY_CORRECT;
16569 # so take care to revert to the correct (non-)export state.
16570 gl_awk_probe='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }'
16571 case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" </dev/null` in
16572 xx) gl_had_POSIXLY_CORRECT=exported ;;
16573 x) gl_had_POSIXLY_CORRECT=yes ;;
16574 *) gl_had_POSIXLY_CORRECT= ;;
16577 export POSIXLY_CORRECT
16578 if test "$cross_compiling" = yes; then :
16579 case $host_os:$ac_cv_have_decl_optreset in
16580 *-gnu*:* | mingw*:*) gl_cv_func_getopt_gnu=no;;
16581 *:yes) gl_cv_func_getopt_gnu=no;;
16582 *) gl_cv_func_getopt_gnu=yes;;
16586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16587 /* end confdefs.h. */
16588 #include <getopt.h>
16589 #include <stddef.h>
16590 #include <string.h>
16597 /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
16598 and fails on MacOS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
16599 OSF/1 5.1, Solaris 10. */
16602 myargv[0] = "conftest";
16606 if (getopt (2, myargv, "+a") != '?')
16609 /* This code succeeds on glibc 2.8, mingw,
16610 and fails on MacOS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
16611 IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x. */
16613 char *argv[] = { "program", "-p", "foo", "bar", NULL };
16616 if (getopt (4, argv, "p::") != 'p')
16618 else if (optarg != NULL)
16620 else if (getopt (4, argv, "p::") != -1)
16622 else if (optind != 2)
16625 /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0. */
16627 char *argv[] = { "program", "foo", "-p", NULL };
16629 if (getopt (3, argv, "-p") != 1)
16631 else if (getopt (3, argv, "-p") != 'p')
16634 /* This code fails on glibc 2.11. */
16636 char *argv[] = { "program", "-b", "-a", NULL };
16637 optind = opterr = 0;
16638 if (getopt (3, argv, "+:a:b") != 'b')
16640 else if (getopt (3, argv, "+:a:b") != ':')
16649 if ac_fn_c_try_run "$LINENO"; then :
16650 gl_cv_func_getopt_gnu=yes
16652 gl_cv_func_getopt_gnu=no
16654 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16655 conftest.$ac_objext conftest.beam conftest.$ac_ext
16658 case $gl_had_POSIXLY_CORRECT in
16660 yes) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;}; POSIXLY_CORRECT=1 ;;
16661 *) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;} ;;
16665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_gnu" >&5
16666 $as_echo "$gl_cv_func_getopt_gnu" >&6; }
16667 if test "$gl_cv_func_getopt_gnu" = "no"; then
16668 gl_replace_getopt=yes
16679 if test -n "$gl_replace_getopt"; then :
16686 if test $REPLACE_GETOPT = 1; then
16690 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
16694 GNULIB_UNISTD_H_GETOPT=1
16697 ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
16698 if test "x$ac_cv_have_decl_getenv" = x""yes; then :
16704 cat >>confdefs.h <<_ACEOF
16705 #define HAVE_DECL_GETENV $ac_have_decl
16709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
16710 $as_echo_n "checking for unsigned long long int... " >&6; }
16711 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
16712 $as_echo_n "(cached) " >&6
16714 ac_cv_type_unsigned_long_long_int=yes
16715 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
16716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16717 /* end confdefs.h. */
16719 /* For now, do not test the preprocessor; as of 2007 there are too many
16720 implementations with broken preprocessors. Perhaps this can
16721 be revisited in 2012. In the meantime, code should not expect
16722 #if to work with literals wider than 32 bits. */
16723 /* Test literals. */
16724 long long int ll = 9223372036854775807ll;
16725 long long int nll = -9223372036854775807LL;
16726 unsigned long long int ull = 18446744073709551615ULL;
16727 /* Test constant expressions. */
16728 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
16730 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
16736 /* Test availability of runtime routines for shift and division. */
16737 long long int llmax = 9223372036854775807ll;
16738 unsigned long long int ullmax = 18446744073709551615ull;
16739 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
16740 | (llmax / ll) | (llmax % ll)
16741 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
16742 | (ullmax / ull) | (ullmax % ull));
16748 if ac_fn_c_try_link "$LINENO"; then :
16751 ac_cv_type_unsigned_long_long_int=no
16753 rm -f core conftest.err conftest.$ac_objext \
16754 conftest$ac_exeext conftest.$ac_ext
16757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
16758 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
16759 if test $ac_cv_type_unsigned_long_long_int = yes; then
16761 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
16767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
16768 $as_echo_n "checking for long long int... " >&6; }
16769 if test "${ac_cv_type_long_long_int+set}" = set; then :
16770 $as_echo_n "(cached) " >&6
16772 ac_cv_type_long_long_int=yes
16773 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
16774 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
16775 if test $ac_cv_type_long_long_int = yes; then
16776 if test "$cross_compiling" = yes; then :
16779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16780 /* end confdefs.h. */
16781 #include <limits.h>
16784 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
16785 # define LLONG_MAX (HALF - 1 + HALF)
16790 long long int n = 1;
16794 long long int m = n << i;
16797 if (LLONG_MAX / 2 < m)
16805 if ac_fn_c_try_run "$LINENO"; then :
16808 ac_cv_type_long_long_int=no
16810 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16811 conftest.$ac_objext conftest.beam conftest.$ac_ext
16817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
16818 $as_echo "$ac_cv_type_long_long_int" >&6; }
16819 if test $ac_cv_type_long_long_int = yes; then
16821 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
16830 gl_cv_c_multiarch=no
16831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16832 /* end confdefs.h. */
16833 #ifndef __APPLE_CC__
16834 not a universal capable compiler
16839 if ac_fn_c_try_compile "$LINENO"; then :
16843 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
16844 if test -n "$prev"; then
16846 i?86 | x86_64 | ppc | ppc64)
16847 if test -z "$arch" || test "$arch" = "$word"; then
16850 gl_cv_c_multiarch=yes
16856 if test "x$word" = "x-arch"; then
16863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16864 if test $gl_cv_c_multiarch = yes; then
16865 APPLE_UNIVERSAL_BUILD=1
16867 APPLE_UNIVERSAL_BUILD=0
16874 if test $ac_cv_type_long_long_int = yes; then
16875 HAVE_LONG_LONG_INT=1
16877 HAVE_LONG_LONG_INT=0
16881 if test $ac_cv_type_unsigned_long_long_int = yes; then
16882 HAVE_UNSIGNED_LONG_LONG_INT=1
16884 HAVE_UNSIGNED_LONG_LONG_INT=0
16889 if test $ac_cv_header_wchar_h = yes; then
16896 if test $ac_cv_header_inttypes_h = yes; then
16903 if test $ac_cv_header_sys_types_h = yes; then
16919 if test $gl_cv_have_include_next = yes; then
16920 gl_cv_next_stdint_h='<'stdint.h'>'
16922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
16923 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
16924 if test "${gl_cv_next_stdint_h+set}" = set; then :
16925 $as_echo_n "(cached) " >&6
16928 if test $ac_cv_header_stdint_h = yes; then
16931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16932 /* end confdefs.h. */
16933 #include <stdint.h>
16937 aix*) gl_absname_cpp="$ac_cpp -C" ;;
16938 *) gl_absname_cpp="$ac_cpp" ;;
16940 gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16941 sed -n '\#/stdint.h#{
16942 s#.*"\(.*/stdint.h\)".*#\1#
16948 gl_cv_next_stdint_h='<'stdint.h'>'
16953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
16954 $as_echo "$gl_cv_next_stdint_h" >&6; }
16956 NEXT_STDINT_H=$gl_cv_next_stdint_h
16958 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
16959 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16960 gl_next_as_first_directive='<'stdint.h'>'
16962 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16963 gl_next_as_first_directive=$gl_cv_next_stdint_h
16965 NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
16970 if test $ac_cv_header_stdint_h = yes; then
16977 if test $ac_cv_header_stdint_h = yes; then
16978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
16979 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
16980 if test "${gl_cv_header_working_stdint_h+set}" = set; then :
16981 $as_echo_n "(cached) " >&6
16983 gl_cv_header_working_stdint_h=no
16984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16985 /* end confdefs.h. */
16988 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
16989 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
16990 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
16991 #include <stdint.h>
16992 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
16993 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
16994 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
16998 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
16999 included before <wchar.h>. */
17000 #include <stddef.h>
17001 #include <signal.h>
17003 # include <stdio.h>
17005 # include <wchar.h>
17010 int8_t a1 = INT8_MAX;
17011 int8_t a1min = INT8_MIN;
17014 int16_t a2 = INT16_MAX;
17015 int16_t a2min = INT16_MIN;
17018 int32_t a3 = INT32_MAX;
17019 int32_t a3min = INT32_MIN;
17022 int64_t a4 = INT64_MAX;
17023 int64_t a4min = INT64_MIN;
17026 uint8_t b1 = UINT8_MAX;
17028 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
17031 uint16_t b2 = UINT16_MAX;
17034 uint32_t b3 = UINT32_MAX;
17037 uint64_t b4 = UINT64_MAX;
17039 int_least8_t c1 = INT8_C (0x7f);
17040 int_least8_t c1max = INT_LEAST8_MAX;
17041 int_least8_t c1min = INT_LEAST8_MIN;
17042 int_least16_t c2 = INT16_C (0x7fff);
17043 int_least16_t c2max = INT_LEAST16_MAX;
17044 int_least16_t c2min = INT_LEAST16_MIN;
17045 int_least32_t c3 = INT32_C (0x7fffffff);
17046 int_least32_t c3max = INT_LEAST32_MAX;
17047 int_least32_t c3min = INT_LEAST32_MIN;
17048 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
17049 int_least64_t c4max = INT_LEAST64_MAX;
17050 int_least64_t c4min = INT_LEAST64_MIN;
17051 uint_least8_t d1 = UINT8_C (0xff);
17052 uint_least8_t d1max = UINT_LEAST8_MAX;
17053 uint_least16_t d2 = UINT16_C (0xffff);
17054 uint_least16_t d2max = UINT_LEAST16_MAX;
17055 uint_least32_t d3 = UINT32_C (0xffffffff);
17056 uint_least32_t d3max = UINT_LEAST32_MAX;
17057 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
17058 uint_least64_t d4max = UINT_LEAST64_MAX;
17059 int_fast8_t e1 = INT_FAST8_MAX;
17060 int_fast8_t e1min = INT_FAST8_MIN;
17061 int_fast16_t e2 = INT_FAST16_MAX;
17062 int_fast16_t e2min = INT_FAST16_MIN;
17063 int_fast32_t e3 = INT_FAST32_MAX;
17064 int_fast32_t e3min = INT_FAST32_MIN;
17065 int_fast64_t e4 = INT_FAST64_MAX;
17066 int_fast64_t e4min = INT_FAST64_MIN;
17067 uint_fast8_t f1 = UINT_FAST8_MAX;
17068 uint_fast16_t f2 = UINT_FAST16_MAX;
17069 uint_fast32_t f3 = UINT_FAST32_MAX;
17070 uint_fast64_t f4 = UINT_FAST64_MAX;
17072 intptr_t g = INTPTR_MAX;
17073 intptr_t gmin = INTPTR_MIN;
17076 uintptr_t h = UINTPTR_MAX;
17078 intmax_t i = INTMAX_MAX;
17079 uintmax_t j = UINTMAX_MAX;
17081 #include <limits.h> /* for CHAR_BIT */
17082 #define TYPE_MINIMUM(t) \
17083 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
17084 #define TYPE_MAXIMUM(t) \
17085 ((t) ((t) 0 < (t) -1 \
17087 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
17090 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
17091 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
17093 /* Detect bug in FreeBSD 6.0 / ia64. */
17094 int check_SIG_ATOMIC:
17095 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
17096 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
17098 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
17100 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
17101 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
17103 /* Detect bug in mingw. */
17105 WINT_MIN == TYPE_MINIMUM (wint_t)
17106 && WINT_MAX == TYPE_MAXIMUM (wint_t)
17109 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
17111 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
17112 int check_UINT16_C:
17113 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
17115 /* Detect bugs in OpenBSD 3.9 stdint.h. */
17117 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
17120 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
17123 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
17126 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
17128 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
17129 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
17130 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
17131 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
17132 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
17133 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
17134 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
17135 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
17136 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
17137 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
17138 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
17149 if ac_fn_c_try_compile "$LINENO"; then :
17150 if test "$cross_compiling" = yes; then :
17151 gl_cv_header_working_stdint_h=yes
17154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17155 /* end confdefs.h. */
17158 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
17159 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
17160 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
17161 #include <stdint.h>
17164 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17165 included before <wchar.h>. */
17166 #include <stddef.h>
17167 #include <signal.h>
17169 # include <stdio.h>
17171 # include <wchar.h>
17176 #include <string.h>
17177 #define MVAL(macro) MVAL1(macro)
17178 #define MVAL1(expression) #expression
17179 static const char *macro_values[] =
17213 for (mv = macro_values; *mv != NULL; mv++)
17215 const char *value = *mv;
17216 /* Test whether it looks like a cast expression. */
17217 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
17218 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
17219 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
17220 || strncmp (value, "((int)"/*)*/, 6) == 0
17221 || strncmp (value, "((signed short)"/*)*/, 15) == 0
17222 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
17223 return mv - macro_values + 1;
17231 if ac_fn_c_try_run "$LINENO"; then :
17232 gl_cv_header_working_stdint_h=yes
17234 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17235 conftest.$ac_objext conftest.beam conftest.$ac_ext
17240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
17244 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
17246 if test "$gl_cv_header_working_stdint_h" = yes; then
17249 for ac_header in sys/inttypes.h sys/bitypes.h
17251 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17252 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17253 eval as_val=\$$as_ac_Header
17254 if test "x$as_val" = x""yes; then :
17255 cat >>confdefs.h <<_ACEOF
17256 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17263 if test $ac_cv_header_sys_inttypes_h = yes; then
17264 HAVE_SYS_INTTYPES_H=1
17266 HAVE_SYS_INTTYPES_H=0
17269 if test $ac_cv_header_sys_bitypes_h = yes; then
17270 HAVE_SYS_BITYPES_H=1
17272 HAVE_SYS_BITYPES_H=0
17278 if test $APPLE_UNIVERSAL_BUILD = 0; then
17281 for gltype in ptrdiff_t size_t ; do
17282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
17283 $as_echo_n "checking for bit size of $gltype... " >&6; }
17284 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
17285 $as_echo_n "(cached) " >&6
17287 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
17288 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17289 included before <wchar.h>. */
17290 #include <stddef.h>
17291 #include <signal.h>
17293 # include <stdio.h>
17295 # include <wchar.h>
17298 #include <limits.h>"; then :
17304 eval gl_cv_bitsizeof_${gltype}=\$result
17307 eval ac_res=\$gl_cv_bitsizeof_${gltype}
17308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17309 $as_echo "$ac_res" >&6; }
17310 eval result=\$gl_cv_bitsizeof_${gltype}
17311 if test $result = unknown; then
17314 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17315 cat >>confdefs.h <<_ACEOF
17316 #define BITSIZEOF_${GLTYPE} $result
17319 eval BITSIZEOF_${GLTYPE}=\$result
17326 for gltype in sig_atomic_t wchar_t wint_t ; do
17327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
17328 $as_echo_n "checking for bit size of $gltype... " >&6; }
17329 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
17330 $as_echo_n "(cached) " >&6
17332 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
17333 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17334 included before <wchar.h>. */
17335 #include <stddef.h>
17336 #include <signal.h>
17338 # include <stdio.h>
17340 # include <wchar.h>
17343 #include <limits.h>"; then :
17349 eval gl_cv_bitsizeof_${gltype}=\$result
17352 eval ac_res=\$gl_cv_bitsizeof_${gltype}
17353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17354 $as_echo "$ac_res" >&6; }
17355 eval result=\$gl_cv_bitsizeof_${gltype}
17356 if test $result = unknown; then
17359 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17360 cat >>confdefs.h <<_ACEOF
17361 #define BITSIZEOF_${GLTYPE} $result
17364 eval BITSIZEOF_${GLTYPE}=\$result
17370 for gltype in sig_atomic_t wchar_t wint_t ; do
17371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
17372 $as_echo_n "checking whether $gltype is signed... " >&6; }
17373 if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then :
17374 $as_echo_n "(cached) " >&6
17376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17377 /* end confdefs.h. */
17379 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17380 included before <wchar.h>. */
17381 #include <stddef.h>
17382 #include <signal.h>
17384 # include <stdio.h>
17386 # include <wchar.h>
17389 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
17398 if ac_fn_c_try_compile "$LINENO"; then :
17403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17404 eval gl_cv_type_${gltype}_signed=\$result
17407 eval ac_res=\$gl_cv_type_${gltype}_signed
17408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17409 $as_echo "$ac_res" >&6; }
17410 eval result=\$gl_cv_type_${gltype}_signed
17411 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17412 if test "$result" = yes; then
17413 cat >>confdefs.h <<_ACEOF
17414 #define HAVE_SIGNED_${GLTYPE} 1
17417 eval HAVE_SIGNED_${GLTYPE}=1
17419 eval HAVE_SIGNED_${GLTYPE}=0
17424 gl_cv_type_ptrdiff_t_signed=yes
17425 gl_cv_type_size_t_signed=no
17426 if test $APPLE_UNIVERSAL_BUILD = 0; then
17429 for gltype in ptrdiff_t size_t ; do
17430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
17431 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
17432 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
17433 $as_echo_n "(cached) " >&6
17435 eval gl_cv_type_${gltype}_suffix=no
17436 eval result=\$gl_cv_type_${gltype}_signed
17437 if test "$result" = yes; then
17442 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
17444 '') gltype1='int';;
17445 l) gltype1='long int';;
17446 ll) gltype1='long long int';;
17447 i64) gltype1='__int64';;
17448 u) gltype1='unsigned int';;
17449 ul) gltype1='unsigned long int';;
17450 ull) gltype1='unsigned long long int';;
17451 ui64)gltype1='unsigned __int64';;
17453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17454 /* end confdefs.h. */
17456 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17457 included before <wchar.h>. */
17458 #include <stddef.h>
17459 #include <signal.h>
17461 # include <stdio.h>
17463 # include <wchar.h>
17466 extern $gltype foo;
17467 extern $gltype1 foo;
17476 if ac_fn_c_try_compile "$LINENO"; then :
17477 eval gl_cv_type_${gltype}_suffix=\$glsuf
17479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17480 eval result=\$gl_cv_type_${gltype}_suffix
17481 test "$result" != no && break
17484 eval ac_res=\$gl_cv_type_${gltype}_suffix
17485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17486 $as_echo "$ac_res" >&6; }
17487 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17488 eval result=\$gl_cv_type_${gltype}_suffix
17489 test "$result" = no && result=
17490 eval ${GLTYPE}_SUFFIX=\$result
17491 cat >>confdefs.h <<_ACEOF
17492 #define ${GLTYPE}_SUFFIX $result
17501 for gltype in sig_atomic_t wchar_t wint_t ; do
17502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
17503 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
17504 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
17505 $as_echo_n "(cached) " >&6
17507 eval gl_cv_type_${gltype}_suffix=no
17508 eval result=\$gl_cv_type_${gltype}_signed
17509 if test "$result" = yes; then
17514 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
17516 '') gltype1='int';;
17517 l) gltype1='long int';;
17518 ll) gltype1='long long int';;
17519 i64) gltype1='__int64';;
17520 u) gltype1='unsigned int';;
17521 ul) gltype1='unsigned long int';;
17522 ull) gltype1='unsigned long long int';;
17523 ui64)gltype1='unsigned __int64';;
17525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17526 /* end confdefs.h. */
17528 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17529 included before <wchar.h>. */
17530 #include <stddef.h>
17531 #include <signal.h>
17533 # include <stdio.h>
17535 # include <wchar.h>
17538 extern $gltype foo;
17539 extern $gltype1 foo;
17548 if ac_fn_c_try_compile "$LINENO"; then :
17549 eval gl_cv_type_${gltype}_suffix=\$glsuf
17551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17552 eval result=\$gl_cv_type_${gltype}_suffix
17553 test "$result" != no && break
17556 eval ac_res=\$gl_cv_type_${gltype}_suffix
17557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17558 $as_echo "$ac_res" >&6; }
17559 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17560 eval result=\$gl_cv_type_${gltype}_suffix
17561 test "$result" = no && result=
17562 eval ${GLTYPE}_SUFFIX=\$result
17563 cat >>confdefs.h <<_ACEOF
17564 #define ${GLTYPE}_SUFFIX $result
17574 if test -n "$STDINT_H"; then
17575 GL_GENERATE_STDINT_H_TRUE=
17576 GL_GENERATE_STDINT_H_FALSE='#'
17578 GL_GENERATE_STDINT_H_TRUE='#'
17579 GL_GENERATE_STDINT_H_FALSE=
17588 GNULIB_STRTOIMAX=0;
17589 GNULIB_STRTOUMAX=0;
17590 HAVE_DECL_IMAXABS=1;
17591 HAVE_DECL_IMAXDIV=1;
17592 HAVE_DECL_STRTOIMAX=1;
17593 HAVE_DECL_STRTOUMAX=1;
17594 INT32_MAX_LT_INTMAX_MAX=1;
17595 INT64_MAX_EQ_LONG_MAX='defined _LP64';
17596 PRI_MACROS_BROKEN=0;
17597 PRIPTR_PREFIX=__PRIPTR_PREFIX;
17598 UINT32_MAX_LT_UINTMAX_MAX=1;
17599 UINT64_MAX_EQ_ULONG_MAX='defined _LP64';
17615 if test $gl_cv_have_include_next = yes; then
17616 gl_cv_next_inttypes_h='<'inttypes.h'>'
17618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5
17619 $as_echo_n "checking absolute name of <inttypes.h>... " >&6; }
17620 if test "${gl_cv_next_inttypes_h+set}" = set; then :
17621 $as_echo_n "(cached) " >&6
17624 if test $ac_cv_header_inttypes_h = yes; then
17627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17628 /* end confdefs.h. */
17629 #include <inttypes.h>
17633 aix*) gl_absname_cpp="$ac_cpp -C" ;;
17634 *) gl_absname_cpp="$ac_cpp" ;;
17636 gl_cv_next_inttypes_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17637 sed -n '\#/inttypes.h#{
17638 s#.*"\(.*/inttypes.h\)".*#\1#
17644 gl_cv_next_inttypes_h='<'inttypes.h'>'
17649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5
17650 $as_echo "$gl_cv_next_inttypes_h" >&6; }
17652 NEXT_INTTYPES_H=$gl_cv_next_inttypes_h
17654 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17655 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17656 gl_next_as_first_directive='<'inttypes.h'>'
17658 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17659 gl_next_as_first_directive=$gl_cv_next_inttypes_h
17661 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H=$gl_next_as_first_directive
17670 $as_echo "#define GL_TRIGGER_STDC_LIMIT_MACROS 1" >>confdefs.h
17688 GNULIB_UTIMENSAT=0;
17702 REPLACE_FUTIMENS=0;
17708 REPLACE_UTIMENSAT=0;
17713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
17714 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
17715 if test "${gl_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
17716 $as_echo_n "(cached) " >&6
17718 rm -f conftest.sym conftest.file
17719 echo >conftest.file
17720 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
17721 if test "$cross_compiling" = yes; then :
17722 # When cross-compiling, be pessimistic so we will end up using the
17723 # replacement version of lstat that checks for trailing slashes and
17724 # calls lstat a second time when necessary.
17725 gl_cv_func_lstat_dereferences_slashed_symlink=no
17728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17729 /* end confdefs.h. */
17730 $ac_includes_default
17735 /* Linux will dereference the symlink and fail, as required by
17736 POSIX. That is better in the sense that it means we will not
17737 have to compile and use the lstat wrapper. */
17738 return lstat ("conftest.sym/", &sbuf) == 0;
17744 if ac_fn_c_try_run "$LINENO"; then :
17745 gl_cv_func_lstat_dereferences_slashed_symlink=yes
17747 gl_cv_func_lstat_dereferences_slashed_symlink=no
17749 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17750 conftest.$ac_objext conftest.beam conftest.$ac_ext
17754 # If the 'ln -s' command failed, then we probably don't even
17755 # have an lstat function.
17756 gl_cv_func_lstat_dereferences_slashed_symlink=no
17758 rm -f conftest.sym conftest.file
17761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lstat_dereferences_slashed_symlink" >&5
17762 $as_echo "$gl_cv_func_lstat_dereferences_slashed_symlink" >&6; }
17763 test $gl_cv_func_lstat_dereferences_slashed_symlink = yes &&
17765 cat >>confdefs.h <<_ACEOF
17766 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
17772 GNULIB_NANOSLEEP=0;
17776 HAVE_DECL_LOCALTIME_R=1;
17780 REPLACE_LOCALTIME_R=GNULIB_PORTCHECK;
17781 REPLACE_MKTIME=GNULIB_PORTCHECK;
17782 REPLACE_NANOSLEEP=GNULIB_PORTCHECK;
17783 REPLACE_TIMEGM=GNULIB_PORTCHECK;
17792 if test $ac_cv_header_sys_socket_h = no; then
17793 for ac_header in ws2tcpip.h
17795 ac_fn_c_check_header_mongrel "$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
17796 if test "x$ac_cv_header_ws2tcpip_h" = x""yes; then :
17797 cat >>confdefs.h <<_ACEOF
17798 #define HAVE_WS2TCPIP_H 1
17807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
17808 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
17809 if test "${ac_cv_header_stdbool_h+set}" = set; then :
17810 $as_echo_n "(cached) " >&6
17812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17813 /* end confdefs.h. */
17815 #include <stdbool.h>
17817 "error: bool is not defined"
17820 "error: false is not defined"
17823 "error: false is not 0"
17826 "error: true is not defined"
17829 "error: true is not 1"
17831 #ifndef __bool_true_false_are_defined
17832 "error: __bool_true_false_are_defined is not defined"
17835 struct s { _Bool s: 1; _Bool t; } s;
17837 char a[true == 1 ? 1 : -1];
17838 char b[false == 0 ? 1 : -1];
17839 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
17840 char d[(bool) 0.5 == true ? 1 : -1];
17841 /* See body of main program for 'e'. */
17842 char f[(_Bool) 0.0 == false ? 1 : -1];
17844 char h[sizeof (_Bool)];
17845 char i[sizeof s.t];
17846 enum { j = false, k = true, l = false * true, m = true * 256 };
17847 /* The following fails for
17848 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
17850 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
17851 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
17852 /* Catch a bug in an HP-UX C compiler. See
17853 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
17854 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
17866 /* Refer to every declared value, to avoid compiler optimizations. */
17867 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
17868 + !m + !n + !o + !p + !q + !pq);
17874 if ac_fn_c_try_compile "$LINENO"; then :
17875 ac_cv_header_stdbool_h=yes
17877 ac_cv_header_stdbool_h=no
17879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
17882 $as_echo "$ac_cv_header_stdbool_h" >&6; }
17883 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
17884 if test "x$ac_cv_type__Bool" = x""yes; then :
17886 cat >>confdefs.h <<_ACEOF
17887 #define HAVE__BOOL 1
17899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
17900 $as_echo_n "checking for wchar_t... " >&6; }
17901 if test "${gt_cv_c_wchar_t+set}" = set; then :
17902 $as_echo_n "(cached) " >&6
17904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17905 /* end confdefs.h. */
17906 #include <stddef.h>
17907 wchar_t foo = (wchar_t)'\0';
17916 if ac_fn_c_try_compile "$LINENO"; then :
17917 gt_cv_c_wchar_t=yes
17921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
17924 $as_echo "$gt_cv_c_wchar_t" >&6; }
17925 if test $gt_cv_c_wchar_t = yes; then
17927 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
17939 GNULIB_FPRINTF_POSIX=0;
17956 GNULIB_OBSTACK_PRINTF=0;
17957 GNULIB_OBSTACK_PRINTF_POSIX=0;
17961 GNULIB_PRINTF_POSIX=0;
17970 GNULIB_SPRINTF_POSIX=0;
17971 GNULIB_STDIO_H_NONBLOCKING=0;
17972 GNULIB_STDIO_H_SIGPIPE=0;
17974 GNULIB_VASPRINTF=0;
17979 GNULIB_VFPRINTF_POSIX=0;
17981 GNULIB_VPRINTF_POSIX=0;
17982 GNULIB_VSNPRINTF=0;
17983 GNULIB_VSPRINTF_POSIX=0;
17984 HAVE_DECL_FPURGE=1;
17985 HAVE_DECL_FSEEKO=1;
17986 HAVE_DECL_FTELLO=1;
17987 HAVE_DECL_GETDELIM=1;
17988 HAVE_DECL_GETLINE=1;
17989 HAVE_DECL_OBSTACK_PRINTF=1;
17990 HAVE_DECL_SNPRINTF=1;
17991 HAVE_DECL_VSNPRINTF=1;
18009 REPLACE_GETDELIM=0;
18011 REPLACE_OBSTACK_PRINTF=0;
18017 REPLACE_RENAMEAT=0;
18018 REPLACE_SNPRINTF=0;
18020 REPLACE_STDIO_READ_FUNCS=0;
18021 REPLACE_STDIO_WRITE_FUNCS=0;
18023 REPLACE_VASPRINTF=0;
18024 REPLACE_VDPRINTF=0;
18025 REPLACE_VFPRINTF=0;
18027 REPLACE_VSNPRINTF=0;
18028 REPLACE_VSPRINTF=0;
18031 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
18033 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x""yes; then :
18035 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
18042 ac_fn_c_check_decl "$LINENO" "strtoumax" "ac_cv_have_decl_strtoumax" "$ac_includes_default"
18043 if test "x$ac_cv_have_decl_strtoumax" = x""yes; then :
18049 cat >>confdefs.h <<_ACEOF
18050 #define HAVE_DECL_STRTOUMAX $ac_have_decl
18055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
18056 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
18057 if test "${ac_cv_header_stat_broken+set}" = set; then :
18058 $as_echo_n "(cached) " >&6
18060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18061 /* end confdefs.h. */
18062 #include <sys/types.h>
18063 #include <sys/stat.h>
18065 #if defined S_ISBLK && defined S_IFDIR
18066 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
18069 #if defined S_ISBLK && defined S_IFCHR
18070 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
18073 #if defined S_ISLNK && defined S_IFREG
18074 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
18077 #if defined S_ISSOCK && defined S_IFREG
18078 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
18082 if ac_fn_c_try_compile "$LINENO"; then :
18083 ac_cv_header_stat_broken=no
18085 ac_cv_header_stat_broken=yes
18087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
18090 $as_echo "$ac_cv_header_stat_broken" >&6; }
18091 if test $ac_cv_header_stat_broken = yes; then
18093 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
18099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
18100 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
18101 if test "${ac_cv_c_restrict+set}" = set; then :
18102 $as_echo_n "(cached) " >&6
18104 ac_cv_c_restrict=no
18105 # The order here caters to the fact that C++ does not require restrict.
18106 for ac_kw in __restrict __restrict__ _Restrict restrict; do
18107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18108 /* end confdefs.h. */
18109 typedef int * int_ptr;
18110 int foo (int_ptr $ac_kw ip) {
18117 int * $ac_kw t = s;
18124 if ac_fn_c_try_compile "$LINENO"; then :
18125 ac_cv_c_restrict=$ac_kw
18127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18128 test "$ac_cv_c_restrict" != no && break
18132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
18133 $as_echo "$ac_cv_c_restrict" >&6; }
18135 case $ac_cv_c_restrict in
18137 no) $as_echo "#define restrict /**/" >>confdefs.h
18139 *) cat >>confdefs.h <<_ACEOF
18140 #define restrict $ac_cv_c_restrict
18149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
18150 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
18151 if test "${gl_cv_sys_struct_timespec_in_time_h+set}" = set; then :
18152 $as_echo_n "(cached) " >&6
18154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18155 /* end confdefs.h. */
18161 static struct timespec x; x.tv_sec = x.tv_nsec;
18166 if ac_fn_c_try_compile "$LINENO"; then :
18167 gl_cv_sys_struct_timespec_in_time_h=yes
18169 gl_cv_sys_struct_timespec_in_time_h=no
18171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
18174 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
18176 TIME_H_DEFINES_STRUCT_TIMESPEC=0
18177 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0
18178 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0
18179 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
18180 TIME_H_DEFINES_STRUCT_TIMESPEC=1
18182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
18183 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
18184 if test "${gl_cv_sys_struct_timespec_in_sys_time_h+set}" = set; then :
18185 $as_echo_n "(cached) " >&6
18187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18188 /* end confdefs.h. */
18189 #include <sys/time.h>
18194 static struct timespec x; x.tv_sec = x.tv_nsec;
18199 if ac_fn_c_try_compile "$LINENO"; then :
18200 gl_cv_sys_struct_timespec_in_sys_time_h=yes
18202 gl_cv_sys_struct_timespec_in_sys_time_h=no
18204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
18207 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
18208 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
18209 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1
18211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
18212 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
18213 if test "${gl_cv_sys_struct_timespec_in_pthread_h+set}" = set; then :
18214 $as_echo_n "(cached) " >&6
18216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18217 /* end confdefs.h. */
18218 #include <pthread.h>
18223 static struct timespec x; x.tv_sec = x.tv_nsec;
18228 if ac_fn_c_try_compile "$LINENO"; then :
18229 gl_cv_sys_struct_timespec_in_pthread_h=yes
18231 gl_cv_sys_struct_timespec_in_pthread_h=no
18233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
18236 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
18237 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
18238 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1
18257 if test $gl_cv_have_include_next = yes; then
18258 gl_cv_next_time_h='<'time.h'>'
18260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
18261 $as_echo_n "checking absolute name of <time.h>... " >&6; }
18262 if test "${gl_cv_next_time_h+set}" = set; then :
18263 $as_echo_n "(cached) " >&6
18266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18267 /* end confdefs.h. */
18272 aix*) gl_absname_cpp="$ac_cpp -C" ;;
18273 *) gl_absname_cpp="$ac_cpp" ;;
18275 gl_cv_next_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18276 sed -n '\#/time.h#{
18277 s#.*"\(.*/time.h\)".*#\1#
18285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
18286 $as_echo "$gl_cv_next_time_h" >&6; }
18288 NEXT_TIME_H=$gl_cv_next_time_h
18290 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18291 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18292 gl_next_as_first_directive='<'time.h'>'
18294 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18295 gl_next_as_first_directive=$gl_cv_next_time_h
18297 NEXT_AS_FIRST_DIRECTIVE_TIME_H=$gl_next_as_first_directive
18304 ac_fn_c_check_decl "$LINENO" "localtime_r" "ac_cv_have_decl_localtime_r" "$ac_includes_default"
18305 if test "x$ac_cv_have_decl_localtime_r" = x""yes; then :
18311 cat >>confdefs.h <<_ACEOF
18312 #define HAVE_DECL_LOCALTIME_R $ac_have_decl
18319 GL_COND_LIBTOOL_TRUE=
18320 GL_COND_LIBTOOL_FALSE='#'
18322 GL_COND_LIBTOOL_TRUE='#'
18323 GL_COND_LIBTOOL_FALSE=
18326 gl_cond_libtool=false
18339 gl_source_base='lib'
18342 if test $ac_cv_func_alloca_works = no; then
18346 # Define an additional variable used in the Makefile substitution.
18347 if test $ac_cv_working_alloca_h = yes; then
18348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
18349 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
18350 if test "${gl_cv_rpl_alloca+set}" = set; then :
18351 $as_echo_n "(cached) " >&6
18354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18355 /* end confdefs.h. */
18357 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
18362 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18363 $EGREP "Need own alloca" >/dev/null 2>&1; then :
18364 gl_cv_rpl_alloca=yes
18366 gl_cv_rpl_alloca=no
18372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
18373 $as_echo "$gl_cv_rpl_alloca" >&6; }
18374 if test $gl_cv_rpl_alloca = yes; then
18376 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
18386 if test -n "$ALLOCA_H"; then
18387 GL_GENERATE_ALLOCA_H_TRUE=
18388 GL_GENERATE_ALLOCA_H_FALSE='#'
18390 GL_GENERATE_ALLOCA_H_TRUE='#'
18391 GL_GENERATE_ALLOCA_H_FALSE=
18420 $as_echo "#define HAVE_DUP2 1" >>confdefs.h
18423 if test $HAVE_DUP2 = 1; then
18424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dup2 works" >&5
18425 $as_echo_n "checking whether dup2 works... " >&6; }
18426 if test "${gl_cv_func_dup2_works+set}" = set; then :
18427 $as_echo_n "(cached) " >&6
18429 if test "$cross_compiling" = yes; then :
18431 mingw*) # on this platform, dup2 always returns 0 for success
18432 gl_cv_func_dup2_works=no;;
18433 cygwin*) # on cygwin 1.5.x, dup2(1,1) returns 0
18434 gl_cv_func_dup2_works=no;;
18435 linux*) # On linux between 2008-07-27 and 2009-05-11, dup2 of a
18436 # closed fd may yield -EBADF instead of -1 / errno=EBADF.
18437 gl_cv_func_dup2_works=no;;
18438 freebsd*) # on FreeBSD 6.1, dup2(1,1000000) gives EMFILE, not EBADF.
18439 gl_cv_func_dup2_works=no;;
18440 haiku*) # on Haiku alpha 2, dup2(1, 1) resets FD_CLOEXEC.
18441 gl_cv_func_dup2_works=no;;
18442 *) gl_cv_func_dup2_works=yes;;
18445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18446 /* end confdefs.h. */
18448 #include <unistd.h>
18456 if (fcntl (1, F_SETFD, FD_CLOEXEC) == -1)
18459 if (dup2 (1, 1) == 0)
18462 if (fcntl (1, F_GETFD) != FD_CLOEXEC)
18466 if (dup2 (0, 0) != -1)
18468 /* Many gnulib modules require POSIX conformance of EBADF. */
18469 if (dup2 (2, 1000000) == -1 && errno != EBADF)
18478 if ac_fn_c_try_run "$LINENO"; then :
18479 gl_cv_func_dup2_works=yes
18481 gl_cv_func_dup2_works=no
18483 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18484 conftest.$ac_objext conftest.beam conftest.$ac_ext
18489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dup2_works" >&5
18490 $as_echo "$gl_cv_func_dup2_works" >&6; }
18491 if test "$gl_cv_func_dup2_works" = no; then
18495 if test $ac_cv_func_dup2 = yes; then
18506 gl_LIBOBJS="$gl_LIBOBJS dup2.$ac_objext"
18529 # Persuade glibc <stdlib.h> to declare getloadavg().
18534 # getloadvg is present in libc on glibc >= 2.2, MacOS X, FreeBSD >= 2.0,
18535 # NetBSD >= 0.9, OpenBSD >= 2.0, Solaris >= 7.
18537 ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
18538 if test "x$ac_cv_func_getloadavg" = x""yes; then :
18541 gl_func_getloadavg_done=no
18543 # Some systems with -lutil have (and need) -lkvm as well, some do not.
18544 # On Solaris, -lkvm requires nlist from -lelf, so check that first
18545 # to get the right answer into the cache.
18546 # For kstat on solaris, we need to test for libelf and libkvm to force the
18547 # definition of SVR4 below.
18548 if test $gl_func_getloadavg_done = no; then
18549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
18550 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
18551 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then :
18552 $as_echo_n "(cached) " >&6
18554 ac_check_lib_save_LIBS=$LIBS
18556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18557 /* end confdefs.h. */
18559 /* Override any GCC internal prototype to avoid an error.
18560 Use char because int might match the return type of a GCC
18561 builtin and then its argument prototype would still apply. */
18569 return elf_begin ();
18574 if ac_fn_c_try_link "$LINENO"; then :
18575 ac_cv_lib_elf_elf_begin=yes
18577 ac_cv_lib_elf_elf_begin=no
18579 rm -f core conftest.err conftest.$ac_objext \
18580 conftest$ac_exeext conftest.$ac_ext
18581 LIBS=$ac_check_lib_save_LIBS
18583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
18584 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
18585 if test "x$ac_cv_lib_elf_elf_begin" = x""yes; then :
18589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
18590 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
18591 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then :
18592 $as_echo_n "(cached) " >&6
18594 ac_check_lib_save_LIBS=$LIBS
18596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18597 /* end confdefs.h. */
18599 /* Override any GCC internal prototype to avoid an error.
18600 Use char because int might match the return type of a GCC
18601 builtin and then its argument prototype would still apply. */
18609 return kvm_open ();
18614 if ac_fn_c_try_link "$LINENO"; then :
18615 ac_cv_lib_kvm_kvm_open=yes
18617 ac_cv_lib_kvm_kvm_open=no
18619 rm -f core conftest.err conftest.$ac_objext \
18620 conftest$ac_exeext conftest.$ac_ext
18621 LIBS=$ac_check_lib_save_LIBS
18623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
18624 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
18625 if test "x$ac_cv_lib_kvm_kvm_open" = x""yes; then :
18629 # Check for the 4.4BSD definition of getloadavg.
18630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5
18631 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
18632 if test "${ac_cv_lib_util_getloadavg+set}" = set; then :
18633 $as_echo_n "(cached) " >&6
18635 ac_check_lib_save_LIBS=$LIBS
18636 LIBS="-lutil $LIBS"
18637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18638 /* end confdefs.h. */
18640 /* Override any GCC internal prototype to avoid an error.
18641 Use char because int might match the return type of a GCC
18642 builtin and then its argument prototype would still apply. */
18646 char getloadavg ();
18650 return getloadavg ();
18655 if ac_fn_c_try_link "$LINENO"; then :
18656 ac_cv_lib_util_getloadavg=yes
18658 ac_cv_lib_util_getloadavg=no
18660 rm -f core conftest.err conftest.$ac_objext \
18661 conftest$ac_exeext conftest.$ac_ext
18662 LIBS=$ac_check_lib_save_LIBS
18664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5
18665 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
18666 if test "x$ac_cv_lib_util_getloadavg" = x""yes; then :
18667 LIBS="-lutil $LIBS" gl_func_getloadavg_done=yes
18672 if test $gl_func_getloadavg_done = no; then
18673 # There is a commonly available library for RS/6000 AIX.
18674 # Since it is not a standard part of AIX, it might be installed locally.
18675 gl_getloadavg_LIBS=$LIBS
18676 LIBS="-L/usr/local/lib $LIBS"
18677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5
18678 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
18679 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then :
18680 $as_echo_n "(cached) " >&6
18682 ac_check_lib_save_LIBS=$LIBS
18683 LIBS="-lgetloadavg $LIBS"
18684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18685 /* end confdefs.h. */
18687 /* Override any GCC internal prototype to avoid an error.
18688 Use char because int might match the return type of a GCC
18689 builtin and then its argument prototype would still apply. */
18693 char getloadavg ();
18697 return getloadavg ();
18702 if ac_fn_c_try_link "$LINENO"; then :
18703 ac_cv_lib_getloadavg_getloadavg=yes
18705 ac_cv_lib_getloadavg_getloadavg=no
18707 rm -f core conftest.err conftest.$ac_objext \
18708 conftest$ac_exeext conftest.$ac_ext
18709 LIBS=$ac_check_lib_save_LIBS
18711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5
18712 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
18713 if test "x$ac_cv_lib_getloadavg_getloadavg" = x""yes; then :
18714 LIBS="-lgetloadavg $LIBS" gl_func_getloadavg_done=yes
18716 LIBS=$gl_getloadavg_LIBS
18721 # Set up the replacement function if necessary.
18722 if test $gl_func_getloadavg_done = no; then
18725 # Solaris has libkstat which does not require root.
18726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
18727 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
18728 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then :
18729 $as_echo_n "(cached) " >&6
18731 ac_check_lib_save_LIBS=$LIBS
18732 LIBS="-lkstat $LIBS"
18733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18734 /* end confdefs.h. */
18736 /* Override any GCC internal prototype to avoid an error.
18737 Use char because int might match the return type of a GCC
18738 builtin and then its argument prototype would still apply. */
18742 char kstat_open ();
18746 return kstat_open ();
18751 if ac_fn_c_try_link "$LINENO"; then :
18752 ac_cv_lib_kstat_kstat_open=yes
18754 ac_cv_lib_kstat_kstat_open=no
18756 rm -f core conftest.err conftest.$ac_objext \
18757 conftest$ac_exeext conftest.$ac_ext
18758 LIBS=$ac_check_lib_save_LIBS
18760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
18761 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
18762 if test "x$ac_cv_lib_kstat_kstat_open" = x""yes; then :
18763 cat >>confdefs.h <<_ACEOF
18764 #define HAVE_LIBKSTAT 1
18767 LIBS="-lkstat $LIBS"
18771 test $ac_cv_lib_kstat_kstat_open = yes && gl_func_getloadavg_done=yes
18773 # AIX has libperfstat which does not require root
18774 if test $gl_func_getloadavg_done = no; then
18775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perfstat_cpu_total in -lperfstat" >&5
18776 $as_echo_n "checking for perfstat_cpu_total in -lperfstat... " >&6; }
18777 if test "${ac_cv_lib_perfstat_perfstat_cpu_total+set}" = set; then :
18778 $as_echo_n "(cached) " >&6
18780 ac_check_lib_save_LIBS=$LIBS
18781 LIBS="-lperfstat $LIBS"
18782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18783 /* end confdefs.h. */
18785 /* Override any GCC internal prototype to avoid an error.
18786 Use char because int might match the return type of a GCC
18787 builtin and then its argument prototype would still apply. */
18791 char perfstat_cpu_total ();
18795 return perfstat_cpu_total ();
18800 if ac_fn_c_try_link "$LINENO"; then :
18801 ac_cv_lib_perfstat_perfstat_cpu_total=yes
18803 ac_cv_lib_perfstat_perfstat_cpu_total=no
18805 rm -f core conftest.err conftest.$ac_objext \
18806 conftest$ac_exeext conftest.$ac_ext
18807 LIBS=$ac_check_lib_save_LIBS
18809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_perfstat_perfstat_cpu_total" >&5
18810 $as_echo "$ac_cv_lib_perfstat_perfstat_cpu_total" >&6; }
18811 if test "x$ac_cv_lib_perfstat_perfstat_cpu_total" = x""yes; then :
18812 cat >>confdefs.h <<_ACEOF
18813 #define HAVE_LIBPERFSTAT 1
18816 LIBS="-lperfstat $LIBS"
18820 test $ac_cv_lib_perfstat_perfstat_cpu_total = yes && gl_func_getloadavg_done=yes
18823 if test $gl_func_getloadavg_done = no; then
18824 ac_fn_c_check_header_mongrel "$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
18825 if test "x$ac_cv_header_sys_dg_sys_info_h" = x""yes; then :
18826 gl_func_getloadavg_done=yes
18828 $as_echo "#define DGUX 1" >>confdefs.h
18830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5
18831 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
18832 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then :
18833 $as_echo_n "(cached) " >&6
18835 ac_check_lib_save_LIBS=$LIBS
18837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18838 /* end confdefs.h. */
18840 /* Override any GCC internal prototype to avoid an error.
18841 Use char because int might match the return type of a GCC
18842 builtin and then its argument prototype would still apply. */
18846 char dg_sys_info ();
18850 return dg_sys_info ();
18855 if ac_fn_c_try_link "$LINENO"; then :
18856 ac_cv_lib_dgc_dg_sys_info=yes
18858 ac_cv_lib_dgc_dg_sys_info=no
18860 rm -f core conftest.err conftest.$ac_objext \
18861 conftest$ac_exeext conftest.$ac_ext
18862 LIBS=$ac_check_lib_save_LIBS
18864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5
18865 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
18866 if test "x$ac_cv_lib_dgc_dg_sys_info" = x""yes; then :
18867 cat >>confdefs.h <<_ACEOF
18868 #define HAVE_LIBDGC 1
18883 if test "x$gl_save_LIBS" = x; then
18884 GETLOADAVG_LIBS=$LIBS
18886 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$gl_save_LIBS!!"`
18891 # Test whether the system declares getloadavg. Solaris has the function
18892 # but declares it in <sys/loadavg.h>, not <stdlib.h>.
18893 for ac_header in sys/loadavg.h
18895 ac_fn_c_check_header_mongrel "$LINENO" "sys/loadavg.h" "ac_cv_header_sys_loadavg_h" "$ac_includes_default"
18896 if test "x$ac_cv_header_sys_loadavg_h" = x""yes; then :
18897 cat >>confdefs.h <<_ACEOF
18898 #define HAVE_SYS_LOADAVG_H 1
18905 if test $ac_cv_header_sys_loadavg_h = yes; then
18906 HAVE_SYS_LOADAVG_H=1
18908 HAVE_SYS_LOADAVG_H=0
18910 ac_fn_c_check_decl "$LINENO" "getloadavg" "ac_cv_have_decl_getloadavg" "#if HAVE_SYS_LOADAVG_H
18911 # include <sys/loadavg.h>
18913 #include <stdlib.h>
18915 if test "x$ac_cv_have_decl_getloadavg" = x""yes; then :
18918 HAVE_DECL_GETLOADAVG=0
18922 if test $HAVE_GETLOADAVG = 0; then
18931 gl_LIBOBJS="$gl_LIBOBJS getloadavg.$ac_objext"
18934 # Figure out what our getloadavg.c needs.
18936 # On HPUX9, an unprivileged user can get load averages this way.
18937 if test $gl_func_getloadavg_done = no; then
18938 for ac_func in pstat_getdynamic
18940 ac_fn_c_check_func "$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic"
18941 if test "x$ac_cv_func_pstat_getdynamic" = x""yes; then :
18942 cat >>confdefs.h <<_ACEOF
18943 #define HAVE_PSTAT_GETDYNAMIC 1
18945 gl_func_getloadavg_done=yes
18951 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
18952 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
18953 # Irix 4.0.5F has the header but not the library.
18954 if test $gl_func_getloadavg_done = no && test "$ac_cv_lib_elf_elf_begin" = yes \
18955 && test "$ac_cv_lib_kvm_kvm_open" = yes; then
18956 gl_func_getloadavg_done=yes
18958 $as_echo "#define SVR4 1" >>confdefs.h
18962 if test $gl_func_getloadavg_done = no; then
18963 ac_fn_c_check_header_mongrel "$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default"
18964 if test "x$ac_cv_header_inq_stats_cpustats_h" = x""yes; then :
18965 gl_func_getloadavg_done=yes
18967 $as_echo "#define UMAX 1" >>confdefs.h
18970 $as_echo "#define UMAX4_3 1" >>confdefs.h
18977 if test $gl_func_getloadavg_done = no; then
18978 ac_fn_c_check_header_mongrel "$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default"
18979 if test "x$ac_cv_header_sys_cpustats_h" = x""yes; then :
18980 gl_func_getloadavg_done=yes; $as_echo "#define UMAX 1" >>confdefs.h
18987 if test $gl_func_getloadavg_done = no; then
18988 for ac_header in mach/mach.h
18990 ac_fn_c_check_header_mongrel "$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
18991 if test "x$ac_cv_header_mach_mach_h" = x""yes; then :
18992 cat >>confdefs.h <<_ACEOF
18993 #define HAVE_MACH_MACH_H 1
19002 for ac_header in nlist.h
19004 ac_fn_c_check_header_mongrel "$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
19005 if test "x$ac_cv_header_nlist_h" = x""yes; then :
19006 cat >>confdefs.h <<_ACEOF
19007 #define HAVE_NLIST_H 1
19009 ac_fn_c_check_member "$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h>
19011 if test "x$ac_cv_member_struct_nlist_n_un_n_name" = x""yes; then :
19013 cat >>confdefs.h <<_ACEOF
19014 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
19020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19021 /* end confdefs.h. */
19027 #ifdef HAVE_STRUCT_NLIST_N_UN_N_NAME
19028 x.n_un.n_name = "";
19036 if ac_fn_c_try_link "$LINENO"; then :
19038 $as_echo "#define N_NAME_POINTER 1" >>confdefs.h
19041 rm -f core conftest.err conftest.$ac_objext \
19042 conftest$ac_exeext conftest.$ac_ext
19054 GNULIB_GETLOADAVG=1
19065 if test $REPLACE_GETOPT = 1; then
19074 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
19084 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
19098 if test -n "$gl_replace_getopt"; then :
19105 if test $REPLACE_GETOPT = 1; then
19109 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
19113 GNULIB_UNISTD_H_GETOPT=1
19116 if test $REPLACE_GETOPT = 1; then
19125 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
19135 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
19146 if test $ac_cv_func_lstat = yes; then
19148 if test $gl_cv_func_lstat_dereferences_slashed_symlink = no; then
19155 if test $REPLACE_LSTAT = 1; then
19164 gl_LIBOBJS="$gl_LIBOBJS lstat.$ac_objext"
19188 if test $APPLE_UNIVERSAL_BUILD = 1; then
19189 # A universal build on Apple MacOS X platforms.
19190 # The test result would be 'yes' in 32-bit mode and 'no' in 64-bit mode.
19191 # But we need a configuration result that is valid in both modes.
19192 gl_cv_func_working_mktime=no
19194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
19195 $as_echo_n "checking for working mktime... " >&6; }
19196 if test "${gl_cv_func_working_mktime+set}" = set; then :
19197 $as_echo_n "(cached) " >&6
19199 if test "$cross_compiling" = yes; then :
19200 gl_cv_func_working_mktime=no
19202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19203 /* end confdefs.h. */
19204 /* Test program from Paul Eggert and Tony Leneis. */
19205 #include <limits.h>
19206 #include <stdlib.h>
19209 #ifdef HAVE_UNISTD_H
19210 # include <unistd.h>
19214 # define alarm(X) /* empty */
19217 /* Work around redefinition to rpl_putenv by other config tests. */
19220 static time_t time_t_max;
19221 static time_t time_t_min;
19223 /* Values we'll use to set the TZ environment variable. */
19224 static char *tz_strings[] = {
19225 (char *) 0, "TZ=GMT0", "TZ=JST-9",
19226 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
19228 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
19230 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
19231 Based on a problem report from Andreas Jaeger. */
19233 spring_forward_gap ()
19235 /* glibc (up to about 1998-10-07) failed this test. */
19238 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
19239 instead of "TZ=America/Vancouver" in order to detect the bug even
19240 on systems that don't support the Olson extension, or don't have the
19241 full zoneinfo tables installed. */
19242 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
19251 return mktime (&tm) != (time_t) -1;
19255 mktime_test1 (time_t now)
19258 return ! (lt = localtime (&now)) || mktime (lt) == now;
19262 mktime_test (time_t now)
19264 return (mktime_test1 (now)
19265 && mktime_test1 ((time_t) (time_t_max - now))
19266 && mktime_test1 ((time_t) (time_t_min + now)));
19272 /* Based on code from Ariel Faigon. */
19282 return tm.tm_mon == 2 && tm.tm_mday == 31;
19286 bigtime_test (int j)
19290 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
19291 now = mktime (&tm);
19292 if (now != (time_t) -1)
19294 struct tm *lt = localtime (&now);
19296 && lt->tm_year == tm.tm_year
19297 && lt->tm_mon == tm.tm_mon
19298 && lt->tm_mday == tm.tm_mday
19299 && lt->tm_hour == tm.tm_hour
19300 && lt->tm_min == tm.tm_min
19301 && lt->tm_sec == tm.tm_sec
19302 && lt->tm_yday == tm.tm_yday
19303 && lt->tm_wday == tm.tm_wday
19304 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
19305 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
19314 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
19315 ignoring leap seconds. */
19316 unsigned long int answer = 2527315200UL;
19320 tm.tm_year = 2050 - 1900;
19323 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
19326 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
19327 instead of "TZ=America/Vancouver" in order to detect the bug even
19328 on systems that don't support the Olson extension, or don't have the
19329 full zoneinfo tables installed. */
19330 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
19334 /* Check that the result is either a failure, or close enough
19335 to the correct answer that we can assume the discrepancy is
19336 due to leap seconds. */
19337 return (t == (time_t) -1
19338 || (0 < t && answer - 120 <= t && t <= answer + 120));
19347 int time_t_signed_magnitude = (time_t) ~ (time_t) 0 < (time_t) -1;
19348 int time_t_signed = ! ((time_t) 0 < (time_t) -1);
19350 /* This test makes some buggy mktime implementations loop.
19351 Give up after 60 seconds; a mktime slower than that
19352 isn't worth using anyway. */
19355 time_t_max = (! time_t_signed
19357 : ((((time_t) 1 << (sizeof (time_t) * CHAR_BIT - 2)) - 1)
19359 time_t_min = (! time_t_signed
19361 : time_t_signed_magnitude
19365 delta = time_t_max / 997; /* a suitable prime number */
19366 for (i = 0; i < N_STRINGS; i++)
19369 putenv (tz_strings[i]);
19371 for (t = 0; t <= time_t_max - delta; t += delta)
19372 if (! mktime_test (t))
19374 if (! (mktime_test ((time_t) 1)
19375 && mktime_test ((time_t) (60 * 60))
19376 && mktime_test ((time_t) (60 * 60 * 24))))
19379 for (j = 1; ; j <<= 1)
19380 if (! bigtime_test (j))
19382 else if (INT_MAX / 2 < j)
19384 if (! bigtime_test (INT_MAX))
19387 if (! irix_6_4_bug ())
19389 if (! spring_forward_gap ())
19391 if (! year_2050_test ())
19396 if ac_fn_c_try_run "$LINENO"; then :
19397 gl_cv_func_working_mktime=yes
19399 gl_cv_func_working_mktime=no
19401 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19402 conftest.$ac_objext conftest.beam conftest.$ac_ext
19407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_mktime" >&5
19408 $as_echo "$gl_cv_func_working_mktime" >&6; }
19410 if test $gl_cv_func_working_mktime = no; then
19416 if test $REPLACE_MKTIME = 1; then
19425 gl_LIBOBJS="$gl_LIBOBJS mktime.$ac_objext"
19446 if test $ac_cv_func_readlink = no; then
19449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink signature is correct" >&5
19450 $as_echo_n "checking whether readlink signature is correct... " >&6; }
19451 if test "${gl_cv_decl_readlink_works+set}" = set; then :
19452 $as_echo_n "(cached) " >&6
19454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19455 /* end confdefs.h. */
19456 #include <unistd.h>
19457 /* Cause compilation failure if original declaration has wrong type. */
19458 ssize_t readlink (const char *, char *, size_t);
19467 if ac_fn_c_try_compile "$LINENO"; then :
19468 gl_cv_decl_readlink_works=yes
19470 gl_cv_decl_readlink_works=no
19472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_readlink_works" >&5
19475 $as_echo "$gl_cv_decl_readlink_works" >&6; }
19476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink handles trailing slash correctly" >&5
19477 $as_echo_n "checking whether readlink handles trailing slash correctly... " >&6; }
19478 if test "${gl_cv_func_readlink_works+set}" = set; then :
19479 $as_echo_n "(cached) " >&6
19481 # We have readlink, so assume ln -s works.
19482 ln -s conftest.no-such conftest.link
19483 ln -s conftest.link conftest.lnk2
19484 if test "$cross_compiling" = yes; then :
19485 gl_cv_func_readlink_works="guessing no"
19487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19488 /* end confdefs.h. */
19489 #include <unistd.h>
19495 return readlink ("conftest.lnk2/", buf, sizeof buf) != -1;
19500 if ac_fn_c_try_run "$LINENO"; then :
19501 gl_cv_func_readlink_works=yes
19503 gl_cv_func_readlink_works=no
19505 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19506 conftest.$ac_objext conftest.beam conftest.$ac_ext
19509 rm -f conftest.link conftest.lnk2
19511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_readlink_works" >&5
19512 $as_echo "$gl_cv_func_readlink_works" >&6; }
19513 if test "$gl_cv_func_readlink_works" != yes; then
19515 $as_echo "#define READLINK_TRAILING_SLASH_BUG 1" >>confdefs.h
19518 elif test "$gl_cv_decl_readlink_works" != yes; then
19523 if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then
19532 gl_LIBOBJS="$gl_LIBOBJS readlink.$ac_objext"
19549 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
19550 /* <sys/types.h> is not needed according to POSIX, but the
19551 <sys/socket.h> in i386-unknown-freebsd4.10 and
19552 powerpc-apple-darwin5.5 required it. */
19553 #include <sys/types.h>
19554 #if HAVE_SYS_SOCKET_H
19555 # include <sys/socket.h>
19556 #elif HAVE_WS2TCPIP_H
19557 # include <ws2tcpip.h>
19561 if test "x$ac_cv_type_socklen_t" = x""yes; then :
19564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
19565 $as_echo_n "checking for socklen_t equivalent... " >&6; }
19566 if test "${gl_cv_socklen_t_equiv+set}" = set; then :
19567 $as_echo_n "(cached) " >&6
19569 # Systems have either "struct sockaddr *" or
19570 # "void *" as the second argument to getpeername
19571 gl_cv_socklen_t_equiv=
19572 for arg2 in "struct sockaddr" void; do
19573 for t in int size_t "unsigned int" "long int" "unsigned long int"; do
19574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19575 /* end confdefs.h. */
19576 #include <sys/types.h>
19577 #include <sys/socket.h>
19579 int getpeername (int, $arg2 *, $t *);
19584 getpeername (0, 0, &len);
19589 if ac_fn_c_try_compile "$LINENO"; then :
19590 gl_cv_socklen_t_equiv="$t"
19592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19593 test "$gl_cv_socklen_t_equiv" != "" && break
19595 test "$gl_cv_socklen_t_equiv" != "" && break
19600 if test "$gl_cv_socklen_t_equiv" = ""; then
19601 as_fn_error "Cannot find a type to use in place of socklen_t" "$LINENO" 5
19603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socklen_t_equiv" >&5
19604 $as_echo "$gl_cv_socklen_t_equiv" >&6; }
19606 cat >>confdefs.h <<_ACEOF
19607 #define socklen_t $gl_cv_socklen_t_equiv
19613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
19614 $as_echo_n "checking for ssize_t... " >&6; }
19615 if test "${gt_cv_ssize_t+set}" = set; then :
19616 $as_echo_n "(cached) " >&6
19618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19619 /* end confdefs.h. */
19620 #include <sys/types.h>
19624 int x = sizeof (ssize_t *) + sizeof (ssize_t);
19630 if ac_fn_c_try_compile "$LINENO"; then :
19635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
19638 $as_echo "$gt_cv_ssize_t" >&6; }
19639 if test $gt_cv_ssize_t = no; then
19641 $as_echo "#define ssize_t int" >>confdefs.h
19647 NEXT_STDARG_H='<stdarg.h>'
19648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
19649 $as_echo_n "checking for va_copy... " >&6; }
19650 if test "${gl_cv_func_va_copy+set}" = set; then :
19651 $as_echo_n "(cached) " >&6
19654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19655 /* end confdefs.h. */
19656 #include <stdarg.h>
19662 void (*func) (va_list, va_list) = va_copy;
19669 if ac_fn_c_try_compile "$LINENO"; then :
19670 gl_cv_func_va_copy=yes
19672 gl_cv_func_va_copy=no
19674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_va_copy" >&5
19678 $as_echo "$gl_cv_func_va_copy" >&6; }
19679 if test $gl_cv_func_va_copy = no; then
19680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19681 /* end confdefs.h. */
19682 #if defined _AIX && !defined __GNUC__
19687 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19688 $EGREP "vaccine" >/dev/null 2>&1; then :
19695 if test $gl_aixcc = yes; then
19705 if test $gl_cv_have_include_next = yes; then
19706 gl_cv_next_stdarg_h='<'stdarg.h'>'
19708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdarg.h>" >&5
19709 $as_echo_n "checking absolute name of <stdarg.h>... " >&6; }
19710 if test "${gl_cv_next_stdarg_h+set}" = set; then :
19711 $as_echo_n "(cached) " >&6
19714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19715 /* end confdefs.h. */
19716 #include <stdarg.h>
19720 aix*) gl_absname_cpp="$ac_cpp -C" ;;
19721 *) gl_absname_cpp="$ac_cpp" ;;
19723 gl_cv_next_stdarg_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19724 sed -n '\#/stdarg.h#{
19725 s#.*"\(.*/stdarg.h\)".*#\1#
19733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdarg_h" >&5
19734 $as_echo "$gl_cv_next_stdarg_h" >&6; }
19736 NEXT_STDARG_H=$gl_cv_next_stdarg_h
19738 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
19739 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19740 gl_next_as_first_directive='<'stdarg.h'>'
19742 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19743 gl_next_as_first_directive=$gl_cv_next_stdarg_h
19745 NEXT_AS_FIRST_DIRECTIVE_STDARG_H=$gl_next_as_first_directive
19750 if test "$gl_cv_next_stdarg_h" = '""'; then
19751 gl_cv_next_stdarg_h='"///usr/include/stdarg.h"'
19752 NEXT_STDARG_H="$gl_cv_next_stdarg_h"
19756 saved_as_echo_n="$as_echo_n"
19758 if test "${gl_cv_func___va_copy+set}" = set; then :
19759 $as_echo_n "(cached) " >&6
19762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19763 /* end confdefs.h. */
19764 #include <stdarg.h>
19777 if ac_fn_c_try_compile "$LINENO"; then :
19778 gl_cv_func___va_copy=yes
19780 gl_cv_func___va_copy=no
19782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19785 as_echo_n="$saved_as_echo_n"
19787 if test $gl_cv_func___va_copy = yes; then
19789 $as_echo "#define va_copy __va_copy" >>confdefs.h
19794 $as_echo "#define va_copy gl_va_copy" >>confdefs.h
19800 if test -n "$STDARG_H"; then
19801 GL_GENERATE_STDARG_H_TRUE=
19802 GL_GENERATE_STDARG_H_FALSE='#'
19804 GL_GENERATE_STDARG_H_TRUE='#'
19805 GL_GENERATE_STDARG_H_FALSE=
19813 # Define two additional variables used in the Makefile substitution.
19815 if test "$ac_cv_header_stdbool_h" = yes; then
19818 STDBOOL_H='stdbool.h'
19821 if test -n "$STDBOOL_H"; then
19822 GL_GENERATE_STDBOOL_H_TRUE=
19823 GL_GENERATE_STDBOOL_H_FALSE='#'
19825 GL_GENERATE_STDBOOL_H_TRUE='#'
19826 GL_GENERATE_STDBOOL_H_FALSE=
19830 if test "$ac_cv_type__Bool" = yes; then
19841 if test $gt_cv_c_wchar_t = no; then
19845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
19846 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
19847 if test "${gl_cv_decl_null_works+set}" = set; then :
19848 $as_echo_n "(cached) " >&6
19850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19851 /* end confdefs.h. */
19852 #include <stddef.h>
19853 int test[2 * (sizeof NULL == sizeof (void *)) -1];
19863 if ac_fn_c_try_compile "$LINENO"; then :
19864 gl_cv_decl_null_works=yes
19866 gl_cv_decl_null_works=no
19868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
19871 $as_echo "$gl_cv_decl_null_works" >&6; }
19872 if test $gl_cv_decl_null_works = no; then
19877 if test -n "$STDDEF_H"; then
19878 GL_GENERATE_STDDEF_H_TRUE=
19879 GL_GENERATE_STDDEF_H_FALSE='#'
19881 GL_GENERATE_STDDEF_H_TRUE='#'
19882 GL_GENERATE_STDDEF_H_FALSE=
19885 if test -n "$STDDEF_H"; then
19894 if test $gl_cv_have_include_next = yes; then
19895 gl_cv_next_stddef_h='<'stddef.h'>'
19897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
19898 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
19899 if test "${gl_cv_next_stddef_h+set}" = set; then :
19900 $as_echo_n "(cached) " >&6
19903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19904 /* end confdefs.h. */
19905 #include <stddef.h>
19909 aix*) gl_absname_cpp="$ac_cpp -C" ;;
19910 *) gl_absname_cpp="$ac_cpp" ;;
19912 gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19913 sed -n '\#/stddef.h#{
19914 s#.*"\(.*/stddef.h\)".*#\1#
19922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
19923 $as_echo "$gl_cv_next_stddef_h" >&6; }
19925 NEXT_STDDEF_H=$gl_cv_next_stddef_h
19927 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
19928 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19929 gl_next_as_first_directive='<'stddef.h'>'
19931 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19932 gl_next_as_first_directive=$gl_cv_next_stddef_h
19934 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
19953 if test $gl_cv_have_include_next = yes; then
19954 gl_cv_next_stdio_h='<'stdio.h'>'
19956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
19957 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
19958 if test "${gl_cv_next_stdio_h+set}" = set; then :
19959 $as_echo_n "(cached) " >&6
19962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19963 /* end confdefs.h. */
19968 aix*) gl_absname_cpp="$ac_cpp -C" ;;
19969 *) gl_absname_cpp="$ac_cpp" ;;
19971 gl_cv_next_stdio_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19972 sed -n '\#/stdio.h#{
19973 s#.*"\(.*/stdio.h\)".*#\1#
19981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
19982 $as_echo "$gl_cv_next_stdio_h" >&6; }
19984 NEXT_STDIO_H=$gl_cv_next_stdio_h
19986 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
19987 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19988 gl_next_as_first_directive='<'stdio.h'>'
19990 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19991 gl_next_as_first_directive=$gl_cv_next_stdio_h
19993 NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive
20034 if test $gl_cv_have_include_next = yes; then
20035 gl_cv_next_stdlib_h='<'stdlib.h'>'
20037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
20038 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
20039 if test "${gl_cv_next_stdlib_h+set}" = set; then :
20040 $as_echo_n "(cached) " >&6
20043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20044 /* end confdefs.h. */
20045 #include <stdlib.h>
20049 aix*) gl_absname_cpp="$ac_cpp -C" ;;
20050 *) gl_absname_cpp="$ac_cpp" ;;
20052 gl_cv_next_stdlib_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20053 sed -n '\#/stdlib.h#{
20054 s#.*"\(.*/stdlib.h\)".*#\1#
20062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
20063 $as_echo "$gl_cv_next_stdlib_h" >&6; }
20065 NEXT_STDLIB_H=$gl_cv_next_stdlib_h
20067 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
20068 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20069 gl_next_as_first_directive='<'stdlib.h'>'
20071 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20072 gl_next_as_first_directive=$gl_cv_next_stdlib_h
20074 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
20084 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
20092 $as_echo "#define my_strftime nstrftime" >>confdefs.h
20100 if test "$ac_cv_have_decl_strtoumax" != yes; then
20101 HAVE_DECL_STRTOUMAX=0
20103 for ac_func in strtoumax
20105 ac_fn_c_check_func "$LINENO" "strtoumax" "ac_cv_func_strtoumax"
20106 if test "x$ac_cv_func_strtoumax" = x""yes; then :
20107 cat >>confdefs.h <<_ACEOF
20108 #define HAVE_STRTOUMAX 1
20116 if test "$ac_cv_have_decl_strtoumax" != yes && test $ac_cv_func_strtoumax = no; then
20125 gl_LIBOBJS="$gl_LIBOBJS strtoumax.$ac_objext"
20128 ac_fn_c_check_decl "$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
20129 if test "x$ac_cv_have_decl_strtoull" = x""yes; then :
20135 cat >>confdefs.h <<_ACEOF
20136 #define HAVE_DECL_STRTOULL $ac_have_decl
20155 if test $ac_cv_func_symlink = no; then
20158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symlink handles trailing slash correctly" >&5
20159 $as_echo_n "checking whether symlink handles trailing slash correctly... " >&6; }
20160 if test "${gl_cv_func_symlink_works+set}" = set; then :
20161 $as_echo_n "(cached) " >&6
20163 if test "$cross_compiling" = yes; then :
20164 gl_cv_func_symlink_works="guessing no"
20166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20167 /* end confdefs.h. */
20168 #include <unistd.h>
20174 if (!symlink ("a", "conftest.link/"))
20176 if (symlink ("conftest.f", "conftest.lnk2"))
20178 else if (!symlink ("a", "conftest.lnk2/"))
20186 if ac_fn_c_try_run "$LINENO"; then :
20187 gl_cv_func_symlink_works=yes
20189 gl_cv_func_symlink_works=no
20191 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20192 conftest.$ac_objext conftest.beam conftest.$ac_ext
20195 rm -f conftest.f conftest.link conftest.lnk2
20197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_symlink_works" >&5
20198 $as_echo "$gl_cv_func_symlink_works" >&6; }
20199 if test "$gl_cv_func_symlink_works" != yes; then
20204 if test $HAVE_SYMLINK = 0 || test $REPLACE_SYMLINK = 1; then
20213 gl_LIBOBJS="$gl_LIBOBJS symlink.$ac_objext"
20243 if test $gl_cv_have_include_next = yes; then
20244 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
20246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
20247 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
20248 if test "${gl_cv_next_sys_stat_h+set}" = set; then :
20249 $as_echo_n "(cached) " >&6
20252 if test $ac_cv_header_sys_stat_h = yes; then
20255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20256 /* end confdefs.h. */
20257 #include <sys/stat.h>
20261 aix*) gl_absname_cpp="$ac_cpp -C" ;;
20262 *) gl_absname_cpp="$ac_cpp" ;;
20264 gl_cv_next_sys_stat_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20265 sed -n '\#/sys/stat.h#{
20266 s#.*"\(.*/sys/stat.h\)".*#\1#
20272 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
20277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
20278 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
20280 NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
20282 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
20283 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20284 gl_next_as_first_directive='<'sys/stat.h'>'
20286 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20287 gl_next_as_first_directive=$gl_cv_next_sys_stat_h
20289 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
20295 ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
20296 #include <sys/stat.h>
20298 if test "x$ac_cv_type_nlink_t" = x""yes; then :
20302 $as_echo "#define nlink_t int" >>confdefs.h
20320 if test $ac_cv_have_decl_localtime_r = no; then
20321 HAVE_DECL_LOCALTIME_R=0
20325 if test $ac_cv_func_localtime_r = yes; then
20327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime_r is compatible with its POSIX signature" >&5
20328 $as_echo_n "checking whether localtime_r is compatible with its POSIX signature... " >&6; }
20329 if test "${gl_cv_time_r_posix+set}" = set; then :
20330 $as_echo_n "(cached) " >&6
20332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20333 /* end confdefs.h. */
20338 /* We don't need to append 'restrict's to the argument types,
20339 even though the POSIX signature has the 'restrict's,
20340 since C99 says they can't affect type compatibility. */
20341 struct tm * (*ptr) (time_t const *, struct tm *) = localtime_r;
20343 /* Check the return type is a pointer.
20344 On HP-UX 10 it is 'int'. */
20345 *localtime_r (0, 0);
20351 if ac_fn_c_try_compile "$LINENO"; then :
20352 gl_cv_time_r_posix=yes
20354 gl_cv_time_r_posix=no
20356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_time_r_posix" >&5
20360 $as_echo "$gl_cv_time_r_posix" >&6; }
20361 if test $gl_cv_time_r_posix = yes; then
20362 REPLACE_LOCALTIME_R=0
20364 REPLACE_LOCALTIME_R=1
20370 if test $HAVE_LOCALTIME_R = 0 || test $REPLACE_LOCALTIME_R = 1; then
20379 gl_LIBOBJS="$gl_LIBOBJS time_r.$ac_objext"
20410 if test $gl_cv_have_include_next = yes; then
20411 gl_cv_next_unistd_h='<'unistd.h'>'
20413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
20414 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
20415 if test "${gl_cv_next_unistd_h+set}" = set; then :
20416 $as_echo_n "(cached) " >&6
20419 if test $ac_cv_header_unistd_h = yes; then
20422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20423 /* end confdefs.h. */
20424 #include <unistd.h>
20428 aix*) gl_absname_cpp="$ac_cpp -C" ;;
20429 *) gl_absname_cpp="$ac_cpp" ;;
20431 gl_cv_next_unistd_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20432 sed -n '\#/unistd.h#{
20433 s#.*"\(.*/unistd.h\)".*#\1#
20439 gl_cv_next_unistd_h='<'unistd.h'>'
20444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
20445 $as_echo "$gl_cv_next_unistd_h" >&6; }
20447 NEXT_UNISTD_H=$gl_cv_next_unistd_h
20449 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
20450 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20451 gl_next_as_first_directive='<'unistd.h'>'
20453 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20454 gl_next_as_first_directive=$gl_cv_next_unistd_h
20456 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
20461 if test $ac_cv_header_unistd_h = yes; then
20470 gl_gnulib_enabled_dosname=false
20471 gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36=false
20472 gl_gnulib_enabled_stat=false
20473 gl_gnulib_enabled_strtoull=false
20474 gl_gnulib_enabled_verify=false
20475 func_gl_gnulib_m4code_dosname ()
20477 if ! $gl_gnulib_enabled_dosname; then
20478 gl_gnulib_enabled_dosname=true
20481 func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36 ()
20483 if ! $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
20486 gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36=true
20489 func_gl_gnulib_m4code_stat ()
20491 if ! $gl_gnulib_enabled_stat; then
20495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on directories" >&5
20496 $as_echo_n "checking whether stat handles trailing slashes on directories... " >&6; }
20497 if test "${gl_cv_func_stat_dir_slash+set}" = set; then :
20498 $as_echo_n "(cached) " >&6
20500 if test "$cross_compiling" = yes; then :
20502 mingw*) gl_cv_func_stat_dir_slash="guessing no";;
20503 *) gl_cv_func_stat_dir_slash="guessing yes";;
20506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20507 /* end confdefs.h. */
20508 #include <sys/stat.h>
20513 struct stat st; return stat (".", &st) != stat ("./", &st);
20518 if ac_fn_c_try_run "$LINENO"; then :
20519 gl_cv_func_stat_dir_slash=yes
20521 gl_cv_func_stat_dir_slash=no
20523 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20524 conftest.$ac_objext conftest.beam conftest.$ac_ext
20528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_dir_slash" >&5
20529 $as_echo "$gl_cv_func_stat_dir_slash" >&6; }
20530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
20531 $as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
20532 if test "${gl_cv_func_stat_file_slash+set}" = set; then :
20533 $as_echo_n "(cached) " >&6
20536 # Assume that if we have lstat, we can also check symlinks.
20537 if test $ac_cv_func_lstat = yes; then
20538 ln -s conftest.tmp conftest.lnk
20540 if test "$cross_compiling" = yes; then :
20541 gl_cv_func_stat_file_slash="guessing no"
20543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20544 /* end confdefs.h. */
20545 #include <sys/stat.h>
20552 if (!stat ("conftest.tmp/", &st))
20555 if (!stat ("conftest.lnk/", &st))
20564 if ac_fn_c_try_run "$LINENO"; then :
20565 gl_cv_func_stat_file_slash=yes
20567 gl_cv_func_stat_file_slash=no
20569 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20570 conftest.$ac_objext conftest.beam conftest.$ac_ext
20573 rm -f conftest.tmp conftest.lnk
20575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
20576 $as_echo "$gl_cv_func_stat_file_slash" >&6; }
20577 case $gl_cv_func_stat_dir_slash in
20578 *no) REPLACE_STAT=1
20580 $as_echo "#define REPLACE_FUNC_STAT_DIR 1" >>confdefs.h
20583 case $gl_cv_func_stat_file_slash in
20584 *no) REPLACE_STAT=1
20586 $as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
20590 if test $REPLACE_STAT = 1; then
20599 gl_LIBOBJS="$gl_LIBOBJS stat.$ac_objext"
20617 gl_gnulib_enabled_stat=true
20618 if $condition; then
20619 func_gl_gnulib_m4code_dosname
20621 if $condition; then
20622 func_gl_gnulib_m4code_verify
20626 func_gl_gnulib_m4code_strtoull ()
20628 if ! $gl_gnulib_enabled_strtoull; then
20632 if test "$ac_cv_type_unsigned_long_long_int" = yes; then
20633 for ac_func in strtoull
20635 ac_fn_c_check_func "$LINENO" "strtoull" "ac_cv_func_strtoull"
20636 if test "x$ac_cv_func_strtoull" = x""yes; then :
20637 cat >>confdefs.h <<_ACEOF
20638 #define HAVE_STRTOULL 1
20644 if test $ac_cv_func_strtoull = no; then
20649 if test $HAVE_STRTOULL = 0; then
20658 gl_LIBOBJS="$gl_LIBOBJS strtoull.$ac_objext"
20675 gl_gnulib_enabled_strtoull=true
20678 func_gl_gnulib_m4code_verify ()
20680 if ! $gl_gnulib_enabled_verify; then
20681 gl_gnulib_enabled_verify=true
20684 if test $REPLACE_GETOPT = 1; then
20685 func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36
20687 if test $REPLACE_LSTAT = 1; then
20688 func_gl_gnulib_m4code_dosname
20690 if test $REPLACE_LSTAT = 1; then
20691 func_gl_gnulib_m4code_stat
20693 if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then
20694 func_gl_gnulib_m4code_stat
20696 if test "$ac_cv_have_decl_strtoumax" != yes && test $ac_cv_func_strtoumax = no; then
20697 func_gl_gnulib_m4code_verify
20699 if test "$ac_cv_have_decl_strtoumax" != yes && test $ac_cv_func_strtoumax = no && test $ac_cv_type_unsigned_long_long_int = yes; then
20700 func_gl_gnulib_m4code_strtoull
20703 if $gl_gnulib_enabled_dosname; then
20704 gl_GNULIB_ENABLED_dosname_TRUE=
20705 gl_GNULIB_ENABLED_dosname_FALSE='#'
20707 gl_GNULIB_ENABLED_dosname_TRUE='#'
20708 gl_GNULIB_ENABLED_dosname_FALSE=
20711 if $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
20712 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE=
20713 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE='#'
20715 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE='#'
20716 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE=
20719 if $gl_gnulib_enabled_stat; then
20720 gl_GNULIB_ENABLED_stat_TRUE=
20721 gl_GNULIB_ENABLED_stat_FALSE='#'
20723 gl_GNULIB_ENABLED_stat_TRUE='#'
20724 gl_GNULIB_ENABLED_stat_FALSE=
20727 if $gl_gnulib_enabled_strtoull; then
20728 gl_GNULIB_ENABLED_strtoull_TRUE=
20729 gl_GNULIB_ENABLED_strtoull_FALSE='#'
20731 gl_GNULIB_ENABLED_strtoull_TRUE='#'
20732 gl_GNULIB_ENABLED_strtoull_FALSE=
20735 if $gl_gnulib_enabled_verify; then
20736 gl_GNULIB_ENABLED_verify_TRUE=
20737 gl_GNULIB_ENABLED_verify_FALSE='#'
20739 gl_GNULIB_ENABLED_verify_TRUE='#'
20740 gl_GNULIB_ENABLED_verify_FALSE=
20743 # End of code from modules
20764 gl_source_base='tests'
20765 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
20767 gl_module_indicator_condition=$gltests_WITNESS
20778 LIBGNU_LIBDEPS="$gl_libdeps"
20780 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
20785 for ac_func in grantpt
20787 ac_fn_c_check_func "$LINENO" "grantpt" "ac_cv_func_grantpt"
20788 if test "x$ac_cv_func_grantpt" = x""yes; then :
20789 cat >>confdefs.h <<_ACEOF
20790 #define HAVE_GRANTPT 1
20797 # PTY-related GNU extensions.
20798 for ac_func in getpt
20800 ac_fn_c_check_func "$LINENO" "getpt" "ac_cv_func_getpt"
20801 if test "x$ac_cv_func_getpt" = x""yes; then :
20802 cat >>confdefs.h <<_ACEOF
20803 #define HAVE_GETPT 1
20810 # Check this now, so that we will NOT find the above functions in ncurses.
20811 # That is because we have not set up to link ncurses in lib-src.
20812 # It's better to believe a function is not available
20813 # than to expect to find it in ncurses.
20814 # Also we need tputs and friends to be able to build at all.
20815 have_tputs_et_al=true
20816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tputs" >&5
20817 $as_echo_n "checking for library containing tputs... " >&6; }
20818 if test "${ac_cv_search_tputs+set}" = set; then :
20819 $as_echo_n "(cached) " >&6
20821 ac_func_search_save_LIBS=$LIBS
20822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20823 /* end confdefs.h. */
20825 /* Override any GCC internal prototype to avoid an error.
20826 Use char because int might match the return type of a GCC
20827 builtin and then its argument prototype would still apply. */
20840 for ac_lib in '' ncurses terminfo termcap; do
20841 if test -z "$ac_lib"; then
20842 ac_res="none required"
20845 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20847 if ac_fn_c_try_link "$LINENO"; then :
20848 ac_cv_search_tputs=$ac_res
20850 rm -f core conftest.err conftest.$ac_objext \
20852 if test "${ac_cv_search_tputs+set}" = set; then :
20856 if test "${ac_cv_search_tputs+set}" = set; then :
20859 ac_cv_search_tputs=no
20861 rm conftest.$ac_ext
20862 LIBS=$ac_func_search_save_LIBS
20864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tputs" >&5
20865 $as_echo "$ac_cv_search_tputs" >&6; }
20866 ac_res=$ac_cv_search_tputs
20867 if test "$ac_res" != no; then :
20868 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20871 have_tputs_et_al=false
20874 if test "$have_tputs_et_al" != true; then
20875 as_fn_error "I couldn't find termcap functions (tputs and friends).
20876 Maybe some development libraries/packages are missing? Try installing
20877 libncurses-dev(el), libterminfo-dev(el) or similar." "$LINENO" 5
20879 # Must define this when any termcap library is found.
20881 $as_echo "#define HAVE_LIBNCURSES 1" >>confdefs.h
20883 ## FIXME This was the cpp logic, but I am not sure it is right.
20884 ## The above test has not necessarily found libncurses.
20885 HAVE_LIBNCURSES=yes
20887 ## Use terminfo instead of termcap?
20888 ## Note only system files NOT using terminfo are:
20889 ## freebsd < 40000, ms-w32, msdos, netbsd < 599002500, and
20890 ## darwin|gnu without ncurses.
20894 ## cygwin: Fewer environment variables to go wrong, more terminal types.
20895 ## hpux10-20: Use the system provided termcap(3) library.
20896 ## openbsd: David Mazieres <dm@reeducation-labor.lcs.mit.edu> says this
20897 ## is necessary. Otherwise Emacs dumps core when run -nw.
20898 aix4-2|cygwin|hpux*|irix6-5|openbsd|sol2*|unixware) TERMINFO=yes ;;
20900 ## darwin: Prevents crashes when running Emacs in Terminal.app under 10.2.
20901 ## The ncurses library has been moved out of the System framework in
20902 ## Mac OS X 10.2. So if configure detects it, set the command-line
20903 ## option to use it.
20905 ## (HAVE_LIBNCURSES was not always true, but is since 2010-03-18.)
20906 if test "x$HAVE_LIBNCURSES" = "xyes"; then
20908 LIBS_TERMCAP="-lncurses"
20913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FreeBSD is new enough to use terminfo" >&5
20914 $as_echo_n "checking whether FreeBSD is new enough to use terminfo... " >&6; }
20915 if test "${emacs_cv_freebsd_terminfo+set}" = set; then :
20916 $as_echo_n "(cached) " >&6
20918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20919 /* end confdefs.h. */
20920 #include <osreldate.h>
20924 #if __FreeBSD_version < 400000
20932 if ac_fn_c_try_link "$LINENO"; then :
20933 emacs_cv_freebsd_terminfo=yes
20935 emacs_cv_freebsd_terminfo=no
20937 rm -f core conftest.err conftest.$ac_objext \
20938 conftest$ac_exeext conftest.$ac_ext
20942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_freebsd_terminfo" >&5
20943 $as_echo "$emacs_cv_freebsd_terminfo" >&6; }
20945 if test $emacs_cv_freebsd_terminfo = yes; then
20947 LIBS_TERMCAP="-lncurses"
20949 LIBS_TERMCAP="-ltermcap"
20954 if test $ac_cv_search_tputs = -lterminfo; then
20956 LIBS_TERMCAP="-lterminfo"
20958 LIBS_TERMCAP="-ltermcap"
20965 ## hpux: Make sure we get select from libc rather than from libcurses
20966 ## because libcurses on HPUX 10.10 has a broken version of select.
20967 ## We used to use -lc -lcurses, but this may be cleaner.
20968 hpux*) LIBS_TERMCAP="-ltermcap" ;;
20970 openbsd) LIBS_TERMCAP="-lncurses" ;;
20972 ## Must use system termcap, if we use any termcap. It does special things.
20973 sol2*) test "$TERMINFO" != yes && LIBS_TERMCAP="-ltermcap" ;;
20976 TERMCAP_OBJ=tparam.o
20977 if test $TERMINFO = yes; then
20979 $as_echo "#define TERMINFO 1" >>confdefs.h
20982 ## Default used to be -ltermcap. Add a case above if need something else.
20983 test "x$LIBS_TERMCAP" = "x" && LIBS_TERMCAP="-lcurses"
20985 TERMCAP_OBJ=terminfo.o
20991 # Do we have res_init, for detecting changes in /etc/resolv.conf?
20993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20994 /* end confdefs.h. */
20995 #include <netinet/in.h>
20996 #include <arpa/nameser.h>
20997 #include <resolv.h>
21006 if ac_fn_c_try_link "$LINENO"; then :
21011 rm -f core conftest.err conftest.$ac_objext \
21012 conftest$ac_exeext conftest.$ac_ext
21013 if test "$have_res_init" = no; then
21015 LIBS="$LIBS -lresolv"
21016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5
21017 $as_echo_n "checking for res_init with -lresolv... " >&6; }
21018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21019 /* end confdefs.h. */
21020 #include <netinet/in.h>
21021 #include <arpa/nameser.h>
21022 #include <resolv.h>
21031 if ac_fn_c_try_link "$LINENO"; then :
21036 rm -f core conftest.err conftest.$ac_objext \
21037 conftest$ac_exeext conftest.$ac_ext
21038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5
21039 $as_echo "$have_res_init" >&6; }
21040 if test "$have_res_init" = yes ; then
21046 if test "$have_res_init" = yes; then
21048 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
21052 # Do we need the Hesiod library to provide the support routines?
21054 if test "$with_hesiod" != no ; then
21055 # Don't set $LIBS here -- see comments above. FIXME which comments?
21056 ac_fn_c_check_func "$LINENO" "res_send" "ac_cv_func_res_send"
21057 if test "x$ac_cv_func_res_send" = x""yes; then :
21060 ac_fn_c_check_func "$LINENO" "__res_send" "ac_cv_func___res_send"
21061 if test "x$ac_cv_func___res_send" = x""yes; then :
21064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5
21065 $as_echo_n "checking for res_send in -lresolv... " >&6; }
21066 if test "${ac_cv_lib_resolv_res_send+set}" = set; then :
21067 $as_echo_n "(cached) " >&6
21069 ac_check_lib_save_LIBS=$LIBS
21070 LIBS="-lresolv $LIBS"
21071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21072 /* end confdefs.h. */
21074 /* Override any GCC internal prototype to avoid an error.
21075 Use char because int might match the return type of a GCC
21076 builtin and then its argument prototype would still apply. */
21084 return res_send ();
21089 if ac_fn_c_try_link "$LINENO"; then :
21090 ac_cv_lib_resolv_res_send=yes
21092 ac_cv_lib_resolv_res_send=no
21094 rm -f core conftest.err conftest.$ac_objext \
21095 conftest$ac_exeext conftest.$ac_ext
21096 LIBS=$ac_check_lib_save_LIBS
21098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5
21099 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
21100 if test "x$ac_cv_lib_resolv_res_send" = x""yes; then :
21103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5
21104 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
21105 if test "${ac_cv_lib_resolv___res_send+set}" = set; then :
21106 $as_echo_n "(cached) " >&6
21108 ac_check_lib_save_LIBS=$LIBS
21109 LIBS="-lresolv $LIBS"
21110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21111 /* end confdefs.h. */
21113 /* Override any GCC internal prototype to avoid an error.
21114 Use char because int might match the return type of a GCC
21115 builtin and then its argument prototype would still apply. */
21119 char __res_send ();
21123 return __res_send ();
21128 if ac_fn_c_try_link "$LINENO"; then :
21129 ac_cv_lib_resolv___res_send=yes
21131 ac_cv_lib_resolv___res_send=no
21133 rm -f core conftest.err conftest.$ac_objext \
21134 conftest$ac_exeext conftest.$ac_ext
21135 LIBS=$ac_check_lib_save_LIBS
21137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5
21138 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
21139 if test "x$ac_cv_lib_resolv___res_send" = x""yes; then :
21149 if test "$resolv" = yes ; then
21154 ac_fn_c_check_func "$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost"
21155 if test "x$ac_cv_func_hes_getmailhost" = x""yes; then :
21158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5
21159 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
21160 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then :
21161 $as_echo_n "(cached) " >&6
21163 ac_check_lib_save_LIBS=$LIBS
21164 LIBS="-lhesiod $RESOLVLIB $LIBS"
21165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21166 /* end confdefs.h. */
21168 /* Override any GCC internal prototype to avoid an error.
21169 Use char because int might match the return type of a GCC
21170 builtin and then its argument prototype would still apply. */
21174 char hes_getmailhost ();
21178 return hes_getmailhost ();
21183 if ac_fn_c_try_link "$LINENO"; then :
21184 ac_cv_lib_hesiod_hes_getmailhost=yes
21186 ac_cv_lib_hesiod_hes_getmailhost=no
21188 rm -f core conftest.err conftest.$ac_objext \
21189 conftest$ac_exeext conftest.$ac_ext
21190 LIBS=$ac_check_lib_save_LIBS
21192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
21193 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
21194 if test "x$ac_cv_lib_hesiod_hes_getmailhost" = x""yes; then :
21203 if test x"$hesiod" = xyes; then
21205 $as_echo "#define HAVE_LIBHESIOD 1" >>confdefs.h
21212 # Do we need libresolv (due to res_init or Hesiod)?
21213 if test "$resolv" = yes ; then
21215 $as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
21223 # These tell us which Kerberos-related libraries to use.
21230 if test "${with_kerberos}" != no; then
21231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
21232 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
21233 if test "${ac_cv_lib_com_err_com_err+set}" = set; then :
21234 $as_echo_n "(cached) " >&6
21236 ac_check_lib_save_LIBS=$LIBS
21237 LIBS="-lcom_err $LIBS"
21238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21239 /* end confdefs.h. */
21241 /* Override any GCC internal prototype to avoid an error.
21242 Use char because int might match the return type of a GCC
21243 builtin and then its argument prototype would still apply. */
21256 if ac_fn_c_try_link "$LINENO"; then :
21257 ac_cv_lib_com_err_com_err=yes
21259 ac_cv_lib_com_err_com_err=no
21261 rm -f core conftest.err conftest.$ac_objext \
21262 conftest$ac_exeext conftest.$ac_ext
21263 LIBS=$ac_check_lib_save_LIBS
21265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
21266 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
21267 if test "x$ac_cv_lib_com_err_com_err" = x""yes; then :
21273 if test $have_com_err = yes; then
21274 COM_ERRLIB=-lcom_err
21275 LIBS="$COM_ERRLIB $LIBS"
21277 $as_echo "#define HAVE_LIBCOM_ERR 1" >>confdefs.h
21280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5
21281 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
21282 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then :
21283 $as_echo_n "(cached) " >&6
21285 ac_check_lib_save_LIBS=$LIBS
21286 LIBS="-lcrypto $LIBS"
21287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21288 /* end confdefs.h. */
21290 /* Override any GCC internal prototype to avoid an error.
21291 Use char because int might match the return type of a GCC
21292 builtin and then its argument prototype would still apply. */
21296 char mit_des_cbc_encrypt ();
21300 return mit_des_cbc_encrypt ();
21305 if ac_fn_c_try_link "$LINENO"; then :
21306 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
21308 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
21310 rm -f core conftest.err conftest.$ac_objext \
21311 conftest$ac_exeext conftest.$ac_ext
21312 LIBS=$ac_check_lib_save_LIBS
21314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
21315 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
21316 if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = x""yes; then :
21322 if test $have_crypto = yes; then
21324 LIBS="$CRYPTOLIB $LIBS"
21326 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
21329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
21330 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
21331 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then :
21332 $as_echo_n "(cached) " >&6
21334 ac_check_lib_save_LIBS=$LIBS
21335 LIBS="-lk5crypto $LIBS"
21336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21337 /* end confdefs.h. */
21339 /* Override any GCC internal prototype to avoid an error.
21340 Use char because int might match the return type of a GCC
21341 builtin and then its argument prototype would still apply. */
21345 char mit_des_cbc_encrypt ();
21349 return mit_des_cbc_encrypt ();
21354 if ac_fn_c_try_link "$LINENO"; then :
21355 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
21357 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
21359 rm -f core conftest.err conftest.$ac_objext \
21360 conftest$ac_exeext conftest.$ac_ext
21361 LIBS=$ac_check_lib_save_LIBS
21363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
21364 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
21365 if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = x""yes; then :
21371 if test $have_k5crypto = yes; then
21372 CRYPTOLIB=-lk5crypto
21373 LIBS="$CRYPTOLIB $LIBS"
21375 $as_echo "#define HAVE_LIBK5CRYPTO 1" >>confdefs.h
21378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
21379 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
21380 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then :
21381 $as_echo_n "(cached) " >&6
21383 ac_check_lib_save_LIBS=$LIBS
21384 LIBS="-lkrb5 $LIBS"
21385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21386 /* end confdefs.h. */
21388 /* Override any GCC internal prototype to avoid an error.
21389 Use char because int might match the return type of a GCC
21390 builtin and then its argument prototype would still apply. */
21394 char krb5_init_context ();
21398 return krb5_init_context ();
21403 if ac_fn_c_try_link "$LINENO"; then :
21404 ac_cv_lib_krb5_krb5_init_context=yes
21406 ac_cv_lib_krb5_krb5_init_context=no
21408 rm -f core conftest.err conftest.$ac_objext \
21409 conftest$ac_exeext conftest.$ac_ext
21410 LIBS=$ac_check_lib_save_LIBS
21412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
21413 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
21414 if test "x$ac_cv_lib_krb5_krb5_init_context" = x""yes; then :
21420 if test $have_krb5=yes; then
21422 LIBS="$KRB5LIB $LIBS"
21424 $as_echo "#define HAVE_LIBKRB5 1" >>confdefs.h
21427 if test "${with_kerberos5}" = no; then
21428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
21429 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
21430 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then :
21431 $as_echo_n "(cached) " >&6
21433 ac_check_lib_save_LIBS=$LIBS
21434 LIBS="-ldes425 $LIBS"
21435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21436 /* end confdefs.h. */
21438 /* Override any GCC internal prototype to avoid an error.
21439 Use char because int might match the return type of a GCC
21440 builtin and then its argument prototype would still apply. */
21444 char des_cbc_encrypt ();
21448 return des_cbc_encrypt ();
21453 if ac_fn_c_try_link "$LINENO"; then :
21454 ac_cv_lib_des425_des_cbc_encrypt=yes
21456 ac_cv_lib_des425_des_cbc_encrypt=no
21458 rm -f core conftest.err conftest.$ac_objext \
21459 conftest$ac_exeext conftest.$ac_ext
21460 LIBS=$ac_check_lib_save_LIBS
21462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
21463 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
21464 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = x""yes; then :
21470 if test $have_des425 = yes; then
21472 LIBS="$DESLIB $LIBS"
21474 $as_echo "#define HAVE_LIBDES425 1" >>confdefs.h
21477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
21478 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
21479 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then :
21480 $as_echo_n "(cached) " >&6
21482 ac_check_lib_save_LIBS=$LIBS
21484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21485 /* end confdefs.h. */
21487 /* Override any GCC internal prototype to avoid an error.
21488 Use char because int might match the return type of a GCC
21489 builtin and then its argument prototype would still apply. */
21493 char des_cbc_encrypt ();
21497 return des_cbc_encrypt ();
21502 if ac_fn_c_try_link "$LINENO"; then :
21503 ac_cv_lib_des_des_cbc_encrypt=yes
21505 ac_cv_lib_des_des_cbc_encrypt=no
21507 rm -f core conftest.err conftest.$ac_objext \
21508 conftest$ac_exeext conftest.$ac_ext
21509 LIBS=$ac_check_lib_save_LIBS
21511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
21512 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
21513 if test "x$ac_cv_lib_des_des_cbc_encrypt" = x""yes; then :
21519 if test $have_des = yes; then
21521 LIBS="$DESLIB $LIBS"
21523 $as_echo "#define HAVE_LIBDES 1" >>confdefs.h
21527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5
21528 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
21529 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then :
21530 $as_echo_n "(cached) " >&6
21532 ac_check_lib_save_LIBS=$LIBS
21533 LIBS="-lkrb4 $LIBS"
21534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21535 /* end confdefs.h. */
21537 /* Override any GCC internal prototype to avoid an error.
21538 Use char because int might match the return type of a GCC
21539 builtin and then its argument prototype would still apply. */
21543 char krb_get_cred ();
21547 return krb_get_cred ();
21552 if ac_fn_c_try_link "$LINENO"; then :
21553 ac_cv_lib_krb4_krb_get_cred=yes
21555 ac_cv_lib_krb4_krb_get_cred=no
21557 rm -f core conftest.err conftest.$ac_objext \
21558 conftest$ac_exeext conftest.$ac_ext
21559 LIBS=$ac_check_lib_save_LIBS
21561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5
21562 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
21563 if test "x$ac_cv_lib_krb4_krb_get_cred" = x""yes; then :
21569 if test $have_krb4 = yes; then
21571 LIBS="$KRB4LIB $LIBS"
21573 $as_echo "#define HAVE_LIBKRB4 1" >>confdefs.h
21576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5
21577 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
21578 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then :
21579 $as_echo_n "(cached) " >&6
21581 ac_check_lib_save_LIBS=$LIBS
21583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21584 /* end confdefs.h. */
21586 /* Override any GCC internal prototype to avoid an error.
21587 Use char because int might match the return type of a GCC
21588 builtin and then its argument prototype would still apply. */
21592 char krb_get_cred ();
21596 return krb_get_cred ();
21601 if ac_fn_c_try_link "$LINENO"; then :
21602 ac_cv_lib_krb_krb_get_cred=yes
21604 ac_cv_lib_krb_krb_get_cred=no
21606 rm -f core conftest.err conftest.$ac_objext \
21607 conftest$ac_exeext conftest.$ac_ext
21608 LIBS=$ac_check_lib_save_LIBS
21610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5
21611 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
21612 if test "x$ac_cv_lib_krb_krb_get_cred" = x""yes; then :
21618 if test $have_krb = yes; then
21620 LIBS="$KRB4LIB $LIBS"
21622 $as_echo "#define HAVE_LIBKRB 1" >>confdefs.h
21628 if test "${with_kerberos5}" != no; then
21629 for ac_header in krb5.h
21631 ac_fn_c_check_header_mongrel "$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
21632 if test "x$ac_cv_header_krb5_h" = x""yes; then :
21633 cat >>confdefs.h <<_ACEOF
21634 #define HAVE_KRB5_H 1
21636 ac_fn_c_check_member "$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h>
21638 if test "x$ac_cv_member_krb5_error_text" = x""yes; then :
21640 cat >>confdefs.h <<_ACEOF
21641 #define HAVE_KRB5_ERROR_TEXT 1
21646 ac_fn_c_check_member "$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h>
21648 if test "x$ac_cv_member_krb5_error_e_text" = x""yes; then :
21650 cat >>confdefs.h <<_ACEOF
21651 #define HAVE_KRB5_ERROR_E_TEXT 1
21662 for ac_header in des.h
21664 ac_fn_c_check_header_mongrel "$LINENO" "des.h" "ac_cv_header_des_h" "$ac_includes_default"
21665 if test "x$ac_cv_header_des_h" = x""yes; then :
21666 cat >>confdefs.h <<_ACEOF
21667 #define HAVE_DES_H 1
21671 for ac_header in kerberosIV/des.h
21673 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/des.h" "ac_cv_header_kerberosIV_des_h" "$ac_includes_default"
21674 if test "x$ac_cv_header_kerberosIV_des_h" = x""yes; then :
21675 cat >>confdefs.h <<_ACEOF
21676 #define HAVE_KERBEROSIV_DES_H 1
21680 for ac_header in kerberos/des.h
21682 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/des.h" "ac_cv_header_kerberos_des_h" "$ac_includes_default"
21683 if test "x$ac_cv_header_kerberos_des_h" = x""yes; then :
21684 cat >>confdefs.h <<_ACEOF
21685 #define HAVE_KERBEROS_DES_H 1
21700 for ac_header in krb.h
21702 ac_fn_c_check_header_mongrel "$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
21703 if test "x$ac_cv_header_krb_h" = x""yes; then :
21704 cat >>confdefs.h <<_ACEOF
21705 #define HAVE_KRB_H 1
21709 for ac_header in kerberosIV/krb.h
21711 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default"
21712 if test "x$ac_cv_header_kerberosIV_krb_h" = x""yes; then :
21713 cat >>confdefs.h <<_ACEOF
21714 #define HAVE_KERBEROSIV_KRB_H 1
21718 for ac_header in kerberos/krb.h
21720 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default"
21721 if test "x$ac_cv_header_kerberos_krb_h" = x""yes; then :
21722 cat >>confdefs.h <<_ACEOF
21723 #define HAVE_KERBEROS_KRB_H 1
21739 for ac_header in com_err.h
21741 ac_fn_c_check_header_mongrel "$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default"
21742 if test "x$ac_cv_header_com_err_h" = x""yes; then :
21743 cat >>confdefs.h <<_ACEOF
21744 #define HAVE_COM_ERR_H 1
21759 # Solaris requires -lintl if you want strerror (which calls dgettext)
21760 # to return localized messages.
21761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in -lintl" >&5
21762 $as_echo_n "checking for dgettext in -lintl... " >&6; }
21763 if test "${ac_cv_lib_intl_dgettext+set}" = set; then :
21764 $as_echo_n "(cached) " >&6
21766 ac_check_lib_save_LIBS=$LIBS
21767 LIBS="-lintl $LIBS"
21768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21769 /* end confdefs.h. */
21771 /* Override any GCC internal prototype to avoid an error.
21772 Use char because int might match the return type of a GCC
21773 builtin and then its argument prototype would still apply. */
21781 return dgettext ();
21786 if ac_fn_c_try_link "$LINENO"; then :
21787 ac_cv_lib_intl_dgettext=yes
21789 ac_cv_lib_intl_dgettext=no
21791 rm -f core conftest.err conftest.$ac_objext \
21792 conftest$ac_exeext conftest.$ac_ext
21793 LIBS=$ac_check_lib_save_LIBS
21795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dgettext" >&5
21796 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
21797 if test "x$ac_cv_lib_intl_dgettext" = x""yes; then :
21798 cat >>confdefs.h <<_ACEOF
21799 #define HAVE_LIBINTL 1
21802 LIBS="-lintl $LIBS"
21807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5
21808 $as_echo_n "checking whether localtime caches TZ... " >&6; }
21809 if test "${emacs_cv_localtime_cache+set}" = set; then :
21810 $as_echo_n "(cached) " >&6
21812 if test x$ac_cv_func_tzset = xyes; then
21813 if test "$cross_compiling" = yes; then :
21814 # If we have tzset, assume the worst when cross-compiling.
21815 emacs_cv_localtime_cache=yes
21817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21818 /* end confdefs.h. */
21820 char TZ_GMT0[] = "TZ=GMT0";
21821 char TZ_PST8[] = "TZ=PST8";
21824 time_t now = time ((time_t *) 0);
21825 int hour_GMT0, hour_unset;
21826 if (putenv (TZ_GMT0) != 0)
21828 hour_GMT0 = localtime (&now)->tm_hour;
21830 hour_unset = localtime (&now)->tm_hour;
21831 if (putenv (TZ_PST8) != 0)
21833 if (localtime (&now)->tm_hour == hour_GMT0)
21836 if (localtime (&now)->tm_hour != hour_unset)
21841 if ac_fn_c_try_run "$LINENO"; then :
21842 emacs_cv_localtime_cache=no
21844 emacs_cv_localtime_cache=yes
21846 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21847 conftest.$ac_objext conftest.beam conftest.$ac_ext
21851 # If we lack tzset, report that localtime does not cache TZ,
21852 # since we can't invalidate the cache if we don't have tzset.
21853 emacs_cv_localtime_cache=no
21856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5
21857 $as_echo "$emacs_cv_localtime_cache" >&6; }
21858 if test $emacs_cv_localtime_cache = yes; then
21860 $as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h
21864 if test "x$HAVE_TIMEVAL" = xyes; then
21865 for ac_func in gettimeofday
21867 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
21868 if test "x$ac_cv_func_gettimeofday" = x""yes; then :
21869 cat >>confdefs.h <<_ACEOF
21870 #define HAVE_GETTIMEOFDAY 1
21876 if test $ac_cv_func_gettimeofday = yes; then
21877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday can accept two arguments" >&5
21878 $as_echo_n "checking whether gettimeofday can accept two arguments... " >&6; }
21879 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then :
21880 $as_echo_n "(cached) " >&6
21882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21883 /* end confdefs.h. */
21885 #ifdef TIME_WITH_SYS_TIME
21886 #include <sys/time.h>
21889 #ifdef HAVE_SYS_TIME_H
21890 #include <sys/time.h>
21898 struct timeval time;
21899 gettimeofday (&time, 0);
21904 if ac_fn_c_try_compile "$LINENO"; then :
21905 emacs_cv_gettimeofday_two_arguments=yes
21907 emacs_cv_gettimeofday_two_arguments=no
21909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_gettimeofday_two_arguments" >&5
21912 $as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; }
21913 if test $emacs_cv_gettimeofday_two_arguments = no; then
21915 $as_echo "#define GETTIMEOFDAY_ONE_ARGUMENT 1" >>confdefs.h
21922 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
21923 if test "x$ac_cv_func_socket" = x""yes; then :
21929 if test $ok_so_far = yes; then
21930 ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
21931 if test "x$ac_cv_header_netinet_in_h" = x""yes; then :
21939 if test $ok_so_far = yes; then
21940 ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
21941 if test "x$ac_cv_header_arpa_inet_h" = x""yes; then :
21949 if test $ok_so_far = yes; then
21951 $as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h
21955 if test -f /usr/lpp/X11/bin/smt.exp; then
21957 $as_echo "#define HAVE_AIX_SMT_EXP 1" >>confdefs.h
21961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports dynamic ptys" >&5
21962 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
21963 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
21964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21965 $as_echo "yes" >&6; }
21967 $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
21970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21971 $as_echo "no" >&6; }
21974 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
21975 if test "x$ac_cv_type_pid_t" = x""yes; then :
21979 cat >>confdefs.h <<_ACEOF
21985 for ac_header in vfork.h
21987 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
21988 if test "x$ac_cv_header_vfork_h" = x""yes; then :
21989 cat >>confdefs.h <<_ACEOF
21990 #define HAVE_VFORK_H 1
21997 for ac_func in fork vfork
21999 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22000 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22001 eval as_val=\$$as_ac_var
22002 if test "x$as_val" = x""yes; then :
22003 cat >>confdefs.h <<_ACEOF
22004 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22010 if test "x$ac_cv_func_fork" = xyes; then
22011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
22012 $as_echo_n "checking for working fork... " >&6; }
22013 if test "${ac_cv_func_fork_works+set}" = set; then :
22014 $as_echo_n "(cached) " >&6
22016 if test "$cross_compiling" = yes; then :
22017 ac_cv_func_fork_works=cross
22019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22020 /* end confdefs.h. */
22021 $ac_includes_default
22026 /* By Ruediger Kuhlmann. */
22027 return fork () < 0;
22033 if ac_fn_c_try_run "$LINENO"; then :
22034 ac_cv_func_fork_works=yes
22036 ac_cv_func_fork_works=no
22038 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22039 conftest.$ac_objext conftest.beam conftest.$ac_ext
22043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
22044 $as_echo "$ac_cv_func_fork_works" >&6; }
22047 ac_cv_func_fork_works=$ac_cv_func_fork
22049 if test "x$ac_cv_func_fork_works" = xcross; then
22051 *-*-amigaos* | *-*-msdosdjgpp*)
22052 # Override, as these systems have only a dummy fork() stub
22053 ac_cv_func_fork_works=no
22056 ac_cv_func_fork_works=yes
22059 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
22060 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
22062 ac_cv_func_vfork_works=$ac_cv_func_vfork
22063 if test "x$ac_cv_func_vfork" = xyes; then
22064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
22065 $as_echo_n "checking for working vfork... " >&6; }
22066 if test "${ac_cv_func_vfork_works+set}" = set; then :
22067 $as_echo_n "(cached) " >&6
22069 if test "$cross_compiling" = yes; then :
22070 ac_cv_func_vfork_works=cross
22072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22073 /* end confdefs.h. */
22074 /* Thanks to Paul Eggert for this test. */
22075 $ac_includes_default
22076 #include <sys/wait.h>
22077 #ifdef HAVE_VFORK_H
22078 # include <vfork.h>
22080 /* On some sparc systems, changes by the child to local and incoming
22081 argument registers are propagated back to the parent. The compiler
22082 is told about this with #include <vfork.h>, but some compilers
22083 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
22084 static variable whose address is put into a register that is
22085 clobbered by the vfork. */
22088 sparc_address_test (int arg)
22090 sparc_address_test (arg) int arg;
22093 static pid_t child;
22111 pid_t parent = getpid ();
22114 sparc_address_test (0);
22119 /* Here is another test for sparc vfork register problems. This
22120 test uses lots of local variables, at least as many local
22121 variables as main has allocated so far including compiler
22122 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
22123 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
22124 reuse the register of parent for one of the local variables,
22125 since it will think that parent can't possibly be used any more
22126 in this routine. Assigning to the local variable will thus
22127 munge parent in the parent process. */
22129 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
22130 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
22131 /* Convince the compiler that p..p7 are live; otherwise, it might
22132 use the same hardware register for all 8 local variables. */
22133 if (p != p1 || p != p2 || p != p3 || p != p4
22134 || p != p5 || p != p6 || p != p7)
22137 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
22138 from child file descriptors. If the child closes a descriptor
22139 before it execs or exits, this munges the parent's descriptor
22140 as well. Test for this by closing stdout in the child. */
22141 _exit(close(fileno(stdout)) != 0);
22146 while (wait(&status) != child)
22149 /* Was there some problem with vforking? */
22152 /* Did the child fail? (This shouldn't happen.) */
22155 /* Did the vfork/compiler bug occur? */
22156 || parent != getpid()
22158 /* Did the file descriptor bug occur? */
22159 || fstat(fileno(stdout), &st) != 0
22164 if ac_fn_c_try_run "$LINENO"; then :
22165 ac_cv_func_vfork_works=yes
22167 ac_cv_func_vfork_works=no
22169 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22170 conftest.$ac_objext conftest.beam conftest.$ac_ext
22174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
22175 $as_echo "$ac_cv_func_vfork_works" >&6; }
22178 if test "x$ac_cv_func_fork_works" = xcross; then
22179 ac_cv_func_vfork_works=$ac_cv_func_vfork
22180 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
22181 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
22184 if test "x$ac_cv_func_vfork_works" = xyes; then
22186 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
22190 $as_echo "#define vfork fork" >>confdefs.h
22193 if test "x$ac_cv_func_fork_works" = xyes; then
22195 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
22200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
22201 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
22202 if test "${emacs_cv_langinfo_codeset+set}" = set; then :
22203 $as_echo_n "(cached) " >&6
22205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22206 /* end confdefs.h. */
22207 #include <langinfo.h>
22211 char* cs = nl_langinfo(CODESET);
22216 if ac_fn_c_try_link "$LINENO"; then :
22217 emacs_cv_langinfo_codeset=yes
22219 emacs_cv_langinfo_codeset=no
22221 rm -f core conftest.err conftest.$ac_objext \
22222 conftest$ac_exeext conftest.$ac_ext
22225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5
22226 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
22227 if test $emacs_cv_langinfo_codeset = yes; then
22229 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
22233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
22234 $as_echo_n "checking for mbstate_t... " >&6; }
22235 if test "${ac_cv_type_mbstate_t+set}" = set; then :
22236 $as_echo_n "(cached) " >&6
22238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22239 /* end confdefs.h. */
22240 $ac_includes_default
22241 # include <wchar.h>
22245 mbstate_t x; return sizeof x;
22250 if ac_fn_c_try_compile "$LINENO"; then :
22251 ac_cv_type_mbstate_t=yes
22253 ac_cv_type_mbstate_t=no
22255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
22258 $as_echo "$ac_cv_type_mbstate_t" >&6; }
22259 if test $ac_cv_type_mbstate_t = yes; then
22261 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
22265 $as_echo "#define mbstate_t int" >>confdefs.h
22269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5
22270 $as_echo_n "checking for C restricted array declarations... " >&6; }
22271 if test "${emacs_cv_c_restrict_arr+set}" = set; then :
22272 $as_echo_n "(cached) " >&6
22274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22275 /* end confdefs.h. */
22276 void fred (int x[__restrict]);
22285 if ac_fn_c_try_compile "$LINENO"; then :
22286 emacs_cv_c_restrict_arr=yes
22288 emacs_cv_c_restrict_arr=no
22290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5
22293 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
22294 if test "$emacs_cv_c_restrict_arr" = yes; then
22296 $as_echo "#define __restrict_arr __restrict" >>confdefs.h
22302 # Set up the CFLAGS for real compilation, so we can substitute it.
22303 CFLAGS="$REAL_CFLAGS"
22304 CPPFLAGS="$REAL_CPPFLAGS"
22306 ## Hack to detect a buggy GCC version.
22307 if test "x$GCC" = xyes \
22308 && test x"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
22309 && test x"`echo $CFLAGS | grep '\-O[23]'`" != x \
22310 && test x"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x; then
22311 as_fn_error "GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." "$LINENO" 5
22314 version=$PACKAGE_VERSION
22316 ### Specify what sort of things we'll be editing into Makefile and config.h.
22317 ### Use configuration here uncanonicalized to avoid exceeding size limits.
22341 ## FIXME? Nothing uses @LD_SWITCH_X_SITE@.
22342 ## src/Makefile.in did add LD_SWITCH_X_SITE (as a cpp define) to the
22343 ## end of LIBX_BASE, but nothing ever set it.
22348 ## Used in lwlib/Makefile.in.
22350 if test -n "${machfile}"; then
22351 M_FILE="\$(srcdir)/${machfile}"
22355 S_FILE="\$(srcdir)/${opsysfile}"
22366 cat >>confdefs.h <<_ACEOF
22367 #define EMACS_CONFIGURATION "${canonical}"
22371 cat >>confdefs.h <<_ACEOF
22372 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
22375 if test -n "$machfile"; then
22377 cat >>confdefs.h <<_ACEOF
22378 #define config_machfile "${machfile}"
22383 cat >>confdefs.h <<_ACEOF
22384 #define config_opsysfile "${opsysfile}"
22391 if test "${HAVE_X_WINDOWS}" = "yes" ; then
22393 $as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h
22396 XOBJ="xterm.o xfns.o xselect.o xrdb.o fontset.o xsmfns.o fringe.o image.o xsettings.o xgselect.o"
22398 if test "$HAVE_XFT" = "yes"; then
22399 FONT_OBJ="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
22400 elif test "$HAVE_FREETYPE" = "yes"; then
22401 FONT_OBJ="$FONT_OBJ ftfont.o ftxfont.o"
22411 if test "${USE_X_TOOLKIT}" != "none" ; then
22412 WIDGET_OBJ=widget.o
22414 $as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h
22416 if test "${USE_X_TOOLKIT}" = "LUCID"; then
22418 $as_echo "#define USE_LUCID 1" >>confdefs.h
22420 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
22422 $as_echo "#define USE_MOTIF 1" >>confdefs.h
22427 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
22428 MOTIF_LIBW="$MOTIF_LIBW -lXpm"
22432 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
22433 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
22434 MOTIF_LIBW="MOTIF_LIBW -lXimp"
22438 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
22439 MOTIF_LIBW="$MOTIF_LIBW -li18n"
22442 MOTIF_LIBW="$MOTIF_LIBW $LIBXP"
22448 case "$USE_X_TOOLKIT" in
22449 MOTIF) TOOLKIT_LIBW="$MOTIF_LIBW" ;;
22450 LUCID) TOOLKIT_LIBW="$LUCID_LIBW" ;;
22451 none) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW="$GTK_LIBS -lXcomposite" ;;
22455 if test "$USE_X_TOOLKIT" = "none"; then
22456 LIBXT_OTHER="\$(LIBXSM)"
22457 OLDXMENU_TARGET="really-oldXMenu"
22459 LIBXT_OTHER="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext"
22460 OLDXMENU_TARGET="really-lwlib"
22464 ## The X Menu stuff is present in the X10 distribution, but missing
22465 ## from X11. If we have X10, just use the installed library;
22466 ## otherwise, use our own copy.
22467 if test "${HAVE_X11}" = "yes" ; then
22469 $as_echo "#define HAVE_X11 1" >>confdefs.h
22472 if test "$USE_X_TOOLKIT" = "none"; then
22473 OLDXMENU="\${oldXMenudir}/libXMenu11.a"
22475 OLDXMENU="\${lwlibdir}/liblw.a"
22477 LIBXMENU="\$(OLDXMENU)"
22478 LIBX_OTHER="\$(LIBXT) \$(LIBX_EXTRA)"
22479 OLDXMENU_DEPS="\${OLDXMENU} ../src/\${OLDXMENU}"
22481 ## For a syntactically valid Makefile; not actually used for anything.
22482 ## See comments in src/Makefile.in.
22484 ## FIXME This case (!HAVE_X11 && HAVE_X_WINDOWS) is no longer possible(?).
22485 if test "${HAVE_X_WINDOWS}" = "yes"; then
22494 if test "$HAVE_GTK" = "yes" || test "$HAVE_MENUS" != "yes"; then
22507 if test "${HAVE_MENUS}" = "yes" ; then
22509 $as_echo "#define HAVE_MENUS 1" >>confdefs.h
22513 if test "${GNU_MALLOC}" = "yes" ; then
22515 $as_echo "#define GNU_MALLOC 1" >>confdefs.h
22520 if test "${REL_ALLOC}" = "yes" ; then
22522 $as_echo "#define REL_ALLOC 1" >>confdefs.h
22525 test "$system_malloc" != "yes" && RALLOC_OBJ=ralloc.o
22529 if test "$opsys" = "cygwin"; then
22530 CYGWIN_OBJ="sheap.o"
22531 ## Cygwin differs because of its unexec().
22533 POST_ALLOC_OBJ=lastfile.o
22536 PRE_ALLOC_OBJ=lastfile.o
22545 aix4-2) LD_SWITCH_SYSTEM_TEMACS="-Wl,-bnodelcsect" ;;
22548 ## The -headerpad option tells ld (see man page) to leave room at the
22549 ## end of the header for adding load commands. Needed for dumping.
22550 ## 0x690 is the total size of 30 segment load commands (at 56
22551 ## each); under Cocoa 31 commands are required.
22552 if test "$HAVE_NS" = "yes"; then
22553 libs_nsgui="-framework AppKit"
22554 headerpad_extra=6C8
22557 headerpad_extra=690
22559 LD_SWITCH_SYSTEM_TEMACS="-prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra"
22561 ## This is here because src/Makefile.in did some extra fiddling around
22562 ## with LD_SWITCH_SYSTEM. The cpp logic was:
22563 ## #ifndef LD_SWITCH_SYSTEM
22564 ## #if !defined (__GNUC__) && ((defined (BSD_SYSTEM) && !defined (COFF)))
22565 ## Since all the *bsds define LD_SWITCH_SYSTEM, this simplifies to:
22566 ## not using gcc, darwin system not on an alpha (ie darwin, since
22567 ## darwin + alpha does not occur).
22568 ## Because this was done in src/Makefile.in, the resulting part of
22569 ## LD_SWITCH_SYSTEM was not used in configure (ie, in ac_link).
22570 ## It therefore seems cleaner to put this in LD_SWITCH_SYSTEM_TEMACS,
22571 ## rather than LD_SWITCH_SYSTEM.
22572 test "x$LD_SWITCH_SYSTEM" = "x" && test "x$GCC" != "xyes" && \
22573 LD_SWITCH_SYSTEM_TEMACS="-X $LD_SWITCH_SYSTEM_TEMACS"
22576 ## LD_SWITCH_X_SITE_AUX is a -R option saying where to find X at run-time.
22577 ## When handled by cpp, this was in LD_SWITCH_SYSTEM. However, at
22578 ## the point where configure sourced the s/*.h file, LD_SWITCH_X_SITE_AUX
22579 ## had not yet been defined and was expanded to null. Hence LD_SWITCH_SYSTEM
22580 ## had different values in configure (in ac_link) and src/Makefile.in.
22581 ## It seems clearer therefore to put this piece in LD_SWITCH_SYSTEM_TEMACS.
22582 gnu-linux) LD_SWITCH_SYSTEM_TEMACS="\$(LD_SWITCH_X_SITE_AUX)" ;;
22584 *) LD_SWITCH_SYSTEM_TEMACS= ;;
22587 if test "$NS_IMPL_GNUSTEP" = "yes"; then
22588 LD_SWITCH_SYSTEM_TEMACS="${LD_SWITCH_SYSTEM_TEMACS} -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES} -lgnustep-gui -lgnustep-base -lobjc -lpthread"
22597 ## gnu: GNU needs its own crt0.
22598 aix4-2|cygwin|darwin|gnu|hpux*|irix6-5|sol2*|unixware) ORDINARY_LINK=yes ;;
22600 ## On post 1.3 releases of NetBSD, gcc -nostdlib also clears the
22601 ## library search parth, i.e. it won't search /usr/lib for libc and
22602 ## friends. Using -nostartfiles instead avoids this problem, and
22603 ## will also work on earlier NetBSD releases.
22604 netbsd|openbsd) LD_FIRSTFLAG="-nostartfiles" ;;
22606 ## macpcc: NAKAJI Hiroyuki <nakaji@tutrp.tut.ac.jp> says
22607 ## MkLinux/LinuxPPC needs this.
22608 ## ibms390x only supports opsys = gnu-linux so it can be added here.
22611 macppc|ibms390x) LD_FIRSTFLAG="-nostdlib" ;;
22617 if test "x$ORDINARY_LINK" = "xyes"; then
22621 $as_echo "#define ORDINARY_LINK 1" >>confdefs.h
22624 ## The system files defining neither ORDINARY_LINK nor LD_FIRSTFLAG are:
22625 ## freebsd, gnu-* not on macppc|ibms390x.
22626 elif test "x$GCC" = "xyes" && test "x$LD_FIRSTFLAG" = "x"; then
22628 ## Versions of GCC >= 2.0 put their library, libgcc.a, in obscure
22629 ## places that are difficult to figure out at make time. Fortunately,
22630 ## these same versions allow you to pass arbitrary flags on to the
22631 ## linker, so there is no reason not to use it as a linker.
22633 ## Well, it is not quite perfect. The "-nostdlib" keeps GCC from
22634 ## searching for libraries in its internal directories, so we have to
22635 ## ask GCC explicitly where to find libgcc.a (LIB_GCC below).
22636 LD_FIRSTFLAG="-nostdlib"
22639 ## FIXME? What setting of EDIT_LDFLAGS should this have?
22640 test "$NS_IMPL_GNUSTEP" = "yes" && LD_FIRSTFLAG="-rdynamic"
22645 ## FIXME? The logic here is not precisely the same as that above.
22646 ## There is no check here for a pre-defined LD_FIRSTFLAG.
22647 ## Should we only be setting LIB_GCC if LD ~ -nostdlib?
22649 if test "x$GCC" = "xyes" && test "x$ORDINARY_LINK" != "xyes"; then
22652 freebsd|netbsd|openbsd) LIB_GCC= ;;
22655 ## armin76@gentoo.org reported that the lgcc_s flag is necessary to
22656 ## build on ARM EABI under GNU/Linux. (Bug#5518)
22662 ## FIXME? s/gnu-linux.h used to define LIB_GCC as below, then
22663 ## immediately undefine it again and redefine it to empty.
22664 ## Was the C_SWITCH_X_SITE part really necessary?
22665 ## LIB_GCC=`$CC $C_SWITCH_X_SITE -print-libgcc-file-name`
22671 ## Ask GCC where to find libgcc.a.
22672 *) LIB_GCC=`$CC -print-libgcc-file-name 2> /dev/null` ;;
22677 ## If we're using X11/GNUstep, define some consequences.
22678 if test "$HAVE_X_WINDOWS" = "yes" || test "$HAVE_NS" = "yes"; then
22680 $as_echo "#define HAVE_WINDOW_SYSTEM 1" >>confdefs.h
22683 $as_echo "#define HAVE_MOUSE 1" >>confdefs.h
22690 #### Report on what we decided to do.
22691 #### Report GTK as a toolkit, even if it doesn't use Xt.
22692 #### It makes printing result more understandable as using GTK sets
22693 #### toolkit_scroll_bars to yes by default.
22694 if test "${HAVE_GTK}" = "yes"; then
22699 if test -n "$machfile"; then
22700 and_machfile=" and \`${machfile}'"
22704 Configured for \`${canonical}'.
22706 Where should the build process find the source code? ${srcdir}
22707 What operating system and machine description files should Emacs use?
22708 \`${opsysfile}'${and_machfile}
22709 What compiler should emacs be built with? ${CC} ${CFLAGS}
22710 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
22711 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
22712 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
22713 What window system should Emacs use? ${window_system}
22714 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
22716 if test -n "${x_includes}"; then
22717 echo " Where do we find X Windows header files? ${x_includes}"
22719 echo " Where do we find X Windows header files? Standard dirs"
22721 if test -n "${x_libraries}"; then
22722 echo " Where do we find X Windows libraries? ${x_libraries}"
22724 echo " Where do we find X Windows libraries? Standard dirs"
22727 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
22728 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
22729 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
22730 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
22731 echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
22732 echo " Does Emacs use -lpng? ${HAVE_PNG}"
22733 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
22734 echo " Does Emacs use imagemagick? ${HAVE_IMAGEMAGICK}"
22736 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
22737 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
22738 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
22739 echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
22740 echo " Does Emacs use -lgnutls (2.6.x or higher)? ${HAVE_GNUTLS}"
22741 echo " Does Emacs use -lxml2? ${HAVE_LIBXML2}"
22743 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
22744 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
22745 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
22746 echo " Does Emacs use -lxft? ${HAVE_XFT}"
22748 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
22751 if test $USE_XASSERTS = yes; then
22752 echo " Compiling with asserts turned on."
22753 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
22758 if test "$HAVE_NS" = "yes"; then
22760 echo "You must run \"make install\" in order to test the built application.
22761 The installed application will go to nextstep/Emacs.app and can be
22762 run or moved from there."
22763 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
22764 echo "The application will be fully self-contained."
22766 echo "The lisp resources for the application will be installed under ${prefix}.
22767 You may need to run \"make install\" with sudo. The application will fail
22768 to run if these resources are not installed."
22774 # Remove any trailing slashes in these variables.
22775 test "${prefix}" != NONE &&
22776 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
22777 test "${exec_prefix}" != NONE &&
22778 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
22780 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"
22782 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"
22785 opt_makefile=test/automated/Makefile
22787 if test -f $srcdir/${opt_makefile}.in; then
22788 SUBDIR_MAKEFILES="$SUBDIR_MAKEFILES $opt_makefile"
22789 ac_config_files="$ac_config_files test/automated/Makefile"
22793 SUBDIR_MAKEFILES_IN=`echo " ${SUBDIR_MAKEFILES}" | sed -e 's| | $(srcdir)/|g' -e 's|Makefile|Makefile.in|g'`
22797 ac_config_commands="$ac_config_commands mkdirs"
22800 ac_config_commands="$ac_config_commands epaths"
22803 ac_config_commands="$ac_config_commands gdbinit"
22806 cat >confcache <<\_ACEOF
22807 # This file is a shell script that caches the results of configure
22808 # tests run on this system so they can be shared between configure
22809 # scripts and configure runs, see configure's option --config-cache.
22810 # It is not useful on other systems. If it contains results you don't
22811 # want to keep, you may remove or edit it.
22813 # config.status only pays attention to the cache file if you give it
22814 # the --recheck option to rerun configure.
22816 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22817 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22818 # following values.
22822 # The following way of writing the cache mishandles newlines in values,
22823 # but we know of no workaround that is simple, portable, and efficient.
22824 # So, we kill variables containing newlines.
22825 # Ultrix sh set writes to stderr and can't be redirected directly,
22826 # and sets the high bit in the cache file unless we assign to the vars.
22828 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22829 eval ac_val=\$$ac_var
22833 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
22834 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
22837 _ | IFS | as_nl) ;; #(
22838 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
22839 *) { eval $ac_var=; unset $ac_var;} ;;
22845 case $as_nl`(ac_space=' '; set) 2>&1` in #(
22846 *${as_nl}ac_space=\ *)
22847 # `set' does not quote correctly, so add quotes: double-quote
22848 # substitution turns \\\\ into \\, and sed turns \\ into \.
22851 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22854 # `set' quotes correctly as required by POSIX, so do not add quotes.
22855 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22864 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22866 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22868 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22869 if test -w "$cache_file"; then
22870 test "x$cache_file" != "x/dev/null" &&
22871 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
22872 $as_echo "$as_me: updating cache $cache_file" >&6;}
22873 cat confcache >$cache_file
22875 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
22876 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22881 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22882 # Let make expand exec_prefix.
22883 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22885 DEFS=-DHAVE_CONFIG_H
22889 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22890 # 1. Remove the extension, and $U if already installed.
22891 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22892 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
22893 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
22894 # will be set to the directory where LIBOBJS objects are built.
22895 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22896 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
22898 LIBOBJS=$ac_libobjs
22900 LTLIBOBJS=$ac_ltlibobjs
22903 if test -n "$EXEEXT"; then
22905 am__EXEEXT_FALSE='#'
22907 am__EXEEXT_TRUE='#'
22911 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22912 as_fn_error "conditional \"AMDEP\" was never defined.
22913 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22915 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22916 as_fn_error "conditional \"am__fastdepCC\" was never defined.
22917 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22920 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
22921 as_fn_error "conditional \"GL_COND_LIBTOOL\" was never defined.
22922 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22924 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
22925 as_fn_error "conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
22926 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22929 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
22930 as_fn_error "conditional \"GL_GENERATE_STDINT_H\" was never defined.
22931 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22933 if test -z "${GL_GENERATE_STDARG_H_TRUE}" && test -z "${GL_GENERATE_STDARG_H_FALSE}"; then
22934 as_fn_error "conditional \"GL_GENERATE_STDARG_H\" was never defined.
22935 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22937 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
22938 as_fn_error "conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
22939 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22941 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
22942 as_fn_error "conditional \"GL_GENERATE_STDDEF_H\" was never defined.
22943 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22945 if test -z "${gl_GNULIB_ENABLED_dosname_TRUE}" && test -z "${gl_GNULIB_ENABLED_dosname_FALSE}"; then
22946 as_fn_error "conditional \"gl_GNULIB_ENABLED_dosname\" was never defined.
22947 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22949 if test -z "${gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE}" && test -z "${gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE}"; then
22950 as_fn_error "conditional \"gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36\" was never defined.
22951 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22953 if test -z "${gl_GNULIB_ENABLED_stat_TRUE}" && test -z "${gl_GNULIB_ENABLED_stat_FALSE}"; then
22954 as_fn_error "conditional \"gl_GNULIB_ENABLED_stat\" was never defined.
22955 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22957 if test -z "${gl_GNULIB_ENABLED_strtoull_TRUE}" && test -z "${gl_GNULIB_ENABLED_strtoull_FALSE}"; then
22958 as_fn_error "conditional \"gl_GNULIB_ENABLED_strtoull\" was never defined.
22959 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22961 if test -z "${gl_GNULIB_ENABLED_verify_TRUE}" && test -z "${gl_GNULIB_ENABLED_verify_FALSE}"; then
22962 as_fn_error "conditional \"gl_GNULIB_ENABLED_verify\" was never defined.
22963 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22968 if test -n "$gl_LIBOBJS"; then
22969 # Remove the extension.
22970 sed_drop_objext='s/\.o$//;s/\.obj$//'
22971 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
22972 gl_libobjs="$gl_libobjs $i.$ac_objext"
22973 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
22976 gl_LIBOBJS=$gl_libobjs
22978 gl_LTLIBOBJS=$gl_ltlibobjs
22984 if test -n "$gltests_LIBOBJS"; then
22985 # Remove the extension.
22986 sed_drop_objext='s/\.o$//;s/\.obj$//'
22987 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
22988 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
22989 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
22992 gltests_LIBOBJS=$gltests_libobjs
22994 gltests_LTLIBOBJS=$gltests_ltlibobjs
22998 : ${CONFIG_STATUS=./config.status}
23000 ac_clean_files_save=$ac_clean_files
23001 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23002 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
23003 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
23005 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
23007 # Generated by $as_me.
23008 # Run this file to recreate the current configuration.
23009 # Compiler output produced by configure, useful for debugging
23010 # configure, is in config.log if it exists.
23013 ac_cs_recheck=false
23016 SHELL=\${CONFIG_SHELL-$SHELL}
23019 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
23020 ## -------------------- ##
23021 ## M4sh Initialization. ##
23022 ## -------------------- ##
23024 # Be more Bourne compatible
23025 DUALCASE=1; export DUALCASE # for MKS sh
23026 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
23029 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23030 # is contrary to our usage. Disable this feature.
23031 alias -g '${1+"$@"}'='"$@"'
23032 setopt NO_GLOB_SUBST
23034 case `(set -o) 2>/dev/null` in #(
23046 # Printing a long string crashes Solaris 7 /usr/bin/printf.
23047 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
23048 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
23049 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
23050 # Prefer a ksh shell builtin over an external printf program on Solaris,
23051 # but without wasting forks for bash or zsh.
23052 if test -z "$BASH_VERSION$ZSH_VERSION" \
23053 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
23054 as_echo='print -r --'
23055 as_echo_n='print -rn --'
23056 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
23057 as_echo='printf %s\n'
23058 as_echo_n='printf %s'
23060 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
23061 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
23062 as_echo_n='/usr/ucb/echo -n'
23064 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
23065 as_echo_n_body='eval
23069 expr "X$arg" : "X\\(.*\\)$as_nl";
23070 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
23072 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
23074 export as_echo_n_body
23075 as_echo_n='sh -c $as_echo_n_body as_echo'
23077 export as_echo_body
23078 as_echo='sh -c $as_echo_body as_echo'
23081 # The user is always right.
23082 if test "${PATH_SEPARATOR+set}" != set; then
23084 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
23085 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
23092 # We need space, tab and new line, in precisely that order. Quoting is
23093 # there to prevent editors from complaining about space-tab.
23094 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
23095 # splitting by setting IFS to empty value.)
23098 # Find who we are. Look in the path if we contain no directory separator.
23100 *[\\/]* ) as_myself=$0 ;;
23101 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23102 for as_dir in $PATH
23105 test -z "$as_dir" && as_dir=.
23106 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23112 # We did not find ourselves, most probably we were run as `sh COMMAND'
23113 # in which case we are not to be found in the path.
23114 if test "x$as_myself" = x; then
23117 if test ! -f "$as_myself"; then
23118 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
23122 # Unset variables that we do not need and which cause bugs (e.g. in
23123 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
23124 # suppresses any "Segmentation fault" message there. '((' could
23125 # trigger a bug in pdksh 5.2.14.
23126 for as_var in BASH_ENV ENV MAIL MAILPATH
23127 do eval test x\${$as_var+set} = xset \
23128 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
23141 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
23144 # as_fn_error ERROR [LINENO LOG_FD]
23145 # ---------------------------------
23146 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
23147 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
23148 # script with status $?, using 1 if that was 0.
23151 as_status=$?; test $as_status -eq 0 && as_status=1
23153 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
23154 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
23156 $as_echo "$as_me: error: $1" >&2
23157 as_fn_exit $as_status
23161 # as_fn_set_status STATUS
23162 # -----------------------
23163 # Set $? to STATUS, without forking.
23164 as_fn_set_status ()
23167 } # as_fn_set_status
23169 # as_fn_exit STATUS
23170 # -----------------
23171 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
23175 as_fn_set_status $1
23181 # Portably unset VAR.
23184 { eval $1=; unset $1;}
23186 as_unset=as_fn_unset
23187 # as_fn_append VAR VALUE
23188 # ----------------------
23189 # Append the text in VALUE to the end of the definition contained in VAR. Take
23190 # advantage of any shell optimizations that allow amortized linear growth over
23191 # repeated appends, instead of the typical quadratic growth present in naive
23193 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
23194 eval 'as_fn_append ()
23205 # as_fn_arith ARG...
23206 # ------------------
23207 # Perform arithmetic evaluation on the ARGs, and store the result in the
23208 # global $as_val. Take advantage of shells that can avoid forks. The arguments
23209 # must be portable across $(()) and expr.
23210 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
23211 eval 'as_fn_arith ()
23218 as_val=`expr "$@" || test $? -eq 1`
23223 if expr a : '\(a\)' >/dev/null 2>&1 &&
23224 test "X`expr 00001 : '.*\(...\)'`" = X001; then
23230 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
23231 as_basename=basename
23236 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
23242 as_me=`$as_basename -- "$0" ||
23243 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23244 X"$0" : 'X\(//\)$' \| \
23245 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
23247 sed '/^.*\/\([^/][^/]*\)\/*$/{
23261 # Avoid depending upon Character Ranges.
23262 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23263 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23264 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23265 as_cr_digits='0123456789'
23266 as_cr_alnum=$as_cr_Letters$as_cr_digits
23268 ECHO_C= ECHO_N= ECHO_T=
23269 case `echo -n x` in #(((((
23271 case `echo 'xy\c'` in
23272 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
23274 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
23281 rm -f conf$$ conf$$.exe conf$$.file
23282 if test -d conf$$.dir; then
23283 rm -f conf$$.dir/conf$$.file
23286 mkdir conf$$.dir 2>/dev/null
23288 if (echo >conf$$.file) 2>/dev/null; then
23289 if ln -s conf$$.file conf$$ 2>/dev/null; then
23291 # ... but there are two gotchas:
23292 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23293 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23294 # In both cases, we have to default to `cp -p'.
23295 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
23297 elif ln conf$$.file conf$$ 2>/dev/null; then
23305 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
23306 rmdir conf$$.dir 2>/dev/null
23311 # Create "$as_dir" as a directory, including parents if necessary.
23316 -*) as_dir=./$as_dir;;
23318 test -d "$as_dir" || eval $as_mkdir_p || {
23322 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
23323 *) as_qdir=$as_dir;;
23325 as_dirs="'$as_qdir' $as_dirs"
23326 as_dir=`$as_dirname -- "$as_dir" ||
23327 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23328 X"$as_dir" : 'X\(//\)[^/]' \| \
23329 X"$as_dir" : 'X\(//\)$' \| \
23330 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23331 $as_echo X"$as_dir" |
23332 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23336 /^X\(\/\/\)[^/].*/{
23349 test -d "$as_dir" && break
23351 test -z "$as_dirs" || eval "mkdir $as_dirs"
23352 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
23356 if mkdir -p . 2>/dev/null; then
23357 as_mkdir_p='mkdir -p "$as_dir"'
23359 test -d ./-p && rmdir ./-p
23363 if test -x / >/dev/null 2>&1; then
23364 as_test_x='test -x'
23366 if ls -dL / >/dev/null 2>&1; then
23373 if test -d "$1"; then
23379 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
23380 ???[sx]*):;;*)false;;esac;fi
23384 as_executable_p=$as_test_x
23386 # Sed expression to map a string onto a valid CPP name.
23387 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23389 # Sed expression to map a string onto a valid variable name.
23390 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23394 ## ----------------------------------- ##
23395 ## Main body of $CONFIG_STATUS script. ##
23396 ## ----------------------------------- ##
23398 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
23400 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23401 # Save the log message, to keep $0 and so on meaningful, and to
23402 # report actual input values of CONFIG_FILES etc. instead of their
23403 # values after options handling.
23405 This file was extended by emacs $as_me 24.0.50, which was
23406 generated by GNU Autoconf 2.65. Invocation command line was
23408 CONFIG_FILES = $CONFIG_FILES
23409 CONFIG_HEADERS = $CONFIG_HEADERS
23410 CONFIG_LINKS = $CONFIG_LINKS
23411 CONFIG_COMMANDS = $CONFIG_COMMANDS
23414 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23419 case $ac_config_files in *"
23420 "*) set x $ac_config_files; shift; ac_config_files=$*;;
23423 case $ac_config_headers in *"
23424 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
23428 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23429 # Files that config.status was made for.
23430 config_files="$ac_config_files"
23431 config_headers="$ac_config_headers"
23432 config_commands="$ac_config_commands"
23436 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23438 \`$as_me' instantiates files and other configuration actions
23439 from templates according to the current configuration. Unless the files
23440 and actions are specified as TAGs, all are instantiated by default.
23442 Usage: $0 [OPTION]... [TAG]...
23444 -h, --help print this help, then exit
23445 -V, --version print version number and configuration settings, then exit
23446 --config print configuration, then exit
23447 -q, --quiet, --silent
23448 do not print progress messages
23449 -d, --debug don't remove temporary files
23450 --recheck update $as_me by reconfiguring in the same conditions
23451 --file=FILE[:TEMPLATE]
23452 instantiate the configuration file FILE
23453 --header=FILE[:TEMPLATE]
23454 instantiate the configuration header FILE
23456 Configuration files:
23459 Configuration headers:
23462 Configuration commands:
23465 Report bugs to the package provider."
23468 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23469 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
23471 emacs config.status 24.0.50
23472 configured by $0, generated by GNU Autoconf 2.65,
23473 with options \\"\$ac_cs_config\\"
23475 Copyright (C) 2009 Free Software Foundation, Inc.
23476 This config.status script is free software; the Free Software Foundation
23477 gives unlimited permission to copy, distribute and modify it."
23484 test -n "\$AWK" || AWK=awk
23487 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23488 # The default lists apply if the user does not specify any file.
23494 ac_option=`expr "X$1" : 'X\([^=]*\)='`
23495 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
23506 # Handling of the options.
23507 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23509 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
23510 $as_echo "$ac_cs_version"; exit ;;
23511 --config | --confi | --conf | --con | --co | --c )
23512 $as_echo "$ac_cs_config"; exit ;;
23513 --debug | --debu | --deb | --de | --d | -d )
23515 --file | --fil | --fi | --f )
23518 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
23520 as_fn_append CONFIG_FILES " '$ac_optarg'"
23521 ac_need_defaults=false;;
23522 --header | --heade | --head | --hea )
23525 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
23527 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
23528 ac_need_defaults=false;;
23530 # Conflict between --help and --header
23531 as_fn_error "ambiguous option: \`$1'
23532 Try \`$0 --help' for more information.";;
23533 --help | --hel | -h )
23534 $as_echo "$ac_cs_usage"; exit ;;
23535 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23536 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23539 # This is an error.
23540 -*) as_fn_error "unrecognized option: \`$1'
23541 Try \`$0 --help' for more information." ;;
23543 *) as_fn_append ac_config_targets " $1"
23544 ac_need_defaults=false ;;
23550 ac_configure_extra_args=
23552 if $ac_cs_silent; then
23554 ac_configure_extra_args="$ac_configure_extra_args --silent"
23558 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23559 if \$ac_cs_recheck; then
23560 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23562 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
23563 CONFIG_SHELL='$SHELL'
23564 export CONFIG_SHELL
23569 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23573 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23574 ## Running $as_me. ##
23580 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23584 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
23585 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPPFLAGS="$CPPFLAGS"
23589 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23591 # Handling of arguments.
23592 for ac_config_target in $ac_config_targets
23594 case $ac_config_target in
23595 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
23596 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
23597 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23598 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
23599 "lib-src/Makefile") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile" ;;
23600 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
23601 "doc/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/emacs/Makefile" ;;
23602 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
23603 "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;;
23604 "doc/lispref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispref/Makefile" ;;
23605 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
23606 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
23607 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
23608 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
23609 "test/automated/Makefile") CONFIG_FILES="$CONFIG_FILES test/automated/Makefile" ;;
23610 "mkdirs") CONFIG_COMMANDS="$CONFIG_COMMANDS mkdirs" ;;
23611 "epaths") CONFIG_COMMANDS="$CONFIG_COMMANDS epaths" ;;
23612 "gdbinit") CONFIG_COMMANDS="$CONFIG_COMMANDS gdbinit" ;;
23614 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
23619 # If the user did not use the arguments to specify the items to instantiate,
23620 # then the envvar interface is used. Set only those that are not.
23621 # We use the long form for the default assignment because of an extremely
23622 # bizarre bug on SunOS 4.1.3.
23623 if $ac_need_defaults; then
23624 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23625 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23626 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23629 # Have a temporary directory for convenience. Make it in the build tree
23630 # simply because there is no reason against having it here, and in addition,
23631 # creating and moving files from /tmp can sometimes cause problems.
23632 # Hook for its removal unless debugging.
23633 # Note that there is a small window in which the directory will not be cleaned:
23634 # after its creation but before its name has been assigned to `$tmp'.
23638 trap 'exit_status=$?
23639 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
23641 trap 'as_fn_exit 1' 1 2 13 15
23643 # Create a (secure) tmp directory for tmp files.
23646 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23647 test -n "$tmp" && test -d "$tmp"
23650 tmp=./conf$$-$RANDOM
23651 (umask 077 && mkdir "$tmp")
23652 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
23654 # Set up the scripts for CONFIG_FILES section.
23655 # No need to generate them if there are no CONFIG_FILES.
23656 # This happens for instance with `./config.status config.h'.
23657 if test -n "$CONFIG_FILES"; then
23659 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
23660 ac_cs_awk_getline=:
23661 ac_cs_awk_pipe_init=
23662 ac_cs_awk_read_file='
23663 while ((getline aline < (F[key])) > 0)
23666 ac_cs_awk_pipe_fini=
23668 ac_cs_awk_getline=false
23669 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
23670 ac_cs_awk_read_file='
23672 print "cat " F[key] " &&"
23673 '$ac_cs_awk_pipe_init
23674 # The final `:' finishes the AND list.
23675 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
23677 ac_cr=`echo X | tr X '\015'`
23678 # On cygwin, bash can eat \r inside `` if the user requested igncr.
23679 # But we know of no other shell where ac_cr would be empty at this
23680 # point, so we can use a bashism as a fallback.
23681 if test "x$ac_cr" = x; then
23682 eval ac_cr=\$\'\\r\'
23684 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
23685 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
23688 ac_cs_awk_cr=$ac_cr
23691 echo 'BEGIN {' >"$tmp/subs1.awk" &&
23694 # Create commands to substitute file output variables.
23696 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
23697 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
23698 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
23701 } >conf$$files.sh &&
23702 . ./conf$$files.sh ||
23703 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
23704 rm -f conf$$files.sh
23707 echo "cat >conf$$subs.awk <<_ACEOF" &&
23708 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
23710 } >conf$$subs.sh ||
23711 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
23712 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
23714 for ac_last_try in false false false false false :; do
23715 . ./conf$$subs.sh ||
23716 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
23718 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
23719 if test $ac_delim_n = $ac_delim_num; then
23721 elif $ac_last_try; then
23722 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
23724 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23727 rm -f conf$$subs.sh
23729 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23730 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
23734 s/^/S["/; s/!.*/"]=/
23744 s/\(.\{148\}\)..*/\1/
23746 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
23751 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
23758 s/\(.\{148\}\)..*/\1/
23760 s/["\\]/\\&/g; s/^/"/; s/$/"/
23764 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
23769 ' <conf$$subs.awk | sed '
23774 ' >>$CONFIG_STATUS || ac_write_fail=1
23775 rm -f conf$$subs.awk
23776 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23778 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
23779 for (key in S) S_is_set[key] = 1
23781 \$ac_cs_awk_pipe_init
23785 nfields = split(line, field, "@")
23787 len = length(field[1])
23788 for (i = 2; i < nfields; i++) {
23790 keylen = length(key)
23791 if (S_is_set[key]) {
23793 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
23794 len += length(value) + length(field[++i])
23799 if (nfields == 3 && !substed) {
23801 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
23802 \$ac_cs_awk_read_file
23808 \$ac_cs_awk_pipe_fini
23811 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23812 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
23813 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
23816 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
23817 || as_fn_error "could not setup config files machinery" "$LINENO" 5
23820 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23821 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23822 # trailing colons and then remove the whole line if VPATH becomes empty
23823 # (actually we leave an empty line to preserve line numbers).
23824 if test "x$srcdir" = x.; then
23825 ac_vpsub='/^[ ]*VPATH[ ]*=/{
23826 s/:*\$(srcdir):*/:/
23827 s/:*\${srcdir}:*/:/
23829 s/^\([^=]*=[ ]*\):*/\1/
23835 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23836 fi # test -n "$CONFIG_FILES"
23838 # Set up the scripts for CONFIG_HEADERS section.
23839 # No need to generate them if there are no CONFIG_HEADERS.
23840 # This happens for instance with `./config.status Makefile'.
23841 if test -n "$CONFIG_HEADERS"; then
23842 cat >"$tmp/defines.awk" <<\_ACAWK ||
23846 # Transform confdefs.h into an awk script `defines.awk', embedded as
23847 # here-document in config.status, that substitutes the proper values into
23848 # config.h.in to produce config.h.
23850 # Create a delimiter string that does not exist in confdefs.h, to ease
23851 # handling of long lines.
23853 for ac_last_try in false false :; do
23854 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
23855 if test -z "$ac_t"; then
23857 elif $ac_last_try; then
23858 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
23860 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23864 # For the awk script, D is an array of macro values keyed by name,
23865 # likewise P contains macro parameters if any. Preserve backslash
23866 # newline sequences.
23868 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23870 s/.\{148\}/&'"$ac_delim"'/g
23873 s/^[ ]*#[ ]*define[ ][ ]*/ /
23880 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
23882 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
23886 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
23887 D["\1"]=" \3\\\\\\n"\\/p
23889 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
23894 s/.\{148\}/&'"$ac_delim"'/g
23899 s/["\\]/\\&/g; s/^/"/; s/$/"/p
23902 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
23904 ' <confdefs.h | sed '
23905 s/'"$ac_delim"'/"\\\
23906 "/g' >>$CONFIG_STATUS || ac_write_fail=1
23908 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23909 for (key in D) D_is_set[key] = 1
23912 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
23914 split(line, arg, " ")
23915 if (arg[1] == "#") {
23919 defundef = substr(arg[1], 2)
23922 split(mac1, mac2, "(") #)
23924 prefix = substr(line, 1, index(line, defundef) - 1)
23925 if (D_is_set[macro]) {
23926 # Preserve the white space surrounding the "#".
23927 print prefix "define", macro P[macro] D[macro]
23930 # Replace #undef with comments. This is necessary, for example,
23931 # in the case of _POSIX_SOURCE, which is predefined and required
23932 # on some systems where configure will not decide to define it.
23933 if (defundef == "undef") {
23934 print "/*", prefix defundef, macro, "*/"
23942 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23943 as_fn_error "could not setup config headers machinery" "$LINENO" 5
23944 fi # test -n "$CONFIG_HEADERS"
23947 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
23952 :[FHLC]) ac_mode=$ac_tag; continue;;
23954 case $ac_mode$ac_tag in
23956 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
23957 :[FH]-) ac_tag=-:-;;
23958 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23975 -) ac_f="$tmp/stdin";;
23976 *) # Look for the file first in the build tree, then in the source tree
23977 # (if the path is not absolute). The absolute path cannot be DOS-style,
23978 # because $ac_f cannot contain `:'.
23982 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23984 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
23986 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
23987 as_fn_append ac_file_inputs " '$ac_f'"
23990 # Let's still pretend it is `configure' which instantiates (i.e., don't
23991 # use $as_me), people would be surprised to read:
23992 # /* config.h. Generated by config.status. */
23993 configure_input='Generated from '`
23994 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
23996 if test x"$ac_file" != x-; then
23997 configure_input="$ac_file. $configure_input"
23998 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
23999 $as_echo "$as_me: creating $ac_file" >&6;}
24001 # Neutralize special characters interpreted by sed in replacement strings.
24002 case $configure_input in #(
24003 *\&* | *\|* | *\\* )
24004 ac_sed_conf_input=`$as_echo "$configure_input" |
24005 sed 's/[\\\\&|]/\\\\&/g'`;; #(
24006 *) ac_sed_conf_input=$configure_input;;
24010 *:-:* | *:-) cat >"$tmp/stdin" \
24011 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
24016 ac_dir=`$as_dirname -- "$ac_file" ||
24017 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24018 X"$ac_file" : 'X\(//\)[^/]' \| \
24019 X"$ac_file" : 'X\(//\)$' \| \
24020 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24021 $as_echo X"$ac_file" |
24022 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24026 /^X\(\/\/\)[^/].*/{
24039 as_dir="$ac_dir"; as_fn_mkdir_p
24043 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24045 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
24046 # A ".." for each directory in $ac_dir_suffix.
24047 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
24048 case $ac_top_builddir_sub in
24049 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24050 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24053 ac_abs_top_builddir=$ac_pwd
24054 ac_abs_builddir=$ac_pwd$ac_dir_suffix
24055 # for backward compatibility:
24056 ac_top_builddir=$ac_top_build_prefix
24059 .) # We are building in place.
24061 ac_top_srcdir=$ac_top_builddir_sub
24062 ac_abs_top_srcdir=$ac_pwd ;;
24063 [\\/]* | ?:[\\/]* ) # Absolute name.
24064 ac_srcdir=$srcdir$ac_dir_suffix;
24065 ac_top_srcdir=$srcdir
24066 ac_abs_top_srcdir=$srcdir ;;
24067 *) # Relative name.
24068 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24069 ac_top_srcdir=$ac_top_build_prefix$srcdir
24070 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24072 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24082 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24083 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
24085 ac_MKDIR_P=$MKDIR_P
24087 [\\/$]* | ?:[\\/]* ) ;;
24088 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
24092 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24093 # If the template does not know about datarootdir, expand it.
24094 # FIXME: This hack should be removed a few years after 2.60.
24095 ac_datarootdir_hack=; ac_datarootdir_seen=
24106 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
24107 *datarootdir*) ac_datarootdir_seen=yes;;
24108 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
24109 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
24110 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
24112 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24113 ac_datarootdir_hack='
24114 s&@datadir@&$datadir&g
24115 s&@docdir@&$docdir&g
24116 s&@infodir@&$infodir&g
24117 s&@localedir@&$localedir&g
24118 s&@mandir@&$mandir&g
24119 s&\\\${datarootdir}&$datarootdir&g' ;;
24123 # Neutralize VPATH when `$srcdir' = `.'.
24124 # Shell code in configure.ac might set extrasub.
24125 # FIXME: do we really want to maintain this feature?
24126 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24127 ac_sed_extra="$ac_vpsub
24130 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24132 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24133 s|@configure_input@|$ac_sed_conf_input|;t t
24134 s&@top_builddir@&$ac_top_builddir_sub&;t t
24135 s&@top_build_prefix@&$ac_top_build_prefix&;t t
24136 s&@srcdir@&$ac_srcdir&;t t
24137 s&@abs_srcdir@&$ac_abs_srcdir&;t t
24138 s&@top_srcdir@&$ac_top_srcdir&;t t
24139 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
24140 s&@builddir@&$ac_builddir&;t t
24141 s&@abs_builddir@&$ac_abs_builddir&;t t
24142 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
24143 s&@INSTALL@&$ac_INSTALL&;t t
24144 s&@MKDIR_P@&$ac_MKDIR_P&;t t
24145 $ac_datarootdir_hack
24147 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
24148 if $ac_cs_awk_getline; then
24149 $AWK -f "$tmp/subs.awk"
24151 $AWK -f "$tmp/subs.awk" | $SHELL
24153 || as_fn_error "could not create $ac_file" "$LINENO" 5
24155 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
24156 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
24157 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
24158 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24159 which seems to be undefined. Please make sure it is defined." >&5
24160 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24161 which seems to be undefined. Please make sure it is defined." >&2;}
24165 -) cat "$tmp/out" && rm -f "$tmp/out";;
24166 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
24168 || as_fn_error "could not create $ac_file" "$LINENO" 5
24174 if test x"$ac_file" != x-; then
24176 $as_echo "/* $configure_input */" \
24177 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
24178 } >"$tmp/config.h" \
24179 || as_fn_error "could not create $ac_file" "$LINENO" 5
24180 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
24181 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
24182 $as_echo "$as_me: $ac_file is unchanged" >&6;}
24185 mv "$tmp/config.h" "$ac_file" \
24186 || as_fn_error "could not create $ac_file" "$LINENO" 5
24189 $as_echo "/* $configure_input */" \
24190 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
24191 || as_fn_error "could not create -" "$LINENO" 5
24193 # Compute "$ac_file"'s index in $config_headers.
24196 for _am_header in $config_headers :; do
24197 case $_am_header in
24198 $_am_arg | $_am_arg:* )
24201 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
24204 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
24205 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24206 X"$_am_arg" : 'X\(//\)[^/]' \| \
24207 X"$_am_arg" : 'X\(//\)$' \| \
24208 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
24209 $as_echo X"$_am_arg" |
24210 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24214 /^X\(\/\/\)[^/].*/{
24226 s/.*/./; q'`/stamp-h$_am_stamp_count
24229 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
24230 $as_echo "$as_me: executing $ac_file commands" >&6;}
24235 case $ac_file$ac_mode in
24236 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
24237 # Autoconf 2.62 quotes --file arguments for eval, but not when files
24238 # are listed without --file. Let's play safe and only enable the eval
24239 # if we detect the quoting.
24240 case $CONFIG_FILES in
24241 *\'*) eval set x "$CONFIG_FILES" ;;
24242 *) set x $CONFIG_FILES ;;
24247 # Strip MF so we end up with the name of the file.
24248 mf=`echo "$mf" | sed -e 's/:.*$//'`
24249 # Check whether this is an Automake generated Makefile or not.
24250 # We used to match only the files named `Makefile.in', but
24251 # some people rename them; so instead we look at the file content.
24252 # Grep'ing the first line is not enough: some people post-process
24253 # each Makefile.in and add a new line on top of each file to say so.
24254 # Grep'ing the whole file is not good either: AIX grep has a line
24255 # limit of 2048, but all sed's we know have understand at least 4000.
24256 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
24257 dirpart=`$as_dirname -- "$mf" ||
24258 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24259 X"$mf" : 'X\(//\)[^/]' \| \
24260 X"$mf" : 'X\(//\)$' \| \
24261 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
24263 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24267 /^X\(\/\/\)[^/].*/{
24283 # Extract the definition of DEPDIR, am__include, and am__quote
24284 # from the Makefile without running `make'.
24285 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
24286 test -z "$DEPDIR" && continue
24287 am__include=`sed -n 's/^am__include = //p' < "$mf"`
24288 test -z "am__include" && continue
24289 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
24290 # When using ansi2knr, U may be empty or an underscore; expand it
24291 U=`sed -n 's/^U = //p' < "$mf"`
24292 # Find all dependency output files, they are included files with
24293 # $(DEPDIR) in their names. We invoke sed twice because it is the
24294 # simplest approach to changing $(DEPDIR) to its actual value in the
24296 for file in `sed -n "
24297 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
24298 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
24299 # Make sure the directory exists.
24300 test -f "$dirpart/$file" && continue
24301 fdir=`$as_dirname -- "$file" ||
24302 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24303 X"$file" : 'X\(//\)[^/]' \| \
24304 X"$file" : 'X\(//\)$' \| \
24305 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
24306 $as_echo X"$file" |
24307 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24311 /^X\(\/\/\)[^/].*/{
24324 as_dir=$dirpart/$fdir; as_fn_mkdir_p
24325 # echo "creating $dirpart/$file"
24326 echo '# dummy' > "$dirpart/$file"
24332 for dir in etc lisp ; do
24333 test -d ${dir} || mkdir ${dir}
24337 echo creating src/epaths.h
24338 ${MAKE-make} epaths-force
24341 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
24342 echo creating src/.gdbinit
24343 echo source $srcdir/src/.gdbinit > src/.gdbinit
24353 ac_clean_files=$ac_clean_files_save
24355 test $ac_write_fail = 0 ||
24356 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
24359 # configure is writing to config.log, and then calls config.status.
24360 # config.status does its own redirection, appending to config.log.
24361 # Unfortunately, on DOS this fails, as config.log is still kept open
24362 # by configure, so config.status won't be able to write to it; its
24363 # output is simply discarded. So we exec the FD to /dev/null,
24364 # effectively closing config.log, so it can be properly (re)opened and
24365 # appended to by config.status. When coming back to configure, we
24366 # need to make the FD available again.
24367 if test "$no_create" != yes; then
24369 ac_config_status_args=
24370 test "$silent" = yes &&
24371 ac_config_status_args="$ac_config_status_args --quiet"
24373 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24375 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24376 # would make configure fail if this is the last instruction.
24377 $ac_cs_success || as_fn_exit $?
24379 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
24380 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
24381 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}