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
611 LD_SWITCH_SYSTEM_TEMACS
644 x_default_search_path
665 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
667 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
668 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
669 TIME_H_DEFINES_STRUCT_TIMESPEC
670 NEXT_AS_FIRST_DIRECTIVE_TIME_H
672 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
674 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
676 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
685 REPLACE_STDIO_WRITE_FUNCS
686 REPLACE_STDIO_READ_FUNCS
695 REPLACE_OBSTACK_PRINTF
717 HAVE_DECL_OBSTACK_PRINTF
723 GNULIB_VSPRINTF_POSIX
727 GNULIB_VFPRINTF_POSIX
734 GNULIB_STDIO_H_SIGPIPE
735 GNULIB_STDIO_H_NONBLOCKING
749 GNULIB_OBSTACK_PRINTF_POSIX
750 GNULIB_OBSTACK_PRINTF
775 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
777 GL_GENERATE_STDDEF_H_FALSE
778 GL_GENERATE_STDDEF_H_TRUE
783 GL_GENERATE_STDBOOL_H_FALSE
784 GL_GENERATE_STDBOOL_H_TRUE
793 HAVE_DECL_LOCALTIME_R
831 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
833 UINT64_MAX_EQ_ULONG_MAX
834 UINT32_MAX_LT_UINTMAX_MAX
837 INT64_MAX_EQ_LONG_MAX
838 INT32_MAX_LT_INTMAX_MAX
847 GL_GENERATE_STDINT_H_FALSE
848 GL_GENERATE_STDINT_H_TRUE
857 HAVE_SIGNED_SIG_ATOMIC_T
860 BITSIZEOF_SIG_ATOMIC_T
863 APPLE_UNIVERSAL_BUILD
867 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
872 HAVE_UNSIGNED_LONG_LONG_INT
878 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
882 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
884 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
885 UNISTD_H_HAVE_WINSOCK2_H
905 REPLACE_GETDOMAINNAME
915 HAVE_DECL_GETUSERSHELL
916 HAVE_DECL_GETPAGESIZE
918 HAVE_DECL_GETDOMAINNAME
953 GNULIB_UNISTD_H_SIGPIPE
954 GNULIB_UNISTD_H_NONBLOCKING
955 GNULIB_UNISTD_H_GETOPT
1003 REPLACE_CANONICALIZE_FILE_NAME
1008 HAVE_STRUCT_RANDOM_DATA
1026 HAVE_DECL_GETLOADAVG
1027 HAVE_CANONICALIZE_FILE_NAME
1040 GNULIB_REALLOC_POSIX
1054 GNULIB_CANONICALIZE_FILE_NAME
1058 GL_COND_LIBTOOL_FALSE
1059 GL_COND_LIBTOOL_TRUE
1108 LD_SWITCH_X_SITE_AUX_RPATH
1109 LD_SWITCH_X_SITE_AUX
1170 INSTALL_STRIP_PROGRAM
1212 program_transform_name
1223 ac_subst_files
='deps_frag
1226 enable_option_checking
1248 with_toolkit_scroll_bars
1259 with_pkg_config_prog
1263 enable_ns_self_contained
1265 enable_maintainer_mode
1266 enable_locallisppath
1268 enable_use_lisp_union_type
1271 enable_dependency_tracking
1275 ac_precious_vars
='build_alias
1287 # Initialize some variables set by options.
1289 ac_init_version
=false
1290 ac_unrecognized_opts
=
1291 ac_unrecognized_sep
=
1292 # The variables have the same names as the options, with
1293 # dashes changed to underlines.
1294 cache_file
=/dev
/null
1301 program_transform_name
=s
,x
,x
,
1309 # Installation directory options.
1310 # These are left unexpanded so users can "make install exec_prefix=/foo"
1311 # and all the variables that are supposed to be based on exec_prefix
1312 # by default will actually change.
1313 # Use braces instead of parens because sh, perl, etc. also accept them.
1314 # (The list follows the same order as the GNU Coding Standards.)
1315 bindir
='${exec_prefix}/bin'
1316 sbindir
='${exec_prefix}/sbin'
1317 libexecdir
='${exec_prefix}/libexec'
1318 datarootdir
='${prefix}/share'
1319 datadir
='${datarootdir}'
1320 sysconfdir
='${prefix}/etc'
1321 sharedstatedir
='${prefix}/com'
1322 localstatedir
='${prefix}/var'
1323 includedir
='${prefix}/include'
1324 oldincludedir
='/usr/include'
1325 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
1326 infodir
='${datarootdir}/info'
1331 libdir
='${exec_prefix}/lib'
1332 localedir
='${datarootdir}/locale'
1333 mandir
='${datarootdir}/man'
1339 # If the previous option needs an argument, assign it.
1340 if test -n "$ac_prev"; then
1341 eval $ac_prev=\
$ac_option
1347 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1351 # Accept the important Cygnus configure options, so we can diagnose typos.
1353 case $ac_dashdash$ac_option in
1357 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1359 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1360 bindir
=$ac_optarg ;;
1362 -build |
--build |
--buil |
--bui |
--bu)
1363 ac_prev
=build_alias
;;
1364 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1365 build_alias
=$ac_optarg ;;
1367 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1368 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1369 ac_prev
=cache_file
;;
1370 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1371 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1372 cache_file
=$ac_optarg ;;
1374 --config-cache |
-C)
1375 cache_file
=config.cache
;;
1377 -datadir |
--datadir |
--datadi |
--datad)
1379 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1380 datadir
=$ac_optarg ;;
1382 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1383 |
--dataroo |
--dataro |
--datar)
1384 ac_prev
=datarootdir
;;
1385 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1386 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1387 datarootdir
=$ac_optarg ;;
1389 -disable-* |
--disable-*)
1390 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1391 # Reject names that are not valid shell variable names.
1392 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1393 as_fn_error
"invalid feature name: $ac_useropt"
1394 ac_useropt_orig
=$ac_useropt
1395 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1396 case $ac_user_opts in
1398 "enable_
$ac_useropt"
1400 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1401 ac_unrecognized_sep
=', ';;
1403 eval enable_
$ac_useropt=no
;;
1405 -docdir |
--docdir |
--docdi |
--doc |
--do)
1407 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1408 docdir
=$ac_optarg ;;
1410 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1412 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1413 dvidir
=$ac_optarg ;;
1415 -enable-* |
--enable-*)
1416 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1417 # Reject names that are not valid shell variable names.
1418 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1419 as_fn_error
"invalid feature name: $ac_useropt"
1420 ac_useropt_orig
=$ac_useropt
1421 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1422 case $ac_user_opts in
1424 "enable_
$ac_useropt"
1426 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1427 ac_unrecognized_sep
=', ';;
1429 eval enable_
$ac_useropt=\
$ac_optarg ;;
1431 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1432 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1433 |
--exec |
--exe |
--ex)
1434 ac_prev
=exec_prefix
;;
1435 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1436 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1437 |
--exec=* |
--exe=* |
--ex=*)
1438 exec_prefix
=$ac_optarg ;;
1440 -gas |
--gas |
--ga |
--g)
1441 # Obsolete; use --with-gas.
1444 -help |
--help |
--hel |
--he |
-h)
1445 ac_init_help
=long
;;
1446 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1447 ac_init_help
=recursive
;;
1448 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1449 ac_init_help
=short
;;
1451 -host |
--host |
--hos |
--ho)
1452 ac_prev
=host_alias
;;
1453 -host=* |
--host=* |
--hos=* |
--ho=*)
1454 host_alias
=$ac_optarg ;;
1456 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1458 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1460 htmldir
=$ac_optarg ;;
1462 -includedir |
--includedir |
--includedi |
--included |
--include \
1463 |
--includ |
--inclu |
--incl |
--inc)
1464 ac_prev
=includedir
;;
1465 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1466 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1467 includedir
=$ac_optarg ;;
1469 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1471 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1472 infodir
=$ac_optarg ;;
1474 -libdir |
--libdir |
--libdi |
--libd)
1476 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1477 libdir
=$ac_optarg ;;
1479 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1480 |
--libexe |
--libex |
--libe)
1481 ac_prev
=libexecdir
;;
1482 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1483 |
--libexe=* |
--libex=* |
--libe=*)
1484 libexecdir
=$ac_optarg ;;
1486 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1487 ac_prev
=localedir
;;
1488 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1489 localedir
=$ac_optarg ;;
1491 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1492 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1493 ac_prev
=localstatedir
;;
1494 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1495 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1496 localstatedir
=$ac_optarg ;;
1498 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1500 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1501 mandir
=$ac_optarg ;;
1503 -nfp |
--nfp |
--nf)
1504 # Obsolete; use --without-fp.
1507 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1508 |
--no-cr |
--no-c |
-n)
1511 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1512 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1515 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1516 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1517 |
--oldin |
--oldi |
--old |
--ol |
--o)
1518 ac_prev
=oldincludedir
;;
1519 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1520 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1521 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1522 oldincludedir
=$ac_optarg ;;
1524 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1526 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1527 prefix
=$ac_optarg ;;
1529 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1530 |
--program-pre |
--program-pr |
--program-p)
1531 ac_prev
=program_prefix
;;
1532 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1533 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1534 program_prefix
=$ac_optarg ;;
1536 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1537 |
--program-suf |
--program-su |
--program-s)
1538 ac_prev
=program_suffix
;;
1539 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1540 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1541 program_suffix
=$ac_optarg ;;
1543 -program-transform-name |
--program-transform-name \
1544 |
--program-transform-nam |
--program-transform-na \
1545 |
--program-transform-n |
--program-transform- \
1546 |
--program-transform |
--program-transfor \
1547 |
--program-transfo |
--program-transf \
1548 |
--program-trans |
--program-tran \
1549 |
--progr-tra |
--program-tr |
--program-t)
1550 ac_prev
=program_transform_name
;;
1551 -program-transform-name=* |
--program-transform-name=* \
1552 |
--program-transform-nam=* |
--program-transform-na=* \
1553 |
--program-transform-n=* |
--program-transform-=* \
1554 |
--program-transform=* |
--program-transfor=* \
1555 |
--program-transfo=* |
--program-transf=* \
1556 |
--program-trans=* |
--program-tran=* \
1557 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1558 program_transform_name
=$ac_optarg ;;
1560 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1562 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1563 pdfdir
=$ac_optarg ;;
1565 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1567 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1570 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1571 |
-silent |
--silent |
--silen |
--sile |
--sil)
1574 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1576 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1578 sbindir
=$ac_optarg ;;
1580 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1581 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1582 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1584 ac_prev
=sharedstatedir
;;
1585 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1586 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1587 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1589 sharedstatedir
=$ac_optarg ;;
1591 -site |
--site |
--sit)
1593 -site=* |
--site=* |
--sit=*)
1596 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1598 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1599 srcdir
=$ac_optarg ;;
1601 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1602 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1603 ac_prev
=sysconfdir
;;
1604 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1605 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1606 sysconfdir
=$ac_optarg ;;
1608 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1609 ac_prev
=target_alias
;;
1610 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1611 target_alias
=$ac_optarg ;;
1613 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1616 -version |
--version |
--versio |
--versi |
--vers |
-V)
1617 ac_init_version
=: ;;
1620 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1621 # Reject names that are not valid shell variable names.
1622 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1623 as_fn_error
"invalid package name: $ac_useropt"
1624 ac_useropt_orig
=$ac_useropt
1625 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1626 case $ac_user_opts in
1630 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1631 ac_unrecognized_sep
=', ';;
1633 eval with_
$ac_useropt=\
$ac_optarg ;;
1635 -without-* |
--without-*)
1636 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1637 # Reject names that are not valid shell variable names.
1638 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1639 as_fn_error
"invalid package name: $ac_useropt"
1640 ac_useropt_orig
=$ac_useropt
1641 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1642 case $ac_user_opts in
1646 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1647 ac_unrecognized_sep
=', ';;
1649 eval with_
$ac_useropt=no
;;
1652 # Obsolete; use --with-x.
1655 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1656 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1657 ac_prev
=x_includes
;;
1658 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1659 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1660 x_includes
=$ac_optarg ;;
1662 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1663 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1664 ac_prev
=x_libraries
;;
1665 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1666 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1667 x_libraries
=$ac_optarg ;;
1669 -*) as_fn_error
"unrecognized option: \`$ac_option'
1670 Try \`$0 --help' for more information."
1674 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1675 # Reject names that are not valid shell variable names.
1676 case $ac_envvar in #(
1677 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1678 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1680 eval $ac_envvar=\
$ac_optarg
1681 export $ac_envvar ;;
1684 # FIXME: should be removed in autoconf 3.0.
1685 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1686 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1687 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1688 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1694 if test -n "$ac_prev"; then
1695 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1696 as_fn_error
"missing argument to $ac_option"
1699 if test -n "$ac_unrecognized_opts"; then
1700 case $enable_option_checking in
1702 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1703 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1707 # Check all directory arguments for consistency.
1708 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1709 datadir sysconfdir sharedstatedir localstatedir includedir \
1710 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1711 libdir localedir mandir
1713 eval ac_val
=\$
$ac_var
1714 # Remove trailing slashes.
1717 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1718 eval $ac_var=\
$ac_val;;
1720 # Be sure to have absolute directory names.
1722 [\\/$
]* | ?
:[\\/]* ) continue;;
1723 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1725 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
1728 # There might be people who depend on the old broken behavior: `$host'
1729 # used to hold the argument of --host etc.
1730 # FIXME: To remove some day.
1733 target
=$target_alias
1735 # FIXME: To remove some day.
1736 if test "x$host_alias" != x
; then
1737 if test "x$build_alias" = x
; then
1738 cross_compiling
=maybe
1739 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1740 If a cross compiler is detected then cross compile mode will be used." >&2
1741 elif test "x$build_alias" != "x$host_alias"; then
1747 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1749 test "$silent" = yes && exec 6>/dev
/null
1752 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1753 ac_ls_di
=`ls -di .` &&
1754 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1755 as_fn_error
"working directory cannot be determined"
1756 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1757 as_fn_error
"pwd does not report name of working directory"
1760 # Find the source files, if location was not specified.
1761 if test -z "$srcdir"; then
1762 ac_srcdir_defaulted
=yes
1763 # Try the directory containing this script, then the parent directory.
1764 ac_confdir
=`$as_dirname -- "$as_myself" ||
1765 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1766 X"$as_myself" : 'X\(//\)[^/]' \| \
1767 X"$as_myself" : 'X\(//\)$' \| \
1768 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1769 $as_echo X"$as_myself" |
1770 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1788 if test ! -r "$srcdir/$ac_unique_file"; then
1792 ac_srcdir_defaulted
=no
1794 if test ! -r "$srcdir/$ac_unique_file"; then
1795 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1796 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
1798 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1800 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1802 # When building in place, set srcdir=.
1803 if test "$ac_abs_confdir" = "$ac_pwd"; then
1806 # Remove unnecessary trailing slashes from srcdir.
1807 # Double slashes in file names in object file debugging info
1808 # mess up M-x gdb in Emacs.
1810 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1812 for ac_var
in $ac_precious_vars; do
1813 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1814 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1815 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1816 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1820 # Report the --help message.
1822 if test "$ac_init_help" = "long"; then
1823 # Omit some internal or obsolete options to make the list less imposing.
1824 # This message is too long to be a string in the A/UX 3.1 sh.
1826 \`configure' configures emacs 24.0.50 to adapt to many kinds of systems.
1828 Usage: $0 [OPTION]... [VAR=VALUE]...
1830 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1831 VAR=VALUE. See below for descriptions of some of the useful variables.
1833 Defaults for the options are specified in brackets.
1836 -h, --help display this help and exit
1837 --help=short display options specific to this package
1838 --help=recursive display the short help of all the included packages
1839 -V, --version display version information and exit
1840 -q, --quiet, --silent do not print \`checking...' messages
1841 --cache-file=FILE cache test results in FILE [disabled]
1842 -C, --config-cache alias for \`--cache-file=config.cache'
1843 -n, --no-create do not create output files
1844 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1846 Installation directories:
1847 --prefix=PREFIX install architecture-independent files in PREFIX
1848 [$ac_default_prefix]
1849 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1852 By default, \`make install' will install all the files in
1853 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1854 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1855 for instance \`--prefix=\$HOME'.
1857 For better control, use the options below.
1859 Fine tuning of the installation directories:
1860 --bindir=DIR user executables [EPREFIX/bin]
1861 --sbindir=DIR system admin executables [EPREFIX/sbin]
1862 --libexecdir=DIR program executables [EPREFIX/libexec]
1863 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1864 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1865 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1866 --libdir=DIR object code libraries [EPREFIX/lib]
1867 --includedir=DIR C header files [PREFIX/include]
1868 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1869 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1870 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1871 --infodir=DIR info documentation [DATAROOTDIR/info]
1872 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1873 --mandir=DIR man documentation [DATAROOTDIR/man]
1874 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1875 --htmldir=DIR html documentation [DOCDIR]
1876 --dvidir=DIR dvi documentation [DOCDIR]
1877 --pdfdir=DIR pdf documentation [DOCDIR]
1878 --psdir=DIR ps documentation [DOCDIR]
1884 --program-prefix=PREFIX prepend PREFIX to installed program names
1885 --program-suffix=SUFFIX append SUFFIX to installed program names
1886 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1889 --x-includes=DIR X include files are
in DIR
1890 --x-libraries=DIR X library files are
in DIR
1893 --build=BUILD configure
for building on BUILD
[guessed
]
1894 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1898 if test -n "$ac_init_help"; then
1899 case $ac_init_help in
1900 short | recursive
) echo "Configuration of emacs 24.0.50:";;
1905 --disable-option-checking ignore unrecognized
--enable/--with options
1906 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1907 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1908 --disable-ns-self-contained
1909 disable self contained build under NeXTstep
1910 --enable-asserts compile code with asserts enabled
1911 --enable-maintainer-mode
1912 enable make rules and dependencies not useful
(and
1913 sometimes confusing
) to the casual installer
1914 --enable-locallisppath=PATH
1915 directories Emacs should search
for lisp files
1916 specific to this site
1917 --enable-checking[=LIST
]
1918 enable expensive run-time checks. With LIST
, enable
1919 only specific categories of checks. Categories are
:
1920 all
,yes,no. Flags are
: stringbytes
, stringoverrun
,
1921 stringfreelist
, xmallocoverrun
, conslist
1922 --enable-use-lisp-union-type
1923 use a union
for the Lisp_Object data
type. This is
1924 only useful
for development
for catching certain
1926 --enable-profiling build emacs with profiling support. This might not
1927 work on all platforms
1928 --enable-autodepend automatically generate dependencies to .h-files.
1929 Requires GNU Make and Gcc. Enabled
if GNU Make and
1931 --disable-dependency-tracking speeds up one-time build
1932 --enable-dependency-tracking do not reject slow dependency extractors
1933 --disable-largefile omit support
for large files
1936 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1937 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1938 --without-pop don
't support POP mail retrieval with movemail
1939 --with-kerberos support Kerberos-authenticated POP
1940 --with-kerberos5 support Kerberos version 5 authenticated POP
1941 --with-hesiod support Hesiod to get the POP server host
1942 --with-mmdf support MMDF mailboxes
1943 --with-mail-unlink unlink, rather than empty, mail spool after reading
1944 --with-mailhost=HOSTNAME
1945 string giving default POP mail host
1946 --without-sound don't compile with sound support
1947 --without-sync-input process async input synchronously
1948 --with-x-toolkit=KIT use an X toolkit
(KIT one of
: yes or gtk
, gtk3
,
1949 lucid or athena
, motif
, no
)
1950 --without-xpm don
't compile with XPM image support
1951 --without-jpeg don't compile with JPEG image support
1952 --without-tiff don
't compile with TIFF image support
1953 --without-gif don't compile with GIF image support
1954 --without-png don
't compile with PNG image support
1955 --without-rsvg don't compile with SVG image support
1956 --without-xml2 don
't compile with XML parsing support
1957 --without-imagemagick don't compile with ImageMagick image support
1958 --without-xft don
't use XFT for anti aliased fonts
1959 --without-libotf don't use libotf
for OpenType font support
1960 --without-m17n-flt don
't use m17n-flt for text shaping
1961 --without-toolkit-scroll-bars
1962 don't use Motif or Xaw3d scroll bars
1963 --without-xaw3d don
't use Xaw3d
1964 --without-xim don't use X11 XIM
1965 --with-ns use NeXTstep
(Cocoa or GNUstep
) windowing system
1966 --without-gpm don
't use -lgpm for mouse support on a GNU/Linux
1968 --without-dbus don't compile with D-Bus support
1969 --without-gconf don
't compile with GConf support
1970 --without-selinux don't compile with SELinux support
1971 --without-gnutls don
't use -lgnutls for SSL/TLS support
1972 --without-makeinfo don't require makeinfo
for building manuals
1973 --without-compress-info don
't compress the installed Info pages
1974 --with-pkg-config-prog=PATH
1975 path to pkg-config for finding GTK and librsvg
1976 --with-crt-dir=DIR directory containing crtn.o etc. The default is
1977 /usr/lib, or /usr/lib64 on some platforms.
1978 --with-gameuser=USER user for shared game score files
1979 --with-gnustep-conf=PATH
1980 path to GNUstep.conf; default $GNUSTEP_CONFIG_FILE,
1981 or /etc/GNUstep/GNUstep.conf
1982 --with-x use the X Window System
1984 Some influential environment variables:
1985 CC C compiler command
1986 CFLAGS C compiler flags
1987 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1988 nonstandard directory <lib dir>
1989 LIBS libraries to pass to the linker, e.g. -l<library>
1990 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1991 you have headers in a nonstandard directory <include dir>
1993 XMKMF Path to xmkmf, Makefile generator for X Window System
1995 Use these variables to override the choices made by `configure' or to
help
1996 it to
find libraries and programs with nonstandard names
/locations.
1998 Report bugs to the package provider.
2003 if test "$ac_init_help" = "recursive"; then
2004 # If there are subdirs, report their specific --help.
2005 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
2006 test -d "$ac_dir" ||
2007 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
2012 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
2014 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2015 # A ".." for each directory in $ac_dir_suffix.
2016 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2017 case $ac_top_builddir_sub in
2018 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
2019 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
2022 ac_abs_top_builddir
=$ac_pwd
2023 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
2024 # for backward compatibility:
2025 ac_top_builddir
=$ac_top_build_prefix
2028 .
) # We are building in place.
2030 ac_top_srcdir
=$ac_top_builddir_sub
2031 ac_abs_top_srcdir
=$ac_pwd ;;
2032 [\\/]* | ?
:[\\/]* ) # Absolute name.
2033 ac_srcdir
=$srcdir$ac_dir_suffix;
2034 ac_top_srcdir
=$srcdir
2035 ac_abs_top_srcdir
=$srcdir ;;
2037 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
2038 ac_top_srcdir
=$ac_top_build_prefix$srcdir
2039 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
2041 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
2043 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
2044 # Check for guested configure.
2045 if test -f "$ac_srcdir/configure.gnu"; then
2047 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2048 elif test -f "$ac_srcdir/configure"; then
2050 $SHELL "$ac_srcdir/configure" --help=recursive
2052 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2054 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
2058 test -n "$ac_init_help" && exit $ac_status
2059 if $ac_init_version; then
2061 emacs configure
24.0.50
2062 generated by GNU Autoconf
2.65
2064 Copyright
(C
) 2009 Free Software Foundation
, Inc.
2065 This configure
script is free software
; the Free Software Foundation
2066 gives unlimited permission to copy
, distribute and modify it.
2071 ## ------------------------ ##
2072 ## Autoconf initialization. ##
2073 ## ------------------------ ##
2075 # ac_fn_c_try_compile LINENO
2076 # --------------------------
2077 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2078 ac_fn_c_try_compile
()
2080 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2081 rm -f conftest.
$ac_objext
2082 if { { ac_try
="$ac_compile"
2084 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2085 *) ac_try_echo=$ac_try;;
2087 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2088 $as_echo "$ac_try_echo"; } >&5
2089 (eval "$ac_compile") 2>conftest.err
2091 if test -s conftest.err; then
2092 grep -v '^ *+' conftest.err >conftest.er1
2093 cat conftest.er1 >&5
2094 mv -f conftest.er1 conftest.err
2096 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2097 test $ac_status = 0; } && {
2098 test -z "$ac_c_werror_flag" ||
2099 test ! -s conftest.err
2100 } && test -s conftest.$ac_objext; then :
2103 $as_echo "$as_me: failed program was:" >&5
2104 sed 's/^/| /' conftest.$ac_ext >&5
2108 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2109 as_fn_set_status $ac_retval
2111 } # ac_fn_c_try_compile
2113 # ac_fn_c_try_cpp LINENO
2114 # ----------------------
2115 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2118 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2119 if { { ac_try="$ac_cpp conftest.$ac_ext"
2121 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2122 *) ac_try_echo
=$ac_try;;
2124 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2125 $as_echo "$ac_try_echo"; } >&5
2126 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2128 if test -s conftest.err
; then
2129 grep -v '^ *+' conftest.err
>conftest.er1
2130 cat conftest.er1
>&5
2131 mv -f conftest.er1 conftest.err
2133 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2134 test $ac_status = 0; } >/dev
/null
&& {
2135 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2136 test ! -s conftest.err
2140 $as_echo "$as_me: failed program was:" >&5
2141 sed 's/^/| /' conftest.
$ac_ext >&5
2145 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2146 as_fn_set_status
$ac_retval
2150 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2151 # -------------------------------------------------------
2152 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2153 # the include files in INCLUDES and setting the cache variable VAR
2155 ac_fn_c_check_header_mongrel
()
2157 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2158 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2160 $as_echo_n "checking for $2... " >&6; }
2161 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2162 $as_echo_n "(cached) " >&6
2165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2166 $as_echo "$ac_res" >&6; }
2168 # Is the header compilable?
2169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2170 $as_echo_n "checking $2 usability... " >&6; }
2171 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2172 /* end confdefs.h. */
2176 if ac_fn_c_try_compile
"$LINENO"; then :
2177 ac_header_compiler
=yes
2179 ac_header_compiler
=no
2181 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2183 $as_echo "$ac_header_compiler" >&6; }
2185 # Is the header present?
2186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2187 $as_echo_n "checking $2 presence... " >&6; }
2188 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2189 /* end confdefs.h. */
2192 if ac_fn_c_try_cpp
"$LINENO"; then :
2193 ac_header_preproc
=yes
2195 ac_header_preproc
=no
2197 rm -f conftest.err conftest.
$ac_ext
2198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2199 $as_echo "$ac_header_preproc" >&6; }
2201 # So? What about this header?
2202 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2204 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2205 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2206 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2207 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2210 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2211 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2212 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2213 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2214 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2215 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2216 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2217 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2218 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2219 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2223 $as_echo_n "checking for $2... " >&6; }
2224 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2225 $as_echo_n "(cached) " >&6
2227 eval "$3=\$ac_header_compiler"
2230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2231 $as_echo "$ac_res" >&6; }
2233 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2235 } # ac_fn_c_check_header_mongrel
2237 # ac_fn_c_try_run LINENO
2238 # ----------------------
2239 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2240 # that executables *can* be run.
2243 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2244 if { { ac_try
="$ac_link"
2246 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2247 *) ac_try_echo=$ac_try;;
2249 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2250 $as_echo "$ac_try_echo"; } >&5
2251 (eval "$ac_link") 2>&5
2253 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2254 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2255 { { case "(($ac_try" in
2256 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2257 *) ac_try_echo
=$ac_try;;
2259 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2260 $as_echo "$ac_try_echo"; } >&5
2261 (eval "$ac_try") 2>&5
2263 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2264 test $ac_status = 0; }; }; then :
2267 $as_echo "$as_me: program exited with status $ac_status" >&5
2268 $as_echo "$as_me: failed program was:" >&5
2269 sed 's/^/| /' conftest.
$ac_ext >&5
2271 ac_retval
=$ac_status
2273 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2274 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2275 as_fn_set_status
$ac_retval
2279 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2280 # -------------------------------------------------------
2281 # Tests whether HEADER exists and can be compiled using the include files in
2282 # INCLUDES, setting the cache variable VAR accordingly.
2283 ac_fn_c_check_header_compile
()
2285 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2287 $as_echo_n "checking for $2... " >&6; }
2288 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2289 $as_echo_n "(cached) " >&6
2291 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2292 /* end confdefs.h. */
2296 if ac_fn_c_try_compile
"$LINENO"; then :
2301 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2305 $as_echo "$ac_res" >&6; }
2306 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2308 } # ac_fn_c_check_header_compile
2310 # ac_fn_c_try_link LINENO
2311 # -----------------------
2312 # Try to link conftest.$ac_ext, and return whether this succeeded.
2315 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2316 rm -f conftest.
$ac_objext conftest
$ac_exeext
2317 if { { ac_try
="$ac_link"
2319 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2320 *) ac_try_echo=$ac_try;;
2322 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2323 $as_echo "$ac_try_echo"; } >&5
2324 (eval "$ac_link") 2>conftest.err
2326 if test -s conftest.err; then
2327 grep -v '^ *+' conftest.err >conftest.er1
2328 cat conftest.er1 >&5
2329 mv -f conftest.er1 conftest.err
2331 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2332 test $ac_status = 0; } && {
2333 test -z "$ac_c_werror_flag" ||
2334 test ! -s conftest.err
2335 } && test -s conftest$ac_exeext && {
2336 test "$cross_compiling" = yes ||
2337 $as_test_x conftest$ac_exeext
2341 $as_echo "$as_me: failed program was:" >&5
2342 sed 's/^/| /' conftest.$ac_ext >&5
2346 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2347 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2348 # interfere with the next link command; also delete a directory that is
2349 # left behind by Apple's compiler. We do this before executing the actions.
2350 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2351 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2352 as_fn_set_status $ac_retval
2354 } # ac_fn_c_try_link
2356 # ac_fn_c_check_decl LINENO SYMBOL VAR
2357 # ------------------------------------
2358 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2359 ac_fn_c_check_decl ()
2361 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2363 $as_echo_n "checking whether $2 is declared... " >&6; }
2364 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2365 $as_echo_n "(cached) " >&6
2367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2368 /* end confdefs.h. */
2381 if ac_fn_c_try_compile "$LINENO"; then :
2386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2390 $as_echo "$ac_res" >&6; }
2391 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2393 } # ac_fn_c_check_decl
2395 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2396 # ----------------------------------------------
2397 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2398 ac_fn_c_check_header_preproc ()
2400 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2402 $as_echo_n "checking for $2... " >&6; }
2403 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2404 $as_echo_n "(cached) " >&6
2406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2407 /* end confdefs.h. */
2410 if ac_fn_c_try_cpp "$LINENO"; then :
2415 rm -f conftest.err conftest.$ac_ext
2418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2419 $as_echo "$ac_res" >&6; }
2420 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2422 } # ac_fn_c_check_header_preproc
2424 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2425 # ----------------------------------------------------
2426 # Tries to find if the field MEMBER exists in type AGGR, after including
2427 # INCLUDES, setting cache variable VAR accordingly.
2428 ac_fn_c_check_member ()
2430 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2432 $as_echo_n "checking for $2.$3... " >&6; }
2433 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2434 $as_echo_n "(cached) " >&6
2436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2437 /* end confdefs.h. */
2449 if ac_fn_c_try_compile "$LINENO"; then :
2452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2453 /* end confdefs.h. */
2459 if (sizeof ac_aggr.$3)
2465 if ac_fn_c_try_compile "$LINENO"; then :
2470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2476 $as_echo "$ac_res" >&6; }
2477 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2479 } # ac_fn_c_check_member
2481 # ac_fn_c_check_func LINENO FUNC VAR
2482 # ----------------------------------
2483 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2484 ac_fn_c_check_func ()
2486 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2488 $as_echo_n "checking for $2... " >&6; }
2489 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2490 $as_echo_n "(cached) " >&6
2492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2493 /* end confdefs.h. */
2494 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2495 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2496 #define $2 innocuous_$2
2498 /* System header to define __stub macros and hopefully few prototypes,
2499 which can conflict with char $2 (); below.
2500 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2501 <limits.h> exists even on freestanding compilers. */
2504 # include <limits.h>
2506 # include <assert.h>
2511 /* Override any GCC internal prototype to avoid an error.
2512 Use char because int might match the return type of a GCC
2513 builtin and then its argument prototype would still apply. */
2518 /* The GNU C library defines this for functions which it implements
2519 to always fail with ENOSYS. Some functions are actually named
2520 something starting with __ and the normal name is an alias. */
2521 #if defined __stub_$2 || defined __stub___$2
2533 if ac_fn_c_try_link "$LINENO"; then :
2538 rm -f core conftest.err conftest.$ac_objext \
2539 conftest$ac_exeext conftest.$ac_ext
2542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2543 $as_echo "$ac_res" >&6; }
2544 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2546 } # ac_fn_c_check_func
2548 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2549 # --------------------------------------------
2550 # Tries to find the compile-time value of EXPR in a program that includes
2551 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2553 ac_fn_c_compute_int ()
2555 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2556 if test "$cross_compiling" = yes; then
2557 # Depending upon the size, compute the lo and hi bounds.
2558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2559 /* end confdefs.h. */
2564 static int test_array [1 - 2 * !(($2) >= 0)];
2571 if ac_fn_c_try_compile "$LINENO"; then :
2574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2575 /* end confdefs.h. */
2580 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2587 if ac_fn_c_try_compile "$LINENO"; then :
2588 ac_hi=$ac_mid; break
2590 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2591 if test $ac_lo -le $ac_mid; then
2595 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2601 /* end confdefs.h. */
2606 static int test_array [1 - 2 * !(($2) < 0)];
2613 if ac_fn_c_try_compile "$LINENO"; then :
2616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2617 /* end confdefs.h. */
2622 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2629 if ac_fn_c_try_compile "$LINENO"; then :
2630 ac_lo=$ac_mid; break
2632 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2633 if test $ac_mid -le $ac_hi; then
2637 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2647 # Binary search between lo and hi bounds.
2648 while test "x$ac_lo" != "x$ac_hi"; do
2649 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2651 /* end confdefs.h. */
2656 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2663 if ac_fn_c_try_compile "$LINENO"; then :
2666 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2671 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2676 /* end confdefs.h. */
2678 static long int longval () { return $2; }
2679 static unsigned long int ulongval () { return $2; }
2686 FILE *f = fopen ("conftest.val", "w");
2691 long int i = longval ();
2694 fprintf (f, "%ld", i);
2698 unsigned long int i = ulongval ();
2701 fprintf (f, "%lu", i);
2703 /* Do not output a trailing newline, as this causes \r\n confusion
2704 on some platforms. */
2705 return ferror (f) || fclose (f) != 0;
2711 if ac_fn_c_try_run "$LINENO"; then :
2712 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2716 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2717 conftest.$ac_objext conftest.beam conftest.$ac_ext
2721 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2722 as_fn_set_status $ac_retval
2724 } # ac_fn_c_compute_int
2726 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2727 # -------------------------------------------
2728 # Tests whether TYPE exists after having included INCLUDES, setting cache
2729 # variable VAR accordingly.
2730 ac_fn_c_check_type ()
2732 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2734 $as_echo_n "checking for $2... " >&6; }
2735 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2736 $as_echo_n "(cached) " >&6
2739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2740 /* end confdefs.h. */
2751 if ac_fn_c_try_compile "$LINENO"; then :
2752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2753 /* end confdefs.h. */
2764 if ac_fn_c_try_compile "$LINENO"; then :
2769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2775 $as_echo "$ac_res" >&6; }
2776 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2778 } # ac_fn_c_check_type
2779 cat >config.log <<_ACEOF
2780 This file contains any messages produced by compilers while
2781 running configure, to aid debugging if configure makes a mistake.
2783 It was created by emacs $as_me 24.0.50, which was
2784 generated by GNU Autoconf 2.65. Invocation command line was
2796 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2797 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2798 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2799 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2800 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2802 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2803 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2805 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2806 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2807 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2808 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2809 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2810 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2811 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2819 test -z "$as_dir" && as_dir=.
2820 $as_echo "PATH: $as_dir"
2836 # Keep a trace of the command line.
2837 # Strip out --no-create and --no-recursion so they do not pile up.
2838 # Strip out --silent because we don't want to record it for future runs.
2839 # Also quote any args containing shell meta-characters.
2840 # Make two passes to allow for proper duplicate-argument suppression.
2844 ac_must_keep_next=false
2850 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2851 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2852 | -silent | --silent | --silen | --sile | --sil)
2855 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2858 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2860 as_fn_append ac_configure_args1 " '$ac_arg'"
2861 if test $ac_must_keep_next = true; then
2862 ac_must_keep_next=false # Got value, back to normal.
2865 *=* | --config-cache | -C | -disable-* | --disable-* \
2866 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2867 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2868 | -with-* | --with-* | -without-* | --without-* | --x)
2869 case "$ac_configure_args0 " in
2870 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2873 -* ) ac_must_keep_next=true ;;
2876 as_fn_append ac_configure_args " '$ac_arg'"
2881 { ac_configure_args0=; unset ac_configure_args0;}
2882 { ac_configure_args1=; unset ac_configure_args1;}
2884 # When interrupted or exit'd, cleanup temporary files, and complete
2885 # config.log. We remove comments because anyway the quotes in there
2886 # would cause problems or look ugly.
2887 # WARNING: Use '\'' to represent an apostrophe within the trap.
2888 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2889 trap 'exit_status=$?
2890 # Save into config.log some information that might help in debugging.
2895 ## ---------------- ##
2896 ## Cache variables. ##
2897 ## ---------------- ##
2900 # The following way of writing the cache mishandles newlines in values,
2902 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2903 eval ac_val=\$$ac_var
2907 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2908 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2911 _ | IFS | as_nl) ;; #(
2912 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2913 *) { eval $ac_var=; unset $ac_var;} ;;
2918 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2919 *${as_nl}ac_space=\ *)
2921 "s/'\''/'\''\\\\'\'''\''/g;
2922 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2925 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2933 ## ----------------- ##
2934 ## Output variables. ##
2935 ## ----------------- ##
2938 for ac_var in $ac_subst_vars
2940 eval ac_val=\$$ac_var
2942 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2944 $as_echo "$ac_var='\''$ac_val'\''"
2948 if test -n "$ac_subst_files"; then
2950 ## ------------------- ##
2951 ## File substitutions. ##
2952 ## ------------------- ##
2955 for ac_var in $ac_subst_files
2957 eval ac_val=\$$ac_var
2959 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2961 $as_echo "$ac_var='\''$ac_val'\''"
2966 if test -s confdefs.h; then
2976 test "$ac_signal" != 0 &&
2977 $as_echo "$as_me: caught signal $ac_signal"
2978 $as_echo "$as_me: exit $exit_status"
2980 rm -f core *.core core.conftest.* &&
2981 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2984 for ac_signal in 1 2 13 15; do
2985 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2989 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2990 rm -f -r conftest* confdefs.h
2992 $as_echo "/* confdefs.h */" > confdefs.h
2994 # Predefined preprocessor variables.
2996 cat >>confdefs.h <<_ACEOF
2997 #define PACKAGE_NAME "$PACKAGE_NAME"
3000 cat >>confdefs.h <<_ACEOF
3001 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3004 cat >>confdefs.h <<_ACEOF
3005 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3008 cat >>confdefs.h <<_ACEOF
3009 #define PACKAGE_STRING "$PACKAGE_STRING"
3012 cat >>confdefs.h <<_ACEOF
3013 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3016 cat >>confdefs.h <<_ACEOF
3017 #define PACKAGE_URL "$PACKAGE_URL"
3021 # Let the site file select an alternate cache file if it wants to.
3022 # Prefer an explicitly selected file to automatically selected ones.
3025 if test -n "$CONFIG_SITE"; then
3026 ac_site_file1=$CONFIG_SITE
3027 elif test "x$prefix" != xNONE; then
3028 ac_site_file1=$prefix/share/config.site
3029 ac_site_file2=$prefix/etc/config.site
3031 ac_site_file1=$ac_default_prefix/share/config.site
3032 ac_site_file2=$ac_default_prefix/etc/config.site
3034 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3036 test "x$ac_site_file" = xNONE && continue
3037 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3038 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3039 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3040 sed 's/^/| /' "$ac_site_file" >&5
3045 if test -r "$cache_file"; then
3046 # Some versions of bash will fail to source /dev/null (special files
3047 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3048 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3049 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3050 $as_echo "$as_me: loading cache $cache_file" >&6;}
3052 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3053 *) . "./$cache_file";;
3057 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3058 $as_echo "$as_me: creating cache $cache_file" >&6;}
3062 as_fn_append ac_header_list " stdlib.h"
3063 as_fn_append ac_header_list " unistd.h"
3064 as_fn_append ac_header_list " sys/param.h"
3065 as_fn_append ac_func_list " readlinkat"
3066 gl_getopt_required=GNU
3067 as_fn_append ac_header_list " getopt.h"
3068 as_fn_append ac_header_list " wchar.h"
3069 as_fn_append ac_header_list " stdint.h"
3070 as_fn_append ac_header_list " inttypes.h"
3071 as_fn_append ac_func_list " lstat"
3072 as_fn_append ac_func_list " alarm"
3073 as_fn_append ac_func_list " readlink"
3074 as_fn_append ac_header_list " sys/socket.h"
3075 as_fn_append ac_func_list " tzset"
3076 as_fn_append ac_func_list " symlink"
3077 as_fn_append ac_header_list " sys/stat.h"
3078 as_fn_append ac_header_list " sys/time.h"
3079 as_fn_append ac_func_list " localtime_r"
3080 # Check that the precious variables saved in the cache have kept the same
3082 ac_cache_corrupted=false
3083 for ac_var in $ac_precious_vars; do
3084 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3085 eval ac_new_set=\$ac_env_${ac_var}_set
3086 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3087 eval ac_new_val=\$ac_env_${ac_var}_value
3088 case $ac_old_set,$ac_new_set in
3090 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
3091 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3092 ac_cache_corrupted=: ;;
3094 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
3095 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
3096 ac_cache_corrupted=: ;;
3099 if test "x$ac_old_val" != "x$ac_new_val"; then
3100 # differences in whitespace do not lead to failure.
3101 ac_old_val_w=`echo x
$ac_old_val`
3102 ac_new_val_w=`echo x
$ac_new_val`
3103 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3104 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3105 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
3106 ac_cache_corrupted=:
3108 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
3109 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3110 eval $ac_var=\$ac_old_val
3112 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3113 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
3114 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3115 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3118 # Pass precious variables to config.status.
3119 if test "$ac_new_set" = set; then
3121 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
3122 *) ac_arg=$ac_var=$ac_new_val ;;
3124 case " $ac_configure_args " in
3125 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3126 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3130 if $ac_cache_corrupted; then
3131 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
3132 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3133 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3134 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3135 as_fn_error "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
3137 ## -------------------- ##
3138 ## Main body of script. ##
3139 ## -------------------- ##
3142 ac_cpp='$CPP $CPPFLAGS'
3143 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3144 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3145 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3148 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
3151 am__api_version='1.11'
3154 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3155 for ac_t in install-sh install.sh shtool; do
3156 if test -f "$ac_dir/$ac_t"; then
3158 ac_install_sh="$ac_aux_dir/$ac_t -c"
3163 if test -z "$ac_aux_dir"; then
3164 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3167 # These three variables are undocumented and unsupported,
3168 # and are intended to be withdrawn in a future Autoconf release.
3169 # They can cause serious problems if a builder's source tree is in a directory
3170 # whose full name contains unusual characters.
3171 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3172 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3173 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3176 # Find a good install program. We prefer a C program (faster),
3177 # so one script is as good as another. But avoid the broken or
3178 # incompatible versions:
3179 # SysV /etc/install, /usr/sbin/install
3180 # SunOS /usr/etc/install
3181 # IRIX /sbin/install
3183 # AmigaOS /C/install, which installs bootblocks on floppy discs
3184 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3185 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3186 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3187 # OS/2's system install, which has a completely different semantic
3188 # ./install, which can be erroneously created by make from ./install.sh.
3189 # Reject install programs that cannot install multiple files.
3190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3191 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3192 if test -z "$INSTALL"; then
3193 if test "${ac_cv_path_install+set}" = set; then :
3194 $as_echo_n "(cached) " >&6
3196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3200 test -z "$as_dir" && as_dir=.
3201 # Account for people who put trailing slashes in PATH elements.
3202 case $as_dir/ in #((
3203 ./ | .// | /[cC]/* | \
3204 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3205 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3208 # OSF1 and SCO ODT 3.0 have their own names for install.
3209 # Don't use installbsd from OSF since it installs stuff as root
3211 for ac_prog in ginstall scoinst install; do
3212 for ac_exec_ext in '' $ac_executable_extensions; do
3213 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3214 if test $ac_prog = install &&
3215 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3216 # AIX install. It has an incompatible calling convention.
3218 elif test $ac_prog = install &&
3219 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3220 # program-specific install script used by HP pwplus--don't use.
3223 rm -rf conftest.one conftest.two conftest.dir
3224 echo one > conftest.one
3225 echo two > conftest.two
3227 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3228 test -s conftest.one && test -s conftest.two &&
3229 test -s conftest.dir/conftest.one &&
3230 test -s conftest.dir/conftest.two
3232 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3245 rm -rf conftest.one conftest.two conftest.dir
3248 if test "${ac_cv_path_install+set}" = set; then
3249 INSTALL=$ac_cv_path_install
3251 # As a last resort, use the slow shell script. Don't cache a
3252 # value for INSTALL within a source directory, because that will
3253 # break other packages using the cache if that directory is
3254 # removed, or if the value is a relative name.
3255 INSTALL=$ac_install_sh
3258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3259 $as_echo "$INSTALL" >&6; }
3261 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3262 # It thinks the first close brace ends the variable substitution.
3263 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3265 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3267 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3270 $as_echo_n "checking whether build environment is sane... " >&6; }
3273 echo timestamp > conftest.file
3274 # Reject unsafe characters in $srcdir or the absolute working directory
3275 # name. Accept space and tab only in the latter.
3279 *[\\\"\#\$\&\'\`$am_lf]*)
3280 as_fn_error
"unsafe absolute working directory name" "$LINENO" 5;;
3283 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
3284 as_fn_error
"unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3287 # Do `set' in a subshell so we don't clobber the current shell's
3288 # arguments. Must try -L first in case configure is actually a
3289 # symlink; some systems play weird games with the mod time of symlinks
3290 # (eg FreeBSD returns the mod time of the symlink's containing
3293 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3294 if test "$*" = "X"; then
3296 set X
`ls -t "$srcdir/configure" conftest.file`
3299 if test "$*" != "X $srcdir/configure conftest.file" \
3300 && test "$*" != "X conftest.file $srcdir/configure"; then
3302 # If neither matched, then we have a broken ls. This can happen
3303 # if, for instance, CONFIG_SHELL is bash and it inherits a
3304 # broken ls alias from the environment. This has actually
3305 # happened. Such a system could not be considered "sane".
3306 as_fn_error
"ls -t appears to fail. Make sure there is not a broken
3307 alias in your environment" "$LINENO" 5
3310 test "$2" = conftest.
file
3316 as_fn_error
"newly created file is older than distributed files!
3317 Check your system clock" "$LINENO" 5
3319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3320 $as_echo "yes" >&6; }
3321 test "$program_prefix" != NONE
&&
3322 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
3323 # Use a double $ so make ignores it.
3324 test "$program_suffix" != NONE
&&
3325 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
3326 # Double any \ or $.
3327 # By default was `s,x,x', remove it if useless.
3328 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
3329 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
3331 # expand $ac_aux_dir to an absolute path
3332 am_aux_dir
=`cd $ac_aux_dir && pwd`
3334 if test x
"${MISSING+set}" != xset
; then
3337 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
3339 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
3342 # Use eval to expand $SHELL
3343 if eval "$MISSING --run true"; then
3344 am_missing_run
="$MISSING --run "
3347 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3348 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3351 if test x
"${install_sh}" != xset
; then
3354 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
3356 install_sh
="\${SHELL} $am_aux_dir/install-sh"
3360 # Installed binaries are usually stripped using `strip' when the user
3361 # run `make install-strip'. However `strip' might not be the right
3362 # tool to use in cross-compilation environments, therefore Automake
3363 # will honor the `STRIP' environment variable to overrule this program.
3364 if test "$cross_compiling" != no
; then
3365 if test -n "$ac_tool_prefix"; then
3366 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3367 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
3368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3369 $as_echo_n "checking for $ac_word... " >&6; }
3370 if test "${ac_cv_prog_STRIP+set}" = set; then :
3371 $as_echo_n "(cached) " >&6
3373 if test -n "$STRIP"; then
3374 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
3376 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3380 test -z "$as_dir" && as_dir
=.
3381 for ac_exec_ext
in '' $ac_executable_extensions; do
3382 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3383 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
3384 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3393 STRIP
=$ac_cv_prog_STRIP
3394 if test -n "$STRIP"; then
3395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3396 $as_echo "$STRIP" >&6; }
3398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3399 $as_echo "no" >&6; }
3404 if test -z "$ac_cv_prog_STRIP"; then
3406 # Extract the first word of "strip", so it can be a program name with args.
3407 set dummy strip
; ac_word
=$2
3408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3409 $as_echo_n "checking for $ac_word... " >&6; }
3410 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3411 $as_echo_n "(cached) " >&6
3413 if test -n "$ac_ct_STRIP"; then
3414 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
3416 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3420 test -z "$as_dir" && as_dir
=.
3421 for ac_exec_ext
in '' $ac_executable_extensions; do
3422 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3423 ac_cv_prog_ac_ct_STRIP
="strip"
3424 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3433 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
3434 if test -n "$ac_ct_STRIP"; then
3435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3436 $as_echo "$ac_ct_STRIP" >&6; }
3438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3439 $as_echo "no" >&6; }
3442 if test "x$ac_ct_STRIP" = x
; then
3445 case $cross_compiling:$ac_tool_warned in
3447 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3448 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3449 ac_tool_warned
=yes ;;
3454 STRIP
="$ac_cv_prog_STRIP"
3458 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
3460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3461 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3462 if test -z "$MKDIR_P"; then
3463 if test "${ac_cv_path_mkdir+set}" = set; then :
3464 $as_echo_n "(cached) " >&6
3466 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3467 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
3470 test -z "$as_dir" && as_dir
=.
3471 for ac_prog
in mkdir gmkdir
; do
3472 for ac_exec_ext
in '' $ac_executable_extensions; do
3473 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } ||
continue
3474 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3475 'mkdir (GNU coreutils) '* | \
3476 'mkdir (coreutils) '* | \
3477 'mkdir (fileutils) '4.1*)
3478 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
3488 test -d .
/--version && rmdir .
/--version
3489 if test "${ac_cv_path_mkdir+set}" = set; then
3490 MKDIR_P
="$ac_cv_path_mkdir -p"
3492 # As a last resort, use the slow shell script. Don't cache a
3493 # value for MKDIR_P within a source directory, because that will
3494 # break other packages using the cache if that directory is
3495 # removed, or if the value is a relative name.
3496 MKDIR_P
="$ac_install_sh -d"
3499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3500 $as_echo "$MKDIR_P" >&6; }
3505 [\\/$
]* | ?
:[\\/]*) ;;
3506 */*) mkdir_p
="\$(top_builddir)/$mkdir_p" ;;
3509 for ac_prog
in gawk mawk nawk
awk
3511 # Extract the first word of "$ac_prog", so it can be a program name with args.
3512 set dummy
$ac_prog; ac_word
=$2
3513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3514 $as_echo_n "checking for $ac_word... " >&6; }
3515 if test "${ac_cv_prog_AWK+set}" = set; then :
3516 $as_echo_n "(cached) " >&6
3518 if test -n "$AWK"; then
3519 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
3521 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3525 test -z "$as_dir" && as_dir
=.
3526 for ac_exec_ext
in '' $ac_executable_extensions; do
3527 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3528 ac_cv_prog_AWK
="$ac_prog"
3529 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3539 if test -n "$AWK"; then
3540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3541 $as_echo "$AWK" >&6; }
3543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3544 $as_echo "no" >&6; }
3548 test -n "$AWK" && break
3551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3552 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3554 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3555 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3556 $as_echo_n "(cached) " >&6
3558 cat >conftest.
make <<\_ACEOF
3561 @
echo '@@@%%%=$(MAKE)=@@@%%%'
3563 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3564 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3566 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
3568 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
3572 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
3573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3574 $as_echo "yes" >&6; }
3577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3578 $as_echo "no" >&6; }
3579 SET_MAKE
="MAKE=${MAKE-make}"
3582 rm -rf .tst
2>/dev
/null
3583 mkdir .tst
2>/dev
/null
3584 if test -d .tst
; then
3589 rmdir .tst
2>/dev
/null
3591 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3592 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3593 # is not polluted with repeated "-I."
3594 am__isrc
=' -I$(srcdir)'
3595 # test to see if srcdir already configured
3596 if test -f $srcdir/config.status
; then
3597 as_fn_error
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3601 # test whether we have cygpath
3602 if test -z "$CYGPATH_W"; then
3603 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
3604 CYGPATH_W
='cygpath -w'
3611 # Define the identity of the package.
3616 cat >>confdefs.h
<<_ACEOF
3617 #define PACKAGE "$PACKAGE"
3621 cat >>confdefs.h
<<_ACEOF
3622 #define VERSION "$VERSION"
3625 # Some tools Automake needs.
3627 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3630 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
3633 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3636 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
3639 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
3641 # We need awk for the "check" target. The system "awk" is bad on
3643 # Always define AMTAR for backward compatibility.
3645 AMTAR
=${AMTAR-"${am_missing_run}tar"}
3647 am__tar
='${AMTAR} chof - "$$tardir"'; am__untar
='${AMTAR} xf -'
3656 lispdir
='${datadir}/emacs/${version}/lisp'
3657 locallisppath
='${datadir}/emacs/${version}/site-lisp:'\
3658 '${datadir}/emacs/site-lisp'
3659 lisppath
='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
3660 etcdir
='${datadir}/emacs/${version}/etc'
3661 archlibdir
='${libexecdir}/emacs/${version}/${configuration}'
3662 docdir
='${datadir}/emacs/${version}/etc'
3663 gamedir
='${localstatedir}/games/emacs'
3668 # Check whether --with-pop was given.
3669 if test "${with_pop+set}" = set; then :
3675 if test "$with_pop" = yes; then
3676 $as_echo "#define MAIL_USE_POP 1" >>confdefs.h
3681 # Check whether --with-kerberos was given.
3682 if test "${with_kerberos+set}" = set; then :
3683 withval
=$with_kerberos;
3688 if test "$with_kerberos" != no
; then
3689 $as_echo "#define KERBEROS 1" >>confdefs.h
3694 # Check whether --with-kerberos5 was given.
3695 if test "${with_kerberos5+set}" = set; then :
3696 withval
=$with_kerberos5;
3701 if test "${with_kerberos5}" != no
; then
3702 if test "${with_kerberos}" = no
; then
3704 $as_echo "#define KERBEROS 1" >>confdefs.h
3708 $as_echo "#define KERBEROS5 1" >>confdefs.h
3713 # Check whether --with-hesiod was given.
3714 if test "${with_hesiod+set}" = set; then :
3715 withval
=$with_hesiod;
3720 if test "$with_hesiod" != no
; then
3722 $as_echo "#define HESIOD 1" >>confdefs.h
3727 # Check whether --with-mmdf was given.
3728 if test "${with_mmdf+set}" = set; then :
3734 if test "$with_mmdf" != no
; then
3736 $as_echo "#define MAIL_USE_MMDF 1" >>confdefs.h
3741 # Check whether --with-mail-unlink was given.
3742 if test "${with_mail_unlink+set}" = set; then :
3743 withval
=$with_mail_unlink;
3748 if test "$with_mail_unlink" != no
; then
3750 $as_echo "#define MAIL_UNLINK_SPOOL 1" >>confdefs.h
3755 # Check whether --with-mailhost was given.
3756 if test "${with_mailhost+set}" = set; then :
3757 withval
=$with_mailhost;
3758 cat >>confdefs.h
<<_ACEOF
3759 #define MAILHOST "$withval"
3766 # Check whether --with-sound was given.
3767 if test "${with_sound+set}" = set; then :
3768 withval
=$with_sound;
3775 # Check whether --with-sync-input was given.
3776 if test "${with_sync_input+set}" = set; then :
3777 withval
=$with_sync_input;
3782 if test "$with_sync_input" = yes; then
3784 $as_echo "#define SYNC_INPUT 1" >>confdefs.h
3789 # Check whether --with-x-toolkit was given.
3790 if test "${with_x_toolkit+set}" = set; then :
3791 withval
=$with_x_toolkit; case "${withval}" in
3792 y | ye |
yes ) val
=gtk
;;
3794 l | lu | luc | luci | lucid
) val
=lucid
;;
3795 a |
at | ath | athe | athen | athena
) val
=athena
;;
3796 m | mo | mot | moti | motif
) val
=motif
;;
3797 g | gt | gtk
) val
=gtk
;;
3800 as_fn_error
"\`--with-x-toolkit=$withval' is invalid;
3801 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif', \`gtk' or
3802 \`gtk3'. \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." "$LINENO" 5
3811 # Check whether --with-xpm was given.
3812 if test "${with_xpm+set}" = set; then :
3819 # Check whether --with-jpeg was given.
3820 if test "${with_jpeg+set}" = set; then :
3827 # Check whether --with-tiff was given.
3828 if test "${with_tiff+set}" = set; then :
3835 # Check whether --with-gif was given.
3836 if test "${with_gif+set}" = set; then :
3843 # Check whether --with-png was given.
3844 if test "${with_png+set}" = set; then :
3851 # Check whether --with-rsvg was given.
3852 if test "${with_rsvg+set}" = set; then :
3859 # Check whether --with-xml2 was given.
3860 if test "${with_xml2+set}" = set; then :
3867 # Check whether --with-imagemagick was given.
3868 if test "${with_imagemagick+set}" = set; then :
3869 withval
=$with_imagemagick;
3871 with_imagemagick
=yes
3876 # Check whether --with-xft was given.
3877 if test "${with_xft+set}" = set; then :
3884 # Check whether --with-libotf was given.
3885 if test "${with_libotf+set}" = set; then :
3886 withval
=$with_libotf;
3892 # Check whether --with-m17n-flt was given.
3893 if test "${with_m17n_flt+set}" = set; then :
3894 withval
=$with_m17n_flt;
3901 # Check whether --with-toolkit-scroll-bars was given.
3902 if test "${with_toolkit_scroll_bars+set}" = set; then :
3903 withval
=$with_toolkit_scroll_bars;
3905 with_toolkit_scroll_bars
=yes
3909 # Check whether --with-xaw3d was given.
3910 if test "${with_xaw3d+set}" = set; then :
3911 withval
=$with_xaw3d;
3917 # Check whether --with-xim was given.
3918 if test "${with_xim+set}" = set; then :
3925 # Check whether --with-ns was given.
3926 if test "${with_ns+set}" = set; then :
3934 # Check whether --with-gpm was given.
3935 if test "${with_gpm+set}" = set; then :
3942 # Check whether --with-dbus was given.
3943 if test "${with_dbus+set}" = set; then :
3950 # Check whether --with-gconf was given.
3951 if test "${with_gconf+set}" = set; then :
3952 withval
=$with_gconf;
3958 # Check whether --with-selinux was given.
3959 if test "${with_selinux+set}" = set; then :
3960 withval
=$with_selinux;
3966 # Check whether --with-gnutls was given.
3967 if test "${with_gnutls+set}" = set; then :
3968 withval
=$with_gnutls;
3974 ## For the times when you want to build Emacs but don't have
3975 ## a suitable makeinfo, and can live without the manuals.
3977 # Check whether --with-makeinfo was given.
3978 if test "${with_makeinfo+set}" = set; then :
3979 withval
=$with_makeinfo;
3985 ## This is an option because I do not know if all info/man support
3986 ## compressed files, nor how to test if they do so.
3988 # Check whether --with-compress-info was given.
3989 if test "${with_compress_info+set}" = set; then :
3990 withval
=$with_compress_info;
3992 with_compress_info
=yes
3995 if test $with_compress_info = yes; then
4003 # Check whether --with-pkg-config-prog was given.
4004 if test "${with_pkg_config_prog+set}" = set; then :
4005 withval
=$with_pkg_config_prog;
4008 if test "X${with_pkg_config_prog}" != X
; then
4009 if test "${with_pkg_config_prog}" != yes; then
4010 PKG_CONFIG
="${with_pkg_config_prog}"
4016 # Check whether --with-crt-dir was given.
4017 if test "${with_crt_dir+set}" = set; then :
4018 withval
=$with_crt_dir;
4021 CRT_DIR
="${with_crt_dir}"
4024 # Check whether --with-gameuser was given.
4025 if test "${with_gameuser+set}" = set; then :
4026 withval
=$with_gameuser;
4029 test "X${with_gameuser}" != X
&& test "${with_gameuser}" != yes \
4030 && gameuser
="${with_gameuser}"
4031 test "X$gameuser" = X
&& gameuser
=games
4034 # Check whether --with-gnustep-conf was given.
4035 if test "${with_gnustep_conf+set}" = set; then :
4036 withval
=$with_gnustep_conf;
4039 test "X${with_gnustep_conf}" != X
&& test "${with_gnustep_conf}" != yes && \
4040 GNUSTEP_CONFIG_FILE
="${with_gnustep_conf}"
4041 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
4042 GNUSTEP_CONFIG_FILE
=/etc
/GNUstep
/GNUstep.conf
4044 # Check whether --enable-ns-self-contained was given.
4045 if test "${enable_ns_self_contained+set}" = set; then :
4046 enableval
=$enable_ns_self_contained; EN_NS_SELF_CONTAINED
=$enableval
4048 EN_NS_SELF_CONTAINED
=yes
4052 # Check whether --enable-asserts was given.
4053 if test "${enable_asserts+set}" = set; then :
4054 enableval
=$enable_asserts; USE_XASSERTS
=$enableval
4060 # Check whether --enable-maintainer-mode was given.
4061 if test "${enable_maintainer_mode+set}" = set; then :
4062 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
4064 USE_MAINTAINER_MODE
=yes
4067 if test $USE_MAINTAINER_MODE = yes; then
4074 # Check whether --enable-locallisppath was given.
4075 if test "${enable_locallisppath+set}" = set; then :
4076 enableval
=$enable_locallisppath; if test "${enableval}" = "no"; then
4078 elif test "${enableval}" != "yes"; then
4079 locallisppath
=${enableval}
4084 # Check whether --enable-checking was given.
4085 if test "${enable_checking+set}" = set; then :
4086 enableval
=$enable_checking; ac_checking_flags
="${enableval}"
4089 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
4090 for check
in $ac_checking_flags
4093 # these set all the flags to specific states
4094 yes) ac_enable_checking
=1 ;;
4095 no
) ac_enable_checking
= ;
4096 ac_gc_check_stringbytes
= ;
4097 ac_gc_check_string_overrun
= ;
4098 ac_gc_check_string_free_list
= ;
4099 ac_xmalloc_overrun
= ;
4100 ac_gc_check_cons_list
= ;;
4101 all
) ac_enable_checking
=1 ;
4102 ac_gc_check_stringbytes
=1 ;
4103 ac_gc_check_string_overrun
=1 ;
4104 ac_gc_check_string_free_list
=1 ;
4105 ac_xmalloc_overrun
=1 ;
4106 ac_gc_check_cons_list
=1 ;;
4107 # these enable particular checks
4108 stringbytes
) ac_gc_check_stringbytes
=1 ;;
4109 stringoverrun
) ac_gc_check_string_overrun
=1 ;;
4110 stringfreelist
) ac_gc_check_string_free_list
=1 ;;
4111 xmallocoverrun
) ac_xmalloc_overrun
=1 ;;
4112 conslist
) ac_gc_check_cons_list
=1 ;;
4113 *) as_fn_error
"unknown check category $check" "$LINENO" 5 ;;
4118 if test x
$ac_enable_checking != x
; then
4120 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
4123 if test x
$ac_gc_check_stringbytes != x
; then
4125 $as_echo "#define GC_CHECK_STRING_BYTES 1" >>confdefs.h
4128 if test x
$ac_gc_check_string_overrun != x
; then
4130 $as_echo "#define GC_CHECK_STRING_OVERRUN 1" >>confdefs.h
4133 if test x
$ac_gc_check_string_free_list != x
; then
4135 $as_echo "#define GC_CHECK_STRING_FREE_LIST 1" >>confdefs.h
4138 if test x
$ac_xmalloc_overrun != x
; then
4140 $as_echo "#define XMALLOC_OVERRUN_CHECK 1" >>confdefs.h
4143 if test x
$ac_gc_check_cons_list != x
; then
4145 $as_echo "#define GC_CHECK_CONS_LIST 1" >>confdefs.h
4149 # Check whether --enable-use-lisp-union-type was given.
4150 if test "${enable_use_lisp_union_type+set}" = set; then :
4151 enableval
=$enable_use_lisp_union_type; if test "${enableval}" != "no"; then
4153 $as_echo "#define USE_LISP_UNION_TYPE 1" >>confdefs.h
4160 # Check whether --enable-profiling was given.
4161 if test "${enable_profiling+set}" = set; then :
4162 enableval
=$enable_profiling; ac_enable_profiling
="${enableval}"
4165 if test x
$ac_enable_profiling != x
; then
4166 PROFILING_CFLAGS
="-DPROFILING=1 -pg"
4172 # Check whether --enable-autodepend was given.
4173 if test "${enable_autodepend+set}" = set; then :
4174 enableval
=$enable_autodepend; ac_enable_autodepend
="${enableval}"
4176 ac_enable_autodepend
=yes
4180 #### Make srcdir absolute, if it isn't already. It's important to
4181 #### avoid running the path through pwd unnecessarily, since pwd can
4182 #### give you automounter prefixes, which can go away. We do all this
4183 #### so Emacs can find its files when run uninstalled.
4184 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
4189 ## We may be able to use the $PWD environment variable to make this
4190 ## absolute. But sometimes PWD is inaccurate.
4191 ## Note: we used to use ${PWD} at the end instead of `pwd`,
4192 ## but that tested only for a well-formed and valid PWD,
4193 ## it did not object when PWD was well-formed and valid but just wrong.
4194 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
4198 srcdir
="`(cd ${srcdir}; pwd)`"
4201 * ) srcdir
="`(cd ${srcdir}; pwd)`" ;;
4204 #### Check if the source directory already has a configured system in it.
4205 if test `pwd` != `(cd ${srcdir} && pwd)` \
4206 && test -f "${srcdir}/src/config.h" ; then
4207 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The directory tree \`${srcdir}' is being used
4208 as a build directory right now; it has been configured in its own
4209 right. To configure in another directory as well, you MUST
4210 use GNU make. If you do not have GNU make, then you must
4211 now do \`make distclean' in ${srcdir},
4212 and then run $0 again." >&5
4213 $as_echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
4214 as a build directory right now; it has been configured in its own
4215 right. To configure in another directory as well, you MUST
4216 use GNU make. If you do not have GNU make, then you must
4217 now do \`make distclean' in ${srcdir},
4218 and then run $0 again." >&2;}
4221 #### Given the configuration name, set machfile and opsysfile to the
4222 #### names of the m/*.h and s/*.h files we should use.
4224 ### Canonicalize the configuration name.
4226 # Make sure we can run config.sub.
4227 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
4228 as_fn_error
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4231 $as_echo_n "checking build system type... " >&6; }
4232 if test "${ac_cv_build+set}" = set; then :
4233 $as_echo_n "(cached) " >&6
4235 ac_build_alias
=$build_alias
4236 test "x$ac_build_alias" = x
&&
4237 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
4238 test "x$ac_build_alias" = x
&&
4239 as_fn_error
"cannot guess build type; you must specify one" "$LINENO" 5
4240 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4241 as_fn_error
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4245 $as_echo "$ac_cv_build" >&6; }
4246 case $ac_cv_build in
4248 *) as_fn_error
"invalid value of canonical build" "$LINENO" 5;;
4251 ac_save_IFS
=$IFS; IFS
='-'
4257 # Remember, the first character of IFS is used to create $*,
4258 # except with old shells:
4261 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
4264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4265 $as_echo_n "checking host system type... " >&6; }
4266 if test "${ac_cv_host+set}" = set; then :
4267 $as_echo_n "(cached) " >&6
4269 if test "x$host_alias" = x
; then
4270 ac_cv_host
=$ac_cv_build
4272 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4273 as_fn_error
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4278 $as_echo "$ac_cv_host" >&6; }
4281 *) as_fn_error
"invalid value of canonical host" "$LINENO" 5;;
4284 ac_save_IFS
=$IFS; IFS
='-'
4290 # Remember, the first character of IFS is used to create $*,
4291 # except with old shells:
4294 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
4298 configuration
=${host_alias-${build_alias-$host}}
4302 ### If you add support for a new configuration, add code to this
4303 ### switch statement to recognize your configuration name and select
4304 ### the appropriate operating system and machine description files.
4306 ### You would hope that you could choose an m/*.h file pretty much
4307 ### based on the machine portion of the configuration name, and an s/*.h
4308 ### file based on the operating system portion. However, it turns out
4309 ### that each m/*.h file is pretty manufacturer-specific - for
4310 ### example mips.h is MIPS
4311 ### So we basically have to have a special case for each
4312 ### configuration name.
4314 ### As far as handling version numbers on operating systems is
4315 ### concerned, make sure things will fail in a fixable way. If
4316 ### /etc/MACHINES doesn't say anything about version numbers, be
4317 ### prepared to handle anything reasonably. If version numbers
4318 ### matter, be sure /etc/MACHINES says something about it.
4320 machine
='' opsys
='' unported
=no
4321 case "${canonical}" in
4326 case ${canonical} in
4327 alpha
*) machine
=alpha
;;
4328 s390-
*) machine
=ibms390
;;
4329 s390x-
*) machine
=ibms390x
;;
4330 powerpc
*) machine
=macppc
;;
4331 sparc
*) machine
=sparc
;;
4332 ia64
*) machine
=ia64
;;
4333 m68k
*) machine
=m68k
;;
4334 x86_64
*) machine
=amdx86-64
;;
4341 case "${canonical}" in
4342 alpha
*) machine
=alpha
;;
4343 amd64-
*|x86_64-
*) machine
=amdx86-64
;;
4344 ia64-
*) machine
=ia64
;;
4345 i
[3456]86-*) machine
=intel386
;;
4346 powerpc-
*) machine
=macppc
;;
4347 sparc-
*) machine
=sparc
;;
4348 sparc64-
*) machine
=sparc
;;
4352 ## FreeBSD kernel + glibc based userland
4355 case "${canonical}" in
4356 alpha
*) machine
=alpha
;;
4357 amd64-
*|x86_64-
*) machine
=amdx86-64
;;
4358 ia64-
*) machine
=ia64
;;
4359 i
[3456]86-*) machine
=intel386
;;
4360 powerpc-
*) machine
=macppc
;;
4361 sparc-
*) machine
=sparc
;;
4362 sparc64-
*) machine
=sparc
;;
4369 case "${canonical}" in
4370 alpha
*) machine
=alpha
;;
4371 x86_64-
*) machine
=amdx86-64
;;
4372 i
[3456]86-*) machine
=intel386
;;
4373 m68k-
*) machine
=m68k
;;
4374 powerpc-
*) machine
=macppc
;;
4375 sparc
*-) machine
=sparc
;;
4376 vax-
*) machine
=vax
;;
4383 case "${canonical}" in
4384 alpha
*) machine
=alpha
;;
4385 x86_64-
*) machine
=amdx86-64
;;
4386 i386-
*) machine
=intel386
;;
4387 powerpc-
*) machine
=macppc
;;
4388 sparc
*) machine
=sparc
;;
4389 vax-
*) machine
=vax
;;
4393 ## Apple Darwin / Mac OS X
4395 case "${canonical}" in
4396 i
[3456]86-* ) machine
=intel386
;;
4397 powerpc-
* ) machine
=macppc
;;
4398 x86_64-
* ) machine
=amdx86-64
;;
4402 # Define CPP as follows to make autoconf work correctly.
4403 CPP
="${CC-cc} -E -no-cpp-precomp"
4404 # Use fink packages if available.
4405 if test -d /sw
/include
&& test -d /sw
/lib
; then
4406 GCC_TEST_OPTIONS
="-I/sw/include -L/sw/lib"
4407 CPP
="${CPP} ${GCC_TEST_OPTIONS}"
4408 NON_GCC_TEST_OPTIONS
=${GCC_TEST_OPTIONS}
4412 ## HP 9000 series 700 and 800, running HP/UX
4413 hppa
*-hp-hpux10.2
* )
4416 hppa
*-hp-hpux1[1-9]* )
4418 CFLAGS
="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
4421 ia64
*-hp-hpux1[1-9]* )
4422 machine
=hp800 opsys
=hpux11
4423 ## FIXME. Peter O'Gorman reports that dumping using unexelf.o doesn't
4424 ## work either: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=6811
4428 hppa
*-*-linux-gnu* )
4429 machine
=hp800 opsys
=gnu-linux
4433 rs6000-ibm-aix4.
[23]* )
4434 machine
=ibmrs6000 opsys
=aix4-2
4436 powerpc-ibm-aix4.
[23]* )
4437 machine
=ibmrs6000 opsys
=aix4-2
4439 rs6000-ibm-aix
[56]* )
4440 machine
=ibmrs6000 opsys
=aix4-2
4442 powerpc-ibm-aix
[56]* )
4443 machine
=ibmrs6000 opsys
=aix4-2
4446 ## Silicon Graphics machines
4449 machine
=iris4d opsys
=irix6-5
4450 # Without defining _LANGUAGE_C, things get masked out in the headers
4451 # so that, for instance, grepping for `free' in stdlib.h fails and
4452 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
4453 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
4454 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
4459 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* \
4460 | x86_64-
*-solaris2* | x86_64-
*-sunos5*)
4461 case "${canonical}" in
4462 i
[3456]86-*-* ) machine
=intel386
;;
4463 amd64-
*-*|x86_64-
*-*) machine
=amdx86-64
;;
4464 sparc
* ) machine
=sparc
;;
4467 case "${canonical}" in
4468 *-sunos5.6
* |
*-solaris2.6
* )
4470 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
4473 *-sunos5.
[7-9]* |
*-solaris2.
[7-9]* )
4475 emacs_check_sunpro_c
=yes
4476 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
4478 *-sunos5* |
*-solaris* )
4480 emacs_check_sunpro_c
=yes
4481 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
4484 ## Watch out for a compiler that we know will not work.
4485 case "${canonical}" in
4486 *-solaris* |
*-sunos5* )
4487 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
4488 ## /usr/ucb/cc doesn't work;
4489 ## we should find some other compiler that does work.
4497 ## Intel 386 machines where we don't care about the manufacturer.
4500 case "${canonical}" in
4501 *-cygwin ) opsys
=cygwin
;;
4502 *-darwin* ) opsys
=darwin
4503 CPP
="${CC-cc} -E -no-cpp-precomp"
4505 *-sysv4.2uw
* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
4506 *-sysv5uw* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
4507 *-sysv5OpenUNIX* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
4508 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
4517 ### If the code above didn't choose an operating system, just choose
4518 ### an operating system based on the configuration name. You really
4519 ### only want to use this when you have no idea what the right
4520 ### operating system is; if you know what operating systems a machine
4521 ### runs, it's cleaner to make it explicit in the case statement
4523 if test x
"${opsys}" = x
; then
4524 case "${canonical}" in
4525 *-gnu* ) opsys
=gnu
;;
4534 if test $unported = yes; then
4535 as_fn_error
"Emacs hasn't been ported to \`${canonical}' systems.
4536 Check \`etc/MACHINES' for recognized configuration names." "$LINENO" 5
4539 if test -n "$machine"; then
4540 machfile
="m/${machine}.h"
4544 opsysfile
="s/${opsys}.h"
4547 #### Choose a compiler.
4548 test -n "$CC" && cc_specified
=yes
4550 # Save the value of CFLAGS that the user specified.
4551 SPECIFIED_CFLAGS
="$CFLAGS"
4554 ac_cpp
='$CPP $CPPFLAGS'
4555 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4556 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4557 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4558 if test -n "$ac_tool_prefix"; then
4559 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4560 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
4561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4562 $as_echo_n "checking for $ac_word... " >&6; }
4563 if test "${ac_cv_prog_CC+set}" = set; then :
4564 $as_echo_n "(cached) " >&6
4566 if test -n "$CC"; then
4567 ac_cv_prog_CC
="$CC" # Let the user override the test.
4569 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4573 test -z "$as_dir" && as_dir
=.
4574 for ac_exec_ext
in '' $ac_executable_extensions; do
4575 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4576 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
4577 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4587 if test -n "$CC"; then
4588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4589 $as_echo "$CC" >&6; }
4591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4592 $as_echo "no" >&6; }
4597 if test -z "$ac_cv_prog_CC"; then
4599 # Extract the first word of "gcc", so it can be a program name with args.
4600 set dummy gcc
; ac_word
=$2
4601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4602 $as_echo_n "checking for $ac_word... " >&6; }
4603 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4604 $as_echo_n "(cached) " >&6
4606 if test -n "$ac_ct_CC"; then
4607 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4609 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4613 test -z "$as_dir" && as_dir
=.
4614 for ac_exec_ext
in '' $ac_executable_extensions; do
4615 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4616 ac_cv_prog_ac_ct_CC
="gcc"
4617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4626 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4627 if test -n "$ac_ct_CC"; then
4628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4629 $as_echo "$ac_ct_CC" >&6; }
4631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4632 $as_echo "no" >&6; }
4635 if test "x$ac_ct_CC" = x
; then
4638 case $cross_compiling:$ac_tool_warned in
4640 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4641 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4642 ac_tool_warned
=yes ;;
4650 if test -z "$CC"; then
4651 if test -n "$ac_tool_prefix"; then
4652 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4653 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
4654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4655 $as_echo_n "checking for $ac_word... " >&6; }
4656 if test "${ac_cv_prog_CC+set}" = set; then :
4657 $as_echo_n "(cached) " >&6
4659 if test -n "$CC"; then
4660 ac_cv_prog_CC
="$CC" # Let the user override the test.
4662 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4666 test -z "$as_dir" && as_dir
=.
4667 for ac_exec_ext
in '' $ac_executable_extensions; do
4668 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4669 ac_cv_prog_CC
="${ac_tool_prefix}cc"
4670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4680 if test -n "$CC"; then
4681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4682 $as_echo "$CC" >&6; }
4684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4685 $as_echo "no" >&6; }
4691 if test -z "$CC"; then
4692 # Extract the first word of "cc", so it can be a program name with args.
4693 set dummy cc
; ac_word
=$2
4694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4695 $as_echo_n "checking for $ac_word... " >&6; }
4696 if test "${ac_cv_prog_CC+set}" = set; then :
4697 $as_echo_n "(cached) " >&6
4699 if test -n "$CC"; then
4700 ac_cv_prog_CC
="$CC" # Let the user override the test.
4703 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4707 test -z "$as_dir" && as_dir
=.
4708 for ac_exec_ext
in '' $ac_executable_extensions; do
4709 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4710 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4711 ac_prog_rejected
=yes
4715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4722 if test $ac_prog_rejected = yes; then
4723 # We found a bogon in the path, so make sure we never use it.
4724 set dummy
$ac_cv_prog_CC
4726 if test $# != 0; then
4727 # We chose a different compiler from the bogus one.
4728 # However, it has the same basename, so the bogon will be chosen
4729 # first if we set CC to just the basename; use the full file name.
4731 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
4737 if test -n "$CC"; then
4738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4739 $as_echo "$CC" >&6; }
4741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4742 $as_echo "no" >&6; }
4747 if test -z "$CC"; then
4748 if test -n "$ac_tool_prefix"; then
4749 for ac_prog
in cl.exe
4751 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4752 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4754 $as_echo_n "checking for $ac_word... " >&6; }
4755 if test "${ac_cv_prog_CC+set}" = set; then :
4756 $as_echo_n "(cached) " >&6
4758 if test -n "$CC"; then
4759 ac_cv_prog_CC
="$CC" # Let the user override the test.
4761 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4765 test -z "$as_dir" && as_dir
=.
4766 for ac_exec_ext
in '' $ac_executable_extensions; do
4767 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4768 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
4769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4779 if test -n "$CC"; then
4780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4781 $as_echo "$CC" >&6; }
4783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4784 $as_echo "no" >&6; }
4788 test -n "$CC" && break
4791 if test -z "$CC"; then
4793 for ac_prog
in cl.exe
4795 # Extract the first word of "$ac_prog", so it can be a program name with args.
4796 set dummy
$ac_prog; ac_word
=$2
4797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4798 $as_echo_n "checking for $ac_word... " >&6; }
4799 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4800 $as_echo_n "(cached) " >&6
4802 if test -n "$ac_ct_CC"; then
4803 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4805 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4809 test -z "$as_dir" && as_dir
=.
4810 for ac_exec_ext
in '' $ac_executable_extensions; do
4811 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4812 ac_cv_prog_ac_ct_CC
="$ac_prog"
4813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4822 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4823 if test -n "$ac_ct_CC"; then
4824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4825 $as_echo "$ac_ct_CC" >&6; }
4827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4828 $as_echo "no" >&6; }
4832 test -n "$ac_ct_CC" && break
4835 if test "x$ac_ct_CC" = x
; then
4838 case $cross_compiling:$ac_tool_warned in
4840 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4841 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4842 ac_tool_warned
=yes ;;
4851 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4852 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4853 as_fn_error
"no acceptable C compiler found in \$PATH
4854 See \`config.log' for more details." "$LINENO" 5; }
4856 # Provide some information about the compiler.
4857 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4860 for ac_option
in --version -v -V -qversion; do
4861 { { ac_try
="$ac_compiler $ac_option >&5"
4863 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4864 *) ac_try_echo=$ac_try;;
4866 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4867 $as_echo "$ac_try_echo"; } >&5
4868 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4870 if test -s conftest.err; then
4872 ... rest of stderr output deleted ...
4873 10q' conftest.err >conftest.er1
4874 cat conftest.er1 >&5
4876 rm -f conftest.er1 conftest.err
4877 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4878 test $ac_status = 0; }
4881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4882 /* end confdefs.h. */
4892 ac_clean_files_save=$ac_clean_files
4893 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4894 # Try to create an executable without -o first, disregard a.out.
4895 # It will help us diagnose broken compilers, and finding out an intuition
4897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4898 $as_echo_n "checking whether the C compiler works... " >&6; }
4899 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
4901 # The possible output files:
4902 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4905 for ac_file in $ac_files
4908 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4909 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4914 if { { ac_try="$ac_link_default"
4916 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4917 *) ac_try_echo
=$ac_try;;
4919 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4920 $as_echo "$ac_try_echo"; } >&5
4921 (eval "$ac_link_default") 2>&5
4923 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4924 test $ac_status = 0; }; then :
4925 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4926 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4927 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4928 # so that the user can short-circuit this test for compilers unknown to
4930 for ac_file
in $ac_files ''
4932 test -f "$ac_file" ||
continue
4934 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
4937 # We found the default executable, but exeext='' is most
4941 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
4943 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4945 # We set ac_cv_exeext here because the later test for it is not
4946 # safe: cross compilers may not add the suffix if given an `-o'
4947 # argument, so we may need to know it at that point already.
4948 # Even if this section looks crufty: it has the advantage of
4955 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
4960 if test -z "$ac_file"; then :
4961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4962 $as_echo "no" >&6; }
4963 $as_echo "$as_me: failed program was:" >&5
4964 sed 's/^/| /' conftest.
$ac_ext >&5
4966 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4967 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4968 { as_fn_set_status
77
4969 as_fn_error
"C compiler cannot create executables
4970 See \`config.log' for more details." "$LINENO" 5; }; }
4972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4973 $as_echo "yes" >&6; }
4975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4976 $as_echo_n "checking for C compiler default output file name... " >&6; }
4977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4978 $as_echo "$ac_file" >&6; }
4979 ac_exeext
=$ac_cv_exeext
4981 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
4982 ac_clean_files
=$ac_clean_files_save
4983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4984 $as_echo_n "checking for suffix of executables... " >&6; }
4985 if { { ac_try
="$ac_link"
4987 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4988 *) ac_try_echo=$ac_try;;
4990 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4991 $as_echo "$ac_try_echo"; } >&5
4992 (eval "$ac_link") 2>&5
4994 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4995 test $ac_status = 0; }; then :
4996 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
4997 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
4998 # work properly (i.e., refer to `conftest.exe'), while it won't with
5000 for ac_file
in conftest.exe conftest conftest.
*; do
5001 test -f "$ac_file" ||
continue
5003 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
5004 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
5010 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5011 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5012 as_fn_error
"cannot compute suffix of executables: cannot compile and link
5013 See \`config.log' for more details." "$LINENO" 5; }
5015 rm -f conftest conftest
$ac_cv_exeext
5016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
5017 $as_echo "$ac_cv_exeext" >&6; }
5019 rm -f conftest.
$ac_ext
5020 EXEEXT
=$ac_cv_exeext
5022 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5023 /* end confdefs.h. */
5028 FILE *f = fopen ("conftest.out", "w");
5029 return ferror (f) || fclose (f) != 0;
5035 ac_clean_files
="$ac_clean_files conftest.out"
5036 # Check that the compiler produces executables we can run. If not, either
5037 # the compiler is broken, or we cross compile.
5038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5039 $as_echo_n "checking whether we are cross compiling... " >&6; }
5040 if test "$cross_compiling" != yes; then
5041 { { ac_try
="$ac_link"
5043 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5044 *) ac_try_echo=$ac_try;;
5046 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5047 $as_echo "$ac_try_echo"; } >&5
5048 (eval "$ac_link") 2>&5
5050 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5051 test $ac_status = 0; }
5052 if { ac_try='./conftest$ac_cv_exeext'
5053 { { case "(($ac_try" in
5054 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5055 *) ac_try_echo
=$ac_try;;
5057 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5058 $as_echo "$ac_try_echo"; } >&5
5059 (eval "$ac_try") 2>&5
5061 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5062 test $ac_status = 0; }; }; then
5065 if test "$cross_compiling" = maybe
; then
5068 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5069 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5070 as_fn_error
"cannot run C compiled programs.
5071 If you meant to cross compile, use \`--host'.
5072 See \`config.log' for more details." "$LINENO" 5; }
5076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5077 $as_echo "$cross_compiling" >&6; }
5079 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
5080 ac_clean_files
=$ac_clean_files_save
5081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
5082 $as_echo_n "checking for suffix of object files... " >&6; }
5083 if test "${ac_cv_objext+set}" = set; then :
5084 $as_echo_n "(cached) " >&6
5086 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5087 /* end confdefs.h. */
5097 rm -f conftest.o conftest.obj
5098 if { { ac_try
="$ac_compile"
5100 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5101 *) ac_try_echo=$ac_try;;
5103 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5104 $as_echo "$ac_try_echo"; } >&5
5105 (eval "$ac_compile") 2>&5
5107 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5108 test $ac_status = 0; }; then :
5109 for ac_file in conftest.o conftest.obj conftest.*; do
5110 test -f "$ac_file" || continue;
5112 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5113 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5118 $as_echo "$as_me: failed program was:" >&5
5119 sed 's/^/| /' conftest.$ac_ext >&5
5121 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5122 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5123 as_fn_error "cannot compute suffix of object files
: cannot compile
5124 See \
`config.log' for more details." "$LINENO" 5; }
5126 rm -f conftest.$ac_cv_objext conftest.$ac_ext
5128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5129 $as_echo "$ac_cv_objext" >&6; }
5130 OBJEXT=$ac_cv_objext
5132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5133 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5134 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5135 $as_echo_n "(cached) " >&6
5137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5138 /* end confdefs.h. */
5151 if ac_fn_c_try_compile "$LINENO"; then :
5156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5157 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5161 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5162 if test $ac_compiler_gnu = yes; then
5167 ac_test_CFLAGS=${CFLAGS+set}
5168 ac_save_CFLAGS=$CFLAGS
5169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5170 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5171 if test "${ac_cv_prog_cc_g+set}" = set; then :
5172 $as_echo_n "(cached) " >&6
5174 ac_save_c_werror_flag=$ac_c_werror_flag
5175 ac_c_werror_flag=yes
5178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5179 /* end confdefs.h. */
5189 if ac_fn_c_try_compile "$LINENO"; then :
5193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5194 /* end confdefs.h. */
5204 if ac_fn_c_try_compile "$LINENO"; then :
5207 ac_c_werror_flag=$ac_save_c_werror_flag
5209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5210 /* end confdefs.h. */
5220 if ac_fn_c_try_compile "$LINENO"; then :
5223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5228 ac_c_werror_flag=$ac_save_c_werror_flag
5230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5231 $as_echo "$ac_cv_prog_cc_g" >&6; }
5232 if test "$ac_test_CFLAGS" = set; then
5233 CFLAGS=$ac_save_CFLAGS
5234 elif test $ac_cv_prog_cc_g = yes; then
5235 if test "$GCC" = yes; then
5241 if test "$GCC" = yes; then
5247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5248 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5249 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5250 $as_echo_n "(cached) " >&6
5252 ac_cv_prog_cc_c89=no
5254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5255 /* end confdefs.h. */
5258 #include <sys/types.h>
5259 #include <sys/stat.h>
5260 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5261 struct buf { int x; };
5262 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5263 static char *e (p, i)
5269 static char *f (char * (*g) (char **, int), char **p, ...)
5274 s = g (p, va_arg (v,int));
5279 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5280 function prototypes and stuff, but not '\xHH' hex character constants.
5281 These don't provoke an error unfortunately, instead are silently treated
5282 as 'x'. The following induces an error, until -std is added to get
5283 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5284 array size at least. It's necessary to write '\x00'==0 to get something
5285 that's true only with -std. */
5286 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5288 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5289 inside strings and character constants. */
5291 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5293 int test (int i, double x);
5294 struct s1 {int (*f) (int a);};
5295 struct s2 {int (*f) (double a);};
5296 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5302 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5307 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5308 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5310 CC="$ac_save_CC $ac_arg"
5311 if ac_fn_c_try_compile "$LINENO"; then :
5312 ac_cv_prog_cc_c89=$ac_arg
5314 rm -f core conftest.err conftest.$ac_objext
5315 test "x$ac_cv_prog_cc_c89" != "xno" && break
5317 rm -f conftest.$ac_ext
5322 case "x$ac_cv_prog_cc_c89" in
5324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5325 $as_echo "none needed" >&6; } ;;
5327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5328 $as_echo "unsupported" >&6; } ;;
5330 CC="$CC $ac_cv_prog_cc_c89"
5331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5332 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5334 if test "x$ac_cv_prog_cc_c89" != xno; then :
5339 ac_cpp='$CPP $CPPFLAGS'
5340 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5341 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5342 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5343 DEPDIR="${am__leading_dot}deps"
5345 ac_config_commands="$ac_config_commands depfiles"
5348 am_make=${MAKE-make}
5349 cat > confinc << 'END'
5351 @echo this is the am__doit target
5354 # If we don't find an include directive, just comment out the code.
5355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
5356 $as_echo_n "checking for style of include used by $am_make... " >&6; }
5360 # First try GNU make style include.
5361 echo "include confinc" > confmf
5362 # Ignore all kinds of additional output from `make'.
5363 case `$am_make -s -f confmf 2> /dev/null` in #(
5364 *the\ am__doit\ target*)
5370 # Now try BSD make style include.
5371 if test "$am__include" = "#"; then
5372 echo '.include
"confinc"' > confmf
5373 case `$am_make -s -f confmf 2> /dev/null` in #(
5374 *the\ am__doit\ target*)
5375 am__include=.include
5383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5384 $as_echo "$_am_result" >&6; }
5385 rm -f confinc confmf
5387 # Check whether --enable-dependency-tracking was given.
5388 if test "${enable_dependency_tracking+set}" = set; then :
5389 enableval=$enable_dependency_tracking;
5392 if test "x$enable_dependency_tracking" != xno; then
5393 am_depcomp="$ac_aux_dir/depcomp"
5396 if test "x$enable_dependency_tracking" != xno
; then
5406 depcc
="$CC" am_compiler_list
=
5408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5409 $as_echo_n "checking dependency style of $depcc... " >&6; }
5410 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5411 $as_echo_n "(cached) " >&6
5413 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5414 # We make a subdir and do the tests there. Otherwise we can end up
5415 # making bogus files that we don't know about and never remove. For
5416 # instance it was reported that on HP-UX the gcc test will end up
5417 # making a dummy file named `D' -- because `-MD' means `put the output
5420 # Copy depcomp to subdir because otherwise we won't find it if we're
5421 # using a relative directory.
5422 cp "$am_depcomp" conftest.dir
5424 # We will build objects and dependencies in a subdirectory because
5425 # it helps to detect inapplicable dependency modes. For instance
5426 # both Tru64's cc and ICC support -MD to output dependencies as a
5427 # side effect of compilation, but ICC will put the dependencies in
5428 # the current directory while Tru64 will put them in the object
5432 am_cv_CC_dependencies_compiler_type
=none
5433 if test "$am_compiler_list" = ""; then
5434 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5437 case " $depcc " in #(
5438 *\
-arch\
*\
-arch\
*) am__universal
=true
;;
5441 for depmode
in $am_compiler_list; do
5442 # Setup a source with many dependencies, because some compilers
5443 # like to wrap large dependency lists on column 80 (with \), and
5444 # we should not choose a depcomp mode which is confused by this.
5446 # We need to recreate these files for each test, as the compiler may
5447 # overwrite some of them when testing with obscure command lines.
5448 # This happens at least with the AIX C compiler.
5450 for i
in 1 2 3 4 5 6; do
5451 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
5452 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5453 # Solaris 8's {/usr,}/bin/sh.
5454 touch sub
/conftst
$i.h
5456 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5458 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5459 # mode. It turns out that the SunPro C++ compiler does not properly
5460 # handle `-M -o', and we need to detect this. Also, some Intel
5461 # versions had trouble with output in subdirs
5462 am__obj
=sub
/conftest.
${OBJEXT-o}
5463 am__minus_obj
="-o $am__obj"
5466 # This depmode causes a compiler race in universal mode.
5467 test "$am__universal" = false ||
continue
5470 # after this tag, mechanisms are not by side-effect, so they'll
5471 # only be used when explicitly requested
5472 if test "x$enable_dependency_tracking" = xyes
; then
5478 msvisualcpp | msvcmsys
)
5479 # This compiler won't grok `-c -o', but also, the minuso test has
5480 # not run yet. These depmodes are late enough in the game, and
5481 # so weak that their functioning should not be impacted.
5482 am__obj
=conftest.
${OBJEXT-o}
5487 if depmode
=$depmode \
5488 source=sub
/conftest.c object
=$am__obj \
5489 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
5490 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
5491 >/dev
/null
2>conftest.err
&&
5492 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
5493 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
5494 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
5495 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
5496 # icc doesn't choke on unknown options, it will just issue warnings
5497 # or remarks (even with -Werror). So we grep stderr for any message
5498 # that says an option was ignored or not supported.
5499 # When given -MP, icc 7.0 and 7.1 complain thusly:
5500 # icc: Command line warning: ignoring option '-M'; no argument required
5501 # The diagnosis changed in icc 8.0:
5502 # icc: Command line remark: option '-MP' not supported
5503 if (grep 'ignoring option' conftest.err ||
5504 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
5505 am_cv_CC_dependencies_compiler_type
=$depmode
5514 am_cv_CC_dependencies_compiler_type
=none
5518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5519 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5520 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
5523 test "x$enable_dependency_tracking" != xno \
5524 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
5526 am__fastdepCC_FALSE
='#'
5528 am__fastdepCC_TRUE
='#'
5529 am__fastdepCC_FALSE
=
5533 if test "x$CC" != xcc
; then
5534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5535 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5538 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5540 set dummy
$CC; ac_cc
=`$as_echo "$2" |
5541 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5542 if { as_var
=ac_cv_prog_cc_
${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
5543 $as_echo_n "(cached) " >&6
5545 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5546 /* end confdefs.h. */
5556 # Make sure it works both with $CC and with simple cc.
5557 # We do the test twice because some compilers refuse to overwrite an
5558 # existing .o file with -o, though they will create one.
5559 ac_try
='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5561 if { { case "(($ac_try" in
5562 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5563 *) ac_try_echo=$ac_try;;
5565 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5566 $as_echo "$ac_try_echo"; } >&5
5567 (eval "$ac_try") 2>&5
5569 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5570 test $ac_status = 0; } &&
5571 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5572 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5573 *) ac_try_echo
=$ac_try;;
5575 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5576 $as_echo "$ac_try_echo"; } >&5
5577 (eval "$ac_try") 2>&5
5579 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5580 test $ac_status = 0; };
5582 eval ac_cv_prog_cc_
${ac_cc}_c_o
=yes
5583 if test "x$CC" != xcc
; then
5584 # Test first that cc exists at all.
5585 if { ac_try
='cc -c conftest.$ac_ext >&5'
5586 { { case "(($ac_try" in
5587 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5588 *) ac_try_echo=$ac_try;;
5590 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5591 $as_echo "$ac_try_echo"; } >&5
5592 (eval "$ac_try") 2>&5
5594 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5595 test $ac_status = 0; }; }; then
5596 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5598 if { { case "(($ac_try" in
5599 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5600 *) ac_try_echo
=$ac_try;;
5602 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5603 $as_echo "$ac_try_echo"; } >&5
5604 (eval "$ac_try") 2>&5
5606 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5607 test $ac_status = 0; } &&
5608 test -f conftest2.
$ac_objext && { { case "(($ac_try" in
5609 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5610 *) ac_try_echo=$ac_try;;
5612 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5613 $as_echo "$ac_try_echo"; } >&5
5614 (eval "$ac_try") 2>&5
5616 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5617 test $ac_status = 0; };
5622 # cc exists but doesn't like -o.
5623 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5628 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5630 rm -f core conftest*
5633 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5635 $as_echo "yes" >&6; }
5637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5638 $as_echo "no" >&6; }
5640 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5644 # FIXME: we rely on the cache variable name because
5645 # there is no other way.
5647 am_cc=`echo $2 |
sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5648 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5649 if test "$am_t" != yes; then
5650 # Losing compiler, so override with the script.
5651 # FIXME: It is wrong to rewrite CC.
5652 # But if we don't then we get into trouble of one sort or another.
5653 # A longer-term fix would be to have automake use am__CC in this case,
5654 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5655 CC="$am_aux_dir/compile $CC"
5660 # Initialize gnulib right after verifying that the C compiler works.
5661 if test -n "$ac_tool_prefix"; then
5662 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5663 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5665 $as_echo_n "checking for $ac_word... " >&6; }
5666 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5667 $as_echo_n "(cached) " >&6
5669 if test -n "$RANLIB"; then
5670 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5676 test -z "$as_dir" && as_dir=.
5677 for ac_exec_ext in '' $ac_executable_extensions; do
5678 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5679 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5680 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5689 RANLIB=$ac_cv_prog_RANLIB
5690 if test -n "$RANLIB"; then
5691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5692 $as_echo "$RANLIB" >&6; }
5694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5695 $as_echo "no" >&6; }
5700 if test -z "$ac_cv_prog_RANLIB"; then
5701 ac_ct_RANLIB=$RANLIB
5702 # Extract the first word of "ranlib", so it can be a program name with args.
5703 set dummy ranlib; ac_word=$2
5704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5705 $as_echo_n "checking for $ac_word... " >&6; }
5706 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5707 $as_echo_n "(cached) " >&6
5709 if test -n "$ac_ct_RANLIB"; then
5710 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5716 test -z "$as_dir" && as_dir=.
5717 for ac_exec_ext in '' $ac_executable_extensions; do
5718 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5719 ac_cv_prog_ac_ct_RANLIB="ranlib"
5720 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5729 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5730 if test -n "$ac_ct_RANLIB"; then
5731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5732 $as_echo "$ac_ct_RANLIB" >&6; }
5734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5735 $as_echo "no" >&6; }
5738 if test "x$ac_ct_RANLIB" = x; then
5741 case $cross_compiling:$ac_tool_warned in
5743 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5744 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5745 ac_tool_warned=yes ;;
5747 RANLIB=$ac_ct_RANLIB
5750 RANLIB="$ac_cv_prog_RANLIB"
5755 ac_cpp='$CPP $CPPFLAGS'
5756 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5757 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5758 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5760 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5761 # On Suns, sometimes $CPP names a directory.
5762 if test -n "$CPP" && test -d "$CPP"; then
5765 if test -z "$CPP"; then
5766 if test "${ac_cv_prog_CPP+set}" = set; then :
5767 $as_echo_n "(cached) " >&6
5769 # Double quotes because CPP needs to be expanded
5770 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5773 for ac_c_preproc_warn_flag in '' yes
5775 # Use a header file that comes with gcc, so configuring glibc
5776 # with a fresh cross-compiler works.
5777 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5778 # <limits.h> exists even on freestanding compilers.
5779 # On the NeXT, cc -E runs the code through the compiler's parser,
5780 # not just through cpp. "Syntax error" is here to catch this case.
5781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5782 /* end confdefs.h. */
5784 # include <limits.h>
5786 # include <assert.h>
5790 if ac_fn_c_try_cpp "$LINENO"; then :
5793 # Broken: fails on valid input.
5796 rm -f conftest.err conftest.$ac_ext
5798 # OK, works on sane cases. Now check whether nonexistent headers
5799 # can be detected and how.
5800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5801 /* end confdefs.h. */
5802 #include <ac_nonexistent.h>
5804 if ac_fn_c_try_cpp "$LINENO"; then :
5805 # Broken: success on invalid input.
5808 # Passes both tests.
5812 rm -f conftest.err conftest.$ac_ext
5815 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5816 rm -f conftest.err conftest.
$ac_ext
5817 if $ac_preproc_ok; then :
5829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5830 $as_echo "$CPP" >&6; }
5832 for ac_c_preproc_warn_flag
in '' yes
5834 # Use a header file that comes with gcc, so configuring glibc
5835 # with a fresh cross-compiler works.
5836 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5837 # <limits.h> exists even on freestanding compilers.
5838 # On the NeXT, cc -E runs the code through the compiler's parser,
5839 # not just through cpp. "Syntax error" is here to catch this case.
5840 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5841 /* end confdefs.h. */
5843 # include <limits.h>
5845 # include <assert.h>
5849 if ac_fn_c_try_cpp
"$LINENO"; then :
5852 # Broken: fails on valid input.
5855 rm -f conftest.err conftest.
$ac_ext
5857 # OK, works on sane cases. Now check whether nonexistent headers
5858 # can be detected and how.
5859 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5860 /* end confdefs.h. */
5861 #include <ac_nonexistent.h>
5863 if ac_fn_c_try_cpp
"$LINENO"; then :
5864 # Broken: success on invalid input.
5867 # Passes both tests.
5871 rm -f conftest.err conftest.
$ac_ext
5874 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5875 rm -f conftest.err conftest.
$ac_ext
5876 if $ac_preproc_ok; then :
5879 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5880 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5881 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
5882 See \`config.log' for more details." "$LINENO" 5; }
5886 ac_cpp
='$CPP $CPPFLAGS'
5887 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5888 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5889 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5893 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5894 if test "${ac_cv_path_GREP+set}" = set; then :
5895 $as_echo_n "(cached) " >&6
5897 if test -z "$GREP"; then
5898 ac_path_GREP_found
=false
5899 # Loop through the user's path and test for each of PROGNAME-LIST
5900 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5901 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5904 test -z "$as_dir" && as_dir
=.
5905 for ac_prog
in grep ggrep
; do
5906 for ac_exec_ext
in '' $ac_executable_extensions; do
5907 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
5908 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
5909 # Check for GNU ac_path_GREP and select it if it is found.
5910 # Check for GNU $ac_path_GREP
5911 case `"$ac_path_GREP" --version 2>&1` in
5913 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
5916 $as_echo_n 0123456789 >"conftest.in"
5919 cat "conftest.in" "conftest.in" >"conftest.tmp"
5920 mv "conftest.tmp" "conftest.in"
5921 cp "conftest.in" "conftest.nl"
5922 $as_echo 'GREP' >> "conftest.nl"
5923 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5924 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5925 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5926 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5927 # Best one so far, save it but keep looking for a better one
5928 ac_cv_path_GREP
="$ac_path_GREP"
5929 ac_path_GREP_max
=$ac_count
5931 # 10*(2^10) chars as input seems more than enough
5932 test $ac_count -gt 10 && break
5934 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5937 $ac_path_GREP_found && break 3
5942 if test -z "$ac_cv_path_GREP"; then
5943 as_fn_error
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5946 ac_cv_path_GREP
=$GREP
5950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5951 $as_echo "$ac_cv_path_GREP" >&6; }
5952 GREP
="$ac_cv_path_GREP"
5955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5956 $as_echo_n "checking for egrep... " >&6; }
5957 if test "${ac_cv_path_EGREP+set}" = set; then :
5958 $as_echo_n "(cached) " >&6
5960 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
5961 then ac_cv_path_EGREP
="$GREP -E"
5963 if test -z "$EGREP"; then
5964 ac_path_EGREP_found
=false
5965 # Loop through the user's path and test for each of PROGNAME-LIST
5966 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5967 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5970 test -z "$as_dir" && as_dir
=.
5971 for ac_prog
in egrep; do
5972 for ac_exec_ext
in '' $ac_executable_extensions; do
5973 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
5974 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
5975 # Check for GNU ac_path_EGREP and select it if it is found.
5976 # Check for GNU $ac_path_EGREP
5977 case `"$ac_path_EGREP" --version 2>&1` in
5979 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
5982 $as_echo_n 0123456789 >"conftest.in"
5985 cat "conftest.in" "conftest.in" >"conftest.tmp"
5986 mv "conftest.tmp" "conftest.in"
5987 cp "conftest.in" "conftest.nl"
5988 $as_echo 'EGREP' >> "conftest.nl"
5989 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5990 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5991 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5992 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5993 # Best one so far, save it but keep looking for a better one
5994 ac_cv_path_EGREP
="$ac_path_EGREP"
5995 ac_path_EGREP_max
=$ac_count
5997 # 10*(2^10) chars as input seems more than enough
5998 test $ac_count -gt 10 && break
6000 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
6003 $ac_path_EGREP_found && break 3
6008 if test -z "$ac_cv_path_EGREP"; then
6009 as_fn_error
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6012 ac_cv_path_EGREP
=$EGREP
6017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6018 $as_echo "$ac_cv_path_EGREP" >&6; }
6019 EGREP
="$ac_cv_path_EGREP"
6022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6023 $as_echo_n "checking for ANSI C header files... " >&6; }
6024 if test "${ac_cv_header_stdc+set}" = set; then :
6025 $as_echo_n "(cached) " >&6
6027 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6028 /* end confdefs.h. */
6042 if ac_fn_c_try_compile
"$LINENO"; then :
6043 ac_cv_header_stdc
=yes
6045 ac_cv_header_stdc
=no
6047 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6049 if test $ac_cv_header_stdc = yes; then
6050 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6051 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6052 /* end confdefs.h. */
6056 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6057 $EGREP "memchr" >/dev
/null
2>&1; then :
6060 ac_cv_header_stdc
=no
6066 if test $ac_cv_header_stdc = yes; then
6067 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6068 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6069 /* end confdefs.h. */
6073 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6074 $EGREP "free" >/dev
/null
2>&1; then :
6077 ac_cv_header_stdc
=no
6083 if test $ac_cv_header_stdc = yes; then
6084 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6085 if test "$cross_compiling" = yes; then :
6088 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6089 /* end confdefs.h. */
6092 #if ((' ' & 0x0FF) == 0x020)
6093 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6094 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6096 # define ISLOWER(c) \
6097 (('a' <= (c) && (c) <= 'i') \
6098 || ('j' <= (c) && (c) <= 'r') \
6099 || ('s' <= (c) && (c) <= 'z'))
6100 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6103 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6108 for (i = 0; i < 256; i++)
6109 if (XOR (islower (i), ISLOWER (i))
6110 || toupper (i) != TOUPPER (i))
6115 if ac_fn_c_try_run
"$LINENO"; then :
6118 ac_cv_header_stdc
=no
6120 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6121 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6127 $as_echo "$ac_cv_header_stdc" >&6; }
6128 if test $ac_cv_header_stdc = yes; then
6130 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6134 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6135 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
6136 inttypes.h stdint.h unistd.h
6138 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6139 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6141 eval as_val
=\$
$as_ac_Header
6142 if test "x$as_val" = x
""yes; then :
6143 cat >>confdefs.h
<<_ACEOF
6144 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6155 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
6156 if test "x$ac_cv_header_minix_config_h" = x
""yes; then :
6163 if test "$MINIX" = yes; then
6165 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
6168 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
6171 $as_echo "#define _MINIX 1" >>confdefs.h
6178 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
6184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
6185 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
6186 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
6187 $as_echo_n "(cached) " >&6
6189 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6190 /* end confdefs.h. */
6192 # define __EXTENSIONS__ 1
6193 $ac_includes_default
6202 if ac_fn_c_try_compile
"$LINENO"; then :
6203 ac_cv_safe_to_define___extensions__
=yes
6205 ac_cv_safe_to_define___extensions__
=no
6207 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
6210 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6211 test $ac_cv_safe_to_define___extensions__ = yes &&
6212 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
6214 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6216 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
6218 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6220 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
6231 # Code from module allocator:
6232 # Code from module arg-nonnull:
6233 # Code from module c++defs:
6234 # Code from module careadlinkat:
6235 # Code from module crypto/md5:
6236 # Code from module dosname:
6237 # Code from module dtoastr:
6238 # Code from module extensions:
6240 # Code from module filemode:
6241 # Code from module getloadavg:
6242 # Code from module getopt-gnu:
6243 # Code from module getopt-posix:
6244 # Code from module gettext-h:
6245 # Code from module ignore-value:
6246 # Code from module include_next:
6247 # Code from module intprops:
6248 # Code from module inttypes-incomplete:
6249 # Code from module lstat:
6250 # Code from module mktime:
6251 # Code from module multiarch:
6252 # Code from module readlink:
6253 # Code from module socklen:
6254 # Code from module ssize_t:
6255 # Code from module stat:
6256 # Code from module stdbool:
6257 # Code from module stddef:
6258 # Code from module stdint:
6259 # Code from module stdio:
6260 # Code from module stdlib:
6261 # Code from module strftime:
6262 # Code from module strtoull:
6263 # Code from module strtoumax:
6264 # Code from module symlink:
6265 # Code from module sys_stat:
6266 # Code from module time:
6267 # Code from module time_r:
6268 # Code from module unistd:
6269 # Code from module verify:
6270 # Code from module warn-on-use:
6273 # On Suns, sometimes $CPP names a directory.
6274 if test -n "$CPP" && test -d "$CPP"; then
6278 ## If not using gcc, and on Solaris, and no CPP specified, see if
6279 ## using a Sun compiler, which needs -Xs to prevent whitespace.
6280 if test x
"$GCC" != xyes
&& test x
"$emacs_check_sunpro_c" = xyes
&& \
6281 test x
"$CPP" = x
; then
6282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using a Sun C compiler" >&5
6283 $as_echo_n "checking whether we are using a Sun C compiler... " >&6; }
6284 if test "${emacs_cv_sunpro_c+set}" = set; then :
6285 $as_echo_n "(cached) " >&6
6287 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6288 /* end confdefs.h. */
6301 if ac_fn_c_try_link
"$LINENO"; then :
6302 emacs_cv_sunpro_c
=yes
6304 emacs_cv_sunpro_c
=no
6306 rm -f core conftest.err conftest.
$ac_objext \
6307 conftest
$ac_exeext conftest.
$ac_ext
6310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_sunpro_c" >&5
6311 $as_echo "$emacs_cv_sunpro_c" >&6; }
6313 if test x
"$emacs_cv_sunpro_c" = xyes
; then
6314 NON_GNU_CPP
="$CC -E -Xs"
6318 #### Some systems specify a CPP to use unless we are using GCC.
6319 #### Now that we know whether we are using GCC, we can decide whether
6320 #### to use that one.
6321 if test "x$NON_GNU_CPP" != x
&& test x
$GCC != xyes
&& test "x$CPP" = x
6326 #### Some systems specify a CC to use unless we are using GCC.
6327 #### Now that we know whether we are using GCC, we can decide whether
6328 #### to use that one.
6329 if test "x$NON_GNU_CC" != x
&& test x
$GCC != xyes
&&
6330 test x
$cc_specified != xyes
6335 if test x
$GCC = xyes
; then
6336 test "x$GCC_TEST_OPTIONS" != x
&& CC
="$CC $GCC_TEST_OPTIONS"
6338 test "x$NON_GCC_TEST_OPTIONS" != x
&& CC
="$CC $NON_GCC_TEST_OPTIONS"
6341 ### Use -Wdeclaration-after-statement if the compiler supports it
6342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wdeclaration-after-statement" >&5
6343 $as_echo_n "checking whether gcc understands -Wdeclaration-after-statement... " >&6; }
6344 SAVE_CFLAGS
="$CFLAGS"
6345 CFLAGS
="$CFLAGS -Wdeclaration-after-statement"
6346 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6347 /* end confdefs.h. */
6357 if ac_fn_c_try_compile
"$LINENO"; then :
6362 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6363 if test $has_option = yes; then
6364 C_WARNINGS_SWITCH
="-Wdeclaration-after-statement $C_WARNINGS_SWITCH"
6366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
6367 $as_echo "$has_option" >&6; }
6368 CFLAGS
="$SAVE_CFLAGS"
6372 ### Use -Wold-style-definition if the compiler supports it
6373 # This can be removed when conversion to standard C is finished.
6374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wold-style-definition" >&5
6375 $as_echo_n "checking whether gcc understands -Wold-style-definition... " >&6; }
6376 SAVE_CFLAGS
="$CFLAGS"
6377 CFLAGS
="$CFLAGS -Wold-style-definition"
6378 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6379 /* end confdefs.h. */
6389 if ac_fn_c_try_compile
"$LINENO"; then :
6394 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6395 if test $has_option = yes; then
6396 C_WARNINGS_SWITCH
="-Wold-style-definition $C_WARNINGS_SWITCH"
6398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
6399 $as_echo "$has_option" >&6; }
6400 CFLAGS
="$SAVE_CFLAGS"
6404 ### Use -Wimplicit-function-declaration if the compiler supports it
6405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wimplicit-function-declaration" >&5
6406 $as_echo_n "checking whether gcc understands -Wimplicit-function-declaration... " >&6; }
6407 SAVE_CFLAGS
="$CFLAGS"
6408 CFLAGS
="$CFLAGS -Wimplicit-function-declaration"
6409 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6410 /* end confdefs.h. */
6420 if ac_fn_c_try_compile
"$LINENO"; then :
6425 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6426 if test $has_option = yes; then
6427 C_WARNINGS_SWITCH
="-Wimplicit-function-declaration $C_WARNINGS_SWITCH"
6429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
6430 $as_echo "$has_option" >&6; }
6431 CFLAGS
="$SAVE_CFLAGS"
6438 #### Some other nice autoconf tests.
6441 ac_cpp
='$CPP $CPPFLAGS'
6442 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6443 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6444 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6446 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6447 # On Suns, sometimes $CPP names a directory.
6448 if test -n "$CPP" && test -d "$CPP"; then
6451 if test -z "$CPP"; then
6452 if test "${ac_cv_prog_CPP+set}" = set; then :
6453 $as_echo_n "(cached) " >&6
6455 # Double quotes because CPP needs to be expanded
6456 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6459 for ac_c_preproc_warn_flag
in '' yes
6461 # Use a header file that comes with gcc, so configuring glibc
6462 # with a fresh cross-compiler works.
6463 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6464 # <limits.h> exists even on freestanding compilers.
6465 # On the NeXT, cc -E runs the code through the compiler's parser,
6466 # not just through cpp. "Syntax error" is here to catch this case.
6467 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6468 /* end confdefs.h. */
6470 # include <limits.h>
6472 # include <assert.h>
6476 if ac_fn_c_try_cpp
"$LINENO"; then :
6479 # Broken: fails on valid input.
6482 rm -f conftest.err conftest.
$ac_ext
6484 # OK, works on sane cases. Now check whether nonexistent headers
6485 # can be detected and how.
6486 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6487 /* end confdefs.h. */
6488 #include <ac_nonexistent.h>
6490 if ac_fn_c_try_cpp
"$LINENO"; then :
6491 # Broken: success on invalid input.
6494 # Passes both tests.
6498 rm -f conftest.err conftest.
$ac_ext
6501 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6502 rm -f conftest.err conftest.
$ac_ext
6503 if $ac_preproc_ok; then :
6515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6516 $as_echo "$CPP" >&6; }
6518 for ac_c_preproc_warn_flag
in '' yes
6520 # Use a header file that comes with gcc, so configuring glibc
6521 # with a fresh cross-compiler works.
6522 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6523 # <limits.h> exists even on freestanding compilers.
6524 # On the NeXT, cc -E runs the code through the compiler's parser,
6525 # not just through cpp. "Syntax error" is here to catch this case.
6526 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6527 /* end confdefs.h. */
6529 # include <limits.h>
6531 # include <assert.h>
6535 if ac_fn_c_try_cpp
"$LINENO"; then :
6538 # Broken: fails on valid input.
6541 rm -f conftest.err conftest.
$ac_ext
6543 # OK, works on sane cases. Now check whether nonexistent headers
6544 # can be detected and how.
6545 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6546 /* end confdefs.h. */
6547 #include <ac_nonexistent.h>
6549 if ac_fn_c_try_cpp
"$LINENO"; then :
6550 # Broken: success on invalid input.
6553 # Passes both tests.
6557 rm -f conftest.err conftest.
$ac_ext
6560 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6561 rm -f conftest.err conftest.
$ac_ext
6562 if $ac_preproc_ok; then :
6565 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6566 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6567 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
6568 See \`config.log' for more details." "$LINENO" 5; }
6572 ac_cpp
='$CPP $CPPFLAGS'
6573 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6574 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6575 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6578 if test "x$RANLIB" = x
; then
6579 if test -n "$ac_tool_prefix"; then
6580 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6581 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
6582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6583 $as_echo_n "checking for $ac_word... " >&6; }
6584 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6585 $as_echo_n "(cached) " >&6
6587 if test -n "$RANLIB"; then
6588 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
6590 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6594 test -z "$as_dir" && as_dir
=.
6595 for ac_exec_ext
in '' $ac_executable_extensions; do
6596 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6597 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
6598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6607 RANLIB
=$ac_cv_prog_RANLIB
6608 if test -n "$RANLIB"; then
6609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6610 $as_echo "$RANLIB" >&6; }
6612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6613 $as_echo "no" >&6; }
6618 if test -z "$ac_cv_prog_RANLIB"; then
6619 ac_ct_RANLIB
=$RANLIB
6620 # Extract the first word of "ranlib", so it can be a program name with args.
6621 set dummy ranlib
; ac_word
=$2
6622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6623 $as_echo_n "checking for $ac_word... " >&6; }
6624 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6625 $as_echo_n "(cached) " >&6
6627 if test -n "$ac_ct_RANLIB"; then
6628 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
6630 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6634 test -z "$as_dir" && as_dir
=.
6635 for ac_exec_ext
in '' $ac_executable_extensions; do
6636 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6637 ac_cv_prog_ac_ct_RANLIB
="ranlib"
6638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6647 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
6648 if test -n "$ac_ct_RANLIB"; then
6649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6650 $as_echo "$ac_ct_RANLIB" >&6; }
6652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6653 $as_echo "no" >&6; }
6656 if test "x$ac_ct_RANLIB" = x
; then
6659 case $cross_compiling:$ac_tool_warned in
6661 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6662 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6663 ac_tool_warned
=yes ;;
6665 RANLIB
=$ac_ct_RANLIB
6668 RANLIB
="$ac_cv_prog_RANLIB"
6673 ## Although we're running on an amd64 kernel, we're actually compiling for
6674 ## the x86 architecture. The user should probably have provided an
6675 ## explicit --build to `configure', but if everything else than the kernel
6676 ## is running in i386 mode, we can help them out.
6677 if test "$machine" = "amdx86-64"; then
6678 ac_fn_c_check_decl
"$LINENO" "i386" "ac_cv_have_decl_i386" "$ac_includes_default"
6679 if test "x$ac_cv_have_decl_i386" = x
""yes; then :
6683 if test "$ac_cv_have_decl_i386" = "yes"; then
6684 canonical
=`echo "$canonical" | sed -e 's/^amd64/i386/' -e 's/^x86_64/i386/'`
6686 machfile
="m/${machine}.h"
6690 # Extract the first word of "install-info", so it can be a program name with args.
6691 set dummy install-info
; ac_word
=$2
6692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6693 $as_echo_n "checking for $ac_word... " >&6; }
6694 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
6695 $as_echo_n "(cached) " >&6
6697 case $INSTALL_INFO in
6699 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
6702 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6706 test -z "$as_dir" && as_dir
=.
6707 for ac_exec_ext
in '' $ac_executable_extensions; do
6708 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6709 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
6710 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6720 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
6721 if test -n "$INSTALL_INFO"; then
6722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
6723 $as_echo "$INSTALL_INFO" >&6; }
6725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6726 $as_echo "no" >&6; }
6730 # Extract the first word of "install-info", so it can be a program name with args.
6731 set dummy install-info
; ac_word
=$2
6732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6733 $as_echo_n "checking for $ac_word... " >&6; }
6734 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
6735 $as_echo_n "(cached) " >&6
6737 case $INSTALL_INFO in
6739 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
6742 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6743 for as_dir
in /usr
/sbin
6746 test -z "$as_dir" && as_dir
=.
6747 for ac_exec_ext
in '' $ac_executable_extensions; do
6748 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6749 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
6750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6760 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
6761 if test -n "$INSTALL_INFO"; then
6762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
6763 $as_echo "$INSTALL_INFO" >&6; }
6765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6766 $as_echo "no" >&6; }
6770 # Extract the first word of "install-info", so it can be a program name with args.
6771 set dummy install-info
; ac_word
=$2
6772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6773 $as_echo_n "checking for $ac_word... " >&6; }
6774 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
6775 $as_echo_n "(cached) " >&6
6777 case $INSTALL_INFO in
6779 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
6782 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6786 test -z "$as_dir" && as_dir
=.
6787 for ac_exec_ext
in '' $ac_executable_extensions; do
6788 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6789 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
6790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6797 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
=":"
6801 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
6802 if test -n "$INSTALL_INFO"; then
6803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
6804 $as_echo "$INSTALL_INFO" >&6; }
6806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6807 $as_echo "no" >&6; }
6811 # Extract the first word of "gzip", so it can be a program name with args.
6812 set dummy
gzip; ac_word
=$2
6813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6814 $as_echo_n "checking for $ac_word... " >&6; }
6815 if test "${ac_cv_path_GZIP_PROG+set}" = set; then :
6816 $as_echo_n "(cached) " >&6
6820 ac_cv_path_GZIP_PROG
="$GZIP_PROG" # Let the user override the test with a path.
6823 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6827 test -z "$as_dir" && as_dir
=.
6828 for ac_exec_ext
in '' $ac_executable_extensions; do
6829 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6830 ac_cv_path_GZIP_PROG
="$as_dir/$ac_word$ac_exec_ext"
6831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6841 GZIP_PROG
=$ac_cv_path_GZIP_PROG
6842 if test -n "$GZIP_PROG"; then
6843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP_PROG" >&5
6844 $as_echo "$GZIP_PROG" >&6; }
6846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6847 $as_echo "no" >&6; }
6853 ## Need makeinfo >= 4.6 (?) to build the manuals.
6854 # Extract the first word of "makeinfo", so it can be a program name with args.
6855 set dummy makeinfo
; ac_word
=$2
6856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6857 $as_echo_n "checking for $ac_word... " >&6; }
6858 if test "${ac_cv_path_MAKEINFO+set}" = set; then :
6859 $as_echo_n "(cached) " >&6
6863 ac_cv_path_MAKEINFO
="$MAKEINFO" # Let the user override the test with a path.
6866 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6870 test -z "$as_dir" && as_dir
=.
6871 for ac_exec_ext
in '' $ac_executable_extensions; do
6872 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6873 ac_cv_path_MAKEINFO
="$as_dir/$ac_word$ac_exec_ext"
6874 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6881 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO
="no"
6885 MAKEINFO
=$ac_cv_path_MAKEINFO
6886 if test -n "$MAKEINFO"; then
6887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
6888 $as_echo "$MAKEINFO" >&6; }
6890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6891 $as_echo "no" >&6; }
6895 if test "$MAKEINFO" != "no" && \
6896 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
6900 ## Makeinfo is unusual. For a released Emacs, the manuals are
6901 ## pre-built, and not deleted by the normal clean rules. makeinfo is
6902 ## therefore in the category of "special tools" not normally required, which
6903 ## configure does not have to check for (eg autoconf itself).
6904 ## In a Bazaar checkout on the other hand, the manuals are not included.
6905 ## So makeinfo is a requirement to build from Bazaar, and configure
6906 ## should test for it as it does for any other build requirement.
6907 ## We use the presence of $srcdir/info/emacs to distinguish a release,
6908 ## with pre-built manuals, from a Bazaar checkout.
6911 if test "$MAKEINFO" = "no"; then
6913 if test "x${with_makeinfo}" = "xno"; then
6915 elif test ! -e $srcdir/info
/emacs
; then
6916 as_fn_error
"You do not seem to have makeinfo >= 4.6, and your
6917 source tree does not seem to have pre-built manuals in the \`info' directory.
6918 Either install a suitable version of makeinfo, or re-run configure
6919 with the \`--without-makeinfo' option to build without the manuals. " "$LINENO" 5
6925 if test x
$GCC = xyes
; then
6926 test "x$GCC_LINK_TEST_OPTIONS" != x
&& \
6927 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
6929 test "x$NON_GCC_LINK_TEST_OPTIONS" != x
&& \
6930 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
6934 late_LDFLAGS
=$LDFLAGS
6935 if test x
$GCC = xyes
; then
6936 LDFLAGS
="$LDFLAGS -Wl,-znocombreloc"
6938 LDFLAGS
="$LDFLAGS -znocombreloc"
6941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -znocombreloc" >&5
6942 $as_echo_n "checking for -znocombreloc... " >&6; }
6943 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6944 /* end confdefs.h. */
6954 if ac_fn_c_try_link
"$LINENO"; then :
6955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6956 $as_echo "yes" >&6; }
6958 LDFLAGS
=$late_LDFLAGS
6959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6960 $as_echo "no" >&6; }
6962 rm -f core conftest.err conftest.
$ac_objext \
6963 conftest
$ac_exeext conftest.
$ac_ext
6966 # The value of CPP is a quoted variable reference, so we need to do this
6967 # to get its actual value...
6968 CPP
=`eval "echo $CPP"`
6971 test "x$CANNOT_DUMP" = "x" && CANNOT_DUMP
=no
6973 your-opsys-here
) CANNOT_DUMP
=yes ;;
6976 test "$CANNOT_DUMP" = "yes" && \
6978 $as_echo "#define CANNOT_DUMP 1" >>confdefs.h
6984 UNEXEC_OBJ
=unexelf.o
6986 # MSDOS uses unexcoff.o
6987 # MSWindows uses unexw32.o
6989 UNEXEC_OBJ
=unexaix.o
6995 UNEXEC_OBJ
=unexmacosx.o
6998 UNEXEC_OBJ
=unexhp9k800.o
7001 # Use the Solaris dldump() function, called from unexsol.c, to dump
7002 # emacs, instead of the generic ELF dump code found in unexelf.c.
7003 # The resulting binary has a complete symbol table, and is better
7004 # for debugging and other observability tools (debuggers, pstack, etc).
7006 # If you encounter a problem using dldump(), please consider sending
7007 # a message to the OpenSolaris tools-linking mailing list:
7008 # http://mail.opensolaris.org/mailman/listinfo/tools-linking
7010 # It is likely that dldump() works with older Solaris too, but this has
7011 # not been tested, so for now this change is for Solaris 10 or newer.
7012 UNEXEC_OBJ
=unexsol.o
7019 ## Let `ld' find image libs and similar things in /usr/local/lib.
7020 ## The system compiler, GCC, has apparently been modified to not
7021 ## look there, contrary to what a stock GCC would do.
7022 LD_SWITCH_SYSTEM
=-L/usr
/local
/lib
7026 ## cpp test was "ifdef __mips__", but presumably this is equivalent...
7027 case $host_cpu in mips
*) LD_SWITCH_SYSTEM
="-G 0";; esac
7031 LD_SWITCH_SYSTEM
="-Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib"
7035 ## Han Boetes <han@mijncomputer.nl> says this is necessary,
7036 ## otherwise Emacs dumps core on elf systems.
7037 LD_SWITCH_SYSTEM
="-Z"
7042 ac_link
="$ac_link $LD_SWITCH_SYSTEM"
7044 ## This setting of LD_SWITCH_SYSTEM references LD_SWITCH_X_SITE_AUX,
7045 ## which has not been defined yet. When this was handled with cpp,
7046 ## it was expanded to null when configure sourced the s/*.h file.
7047 ## Thus LD_SWITCH_SYSTEM had different values in configure and the Makefiles.
7048 ## FIXME it would be cleaner to put this in LD_SWITCH_SYSTEM_TEMACS
7049 ## (or somesuch), but because it is supposed to go at the _front_
7050 ## of LD_SWITCH_SYSTEM, we cannot do that in exactly the same way.
7051 ## Compare with the gnu-linux case below, which added to the end
7052 ## of LD_SWITCH_SYSTEM, and so can instead go at the front of
7053 ## LD_SWITCH_SYSTEM_TEMACS.
7056 ## _AUX_RPATH is like _AUX, but uses -rpath instead of -R.
7057 LD_SWITCH_SYSTEM
="\$(LD_SWITCH_X_SITE_AUX_RPATH) $LD_SWITCH_SYSTEM" ;;
7062 if test "$machine" = "alpha"; then
7063 ac_fn_c_check_decl
"$LINENO" "__ELF__" "ac_cv_have_decl___ELF__" "$ac_includes_default"
7064 if test "x$ac_cv_have_decl___ELF__" = x
""yes; then :
7068 if test "$ac_cv_have_decl___ELF__" = "yes"; then
7069 ## With ELF, make sure that all common symbols get allocated to in the
7070 ## data section. Otherwise, the dump of temacs may miss variables in
7071 ## the shared library that have been initialized. For example, with
7072 ## GNU libc, __malloc_initialized would normally be resolved to the
7073 ## shared library's .bss section, which is fatal.
7074 if test "x$GCC" = "xyes"; then
7075 C_SWITCH_MACHINE
="-fno-common"
7077 as_fn_error
"What gives? Fix me if DEC Unix supports ELF now." "$LINENO" 5
7080 UNEXEC_OBJ
=unexalpha.o
7088 ## Some programs in src produce warnings saying certain subprograms
7089 ## are too complex and need a MAXMEM value greater than 2000 for
7090 ## additional optimization. --nils@exp-math.uni-essen.de
7091 test "$opsys" = "aix4.2" && test "x$GCC" != "xyes" && \
7092 C_SWITCH_SYSTEM
="-ma -qmaxmem=4000"
7093 ## gnu-linux might need -D_BSD_SOURCE on old libc5 systems.
7094 ## It is redundant in glibc2, since we define _GNU_SOURCE.
7100 ## IBM's X11R5 uses -lIM and -liconv in AIX 3.2.2.
7101 aix4-2
) LIBS_SYSTEM
="-lrts -lIM -liconv" ;;
7103 freebsd
) LIBS_SYSTEM
="-lutil" ;;
7105 hpux
*) LIBS_SYSTEM
="-l:libdld.sl" ;;
7107 sol2
*) LIBS_SYSTEM
="-lsocket -lnsl" ;;
7109 ## Motif needs -lgen.
7110 unixware
) LIBS_SYSTEM
="-lsocket -lnsl -lelf -lgen" ;;
7115 ### Make sure subsequent tests use flags consistent with the build flags.
7117 if test x
"${OVERRIDE_CPPFLAGS}" != x
; then
7118 CPPFLAGS
="${OVERRIDE_CPPFLAGS}"
7120 CPPFLAGS
="$C_SWITCH_SYSTEM $C_SWITCH_MACHINE $CPPFLAGS"
7123 # Suppress obsolescent Autoconf test for size_t; Emacs assumes C89 or better.
7126 # Check whether --enable-largefile was given.
7127 if test "${enable_largefile+set}" = set; then :
7128 enableval
=$enable_largefile;
7131 if test "$enable_largefile" != no
; then
7133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
7134 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
7135 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
7136 $as_echo_n "(cached) " >&6
7138 ac_cv_sys_largefile_CC
=no
7139 if test "$GCC" != yes; then
7142 # IRIX 6.2 and later do not support large files by default,
7143 # so use the C compiler's -n32 option if that helps.
7144 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7145 /* end confdefs.h. */
7146 #include <sys/types.h>
7147 /* Check that off_t can represent 2**63 - 1 correctly.
7148 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7149 since some C++ compilers masquerading as C compilers
7150 incorrectly reject 9223372036854775807. */
7151 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7152 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7153 && LARGE_OFF_T % 2147483647 == 1)
7163 if ac_fn_c_try_compile
"$LINENO"; then :
7166 rm -f core conftest.err conftest.
$ac_objext
7168 if ac_fn_c_try_compile
"$LINENO"; then :
7169 ac_cv_sys_largefile_CC
=' -n32'; break
7171 rm -f core conftest.err conftest.
$ac_objext
7175 rm -f conftest.
$ac_ext
7178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
7179 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
7180 if test "$ac_cv_sys_largefile_CC" != no
; then
7181 CC
=$CC$ac_cv_sys_largefile_CC
7184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
7185 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
7186 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
7187 $as_echo_n "(cached) " >&6
7190 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7191 /* end confdefs.h. */
7192 #include <sys/types.h>
7193 /* Check that off_t can represent 2**63 - 1 correctly.
7194 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7195 since some C++ compilers masquerading as C compilers
7196 incorrectly reject 9223372036854775807. */
7197 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7198 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7199 && LARGE_OFF_T % 2147483647 == 1)
7209 if ac_fn_c_try_compile
"$LINENO"; then :
7210 ac_cv_sys_file_offset_bits
=no
; break
7212 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7213 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7214 /* end confdefs.h. */
7215 #define _FILE_OFFSET_BITS 64
7216 #include <sys/types.h>
7217 /* Check that off_t can represent 2**63 - 1 correctly.
7218 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7219 since some C++ compilers masquerading as C compilers
7220 incorrectly reject 9223372036854775807. */
7221 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7222 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7223 && LARGE_OFF_T % 2147483647 == 1)
7233 if ac_fn_c_try_compile
"$LINENO"; then :
7234 ac_cv_sys_file_offset_bits
=64; break
7236 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7237 ac_cv_sys_file_offset_bits
=unknown
7241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
7242 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
7243 case $ac_cv_sys_file_offset_bits in #(
7246 cat >>confdefs.h
<<_ACEOF
7247 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
7252 if test $ac_cv_sys_file_offset_bits = unknown
; then
7253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
7254 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
7255 if test "${ac_cv_sys_large_files+set}" = set; then :
7256 $as_echo_n "(cached) " >&6
7259 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7260 /* end confdefs.h. */
7261 #include <sys/types.h>
7262 /* Check that off_t can represent 2**63 - 1 correctly.
7263 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7264 since some C++ compilers masquerading as C compilers
7265 incorrectly reject 9223372036854775807. */
7266 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7267 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7268 && LARGE_OFF_T % 2147483647 == 1)
7278 if ac_fn_c_try_compile
"$LINENO"; then :
7279 ac_cv_sys_large_files
=no
; break
7281 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7282 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7283 /* end confdefs.h. */
7284 #define _LARGE_FILES 1
7285 #include <sys/types.h>
7286 /* Check that off_t can represent 2**63 - 1 correctly.
7287 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7288 since some C++ compilers masquerading as C compilers
7289 incorrectly reject 9223372036854775807. */
7290 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7291 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7292 && LARGE_OFF_T % 2147483647 == 1)
7302 if ac_fn_c_try_compile
"$LINENO"; then :
7303 ac_cv_sys_large_files
=1; break
7305 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7306 ac_cv_sys_large_files
=unknown
7310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
7311 $as_echo "$ac_cv_sys_large_files" >&6; }
7312 case $ac_cv_sys_large_files in #(
7315 cat >>confdefs.h
<<_ACEOF
7316 #define _LARGE_FILES $ac_cv_sys_large_files
7326 ## If user specified a crt-dir, use that unconditionally.
7327 if test "X$CRT_DIR" = "X"; then
7329 case "$canonical" in
7330 x86_64-
*-linux-gnu* | s390x-
*-linux-gnu*)
7331 ## On x86-64 and s390x GNU/Linux distributions, the standard library
7332 ## can be in a variety of places. We only try /usr/lib64 and /usr/lib.
7333 ## For anything else (eg /usr/lib32), it is up the user to specify
7334 ## the location (bug#5655).
7335 ## Test for crtn.o, not just the directory, because sometimes the
7336 ## directory exists but does not have the relevant files (bug#1287).
7337 ## FIXME better to test for binary compatibility somehow.
7338 test -e /usr
/lib64
/crtn.o
&& CRT_DIR
=/usr
/lib64
7341 powerpc64-
*-linux-gnu* | sparc64-
*-linux-gnu*) CRT_DIR
=/usr
/lib64
;;
7345 hpux10-20
) CRT_DIR
=/lib
;;
7348 ## Default is /usr/lib.
7349 test "X$CRT_DIR" = "X" && CRT_DIR
=/usr
/lib
7353 ## Some platforms don't use any of these files, so it is not
7354 ## appropriate to put this test outside the if block.
7355 test -e $CRT_DIR/crtn.o ||
test -e $CRT_DIR/crt0.o || \
7356 as_fn_error
"crt*.o not found in specified location." "$LINENO" 5
7369 START_FILES
='pre-crt0.o'
7372 ## Adding -lm confuses the dynamic linker, so omit it.
7374 START_FILES
='pre-crt0.o'
7377 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
7378 START_FILES
='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
7380 gnu-linux | gnu-kfreebsd
)
7381 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtn.o'
7382 START_FILES
='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o'
7384 hpux10-20 | hpux11
)
7386 START_FILES
='pre-crt0.o $(CRT_DIR)/crt0.o'
7389 if test -f $CRT_DIR/crti.o
; then
7390 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
7391 START_FILES
='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
7393 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o'
7394 START_FILES
='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crtbegin.o'
7405 if test "${with_sound}" != "no"; then
7406 # Sound support for GNU/Linux and the free BSDs.
7407 for ac_header
in machine
/soundcard.h sys
/soundcard.h soundcard.h
7409 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7410 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7411 eval as_val
=\$
$as_ac_Header
7412 if test "x$as_val" = x
""yes; then :
7413 cat >>confdefs.h
<<_ACEOF
7414 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7416 have_sound_header
=yes
7421 # Emulation library used on NetBSD.
7422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
7423 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
7424 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then :
7425 $as_echo_n "(cached) " >&6
7427 ac_check_lib_save_LIBS
=$LIBS
7428 LIBS
="-lossaudio $LIBS"
7429 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7430 /* end confdefs.h. */
7432 /* Override any GCC internal prototype to avoid an error.
7433 Use char because int might match the return type of a GCC
7434 builtin and then its argument prototype would still apply. */
7442 return _oss_ioctl ();
7447 if ac_fn_c_try_link
"$LINENO"; then :
7448 ac_cv_lib_ossaudio__oss_ioctl
=yes
7450 ac_cv_lib_ossaudio__oss_ioctl
=no
7452 rm -f core conftest.err conftest.
$ac_objext \
7453 conftest
$ac_exeext conftest.
$ac_ext
7454 LIBS
=$ac_check_lib_save_LIBS
7456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
7457 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
7458 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = x
""yes; then :
7467 ALSA_MODULES
="alsa >= $ALSA_REQUIRED"
7471 # Extract the first word of "pkg-config", so it can be a program name with args.
7472 set dummy pkg-config
; ac_word
=$2
7473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7474 $as_echo_n "checking for $ac_word... " >&6; }
7475 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
7476 $as_echo_n "(cached) " >&6
7480 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
7483 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7487 test -z "$as_dir" && as_dir
=.
7488 for ac_exec_ext
in '' $ac_executable_extensions; do
7489 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7490 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
7491 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7498 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
7502 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
7503 if test -n "$PKG_CONFIG"; then
7504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7505 $as_echo "$PKG_CONFIG" >&6; }
7507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7508 $as_echo "no" >&6; }
7513 if test "$PKG_CONFIG" = "no" ; then
7516 PKG_CONFIG_MIN_VERSION
=0.9.0
7517 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
7518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ALSA_MODULES" >&5
7519 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
7521 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
7522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7523 $as_echo "yes" >&6; }
7526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_CFLAGS" >&5
7527 $as_echo_n "checking ALSA_CFLAGS... " >&6; }
7528 ALSA_CFLAGS
=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
7529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
7530 $as_echo "$ALSA_CFLAGS" >&6; }
7532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_LIBS" >&5
7533 $as_echo_n "checking ALSA_LIBS... " >&6; }
7534 ALSA_LIBS
=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
7535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
7536 $as_echo "$ALSA_LIBS" >&6; }
7538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7539 $as_echo "no" >&6; }
7542 ## If we have a custom action on failure, don't print errors, but
7543 ## do set a variable so people can do so.
7544 ALSA_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
7551 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
7552 echo "*** See http://www.freedesktop.org/software/pkgconfig"
7556 if test $succeeded = yes; then
7562 if test $HAVE_ALSA = yes; then
7563 SAVE_CFLAGS
="$CFLAGS"
7564 SAVE_LDFLAGS
="$LDFLAGS"
7565 CFLAGS
="$ALSA_CFLAGS $CFLAGS"
7566 LDFLAGS
="$ALSA_LIBS $LDFLAGS"
7567 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7568 /* end confdefs.h. */
7569 #include <asoundlib.h>
7573 snd_lib_error_set_handler (0);
7578 if ac_fn_c_try_compile
"$LINENO"; then :
7579 emacs_alsa_normal
=yes
7581 emacs_alsa_normal
=no
7583 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7584 if test "$emacs_alsa_normal" != yes; then
7585 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7586 /* end confdefs.h. */
7587 #include <alsa/asoundlib.h>
7591 snd_lib_error_set_handler (0);
7596 if ac_fn_c_try_compile
"$LINENO"; then :
7597 emacs_alsa_subdir
=yes
7599 emacs_alsa_subdir
=no
7601 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7602 if test "$emacs_alsa_subdir" != yes; then
7603 as_fn_error
"pkg-config found alsa, but it does not compile. See config.log for error messages." "$LINENO" 5
7605 ALSA_CFLAGS
="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
7608 CFLAGS
="$SAVE_CFLAGS"
7609 LDFLAGS
="$SAVE_LDFLAGS"
7610 LIBSOUND
="$LIBSOUND $ALSA_LIBS"
7611 CFLAGS_SOUND
="$CFLAGS_SOUND $ALSA_CFLAGS"
7613 $as_echo "#define HAVE_ALSA 1" >>confdefs.h
7617 if test x
$have_sound_header = xyes ||
test $HAVE_ALSA = yes; then
7619 gnu-linux|freebsd|netbsd
)
7621 $as_echo "#define HAVE_SOUND 1" >>confdefs.h
7630 for ac_header
in sys
/select.h sys
/time.h unistd.h utime.h \
7631 linux
/version.h sys
/systeminfo.h limits.h \
7632 stdio_ext.h fcntl.h coff.h pty.h sys
/mman.h \
7633 sys
/vlimit.h sys
/resource.h locale.h sys
/_mbstate_t.h \
7634 sys
/utsname.h
pwd.h utmp.h dirent.h util.h
7636 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7637 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7638 eval as_val
=\$
$as_ac_Header
7639 if test "x$as_val" = x
""yes; then :
7640 cat >>confdefs.h
<<_ACEOF
7641 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if personality LINUX32 can be set" >&5
7650 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
7651 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7652 /* end confdefs.h. */
7653 #include <sys/personality.h>
7657 personality (PER_LINUX32)
7662 if ac_fn_c_try_compile
"$LINENO"; then :
7663 emacs_cv_personality_linux32
=yes
7665 emacs_cv_personality_linux32
=no
7667 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_personality_linux32" >&5
7669 $as_echo "$emacs_cv_personality_linux32" >&6; }
7671 if test $emacs_cv_personality_linux32 = yes; then
7673 $as_echo "#define HAVE_PERSONALITY_LINUX32 1" >>confdefs.h
7677 for ac_header
in term.h
7679 ac_fn_c_check_header_preproc
"$LINENO" "term.h" "ac_cv_header_term_h"
7680 if test "x$ac_cv_header_term_h" = x
""yes; then :
7681 cat >>confdefs.h
<<_ACEOF
7682 #define HAVE_TERM_H 1
7689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7690 $as_echo_n "checking for ANSI C header files... " >&6; }
7691 if test "${ac_cv_header_stdc+set}" = set; then :
7692 $as_echo_n "(cached) " >&6
7694 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7695 /* end confdefs.h. */
7709 if ac_fn_c_try_compile
"$LINENO"; then :
7710 ac_cv_header_stdc
=yes
7712 ac_cv_header_stdc
=no
7714 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7716 if test $ac_cv_header_stdc = yes; then
7717 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7718 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7719 /* end confdefs.h. */
7723 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7724 $EGREP "memchr" >/dev
/null
2>&1; then :
7727 ac_cv_header_stdc
=no
7733 if test $ac_cv_header_stdc = yes; then
7734 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7735 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7736 /* end confdefs.h. */
7740 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7741 $EGREP "free" >/dev
/null
2>&1; then :
7744 ac_cv_header_stdc
=no
7750 if test $ac_cv_header_stdc = yes; then
7751 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7752 if test "$cross_compiling" = yes; then :
7755 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7756 /* end confdefs.h. */
7759 #if ((' ' & 0x0FF) == 0x020)
7760 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7761 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7763 # define ISLOWER(c) \
7764 (('a' <= (c) && (c) <= 'i') \
7765 || ('j' <= (c) && (c) <= 'r') \
7766 || ('s' <= (c) && (c) <= 'z'))
7767 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7770 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7775 for (i = 0; i < 256; i++)
7776 if (XOR (islower (i), ISLOWER (i))
7777 || toupper (i) != TOUPPER (i))
7782 if ac_fn_c_try_run
"$LINENO"; then :
7785 ac_cv_header_stdc
=no
7787 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7788 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7794 $as_echo "$ac_cv_header_stdc" >&6; }
7795 if test $ac_cv_header_stdc = yes; then
7797 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
7802 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
7803 if test "${ac_cv_header_time+set}" = set; then :
7804 $as_echo_n "(cached) " >&6
7806 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7807 /* end confdefs.h. */
7808 #include <sys/types.h>
7809 #include <sys/time.h>
7815 if ((struct tm *) 0)
7821 if ac_fn_c_try_compile
"$LINENO"; then :
7822 ac_cv_header_time
=yes
7824 ac_cv_header_time
=no
7826 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
7829 $as_echo "$ac_cv_header_time" >&6; }
7830 if test $ac_cv_header_time = yes; then
7832 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
7836 ac_fn_c_check_decl
"$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "$ac_includes_default"
7837 if test "x$ac_cv_have_decl_sys_siglist" = x
""yes; then :
7843 cat >>confdefs.h
<<_ACEOF
7844 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
7847 if test $ac_cv_have_decl_sys_siglist != yes; then
7848 # For Tru64, at least:
7849 ac_fn_c_check_decl
"$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "$ac_includes_default"
7850 if test "x$ac_cv_have_decl___sys_siglist" = x
""yes; then :
7856 cat >>confdefs.h
<<_ACEOF
7857 #define HAVE_DECL___SYS_SIGLIST $ac_have_decl
7860 if test $ac_cv_have_decl___sys_siglist = yes; then
7862 $as_echo "#define sys_siglist __sys_siglist" >>confdefs.h
7866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
7867 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
7868 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
7869 $as_echo_n "(cached) " >&6
7871 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7872 /* end confdefs.h. */
7873 #include <sys/types.h>
7874 #include <sys/wait.h>
7876 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7879 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7887 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7892 if ac_fn_c_try_compile
"$LINENO"; then :
7893 ac_cv_header_sys_wait_h
=yes
7895 ac_cv_header_sys_wait_h
=no
7897 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
7900 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
7901 if test $ac_cv_header_sys_wait_h = yes; then
7903 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
7908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utimbuf" >&5
7909 $as_echo_n "checking for struct utimbuf... " >&6; }
7910 if test "${emacs_cv_struct_utimbuf+set}" = set; then :
7911 $as_echo_n "(cached) " >&6
7913 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7914 /* end confdefs.h. */
7915 #ifdef TIME_WITH_SYS_TIME
7916 #include <sys/time.h>
7919 #ifdef HAVE_SYS_TIME_H
7920 #include <sys/time.h>
7931 static struct utimbuf x; x.actime = x.modtime;
7936 if ac_fn_c_try_compile
"$LINENO"; then :
7937 emacs_cv_struct_utimbuf
=yes
7939 emacs_cv_struct_utimbuf
=no
7941 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_utimbuf" >&5
7944 $as_echo "$emacs_cv_struct_utimbuf" >&6; }
7945 if test $emacs_cv_struct_utimbuf = yes; then
7947 $as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h
7951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t" >&5
7952 $as_echo_n "checking for speed_t... " >&6; }
7953 if test "${emacs_cv_speed_t+set}" = set; then :
7954 $as_echo_n "(cached) " >&6
7956 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7957 /* end confdefs.h. */
7958 #include <termios.h>
7967 if ac_fn_c_try_compile
"$LINENO"; then :
7968 emacs_cv_speed_t
=yes
7972 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_speed_t" >&5
7975 $as_echo "$emacs_cv_speed_t" >&6; }
7976 if test $emacs_cv_speed_t = yes; then
7978 $as_echo "#define HAVE_SPEED_T 1" >>confdefs.h
7982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
7983 $as_echo_n "checking for struct timeval... " >&6; }
7984 if test "${emacs_cv_struct_timeval+set}" = set; then :
7985 $as_echo_n "(cached) " >&6
7987 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7988 /* end confdefs.h. */
7989 #ifdef TIME_WITH_SYS_TIME
7990 #include <sys/time.h>
7993 #ifdef HAVE_SYS_TIME_H
7994 #include <sys/time.h>
8002 static struct timeval x; x.tv_sec = x.tv_usec;
8007 if ac_fn_c_try_compile
"$LINENO"; then :
8008 emacs_cv_struct_timeval
=yes
8010 emacs_cv_struct_timeval
=no
8012 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_timeval" >&5
8015 $as_echo "$emacs_cv_struct_timeval" >&6; }
8016 HAVE_TIMEVAL
=$emacs_cv_struct_timeval
8017 if test $emacs_cv_struct_timeval = yes; then
8019 $as_echo "#define HAVE_TIMEVAL 1" >>confdefs.h
8023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct exception" >&5
8024 $as_echo_n "checking for struct exception... " >&6; }
8025 if test "${emacs_cv_struct_exception+set}" = set; then :
8026 $as_echo_n "(cached) " >&6
8028 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8029 /* end confdefs.h. */
8034 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
8039 if ac_fn_c_try_compile
"$LINENO"; then :
8040 emacs_cv_struct_exception
=yes
8042 emacs_cv_struct_exception
=no
8044 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_exception" >&5
8047 $as_echo "$emacs_cv_struct_exception" >&6; }
8048 HAVE_EXCEPTION
=$emacs_cv_struct_exception
8049 if test $emacs_cv_struct_exception != yes; then
8051 $as_echo "#define NO_MATHERR 1" >>confdefs.h
8055 for ac_header
in net
/if.h
8057 ac_fn_c_check_header_compile
"$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
8058 #if HAVE_SYS_SOCKET_H
8059 #include <sys/socket.h>
8062 if test "x$ac_cv_header_net_if_h" = x
""yes; then :
8063 cat >>confdefs.h
<<_ACEOF
8064 #define HAVE_NET_IF_H 1
8072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
8073 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
8074 if test "${ac_cv_struct_tm+set}" = set; then :
8075 $as_echo_n "(cached) " >&6
8077 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8078 /* end confdefs.h. */
8079 #include <sys/types.h>
8086 int *p = &tm.tm_sec;
8092 if ac_fn_c_try_compile
"$LINENO"; then :
8093 ac_cv_struct_tm
=time.h
8095 ac_cv_struct_tm
=sys
/time.h
8097 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
8100 $as_echo "$ac_cv_struct_tm" >&6; }
8101 if test $ac_cv_struct_tm = sys
/time.h
; then
8103 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
8107 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
8108 #include <$ac_cv_struct_tm>
8111 if test "x$ac_cv_member_struct_tm_tm_zone" = x
""yes; then :
8113 cat >>confdefs.h
<<_ACEOF
8114 #define HAVE_STRUCT_TM_TM_ZONE 1
8120 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
8122 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
8125 ac_fn_c_check_decl
"$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
8127 if test "x$ac_cv_have_decl_tzname" = x
""yes; then :
8133 cat >>confdefs.h
<<_ACEOF
8134 #define HAVE_DECL_TZNAME $ac_have_decl
8137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
8138 $as_echo_n "checking for tzname... " >&6; }
8139 if test "${ac_cv_var_tzname+set}" = set; then :
8140 $as_echo_n "(cached) " >&6
8142 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8143 /* end confdefs.h. */
8145 #if !HAVE_DECL_TZNAME
8146 extern char *tzname[];
8152 return tzname[0][0];
8157 if ac_fn_c_try_link
"$LINENO"; then :
8158 ac_cv_var_tzname
=yes
8162 rm -f core conftest.err conftest.
$ac_objext \
8163 conftest
$ac_exeext conftest.
$ac_ext
8165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
8166 $as_echo "$ac_cv_var_tzname" >&6; }
8167 if test $ac_cv_var_tzname = yes; then
8169 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
8174 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
8176 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x
""yes; then :
8178 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
8182 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_flags" "ac_cv_member_struct_ifreq_ifr_flags" "$ac_includes_default
8183 #if HAVE_SYS_SOCKET_H
8184 #include <sys/socket.h>
8190 if test "x$ac_cv_member_struct_ifreq_ifr_flags" = x
""yes; then :
8192 cat >>confdefs.h
<<_ACEOF
8193 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8198 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "$ac_includes_default
8199 #if HAVE_SYS_SOCKET_H
8200 #include <sys/socket.h>
8206 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = x
""yes; then :
8208 cat >>confdefs.h
<<_ACEOF
8209 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8214 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_netmask" "ac_cv_member_struct_ifreq_ifr_netmask" "$ac_includes_default
8215 #if HAVE_SYS_SOCKET_H
8216 #include <sys/socket.h>
8222 if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = x
""yes; then :
8224 cat >>confdefs.h
<<_ACEOF
8225 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8230 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_broadaddr" "ac_cv_member_struct_ifreq_ifr_broadaddr" "$ac_includes_default
8231 #if HAVE_SYS_SOCKET_H
8232 #include <sys/socket.h>
8238 if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = x
""yes; then :
8240 cat >>confdefs.h
<<_ACEOF
8241 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8246 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_addr" "ac_cv_member_struct_ifreq_ifr_addr" "$ac_includes_default
8247 #if HAVE_SYS_SOCKET_H
8248 #include <sys/socket.h>
8254 if test "x$ac_cv_member_struct_ifreq_ifr_addr" = x
""yes; then :
8256 cat >>confdefs.h
<<_ACEOF
8257 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
8266 $as_echo_n "checking for function prototypes... " >&6; }
8267 if test "$ac_cv_prog_cc_c89" != no
; then
8268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8269 $as_echo "yes" >&6; }
8271 $as_echo "#define PROTOTYPES 1" >>confdefs.h
8274 $as_echo "#define __PROTOTYPES 1" >>confdefs.h
8277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8278 $as_echo "no" >&6; }
8281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
8282 $as_echo_n "checking for working volatile... " >&6; }
8283 if test "${ac_cv_c_volatile+set}" = set; then :
8284 $as_echo_n "(cached) " >&6
8286 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8287 /* end confdefs.h. */
8294 int * volatile y = (int *) 0;
8300 if ac_fn_c_try_compile
"$LINENO"; then :
8301 ac_cv_c_volatile
=yes
8305 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
8308 $as_echo "$ac_cv_c_volatile" >&6; }
8309 if test $ac_cv_c_volatile = no
; then
8311 $as_echo "#define volatile /**/" >>confdefs.h
8315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
8316 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
8317 if test "${ac_cv_c_const+set}" = set; then :
8318 $as_echo_n "(cached) " >&6
8320 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8321 /* end confdefs.h. */
8326 /* FIXME: Include the comments suggested by Paul. */
8328 /* Ultrix mips cc rejects this. */
8329 typedef int charset[2];
8331 /* SunOS 4.1.1 cc rejects this. */
8332 char const *const *pcpcc;
8334 /* NEC SVR4.0.2 mips cc rejects this. */
8335 struct point {int x, y;};
8336 static struct point const zero = {0,0};
8337 /* AIX XL C 1.02.0.0 rejects this.
8338 It does not let you subtract one const X* pointer from another in
8339 an arm of an if-expression whose if-part is not a constant
8341 const char *g = "string";
8342 pcpcc = &g + (g ? g-g : 0);
8343 /* HPUX 7.0 cc rejects these. */
8345 ppc = (char**) pcpcc;
8346 pcpcc = (char const *const *) ppc;
8347 { /* SCO 3.2v4 cc rejects this. */
8349 char const *s = 0 ? (char *) 0 : (char const *) 0;
8354 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8356 const int *foo = &x[0];
8359 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8360 typedef const int *iptr;
8364 { /* AIX XL C 1.02.0.0 rejects this saying
8365 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8366 struct s { int j; const int *ap[3]; };
8367 struct s *b; b->j = 5;
8369 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8373 return !cs[0] && !zero.x;
8380 if ac_fn_c_try_compile
"$LINENO"; then :
8385 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
8388 $as_echo "$ac_cv_c_const" >&6; }
8389 if test $ac_cv_c_const = no
; then
8391 $as_echo "#define const /**/" >>confdefs.h
8395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for void * support" >&5
8396 $as_echo_n "checking for void * support... " >&6; }
8397 if test "${emacs_cv_void_star+set}" = set; then :
8398 $as_echo_n "(cached) " >&6
8400 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8401 /* end confdefs.h. */
8411 if ac_fn_c_try_compile
"$LINENO"; then :
8412 emacs_cv_void_star
=yes
8414 emacs_cv_void_star
=no
8416 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_void_star" >&5
8419 $as_echo "$emacs_cv_void_star" >&6; }
8420 if test $emacs_cv_void_star = yes; then
8421 $as_echo "#define POINTER_TYPE void" >>confdefs.h
8424 $as_echo "#define POINTER_TYPE char" >>confdefs.h
8428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8429 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8430 if test "${ac_cv_c_bigendian+set}" = set; then :
8431 $as_echo_n "(cached) " >&6
8433 ac_cv_c_bigendian
=unknown
8434 # See if we're dealing with a universal compiler.
8435 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8436 /* end confdefs.h. */
8437 #ifndef __APPLE_CC__
8438 not a universal capable compiler
8443 if ac_fn_c_try_compile
"$LINENO"; then :
8445 # Check for potential -arch flags. It is not universal unless
8446 # there are at least two -arch flags with different values.
8449 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8450 if test -n "$ac_prev"; then
8452 i?
86 | x86_64 | ppc | ppc64
)
8453 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
8456 ac_cv_c_bigendian
=universal
8462 elif test "x$ac_word" = "x-arch"; then
8467 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8468 if test $ac_cv_c_bigendian = unknown
; then
8469 # See if sys/param.h defines the BYTE_ORDER macro.
8470 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8471 /* end confdefs.h. */
8472 #include <sys/types.h>
8473 #include <sys/param.h>
8478 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8479 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8488 if ac_fn_c_try_compile
"$LINENO"; then :
8489 # It does; now see whether it defined to BIG_ENDIAN or not.
8490 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8491 /* end confdefs.h. */
8492 #include <sys/types.h>
8493 #include <sys/param.h>
8498 #if BYTE_ORDER != BIG_ENDIAN
8506 if ac_fn_c_try_compile
"$LINENO"; then :
8507 ac_cv_c_bigendian
=yes
8509 ac_cv_c_bigendian
=no
8511 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8513 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8515 if test $ac_cv_c_bigendian = unknown
; then
8516 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8517 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8518 /* end confdefs.h. */
8524 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8532 if ac_fn_c_try_compile
"$LINENO"; then :
8533 # It does; now see whether it defined to _BIG_ENDIAN or not.
8534 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8535 /* end confdefs.h. */
8549 if ac_fn_c_try_compile
"$LINENO"; then :
8550 ac_cv_c_bigendian
=yes
8552 ac_cv_c_bigendian
=no
8554 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8556 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8558 if test $ac_cv_c_bigendian = unknown
; then
8559 # Compile a test program.
8560 if test "$cross_compiling" = yes; then :
8561 # Try to guess by grepping values from an object file.
8562 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8563 /* end confdefs.h. */
8564 short int ascii_mm[] =
8565 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8566 short int ascii_ii[] =
8567 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8568 int use_ascii (int i) {
8569 return ascii_mm[i] + ascii_ii[i];
8571 short int ebcdic_ii[] =
8572 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8573 short int ebcdic_mm[] =
8574 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8575 int use_ebcdic (int i) {
8576 return ebcdic_mm[i] + ebcdic_ii[i];
8583 return use_ascii (foo) == use_ebcdic (foo);
8588 if ac_fn_c_try_compile
"$LINENO"; then :
8589 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
8590 ac_cv_c_bigendian
=yes
8592 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
8593 if test "$ac_cv_c_bigendian" = unknown
; then
8594 ac_cv_c_bigendian
=no
8596 # finding both strings is unlikely to happen, but who knows?
8597 ac_cv_c_bigendian
=unknown
8601 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8603 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8604 /* end confdefs.h. */
8605 $ac_includes_default
8610 /* Are we little or big endian? From Harbison&Steele. */
8614 char c[sizeof (long int)];
8617 return u.c[sizeof (long int) - 1] == 1;
8623 if ac_fn_c_try_run
"$LINENO"; then :
8624 ac_cv_c_bigendian
=no
8626 ac_cv_c_bigendian
=yes
8628 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8629 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8635 $as_echo "$ac_cv_c_bigendian" >&6; }
8636 case $ac_cv_c_bigendian in #(
8638 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8644 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8648 as_fn_error
"unknown endianness
8649 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__ ((__aligned__ (expr)))" >&5
8654 $as_echo_n "checking for __attribute__ ((__aligned__ (expr)))... " >&6; }
8655 if test "${emacs_cv_attribute_aligned+set}" = set; then :
8656 $as_echo_n "(cached) " >&6
8658 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8659 /* end confdefs.h. */
8660 char __attribute__ ((__aligned__ (1 << 3))) c;
8669 if ac_fn_c_try_compile
"$LINENO"; then :
8670 emacs_cv_attribute_aligned
=yes
8672 emacs_cv_attribute_aligned
=no
8674 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_attribute_aligned" >&5
8677 $as_echo "$emacs_cv_attribute_aligned" >&6; }
8678 if test $emacs_cv_attribute_aligned = yes; then
8680 $as_echo "#define HAVE_ATTRIBUTE_ALIGNED 1" >>confdefs.h
8684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8685 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
8687 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8688 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
8689 $as_echo_n "(cached) " >&6
8691 cat >conftest.
make <<\_ACEOF
8694 @
echo '@@@%%%=$(MAKE)=@@@%%%'
8696 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8697 case `${MAKE-make} -f conftest.make 2>/dev/null` in
8699 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
8701 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
8705 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
8706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8707 $as_echo "yes" >&6; }
8710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8711 $as_echo "no" >&6; }
8712 SET_MAKE
="MAKE=${MAKE-make}"
8719 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
8720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU Make" >&5
8721 $as_echo_n "checking whether we are using GNU Make... " >&6; }
8723 testval
=`make --version 2>/dev/null | grep 'GNU Make'`
8724 if test "x$testval" != x
; then
8727 ac_enable_autodepend
=no
8729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_GNU_MAKE" >&5
8730 $as_echo "$HAVE_GNU_MAKE" >&6; }
8731 if test $HAVE_GNU_MAKE = yes; then
8732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -MMD -MF" >&5
8733 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
8734 SAVE_CFLAGS
="$CFLAGS"
8735 CFLAGS
="$CFLAGS -MMD -MF deps.d"
8736 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8737 /* end confdefs.h. */
8747 if ac_fn_c_try_compile
"$LINENO"; then :
8750 ac_enable_autodepend
=no
8752 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8753 CFLAGS
="$SAVE_CFLAGS"
8754 test -f deps.d || ac_enable_autodepend
=no
8756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_autodepend" >&5
8757 $as_echo "$ac_enable_autodepend" >&6; }
8759 if test $ac_enable_autodepend = yes; then
8760 DEPFLAGS
='-MMD -MF ${DEPDIR}/$*.d'
8761 ## In parallel builds, another make might create depdir between
8762 ## the first test and mkdir, so stick another test on the end.
8763 ## Or use install-sh -d? mkdir -p is not portable.
8764 MKDEPDIR
='test -d ${DEPDIR} || mkdir ${DEPDIR} || test -d ${DEPDIR}'
8765 deps_frag
=autodeps.mk
8768 deps_frag
=$srcdir/src
/$deps_frag
8774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5
8775 $as_echo_n "checking for long file names... " >&6; }
8776 if test "${ac_cv_sys_long_file_names+set}" = set; then :
8777 $as_echo_n "(cached) " >&6
8779 ac_cv_sys_long_file_names
=yes
8780 # Test for long file names in all the places we know might matter:
8781 # . the current directory, where building will happen
8782 # $prefix/lib where we will be installing things
8783 # $exec_prefix/lib likewise
8784 # $TMPDIR if set, where it might want to write temporary files
8785 # /tmp where it might want to write temporary files
8788 for ac_dir
in .
"$TMPDIR" /tmp
/var
/tmp
/usr
/tmp
"$prefix/lib" "$exec_prefix/lib"; do
8789 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
8790 # in the usual case where exec_prefix is '${prefix}'.
8792 . |
/* | ?
:[\\/]*) ;; #(
8795 test -w "$ac_dir/." ||
continue # It is less confusing to not echo anything here.
8796 ac_xdir
=$ac_dir/cf$$
8797 (umask 077 && mkdir
"$ac_xdir" 2>/dev
/null
) ||
continue
8798 ac_tf1
=$ac_xdir/conftest9012345
8799 ac_tf2
=$ac_xdir/conftest9012346
8800 touch "$ac_tf1" 2>/dev
/null
&& test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
8801 ac_cv_sys_long_file_names
=no
8802 rm -f -r "$ac_xdir" 2>/dev
/null
8803 test $ac_cv_sys_long_file_names = no
&& break
8806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5
8807 $as_echo "$ac_cv_sys_long_file_names" >&6; }
8808 if test $ac_cv_sys_long_file_names = yes; then
8810 $as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h
8815 #### Choose a window system.
8817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
8818 $as_echo_n "checking for X... " >&6; }
8821 # Check whether --with-x was given.
8822 if test "${with_x+set}" = set; then :
8826 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8827 if test "x$with_x" = xno
; then
8828 # The user explicitly disabled X.
8831 case $x_includes,$x_libraries in #(
8832 *\'*) as_fn_error
"cannot use X directory names containing '" "$LINENO" 5;; #(
8833 *,NONE | NONE
,*) if test "${ac_cv_have_x+set}" = set; then :
8834 $as_echo_n "(cached) " >&6
8836 # One or both of the vars are not set, and there is no cached value.
8837 ac_x_includes
=no ac_x_libraries
=no
8838 rm -f -r conftest.dir
8839 if mkdir conftest.dir
; then
8841 cat >Imakefile
<<'_ACEOF'
8843 @echo incroot='${INCROOT}'
8845 @echo usrlibdir='${USRLIBDIR}'
8847 @echo libdir='${LIBDIR}'
8849 if (export CC
; ${XMKMF-xmkmf}) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
8850 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8851 for ac_var
in incroot usrlibdir libdir
; do
8852 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
8854 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8855 for ac_extension
in a so sl dylib la dll
; do
8856 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
8857 test -f "$ac_im_libdir/libX11.$ac_extension"; then
8858 ac_im_usrlibdir
=$ac_im_libdir; break
8861 # Screen out bogus values from the imake configuration. They are
8862 # bogus both because they are the default anyway, and because
8863 # using them would break gcc on systems where it needs fixed includes.
8864 case $ac_im_incroot in
8865 /usr
/include
) ac_x_includes
= ;;
8866 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
8868 case $ac_im_usrlibdir in
8869 /usr
/lib |
/usr
/lib64 |
/lib |
/lib64
) ;;
8870 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
8874 rm -f -r conftest.dir
8877 # Standard set of common directories for X headers.
8878 # Check X11 before X11Rn because it is often a symlink to the current release.
8892 /usr/local/X11/include
8893 /usr/local/X11R7/include
8894 /usr/local/X11R6/include
8895 /usr/local/X11R5/include
8896 /usr/local/X11R4/include
8898 /usr/local/include/X11
8899 /usr/local/include/X11R7
8900 /usr/local/include/X11R6
8901 /usr/local/include/X11R5
8902 /usr/local/include/X11R4
8906 /usr/XFree86/include/X11
8910 /usr/unsupported/include
8912 /usr/local/x11r5/include
8913 /usr/lpp/Xamples/include
8915 /usr/openwin/include
8916 /usr/openwin/share/include'
8918 if test "$ac_x_includes" = no
; then
8919 # Guess where to find include files, by looking for Xlib.h.
8920 # First, try using that file with no special directory specified.
8921 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8922 /* end confdefs.h. */
8923 #include <X11/Xlib.h>
8925 if ac_fn_c_try_cpp
"$LINENO"; then :
8926 # We can compile using X headers with no special include directory.
8929 for ac_dir
in $ac_x_header_dirs; do
8930 if test -r "$ac_dir/X11/Xlib.h"; then
8931 ac_x_includes
=$ac_dir
8936 rm -f conftest.err conftest.
$ac_ext
8937 fi # $ac_x_includes = no
8939 if test "$ac_x_libraries" = no
; then
8940 # Check for the libraries.
8941 # See if we find them without any special options.
8942 # Don't add to $LIBS permanently.
8945 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8946 /* end confdefs.h. */
8947 #include <X11/Xlib.h>
8956 if ac_fn_c_try_link
"$LINENO"; then :
8958 # We can link X programs with no special library path.
8962 for ac_dir
in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8964 # Don't even attempt the hair of trying to link an X program!
8965 for ac_extension
in a so sl dylib la dll
; do
8966 if test -r "$ac_dir/libX11.$ac_extension"; then
8967 ac_x_libraries
=$ac_dir
8973 rm -f core conftest.err conftest.
$ac_objext \
8974 conftest
$ac_exeext conftest.
$ac_ext
8975 fi # $ac_x_libraries = no
8977 case $ac_x_includes,$ac_x_libraries in #(
8979 # Didn't find X, or a directory has "'" in its name.
8980 ac_cv_have_x
="have_x=no";; #(
8982 # Record where we found X for the cache.
8983 ac_cv_have_x
="have_x=yes\
8984 ac_x_includes='$ac_x_includes'\
8985 ac_x_libraries='$ac_x_libraries'"
8991 eval "$ac_cv_have_x"
8994 if test "$have_x" != yes; then
8995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
8996 $as_echo "$have_x" >&6; }
8999 # If each of the values was on the command line, it overrides each guess.
9000 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
9001 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
9002 # Update the cache value to reflect the command line values.
9003 ac_cv_have_x
="have_x=yes\
9004 ac_x_includes='$x_includes'\
9005 ac_x_libraries='$x_libraries'"
9006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
9007 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
9010 if test "$no_x" = yes; then
9016 ## Workaround for bug in autoconf <= 2.62.
9017 ## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
9018 ## No need to do anything special for these standard directories.
9019 if test -n "${x_libraries}" && test x
"${x_libraries}" != xNONE
; then
9021 x_libraries
=`echo :${x_libraries}: | sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
9025 LD_SWITCH_X_SITE_AUX
=
9026 LD_SWITCH_X_SITE_AUX_RPATH
=
9027 if test "${x_libraries}" != NONE
; then
9028 if test -n "${x_libraries}"; then
9029 LD_SWITCH_X_SITE
=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9030 LD_SWITCH_X_SITE_AUX
=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
9031 LD_SWITCH_X_SITE_AUX_RPATH
=`echo ${LD_SWITCH_X_SITE_AUX} | sed -e 's/-R/-Wl,-rpath,/'`
9033 x_default_search_path
=""
9034 x_search_path
=${x_libraries}
9035 if test -z "${x_search_path}"; then
9036 x_search_path
=/usr
/lib
9038 for x_library
in `echo ${x_search_path}: | \
9039 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9041 ${x_library}/X11/%L/%T/%N%C%S:\
9042 ${x_library}/X11/%l/%T/%N%C%S:\
9043 ${x_library}/X11/%T/%N%C%S:\
9044 ${x_library}/X11/%L/%T/%N%S:\
9045 ${x_library}/X11/%l/%T/%N%S:\
9046 ${x_library}/X11/%T/%N%S"
9047 if test x
"${x_default_search_path}" = x
; then
9048 x_default_search_path
=${x_search_path}
9050 x_default_search_path
="${x_search_path}:${x_default_search_path}"
9057 if test "${x_includes}" != NONE
&& test -n "${x_includes}"; then
9058 C_SWITCH_X_SITE
=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
9061 if test x
"${x_includes}" = x
; then
9062 bitmapdir
=/usr
/include
/X11
/bitmaps
9064 # accumulate include directories that have X11 bitmap subdirectories
9066 for bmd
in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9067 if test -d "${bmd}/X11/bitmaps"; then
9068 bmd_acc
="${bmd_acc}:${bmd}/X11/bitmaps"
9070 if test -d "${bmd}/bitmaps"; then
9071 bmd_acc
="${bmd_acc}:${bmd}/bitmaps"
9074 if test ${bmd_acc} != "dummyval"; then
9075 bitmapdir
=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9082 tmp_CPPFLAGS
="$CPPFLAGS"
9083 tmp_CFLAGS
="$CFLAGS"
9084 CPPFLAGS
="$CPPFLAGS -x objective-c"
9085 CFLAGS
="$CFLAGS -x objective-c"
9086 TEMACS_LDFLAGS2
="\${LDFLAGS}"
9087 if test "${with_ns}" != no
; then
9088 if test "${opsys}" = darwin
; then
9090 ns_appdir
=`pwd`/nextstep
/Emacs.app
9091 ns_appbindir
=${ns_appdir}/Contents
/MacOS
/
9092 ns_appresdir
=${ns_appdir}/Contents
/Resources
9093 ns_appsrc
=${srcdir}/nextstep
/Cocoa
/Emacs.base
9094 elif test -f $GNUSTEP_CONFIG_FILE; then
9096 ns_appdir
=`pwd`/nextstep
/Emacs.app
9097 ns_appbindir
=${ns_appdir}/
9098 ns_appresdir
=${ns_appdir}/Resources
9099 ns_appsrc
=${srcdir}/nextstep
/GNUstep
/Emacs.base
9100 GNUSTEP_SYSTEM_HEADERS
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
9101 GNUSTEP_SYSTEM_LIBRARIES
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
9102 GNUSTEP_LOCAL_HEADERS
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_HEADERS)"
9103 GNUSTEP_LOCAL_LIBRARIES
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_LIBRARIES)"
9104 test "x${GNUSTEP_LOCAL_HEADERS}" != "x" && \
9105 GNUSTEP_LOCAL_HEADERS
="-I${GNUSTEP_LOCAL_HEADERS}"
9106 test "x${GNUSTEP_LOCAL_LIBRARIES}" != "x" && \
9107 GNUSTEP_LOCAL_LIBRARIES
="-L${GNUSTEP_LOCAL_LIBRARIES}"
9108 CPPFLAGS
="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
9109 CFLAGS
="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
9110 LDFLAGS
="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES}"
9115 ac_fn_c_check_header_mongrel
"$LINENO" "AppKit/AppKit.h" "ac_cv_header_AppKit_AppKit_h" "$ac_includes_default"
9116 if test "x$ac_cv_header_AppKit_AppKit_h" = x
""yes; then :
9119 as_fn_error
"\`--with-ns' was specified, but the include
9120 files are missing or cannot be compiled." "$LINENO" 5
9124 NS_HAVE_NSINTEGER
=yes
9125 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9126 /* end confdefs.h. */
9127 #include <Foundation/NSObjCRuntime.h>
9136 if ac_fn_c_try_compile
"$LINENO"; then :
9137 ns_have_nsinteger
=yes
9139 ns_have_nsinteger
=no
9141 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9142 if test $ns_have_nsinteger = no
; then
9143 NS_HAVE_NSINTEGER
=no
9152 if test "${HAVE_NS}" = yes; then
9153 window_system
=nextstep
9155 # set up packaging dirs
9156 exec_prefix
=${ns_appbindir}
9157 libexecdir
=${ns_appbindir}/libexec
9158 if test "${EN_NS_SELF_CONTAINED}" = yes; then
9159 prefix
=${ns_appresdir}
9161 ns_frag
=$srcdir/src
/ns.mk
9162 NS_OBJ
="fontset.o fringe.o image.o"
9163 NS_OBJC_OBJ
="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o"
9164 NS_SUPPORT
="\${lispsource}/emacs-lisp/easymenu.elc \${lispsource}/term/ns-win.elc"
9166 CFLAGS
="$tmp_CFLAGS"
9167 CPPFLAGS
="$tmp_CPPFLAGS"
9174 case "${window_system}" in
9178 case "${with_x_toolkit}" in
9179 athena | lucid
) USE_X_TOOLKIT
=LUCID
;;
9180 motif
) USE_X_TOOLKIT
=MOTIF
;;
9182 USE_X_TOOLKIT
=none
;;
9183 gtk3
) with_gtk3
=yes
9184 USE_X_TOOLKIT
=none
;;
9185 no
) USE_X_TOOLKIT
=none
;;
9186 * ) USE_X_TOOLKIT
=maybe
;;
9196 if test "$window_system" = none
&& test "X$with_x" != "Xno"; then
9197 # Extract the first word of "X", so it can be a program name with args.
9198 set dummy X
; ac_word
=$2
9199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9200 $as_echo_n "checking for $ac_word... " >&6; }
9201 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then :
9202 $as_echo_n "(cached) " >&6
9204 if test -n "$HAVE_XSERVER"; then
9205 ac_cv_prog_HAVE_XSERVER
="$HAVE_XSERVER" # Let the user override the test.
9207 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9211 test -z "$as_dir" && as_dir
=.
9212 for ac_exec_ext
in '' $ac_executable_extensions; do
9213 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9214 ac_cv_prog_HAVE_XSERVER
="true"
9215 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9222 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER
="false"
9225 HAVE_XSERVER
=$ac_cv_prog_HAVE_XSERVER
9226 if test -n "$HAVE_XSERVER"; then
9227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_XSERVER" >&5
9228 $as_echo "$HAVE_XSERVER" >&6; }
9230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9231 $as_echo "no" >&6; }
9235 if test "$HAVE_XSERVER" = true ||
9236 test -n "$DISPLAY" ||
9237 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
9238 as_fn_error
"You seem to be running X, but no X development libraries
9239 were found. You should install the relevant development files for X
9240 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9241 sure you have development files for image handling, i.e.
9242 tiff, gif, jpeg, png and xpm.
9243 If you are sure you want Emacs compiled without X window support, pass
9245 to configure." "$LINENO" 5
9249 ### If we're using X11, we should use the X menu package.
9252 yes ) HAVE_MENUS
=yes ;;
9255 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9256 # Assume not, until told otherwise.
9259 ac_fn_c_check_func
"$LINENO" "malloc_get_state" "ac_cv_func_malloc_get_state"
9260 if test "x$ac_cv_func_malloc_get_state" = x
""yes; then :
9266 ac_fn_c_check_func
"$LINENO" "malloc_set_state" "ac_cv_func_malloc_set_state"
9267 if test "x$ac_cv_func_malloc_set_state" = x
""yes; then :
9273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __after_morecore_hook exists" >&5
9274 $as_echo_n "checking whether __after_morecore_hook exists... " >&6; }
9275 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then :
9276 $as_echo_n "(cached) " >&6
9278 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9279 /* end confdefs.h. */
9280 extern void (* __after_morecore_hook)();
9284 __after_morecore_hook = 0
9289 if ac_fn_c_try_link
"$LINENO"; then :
9290 emacs_cv_var___after_morecore_hook
=yes
9292 emacs_cv_var___after_morecore_hook
=no
9294 rm -f core conftest.err conftest.
$ac_objext \
9295 conftest
$ac_exeext conftest.
$ac_ext
9297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_var___after_morecore_hook" >&5
9298 $as_echo "$emacs_cv_var___after_morecore_hook" >&6; }
9299 if test $emacs_cv_var___after_morecore_hook = no
; then
9306 ## darwin ld insists on the use of malloc routines in the System framework.
9307 darwin|sol2-10
) system_malloc
=yes ;;
9310 if test "${system_malloc}" = "yes"; then
9312 $as_echo "#define SYSTEM_MALLOC 1" >>confdefs.h
9316 (The GNU allocators don't work with this system configuration.)"
9320 test "$doug_lea_malloc" != "yes" && GMALLOC_OBJ
=gmalloc.o
9321 VMLIMIT_OBJ
=vm-limit.o
9326 if test "$doug_lea_malloc" = "yes" ; then
9327 if test "$GNU_MALLOC" = yes ; then
9329 (Using Doug Lea's new malloc from the GNU C Library.)"
9332 $as_echo "#define DOUG_LEA_MALLOC 1" >>confdefs.h
9335 ## Use mmap directly for allocating larger buffers.
9336 ## FIXME this comes from src/s/{gnu,gnu-linux}.h:
9337 ## #ifdef DOUG_LEA_MALLOC; #undef REL_ALLOC; #endif
9338 ## Does the AC_FUNC_MMAP test below make this check unecessary?
9340 gnu
*) REL_ALLOC
=no
;;
9344 if test x
"${REL_ALLOC}" = x
; then
9345 REL_ALLOC
=${GNU_MALLOC}
9348 use_mmap_for_buffers
=no
9350 cygwin|freebsd|irix6-5
) use_mmap_for_buffers
=yes ;;
9356 for ac_header
in $ac_header_list
9358 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9359 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9361 eval as_val
=\$
$as_ac_Header
9362 if test "x$as_val" = x
""yes; then :
9363 cat >>confdefs.h
<<_ACEOF
9364 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9378 for ac_func
in getpagesize
9380 ac_fn_c_check_func
"$LINENO" "getpagesize" "ac_cv_func_getpagesize"
9381 if test "x$ac_cv_func_getpagesize" = x
""yes; then :
9382 cat >>confdefs.h
<<_ACEOF
9383 #define HAVE_GETPAGESIZE 1
9389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
9390 $as_echo_n "checking for working mmap... " >&6; }
9391 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
9392 $as_echo_n "(cached) " >&6
9394 if test "$cross_compiling" = yes; then :
9395 ac_cv_func_mmap_fixed_mapped
=no
9397 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9398 /* end confdefs.h. */
9399 $ac_includes_default
9400 /* malloc might have been renamed as rpl_malloc. */
9403 /* Thanks to Mike Haertel and Jim Avera for this test.
9404 Here is a matrix of mmap possibilities:
9405 mmap private not fixed
9406 mmap private fixed at somewhere currently unmapped
9407 mmap private fixed at somewhere already mapped
9408 mmap shared not fixed
9409 mmap shared fixed at somewhere currently unmapped
9410 mmap shared fixed at somewhere already mapped
9411 For private mappings, we should verify that changes cannot be read()
9412 back from the file, nor mmap's back from the file at a different
9413 address. (There have been systems where private was not correctly
9414 implemented like the infamous i386 svr4.0, and systems where the
9415 VM page cache was not coherent with the file system buffer cache
9416 like early versions of FreeBSD and possibly contemporary NetBSD.)
9417 For shared mappings, we should conversely verify that changes get
9418 propagated back to all the places they're supposed to be.
9420 Grep wants private fixed already mapped.
9421 The main things grep needs to know about mmap are:
9422 * does it exist and is it safe to write into the mmap'd area
9423 * how to use it (BSD variants) */
9426 #include <sys/mman.h>
9428 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
9432 /* This mess was copied from the GNU getpagesize.h. */
9433 #ifndef HAVE_GETPAGESIZE
9434 # ifdef _SC_PAGESIZE
9435 # define getpagesize() sysconf(_SC_PAGESIZE)
9436 # else /* no _SC_PAGESIZE */
9437 # ifdef HAVE_SYS_PARAM_H
9438 # include <sys/param.h>
9439 # ifdef EXEC_PAGESIZE
9440 # define getpagesize() EXEC_PAGESIZE
9441 # else /* no EXEC_PAGESIZE */
9443 # define getpagesize() NBPG * CLSIZE
9446 # endif /* no CLSIZE */
9447 # else /* no NBPG */
9449 # define getpagesize() NBPC
9450 # else /* no NBPC */
9452 # define getpagesize() PAGESIZE
9453 # endif /* PAGESIZE */
9454 # endif /* no NBPC */
9455 # endif /* no NBPG */
9456 # endif /* no EXEC_PAGESIZE */
9457 # else /* no HAVE_SYS_PARAM_H */
9458 # define getpagesize() 8192 /* punt totally */
9459 # endif /* no HAVE_SYS_PARAM_H */
9460 # endif /* no _SC_PAGESIZE */
9462 #endif /* no HAVE_GETPAGESIZE */
9467 char *data, *data2, *data3;
9472 pagesize = getpagesize ();
9474 /* First, make a file with some known garbage in it. */
9475 data = (char *) malloc (pagesize);
9478 for (i = 0; i < pagesize; ++i)
9479 *(data + i) = rand ();
9481 fd = creat ("conftest.mmap", 0600);
9484 if (write (fd, data, pagesize) != pagesize)
9488 /* Next, check that the tail of a page is zero-filled. File must have
9489 non-zero length, otherwise we risk SIGBUS for entire page. */
9490 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
9494 if (write (fd2, cdata2, 1) != 1)
9496 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
9497 if (data2 == MAP_FAILED)
9499 for (i = 0; i < pagesize; ++i)
9503 if (munmap (data2, pagesize))
9506 /* Next, try to mmap the file at a fixed address which already has
9507 something else allocated at it. If we can, also make sure that
9508 we see the same garbage. */
9509 fd = open ("conftest.mmap", O_RDWR);
9512 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9513 MAP_PRIVATE | MAP_FIXED, fd, 0L))
9515 for (i = 0; i < pagesize; ++i)
9516 if (*(data + i) != *(data2 + i))
9519 /* Finally, make sure that changes to the mapped area do not
9520 percolate back to the file as seen by read(). (This is a bug on
9521 some variants of i386 svr4.0.) */
9522 for (i = 0; i < pagesize; ++i)
9523 *(data2 + i) = *(data2 + i) + 1;
9524 data3 = (char *) malloc (pagesize);
9527 if (read (fd, data3, pagesize) != pagesize)
9529 for (i = 0; i < pagesize; ++i)
9530 if (*(data + i) != *(data3 + i))
9536 if ac_fn_c_try_run
"$LINENO"; then :
9537 ac_cv_func_mmap_fixed_mapped
=yes
9539 ac_cv_func_mmap_fixed_mapped
=no
9541 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9542 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
9547 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
9548 if test $ac_cv_func_mmap_fixed_mapped = yes; then
9550 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
9553 rm -f conftest.mmap conftest.txt
9555 if test $use_mmap_for_buffers = yes; then
9557 $as_echo "#define USE_MMAP_FOR_BUFFERS 1" >>confdefs.h
9562 LIBS
="$LIBS_SYSTEM $LIBS"
9564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
9565 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
9566 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
9567 $as_echo_n "(cached) " >&6
9569 ac_check_lib_save_LIBS
=$LIBS
9571 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9572 /* end confdefs.h. */
9574 /* Override any GCC internal prototype to avoid an error.
9575 Use char because int might match the return type of a GCC
9576 builtin and then its argument prototype would still apply. */
9584 return dnet_ntoa ();
9589 if ac_fn_c_try_link
"$LINENO"; then :
9590 ac_cv_lib_dnet_dnet_ntoa
=yes
9592 ac_cv_lib_dnet_dnet_ntoa
=no
9594 rm -f core conftest.err conftest.
$ac_objext \
9595 conftest
$ac_exeext conftest.
$ac_ext
9596 LIBS
=$ac_check_lib_save_LIBS
9598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
9599 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
9600 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x
""yes; then :
9601 cat >>confdefs.h
<<_ACEOF
9602 #define HAVE_LIBDNET 1
9610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXbsd" >&5
9611 $as_echo_n "checking for main in -lXbsd... " >&6; }
9612 if test "${ac_cv_lib_Xbsd_main+set}" = set; then :
9613 $as_echo_n "(cached) " >&6
9615 ac_check_lib_save_LIBS
=$LIBS
9617 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9618 /* end confdefs.h. */
9629 if ac_fn_c_try_link
"$LINENO"; then :
9630 ac_cv_lib_Xbsd_main
=yes
9632 ac_cv_lib_Xbsd_main
=no
9634 rm -f core conftest.err conftest.
$ac_objext \
9635 conftest
$ac_exeext conftest.
$ac_ext
9636 LIBS
=$ac_check_lib_save_LIBS
9638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xbsd_main" >&5
9639 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
9640 if test "x$ac_cv_lib_Xbsd_main" = x
""yes; then :
9641 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -lXbsd"
9645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cma_open in -lpthreads" >&5
9646 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
9647 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then :
9648 $as_echo_n "(cached) " >&6
9650 ac_check_lib_save_LIBS
=$LIBS
9651 LIBS
="-lpthreads $LIBS"
9652 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9653 /* end confdefs.h. */
9655 /* Override any GCC internal prototype to avoid an error.
9656 Use char because int might match the return type of a GCC
9657 builtin and then its argument prototype would still apply. */
9670 if ac_fn_c_try_link
"$LINENO"; then :
9671 ac_cv_lib_pthreads_cma_open
=yes
9673 ac_cv_lib_pthreads_cma_open
=no
9675 rm -f core conftest.err conftest.
$ac_objext \
9676 conftest
$ac_exeext conftest.
$ac_ext
9677 LIBS
=$ac_check_lib_save_LIBS
9679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_cma_open" >&5
9680 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
9681 if test "x$ac_cv_lib_pthreads_cma_open" = x
""yes; then :
9682 cat >>confdefs.h
<<_ACEOF
9683 #define HAVE_LIBPTHREADS 1
9686 LIBS
="-lpthreads $LIBS"
9691 ## Note: when using cpp in s/aix4.2.h, this definition depended on
9692 ## HAVE_LIBPTHREADS. That was not defined earlier in configure when
9693 ## the system file was sourced. Hence the value of LIBS_SYSTEM
9694 ## added to LIBS in configure would never contain the pthreads part,
9695 ## but the value used in Makefiles might. FIXME?
9697 ## -lpthreads seems to be necessary for Xlib in X11R6, and should
9698 ## be harmless on older versions of X where it happens to exist.
9699 test "$opsys" = "aix4-2" && \
9700 test $ac_cv_lib_pthreads_cma_open = yes && \
9701 LIBS_SYSTEM
="$LIBS_SYSTEM -lpthreads"
9706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
9707 $as_echo_n "checking for -bbigtoc option... " >&6; }
9708 if test "${gdb_cv_bigtoc+set}" = set; then :
9709 $as_echo_n "(cached) " >&6
9713 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
9714 *) gdb_cv_bigtoc
=-bbigtoc ;;
9717 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
9718 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9719 /* end confdefs.h. */
9729 if ac_fn_c_try_link
"$LINENO"; then :
9734 rm -f core conftest.err conftest.
$ac_objext \
9735 conftest
$ac_exeext conftest.
$ac_ext
9738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
9739 $as_echo "$gdb_cv_bigtoc" >&6; }
9743 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
9744 # used for the tests that follow. We set them back to REAL_CFLAGS and
9745 # REAL_CPPFLAGS later on.
9747 REAL_CFLAGS
="$CFLAGS"
9748 REAL_CPPFLAGS
="$CPPFLAGS"
9750 if test "${HAVE_X11}" = "yes"; then
9751 DEFS
="$C_SWITCH_X_SITE $DEFS"
9752 LDFLAGS
="$LDFLAGS $LD_SWITCH_X_SITE"
9754 CFLAGS
="$C_SWITCH_X_SITE $CFLAGS"
9755 CPPFLAGS
="$C_SWITCH_X_SITE $CPPFLAGS"
9757 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
9758 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
9759 # but it's more convenient here to set LD_RUN_PATH
9760 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
9761 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
9762 LD_RUN_PATH
=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
9766 if test "${opsys}" = "gnu-linux"; then
9767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X on GNU/Linux needs -b to link" >&5
9768 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
9769 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9770 /* end confdefs.h. */
9775 XOpenDisplay ("foo");
9780 if ac_fn_c_try_link
"$LINENO"; then :
9781 xlinux_first_failure
=no
9783 xlinux_first_failure
=yes
9785 rm -f core conftest.err conftest.
$ac_objext \
9786 conftest
$ac_exeext conftest.
$ac_ext
9787 if test "${xlinux_first_failure}" = "yes"; then
9788 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
9789 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
9790 OLD_CPPFLAGS
="$CPPFLAGS"
9792 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
9793 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
9794 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
9795 LIBS
="$LIBS -b i486-linuxaout"
9796 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9797 /* end confdefs.h. */
9802 XOpenDisplay ("foo");
9807 if ac_fn_c_try_link
"$LINENO"; then :
9808 xlinux_second_failure
=no
9810 xlinux_second_failure
=yes
9812 rm -f core conftest.err conftest.
$ac_objext \
9813 conftest
$ac_exeext conftest.
$ac_ext
9814 if test "${xlinux_second_failure}" = "yes"; then
9815 # If we get the same failure with -b, there is no use adding -b.
9816 # So take it out. This plays safe.
9817 LD_SWITCH_X_SITE
="$OLD_LD_SWITCH_X_SITE"
9818 C_SWITCH_X_SITE
="$OLD_C_SWITCH_X_SITE"
9819 CPPFLAGS
="$OLD_CPPFLAGS"
9821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9822 $as_echo "no" >&6; }
9824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9825 $as_echo "yes" >&6; }
9828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9829 $as_echo "no" >&6; }
9833 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
9834 # header files included from there.
9835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xkb" >&5
9836 $as_echo_n "checking for Xkb... " >&6; }
9837 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9838 /* end confdefs.h. */
9839 #include <X11/Xlib.h>
9840 #include <X11/XKBlib.h>
9844 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
9849 if ac_fn_c_try_link
"$LINENO"; then :
9854 rm -f core conftest.err conftest.
$ac_objext \
9855 conftest
$ac_exeext conftest.
$ac_ext
9856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_xkb" >&5
9857 $as_echo "$emacs_xkb" >&6; }
9858 if test $emacs_xkb = yes; then
9860 $as_echo "#define HAVE_XKBGETKEYBOARD 1" >>confdefs.h
9864 for ac_func
in XrmSetDatabase XScreenResourceString \
9865 XScreenNumberOfScreen XSetWMProtocols
9867 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9868 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
9869 eval as_val
=\$
$as_ac_var
9870 if test "x$as_val" = x
""yes; then :
9871 cat >>confdefs.h
<<_ACEOF
9872 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9880 if test "${window_system}" = "x11"; then
9881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 version 6" >&5
9882 $as_echo_n "checking X11 version 6... " >&6; }
9883 if test "${emacs_cv_x11_version_6+set}" = set; then :
9884 $as_echo_n "(cached) " >&6
9886 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9887 /* end confdefs.h. */
9888 #include <X11/Xlib.h>
9892 #if XlibSpecificationRelease < 6
9900 if ac_fn_c_try_link
"$LINENO"; then :
9901 emacs_cv_x11_version_6
=yes
9903 emacs_cv_x11_version_6
=no
9905 rm -f core conftest.err conftest.
$ac_objext \
9906 conftest
$ac_exeext conftest.
$ac_ext
9909 if test $emacs_cv_x11_version_6 = yes; then
9910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
9911 $as_echo "6 or newer" >&6; }
9913 $as_echo "#define HAVE_X11R6 1" >>confdefs.h
9916 $as_echo "#define HAVE_X_I18N 1" >>confdefs.h
9918 ## inoue@ainet.or.jp says Solaris has a bug related to X11R6-style
9923 $as_echo "#define HAVE_X11R6_XIM 1" >>confdefs.h
9928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
9929 $as_echo "before 6" >&6; }
9934 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
9936 if test "${HAVE_X11}" = "yes" ||
test "${NS_IMPL_GNUSTEP}" = "yes"; then
9937 if test "${with_rsvg}" != "no"; then
9938 RSVG_REQUIRED
=2.11.0
9939 RSVG_MODULE
="librsvg-2.0 >= $RSVG_REQUIRED"
9944 # Extract the first word of "pkg-config", so it can be a program name with args.
9945 set dummy pkg-config
; ac_word
=$2
9946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9947 $as_echo_n "checking for $ac_word... " >&6; }
9948 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
9949 $as_echo_n "(cached) " >&6
9953 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
9956 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9960 test -z "$as_dir" && as_dir
=.
9961 for ac_exec_ext
in '' $ac_executable_extensions; do
9962 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9963 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
9964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9971 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
9975 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
9976 if test -n "$PKG_CONFIG"; then
9977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9978 $as_echo "$PKG_CONFIG" >&6; }
9980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9981 $as_echo "no" >&6; }
9986 if test "$PKG_CONFIG" = "no" ; then
9989 PKG_CONFIG_MIN_VERSION
=0.9.0
9990 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $RSVG_MODULE" >&5
9992 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
9994 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
9995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9996 $as_echo "yes" >&6; }
9999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_CFLAGS" >&5
10000 $as_echo_n "checking RSVG_CFLAGS... " >&6; }
10001 RSVG_CFLAGS
=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
10002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_CFLAGS" >&5
10003 $as_echo "$RSVG_CFLAGS" >&6; }
10005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_LIBS" >&5
10006 $as_echo_n "checking RSVG_LIBS... " >&6; }
10007 RSVG_LIBS
=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
10008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_LIBS" >&5
10009 $as_echo "$RSVG_LIBS" >&6; }
10011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10012 $as_echo "no" >&6; }
10015 ## If we have a custom action on failure, don't print errors, but
10016 ## do set a variable so people can do so.
10017 RSVG_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
10024 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10025 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10029 if test $succeeded = yes; then
10038 if test $HAVE_RSVG = yes; then
10040 $as_echo "#define HAVE_RSVG 1" >>confdefs.h
10042 CFLAGS
="$CFLAGS $RSVG_CFLAGS"
10043 LIBS
="$RSVG_LIBS $LIBS"
10048 HAVE_IMAGEMAGICK
=no
10049 if test "${HAVE_X11}" = "yes"; then
10050 if test "${with_imagemagick}" != "no"; then
10051 ## 6.2.8 is the earliest version known to work, but earlier versions
10052 ## might work - let us know if you find one.
10053 ## 6.0.7 does not work. See bug#7955.
10054 IMAGEMAGICK_MODULE
="Wand >= 6.2.8"
10058 # Extract the first word of "pkg-config", so it can be a program name with args.
10059 set dummy pkg-config
; ac_word
=$2
10060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10061 $as_echo_n "checking for $ac_word... " >&6; }
10062 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10063 $as_echo_n "(cached) " >&6
10065 case $PKG_CONFIG in
10067 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
10070 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10071 for as_dir
in $PATH
10074 test -z "$as_dir" && as_dir
=.
10075 for ac_exec_ext
in '' $ac_executable_extensions; do
10076 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10077 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
10078 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10085 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
10089 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
10090 if test -n "$PKG_CONFIG"; then
10091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10092 $as_echo "$PKG_CONFIG" >&6; }
10094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10095 $as_echo "no" >&6; }
10100 if test "$PKG_CONFIG" = "no" ; then
10103 PKG_CONFIG_MIN_VERSION
=0.9.0
10104 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $IMAGEMAGICK_MODULE" >&5
10106 $as_echo_n "checking for $IMAGEMAGICK_MODULE... " >&6; }
10108 if $PKG_CONFIG --exists "$IMAGEMAGICK_MODULE" 2>&5; then
10109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10110 $as_echo "yes" >&6; }
10113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking IMAGEMAGICK_CFLAGS" >&5
10114 $as_echo_n "checking IMAGEMAGICK_CFLAGS... " >&6; }
10115 IMAGEMAGICK_CFLAGS
=`$PKG_CONFIG --cflags "$IMAGEMAGICK_MODULE"|sed -e 's,///*,/,g'`
10116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMAGEMAGICK_CFLAGS" >&5
10117 $as_echo "$IMAGEMAGICK_CFLAGS" >&6; }
10119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking IMAGEMAGICK_LIBS" >&5
10120 $as_echo_n "checking IMAGEMAGICK_LIBS... " >&6; }
10121 IMAGEMAGICK_LIBS
=`$PKG_CONFIG --libs "$IMAGEMAGICK_MODULE"|sed -e 's,///*,/,g'`
10122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMAGEMAGICK_LIBS" >&5
10123 $as_echo "$IMAGEMAGICK_LIBS" >&6; }
10125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10126 $as_echo "no" >&6; }
10127 IMAGEMAGICK_CFLAGS
=""
10128 IMAGEMAGICK_LIBS
=""
10129 ## If we have a custom action on failure, don't print errors, but
10130 ## do set a variable so people can do so.
10131 IMAGEMAGICK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$IMAGEMAGICK_MODULE"`
10138 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10139 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10143 if test $succeeded = yes; then
10144 HAVE_IMAGEMAGICK
=yes
10152 if test $HAVE_IMAGEMAGICK = yes; then
10154 $as_echo "#define HAVE_IMAGEMAGICK 1" >>confdefs.h
10156 CFLAGS
="$CFLAGS $IMAGEMAGICK_CFLAGS"
10157 LIBS
="$IMAGEMAGICK_LIBS $LIBS"
10158 for ac_func
in MagickExportImagePixels
10160 ac_fn_c_check_func
"$LINENO" "MagickExportImagePixels" "ac_cv_func_MagickExportImagePixels"
10161 if test "x$ac_cv_func_MagickExportImagePixels" = x
""yes; then :
10162 cat >>confdefs.h
<<_ACEOF
10163 #define HAVE_MAGICKEXPORTIMAGEPIXELS 1
10175 if test "${with_gtk3}" = "yes"; then
10178 GTK_MODULES
="gtk+-3.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10183 # Extract the first word of "pkg-config", so it can be a program name with args.
10184 set dummy pkg-config
; ac_word
=$2
10185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10186 $as_echo_n "checking for $ac_word... " >&6; }
10187 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10188 $as_echo_n "(cached) " >&6
10190 case $PKG_CONFIG in
10192 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
10195 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10196 for as_dir
in $PATH
10199 test -z "$as_dir" && as_dir
=.
10200 for ac_exec_ext
in '' $ac_executable_extensions; do
10201 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10202 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
10203 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10210 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
10214 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
10215 if test -n "$PKG_CONFIG"; then
10216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10217 $as_echo "$PKG_CONFIG" >&6; }
10219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10220 $as_echo "no" >&6; }
10225 if test "$PKG_CONFIG" = "no" ; then
10228 PKG_CONFIG_MIN_VERSION
=0.9.0
10229 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
10231 $as_echo_n "checking for $GTK_MODULES... " >&6; }
10233 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
10234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10235 $as_echo "yes" >&6; }
10238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
10239 $as_echo_n "checking GTK_CFLAGS... " >&6; }
10240 GTK_CFLAGS
=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
10241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
10242 $as_echo "$GTK_CFLAGS" >&6; }
10244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
10245 $as_echo_n "checking GTK_LIBS... " >&6; }
10246 GTK_LIBS
=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
10247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
10248 $as_echo "$GTK_LIBS" >&6; }
10250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10251 $as_echo "no" >&6; }
10254 ## If we have a custom action on failure, don't print errors, but
10255 ## do set a variable so people can do so.
10256 GTK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
10263 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10264 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10268 if test $succeeded = yes; then
10274 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
10275 as_fn_error
"$GTK_PKG_ERRORS" "$LINENO" 5
10278 $as_echo "#define HAVE_GTK3 1" >>confdefs.h
10282 if test "$pkg_check_gtk" != "yes"; then
10284 if test "${with_gtk}" = "yes" ||
test "$USE_X_TOOLKIT" = "maybe"; then
10287 GTK_MODULES
="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10292 # Extract the first word of "pkg-config", so it can be a program name with args.
10293 set dummy pkg-config
; ac_word
=$2
10294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10295 $as_echo_n "checking for $ac_word... " >&6; }
10296 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10297 $as_echo_n "(cached) " >&6
10299 case $PKG_CONFIG in
10301 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
10304 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10305 for as_dir
in $PATH
10308 test -z "$as_dir" && as_dir
=.
10309 for ac_exec_ext
in '' $ac_executable_extensions; do
10310 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10311 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
10312 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10319 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
10323 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
10324 if test -n "$PKG_CONFIG"; then
10325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10326 $as_echo "$PKG_CONFIG" >&6; }
10328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10329 $as_echo "no" >&6; }
10334 if test "$PKG_CONFIG" = "no" ; then
10337 PKG_CONFIG_MIN_VERSION
=0.9.0
10338 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
10340 $as_echo_n "checking for $GTK_MODULES... " >&6; }
10342 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
10343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10344 $as_echo "yes" >&6; }
10347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
10348 $as_echo_n "checking GTK_CFLAGS... " >&6; }
10349 GTK_CFLAGS
=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
10350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
10351 $as_echo "$GTK_CFLAGS" >&6; }
10353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
10354 $as_echo_n "checking GTK_LIBS... " >&6; }
10355 GTK_LIBS
=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
10356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
10357 $as_echo "$GTK_LIBS" >&6; }
10359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10360 $as_echo "no" >&6; }
10363 ## If we have a custom action on failure, don't print errors, but
10364 ## do set a variable so people can do so.
10365 GTK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
10372 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10373 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10377 if test $succeeded = yes; then
10383 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
10384 as_fn_error
"$GTK_PKG_ERRORS" "$LINENO" 5
10390 if test x
"$pkg_check_gtk" = xyes
; then
10394 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $GTK_CFLAGS"
10395 CFLAGS
="$CFLAGS $GTK_CFLAGS"
10396 LIBS
="$GTK_LIBS $LIBS"
10398 for ac_func
in gtk_main
10400 ac_fn_c_check_func
"$LINENO" "gtk_main" "ac_cv_func_gtk_main"
10401 if test "x$ac_cv_func_gtk_main" = x
""yes; then :
10402 cat >>confdefs.h
<<_ACEOF
10403 #define HAVE_GTK_MAIN 1
10409 if test "${GTK_COMPILES}" != "yes"; then
10410 if test "$USE_X_TOOLKIT" != "maybe"; then
10411 as_fn_error
"Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" "$LINENO" 5;
10416 $as_echo "#define USE_GTK 1" >>confdefs.h
10420 if $PKG_CONFIG --atleast-version=2.10 gtk
+-2.0
; then
10423 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of Gtk+ will have problems with
10424 closing open displays. This is no problem if you just use
10425 one display, but if you use more than one and close one of them
10426 Emacs may crash." >&5
10427 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
10428 closing open displays. This is no problem if you just use
10429 one display, but if you use more than one and close one of them
10430 Emacs may crash." >&2;}
10439 if test "${HAVE_GTK}" = "yes"; then
10441 if test "$with_toolkit_scroll_bars" != no
; then
10442 with_toolkit_scroll_bars
=yes
10445 HAVE_GTK_FILE_SELECTION
=no
10446 ac_fn_c_check_decl
"$LINENO" "GTK_TYPE_FILE_SELECTION" "ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" "$ac_includes_default
10447 #include <gtk/gtk.h>
10449 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = x
""yes; then :
10450 HAVE_GTK_FILE_SELECTION
=yes
10452 HAVE_GTK_FILE_SELECTION
=no
10455 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
10456 for ac_func
in gtk_file_selection_new
10458 ac_fn_c_check_func
"$LINENO" "gtk_file_selection_new" "ac_cv_func_gtk_file_selection_new"
10459 if test "x$ac_cv_func_gtk_file_selection_new" = x
""yes; then :
10460 cat >>confdefs.h
<<_ACEOF
10461 #define HAVE_GTK_FILE_SELECTION_NEW 1
10469 HAVE_GTK_AND_PTHREAD
=no
10470 for ac_header
in pthread.h
10472 ac_fn_c_check_header_mongrel
"$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
10473 if test "x$ac_cv_header_pthread_h" = x
""yes; then :
10474 cat >>confdefs.h
<<_ACEOF
10475 #define HAVE_PTHREAD_H 1
10482 if test "$ac_cv_header_pthread_h"; then
10483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_self in -lpthread" >&5
10484 $as_echo_n "checking for pthread_self in -lpthread... " >&6; }
10485 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then :
10486 $as_echo_n "(cached) " >&6
10488 ac_check_lib_save_LIBS
=$LIBS
10489 LIBS
="-lpthread $LIBS"
10490 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10491 /* end confdefs.h. */
10493 /* Override any GCC internal prototype to avoid an error.
10494 Use char because int might match the return type of a GCC
10495 builtin and then its argument prototype would still apply. */
10499 char pthread_self ();
10503 return pthread_self ();
10508 if ac_fn_c_try_link
"$LINENO"; then :
10509 ac_cv_lib_pthread_pthread_self
=yes
10511 ac_cv_lib_pthread_pthread_self
=no
10513 rm -f core conftest.err conftest.
$ac_objext \
10514 conftest
$ac_exeext conftest.
$ac_ext
10515 LIBS
=$ac_check_lib_save_LIBS
10517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_self" >&5
10518 $as_echo "$ac_cv_lib_pthread_pthread_self" >&6; }
10519 if test "x$ac_cv_lib_pthread_pthread_self" = x
""yes; then :
10520 HAVE_GTK_AND_PTHREAD
=yes
10524 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
10525 case "${canonical}" in
10527 *) GTK_LIBS
="$GTK_LIBS -lpthread" ;;
10530 $as_echo "#define HAVE_GTK_AND_PTHREAD 1" >>confdefs.h
10534 for ac_func
in gtk_widget_get_window gtk_widget_set_has_window \
10535 gtk_dialog_get_action_area gtk_widget_get_sensitive \
10536 gtk_widget_get_mapped gtk_adjustment_get_page_size \
10537 gtk_orientable_set_orientation
10539 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10540 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10541 eval as_val
=\$
$as_ac_var
10542 if test "x$as_val" = x
""yes; then :
10543 cat >>confdefs.h
<<_ACEOF
10544 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10555 if test "${with_dbus}" = "yes"; then
10559 # Extract the first word of "pkg-config", so it can be a program name with args.
10560 set dummy pkg-config
; ac_word
=$2
10561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10562 $as_echo_n "checking for $ac_word... " >&6; }
10563 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10564 $as_echo_n "(cached) " >&6
10566 case $PKG_CONFIG in
10568 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
10571 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10572 for as_dir
in $PATH
10575 test -z "$as_dir" && as_dir
=.
10576 for ac_exec_ext
in '' $ac_executable_extensions; do
10577 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10578 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
10579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10586 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
10590 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
10591 if test -n "$PKG_CONFIG"; then
10592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10593 $as_echo "$PKG_CONFIG" >&6; }
10595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10596 $as_echo "no" >&6; }
10601 if test "$PKG_CONFIG" = "no" ; then
10604 PKG_CONFIG_MIN_VERSION
=0.9.0
10605 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1 >= 1.0" >&5
10607 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
10609 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
10610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10611 $as_echo "yes" >&6; }
10614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_CFLAGS" >&5
10615 $as_echo_n "checking DBUS_CFLAGS... " >&6; }
10616 DBUS_CFLAGS
=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
10617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_CFLAGS" >&5
10618 $as_echo "$DBUS_CFLAGS" >&6; }
10620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_LIBS" >&5
10621 $as_echo_n "checking DBUS_LIBS... " >&6; }
10622 DBUS_LIBS
=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
10623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_LIBS" >&5
10624 $as_echo "$DBUS_LIBS" >&6; }
10626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10627 $as_echo "no" >&6; }
10630 ## If we have a custom action on failure, don't print errors, but
10631 ## do set a variable so people can do so.
10632 DBUS_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
10639 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10640 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10644 if test $succeeded = yes; then
10650 if test "$HAVE_DBUS" = yes; then
10651 LIBS
="$LIBS $DBUS_LIBS"
10653 $as_echo "#define HAVE_DBUS 1" >>confdefs.h
10655 for ac_func
in dbus_watch_get_unix_fd
10657 ac_fn_c_check_func
"$LINENO" "dbus_watch_get_unix_fd" "ac_cv_func_dbus_watch_get_unix_fd"
10658 if test "x$ac_cv_func_dbus_watch_get_unix_fd" = x
""yes; then :
10659 cat >>confdefs.h
<<_ACEOF
10660 #define HAVE_DBUS_WATCH_GET_UNIX_FD 1
10666 DBUS_OBJ
=dbusbind.o
10672 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
10676 # Extract the first word of "pkg-config", so it can be a program name with args.
10677 set dummy pkg-config
; ac_word
=$2
10678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10679 $as_echo_n "checking for $ac_word... " >&6; }
10680 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10681 $as_echo_n "(cached) " >&6
10683 case $PKG_CONFIG in
10685 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
10688 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10689 for as_dir
in $PATH
10692 test -z "$as_dir" && as_dir
=.
10693 for ac_exec_ext
in '' $ac_executable_extensions; do
10694 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10695 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
10696 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10703 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
10707 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
10708 if test -n "$PKG_CONFIG"; then
10709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10710 $as_echo "$PKG_CONFIG" >&6; }
10712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10713 $as_echo "no" >&6; }
10718 if test "$PKG_CONFIG" = "no" ; then
10721 PKG_CONFIG_MIN_VERSION
=0.9.0
10722 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.13" >&5
10724 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
10726 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5; then
10727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10728 $as_echo "yes" >&6; }
10731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_CFLAGS" >&5
10732 $as_echo_n "checking GCONF_CFLAGS... " >&6; }
10733 GCONF_CFLAGS
=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
10734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_CFLAGS" >&5
10735 $as_echo "$GCONF_CFLAGS" >&6; }
10737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_LIBS" >&5
10738 $as_echo_n "checking GCONF_LIBS... " >&6; }
10739 GCONF_LIBS
=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
10740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_LIBS" >&5
10741 $as_echo "$GCONF_LIBS" >&6; }
10743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10744 $as_echo "no" >&6; }
10747 ## If we have a custom action on failure, don't print errors, but
10748 ## do set a variable so people can do so.
10749 GCONF_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.13"`
10756 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10757 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10761 if test $succeeded = yes; then
10767 if test "$HAVE_GCONF" = yes; then
10769 $as_echo "#define HAVE_GCONF 1" >>confdefs.h
10771 for ac_func
in g_type_init
10773 ac_fn_c_check_func
"$LINENO" "g_type_init" "ac_cv_func_g_type_init"
10774 if test "x$ac_cv_func_g_type_init" = x
""yes; then :
10775 cat >>confdefs.h
<<_ACEOF
10776 #define HAVE_G_TYPE_INIT 1
10787 if test "${with_selinux}" = "yes"; then
10788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgetfilecon in -lselinux" >&5
10789 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
10790 if test "${ac_cv_lib_selinux_lgetfilecon+set}" = set; then :
10791 $as_echo_n "(cached) " >&6
10793 ac_check_lib_save_LIBS
=$LIBS
10794 LIBS
="-lselinux $LIBS"
10795 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10796 /* end confdefs.h. */
10798 /* Override any GCC internal prototype to avoid an error.
10799 Use char because int might match the return type of a GCC
10800 builtin and then its argument prototype would still apply. */
10804 char lgetfilecon ();
10808 return lgetfilecon ();
10813 if ac_fn_c_try_link
"$LINENO"; then :
10814 ac_cv_lib_selinux_lgetfilecon
=yes
10816 ac_cv_lib_selinux_lgetfilecon
=no
10818 rm -f core conftest.err conftest.
$ac_objext \
10819 conftest
$ac_exeext conftest.
$ac_ext
10820 LIBS
=$ac_check_lib_save_LIBS
10822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_lgetfilecon" >&5
10823 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
10824 if test "x$ac_cv_lib_selinux_lgetfilecon" = x
""yes; then :
10825 HAVE_LIBSELINUX
=yes
10830 if test "$HAVE_LIBSELINUX" = yes; then
10832 $as_echo "#define HAVE_LIBSELINUX 1" >>confdefs.h
10834 LIBSELINUX_LIBS
=-lselinux
10840 HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY
=no
10841 if test "${with_gnutls}" = "yes" ; then
10845 # Extract the first word of "pkg-config", so it can be a program name with args.
10846 set dummy pkg-config
; ac_word
=$2
10847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10848 $as_echo_n "checking for $ac_word... " >&6; }
10849 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10850 $as_echo_n "(cached) " >&6
10852 case $PKG_CONFIG in
10854 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
10857 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10858 for as_dir
in $PATH
10861 test -z "$as_dir" && as_dir
=.
10862 for ac_exec_ext
in '' $ac_executable_extensions; do
10863 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10864 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
10865 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10872 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
10876 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
10877 if test -n "$PKG_CONFIG"; then
10878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10879 $as_echo "$PKG_CONFIG" >&6; }
10881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10882 $as_echo "no" >&6; }
10887 if test "$PKG_CONFIG" = "no" ; then
10890 PKG_CONFIG_MIN_VERSION
=0.9.0
10891 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls >= 2.2.4" >&5
10893 $as_echo_n "checking for gnutls >= 2.2.4... " >&6; }
10895 if $PKG_CONFIG --exists "gnutls >= 2.2.4" 2>&5; then
10896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10897 $as_echo "yes" >&6; }
10900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGNUTLS_CFLAGS" >&5
10901 $as_echo_n "checking LIBGNUTLS_CFLAGS... " >&6; }
10902 LIBGNUTLS_CFLAGS
=`$PKG_CONFIG --cflags "gnutls >= 2.2.4"|sed -e 's,///*,/,g'`
10903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLS_CFLAGS" >&5
10904 $as_echo "$LIBGNUTLS_CFLAGS" >&6; }
10906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGNUTLS_LIBS" >&5
10907 $as_echo_n "checking LIBGNUTLS_LIBS... " >&6; }
10908 LIBGNUTLS_LIBS
=`$PKG_CONFIG --libs "gnutls >= 2.2.4"|sed -e 's,///*,/,g'`
10909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLS_LIBS" >&5
10910 $as_echo "$LIBGNUTLS_LIBS" >&6; }
10912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10913 $as_echo "no" >&6; }
10914 LIBGNUTLS_CFLAGS
=""
10916 ## If we have a custom action on failure, don't print errors, but
10917 ## do set a variable so people can do so.
10918 LIBGNUTLS_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "gnutls >= 2.2.4"`
10925 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10926 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10930 if test $succeeded = yes; then
10936 if test "${HAVE_GNUTLS}" = "yes"; then
10938 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
10942 CFLAGS
="$CFLAGS $LIBGNUTLS_CFLAGS"
10943 LIBS
="$LIBGNUTLS_LIBS $LIBS"
10944 for ac_func
in gnutls_certificate_set_verify_function
10946 ac_fn_c_check_func
"$LINENO" "gnutls_certificate_set_verify_function" "ac_cv_func_gnutls_certificate_set_verify_function"
10947 if test "x$ac_cv_func_gnutls_certificate_set_verify_function" = x
""yes; then :
10948 cat >>confdefs.h
<<_ACEOF
10949 #define HAVE_GNUTLS_CERTIFICATE_SET_VERIFY_FUNCTION 1
10951 HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY
=yes
10956 if test "${HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY}" = "yes"; then
10958 $as_echo "#define HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY 1" >>confdefs.h
10968 if test x
"${USE_X_TOOLKIT}" = xmaybe ||
test x
"${USE_X_TOOLKIT}" = xLUCID
; then
10969 if test "$with_xaw3d" != no
; then
10970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
10971 $as_echo_n "checking for xaw3d... " >&6; }
10972 if test "${emacs_cv_xaw3d+set}" = set; then :
10973 $as_echo_n "(cached) " >&6
10975 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10976 /* end confdefs.h. */
10978 #include <X11/Intrinsic.h>
10979 #include <X11/Xaw3d/Simple.h>
10988 if ac_fn_c_try_link
"$LINENO"; then :
10989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XawScrollbarSetThumb in -lXaw3d" >&5
10990 $as_echo_n "checking for XawScrollbarSetThumb in -lXaw3d... " >&6; }
10991 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then :
10992 $as_echo_n "(cached) " >&6
10994 ac_check_lib_save_LIBS
=$LIBS
10995 LIBS
="-lXaw3d $LIBS"
10996 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10997 /* end confdefs.h. */
10999 /* Override any GCC internal prototype to avoid an error.
11000 Use char because int might match the return type of a GCC
11001 builtin and then its argument prototype would still apply. */
11005 char XawScrollbarSetThumb ();
11009 return XawScrollbarSetThumb ();
11014 if ac_fn_c_try_link
"$LINENO"; then :
11015 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=yes
11017 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=no
11019 rm -f core conftest.err conftest.
$ac_objext \
11020 conftest
$ac_exeext conftest.
$ac_ext
11021 LIBS
=$ac_check_lib_save_LIBS
11023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
11024 $as_echo "$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6; }
11025 if test "x$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" = x
""yes; then :
11034 rm -f core conftest.err conftest.
$ac_objext \
11035 conftest
$ac_exeext conftest.
$ac_ext
11041 if test $emacs_cv_xaw3d = yes; then
11042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
11043 $as_echo "yes; using Lucid toolkit" >&6; }
11044 USE_X_TOOLKIT
=LUCID
11048 $as_echo "#define HAVE_XAW3D 1" >>confdefs.h
11051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11052 $as_echo "no" >&6; }
11053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXaw" >&5
11054 $as_echo_n "checking for libXaw... " >&6; }
11055 if test "${emacs_cv_xaw+set}" = set; then :
11056 $as_echo_n "(cached) " >&6
11058 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11059 /* end confdefs.h. */
11061 #include <X11/Intrinsic.h>
11062 #include <X11/Xaw/Simple.h>
11071 if ac_fn_c_try_link
"$LINENO"; then :
11076 rm -f core conftest.err conftest.
$ac_objext \
11077 conftest
$ac_exeext conftest.
$ac_ext
11080 if test $emacs_cv_xaw = yes; then
11081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
11082 $as_echo "yes; using Lucid toolkit" >&6; }
11083 USE_X_TOOLKIT
=LUCID
11085 elif test x
"${USE_X_TOOLKIT}" = xLUCID
; then
11086 as_fn_error
"Lucid toolkit requires X11/Xaw include files" "$LINENO" 5
11088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no; do not use toolkit by default" >&5
11089 $as_echo "no; do not use toolkit by default" >&6; }
11095 X_TOOLKIT_TYPE
=$USE_X_TOOLKIT
11098 if test "${USE_X_TOOLKIT}" != "none"; then
11099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 toolkit version" >&5
11100 $as_echo_n "checking X11 toolkit version... " >&6; }
11101 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then :
11102 $as_echo_n "(cached) " >&6
11104 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11105 /* end confdefs.h. */
11106 #include <X11/Intrinsic.h>
11110 #if XtSpecificationRelease < 6
11118 if ac_fn_c_try_link
"$LINENO"; then :
11119 emacs_cv_x11_toolkit_version_6
=yes
11121 emacs_cv_x11_toolkit_version_6
=no
11123 rm -f core conftest.err conftest.
$ac_objext \
11124 conftest
$ac_exeext conftest.
$ac_ext
11127 HAVE_X11XTR6
=$emacs_cv_x11_toolkit_version_6
11128 if test $emacs_cv_x11_toolkit_version_6 = yes; then
11129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
11130 $as_echo "6 or newer" >&6; }
11132 $as_echo "#define HAVE_X11XTR6 1" >>confdefs.h
11134 LIBXTR6
="-lSM -lICE"
11136 ## Use libw.a along with X11R6 Xt.
11137 unixware
) LIBXTR6
="$LIBXTR6 -lw" ;;
11140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
11141 $as_echo "before 6" >&6; }
11145 if test x
$HAVE_X11XTR6 = xyes
; then
11146 LIBS
="-lXt -lSM -lICE $LIBS"
11150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuConvertStandardSelection in -lXmu" >&5
11151 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
11152 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then :
11153 $as_echo_n "(cached) " >&6
11155 ac_check_lib_save_LIBS
=$LIBS
11157 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11158 /* end confdefs.h. */
11160 /* Override any GCC internal prototype to avoid an error.
11161 Use char because int might match the return type of a GCC
11162 builtin and then its argument prototype would still apply. */
11166 char XmuConvertStandardSelection ();
11170 return XmuConvertStandardSelection ();
11175 if ac_fn_c_try_link
"$LINENO"; then :
11176 ac_cv_lib_Xmu_XmuConvertStandardSelection
=yes
11178 ac_cv_lib_Xmu_XmuConvertStandardSelection
=no
11180 rm -f core conftest.err conftest.
$ac_objext \
11181 conftest
$ac_exeext conftest.
$ac_ext
11182 LIBS
=$ac_check_lib_save_LIBS
11184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
11185 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
11186 if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = x
""yes; then :
11187 cat >>confdefs.h
<<_ACEOF
11188 #define HAVE_LIBXMU 1
11195 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no
&& LIBS
="$OLDLIBS"
11201 ## These systems don't supply Xmu.
11203 test "X$ac_cv_lib_Xmu_XmuConvertStandardSelection" != "Xyes" && LIBXMU
=
11208 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
11209 if test "${HAVE_X11}" = "yes"; then
11210 if test "${USE_X_TOOLKIT}" != "none"; then
11211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
11212 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
11213 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then :
11214 $as_echo_n "(cached) " >&6
11216 ac_check_lib_save_LIBS
=$LIBS
11217 LIBS
="-lXext $LIBS"
11218 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11219 /* end confdefs.h. */
11221 /* Override any GCC internal prototype to avoid an error.
11222 Use char because int might match the return type of a GCC
11223 builtin and then its argument prototype would still apply. */
11227 char XShapeQueryExtension ();
11231 return XShapeQueryExtension ();
11236 if ac_fn_c_try_link
"$LINENO"; then :
11237 ac_cv_lib_Xext_XShapeQueryExtension
=yes
11239 ac_cv_lib_Xext_XShapeQueryExtension
=no
11241 rm -f core conftest.err conftest.
$ac_objext \
11242 conftest
$ac_exeext conftest.
$ac_ext
11243 LIBS
=$ac_check_lib_save_LIBS
11245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
11246 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
11247 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x
""yes; then :
11248 cat >>confdefs.h
<<_ACEOF
11249 #define HAVE_LIBXEXT 1
11252 LIBS
="-lXext $LIBS"
11260 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Motif version 2.1" >&5
11262 $as_echo_n "checking for Motif version 2.1... " >&6; }
11263 if test "${emacs_cv_motif_version_2_1+set}" = set; then :
11264 $as_echo_n "(cached) " >&6
11266 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11267 /* end confdefs.h. */
11272 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
11275 Motif version prior to 2.1.
11281 if ac_fn_c_try_compile
"$LINENO"; then :
11282 emacs_cv_motif_version_2_1
=yes
11284 emacs_cv_motif_version_2_1
=no
11286 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_motif_version_2_1" >&5
11289 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
11290 if test $emacs_cv_motif_version_2_1 = yes; then
11291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpCreateContext in -lXp" >&5
11292 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
11293 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then :
11294 $as_echo_n "(cached) " >&6
11296 ac_check_lib_save_LIBS
=$LIBS
11298 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11299 /* end confdefs.h. */
11301 /* Override any GCC internal prototype to avoid an error.
11302 Use char because int might match the return type of a GCC
11303 builtin and then its argument prototype would still apply. */
11307 char XpCreateContext ();
11311 return XpCreateContext ();
11316 if ac_fn_c_try_link
"$LINENO"; then :
11317 ac_cv_lib_Xp_XpCreateContext
=yes
11319 ac_cv_lib_Xp_XpCreateContext
=no
11321 rm -f core conftest.err conftest.
$ac_objext \
11322 conftest
$ac_exeext conftest.
$ac_ext
11323 LIBS
=$ac_check_lib_save_LIBS
11325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpCreateContext" >&5
11326 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
11327 if test "x$ac_cv_lib_Xp_XpCreateContext" = x
""yes; then :
11332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LessTif where some systems put it" >&5
11333 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
11334 if test "${emacs_cv_lesstif+set}" = set; then :
11335 $as_echo_n "(cached) " >&6
11337 # We put this in CFLAGS temporarily to precede other -I options
11338 # that might be in CFLAGS temporarily.
11339 # We put this in CPPFLAGS where it precedes the other -I options.
11340 OLD_CPPFLAGS
=$CPPFLAGS
11342 CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
11343 CFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
11344 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11345 /* end confdefs.h. */
11346 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
11355 if ac_fn_c_try_compile
"$LINENO"; then :
11356 emacs_cv_lesstif
=yes
11358 emacs_cv_lesstif
=no
11360 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_lesstif" >&5
11363 $as_echo "$emacs_cv_lesstif" >&6; }
11364 if test $emacs_cv_lesstif = yes; then
11365 # Make sure this -I option remains in CPPFLAGS after it is set
11366 # back to REAL_CPPFLAGS.
11367 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
11368 # have those other -I options anyway. Ultimately, having this
11369 # directory ultimately in CPPFLAGS will be enough.
11370 REAL_CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
11371 LDFLAGS
="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
11374 CPPFLAGS
=$OLD_CPPFLAGS
11380 USE_TOOLKIT_SCROLL_BARS
=no
11381 if test "${with_toolkit_scroll_bars}" != "no"; then
11382 if test "${USE_X_TOOLKIT}" != "none"; then
11383 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11384 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11387 USE_TOOLKIT_SCROLL_BARS
=yes
11388 elif test "${HAVE_XAW3D}" = "yes"; then
11389 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11391 USE_TOOLKIT_SCROLL_BARS
=yes
11393 elif test "${HAVE_GTK}" = "yes"; then
11394 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11396 USE_TOOLKIT_SCROLL_BARS
=yes
11397 elif test "${HAVE_NS}" = "yes"; then
11398 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11400 USE_TOOLKIT_SCROLL_BARS
=yes
11404 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11405 /* end confdefs.h. */
11407 #include <X11/Xlib.h>
11408 #include <X11/Xresource.h>
11417 if ac_fn_c_try_compile
"$LINENO"; then :
11420 $as_echo "#define HAVE_XIM 1" >>confdefs.h
11425 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11428 if test "${with_xim}" != "no"; then
11430 $as_echo "#define USE_XIM 1" >>confdefs.h
11435 if test "${HAVE_XIM}" != "no"; then
11436 late_CFLAGS
=$CFLAGS
11437 if test "$GCC" = yes; then
11438 CFLAGS
="$CFLAGS --pedantic-errors"
11440 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11441 /* end confdefs.h. */
11443 #include <X11/Xlib.h>
11444 #include <X11/Xresource.h>
11453 XPointer *client_data;
11455 /* If we're not using GCC, it's probably not XFree86, and this is
11456 probably right, but we can't use something like --pedantic-errors. */
11457 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
11458 char*, XIMProc, XPointer*);
11460 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
11466 if ac_fn_c_try_compile
"$LINENO"; then :
11467 emacs_cv_arg6_star
=yes
11469 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11470 if test "$emacs_cv_arg6_star" = yes; then
11471 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer*" >>confdefs.h
11474 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer" >>confdefs.h
11477 CFLAGS
=$late_CFLAGS
11480 ### Start of font-backend (under any platform) section.
11481 # (nothing here yet -- this is a placeholder)
11482 ### End of font-backend (under any platform) section.
11484 ### Start of font-backend (under X11) section.
11485 if test "${HAVE_X11}" = "yes"; then
11489 # Extract the first word of "pkg-config", so it can be a program name with args.
11490 set dummy pkg-config
; ac_word
=$2
11491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11492 $as_echo_n "checking for $ac_word... " >&6; }
11493 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11494 $as_echo_n "(cached) " >&6
11496 case $PKG_CONFIG in
11498 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11501 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11502 for as_dir
in $PATH
11505 test -z "$as_dir" && as_dir
=.
11506 for ac_exec_ext
in '' $ac_executable_extensions; do
11507 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11508 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11509 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11516 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11520 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11521 if test -n "$PKG_CONFIG"; then
11522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11523 $as_echo "$PKG_CONFIG" >&6; }
11525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11526 $as_echo "no" >&6; }
11531 if test "$PKG_CONFIG" = "no" ; then
11534 PKG_CONFIG_MIN_VERSION
=0.9.0
11535 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.2.0" >&5
11537 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
11539 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5; then
11540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11541 $as_echo "yes" >&6; }
11544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_CFLAGS" >&5
11545 $as_echo_n "checking FONTCONFIG_CFLAGS... " >&6; }
11546 FONTCONFIG_CFLAGS
=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
11547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_CFLAGS" >&5
11548 $as_echo "$FONTCONFIG_CFLAGS" >&6; }
11550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_LIBS" >&5
11551 $as_echo_n "checking FONTCONFIG_LIBS... " >&6; }
11552 FONTCONFIG_LIBS
=`$PKG_CONFIG --libs "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
11553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_LIBS" >&5
11554 $as_echo "$FONTCONFIG_LIBS" >&6; }
11556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11557 $as_echo "no" >&6; }
11558 FONTCONFIG_CFLAGS
=""
11560 ## If we have a custom action on failure, don't print errors, but
11561 ## do set a variable so people can do so.
11562 FONTCONFIG_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2.0"`
11569 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11570 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11574 if test $succeeded = yes; then
11581 ## Use -lXft if available, unless `--with-xft=no'.
11583 if test "${HAVE_FC}" = "no" ||
test "x${with_x}" = "xno"; then
11586 if test "x${with_xft}" != "xno"; then
11591 # Extract the first word of "pkg-config", so it can be a program name with args.
11592 set dummy pkg-config
; ac_word
=$2
11593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11594 $as_echo_n "checking for $ac_word... " >&6; }
11595 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11596 $as_echo_n "(cached) " >&6
11598 case $PKG_CONFIG in
11600 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11603 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11604 for as_dir
in $PATH
11607 test -z "$as_dir" && as_dir
=.
11608 for ac_exec_ext
in '' $ac_executable_extensions; do
11609 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11610 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11611 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11618 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11622 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11623 if test -n "$PKG_CONFIG"; then
11624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11625 $as_echo "$PKG_CONFIG" >&6; }
11627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11628 $as_echo "no" >&6; }
11633 if test "$PKG_CONFIG" = "no" ; then
11636 PKG_CONFIG_MIN_VERSION
=0.9.0
11637 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xft >= 0.13.0" >&5
11639 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
11641 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
11642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11643 $as_echo "yes" >&6; }
11646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_CFLAGS" >&5
11647 $as_echo_n "checking XFT_CFLAGS... " >&6; }
11648 XFT_CFLAGS
=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
11649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_CFLAGS" >&5
11650 $as_echo "$XFT_CFLAGS" >&6; }
11652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_LIBS" >&5
11653 $as_echo_n "checking XFT_LIBS... " >&6; }
11654 XFT_LIBS
=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
11655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_LIBS" >&5
11656 $as_echo "$XFT_LIBS" >&6; }
11658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11659 $as_echo "no" >&6; }
11662 ## If we have a custom action on failure, don't print errors, but
11663 ## do set a variable so people can do so.
11664 XFT_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
11671 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11672 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11676 if test $succeeded = yes; then
11682 ## Because xftfont.c uses XRenderQueryExtension, we also
11683 ## need to link to -lXrender.
11685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5
11686 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
11687 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then :
11688 $as_echo_n "(cached) " >&6
11690 ac_check_lib_save_LIBS
=$LIBS
11691 LIBS
="-lXrender $LIBS"
11692 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11693 /* end confdefs.h. */
11695 /* Override any GCC internal prototype to avoid an error.
11696 Use char because int might match the return type of a GCC
11697 builtin and then its argument prototype would still apply. */
11701 char XRenderQueryExtension ();
11705 return XRenderQueryExtension ();
11710 if ac_fn_c_try_link
"$LINENO"; then :
11711 ac_cv_lib_Xrender_XRenderQueryExtension
=yes
11713 ac_cv_lib_Xrender_XRenderQueryExtension
=no
11715 rm -f core conftest.err conftest.
$ac_objext \
11716 conftest
$ac_exeext conftest.
$ac_ext
11717 LIBS
=$ac_check_lib_save_LIBS
11719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
11720 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
11721 if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = x
""yes; then :
11725 if test "$HAVE_XFT" != no
&& test "$HAVE_XRENDER" != no
; then
11726 OLD_CPPFLAGS
="$CPPFLAGS"
11727 OLD_CFLAGS
="$CFLAGS"
11729 CPPFLAGS
="$CPPFLAGS $XFT_CFLAGS"
11730 CFLAGS
="$CFLAGS $XFT_CFLAGS"
11731 XFT_LIBS
="-lXrender $XFT_LIBS"
11732 LIBS
="$XFT_LIBS $LIBS"
11733 ac_fn_c_check_header_mongrel
"$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default"
11734 if test "x$ac_cv_header_X11_Xft_Xft_h" = x
""yes; then :
11735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5
11736 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
11737 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then :
11738 $as_echo_n "(cached) " >&6
11740 ac_check_lib_save_LIBS
=$LIBS
11741 LIBS
="-lXft $XFT_LIBS $LIBS"
11742 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11743 /* end confdefs.h. */
11745 /* Override any GCC internal prototype to avoid an error.
11746 Use char because int might match the return type of a GCC
11747 builtin and then its argument prototype would still apply. */
11751 char XftFontOpen ();
11755 return XftFontOpen ();
11760 if ac_fn_c_try_link
"$LINENO"; then :
11761 ac_cv_lib_Xft_XftFontOpen
=yes
11763 ac_cv_lib_Xft_XftFontOpen
=no
11765 rm -f core conftest.err conftest.
$ac_objext \
11766 conftest
$ac_exeext conftest.
$ac_ext
11767 LIBS
=$ac_check_lib_save_LIBS
11769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftFontOpen" >&5
11770 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
11771 if test "x$ac_cv_lib_Xft_XftFontOpen" = x
""yes; then :
11779 if test "${HAVE_XFT}" = "yes"; then
11781 $as_echo "#define HAVE_XFT 1" >>confdefs.h
11784 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $XFT_CFLAGS"
11786 CPPFLAGS
="$OLD_CPPFLAGS"
11787 CFLAGS
="$OLD_CFLAGS"
11789 fi # "${HAVE_XFT}" = "yes"
11790 fi # "$HAVE_XFT" != no
11791 fi # "x${with_xft}" != "xno"
11793 ## We used to allow building with FreeType and without Xft.
11794 ## However, the ftx font backend driver is not in good shape.
11795 if test "$HAVE_XFT" != "yes"; then
11802 # Extract the first word of "pkg-config", so it can be a program name with args.
11803 set dummy pkg-config
; ac_word
=$2
11804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11805 $as_echo_n "checking for $ac_word... " >&6; }
11806 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11807 $as_echo_n "(cached) " >&6
11809 case $PKG_CONFIG in
11811 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11814 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11815 for as_dir
in $PATH
11818 test -z "$as_dir" && as_dir
=.
11819 for ac_exec_ext
in '' $ac_executable_extensions; do
11820 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11821 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11822 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11829 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11833 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11834 if test -n "$PKG_CONFIG"; then
11835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11836 $as_echo "$PKG_CONFIG" >&6; }
11838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11839 $as_echo "no" >&6; }
11844 if test "$PKG_CONFIG" = "no" ; then
11847 PKG_CONFIG_MIN_VERSION
=0.9.0
11848 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype2" >&5
11850 $as_echo_n "checking for freetype2... " >&6; }
11852 if $PKG_CONFIG --exists "freetype2" 2>&5; then
11853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11854 $as_echo "yes" >&6; }
11857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FREETYPE_CFLAGS" >&5
11858 $as_echo_n "checking FREETYPE_CFLAGS... " >&6; }
11859 FREETYPE_CFLAGS
=`$PKG_CONFIG --cflags "freetype2"|sed -e 's,///*,/,g'`
11860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_CFLAGS" >&5
11861 $as_echo "$FREETYPE_CFLAGS" >&6; }
11863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FREETYPE_LIBS" >&5
11864 $as_echo_n "checking FREETYPE_LIBS... " >&6; }
11865 FREETYPE_LIBS
=`$PKG_CONFIG --libs "freetype2"|sed -e 's,///*,/,g'`
11866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIBS" >&5
11867 $as_echo "$FREETYPE_LIBS" >&6; }
11869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11870 $as_echo "no" >&6; }
11873 ## If we have a custom action on failure, don't print errors, but
11874 ## do set a variable so people can do so.
11875 FREETYPE_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2"`
11882 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11883 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11887 if test $succeeded = yes; then
11894 test "$HAVE_FREETYPE" = "no" && as_fn_error
"libxft requires libfreetype" "$LINENO" 5
11898 if test "${HAVE_FREETYPE}" = "yes"; then
11900 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
11902 if test "${with_libotf}" != "no"; then
11906 # Extract the first word of "pkg-config", so it can be a program name with args.
11907 set dummy pkg-config
; ac_word
=$2
11908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11909 $as_echo_n "checking for $ac_word... " >&6; }
11910 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11911 $as_echo_n "(cached) " >&6
11913 case $PKG_CONFIG in
11915 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11918 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11919 for as_dir
in $PATH
11922 test -z "$as_dir" && as_dir
=.
11923 for ac_exec_ext
in '' $ac_executable_extensions; do
11924 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11925 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11933 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11937 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11938 if test -n "$PKG_CONFIG"; then
11939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11940 $as_echo "$PKG_CONFIG" >&6; }
11942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11943 $as_echo "no" >&6; }
11948 if test "$PKG_CONFIG" = "no" ; then
11951 PKG_CONFIG_MIN_VERSION
=0.9.0
11952 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libotf" >&5
11954 $as_echo_n "checking for libotf... " >&6; }
11956 if $PKG_CONFIG --exists "libotf" 2>&5; then
11957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11958 $as_echo "yes" >&6; }
11961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_CFLAGS" >&5
11962 $as_echo_n "checking LIBOTF_CFLAGS... " >&6; }
11963 LIBOTF_CFLAGS
=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
11964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_CFLAGS" >&5
11965 $as_echo "$LIBOTF_CFLAGS" >&6; }
11967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_LIBS" >&5
11968 $as_echo_n "checking LIBOTF_LIBS... " >&6; }
11969 LIBOTF_LIBS
=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
11970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_LIBS" >&5
11971 $as_echo "$LIBOTF_LIBS" >&6; }
11973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11974 $as_echo "no" >&6; }
11977 ## If we have a custom action on failure, don't print errors, but
11978 ## do set a variable so people can do so.
11979 LIBOTF_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
11986 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11987 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11991 if test $succeeded = yes; then
11997 if test "$HAVE_LIBOTF" = "yes"; then
11999 $as_echo "#define HAVE_LIBOTF 1" >>confdefs.h
12001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTF_get_variation_glyphs in -lotf" >&5
12002 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
12003 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then :
12004 $as_echo_n "(cached) " >&6
12006 ac_check_lib_save_LIBS
=$LIBS
12008 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12009 /* end confdefs.h. */
12011 /* Override any GCC internal prototype to avoid an error.
12012 Use char because int might match the return type of a GCC
12013 builtin and then its argument prototype would still apply. */
12017 char OTF_get_variation_glyphs ();
12021 return OTF_get_variation_glyphs ();
12026 if ac_fn_c_try_link
"$LINENO"; then :
12027 ac_cv_lib_otf_OTF_get_variation_glyphs
=yes
12029 ac_cv_lib_otf_OTF_get_variation_glyphs
=no
12031 rm -f core conftest.err conftest.
$ac_objext \
12032 conftest
$ac_exeext conftest.
$ac_ext
12033 LIBS
=$ac_check_lib_save_LIBS
12035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
12036 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
12037 if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = x
""yes; then :
12038 HAVE_OTF_GET_VARIATION_GLYPHS
=yes
12040 HAVE_OTF_GET_VARIATION_GLYPHS
=no
12043 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
12045 $as_echo "#define HAVE_OTF_GET_VARIATION_GLYPHS 1" >>confdefs.h
12053 if test "${HAVE_LIBOTF}" = yes; then
12054 if test "${with_m17n_flt}" != "no"; then
12058 # Extract the first word of "pkg-config", so it can be a program name with args.
12059 set dummy pkg-config
; ac_word
=$2
12060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12061 $as_echo_n "checking for $ac_word... " >&6; }
12062 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
12063 $as_echo_n "(cached) " >&6
12065 case $PKG_CONFIG in
12067 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
12070 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12071 for as_dir
in $PATH
12074 test -z "$as_dir" && as_dir
=.
12075 for ac_exec_ext
in '' $ac_executable_extensions; do
12076 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12077 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
12078 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12085 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
12089 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
12090 if test -n "$PKG_CONFIG"; then
12091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12092 $as_echo "$PKG_CONFIG" >&6; }
12094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12095 $as_echo "no" >&6; }
12100 if test "$PKG_CONFIG" = "no" ; then
12103 PKG_CONFIG_MIN_VERSION
=0.9.0
12104 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m17n-flt" >&5
12106 $as_echo_n "checking for m17n-flt... " >&6; }
12108 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
12109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12110 $as_echo "yes" >&6; }
12113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_CFLAGS" >&5
12114 $as_echo_n "checking M17N_FLT_CFLAGS... " >&6; }
12115 M17N_FLT_CFLAGS
=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
12116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_CFLAGS" >&5
12117 $as_echo "$M17N_FLT_CFLAGS" >&6; }
12119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_LIBS" >&5
12120 $as_echo_n "checking M17N_FLT_LIBS... " >&6; }
12121 M17N_FLT_LIBS
=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
12122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_LIBS" >&5
12123 $as_echo "$M17N_FLT_LIBS" >&6; }
12125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12126 $as_echo "no" >&6; }
12129 ## If we have a custom action on failure, don't print errors, but
12130 ## do set a variable so people can do so.
12131 M17N_FLT_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
12138 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12139 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12143 if test $succeeded = yes; then
12149 if test "$HAVE_M17N_FLT" = "yes"; then
12151 $as_echo "#define HAVE_M17N_FLT 1" >>confdefs.h
12163 ### End of font-backend (under X11) section.
12174 ### Use -lXpm if available, unless `--with-xpm=no'.
12177 if test "${HAVE_X11}" = "yes"; then
12178 if test "${with_xpm}" != "no"; then
12179 ac_fn_c_check_header_mongrel
"$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
12180 if test "x$ac_cv_header_X11_xpm_h" = x
""yes; then :
12181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToPixmap in -lXpm" >&5
12182 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
12183 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then :
12184 $as_echo_n "(cached) " >&6
12186 ac_check_lib_save_LIBS
=$LIBS
12187 LIBS
="-lXpm -lX11 $LIBS"
12188 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12189 /* end confdefs.h. */
12191 /* Override any GCC internal prototype to avoid an error.
12192 Use char because int might match the return type of a GCC
12193 builtin and then its argument prototype would still apply. */
12197 char XpmReadFileToPixmap ();
12201 return XpmReadFileToPixmap ();
12206 if ac_fn_c_try_link
"$LINENO"; then :
12207 ac_cv_lib_Xpm_XpmReadFileToPixmap
=yes
12209 ac_cv_lib_Xpm_XpmReadFileToPixmap
=no
12211 rm -f core conftest.err conftest.
$ac_objext \
12212 conftest
$ac_exeext conftest.
$ac_ext
12213 LIBS
=$ac_check_lib_save_LIBS
12215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
12216 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
12217 if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = x
""yes; then :
12224 if test "${HAVE_XPM}" = "yes"; then
12225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
12226 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
12227 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12228 /* end confdefs.h. */
12229 #include "X11/xpm.h"
12230 #ifndef XpmReturnAllocPixels
12231 no_return_alloc_pixels
12235 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12236 $EGREP "no_return_alloc_pixels" >/dev
/null
2>&1; then :
12244 if test "${HAVE_XPM}" = "yes"; then
12245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12246 $as_echo "yes" >&6; }
12248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12249 $as_echo "no" >&6; }
12254 if test "${HAVE_XPM}" = "yes"; then
12256 $as_echo "#define HAVE_XPM 1" >>confdefs.h
12263 ### Use -ljpeg if available, unless `--with-jpeg=no'.
12266 if test "${HAVE_X11}" = "yes"; then
12267 if test "${with_jpeg}" != "no"; then
12268 ac_fn_c_check_header_mongrel
"$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
12269 if test "x$ac_cv_header_jerror_h" = x
""yes; then :
12270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_compress in -ljpeg" >&5
12271 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
12272 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then :
12273 $as_echo_n "(cached) " >&6
12275 ac_check_lib_save_LIBS
=$LIBS
12276 LIBS
="-ljpeg $LIBS"
12277 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12278 /* end confdefs.h. */
12280 /* Override any GCC internal prototype to avoid an error.
12281 Use char because int might match the return type of a GCC
12282 builtin and then its argument prototype would still apply. */
12286 char jpeg_destroy_compress ();
12290 return jpeg_destroy_compress ();
12295 if ac_fn_c_try_link
"$LINENO"; then :
12296 ac_cv_lib_jpeg_jpeg_destroy_compress
=yes
12298 ac_cv_lib_jpeg_jpeg_destroy_compress
=no
12300 rm -f core conftest.err conftest.
$ac_objext \
12301 conftest
$ac_exeext conftest.
$ac_ext
12302 LIBS
=$ac_check_lib_save_LIBS
12304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
12305 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
12306 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = x
""yes; then :
12315 if test "${HAVE_JPEG}" = "yes"; then
12316 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
12318 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12319 /* end confdefs.h. */
12320 #include <jpeglib.h>
12321 version=JPEG_LIB_VERSION
12324 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12325 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev
/null
2>&1; then :
12326 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
12329 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5
12330 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
12336 if test "${HAVE_JPEG}" = "yes"; then
12342 ### Use -lpng if available, unless `--with-png=no'.
12345 if test "${HAVE_X11}" = "yes"; then
12346 if test "${with_png}" != "no"; then
12347 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
12348 # in /usr/include/libpng.
12349 for ac_header
in png.h libpng
/png.h
12351 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12352 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12353 eval as_val
=\$
$as_ac_Header
12354 if test "x$as_val" = x
""yes; then :
12355 cat >>confdefs.h
<<_ACEOF
12356 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12363 if test "$ac_cv_header_png_h" = yes ||
test "$ac_cv_header_libpng_png_h" = yes ; then
12364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_channels in -lpng" >&5
12365 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
12366 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then :
12367 $as_echo_n "(cached) " >&6
12369 ac_check_lib_save_LIBS
=$LIBS
12370 LIBS
="-lpng -lz -lm $LIBS"
12371 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12372 /* end confdefs.h. */
12374 /* Override any GCC internal prototype to avoid an error.
12375 Use char because int might match the return type of a GCC
12376 builtin and then its argument prototype would still apply. */
12380 char png_get_channels ();
12384 return png_get_channels ();
12389 if ac_fn_c_try_link
"$LINENO"; then :
12390 ac_cv_lib_png_png_get_channels
=yes
12392 ac_cv_lib_png_png_get_channels
=no
12394 rm -f core conftest.err conftest.
$ac_objext \
12395 conftest
$ac_exeext conftest.
$ac_ext
12396 LIBS
=$ac_check_lib_save_LIBS
12398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_channels" >&5
12399 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
12400 if test "x$ac_cv_lib_png_png_get_channels" = x
""yes; then :
12407 if test "${HAVE_PNG}" = "yes"; then
12409 $as_echo "#define HAVE_PNG 1" >>confdefs.h
12411 LIBPNG
="-lpng -lz -lm"
12416 ### Use -ltiff if available, unless `--with-tiff=no'.
12419 if test "${HAVE_X11}" = "yes"; then
12420 if test "${with_tiff}" != "no"; then
12421 ac_fn_c_check_header_mongrel
"$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
12422 if test "x$ac_cv_header_tiffio_h" = x
""yes; then :
12424 # At least one tiff package requires the jpeg library.
12425 if test "${HAVE_JPEG}" = yes; then tifflibs
="-ljpeg $tifflibs"; fi
12426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFGetVersion in -ltiff" >&5
12427 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
12428 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then :
12429 $as_echo_n "(cached) " >&6
12431 ac_check_lib_save_LIBS
=$LIBS
12432 LIBS
="-ltiff $tifflibs $LIBS"
12433 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12434 /* end confdefs.h. */
12436 /* Override any GCC internal prototype to avoid an error.
12437 Use char because int might match the return type of a GCC
12438 builtin and then its argument prototype would still apply. */
12442 char TIFFGetVersion ();
12446 return TIFFGetVersion ();
12451 if ac_fn_c_try_link
"$LINENO"; then :
12452 ac_cv_lib_tiff_TIFFGetVersion
=yes
12454 ac_cv_lib_tiff_TIFFGetVersion
=no
12456 rm -f core conftest.err conftest.
$ac_objext \
12457 conftest
$ac_exeext conftest.
$ac_ext
12458 LIBS
=$ac_check_lib_save_LIBS
12460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
12461 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
12462 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = x
""yes; then :
12471 if test "${HAVE_TIFF}" = "yes"; then
12473 $as_echo "#define HAVE_TIFF 1" >>confdefs.h
12480 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
12483 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
12484 ac_fn_c_check_header_mongrel
"$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
12485 if test "x$ac_cv_header_gif_lib_h" = x
""yes; then :
12486 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
12487 # Earlier versions can crash Emacs.
12488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lgif" >&5
12489 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
12490 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then :
12491 $as_echo_n "(cached) " >&6
12493 ac_check_lib_save_LIBS
=$LIBS
12495 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12496 /* end confdefs.h. */
12498 /* Override any GCC internal prototype to avoid an error.
12499 Use char because int might match the return type of a GCC
12500 builtin and then its argument prototype would still apply. */
12504 char EGifPutExtensionLast ();
12508 return EGifPutExtensionLast ();
12513 if ac_fn_c_try_link
"$LINENO"; then :
12514 ac_cv_lib_gif_EGifPutExtensionLast
=yes
12516 ac_cv_lib_gif_EGifPutExtensionLast
=no
12518 rm -f core conftest.err conftest.
$ac_objext \
12519 conftest
$ac_exeext conftest.
$ac_ext
12520 LIBS
=$ac_check_lib_save_LIBS
12522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
12523 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
12524 if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = x
""yes; then :
12534 if test "$HAVE_GIF" = yes; then
12536 elif test "$HAVE_GIF" = maybe
; then
12537 # If gif_lib.h but no libgif, try libungif.
12538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lungif" >&5
12539 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
12540 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then :
12541 $as_echo_n "(cached) " >&6
12543 ac_check_lib_save_LIBS
=$LIBS
12544 LIBS
="-lungif $LIBS"
12545 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12546 /* end confdefs.h. */
12548 /* Override any GCC internal prototype to avoid an error.
12549 Use char because int might match the return type of a GCC
12550 builtin and then its argument prototype would still apply. */
12554 char EGifPutExtensionLast ();
12558 return EGifPutExtensionLast ();
12563 if ac_fn_c_try_link
"$LINENO"; then :
12564 ac_cv_lib_ungif_EGifPutExtensionLast
=yes
12566 ac_cv_lib_ungif_EGifPutExtensionLast
=no
12568 rm -f core conftest.err conftest.
$ac_objext \
12569 conftest
$ac_exeext conftest.
$ac_ext
12570 LIBS
=$ac_check_lib_save_LIBS
12572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
12573 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
12574 if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = x
""yes; then :
12580 test "$HAVE_GIF" = yes && LIBGIF
=-lungif
12583 if test "${HAVE_GIF}" = "yes"; then
12585 $as_echo "#define HAVE_GIF 1" >>confdefs.h
12591 if test "${HAVE_X11}" = "yes"; then
12594 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
12595 MISSING
="libXpm" && WITH_NO
="--with-xpm=no"
12596 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
12597 MISSING
="$MISSING libjpeg" && WITH_NO
="$WITH_NO --with-jpeg=no"
12598 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
12599 MISSING
="$MISSING libpng" && WITH_NO
="$WITH_NO --with-png=no"
12600 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
12601 MISSING
="$MISSING libgif/libungif" && WITH_NO
="$WITH_NO --with-gif=no"
12602 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
12603 MISSING
="$MISSING libtiff" && WITH_NO
="$WITH_NO --with-tiff=no"
12605 if test "X${MISSING}" != X
; then
12606 as_fn_error
"The following required libraries were not found:
12608 Maybe some development libraries/packages are missing?
12609 If you don't want to link with them give
12611 as options to configure" "$LINENO" 5
12615 ### Use -lgpm if available, unless `--with-gpm=no'.
12619 if test "${with_gpm}" != "no"; then
12620 ac_fn_c_check_header_mongrel
"$LINENO" "gpm.h" "ac_cv_header_gpm_h" "$ac_includes_default"
12621 if test "x$ac_cv_header_gpm_h" = x
""yes; then :
12622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5
12623 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
12624 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then :
12625 $as_echo_n "(cached) " >&6
12627 ac_check_lib_save_LIBS
=$LIBS
12629 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12630 /* end confdefs.h. */
12632 /* Override any GCC internal prototype to avoid an error.
12633 Use char because int might match the return type of a GCC
12634 builtin and then its argument prototype would still apply. */
12642 return Gpm_Open ();
12647 if ac_fn_c_try_link
"$LINENO"; then :
12648 ac_cv_lib_gpm_Gpm_Open
=yes
12650 ac_cv_lib_gpm_Gpm_Open
=no
12652 rm -f core conftest.err conftest.
$ac_objext \
12653 conftest
$ac_exeext conftest.
$ac_ext
12654 LIBS
=$ac_check_lib_save_LIBS
12656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Open" >&5
12657 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
12658 if test "x$ac_cv_lib_gpm_Gpm_Open" = x
""yes; then :
12666 if test "${HAVE_GPM}" = "yes"; then
12668 $as_echo "#define HAVE_GPM 1" >>confdefs.h
12671 ## May be reset below.
12672 MOUSE_SUPPORT
="\$(GPM_MOUSE_SUPPORT)"
12677 ac_fn_c_check_header_mongrel
"$LINENO" "malloc/malloc.h" "ac_cv_header_malloc_malloc_h" "$ac_includes_default"
12678 if test "x$ac_cv_header_malloc_malloc_h" = x
""yes; then :
12680 $as_echo "#define HAVE_MALLOC_MALLOC_H 1" >>confdefs.h
12687 ### Use NeXTstep API to implement GUI.
12688 if test "${HAVE_NS}" = "yes"; then
12690 $as_echo "#define HAVE_NS 1" >>confdefs.h
12692 if test "${NS_IMPL_COCOA}" = "yes"; then
12694 $as_echo "#define NS_IMPL_COCOA 1" >>confdefs.h
12698 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
12700 $as_echo "#define NS_IMPL_GNUSTEP 1" >>confdefs.h
12702 # See also .m.o rule in Makefile.in */
12703 # FIXME: are all these flags really needed? Document here why. */
12704 C_SWITCH_X_SYSTEM
="-D_REENTRANT -fPIC -fno-strict-aliasing"
12705 GNU_OBJC_CFLAGS
="-fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE"
12707 if test "${NS_HAVE_NSINTEGER}" = "yes"; then
12709 $as_echo "#define NS_HAVE_NSINTEGER 1" >>confdefs.h
12712 # We also have mouse menus.
12718 ### Use session management (-lSM -lICE) if available
12721 if test "${HAVE_X11}" = "yes"; then
12722 ac_fn_c_check_header_mongrel
"$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
12723 if test "x$ac_cv_header_X11_SM_SMlib_h" = x
""yes; then :
12724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5
12725 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
12726 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then :
12727 $as_echo_n "(cached) " >&6
12729 ac_check_lib_save_LIBS
=$LIBS
12730 LIBS
="-lSM -lICE $LIBS"
12731 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12732 /* end confdefs.h. */
12734 /* Override any GCC internal prototype to avoid an error.
12735 Use char because int might match the return type of a GCC
12736 builtin and then its argument prototype would still apply. */
12740 char SmcOpenConnection ();
12744 return SmcOpenConnection ();
12749 if ac_fn_c_try_link
"$LINENO"; then :
12750 ac_cv_lib_SM_SmcOpenConnection
=yes
12752 ac_cv_lib_SM_SmcOpenConnection
=no
12754 rm -f core conftest.err conftest.
$ac_objext \
12755 conftest
$ac_exeext conftest.
$ac_ext
12756 LIBS
=$ac_check_lib_save_LIBS
12758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
12759 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
12760 if test "x$ac_cv_lib_SM_SmcOpenConnection" = x
""yes; then :
12768 if test "${HAVE_X_SM}" = "yes"; then
12770 $as_echo "#define HAVE_X_SM 1" >>confdefs.h
12772 LIBXSM
="-lSM -lICE"
12775 *) LIBS
="$LIBXSM $LIBS" ;;
12781 ### Use libxml (-lxml2) if available
12782 if test "${with_xml2}" != "no"; then
12783 ### I'm not sure what the version number should be, so I just guessed.
12787 # Extract the first word of "pkg-config", so it can be a program name with args.
12788 set dummy pkg-config
; ac_word
=$2
12789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12790 $as_echo_n "checking for $ac_word... " >&6; }
12791 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
12792 $as_echo_n "(cached) " >&6
12794 case $PKG_CONFIG in
12796 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
12799 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12800 for as_dir
in $PATH
12803 test -z "$as_dir" && as_dir
=.
12804 for ac_exec_ext
in '' $ac_executable_extensions; do
12805 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12806 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
12807 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12814 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
12818 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
12819 if test -n "$PKG_CONFIG"; then
12820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12821 $as_echo "$PKG_CONFIG" >&6; }
12823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12824 $as_echo "no" >&6; }
12829 if test "$PKG_CONFIG" = "no" ; then
12832 PKG_CONFIG_MIN_VERSION
=0.9.0
12833 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 > 2.6.17" >&5
12835 $as_echo_n "checking for libxml-2.0 > 2.6.17... " >&6; }
12837 if $PKG_CONFIG --exists "libxml-2.0 > 2.6.17" 2>&5; then
12838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12839 $as_echo "yes" >&6; }
12842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBXML2_CFLAGS" >&5
12843 $as_echo_n "checking LIBXML2_CFLAGS... " >&6; }
12844 LIBXML2_CFLAGS
=`$PKG_CONFIG --cflags "libxml-2.0 > 2.6.17"|sed -e 's,///*,/,g'`
12845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXML2_CFLAGS" >&5
12846 $as_echo "$LIBXML2_CFLAGS" >&6; }
12848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBXML2_LIBS" >&5
12849 $as_echo_n "checking LIBXML2_LIBS... " >&6; }
12850 LIBXML2_LIBS
=`$PKG_CONFIG --libs "libxml-2.0 > 2.6.17"|sed -e 's,///*,/,g'`
12851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXML2_LIBS" >&5
12852 $as_echo "$LIBXML2_LIBS" >&6; }
12854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12855 $as_echo "no" >&6; }
12858 ## If we have a custom action on failure, don't print errors, but
12859 ## do set a variable so people can do so.
12860 LIBXML2_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "libxml-2.0 > 2.6.17"`
12867 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12868 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12872 if test $succeeded = yes; then
12878 if test "${HAVE_LIBXML2}" = "yes"; then
12879 LIBS
="$LIBXML2_LIBS $LIBS"
12880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htmlReadMemory in -lxml2" >&5
12881 $as_echo_n "checking for htmlReadMemory in -lxml2... " >&6; }
12882 if test "${ac_cv_lib_xml2_htmlReadMemory+set}" = set; then :
12883 $as_echo_n "(cached) " >&6
12885 ac_check_lib_save_LIBS
=$LIBS
12886 LIBS
="-lxml2 $LIBS"
12887 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12888 /* end confdefs.h. */
12890 /* Override any GCC internal prototype to avoid an error.
12891 Use char because int might match the return type of a GCC
12892 builtin and then its argument prototype would still apply. */
12896 char htmlReadMemory ();
12900 return htmlReadMemory ();
12905 if ac_fn_c_try_link
"$LINENO"; then :
12906 ac_cv_lib_xml2_htmlReadMemory
=yes
12908 ac_cv_lib_xml2_htmlReadMemory
=no
12910 rm -f core conftest.err conftest.
$ac_objext \
12911 conftest
$ac_exeext conftest.
$ac_ext
12912 LIBS
=$ac_check_lib_save_LIBS
12914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_htmlReadMemory" >&5
12915 $as_echo "$ac_cv_lib_xml2_htmlReadMemory" >&6; }
12916 if test "x$ac_cv_lib_xml2_htmlReadMemory" = x
""yes; then :
12922 if test "${HAVE_LIBXML2}" = "yes"; then
12924 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
12935 # If netdb.h doesn't declare h_errno, we must declare it by hand.
12936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netdb declares h_errno" >&5
12937 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
12938 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then :
12939 $as_echo_n "(cached) " >&6
12941 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12942 /* end confdefs.h. */
12952 if ac_fn_c_try_link
"$LINENO"; then :
12953 emacs_cv_netdb_declares_h_errno
=yes
12955 emacs_cv_netdb_declares_h_errno
=no
12957 rm -f core conftest.err conftest.
$ac_objext \
12958 conftest
$ac_exeext conftest.
$ac_ext
12960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_netdb_declares_h_errno" >&5
12961 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
12962 if test $emacs_cv_netdb_declares_h_errno = yes; then
12964 $as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h
12968 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
12969 # for constant arguments. Useless!
12970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
12971 $as_echo_n "checking for working alloca.h... " >&6; }
12972 if test "${ac_cv_working_alloca_h+set}" = set; then :
12973 $as_echo_n "(cached) " >&6
12975 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12976 /* end confdefs.h. */
12977 #include <alloca.h>
12981 char *p = (char *) alloca (2 * sizeof (int));
12987 if ac_fn_c_try_link
"$LINENO"; then :
12988 ac_cv_working_alloca_h
=yes
12990 ac_cv_working_alloca_h
=no
12992 rm -f core conftest.err conftest.
$ac_objext \
12993 conftest
$ac_exeext conftest.
$ac_ext
12995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
12996 $as_echo "$ac_cv_working_alloca_h" >&6; }
12997 if test $ac_cv_working_alloca_h = yes; then
12999 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
13003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
13004 $as_echo_n "checking for alloca... " >&6; }
13005 if test "${ac_cv_func_alloca_works+set}" = set; then :
13006 $as_echo_n "(cached) " >&6
13008 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13009 /* end confdefs.h. */
13011 # define alloca __builtin_alloca
13014 # include <malloc.h>
13015 # define alloca _alloca
13017 # ifdef HAVE_ALLOCA_H
13018 # include <alloca.h>
13023 # ifndef alloca /* predefined by HP cc +Olibcalls */
13034 char *p = (char *) alloca (1);
13040 if ac_fn_c_try_link
"$LINENO"; then :
13041 ac_cv_func_alloca_works
=yes
13043 ac_cv_func_alloca_works
=no
13045 rm -f core conftest.err conftest.
$ac_objext \
13046 conftest
$ac_exeext conftest.
$ac_ext
13048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
13049 $as_echo "$ac_cv_func_alloca_works" >&6; }
13051 if test $ac_cv_func_alloca_works = yes; then
13053 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
13056 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
13057 # that cause trouble. Some versions do not even contain alloca or
13058 # contain a buggy version. If you still want to use their alloca,
13059 # use ar to extract alloca.o from them instead of compiling alloca.c.
13061 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
13063 $as_echo "#define C_ALLOCA 1" >>confdefs.h
13066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
13067 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
13068 if test "${ac_cv_os_cray+set}" = set; then :
13069 $as_echo_n "(cached) " >&6
13071 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13072 /* end confdefs.h. */
13073 #if defined CRAY && ! defined CRAY2
13080 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13081 $EGREP "webecray" >/dev
/null
2>&1; then :
13089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
13090 $as_echo "$ac_cv_os_cray" >&6; }
13091 if test $ac_cv_os_cray = yes; then
13092 for ac_func
in _getb67 GETB67 getb67
; do
13093 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13094 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
13095 eval as_val
=\$
$as_ac_var
13096 if test "x$as_val" = x
""yes; then :
13098 cat >>confdefs.h
<<_ACEOF
13099 #define CRAY_STACKSEG_END $ac_func
13108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
13109 $as_echo_n "checking stack direction for C alloca... " >&6; }
13110 if test "${ac_cv_c_stack_direction+set}" = set; then :
13111 $as_echo_n "(cached) " >&6
13113 if test "$cross_compiling" = yes; then :
13114 ac_cv_c_stack_direction
=0
13116 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13117 /* end confdefs.h. */
13118 $ac_includes_default
13120 find_stack_direction ()
13122 static char *addr = 0;
13127 return find_stack_direction ();
13130 return (&dummy > addr) ? 1 : -1;
13136 return find_stack_direction () < 0;
13139 if ac_fn_c_try_run
"$LINENO"; then :
13140 ac_cv_c_stack_direction
=1
13142 ac_cv_c_stack_direction
=-1
13144 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13145 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
13150 $as_echo "$ac_cv_c_stack_direction" >&6; }
13151 cat >>confdefs.h
<<_ACEOF
13152 #define STACK_DIRECTION $ac_cv_c_stack_direction
13159 if test x
"$ac_cv_func_alloca_works" != xyes
; then
13160 as_fn_error
"a system implementation of alloca is required " "$LINENO" 5
13163 # fmod, logb, and frexp are found in -lm on most systems.
13164 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
13165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
13166 $as_echo_n "checking for sqrt in -lm... " >&6; }
13167 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
13168 $as_echo_n "(cached) " >&6
13170 ac_check_lib_save_LIBS
=$LIBS
13172 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13173 /* end confdefs.h. */
13175 /* Override any GCC internal prototype to avoid an error.
13176 Use char because int might match the return type of a GCC
13177 builtin and then its argument prototype would still apply. */
13190 if ac_fn_c_try_link
"$LINENO"; then :
13191 ac_cv_lib_m_sqrt
=yes
13193 ac_cv_lib_m_sqrt
=no
13195 rm -f core conftest.err conftest.
$ac_objext \
13196 conftest
$ac_exeext conftest.
$ac_ext
13197 LIBS
=$ac_check_lib_save_LIBS
13199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
13200 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
13201 if test "x$ac_cv_lib_m_sqrt" = x
""yes; then :
13202 cat >>confdefs.h
<<_ACEOF
13203 #define HAVE_LIBM 1
13211 # Check for mail-locking functions in a "mail" library. Probably this should
13212 # have the same check as for liblockfile below.
13213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -lmail" >&5
13214 $as_echo_n "checking for maillock in -lmail... " >&6; }
13215 if test "${ac_cv_lib_mail_maillock+set}" = set; then :
13216 $as_echo_n "(cached) " >&6
13218 ac_check_lib_save_LIBS
=$LIBS
13219 LIBS
="-lmail $LIBS"
13220 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13221 /* end confdefs.h. */
13223 /* Override any GCC internal prototype to avoid an error.
13224 Use char because int might match the return type of a GCC
13225 builtin and then its argument prototype would still apply. */
13233 return maillock ();
13238 if ac_fn_c_try_link
"$LINENO"; then :
13239 ac_cv_lib_mail_maillock
=yes
13241 ac_cv_lib_mail_maillock
=no
13243 rm -f core conftest.err conftest.
$ac_objext \
13244 conftest
$ac_exeext conftest.
$ac_ext
13245 LIBS
=$ac_check_lib_save_LIBS
13247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mail_maillock" >&5
13248 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
13249 if test "x$ac_cv_lib_mail_maillock" = x
""yes; then :
13255 if test $have_mail = yes; then
13257 LIBS
="$LIBS_MAIL $LIBS"
13259 $as_echo "#define HAVE_LIBMAIL 1" >>confdefs.h
13264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -llockfile" >&5
13265 $as_echo_n "checking for maillock in -llockfile... " >&6; }
13266 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then :
13267 $as_echo_n "(cached) " >&6
13269 ac_check_lib_save_LIBS
=$LIBS
13270 LIBS
="-llockfile $LIBS"
13271 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13272 /* end confdefs.h. */
13274 /* Override any GCC internal prototype to avoid an error.
13275 Use char because int might match the return type of a GCC
13276 builtin and then its argument prototype would still apply. */
13284 return maillock ();
13289 if ac_fn_c_try_link
"$LINENO"; then :
13290 ac_cv_lib_lockfile_maillock
=yes
13292 ac_cv_lib_lockfile_maillock
=no
13294 rm -f core conftest.err conftest.
$ac_objext \
13295 conftest
$ac_exeext conftest.
$ac_ext
13296 LIBS
=$ac_check_lib_save_LIBS
13298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lockfile_maillock" >&5
13299 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
13300 if test "x$ac_cv_lib_lockfile_maillock" = x
""yes; then :
13306 if test $have_lockfile = yes; then
13307 LIBS_MAIL
=-llockfile
13308 LIBS
="$LIBS_MAIL $LIBS"
13310 $as_echo "#define HAVE_LIBLOCKFILE 1" >>confdefs.h
13313 # If we have the shared liblockfile, assume we must use it for mail
13314 # locking (e.g. Debian). If we couldn't link against liblockfile
13315 # (no liblockfile.a installed), ensure that we don't need to.
13316 # Extract the first word of "liblockfile.so", so it can be a program name with args.
13317 set dummy liblockfile.so
; ac_word
=$2
13318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13319 $as_echo_n "checking for $ac_word... " >&6; }
13320 if test "${ac_cv_prog_liblockfile+set}" = set; then :
13321 $as_echo_n "(cached) " >&6
13323 if test -n "$liblockfile"; then
13324 ac_cv_prog_liblockfile
="$liblockfile" # Let the user override the test.
13326 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13327 as_dummy
="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
13328 for as_dir
in $as_dummy
13331 test -z "$as_dir" && as_dir
=.
13332 for ac_exec_ext
in '' $ac_executable_extensions; do
13333 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13334 ac_cv_prog_liblockfile
="yes"
13335 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13342 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile
="no"
13345 liblockfile
=$ac_cv_prog_liblockfile
13346 if test -n "$liblockfile"; then
13347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblockfile" >&5
13348 $as_echo "$liblockfile" >&6; }
13350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13351 $as_echo "no" >&6; }
13355 if test $ac_cv_prog_liblockfile = yes; then
13356 as_fn_error
"Shared liblockfile found but can't link against it.
13357 This probably means that movemail could lose mail.
13358 There may be a \`development' package to install containing liblockfile." "$LINENO" 5
13361 for ac_func
in touchlock
13363 ac_fn_c_check_func
"$LINENO" "touchlock" "ac_cv_func_touchlock"
13364 if test "x$ac_cv_func_touchlock" = x
""yes; then :
13365 cat >>confdefs.h
<<_ACEOF
13366 #define HAVE_TOUCHLOCK 1
13372 for ac_header
in maillock.h
13374 ac_fn_c_check_header_mongrel
"$LINENO" "maillock.h" "ac_cv_header_maillock_h" "$ac_includes_default"
13375 if test "x$ac_cv_header_maillock_h" = x
""yes; then :
13376 cat >>confdefs.h
<<_ACEOF
13377 #define HAVE_MAILLOCK_H 1
13386 ## Define MAIL_USE_FLOCK (or LOCKF) if the mailer uses flock (or lockf) to
13387 ## interlock access to the mail spool. The alternative is a lock file named
13388 ## /usr/spool/mail/$USER.lock.
13391 aix4-2
) mail_lock
="lockf" ;;
13393 gnu|freebsd|netbsd|openbsd|darwin|irix6-5
) mail_lock
="flock" ;;
13395 ## On GNU/Linux systems, both methods are used by various mail programs.
13396 ## I assume most people are using newer mailers that have heard of flock.
13397 ## Change this if you need to.
13398 ## Debian contains a patch which says: ``On Debian/GNU/Linux systems,
13399 ## configure gets the right answers, and that means *NOT* using flock.
13400 ## Using flock is guaranteed to be the wrong thing. See Debian Policy
13401 ## for details.'' and then uses `#ifdef DEBIAN'. Unfortunately the
13402 ## Debian maintainer hasn't provided a clean fix for Emacs.
13403 ## movemail.c will use `maillock' when MAILDIR, HAVE_LIBMAIL and
13404 ## HAVE_MAILLOCK_H are defined, so the following appears to be the
13405 ## correct logic. -- fx
13406 ## We must check for HAVE_LIBLOCKFILE too, as movemail does.
13407 ## liblockfile is a Free Software replacement for libmail, used on
13408 ## Debian systems and elsewhere. -rfr.
13411 if test $have_mail = yes ||
test $have_lockfile = yes; then
13412 test $ac_cv_header_maillock_h = yes && mail_lock
=no
13418 case "$mail_lock" in
13420 $as_echo "#define MAIL_USE_FLOCK 1" >>confdefs.h
13424 $as_echo "#define MAIL_USE_LOCKF 1" >>confdefs.h
13427 *) BLESSMAIL_TARGET
="need-blessmail" ;;
13432 for ac_func
in gethostname getdomainname dup2 \
13433 rename closedir mkdir
rmdir sysinfo getrusage get_current_dir_name \
13434 random lrand48 logb frexp fmod rint cbrt ftime setsid \
13435 strerror fpathconf
select euidaccess getpagesize tzset setlocale \
13436 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
13437 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm strchr strrchr \
13438 sendto recvfrom getsockopt setsockopt getsockname getpeername \
13439 gai_strerror mkstemp getline getdelim mremap memmove fsync sync \
13440 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \
13441 cfmakeraw cfsetspeed isnan copysign __executable_start
13443 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13444 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
13445 eval as_val
=\$
$as_ac_var
13446 if test "x$as_val" = x
""yes; then :
13447 cat >>confdefs.h
<<_ACEOF
13448 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_unwind_init" >&5
13456 $as_echo_n "checking for __builtin_unwind_init... " >&6; }
13457 if test "${emacs_cv_func___builtin_unwind_init+set}" = set; then :
13458 $as_echo_n "(cached) " >&6
13460 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13461 /* end confdefs.h. */
13466 __builtin_unwind_init ();
13471 if ac_fn_c_try_link
"$LINENO"; then :
13472 emacs_cv_func___builtin_unwind_init
=yes
13474 emacs_cv_func___builtin_unwind_init
=no
13476 rm -f core conftest.err conftest.
$ac_objext \
13477 conftest
$ac_exeext conftest.
$ac_ext
13479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func___builtin_unwind_init" >&5
13480 $as_echo "$emacs_cv_func___builtin_unwind_init" >&6; }
13481 if test $emacs_cv_func___builtin_unwind_init = yes; then
13483 $as_echo "#define HAVE___BUILTIN_UNWIND_INIT 1" >>confdefs.h
13487 for ac_header
in sys
/un.h
13489 ac_fn_c_check_header_mongrel
"$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default"
13490 if test "x$ac_cv_header_sys_un_h" = x
""yes; then :
13491 cat >>confdefs.h
<<_ACEOF
13492 #define HAVE_SYS_UN_H 1
13500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
13501 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
13502 if test "${ac_cv_sys_largefile_source+set}" = set; then :
13503 $as_echo_n "(cached) " >&6
13506 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13507 /* end confdefs.h. */
13508 #include <sys/types.h> /* for off_t */
13513 int (*fp) (FILE *, off_t, int) = fseeko;
13514 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13519 if ac_fn_c_try_link
"$LINENO"; then :
13520 ac_cv_sys_largefile_source
=no
; break
13522 rm -f core conftest.err conftest.
$ac_objext \
13523 conftest
$ac_exeext conftest.
$ac_ext
13524 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13525 /* end confdefs.h. */
13526 #define _LARGEFILE_SOURCE 1
13527 #include <sys/types.h> /* for off_t */
13532 int (*fp) (FILE *, off_t, int) = fseeko;
13533 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13538 if ac_fn_c_try_link
"$LINENO"; then :
13539 ac_cv_sys_largefile_source
=1; break
13541 rm -f core conftest.err conftest.
$ac_objext \
13542 conftest
$ac_exeext conftest.
$ac_ext
13543 ac_cv_sys_largefile_source
=unknown
13547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
13548 $as_echo "$ac_cv_sys_largefile_source" >&6; }
13549 case $ac_cv_sys_largefile_source in #(
13552 cat >>confdefs.h
<<_ACEOF
13553 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
13559 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
13560 # in glibc 2.1.3, but that breaks too many other things.
13561 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
13562 if test $ac_cv_sys_largefile_source != unknown
; then
13564 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
13569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5
13570 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
13571 if test "${ac_cv_func_getpgrp_void+set}" = set; then :
13572 $as_echo_n "(cached) " >&6
13574 # Use it with a single arg.
13575 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13576 /* end confdefs.h. */
13577 $ac_includes_default
13586 if ac_fn_c_try_compile
"$LINENO"; then :
13587 ac_cv_func_getpgrp_void
=no
13589 ac_cv_func_getpgrp_void
=yes
13591 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5
13595 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
13596 if test $ac_cv_func_getpgrp_void = yes; then
13598 $as_echo "#define GETPGRP_VOID 1" >>confdefs.h
13603 # Configure gnulib.
13614 LIBC_FATAL_STDERR_
=1
13615 export LIBC_FATAL_STDERR_
13620 for ac_func
in $ac_func_list
13622 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13623 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
13624 eval as_val
=\$
$as_ac_var
13625 if test "x$as_val" = x
""yes; then :
13626 cat >>confdefs.h
<<_ACEOF
13627 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
13637 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
13638 if test "${ac_cv_c_bigendian+set}" = set; then :
13639 $as_echo_n "(cached) " >&6
13641 ac_cv_c_bigendian
=unknown
13642 # See if we're dealing with a universal compiler.
13643 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13644 /* end confdefs.h. */
13645 #ifndef __APPLE_CC__
13646 not a universal capable compiler
13651 if ac_fn_c_try_compile
"$LINENO"; then :
13653 # Check for potential -arch flags. It is not universal unless
13654 # there are at least two -arch flags with different values.
13657 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
13658 if test -n "$ac_prev"; then
13660 i?
86 | x86_64 | ppc | ppc64
)
13661 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
13664 ac_cv_c_bigendian
=universal
13670 elif test "x$ac_word" = "x-arch"; then
13675 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13676 if test $ac_cv_c_bigendian = unknown
; then
13677 # See if sys/param.h defines the BYTE_ORDER macro.
13678 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13679 /* end confdefs.h. */
13680 #include <sys/types.h>
13681 #include <sys/param.h>
13686 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
13687 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
13689 bogus endian macros
13696 if ac_fn_c_try_compile
"$LINENO"; then :
13697 # It does; now see whether it defined to BIG_ENDIAN or not.
13698 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13699 /* end confdefs.h. */
13700 #include <sys/types.h>
13701 #include <sys/param.h>
13706 #if BYTE_ORDER != BIG_ENDIAN
13714 if ac_fn_c_try_compile
"$LINENO"; then :
13715 ac_cv_c_bigendian
=yes
13717 ac_cv_c_bigendian
=no
13719 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13721 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13723 if test $ac_cv_c_bigendian = unknown
; then
13724 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
13725 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13726 /* end confdefs.h. */
13727 #include <limits.h>
13732 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
13733 bogus endian macros
13740 if ac_fn_c_try_compile
"$LINENO"; then :
13741 # It does; now see whether it defined to _BIG_ENDIAN or not.
13742 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13743 /* end confdefs.h. */
13744 #include <limits.h>
13749 #ifndef _BIG_ENDIAN
13757 if ac_fn_c_try_compile
"$LINENO"; then :
13758 ac_cv_c_bigendian
=yes
13760 ac_cv_c_bigendian
=no
13762 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13764 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13766 if test $ac_cv_c_bigendian = unknown
; then
13767 # Compile a test program.
13768 if test "$cross_compiling" = yes; then :
13769 # Try to guess by grepping values from an object file.
13770 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13771 /* end confdefs.h. */
13772 short int ascii_mm[] =
13773 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
13774 short int ascii_ii[] =
13775 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
13776 int use_ascii (int i) {
13777 return ascii_mm[i] + ascii_ii[i];
13779 short int ebcdic_ii[] =
13780 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
13781 short int ebcdic_mm[] =
13782 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
13783 int use_ebcdic (int i) {
13784 return ebcdic_mm[i] + ebcdic_ii[i];
13791 return use_ascii (foo) == use_ebcdic (foo);
13796 if ac_fn_c_try_compile
"$LINENO"; then :
13797 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
13798 ac_cv_c_bigendian
=yes
13800 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
13801 if test "$ac_cv_c_bigendian" = unknown
; then
13802 ac_cv_c_bigendian
=no
13804 # finding both strings is unlikely to happen, but who knows?
13805 ac_cv_c_bigendian
=unknown
13809 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13811 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13812 /* end confdefs.h. */
13813 $ac_includes_default
13818 /* Are we little or big endian? From Harbison&Steele. */
13822 char c[sizeof (long int)];
13825 return u.c[sizeof (long int) - 1] == 1;
13831 if ac_fn_c_try_run
"$LINENO"; then :
13832 ac_cv_c_bigendian
=no
13834 ac_cv_c_bigendian
=yes
13836 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13837 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
13843 $as_echo "$ac_cv_c_bigendian" >&6; }
13844 case $ac_cv_c_bigendian in #(
13846 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
13852 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
13856 as_fn_error
"unknown endianness
13857 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
13861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
13862 $as_echo_n "checking for inline... " >&6; }
13863 if test "${ac_cv_c_inline+set}" = set; then :
13864 $as_echo_n "(cached) " >&6
13867 for ac_kw
in inline __inline__ __inline
; do
13868 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13869 /* end confdefs.h. */
13870 #ifndef __cplusplus
13872 static $ac_kw foo_t static_foo () {return 0; }
13873 $ac_kw foo_t foo () {return 0; }
13877 if ac_fn_c_try_compile
"$LINENO"; then :
13878 ac_cv_c_inline
=$ac_kw
13880 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13881 test "$ac_cv_c_inline" != no
&& break
13885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
13886 $as_echo "$ac_cv_c_inline" >&6; }
13888 case $ac_cv_c_inline in
13891 case $ac_cv_c_inline in
13893 *) ac_val
=$ac_cv_c_inline;;
13895 cat >>confdefs.h
<<_ACEOF
13896 #ifndef __cplusplus
13897 #define inline $ac_val
13904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtold conforms to C99" >&5
13905 $as_echo_n "checking whether strtold conforms to C99... " >&6; }
13906 if test "${gl_cv_func_c99_strtold+set}" = set; then :
13907 $as_echo_n "(cached) " >&6
13909 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13910 /* end confdefs.h. */
13911 /* On HP-UX before 11.23, strtold returns a struct instead of
13912 long double. Reject implementations like that, by requiring
13913 compatibility with the C99 prototype. */
13914 #include <stdlib.h>
13915 static long double (*p) (char const *, char **) = strtold;
13917 test (char const *nptr, char **endptr)
13920 r = strtold (nptr, endptr);
13926 return test ("1.0", NULL) != 1 || p ("1.0", NULL) != 1;
13931 if ac_fn_c_try_link
"$LINENO"; then :
13932 gl_cv_func_c99_strtold
=yes
13934 gl_cv_func_c99_strtold
=no
13936 rm -f core conftest.err conftest.
$ac_objext \
13937 conftest
$ac_exeext conftest.
$ac_ext
13939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_c99_strtold" >&5
13940 $as_echo "$gl_cv_func_c99_strtold" >&6; }
13941 if test $gl_cv_func_c99_strtold = yes; then
13943 $as_echo "#define HAVE_C99_STRTOLD 1" >>confdefs.h
13947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_dm_mode in struct stat" >&5
13948 $as_echo_n "checking for st_dm_mode in struct stat... " >&6; }
13949 if test "${ac_cv_struct_st_dm_mode+set}" = set; then :
13950 $as_echo_n "(cached) " >&6
13952 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13953 /* end confdefs.h. */
13955 #include <sys/types.h>
13956 #include <sys/stat.h>
13960 struct stat s; s.st_dm_mode;
13965 if ac_fn_c_try_compile
"$LINENO"; then :
13966 ac_cv_struct_st_dm_mode
=yes
13968 ac_cv_struct_st_dm_mode
=no
13970 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_st_dm_mode" >&5
13973 $as_echo "$ac_cv_struct_st_dm_mode" >&6; }
13975 if test $ac_cv_struct_st_dm_mode = yes; then
13977 $as_echo "#define HAVE_ST_DM_MODE 1" >>confdefs.h
13982 ac_fn_c_check_decl
"$LINENO" "strmode" "ac_cv_have_decl_strmode" "$ac_includes_default"
13983 if test "x$ac_cv_have_decl_strmode" = x
""yes; then :
13989 cat >>confdefs.h
<<_ACEOF
13990 #define HAVE_DECL_STRMODE $ac_have_decl
13996 GNULIB_CALLOC_POSIX
=0;
13997 GNULIB_CANONICALIZE_FILE_NAME
=0;
13998 GNULIB_GETLOADAVG
=0;
13999 GNULIB_GETSUBOPT
=0;
14001 GNULIB_MALLOC_POSIX
=0;
14005 GNULIB_MKOSTEMPS
=0;
14011 GNULIB_REALLOC_POSIX
=0;
14018 GNULIB_SYSTEM_POSIX
=0;
14024 HAVE_CANONICALIZE_FILE_NAME
=1;
14025 HAVE_DECL_GETLOADAVG
=1;
14039 HAVE_DECL_SETENV
=1;
14043 HAVE_STRUCT_RANDOM_DATA
=1;
14044 HAVE_SYS_LOADAVG_H
=0;
14046 HAVE_DECL_UNSETENV
=1;
14048 REPLACE_CANONICALIZE_FILE_NAME
=0;
14054 REPLACE_REALPATH
=0;
14057 REPLACE_UNSETENV
=0;
14066 GNULIB_EUIDACCESS
=0;
14067 GNULIB_FACCESSAT
=0;
14071 GNULIB_FTRUNCATE
=0;
14073 GNULIB_GETDOMAINNAME
=0;
14074 GNULIB_GETDTABLESIZE
=0;
14075 GNULIB_GETGROUPS
=0;
14076 GNULIB_GETHOSTNAME
=0;
14078 GNULIB_GETLOGIN_R
=0;
14079 GNULIB_GETPAGESIZE
=0;
14080 GNULIB_GETUSERSHELL
=0;
14091 GNULIB_READLINKAT
=0;
14095 GNULIB_SYMLINKAT
=0;
14096 GNULIB_TTYNAME_R
=0;
14097 GNULIB_UNISTD_H_GETOPT
=0;
14098 GNULIB_UNISTD_H_NONBLOCKING
=0;
14099 GNULIB_UNISTD_H_SIGPIPE
=0;
14113 HAVE_GETDTABLESIZE
=1;
14115 HAVE_GETHOSTNAME
=1;
14117 HAVE_GETPAGESIZE
=1;
14132 HAVE_DECL_ENVIRON
=1;
14133 HAVE_DECL_FCHDIR
=1;
14134 HAVE_DECL_GETDOMAINNAME
=1;
14135 HAVE_DECL_GETLOGIN_R
=1;
14136 HAVE_DECL_GETPAGESIZE
=1;
14137 HAVE_DECL_GETUSERSHELL
=1;
14138 HAVE_DECL_TTYNAME_R
=1;
14140 HAVE_SYS_PARAM_H
=0;
14145 REPLACE_FCHOWNAT
=0;
14147 REPLACE_GETDOMAINNAME
=0;
14148 REPLACE_GETLOGIN_R
=0;
14149 REPLACE_GETGROUPS
=0;
14150 REPLACE_GETPAGESIZE
=0;
14158 REPLACE_READLINK
=0;
14162 REPLACE_TTYNAME_R
=0;
14164 REPLACE_UNLINKAT
=0;
14167 UNISTD_H_HAVE_WINSOCK2_H
=0;
14168 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
=0;
14173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
14174 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
14175 if test "${gl_cv_have_include_next+set}" = set; then :
14176 $as_echo_n "(cached) " >&6
14178 rm -rf conftestd1a conftestd1b conftestd2
14179 mkdir conftestd1a conftestd1b conftestd2
14180 cat <<EOF > conftestd1a/conftest.h
14181 #define DEFINED_IN_CONFTESTD1
14182 #include_next <conftest.h>
14183 #ifdef DEFINED_IN_CONFTESTD2
14186 #error "include_next doesn't work"
14189 cat <<EOF > conftestd1b/conftest.h
14190 #define DEFINED_IN_CONFTESTD1
14192 #include_next <conftest.h>
14193 #ifdef DEFINED_IN_CONFTESTD2
14196 #error "include_next doesn't work"
14199 cat <<EOF > conftestd2/conftest.h
14200 #ifndef DEFINED_IN_CONFTESTD1
14201 #error "include_next test doesn't work"
14203 #define DEFINED_IN_CONFTESTD2
14205 gl_save_CPPFLAGS
="$CPPFLAGS"
14206 CPPFLAGS
="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
14207 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14208 /* end confdefs.h. */
14209 #include <conftest.h>
14211 if ac_fn_c_try_compile
"$LINENO"; then :
14212 gl_cv_have_include_next
=yes
14214 CPPFLAGS
="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
14215 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14216 /* end confdefs.h. */
14217 #include <conftest.h>
14219 if ac_fn_c_try_compile
"$LINENO"; then :
14220 gl_cv_have_include_next
=buggy
14222 gl_cv_have_include_next
=no
14224 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14227 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14228 CPPFLAGS
="$gl_save_CPPFLAGS"
14229 rm -rf conftestd1a conftestd1b conftestd2
14232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
14233 $as_echo "$gl_cv_have_include_next" >&6; }
14234 PRAGMA_SYSTEM_HEADER
=
14235 if test $gl_cv_have_include_next = yes; then
14236 INCLUDE_NEXT
=include_next
14237 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include_next
14238 if test -n "$GCC"; then
14239 PRAGMA_SYSTEM_HEADER
='#pragma GCC system_header'
14242 if test $gl_cv_have_include_next = buggy
; then
14243 INCLUDE_NEXT
=include
14244 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include_next
14246 INCLUDE_NEXT
=include
14247 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include
14253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
14254 $as_echo_n "checking whether system header files limit the line length... " >&6; }
14255 if test "${gl_cv_pragma_columns+set}" = set; then :
14256 $as_echo_n "(cached) " >&6
14258 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14259 /* end confdefs.h. */
14266 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14267 $EGREP "choke me" >/dev
/null
2>&1; then :
14268 gl_cv_pragma_columns
=yes
14270 gl_cv_pragma_columns
=no
14276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
14277 $as_echo "$gl_cv_pragma_columns" >&6; }
14278 if test $gl_cv_pragma_columns = yes; then
14279 PRAGMA_COLUMNS
="#pragma COLUMNS 10000"
14300 if test $gl_cv_have_include_next = yes; then
14301 gl_cv_next_getopt_h
='<'getopt.h
'>'
14303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <getopt.h>" >&5
14304 $as_echo_n "checking absolute name of <getopt.h>... " >&6; }
14305 if test "${gl_cv_next_getopt_h+set}" = set; then :
14306 $as_echo_n "(cached) " >&6
14309 if test $ac_cv_header_getopt_h = yes; then
14312 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14313 /* end confdefs.h. */
14314 #include <getopt.h>
14318 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
14319 *) gl_absname_cpp
="$ac_cpp" ;;
14321 gl_cv_next_getopt_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
14322 sed -n '\#/getopt.h#{
14323 s#.*"\(.*/getopt.h\)".*#\1#
14329 gl_cv_next_getopt_h
='<'getopt.h
'>'
14334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_getopt_h" >&5
14335 $as_echo "$gl_cv_next_getopt_h" >&6; }
14337 NEXT_GETOPT_H
=$gl_cv_next_getopt_h
14339 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
14340 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
14341 gl_next_as_first_directive
='<'getopt.h
'>'
14343 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
14344 gl_next_as_first_directive
=$gl_cv_next_getopt_h
14346 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
=$gl_next_as_first_directive
14351 if test $ac_cv_header_getopt_h = yes; then
14360 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU
; then
14361 for ac_header
in getopt.h
14363 ac_fn_c_check_header_mongrel
"$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
14364 if test "x$ac_cv_header_getopt_h" = x
""yes; then :
14365 cat >>confdefs.h
<<_ACEOF
14366 #define HAVE_GETOPT_H 1
14370 gl_replace_getopt
=yes
14377 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU
; then
14378 for ac_func
in getopt_long_only
14380 ac_fn_c_check_func
"$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
14381 if test "x$ac_cv_func_getopt_long_only" = x
""yes; then :
14382 cat >>confdefs.h
<<_ACEOF
14383 #define HAVE_GETOPT_LONG_ONLY 1
14387 gl_replace_getopt
=yes
14393 if test -z "$gl_replace_getopt"; then
14394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt is POSIX compatible" >&5
14395 $as_echo_n "checking whether getopt is POSIX compatible... " >&6; }
14396 if test "${gl_cv_func_getopt_posix+set}" = set; then :
14397 $as_echo_n "(cached) " >&6
14400 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14401 /* end confdefs.h. */
14402 #include <unistd.h>
14406 int *p = &optreset; return optreset;
14411 if ac_fn_c_try_compile
"$LINENO"; then :
14414 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14415 /* end confdefs.h. */
14416 #include <getopt.h>
14420 return !getopt_clip;
14425 if ac_fn_c_try_compile
"$LINENO"; then :
14430 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14432 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14434 gl_save_CPPFLAGS
=$CPPFLAGS
14435 CPPFLAGS
="$CPPFLAGS -DOPTIND_MIN=$gl_optind_min"
14436 if test "$cross_compiling" = yes; then :
14438 mingw
*) gl_cv_func_getopt_posix
="guessing no";;
14439 darwin
* | aix
*) gl_cv_func_getopt_posix
="guessing no";;
14440 *) gl_cv_func_getopt_posix
="guessing yes";;
14444 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14445 /* end confdefs.h. */
14447 #include <unistd.h>
14448 #include <stdlib.h>
14449 #include <string.h>
14459 argv[argc++] = "program";
14460 argv[argc++] = "-a";
14461 argv[argc++] = "foo";
14462 argv[argc++] = "bar";
14464 optind = OPTIND_MIN;
14467 c = getopt (argc, argv, "ab");
14470 c = getopt (argc, argv, "ab");
14473 if (!(optind == 2))
14476 /* Some internal state exists at this point. */
14482 argv[argc++] = "program";
14483 argv[argc++] = "donald";
14484 argv[argc++] = "-p";
14485 argv[argc++] = "billy";
14486 argv[argc++] = "duck";
14487 argv[argc++] = "-a";
14488 argv[argc++] = "bar";
14490 optind = OPTIND_MIN;
14493 c = getopt (argc, argv, "+abp:q:");
14496 if (!(strcmp (argv[0], "program") == 0))
14498 if (!(strcmp (argv[1], "donald") == 0))
14500 if (!(strcmp (argv[2], "-p") == 0))
14502 if (!(strcmp (argv[3], "billy") == 0))
14504 if (!(strcmp (argv[4], "duck") == 0))
14506 if (!(strcmp (argv[5], "-a") == 0))
14508 if (!(strcmp (argv[6], "bar") == 0))
14510 if (!(optind == 1))
14513 /* Detect MacOS 10.5, AIX 7.1 bug. */
14515 char *argv[3] = { "program", "-ab", NULL };
14516 optind = OPTIND_MIN;
14518 if (getopt (2, argv, "ab:") != 'a')
14520 if (getopt (2, argv, "ab:") != '?')
14532 if ac_fn_c_try_run
"$LINENO"; then :
14533 gl_cv_func_getopt_posix
=yes
14535 gl_cv_func_getopt_posix
=no
14537 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14538 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14541 CPPFLAGS
=$gl_save_CPPFLAGS
14544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_posix" >&5
14545 $as_echo "$gl_cv_func_getopt_posix" >&6; }
14546 case "$gl_cv_func_getopt_posix" in
14547 *no
) gl_replace_getopt
=yes ;;
14551 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU
; then
14552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
14553 $as_echo_n "checking for working GNU getopt function... " >&6; }
14554 if test "${gl_cv_func_getopt_gnu+set}" = set; then :
14555 $as_echo_n "(cached) " >&6
14557 # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the
14558 # optstring is necessary for programs like m4 that have POSIX-mandated
14559 # semantics for supporting options interspersed with files.
14560 # Also, since getopt_long is a GNU extension, we require optind=0.
14561 # Bash ties 'set -o posix' to a non-exported POSIXLY_CORRECT;
14562 # so take care to revert to the correct (non-)export state.
14563 gl_awk_probe
='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }'
14564 case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" </dev/null` in
14565 xx
) gl_had_POSIXLY_CORRECT
=exported
;;
14566 x
) gl_had_POSIXLY_CORRECT
=yes ;;
14567 *) gl_had_POSIXLY_CORRECT
= ;;
14570 export POSIXLY_CORRECT
14571 if test "$cross_compiling" = yes; then :
14572 case $host_os:$ac_cv_have_decl_optreset in
14573 *-gnu*:* | mingw
*:*) gl_cv_func_getopt_gnu
=no
;;
14574 *:yes) gl_cv_func_getopt_gnu
=no
;;
14575 *) gl_cv_func_getopt_gnu
=yes;;
14579 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14580 /* end confdefs.h. */
14581 #include <getopt.h>
14582 #include <stddef.h>
14583 #include <string.h>
14590 /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
14591 and fails on MacOS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
14592 OSF/1 5.1, Solaris 10. */
14595 myargv[0] = "conftest";
14599 if (getopt (2, myargv, "+a") != '?')
14602 /* This code succeeds on glibc 2.8, mingw,
14603 and fails on MacOS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
14604 IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x. */
14606 char *argv[] = { "program", "-p", "foo", "bar", NULL };
14609 if (getopt (4, argv, "p::") != 'p')
14611 else if (optarg != NULL)
14613 else if (getopt (4, argv, "p::") != -1)
14615 else if (optind != 2)
14618 /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0. */
14620 char *argv[] = { "program", "foo", "-p", NULL };
14622 if (getopt (3, argv, "-p") != 1)
14624 else if (getopt (3, argv, "-p") != 'p')
14627 /* This code fails on glibc 2.11. */
14629 char *argv[] = { "program", "-b", "-a", NULL };
14630 optind = opterr = 0;
14631 if (getopt (3, argv, "+:a:b") != 'b')
14633 else if (getopt (3, argv, "+:a:b") != ':')
14642 if ac_fn_c_try_run
"$LINENO"; then :
14643 gl_cv_func_getopt_gnu
=yes
14645 gl_cv_func_getopt_gnu
=no
14647 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14648 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14651 case $gl_had_POSIXLY_CORRECT in
14653 yes) { POSIXLY_CORRECT
=; unset POSIXLY_CORRECT
;}; POSIXLY_CORRECT
=1 ;;
14654 *) { POSIXLY_CORRECT
=; unset POSIXLY_CORRECT
;} ;;
14658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_gnu" >&5
14659 $as_echo "$gl_cv_func_getopt_gnu" >&6; }
14660 if test "$gl_cv_func_getopt_gnu" = "no"; then
14661 gl_replace_getopt
=yes
14665 ac_fn_c_check_decl
"$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
14666 if test "x$ac_cv_have_decl_getenv" = x
""yes; then :
14672 cat >>confdefs.h
<<_ACEOF
14673 #define HAVE_DECL_GETENV $ac_have_decl
14681 if test -n "$gl_replace_getopt"; then :
14687 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
14691 GNULIB_UNISTD_H_GETOPT
=1
14700 gl_LIBOBJS
="$gl_LIBOBJS getopt.$ac_objext"
14710 gl_LIBOBJS
="$gl_LIBOBJS getopt1.$ac_objext"
14721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
14722 $as_echo_n "checking for unsigned long long int... " >&6; }
14723 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
14724 $as_echo_n "(cached) " >&6
14726 ac_cv_type_unsigned_long_long_int
=yes
14727 if test "x${ac_cv_prog_cc_c99-no}" = xno
; then
14728 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14729 /* end confdefs.h. */
14731 /* For now, do not test the preprocessor; as of 2007 there are too many
14732 implementations with broken preprocessors. Perhaps this can
14733 be revisited in 2012. In the meantime, code should not expect
14734 #if to work with literals wider than 32 bits. */
14735 /* Test literals. */
14736 long long int ll = 9223372036854775807ll;
14737 long long int nll = -9223372036854775807LL;
14738 unsigned long long int ull = 18446744073709551615ULL;
14739 /* Test constant expressions. */
14740 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
14742 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
14748 /* Test availability of runtime routines for shift and division. */
14749 long long int llmax = 9223372036854775807ll;
14750 unsigned long long int ullmax = 18446744073709551615ull;
14751 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
14752 | (llmax / ll) | (llmax % ll)
14753 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
14754 | (ullmax / ull) | (ullmax % ull));
14760 if ac_fn_c_try_link
"$LINENO"; then :
14763 ac_cv_type_unsigned_long_long_int
=no
14765 rm -f core conftest.err conftest.
$ac_objext \
14766 conftest
$ac_exeext conftest.
$ac_ext
14769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
14770 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
14771 if test $ac_cv_type_unsigned_long_long_int = yes; then
14773 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
14779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
14780 $as_echo_n "checking for long long int... " >&6; }
14781 if test "${ac_cv_type_long_long_int+set}" = set; then :
14782 $as_echo_n "(cached) " >&6
14784 ac_cv_type_long_long_int
=yes
14785 if test "x${ac_cv_prog_cc_c99-no}" = xno
; then
14786 ac_cv_type_long_long_int
=$ac_cv_type_unsigned_long_long_int
14787 if test $ac_cv_type_long_long_int = yes; then
14788 if test "$cross_compiling" = yes; then :
14791 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14792 /* end confdefs.h. */
14793 #include <limits.h>
14796 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
14797 # define LLONG_MAX (HALF - 1 + HALF)
14802 long long int n = 1;
14806 long long int m = n << i;
14809 if (LLONG_MAX / 2 < m)
14817 if ac_fn_c_try_run
"$LINENO"; then :
14820 ac_cv_type_long_long_int
=no
14822 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14823 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
14830 $as_echo "$ac_cv_type_long_long_int" >&6; }
14831 if test $ac_cv_type_long_long_int = yes; then
14833 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
14842 gl_cv_c_multiarch
=no
14843 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14844 /* end confdefs.h. */
14845 #ifndef __APPLE_CC__
14846 not a universal capable compiler
14851 if ac_fn_c_try_compile
"$LINENO"; then :
14855 for word
in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
14856 if test -n "$prev"; then
14858 i?
86 | x86_64 | ppc | ppc64
)
14859 if test -z "$arch" ||
test "$arch" = "$word"; then
14862 gl_cv_c_multiarch
=yes
14868 if test "x$word" = "x-arch"; then
14875 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14876 if test $gl_cv_c_multiarch = yes; then
14877 APPLE_UNIVERSAL_BUILD
=1
14879 APPLE_UNIVERSAL_BUILD
=0
14886 if test $ac_cv_type_long_long_int = yes; then
14887 HAVE_LONG_LONG_INT
=1
14889 HAVE_LONG_LONG_INT
=0
14893 if test $ac_cv_type_unsigned_long_long_int = yes; then
14894 HAVE_UNSIGNED_LONG_LONG_INT
=1
14896 HAVE_UNSIGNED_LONG_LONG_INT
=0
14901 if test $ac_cv_header_wchar_h = yes; then
14908 if test $ac_cv_header_inttypes_h = yes; then
14915 if test $ac_cv_header_sys_types_h = yes; then
14931 if test $gl_cv_have_include_next = yes; then
14932 gl_cv_next_stdint_h
='<'stdint.h
'>'
14934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
14935 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
14936 if test "${gl_cv_next_stdint_h+set}" = set; then :
14937 $as_echo_n "(cached) " >&6
14940 if test $ac_cv_header_stdint_h = yes; then
14943 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14944 /* end confdefs.h. */
14945 #include <stdint.h>
14949 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
14950 *) gl_absname_cpp
="$ac_cpp" ;;
14952 gl_cv_next_stdint_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
14953 sed -n '\#/stdint.h#{
14954 s#.*"\(.*/stdint.h\)".*#\1#
14960 gl_cv_next_stdint_h
='<'stdint.h
'>'
14965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
14966 $as_echo "$gl_cv_next_stdint_h" >&6; }
14968 NEXT_STDINT_H
=$gl_cv_next_stdint_h
14970 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
14971 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
14972 gl_next_as_first_directive
='<'stdint.h
'>'
14974 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
14975 gl_next_as_first_directive
=$gl_cv_next_stdint_h
14977 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
=$gl_next_as_first_directive
14982 if test $ac_cv_header_stdint_h = yes; then
14989 if test $ac_cv_header_stdint_h = yes; then
14990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
14991 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
14992 if test "${gl_cv_header_working_stdint_h+set}" = set; then :
14993 $as_echo_n "(cached) " >&6
14995 gl_cv_header_working_stdint_h
=no
14996 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14997 /* end confdefs.h. */
15000 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
15001 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
15002 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
15003 #include <stdint.h>
15004 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
15005 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
15006 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
15010 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15011 included before <wchar.h>. */
15012 #include <stddef.h>
15013 #include <signal.h>
15015 # include <stdio.h>
15017 # include <wchar.h>
15022 int8_t a1 = INT8_MAX;
15023 int8_t a1min = INT8_MIN;
15026 int16_t a2 = INT16_MAX;
15027 int16_t a2min = INT16_MIN;
15030 int32_t a3 = INT32_MAX;
15031 int32_t a3min = INT32_MIN;
15034 int64_t a4 = INT64_MAX;
15035 int64_t a4min = INT64_MIN;
15038 uint8_t b1 = UINT8_MAX;
15040 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
15043 uint16_t b2 = UINT16_MAX;
15046 uint32_t b3 = UINT32_MAX;
15049 uint64_t b4 = UINT64_MAX;
15051 int_least8_t c1 = INT8_C (0x7f);
15052 int_least8_t c1max = INT_LEAST8_MAX;
15053 int_least8_t c1min = INT_LEAST8_MIN;
15054 int_least16_t c2 = INT16_C (0x7fff);
15055 int_least16_t c2max = INT_LEAST16_MAX;
15056 int_least16_t c2min = INT_LEAST16_MIN;
15057 int_least32_t c3 = INT32_C (0x7fffffff);
15058 int_least32_t c3max = INT_LEAST32_MAX;
15059 int_least32_t c3min = INT_LEAST32_MIN;
15060 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
15061 int_least64_t c4max = INT_LEAST64_MAX;
15062 int_least64_t c4min = INT_LEAST64_MIN;
15063 uint_least8_t d1 = UINT8_C (0xff);
15064 uint_least8_t d1max = UINT_LEAST8_MAX;
15065 uint_least16_t d2 = UINT16_C (0xffff);
15066 uint_least16_t d2max = UINT_LEAST16_MAX;
15067 uint_least32_t d3 = UINT32_C (0xffffffff);
15068 uint_least32_t d3max = UINT_LEAST32_MAX;
15069 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
15070 uint_least64_t d4max = UINT_LEAST64_MAX;
15071 int_fast8_t e1 = INT_FAST8_MAX;
15072 int_fast8_t e1min = INT_FAST8_MIN;
15073 int_fast16_t e2 = INT_FAST16_MAX;
15074 int_fast16_t e2min = INT_FAST16_MIN;
15075 int_fast32_t e3 = INT_FAST32_MAX;
15076 int_fast32_t e3min = INT_FAST32_MIN;
15077 int_fast64_t e4 = INT_FAST64_MAX;
15078 int_fast64_t e4min = INT_FAST64_MIN;
15079 uint_fast8_t f1 = UINT_FAST8_MAX;
15080 uint_fast16_t f2 = UINT_FAST16_MAX;
15081 uint_fast32_t f3 = UINT_FAST32_MAX;
15082 uint_fast64_t f4 = UINT_FAST64_MAX;
15084 intptr_t g = INTPTR_MAX;
15085 intptr_t gmin = INTPTR_MIN;
15088 uintptr_t h = UINTPTR_MAX;
15090 intmax_t i = INTMAX_MAX;
15091 uintmax_t j = UINTMAX_MAX;
15093 #include <limits.h> /* for CHAR_BIT */
15094 #define TYPE_MINIMUM(t) \
15095 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
15096 #define TYPE_MAXIMUM(t) \
15097 ((t) ((t) 0 < (t) -1 \
15099 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
15102 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
15103 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
15105 /* Detect bug in FreeBSD 6.0 / ia64. */
15106 int check_SIG_ATOMIC:
15107 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
15108 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
15110 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
15112 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
15113 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
15115 /* Detect bug in mingw. */
15117 WINT_MIN == TYPE_MINIMUM (wint_t)
15118 && WINT_MAX == TYPE_MAXIMUM (wint_t)
15121 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
15123 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
15124 int check_UINT16_C:
15125 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
15127 /* Detect bugs in OpenBSD 3.9 stdint.h. */
15129 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
15132 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
15135 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
15138 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
15140 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
15141 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
15142 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
15143 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
15144 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
15145 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
15146 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
15147 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
15148 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
15149 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
15150 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
15161 if ac_fn_c_try_compile
"$LINENO"; then :
15162 if test "$cross_compiling" = yes; then :
15163 gl_cv_header_working_stdint_h
=yes
15166 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15167 /* end confdefs.h. */
15170 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
15171 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
15172 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
15173 #include <stdint.h>
15176 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15177 included before <wchar.h>. */
15178 #include <stddef.h>
15179 #include <signal.h>
15181 # include <stdio.h>
15183 # include <wchar.h>
15188 #include <string.h>
15189 #define MVAL(macro) MVAL1(macro)
15190 #define MVAL1(expression) #expression
15191 static const char *macro_values[] =
15225 for (mv = macro_values; *mv != NULL; mv++)
15227 const char *value = *mv;
15228 /* Test whether it looks like a cast expression. */
15229 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
15230 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
15231 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
15232 || strncmp (value, "((int)"/*)*/, 6) == 0
15233 || strncmp (value, "((signed short)"/*)*/, 15) == 0
15234 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
15235 return mv - macro_values + 1;
15243 if ac_fn_c_try_run
"$LINENO"; then :
15244 gl_cv_header_working_stdint_h
=yes
15246 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15247 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15252 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
15256 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
15258 if test "$gl_cv_header_working_stdint_h" = yes; then
15261 for ac_header
in sys
/inttypes.h sys
/bitypes.h
15263 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15264 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15265 eval as_val
=\$
$as_ac_Header
15266 if test "x$as_val" = x
""yes; then :
15267 cat >>confdefs.h
<<_ACEOF
15268 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15275 if test $ac_cv_header_sys_inttypes_h = yes; then
15276 HAVE_SYS_INTTYPES_H
=1
15278 HAVE_SYS_INTTYPES_H
=0
15281 if test $ac_cv_header_sys_bitypes_h = yes; then
15282 HAVE_SYS_BITYPES_H
=1
15284 HAVE_SYS_BITYPES_H
=0
15290 if test $APPLE_UNIVERSAL_BUILD = 0; then
15293 for gltype
in ptrdiff_t size_t
; do
15294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
15295 $as_echo_n "checking for bit size of $gltype... " >&6; }
15296 if { as_var
=gl_cv_bitsizeof_
${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
15297 $as_echo_n "(cached) " >&6
15299 if ac_fn_c_compute_int
"$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
15300 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15301 included before <wchar.h>. */
15302 #include <stddef.h>
15303 #include <signal.h>
15305 # include <stdio.h>
15307 # include <wchar.h>
15310 #include <limits.h>"; then :
15316 eval gl_cv_bitsizeof_
${gltype}=\
$result
15319 eval ac_res
=\
$gl_cv_bitsizeof_${gltype}
15320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15321 $as_echo "$ac_res" >&6; }
15322 eval result
=\
$gl_cv_bitsizeof_${gltype}
15323 if test $result = unknown
; then
15326 GLTYPE
=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
15327 cat >>confdefs.h
<<_ACEOF
15328 #define BITSIZEOF_${GLTYPE} $result
15331 eval BITSIZEOF_
${GLTYPE}=\
$result
15338 for gltype
in sig_atomic_t wchar_t wint_t
; do
15339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
15340 $as_echo_n "checking for bit size of $gltype... " >&6; }
15341 if { as_var
=gl_cv_bitsizeof_
${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
15342 $as_echo_n "(cached) " >&6
15344 if ac_fn_c_compute_int
"$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
15345 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15346 included before <wchar.h>. */
15347 #include <stddef.h>
15348 #include <signal.h>
15350 # include <stdio.h>
15352 # include <wchar.h>
15355 #include <limits.h>"; then :
15361 eval gl_cv_bitsizeof_
${gltype}=\
$result
15364 eval ac_res
=\
$gl_cv_bitsizeof_${gltype}
15365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15366 $as_echo "$ac_res" >&6; }
15367 eval result
=\
$gl_cv_bitsizeof_${gltype}
15368 if test $result = unknown
; then
15371 GLTYPE
=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
15372 cat >>confdefs.h
<<_ACEOF
15373 #define BITSIZEOF_${GLTYPE} $result
15376 eval BITSIZEOF_
${GLTYPE}=\
$result
15382 for gltype
in sig_atomic_t wchar_t wint_t
; do
15383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
15384 $as_echo_n "checking whether $gltype is signed... " >&6; }
15385 if { as_var
=gl_cv_type_
${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then :
15386 $as_echo_n "(cached) " >&6
15388 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15389 /* end confdefs.h. */
15391 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15392 included before <wchar.h>. */
15393 #include <stddef.h>
15394 #include <signal.h>
15396 # include <stdio.h>
15398 # include <wchar.h>
15401 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
15410 if ac_fn_c_try_compile
"$LINENO"; then :
15415 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15416 eval gl_cv_type_
${gltype}_signed
=\
$result
15419 eval ac_res
=\
$gl_cv_type_${gltype}_signed
15420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15421 $as_echo "$ac_res" >&6; }
15422 eval result
=\
$gl_cv_type_${gltype}_signed
15423 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
15424 if test "$result" = yes; then
15425 cat >>confdefs.h
<<_ACEOF
15426 #define HAVE_SIGNED_${GLTYPE} 1
15429 eval HAVE_SIGNED_
${GLTYPE}=1
15431 eval HAVE_SIGNED_
${GLTYPE}=0
15436 gl_cv_type_ptrdiff_t_signed
=yes
15437 gl_cv_type_size_t_signed
=no
15438 if test $APPLE_UNIVERSAL_BUILD = 0; then
15441 for gltype
in ptrdiff_t size_t
; do
15442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
15443 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
15444 if { as_var
=gl_cv_type_
${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
15445 $as_echo_n "(cached) " >&6
15447 eval gl_cv_type_
${gltype}_suffix
=no
15448 eval result
=\
$gl_cv_type_${gltype}_signed
15449 if test "$result" = yes; then
15454 for glsuf
in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64
; do
15456 '') gltype1
='int';;
15457 l
) gltype1
='long int';;
15458 ll
) gltype1
='long long int';;
15459 i64
) gltype1
='__int64';;
15460 u
) gltype1
='unsigned int';;
15461 ul
) gltype1
='unsigned long int';;
15462 ull
) gltype1
='unsigned long long int';;
15463 ui64
)gltype1
='unsigned __int64';;
15465 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15466 /* end confdefs.h. */
15468 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15469 included before <wchar.h>. */
15470 #include <stddef.h>
15471 #include <signal.h>
15473 # include <stdio.h>
15475 # include <wchar.h>
15478 extern $gltype foo;
15479 extern $gltype1 foo;
15488 if ac_fn_c_try_compile
"$LINENO"; then :
15489 eval gl_cv_type_
${gltype}_suffix
=\
$glsuf
15491 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15492 eval result
=\
$gl_cv_type_${gltype}_suffix
15493 test "$result" != no
&& break
15496 eval ac_res
=\
$gl_cv_type_${gltype}_suffix
15497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15498 $as_echo "$ac_res" >&6; }
15499 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
15500 eval result
=\
$gl_cv_type_${gltype}_suffix
15501 test "$result" = no
&& result
=
15502 eval ${GLTYPE}_SUFFIX
=\
$result
15503 cat >>confdefs.h
<<_ACEOF
15504 #define ${GLTYPE}_SUFFIX $result
15513 for gltype
in sig_atomic_t wchar_t wint_t
; do
15514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
15515 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
15516 if { as_var
=gl_cv_type_
${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
15517 $as_echo_n "(cached) " >&6
15519 eval gl_cv_type_
${gltype}_suffix
=no
15520 eval result
=\
$gl_cv_type_${gltype}_signed
15521 if test "$result" = yes; then
15526 for glsuf
in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64
; do
15528 '') gltype1
='int';;
15529 l
) gltype1
='long int';;
15530 ll
) gltype1
='long long int';;
15531 i64
) gltype1
='__int64';;
15532 u
) gltype1
='unsigned int';;
15533 ul
) gltype1
='unsigned long int';;
15534 ull
) gltype1
='unsigned long long int';;
15535 ui64
)gltype1
='unsigned __int64';;
15537 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15538 /* end confdefs.h. */
15540 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15541 included before <wchar.h>. */
15542 #include <stddef.h>
15543 #include <signal.h>
15545 # include <stdio.h>
15547 # include <wchar.h>
15550 extern $gltype foo;
15551 extern $gltype1 foo;
15560 if ac_fn_c_try_compile
"$LINENO"; then :
15561 eval gl_cv_type_
${gltype}_suffix
=\
$glsuf
15563 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15564 eval result
=\
$gl_cv_type_${gltype}_suffix
15565 test "$result" != no
&& break
15568 eval ac_res
=\
$gl_cv_type_${gltype}_suffix
15569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15570 $as_echo "$ac_res" >&6; }
15571 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
15572 eval result
=\
$gl_cv_type_${gltype}_suffix
15573 test "$result" = no
&& result
=
15574 eval ${GLTYPE}_SUFFIX
=\
$result
15575 cat >>confdefs.h
<<_ACEOF
15576 #define ${GLTYPE}_SUFFIX $result
15586 if test -n "$STDINT_H"; then
15587 GL_GENERATE_STDINT_H_TRUE
=
15588 GL_GENERATE_STDINT_H_FALSE
='#'
15590 GL_GENERATE_STDINT_H_TRUE
='#'
15591 GL_GENERATE_STDINT_H_FALSE
=
15600 GNULIB_STRTOIMAX
=0;
15601 GNULIB_STRTOUMAX
=0;
15602 HAVE_DECL_IMAXABS
=1;
15603 HAVE_DECL_IMAXDIV
=1;
15604 HAVE_DECL_STRTOIMAX
=1;
15605 HAVE_DECL_STRTOUMAX
=1;
15606 INT32_MAX_LT_INTMAX_MAX
=1;
15607 INT64_MAX_EQ_LONG_MAX
='defined _LP64';
15608 PRI_MACROS_BROKEN
=0;
15609 PRIPTR_PREFIX
=__PRIPTR_PREFIX
;
15610 UINT32_MAX_LT_UINTMAX_MAX
=1;
15611 UINT64_MAX_EQ_ULONG_MAX
='defined _LP64';
15625 GNULIB_UTIMENSAT
=0;
15639 REPLACE_FUTIMENS
=0;
15645 REPLACE_UTIMENSAT
=0;
15650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
15651 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
15652 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
15653 $as_echo_n "(cached) " >&6
15655 rm -f conftest.sym conftest.
file
15656 echo >conftest.
file
15657 if test "$as_ln_s" = "ln -s" && ln -s conftest.
file conftest.sym
; then
15658 if test "$cross_compiling" = yes; then :
15659 # When cross-compiling, be pessimistic so we will end up using the
15660 # replacement version of lstat that checks for trailing slashes and
15661 # calls lstat a second time when necessary.
15662 ac_cv_func_lstat_dereferences_slashed_symlink
=no
15665 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15666 /* end confdefs.h. */
15667 $ac_includes_default
15672 /* Linux will dereference the symlink and fail, as required by
15673 POSIX. That is better in the sense that it means we will not
15674 have to compile and use the lstat wrapper. */
15675 return lstat ("conftest.sym/", &sbuf) == 0;
15681 if ac_fn_c_try_run
"$LINENO"; then :
15682 ac_cv_func_lstat_dereferences_slashed_symlink
=yes
15684 ac_cv_func_lstat_dereferences_slashed_symlink
=no
15686 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15687 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15691 # If the 'ln -s' command failed, then we probably don't even
15692 # have an lstat function.
15693 ac_cv_func_lstat_dereferences_slashed_symlink
=no
15695 rm -f conftest.sym conftest.
file
15698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
15699 $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
15700 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
15702 cat >>confdefs.h
<<_ACEOF
15703 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
15706 if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno
; then
15715 gl_LIBOBJS
="$gl_LIBOBJS lstat.$ac_objext"
15721 GNULIB_NANOSLEEP
=0;
15725 HAVE_DECL_LOCALTIME_R
=1;
15729 REPLACE_LOCALTIME_R
=GNULIB_PORTCHECK
;
15730 REPLACE_MKTIME
=GNULIB_PORTCHECK
;
15731 REPLACE_NANOSLEEP
=GNULIB_PORTCHECK
;
15732 REPLACE_TIMEGM
=GNULIB_PORTCHECK
;
15741 if test $ac_cv_header_sys_socket_h = no
; then
15742 for ac_header
in ws2tcpip.h
15744 ac_fn_c_check_header_mongrel
"$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
15745 if test "x$ac_cv_header_ws2tcpip_h" = x
""yes; then :
15746 cat >>confdefs.h
<<_ACEOF
15747 #define HAVE_WS2TCPIP_H 1
15756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
15757 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
15758 if test "${ac_cv_header_stdbool_h+set}" = set; then :
15759 $as_echo_n "(cached) " >&6
15761 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15762 /* end confdefs.h. */
15764 #include <stdbool.h>
15766 "error: bool is not defined"
15769 "error: false is not defined"
15772 "error: false is not 0"
15775 "error: true is not defined"
15778 "error: true is not 1"
15780 #ifndef __bool_true_false_are_defined
15781 "error: __bool_true_false_are_defined is not defined"
15784 struct s { _Bool s: 1; _Bool t; } s;
15786 char a[true == 1 ? 1 : -1];
15787 char b[false == 0 ? 1 : -1];
15788 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
15789 char d[(bool) 0.5 == true ? 1 : -1];
15790 /* See body of main program for 'e'. */
15791 char f[(_Bool) 0.0 == false ? 1 : -1];
15793 char h[sizeof (_Bool)];
15794 char i[sizeof s.t];
15795 enum { j = false, k = true, l = false * true, m = true * 256 };
15796 /* The following fails for
15797 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
15799 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
15800 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
15801 /* Catch a bug in an HP-UX C compiler. See
15802 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
15803 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
15815 /* Refer to every declared value, to avoid compiler optimizations. */
15816 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
15817 + !m + !n + !o + !p + !q + !pq);
15823 if ac_fn_c_try_compile
"$LINENO"; then :
15824 ac_cv_header_stdbool_h
=yes
15826 ac_cv_header_stdbool_h
=no
15828 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
15831 $as_echo "$ac_cv_header_stdbool_h" >&6; }
15832 ac_fn_c_check_type
"$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
15833 if test "x$ac_cv_type__Bool" = x
""yes; then :
15835 cat >>confdefs.h
<<_ACEOF
15836 #define HAVE__BOOL 1
15848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
15849 $as_echo_n "checking for wchar_t... " >&6; }
15850 if test "${gt_cv_c_wchar_t+set}" = set; then :
15851 $as_echo_n "(cached) " >&6
15853 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15854 /* end confdefs.h. */
15855 #include <stddef.h>
15856 wchar_t foo = (wchar_t)'\0';
15865 if ac_fn_c_try_compile
"$LINENO"; then :
15866 gt_cv_c_wchar_t
=yes
15870 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
15873 $as_echo "$gt_cv_c_wchar_t" >&6; }
15874 if test $gt_cv_c_wchar_t = yes; then
15876 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
15888 GNULIB_FPRINTF_POSIX
=0;
15905 GNULIB_OBSTACK_PRINTF
=0;
15906 GNULIB_OBSTACK_PRINTF_POSIX
=0;
15910 GNULIB_PRINTF_POSIX
=0;
15919 GNULIB_SPRINTF_POSIX
=0;
15920 GNULIB_STDIO_H_NONBLOCKING
=0;
15921 GNULIB_STDIO_H_SIGPIPE
=0;
15923 GNULIB_VASPRINTF
=0;
15928 GNULIB_VFPRINTF_POSIX
=0;
15930 GNULIB_VPRINTF_POSIX
=0;
15931 GNULIB_VSNPRINTF
=0;
15932 GNULIB_VSPRINTF_POSIX
=0;
15933 HAVE_DECL_FPURGE
=1;
15934 HAVE_DECL_FSEEKO
=1;
15935 HAVE_DECL_FTELLO
=1;
15936 HAVE_DECL_GETDELIM
=1;
15937 HAVE_DECL_GETLINE
=1;
15938 HAVE_DECL_OBSTACK_PRINTF
=1;
15939 HAVE_DECL_SNPRINTF
=1;
15940 HAVE_DECL_VSNPRINTF
=1;
15958 REPLACE_GETDELIM
=0;
15960 REPLACE_OBSTACK_PRINTF
=0;
15966 REPLACE_RENAMEAT
=0;
15967 REPLACE_SNPRINTF
=0;
15969 REPLACE_STDIO_READ_FUNCS
=0;
15970 REPLACE_STDIO_WRITE_FUNCS
=0;
15972 REPLACE_VASPRINTF
=0;
15973 REPLACE_VDPRINTF
=0;
15974 REPLACE_VFPRINTF
=0;
15976 REPLACE_VSNPRINTF
=0;
15977 REPLACE_VSPRINTF
=0;
15980 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
15982 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x
""yes; then :
15984 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
15991 ac_fn_c_check_decl
"$LINENO" "strtoumax" "ac_cv_have_decl_strtoumax" "$ac_includes_default"
15992 if test "x$ac_cv_have_decl_strtoumax" = x
""yes; then :
15998 cat >>confdefs.h
<<_ACEOF
15999 #define HAVE_DECL_STRTOUMAX $ac_have_decl
16004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
16005 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
16006 if test "${ac_cv_header_stat_broken+set}" = set; then :
16007 $as_echo_n "(cached) " >&6
16009 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16010 /* end confdefs.h. */
16011 #include <sys/types.h>
16012 #include <sys/stat.h>
16014 #if defined S_ISBLK && defined S_IFDIR
16015 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
16018 #if defined S_ISBLK && defined S_IFCHR
16019 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
16022 #if defined S_ISLNK && defined S_IFREG
16023 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
16026 #if defined S_ISSOCK && defined S_IFREG
16027 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
16031 if ac_fn_c_try_compile
"$LINENO"; then :
16032 ac_cv_header_stat_broken
=no
16034 ac_cv_header_stat_broken
=yes
16036 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
16039 $as_echo "$ac_cv_header_stat_broken" >&6; }
16040 if test $ac_cv_header_stat_broken = yes; then
16042 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
16048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
16049 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
16050 if test "${ac_cv_c_restrict+set}" = set; then :
16051 $as_echo_n "(cached) " >&6
16053 ac_cv_c_restrict
=no
16054 # The order here caters to the fact that C++ does not require restrict.
16055 for ac_kw
in __restrict __restrict__ _Restrict restrict
; do
16056 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16057 /* end confdefs.h. */
16058 typedef int * int_ptr;
16059 int foo (int_ptr $ac_kw ip) {
16066 int * $ac_kw t = s;
16073 if ac_fn_c_try_compile
"$LINENO"; then :
16074 ac_cv_c_restrict
=$ac_kw
16076 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16077 test "$ac_cv_c_restrict" != no
&& break
16081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
16082 $as_echo "$ac_cv_c_restrict" >&6; }
16084 case $ac_cv_c_restrict in
16086 no
) $as_echo "#define restrict /**/" >>confdefs.h
16088 *) cat >>confdefs.h
<<_ACEOF
16089 #define restrict $ac_cv_c_restrict
16098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
16099 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
16100 if test "${gl_cv_sys_struct_timespec_in_time_h+set}" = set; then :
16101 $as_echo_n "(cached) " >&6
16103 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16104 /* end confdefs.h. */
16110 static struct timespec x; x.tv_sec = x.tv_nsec;
16115 if ac_fn_c_try_compile
"$LINENO"; then :
16116 gl_cv_sys_struct_timespec_in_time_h
=yes
16118 gl_cv_sys_struct_timespec_in_time_h
=no
16120 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
16123 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
16125 TIME_H_DEFINES_STRUCT_TIMESPEC
=0
16126 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
=0
16127 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
=0
16128 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
16129 TIME_H_DEFINES_STRUCT_TIMESPEC
=1
16131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
16132 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
16133 if test "${gl_cv_sys_struct_timespec_in_sys_time_h+set}" = set; then :
16134 $as_echo_n "(cached) " >&6
16136 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16137 /* end confdefs.h. */
16138 #include <sys/time.h>
16143 static struct timespec x; x.tv_sec = x.tv_nsec;
16148 if ac_fn_c_try_compile
"$LINENO"; then :
16149 gl_cv_sys_struct_timespec_in_sys_time_h
=yes
16151 gl_cv_sys_struct_timespec_in_sys_time_h
=no
16153 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
16156 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
16157 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
16158 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
=1
16160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
16161 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
16162 if test "${gl_cv_sys_struct_timespec_in_pthread_h+set}" = set; then :
16163 $as_echo_n "(cached) " >&6
16165 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16166 /* end confdefs.h. */
16167 #include <pthread.h>
16172 static struct timespec x; x.tv_sec = x.tv_nsec;
16177 if ac_fn_c_try_compile
"$LINENO"; then :
16178 gl_cv_sys_struct_timespec_in_pthread_h
=yes
16180 gl_cv_sys_struct_timespec_in_pthread_h
=no
16182 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
16185 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
16186 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
16187 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
=1
16206 if test $gl_cv_have_include_next = yes; then
16207 gl_cv_next_time_h
='<'time.h
'>'
16209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
16210 $as_echo_n "checking absolute name of <time.h>... " >&6; }
16211 if test "${gl_cv_next_time_h+set}" = set; then :
16212 $as_echo_n "(cached) " >&6
16215 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16216 /* end confdefs.h. */
16221 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
16222 *) gl_absname_cpp
="$ac_cpp" ;;
16224 gl_cv_next_time_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16225 sed -n '\#/time.h#{
16226 s#.*"\(.*/time.h\)".*#\1#
16234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
16235 $as_echo "$gl_cv_next_time_h" >&6; }
16237 NEXT_TIME_H
=$gl_cv_next_time_h
16239 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
16240 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16241 gl_next_as_first_directive
='<'time.h
'>'
16243 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16244 gl_next_as_first_directive
=$gl_cv_next_time_h
16246 NEXT_AS_FIRST_DIRECTIVE_TIME_H
=$gl_next_as_first_directive
16253 ac_fn_c_check_decl
"$LINENO" "localtime_r" "ac_cv_have_decl_localtime_r" "$ac_includes_default"
16254 if test "x$ac_cv_have_decl_localtime_r" = x
""yes; then :
16260 cat >>confdefs.h
<<_ACEOF
16261 #define HAVE_DECL_LOCALTIME_R $ac_have_decl
16268 GL_COND_LIBTOOL_TRUE
=
16269 GL_COND_LIBTOOL_FALSE
='#'
16271 GL_COND_LIBTOOL_TRUE
='#'
16272 GL_COND_LIBTOOL_FALSE
=
16275 gl_cond_libtool
=false
16288 gl_source_base
='lib'
16289 # Code from module allocator:
16290 # Code from module arg-nonnull:
16291 # Code from module c++defs:
16292 # Code from module careadlinkat:
16294 # Code from module crypto/md5:
16304 gl_LIBOBJS
="$gl_LIBOBJS md5.$ac_objext"
16311 # Code from module dosname:
16312 # Code from module dtoastr:
16314 # Code from module extensions:
16315 # Code from module filemode:
16326 gl_LIBOBJS
="$gl_LIBOBJS filemode.$ac_objext"
16330 # Code from module getloadavg:
16333 # Persuade glibc <stdlib.h> to declare getloadavg().
16336 # Make sure getloadavg.c is where it belongs, at configure-time.
16337 test -f "$srcdir/$gl_source_base/getloadavg.c" ||
16338 as_fn_error
"$srcdir/$gl_source_base/getloadavg.c is missing" "$LINENO" 5
16342 # getloadvg is present in libc on glibc >= 2.2, MacOS X, FreeBSD >= 2.0,
16343 # NetBSD >= 0.9, OpenBSD >= 2.0, Solaris >= 7.
16344 ac_fn_c_check_func
"$LINENO" "getloadavg" "ac_cv_func_getloadavg"
16345 if test "x$ac_cv_func_getloadavg" = x
""yes; then :
16350 # Some systems with -lutil have (and need) -lkvm as well, some do not.
16351 # On Solaris, -lkvm requires nlist from -lelf, so check that first
16352 # to get the right answer into the cache.
16353 # For kstat on solaris, we need to test for libelf and libkvm to force the
16354 # definition of SVR4 below.
16355 if test $gl_have_func = no
; then
16356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
16357 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
16358 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then :
16359 $as_echo_n "(cached) " >&6
16361 ac_check_lib_save_LIBS
=$LIBS
16363 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16364 /* end confdefs.h. */
16366 /* Override any GCC internal prototype to avoid an error.
16367 Use char because int might match the return type of a GCC
16368 builtin and then its argument prototype would still apply. */
16376 return elf_begin ();
16381 if ac_fn_c_try_link
"$LINENO"; then :
16382 ac_cv_lib_elf_elf_begin
=yes
16384 ac_cv_lib_elf_elf_begin
=no
16386 rm -f core conftest.err conftest.
$ac_objext \
16387 conftest
$ac_exeext conftest.
$ac_ext
16388 LIBS
=$ac_check_lib_save_LIBS
16390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
16391 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
16392 if test "x$ac_cv_lib_elf_elf_begin" = x
""yes; then :
16396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
16397 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
16398 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then :
16399 $as_echo_n "(cached) " >&6
16401 ac_check_lib_save_LIBS
=$LIBS
16403 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16404 /* end confdefs.h. */
16406 /* Override any GCC internal prototype to avoid an error.
16407 Use char because int might match the return type of a GCC
16408 builtin and then its argument prototype would still apply. */
16416 return kvm_open ();
16421 if ac_fn_c_try_link
"$LINENO"; then :
16422 ac_cv_lib_kvm_kvm_open
=yes
16424 ac_cv_lib_kvm_kvm_open
=no
16426 rm -f core conftest.err conftest.
$ac_objext \
16427 conftest
$ac_exeext conftest.
$ac_ext
16428 LIBS
=$ac_check_lib_save_LIBS
16430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
16431 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
16432 if test "x$ac_cv_lib_kvm_kvm_open" = x
""yes; then :
16436 # Check for the 4.4BSD definition of getloadavg.
16437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5
16438 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
16439 if test "${ac_cv_lib_util_getloadavg+set}" = set; then :
16440 $as_echo_n "(cached) " >&6
16442 ac_check_lib_save_LIBS
=$LIBS
16443 LIBS
="-lutil $LIBS"
16444 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16445 /* end confdefs.h. */
16447 /* Override any GCC internal prototype to avoid an error.
16448 Use char because int might match the return type of a GCC
16449 builtin and then its argument prototype would still apply. */
16453 char getloadavg ();
16457 return getloadavg ();
16462 if ac_fn_c_try_link
"$LINENO"; then :
16463 ac_cv_lib_util_getloadavg
=yes
16465 ac_cv_lib_util_getloadavg
=no
16467 rm -f core conftest.err conftest.
$ac_objext \
16468 conftest
$ac_exeext conftest.
$ac_ext
16469 LIBS
=$ac_check_lib_save_LIBS
16471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5
16472 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
16473 if test "x$ac_cv_lib_util_getloadavg" = x
""yes; then :
16474 LIBS
="-lutil $LIBS" gl_have_func
=yes
16479 if test $gl_have_func = no
; then
16480 # There is a commonly available library for RS/6000 AIX.
16481 # Since it is not a standard part of AIX, it might be installed locally.
16482 gl_getloadavg_LIBS
=$LIBS
16483 LIBS
="-L/usr/local/lib $LIBS"
16484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5
16485 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
16486 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then :
16487 $as_echo_n "(cached) " >&6
16489 ac_check_lib_save_LIBS
=$LIBS
16490 LIBS
="-lgetloadavg $LIBS"
16491 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16492 /* end confdefs.h. */
16494 /* Override any GCC internal prototype to avoid an error.
16495 Use char because int might match the return type of a GCC
16496 builtin and then its argument prototype would still apply. */
16500 char getloadavg ();
16504 return getloadavg ();
16509 if ac_fn_c_try_link
"$LINENO"; then :
16510 ac_cv_lib_getloadavg_getloadavg
=yes
16512 ac_cv_lib_getloadavg_getloadavg
=no
16514 rm -f core conftest.err conftest.
$ac_objext \
16515 conftest
$ac_exeext conftest.
$ac_ext
16516 LIBS
=$ac_check_lib_save_LIBS
16518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5
16519 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
16520 if test "x$ac_cv_lib_getloadavg_getloadavg" = x
""yes; then :
16521 LIBS
="-lgetloadavg $LIBS" gl_have_func
=yes
16523 LIBS
=$gl_getloadavg_LIBS
16528 # Set up the replacement function if necessary.
16529 if test $gl_have_func = no
; then
16538 gl_LIBOBJS
="$gl_LIBOBJS getloadavg.$ac_objext"
16541 # Figure out what our getloadavg.c needs.
16543 # Solaris has libkstat which does not require root.
16544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
16545 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
16546 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then :
16547 $as_echo_n "(cached) " >&6
16549 ac_check_lib_save_LIBS
=$LIBS
16550 LIBS
="-lkstat $LIBS"
16551 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16552 /* end confdefs.h. */
16554 /* Override any GCC internal prototype to avoid an error.
16555 Use char because int might match the return type of a GCC
16556 builtin and then its argument prototype would still apply. */
16560 char kstat_open ();
16564 return kstat_open ();
16569 if ac_fn_c_try_link
"$LINENO"; then :
16570 ac_cv_lib_kstat_kstat_open
=yes
16572 ac_cv_lib_kstat_kstat_open
=no
16574 rm -f core conftest.err conftest.
$ac_objext \
16575 conftest
$ac_exeext conftest.
$ac_ext
16576 LIBS
=$ac_check_lib_save_LIBS
16578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
16579 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
16580 if test "x$ac_cv_lib_kstat_kstat_open" = x
""yes; then :
16581 cat >>confdefs.h
<<_ACEOF
16582 #define HAVE_LIBKSTAT 1
16585 LIBS
="-lkstat $LIBS"
16589 test $ac_cv_lib_kstat_kstat_open = yes && gl_have_func
=yes
16591 # On HPUX9, an unprivileged user can get load averages this way.
16592 if test $gl_have_func = no
; then
16593 for ac_func
in pstat_getdynamic
16595 ac_fn_c_check_func
"$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic"
16596 if test "x$ac_cv_func_pstat_getdynamic" = x
""yes; then :
16597 cat >>confdefs.h
<<_ACEOF
16598 #define HAVE_PSTAT_GETDYNAMIC 1
16606 # AIX has libperfstat which does not require root
16607 if test $gl_have_func = no
; then
16608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perfstat_cpu_total in -lperfstat" >&5
16609 $as_echo_n "checking for perfstat_cpu_total in -lperfstat... " >&6; }
16610 if test "${ac_cv_lib_perfstat_perfstat_cpu_total+set}" = set; then :
16611 $as_echo_n "(cached) " >&6
16613 ac_check_lib_save_LIBS
=$LIBS
16614 LIBS
="-lperfstat $LIBS"
16615 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16616 /* end confdefs.h. */
16618 /* Override any GCC internal prototype to avoid an error.
16619 Use char because int might match the return type of a GCC
16620 builtin and then its argument prototype would still apply. */
16624 char perfstat_cpu_total ();
16628 return perfstat_cpu_total ();
16633 if ac_fn_c_try_link
"$LINENO"; then :
16634 ac_cv_lib_perfstat_perfstat_cpu_total
=yes
16636 ac_cv_lib_perfstat_perfstat_cpu_total
=no
16638 rm -f core conftest.err conftest.
$ac_objext \
16639 conftest
$ac_exeext conftest.
$ac_ext
16640 LIBS
=$ac_check_lib_save_LIBS
16642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_perfstat_perfstat_cpu_total" >&5
16643 $as_echo "$ac_cv_lib_perfstat_perfstat_cpu_total" >&6; }
16644 if test "x$ac_cv_lib_perfstat_perfstat_cpu_total" = x
""yes; then :
16645 cat >>confdefs.h
<<_ACEOF
16646 #define HAVE_LIBPERFSTAT 1
16649 LIBS
="-lperfstat $LIBS"
16653 test $ac_cv_lib_perfstat_perfstat_cpu_total = yes && gl_have_func
=yes
16656 if test $gl_have_func = no
; then
16657 ac_fn_c_check_header_mongrel
"$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
16658 if test "x$ac_cv_header_sys_dg_sys_info_h" = x
""yes; then :
16661 $as_echo "#define DGUX 1" >>confdefs.h
16663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5
16664 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
16665 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then :
16666 $as_echo_n "(cached) " >&6
16668 ac_check_lib_save_LIBS
=$LIBS
16670 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16671 /* end confdefs.h. */
16673 /* Override any GCC internal prototype to avoid an error.
16674 Use char because int might match the return type of a GCC
16675 builtin and then its argument prototype would still apply. */
16679 char dg_sys_info ();
16683 return dg_sys_info ();
16688 if ac_fn_c_try_link
"$LINENO"; then :
16689 ac_cv_lib_dgc_dg_sys_info
=yes
16691 ac_cv_lib_dgc_dg_sys_info
=no
16693 rm -f core conftest.err conftest.
$ac_objext \
16694 conftest
$ac_exeext conftest.
$ac_ext
16695 LIBS
=$ac_check_lib_save_LIBS
16697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5
16698 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
16699 if test "x$ac_cv_lib_dgc_dg_sys_info" = x
""yes; then :
16700 cat >>confdefs.h
<<_ACEOF
16701 #define HAVE_LIBDGC 1
16713 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
16714 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
16715 # Irix 4.0.5F has the header but not the library.
16716 if test $gl_have_func = no
&& test "$ac_cv_lib_elf_elf_begin" = yes \
16717 && test "$ac_cv_lib_kvm_kvm_open" = yes; then
16720 $as_echo "#define SVR4 1" >>confdefs.h
16724 if test $gl_have_func = no
; then
16725 ac_fn_c_check_header_mongrel
"$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default"
16726 if test "x$ac_cv_header_inq_stats_cpustats_h" = x
""yes; then :
16729 $as_echo "#define UMAX 1" >>confdefs.h
16732 $as_echo "#define UMAX4_3 1" >>confdefs.h
16739 if test $gl_have_func = no
; then
16740 ac_fn_c_check_header_mongrel
"$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default"
16741 if test "x$ac_cv_header_sys_cpustats_h" = x
""yes; then :
16742 gl_have_func
=yes; $as_echo "#define UMAX 1" >>confdefs.h
16749 if test $gl_have_func = no
; then
16750 for ac_header
in mach
/mach.h
16752 ac_fn_c_check_header_mongrel
"$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
16753 if test "x$ac_cv_header_mach_mach_h" = x
""yes; then :
16754 cat >>confdefs.h
<<_ACEOF
16755 #define HAVE_MACH_MACH_H 1
16764 for ac_header
in nlist.h
16766 ac_fn_c_check_header_mongrel
"$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
16767 if test "x$ac_cv_header_nlist_h" = x
""yes; then :
16768 cat >>confdefs.h
<<_ACEOF
16769 #define HAVE_NLIST_H 1
16771 ac_fn_c_check_member
"$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h>
16773 if test "x$ac_cv_member_struct_nlist_n_un_n_name" = x
""yes; then :
16775 cat >>confdefs.h
<<_ACEOF
16776 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
16782 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16783 /* end confdefs.h. */
16789 #ifdef HAVE_STRUCT_NLIST_N_UN_N_NAME
16790 x.n_un.n_name = "";
16798 if ac_fn_c_try_link
"$LINENO"; then :
16800 $as_echo "#define N_NAME_POINTER 1" >>confdefs.h
16803 rm -f core conftest.err conftest.
$ac_objext \
16804 conftest
$ac_exeext conftest.
$ac_ext
16814 if test "x$gl_save_LIBS" = x
; then
16815 GETLOADAVG_LIBS
=$LIBS
16817 GETLOADAVG_LIBS
=`echo "$LIBS" | sed "s!$gl_save_LIBS!!"`
16822 # Test whether the system declares getloadavg. Solaris has the function
16823 # but declares it in <sys/loadavg.h>, not <stdlib.h>.
16824 for ac_header
in sys
/loadavg.h
16826 ac_fn_c_check_header_mongrel
"$LINENO" "sys/loadavg.h" "ac_cv_header_sys_loadavg_h" "$ac_includes_default"
16827 if test "x$ac_cv_header_sys_loadavg_h" = x
""yes; then :
16828 cat >>confdefs.h
<<_ACEOF
16829 #define HAVE_SYS_LOADAVG_H 1
16836 if test $ac_cv_header_sys_loadavg_h = yes; then
16837 HAVE_SYS_LOADAVG_H
=1
16839 HAVE_SYS_LOADAVG_H
=0
16841 ac_fn_c_check_decl
"$LINENO" "getloadavg" "ac_cv_have_decl_getloadavg" "#if HAVE_SYS_LOADAVG_H
16842 # include <sys/loadavg.h>
16844 #include <stdlib.h>
16846 if test "x$ac_cv_have_decl_getloadavg" = x
""yes; then :
16849 HAVE_DECL_GETLOADAVG
=0
16856 GNULIB_GETLOADAVG
=1
16860 # Code from module getopt-gnu:
16867 # Code from module getopt-posix:
16873 if test -n "$gl_replace_getopt"; then :
16879 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
16883 GNULIB_UNISTD_H_GETOPT
=1
16892 gl_LIBOBJS
="$gl_LIBOBJS getopt.$ac_objext"
16902 gl_LIBOBJS
="$gl_LIBOBJS getopt1.$ac_objext"
16912 # Code from module gettext-h:
16915 # Code from module ignore-value:
16917 # Code from module include_next:
16918 # Code from module intprops:
16919 # Code from module inttypes-incomplete:
16934 if test $gl_cv_have_include_next = yes; then
16935 gl_cv_next_inttypes_h
='<'inttypes.h
'>'
16937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5
16938 $as_echo_n "checking absolute name of <inttypes.h>... " >&6; }
16939 if test "${gl_cv_next_inttypes_h+set}" = set; then :
16940 $as_echo_n "(cached) " >&6
16943 if test $ac_cv_header_inttypes_h = yes; then
16946 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16947 /* end confdefs.h. */
16948 #include <inttypes.h>
16952 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
16953 *) gl_absname_cpp
="$ac_cpp" ;;
16955 gl_cv_next_inttypes_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16956 sed -n '\#/inttypes.h#{
16957 s#.*"\(.*/inttypes.h\)".*#\1#
16963 gl_cv_next_inttypes_h
='<'inttypes.h
'>'
16968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5
16969 $as_echo "$gl_cv_next_inttypes_h" >&6; }
16971 NEXT_INTTYPES_H
=$gl_cv_next_inttypes_h
16973 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
16974 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16975 gl_next_as_first_directive
='<'inttypes.h
'>'
16977 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16978 gl_next_as_first_directive
=$gl_cv_next_inttypes_h
16980 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
=$gl_next_as_first_directive
16989 $as_echo "#define GL_TRIGGER_STDC_LIMIT_MACROS 1" >>confdefs.h
16995 # Code from module lstat:
16999 if test $ac_cv_func_lstat = yes; then
17001 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no
; then
17004 # Prerequisites of lib/lstat.c.
17017 # Code from module mktime:
17023 if test $APPLE_UNIVERSAL_BUILD = 1; then
17024 # A universal build on Apple MacOS X platforms.
17025 # The test result would be 'yes' in 32-bit mode and 'no' in 64-bit mode.
17026 # But we need a configuration result that is valid in both modes.
17027 ac_cv_func_working_mktime
=no
17029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
17030 $as_echo_n "checking for working mktime... " >&6; }
17031 if test "${ac_cv_func_working_mktime+set}" = set; then :
17032 $as_echo_n "(cached) " >&6
17034 if test "$cross_compiling" = yes; then :
17035 ac_cv_func_working_mktime
=no
17037 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17038 /* end confdefs.h. */
17039 /* Test program from Paul Eggert and Tony Leneis. */
17040 #include <limits.h>
17041 #include <stdlib.h>
17044 #ifdef HAVE_UNISTD_H
17045 # include <unistd.h>
17049 # define alarm(X) /* empty */
17052 /* Work around redefinition to rpl_putenv by other config tests. */
17055 static time_t time_t_max;
17056 static time_t time_t_min;
17058 /* Values we'll use to set the TZ environment variable. */
17059 static char *tz_strings[] = {
17060 (char *) 0, "TZ=GMT0", "TZ=JST-9",
17061 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
17063 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
17065 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
17066 Based on a problem report from Andreas Jaeger. */
17068 spring_forward_gap ()
17070 /* glibc (up to about 1998-10-07) failed this test. */
17073 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
17074 instead of "TZ=America/Vancouver" in order to detect the bug even
17075 on systems that don't support the Olson extension, or don't have the
17076 full zoneinfo tables installed. */
17077 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
17086 return mktime (&tm) != (time_t) -1;
17090 mktime_test1 (time_t now)
17093 return ! (lt = localtime (&now)) || mktime (lt) == now;
17097 mktime_test (time_t now)
17099 return (mktime_test1 (now)
17100 && mktime_test1 ((time_t) (time_t_max - now))
17101 && mktime_test1 ((time_t) (time_t_min + now)));
17107 /* Based on code from Ariel Faigon. */
17117 return tm.tm_mon == 2 && tm.tm_mday == 31;
17121 bigtime_test (int j)
17125 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
17126 now = mktime (&tm);
17127 if (now != (time_t) -1)
17129 struct tm *lt = localtime (&now);
17131 && lt->tm_year == tm.tm_year
17132 && lt->tm_mon == tm.tm_mon
17133 && lt->tm_mday == tm.tm_mday
17134 && lt->tm_hour == tm.tm_hour
17135 && lt->tm_min == tm.tm_min
17136 && lt->tm_sec == tm.tm_sec
17137 && lt->tm_yday == tm.tm_yday
17138 && lt->tm_wday == tm.tm_wday
17139 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
17140 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
17149 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
17150 ignoring leap seconds. */
17151 unsigned long int answer = 2527315200UL;
17155 tm.tm_year = 2050 - 1900;
17158 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
17161 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
17162 instead of "TZ=America/Vancouver" in order to detect the bug even
17163 on systems that don't support the Olson extension, or don't have the
17164 full zoneinfo tables installed. */
17165 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
17169 /* Check that the result is either a failure, or close enough
17170 to the correct answer that we can assume the discrepancy is
17171 due to leap seconds. */
17172 return (t == (time_t) -1
17173 || (0 < t && answer - 120 <= t && t <= answer + 120));
17182 int time_t_signed_magnitude = (time_t) ~ (time_t) 0 < (time_t) -1;
17183 int time_t_signed = ! ((time_t) 0 < (time_t) -1);
17185 /* This test makes some buggy mktime implementations loop.
17186 Give up after 60 seconds; a mktime slower than that
17187 isn't worth using anyway. */
17190 time_t_max = (! time_t_signed
17192 : ((((time_t) 1 << (sizeof (time_t) * CHAR_BIT - 2)) - 1)
17194 time_t_min = (! time_t_signed
17196 : time_t_signed_magnitude
17200 delta = time_t_max / 997; /* a suitable prime number */
17201 for (i = 0; i < N_STRINGS; i++)
17204 putenv (tz_strings[i]);
17206 for (t = 0; t <= time_t_max - delta; t += delta)
17207 if (! mktime_test (t))
17209 if (! (mktime_test ((time_t) 1)
17210 && mktime_test ((time_t) (60 * 60))
17211 && mktime_test ((time_t) (60 * 60 * 24))))
17214 for (j = 1; ; j <<= 1)
17215 if (! bigtime_test (j))
17217 else if (INT_MAX / 2 < j)
17219 if (! bigtime_test (INT_MAX))
17222 if (! irix_6_4_bug ())
17224 if (! spring_forward_gap ())
17226 if (! year_2050_test ())
17231 if ac_fn_c_try_run
"$LINENO"; then :
17232 ac_cv_func_working_mktime
=yes
17234 ac_cv_func_working_mktime
=no
17236 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17237 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_working_mktime" >&5
17242 $as_echo "$ac_cv_func_working_mktime" >&6; }
17243 if test $ac_cv_func_working_mktime = no
; then
17252 gl_LIBOBJS
="$gl_LIBOBJS mktime.$ac_objext"
17256 if test $ac_cv_func_working_mktime = no
; then
17272 # Code from module multiarch:
17274 # Code from module readlink:
17278 if test $ac_cv_func_readlink = no
; then
17288 gl_LIBOBJS
="$gl_LIBOBJS readlink.$ac_objext"
17294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink signature is correct" >&5
17295 $as_echo_n "checking whether readlink signature is correct... " >&6; }
17296 if test "${gl_cv_decl_readlink_works+set}" = set; then :
17297 $as_echo_n "(cached) " >&6
17299 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17300 /* end confdefs.h. */
17301 #include <unistd.h>
17302 /* Cause compilation failure if original declaration has wrong type. */
17303 ssize_t readlink (const char *, char *, size_t);
17312 if ac_fn_c_try_compile
"$LINENO"; then :
17313 gl_cv_decl_readlink_works
=yes
17315 gl_cv_decl_readlink_works
=no
17317 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_readlink_works" >&5
17320 $as_echo "$gl_cv_decl_readlink_works" >&6; }
17321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink handles trailing slash correctly" >&5
17322 $as_echo_n "checking whether readlink handles trailing slash correctly... " >&6; }
17323 if test "${gl_cv_func_readlink_works+set}" = set; then :
17324 $as_echo_n "(cached) " >&6
17326 # We have readlink, so assume ln -s works.
17327 ln -s conftest.no-such conftest.link
17328 ln -s conftest.link conftest.lnk2
17329 if test "$cross_compiling" = yes; then :
17330 gl_cv_func_readlink_works
="guessing no"
17332 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17333 /* end confdefs.h. */
17334 #include <unistd.h>
17340 return readlink ("conftest.lnk2/", buf, sizeof buf) != -1;
17345 if ac_fn_c_try_run
"$LINENO"; then :
17346 gl_cv_func_readlink_works
=yes
17348 gl_cv_func_readlink_works
=no
17350 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17351 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17354 rm -f conftest.link conftest.lnk2
17356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_readlink_works" >&5
17357 $as_echo "$gl_cv_func_readlink_works" >&6; }
17358 if test "$gl_cv_func_readlink_works" != yes; then
17360 $as_echo "#define READLINK_TRAILING_SLASH_BUG 1" >>confdefs.h
17371 gl_LIBOBJS
="$gl_LIBOBJS readlink.$ac_objext"
17373 elif test "$gl_cv_decl_readlink_works" != yes; then
17383 gl_LIBOBJS
="$gl_LIBOBJS readlink.$ac_objext"
17395 # Code from module socklen:
17396 ac_fn_c_check_type
"$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
17397 /* <sys/types.h> is not needed according to POSIX, but the
17398 <sys/socket.h> in i386-unknown-freebsd4.10 and
17399 powerpc-apple-darwin5.5 required it. */
17400 #include <sys/types.h>
17401 #if HAVE_SYS_SOCKET_H
17402 # include <sys/socket.h>
17403 #elif HAVE_WS2TCPIP_H
17404 # include <ws2tcpip.h>
17408 if test "x$ac_cv_type_socklen_t" = x
""yes; then :
17411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
17412 $as_echo_n "checking for socklen_t equivalent... " >&6; }
17413 if test "${gl_cv_socklen_t_equiv+set}" = set; then :
17414 $as_echo_n "(cached) " >&6
17416 # Systems have either "struct sockaddr *" or
17417 # "void *" as the second argument to getpeername
17418 gl_cv_socklen_t_equiv
=
17419 for arg2
in "struct sockaddr" void
; do
17420 for t
in int size_t
"unsigned int" "long int" "unsigned long int"; do
17421 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17422 /* end confdefs.h. */
17423 #include <sys/types.h>
17424 #include <sys/socket.h>
17426 int getpeername (int, $arg2 *, $t *);
17431 getpeername (0, 0, &len);
17436 if ac_fn_c_try_compile
"$LINENO"; then :
17437 gl_cv_socklen_t_equiv
="$t"
17439 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17440 test "$gl_cv_socklen_t_equiv" != "" && break
17442 test "$gl_cv_socklen_t_equiv" != "" && break
17447 if test "$gl_cv_socklen_t_equiv" = ""; then
17448 as_fn_error
"Cannot find a type to use in place of socklen_t" "$LINENO" 5
17450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socklen_t_equiv" >&5
17451 $as_echo "$gl_cv_socklen_t_equiv" >&6; }
17453 cat >>confdefs.h
<<_ACEOF
17454 #define socklen_t $gl_cv_socklen_t_equiv
17459 # Code from module ssize_t:
17461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
17462 $as_echo_n "checking for ssize_t... " >&6; }
17463 if test "${gt_cv_ssize_t+set}" = set; then :
17464 $as_echo_n "(cached) " >&6
17466 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17467 /* end confdefs.h. */
17468 #include <sys/types.h>
17472 int x = sizeof (ssize_t *) + sizeof (ssize_t);
17478 if ac_fn_c_try_compile
"$LINENO"; then :
17483 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
17486 $as_echo "$gt_cv_ssize_t" >&6; }
17487 if test $gt_cv_ssize_t = no
; then
17489 $as_echo "#define ssize_t int" >>confdefs.h
17493 # Code from module stat:
17497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on directories" >&5
17498 $as_echo_n "checking whether stat handles trailing slashes on directories... " >&6; }
17499 if test "${gl_cv_func_stat_dir_slash+set}" = set; then :
17500 $as_echo_n "(cached) " >&6
17502 if test "$cross_compiling" = yes; then :
17504 mingw
*) gl_cv_func_stat_dir_slash
="guessing no";;
17505 *) gl_cv_func_stat_dir_slash
="guessing yes";;
17508 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17509 /* end confdefs.h. */
17510 #include <sys/stat.h>
17515 struct stat st; return stat (".", &st) != stat ("./", &st);
17520 if ac_fn_c_try_run
"$LINENO"; then :
17521 gl_cv_func_stat_dir_slash
=yes
17523 gl_cv_func_stat_dir_slash
=no
17525 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17526 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_dir_slash" >&5
17531 $as_echo "$gl_cv_func_stat_dir_slash" >&6; }
17532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
17533 $as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
17534 if test "${gl_cv_func_stat_file_slash+set}" = set; then :
17535 $as_echo_n "(cached) " >&6
17538 # Assume that if we have lstat, we can also check symlinks.
17539 if test $ac_cv_func_lstat = yes; then
17540 ln -s conftest.tmp conftest.lnk
17542 if test "$cross_compiling" = yes; then :
17543 gl_cv_func_stat_file_slash
="guessing no"
17545 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17546 /* end confdefs.h. */
17547 #include <sys/stat.h>
17554 if (!stat ("conftest.tmp/", &st))
17557 if (!stat ("conftest.lnk/", &st))
17566 if ac_fn_c_try_run
"$LINENO"; then :
17567 gl_cv_func_stat_file_slash
=yes
17569 gl_cv_func_stat_file_slash
=no
17571 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17572 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17575 rm -f conftest.tmp conftest.lnk
17577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
17578 $as_echo "$gl_cv_func_stat_file_slash" >&6; }
17579 case $gl_cv_func_stat_dir_slash in
17580 *no
) REPLACE_STAT
=1
17582 $as_echo "#define REPLACE_FUNC_STAT_DIR 1" >>confdefs.h
17585 case $gl_cv_func_stat_file_slash in
17586 *no
) REPLACE_STAT
=1
17588 $as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
17591 if test $REPLACE_STAT = 1; then
17600 gl_LIBOBJS
="$gl_LIBOBJS stat.$ac_objext"
17612 # Code from module stdbool:
17616 # Define two additional variables used in the Makefile substitution.
17618 if test "$ac_cv_header_stdbool_h" = yes; then
17621 STDBOOL_H
='stdbool.h'
17624 if test -n "$STDBOOL_H"; then
17625 GL_GENERATE_STDBOOL_H_TRUE
=
17626 GL_GENERATE_STDBOOL_H_FALSE
='#'
17628 GL_GENERATE_STDBOOL_H_TRUE
='#'
17629 GL_GENERATE_STDBOOL_H_FALSE
=
17633 if test "$ac_cv_type__Bool" = yes; then
17640 # Code from module stddef:
17645 if test $gt_cv_c_wchar_t = no
; then
17649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
17650 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
17651 if test "${gl_cv_decl_null_works+set}" = set; then :
17652 $as_echo_n "(cached) " >&6
17654 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17655 /* end confdefs.h. */
17656 #include <stddef.h>
17657 int test[2 * (sizeof NULL == sizeof (void *)) -1];
17667 if ac_fn_c_try_compile
"$LINENO"; then :
17668 gl_cv_decl_null_works
=yes
17670 gl_cv_decl_null_works
=no
17672 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
17675 $as_echo "$gl_cv_decl_null_works" >&6; }
17676 if test $gl_cv_decl_null_works = no
; then
17681 if test -n "$STDDEF_H"; then
17682 GL_GENERATE_STDDEF_H_TRUE
=
17683 GL_GENERATE_STDDEF_H_FALSE
='#'
17685 GL_GENERATE_STDDEF_H_TRUE
='#'
17686 GL_GENERATE_STDDEF_H_FALSE
=
17689 if test -n "$STDDEF_H"; then
17698 if test $gl_cv_have_include_next = yes; then
17699 gl_cv_next_stddef_h
='<'stddef.h
'>'
17701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
17702 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
17703 if test "${gl_cv_next_stddef_h+set}" = set; then :
17704 $as_echo_n "(cached) " >&6
17707 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17708 /* end confdefs.h. */
17709 #include <stddef.h>
17713 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
17714 *) gl_absname_cpp
="$ac_cpp" ;;
17716 gl_cv_next_stddef_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17717 sed -n '\#/stddef.h#{
17718 s#.*"\(.*/stddef.h\)".*#\1#
17726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
17727 $as_echo "$gl_cv_next_stddef_h" >&6; }
17729 NEXT_STDDEF_H
=$gl_cv_next_stddef_h
17731 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
17732 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17733 gl_next_as_first_directive
='<'stddef.h
'>'
17735 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17736 gl_next_as_first_directive
=$gl_cv_next_stddef_h
17738 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
=$gl_next_as_first_directive
17745 # Code from module stdint:
17749 if test $ac_cv_type_long_long_int = yes; then
17750 HAVE_LONG_LONG_INT
=1
17752 HAVE_LONG_LONG_INT
=0
17756 if test $ac_cv_type_unsigned_long_long_int = yes; then
17757 HAVE_UNSIGNED_LONG_LONG_INT
=1
17759 HAVE_UNSIGNED_LONG_LONG_INT
=0
17764 if test $ac_cv_header_wchar_h = yes; then
17771 if test $ac_cv_header_inttypes_h = yes; then
17778 if test $ac_cv_header_sys_types_h = yes; then
17794 if test $gl_cv_have_include_next = yes; then
17795 gl_cv_next_stdint_h
='<'stdint.h
'>'
17797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
17798 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
17799 if test "${gl_cv_next_stdint_h+set}" = set; then :
17800 $as_echo_n "(cached) " >&6
17803 if test $ac_cv_header_stdint_h = yes; then
17806 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17807 /* end confdefs.h. */
17808 #include <stdint.h>
17812 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
17813 *) gl_absname_cpp
="$ac_cpp" ;;
17815 gl_cv_next_stdint_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17816 sed -n '\#/stdint.h#{
17817 s#.*"\(.*/stdint.h\)".*#\1#
17823 gl_cv_next_stdint_h
='<'stdint.h
'>'
17828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
17829 $as_echo "$gl_cv_next_stdint_h" >&6; }
17831 NEXT_STDINT_H
=$gl_cv_next_stdint_h
17833 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
17834 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17835 gl_next_as_first_directive
='<'stdint.h
'>'
17837 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17838 gl_next_as_first_directive
=$gl_cv_next_stdint_h
17840 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
=$gl_next_as_first_directive
17845 if test $ac_cv_header_stdint_h = yes; then
17852 if test $ac_cv_header_stdint_h = yes; then
17853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
17854 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
17855 if test "${gl_cv_header_working_stdint_h+set}" = set; then :
17856 $as_echo_n "(cached) " >&6
17858 gl_cv_header_working_stdint_h
=no
17859 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17860 /* end confdefs.h. */
17863 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
17864 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
17865 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
17866 #include <stdint.h>
17867 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
17868 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
17869 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
17873 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17874 included before <wchar.h>. */
17875 #include <stddef.h>
17876 #include <signal.h>
17878 # include <stdio.h>
17880 # include <wchar.h>
17885 int8_t a1 = INT8_MAX;
17886 int8_t a1min = INT8_MIN;
17889 int16_t a2 = INT16_MAX;
17890 int16_t a2min = INT16_MIN;
17893 int32_t a3 = INT32_MAX;
17894 int32_t a3min = INT32_MIN;
17897 int64_t a4 = INT64_MAX;
17898 int64_t a4min = INT64_MIN;
17901 uint8_t b1 = UINT8_MAX;
17903 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
17906 uint16_t b2 = UINT16_MAX;
17909 uint32_t b3 = UINT32_MAX;
17912 uint64_t b4 = UINT64_MAX;
17914 int_least8_t c1 = INT8_C (0x7f);
17915 int_least8_t c1max = INT_LEAST8_MAX;
17916 int_least8_t c1min = INT_LEAST8_MIN;
17917 int_least16_t c2 = INT16_C (0x7fff);
17918 int_least16_t c2max = INT_LEAST16_MAX;
17919 int_least16_t c2min = INT_LEAST16_MIN;
17920 int_least32_t c3 = INT32_C (0x7fffffff);
17921 int_least32_t c3max = INT_LEAST32_MAX;
17922 int_least32_t c3min = INT_LEAST32_MIN;
17923 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
17924 int_least64_t c4max = INT_LEAST64_MAX;
17925 int_least64_t c4min = INT_LEAST64_MIN;
17926 uint_least8_t d1 = UINT8_C (0xff);
17927 uint_least8_t d1max = UINT_LEAST8_MAX;
17928 uint_least16_t d2 = UINT16_C (0xffff);
17929 uint_least16_t d2max = UINT_LEAST16_MAX;
17930 uint_least32_t d3 = UINT32_C (0xffffffff);
17931 uint_least32_t d3max = UINT_LEAST32_MAX;
17932 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
17933 uint_least64_t d4max = UINT_LEAST64_MAX;
17934 int_fast8_t e1 = INT_FAST8_MAX;
17935 int_fast8_t e1min = INT_FAST8_MIN;
17936 int_fast16_t e2 = INT_FAST16_MAX;
17937 int_fast16_t e2min = INT_FAST16_MIN;
17938 int_fast32_t e3 = INT_FAST32_MAX;
17939 int_fast32_t e3min = INT_FAST32_MIN;
17940 int_fast64_t e4 = INT_FAST64_MAX;
17941 int_fast64_t e4min = INT_FAST64_MIN;
17942 uint_fast8_t f1 = UINT_FAST8_MAX;
17943 uint_fast16_t f2 = UINT_FAST16_MAX;
17944 uint_fast32_t f3 = UINT_FAST32_MAX;
17945 uint_fast64_t f4 = UINT_FAST64_MAX;
17947 intptr_t g = INTPTR_MAX;
17948 intptr_t gmin = INTPTR_MIN;
17951 uintptr_t h = UINTPTR_MAX;
17953 intmax_t i = INTMAX_MAX;
17954 uintmax_t j = UINTMAX_MAX;
17956 #include <limits.h> /* for CHAR_BIT */
17957 #define TYPE_MINIMUM(t) \
17958 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
17959 #define TYPE_MAXIMUM(t) \
17960 ((t) ((t) 0 < (t) -1 \
17962 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
17965 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
17966 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
17968 /* Detect bug in FreeBSD 6.0 / ia64. */
17969 int check_SIG_ATOMIC:
17970 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
17971 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
17973 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
17975 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
17976 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
17978 /* Detect bug in mingw. */
17980 WINT_MIN == TYPE_MINIMUM (wint_t)
17981 && WINT_MAX == TYPE_MAXIMUM (wint_t)
17984 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
17986 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
17987 int check_UINT16_C:
17988 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
17990 /* Detect bugs in OpenBSD 3.9 stdint.h. */
17992 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
17995 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
17998 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
18001 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
18003 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
18004 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
18005 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
18006 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
18007 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
18008 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
18009 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
18010 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
18011 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
18012 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
18013 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
18024 if ac_fn_c_try_compile
"$LINENO"; then :
18025 if test "$cross_compiling" = yes; then :
18026 gl_cv_header_working_stdint_h
=yes
18029 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18030 /* end confdefs.h. */
18033 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
18034 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
18035 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
18036 #include <stdint.h>
18039 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18040 included before <wchar.h>. */
18041 #include <stddef.h>
18042 #include <signal.h>
18044 # include <stdio.h>
18046 # include <wchar.h>
18051 #include <string.h>
18052 #define MVAL(macro) MVAL1(macro)
18053 #define MVAL1(expression) #expression
18054 static const char *macro_values[] =
18088 for (mv = macro_values; *mv != NULL; mv++)
18090 const char *value = *mv;
18091 /* Test whether it looks like a cast expression. */
18092 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
18093 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
18094 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
18095 || strncmp (value, "((int)"/*)*/, 6) == 0
18096 || strncmp (value, "((signed short)"/*)*/, 15) == 0
18097 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
18098 return mv - macro_values + 1;
18106 if ac_fn_c_try_run
"$LINENO"; then :
18107 gl_cv_header_working_stdint_h
=yes
18109 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
18110 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18115 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
18119 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
18121 if test "$gl_cv_header_working_stdint_h" = yes; then
18124 for ac_header
in sys
/inttypes.h sys
/bitypes.h
18126 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18127 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18128 eval as_val
=\$
$as_ac_Header
18129 if test "x$as_val" = x
""yes; then :
18130 cat >>confdefs.h
<<_ACEOF
18131 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18138 if test $ac_cv_header_sys_inttypes_h = yes; then
18139 HAVE_SYS_INTTYPES_H
=1
18141 HAVE_SYS_INTTYPES_H
=0
18144 if test $ac_cv_header_sys_bitypes_h = yes; then
18145 HAVE_SYS_BITYPES_H
=1
18147 HAVE_SYS_BITYPES_H
=0
18153 if test $APPLE_UNIVERSAL_BUILD = 0; then
18156 for gltype
in ptrdiff_t size_t
; do
18157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
18158 $as_echo_n "checking for bit size of $gltype... " >&6; }
18159 if { as_var
=gl_cv_bitsizeof_
${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
18160 $as_echo_n "(cached) " >&6
18162 if ac_fn_c_compute_int
"$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
18163 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18164 included before <wchar.h>. */
18165 #include <stddef.h>
18166 #include <signal.h>
18168 # include <stdio.h>
18170 # include <wchar.h>
18173 #include <limits.h>"; then :
18179 eval gl_cv_bitsizeof_
${gltype}=\
$result
18182 eval ac_res
=\
$gl_cv_bitsizeof_${gltype}
18183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18184 $as_echo "$ac_res" >&6; }
18185 eval result
=\
$gl_cv_bitsizeof_${gltype}
18186 if test $result = unknown
; then
18189 GLTYPE
=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18190 cat >>confdefs.h
<<_ACEOF
18191 #define BITSIZEOF_${GLTYPE} $result
18194 eval BITSIZEOF_
${GLTYPE}=\
$result
18201 for gltype
in sig_atomic_t wchar_t wint_t
; do
18202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
18203 $as_echo_n "checking for bit size of $gltype... " >&6; }
18204 if { as_var
=gl_cv_bitsizeof_
${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
18205 $as_echo_n "(cached) " >&6
18207 if ac_fn_c_compute_int
"$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
18208 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18209 included before <wchar.h>. */
18210 #include <stddef.h>
18211 #include <signal.h>
18213 # include <stdio.h>
18215 # include <wchar.h>
18218 #include <limits.h>"; then :
18224 eval gl_cv_bitsizeof_
${gltype}=\
$result
18227 eval ac_res
=\
$gl_cv_bitsizeof_${gltype}
18228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18229 $as_echo "$ac_res" >&6; }
18230 eval result
=\
$gl_cv_bitsizeof_${gltype}
18231 if test $result = unknown
; then
18234 GLTYPE
=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18235 cat >>confdefs.h
<<_ACEOF
18236 #define BITSIZEOF_${GLTYPE} $result
18239 eval BITSIZEOF_
${GLTYPE}=\
$result
18245 for gltype
in sig_atomic_t wchar_t wint_t
; do
18246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
18247 $as_echo_n "checking whether $gltype is signed... " >&6; }
18248 if { as_var
=gl_cv_type_
${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then :
18249 $as_echo_n "(cached) " >&6
18251 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18252 /* end confdefs.h. */
18254 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18255 included before <wchar.h>. */
18256 #include <stddef.h>
18257 #include <signal.h>
18259 # include <stdio.h>
18261 # include <wchar.h>
18264 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
18273 if ac_fn_c_try_compile
"$LINENO"; then :
18278 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18279 eval gl_cv_type_
${gltype}_signed
=\
$result
18282 eval ac_res
=\
$gl_cv_type_${gltype}_signed
18283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18284 $as_echo "$ac_res" >&6; }
18285 eval result
=\
$gl_cv_type_${gltype}_signed
18286 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18287 if test "$result" = yes; then
18288 cat >>confdefs.h
<<_ACEOF
18289 #define HAVE_SIGNED_${GLTYPE} 1
18292 eval HAVE_SIGNED_
${GLTYPE}=1
18294 eval HAVE_SIGNED_
${GLTYPE}=0
18299 gl_cv_type_ptrdiff_t_signed
=yes
18300 gl_cv_type_size_t_signed
=no
18301 if test $APPLE_UNIVERSAL_BUILD = 0; then
18304 for gltype
in ptrdiff_t size_t
; do
18305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
18306 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
18307 if { as_var
=gl_cv_type_
${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
18308 $as_echo_n "(cached) " >&6
18310 eval gl_cv_type_
${gltype}_suffix
=no
18311 eval result
=\
$gl_cv_type_${gltype}_signed
18312 if test "$result" = yes; then
18317 for glsuf
in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64
; do
18319 '') gltype1
='int';;
18320 l
) gltype1
='long int';;
18321 ll
) gltype1
='long long int';;
18322 i64
) gltype1
='__int64';;
18323 u
) gltype1
='unsigned int';;
18324 ul
) gltype1
='unsigned long int';;
18325 ull
) gltype1
='unsigned long long int';;
18326 ui64
)gltype1
='unsigned __int64';;
18328 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18329 /* end confdefs.h. */
18331 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18332 included before <wchar.h>. */
18333 #include <stddef.h>
18334 #include <signal.h>
18336 # include <stdio.h>
18338 # include <wchar.h>
18341 extern $gltype foo;
18342 extern $gltype1 foo;
18351 if ac_fn_c_try_compile
"$LINENO"; then :
18352 eval gl_cv_type_
${gltype}_suffix
=\
$glsuf
18354 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18355 eval result
=\
$gl_cv_type_${gltype}_suffix
18356 test "$result" != no
&& break
18359 eval ac_res
=\
$gl_cv_type_${gltype}_suffix
18360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18361 $as_echo "$ac_res" >&6; }
18362 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18363 eval result
=\
$gl_cv_type_${gltype}_suffix
18364 test "$result" = no
&& result
=
18365 eval ${GLTYPE}_SUFFIX
=\
$result
18366 cat >>confdefs.h
<<_ACEOF
18367 #define ${GLTYPE}_SUFFIX $result
18376 for gltype
in sig_atomic_t wchar_t wint_t
; do
18377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
18378 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
18379 if { as_var
=gl_cv_type_
${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
18380 $as_echo_n "(cached) " >&6
18382 eval gl_cv_type_
${gltype}_suffix
=no
18383 eval result
=\
$gl_cv_type_${gltype}_signed
18384 if test "$result" = yes; then
18389 for glsuf
in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64
; do
18391 '') gltype1
='int';;
18392 l
) gltype1
='long int';;
18393 ll
) gltype1
='long long int';;
18394 i64
) gltype1
='__int64';;
18395 u
) gltype1
='unsigned int';;
18396 ul
) gltype1
='unsigned long int';;
18397 ull
) gltype1
='unsigned long long int';;
18398 ui64
)gltype1
='unsigned __int64';;
18400 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18401 /* end confdefs.h. */
18403 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18404 included before <wchar.h>. */
18405 #include <stddef.h>
18406 #include <signal.h>
18408 # include <stdio.h>
18410 # include <wchar.h>
18413 extern $gltype foo;
18414 extern $gltype1 foo;
18423 if ac_fn_c_try_compile
"$LINENO"; then :
18424 eval gl_cv_type_
${gltype}_suffix
=\
$glsuf
18426 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18427 eval result
=\
$gl_cv_type_${gltype}_suffix
18428 test "$result" != no
&& break
18431 eval ac_res
=\
$gl_cv_type_${gltype}_suffix
18432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18433 $as_echo "$ac_res" >&6; }
18434 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18435 eval result
=\
$gl_cv_type_${gltype}_suffix
18436 test "$result" = no
&& result
=
18437 eval ${GLTYPE}_SUFFIX
=\
$result
18438 cat >>confdefs.h
<<_ACEOF
18439 #define ${GLTYPE}_SUFFIX $result
18449 if test -n "$STDINT_H"; then
18450 GL_GENERATE_STDINT_H_TRUE
=
18451 GL_GENERATE_STDINT_H_FALSE
='#'
18453 GL_GENERATE_STDINT_H_TRUE
='#'
18454 GL_GENERATE_STDINT_H_FALSE
=
18458 # Code from module stdio:
18470 if test $gl_cv_have_include_next = yes; then
18471 gl_cv_next_stdio_h
='<'stdio.h
'>'
18473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
18474 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
18475 if test "${gl_cv_next_stdio_h+set}" = set; then :
18476 $as_echo_n "(cached) " >&6
18479 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18480 /* end confdefs.h. */
18485 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
18486 *) gl_absname_cpp
="$ac_cpp" ;;
18488 gl_cv_next_stdio_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18489 sed -n '\#/stdio.h#{
18490 s#.*"\(.*/stdio.h\)".*#\1#
18498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
18499 $as_echo "$gl_cv_next_stdio_h" >&6; }
18501 NEXT_STDIO_H
=$gl_cv_next_stdio_h
18503 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
18504 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18505 gl_next_as_first_directive
='<'stdio.h
'>'
18507 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18508 gl_next_as_first_directive
=$gl_cv_next_stdio_h
18510 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
=$gl_next_as_first_directive
18543 # Code from module stdlib:
18554 if test $gl_cv_have_include_next = yes; then
18555 gl_cv_next_stdlib_h
='<'stdlib.h
'>'
18557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
18558 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
18559 if test "${gl_cv_next_stdlib_h+set}" = set; then :
18560 $as_echo_n "(cached) " >&6
18563 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18564 /* end confdefs.h. */
18565 #include <stdlib.h>
18569 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
18570 *) gl_absname_cpp
="$ac_cpp" ;;
18572 gl_cv_next_stdlib_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18573 sed -n '\#/stdlib.h#{
18574 s#.*"\(.*/stdlib.h\)".*#\1#
18582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
18583 $as_echo "$gl_cv_next_stdlib_h" >&6; }
18585 NEXT_STDLIB_H
=$gl_cv_next_stdlib_h
18587 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
18588 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18589 gl_next_as_first_directive
='<'stdlib.h
'>'
18591 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18592 gl_next_as_first_directive
=$gl_cv_next_stdlib_h
18594 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
=$gl_next_as_first_directive
18602 # Code from module strftime:
18613 gl_LIBOBJS
="$gl_LIBOBJS strftime.$ac_objext"
18616 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
18624 $as_echo "#define my_strftime nstrftime" >>confdefs.h
18628 # Code from module strtoull:
18632 if test "$ac_cv_type_unsigned_long_long_int" = yes; then
18641 for ac_func
in strtoull
18643 ac_fn_c_check_func
"$LINENO" "strtoull" "ac_cv_func_strtoull"
18644 if test "x$ac_cv_func_strtoull" = x
""yes; then :
18645 cat >>confdefs.h
<<_ACEOF
18646 #define HAVE_STRTOULL 1
18651 gl_LIBOBJS
="$gl_LIBOBJS $ac_func.$ac_objext"
18657 if test $ac_cv_func_strtoull = no
; then
18672 # Code from module strtoumax:
18677 if test "$ac_cv_have_decl_strtoumax" != yes; then
18678 HAVE_DECL_STRTOUMAX
=0
18688 for ac_func
in strtoumax
18690 ac_fn_c_check_func
"$LINENO" "strtoumax" "ac_cv_func_strtoumax"
18691 if test "x$ac_cv_func_strtoumax" = x
""yes; then :
18692 cat >>confdefs.h
<<_ACEOF
18693 #define HAVE_STRTOUMAX 1
18698 gl_LIBOBJS
="$gl_LIBOBJS $ac_func.$ac_objext"
18704 if test $ac_cv_func_strtoumax = no
; then
18706 ac_fn_c_check_decl
"$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
18707 if test "x$ac_cv_have_decl_strtoull" = x
""yes; then :
18713 cat >>confdefs.h
<<_ACEOF
18714 #define HAVE_DECL_STRTOULL $ac_have_decl
18728 # Code from module symlink:
18732 if test $ac_cv_func_symlink = no
; then
18742 gl_LIBOBJS
="$gl_LIBOBJS symlink.$ac_objext"
18745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symlink handles trailing slash correctly" >&5
18746 $as_echo_n "checking whether symlink handles trailing slash correctly... " >&6; }
18747 if test "${gl_cv_func_symlink_works+set}" = set; then :
18748 $as_echo_n "(cached) " >&6
18750 if test "$cross_compiling" = yes; then :
18751 gl_cv_func_symlink_works
="guessing no"
18753 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18754 /* end confdefs.h. */
18755 #include <unistd.h>
18761 if (!symlink ("a", "conftest.link/"))
18763 if (symlink ("conftest.f", "conftest.lnk2"))
18765 else if (!symlink ("a", "conftest.lnk2/"))
18773 if ac_fn_c_try_run
"$LINENO"; then :
18774 gl_cv_func_symlink_works
=yes
18776 gl_cv_func_symlink_works
=no
18778 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
18779 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18782 rm -f conftest.f conftest.link conftest.lnk2
18784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_symlink_works" >&5
18785 $as_echo "$gl_cv_func_symlink_works" >&6; }
18786 if test "$gl_cv_func_symlink_works" != yes; then
18796 gl_LIBOBJS
="$gl_LIBOBJS symlink.$ac_objext"
18808 # Code from module sys_stat:
18825 if test $gl_cv_have_include_next = yes; then
18826 gl_cv_next_sys_stat_h
='<'sys
/stat.h
'>'
18828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
18829 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
18830 if test "${gl_cv_next_sys_stat_h+set}" = set; then :
18831 $as_echo_n "(cached) " >&6
18834 if test $ac_cv_header_sys_stat_h = yes; then
18837 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18838 /* end confdefs.h. */
18839 #include <sys/stat.h>
18843 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
18844 *) gl_absname_cpp
="$ac_cpp" ;;
18846 gl_cv_next_sys_stat_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18847 sed -n '\#/sys/stat.h#{
18848 s#.*"\(.*/sys/stat.h\)".*#\1#
18854 gl_cv_next_sys_stat_h
='<'sys
/stat.h
'>'
18859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
18860 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
18862 NEXT_SYS_STAT_H
=$gl_cv_next_sys_stat_h
18864 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
18865 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18866 gl_next_as_first_directive
='<'sys
/stat.h
'>'
18868 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18869 gl_next_as_first_directive
=$gl_cv_next_sys_stat_h
18871 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
=$gl_next_as_first_directive
18877 ac_fn_c_check_type
"$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
18878 #include <sys/stat.h>
18880 if test "x$ac_cv_type_nlink_t" = x
""yes; then :
18884 $as_echo "#define nlink_t int" >>confdefs.h
18892 # Code from module time:
18896 # Code from module time_r:
18904 if test $ac_cv_have_decl_localtime_r = no
; then
18905 HAVE_DECL_LOCALTIME_R
=0
18909 if test $ac_cv_func_localtime_r = yes; then
18911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime_r is compatible with its POSIX signature" >&5
18912 $as_echo_n "checking whether localtime_r is compatible with its POSIX signature... " >&6; }
18913 if test "${gl_cv_time_r_posix+set}" = set; then :
18914 $as_echo_n "(cached) " >&6
18916 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18917 /* end confdefs.h. */
18922 /* We don't need to append 'restrict's to the argument types,
18923 even though the POSIX signature has the 'restrict's,
18924 since C99 says they can't affect type compatibility. */
18925 struct tm * (*ptr) (time_t const *, struct tm *) = localtime_r;
18927 /* Check the return type is a pointer.
18928 On HP-UX 10 it is 'int'. */
18929 *localtime_r (0, 0);
18935 if ac_fn_c_try_compile
"$LINENO"; then :
18936 gl_cv_time_r_posix
=yes
18938 gl_cv_time_r_posix
=no
18940 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_time_r_posix" >&5
18944 $as_echo "$gl_cv_time_r_posix" >&6; }
18945 if test $gl_cv_time_r_posix = yes; then
18946 REPLACE_LOCALTIME_R
=0
18948 REPLACE_LOCALTIME_R
=1
18953 if test $HAVE_LOCALTIME_R = 0 ||
test $REPLACE_LOCALTIME_R = 1; then
18962 gl_LIBOBJS
="$gl_LIBOBJS time_r.$ac_objext"
18976 # Code from module unistd:
18990 if test $gl_cv_have_include_next = yes; then
18991 gl_cv_next_unistd_h
='<'unistd.h
'>'
18993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
18994 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
18995 if test "${gl_cv_next_unistd_h+set}" = set; then :
18996 $as_echo_n "(cached) " >&6
18999 if test $ac_cv_header_unistd_h = yes; then
19002 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19003 /* end confdefs.h. */
19004 #include <unistd.h>
19008 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
19009 *) gl_absname_cpp
="$ac_cpp" ;;
19011 gl_cv_next_unistd_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19012 sed -n '\#/unistd.h#{
19013 s#.*"\(.*/unistd.h\)".*#\1#
19019 gl_cv_next_unistd_h
='<'unistd.h
'>'
19024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
19025 $as_echo "$gl_cv_next_unistd_h" >&6; }
19027 NEXT_UNISTD_H
=$gl_cv_next_unistd_h
19029 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
19030 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19031 gl_next_as_first_directive
='<'unistd.h
'>'
19033 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19034 gl_next_as_first_directive
=$gl_cv_next_unistd_h
19036 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
=$gl_next_as_first_directive
19041 if test $ac_cv_header_unistd_h = yes; then
19050 # Code from module verify:
19051 # Code from module warn-on-use:
19052 # End of code from modules
19073 gl_source_base
='tests'
19074 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
19076 gl_module_indicator_condition
=$gltests_WITNESS
19086 LIBGNU_LIBDEPS
="$gl_libdeps"
19088 LIBGNU_LTLIBDEPS
="$gl_ltlibdeps"
19093 for ac_func
in grantpt
19095 ac_fn_c_check_func
"$LINENO" "grantpt" "ac_cv_func_grantpt"
19096 if test "x$ac_cv_func_grantpt" = x
""yes; then :
19097 cat >>confdefs.h
<<_ACEOF
19098 #define HAVE_GRANTPT 1
19105 # PTY-related GNU extensions.
19106 for ac_func
in getpt
19108 ac_fn_c_check_func
"$LINENO" "getpt" "ac_cv_func_getpt"
19109 if test "x$ac_cv_func_getpt" = x
""yes; then :
19110 cat >>confdefs.h
<<_ACEOF
19111 #define HAVE_GETPT 1
19118 # Check this now, so that we will NOT find the above functions in ncurses.
19119 # That is because we have not set up to link ncurses in lib-src.
19120 # It's better to believe a function is not available
19121 # than to expect to find it in ncurses.
19122 # Also we need tputs and friends to be able to build at all.
19123 have_tputs_et_al
=true
19124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tputs" >&5
19125 $as_echo_n "checking for library containing tputs... " >&6; }
19126 if test "${ac_cv_search_tputs+set}" = set; then :
19127 $as_echo_n "(cached) " >&6
19129 ac_func_search_save_LIBS
=$LIBS
19130 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19131 /* end confdefs.h. */
19133 /* Override any GCC internal prototype to avoid an error.
19134 Use char because int might match the return type of a GCC
19135 builtin and then its argument prototype would still apply. */
19148 for ac_lib
in '' ncurses terminfo termcap
; do
19149 if test -z "$ac_lib"; then
19150 ac_res
="none required"
19153 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
19155 if ac_fn_c_try_link
"$LINENO"; then :
19156 ac_cv_search_tputs
=$ac_res
19158 rm -f core conftest.err conftest.
$ac_objext \
19160 if test "${ac_cv_search_tputs+set}" = set; then :
19164 if test "${ac_cv_search_tputs+set}" = set; then :
19167 ac_cv_search_tputs
=no
19169 rm conftest.
$ac_ext
19170 LIBS
=$ac_func_search_save_LIBS
19172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tputs" >&5
19173 $as_echo "$ac_cv_search_tputs" >&6; }
19174 ac_res
=$ac_cv_search_tputs
19175 if test "$ac_res" != no
; then :
19176 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
19179 have_tputs_et_al
=false
19182 if test "$have_tputs_et_al" != true
; then
19183 as_fn_error
"I couldn't find termcap functions (tputs and friends).
19184 Maybe some development libraries/packages are missing? Try installing
19185 libncurses-dev(el), libterminfo-dev(el) or similar." "$LINENO" 5
19187 # Must define this when any termcap library is found.
19189 $as_echo "#define HAVE_LIBNCURSES 1" >>confdefs.h
19191 ## FIXME This was the cpp logic, but I am not sure it is right.
19192 ## The above test has not necessarily found libncurses.
19193 HAVE_LIBNCURSES
=yes
19195 ## Use terminfo instead of termcap?
19196 ## Note only system files NOT using terminfo are:
19197 ## freebsd < 40000, ms-w32, msdos, netbsd < 599002500, and
19198 ## darwin|gnu without ncurses.
19202 ## cygwin: Fewer environment variables to go wrong, more terminal types.
19203 ## hpux10-20: Use the system provided termcap(3) library.
19204 ## openbsd: David Mazieres <dm@reeducation-labor.lcs.mit.edu> says this
19205 ## is necessary. Otherwise Emacs dumps core when run -nw.
19206 aix4-2|cygwin|hpux
*|irix6-5|openbsd|sol2
*|unixware
) TERMINFO
=yes ;;
19208 ## darwin: Prevents crashes when running Emacs in Terminal.app under 10.2.
19209 ## The ncurses library has been moved out of the System framework in
19210 ## Mac OS X 10.2. So if configure detects it, set the command-line
19211 ## option to use it.
19213 ## (HAVE_LIBNCURSES was not always true, but is since 2010-03-18.)
19214 if test "x$HAVE_LIBNCURSES" = "xyes"; then
19216 LIBS_TERMCAP
="-lncurses"
19221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FreeBSD is new enough to use terminfo" >&5
19222 $as_echo_n "checking whether FreeBSD is new enough to use terminfo... " >&6; }
19223 if test "${emacs_cv_freebsd_terminfo+set}" = set; then :
19224 $as_echo_n "(cached) " >&6
19226 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19227 /* end confdefs.h. */
19228 #include <osreldate.h>
19232 #if __FreeBSD_version < 400000
19240 if ac_fn_c_try_link
"$LINENO"; then :
19241 emacs_cv_freebsd_terminfo
=yes
19243 emacs_cv_freebsd_terminfo
=no
19245 rm -f core conftest.err conftest.
$ac_objext \
19246 conftest
$ac_exeext conftest.
$ac_ext
19250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_freebsd_terminfo" >&5
19251 $as_echo "$emacs_cv_freebsd_terminfo" >&6; }
19253 if test $emacs_cv_freebsd_terminfo = yes; then
19255 LIBS_TERMCAP
="-lncurses"
19257 LIBS_TERMCAP
="-ltermcap"
19262 if test $ac_cv_search_tputs = -lterminfo; then
19264 LIBS_TERMCAP
="-lterminfo"
19266 LIBS_TERMCAP
="-ltermcap"
19273 ## hpux: Make sure we get select from libc rather than from libcurses
19274 ## because libcurses on HPUX 10.10 has a broken version of select.
19275 ## We used to use -lc -lcurses, but this may be cleaner.
19276 hpux
*) LIBS_TERMCAP
="-ltermcap" ;;
19278 openbsd
) LIBS_TERMCAP
="-lncurses" ;;
19280 ## Must use system termcap, if we use any termcap. It does special things.
19281 sol2
*) test "$TERMINFO" != yes && LIBS_TERMCAP
="-ltermcap" ;;
19284 TERMCAP_OBJ
=tparam.o
19285 if test $TERMINFO = yes; then
19287 $as_echo "#define TERMINFO 1" >>confdefs.h
19290 ## Default used to be -ltermcap. Add a case above if need something else.
19291 test "x$LIBS_TERMCAP" = "x" && LIBS_TERMCAP
="-lcurses"
19293 TERMCAP_OBJ
=terminfo.o
19299 # Do we have res_init, for detecting changes in /etc/resolv.conf?
19301 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19302 /* end confdefs.h. */
19303 #include <netinet/in.h>
19304 #include <arpa/nameser.h>
19305 #include <resolv.h>
19314 if ac_fn_c_try_link
"$LINENO"; then :
19319 rm -f core conftest.err conftest.
$ac_objext \
19320 conftest
$ac_exeext conftest.
$ac_ext
19321 if test "$have_res_init" = no
; then
19323 LIBS
="$LIBS -lresolv"
19324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5
19325 $as_echo_n "checking for res_init with -lresolv... " >&6; }
19326 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19327 /* end confdefs.h. */
19328 #include <netinet/in.h>
19329 #include <arpa/nameser.h>
19330 #include <resolv.h>
19339 if ac_fn_c_try_link
"$LINENO"; then :
19344 rm -f core conftest.err conftest.
$ac_objext \
19345 conftest
$ac_exeext conftest.
$ac_ext
19346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5
19347 $as_echo "$have_res_init" >&6; }
19348 if test "$have_res_init" = yes ; then
19354 if test "$have_res_init" = yes; then
19356 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
19360 # Do we need the Hesiod library to provide the support routines?
19362 if test "$with_hesiod" != no
; then
19363 # Don't set $LIBS here -- see comments above. FIXME which comments?
19364 ac_fn_c_check_func
"$LINENO" "res_send" "ac_cv_func_res_send"
19365 if test "x$ac_cv_func_res_send" = x
""yes; then :
19368 ac_fn_c_check_func
"$LINENO" "__res_send" "ac_cv_func___res_send"
19369 if test "x$ac_cv_func___res_send" = x
""yes; then :
19372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5
19373 $as_echo_n "checking for res_send in -lresolv... " >&6; }
19374 if test "${ac_cv_lib_resolv_res_send+set}" = set; then :
19375 $as_echo_n "(cached) " >&6
19377 ac_check_lib_save_LIBS
=$LIBS
19378 LIBS
="-lresolv $LIBS"
19379 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19380 /* end confdefs.h. */
19382 /* Override any GCC internal prototype to avoid an error.
19383 Use char because int might match the return type of a GCC
19384 builtin and then its argument prototype would still apply. */
19392 return res_send ();
19397 if ac_fn_c_try_link
"$LINENO"; then :
19398 ac_cv_lib_resolv_res_send
=yes
19400 ac_cv_lib_resolv_res_send
=no
19402 rm -f core conftest.err conftest.
$ac_objext \
19403 conftest
$ac_exeext conftest.
$ac_ext
19404 LIBS
=$ac_check_lib_save_LIBS
19406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5
19407 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
19408 if test "x$ac_cv_lib_resolv_res_send" = x
""yes; then :
19411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5
19412 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
19413 if test "${ac_cv_lib_resolv___res_send+set}" = set; then :
19414 $as_echo_n "(cached) " >&6
19416 ac_check_lib_save_LIBS
=$LIBS
19417 LIBS
="-lresolv $LIBS"
19418 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19419 /* end confdefs.h. */
19421 /* Override any GCC internal prototype to avoid an error.
19422 Use char because int might match the return type of a GCC
19423 builtin and then its argument prototype would still apply. */
19427 char __res_send ();
19431 return __res_send ();
19436 if ac_fn_c_try_link
"$LINENO"; then :
19437 ac_cv_lib_resolv___res_send
=yes
19439 ac_cv_lib_resolv___res_send
=no
19441 rm -f core conftest.err conftest.
$ac_objext \
19442 conftest
$ac_exeext conftest.
$ac_ext
19443 LIBS
=$ac_check_lib_save_LIBS
19445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5
19446 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
19447 if test "x$ac_cv_lib_resolv___res_send" = x
""yes; then :
19457 if test "$resolv" = yes ; then
19462 ac_fn_c_check_func
"$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost"
19463 if test "x$ac_cv_func_hes_getmailhost" = x
""yes; then :
19466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5
19467 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
19468 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then :
19469 $as_echo_n "(cached) " >&6
19471 ac_check_lib_save_LIBS
=$LIBS
19472 LIBS
="-lhesiod $RESOLVLIB $LIBS"
19473 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19474 /* end confdefs.h. */
19476 /* Override any GCC internal prototype to avoid an error.
19477 Use char because int might match the return type of a GCC
19478 builtin and then its argument prototype would still apply. */
19482 char hes_getmailhost ();
19486 return hes_getmailhost ();
19491 if ac_fn_c_try_link
"$LINENO"; then :
19492 ac_cv_lib_hesiod_hes_getmailhost
=yes
19494 ac_cv_lib_hesiod_hes_getmailhost
=no
19496 rm -f core conftest.err conftest.
$ac_objext \
19497 conftest
$ac_exeext conftest.
$ac_ext
19498 LIBS
=$ac_check_lib_save_LIBS
19500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
19501 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
19502 if test "x$ac_cv_lib_hesiod_hes_getmailhost" = x
""yes; then :
19511 if test x
"$hesiod" = xyes
; then
19513 $as_echo "#define HAVE_LIBHESIOD 1" >>confdefs.h
19520 # Do we need libresolv (due to res_init or Hesiod)?
19521 if test "$resolv" = yes ; then
19523 $as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
19531 # These tell us which Kerberos-related libraries to use.
19538 if test "${with_kerberos}" != no
; then
19539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
19540 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
19541 if test "${ac_cv_lib_com_err_com_err+set}" = set; then :
19542 $as_echo_n "(cached) " >&6
19544 ac_check_lib_save_LIBS
=$LIBS
19545 LIBS
="-lcom_err $LIBS"
19546 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19547 /* end confdefs.h. */
19549 /* Override any GCC internal prototype to avoid an error.
19550 Use char because int might match the return type of a GCC
19551 builtin and then its argument prototype would still apply. */
19564 if ac_fn_c_try_link
"$LINENO"; then :
19565 ac_cv_lib_com_err_com_err
=yes
19567 ac_cv_lib_com_err_com_err
=no
19569 rm -f core conftest.err conftest.
$ac_objext \
19570 conftest
$ac_exeext conftest.
$ac_ext
19571 LIBS
=$ac_check_lib_save_LIBS
19573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
19574 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
19575 if test "x$ac_cv_lib_com_err_com_err" = x
""yes; then :
19581 if test $have_com_err = yes; then
19582 COM_ERRLIB
=-lcom_err
19583 LIBS
="$COM_ERRLIB $LIBS"
19585 $as_echo "#define HAVE_LIBCOM_ERR 1" >>confdefs.h
19588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5
19589 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
19590 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then :
19591 $as_echo_n "(cached) " >&6
19593 ac_check_lib_save_LIBS
=$LIBS
19594 LIBS
="-lcrypto $LIBS"
19595 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19596 /* end confdefs.h. */
19598 /* Override any GCC internal prototype to avoid an error.
19599 Use char because int might match the return type of a GCC
19600 builtin and then its argument prototype would still apply. */
19604 char mit_des_cbc_encrypt ();
19608 return mit_des_cbc_encrypt ();
19613 if ac_fn_c_try_link
"$LINENO"; then :
19614 ac_cv_lib_crypto_mit_des_cbc_encrypt
=yes
19616 ac_cv_lib_crypto_mit_des_cbc_encrypt
=no
19618 rm -f core conftest.err conftest.
$ac_objext \
19619 conftest
$ac_exeext conftest.
$ac_ext
19620 LIBS
=$ac_check_lib_save_LIBS
19622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
19623 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
19624 if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = x
""yes; then :
19630 if test $have_crypto = yes; then
19632 LIBS
="$CRYPTOLIB $LIBS"
19634 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
19637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
19638 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
19639 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then :
19640 $as_echo_n "(cached) " >&6
19642 ac_check_lib_save_LIBS
=$LIBS
19643 LIBS
="-lk5crypto $LIBS"
19644 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19645 /* end confdefs.h. */
19647 /* Override any GCC internal prototype to avoid an error.
19648 Use char because int might match the return type of a GCC
19649 builtin and then its argument prototype would still apply. */
19653 char mit_des_cbc_encrypt ();
19657 return mit_des_cbc_encrypt ();
19662 if ac_fn_c_try_link
"$LINENO"; then :
19663 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=yes
19665 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=no
19667 rm -f core conftest.err conftest.
$ac_objext \
19668 conftest
$ac_exeext conftest.
$ac_ext
19669 LIBS
=$ac_check_lib_save_LIBS
19671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
19672 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
19673 if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = x
""yes; then :
19679 if test $have_k5crypto = yes; then
19680 CRYPTOLIB
=-lk5crypto
19681 LIBS
="$CRYPTOLIB $LIBS"
19683 $as_echo "#define HAVE_LIBK5CRYPTO 1" >>confdefs.h
19686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
19687 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
19688 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then :
19689 $as_echo_n "(cached) " >&6
19691 ac_check_lib_save_LIBS
=$LIBS
19692 LIBS
="-lkrb5 $LIBS"
19693 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19694 /* end confdefs.h. */
19696 /* Override any GCC internal prototype to avoid an error.
19697 Use char because int might match the return type of a GCC
19698 builtin and then its argument prototype would still apply. */
19702 char krb5_init_context ();
19706 return krb5_init_context ();
19711 if ac_fn_c_try_link
"$LINENO"; then :
19712 ac_cv_lib_krb5_krb5_init_context
=yes
19714 ac_cv_lib_krb5_krb5_init_context
=no
19716 rm -f core conftest.err conftest.
$ac_objext \
19717 conftest
$ac_exeext conftest.
$ac_ext
19718 LIBS
=$ac_check_lib_save_LIBS
19720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
19721 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
19722 if test "x$ac_cv_lib_krb5_krb5_init_context" = x
""yes; then :
19728 if test $have_krb5=yes; then
19730 LIBS
="$KRB5LIB $LIBS"
19732 $as_echo "#define HAVE_LIBKRB5 1" >>confdefs.h
19735 if test "${with_kerberos5}" = no
; then
19736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
19737 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
19738 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then :
19739 $as_echo_n "(cached) " >&6
19741 ac_check_lib_save_LIBS
=$LIBS
19742 LIBS
="-ldes425 $LIBS"
19743 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19744 /* end confdefs.h. */
19746 /* Override any GCC internal prototype to avoid an error.
19747 Use char because int might match the return type of a GCC
19748 builtin and then its argument prototype would still apply. */
19752 char des_cbc_encrypt ();
19756 return des_cbc_encrypt ();
19761 if ac_fn_c_try_link
"$LINENO"; then :
19762 ac_cv_lib_des425_des_cbc_encrypt
=yes
19764 ac_cv_lib_des425_des_cbc_encrypt
=no
19766 rm -f core conftest.err conftest.
$ac_objext \
19767 conftest
$ac_exeext conftest.
$ac_ext
19768 LIBS
=$ac_check_lib_save_LIBS
19770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
19771 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
19772 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = x
""yes; then :
19778 if test $have_des425 = yes; then
19780 LIBS
="$DESLIB $LIBS"
19782 $as_echo "#define HAVE_LIBDES425 1" >>confdefs.h
19785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
19786 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
19787 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then :
19788 $as_echo_n "(cached) " >&6
19790 ac_check_lib_save_LIBS
=$LIBS
19792 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19793 /* end confdefs.h. */
19795 /* Override any GCC internal prototype to avoid an error.
19796 Use char because int might match the return type of a GCC
19797 builtin and then its argument prototype would still apply. */
19801 char des_cbc_encrypt ();
19805 return des_cbc_encrypt ();
19810 if ac_fn_c_try_link
"$LINENO"; then :
19811 ac_cv_lib_des_des_cbc_encrypt
=yes
19813 ac_cv_lib_des_des_cbc_encrypt
=no
19815 rm -f core conftest.err conftest.
$ac_objext \
19816 conftest
$ac_exeext conftest.
$ac_ext
19817 LIBS
=$ac_check_lib_save_LIBS
19819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
19820 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
19821 if test "x$ac_cv_lib_des_des_cbc_encrypt" = x
""yes; then :
19827 if test $have_des = yes; then
19829 LIBS
="$DESLIB $LIBS"
19831 $as_echo "#define HAVE_LIBDES 1" >>confdefs.h
19835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5
19836 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
19837 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then :
19838 $as_echo_n "(cached) " >&6
19840 ac_check_lib_save_LIBS
=$LIBS
19841 LIBS
="-lkrb4 $LIBS"
19842 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19843 /* end confdefs.h. */
19845 /* Override any GCC internal prototype to avoid an error.
19846 Use char because int might match the return type of a GCC
19847 builtin and then its argument prototype would still apply. */
19851 char krb_get_cred ();
19855 return krb_get_cred ();
19860 if ac_fn_c_try_link
"$LINENO"; then :
19861 ac_cv_lib_krb4_krb_get_cred
=yes
19863 ac_cv_lib_krb4_krb_get_cred
=no
19865 rm -f core conftest.err conftest.
$ac_objext \
19866 conftest
$ac_exeext conftest.
$ac_ext
19867 LIBS
=$ac_check_lib_save_LIBS
19869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5
19870 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
19871 if test "x$ac_cv_lib_krb4_krb_get_cred" = x
""yes; then :
19877 if test $have_krb4 = yes; then
19879 LIBS
="$KRB4LIB $LIBS"
19881 $as_echo "#define HAVE_LIBKRB4 1" >>confdefs.h
19884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5
19885 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
19886 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then :
19887 $as_echo_n "(cached) " >&6
19889 ac_check_lib_save_LIBS
=$LIBS
19891 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19892 /* end confdefs.h. */
19894 /* Override any GCC internal prototype to avoid an error.
19895 Use char because int might match the return type of a GCC
19896 builtin and then its argument prototype would still apply. */
19900 char krb_get_cred ();
19904 return krb_get_cred ();
19909 if ac_fn_c_try_link
"$LINENO"; then :
19910 ac_cv_lib_krb_krb_get_cred
=yes
19912 ac_cv_lib_krb_krb_get_cred
=no
19914 rm -f core conftest.err conftest.
$ac_objext \
19915 conftest
$ac_exeext conftest.
$ac_ext
19916 LIBS
=$ac_check_lib_save_LIBS
19918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5
19919 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
19920 if test "x$ac_cv_lib_krb_krb_get_cred" = x
""yes; then :
19926 if test $have_krb = yes; then
19928 LIBS
="$KRB4LIB $LIBS"
19930 $as_echo "#define HAVE_LIBKRB 1" >>confdefs.h
19936 if test "${with_kerberos5}" != no
; then
19937 for ac_header
in krb5.h
19939 ac_fn_c_check_header_mongrel
"$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
19940 if test "x$ac_cv_header_krb5_h" = x
""yes; then :
19941 cat >>confdefs.h
<<_ACEOF
19942 #define HAVE_KRB5_H 1
19944 ac_fn_c_check_member
"$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h>
19946 if test "x$ac_cv_member_krb5_error_text" = x
""yes; then :
19948 cat >>confdefs.h
<<_ACEOF
19949 #define HAVE_KRB5_ERROR_TEXT 1
19954 ac_fn_c_check_member
"$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h>
19956 if test "x$ac_cv_member_krb5_error_e_text" = x
""yes; then :
19958 cat >>confdefs.h
<<_ACEOF
19959 #define HAVE_KRB5_ERROR_E_TEXT 1
19970 for ac_header
in des.h
19972 ac_fn_c_check_header_mongrel
"$LINENO" "des.h" "ac_cv_header_des_h" "$ac_includes_default"
19973 if test "x$ac_cv_header_des_h" = x
""yes; then :
19974 cat >>confdefs.h
<<_ACEOF
19975 #define HAVE_DES_H 1
19979 for ac_header
in kerberosIV
/des.h
19981 ac_fn_c_check_header_mongrel
"$LINENO" "kerberosIV/des.h" "ac_cv_header_kerberosIV_des_h" "$ac_includes_default"
19982 if test "x$ac_cv_header_kerberosIV_des_h" = x
""yes; then :
19983 cat >>confdefs.h
<<_ACEOF
19984 #define HAVE_KERBEROSIV_DES_H 1
19988 for ac_header
in kerberos
/des.h
19990 ac_fn_c_check_header_mongrel
"$LINENO" "kerberos/des.h" "ac_cv_header_kerberos_des_h" "$ac_includes_default"
19991 if test "x$ac_cv_header_kerberos_des_h" = x
""yes; then :
19992 cat >>confdefs.h
<<_ACEOF
19993 #define HAVE_KERBEROS_DES_H 1
20008 for ac_header
in krb.h
20010 ac_fn_c_check_header_mongrel
"$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
20011 if test "x$ac_cv_header_krb_h" = x
""yes; then :
20012 cat >>confdefs.h
<<_ACEOF
20013 #define HAVE_KRB_H 1
20017 for ac_header
in kerberosIV
/krb.h
20019 ac_fn_c_check_header_mongrel
"$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default"
20020 if test "x$ac_cv_header_kerberosIV_krb_h" = x
""yes; then :
20021 cat >>confdefs.h
<<_ACEOF
20022 #define HAVE_KERBEROSIV_KRB_H 1
20026 for ac_header
in kerberos
/krb.h
20028 ac_fn_c_check_header_mongrel
"$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default"
20029 if test "x$ac_cv_header_kerberos_krb_h" = x
""yes; then :
20030 cat >>confdefs.h
<<_ACEOF
20031 #define HAVE_KERBEROS_KRB_H 1
20047 for ac_header
in com_err.h
20049 ac_fn_c_check_header_mongrel
"$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default"
20050 if test "x$ac_cv_header_com_err_h" = x
""yes; then :
20051 cat >>confdefs.h
<<_ACEOF
20052 #define HAVE_COM_ERR_H 1
20067 # Solaris requires -lintl if you want strerror (which calls dgettext)
20068 # to return localized messages.
20069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in -lintl" >&5
20070 $as_echo_n "checking for dgettext in -lintl... " >&6; }
20071 if test "${ac_cv_lib_intl_dgettext+set}" = set; then :
20072 $as_echo_n "(cached) " >&6
20074 ac_check_lib_save_LIBS
=$LIBS
20075 LIBS
="-lintl $LIBS"
20076 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20077 /* end confdefs.h. */
20079 /* Override any GCC internal prototype to avoid an error.
20080 Use char because int might match the return type of a GCC
20081 builtin and then its argument prototype would still apply. */
20089 return dgettext ();
20094 if ac_fn_c_try_link
"$LINENO"; then :
20095 ac_cv_lib_intl_dgettext
=yes
20097 ac_cv_lib_intl_dgettext
=no
20099 rm -f core conftest.err conftest.
$ac_objext \
20100 conftest
$ac_exeext conftest.
$ac_ext
20101 LIBS
=$ac_check_lib_save_LIBS
20103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dgettext" >&5
20104 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
20105 if test "x$ac_cv_lib_intl_dgettext" = x
""yes; then :
20106 cat >>confdefs.h
<<_ACEOF
20107 #define HAVE_LIBINTL 1
20110 LIBS
="-lintl $LIBS"
20115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5
20116 $as_echo_n "checking whether localtime caches TZ... " >&6; }
20117 if test "${emacs_cv_localtime_cache+set}" = set; then :
20118 $as_echo_n "(cached) " >&6
20120 if test x
$ac_cv_func_tzset = xyes
; then
20121 if test "$cross_compiling" = yes; then :
20122 # If we have tzset, assume the worst when cross-compiling.
20123 emacs_cv_localtime_cache
=yes
20125 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20126 /* end confdefs.h. */
20128 char TZ_GMT0[] = "TZ=GMT0";
20129 char TZ_PST8[] = "TZ=PST8";
20132 time_t now = time ((time_t *) 0);
20133 int hour_GMT0, hour_unset;
20134 if (putenv (TZ_GMT0) != 0)
20136 hour_GMT0 = localtime (&now)->tm_hour;
20138 hour_unset = localtime (&now)->tm_hour;
20139 if (putenv (TZ_PST8) != 0)
20141 if (localtime (&now)->tm_hour == hour_GMT0)
20144 if (localtime (&now)->tm_hour != hour_unset)
20149 if ac_fn_c_try_run
"$LINENO"; then :
20150 emacs_cv_localtime_cache
=no
20152 emacs_cv_localtime_cache
=yes
20154 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20155 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20159 # If we lack tzset, report that localtime does not cache TZ,
20160 # since we can't invalidate the cache if we don't have tzset.
20161 emacs_cv_localtime_cache
=no
20164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5
20165 $as_echo "$emacs_cv_localtime_cache" >&6; }
20166 if test $emacs_cv_localtime_cache = yes; then
20168 $as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h
20172 if test "x$HAVE_TIMEVAL" = xyes
; then
20173 for ac_func
in gettimeofday
20175 ac_fn_c_check_func
"$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
20176 if test "x$ac_cv_func_gettimeofday" = x
""yes; then :
20177 cat >>confdefs.h
<<_ACEOF
20178 #define HAVE_GETTIMEOFDAY 1
20184 if test $ac_cv_func_gettimeofday = yes; then
20185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday can accept two arguments" >&5
20186 $as_echo_n "checking whether gettimeofday can accept two arguments... " >&6; }
20187 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then :
20188 $as_echo_n "(cached) " >&6
20190 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20191 /* end confdefs.h. */
20193 #ifdef TIME_WITH_SYS_TIME
20194 #include <sys/time.h>
20197 #ifdef HAVE_SYS_TIME_H
20198 #include <sys/time.h>
20206 struct timeval time;
20207 gettimeofday (&time, 0);
20212 if ac_fn_c_try_compile
"$LINENO"; then :
20213 emacs_cv_gettimeofday_two_arguments
=yes
20215 emacs_cv_gettimeofday_two_arguments
=no
20217 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_gettimeofday_two_arguments" >&5
20220 $as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; }
20221 if test $emacs_cv_gettimeofday_two_arguments = no
; then
20223 $as_echo "#define GETTIMEOFDAY_ONE_ARGUMENT 1" >>confdefs.h
20230 ac_fn_c_check_func
"$LINENO" "socket" "ac_cv_func_socket"
20231 if test "x$ac_cv_func_socket" = x
""yes; then :
20237 if test $ok_so_far = yes; then
20238 ac_fn_c_check_header_mongrel
"$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
20239 if test "x$ac_cv_header_netinet_in_h" = x
""yes; then :
20247 if test $ok_so_far = yes; then
20248 ac_fn_c_check_header_mongrel
"$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
20249 if test "x$ac_cv_header_arpa_inet_h" = x
""yes; then :
20257 if test $ok_so_far = yes; then
20259 $as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h
20263 if test -f /usr
/lpp
/X11
/bin
/smt.exp
; then
20265 $as_echo "#define HAVE_AIX_SMT_EXP 1" >>confdefs.h
20269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports dynamic ptys" >&5
20270 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
20271 if test -d /dev
/pts
&& ls -d /dev
/ptmx
> /dev
/null
2>&1 ; then
20272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20273 $as_echo "yes" >&6; }
20275 $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
20278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20279 $as_echo "no" >&6; }
20282 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
20283 if test "x$ac_cv_type_pid_t" = x
""yes; then :
20287 cat >>confdefs.h
<<_ACEOF
20293 for ac_header
in vfork.h
20295 ac_fn_c_check_header_mongrel
"$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
20296 if test "x$ac_cv_header_vfork_h" = x
""yes; then :
20297 cat >>confdefs.h
<<_ACEOF
20298 #define HAVE_VFORK_H 1
20305 for ac_func
in fork vfork
20307 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20308 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
20309 eval as_val
=\$
$as_ac_var
20310 if test "x$as_val" = x
""yes; then :
20311 cat >>confdefs.h
<<_ACEOF
20312 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20318 if test "x$ac_cv_func_fork" = xyes
; then
20319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
20320 $as_echo_n "checking for working fork... " >&6; }
20321 if test "${ac_cv_func_fork_works+set}" = set; then :
20322 $as_echo_n "(cached) " >&6
20324 if test "$cross_compiling" = yes; then :
20325 ac_cv_func_fork_works
=cross
20327 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20328 /* end confdefs.h. */
20329 $ac_includes_default
20334 /* By Ruediger Kuhlmann. */
20335 return fork () < 0;
20341 if ac_fn_c_try_run
"$LINENO"; then :
20342 ac_cv_func_fork_works
=yes
20344 ac_cv_func_fork_works
=no
20346 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20347 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
20352 $as_echo "$ac_cv_func_fork_works" >&6; }
20355 ac_cv_func_fork_works
=$ac_cv_func_fork
20357 if test "x$ac_cv_func_fork_works" = xcross
; then
20359 *-*-amigaos* |
*-*-msdosdjgpp*)
20360 # Override, as these systems have only a dummy fork() stub
20361 ac_cv_func_fork_works
=no
20364 ac_cv_func_fork_works
=yes
20367 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
20368 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
20370 ac_cv_func_vfork_works
=$ac_cv_func_vfork
20371 if test "x$ac_cv_func_vfork" = xyes
; then
20372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
20373 $as_echo_n "checking for working vfork... " >&6; }
20374 if test "${ac_cv_func_vfork_works+set}" = set; then :
20375 $as_echo_n "(cached) " >&6
20377 if test "$cross_compiling" = yes; then :
20378 ac_cv_func_vfork_works
=cross
20380 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20381 /* end confdefs.h. */
20382 /* Thanks to Paul Eggert for this test. */
20383 $ac_includes_default
20384 #include <sys/wait.h>
20385 #ifdef HAVE_VFORK_H
20386 # include <vfork.h>
20388 /* On some sparc systems, changes by the child to local and incoming
20389 argument registers are propagated back to the parent. The compiler
20390 is told about this with #include <vfork.h>, but some compilers
20391 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
20392 static variable whose address is put into a register that is
20393 clobbered by the vfork. */
20396 sparc_address_test (int arg)
20398 sparc_address_test (arg) int arg;
20401 static pid_t child;
20419 pid_t parent = getpid ();
20422 sparc_address_test (0);
20427 /* Here is another test for sparc vfork register problems. This
20428 test uses lots of local variables, at least as many local
20429 variables as main has allocated so far including compiler
20430 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
20431 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
20432 reuse the register of parent for one of the local variables,
20433 since it will think that parent can't possibly be used any more
20434 in this routine. Assigning to the local variable will thus
20435 munge parent in the parent process. */
20437 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
20438 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
20439 /* Convince the compiler that p..p7 are live; otherwise, it might
20440 use the same hardware register for all 8 local variables. */
20441 if (p != p1 || p != p2 || p != p3 || p != p4
20442 || p != p5 || p != p6 || p != p7)
20445 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
20446 from child file descriptors. If the child closes a descriptor
20447 before it execs or exits, this munges the parent's descriptor
20448 as well. Test for this by closing stdout in the child. */
20449 _exit(close(fileno(stdout)) != 0);
20454 while (wait(&status) != child)
20457 /* Was there some problem with vforking? */
20460 /* Did the child fail? (This shouldn't happen.) */
20463 /* Did the vfork/compiler bug occur? */
20464 || parent != getpid()
20466 /* Did the file descriptor bug occur? */
20467 || fstat(fileno(stdout), &st) != 0
20472 if ac_fn_c_try_run
"$LINENO"; then :
20473 ac_cv_func_vfork_works
=yes
20475 ac_cv_func_vfork_works
=no
20477 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20478 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
20483 $as_echo "$ac_cv_func_vfork_works" >&6; }
20486 if test "x$ac_cv_func_fork_works" = xcross
; then
20487 ac_cv_func_vfork_works
=$ac_cv_func_vfork
20488 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
20489 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
20492 if test "x$ac_cv_func_vfork_works" = xyes
; then
20494 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
20498 $as_echo "#define vfork fork" >>confdefs.h
20501 if test "x$ac_cv_func_fork_works" = xyes
; then
20503 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
20508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
20509 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
20510 if test "${emacs_cv_langinfo_codeset+set}" = set; then :
20511 $as_echo_n "(cached) " >&6
20513 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20514 /* end confdefs.h. */
20515 #include <langinfo.h>
20519 char* cs = nl_langinfo(CODESET);
20524 if ac_fn_c_try_link
"$LINENO"; then :
20525 emacs_cv_langinfo_codeset
=yes
20527 emacs_cv_langinfo_codeset
=no
20529 rm -f core conftest.err conftest.
$ac_objext \
20530 conftest
$ac_exeext conftest.
$ac_ext
20533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5
20534 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
20535 if test $emacs_cv_langinfo_codeset = yes; then
20537 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
20541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
20542 $as_echo_n "checking for mbstate_t... " >&6; }
20543 if test "${ac_cv_type_mbstate_t+set}" = set; then :
20544 $as_echo_n "(cached) " >&6
20546 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20547 /* end confdefs.h. */
20548 $ac_includes_default
20549 # include <wchar.h>
20553 mbstate_t x; return sizeof x;
20558 if ac_fn_c_try_compile
"$LINENO"; then :
20559 ac_cv_type_mbstate_t
=yes
20561 ac_cv_type_mbstate_t
=no
20563 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
20566 $as_echo "$ac_cv_type_mbstate_t" >&6; }
20567 if test $ac_cv_type_mbstate_t = yes; then
20569 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
20573 $as_echo "#define mbstate_t int" >>confdefs.h
20577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5
20578 $as_echo_n "checking for C restricted array declarations... " >&6; }
20579 if test "${emacs_cv_c_restrict_arr+set}" = set; then :
20580 $as_echo_n "(cached) " >&6
20582 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20583 /* end confdefs.h. */
20584 void fred (int x[__restrict]);
20593 if ac_fn_c_try_compile
"$LINENO"; then :
20594 emacs_cv_c_restrict_arr
=yes
20596 emacs_cv_c_restrict_arr
=no
20598 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5
20601 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
20602 if test "$emacs_cv_c_restrict_arr" = yes; then
20604 $as_echo "#define __restrict_arr __restrict" >>confdefs.h
20610 # Set up the CFLAGS for real compilation, so we can substitute it.
20611 CFLAGS
="$REAL_CFLAGS"
20612 CPPFLAGS
="$REAL_CPPFLAGS"
20614 ## Hack to detect a buggy GCC version.
20615 if test "x$GCC" = xyes \
20616 && test x
"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
20617 && test x
"`echo $CFLAGS | grep '\-O[23]'`" != x \
20618 && test x
"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x
; then
20619 as_fn_error
"GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." "$LINENO" 5
20622 version
=$PACKAGE_VERSION
20624 ### Specify what sort of things we'll be editing into Makefile and config.h.
20625 ### Use configuration here uncanonicalized to avoid exceeding size limits.
20649 ## FIXME? Nothing uses @LD_SWITCH_X_SITE@.
20650 ## src/Makefile.in did add LD_SWITCH_X_SITE (as a cpp define) to the
20651 ## end of LIBX_BASE, but nothing ever set it.
20656 ## Used in lwlib/Makefile.in.
20658 if test -n "${machfile}"; then
20659 M_FILE
="\$(srcdir)/${machfile}"
20663 S_FILE
="\$(srcdir)/${opsysfile}"
20674 cat >>confdefs.h
<<_ACEOF
20675 #define EMACS_CONFIGURATION "${canonical}"
20679 cat >>confdefs.h
<<_ACEOF
20680 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
20683 if test -n "$machfile"; then
20685 cat >>confdefs.h
<<_ACEOF
20686 #define config_machfile "${machfile}"
20691 cat >>confdefs.h
<<_ACEOF
20692 #define config_opsysfile "${opsysfile}"
20699 if test "${HAVE_X_WINDOWS}" = "yes" ; then
20701 $as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h
20704 XOBJ
="xterm.o xfns.o xselect.o xrdb.o fontset.o xsmfns.o fringe.o image.o xsettings.o xgselect.o"
20706 if test "$HAVE_XFT" = "yes"; then
20707 FONT_OBJ
="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
20708 elif test "$HAVE_FREETYPE" = "yes"; then
20709 FONT_OBJ
="$FONT_OBJ ftfont.o ftxfont.o"
20719 if test "${USE_X_TOOLKIT}" != "none" ; then
20720 WIDGET_OBJ
=widget.o
20722 $as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h
20724 if test "${USE_X_TOOLKIT}" = "LUCID"; then
20726 $as_echo "#define USE_LUCID 1" >>confdefs.h
20728 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
20730 $as_echo "#define USE_MOTIF 1" >>confdefs.h
20735 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
20736 MOTIF_LIBW
="$MOTIF_LIBW -lXpm"
20740 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
20741 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
20742 MOTIF_LIBW
="MOTIF_LIBW -lXimp"
20746 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
20747 MOTIF_LIBW
="$MOTIF_LIBW -li18n"
20750 MOTIF_LIBW
="$MOTIF_LIBW $LIBXP"
20756 case "$USE_X_TOOLKIT" in
20757 MOTIF
) TOOLKIT_LIBW
="$MOTIF_LIBW" ;;
20758 LUCID
) TOOLKIT_LIBW
="$LUCID_LIBW" ;;
20759 none
) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW
="$GTK_LIBS" ;;
20763 if test "$USE_X_TOOLKIT" = "none"; then
20764 LIBXT_OTHER
="\$(LIBXSM)"
20765 OLDXMENU_TARGET
="really-oldXMenu"
20767 LIBXT_OTHER
="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext"
20768 OLDXMENU_TARGET
="really-lwlib"
20772 ## The X Menu stuff is present in the X10 distribution, but missing
20773 ## from X11. If we have X10, just use the installed library;
20774 ## otherwise, use our own copy.
20775 if test "${HAVE_X11}" = "yes" ; then
20777 $as_echo "#define HAVE_X11 1" >>confdefs.h
20780 if test "$USE_X_TOOLKIT" = "none"; then
20781 OLDXMENU
="\${oldXMenudir}/libXMenu11.a"
20783 OLDXMENU
="\${lwlibdir}/liblw.a"
20785 LIBXMENU
="\$(OLDXMENU)"
20786 LIBX_OTHER
="\$(LIBXT) \$(LIBX_EXTRA)"
20787 OLDXMENU_DEPS
="\${OLDXMENU} ../src/\${OLDXMENU}"
20789 ## For a syntactically valid Makefile; not actually used for anything.
20790 ## See comments in src/Makefile.in.
20792 ## FIXME This case (!HAVE_X11 && HAVE_X_WINDOWS) is no longer possible(?).
20793 if test "${HAVE_X_WINDOWS}" = "yes"; then
20802 if test "$HAVE_GTK" = "yes" ||
test "$HAVE_MENUS" != "yes"; then
20815 if test "${HAVE_MENUS}" = "yes" ; then
20817 $as_echo "#define HAVE_MENUS 1" >>confdefs.h
20821 if test "${GNU_MALLOC}" = "yes" ; then
20823 $as_echo "#define GNU_MALLOC 1" >>confdefs.h
20828 if test "${REL_ALLOC}" = "yes" ; then
20830 $as_echo "#define REL_ALLOC 1" >>confdefs.h
20833 test "$system_malloc" != "yes" && RALLOC_OBJ
=ralloc.o
20837 if test "$opsys" = "cygwin"; then
20838 CYGWIN_OBJ
="sheap.o"
20839 ## Cygwin differs because of its unexec().
20841 POST_ALLOC_OBJ
=lastfile.o
20844 PRE_ALLOC_OBJ
=lastfile.o
20853 aix4-2
) LD_SWITCH_SYSTEM_TEMACS
="-Wl,-bnodelcsect" ;;
20856 ## The -headerpad option tells ld (see man page) to leave room at the
20857 ## end of the header for adding load commands. Needed for dumping.
20858 ## 0x690 is the total size of 30 segment load commands (at 56
20859 ## each); under Cocoa 31 commands are required.
20860 if test "$HAVE_NS" = "yes"; then
20861 libs_nsgui
="-framework AppKit"
20862 headerpad_extra
=6C8
20865 headerpad_extra
=690
20867 LD_SWITCH_SYSTEM_TEMACS
="-prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra"
20869 ## This is here because src/Makefile.in did some extra fiddling around
20870 ## with LD_SWITCH_SYSTEM. The cpp logic was:
20871 ## #ifndef LD_SWITCH_SYSTEM
20872 ## #if !defined (__GNUC__) && ((defined (BSD_SYSTEM) && !defined (COFF)))
20873 ## Since all the *bsds define LD_SWITCH_SYSTEM, this simplifies to:
20874 ## not using gcc, darwin system not on an alpha (ie darwin, since
20875 ## darwin + alpha does not occur).
20876 ## Because this was done in src/Makefile.in, the resulting part of
20877 ## LD_SWITCH_SYSTEM was not used in configure (ie, in ac_link).
20878 ## It therefore seems cleaner to put this in LD_SWITCH_SYSTEM_TEMACS,
20879 ## rather than LD_SWITCH_SYSTEM.
20880 test "x$LD_SWITCH_SYSTEM" = "x" && test "x$GCC" != "xyes" && \
20881 LD_SWITCH_SYSTEM_TEMACS
="-X $LD_SWITCH_SYSTEM_TEMACS"
20884 ## LD_SWITCH_X_SITE_AUX is a -R option saying where to find X at run-time.
20885 ## When handled by cpp, this was in LD_SWITCH_SYSTEM. However, at
20886 ## the point where configure sourced the s/*.h file, LD_SWITCH_X_SITE_AUX
20887 ## had not yet been defined and was expanded to null. Hence LD_SWITCH_SYSTEM
20888 ## had different values in configure (in ac_link) and src/Makefile.in.
20889 ## It seems clearer therefore to put this piece in LD_SWITCH_SYSTEM_TEMACS.
20890 gnu-linux
) LD_SWITCH_SYSTEM_TEMACS
="\$(LD_SWITCH_X_SITE_AUX)" ;;
20892 *) LD_SWITCH_SYSTEM_TEMACS
= ;;
20895 if test "$NS_IMPL_GNUSTEP" = "yes"; then
20896 LD_SWITCH_SYSTEM_TEMACS
="${LD_SWITCH_SYSTEM_TEMACS} -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES} -lgnustep-gui -lgnustep-base -lobjc -lpthread"
20905 ## gnu: GNU needs its own crt0.
20906 aix4-2|cygwin|darwin|gnu|hpux
*|irix6-5|sol2
*|unixware
) ORDINARY_LINK
=yes ;;
20908 ## On post 1.3 releases of NetBSD, gcc -nostdlib also clears the
20909 ## library search parth, i.e. it won't search /usr/lib for libc and
20910 ## friends. Using -nostartfiles instead avoids this problem, and
20911 ## will also work on earlier NetBSD releases.
20912 netbsd|openbsd
) LD_FIRSTFLAG
="-nostartfiles" ;;
20914 ## macpcc: NAKAJI Hiroyuki <nakaji@tutrp.tut.ac.jp> says
20915 ## MkLinux/LinuxPPC needs this.
20916 ## ibms390x only supports opsys = gnu-linux so it can be added here.
20919 macppc|ibms390x
) LD_FIRSTFLAG
="-nostdlib" ;;
20925 if test "x$ORDINARY_LINK" = "xyes"; then
20929 $as_echo "#define ORDINARY_LINK 1" >>confdefs.h
20932 ## The system files defining neither ORDINARY_LINK nor LD_FIRSTFLAG are:
20933 ## freebsd, gnu-* not on macppc|ibms390x.
20934 elif test "x$GCC" = "xyes" && test "x$LD_FIRSTFLAG" = "x"; then
20936 ## Versions of GCC >= 2.0 put their library, libgcc.a, in obscure
20937 ## places that are difficult to figure out at make time. Fortunately,
20938 ## these same versions allow you to pass arbitrary flags on to the
20939 ## linker, so there is no reason not to use it as a linker.
20941 ## Well, it is not quite perfect. The "-nostdlib" keeps GCC from
20942 ## searching for libraries in its internal directories, so we have to
20943 ## ask GCC explicitly where to find libgcc.a (LIB_GCC below).
20944 LD_FIRSTFLAG
="-nostdlib"
20947 ## FIXME? What setting of EDIT_LDFLAGS should this have?
20948 test "$NS_IMPL_GNUSTEP" = "yes" && LD_FIRSTFLAG
="-rdynamic"
20953 ## FIXME? The logic here is not precisely the same as that above.
20954 ## There is no check here for a pre-defined LD_FIRSTFLAG.
20955 ## Should we only be setting LIB_GCC if LD ~ -nostdlib?
20957 if test "x$GCC" = "xyes" && test "x$ORDINARY_LINK" != "xyes"; then
20960 freebsd|netbsd|openbsd
) LIB_GCC
= ;;
20963 ## armin76@gentoo.org reported that the lgcc_s flag is necessary to
20964 ## build on ARM EABI under GNU/Linux. (Bug#5518)
20970 ## FIXME? s/gnu-linux.h used to define LIB_GCC as below, then
20971 ## immediately undefine it again and redefine it to empty.
20972 ## Was the C_SWITCH_X_SITE part really necessary?
20973 ## LIB_GCC=`$CC $C_SWITCH_X_SITE -print-libgcc-file-name`
20979 ## Ask GCC where to find libgcc.a.
20980 *) LIB_GCC
=`$CC -print-libgcc-file-name 2> /dev/null` ;;
20987 ## If we're using X11/GNUstep, define some consequences.
20988 if test "$HAVE_X_WINDOWS" = "yes" ||
test "$HAVE_NS" = "yes"; then
20990 $as_echo "#define HAVE_WINDOW_SYSTEM 1" >>confdefs.h
20993 $as_echo "#define HAVE_MOUSE 1" >>confdefs.h
20995 MOUSE_SUPPORT
="\$(REAL_MOUSE_SUPPORT)"
20996 TOOLTIP_SUPPORT
="\${lispsource}/mouse.elc"
20998 WINDOW_SUPPORT
="\$(BASE_WINDOW_SUPPORT)"
20999 test "$HAVE_X_WINDOWS" = "yes" && \
21000 WINDOW_SUPPORT
="$WINDOW_SUPPORT \$(X_WINDOW_SUPPORT)"
21010 #### Report on what we decided to do.
21011 #### Report GTK as a toolkit, even if it doesn't use Xt.
21012 #### It makes printing result more understandable as using GTK sets
21013 #### toolkit_scroll_bars to yes by default.
21014 if test "${HAVE_GTK}" = "yes"; then
21019 if test -n "$machfile"; then
21020 and_machfile
=" and \`${machfile}'"
21024 Configured for \`${canonical}'.
21026 Where should the build process find the source code? ${srcdir}
21027 What operating system and machine description files should Emacs use?
21028 \`${opsysfile}'${and_machfile}
21029 What compiler should emacs be built with? ${CC} ${CFLAGS}
21030 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
21031 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
21032 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
21033 What window system should Emacs use? ${window_system}
21034 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
21036 if test -n "${x_includes}"; then
21037 echo " Where do we find X Windows header files? ${x_includes}"
21039 echo " Where do we find X Windows header files? Standard dirs"
21041 if test -n "${x_libraries}"; then
21042 echo " Where do we find X Windows libraries? ${x_libraries}"
21044 echo " Where do we find X Windows libraries? Standard dirs"
21047 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
21048 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
21049 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
21050 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
21051 echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
21052 echo " Does Emacs use -lpng? ${HAVE_PNG}"
21053 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
21054 echo " Does Emacs use imagemagick? ${HAVE_IMAGEMAGICK}"
21056 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
21057 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
21058 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
21059 echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
21060 echo " Does Emacs use -lgnutls? ${HAVE_GNUTLS}"
21061 echo " Does Emacs use -lxml2? ${HAVE_LIBXML2}"
21063 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
21064 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
21065 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
21066 echo " Does Emacs use -lxft? ${HAVE_XFT}"
21068 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
21071 if test $USE_XASSERTS = yes; then
21072 echo " Compiling with asserts turned on."
21073 CPPFLAGS
="$CPPFLAGS -DXASSERTS=1"
21078 if test "$HAVE_NS" = "yes"; then
21080 echo "You must run \"make install\" in order to test the built application.
21081 The installed application will go to nextstep/Emacs.app and can be
21082 run or moved from there."
21083 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
21084 echo "The application will be fully self-contained."
21086 echo "The lisp resources for the application will be installed under ${prefix}.
21087 You may need to run \"make install\" with sudo. The application will fail
21088 to run if these resources are not installed."
21094 # Remove any trailing slashes in these variables.
21095 test "${prefix}" != NONE
&&
21096 prefix
=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
21097 test "${exec_prefix}" != NONE
&&
21098 exec_prefix
=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
21100 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 test/automated/Makefile"
21103 ac_config_commands
="$ac_config_commands mkdirs"
21106 ac_config_commands
="$ac_config_commands epaths"
21109 ac_config_commands
="$ac_config_commands gdbinit"
21112 cat >confcache
<<\_ACEOF
21113 # This file is a shell script that caches the results of configure
21114 # tests run on this system so they can be shared between configure
21115 # scripts and configure runs, see configure's option --config-cache.
21116 # It is not useful on other systems. If it contains results you don't
21117 # want to keep, you may remove or edit it.
21119 # config.status only pays attention to the cache file if you give it
21120 # the --recheck option to rerun configure.
21122 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21123 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21124 # following values.
21128 # The following way of writing the cache mishandles newlines in values,
21129 # but we know of no workaround that is simple, portable, and efficient.
21130 # So, we kill variables containing newlines.
21131 # Ultrix sh set writes to stderr and can't be redirected directly,
21132 # and sets the high bit in the cache file unless we assign to the vars.
21134 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21135 eval ac_val
=\$
$ac_var
21139 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
21140 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
21143 _ | IFS | as_nl
) ;; #(
21144 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
21145 *) { eval $ac_var=; unset $ac_var;} ;;
21151 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21152 *${as_nl}ac_space
=\
*)
21153 # `set' does not quote correctly, so add quotes: double-quote
21154 # substitution turns \\\\ into \\, and sed turns \\ into \.
21157 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21160 # `set' quotes correctly as required by POSIX, so do not add quotes.
21161 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21170 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21172 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21174 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
21175 if test -w "$cache_file"; then
21176 test "x$cache_file" != "x/dev/null" &&
21177 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
21178 $as_echo "$as_me: updating cache $cache_file" >&6;}
21179 cat confcache
>$cache_file
21181 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
21182 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21187 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
21188 # Let make expand exec_prefix.
21189 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
21191 DEFS
=-DHAVE_CONFIG_H
21195 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
21196 # 1. Remove the extension, and $U if already installed.
21197 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
21198 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
21199 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21200 # will be set to the directory where LIBOBJS objects are built.
21201 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21202 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
21204 LIBOBJS
=$ac_libobjs
21206 LTLIBOBJS
=$ac_ltlibobjs
21209 if test -n "$EXEEXT"; then
21211 am__EXEEXT_FALSE
='#'
21213 am__EXEEXT_TRUE
='#'
21217 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21218 as_fn_error
"conditional \"AMDEP\" was never defined.
21219 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21221 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21222 as_fn_error
"conditional \"am__fastdepCC\" was never defined.
21223 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21226 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
21227 as_fn_error
"conditional \"GL_COND_LIBTOOL\" was never defined.
21228 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21231 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
21232 as_fn_error
"conditional \"GL_GENERATE_STDINT_H\" was never defined.
21233 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21235 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
21236 as_fn_error
"conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
21237 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21239 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
21240 as_fn_error
"conditional \"GL_GENERATE_STDDEF_H\" was never defined.
21241 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21243 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
21244 as_fn_error
"conditional \"GL_GENERATE_STDINT_H\" was never defined.
21245 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21250 if test -n "$gl_LIBOBJS"; then
21251 # Remove the extension.
21252 sed_drop_objext
='s/\.o$//;s/\.obj$//'
21253 for i
in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
21254 gl_libobjs
="$gl_libobjs $i.$ac_objext"
21255 gl_ltlibobjs
="$gl_ltlibobjs $i.lo"
21258 gl_LIBOBJS
=$gl_libobjs
21260 gl_LTLIBOBJS
=$gl_ltlibobjs
21266 if test -n "$gltests_LIBOBJS"; then
21267 # Remove the extension.
21268 sed_drop_objext
='s/\.o$//;s/\.obj$//'
21269 for i
in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
21270 gltests_libobjs
="$gltests_libobjs $i.$ac_objext"
21271 gltests_ltlibobjs
="$gltests_ltlibobjs $i.lo"
21274 gltests_LIBOBJS
=$gltests_libobjs
21276 gltests_LTLIBOBJS
=$gltests_ltlibobjs
21280 : ${CONFIG_STATUS=./config.status}
21282 ac_clean_files_save
=$ac_clean_files
21283 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
21284 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
21285 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
21287 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
21289 # Generated by $as_me.
21290 # Run this file to recreate the current configuration.
21291 # Compiler output produced by configure, useful for debugging
21292 # configure, is in config.log if it exists.
21295 ac_cs_recheck=false
21298 SHELL=\${CONFIG_SHELL-$SHELL}
21301 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
21302 ## -------------------- ##
21303 ## M4sh Initialization. ##
21304 ## -------------------- ##
21306 # Be more Bourne compatible
21307 DUALCASE
=1; export DUALCASE
# for MKS sh
21308 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
21311 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21312 # is contrary to our usage. Disable this feature.
21313 alias -g '${1+"$@"}'='"$@"'
21314 setopt NO_GLOB_SUBST
21316 case `(set -o) 2>/dev/null` in #(
21328 # Printing a long string crashes Solaris 7 /usr/bin/printf.
21329 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
21330 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
21331 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
21332 # Prefer a ksh shell builtin over an external printf program on Solaris,
21333 # but without wasting forks for bash or zsh.
21334 if test -z "$BASH_VERSION$ZSH_VERSION" \
21335 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
21336 as_echo='print
-r --'
21337 as_echo_n='print
-rn --'
21338 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
21339 as_echo='printf %s
\n'
21340 as_echo_n='printf %s
'
21342 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
21343 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
21344 as_echo_n='/usr
/ucb
/echo -n'
21346 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
21347 as_echo_n_body='eval
21351 expr "X$arg" : "X\\(.*\\)$as_nl";
21352 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
21354 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
21356 export as_echo_n_body
21357 as_echo_n='sh
-c $as_echo_n_body as_echo
'
21359 export as_echo_body
21360 as_echo='sh
-c $as_echo_body as_echo
'
21363 # The user is always right.
21364 if test "${PATH_SEPARATOR+set}" != set; then
21366 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
21367 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
21374 # We need space, tab and new line, in precisely that order. Quoting is
21375 # there to prevent editors from complaining about space-tab.
21376 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21377 # splitting by setting IFS to empty value.)
21380 # Find who we are. Look in the path if we contain no directory separator.
21382 *[\\/]* ) as_myself=$0 ;;
21383 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21384 for as_dir in $PATH
21387 test -z "$as_dir" && as_dir=.
21388 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21394 # We did not find ourselves, most probably we were run as `sh COMMAND'
21395 # in which case we are not to be found in the path.
21396 if test "x$as_myself" = x
; then
21399 if test ! -f "$as_myself"; then
21400 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21404 # Unset variables that we do not need and which cause bugs (e.g. in
21405 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
21406 # suppresses any "Segmentation fault" message there. '((' could
21407 # trigger a bug in pdksh 5.2.14.
21408 for as_var
in BASH_ENV ENV MAIL MAILPATH
21409 do eval test x\
${$as_var+set} = xset \
21410 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
21423 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
21426 # as_fn_error ERROR [LINENO LOG_FD]
21427 # ---------------------------------
21428 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
21429 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
21430 # script with status $?, using 1 if that was 0.
21433 as_status
=$?
; test $as_status -eq 0 && as_status
=1
21435 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
21436 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
21438 $as_echo "$as_me: error: $1" >&2
21439 as_fn_exit
$as_status
21443 # as_fn_set_status STATUS
21444 # -----------------------
21445 # Set $? to STATUS, without forking.
21446 as_fn_set_status
()
21449 } # as_fn_set_status
21451 # as_fn_exit STATUS
21452 # -----------------
21453 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
21457 as_fn_set_status
$1
21463 # Portably unset VAR.
21466 { eval $1=; unset $1;}
21468 as_unset
=as_fn_unset
21469 # as_fn_append VAR VALUE
21470 # ----------------------
21471 # Append the text in VALUE to the end of the definition contained in VAR. Take
21472 # advantage of any shell optimizations that allow amortized linear growth over
21473 # repeated appends, instead of the typical quadratic growth present in naive
21475 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
21476 eval 'as_fn_append ()
21487 # as_fn_arith ARG...
21488 # ------------------
21489 # Perform arithmetic evaluation on the ARGs, and store the result in the
21490 # global $as_val. Take advantage of shells that can avoid forks. The arguments
21491 # must be portable across $(()) and expr.
21492 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
21493 eval 'as_fn_arith ()
21500 as_val
=`expr "$@" || test $? -eq 1`
21505 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
21506 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
21512 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21513 as_basename
=basename
21518 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
21524 as_me
=`$as_basename -- "$0" ||
21525 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21526 X"$0" : 'X\(//\)$' \| \
21527 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21529 sed '/^.*\/\([^/][^/]*\)\/*$/{
21543 # Avoid depending upon Character Ranges.
21544 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
21545 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21546 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
21547 as_cr_digits
='0123456789'
21548 as_cr_alnum
=$as_cr_Letters$as_cr_digits
21550 ECHO_C
= ECHO_N
= ECHO_T
=
21551 case `echo -n x` in #(((((
21553 case `echo 'xy\c'` in
21554 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
21556 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
21563 rm -f conf$$ conf$$.exe conf$$.
file
21564 if test -d conf$$.dir
; then
21565 rm -f conf$$.dir
/conf$$.
file
21568 mkdir conf$$.dir
2>/dev
/null
21570 if (echo >conf$$.
file) 2>/dev
/null
; then
21571 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
21573 # ... but there are two gotchas:
21574 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21575 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21576 # In both cases, we have to default to `cp -p'.
21577 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
21579 elif ln conf$$.
file conf$$
2>/dev
/null
; then
21587 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
21588 rmdir conf$$.dir
2>/dev
/null
21593 # Create "$as_dir" as a directory, including parents if necessary.
21598 -*) as_dir
=.
/$as_dir;;
21600 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
21604 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
21605 *) as_qdir
=$as_dir;;
21607 as_dirs
="'$as_qdir' $as_dirs"
21608 as_dir
=`$as_dirname -- "$as_dir" ||
21609 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21610 X"$as_dir" : 'X\(//\)[^/]' \| \
21611 X"$as_dir" : 'X\(//\)$' \| \
21612 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21613 $as_echo X"$as_dir" |
21614 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21618 /^X\(\/\/\)[^/].*/{
21631 test -d "$as_dir" && break
21633 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
21634 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
21638 if mkdir
-p .
2>/dev
/null
; then
21639 as_mkdir_p
='mkdir -p "$as_dir"'
21641 test -d .
/-p && rmdir .
/-p
21645 if test -x / >/dev
/null
2>&1; then
21646 as_test_x
='test -x'
21648 if ls -dL / >/dev
/null
2>&1; then
21655 if test -d "$1"; then
21661 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
21662 ???[sx]*):;;*)false;;esac;fi
21666 as_executable_p
=$as_test_x
21668 # Sed expression to map a string onto a valid CPP name.
21669 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21671 # Sed expression to map a string onto a valid variable name.
21672 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21676 ## ----------------------------------- ##
21677 ## Main body of $CONFIG_STATUS script. ##
21678 ## ----------------------------------- ##
21680 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
21682 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
21683 # Save the log message, to keep $0 and so on meaningful, and to
21684 # report actual input values of CONFIG_FILES etc. instead of their
21685 # values after options handling.
21687 This file was extended by emacs $as_me 24.0.50, which was
21688 generated by GNU Autoconf 2.65. Invocation command line was
21690 CONFIG_FILES = $CONFIG_FILES
21691 CONFIG_HEADERS = $CONFIG_HEADERS
21692 CONFIG_LINKS = $CONFIG_LINKS
21693 CONFIG_COMMANDS = $CONFIG_COMMANDS
21696 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21701 case $ac_config_files in *"
21702 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
21705 case $ac_config_headers in *"
21706 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
21710 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21711 # Files that config.status was made for.
21712 config_files="$ac_config_files"
21713 config_headers="$ac_config_headers"
21714 config_commands="$ac_config_commands"
21718 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
21720 \`$as_me' instantiates files and other configuration actions
21721 from templates according to the current configuration. Unless the files
21722 and actions are specified as TAGs, all are instantiated by default.
21724 Usage: $0 [OPTION]... [TAG]...
21726 -h, --help print this help, then exit
21727 -V, --version print version number and configuration settings, then exit
21728 --config print configuration, then exit
21729 -q, --quiet, --silent
21730 do not print progress messages
21731 -d, --debug don't remove temporary files
21732 --recheck update $as_me by reconfiguring in the same conditions
21733 --file=FILE[:TEMPLATE]
21734 instantiate the configuration file FILE
21735 --header=FILE[:TEMPLATE]
21736 instantiate the configuration header FILE
21738 Configuration files:
21741 Configuration headers:
21744 Configuration commands:
21747 Report bugs to the package provider."
21750 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21751 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
21753 emacs config.status 24.0.50
21754 configured by $0, generated by GNU Autoconf 2.65,
21755 with options \\"\$ac_cs_config\\"
21757 Copyright (C) 2009 Free Software Foundation, Inc.
21758 This config.status script is free software; the Free Software Foundation
21759 gives unlimited permission to copy, distribute and modify it."
21766 test -n "\$AWK" || AWK=awk
21769 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
21770 # The default lists apply if the user does not specify any file.
21776 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
21777 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
21788 # Handling of the options.
21789 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
21791 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
21792 $as_echo "$ac_cs_version"; exit ;;
21793 --config |
--confi |
--conf |
--con |
--co |
--c )
21794 $as_echo "$ac_cs_config"; exit ;;
21795 --debug |
--debu |
--deb |
--de |
--d |
-d )
21797 --file |
--fil |
--fi |
--f )
21800 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21802 as_fn_append CONFIG_FILES
" '$ac_optarg'"
21803 ac_need_defaults
=false
;;
21804 --header |
--heade |
--head |
--hea )
21807 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21809 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
21810 ac_need_defaults
=false
;;
21812 # Conflict between --help and --header
21813 as_fn_error
"ambiguous option: \`$1'
21814 Try \`$0 --help' for more information.";;
21815 --help |
--hel |
-h )
21816 $as_echo "$ac_cs_usage"; exit ;;
21817 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
21818 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
21821 # This is an error.
21822 -*) as_fn_error
"unrecognized option: \`$1'
21823 Try \`$0 --help' for more information." ;;
21825 *) as_fn_append ac_config_targets
" $1"
21826 ac_need_defaults
=false
;;
21832 ac_configure_extra_args
=
21834 if $ac_cs_silent; then
21836 ac_configure_extra_args
="$ac_configure_extra_args --silent"
21840 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21841 if \$ac_cs_recheck; then
21842 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21844 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
21845 CONFIG_SHELL='$SHELL'
21846 export CONFIG_SHELL
21851 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
21855 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21856 ## Running $as_me. ##
21862 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21866 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21867 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPPFLAGS="$CPPFLAGS"
21871 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
21873 # Handling of arguments.
21874 for ac_config_target
in $ac_config_targets
21876 case $ac_config_target in
21877 "src/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
21878 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
21879 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
21880 "lib/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/Makefile" ;;
21881 "lib-src/Makefile") CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile" ;;
21882 "oldXMenu/Makefile") CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
21883 "doc/emacs/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/emacs/Makefile" ;;
21884 "doc/misc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/misc/Makefile" ;;
21885 "doc/lispintro/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispintro/Makefile" ;;
21886 "doc/lispref/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispref/Makefile" ;;
21887 "src/Makefile") CONFIG_FILES
="$CONFIG_FILES src/Makefile" ;;
21888 "lwlib/Makefile") CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
21889 "lisp/Makefile") CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
21890 "leim/Makefile") CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
21891 "test/automated/Makefile") CONFIG_FILES
="$CONFIG_FILES test/automated/Makefile" ;;
21892 "mkdirs") CONFIG_COMMANDS
="$CONFIG_COMMANDS mkdirs" ;;
21893 "epaths") CONFIG_COMMANDS
="$CONFIG_COMMANDS epaths" ;;
21894 "gdbinit") CONFIG_COMMANDS
="$CONFIG_COMMANDS gdbinit" ;;
21896 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
21901 # If the user did not use the arguments to specify the items to instantiate,
21902 # then the envvar interface is used. Set only those that are not.
21903 # We use the long form for the default assignment because of an extremely
21904 # bizarre bug on SunOS 4.1.3.
21905 if $ac_need_defaults; then
21906 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
21907 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
21908 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
21911 # Have a temporary directory for convenience. Make it in the build tree
21912 # simply because there is no reason against having it here, and in addition,
21913 # creating and moving files from /tmp can sometimes cause problems.
21914 # Hook for its removal unless debugging.
21915 # Note that there is a small window in which the directory will not be cleaned:
21916 # after its creation but before its name has been assigned to `$tmp'.
21920 trap 'exit_status=$?
21921 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21923 trap 'as_fn_exit 1' 1 2 13 15
21925 # Create a (secure) tmp directory for tmp files.
21928 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21929 test -n "$tmp" && test -d "$tmp"
21932 tmp
=.
/conf$$
-$RANDOM
21933 (umask 077 && mkdir
"$tmp")
21934 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
21936 # Set up the scripts for CONFIG_FILES section.
21937 # No need to generate them if there are no CONFIG_FILES.
21938 # This happens for instance with `./config.status config.h'.
21939 if test -n "$CONFIG_FILES"; then
21941 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
21942 ac_cs_awk_getline
=:
21943 ac_cs_awk_pipe_init
=
21944 ac_cs_awk_read_file
='
21945 while ((getline aline < (F[key])) > 0)
21948 ac_cs_awk_pipe_fini
=
21950 ac_cs_awk_getline
=false
21951 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
21952 ac_cs_awk_read_file
='
21954 print "cat " F[key] " &&"
21955 '$ac_cs_awk_pipe_init
21956 # The final `:' finishes the AND list.
21957 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
21959 ac_cr
=`echo X | tr X '\015'`
21960 # On cygwin, bash can eat \r inside `` if the user requested igncr.
21961 # But we know of no other shell where ac_cr would be empty at this
21962 # point, so we can use a bashism as a fallback.
21963 if test "x$ac_cr" = x
; then
21964 eval ac_cr
=\$
\'\\r
\'
21966 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
21967 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
21970 ac_cs_awk_cr
=$ac_cr
21973 echo 'BEGIN {' >"$tmp/subs1.awk" &&
21976 # Create commands to substitute file output variables.
21978 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
21979 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
21980 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
21983 } >conf$
$files.sh
&&
21984 . .
/conf$
$files.sh ||
21985 as_fn_error
"could not make $CONFIG_STATUS" "$LINENO" 5
21986 rm -f conf$
$files.sh
21989 echo "cat >conf$$subs.awk <<_ACEOF" &&
21990 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
21992 } >conf$$subs.sh ||
21993 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
21994 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
21996 for ac_last_try in false false false false false :; do
21997 . ./conf$$subs.sh ||
21998 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
22000 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
22001 if test $ac_delim_n = $ac_delim_num; then
22003 elif $ac_last_try; then
22004 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
22006 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
22009 rm -f conf$$subs.sh
22011 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22012 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
22016 s/^/S["/; s
/!.
*/"]=/
22026 s/\(.\{148\}\)..*/\1/
22028 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
22033 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
22040 s/\(.\{148\}\)..*/\1/
22042 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
22046 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
22051 ' <conf$$subs.awk | sed '
22056 ' >>$CONFIG_STATUS || ac_write_fail=1
22057 rm -f conf$$subs.awk
22058 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22060 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
22061 for (key in S) S_is_set[key] = 1
22063 \$ac_cs_awk_pipe_init
22067 nfields = split(line, field, "@
")
22069 len = length(field[1])
22070 for (i = 2; i < nfields; i++) {
22072 keylen = length(key)
22073 if (S_is_set[key]) {
22075 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
22076 len += length(value) + length(field[++i])
22081 if (nfields == 3 && !substed) {
22083 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
22084 \$ac_cs_awk_read_file
22090 \$ac_cs_awk_pipe_fini
22093 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22094 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
22095 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
22098 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
22099 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
22102 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22103 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
22104 # trailing colons and then remove the whole line if VPATH becomes empty
22105 # (actually we leave an empty line to preserve line numbers).
22106 if test "x
$srcdir" = x.; then
22107 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22108 s/:*\$(srcdir):*/:/
22109 s/:*\${srcdir}:*/:/
22111 s/^\([^=]*=[ ]*\):*/\1/
22117 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22118 fi # test -n "$CONFIG_FILES"
22120 # Set up the scripts for CONFIG_HEADERS section.
22121 # No need to generate them if there are no CONFIG_HEADERS.
22122 # This happens for instance with `./config.status Makefile'.
22123 if test -n "$CONFIG_HEADERS"; then
22124 cat >"$tmp/defines.
awk" <<\_ACAWK ||
22128 # Transform confdefs.h into an awk script `defines.awk', embedded as
22129 # here-document in config.status, that substitutes the proper values into
22130 # config.h.in to produce config.h.
22132 # Create a delimiter string that does not exist in confdefs.h, to ease
22133 # handling of long lines.
22135 for ac_last_try in false false :; do
22136 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
22137 if test -z "$ac_t"; then
22139 elif $ac_last_try; then
22140 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
22142 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
22146 # For the awk script, D is an array of macro values keyed by name,
22147 # likewise P contains macro parameters if any. Preserve backslash
22148 # newline sequences.
22150 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22152 s/.\{148\}/&'"$ac_delim"'/g
22155 s/^[ ]*#[ ]*define[ ][ ]*/ /
22162 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
22164 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
22168 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
22169 D["\
1"]=" \
3\\\\\\n
"\\/p
22171 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
22176 s/.\{148\}/&'"$ac_delim"'/g
22181 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
22184 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
22186 ' <confdefs.h | sed '
22187 s/'"$ac_delim"'/"\\\
22188 "/g' >>$CONFIG_STATUS || ac_write_fail=1
22190 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22191 for (key in D) D_is_set[key] = 1
22194 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
22196 split(line, arg, " ")
22197 if (arg[1] == "#") {
22201 defundef
= substr
(arg
[1], 2)
22204 split(mac1
, mac2
, "(") #)
22206 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
22207 if (D_is_set
[macro
]) {
22208 # Preserve the white space surrounding the "#".
22209 print prefix
"define", macro P
[macro
] D
[macro
]
22212 # Replace #undef with comments. This is necessary, for example,
22213 # in the case of _POSIX_SOURCE, which is predefined and required
22214 # on some systems where configure will not decide to define it.
22215 if (defundef
== "undef") {
22216 print
"/*", prefix defundef
, macro
, "*/"
22224 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
22225 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
22226 fi # test -n "$CONFIG_HEADERS"
22229 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
22234 :[FHLC
]) ac_mode
=$ac_tag; continue;;
22236 case $ac_mode$ac_tag in
22238 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
22239 :[FH
]-) ac_tag
=-:-;;
22240 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
22257 -) ac_f
="$tmp/stdin";;
22258 *) # Look for the file first in the build tree, then in the source tree
22259 # (if the path is not absolute). The absolute path cannot be DOS-style,
22260 # because $ac_f cannot contain `:'.
22264 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
22266 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
22268 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
22269 as_fn_append ac_file_inputs
" '$ac_f'"
22272 # Let's still pretend it is `configure' which instantiates (i.e., don't
22273 # use $as_me), people would be surprised to read:
22274 # /* config.h. Generated by config.status. */
22275 configure_input
='Generated from '`
22276 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
22278 if test x
"$ac_file" != x-
; then
22279 configure_input
="$ac_file. $configure_input"
22280 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
22281 $as_echo "$as_me: creating $ac_file" >&6;}
22283 # Neutralize special characters interpreted by sed in replacement strings.
22284 case $configure_input in #(
22285 *\
&* |
*\|
* |
*\\* )
22286 ac_sed_conf_input
=`$as_echo "$configure_input" |
22287 sed 's/[\\\\&|]/\\\\&/g'`;; #(
22288 *) ac_sed_conf_input
=$configure_input;;
22292 *:-:* |
*:-) cat >"$tmp/stdin" \
22293 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
22298 ac_dir
=`$as_dirname -- "$ac_file" ||
22299 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22300 X"$ac_file" : 'X\(//\)[^/]' \| \
22301 X"$ac_file" : 'X\(//\)$' \| \
22302 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22303 $as_echo X"$ac_file" |
22304 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22308 /^X\(\/\/\)[^/].*/{
22321 as_dir
="$ac_dir"; as_fn_mkdir_p
22325 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
22327 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
22328 # A ".." for each directory in $ac_dir_suffix.
22329 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
22330 case $ac_top_builddir_sub in
22331 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
22332 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
22335 ac_abs_top_builddir
=$ac_pwd
22336 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
22337 # for backward compatibility:
22338 ac_top_builddir
=$ac_top_build_prefix
22341 .
) # We are building in place.
22343 ac_top_srcdir
=$ac_top_builddir_sub
22344 ac_abs_top_srcdir
=$ac_pwd ;;
22345 [\\/]* | ?
:[\\/]* ) # Absolute name.
22346 ac_srcdir
=$srcdir$ac_dir_suffix;
22347 ac_top_srcdir
=$srcdir
22348 ac_abs_top_srcdir
=$srcdir ;;
22349 *) # Relative name.
22350 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
22351 ac_top_srcdir
=$ac_top_build_prefix$srcdir
22352 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
22354 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
22364 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
22365 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
22367 ac_MKDIR_P
=$MKDIR_P
22369 [\\/$
]* | ?
:[\\/]* ) ;;
22370 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
22374 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
22375 # If the template does not know about datarootdir, expand it.
22376 # FIXME: This hack should be removed a few years after 2.60.
22377 ac_datarootdir_hack
=; ac_datarootdir_seen
=
22388 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
22389 *datarootdir
*) ac_datarootdir_seen
=yes;;
22390 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
22391 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22392 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22394 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22395 ac_datarootdir_hack='
22396 s&@datadir@&$datadir&g
22397 s&@docdir@&$docdir&g
22398 s&@infodir@&$infodir&g
22399 s&@localedir@&$localedir&g
22400 s&@mandir@&$mandir&g
22401 s&\\\${datarootdir}&$datarootdir&g' ;;
22405 # Neutralize VPATH when `$srcdir' = `.'.
22406 # Shell code in configure.ac might set extrasub.
22407 # FIXME: do we really want to maintain this feature?
22408 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22409 ac_sed_extra="$ac_vpsub
22412 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
22414 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
22415 s|@configure_input@|
$ac_sed_conf_input|
;t t
22416 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
22417 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
22418 s
&@srcdir@
&$ac_srcdir&;t t
22419 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
22420 s
&@top_srcdir@
&$ac_top_srcdir&;t t
22421 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
22422 s
&@builddir@
&$ac_builddir&;t t
22423 s
&@abs_builddir@
&$ac_abs_builddir&;t t
22424 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
22425 s
&@INSTALL@
&$ac_INSTALL&;t t
22426 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
22427 $ac_datarootdir_hack
22429 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
22430 if $ac_cs_awk_getline; then
22431 $AWK -f "$tmp/subs.
awk"
22433 $AWK -f "$tmp/subs.
awk" | $SHELL
22435 || as_fn_error "could not create
$ac_file" "$LINENO" 5
22437 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22438 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
22439 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
22440 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
22441 which seems to be undefined. Please make sure it is defined." >&5
22442 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
22443 which seems to be undefined. Please make sure it is defined." >&2;}
22447 -) cat "$tmp/out" && rm -f "$tmp/out";;
22448 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
22450 || as_fn_error "could not create $ac_file" "$LINENO" 5
22456 if test x"$ac_file" != x-; then
22458 $as_echo "/* $configure_input */" \
22459 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
22460 } >"$tmp/config.h" \
22461 || as_fn_error "could not create $ac_file" "$LINENO" 5
22462 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
22463 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
22464 $as_echo "$as_me: $ac_file is unchanged" >&6;}
22467 mv "$tmp/config.h" "$ac_file" \
22468 || as_fn_error "could not create $ac_file" "$LINENO" 5
22471 $as_echo "/* $configure_input */" \
22472 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
22473 || as_fn_error "could not create -" "$LINENO" 5
22475 # Compute "$ac_file"'s index
in $config_headers.
22478 for _am_header
in $config_headers :; do
22479 case $_am_header in
22480 $_am_arg |
$_am_arg:* )
22483 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
22486 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
22487 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22488 X"$_am_arg" : 'X\(//\)[^/]' \| \
22489 X"$_am_arg" : 'X\(//\)$' \| \
22490 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
22491 $as_echo X"$_am_arg" |
22492 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22496 /^X\(\/\/\)[^/].*/{
22508 s/.*/./; q'`/stamp-h
$_am_stamp_count
22511 :C
) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
22512 $as_echo "$as_me: executing $ac_file commands" >&6;}
22517 case $ac_file$ac_mode in
22518 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
{
22519 # Autoconf 2.62 quotes --file arguments for eval, but not when files
22520 # are listed without --file. Let's play safe and only enable the eval
22521 # if we detect the quoting.
22522 case $CONFIG_FILES in
22523 *\'*) eval set x
"$CONFIG_FILES" ;;
22524 *) set x
$CONFIG_FILES ;;
22529 # Strip MF so we end up with the name of the file.
22530 mf
=`echo "$mf" | sed -e 's/:.*$//'`
22531 # Check whether this is an Automake generated Makefile or not.
22532 # We used to match only the files named `Makefile.in', but
22533 # some people rename them; so instead we look at the file content.
22534 # Grep'ing the first line is not enough: some people post-process
22535 # each Makefile.in and add a new line on top of each file to say so.
22536 # Grep'ing the whole file is not good either: AIX grep has a line
22537 # limit of 2048, but all sed's we know have understand at least 4000.
22538 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
22539 dirpart
=`$as_dirname -- "$mf" ||
22540 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22541 X"$mf" : 'X\(//\)[^/]' \| \
22542 X"$mf" : 'X\(//\)$' \| \
22543 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
22545 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22549 /^X\(\/\/\)[^/].*/{
22565 # Extract the definition of DEPDIR, am__include, and am__quote
22566 # from the Makefile without running `make'.
22567 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
22568 test -z "$DEPDIR" && continue
22569 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
22570 test -z "am__include" && continue
22571 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
22572 # When using ansi2knr, U may be empty or an underscore; expand it
22573 U
=`sed -n 's/^U = //p' < "$mf"`
22574 # Find all dependency output files, they are included files with
22575 # $(DEPDIR) in their names. We invoke sed twice because it is the
22576 # simplest approach to changing $(DEPDIR) to its actual value in the
22578 for file in `sed -n "
22579 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22580 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
22581 # Make sure the directory exists.
22582 test -f "$dirpart/$file" && continue
22583 fdir
=`$as_dirname -- "$file" ||
22584 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22585 X"$file" : 'X\(//\)[^/]' \| \
22586 X"$file" : 'X\(//\)$' \| \
22587 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
22588 $as_echo X"$file" |
22589 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22593 /^X\(\/\/\)[^/].*/{
22606 as_dir
=$dirpart/$fdir; as_fn_mkdir_p
22607 # echo "creating $dirpart/$file"
22608 echo '# dummy' > "$dirpart/$file"
22614 for dir
in etc lisp
; do
22615 test -d ${dir} || mkdir
${dir}
22619 echo creating src
/epaths.h
22620 ${MAKE-make} epaths-force
22623 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
22624 echo creating src
/.gdbinit
22625 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
22635 ac_clean_files
=$ac_clean_files_save
22637 test $ac_write_fail = 0 ||
22638 as_fn_error
"write failure creating $CONFIG_STATUS" "$LINENO" 5
22641 # configure is writing to config.log, and then calls config.status.
22642 # config.status does its own redirection, appending to config.log.
22643 # Unfortunately, on DOS this fails, as config.log is still kept open
22644 # by configure, so config.status won't be able to write to it; its
22645 # output is simply discarded. So we exec the FD to /dev/null,
22646 # effectively closing config.log, so it can be properly (re)opened and
22647 # appended to by config.status. When coming back to configure, we
22648 # need to make the FD available again.
22649 if test "$no_create" != yes; then
22651 ac_config_status_args
=
22652 test "$silent" = yes &&
22653 ac_config_status_args
="$ac_config_status_args --quiet"
22655 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
22657 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22658 # would make configure fail if this is the last instruction.
22659 $ac_cs_success || as_fn_exit $?
22661 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
22662 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22663 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}