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>
595 gl_getopt_required
=POSIX
596 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
694 REPLACE_OBSTACK_PRINTF
716 HAVE_DECL_OBSTACK_PRINTF
722 GNULIB_VSPRINTF_POSIX
726 GNULIB_VFPRINTF_POSIX
731 GNULIB_STDIO_H_SIGPIPE
744 GNULIB_OBSTACK_PRINTF_POSIX
745 GNULIB_OBSTACK_PRINTF
771 HAVE_SIGNED_SIG_ATOMIC_T
774 BITSIZEOF_SIG_ATOMIC_T
780 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
785 HAVE_UNSIGNED_LONG_LONG_INT
787 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
794 APPLE_UNIVERSAL_BUILD
802 HAVE_DECL_LOCALTIME_R
844 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
848 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
850 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
851 UNISTD_H_HAVE_WINSOCK2_H
870 REPLACE_GETDOMAINNAME
880 HAVE_DECL_GETUSERSHELL
881 HAVE_DECL_GETPAGESIZE
883 HAVE_DECL_GETDOMAINNAME
918 GNULIB_UNISTD_H_SIGPIPE
919 GNULIB_UNISTD_H_GETOPT
966 REPLACE_CANONICALIZE_FILE_NAME
971 HAVE_STRUCT_RANDOM_DATA
990 HAVE_CANONICALIZE_FILE_NAME
1003 GNULIB_REALLOC_POSIX
1017 GNULIB_CANONICALIZE_FILE_NAME
1021 GL_COND_LIBTOOL_FALSE
1022 GL_COND_LIBTOOL_TRUE
1071 LD_SWITCH_X_SITE_AUX_RPATH
1072 LD_SWITCH_X_SITE_AUX
1133 INSTALL_STRIP_PROGRAM
1175 program_transform_name
1186 ac_subst_files
='deps_frag
1189 enable_option_checking
1211 with_toolkit_scroll_bars
1222 with_pkg_config_prog
1226 enable_ns_self_contained
1228 enable_maintainer_mode
1229 enable_locallisppath
1231 enable_use_lisp_union_type
1234 enable_dependency_tracking
1238 ac_precious_vars
='build_alias
1250 # Initialize some variables set by options.
1252 ac_init_version
=false
1253 ac_unrecognized_opts
=
1254 ac_unrecognized_sep
=
1255 # The variables have the same names as the options, with
1256 # dashes changed to underlines.
1257 cache_file
=/dev
/null
1264 program_transform_name
=s
,x
,x
,
1272 # Installation directory options.
1273 # These are left unexpanded so users can "make install exec_prefix=/foo"
1274 # and all the variables that are supposed to be based on exec_prefix
1275 # by default will actually change.
1276 # Use braces instead of parens because sh, perl, etc. also accept them.
1277 # (The list follows the same order as the GNU Coding Standards.)
1278 bindir
='${exec_prefix}/bin'
1279 sbindir
='${exec_prefix}/sbin'
1280 libexecdir
='${exec_prefix}/libexec'
1281 datarootdir
='${prefix}/share'
1282 datadir
='${datarootdir}'
1283 sysconfdir
='${prefix}/etc'
1284 sharedstatedir
='${prefix}/com'
1285 localstatedir
='${prefix}/var'
1286 includedir
='${prefix}/include'
1287 oldincludedir
='/usr/include'
1288 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
1289 infodir
='${datarootdir}/info'
1294 libdir
='${exec_prefix}/lib'
1295 localedir
='${datarootdir}/locale'
1296 mandir
='${datarootdir}/man'
1302 # If the previous option needs an argument, assign it.
1303 if test -n "$ac_prev"; then
1304 eval $ac_prev=\
$ac_option
1310 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1314 # Accept the important Cygnus configure options, so we can diagnose typos.
1316 case $ac_dashdash$ac_option in
1320 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1322 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1323 bindir
=$ac_optarg ;;
1325 -build |
--build |
--buil |
--bui |
--bu)
1326 ac_prev
=build_alias
;;
1327 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1328 build_alias
=$ac_optarg ;;
1330 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1331 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1332 ac_prev
=cache_file
;;
1333 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1334 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1335 cache_file
=$ac_optarg ;;
1337 --config-cache |
-C)
1338 cache_file
=config.cache
;;
1340 -datadir |
--datadir |
--datadi |
--datad)
1342 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1343 datadir
=$ac_optarg ;;
1345 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1346 |
--dataroo |
--dataro |
--datar)
1347 ac_prev
=datarootdir
;;
1348 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1349 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1350 datarootdir
=$ac_optarg ;;
1352 -disable-* |
--disable-*)
1353 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1354 # Reject names that are not valid shell variable names.
1355 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1356 as_fn_error
"invalid feature name: $ac_useropt"
1357 ac_useropt_orig
=$ac_useropt
1358 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1359 case $ac_user_opts in
1361 "enable_
$ac_useropt"
1363 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1364 ac_unrecognized_sep
=', ';;
1366 eval enable_
$ac_useropt=no
;;
1368 -docdir |
--docdir |
--docdi |
--doc |
--do)
1370 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1371 docdir
=$ac_optarg ;;
1373 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1375 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1376 dvidir
=$ac_optarg ;;
1378 -enable-* |
--enable-*)
1379 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1380 # Reject names that are not valid shell variable names.
1381 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1382 as_fn_error
"invalid feature name: $ac_useropt"
1383 ac_useropt_orig
=$ac_useropt
1384 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1385 case $ac_user_opts in
1387 "enable_
$ac_useropt"
1389 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1390 ac_unrecognized_sep
=', ';;
1392 eval enable_
$ac_useropt=\
$ac_optarg ;;
1394 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1395 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1396 |
--exec |
--exe |
--ex)
1397 ac_prev
=exec_prefix
;;
1398 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1399 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1400 |
--exec=* |
--exe=* |
--ex=*)
1401 exec_prefix
=$ac_optarg ;;
1403 -gas |
--gas |
--ga |
--g)
1404 # Obsolete; use --with-gas.
1407 -help |
--help |
--hel |
--he |
-h)
1408 ac_init_help
=long
;;
1409 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1410 ac_init_help
=recursive
;;
1411 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1412 ac_init_help
=short
;;
1414 -host |
--host |
--hos |
--ho)
1415 ac_prev
=host_alias
;;
1416 -host=* |
--host=* |
--hos=* |
--ho=*)
1417 host_alias
=$ac_optarg ;;
1419 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1421 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1423 htmldir
=$ac_optarg ;;
1425 -includedir |
--includedir |
--includedi |
--included |
--include \
1426 |
--includ |
--inclu |
--incl |
--inc)
1427 ac_prev
=includedir
;;
1428 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1429 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1430 includedir
=$ac_optarg ;;
1432 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1434 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1435 infodir
=$ac_optarg ;;
1437 -libdir |
--libdir |
--libdi |
--libd)
1439 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1440 libdir
=$ac_optarg ;;
1442 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1443 |
--libexe |
--libex |
--libe)
1444 ac_prev
=libexecdir
;;
1445 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1446 |
--libexe=* |
--libex=* |
--libe=*)
1447 libexecdir
=$ac_optarg ;;
1449 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1450 ac_prev
=localedir
;;
1451 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1452 localedir
=$ac_optarg ;;
1454 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1455 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1456 ac_prev
=localstatedir
;;
1457 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1458 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1459 localstatedir
=$ac_optarg ;;
1461 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1463 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1464 mandir
=$ac_optarg ;;
1466 -nfp |
--nfp |
--nf)
1467 # Obsolete; use --without-fp.
1470 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1471 |
--no-cr |
--no-c |
-n)
1474 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1475 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1478 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1479 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1480 |
--oldin |
--oldi |
--old |
--ol |
--o)
1481 ac_prev
=oldincludedir
;;
1482 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1483 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1484 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1485 oldincludedir
=$ac_optarg ;;
1487 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1489 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1490 prefix
=$ac_optarg ;;
1492 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1493 |
--program-pre |
--program-pr |
--program-p)
1494 ac_prev
=program_prefix
;;
1495 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1496 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1497 program_prefix
=$ac_optarg ;;
1499 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1500 |
--program-suf |
--program-su |
--program-s)
1501 ac_prev
=program_suffix
;;
1502 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1503 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1504 program_suffix
=$ac_optarg ;;
1506 -program-transform-name |
--program-transform-name \
1507 |
--program-transform-nam |
--program-transform-na \
1508 |
--program-transform-n |
--program-transform- \
1509 |
--program-transform |
--program-transfor \
1510 |
--program-transfo |
--program-transf \
1511 |
--program-trans |
--program-tran \
1512 |
--progr-tra |
--program-tr |
--program-t)
1513 ac_prev
=program_transform_name
;;
1514 -program-transform-name=* |
--program-transform-name=* \
1515 |
--program-transform-nam=* |
--program-transform-na=* \
1516 |
--program-transform-n=* |
--program-transform-=* \
1517 |
--program-transform=* |
--program-transfor=* \
1518 |
--program-transfo=* |
--program-transf=* \
1519 |
--program-trans=* |
--program-tran=* \
1520 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1521 program_transform_name
=$ac_optarg ;;
1523 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1525 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1526 pdfdir
=$ac_optarg ;;
1528 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1530 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1533 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1534 |
-silent |
--silent |
--silen |
--sile |
--sil)
1537 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1539 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1541 sbindir
=$ac_optarg ;;
1543 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1544 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1545 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1547 ac_prev
=sharedstatedir
;;
1548 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1549 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1550 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1552 sharedstatedir
=$ac_optarg ;;
1554 -site |
--site |
--sit)
1556 -site=* |
--site=* |
--sit=*)
1559 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1561 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1562 srcdir
=$ac_optarg ;;
1564 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1565 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1566 ac_prev
=sysconfdir
;;
1567 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1568 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1569 sysconfdir
=$ac_optarg ;;
1571 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1572 ac_prev
=target_alias
;;
1573 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1574 target_alias
=$ac_optarg ;;
1576 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1579 -version |
--version |
--versio |
--versi |
--vers |
-V)
1580 ac_init_version
=: ;;
1583 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1584 # Reject names that are not valid shell variable names.
1585 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1586 as_fn_error
"invalid package name: $ac_useropt"
1587 ac_useropt_orig
=$ac_useropt
1588 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1589 case $ac_user_opts in
1593 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1594 ac_unrecognized_sep
=', ';;
1596 eval with_
$ac_useropt=\
$ac_optarg ;;
1598 -without-* |
--without-*)
1599 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1600 # Reject names that are not valid shell variable names.
1601 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1602 as_fn_error
"invalid package name: $ac_useropt"
1603 ac_useropt_orig
=$ac_useropt
1604 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1605 case $ac_user_opts in
1609 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1610 ac_unrecognized_sep
=', ';;
1612 eval with_
$ac_useropt=no
;;
1615 # Obsolete; use --with-x.
1618 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1619 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1620 ac_prev
=x_includes
;;
1621 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1622 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1623 x_includes
=$ac_optarg ;;
1625 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1626 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1627 ac_prev
=x_libraries
;;
1628 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1629 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1630 x_libraries
=$ac_optarg ;;
1632 -*) as_fn_error
"unrecognized option: \`$ac_option'
1633 Try \`$0 --help' for more information."
1637 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1638 # Reject names that are not valid shell variable names.
1639 case $ac_envvar in #(
1640 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1641 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1643 eval $ac_envvar=\
$ac_optarg
1644 export $ac_envvar ;;
1647 # FIXME: should be removed in autoconf 3.0.
1648 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1649 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1650 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1651 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1657 if test -n "$ac_prev"; then
1658 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1659 as_fn_error
"missing argument to $ac_option"
1662 if test -n "$ac_unrecognized_opts"; then
1663 case $enable_option_checking in
1665 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1666 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1670 # Check all directory arguments for consistency.
1671 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1672 datadir sysconfdir sharedstatedir localstatedir includedir \
1673 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1674 libdir localedir mandir
1676 eval ac_val
=\$
$ac_var
1677 # Remove trailing slashes.
1680 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1681 eval $ac_var=\
$ac_val;;
1683 # Be sure to have absolute directory names.
1685 [\\/$
]* | ?
:[\\/]* ) continue;;
1686 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1688 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
1691 # There might be people who depend on the old broken behavior: `$host'
1692 # used to hold the argument of --host etc.
1693 # FIXME: To remove some day.
1696 target
=$target_alias
1698 # FIXME: To remove some day.
1699 if test "x$host_alias" != x
; then
1700 if test "x$build_alias" = x
; then
1701 cross_compiling
=maybe
1702 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1703 If a cross compiler is detected then cross compile mode will be used." >&2
1704 elif test "x$build_alias" != "x$host_alias"; then
1710 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1712 test "$silent" = yes && exec 6>/dev
/null
1715 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1716 ac_ls_di
=`ls -di .` &&
1717 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1718 as_fn_error
"working directory cannot be determined"
1719 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1720 as_fn_error
"pwd does not report name of working directory"
1723 # Find the source files, if location was not specified.
1724 if test -z "$srcdir"; then
1725 ac_srcdir_defaulted
=yes
1726 # Try the directory containing this script, then the parent directory.
1727 ac_confdir
=`$as_dirname -- "$as_myself" ||
1728 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1729 X"$as_myself" : 'X\(//\)[^/]' \| \
1730 X"$as_myself" : 'X\(//\)$' \| \
1731 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1732 $as_echo X"$as_myself" |
1733 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1751 if test ! -r "$srcdir/$ac_unique_file"; then
1755 ac_srcdir_defaulted
=no
1757 if test ! -r "$srcdir/$ac_unique_file"; then
1758 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1759 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
1761 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1763 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1765 # When building in place, set srcdir=.
1766 if test "$ac_abs_confdir" = "$ac_pwd"; then
1769 # Remove unnecessary trailing slashes from srcdir.
1770 # Double slashes in file names in object file debugging info
1771 # mess up M-x gdb in Emacs.
1773 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1775 for ac_var
in $ac_precious_vars; do
1776 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1777 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1778 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1779 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1783 # Report the --help message.
1785 if test "$ac_init_help" = "long"; then
1786 # Omit some internal or obsolete options to make the list less imposing.
1787 # This message is too long to be a string in the A/UX 3.1 sh.
1789 \`configure' configures emacs 24.0.50 to adapt to many kinds of systems.
1791 Usage: $0 [OPTION]... [VAR=VALUE]...
1793 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1794 VAR=VALUE. See below for descriptions of some of the useful variables.
1796 Defaults for the options are specified in brackets.
1799 -h, --help display this help and exit
1800 --help=short display options specific to this package
1801 --help=recursive display the short help of all the included packages
1802 -V, --version display version information and exit
1803 -q, --quiet, --silent do not print \`checking...' messages
1804 --cache-file=FILE cache test results in FILE [disabled]
1805 -C, --config-cache alias for \`--cache-file=config.cache'
1806 -n, --no-create do not create output files
1807 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1809 Installation directories:
1810 --prefix=PREFIX install architecture-independent files in PREFIX
1811 [$ac_default_prefix]
1812 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1815 By default, \`make install' will install all the files in
1816 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1817 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1818 for instance \`--prefix=\$HOME'.
1820 For better control, use the options below.
1822 Fine tuning of the installation directories:
1823 --bindir=DIR user executables [EPREFIX/bin]
1824 --sbindir=DIR system admin executables [EPREFIX/sbin]
1825 --libexecdir=DIR program executables [EPREFIX/libexec]
1826 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1827 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1828 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1829 --libdir=DIR object code libraries [EPREFIX/lib]
1830 --includedir=DIR C header files [PREFIX/include]
1831 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1832 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1833 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1834 --infodir=DIR info documentation [DATAROOTDIR/info]
1835 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1836 --mandir=DIR man documentation [DATAROOTDIR/man]
1837 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1838 --htmldir=DIR html documentation [DOCDIR]
1839 --dvidir=DIR dvi documentation [DOCDIR]
1840 --pdfdir=DIR pdf documentation [DOCDIR]
1841 --psdir=DIR ps documentation [DOCDIR]
1847 --program-prefix=PREFIX prepend PREFIX to installed program names
1848 --program-suffix=SUFFIX append SUFFIX to installed program names
1849 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1852 --x-includes=DIR X include files are
in DIR
1853 --x-libraries=DIR X library files are
in DIR
1856 --build=BUILD configure
for building on BUILD
[guessed
]
1857 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1861 if test -n "$ac_init_help"; then
1862 case $ac_init_help in
1863 short | recursive
) echo "Configuration of emacs 24.0.50:";;
1868 --disable-option-checking ignore unrecognized
--enable/--with options
1869 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1870 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1871 --disable-ns-self-contained
1872 disable self contained build under NeXTstep
1873 --enable-asserts compile code with asserts enabled
1874 --enable-maintainer-mode
1875 enable make rules and dependencies not useful
(and
1876 sometimes confusing
) to the casual installer
1877 --enable-locallisppath=PATH
1878 directories Emacs should search
for lisp files
1879 specific to this site
1880 --enable-checking[=LIST
]
1881 enable expensive run-time checks. With LIST
, enable
1882 only specific categories of checks. Categories are
:
1883 all
,yes,no. Flags are
: stringbytes
, stringoverrun
,
1884 stringfreelist
, xmallocoverrun
, conslist
1885 --enable-use-lisp-union-type
1886 use a union
for the Lisp_Object data
type. This is
1887 only useful
for development
for catching certain
1889 --enable-profiling build emacs with profiling support. This might not
1890 work on all platforms
1891 --enable-autodepend automatically generate dependencies to .h-files.
1892 Requires GNU Make and Gcc. Enabled
if GNU Make and
1894 --disable-dependency-tracking speeds up one-time build
1895 --enable-dependency-tracking do not reject slow dependency extractors
1896 --disable-largefile omit support
for large files
1899 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1900 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1901 --without-pop don
't support POP mail retrieval with movemail
1902 --with-kerberos support Kerberos-authenticated POP
1903 --with-kerberos5 support Kerberos version 5 authenticated POP
1904 --with-hesiod support Hesiod to get the POP server host
1905 --with-mmdf support MMDF mailboxes
1906 --with-mail-unlink unlink, rather than empty, mail spool after reading
1907 --with-mailhost=HOSTNAME
1908 string giving default POP mail host
1909 --without-sound don't compile with sound support
1910 --without-sync-input process async input synchronously
1911 --with-x-toolkit=KIT use an X toolkit
(KIT one of
: yes or gtk
, gtk3
,
1912 lucid or athena
, motif
, no
)
1913 --without-xpm don
't compile with XPM image support
1914 --without-jpeg don't compile with JPEG image support
1915 --without-tiff don
't compile with TIFF image support
1916 --without-gif don't compile with GIF image support
1917 --without-png don
't compile with PNG image support
1918 --without-rsvg don't compile with SVG image support
1919 --without-xml2 don
't compile with XML parsing support
1920 --without-imagemagick don't compile with ImageMagick image support
1921 --without-xft don
't use XFT for anti aliased fonts
1922 --without-libotf don't use libotf
for OpenType font support
1923 --without-m17n-flt don
't use m17n-flt for text shaping
1924 --without-toolkit-scroll-bars
1925 don't use Motif or Xaw3d scroll bars
1926 --without-xaw3d don
't use Xaw3d
1927 --without-xim don't use X11 XIM
1928 --with-ns use NeXTstep
(Cocoa or GNUstep
) windowing system
1929 --without-gpm don
't use -lgpm for mouse support on a GNU/Linux
1931 --without-dbus don't compile with D-Bus support
1932 --without-gconf don
't compile with GConf support
1933 --without-selinux don't compile with SELinux support
1934 --without-gnutls don
't use -lgnutls for SSL/TLS support
1935 --without-makeinfo don't require makeinfo
for building manuals
1936 --without-compress-info don
't compress the installed Info pages
1937 --with-pkg-config-prog=PATH
1938 path to pkg-config for finding GTK and librsvg
1939 --with-crt-dir=DIR directory containing crtn.o etc. The default is
1940 /usr/lib, or /usr/lib64 on some platforms.
1941 --with-gameuser=USER user for shared game score files
1942 --with-gnustep-conf=PATH
1943 path to GNUstep.conf; default $GNUSTEP_CONFIG_FILE,
1944 or /etc/GNUstep/GNUstep.conf
1945 --with-x use the X Window System
1947 Some influential environment variables:
1948 CC C compiler command
1949 CFLAGS C compiler flags
1950 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1951 nonstandard directory <lib dir>
1952 LIBS libraries to pass to the linker, e.g. -l<library>
1953 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1954 you have headers in a nonstandard directory <include dir>
1956 XMKMF Path to xmkmf, Makefile generator for X Window System
1958 Use these variables to override the choices made by `configure' or to
help
1959 it to
find libraries and programs with nonstandard names
/locations.
1961 Report bugs to the package provider.
1966 if test "$ac_init_help" = "recursive"; then
1967 # If there are subdirs, report their specific --help.
1968 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1969 test -d "$ac_dir" ||
1970 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1975 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1977 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1978 # A ".." for each directory in $ac_dir_suffix.
1979 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1980 case $ac_top_builddir_sub in
1981 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1982 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1985 ac_abs_top_builddir
=$ac_pwd
1986 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1987 # for backward compatibility:
1988 ac_top_builddir
=$ac_top_build_prefix
1991 .
) # We are building in place.
1993 ac_top_srcdir
=$ac_top_builddir_sub
1994 ac_abs_top_srcdir
=$ac_pwd ;;
1995 [\\/]* | ?
:[\\/]* ) # Absolute name.
1996 ac_srcdir
=$srcdir$ac_dir_suffix;
1997 ac_top_srcdir
=$srcdir
1998 ac_abs_top_srcdir
=$srcdir ;;
2000 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
2001 ac_top_srcdir
=$ac_top_build_prefix$srcdir
2002 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
2004 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
2006 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
2007 # Check for guested configure.
2008 if test -f "$ac_srcdir/configure.gnu"; then
2010 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2011 elif test -f "$ac_srcdir/configure"; then
2013 $SHELL "$ac_srcdir/configure" --help=recursive
2015 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2017 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
2021 test -n "$ac_init_help" && exit $ac_status
2022 if $ac_init_version; then
2024 emacs configure
24.0.50
2025 generated by GNU Autoconf
2.65
2027 Copyright
(C
) 2009 Free Software Foundation
, Inc.
2028 This configure
script is free software
; the Free Software Foundation
2029 gives unlimited permission to copy
, distribute and modify it.
2034 ## ------------------------ ##
2035 ## Autoconf initialization. ##
2036 ## ------------------------ ##
2038 # ac_fn_c_try_compile LINENO
2039 # --------------------------
2040 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2041 ac_fn_c_try_compile
()
2043 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2044 rm -f conftest.
$ac_objext
2045 if { { ac_try
="$ac_compile"
2047 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2048 *) ac_try_echo=$ac_try;;
2050 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2051 $as_echo "$ac_try_echo"; } >&5
2052 (eval "$ac_compile") 2>conftest.err
2054 if test -s conftest.err; then
2055 grep -v '^ *+' conftest.err >conftest.er1
2056 cat conftest.er1 >&5
2057 mv -f conftest.er1 conftest.err
2059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2060 test $ac_status = 0; } && {
2061 test -z "$ac_c_werror_flag" ||
2062 test ! -s conftest.err
2063 } && test -s conftest.$ac_objext; then :
2066 $as_echo "$as_me: failed program was:" >&5
2067 sed 's/^/| /' conftest.$ac_ext >&5
2071 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2072 as_fn_set_status $ac_retval
2074 } # ac_fn_c_try_compile
2076 # ac_fn_c_try_cpp LINENO
2077 # ----------------------
2078 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2081 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2082 if { { ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 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; } >/dev
/null
&& {
2098 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2099 test ! -s conftest.err
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
2113 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2114 # -------------------------------------------------------
2115 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2116 # the include files in INCLUDES and setting the cache variable VAR
2118 ac_fn_c_check_header_mongrel
()
2120 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2121 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2123 $as_echo_n "checking for $2... " >&6; }
2124 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2125 $as_echo_n "(cached) " >&6
2128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2129 $as_echo "$ac_res" >&6; }
2131 # Is the header compilable?
2132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2133 $as_echo_n "checking $2 usability... " >&6; }
2134 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2135 /* end confdefs.h. */
2139 if ac_fn_c_try_compile
"$LINENO"; then :
2140 ac_header_compiler
=yes
2142 ac_header_compiler
=no
2144 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2146 $as_echo "$ac_header_compiler" >&6; }
2148 # Is the header present?
2149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2150 $as_echo_n "checking $2 presence... " >&6; }
2151 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2152 /* end confdefs.h. */
2155 if ac_fn_c_try_cpp
"$LINENO"; then :
2156 ac_header_preproc
=yes
2158 ac_header_preproc
=no
2160 rm -f conftest.err conftest.
$ac_ext
2161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2162 $as_echo "$ac_header_preproc" >&6; }
2164 # So? What about this header?
2165 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2167 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2168 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2169 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2170 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2173 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2174 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2175 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2176 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2177 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2178 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2179 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2180 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2181 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2182 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2186 $as_echo_n "checking for $2... " >&6; }
2187 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2188 $as_echo_n "(cached) " >&6
2190 eval "$3=\$ac_header_compiler"
2193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2194 $as_echo "$ac_res" >&6; }
2196 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2198 } # ac_fn_c_check_header_mongrel
2200 # ac_fn_c_try_run LINENO
2201 # ----------------------
2202 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2203 # that executables *can* be run.
2206 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2207 if { { ac_try
="$ac_link"
2209 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2210 *) ac_try_echo=$ac_try;;
2212 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2213 $as_echo "$ac_try_echo"; } >&5
2214 (eval "$ac_link") 2>&5
2216 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2217 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2218 { { case "(($ac_try" in
2219 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2220 *) ac_try_echo
=$ac_try;;
2222 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2223 $as_echo "$ac_try_echo"; } >&5
2224 (eval "$ac_try") 2>&5
2226 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2227 test $ac_status = 0; }; }; then :
2230 $as_echo "$as_me: program exited with status $ac_status" >&5
2231 $as_echo "$as_me: failed program was:" >&5
2232 sed 's/^/| /' conftest.
$ac_ext >&5
2234 ac_retval
=$ac_status
2236 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2237 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2238 as_fn_set_status
$ac_retval
2242 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2243 # -------------------------------------------------------
2244 # Tests whether HEADER exists and can be compiled using the include files in
2245 # INCLUDES, setting the cache variable VAR accordingly.
2246 ac_fn_c_check_header_compile
()
2248 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2250 $as_echo_n "checking for $2... " >&6; }
2251 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2252 $as_echo_n "(cached) " >&6
2254 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2255 /* end confdefs.h. */
2259 if ac_fn_c_try_compile
"$LINENO"; then :
2264 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2268 $as_echo "$ac_res" >&6; }
2269 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2271 } # ac_fn_c_check_header_compile
2273 # ac_fn_c_try_link LINENO
2274 # -----------------------
2275 # Try to link conftest.$ac_ext, and return whether this succeeded.
2278 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2279 rm -f conftest.
$ac_objext conftest
$ac_exeext
2280 if { { ac_try
="$ac_link"
2282 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2283 *) ac_try_echo=$ac_try;;
2285 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2286 $as_echo "$ac_try_echo"; } >&5
2287 (eval "$ac_link") 2>conftest.err
2289 if test -s conftest.err; then
2290 grep -v '^ *+' conftest.err >conftest.er1
2291 cat conftest.er1 >&5
2292 mv -f conftest.er1 conftest.err
2294 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2295 test $ac_status = 0; } && {
2296 test -z "$ac_c_werror_flag" ||
2297 test ! -s conftest.err
2298 } && test -s conftest$ac_exeext && {
2299 test "$cross_compiling" = yes ||
2300 $as_test_x conftest$ac_exeext
2304 $as_echo "$as_me: failed program was:" >&5
2305 sed 's/^/| /' conftest.$ac_ext >&5
2309 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2310 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2311 # interfere with the next link command; also delete a directory that is
2312 # left behind by Apple's compiler. We do this before executing the actions.
2313 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2314 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2315 as_fn_set_status $ac_retval
2317 } # ac_fn_c_try_link
2319 # ac_fn_c_check_decl LINENO SYMBOL VAR
2320 # ------------------------------------
2321 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2322 ac_fn_c_check_decl ()
2324 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2326 $as_echo_n "checking whether $2 is declared... " >&6; }
2327 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2328 $as_echo_n "(cached) " >&6
2330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2331 /* end confdefs.h. */
2344 if ac_fn_c_try_compile "$LINENO"; then :
2349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2353 $as_echo "$ac_res" >&6; }
2354 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2356 } # ac_fn_c_check_decl
2358 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2359 # ----------------------------------------------
2360 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2361 ac_fn_c_check_header_preproc ()
2363 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2365 $as_echo_n "checking for $2... " >&6; }
2366 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2367 $as_echo_n "(cached) " >&6
2369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2370 /* end confdefs.h. */
2373 if ac_fn_c_try_cpp "$LINENO"; then :
2378 rm -f conftest.err conftest.$ac_ext
2381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2382 $as_echo "$ac_res" >&6; }
2383 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2385 } # ac_fn_c_check_header_preproc
2387 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2388 # ----------------------------------------------------
2389 # Tries to find if the field MEMBER exists in type AGGR, after including
2390 # INCLUDES, setting cache variable VAR accordingly.
2391 ac_fn_c_check_member ()
2393 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2395 $as_echo_n "checking for $2.$3... " >&6; }
2396 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2397 $as_echo_n "(cached) " >&6
2399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2400 /* end confdefs.h. */
2412 if ac_fn_c_try_compile "$LINENO"; then :
2415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2416 /* end confdefs.h. */
2422 if (sizeof ac_aggr.$3)
2428 if ac_fn_c_try_compile "$LINENO"; then :
2433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2439 $as_echo "$ac_res" >&6; }
2440 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2442 } # ac_fn_c_check_member
2444 # ac_fn_c_check_func LINENO FUNC VAR
2445 # ----------------------------------
2446 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2447 ac_fn_c_check_func ()
2449 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2451 $as_echo_n "checking for $2... " >&6; }
2452 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2453 $as_echo_n "(cached) " >&6
2455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2456 /* end confdefs.h. */
2457 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2458 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2459 #define $2 innocuous_$2
2461 /* System header to define __stub macros and hopefully few prototypes,
2462 which can conflict with char $2 (); below.
2463 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2464 <limits.h> exists even on freestanding compilers. */
2467 # include <limits.h>
2469 # include <assert.h>
2474 /* Override any GCC internal prototype to avoid an error.
2475 Use char because int might match the return type of a GCC
2476 builtin and then its argument prototype would still apply. */
2481 /* The GNU C library defines this for functions which it implements
2482 to always fail with ENOSYS. Some functions are actually named
2483 something starting with __ and the normal name is an alias. */
2484 #if defined __stub_$2 || defined __stub___$2
2496 if ac_fn_c_try_link "$LINENO"; then :
2501 rm -f core conftest.err conftest.$ac_objext \
2502 conftest$ac_exeext conftest.$ac_ext
2505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2506 $as_echo "$ac_res" >&6; }
2507 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2509 } # ac_fn_c_check_func
2511 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2512 # -------------------------------------------
2513 # Tests whether TYPE exists after having included INCLUDES, setting cache
2514 # variable VAR accordingly.
2515 ac_fn_c_check_type ()
2517 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2519 $as_echo_n "checking for $2... " >&6; }
2520 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2521 $as_echo_n "(cached) " >&6
2524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2525 /* end confdefs.h. */
2536 if ac_fn_c_try_compile "$LINENO"; then :
2537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2538 /* end confdefs.h. */
2549 if ac_fn_c_try_compile "$LINENO"; then :
2554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2560 $as_echo "$ac_res" >&6; }
2561 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2563 } # ac_fn_c_check_type
2565 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2566 # --------------------------------------------
2567 # Tries to find the compile-time value of EXPR in a program that includes
2568 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2570 ac_fn_c_compute_int ()
2572 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2573 if test "$cross_compiling" = yes; then
2574 # Depending upon the size, compute the lo and hi bounds.
2575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2576 /* end confdefs.h. */
2581 static int test_array [1 - 2 * !(($2) >= 0)];
2588 if ac_fn_c_try_compile "$LINENO"; then :
2591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2592 /* end confdefs.h. */
2597 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2604 if ac_fn_c_try_compile "$LINENO"; then :
2605 ac_hi=$ac_mid; break
2607 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2608 if test $ac_lo -le $ac_mid; then
2612 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2618 /* end confdefs.h. */
2623 static int test_array [1 - 2 * !(($2) < 0)];
2630 if ac_fn_c_try_compile "$LINENO"; then :
2633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2634 /* end confdefs.h. */
2639 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2646 if ac_fn_c_try_compile "$LINENO"; then :
2647 ac_lo=$ac_mid; break
2649 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2650 if test $ac_mid -le $ac_hi; then
2654 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2664 # Binary search between lo and hi bounds.
2665 while test "x$ac_lo" != "x$ac_hi"; do
2666 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2668 /* end confdefs.h. */
2673 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2680 if ac_fn_c_try_compile "$LINENO"; then :
2683 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2688 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2693 /* end confdefs.h. */
2695 static long int longval () { return $2; }
2696 static unsigned long int ulongval () { return $2; }
2703 FILE *f = fopen ("conftest.val", "w");
2708 long int i = longval ();
2711 fprintf (f, "%ld", i);
2715 unsigned long int i = ulongval ();
2718 fprintf (f, "%lu", i);
2720 /* Do not output a trailing newline, as this causes \r\n confusion
2721 on some platforms. */
2722 return ferror (f) || fclose (f) != 0;
2728 if ac_fn_c_try_run "$LINENO"; then :
2729 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2733 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2734 conftest.$ac_objext conftest.beam conftest.$ac_ext
2738 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2739 as_fn_set_status $ac_retval
2741 } # ac_fn_c_compute_int
2742 cat >config.log <<_ACEOF
2743 This file contains any messages produced by compilers while
2744 running configure, to aid debugging if configure makes a mistake.
2746 It was created by emacs $as_me 24.0.50, which was
2747 generated by GNU Autoconf 2.65. Invocation command line was
2759 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2760 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2761 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2762 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2763 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2765 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2766 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2768 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2769 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2770 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2771 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2772 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2773 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2774 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2782 test -z "$as_dir" && as_dir=.
2783 $as_echo "PATH: $as_dir"
2799 # Keep a trace of the command line.
2800 # Strip out --no-create and --no-recursion so they do not pile up.
2801 # Strip out --silent because we don't want to record it for future runs.
2802 # Also quote any args containing shell meta-characters.
2803 # Make two passes to allow for proper duplicate-argument suppression.
2807 ac_must_keep_next=false
2813 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2814 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2815 | -silent | --silent | --silen | --sile | --sil)
2818 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2821 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2823 as_fn_append ac_configure_args1 " '$ac_arg'"
2824 if test $ac_must_keep_next = true; then
2825 ac_must_keep_next=false # Got value, back to normal.
2828 *=* | --config-cache | -C | -disable-* | --disable-* \
2829 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2830 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2831 | -with-* | --with-* | -without-* | --without-* | --x)
2832 case "$ac_configure_args0 " in
2833 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2836 -* ) ac_must_keep_next=true ;;
2839 as_fn_append ac_configure_args " '$ac_arg'"
2844 { ac_configure_args0=; unset ac_configure_args0;}
2845 { ac_configure_args1=; unset ac_configure_args1;}
2847 # When interrupted or exit'd, cleanup temporary files, and complete
2848 # config.log. We remove comments because anyway the quotes in there
2849 # would cause problems or look ugly.
2850 # WARNING: Use '\'' to represent an apostrophe within the trap.
2851 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2852 trap 'exit_status=$?
2853 # Save into config.log some information that might help in debugging.
2858 ## ---------------- ##
2859 ## Cache variables. ##
2860 ## ---------------- ##
2863 # The following way of writing the cache mishandles newlines in values,
2865 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2866 eval ac_val=\$$ac_var
2870 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2871 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2874 _ | IFS | as_nl) ;; #(
2875 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2876 *) { eval $ac_var=; unset $ac_var;} ;;
2881 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2882 *${as_nl}ac_space=\ *)
2884 "s/'\''/'\''\\\\'\'''\''/g;
2885 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2888 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2896 ## ----------------- ##
2897 ## Output variables. ##
2898 ## ----------------- ##
2901 for ac_var in $ac_subst_vars
2903 eval ac_val=\$$ac_var
2905 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2907 $as_echo "$ac_var='\''$ac_val'\''"
2911 if test -n "$ac_subst_files"; then
2913 ## ------------------- ##
2914 ## File substitutions. ##
2915 ## ------------------- ##
2918 for ac_var in $ac_subst_files
2920 eval ac_val=\$$ac_var
2922 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2924 $as_echo "$ac_var='\''$ac_val'\''"
2929 if test -s confdefs.h; then
2939 test "$ac_signal" != 0 &&
2940 $as_echo "$as_me: caught signal $ac_signal"
2941 $as_echo "$as_me: exit $exit_status"
2943 rm -f core *.core core.conftest.* &&
2944 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2947 for ac_signal in 1 2 13 15; do
2948 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2952 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2953 rm -f -r conftest* confdefs.h
2955 $as_echo "/* confdefs.h */" > confdefs.h
2957 # Predefined preprocessor variables.
2959 cat >>confdefs.h <<_ACEOF
2960 #define PACKAGE_NAME "$PACKAGE_NAME"
2963 cat >>confdefs.h <<_ACEOF
2964 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2967 cat >>confdefs.h <<_ACEOF
2968 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2971 cat >>confdefs.h <<_ACEOF
2972 #define PACKAGE_STRING "$PACKAGE_STRING"
2975 cat >>confdefs.h <<_ACEOF
2976 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2979 cat >>confdefs.h <<_ACEOF
2980 #define PACKAGE_URL "$PACKAGE_URL"
2984 # Let the site file select an alternate cache file if it wants to.
2985 # Prefer an explicitly selected file to automatically selected ones.
2988 if test -n "$CONFIG_SITE"; then
2989 ac_site_file1=$CONFIG_SITE
2990 elif test "x$prefix" != xNONE; then
2991 ac_site_file1=$prefix/share/config.site
2992 ac_site_file2=$prefix/etc/config.site
2994 ac_site_file1=$ac_default_prefix/share/config.site
2995 ac_site_file2=$ac_default_prefix/etc/config.site
2997 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2999 test "x$ac_site_file" = xNONE && continue
3000 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3001 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3002 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3003 sed 's/^/| /' "$ac_site_file" >&5
3008 if test -r "$cache_file"; then
3009 # Some versions of bash will fail to source /dev/null (special files
3010 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3011 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3012 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3013 $as_echo "$as_me: loading cache $cache_file" >&6;}
3015 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3016 *) . "./$cache_file";;
3020 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3021 $as_echo "$as_me: creating cache $cache_file" >&6;}
3025 as_fn_append ac_header_list " stdlib.h"
3026 as_fn_append ac_header_list " unistd.h"
3027 as_fn_append ac_header_list " sys/param.h"
3028 gl_getopt_required=GNU
3029 as_fn_append ac_header_list " getopt.h"
3030 as_fn_append ac_func_list " lstat"
3031 as_fn_append ac_func_list " alarm"
3032 as_fn_append ac_func_list " readlink"
3033 as_fn_append ac_header_list " sys/socket.h"
3034 as_fn_append ac_header_list " wchar.h"
3035 as_fn_append ac_header_list " stdint.h"
3036 as_fn_append ac_func_list " tzset"
3037 as_fn_append ac_func_list " symlink"
3038 as_fn_append ac_header_list " sys/stat.h"
3039 as_fn_append ac_header_list " sys/time.h"
3040 as_fn_append ac_func_list " localtime_r"
3041 # Check that the precious variables saved in the cache have kept the same
3043 ac_cache_corrupted=false
3044 for ac_var in $ac_precious_vars; do
3045 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3046 eval ac_new_set=\$ac_env_${ac_var}_set
3047 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3048 eval ac_new_val=\$ac_env_${ac_var}_value
3049 case $ac_old_set,$ac_new_set in
3051 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
3052 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3053 ac_cache_corrupted=: ;;
3055 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
3056 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
3057 ac_cache_corrupted=: ;;
3060 if test "x$ac_old_val" != "x$ac_new_val"; then
3061 # differences in whitespace do not lead to failure.
3062 ac_old_val_w=`echo x
$ac_old_val`
3063 ac_new_val_w=`echo x
$ac_new_val`
3064 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3065 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3066 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
3067 ac_cache_corrupted=:
3069 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
3070 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3071 eval $ac_var=\$ac_old_val
3073 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3074 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
3075 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3076 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3079 # Pass precious variables to config.status.
3080 if test "$ac_new_set" = set; then
3082 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
3083 *) ac_arg=$ac_var=$ac_new_val ;;
3085 case " $ac_configure_args " in
3086 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3087 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3091 if $ac_cache_corrupted; then
3092 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
3093 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3094 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3095 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3096 as_fn_error "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
3098 ## -------------------- ##
3099 ## Main body of script. ##
3100 ## -------------------- ##
3103 ac_cpp='$CPP $CPPFLAGS'
3104 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3105 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3106 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3109 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
3112 am__api_version='1.11'
3115 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3116 for ac_t in install-sh install.sh shtool; do
3117 if test -f "$ac_dir/$ac_t"; then
3119 ac_install_sh="$ac_aux_dir/$ac_t -c"
3124 if test -z "$ac_aux_dir"; then
3125 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3128 # These three variables are undocumented and unsupported,
3129 # and are intended to be withdrawn in a future Autoconf release.
3130 # They can cause serious problems if a builder's source tree is in a directory
3131 # whose full name contains unusual characters.
3132 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3133 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3134 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3137 # Find a good install program. We prefer a C program (faster),
3138 # so one script is as good as another. But avoid the broken or
3139 # incompatible versions:
3140 # SysV /etc/install, /usr/sbin/install
3141 # SunOS /usr/etc/install
3142 # IRIX /sbin/install
3144 # AmigaOS /C/install, which installs bootblocks on floppy discs
3145 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3146 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3147 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3148 # OS/2's system install, which has a completely different semantic
3149 # ./install, which can be erroneously created by make from ./install.sh.
3150 # Reject install programs that cannot install multiple files.
3151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3152 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3153 if test -z "$INSTALL"; then
3154 if test "${ac_cv_path_install+set}" = set; then :
3155 $as_echo_n "(cached) " >&6
3157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3161 test -z "$as_dir" && as_dir=.
3162 # Account for people who put trailing slashes in PATH elements.
3163 case $as_dir/ in #((
3164 ./ | .// | /[cC]/* | \
3165 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3166 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3169 # OSF1 and SCO ODT 3.0 have their own names for install.
3170 # Don't use installbsd from OSF since it installs stuff as root
3172 for ac_prog in ginstall scoinst install; do
3173 for ac_exec_ext in '' $ac_executable_extensions; do
3174 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3175 if test $ac_prog = install &&
3176 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3177 # AIX install. It has an incompatible calling convention.
3179 elif test $ac_prog = install &&
3180 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3181 # program-specific install script used by HP pwplus--don't use.
3184 rm -rf conftest.one conftest.two conftest.dir
3185 echo one > conftest.one
3186 echo two > conftest.two
3188 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3189 test -s conftest.one && test -s conftest.two &&
3190 test -s conftest.dir/conftest.one &&
3191 test -s conftest.dir/conftest.two
3193 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3206 rm -rf conftest.one conftest.two conftest.dir
3209 if test "${ac_cv_path_install+set}" = set; then
3210 INSTALL=$ac_cv_path_install
3212 # As a last resort, use the slow shell script. Don't cache a
3213 # value for INSTALL within a source directory, because that will
3214 # break other packages using the cache if that directory is
3215 # removed, or if the value is a relative name.
3216 INSTALL=$ac_install_sh
3219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3220 $as_echo "$INSTALL" >&6; }
3222 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3223 # It thinks the first close brace ends the variable substitution.
3224 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3226 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3228 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3231 $as_echo_n "checking whether build environment is sane... " >&6; }
3234 echo timestamp > conftest.file
3235 # Reject unsafe characters in $srcdir or the absolute working directory
3236 # name. Accept space and tab only in the latter.
3240 *[\\\"\#\$\&\'\`$am_lf]*)
3241 as_fn_error
"unsafe absolute working directory name" "$LINENO" 5;;
3244 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
3245 as_fn_error
"unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3248 # Do `set' in a subshell so we don't clobber the current shell's
3249 # arguments. Must try -L first in case configure is actually a
3250 # symlink; some systems play weird games with the mod time of symlinks
3251 # (eg FreeBSD returns the mod time of the symlink's containing
3254 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3255 if test "$*" = "X"; then
3257 set X
`ls -t "$srcdir/configure" conftest.file`
3260 if test "$*" != "X $srcdir/configure conftest.file" \
3261 && test "$*" != "X conftest.file $srcdir/configure"; then
3263 # If neither matched, then we have a broken ls. This can happen
3264 # if, for instance, CONFIG_SHELL is bash and it inherits a
3265 # broken ls alias from the environment. This has actually
3266 # happened. Such a system could not be considered "sane".
3267 as_fn_error
"ls -t appears to fail. Make sure there is not a broken
3268 alias in your environment" "$LINENO" 5
3271 test "$2" = conftest.
file
3277 as_fn_error
"newly created file is older than distributed files!
3278 Check your system clock" "$LINENO" 5
3280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3281 $as_echo "yes" >&6; }
3282 test "$program_prefix" != NONE
&&
3283 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
3284 # Use a double $ so make ignores it.
3285 test "$program_suffix" != NONE
&&
3286 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
3287 # Double any \ or $.
3288 # By default was `s,x,x', remove it if useless.
3289 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
3290 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
3292 # expand $ac_aux_dir to an absolute path
3293 am_aux_dir
=`cd $ac_aux_dir && pwd`
3295 if test x
"${MISSING+set}" != xset
; then
3298 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
3300 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
3303 # Use eval to expand $SHELL
3304 if eval "$MISSING --run true"; then
3305 am_missing_run
="$MISSING --run "
3308 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3309 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3312 if test x
"${install_sh}" != xset
; then
3315 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
3317 install_sh
="\${SHELL} $am_aux_dir/install-sh"
3321 # Installed binaries are usually stripped using `strip' when the user
3322 # run `make install-strip'. However `strip' might not be the right
3323 # tool to use in cross-compilation environments, therefore Automake
3324 # will honor the `STRIP' environment variable to overrule this program.
3325 if test "$cross_compiling" != no
; then
3326 if test -n "$ac_tool_prefix"; then
3327 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3328 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
3329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3330 $as_echo_n "checking for $ac_word... " >&6; }
3331 if test "${ac_cv_prog_STRIP+set}" = set; then :
3332 $as_echo_n "(cached) " >&6
3334 if test -n "$STRIP"; then
3335 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
3337 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3341 test -z "$as_dir" && as_dir
=.
3342 for ac_exec_ext
in '' $ac_executable_extensions; do
3343 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3344 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
3345 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3354 STRIP
=$ac_cv_prog_STRIP
3355 if test -n "$STRIP"; then
3356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3357 $as_echo "$STRIP" >&6; }
3359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3360 $as_echo "no" >&6; }
3365 if test -z "$ac_cv_prog_STRIP"; then
3367 # Extract the first word of "strip", so it can be a program name with args.
3368 set dummy strip
; ac_word
=$2
3369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3370 $as_echo_n "checking for $ac_word... " >&6; }
3371 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3372 $as_echo_n "(cached) " >&6
3374 if test -n "$ac_ct_STRIP"; then
3375 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
3377 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3381 test -z "$as_dir" && as_dir
=.
3382 for ac_exec_ext
in '' $ac_executable_extensions; do
3383 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3384 ac_cv_prog_ac_ct_STRIP
="strip"
3385 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3394 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
3395 if test -n "$ac_ct_STRIP"; then
3396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3397 $as_echo "$ac_ct_STRIP" >&6; }
3399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3400 $as_echo "no" >&6; }
3403 if test "x$ac_ct_STRIP" = x
; then
3406 case $cross_compiling:$ac_tool_warned in
3408 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3409 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3410 ac_tool_warned
=yes ;;
3415 STRIP
="$ac_cv_prog_STRIP"
3419 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
3421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3422 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3423 if test -z "$MKDIR_P"; then
3424 if test "${ac_cv_path_mkdir+set}" = set; then :
3425 $as_echo_n "(cached) " >&6
3427 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3428 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
3431 test -z "$as_dir" && as_dir
=.
3432 for ac_prog
in mkdir gmkdir
; do
3433 for ac_exec_ext
in '' $ac_executable_extensions; do
3434 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } ||
continue
3435 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3436 'mkdir (GNU coreutils) '* | \
3437 'mkdir (coreutils) '* | \
3438 'mkdir (fileutils) '4.1*)
3439 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
3449 test -d .
/--version && rmdir .
/--version
3450 if test "${ac_cv_path_mkdir+set}" = set; then
3451 MKDIR_P
="$ac_cv_path_mkdir -p"
3453 # As a last resort, use the slow shell script. Don't cache a
3454 # value for MKDIR_P within a source directory, because that will
3455 # break other packages using the cache if that directory is
3456 # removed, or if the value is a relative name.
3457 MKDIR_P
="$ac_install_sh -d"
3460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3461 $as_echo "$MKDIR_P" >&6; }
3466 [\\/$
]* | ?
:[\\/]*) ;;
3467 */*) mkdir_p
="\$(top_builddir)/$mkdir_p" ;;
3470 for ac_prog
in gawk mawk nawk
awk
3472 # Extract the first word of "$ac_prog", so it can be a program name with args.
3473 set dummy
$ac_prog; ac_word
=$2
3474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3475 $as_echo_n "checking for $ac_word... " >&6; }
3476 if test "${ac_cv_prog_AWK+set}" = set; then :
3477 $as_echo_n "(cached) " >&6
3479 if test -n "$AWK"; then
3480 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
3482 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3486 test -z "$as_dir" && as_dir
=.
3487 for ac_exec_ext
in '' $ac_executable_extensions; do
3488 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3489 ac_cv_prog_AWK
="$ac_prog"
3490 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3500 if test -n "$AWK"; then
3501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3502 $as_echo "$AWK" >&6; }
3504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3505 $as_echo "no" >&6; }
3509 test -n "$AWK" && break
3512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3513 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3515 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3516 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3517 $as_echo_n "(cached) " >&6
3519 cat >conftest.
make <<\_ACEOF
3522 @
echo '@@@%%%=$(MAKE)=@@@%%%'
3524 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3525 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3527 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
3529 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
3533 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
3534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3535 $as_echo "yes" >&6; }
3538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3539 $as_echo "no" >&6; }
3540 SET_MAKE
="MAKE=${MAKE-make}"
3543 rm -rf .tst
2>/dev
/null
3544 mkdir .tst
2>/dev
/null
3545 if test -d .tst
; then
3550 rmdir .tst
2>/dev
/null
3552 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3553 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3554 # is not polluted with repeated "-I."
3555 am__isrc
=' -I$(srcdir)'
3556 # test to see if srcdir already configured
3557 if test -f $srcdir/config.status
; then
3558 as_fn_error
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3562 # test whether we have cygpath
3563 if test -z "$CYGPATH_W"; then
3564 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
3565 CYGPATH_W
='cygpath -w'
3572 # Define the identity of the package.
3577 cat >>confdefs.h
<<_ACEOF
3578 #define PACKAGE "$PACKAGE"
3582 cat >>confdefs.h
<<_ACEOF
3583 #define VERSION "$VERSION"
3586 # Some tools Automake needs.
3588 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3591 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
3594 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3597 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
3600 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
3602 # We need awk for the "check" target. The system "awk" is bad on
3604 # Always define AMTAR for backward compatibility.
3606 AMTAR
=${AMTAR-"${am_missing_run}tar"}
3608 am__tar
='${AMTAR} chof - "$$tardir"'; am__untar
='${AMTAR} xf -'
3617 lispdir
='${datadir}/emacs/${version}/lisp'
3618 locallisppath
='${datadir}/emacs/${version}/site-lisp:'\
3619 '${datadir}/emacs/site-lisp'
3620 lisppath
='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
3621 etcdir
='${datadir}/emacs/${version}/etc'
3622 archlibdir
='${libexecdir}/emacs/${version}/${configuration}'
3623 docdir
='${datadir}/emacs/${version}/etc'
3624 gamedir
='${localstatedir}/games/emacs'
3629 # Check whether --with-pop was given.
3630 if test "${with_pop+set}" = set; then :
3636 if test "$with_pop" = yes; then
3637 $as_echo "#define MAIL_USE_POP 1" >>confdefs.h
3642 # Check whether --with-kerberos was given.
3643 if test "${with_kerberos+set}" = set; then :
3644 withval
=$with_kerberos;
3649 if test "$with_kerberos" != no
; then
3650 $as_echo "#define KERBEROS 1" >>confdefs.h
3655 # Check whether --with-kerberos5 was given.
3656 if test "${with_kerberos5+set}" = set; then :
3657 withval
=$with_kerberos5;
3662 if test "${with_kerberos5}" != no
; then
3663 if test "${with_kerberos}" = no
; then
3665 $as_echo "#define KERBEROS 1" >>confdefs.h
3669 $as_echo "#define KERBEROS5 1" >>confdefs.h
3674 # Check whether --with-hesiod was given.
3675 if test "${with_hesiod+set}" = set; then :
3676 withval
=$with_hesiod;
3681 if test "$with_hesiod" != no
; then
3683 $as_echo "#define HESIOD 1" >>confdefs.h
3688 # Check whether --with-mmdf was given.
3689 if test "${with_mmdf+set}" = set; then :
3695 if test "$with_mmdf" != no
; then
3697 $as_echo "#define MAIL_USE_MMDF 1" >>confdefs.h
3702 # Check whether --with-mail-unlink was given.
3703 if test "${with_mail_unlink+set}" = set; then :
3704 withval
=$with_mail_unlink;
3709 if test "$with_mail_unlink" != no
; then
3711 $as_echo "#define MAIL_UNLINK_SPOOL 1" >>confdefs.h
3716 # Check whether --with-mailhost was given.
3717 if test "${with_mailhost+set}" = set; then :
3718 withval
=$with_mailhost;
3719 cat >>confdefs.h
<<_ACEOF
3720 #define MAILHOST "$withval"
3727 # Check whether --with-sound was given.
3728 if test "${with_sound+set}" = set; then :
3729 withval
=$with_sound;
3736 # Check whether --with-sync-input was given.
3737 if test "${with_sync_input+set}" = set; then :
3738 withval
=$with_sync_input;
3743 if test "$with_sync_input" = yes; then
3745 $as_echo "#define SYNC_INPUT 1" >>confdefs.h
3750 # Check whether --with-x-toolkit was given.
3751 if test "${with_x_toolkit+set}" = set; then :
3752 withval
=$with_x_toolkit; case "${withval}" in
3753 y | ye |
yes ) val
=gtk
;;
3755 l | lu | luc | luci | lucid
) val
=lucid
;;
3756 a |
at | ath | athe | athen | athena
) val
=athena
;;
3757 m | mo | mot | moti | motif
) val
=motif
;;
3758 g | gt | gtk
) val
=gtk
;;
3761 as_fn_error
"\`--with-x-toolkit=$withval' is invalid;
3762 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif', \`gtk' or
3763 \`gtk3'. \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." "$LINENO" 5
3772 # Check whether --with-xpm was given.
3773 if test "${with_xpm+set}" = set; then :
3780 # Check whether --with-jpeg was given.
3781 if test "${with_jpeg+set}" = set; then :
3788 # Check whether --with-tiff was given.
3789 if test "${with_tiff+set}" = set; then :
3796 # Check whether --with-gif was given.
3797 if test "${with_gif+set}" = set; then :
3804 # Check whether --with-png was given.
3805 if test "${with_png+set}" = set; then :
3812 # Check whether --with-rsvg was given.
3813 if test "${with_rsvg+set}" = set; then :
3820 # Check whether --with-xml2 was given.
3821 if test "${with_xml2+set}" = set; then :
3828 # Check whether --with-imagemagick was given.
3829 if test "${with_imagemagick+set}" = set; then :
3830 withval
=$with_imagemagick;
3832 with_imagemagick
=yes
3837 # Check whether --with-xft was given.
3838 if test "${with_xft+set}" = set; then :
3845 # Check whether --with-libotf was given.
3846 if test "${with_libotf+set}" = set; then :
3847 withval
=$with_libotf;
3853 # Check whether --with-m17n-flt was given.
3854 if test "${with_m17n_flt+set}" = set; then :
3855 withval
=$with_m17n_flt;
3862 # Check whether --with-toolkit-scroll-bars was given.
3863 if test "${with_toolkit_scroll_bars+set}" = set; then :
3864 withval
=$with_toolkit_scroll_bars;
3866 with_toolkit_scroll_bars
=yes
3870 # Check whether --with-xaw3d was given.
3871 if test "${with_xaw3d+set}" = set; then :
3872 withval
=$with_xaw3d;
3878 # Check whether --with-xim was given.
3879 if test "${with_xim+set}" = set; then :
3886 # Check whether --with-ns was given.
3887 if test "${with_ns+set}" = set; then :
3895 # Check whether --with-gpm was given.
3896 if test "${with_gpm+set}" = set; then :
3903 # Check whether --with-dbus was given.
3904 if test "${with_dbus+set}" = set; then :
3911 # Check whether --with-gconf was given.
3912 if test "${with_gconf+set}" = set; then :
3913 withval
=$with_gconf;
3919 # Check whether --with-selinux was given.
3920 if test "${with_selinux+set}" = set; then :
3921 withval
=$with_selinux;
3927 # Check whether --with-gnutls was given.
3928 if test "${with_gnutls+set}" = set; then :
3929 withval
=$with_gnutls;
3935 ## For the times when you want to build Emacs but don't have
3936 ## a suitable makeinfo, and can live without the manuals.
3938 # Check whether --with-makeinfo was given.
3939 if test "${with_makeinfo+set}" = set; then :
3940 withval
=$with_makeinfo;
3946 ## This is an option because I do not know if all info/man support
3947 ## compressed files, nor how to test if they do so.
3949 # Check whether --with-compress-info was given.
3950 if test "${with_compress_info+set}" = set; then :
3951 withval
=$with_compress_info;
3953 with_compress_info
=yes
3956 if test $with_compress_info = yes; then
3964 # Check whether --with-pkg-config-prog was given.
3965 if test "${with_pkg_config_prog+set}" = set; then :
3966 withval
=$with_pkg_config_prog;
3969 if test "X${with_pkg_config_prog}" != X
; then
3970 if test "${with_pkg_config_prog}" != yes; then
3971 PKG_CONFIG
="${with_pkg_config_prog}"
3977 # Check whether --with-crt-dir was given.
3978 if test "${with_crt_dir+set}" = set; then :
3979 withval
=$with_crt_dir;
3982 CRT_DIR
="${with_crt_dir}"
3985 # Check whether --with-gameuser was given.
3986 if test "${with_gameuser+set}" = set; then :
3987 withval
=$with_gameuser;
3990 test "X${with_gameuser}" != X
&& test "${with_gameuser}" != yes \
3991 && gameuser
="${with_gameuser}"
3992 test "X$gameuser" = X
&& gameuser
=games
3995 # Check whether --with-gnustep-conf was given.
3996 if test "${with_gnustep_conf+set}" = set; then :
3997 withval
=$with_gnustep_conf;
4000 test "X${with_gnustep_conf}" != X
&& test "${with_gnustep_conf}" != yes && \
4001 GNUSTEP_CONFIG_FILE
="${with_gnustep_conf}"
4002 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
4003 GNUSTEP_CONFIG_FILE
=/etc
/GNUstep
/GNUstep.conf
4005 # Check whether --enable-ns-self-contained was given.
4006 if test "${enable_ns_self_contained+set}" = set; then :
4007 enableval
=$enable_ns_self_contained; EN_NS_SELF_CONTAINED
=$enableval
4009 EN_NS_SELF_CONTAINED
=yes
4013 # Check whether --enable-asserts was given.
4014 if test "${enable_asserts+set}" = set; then :
4015 enableval
=$enable_asserts; USE_XASSERTS
=$enableval
4021 # Check whether --enable-maintainer-mode was given.
4022 if test "${enable_maintainer_mode+set}" = set; then :
4023 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
4025 USE_MAINTAINER_MODE
=yes
4028 if test $USE_MAINTAINER_MODE = yes; then
4035 # Check whether --enable-locallisppath was given.
4036 if test "${enable_locallisppath+set}" = set; then :
4037 enableval
=$enable_locallisppath; if test "${enableval}" = "no"; then
4039 elif test "${enableval}" != "yes"; then
4040 locallisppath
=${enableval}
4045 # Check whether --enable-checking was given.
4046 if test "${enable_checking+set}" = set; then :
4047 enableval
=$enable_checking; ac_checking_flags
="${enableval}"
4050 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
4051 for check
in $ac_checking_flags
4054 # these set all the flags to specific states
4055 yes) ac_enable_checking
=1 ;;
4056 no
) ac_enable_checking
= ;
4057 ac_gc_check_stringbytes
= ;
4058 ac_gc_check_string_overrun
= ;
4059 ac_gc_check_string_free_list
= ;
4060 ac_xmalloc_overrun
= ;
4061 ac_gc_check_cons_list
= ;;
4062 all
) ac_enable_checking
=1 ;
4063 ac_gc_check_stringbytes
=1 ;
4064 ac_gc_check_string_overrun
=1 ;
4065 ac_gc_check_string_free_list
=1 ;
4066 ac_xmalloc_overrun
=1 ;
4067 ac_gc_check_cons_list
=1 ;;
4068 # these enable particular checks
4069 stringbytes
) ac_gc_check_stringbytes
=1 ;;
4070 stringoverrun
) ac_gc_check_string_overrun
=1 ;;
4071 stringfreelist
) ac_gc_check_string_free_list
=1 ;;
4072 xmallocoverrun
) ac_xmalloc_overrun
=1 ;;
4073 conslist
) ac_gc_check_cons_list
=1 ;;
4074 *) as_fn_error
"unknown check category $check" "$LINENO" 5 ;;
4079 if test x
$ac_enable_checking != x
; then
4081 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
4084 if test x
$ac_gc_check_stringbytes != x
; then
4086 $as_echo "#define GC_CHECK_STRING_BYTES 1" >>confdefs.h
4089 if test x
$ac_gc_check_stringoverrun != x
; then
4091 $as_echo "#define GC_CHECK_STRING_OVERRUN 1" >>confdefs.h
4094 if test x
$ac_gc_check_string_free_list != x
; then
4096 $as_echo "#define GC_CHECK_STRING_FREE_LIST 1" >>confdefs.h
4099 if test x
$ac_xmalloc_overrun != x
; then
4101 $as_echo "#define XMALLOC_OVERRUN_CHECK 1" >>confdefs.h
4104 if test x
$ac_gc_check_cons_list != x
; then
4106 $as_echo "#define GC_CHECK_CONS_LIST 1" >>confdefs.h
4110 # Check whether --enable-use-lisp-union-type was given.
4111 if test "${enable_use_lisp_union_type+set}" = set; then :
4112 enableval
=$enable_use_lisp_union_type; if test "${enableval}" != "no"; then
4114 $as_echo "#define USE_LISP_UNION_TYPE 1" >>confdefs.h
4121 # Check whether --enable-profiling was given.
4122 if test "${enable_profiling+set}" = set; then :
4123 enableval
=$enable_profiling; ac_enable_profiling
="${enableval}"
4126 if test x
$ac_enable_profiling != x
; then
4127 PROFILING_CFLAGS
="-DPROFILING=1 -pg"
4133 # Check whether --enable-autodepend was given.
4134 if test "${enable_autodepend+set}" = set; then :
4135 enableval
=$enable_autodepend; ac_enable_autodepend
="${enableval}"
4137 ac_enable_autodepend
=yes
4141 #### Make srcdir absolute, if it isn't already. It's important to
4142 #### avoid running the path through pwd unnecessarily, since pwd can
4143 #### give you automounter prefixes, which can go away. We do all this
4144 #### so Emacs can find its files when run uninstalled.
4145 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
4150 ## We may be able to use the $PWD environment variable to make this
4151 ## absolute. But sometimes PWD is inaccurate.
4152 ## Note: we used to use ${PWD} at the end instead of `pwd`,
4153 ## but that tested only for a well-formed and valid PWD,
4154 ## it did not object when PWD was well-formed and valid but just wrong.
4155 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
4159 srcdir
="`(cd ${srcdir}; pwd)`"
4162 * ) srcdir
="`(cd ${srcdir}; pwd)`" ;;
4165 #### Check if the source directory already has a configured system in it.
4166 if test `pwd` != `(cd ${srcdir} && pwd)` \
4167 && test -f "${srcdir}/src/config.h" ; then
4168 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The directory tree \`${srcdir}' is being used
4169 as a build directory right now; it has been configured in its own
4170 right. To configure in another directory as well, you MUST
4171 use GNU make. If you do not have GNU make, then you must
4172 now do \`make distclean' in ${srcdir},
4173 and then run $0 again." >&5
4174 $as_echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
4175 as a build directory right now; it has been configured in its own
4176 right. To configure in another directory as well, you MUST
4177 use GNU make. If you do not have GNU make, then you must
4178 now do \`make distclean' in ${srcdir},
4179 and then run $0 again." >&2;}
4182 #### Given the configuration name, set machfile and opsysfile to the
4183 #### names of the m/*.h and s/*.h files we should use.
4185 ### Canonicalize the configuration name.
4187 # Make sure we can run config.sub.
4188 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
4189 as_fn_error
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4192 $as_echo_n "checking build system type... " >&6; }
4193 if test "${ac_cv_build+set}" = set; then :
4194 $as_echo_n "(cached) " >&6
4196 ac_build_alias
=$build_alias
4197 test "x$ac_build_alias" = x
&&
4198 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
4199 test "x$ac_build_alias" = x
&&
4200 as_fn_error
"cannot guess build type; you must specify one" "$LINENO" 5
4201 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4202 as_fn_error
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4206 $as_echo "$ac_cv_build" >&6; }
4207 case $ac_cv_build in
4209 *) as_fn_error
"invalid value of canonical build" "$LINENO" 5;;
4212 ac_save_IFS
=$IFS; IFS
='-'
4218 # Remember, the first character of IFS is used to create $*,
4219 # except with old shells:
4222 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
4225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4226 $as_echo_n "checking host system type... " >&6; }
4227 if test "${ac_cv_host+set}" = set; then :
4228 $as_echo_n "(cached) " >&6
4230 if test "x$host_alias" = x
; then
4231 ac_cv_host
=$ac_cv_build
4233 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4234 as_fn_error
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4239 $as_echo "$ac_cv_host" >&6; }
4242 *) as_fn_error
"invalid value of canonical host" "$LINENO" 5;;
4245 ac_save_IFS
=$IFS; IFS
='-'
4251 # Remember, the first character of IFS is used to create $*,
4252 # except with old shells:
4255 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
4259 configuration
=${host_alias-${build_alias-$host}}
4263 ### If you add support for a new configuration, add code to this
4264 ### switch statement to recognize your configuration name and select
4265 ### the appropriate operating system and machine description files.
4267 ### You would hope that you could choose an m/*.h file pretty much
4268 ### based on the machine portion of the configuration name, and an s/*.h
4269 ### file based on the operating system portion. However, it turns out
4270 ### that each m/*.h file is pretty manufacturer-specific - for
4271 ### example mips.h is MIPS
4272 ### So we basically have to have a special case for each
4273 ### configuration name.
4275 ### As far as handling version numbers on operating systems is
4276 ### concerned, make sure things will fail in a fixable way. If
4277 ### /etc/MACHINES doesn't say anything about version numbers, be
4278 ### prepared to handle anything reasonably. If version numbers
4279 ### matter, be sure /etc/MACHINES says something about it.
4281 machine
='' opsys
='' unported
=no
4282 case "${canonical}" in
4287 case ${canonical} in
4288 alpha
*) machine
=alpha
;;
4289 s390-
*) machine
=ibms390
;;
4290 s390x-
*) machine
=ibms390x
;;
4291 powerpc
*) machine
=macppc
;;
4292 sparc
*) machine
=sparc
;;
4293 ia64
*) machine
=ia64
;;
4294 m68k
*) machine
=m68k
;;
4295 x86_64
*) machine
=amdx86-64
;;
4302 case "${canonical}" in
4303 alpha
*) machine
=alpha
;;
4304 amd64-
*|x86_64-
*) machine
=amdx86-64
;;
4305 ia64-
*) machine
=ia64
;;
4306 i
[3456]86-*) machine
=intel386
;;
4307 powerpc-
*) machine
=macppc
;;
4308 sparc-
*) machine
=sparc
;;
4309 sparc64-
*) machine
=sparc
;;
4313 ## FreeBSD kernel + glibc based userland
4316 case "${canonical}" in
4317 alpha
*) machine
=alpha
;;
4318 amd64-
*|x86_64-
*) machine
=amdx86-64
;;
4319 ia64-
*) machine
=ia64
;;
4320 i
[3456]86-*) machine
=intel386
;;
4321 powerpc-
*) machine
=macppc
;;
4322 sparc-
*) machine
=sparc
;;
4323 sparc64-
*) machine
=sparc
;;
4330 case "${canonical}" in
4331 alpha
*) machine
=alpha
;;
4332 x86_64-
*) machine
=amdx86-64
;;
4333 i
[3456]86-*) machine
=intel386
;;
4334 m68k-
*) machine
=m68k
;;
4335 powerpc-
*) machine
=macppc
;;
4336 sparc
*-) machine
=sparc
;;
4337 vax-
*) machine
=vax
;;
4344 case "${canonical}" in
4345 alpha
*) machine
=alpha
;;
4346 x86_64-
*) machine
=amdx86-64
;;
4347 i386-
*) machine
=intel386
;;
4348 powerpc-
*) machine
=macppc
;;
4349 sparc
*) machine
=sparc
;;
4350 vax-
*) machine
=vax
;;
4354 ## Apple Darwin / Mac OS X
4356 case "${canonical}" in
4357 i
[3456]86-* ) machine
=intel386
;;
4358 powerpc-
* ) machine
=macppc
;;
4359 x86_64-
* ) machine
=amdx86-64
;;
4363 # Define CPP as follows to make autoconf work correctly.
4364 CPP
="${CC-cc} -E -no-cpp-precomp"
4365 # Use fink packages if available.
4366 if test -d /sw
/include
&& test -d /sw
/lib
; then
4367 GCC_TEST_OPTIONS
="-I/sw/include -L/sw/lib"
4368 CPP
="${CPP} ${GCC_TEST_OPTIONS}"
4369 NON_GCC_TEST_OPTIONS
=${GCC_TEST_OPTIONS}
4373 ## HP 9000 series 700 and 800, running HP/UX
4374 hppa
*-hp-hpux10.2
* )
4377 hppa
*-hp-hpux1[1-9]* )
4379 CFLAGS
="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
4382 ia64
*-hp-hpux1[1-9]* )
4383 machine
=hp800 opsys
=hpux11
4384 ## FIXME. Peter O'Gorman reports that dumping using unexelf.o doesn't
4385 ## work either: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=6811
4389 hppa
*-*-linux-gnu* )
4390 machine
=hp800 opsys
=gnu-linux
4394 rs6000-ibm-aix4.
[23]* )
4395 machine
=ibmrs6000 opsys
=aix4-2
4397 powerpc-ibm-aix4.
[23]* )
4398 machine
=ibmrs6000 opsys
=aix4-2
4400 rs6000-ibm-aix
[56]* )
4401 machine
=ibmrs6000 opsys
=aix4-2
4403 powerpc-ibm-aix
[56]* )
4404 machine
=ibmrs6000 opsys
=aix4-2
4407 ## Silicon Graphics machines
4410 machine
=iris4d opsys
=irix6-5
4411 # Without defining _LANGUAGE_C, things get masked out in the headers
4412 # so that, for instance, grepping for `free' in stdlib.h fails and
4413 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
4414 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
4415 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
4420 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* \
4421 | x86_64-
*-solaris2* | x86_64-
*-sunos5*)
4422 case "${canonical}" in
4423 i
[3456]86-*-* ) machine
=intel386
;;
4424 amd64-
*-*|x86_64-
*-*) machine
=amdx86-64
;;
4425 sparc
* ) machine
=sparc
;;
4428 case "${canonical}" in
4429 *-sunos5.6
* |
*-solaris2.6
* )
4431 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
4434 *-sunos5.
[7-9]* |
*-solaris2.
[7-9]* )
4436 emacs_check_sunpro_c
=yes
4437 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
4439 *-sunos5* |
*-solaris* )
4441 emacs_check_sunpro_c
=yes
4442 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
4445 ## Watch out for a compiler that we know will not work.
4446 case "${canonical}" in
4447 *-solaris* |
*-sunos5* )
4448 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
4449 ## /usr/ucb/cc doesn't work;
4450 ## we should find some other compiler that does work.
4458 ## Intel 386 machines where we don't care about the manufacturer.
4461 case "${canonical}" in
4462 *-cygwin ) opsys
=cygwin
;;
4463 *-darwin* ) opsys
=darwin
4464 CPP
="${CC-cc} -E -no-cpp-precomp"
4466 *-sysv4.2uw
* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
4467 *-sysv5uw* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
4468 *-sysv5OpenUNIX* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
4469 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
4478 ### If the code above didn't choose an operating system, just choose
4479 ### an operating system based on the configuration name. You really
4480 ### only want to use this when you have no idea what the right
4481 ### operating system is; if you know what operating systems a machine
4482 ### runs, it's cleaner to make it explicit in the case statement
4484 if test x
"${opsys}" = x
; then
4485 case "${canonical}" in
4486 *-gnu* ) opsys
=gnu
;;
4495 if test $unported = yes; then
4496 as_fn_error
"Emacs hasn't been ported to \`${canonical}' systems.
4497 Check \`etc/MACHINES' for recognized configuration names." "$LINENO" 5
4500 if test -n "$machine"; then
4501 machfile
="m/${machine}.h"
4505 opsysfile
="s/${opsys}.h"
4508 #### Choose a compiler.
4509 test -n "$CC" && cc_specified
=yes
4511 # Save the value of CFLAGS that the user specified.
4512 SPECIFIED_CFLAGS
="$CFLAGS"
4515 ac_cpp
='$CPP $CPPFLAGS'
4516 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4517 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4518 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4519 if test -n "$ac_tool_prefix"; then
4520 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4521 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
4522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4523 $as_echo_n "checking for $ac_word... " >&6; }
4524 if test "${ac_cv_prog_CC+set}" = set; then :
4525 $as_echo_n "(cached) " >&6
4527 if test -n "$CC"; then
4528 ac_cv_prog_CC
="$CC" # Let the user override the test.
4530 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4534 test -z "$as_dir" && as_dir
=.
4535 for ac_exec_ext
in '' $ac_executable_extensions; do
4536 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4537 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
4538 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4548 if test -n "$CC"; then
4549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4550 $as_echo "$CC" >&6; }
4552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4553 $as_echo "no" >&6; }
4558 if test -z "$ac_cv_prog_CC"; then
4560 # Extract the first word of "gcc", so it can be a program name with args.
4561 set dummy gcc
; ac_word
=$2
4562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4563 $as_echo_n "checking for $ac_word... " >&6; }
4564 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4565 $as_echo_n "(cached) " >&6
4567 if test -n "$ac_ct_CC"; then
4568 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4570 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4574 test -z "$as_dir" && as_dir
=.
4575 for ac_exec_ext
in '' $ac_executable_extensions; do
4576 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4577 ac_cv_prog_ac_ct_CC
="gcc"
4578 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4587 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4588 if test -n "$ac_ct_CC"; then
4589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4590 $as_echo "$ac_ct_CC" >&6; }
4592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4593 $as_echo "no" >&6; }
4596 if test "x$ac_ct_CC" = x
; then
4599 case $cross_compiling:$ac_tool_warned in
4601 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4602 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4603 ac_tool_warned
=yes ;;
4611 if test -z "$CC"; then
4612 if test -n "$ac_tool_prefix"; then
4613 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4614 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
4615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4616 $as_echo_n "checking for $ac_word... " >&6; }
4617 if test "${ac_cv_prog_CC+set}" = set; then :
4618 $as_echo_n "(cached) " >&6
4620 if test -n "$CC"; then
4621 ac_cv_prog_CC
="$CC" # Let the user override the test.
4623 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4627 test -z "$as_dir" && as_dir
=.
4628 for ac_exec_ext
in '' $ac_executable_extensions; do
4629 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4630 ac_cv_prog_CC
="${ac_tool_prefix}cc"
4631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4641 if test -n "$CC"; then
4642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4643 $as_echo "$CC" >&6; }
4645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4646 $as_echo "no" >&6; }
4652 if test -z "$CC"; then
4653 # Extract the first word of "cc", so it can be a program name with args.
4654 set dummy cc
; ac_word
=$2
4655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4656 $as_echo_n "checking for $ac_word... " >&6; }
4657 if test "${ac_cv_prog_CC+set}" = set; then :
4658 $as_echo_n "(cached) " >&6
4660 if test -n "$CC"; then
4661 ac_cv_prog_CC
="$CC" # Let the user override the test.
4664 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4668 test -z "$as_dir" && as_dir
=.
4669 for ac_exec_ext
in '' $ac_executable_extensions; do
4670 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4671 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4672 ac_prog_rejected
=yes
4676 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4683 if test $ac_prog_rejected = yes; then
4684 # We found a bogon in the path, so make sure we never use it.
4685 set dummy
$ac_cv_prog_CC
4687 if test $# != 0; then
4688 # We chose a different compiler from the bogus one.
4689 # However, it has the same basename, so the bogon will be chosen
4690 # first if we set CC to just the basename; use the full file name.
4692 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
4698 if test -n "$CC"; then
4699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4700 $as_echo "$CC" >&6; }
4702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4703 $as_echo "no" >&6; }
4708 if test -z "$CC"; then
4709 if test -n "$ac_tool_prefix"; then
4710 for ac_prog
in cl.exe
4712 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4713 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4715 $as_echo_n "checking for $ac_word... " >&6; }
4716 if test "${ac_cv_prog_CC+set}" = set; then :
4717 $as_echo_n "(cached) " >&6
4719 if test -n "$CC"; then
4720 ac_cv_prog_CC
="$CC" # Let the user override the test.
4722 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4726 test -z "$as_dir" && as_dir
=.
4727 for ac_exec_ext
in '' $ac_executable_extensions; do
4728 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4729 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
4730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4740 if test -n "$CC"; then
4741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4742 $as_echo "$CC" >&6; }
4744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4745 $as_echo "no" >&6; }
4749 test -n "$CC" && break
4752 if test -z "$CC"; then
4754 for ac_prog
in cl.exe
4756 # Extract the first word of "$ac_prog", so it can be a program name with args.
4757 set dummy
$ac_prog; ac_word
=$2
4758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4759 $as_echo_n "checking for $ac_word... " >&6; }
4760 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4761 $as_echo_n "(cached) " >&6
4763 if test -n "$ac_ct_CC"; then
4764 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4766 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4770 test -z "$as_dir" && as_dir
=.
4771 for ac_exec_ext
in '' $ac_executable_extensions; do
4772 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4773 ac_cv_prog_ac_ct_CC
="$ac_prog"
4774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4783 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4784 if test -n "$ac_ct_CC"; then
4785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4786 $as_echo "$ac_ct_CC" >&6; }
4788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4789 $as_echo "no" >&6; }
4793 test -n "$ac_ct_CC" && break
4796 if test "x$ac_ct_CC" = x
; then
4799 case $cross_compiling:$ac_tool_warned in
4801 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4802 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4803 ac_tool_warned
=yes ;;
4812 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4813 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4814 as_fn_error
"no acceptable C compiler found in \$PATH
4815 See \`config.log' for more details." "$LINENO" 5; }
4817 # Provide some information about the compiler.
4818 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4821 for ac_option
in --version -v -V -qversion; do
4822 { { ac_try
="$ac_compiler $ac_option >&5"
4824 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4825 *) ac_try_echo=$ac_try;;
4827 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4828 $as_echo "$ac_try_echo"; } >&5
4829 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4831 if test -s conftest.err; then
4833 ... rest of stderr output deleted ...
4834 10q' conftest.err >conftest.er1
4835 cat conftest.er1 >&5
4837 rm -f conftest.er1 conftest.err
4838 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4839 test $ac_status = 0; }
4842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4843 /* end confdefs.h. */
4853 ac_clean_files_save=$ac_clean_files
4854 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4855 # Try to create an executable without -o first, disregard a.out.
4856 # It will help us diagnose broken compilers, and finding out an intuition
4858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4859 $as_echo_n "checking whether the C compiler works... " >&6; }
4860 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
4862 # The possible output files:
4863 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4866 for ac_file in $ac_files
4869 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4870 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4875 if { { ac_try="$ac_link_default"
4877 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4878 *) ac_try_echo
=$ac_try;;
4880 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4881 $as_echo "$ac_try_echo"; } >&5
4882 (eval "$ac_link_default") 2>&5
4884 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4885 test $ac_status = 0; }; then :
4886 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4887 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4888 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4889 # so that the user can short-circuit this test for compilers unknown to
4891 for ac_file
in $ac_files ''
4893 test -f "$ac_file" ||
continue
4895 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
4898 # We found the default executable, but exeext='' is most
4902 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
4904 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4906 # We set ac_cv_exeext here because the later test for it is not
4907 # safe: cross compilers may not add the suffix if given an `-o'
4908 # argument, so we may need to know it at that point already.
4909 # Even if this section looks crufty: it has the advantage of
4916 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
4921 if test -z "$ac_file"; then :
4922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4923 $as_echo "no" >&6; }
4924 $as_echo "$as_me: failed program was:" >&5
4925 sed 's/^/| /' conftest.
$ac_ext >&5
4927 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4928 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4929 { as_fn_set_status
77
4930 as_fn_error
"C compiler cannot create executables
4931 See \`config.log' for more details." "$LINENO" 5; }; }
4933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4934 $as_echo "yes" >&6; }
4936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4937 $as_echo_n "checking for C compiler default output file name... " >&6; }
4938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4939 $as_echo "$ac_file" >&6; }
4940 ac_exeext
=$ac_cv_exeext
4942 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
4943 ac_clean_files
=$ac_clean_files_save
4944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4945 $as_echo_n "checking for suffix of executables... " >&6; }
4946 if { { ac_try
="$ac_link"
4948 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4949 *) ac_try_echo=$ac_try;;
4951 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4952 $as_echo "$ac_try_echo"; } >&5
4953 (eval "$ac_link") 2>&5
4955 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4956 test $ac_status = 0; }; then :
4957 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
4958 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
4959 # work properly (i.e., refer to `conftest.exe'), while it won't with
4961 for ac_file
in conftest.exe conftest conftest.
*; do
4962 test -f "$ac_file" ||
continue
4964 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
4965 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4971 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4972 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4973 as_fn_error
"cannot compute suffix of executables: cannot compile and link
4974 See \`config.log' for more details." "$LINENO" 5; }
4976 rm -f conftest conftest
$ac_cv_exeext
4977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4978 $as_echo "$ac_cv_exeext" >&6; }
4980 rm -f conftest.
$ac_ext
4981 EXEEXT
=$ac_cv_exeext
4983 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4984 /* end confdefs.h. */
4989 FILE *f = fopen ("conftest.out", "w");
4990 return ferror (f) || fclose (f) != 0;
4996 ac_clean_files
="$ac_clean_files conftest.out"
4997 # Check that the compiler produces executables we can run. If not, either
4998 # the compiler is broken, or we cross compile.
4999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5000 $as_echo_n "checking whether we are cross compiling... " >&6; }
5001 if test "$cross_compiling" != yes; then
5002 { { ac_try
="$ac_link"
5004 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5005 *) ac_try_echo=$ac_try;;
5007 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5008 $as_echo "$ac_try_echo"; } >&5
5009 (eval "$ac_link") 2>&5
5011 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5012 test $ac_status = 0; }
5013 if { ac_try='./conftest$ac_cv_exeext'
5014 { { case "(($ac_try" in
5015 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5016 *) ac_try_echo
=$ac_try;;
5018 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5019 $as_echo "$ac_try_echo"; } >&5
5020 (eval "$ac_try") 2>&5
5022 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5023 test $ac_status = 0; }; }; then
5026 if test "$cross_compiling" = maybe
; then
5029 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5030 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5031 as_fn_error
"cannot run C compiled programs.
5032 If you meant to cross compile, use \`--host'.
5033 See \`config.log' for more details." "$LINENO" 5; }
5037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5038 $as_echo "$cross_compiling" >&6; }
5040 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
5041 ac_clean_files
=$ac_clean_files_save
5042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
5043 $as_echo_n "checking for suffix of object files... " >&6; }
5044 if test "${ac_cv_objext+set}" = set; then :
5045 $as_echo_n "(cached) " >&6
5047 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5048 /* end confdefs.h. */
5058 rm -f conftest.o conftest.obj
5059 if { { ac_try
="$ac_compile"
5061 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5062 *) ac_try_echo=$ac_try;;
5064 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5065 $as_echo "$ac_try_echo"; } >&5
5066 (eval "$ac_compile") 2>&5
5068 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5069 test $ac_status = 0; }; then :
5070 for ac_file in conftest.o conftest.obj conftest.*; do
5071 test -f "$ac_file" || continue;
5073 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5074 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5079 $as_echo "$as_me: failed program was:" >&5
5080 sed 's/^/| /' conftest.$ac_ext >&5
5082 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5083 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5084 as_fn_error "cannot compute suffix of object files
: cannot compile
5085 See \
`config.log' for more details." "$LINENO" 5; }
5087 rm -f conftest.$ac_cv_objext conftest.$ac_ext
5089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5090 $as_echo "$ac_cv_objext" >&6; }
5091 OBJEXT=$ac_cv_objext
5093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5094 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5095 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5096 $as_echo_n "(cached) " >&6
5098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5099 /* end confdefs.h. */
5112 if ac_fn_c_try_compile "$LINENO"; then :
5117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5118 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5122 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5123 if test $ac_compiler_gnu = yes; then
5128 ac_test_CFLAGS=${CFLAGS+set}
5129 ac_save_CFLAGS=$CFLAGS
5130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5131 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5132 if test "${ac_cv_prog_cc_g+set}" = set; then :
5133 $as_echo_n "(cached) " >&6
5135 ac_save_c_werror_flag=$ac_c_werror_flag
5136 ac_c_werror_flag=yes
5139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5140 /* end confdefs.h. */
5150 if ac_fn_c_try_compile "$LINENO"; then :
5154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5155 /* end confdefs.h. */
5165 if ac_fn_c_try_compile "$LINENO"; then :
5168 ac_c_werror_flag=$ac_save_c_werror_flag
5170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5171 /* end confdefs.h. */
5181 if ac_fn_c_try_compile "$LINENO"; then :
5184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5189 ac_c_werror_flag=$ac_save_c_werror_flag
5191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5192 $as_echo "$ac_cv_prog_cc_g" >&6; }
5193 if test "$ac_test_CFLAGS" = set; then
5194 CFLAGS=$ac_save_CFLAGS
5195 elif test $ac_cv_prog_cc_g = yes; then
5196 if test "$GCC" = yes; then
5202 if test "$GCC" = yes; then
5208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5209 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5210 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5211 $as_echo_n "(cached) " >&6
5213 ac_cv_prog_cc_c89=no
5215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5216 /* end confdefs.h. */
5219 #include <sys/types.h>
5220 #include <sys/stat.h>
5221 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5222 struct buf { int x; };
5223 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5224 static char *e (p, i)
5230 static char *f (char * (*g) (char **, int), char **p, ...)
5235 s = g (p, va_arg (v,int));
5240 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5241 function prototypes and stuff, but not '\xHH' hex character constants.
5242 These don't provoke an error unfortunately, instead are silently treated
5243 as 'x'. The following induces an error, until -std is added to get
5244 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5245 array size at least. It's necessary to write '\x00'==0 to get something
5246 that's true only with -std. */
5247 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5249 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5250 inside strings and character constants. */
5252 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5254 int test (int i, double x);
5255 struct s1 {int (*f) (int a);};
5256 struct s2 {int (*f) (double a);};
5257 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5263 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5268 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5269 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5271 CC="$ac_save_CC $ac_arg"
5272 if ac_fn_c_try_compile "$LINENO"; then :
5273 ac_cv_prog_cc_c89=$ac_arg
5275 rm -f core conftest.err conftest.$ac_objext
5276 test "x$ac_cv_prog_cc_c89" != "xno" && break
5278 rm -f conftest.$ac_ext
5283 case "x$ac_cv_prog_cc_c89" in
5285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5286 $as_echo "none needed" >&6; } ;;
5288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5289 $as_echo "unsupported" >&6; } ;;
5291 CC="$CC $ac_cv_prog_cc_c89"
5292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5293 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5295 if test "x$ac_cv_prog_cc_c89" != xno; then :
5300 ac_cpp='$CPP $CPPFLAGS'
5301 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5302 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5303 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5304 DEPDIR="${am__leading_dot}deps"
5306 ac_config_commands="$ac_config_commands depfiles"
5309 am_make=${MAKE-make}
5310 cat > confinc << 'END'
5312 @echo this is the am__doit target
5315 # If we don't find an include directive, just comment out the code.
5316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
5317 $as_echo_n "checking for style of include used by $am_make... " >&6; }
5321 # First try GNU make style include.
5322 echo "include confinc" > confmf
5323 # Ignore all kinds of additional output from `make'.
5324 case `$am_make -s -f confmf 2> /dev/null` in #(
5325 *the\ am__doit\ target*)
5331 # Now try BSD make style include.
5332 if test "$am__include" = "#"; then
5333 echo '.include
"confinc"' > confmf
5334 case `$am_make -s -f confmf 2> /dev/null` in #(
5335 *the\ am__doit\ target*)
5336 am__include=.include
5344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5345 $as_echo "$_am_result" >&6; }
5346 rm -f confinc confmf
5348 # Check whether --enable-dependency-tracking was given.
5349 if test "${enable_dependency_tracking+set}" = set; then :
5350 enableval=$enable_dependency_tracking;
5353 if test "x$enable_dependency_tracking" != xno; then
5354 am_depcomp="$ac_aux_dir/depcomp"
5357 if test "x$enable_dependency_tracking" != xno
; then
5367 depcc
="$CC" am_compiler_list
=
5369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5370 $as_echo_n "checking dependency style of $depcc... " >&6; }
5371 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5372 $as_echo_n "(cached) " >&6
5374 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5375 # We make a subdir and do the tests there. Otherwise we can end up
5376 # making bogus files that we don't know about and never remove. For
5377 # instance it was reported that on HP-UX the gcc test will end up
5378 # making a dummy file named `D' -- because `-MD' means `put the output
5381 # Copy depcomp to subdir because otherwise we won't find it if we're
5382 # using a relative directory.
5383 cp "$am_depcomp" conftest.dir
5385 # We will build objects and dependencies in a subdirectory because
5386 # it helps to detect inapplicable dependency modes. For instance
5387 # both Tru64's cc and ICC support -MD to output dependencies as a
5388 # side effect of compilation, but ICC will put the dependencies in
5389 # the current directory while Tru64 will put them in the object
5393 am_cv_CC_dependencies_compiler_type
=none
5394 if test "$am_compiler_list" = ""; then
5395 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5398 case " $depcc " in #(
5399 *\
-arch\
*\
-arch\
*) am__universal
=true
;;
5402 for depmode
in $am_compiler_list; do
5403 # Setup a source with many dependencies, because some compilers
5404 # like to wrap large dependency lists on column 80 (with \), and
5405 # we should not choose a depcomp mode which is confused by this.
5407 # We need to recreate these files for each test, as the compiler may
5408 # overwrite some of them when testing with obscure command lines.
5409 # This happens at least with the AIX C compiler.
5411 for i
in 1 2 3 4 5 6; do
5412 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
5413 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5414 # Solaris 8's {/usr,}/bin/sh.
5415 touch sub
/conftst
$i.h
5417 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5419 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5420 # mode. It turns out that the SunPro C++ compiler does not properly
5421 # handle `-M -o', and we need to detect this. Also, some Intel
5422 # versions had trouble with output in subdirs
5423 am__obj
=sub
/conftest.
${OBJEXT-o}
5424 am__minus_obj
="-o $am__obj"
5427 # This depmode causes a compiler race in universal mode.
5428 test "$am__universal" = false ||
continue
5431 # after this tag, mechanisms are not by side-effect, so they'll
5432 # only be used when explicitly requested
5433 if test "x$enable_dependency_tracking" = xyes
; then
5439 msvisualcpp | msvcmsys
)
5440 # This compiler won't grok `-c -o', but also, the minuso test has
5441 # not run yet. These depmodes are late enough in the game, and
5442 # so weak that their functioning should not be impacted.
5443 am__obj
=conftest.
${OBJEXT-o}
5448 if depmode
=$depmode \
5449 source=sub
/conftest.c object
=$am__obj \
5450 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
5451 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
5452 >/dev
/null
2>conftest.err
&&
5453 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
5454 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
5455 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
5456 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
5457 # icc doesn't choke on unknown options, it will just issue warnings
5458 # or remarks (even with -Werror). So we grep stderr for any message
5459 # that says an option was ignored or not supported.
5460 # When given -MP, icc 7.0 and 7.1 complain thusly:
5461 # icc: Command line warning: ignoring option '-M'; no argument required
5462 # The diagnosis changed in icc 8.0:
5463 # icc: Command line remark: option '-MP' not supported
5464 if (grep 'ignoring option' conftest.err ||
5465 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
5466 am_cv_CC_dependencies_compiler_type
=$depmode
5475 am_cv_CC_dependencies_compiler_type
=none
5479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5480 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5481 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
5484 test "x$enable_dependency_tracking" != xno \
5485 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
5487 am__fastdepCC_FALSE
='#'
5489 am__fastdepCC_TRUE
='#'
5490 am__fastdepCC_FALSE
=
5494 if test "x$CC" != xcc
; then
5495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5496 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5499 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5501 set dummy
$CC; ac_cc
=`$as_echo "$2" |
5502 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5503 if { as_var
=ac_cv_prog_cc_
${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
5504 $as_echo_n "(cached) " >&6
5506 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5507 /* end confdefs.h. */
5517 # Make sure it works both with $CC and with simple cc.
5518 # We do the test twice because some compilers refuse to overwrite an
5519 # existing .o file with -o, though they will create one.
5520 ac_try
='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5522 if { { case "(($ac_try" in
5523 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5524 *) ac_try_echo=$ac_try;;
5526 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5527 $as_echo "$ac_try_echo"; } >&5
5528 (eval "$ac_try") 2>&5
5530 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5531 test $ac_status = 0; } &&
5532 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5533 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5534 *) ac_try_echo
=$ac_try;;
5536 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5537 $as_echo "$ac_try_echo"; } >&5
5538 (eval "$ac_try") 2>&5
5540 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5541 test $ac_status = 0; };
5543 eval ac_cv_prog_cc_
${ac_cc}_c_o
=yes
5544 if test "x$CC" != xcc
; then
5545 # Test first that cc exists at all.
5546 if { ac_try
='cc -c conftest.$ac_ext >&5'
5547 { { case "(($ac_try" in
5548 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5549 *) ac_try_echo=$ac_try;;
5551 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5552 $as_echo "$ac_try_echo"; } >&5
5553 (eval "$ac_try") 2>&5
5555 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5556 test $ac_status = 0; }; }; then
5557 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5559 if { { case "(($ac_try" in
5560 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5561 *) ac_try_echo
=$ac_try;;
5563 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5564 $as_echo "$ac_try_echo"; } >&5
5565 (eval "$ac_try") 2>&5
5567 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5568 test $ac_status = 0; } &&
5569 test -f conftest2.
$ac_objext && { { case "(($ac_try" in
5570 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5571 *) ac_try_echo=$ac_try;;
5573 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5574 $as_echo "$ac_try_echo"; } >&5
5575 (eval "$ac_try") 2>&5
5577 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5578 test $ac_status = 0; };
5583 # cc exists but doesn't like -o.
5584 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5589 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5591 rm -f core conftest*
5594 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5596 $as_echo "yes" >&6; }
5598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5599 $as_echo "no" >&6; }
5601 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5605 # FIXME: we rely on the cache variable name because
5606 # there is no other way.
5608 am_cc=`echo $2 |
sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5609 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5610 if test "$am_t" != yes; then
5611 # Losing compiler, so override with the script.
5612 # FIXME: It is wrong to rewrite CC.
5613 # But if we don't then we get into trouble of one sort or another.
5614 # A longer-term fix would be to have automake use am__CC in this case,
5615 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5616 CC="$am_aux_dir/compile $CC"
5621 # Initialize gnulib right after verifying that the C compiler works.
5622 if test -n "$ac_tool_prefix"; then
5623 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5624 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5626 $as_echo_n "checking for $ac_word... " >&6; }
5627 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5628 $as_echo_n "(cached) " >&6
5630 if test -n "$RANLIB"; then
5631 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5637 test -z "$as_dir" && as_dir=.
5638 for ac_exec_ext in '' $ac_executable_extensions; do
5639 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5640 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5641 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5650 RANLIB=$ac_cv_prog_RANLIB
5651 if test -n "$RANLIB"; then
5652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5653 $as_echo "$RANLIB" >&6; }
5655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5656 $as_echo "no" >&6; }
5661 if test -z "$ac_cv_prog_RANLIB"; then
5662 ac_ct_RANLIB=$RANLIB
5663 # Extract the first word of "ranlib", so it can be a program name with args.
5664 set dummy ranlib; ac_word=$2
5665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5666 $as_echo_n "checking for $ac_word... " >&6; }
5667 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5668 $as_echo_n "(cached) " >&6
5670 if test -n "$ac_ct_RANLIB"; then
5671 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5677 test -z "$as_dir" && as_dir=.
5678 for ac_exec_ext in '' $ac_executable_extensions; do
5679 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5680 ac_cv_prog_ac_ct_RANLIB="ranlib"
5681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5690 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5691 if test -n "$ac_ct_RANLIB"; then
5692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5693 $as_echo "$ac_ct_RANLIB" >&6; }
5695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5696 $as_echo "no" >&6; }
5699 if test "x$ac_ct_RANLIB" = x; then
5702 case $cross_compiling:$ac_tool_warned in
5704 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5705 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5706 ac_tool_warned=yes ;;
5708 RANLIB=$ac_ct_RANLIB
5711 RANLIB="$ac_cv_prog_RANLIB"
5716 ac_cpp='$CPP $CPPFLAGS'
5717 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5718 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5719 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5721 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5722 # On Suns, sometimes $CPP names a directory.
5723 if test -n "$CPP" && test -d "$CPP"; then
5726 if test -z "$CPP"; then
5727 if test "${ac_cv_prog_CPP+set}" = set; then :
5728 $as_echo_n "(cached) " >&6
5730 # Double quotes because CPP needs to be expanded
5731 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5734 for ac_c_preproc_warn_flag in '' yes
5736 # Use a header file that comes with gcc, so configuring glibc
5737 # with a fresh cross-compiler works.
5738 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5739 # <limits.h> exists even on freestanding compilers.
5740 # On the NeXT, cc -E runs the code through the compiler's parser,
5741 # not just through cpp. "Syntax error" is here to catch this case.
5742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5743 /* end confdefs.h. */
5745 # include <limits.h>
5747 # include <assert.h>
5751 if ac_fn_c_try_cpp "$LINENO"; then :
5754 # Broken: fails on valid input.
5757 rm -f conftest.err conftest.$ac_ext
5759 # OK, works on sane cases. Now check whether nonexistent headers
5760 # can be detected and how.
5761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5762 /* end confdefs.h. */
5763 #include <ac_nonexistent.h>
5765 if ac_fn_c_try_cpp "$LINENO"; then :
5766 # Broken: success on invalid input.
5769 # Passes both tests.
5773 rm -f conftest.err conftest.$ac_ext
5776 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5777 rm -f conftest.err conftest.
$ac_ext
5778 if $ac_preproc_ok; then :
5790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5791 $as_echo "$CPP" >&6; }
5793 for ac_c_preproc_warn_flag
in '' yes
5795 # Use a header file that comes with gcc, so configuring glibc
5796 # with a fresh cross-compiler works.
5797 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5798 # <limits.h> exists even on freestanding compilers.
5799 # On the NeXT, cc -E runs the code through the compiler's parser,
5800 # not just through cpp. "Syntax error" is here to catch this case.
5801 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5802 /* end confdefs.h. */
5804 # include <limits.h>
5806 # include <assert.h>
5810 if ac_fn_c_try_cpp
"$LINENO"; then :
5813 # Broken: fails on valid input.
5816 rm -f conftest.err conftest.
$ac_ext
5818 # OK, works on sane cases. Now check whether nonexistent headers
5819 # can be detected and how.
5820 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5821 /* end confdefs.h. */
5822 #include <ac_nonexistent.h>
5824 if ac_fn_c_try_cpp
"$LINENO"; then :
5825 # Broken: success on invalid input.
5828 # Passes both tests.
5832 rm -f conftest.err conftest.
$ac_ext
5835 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5836 rm -f conftest.err conftest.
$ac_ext
5837 if $ac_preproc_ok; then :
5840 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5841 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5842 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
5843 See \`config.log' for more details." "$LINENO" 5; }
5847 ac_cpp
='$CPP $CPPFLAGS'
5848 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5849 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5850 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5854 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5855 if test "${ac_cv_path_GREP+set}" = set; then :
5856 $as_echo_n "(cached) " >&6
5858 if test -z "$GREP"; then
5859 ac_path_GREP_found
=false
5860 # Loop through the user's path and test for each of PROGNAME-LIST
5861 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5862 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5865 test -z "$as_dir" && as_dir
=.
5866 for ac_prog
in grep ggrep
; do
5867 for ac_exec_ext
in '' $ac_executable_extensions; do
5868 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
5869 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
5870 # Check for GNU ac_path_GREP and select it if it is found.
5871 # Check for GNU $ac_path_GREP
5872 case `"$ac_path_GREP" --version 2>&1` in
5874 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
5877 $as_echo_n 0123456789 >"conftest.in"
5880 cat "conftest.in" "conftest.in" >"conftest.tmp"
5881 mv "conftest.tmp" "conftest.in"
5882 cp "conftest.in" "conftest.nl"
5883 $as_echo 'GREP' >> "conftest.nl"
5884 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5885 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5886 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5887 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5888 # Best one so far, save it but keep looking for a better one
5889 ac_cv_path_GREP
="$ac_path_GREP"
5890 ac_path_GREP_max
=$ac_count
5892 # 10*(2^10) chars as input seems more than enough
5893 test $ac_count -gt 10 && break
5895 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5898 $ac_path_GREP_found && break 3
5903 if test -z "$ac_cv_path_GREP"; then
5904 as_fn_error
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5907 ac_cv_path_GREP
=$GREP
5911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5912 $as_echo "$ac_cv_path_GREP" >&6; }
5913 GREP
="$ac_cv_path_GREP"
5916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5917 $as_echo_n "checking for egrep... " >&6; }
5918 if test "${ac_cv_path_EGREP+set}" = set; then :
5919 $as_echo_n "(cached) " >&6
5921 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
5922 then ac_cv_path_EGREP
="$GREP -E"
5924 if test -z "$EGREP"; then
5925 ac_path_EGREP_found
=false
5926 # Loop through the user's path and test for each of PROGNAME-LIST
5927 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5928 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5931 test -z "$as_dir" && as_dir
=.
5932 for ac_prog
in egrep; do
5933 for ac_exec_ext
in '' $ac_executable_extensions; do
5934 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
5935 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
5936 # Check for GNU ac_path_EGREP and select it if it is found.
5937 # Check for GNU $ac_path_EGREP
5938 case `"$ac_path_EGREP" --version 2>&1` in
5940 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
5943 $as_echo_n 0123456789 >"conftest.in"
5946 cat "conftest.in" "conftest.in" >"conftest.tmp"
5947 mv "conftest.tmp" "conftest.in"
5948 cp "conftest.in" "conftest.nl"
5949 $as_echo 'EGREP' >> "conftest.nl"
5950 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5951 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5952 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5953 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5954 # Best one so far, save it but keep looking for a better one
5955 ac_cv_path_EGREP
="$ac_path_EGREP"
5956 ac_path_EGREP_max
=$ac_count
5958 # 10*(2^10) chars as input seems more than enough
5959 test $ac_count -gt 10 && break
5961 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5964 $ac_path_EGREP_found && break 3
5969 if test -z "$ac_cv_path_EGREP"; then
5970 as_fn_error
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5973 ac_cv_path_EGREP
=$EGREP
5978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5979 $as_echo "$ac_cv_path_EGREP" >&6; }
5980 EGREP
="$ac_cv_path_EGREP"
5983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5984 $as_echo_n "checking for ANSI C header files... " >&6; }
5985 if test "${ac_cv_header_stdc+set}" = set; then :
5986 $as_echo_n "(cached) " >&6
5988 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5989 /* end confdefs.h. */
6003 if ac_fn_c_try_compile
"$LINENO"; then :
6004 ac_cv_header_stdc
=yes
6006 ac_cv_header_stdc
=no
6008 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6010 if test $ac_cv_header_stdc = yes; then
6011 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6012 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6013 /* end confdefs.h. */
6017 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6018 $EGREP "memchr" >/dev
/null
2>&1; then :
6021 ac_cv_header_stdc
=no
6027 if test $ac_cv_header_stdc = yes; then
6028 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6029 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6030 /* end confdefs.h. */
6034 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6035 $EGREP "free" >/dev
/null
2>&1; then :
6038 ac_cv_header_stdc
=no
6044 if test $ac_cv_header_stdc = yes; then
6045 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6046 if test "$cross_compiling" = yes; then :
6049 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6050 /* end confdefs.h. */
6053 #if ((' ' & 0x0FF) == 0x020)
6054 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6055 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6057 # define ISLOWER(c) \
6058 (('a' <= (c) && (c) <= 'i') \
6059 || ('j' <= (c) && (c) <= 'r') \
6060 || ('s' <= (c) && (c) <= 'z'))
6061 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6064 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6069 for (i = 0; i < 256; i++)
6070 if (XOR (islower (i), ISLOWER (i))
6071 || toupper (i) != TOUPPER (i))
6076 if ac_fn_c_try_run
"$LINENO"; then :
6079 ac_cv_header_stdc
=no
6081 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6082 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6088 $as_echo "$ac_cv_header_stdc" >&6; }
6089 if test $ac_cv_header_stdc = yes; then
6091 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6095 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6096 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
6097 inttypes.h stdint.h unistd.h
6099 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6100 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6102 eval as_val
=\$
$as_ac_Header
6103 if test "x$as_val" = x
""yes; then :
6104 cat >>confdefs.h
<<_ACEOF
6105 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6116 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
6117 if test "x$ac_cv_header_minix_config_h" = x
""yes; then :
6124 if test "$MINIX" = yes; then
6126 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
6129 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
6132 $as_echo "#define _MINIX 1" >>confdefs.h
6139 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
6145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
6146 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
6147 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
6148 $as_echo_n "(cached) " >&6
6150 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6151 /* end confdefs.h. */
6153 # define __EXTENSIONS__ 1
6154 $ac_includes_default
6163 if ac_fn_c_try_compile
"$LINENO"; then :
6164 ac_cv_safe_to_define___extensions__
=yes
6166 ac_cv_safe_to_define___extensions__
=no
6168 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
6171 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6172 test $ac_cv_safe_to_define___extensions__ = yes &&
6173 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
6175 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6177 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
6179 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6181 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
6192 # Code from module arg-nonnull:
6193 # Code from module c++defs:
6194 # Code from module crypto/md5:
6195 # Code from module dosname:
6196 # Code from module dtoastr:
6197 # Code from module extensions:
6199 # Code from module filemode:
6200 # Code from module getloadavg:
6201 # Code from module getopt-gnu:
6202 # Code from module getopt-posix:
6203 # Code from module gettext-h:
6204 # Code from module ignore-value:
6205 # Code from module include_next:
6206 # Code from module intprops:
6207 # Code from module lstat:
6208 # Code from module mktime:
6209 # Code from module multiarch:
6210 # Code from module readlink:
6211 # Code from module socklen:
6212 # Code from module stat:
6213 # Code from module stdbool:
6214 # Code from module stddef:
6215 # Code from module stdint:
6216 # Code from module stdio:
6217 # Code from module stdlib:
6218 # Code from module strftime:
6219 # Code from module symlink:
6220 # Code from module sys_stat:
6221 # Code from module time:
6222 # Code from module time_r:
6223 # Code from module unistd:
6224 # Code from module warn-on-use:
6227 # On Suns, sometimes $CPP names a directory.
6228 if test -n "$CPP" && test -d "$CPP"; then
6232 ## If not using gcc, and on Solaris, and no CPP specified, see if
6233 ## using a Sun compiler, which needs -Xs to prevent whitespace.
6234 if test x
"$GCC" != xyes
&& test x
"$emacs_check_sunpro_c" = xyes
&& \
6235 test x
"$CPP" = x
; then
6236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using a Sun C compiler" >&5
6237 $as_echo_n "checking whether we are using a Sun C compiler... " >&6; }
6238 if test "${emacs_cv_sunpro_c+set}" = set; then :
6239 $as_echo_n "(cached) " >&6
6241 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6242 /* end confdefs.h. */
6255 if ac_fn_c_try_link
"$LINENO"; then :
6256 emacs_cv_sunpro_c
=yes
6258 emacs_cv_sunpro_c
=no
6260 rm -f core conftest.err conftest.
$ac_objext \
6261 conftest
$ac_exeext conftest.
$ac_ext
6264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_sunpro_c" >&5
6265 $as_echo "$emacs_cv_sunpro_c" >&6; }
6267 if test x
"$emacs_cv_sunpro_c" = xyes
; then
6268 NON_GNU_CPP
="$CC -E -Xs"
6272 #### Some systems specify a CPP to use unless we are using GCC.
6273 #### Now that we know whether we are using GCC, we can decide whether
6274 #### to use that one.
6275 if test "x$NON_GNU_CPP" != x
&& test x
$GCC != xyes
&& test "x$CPP" = x
6280 #### Some systems specify a CC to use unless we are using GCC.
6281 #### Now that we know whether we are using GCC, we can decide whether
6282 #### to use that one.
6283 if test "x$NON_GNU_CC" != x
&& test x
$GCC != xyes
&&
6284 test x
$cc_specified != xyes
6289 if test x
$GCC = xyes
; then
6290 test "x$GCC_TEST_OPTIONS" != x
&& CC
="$CC $GCC_TEST_OPTIONS"
6292 test "x$NON_GCC_TEST_OPTIONS" != x
&& CC
="$CC $NON_GCC_TEST_OPTIONS"
6295 ### Use -Wdeclaration-after-statement if the compiler supports it
6296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wdeclaration-after-statement" >&5
6297 $as_echo_n "checking whether gcc understands -Wdeclaration-after-statement... " >&6; }
6298 SAVE_CFLAGS
="$CFLAGS"
6299 CFLAGS
="$CFLAGS -Wdeclaration-after-statement"
6300 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6301 /* end confdefs.h. */
6311 if ac_fn_c_try_compile
"$LINENO"; then :
6316 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6317 if test $has_option = yes; then
6318 C_WARNINGS_SWITCH
="-Wdeclaration-after-statement $C_WARNINGS_SWITCH"
6320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
6321 $as_echo "$has_option" >&6; }
6322 CFLAGS
="$SAVE_CFLAGS"
6326 ### Use -Wold-style-definition if the compiler supports it
6327 # This can be removed when conversion to standard C is finished.
6328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wold-style-definition" >&5
6329 $as_echo_n "checking whether gcc understands -Wold-style-definition... " >&6; }
6330 SAVE_CFLAGS
="$CFLAGS"
6331 CFLAGS
="$CFLAGS -Wold-style-definition"
6332 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6333 /* end confdefs.h. */
6343 if ac_fn_c_try_compile
"$LINENO"; then :
6348 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6349 if test $has_option = yes; then
6350 C_WARNINGS_SWITCH
="-Wold-style-definition $C_WARNINGS_SWITCH"
6352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
6353 $as_echo "$has_option" >&6; }
6354 CFLAGS
="$SAVE_CFLAGS"
6358 ### Use -Wimplicit-function-declaration if the compiler supports it
6359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wimplicit-function-declaration" >&5
6360 $as_echo_n "checking whether gcc understands -Wimplicit-function-declaration... " >&6; }
6361 SAVE_CFLAGS
="$CFLAGS"
6362 CFLAGS
="$CFLAGS -Wimplicit-function-declaration"
6363 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6364 /* end confdefs.h. */
6374 if ac_fn_c_try_compile
"$LINENO"; then :
6379 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6380 if test $has_option = yes; then
6381 C_WARNINGS_SWITCH
="-Wimplicit-function-declaration $C_WARNINGS_SWITCH"
6383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
6384 $as_echo "$has_option" >&6; }
6385 CFLAGS
="$SAVE_CFLAGS"
6392 #### Some other nice autoconf tests.
6395 ac_cpp
='$CPP $CPPFLAGS'
6396 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6397 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6398 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6400 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6401 # On Suns, sometimes $CPP names a directory.
6402 if test -n "$CPP" && test -d "$CPP"; then
6405 if test -z "$CPP"; then
6406 if test "${ac_cv_prog_CPP+set}" = set; then :
6407 $as_echo_n "(cached) " >&6
6409 # Double quotes because CPP needs to be expanded
6410 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6413 for ac_c_preproc_warn_flag
in '' yes
6415 # Use a header file that comes with gcc, so configuring glibc
6416 # with a fresh cross-compiler works.
6417 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6418 # <limits.h> exists even on freestanding compilers.
6419 # On the NeXT, cc -E runs the code through the compiler's parser,
6420 # not just through cpp. "Syntax error" is here to catch this case.
6421 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6422 /* end confdefs.h. */
6424 # include <limits.h>
6426 # include <assert.h>
6430 if ac_fn_c_try_cpp
"$LINENO"; then :
6433 # Broken: fails on valid input.
6436 rm -f conftest.err conftest.
$ac_ext
6438 # OK, works on sane cases. Now check whether nonexistent headers
6439 # can be detected and how.
6440 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6441 /* end confdefs.h. */
6442 #include <ac_nonexistent.h>
6444 if ac_fn_c_try_cpp
"$LINENO"; then :
6445 # Broken: success on invalid input.
6448 # Passes both tests.
6452 rm -f conftest.err conftest.
$ac_ext
6455 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6456 rm -f conftest.err conftest.
$ac_ext
6457 if $ac_preproc_ok; then :
6469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6470 $as_echo "$CPP" >&6; }
6472 for ac_c_preproc_warn_flag
in '' yes
6474 # Use a header file that comes with gcc, so configuring glibc
6475 # with a fresh cross-compiler works.
6476 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6477 # <limits.h> exists even on freestanding compilers.
6478 # On the NeXT, cc -E runs the code through the compiler's parser,
6479 # not just through cpp. "Syntax error" is here to catch this case.
6480 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6481 /* end confdefs.h. */
6483 # include <limits.h>
6485 # include <assert.h>
6489 if ac_fn_c_try_cpp
"$LINENO"; then :
6492 # Broken: fails on valid input.
6495 rm -f conftest.err conftest.
$ac_ext
6497 # OK, works on sane cases. Now check whether nonexistent headers
6498 # can be detected and how.
6499 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6500 /* end confdefs.h. */
6501 #include <ac_nonexistent.h>
6503 if ac_fn_c_try_cpp
"$LINENO"; then :
6504 # Broken: success on invalid input.
6507 # Passes both tests.
6511 rm -f conftest.err conftest.
$ac_ext
6514 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6515 rm -f conftest.err conftest.
$ac_ext
6516 if $ac_preproc_ok; then :
6519 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6520 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6521 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
6522 See \`config.log' for more details." "$LINENO" 5; }
6526 ac_cpp
='$CPP $CPPFLAGS'
6527 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6528 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6529 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6532 if test "x$RANLIB" = x
; then
6533 if test -n "$ac_tool_prefix"; then
6534 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6535 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
6536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6537 $as_echo_n "checking for $ac_word... " >&6; }
6538 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6539 $as_echo_n "(cached) " >&6
6541 if test -n "$RANLIB"; then
6542 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
6544 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6548 test -z "$as_dir" && as_dir
=.
6549 for ac_exec_ext
in '' $ac_executable_extensions; do
6550 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6551 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
6552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6561 RANLIB
=$ac_cv_prog_RANLIB
6562 if test -n "$RANLIB"; then
6563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6564 $as_echo "$RANLIB" >&6; }
6566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6567 $as_echo "no" >&6; }
6572 if test -z "$ac_cv_prog_RANLIB"; then
6573 ac_ct_RANLIB
=$RANLIB
6574 # Extract the first word of "ranlib", so it can be a program name with args.
6575 set dummy ranlib
; ac_word
=$2
6576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6577 $as_echo_n "checking for $ac_word... " >&6; }
6578 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6579 $as_echo_n "(cached) " >&6
6581 if test -n "$ac_ct_RANLIB"; then
6582 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
6584 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6588 test -z "$as_dir" && as_dir
=.
6589 for ac_exec_ext
in '' $ac_executable_extensions; do
6590 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6591 ac_cv_prog_ac_ct_RANLIB
="ranlib"
6592 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6601 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
6602 if test -n "$ac_ct_RANLIB"; then
6603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6604 $as_echo "$ac_ct_RANLIB" >&6; }
6606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6607 $as_echo "no" >&6; }
6610 if test "x$ac_ct_RANLIB" = x
; then
6613 case $cross_compiling:$ac_tool_warned in
6615 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6616 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6617 ac_tool_warned
=yes ;;
6619 RANLIB
=$ac_ct_RANLIB
6622 RANLIB
="$ac_cv_prog_RANLIB"
6627 ## Although we're running on an amd64 kernel, we're actually compiling for
6628 ## the x86 architecture. The user should probably have provided an
6629 ## explicit --build to `configure', but if everything else than the kernel
6630 ## is running in i386 mode, we can help them out.
6631 if test "$machine" = "amdx86-64"; then
6632 ac_fn_c_check_decl
"$LINENO" "i386" "ac_cv_have_decl_i386" "$ac_includes_default"
6633 if test "x$ac_cv_have_decl_i386" = x
""yes; then :
6637 if test "$ac_cv_have_decl_i386" = "yes"; then
6638 canonical
=`echo "$canonical" | sed -e 's/^amd64/i386/' -e 's/^x86_64/i386/'`
6640 machfile
="m/${machine}.h"
6644 # Extract the first word of "install-info", so it can be a program name with args.
6645 set dummy install-info
; ac_word
=$2
6646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6647 $as_echo_n "checking for $ac_word... " >&6; }
6648 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
6649 $as_echo_n "(cached) " >&6
6651 case $INSTALL_INFO in
6653 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
6656 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6660 test -z "$as_dir" && as_dir
=.
6661 for ac_exec_ext
in '' $ac_executable_extensions; do
6662 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6663 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
6664 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6674 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
6675 if test -n "$INSTALL_INFO"; then
6676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
6677 $as_echo "$INSTALL_INFO" >&6; }
6679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6680 $as_echo "no" >&6; }
6684 # Extract the first word of "install-info", so it can be a program name with args.
6685 set dummy install-info
; ac_word
=$2
6686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6687 $as_echo_n "checking for $ac_word... " >&6; }
6688 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
6689 $as_echo_n "(cached) " >&6
6691 case $INSTALL_INFO in
6693 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
6696 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6697 for as_dir
in /usr
/sbin
6700 test -z "$as_dir" && as_dir
=.
6701 for ac_exec_ext
in '' $ac_executable_extensions; do
6702 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6703 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
6704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6714 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
6715 if test -n "$INSTALL_INFO"; then
6716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
6717 $as_echo "$INSTALL_INFO" >&6; }
6719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6720 $as_echo "no" >&6; }
6724 # Extract the first word of "install-info", so it can be a program name with args.
6725 set dummy install-info
; ac_word
=$2
6726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6727 $as_echo_n "checking for $ac_word... " >&6; }
6728 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
6729 $as_echo_n "(cached) " >&6
6731 case $INSTALL_INFO in
6733 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
6736 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6740 test -z "$as_dir" && as_dir
=.
6741 for ac_exec_ext
in '' $ac_executable_extensions; do
6742 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6743 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
6744 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6751 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
=":"
6755 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
6756 if test -n "$INSTALL_INFO"; then
6757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
6758 $as_echo "$INSTALL_INFO" >&6; }
6760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6761 $as_echo "no" >&6; }
6765 # Extract the first word of "gzip", so it can be a program name with args.
6766 set dummy
gzip; ac_word
=$2
6767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6768 $as_echo_n "checking for $ac_word... " >&6; }
6769 if test "${ac_cv_path_GZIP_PROG+set}" = set; then :
6770 $as_echo_n "(cached) " >&6
6774 ac_cv_path_GZIP_PROG
="$GZIP_PROG" # Let the user override the test with a path.
6777 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6781 test -z "$as_dir" && as_dir
=.
6782 for ac_exec_ext
in '' $ac_executable_extensions; do
6783 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6784 ac_cv_path_GZIP_PROG
="$as_dir/$ac_word$ac_exec_ext"
6785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6795 GZIP_PROG
=$ac_cv_path_GZIP_PROG
6796 if test -n "$GZIP_PROG"; then
6797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP_PROG" >&5
6798 $as_echo "$GZIP_PROG" >&6; }
6800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6801 $as_echo "no" >&6; }
6807 ## Need makeinfo >= 4.6 (?) to build the manuals.
6808 # Extract the first word of "makeinfo", so it can be a program name with args.
6809 set dummy makeinfo
; ac_word
=$2
6810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6811 $as_echo_n "checking for $ac_word... " >&6; }
6812 if test "${ac_cv_path_MAKEINFO+set}" = set; then :
6813 $as_echo_n "(cached) " >&6
6817 ac_cv_path_MAKEINFO
="$MAKEINFO" # Let the user override the test with a path.
6820 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6824 test -z "$as_dir" && as_dir
=.
6825 for ac_exec_ext
in '' $ac_executable_extensions; do
6826 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6827 ac_cv_path_MAKEINFO
="$as_dir/$ac_word$ac_exec_ext"
6828 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6835 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO
="no"
6839 MAKEINFO
=$ac_cv_path_MAKEINFO
6840 if test -n "$MAKEINFO"; then
6841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
6842 $as_echo "$MAKEINFO" >&6; }
6844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6845 $as_echo "no" >&6; }
6849 if test "$MAKEINFO" != "no" && \
6850 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
6854 ## Makeinfo is unusual. For a released Emacs, the manuals are
6855 ## pre-built, and not deleted by the normal clean rules. makeinfo is
6856 ## therefore in the category of "special tools" not normally required, which
6857 ## configure does not have to check for (eg autoconf itself).
6858 ## In a Bazaar checkout on the other hand, the manuals are not included.
6859 ## So makeinfo is a requirement to build from Bazaar, and configure
6860 ## should test for it as it does for any other build requirement.
6861 ## We use the presence of $srcdir/info/emacs to distinguish a release,
6862 ## with pre-built manuals, from a Bazaar checkout.
6865 if test "$MAKEINFO" = "no"; then
6867 if test "x${with_makeinfo}" = "xno"; then
6869 elif test ! -e $srcdir/info
/emacs
; then
6870 as_fn_error
"You do not seem to have makeinfo >= 4.6, and your
6871 source tree does not seem to have pre-built manuals in the \`info' directory.
6872 Either install a suitable version of makeinfo, or re-run configure
6873 with the \`--without-makeinfo' option to build without the manuals. " "$LINENO" 5
6879 if test x
$GCC = xyes
; then
6880 test "x$GCC_LINK_TEST_OPTIONS" != x
&& \
6881 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
6883 test "x$NON_GCC_LINK_TEST_OPTIONS" != x
&& \
6884 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
6888 late_LDFLAGS
=$LDFLAGS
6889 if test x
$GCC = xyes
; then
6890 LDFLAGS
="$LDFLAGS -Wl,-znocombreloc"
6892 LDFLAGS
="$LDFLAGS -znocombreloc"
6895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -znocombreloc" >&5
6896 $as_echo_n "checking for -znocombreloc... " >&6; }
6897 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6898 /* end confdefs.h. */
6908 if ac_fn_c_try_link
"$LINENO"; then :
6909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6910 $as_echo "yes" >&6; }
6912 LDFLAGS
=$late_LDFLAGS
6913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6914 $as_echo "no" >&6; }
6916 rm -f core conftest.err conftest.
$ac_objext \
6917 conftest
$ac_exeext conftest.
$ac_ext
6920 # The value of CPP is a quoted variable reference, so we need to do this
6921 # to get its actual value...
6922 CPP
=`eval "echo $CPP"`
6925 test "x$CANNOT_DUMP" = "x" && CANNOT_DUMP
=no
6927 your-opsys-here
) CANNOT_DUMP
=yes ;;
6930 test "$CANNOT_DUMP" = "yes" && \
6932 $as_echo "#define CANNOT_DUMP 1" >>confdefs.h
6938 UNEXEC_OBJ
=unexelf.o
6940 # MSDOS uses unexcoff.o
6941 # MSWindows uses unexw32.o
6943 UNEXEC_OBJ
=unexaix.o
6949 UNEXEC_OBJ
=unexmacosx.o
6952 UNEXEC_OBJ
=unexhp9k800.o
6955 # Use the Solaris dldump() function, called from unexsol.c, to dump
6956 # emacs, instead of the generic ELF dump code found in unexelf.c.
6957 # The resulting binary has a complete symbol table, and is better
6958 # for debugging and other observability tools (debuggers, pstack, etc).
6960 # If you encounter a problem using dldump(), please consider sending
6961 # a message to the OpenSolaris tools-linking mailing list:
6962 # http://mail.opensolaris.org/mailman/listinfo/tools-linking
6964 # It is likely that dldump() works with older Solaris too, but this has
6965 # not been tested, so for now this change is for Solaris 10 or newer.
6966 UNEXEC_OBJ
=unexsol.o
6973 ## Let `ld' find image libs and similar things in /usr/local/lib.
6974 ## The system compiler, GCC, has apparently been modified to not
6975 ## look there, contrary to what a stock GCC would do.
6976 LD_SWITCH_SYSTEM
=-L/usr
/local
/lib
6980 ## cpp test was "ifdef __mips__", but presumably this is equivalent...
6981 case $host_cpu in mips
*) LD_SWITCH_SYSTEM
="-G 0";; esac
6985 LD_SWITCH_SYSTEM
="-Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib"
6989 ## Han Boetes <han@mijncomputer.nl> says this is necessary,
6990 ## otherwise Emacs dumps core on elf systems.
6991 LD_SWITCH_SYSTEM
="-Z"
6996 ac_link
="$ac_link $LD_SWITCH_SYSTEM"
6998 ## This setting of LD_SWITCH_SYSTEM references LD_SWITCH_X_SITE_AUX,
6999 ## which has not been defined yet. When this was handled with cpp,
7000 ## it was expanded to null when configure sourced the s/*.h file.
7001 ## Thus LD_SWITCH_SYSTEM had different values in configure and the Makefiles.
7002 ## FIXME it would be cleaner to put this in LD_SWITCH_SYSTEM_TEMACS
7003 ## (or somesuch), but because it is supposed to go at the _front_
7004 ## of LD_SWITCH_SYSTEM, we cannot do that in exactly the same way.
7005 ## Compare with the gnu-linux case below, which added to the end
7006 ## of LD_SWITCH_SYSTEM, and so can instead go at the front of
7007 ## LD_SWITCH_SYSTEM_TEMACS.
7010 ## _AUX_RPATH is like _AUX, but uses -rpath instead of -R.
7011 LD_SWITCH_SYSTEM
="\$(LD_SWITCH_X_SITE_AUX_RPATH) $LD_SWITCH_SYSTEM" ;;
7016 if test "$machine" = "alpha"; then
7017 ac_fn_c_check_decl
"$LINENO" "__ELF__" "ac_cv_have_decl___ELF__" "$ac_includes_default"
7018 if test "x$ac_cv_have_decl___ELF__" = x
""yes; then :
7022 if test "$ac_cv_have_decl___ELF__" = "yes"; then
7023 ## With ELF, make sure that all common symbols get allocated to in the
7024 ## data section. Otherwise, the dump of temacs may miss variables in
7025 ## the shared library that have been initialized. For example, with
7026 ## GNU libc, __malloc_initialized would normally be resolved to the
7027 ## shared library's .bss section, which is fatal.
7028 if test "x$GCC" = "xyes"; then
7029 C_SWITCH_MACHINE
="-fno-common"
7031 as_fn_error
"What gives? Fix me if DEC Unix supports ELF now." "$LINENO" 5
7034 UNEXEC_OBJ
=unexalpha.o
7042 ## Some programs in src produce warnings saying certain subprograms
7043 ## are too complex and need a MAXMEM value greater than 2000 for
7044 ## additional optimization. --nils@exp-math.uni-essen.de
7045 test "$opsys" = "aix4.2" && test "x$GCC" != "xyes" && \
7046 C_SWITCH_SYSTEM
="-ma -qmaxmem=4000"
7047 ## gnu-linux might need -D_BSD_SOURCE on old libc5 systems.
7048 ## It is redundant in glibc2, since we define _GNU_SOURCE.
7054 ## IBM's X11R5 uses -lIM and -liconv in AIX 3.2.2.
7055 aix4-2
) LIBS_SYSTEM
="-lrts -lIM -liconv" ;;
7057 freebsd
) LIBS_SYSTEM
="-lutil" ;;
7059 hpux
*) LIBS_SYSTEM
="-l:libdld.sl" ;;
7061 sol2
*) LIBS_SYSTEM
="-lsocket -lnsl" ;;
7063 ## Motif needs -lgen.
7064 unixware
) LIBS_SYSTEM
="-lsocket -lnsl -lelf -lgen" ;;
7069 ### Make sure subsequent tests use flags consistent with the build flags.
7071 if test x
"${OVERRIDE_CPPFLAGS}" != x
; then
7072 CPPFLAGS
="${OVERRIDE_CPPFLAGS}"
7074 CPPFLAGS
="$C_SWITCH_SYSTEM $C_SWITCH_MACHINE $CPPFLAGS"
7077 # Check whether --enable-largefile was given.
7078 if test "${enable_largefile+set}" = set; then :
7079 enableval
=$enable_largefile;
7082 if test "$enable_largefile" != no
; then
7084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
7085 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
7086 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
7087 $as_echo_n "(cached) " >&6
7089 ac_cv_sys_largefile_CC
=no
7090 if test "$GCC" != yes; then
7093 # IRIX 6.2 and later do not support large files by default,
7094 # so use the C compiler's -n32 option if that helps.
7095 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7096 /* end confdefs.h. */
7097 #include <sys/types.h>
7098 /* Check that off_t can represent 2**63 - 1 correctly.
7099 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7100 since some C++ compilers masquerading as C compilers
7101 incorrectly reject 9223372036854775807. */
7102 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7103 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7104 && LARGE_OFF_T % 2147483647 == 1)
7114 if ac_fn_c_try_compile
"$LINENO"; then :
7117 rm -f core conftest.err conftest.
$ac_objext
7119 if ac_fn_c_try_compile
"$LINENO"; then :
7120 ac_cv_sys_largefile_CC
=' -n32'; break
7122 rm -f core conftest.err conftest.
$ac_objext
7126 rm -f conftest.
$ac_ext
7129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
7130 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
7131 if test "$ac_cv_sys_largefile_CC" != no
; then
7132 CC
=$CC$ac_cv_sys_largefile_CC
7135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
7136 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
7137 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
7138 $as_echo_n "(cached) " >&6
7141 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7142 /* end confdefs.h. */
7143 #include <sys/types.h>
7144 /* Check that off_t can represent 2**63 - 1 correctly.
7145 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7146 since some C++ compilers masquerading as C compilers
7147 incorrectly reject 9223372036854775807. */
7148 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7149 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7150 && LARGE_OFF_T % 2147483647 == 1)
7160 if ac_fn_c_try_compile
"$LINENO"; then :
7161 ac_cv_sys_file_offset_bits
=no
; break
7163 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7164 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7165 /* end confdefs.h. */
7166 #define _FILE_OFFSET_BITS 64
7167 #include <sys/types.h>
7168 /* Check that off_t can represent 2**63 - 1 correctly.
7169 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7170 since some C++ compilers masquerading as C compilers
7171 incorrectly reject 9223372036854775807. */
7172 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7173 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7174 && LARGE_OFF_T % 2147483647 == 1)
7184 if ac_fn_c_try_compile
"$LINENO"; then :
7185 ac_cv_sys_file_offset_bits
=64; break
7187 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7188 ac_cv_sys_file_offset_bits
=unknown
7192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
7193 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
7194 case $ac_cv_sys_file_offset_bits in #(
7197 cat >>confdefs.h
<<_ACEOF
7198 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
7203 if test $ac_cv_sys_file_offset_bits = unknown
; then
7204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
7205 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
7206 if test "${ac_cv_sys_large_files+set}" = set; then :
7207 $as_echo_n "(cached) " >&6
7210 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7211 /* end confdefs.h. */
7212 #include <sys/types.h>
7213 /* Check that off_t can represent 2**63 - 1 correctly.
7214 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7215 since some C++ compilers masquerading as C compilers
7216 incorrectly reject 9223372036854775807. */
7217 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7218 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7219 && LARGE_OFF_T % 2147483647 == 1)
7229 if ac_fn_c_try_compile
"$LINENO"; then :
7230 ac_cv_sys_large_files
=no
; break
7232 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7233 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7234 /* end confdefs.h. */
7235 #define _LARGE_FILES 1
7236 #include <sys/types.h>
7237 /* Check that off_t can represent 2**63 - 1 correctly.
7238 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7239 since some C++ compilers masquerading as C compilers
7240 incorrectly reject 9223372036854775807. */
7241 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7242 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7243 && LARGE_OFF_T % 2147483647 == 1)
7253 if ac_fn_c_try_compile
"$LINENO"; then :
7254 ac_cv_sys_large_files
=1; break
7256 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7257 ac_cv_sys_large_files
=unknown
7261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
7262 $as_echo "$ac_cv_sys_large_files" >&6; }
7263 case $ac_cv_sys_large_files in #(
7266 cat >>confdefs.h
<<_ACEOF
7267 #define _LARGE_FILES $ac_cv_sys_large_files
7277 ## If user specified a crt-dir, use that unconditionally.
7278 if test "X$CRT_DIR" = "X"; then
7280 case "$canonical" in
7281 x86_64-
*-linux-gnu* | s390x-
*-linux-gnu*)
7282 ## On x86-64 and s390x GNU/Linux distributions, the standard library
7283 ## can be in a variety of places. We only try /usr/lib64 and /usr/lib.
7284 ## For anything else (eg /usr/lib32), it is up the user to specify
7285 ## the location (bug#5655).
7286 ## Test for crtn.o, not just the directory, because sometimes the
7287 ## directory exists but does not have the relevant files (bug#1287).
7288 ## FIXME better to test for binary compatibility somehow.
7289 test -e /usr
/lib64
/crtn.o
&& CRT_DIR
=/usr
/lib64
7292 powerpc64-
*-linux-gnu* | sparc64-
*-linux-gnu*) CRT_DIR
=/usr
/lib64
;;
7296 hpux10-20
) CRT_DIR
=/lib
;;
7299 ## Default is /usr/lib.
7300 test "X$CRT_DIR" = "X" && CRT_DIR
=/usr
/lib
7304 ## Some platforms don't use any of these files, so it is not
7305 ## appropriate to put this test outside the if block.
7306 test -e $CRT_DIR/crtn.o ||
test -e $CRT_DIR/crt0.o || \
7307 as_fn_error
"crt*.o not found in specified location." "$LINENO" 5
7320 START_FILES
='pre-crt0.o'
7323 ## Adding -lm confuses the dynamic linker, so omit it.
7325 START_FILES
='pre-crt0.o'
7328 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
7329 START_FILES
='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
7331 gnu-linux | gnu-kfreebsd
)
7332 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtn.o'
7333 START_FILES
='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o'
7335 hpux10-20 | hpux11
)
7337 START_FILES
='pre-crt0.o $(CRT_DIR)/crt0.o'
7340 if test -f $CRT_DIR/crti.o
; then
7341 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
7342 START_FILES
='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
7344 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o'
7345 START_FILES
='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crtbegin.o'
7356 if test "${with_sound}" != "no"; then
7357 # Sound support for GNU/Linux and the free BSDs.
7358 for ac_header
in machine
/soundcard.h sys
/soundcard.h soundcard.h
7360 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7361 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7362 eval as_val
=\$
$as_ac_Header
7363 if test "x$as_val" = x
""yes; then :
7364 cat >>confdefs.h
<<_ACEOF
7365 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7367 have_sound_header
=yes
7372 # Emulation library used on NetBSD.
7373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
7374 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
7375 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then :
7376 $as_echo_n "(cached) " >&6
7378 ac_check_lib_save_LIBS
=$LIBS
7379 LIBS
="-lossaudio $LIBS"
7380 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7381 /* end confdefs.h. */
7383 /* Override any GCC internal prototype to avoid an error.
7384 Use char because int might match the return type of a GCC
7385 builtin and then its argument prototype would still apply. */
7393 return _oss_ioctl ();
7398 if ac_fn_c_try_link
"$LINENO"; then :
7399 ac_cv_lib_ossaudio__oss_ioctl
=yes
7401 ac_cv_lib_ossaudio__oss_ioctl
=no
7403 rm -f core conftest.err conftest.
$ac_objext \
7404 conftest
$ac_exeext conftest.
$ac_ext
7405 LIBS
=$ac_check_lib_save_LIBS
7407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
7408 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
7409 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = x
""yes; then :
7418 ALSA_MODULES
="alsa >= $ALSA_REQUIRED"
7422 # Extract the first word of "pkg-config", so it can be a program name with args.
7423 set dummy pkg-config
; ac_word
=$2
7424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7425 $as_echo_n "checking for $ac_word... " >&6; }
7426 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
7427 $as_echo_n "(cached) " >&6
7431 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
7434 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7438 test -z "$as_dir" && as_dir
=.
7439 for ac_exec_ext
in '' $ac_executable_extensions; do
7440 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7441 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
7442 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7449 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
7453 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
7454 if test -n "$PKG_CONFIG"; then
7455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7456 $as_echo "$PKG_CONFIG" >&6; }
7458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7459 $as_echo "no" >&6; }
7464 if test "$PKG_CONFIG" = "no" ; then
7467 PKG_CONFIG_MIN_VERSION
=0.9.0
7468 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
7469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ALSA_MODULES" >&5
7470 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
7472 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
7473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7474 $as_echo "yes" >&6; }
7477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_CFLAGS" >&5
7478 $as_echo_n "checking ALSA_CFLAGS... " >&6; }
7479 ALSA_CFLAGS
=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
7480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
7481 $as_echo "$ALSA_CFLAGS" >&6; }
7483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_LIBS" >&5
7484 $as_echo_n "checking ALSA_LIBS... " >&6; }
7485 ALSA_LIBS
=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
7486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
7487 $as_echo "$ALSA_LIBS" >&6; }
7489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7490 $as_echo "no" >&6; }
7493 ## If we have a custom action on failure, don't print errors, but
7494 ## do set a variable so people can do so.
7495 ALSA_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
7502 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
7503 echo "*** See http://www.freedesktop.org/software/pkgconfig"
7507 if test $succeeded = yes; then
7513 if test $HAVE_ALSA = yes; then
7514 SAVE_CFLAGS
="$CFLAGS"
7515 SAVE_LDFLAGS
="$LDFLAGS"
7516 CFLAGS
="$ALSA_CFLAGS $CFLAGS"
7517 LDFLAGS
="$ALSA_LIBS $LDFLAGS"
7518 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7519 /* end confdefs.h. */
7520 #include <asoundlib.h>
7524 snd_lib_error_set_handler (0);
7529 if ac_fn_c_try_compile
"$LINENO"; then :
7530 emacs_alsa_normal
=yes
7532 emacs_alsa_normal
=no
7534 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7535 if test "$emacs_alsa_normal" != yes; then
7536 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7537 /* end confdefs.h. */
7538 #include <alsa/asoundlib.h>
7542 snd_lib_error_set_handler (0);
7547 if ac_fn_c_try_compile
"$LINENO"; then :
7548 emacs_alsa_subdir
=yes
7550 emacs_alsa_subdir
=no
7552 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7553 if test "$emacs_alsa_subdir" != yes; then
7554 as_fn_error
"pkg-config found alsa, but it does not compile. See config.log for error messages." "$LINENO" 5
7556 ALSA_CFLAGS
="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
7559 CFLAGS
="$SAVE_CFLAGS"
7560 LDFLAGS
="$SAVE_LDFLAGS"
7561 LIBSOUND
="$LIBSOUND $ALSA_LIBS"
7562 CFLAGS_SOUND
="$CFLAGS_SOUND $ALSA_CFLAGS"
7564 $as_echo "#define HAVE_ALSA 1" >>confdefs.h
7568 if test x
$have_sound_header = xyes ||
test $HAVE_ALSA = yes; then
7570 gnu-linux|freebsd|netbsd
)
7572 $as_echo "#define HAVE_SOUND 1" >>confdefs.h
7581 for ac_header
in sys
/select.h sys
/time.h unistd.h utime.h \
7582 linux
/version.h sys
/systeminfo.h limits.h \
7583 stdio_ext.h fcntl.h coff.h pty.h sys
/mman.h \
7584 sys
/vlimit.h sys
/resource.h locale.h sys
/_mbstate_t.h \
7585 sys
/utsname.h
pwd.h utmp.h dirent.h util.h
7587 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7588 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7589 eval as_val
=\$
$as_ac_Header
7590 if test "x$as_val" = x
""yes; then :
7591 cat >>confdefs.h
<<_ACEOF
7592 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if personality LINUX32 can be set" >&5
7601 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
7602 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7603 /* end confdefs.h. */
7604 #include <sys/personality.h>
7608 personality (PER_LINUX32)
7613 if ac_fn_c_try_compile
"$LINENO"; then :
7614 emacs_cv_personality_linux32
=yes
7616 emacs_cv_personality_linux32
=no
7618 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_personality_linux32" >&5
7620 $as_echo "$emacs_cv_personality_linux32" >&6; }
7622 if test $emacs_cv_personality_linux32 = yes; then
7624 $as_echo "#define HAVE_PERSONALITY_LINUX32 1" >>confdefs.h
7628 for ac_header
in term.h
7630 ac_fn_c_check_header_preproc
"$LINENO" "term.h" "ac_cv_header_term_h"
7631 if test "x$ac_cv_header_term_h" = x
""yes; then :
7632 cat >>confdefs.h
<<_ACEOF
7633 #define HAVE_TERM_H 1
7640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7641 $as_echo_n "checking for ANSI C header files... " >&6; }
7642 if test "${ac_cv_header_stdc+set}" = set; then :
7643 $as_echo_n "(cached) " >&6
7645 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7646 /* end confdefs.h. */
7660 if ac_fn_c_try_compile
"$LINENO"; then :
7661 ac_cv_header_stdc
=yes
7663 ac_cv_header_stdc
=no
7665 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7667 if test $ac_cv_header_stdc = yes; then
7668 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7669 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7670 /* end confdefs.h. */
7674 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7675 $EGREP "memchr" >/dev
/null
2>&1; then :
7678 ac_cv_header_stdc
=no
7684 if test $ac_cv_header_stdc = yes; then
7685 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7686 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7687 /* end confdefs.h. */
7691 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7692 $EGREP "free" >/dev
/null
2>&1; then :
7695 ac_cv_header_stdc
=no
7701 if test $ac_cv_header_stdc = yes; then
7702 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7703 if test "$cross_compiling" = yes; then :
7706 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7707 /* end confdefs.h. */
7710 #if ((' ' & 0x0FF) == 0x020)
7711 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7712 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7714 # define ISLOWER(c) \
7715 (('a' <= (c) && (c) <= 'i') \
7716 || ('j' <= (c) && (c) <= 'r') \
7717 || ('s' <= (c) && (c) <= 'z'))
7718 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7721 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7726 for (i = 0; i < 256; i++)
7727 if (XOR (islower (i), ISLOWER (i))
7728 || toupper (i) != TOUPPER (i))
7733 if ac_fn_c_try_run
"$LINENO"; then :
7736 ac_cv_header_stdc
=no
7738 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7739 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7745 $as_echo "$ac_cv_header_stdc" >&6; }
7746 if test $ac_cv_header_stdc = yes; then
7748 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
7753 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
7754 if test "${ac_cv_header_time+set}" = set; then :
7755 $as_echo_n "(cached) " >&6
7757 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7758 /* end confdefs.h. */
7759 #include <sys/types.h>
7760 #include <sys/time.h>
7766 if ((struct tm *) 0)
7772 if ac_fn_c_try_compile
"$LINENO"; then :
7773 ac_cv_header_time
=yes
7775 ac_cv_header_time
=no
7777 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
7780 $as_echo "$ac_cv_header_time" >&6; }
7781 if test $ac_cv_header_time = yes; then
7783 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
7787 ac_fn_c_check_decl
"$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "$ac_includes_default"
7788 if test "x$ac_cv_have_decl_sys_siglist" = x
""yes; then :
7794 cat >>confdefs.h
<<_ACEOF
7795 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
7798 if test $ac_cv_have_decl_sys_siglist != yes; then
7799 # For Tru64, at least:
7800 ac_fn_c_check_decl
"$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "$ac_includes_default"
7801 if test "x$ac_cv_have_decl___sys_siglist" = x
""yes; then :
7807 cat >>confdefs.h
<<_ACEOF
7808 #define HAVE_DECL___SYS_SIGLIST $ac_have_decl
7811 if test $ac_cv_have_decl___sys_siglist = yes; then
7813 $as_echo "#define sys_siglist __sys_siglist" >>confdefs.h
7817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
7818 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
7819 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
7820 $as_echo_n "(cached) " >&6
7822 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7823 /* end confdefs.h. */
7824 #include <sys/types.h>
7825 #include <sys/wait.h>
7827 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7830 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7838 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7843 if ac_fn_c_try_compile
"$LINENO"; then :
7844 ac_cv_header_sys_wait_h
=yes
7846 ac_cv_header_sys_wait_h
=no
7848 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
7851 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
7852 if test $ac_cv_header_sys_wait_h = yes; then
7854 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
7859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utimbuf" >&5
7860 $as_echo_n "checking for struct utimbuf... " >&6; }
7861 if test "${emacs_cv_struct_utimbuf+set}" = set; then :
7862 $as_echo_n "(cached) " >&6
7864 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7865 /* end confdefs.h. */
7866 #ifdef TIME_WITH_SYS_TIME
7867 #include <sys/time.h>
7870 #ifdef HAVE_SYS_TIME_H
7871 #include <sys/time.h>
7882 static struct utimbuf x; x.actime = x.modtime;
7887 if ac_fn_c_try_compile
"$LINENO"; then :
7888 emacs_cv_struct_utimbuf
=yes
7890 emacs_cv_struct_utimbuf
=no
7892 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_utimbuf" >&5
7895 $as_echo "$emacs_cv_struct_utimbuf" >&6; }
7896 if test $emacs_cv_struct_utimbuf = yes; then
7898 $as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h
7902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t" >&5
7903 $as_echo_n "checking for speed_t... " >&6; }
7904 if test "${emacs_cv_speed_t+set}" = set; then :
7905 $as_echo_n "(cached) " >&6
7907 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7908 /* end confdefs.h. */
7909 #include <termios.h>
7918 if ac_fn_c_try_compile
"$LINENO"; then :
7919 emacs_cv_speed_t
=yes
7923 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_speed_t" >&5
7926 $as_echo "$emacs_cv_speed_t" >&6; }
7927 if test $emacs_cv_speed_t = yes; then
7929 $as_echo "#define HAVE_SPEED_T 1" >>confdefs.h
7933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
7934 $as_echo_n "checking for struct timeval... " >&6; }
7935 if test "${emacs_cv_struct_timeval+set}" = set; then :
7936 $as_echo_n "(cached) " >&6
7938 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7939 /* end confdefs.h. */
7940 #ifdef TIME_WITH_SYS_TIME
7941 #include <sys/time.h>
7944 #ifdef HAVE_SYS_TIME_H
7945 #include <sys/time.h>
7953 static struct timeval x; x.tv_sec = x.tv_usec;
7958 if ac_fn_c_try_compile
"$LINENO"; then :
7959 emacs_cv_struct_timeval
=yes
7961 emacs_cv_struct_timeval
=no
7963 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_timeval" >&5
7966 $as_echo "$emacs_cv_struct_timeval" >&6; }
7967 HAVE_TIMEVAL
=$emacs_cv_struct_timeval
7968 if test $emacs_cv_struct_timeval = yes; then
7970 $as_echo "#define HAVE_TIMEVAL 1" >>confdefs.h
7974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct exception" >&5
7975 $as_echo_n "checking for struct exception... " >&6; }
7976 if test "${emacs_cv_struct_exception+set}" = set; then :
7977 $as_echo_n "(cached) " >&6
7979 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7980 /* end confdefs.h. */
7985 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7990 if ac_fn_c_try_compile
"$LINENO"; then :
7991 emacs_cv_struct_exception
=yes
7993 emacs_cv_struct_exception
=no
7995 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_exception" >&5
7998 $as_echo "$emacs_cv_struct_exception" >&6; }
7999 HAVE_EXCEPTION
=$emacs_cv_struct_exception
8000 if test $emacs_cv_struct_exception != yes; then
8002 $as_echo "#define NO_MATHERR 1" >>confdefs.h
8006 for ac_header
in net
/if.h
8008 ac_fn_c_check_header_compile
"$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
8009 #if HAVE_SYS_SOCKET_H
8010 #include <sys/socket.h>
8013 if test "x$ac_cv_header_net_if_h" = x
""yes; then :
8014 cat >>confdefs.h
<<_ACEOF
8015 #define HAVE_NET_IF_H 1
8023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
8024 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
8025 if test "${ac_cv_struct_tm+set}" = set; then :
8026 $as_echo_n "(cached) " >&6
8028 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8029 /* end confdefs.h. */
8030 #include <sys/types.h>
8037 int *p = &tm.tm_sec;
8043 if ac_fn_c_try_compile
"$LINENO"; then :
8044 ac_cv_struct_tm
=time.h
8046 ac_cv_struct_tm
=sys
/time.h
8048 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
8051 $as_echo "$ac_cv_struct_tm" >&6; }
8052 if test $ac_cv_struct_tm = sys
/time.h
; then
8054 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
8058 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
8059 #include <$ac_cv_struct_tm>
8062 if test "x$ac_cv_member_struct_tm_tm_zone" = x
""yes; then :
8064 cat >>confdefs.h
<<_ACEOF
8065 #define HAVE_STRUCT_TM_TM_ZONE 1
8071 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
8073 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
8076 ac_fn_c_check_decl
"$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
8078 if test "x$ac_cv_have_decl_tzname" = x
""yes; then :
8084 cat >>confdefs.h
<<_ACEOF
8085 #define HAVE_DECL_TZNAME $ac_have_decl
8088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
8089 $as_echo_n "checking for tzname... " >&6; }
8090 if test "${ac_cv_var_tzname+set}" = set; then :
8091 $as_echo_n "(cached) " >&6
8093 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8094 /* end confdefs.h. */
8096 #if !HAVE_DECL_TZNAME
8097 extern char *tzname[];
8103 return tzname[0][0];
8108 if ac_fn_c_try_link
"$LINENO"; then :
8109 ac_cv_var_tzname
=yes
8113 rm -f core conftest.err conftest.
$ac_objext \
8114 conftest
$ac_exeext conftest.
$ac_ext
8116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
8117 $as_echo "$ac_cv_var_tzname" >&6; }
8118 if test $ac_cv_var_tzname = yes; then
8120 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
8125 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
8127 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x
""yes; then :
8129 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
8133 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_flags" "ac_cv_member_struct_ifreq_ifr_flags" "$ac_includes_default
8134 #if HAVE_SYS_SOCKET_H
8135 #include <sys/socket.h>
8141 if test "x$ac_cv_member_struct_ifreq_ifr_flags" = x
""yes; then :
8143 cat >>confdefs.h
<<_ACEOF
8144 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8149 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "$ac_includes_default
8150 #if HAVE_SYS_SOCKET_H
8151 #include <sys/socket.h>
8157 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = x
""yes; then :
8159 cat >>confdefs.h
<<_ACEOF
8160 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8165 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_netmask" "ac_cv_member_struct_ifreq_ifr_netmask" "$ac_includes_default
8166 #if HAVE_SYS_SOCKET_H
8167 #include <sys/socket.h>
8173 if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = x
""yes; then :
8175 cat >>confdefs.h
<<_ACEOF
8176 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8181 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_broadaddr" "ac_cv_member_struct_ifreq_ifr_broadaddr" "$ac_includes_default
8182 #if HAVE_SYS_SOCKET_H
8183 #include <sys/socket.h>
8189 if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = x
""yes; then :
8191 cat >>confdefs.h
<<_ACEOF
8192 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8197 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_addr" "ac_cv_member_struct_ifreq_ifr_addr" "$ac_includes_default
8198 #if HAVE_SYS_SOCKET_H
8199 #include <sys/socket.h>
8205 if test "x$ac_cv_member_struct_ifreq_ifr_addr" = x
""yes; then :
8207 cat >>confdefs.h
<<_ACEOF
8208 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
8217 $as_echo_n "checking for function prototypes... " >&6; }
8218 if test "$ac_cv_prog_cc_c89" != no
; then
8219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8220 $as_echo "yes" >&6; }
8222 $as_echo "#define PROTOTYPES 1" >>confdefs.h
8225 $as_echo "#define __PROTOTYPES 1" >>confdefs.h
8228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8229 $as_echo "no" >&6; }
8232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
8233 $as_echo_n "checking for working volatile... " >&6; }
8234 if test "${ac_cv_c_volatile+set}" = set; then :
8235 $as_echo_n "(cached) " >&6
8237 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8238 /* end confdefs.h. */
8245 int * volatile y = (int *) 0;
8251 if ac_fn_c_try_compile
"$LINENO"; then :
8252 ac_cv_c_volatile
=yes
8256 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
8259 $as_echo "$ac_cv_c_volatile" >&6; }
8260 if test $ac_cv_c_volatile = no
; then
8262 $as_echo "#define volatile /**/" >>confdefs.h
8266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
8267 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
8268 if test "${ac_cv_c_const+set}" = set; then :
8269 $as_echo_n "(cached) " >&6
8271 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8272 /* end confdefs.h. */
8277 /* FIXME: Include the comments suggested by Paul. */
8279 /* Ultrix mips cc rejects this. */
8280 typedef int charset[2];
8282 /* SunOS 4.1.1 cc rejects this. */
8283 char const *const *pcpcc;
8285 /* NEC SVR4.0.2 mips cc rejects this. */
8286 struct point {int x, y;};
8287 static struct point const zero = {0,0};
8288 /* AIX XL C 1.02.0.0 rejects this.
8289 It does not let you subtract one const X* pointer from another in
8290 an arm of an if-expression whose if-part is not a constant
8292 const char *g = "string";
8293 pcpcc = &g + (g ? g-g : 0);
8294 /* HPUX 7.0 cc rejects these. */
8296 ppc = (char**) pcpcc;
8297 pcpcc = (char const *const *) ppc;
8298 { /* SCO 3.2v4 cc rejects this. */
8300 char const *s = 0 ? (char *) 0 : (char const *) 0;
8305 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8307 const int *foo = &x[0];
8310 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8311 typedef const int *iptr;
8315 { /* AIX XL C 1.02.0.0 rejects this saying
8316 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8317 struct s { int j; const int *ap[3]; };
8318 struct s *b; b->j = 5;
8320 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8324 return !cs[0] && !zero.x;
8331 if ac_fn_c_try_compile
"$LINENO"; then :
8336 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
8339 $as_echo "$ac_cv_c_const" >&6; }
8340 if test $ac_cv_c_const = no
; then
8342 $as_echo "#define const /**/" >>confdefs.h
8346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for void * support" >&5
8347 $as_echo_n "checking for void * support... " >&6; }
8348 if test "${emacs_cv_void_star+set}" = set; then :
8349 $as_echo_n "(cached) " >&6
8351 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8352 /* end confdefs.h. */
8362 if ac_fn_c_try_compile
"$LINENO"; then :
8363 emacs_cv_void_star
=yes
8365 emacs_cv_void_star
=no
8367 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_void_star" >&5
8370 $as_echo "$emacs_cv_void_star" >&6; }
8371 if test $emacs_cv_void_star = yes; then
8372 $as_echo "#define POINTER_TYPE void" >>confdefs.h
8375 $as_echo "#define POINTER_TYPE char" >>confdefs.h
8379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8380 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8381 if test "${ac_cv_c_bigendian+set}" = set; then :
8382 $as_echo_n "(cached) " >&6
8384 ac_cv_c_bigendian
=unknown
8385 # See if we're dealing with a universal compiler.
8386 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8387 /* end confdefs.h. */
8388 #ifndef __APPLE_CC__
8389 not a universal capable compiler
8394 if ac_fn_c_try_compile
"$LINENO"; then :
8396 # Check for potential -arch flags. It is not universal unless
8397 # there are at least two -arch flags with different values.
8400 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8401 if test -n "$ac_prev"; then
8403 i?
86 | x86_64 | ppc | ppc64
)
8404 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
8407 ac_cv_c_bigendian
=universal
8413 elif test "x$ac_word" = "x-arch"; then
8418 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8419 if test $ac_cv_c_bigendian = unknown
; then
8420 # See if sys/param.h defines the BYTE_ORDER macro.
8421 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8422 /* end confdefs.h. */
8423 #include <sys/types.h>
8424 #include <sys/param.h>
8429 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8430 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8439 if ac_fn_c_try_compile
"$LINENO"; then :
8440 # It does; now see whether it defined to BIG_ENDIAN or not.
8441 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8442 /* end confdefs.h. */
8443 #include <sys/types.h>
8444 #include <sys/param.h>
8449 #if BYTE_ORDER != BIG_ENDIAN
8457 if ac_fn_c_try_compile
"$LINENO"; then :
8458 ac_cv_c_bigendian
=yes
8460 ac_cv_c_bigendian
=no
8462 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8464 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8466 if test $ac_cv_c_bigendian = unknown
; then
8467 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8468 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8469 /* end confdefs.h. */
8475 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8483 if ac_fn_c_try_compile
"$LINENO"; then :
8484 # It does; now see whether it defined to _BIG_ENDIAN or not.
8485 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8486 /* end confdefs.h. */
8500 if ac_fn_c_try_compile
"$LINENO"; then :
8501 ac_cv_c_bigendian
=yes
8503 ac_cv_c_bigendian
=no
8505 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8507 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8509 if test $ac_cv_c_bigendian = unknown
; then
8510 # Compile a test program.
8511 if test "$cross_compiling" = yes; then :
8512 # Try to guess by grepping values from an object file.
8513 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8514 /* end confdefs.h. */
8515 short int ascii_mm[] =
8516 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8517 short int ascii_ii[] =
8518 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8519 int use_ascii (int i) {
8520 return ascii_mm[i] + ascii_ii[i];
8522 short int ebcdic_ii[] =
8523 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8524 short int ebcdic_mm[] =
8525 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8526 int use_ebcdic (int i) {
8527 return ebcdic_mm[i] + ebcdic_ii[i];
8534 return use_ascii (foo) == use_ebcdic (foo);
8539 if ac_fn_c_try_compile
"$LINENO"; then :
8540 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
8541 ac_cv_c_bigendian
=yes
8543 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
8544 if test "$ac_cv_c_bigendian" = unknown
; then
8545 ac_cv_c_bigendian
=no
8547 # finding both strings is unlikely to happen, but who knows?
8548 ac_cv_c_bigendian
=unknown
8552 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8554 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8555 /* end confdefs.h. */
8556 $ac_includes_default
8561 /* Are we little or big endian? From Harbison&Steele. */
8565 char c[sizeof (long int)];
8568 return u.c[sizeof (long int) - 1] == 1;
8574 if ac_fn_c_try_run
"$LINENO"; then :
8575 ac_cv_c_bigendian
=no
8577 ac_cv_c_bigendian
=yes
8579 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8580 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8586 $as_echo "$ac_cv_c_bigendian" >&6; }
8587 case $ac_cv_c_bigendian in #(
8589 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8595 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8599 as_fn_error
"unknown endianness
8600 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__ ((__aligned__ (expr)))" >&5
8605 $as_echo_n "checking for __attribute__ ((__aligned__ (expr)))... " >&6; }
8606 if test "${emacs_cv_attribute_aligned+set}" = set; then :
8607 $as_echo_n "(cached) " >&6
8609 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8610 /* end confdefs.h. */
8611 char __attribute__ ((__aligned__ (1 << 3))) c;
8620 if ac_fn_c_try_compile
"$LINENO"; then :
8621 emacs_cv_attribute_aligned
=yes
8623 emacs_cv_attribute_aligned
=no
8625 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_attribute_aligned" >&5
8628 $as_echo "$emacs_cv_attribute_aligned" >&6; }
8629 if test $emacs_cv_attribute_aligned = yes; then
8631 $as_echo "#define HAVE_ATTRIBUTE_ALIGNED 1" >>confdefs.h
8635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8636 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
8638 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8639 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
8640 $as_echo_n "(cached) " >&6
8642 cat >conftest.
make <<\_ACEOF
8645 @
echo '@@@%%%=$(MAKE)=@@@%%%'
8647 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8648 case `${MAKE-make} -f conftest.make 2>/dev/null` in
8650 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
8652 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
8656 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
8657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8658 $as_echo "yes" >&6; }
8661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8662 $as_echo "no" >&6; }
8663 SET_MAKE
="MAKE=${MAKE-make}"
8670 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
8671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU Make" >&5
8672 $as_echo_n "checking whether we are using GNU Make... " >&6; }
8674 testval
=`make --version 2>/dev/null | grep 'GNU Make'`
8675 if test "x$testval" != x
; then
8678 ac_enable_autodepend
=no
8680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_GNU_MAKE" >&5
8681 $as_echo "$HAVE_GNU_MAKE" >&6; }
8682 if test $HAVE_GNU_MAKE = yes; then
8683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -MMD -MF" >&5
8684 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
8685 SAVE_CFLAGS
="$CFLAGS"
8686 CFLAGS
="$CFLAGS -MMD -MF deps.d"
8687 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8688 /* end confdefs.h. */
8698 if ac_fn_c_try_compile
"$LINENO"; then :
8701 ac_enable_autodepend
=no
8703 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8704 CFLAGS
="$SAVE_CFLAGS"
8705 test -f deps.d || ac_enable_autodepend
=no
8707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_autodepend" >&5
8708 $as_echo "$ac_enable_autodepend" >&6; }
8710 if test $ac_enable_autodepend = yes; then
8711 DEPFLAGS
='-MMD -MF ${DEPDIR}/$*.d'
8712 ## In parallel builds, another make might create depdir between
8713 ## the first test and mkdir, so stick another test on the end.
8714 ## Or use install-sh -d? mkdir -p is not portable.
8715 MKDEPDIR
='test -d ${DEPDIR} || mkdir ${DEPDIR} || test -d ${DEPDIR}'
8716 deps_frag
=autodeps.mk
8719 deps_frag
=$srcdir/src
/$deps_frag
8725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5
8726 $as_echo_n "checking for long file names... " >&6; }
8727 if test "${ac_cv_sys_long_file_names+set}" = set; then :
8728 $as_echo_n "(cached) " >&6
8730 ac_cv_sys_long_file_names
=yes
8731 # Test for long file names in all the places we know might matter:
8732 # . the current directory, where building will happen
8733 # $prefix/lib where we will be installing things
8734 # $exec_prefix/lib likewise
8735 # $TMPDIR if set, where it might want to write temporary files
8736 # /tmp where it might want to write temporary files
8739 for ac_dir
in .
"$TMPDIR" /tmp
/var
/tmp
/usr
/tmp
"$prefix/lib" "$exec_prefix/lib"; do
8740 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
8741 # in the usual case where exec_prefix is '${prefix}'.
8743 . |
/* | ?
:[\\/]*) ;; #(
8746 test -w "$ac_dir/." ||
continue # It is less confusing to not echo anything here.
8747 ac_xdir
=$ac_dir/cf$$
8748 (umask 077 && mkdir
"$ac_xdir" 2>/dev
/null
) ||
continue
8749 ac_tf1
=$ac_xdir/conftest9012345
8750 ac_tf2
=$ac_xdir/conftest9012346
8751 touch "$ac_tf1" 2>/dev
/null
&& test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
8752 ac_cv_sys_long_file_names
=no
8753 rm -f -r "$ac_xdir" 2>/dev
/null
8754 test $ac_cv_sys_long_file_names = no
&& break
8757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5
8758 $as_echo "$ac_cv_sys_long_file_names" >&6; }
8759 if test $ac_cv_sys_long_file_names = yes; then
8761 $as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h
8766 #### Choose a window system.
8768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
8769 $as_echo_n "checking for X... " >&6; }
8772 # Check whether --with-x was given.
8773 if test "${with_x+set}" = set; then :
8777 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8778 if test "x$with_x" = xno
; then
8779 # The user explicitly disabled X.
8782 case $x_includes,$x_libraries in #(
8783 *\'*) as_fn_error
"cannot use X directory names containing '" "$LINENO" 5;; #(
8784 *,NONE | NONE
,*) if test "${ac_cv_have_x+set}" = set; then :
8785 $as_echo_n "(cached) " >&6
8787 # One or both of the vars are not set, and there is no cached value.
8788 ac_x_includes
=no ac_x_libraries
=no
8789 rm -f -r conftest.dir
8790 if mkdir conftest.dir
; then
8792 cat >Imakefile
<<'_ACEOF'
8794 @echo incroot='${INCROOT}'
8796 @echo usrlibdir='${USRLIBDIR}'
8798 @echo libdir='${LIBDIR}'
8800 if (export CC
; ${XMKMF-xmkmf}) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
8801 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8802 for ac_var
in incroot usrlibdir libdir
; do
8803 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
8805 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8806 for ac_extension
in a so sl dylib la dll
; do
8807 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
8808 test -f "$ac_im_libdir/libX11.$ac_extension"; then
8809 ac_im_usrlibdir
=$ac_im_libdir; break
8812 # Screen out bogus values from the imake configuration. They are
8813 # bogus both because they are the default anyway, and because
8814 # using them would break gcc on systems where it needs fixed includes.
8815 case $ac_im_incroot in
8816 /usr
/include
) ac_x_includes
= ;;
8817 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
8819 case $ac_im_usrlibdir in
8820 /usr
/lib |
/usr
/lib64 |
/lib |
/lib64
) ;;
8821 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
8825 rm -f -r conftest.dir
8828 # Standard set of common directories for X headers.
8829 # Check X11 before X11Rn because it is often a symlink to the current release.
8843 /usr/local/X11/include
8844 /usr/local/X11R7/include
8845 /usr/local/X11R6/include
8846 /usr/local/X11R5/include
8847 /usr/local/X11R4/include
8849 /usr/local/include/X11
8850 /usr/local/include/X11R7
8851 /usr/local/include/X11R6
8852 /usr/local/include/X11R5
8853 /usr/local/include/X11R4
8857 /usr/XFree86/include/X11
8861 /usr/unsupported/include
8863 /usr/local/x11r5/include
8864 /usr/lpp/Xamples/include
8866 /usr/openwin/include
8867 /usr/openwin/share/include'
8869 if test "$ac_x_includes" = no
; then
8870 # Guess where to find include files, by looking for Xlib.h.
8871 # First, try using that file with no special directory specified.
8872 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8873 /* end confdefs.h. */
8874 #include <X11/Xlib.h>
8876 if ac_fn_c_try_cpp
"$LINENO"; then :
8877 # We can compile using X headers with no special include directory.
8880 for ac_dir
in $ac_x_header_dirs; do
8881 if test -r "$ac_dir/X11/Xlib.h"; then
8882 ac_x_includes
=$ac_dir
8887 rm -f conftest.err conftest.
$ac_ext
8888 fi # $ac_x_includes = no
8890 if test "$ac_x_libraries" = no
; then
8891 # Check for the libraries.
8892 # See if we find them without any special options.
8893 # Don't add to $LIBS permanently.
8896 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8897 /* end confdefs.h. */
8898 #include <X11/Xlib.h>
8907 if ac_fn_c_try_link
"$LINENO"; then :
8909 # We can link X programs with no special library path.
8913 for ac_dir
in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8915 # Don't even attempt the hair of trying to link an X program!
8916 for ac_extension
in a so sl dylib la dll
; do
8917 if test -r "$ac_dir/libX11.$ac_extension"; then
8918 ac_x_libraries
=$ac_dir
8924 rm -f core conftest.err conftest.
$ac_objext \
8925 conftest
$ac_exeext conftest.
$ac_ext
8926 fi # $ac_x_libraries = no
8928 case $ac_x_includes,$ac_x_libraries in #(
8930 # Didn't find X, or a directory has "'" in its name.
8931 ac_cv_have_x
="have_x=no";; #(
8933 # Record where we found X for the cache.
8934 ac_cv_have_x
="have_x=yes\
8935 ac_x_includes='$ac_x_includes'\
8936 ac_x_libraries='$ac_x_libraries'"
8942 eval "$ac_cv_have_x"
8945 if test "$have_x" != yes; then
8946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
8947 $as_echo "$have_x" >&6; }
8950 # If each of the values was on the command line, it overrides each guess.
8951 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
8952 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
8953 # Update the cache value to reflect the command line values.
8954 ac_cv_have_x
="have_x=yes\
8955 ac_x_includes='$x_includes'\
8956 ac_x_libraries='$x_libraries'"
8957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
8958 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
8961 if test "$no_x" = yes; then
8967 ## Workaround for bug in autoconf <= 2.62.
8968 ## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
8969 ## No need to do anything special for these standard directories.
8970 if test -n "${x_libraries}" && test x
"${x_libraries}" != xNONE
; then
8972 x_libraries
=`echo :${x_libraries}: | sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
8976 LD_SWITCH_X_SITE_AUX
=
8977 LD_SWITCH_X_SITE_AUX_RPATH
=
8978 if test "${x_libraries}" != NONE
; then
8979 if test -n "${x_libraries}"; then
8980 LD_SWITCH_X_SITE
=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
8981 LD_SWITCH_X_SITE_AUX
=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
8982 LD_SWITCH_X_SITE_AUX_RPATH
=`echo ${LD_SWITCH_X_SITE_AUX} | sed -e 's/-R/-Wl,-rpath,/'`
8984 x_default_search_path
=""
8985 x_search_path
=${x_libraries}
8986 if test -z "${x_search_path}"; then
8987 x_search_path
=/usr
/lib
8989 for x_library
in `echo ${x_search_path}: | \
8990 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
8992 ${x_library}/X11/%L/%T/%N%C%S:\
8993 ${x_library}/X11/%l/%T/%N%C%S:\
8994 ${x_library}/X11/%T/%N%C%S:\
8995 ${x_library}/X11/%L/%T/%N%S:\
8996 ${x_library}/X11/%l/%T/%N%S:\
8997 ${x_library}/X11/%T/%N%S"
8998 if test x
"${x_default_search_path}" = x
; then
8999 x_default_search_path
=${x_search_path}
9001 x_default_search_path
="${x_search_path}:${x_default_search_path}"
9008 if test "${x_includes}" != NONE
&& test -n "${x_includes}"; then
9009 C_SWITCH_X_SITE
=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
9012 if test x
"${x_includes}" = x
; then
9013 bitmapdir
=/usr
/include
/X11
/bitmaps
9015 # accumulate include directories that have X11 bitmap subdirectories
9017 for bmd
in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9018 if test -d "${bmd}/X11/bitmaps"; then
9019 bmd_acc
="${bmd_acc}:${bmd}/X11/bitmaps"
9021 if test -d "${bmd}/bitmaps"; then
9022 bmd_acc
="${bmd_acc}:${bmd}/bitmaps"
9025 if test ${bmd_acc} != "dummyval"; then
9026 bitmapdir
=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9033 tmp_CPPFLAGS
="$CPPFLAGS"
9034 tmp_CFLAGS
="$CFLAGS"
9035 CPPFLAGS
="$CPPFLAGS -x objective-c"
9036 CFLAGS
="$CFLAGS -x objective-c"
9037 TEMACS_LDFLAGS2
="\${LDFLAGS}"
9038 if test "${with_ns}" != no
; then
9039 if test "${opsys}" = darwin
; then
9041 ns_appdir
=`pwd`/nextstep
/Emacs.app
9042 ns_appbindir
=${ns_appdir}/Contents
/MacOS
/
9043 ns_appresdir
=${ns_appdir}/Contents
/Resources
9044 ns_appsrc
=${srcdir}/nextstep
/Cocoa
/Emacs.base
9045 elif test -f $GNUSTEP_CONFIG_FILE; then
9047 ns_appdir
=`pwd`/nextstep
/Emacs.app
9048 ns_appbindir
=${ns_appdir}/
9049 ns_appresdir
=${ns_appdir}/Resources
9050 ns_appsrc
=${srcdir}/nextstep
/GNUstep
/Emacs.base
9051 GNUSTEP_SYSTEM_HEADERS
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
9052 GNUSTEP_SYSTEM_LIBRARIES
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
9053 GNUSTEP_LOCAL_HEADERS
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_HEADERS)"
9054 GNUSTEP_LOCAL_LIBRARIES
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_LIBRARIES)"
9055 test "x${GNUSTEP_LOCAL_HEADERS}" != "x" && \
9056 GNUSTEP_LOCAL_HEADERS
="-I${GNUSTEP_LOCAL_HEADERS}"
9057 test "x${GNUSTEP_LOCAL_LIBRARIES}" != "x" && \
9058 GNUSTEP_LOCAL_LIBRARIES
="-L${GNUSTEP_LOCAL_LIBRARIES}"
9059 CPPFLAGS
="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
9060 CFLAGS
="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
9061 LDFLAGS
="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES}"
9066 ac_fn_c_check_header_mongrel
"$LINENO" "AppKit/AppKit.h" "ac_cv_header_AppKit_AppKit_h" "$ac_includes_default"
9067 if test "x$ac_cv_header_AppKit_AppKit_h" = x
""yes; then :
9070 as_fn_error
"\`--with-ns' was specified, but the include
9071 files are missing or cannot be compiled." "$LINENO" 5
9075 NS_HAVE_NSINTEGER
=yes
9076 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9077 /* end confdefs.h. */
9078 #include <Foundation/NSObjCRuntime.h>
9087 if ac_fn_c_try_compile
"$LINENO"; then :
9088 ns_have_nsinteger
=yes
9090 ns_have_nsinteger
=no
9092 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9093 if test $ns_have_nsinteger = no
; then
9094 NS_HAVE_NSINTEGER
=no
9103 if test "${HAVE_NS}" = yes; then
9104 window_system
=nextstep
9106 # set up packaging dirs
9107 exec_prefix
=${ns_appbindir}
9108 libexecdir
=${ns_appbindir}/libexec
9109 if test "${EN_NS_SELF_CONTAINED}" = yes; then
9110 prefix
=${ns_appresdir}
9112 ns_frag
=$srcdir/src
/ns.mk
9113 NS_OBJ
="fontset.o fringe.o image.o"
9114 NS_OBJC_OBJ
="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o"
9115 NS_SUPPORT
="\${lispsource}/emacs-lisp/easymenu.elc \${lispsource}/term/ns-win.elc"
9117 CFLAGS
="$tmp_CFLAGS"
9118 CPPFLAGS
="$tmp_CPPFLAGS"
9125 case "${window_system}" in
9129 case "${with_x_toolkit}" in
9130 athena | lucid
) USE_X_TOOLKIT
=LUCID
;;
9131 motif
) USE_X_TOOLKIT
=MOTIF
;;
9133 USE_X_TOOLKIT
=none
;;
9134 gtk3
) with_gtk3
=yes
9135 USE_X_TOOLKIT
=none
;;
9136 no
) USE_X_TOOLKIT
=none
;;
9137 * ) USE_X_TOOLKIT
=maybe
;;
9147 if test "$window_system" = none
&& test "X$with_x" != "Xno"; then
9148 # Extract the first word of "X", so it can be a program name with args.
9149 set dummy X
; ac_word
=$2
9150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9151 $as_echo_n "checking for $ac_word... " >&6; }
9152 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then :
9153 $as_echo_n "(cached) " >&6
9155 if test -n "$HAVE_XSERVER"; then
9156 ac_cv_prog_HAVE_XSERVER
="$HAVE_XSERVER" # Let the user override the test.
9158 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9162 test -z "$as_dir" && as_dir
=.
9163 for ac_exec_ext
in '' $ac_executable_extensions; do
9164 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9165 ac_cv_prog_HAVE_XSERVER
="true"
9166 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9173 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER
="false"
9176 HAVE_XSERVER
=$ac_cv_prog_HAVE_XSERVER
9177 if test -n "$HAVE_XSERVER"; then
9178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_XSERVER" >&5
9179 $as_echo "$HAVE_XSERVER" >&6; }
9181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9182 $as_echo "no" >&6; }
9186 if test "$HAVE_XSERVER" = true ||
9187 test -n "$DISPLAY" ||
9188 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
9189 as_fn_error
"You seem to be running X, but no X development libraries
9190 were found. You should install the relevant development files for X
9191 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9192 sure you have development files for image handling, i.e.
9193 tiff, gif, jpeg, png and xpm.
9194 If you are sure you want Emacs compiled without X window support, pass
9196 to configure." "$LINENO" 5
9200 ### If we're using X11, we should use the X menu package.
9203 yes ) HAVE_MENUS
=yes ;;
9206 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9207 # Assume not, until told otherwise.
9210 ac_fn_c_check_func
"$LINENO" "malloc_get_state" "ac_cv_func_malloc_get_state"
9211 if test "x$ac_cv_func_malloc_get_state" = x
""yes; then :
9217 ac_fn_c_check_func
"$LINENO" "malloc_set_state" "ac_cv_func_malloc_set_state"
9218 if test "x$ac_cv_func_malloc_set_state" = x
""yes; then :
9224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __after_morecore_hook exists" >&5
9225 $as_echo_n "checking whether __after_morecore_hook exists... " >&6; }
9226 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then :
9227 $as_echo_n "(cached) " >&6
9229 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9230 /* end confdefs.h. */
9231 extern void (* __after_morecore_hook)();
9235 __after_morecore_hook = 0
9240 if ac_fn_c_try_link
"$LINENO"; then :
9241 emacs_cv_var___after_morecore_hook
=yes
9243 emacs_cv_var___after_morecore_hook
=no
9245 rm -f core conftest.err conftest.
$ac_objext \
9246 conftest
$ac_exeext conftest.
$ac_ext
9248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_var___after_morecore_hook" >&5
9249 $as_echo "$emacs_cv_var___after_morecore_hook" >&6; }
9250 if test $emacs_cv_var___after_morecore_hook = no
; then
9257 ## darwin ld insists on the use of malloc routines in the System framework.
9258 darwin|sol2-10
) system_malloc
=yes ;;
9261 if test "${system_malloc}" = "yes"; then
9263 $as_echo "#define SYSTEM_MALLOC 1" >>confdefs.h
9267 (The GNU allocators don't work with this system configuration.)"
9271 test "$doug_lea_malloc" != "yes" && GMALLOC_OBJ
=gmalloc.o
9272 VMLIMIT_OBJ
=vm-limit.o
9277 if test "$doug_lea_malloc" = "yes" ; then
9278 if test "$GNU_MALLOC" = yes ; then
9280 (Using Doug Lea's new malloc from the GNU C Library.)"
9283 $as_echo "#define DOUG_LEA_MALLOC 1" >>confdefs.h
9286 ## Use mmap directly for allocating larger buffers.
9287 ## FIXME this comes from src/s/{gnu,gnu-linux}.h:
9288 ## #ifdef DOUG_LEA_MALLOC; #undef REL_ALLOC; #endif
9289 ## Does the AC_FUNC_MMAP test below make this check unecessary?
9291 gnu
*) REL_ALLOC
=no
;;
9295 if test x
"${REL_ALLOC}" = x
; then
9296 REL_ALLOC
=${GNU_MALLOC}
9299 use_mmap_for_buffers
=no
9301 freebsd|irix6-5
) use_mmap_for_buffers
=yes ;;
9307 for ac_header
in $ac_header_list
9309 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9310 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9312 eval as_val
=\$
$as_ac_Header
9313 if test "x$as_val" = x
""yes; then :
9314 cat >>confdefs.h
<<_ACEOF
9315 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9329 for ac_func
in getpagesize
9331 ac_fn_c_check_func
"$LINENO" "getpagesize" "ac_cv_func_getpagesize"
9332 if test "x$ac_cv_func_getpagesize" = x
""yes; then :
9333 cat >>confdefs.h
<<_ACEOF
9334 #define HAVE_GETPAGESIZE 1
9340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
9341 $as_echo_n "checking for working mmap... " >&6; }
9342 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
9343 $as_echo_n "(cached) " >&6
9345 if test "$cross_compiling" = yes; then :
9346 ac_cv_func_mmap_fixed_mapped
=no
9348 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9349 /* end confdefs.h. */
9350 $ac_includes_default
9351 /* malloc might have been renamed as rpl_malloc. */
9354 /* Thanks to Mike Haertel and Jim Avera for this test.
9355 Here is a matrix of mmap possibilities:
9356 mmap private not fixed
9357 mmap private fixed at somewhere currently unmapped
9358 mmap private fixed at somewhere already mapped
9359 mmap shared not fixed
9360 mmap shared fixed at somewhere currently unmapped
9361 mmap shared fixed at somewhere already mapped
9362 For private mappings, we should verify that changes cannot be read()
9363 back from the file, nor mmap's back from the file at a different
9364 address. (There have been systems where private was not correctly
9365 implemented like the infamous i386 svr4.0, and systems where the
9366 VM page cache was not coherent with the file system buffer cache
9367 like early versions of FreeBSD and possibly contemporary NetBSD.)
9368 For shared mappings, we should conversely verify that changes get
9369 propagated back to all the places they're supposed to be.
9371 Grep wants private fixed already mapped.
9372 The main things grep needs to know about mmap are:
9373 * does it exist and is it safe to write into the mmap'd area
9374 * how to use it (BSD variants) */
9377 #include <sys/mman.h>
9379 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
9383 /* This mess was copied from the GNU getpagesize.h. */
9384 #ifndef HAVE_GETPAGESIZE
9385 # ifdef _SC_PAGESIZE
9386 # define getpagesize() sysconf(_SC_PAGESIZE)
9387 # else /* no _SC_PAGESIZE */
9388 # ifdef HAVE_SYS_PARAM_H
9389 # include <sys/param.h>
9390 # ifdef EXEC_PAGESIZE
9391 # define getpagesize() EXEC_PAGESIZE
9392 # else /* no EXEC_PAGESIZE */
9394 # define getpagesize() NBPG * CLSIZE
9397 # endif /* no CLSIZE */
9398 # else /* no NBPG */
9400 # define getpagesize() NBPC
9401 # else /* no NBPC */
9403 # define getpagesize() PAGESIZE
9404 # endif /* PAGESIZE */
9405 # endif /* no NBPC */
9406 # endif /* no NBPG */
9407 # endif /* no EXEC_PAGESIZE */
9408 # else /* no HAVE_SYS_PARAM_H */
9409 # define getpagesize() 8192 /* punt totally */
9410 # endif /* no HAVE_SYS_PARAM_H */
9411 # endif /* no _SC_PAGESIZE */
9413 #endif /* no HAVE_GETPAGESIZE */
9418 char *data, *data2, *data3;
9423 pagesize = getpagesize ();
9425 /* First, make a file with some known garbage in it. */
9426 data = (char *) malloc (pagesize);
9429 for (i = 0; i < pagesize; ++i)
9430 *(data + i) = rand ();
9432 fd = creat ("conftest.mmap", 0600);
9435 if (write (fd, data, pagesize) != pagesize)
9439 /* Next, check that the tail of a page is zero-filled. File must have
9440 non-zero length, otherwise we risk SIGBUS for entire page. */
9441 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
9445 if (write (fd2, cdata2, 1) != 1)
9447 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
9448 if (data2 == MAP_FAILED)
9450 for (i = 0; i < pagesize; ++i)
9454 if (munmap (data2, pagesize))
9457 /* Next, try to mmap the file at a fixed address which already has
9458 something else allocated at it. If we can, also make sure that
9459 we see the same garbage. */
9460 fd = open ("conftest.mmap", O_RDWR);
9463 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9464 MAP_PRIVATE | MAP_FIXED, fd, 0L))
9466 for (i = 0; i < pagesize; ++i)
9467 if (*(data + i) != *(data2 + i))
9470 /* Finally, make sure that changes to the mapped area do not
9471 percolate back to the file as seen by read(). (This is a bug on
9472 some variants of i386 svr4.0.) */
9473 for (i = 0; i < pagesize; ++i)
9474 *(data2 + i) = *(data2 + i) + 1;
9475 data3 = (char *) malloc (pagesize);
9478 if (read (fd, data3, pagesize) != pagesize)
9480 for (i = 0; i < pagesize; ++i)
9481 if (*(data + i) != *(data3 + i))
9487 if ac_fn_c_try_run
"$LINENO"; then :
9488 ac_cv_func_mmap_fixed_mapped
=yes
9490 ac_cv_func_mmap_fixed_mapped
=no
9492 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9493 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
9498 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
9499 if test $ac_cv_func_mmap_fixed_mapped = yes; then
9501 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
9504 rm -f conftest.mmap conftest.txt
9506 if test $use_mmap_for_buffers = yes; then
9508 $as_echo "#define USE_MMAP_FOR_BUFFERS 1" >>confdefs.h
9513 LIBS
="$LIBS_SYSTEM $LIBS"
9515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
9516 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
9517 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
9518 $as_echo_n "(cached) " >&6
9520 ac_check_lib_save_LIBS
=$LIBS
9522 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9523 /* end confdefs.h. */
9525 /* Override any GCC internal prototype to avoid an error.
9526 Use char because int might match the return type of a GCC
9527 builtin and then its argument prototype would still apply. */
9535 return dnet_ntoa ();
9540 if ac_fn_c_try_link
"$LINENO"; then :
9541 ac_cv_lib_dnet_dnet_ntoa
=yes
9543 ac_cv_lib_dnet_dnet_ntoa
=no
9545 rm -f core conftest.err conftest.
$ac_objext \
9546 conftest
$ac_exeext conftest.
$ac_ext
9547 LIBS
=$ac_check_lib_save_LIBS
9549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
9550 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
9551 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x
""yes; then :
9552 cat >>confdefs.h
<<_ACEOF
9553 #define HAVE_LIBDNET 1
9561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXbsd" >&5
9562 $as_echo_n "checking for main in -lXbsd... " >&6; }
9563 if test "${ac_cv_lib_Xbsd_main+set}" = set; then :
9564 $as_echo_n "(cached) " >&6
9566 ac_check_lib_save_LIBS
=$LIBS
9568 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9569 /* end confdefs.h. */
9580 if ac_fn_c_try_link
"$LINENO"; then :
9581 ac_cv_lib_Xbsd_main
=yes
9583 ac_cv_lib_Xbsd_main
=no
9585 rm -f core conftest.err conftest.
$ac_objext \
9586 conftest
$ac_exeext conftest.
$ac_ext
9587 LIBS
=$ac_check_lib_save_LIBS
9589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xbsd_main" >&5
9590 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
9591 if test "x$ac_cv_lib_Xbsd_main" = x
""yes; then :
9592 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -lXbsd"
9596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cma_open in -lpthreads" >&5
9597 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
9598 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then :
9599 $as_echo_n "(cached) " >&6
9601 ac_check_lib_save_LIBS
=$LIBS
9602 LIBS
="-lpthreads $LIBS"
9603 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9604 /* end confdefs.h. */
9606 /* Override any GCC internal prototype to avoid an error.
9607 Use char because int might match the return type of a GCC
9608 builtin and then its argument prototype would still apply. */
9621 if ac_fn_c_try_link
"$LINENO"; then :
9622 ac_cv_lib_pthreads_cma_open
=yes
9624 ac_cv_lib_pthreads_cma_open
=no
9626 rm -f core conftest.err conftest.
$ac_objext \
9627 conftest
$ac_exeext conftest.
$ac_ext
9628 LIBS
=$ac_check_lib_save_LIBS
9630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_cma_open" >&5
9631 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
9632 if test "x$ac_cv_lib_pthreads_cma_open" = x
""yes; then :
9633 cat >>confdefs.h
<<_ACEOF
9634 #define HAVE_LIBPTHREADS 1
9637 LIBS
="-lpthreads $LIBS"
9642 ## Note: when using cpp in s/aix4.2.h, this definition depended on
9643 ## HAVE_LIBPTHREADS. That was not defined earlier in configure when
9644 ## the system file was sourced. Hence the value of LIBS_SYSTEM
9645 ## added to LIBS in configure would never contain the pthreads part,
9646 ## but the value used in Makefiles might. FIXME?
9648 ## -lpthreads seems to be necessary for Xlib in X11R6, and should
9649 ## be harmless on older versions of X where it happens to exist.
9650 test "$opsys" = "aix4-2" && \
9651 test $ac_cv_lib_pthreads_cma_open = yes && \
9652 LIBS_SYSTEM
="$LIBS_SYSTEM -lpthreads"
9657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
9658 $as_echo_n "checking for -bbigtoc option... " >&6; }
9659 if test "${gdb_cv_bigtoc+set}" = set; then :
9660 $as_echo_n "(cached) " >&6
9664 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
9665 *) gdb_cv_bigtoc
=-bbigtoc ;;
9668 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
9669 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9670 /* end confdefs.h. */
9680 if ac_fn_c_try_link
"$LINENO"; then :
9685 rm -f core conftest.err conftest.
$ac_objext \
9686 conftest
$ac_exeext conftest.
$ac_ext
9689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
9690 $as_echo "$gdb_cv_bigtoc" >&6; }
9694 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
9695 # used for the tests that follow. We set them back to REAL_CFLAGS and
9696 # REAL_CPPFLAGS later on.
9698 REAL_CFLAGS
="$CFLAGS"
9699 REAL_CPPFLAGS
="$CPPFLAGS"
9701 if test "${HAVE_X11}" = "yes"; then
9702 DEFS
="$C_SWITCH_X_SITE $DEFS"
9703 LDFLAGS
="$LDFLAGS $LD_SWITCH_X_SITE"
9705 CFLAGS
="$C_SWITCH_X_SITE $CFLAGS"
9706 CPPFLAGS
="$C_SWITCH_X_SITE $CPPFLAGS"
9708 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
9709 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
9710 # but it's more convenient here to set LD_RUN_PATH
9711 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
9712 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
9713 LD_RUN_PATH
=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
9717 if test "${opsys}" = "gnu-linux"; then
9718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X on GNU/Linux needs -b to link" >&5
9719 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
9720 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9721 /* end confdefs.h. */
9726 XOpenDisplay ("foo");
9731 if ac_fn_c_try_link
"$LINENO"; then :
9732 xlinux_first_failure
=no
9734 xlinux_first_failure
=yes
9736 rm -f core conftest.err conftest.
$ac_objext \
9737 conftest
$ac_exeext conftest.
$ac_ext
9738 if test "${xlinux_first_failure}" = "yes"; then
9739 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
9740 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
9741 OLD_CPPFLAGS
="$CPPFLAGS"
9743 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
9744 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
9745 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
9746 LIBS
="$LIBS -b i486-linuxaout"
9747 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9748 /* end confdefs.h. */
9753 XOpenDisplay ("foo");
9758 if ac_fn_c_try_link
"$LINENO"; then :
9759 xlinux_second_failure
=no
9761 xlinux_second_failure
=yes
9763 rm -f core conftest.err conftest.
$ac_objext \
9764 conftest
$ac_exeext conftest.
$ac_ext
9765 if test "${xlinux_second_failure}" = "yes"; then
9766 # If we get the same failure with -b, there is no use adding -b.
9767 # So take it out. This plays safe.
9768 LD_SWITCH_X_SITE
="$OLD_LD_SWITCH_X_SITE"
9769 C_SWITCH_X_SITE
="$OLD_C_SWITCH_X_SITE"
9770 CPPFLAGS
="$OLD_CPPFLAGS"
9772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9773 $as_echo "no" >&6; }
9775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9776 $as_echo "yes" >&6; }
9779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9780 $as_echo "no" >&6; }
9784 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
9785 # header files included from there.
9786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xkb" >&5
9787 $as_echo_n "checking for Xkb... " >&6; }
9788 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9789 /* end confdefs.h. */
9790 #include <X11/Xlib.h>
9791 #include <X11/XKBlib.h>
9795 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
9800 if ac_fn_c_try_link
"$LINENO"; then :
9805 rm -f core conftest.err conftest.
$ac_objext \
9806 conftest
$ac_exeext conftest.
$ac_ext
9807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_xkb" >&5
9808 $as_echo "$emacs_xkb" >&6; }
9809 if test $emacs_xkb = yes; then
9811 $as_echo "#define HAVE_XKBGETKEYBOARD 1" >>confdefs.h
9815 for ac_func
in XrmSetDatabase XScreenResourceString \
9816 XScreenNumberOfScreen XSetWMProtocols
9818 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9819 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
9820 eval as_val
=\$
$as_ac_var
9821 if test "x$as_val" = x
""yes; then :
9822 cat >>confdefs.h
<<_ACEOF
9823 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9831 if test "${window_system}" = "x11"; then
9832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 version 6" >&5
9833 $as_echo_n "checking X11 version 6... " >&6; }
9834 if test "${emacs_cv_x11_version_6+set}" = set; then :
9835 $as_echo_n "(cached) " >&6
9837 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9838 /* end confdefs.h. */
9839 #include <X11/Xlib.h>
9843 #if XlibSpecificationRelease < 6
9851 if ac_fn_c_try_link
"$LINENO"; then :
9852 emacs_cv_x11_version_6
=yes
9854 emacs_cv_x11_version_6
=no
9856 rm -f core conftest.err conftest.
$ac_objext \
9857 conftest
$ac_exeext conftest.
$ac_ext
9860 if test $emacs_cv_x11_version_6 = yes; then
9861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
9862 $as_echo "6 or newer" >&6; }
9864 $as_echo "#define HAVE_X11R6 1" >>confdefs.h
9867 $as_echo "#define HAVE_X_I18N 1" >>confdefs.h
9869 ## inoue@ainet.or.jp says Solaris has a bug related to X11R6-style
9874 $as_echo "#define HAVE_X11R6_XIM 1" >>confdefs.h
9879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
9880 $as_echo "before 6" >&6; }
9885 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
9887 if test "${HAVE_X11}" = "yes" ||
test "${NS_IMPL_GNUSTEP}" = "yes"; then
9888 if test "${with_rsvg}" != "no"; then
9889 RSVG_REQUIRED
=2.11.0
9890 RSVG_MODULE
="librsvg-2.0 >= $RSVG_REQUIRED"
9895 # Extract the first word of "pkg-config", so it can be a program name with args.
9896 set dummy pkg-config
; ac_word
=$2
9897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9898 $as_echo_n "checking for $ac_word... " >&6; }
9899 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
9900 $as_echo_n "(cached) " >&6
9904 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
9907 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9911 test -z "$as_dir" && as_dir
=.
9912 for ac_exec_ext
in '' $ac_executable_extensions; do
9913 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9914 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
9915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9922 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
9926 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
9927 if test -n "$PKG_CONFIG"; then
9928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9929 $as_echo "$PKG_CONFIG" >&6; }
9931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9932 $as_echo "no" >&6; }
9937 if test "$PKG_CONFIG" = "no" ; then
9940 PKG_CONFIG_MIN_VERSION
=0.9.0
9941 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $RSVG_MODULE" >&5
9943 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
9945 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
9946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9947 $as_echo "yes" >&6; }
9950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_CFLAGS" >&5
9951 $as_echo_n "checking RSVG_CFLAGS... " >&6; }
9952 RSVG_CFLAGS
=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
9953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_CFLAGS" >&5
9954 $as_echo "$RSVG_CFLAGS" >&6; }
9956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_LIBS" >&5
9957 $as_echo_n "checking RSVG_LIBS... " >&6; }
9958 RSVG_LIBS
=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
9959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_LIBS" >&5
9960 $as_echo "$RSVG_LIBS" >&6; }
9962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9963 $as_echo "no" >&6; }
9966 ## If we have a custom action on failure, don't print errors, but
9967 ## do set a variable so people can do so.
9968 RSVG_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
9975 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9976 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9980 if test $succeeded = yes; then
9989 if test $HAVE_RSVG = yes; then
9991 $as_echo "#define HAVE_RSVG 1" >>confdefs.h
9993 CFLAGS
="$CFLAGS $RSVG_CFLAGS"
9994 LIBS
="$RSVG_LIBS $LIBS"
10000 if test "${HAVE_X11}" = "yes"; then
10001 if test "${with_imagemagick}" != "no"; then
10002 IMAGEMAGICK_MODULE
="Wand"
10006 # Extract the first word of "pkg-config", so it can be a program name with args.
10007 set dummy pkg-config
; ac_word
=$2
10008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10009 $as_echo_n "checking for $ac_word... " >&6; }
10010 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10011 $as_echo_n "(cached) " >&6
10013 case $PKG_CONFIG in
10015 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
10018 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10019 for as_dir
in $PATH
10022 test -z "$as_dir" && as_dir
=.
10023 for ac_exec_ext
in '' $ac_executable_extensions; do
10024 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10025 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
10026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10033 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
10037 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
10038 if test -n "$PKG_CONFIG"; then
10039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10040 $as_echo "$PKG_CONFIG" >&6; }
10042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10043 $as_echo "no" >&6; }
10048 if test "$PKG_CONFIG" = "no" ; then
10051 PKG_CONFIG_MIN_VERSION
=0.9.0
10052 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $IMAGEMAGICK_MODULE" >&5
10054 $as_echo_n "checking for $IMAGEMAGICK_MODULE... " >&6; }
10056 if $PKG_CONFIG --exists "$IMAGEMAGICK_MODULE" 2>&5; then
10057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10058 $as_echo "yes" >&6; }
10061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking IMAGEMAGICK_CFLAGS" >&5
10062 $as_echo_n "checking IMAGEMAGICK_CFLAGS... " >&6; }
10063 IMAGEMAGICK_CFLAGS
=`$PKG_CONFIG --cflags "$IMAGEMAGICK_MODULE"|sed -e 's,///*,/,g'`
10064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMAGEMAGICK_CFLAGS" >&5
10065 $as_echo "$IMAGEMAGICK_CFLAGS" >&6; }
10067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking IMAGEMAGICK_LIBS" >&5
10068 $as_echo_n "checking IMAGEMAGICK_LIBS... " >&6; }
10069 IMAGEMAGICK_LIBS
=`$PKG_CONFIG --libs "$IMAGEMAGICK_MODULE"|sed -e 's,///*,/,g'`
10070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMAGEMAGICK_LIBS" >&5
10071 $as_echo "$IMAGEMAGICK_LIBS" >&6; }
10073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10074 $as_echo "no" >&6; }
10075 IMAGEMAGICK_CFLAGS
=""
10076 IMAGEMAGICK_LIBS
=""
10077 ## If we have a custom action on failure, don't print errors, but
10078 ## do set a variable so people can do so.
10079 IMAGEMAGICK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$IMAGEMAGICK_MODULE"`
10086 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10087 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10091 if test $succeeded = yes; then
10092 HAVE_IMAGEMAGICK
=yes
10100 if test $HAVE_IMAGEMAGICK = yes; then
10102 $as_echo "#define HAVE_IMAGEMAGICK 1" >>confdefs.h
10104 CFLAGS
="$CFLAGS $IMAGEMAGICK_CFLAGS"
10105 LIBS
="$IMAGEMAGICK_LIBS $LIBS"
10106 for ac_func
in MagickExportImagePixels
10108 ac_fn_c_check_func
"$LINENO" "MagickExportImagePixels" "ac_cv_func_MagickExportImagePixels"
10109 if test "x$ac_cv_func_MagickExportImagePixels" = x
""yes; then :
10110 cat >>confdefs.h
<<_ACEOF
10111 #define HAVE_MAGICKEXPORTIMAGEPIXELS 1
10123 if test "${with_gtk3}" = "yes"; then
10126 GTK_MODULES
="gtk+-3.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10131 # Extract the first word of "pkg-config", so it can be a program name with args.
10132 set dummy pkg-config
; ac_word
=$2
10133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10134 $as_echo_n "checking for $ac_word... " >&6; }
10135 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10136 $as_echo_n "(cached) " >&6
10138 case $PKG_CONFIG in
10140 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
10143 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10144 for as_dir
in $PATH
10147 test -z "$as_dir" && as_dir
=.
10148 for ac_exec_ext
in '' $ac_executable_extensions; do
10149 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10150 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
10151 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10158 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
10162 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
10163 if test -n "$PKG_CONFIG"; then
10164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10165 $as_echo "$PKG_CONFIG" >&6; }
10167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10168 $as_echo "no" >&6; }
10173 if test "$PKG_CONFIG" = "no" ; then
10176 PKG_CONFIG_MIN_VERSION
=0.9.0
10177 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
10179 $as_echo_n "checking for $GTK_MODULES... " >&6; }
10181 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
10182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10183 $as_echo "yes" >&6; }
10186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
10187 $as_echo_n "checking GTK_CFLAGS... " >&6; }
10188 GTK_CFLAGS
=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
10189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
10190 $as_echo "$GTK_CFLAGS" >&6; }
10192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
10193 $as_echo_n "checking GTK_LIBS... " >&6; }
10194 GTK_LIBS
=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
10195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
10196 $as_echo "$GTK_LIBS" >&6; }
10198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10199 $as_echo "no" >&6; }
10202 ## If we have a custom action on failure, don't print errors, but
10203 ## do set a variable so people can do so.
10204 GTK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
10211 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10212 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10216 if test $succeeded = yes; then
10222 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
10223 as_fn_error
"$GTK_PKG_ERRORS" "$LINENO" 5
10226 $as_echo "#define HAVE_GTK3 1" >>confdefs.h
10230 if test "$pkg_check_gtk" != "yes"; then
10232 if test "${with_gtk}" = "yes" ||
test "$USE_X_TOOLKIT" = "maybe"; then
10235 GTK_MODULES
="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10240 # Extract the first word of "pkg-config", so it can be a program name with args.
10241 set dummy pkg-config
; ac_word
=$2
10242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10243 $as_echo_n "checking for $ac_word... " >&6; }
10244 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10245 $as_echo_n "(cached) " >&6
10247 case $PKG_CONFIG in
10249 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
10252 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10253 for as_dir
in $PATH
10256 test -z "$as_dir" && as_dir
=.
10257 for ac_exec_ext
in '' $ac_executable_extensions; do
10258 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10259 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
10260 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10267 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
10271 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
10272 if test -n "$PKG_CONFIG"; then
10273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10274 $as_echo "$PKG_CONFIG" >&6; }
10276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10277 $as_echo "no" >&6; }
10282 if test "$PKG_CONFIG" = "no" ; then
10285 PKG_CONFIG_MIN_VERSION
=0.9.0
10286 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
10288 $as_echo_n "checking for $GTK_MODULES... " >&6; }
10290 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
10291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10292 $as_echo "yes" >&6; }
10295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
10296 $as_echo_n "checking GTK_CFLAGS... " >&6; }
10297 GTK_CFLAGS
=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
10298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
10299 $as_echo "$GTK_CFLAGS" >&6; }
10301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
10302 $as_echo_n "checking GTK_LIBS... " >&6; }
10303 GTK_LIBS
=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
10304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
10305 $as_echo "$GTK_LIBS" >&6; }
10307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10308 $as_echo "no" >&6; }
10311 ## If we have a custom action on failure, don't print errors, but
10312 ## do set a variable so people can do so.
10313 GTK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
10320 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10321 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10325 if test $succeeded = yes; then
10331 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
10332 as_fn_error
"$GTK_PKG_ERRORS" "$LINENO" 5
10338 if test x
"$pkg_check_gtk" = xyes
; then
10342 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $GTK_CFLAGS"
10343 CFLAGS
="$CFLAGS $GTK_CFLAGS"
10344 LIBS
="$GTK_LIBS $LIBS"
10346 for ac_func
in gtk_main
10348 ac_fn_c_check_func
"$LINENO" "gtk_main" "ac_cv_func_gtk_main"
10349 if test "x$ac_cv_func_gtk_main" = x
""yes; then :
10350 cat >>confdefs.h
<<_ACEOF
10351 #define HAVE_GTK_MAIN 1
10357 if test "${GTK_COMPILES}" != "yes"; then
10358 if test "$USE_X_TOOLKIT" != "maybe"; then
10359 as_fn_error
"Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" "$LINENO" 5;
10364 $as_echo "#define USE_GTK 1" >>confdefs.h
10368 if $PKG_CONFIG --atleast-version=2.10 gtk
+-2.0
; then
10371 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of Gtk+ will have problems with
10372 closing open displays. This is no problem if you just use
10373 one display, but if you use more than one and close one of them
10374 Emacs may crash." >&5
10375 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
10376 closing open displays. This is no problem if you just use
10377 one display, but if you use more than one and close one of them
10378 Emacs may crash." >&2;}
10387 if test "${HAVE_GTK}" = "yes"; then
10389 if test "$with_toolkit_scroll_bars" != no
; then
10390 with_toolkit_scroll_bars
=yes
10393 HAVE_GTK_FILE_SELECTION
=no
10394 ac_fn_c_check_decl
"$LINENO" "GTK_TYPE_FILE_SELECTION" "ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" "$ac_includes_default
10395 #include <gtk/gtk.h>
10397 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = x
""yes; then :
10398 HAVE_GTK_FILE_SELECTION
=yes
10400 HAVE_GTK_FILE_SELECTION
=no
10403 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
10404 for ac_func
in gtk_file_selection_new
10406 ac_fn_c_check_func
"$LINENO" "gtk_file_selection_new" "ac_cv_func_gtk_file_selection_new"
10407 if test "x$ac_cv_func_gtk_file_selection_new" = x
""yes; then :
10408 cat >>confdefs.h
<<_ACEOF
10409 #define HAVE_GTK_FILE_SELECTION_NEW 1
10417 HAVE_GTK_AND_PTHREAD
=no
10418 for ac_header
in pthread.h
10420 ac_fn_c_check_header_mongrel
"$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
10421 if test "x$ac_cv_header_pthread_h" = x
""yes; then :
10422 cat >>confdefs.h
<<_ACEOF
10423 #define HAVE_PTHREAD_H 1
10430 if test "$ac_cv_header_pthread_h"; then
10431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_self in -lpthread" >&5
10432 $as_echo_n "checking for pthread_self in -lpthread... " >&6; }
10433 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then :
10434 $as_echo_n "(cached) " >&6
10436 ac_check_lib_save_LIBS
=$LIBS
10437 LIBS
="-lpthread $LIBS"
10438 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10439 /* end confdefs.h. */
10441 /* Override any GCC internal prototype to avoid an error.
10442 Use char because int might match the return type of a GCC
10443 builtin and then its argument prototype would still apply. */
10447 char pthread_self ();
10451 return pthread_self ();
10456 if ac_fn_c_try_link
"$LINENO"; then :
10457 ac_cv_lib_pthread_pthread_self
=yes
10459 ac_cv_lib_pthread_pthread_self
=no
10461 rm -f core conftest.err conftest.
$ac_objext \
10462 conftest
$ac_exeext conftest.
$ac_ext
10463 LIBS
=$ac_check_lib_save_LIBS
10465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_self" >&5
10466 $as_echo "$ac_cv_lib_pthread_pthread_self" >&6; }
10467 if test "x$ac_cv_lib_pthread_pthread_self" = x
""yes; then :
10468 HAVE_GTK_AND_PTHREAD
=yes
10472 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
10473 case "${canonical}" in
10475 *) GTK_LIBS
="$GTK_LIBS -lpthread" ;;
10478 $as_echo "#define HAVE_GTK_AND_PTHREAD 1" >>confdefs.h
10482 for ac_func
in gtk_widget_get_window gtk_widget_set_has_window \
10483 gtk_dialog_get_action_area gtk_widget_get_sensitive \
10484 gtk_widget_get_mapped gtk_adjustment_get_page_size \
10485 gtk_orientable_set_orientation
10487 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10488 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10489 eval as_val
=\$
$as_ac_var
10490 if test "x$as_val" = x
""yes; then :
10491 cat >>confdefs.h
<<_ACEOF
10492 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10503 if test "${with_dbus}" = "yes"; then
10507 # Extract the first word of "pkg-config", so it can be a program name with args.
10508 set dummy pkg-config
; ac_word
=$2
10509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10510 $as_echo_n "checking for $ac_word... " >&6; }
10511 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10512 $as_echo_n "(cached) " >&6
10514 case $PKG_CONFIG in
10516 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
10519 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10520 for as_dir
in $PATH
10523 test -z "$as_dir" && as_dir
=.
10524 for ac_exec_ext
in '' $ac_executable_extensions; do
10525 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10526 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
10527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10534 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
10538 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
10539 if test -n "$PKG_CONFIG"; then
10540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10541 $as_echo "$PKG_CONFIG" >&6; }
10543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10544 $as_echo "no" >&6; }
10549 if test "$PKG_CONFIG" = "no" ; then
10552 PKG_CONFIG_MIN_VERSION
=0.9.0
10553 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1 >= 1.0" >&5
10555 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
10557 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
10558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10559 $as_echo "yes" >&6; }
10562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_CFLAGS" >&5
10563 $as_echo_n "checking DBUS_CFLAGS... " >&6; }
10564 DBUS_CFLAGS
=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
10565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_CFLAGS" >&5
10566 $as_echo "$DBUS_CFLAGS" >&6; }
10568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_LIBS" >&5
10569 $as_echo_n "checking DBUS_LIBS... " >&6; }
10570 DBUS_LIBS
=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
10571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_LIBS" >&5
10572 $as_echo "$DBUS_LIBS" >&6; }
10574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10575 $as_echo "no" >&6; }
10578 ## If we have a custom action on failure, don't print errors, but
10579 ## do set a variable so people can do so.
10580 DBUS_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
10587 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10588 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10592 if test $succeeded = yes; then
10598 if test "$HAVE_DBUS" = yes; then
10599 LIBS
="$LIBS $DBUS_LIBS"
10601 $as_echo "#define HAVE_DBUS 1" >>confdefs.h
10603 for ac_func
in dbus_watch_get_unix_fd
10605 ac_fn_c_check_func
"$LINENO" "dbus_watch_get_unix_fd" "ac_cv_func_dbus_watch_get_unix_fd"
10606 if test "x$ac_cv_func_dbus_watch_get_unix_fd" = x
""yes; then :
10607 cat >>confdefs.h
<<_ACEOF
10608 #define HAVE_DBUS_WATCH_GET_UNIX_FD 1
10614 DBUS_OBJ
=dbusbind.o
10620 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
10624 # Extract the first word of "pkg-config", so it can be a program name with args.
10625 set dummy pkg-config
; ac_word
=$2
10626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10627 $as_echo_n "checking for $ac_word... " >&6; }
10628 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10629 $as_echo_n "(cached) " >&6
10631 case $PKG_CONFIG in
10633 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
10636 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10637 for as_dir
in $PATH
10640 test -z "$as_dir" && as_dir
=.
10641 for ac_exec_ext
in '' $ac_executable_extensions; do
10642 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10643 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
10644 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10651 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
10655 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
10656 if test -n "$PKG_CONFIG"; then
10657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10658 $as_echo "$PKG_CONFIG" >&6; }
10660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10661 $as_echo "no" >&6; }
10666 if test "$PKG_CONFIG" = "no" ; then
10669 PKG_CONFIG_MIN_VERSION
=0.9.0
10670 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.13" >&5
10672 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
10674 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5; then
10675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10676 $as_echo "yes" >&6; }
10679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_CFLAGS" >&5
10680 $as_echo_n "checking GCONF_CFLAGS... " >&6; }
10681 GCONF_CFLAGS
=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
10682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_CFLAGS" >&5
10683 $as_echo "$GCONF_CFLAGS" >&6; }
10685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_LIBS" >&5
10686 $as_echo_n "checking GCONF_LIBS... " >&6; }
10687 GCONF_LIBS
=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
10688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_LIBS" >&5
10689 $as_echo "$GCONF_LIBS" >&6; }
10691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10692 $as_echo "no" >&6; }
10695 ## If we have a custom action on failure, don't print errors, but
10696 ## do set a variable so people can do so.
10697 GCONF_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.13"`
10704 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10705 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10709 if test $succeeded = yes; then
10715 if test "$HAVE_GCONF" = yes; then
10717 $as_echo "#define HAVE_GCONF 1" >>confdefs.h
10719 for ac_func
in g_type_init
10721 ac_fn_c_check_func
"$LINENO" "g_type_init" "ac_cv_func_g_type_init"
10722 if test "x$ac_cv_func_g_type_init" = x
""yes; then :
10723 cat >>confdefs.h
<<_ACEOF
10724 #define HAVE_G_TYPE_INIT 1
10735 if test "${with_selinux}" = "yes"; then
10736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgetfilecon in -lselinux" >&5
10737 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
10738 if test "${ac_cv_lib_selinux_lgetfilecon+set}" = set; then :
10739 $as_echo_n "(cached) " >&6
10741 ac_check_lib_save_LIBS
=$LIBS
10742 LIBS
="-lselinux $LIBS"
10743 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10744 /* end confdefs.h. */
10746 /* Override any GCC internal prototype to avoid an error.
10747 Use char because int might match the return type of a GCC
10748 builtin and then its argument prototype would still apply. */
10752 char lgetfilecon ();
10756 return lgetfilecon ();
10761 if ac_fn_c_try_link
"$LINENO"; then :
10762 ac_cv_lib_selinux_lgetfilecon
=yes
10764 ac_cv_lib_selinux_lgetfilecon
=no
10766 rm -f core conftest.err conftest.
$ac_objext \
10767 conftest
$ac_exeext conftest.
$ac_ext
10768 LIBS
=$ac_check_lib_save_LIBS
10770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_lgetfilecon" >&5
10771 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
10772 if test "x$ac_cv_lib_selinux_lgetfilecon" = x
""yes; then :
10773 HAVE_LIBSELINUX
=yes
10778 if test "$HAVE_LIBSELINUX" = yes; then
10780 $as_echo "#define HAVE_LIBSELINUX 1" >>confdefs.h
10782 LIBSELINUX_LIBS
=-lselinux
10788 if test "${with_gnutls}" = "yes" ; then
10792 # Extract the first word of "pkg-config", so it can be a program name with args.
10793 set dummy pkg-config
; ac_word
=$2
10794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10795 $as_echo_n "checking for $ac_word... " >&6; }
10796 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10797 $as_echo_n "(cached) " >&6
10799 case $PKG_CONFIG in
10801 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
10804 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10805 for as_dir
in $PATH
10808 test -z "$as_dir" && as_dir
=.
10809 for ac_exec_ext
in '' $ac_executable_extensions; do
10810 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10811 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
10812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10819 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
10823 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
10824 if test -n "$PKG_CONFIG"; then
10825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10826 $as_echo "$PKG_CONFIG" >&6; }
10828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10829 $as_echo "no" >&6; }
10834 if test "$PKG_CONFIG" = "no" ; then
10837 PKG_CONFIG_MIN_VERSION
=0.9.0
10838 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls >= 2.2.4" >&5
10840 $as_echo_n "checking for gnutls >= 2.2.4... " >&6; }
10842 if $PKG_CONFIG --exists "gnutls >= 2.2.4" 2>&5; then
10843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10844 $as_echo "yes" >&6; }
10847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGNUTLS_CFLAGS" >&5
10848 $as_echo_n "checking LIBGNUTLS_CFLAGS... " >&6; }
10849 LIBGNUTLS_CFLAGS
=`$PKG_CONFIG --cflags "gnutls >= 2.2.4"|sed -e 's,///*,/,g'`
10850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLS_CFLAGS" >&5
10851 $as_echo "$LIBGNUTLS_CFLAGS" >&6; }
10853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGNUTLS_LIBS" >&5
10854 $as_echo_n "checking LIBGNUTLS_LIBS... " >&6; }
10855 LIBGNUTLS_LIBS
=`$PKG_CONFIG --libs "gnutls >= 2.2.4"|sed -e 's,///*,/,g'`
10856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLS_LIBS" >&5
10857 $as_echo "$LIBGNUTLS_LIBS" >&6; }
10859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10860 $as_echo "no" >&6; }
10861 LIBGNUTLS_CFLAGS
=""
10863 ## If we have a custom action on failure, don't print errors, but
10864 ## do set a variable so people can do so.
10865 LIBGNUTLS_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "gnutls >= 2.2.4"`
10872 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10873 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10877 if test $succeeded = yes; then
10883 if test "${HAVE_GNUTLS}" = "yes"; then
10885 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
10894 if test x
"${USE_X_TOOLKIT}" = xmaybe ||
test x
"${USE_X_TOOLKIT}" = xLUCID
; then
10895 if test "$with_xaw3d" != no
; then
10896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
10897 $as_echo_n "checking for xaw3d... " >&6; }
10898 if test "${emacs_cv_xaw3d+set}" = set; then :
10899 $as_echo_n "(cached) " >&6
10901 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10902 /* end confdefs.h. */
10904 #include <X11/Intrinsic.h>
10905 #include <X11/Xaw3d/Simple.h>
10914 if ac_fn_c_try_link
"$LINENO"; then :
10915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XawScrollbarSetThumb in -lXaw3d" >&5
10916 $as_echo_n "checking for XawScrollbarSetThumb in -lXaw3d... " >&6; }
10917 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then :
10918 $as_echo_n "(cached) " >&6
10920 ac_check_lib_save_LIBS
=$LIBS
10921 LIBS
="-lXaw3d $LIBS"
10922 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10923 /* end confdefs.h. */
10925 /* Override any GCC internal prototype to avoid an error.
10926 Use char because int might match the return type of a GCC
10927 builtin and then its argument prototype would still apply. */
10931 char XawScrollbarSetThumb ();
10935 return XawScrollbarSetThumb ();
10940 if ac_fn_c_try_link
"$LINENO"; then :
10941 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=yes
10943 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=no
10945 rm -f core conftest.err conftest.
$ac_objext \
10946 conftest
$ac_exeext conftest.
$ac_ext
10947 LIBS
=$ac_check_lib_save_LIBS
10949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
10950 $as_echo "$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6; }
10951 if test "x$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" = x
""yes; then :
10960 rm -f core conftest.err conftest.
$ac_objext \
10961 conftest
$ac_exeext conftest.
$ac_ext
10967 if test $emacs_cv_xaw3d = yes; then
10968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
10969 $as_echo "yes; using Lucid toolkit" >&6; }
10970 USE_X_TOOLKIT
=LUCID
10974 $as_echo "#define HAVE_XAW3D 1" >>confdefs.h
10977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10978 $as_echo "no" >&6; }
10979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXaw" >&5
10980 $as_echo_n "checking for libXaw... " >&6; }
10981 if test "${emacs_cv_xaw+set}" = set; then :
10982 $as_echo_n "(cached) " >&6
10984 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10985 /* end confdefs.h. */
10987 #include <X11/Intrinsic.h>
10988 #include <X11/Xaw/Simple.h>
10997 if ac_fn_c_try_link
"$LINENO"; then :
11002 rm -f core conftest.err conftest.
$ac_objext \
11003 conftest
$ac_exeext conftest.
$ac_ext
11006 if test $emacs_cv_xaw = yes; then
11007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
11008 $as_echo "yes; using Lucid toolkit" >&6; }
11009 USE_X_TOOLKIT
=LUCID
11011 elif test x
"${USE_X_TOOLKIT}" = xLUCID
; then
11012 as_fn_error
"Lucid toolkit requires X11/Xaw include files" "$LINENO" 5
11014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no; do not use toolkit by default" >&5
11015 $as_echo "no; do not use toolkit by default" >&6; }
11021 X_TOOLKIT_TYPE
=$USE_X_TOOLKIT
11024 if test "${USE_X_TOOLKIT}" != "none"; then
11025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 toolkit version" >&5
11026 $as_echo_n "checking X11 toolkit version... " >&6; }
11027 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then :
11028 $as_echo_n "(cached) " >&6
11030 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11031 /* end confdefs.h. */
11032 #include <X11/Intrinsic.h>
11036 #if XtSpecificationRelease < 6
11044 if ac_fn_c_try_link
"$LINENO"; then :
11045 emacs_cv_x11_toolkit_version_6
=yes
11047 emacs_cv_x11_toolkit_version_6
=no
11049 rm -f core conftest.err conftest.
$ac_objext \
11050 conftest
$ac_exeext conftest.
$ac_ext
11053 HAVE_X11XTR6
=$emacs_cv_x11_toolkit_version_6
11054 if test $emacs_cv_x11_toolkit_version_6 = yes; then
11055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
11056 $as_echo "6 or newer" >&6; }
11058 $as_echo "#define HAVE_X11XTR6 1" >>confdefs.h
11060 LIBXTR6
="-lSM -lICE"
11062 ## Use libw.a along with X11R6 Xt.
11063 unixware
) LIBXTR6
="$LIBXTR6 -lw" ;;
11066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
11067 $as_echo "before 6" >&6; }
11071 if test x
$HAVE_X11XTR6 = xyes
; then
11072 LIBS
="-lXt -lSM -lICE $LIBS"
11076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuConvertStandardSelection in -lXmu" >&5
11077 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
11078 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then :
11079 $as_echo_n "(cached) " >&6
11081 ac_check_lib_save_LIBS
=$LIBS
11083 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11084 /* end confdefs.h. */
11086 /* Override any GCC internal prototype to avoid an error.
11087 Use char because int might match the return type of a GCC
11088 builtin and then its argument prototype would still apply. */
11092 char XmuConvertStandardSelection ();
11096 return XmuConvertStandardSelection ();
11101 if ac_fn_c_try_link
"$LINENO"; then :
11102 ac_cv_lib_Xmu_XmuConvertStandardSelection
=yes
11104 ac_cv_lib_Xmu_XmuConvertStandardSelection
=no
11106 rm -f core conftest.err conftest.
$ac_objext \
11107 conftest
$ac_exeext conftest.
$ac_ext
11108 LIBS
=$ac_check_lib_save_LIBS
11110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
11111 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
11112 if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = x
""yes; then :
11113 cat >>confdefs.h
<<_ACEOF
11114 #define HAVE_LIBXMU 1
11121 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no
&& LIBS
="$OLDLIBS"
11127 ## These systems don't supply Xmu.
11129 test "X$ac_cv_lib_Xmu_XmuConvertStandardSelection" != "Xyes" && LIBXMU
=
11134 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
11135 if test "${HAVE_X11}" = "yes"; then
11136 if test "${USE_X_TOOLKIT}" != "none"; then
11137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
11138 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
11139 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then :
11140 $as_echo_n "(cached) " >&6
11142 ac_check_lib_save_LIBS
=$LIBS
11143 LIBS
="-lXext $LIBS"
11144 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11145 /* end confdefs.h. */
11147 /* Override any GCC internal prototype to avoid an error.
11148 Use char because int might match the return type of a GCC
11149 builtin and then its argument prototype would still apply. */
11153 char XShapeQueryExtension ();
11157 return XShapeQueryExtension ();
11162 if ac_fn_c_try_link
"$LINENO"; then :
11163 ac_cv_lib_Xext_XShapeQueryExtension
=yes
11165 ac_cv_lib_Xext_XShapeQueryExtension
=no
11167 rm -f core conftest.err conftest.
$ac_objext \
11168 conftest
$ac_exeext conftest.
$ac_ext
11169 LIBS
=$ac_check_lib_save_LIBS
11171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
11172 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
11173 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x
""yes; then :
11174 cat >>confdefs.h
<<_ACEOF
11175 #define HAVE_LIBXEXT 1
11178 LIBS
="-lXext $LIBS"
11186 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Motif version 2.1" >&5
11188 $as_echo_n "checking for Motif version 2.1... " >&6; }
11189 if test "${emacs_cv_motif_version_2_1+set}" = set; then :
11190 $as_echo_n "(cached) " >&6
11192 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11193 /* end confdefs.h. */
11198 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
11201 Motif version prior to 2.1.
11207 if ac_fn_c_try_compile
"$LINENO"; then :
11208 emacs_cv_motif_version_2_1
=yes
11210 emacs_cv_motif_version_2_1
=no
11212 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_motif_version_2_1" >&5
11215 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
11216 if test $emacs_cv_motif_version_2_1 = yes; then
11217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpCreateContext in -lXp" >&5
11218 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
11219 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then :
11220 $as_echo_n "(cached) " >&6
11222 ac_check_lib_save_LIBS
=$LIBS
11224 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11225 /* end confdefs.h. */
11227 /* Override any GCC internal prototype to avoid an error.
11228 Use char because int might match the return type of a GCC
11229 builtin and then its argument prototype would still apply. */
11233 char XpCreateContext ();
11237 return XpCreateContext ();
11242 if ac_fn_c_try_link
"$LINENO"; then :
11243 ac_cv_lib_Xp_XpCreateContext
=yes
11245 ac_cv_lib_Xp_XpCreateContext
=no
11247 rm -f core conftest.err conftest.
$ac_objext \
11248 conftest
$ac_exeext conftest.
$ac_ext
11249 LIBS
=$ac_check_lib_save_LIBS
11251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpCreateContext" >&5
11252 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
11253 if test "x$ac_cv_lib_Xp_XpCreateContext" = x
""yes; then :
11258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LessTif where some systems put it" >&5
11259 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
11260 if test "${emacs_cv_lesstif+set}" = set; then :
11261 $as_echo_n "(cached) " >&6
11263 # We put this in CFLAGS temporarily to precede other -I options
11264 # that might be in CFLAGS temporarily.
11265 # We put this in CPPFLAGS where it precedes the other -I options.
11266 OLD_CPPFLAGS
=$CPPFLAGS
11268 CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
11269 CFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
11270 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11271 /* end confdefs.h. */
11272 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
11281 if ac_fn_c_try_compile
"$LINENO"; then :
11282 emacs_cv_lesstif
=yes
11284 emacs_cv_lesstif
=no
11286 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_lesstif" >&5
11289 $as_echo "$emacs_cv_lesstif" >&6; }
11290 if test $emacs_cv_lesstif = yes; then
11291 # Make sure this -I option remains in CPPFLAGS after it is set
11292 # back to REAL_CPPFLAGS.
11293 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
11294 # have those other -I options anyway. Ultimately, having this
11295 # directory ultimately in CPPFLAGS will be enough.
11296 REAL_CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
11297 LDFLAGS
="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
11300 CPPFLAGS
=$OLD_CPPFLAGS
11306 USE_TOOLKIT_SCROLL_BARS
=no
11307 if test "${with_toolkit_scroll_bars}" != "no"; then
11308 if test "${USE_X_TOOLKIT}" != "none"; then
11309 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11310 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11313 USE_TOOLKIT_SCROLL_BARS
=yes
11314 elif test "${HAVE_XAW3D}" = "yes"; then
11315 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11317 USE_TOOLKIT_SCROLL_BARS
=yes
11319 elif test "${HAVE_GTK}" = "yes"; then
11320 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11322 USE_TOOLKIT_SCROLL_BARS
=yes
11323 elif test "${HAVE_NS}" = "yes"; then
11324 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11326 USE_TOOLKIT_SCROLL_BARS
=yes
11330 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11331 /* end confdefs.h. */
11333 #include <X11/Xlib.h>
11334 #include <X11/Xresource.h>
11343 if ac_fn_c_try_compile
"$LINENO"; then :
11346 $as_echo "#define HAVE_XIM 1" >>confdefs.h
11351 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11354 if test "${with_xim}" != "no"; then
11356 $as_echo "#define USE_XIM 1" >>confdefs.h
11361 if test "${HAVE_XIM}" != "no"; then
11362 late_CFLAGS
=$CFLAGS
11363 if test "$GCC" = yes; then
11364 CFLAGS
="$CFLAGS --pedantic-errors"
11366 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11367 /* end confdefs.h. */
11369 #include <X11/Xlib.h>
11370 #include <X11/Xresource.h>
11379 XPointer *client_data;
11381 /* If we're not using GCC, it's probably not XFree86, and this is
11382 probably right, but we can't use something like --pedantic-errors. */
11383 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
11384 char*, XIMProc, XPointer*);
11386 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
11392 if ac_fn_c_try_compile
"$LINENO"; then :
11393 emacs_cv_arg6_star
=yes
11395 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11396 if test "$emacs_cv_arg6_star" = yes; then
11397 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer*" >>confdefs.h
11400 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer" >>confdefs.h
11403 CFLAGS
=$late_CFLAGS
11406 ### Start of font-backend (under any platform) section.
11407 # (nothing here yet -- this is a placeholder)
11408 ### End of font-backend (under any platform) section.
11410 ### Start of font-backend (under X11) section.
11411 if test "${HAVE_X11}" = "yes"; then
11415 # Extract the first word of "pkg-config", so it can be a program name with args.
11416 set dummy pkg-config
; ac_word
=$2
11417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11418 $as_echo_n "checking for $ac_word... " >&6; }
11419 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11420 $as_echo_n "(cached) " >&6
11422 case $PKG_CONFIG in
11424 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11427 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11428 for as_dir
in $PATH
11431 test -z "$as_dir" && as_dir
=.
11432 for ac_exec_ext
in '' $ac_executable_extensions; do
11433 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11434 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11435 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11442 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11446 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11447 if test -n "$PKG_CONFIG"; then
11448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11449 $as_echo "$PKG_CONFIG" >&6; }
11451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11452 $as_echo "no" >&6; }
11457 if test "$PKG_CONFIG" = "no" ; then
11460 PKG_CONFIG_MIN_VERSION
=0.9.0
11461 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.2.0" >&5
11463 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
11465 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5; then
11466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11467 $as_echo "yes" >&6; }
11470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_CFLAGS" >&5
11471 $as_echo_n "checking FONTCONFIG_CFLAGS... " >&6; }
11472 FONTCONFIG_CFLAGS
=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
11473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_CFLAGS" >&5
11474 $as_echo "$FONTCONFIG_CFLAGS" >&6; }
11476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_LIBS" >&5
11477 $as_echo_n "checking FONTCONFIG_LIBS... " >&6; }
11478 FONTCONFIG_LIBS
=`$PKG_CONFIG --libs "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
11479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_LIBS" >&5
11480 $as_echo "$FONTCONFIG_LIBS" >&6; }
11482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11483 $as_echo "no" >&6; }
11484 FONTCONFIG_CFLAGS
=""
11486 ## If we have a custom action on failure, don't print errors, but
11487 ## do set a variable so people can do so.
11488 FONTCONFIG_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2.0"`
11495 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11496 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11500 if test $succeeded = yes; then
11507 ## Use -lXft if available, unless `--with-xft=no'.
11509 if test "${HAVE_FC}" = "no" ||
test "x${with_x}" = "xno"; then
11512 if test "x${with_xft}" != "xno"; then
11517 # Extract the first word of "pkg-config", so it can be a program name with args.
11518 set dummy pkg-config
; ac_word
=$2
11519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11520 $as_echo_n "checking for $ac_word... " >&6; }
11521 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11522 $as_echo_n "(cached) " >&6
11524 case $PKG_CONFIG in
11526 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11529 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11530 for as_dir
in $PATH
11533 test -z "$as_dir" && as_dir
=.
11534 for ac_exec_ext
in '' $ac_executable_extensions; do
11535 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11536 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11537 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11544 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11548 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11549 if test -n "$PKG_CONFIG"; then
11550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11551 $as_echo "$PKG_CONFIG" >&6; }
11553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11554 $as_echo "no" >&6; }
11559 if test "$PKG_CONFIG" = "no" ; then
11562 PKG_CONFIG_MIN_VERSION
=0.9.0
11563 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xft >= 0.13.0" >&5
11565 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
11567 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
11568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11569 $as_echo "yes" >&6; }
11572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_CFLAGS" >&5
11573 $as_echo_n "checking XFT_CFLAGS... " >&6; }
11574 XFT_CFLAGS
=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
11575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_CFLAGS" >&5
11576 $as_echo "$XFT_CFLAGS" >&6; }
11578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_LIBS" >&5
11579 $as_echo_n "checking XFT_LIBS... " >&6; }
11580 XFT_LIBS
=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
11581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_LIBS" >&5
11582 $as_echo "$XFT_LIBS" >&6; }
11584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11585 $as_echo "no" >&6; }
11588 ## If we have a custom action on failure, don't print errors, but
11589 ## do set a variable so people can do so.
11590 XFT_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
11597 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11598 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11602 if test $succeeded = yes; then
11608 ## Because xftfont.c uses XRenderQueryExtension, we also
11609 ## need to link to -lXrender.
11611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5
11612 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
11613 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then :
11614 $as_echo_n "(cached) " >&6
11616 ac_check_lib_save_LIBS
=$LIBS
11617 LIBS
="-lXrender $LIBS"
11618 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11619 /* end confdefs.h. */
11621 /* Override any GCC internal prototype to avoid an error.
11622 Use char because int might match the return type of a GCC
11623 builtin and then its argument prototype would still apply. */
11627 char XRenderQueryExtension ();
11631 return XRenderQueryExtension ();
11636 if ac_fn_c_try_link
"$LINENO"; then :
11637 ac_cv_lib_Xrender_XRenderQueryExtension
=yes
11639 ac_cv_lib_Xrender_XRenderQueryExtension
=no
11641 rm -f core conftest.err conftest.
$ac_objext \
11642 conftest
$ac_exeext conftest.
$ac_ext
11643 LIBS
=$ac_check_lib_save_LIBS
11645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
11646 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
11647 if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = x
""yes; then :
11651 if test "$HAVE_XFT" != no
&& test "$HAVE_XRENDER" != no
; then
11652 OLD_CPPFLAGS
="$CPPFLAGS"
11653 OLD_CFLAGS
="$CFLAGS"
11655 CPPFLAGS
="$CPPFLAGS $XFT_CFLAGS"
11656 CFLAGS
="$CFLAGS $XFT_CFLAGS"
11657 XFT_LIBS
="-lXrender $XFT_LIBS"
11658 LIBS
="$XFT_LIBS $LIBS"
11659 ac_fn_c_check_header_mongrel
"$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default"
11660 if test "x$ac_cv_header_X11_Xft_Xft_h" = x
""yes; then :
11661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5
11662 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
11663 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then :
11664 $as_echo_n "(cached) " >&6
11666 ac_check_lib_save_LIBS
=$LIBS
11667 LIBS
="-lXft $XFT_LIBS $LIBS"
11668 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11669 /* end confdefs.h. */
11671 /* Override any GCC internal prototype to avoid an error.
11672 Use char because int might match the return type of a GCC
11673 builtin and then its argument prototype would still apply. */
11677 char XftFontOpen ();
11681 return XftFontOpen ();
11686 if ac_fn_c_try_link
"$LINENO"; then :
11687 ac_cv_lib_Xft_XftFontOpen
=yes
11689 ac_cv_lib_Xft_XftFontOpen
=no
11691 rm -f core conftest.err conftest.
$ac_objext \
11692 conftest
$ac_exeext conftest.
$ac_ext
11693 LIBS
=$ac_check_lib_save_LIBS
11695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftFontOpen" >&5
11696 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
11697 if test "x$ac_cv_lib_Xft_XftFontOpen" = x
""yes; then :
11705 if test "${HAVE_XFT}" = "yes"; then
11707 $as_echo "#define HAVE_XFT 1" >>confdefs.h
11710 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $XFT_CFLAGS"
11712 CPPFLAGS
="$OLD_CPPFLAGS"
11713 CFLAGS
="$OLD_CFLAGS"
11715 fi # "${HAVE_XFT}" = "yes"
11716 fi # "$HAVE_XFT" != no
11717 fi # "x${with_xft}" != "xno"
11719 ## We used to allow building with FreeType and without Xft.
11720 ## However, the ftx font backend driver is not in good shape.
11721 if test "$HAVE_XFT" != "yes"; then
11728 # Extract the first word of "pkg-config", so it can be a program name with args.
11729 set dummy pkg-config
; ac_word
=$2
11730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11731 $as_echo_n "checking for $ac_word... " >&6; }
11732 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11733 $as_echo_n "(cached) " >&6
11735 case $PKG_CONFIG in
11737 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11740 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11741 for as_dir
in $PATH
11744 test -z "$as_dir" && as_dir
=.
11745 for ac_exec_ext
in '' $ac_executable_extensions; do
11746 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11747 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11755 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11759 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11760 if test -n "$PKG_CONFIG"; then
11761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11762 $as_echo "$PKG_CONFIG" >&6; }
11764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11765 $as_echo "no" >&6; }
11770 if test "$PKG_CONFIG" = "no" ; then
11773 PKG_CONFIG_MIN_VERSION
=0.9.0
11774 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype2" >&5
11776 $as_echo_n "checking for freetype2... " >&6; }
11778 if $PKG_CONFIG --exists "freetype2" 2>&5; then
11779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11780 $as_echo "yes" >&6; }
11783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FREETYPE_CFLAGS" >&5
11784 $as_echo_n "checking FREETYPE_CFLAGS... " >&6; }
11785 FREETYPE_CFLAGS
=`$PKG_CONFIG --cflags "freetype2"|sed -e 's,///*,/,g'`
11786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_CFLAGS" >&5
11787 $as_echo "$FREETYPE_CFLAGS" >&6; }
11789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FREETYPE_LIBS" >&5
11790 $as_echo_n "checking FREETYPE_LIBS... " >&6; }
11791 FREETYPE_LIBS
=`$PKG_CONFIG --libs "freetype2"|sed -e 's,///*,/,g'`
11792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIBS" >&5
11793 $as_echo "$FREETYPE_LIBS" >&6; }
11795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11796 $as_echo "no" >&6; }
11799 ## If we have a custom action on failure, don't print errors, but
11800 ## do set a variable so people can do so.
11801 FREETYPE_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2"`
11808 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11809 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11813 if test $succeeded = yes; then
11820 test "$HAVE_FREETYPE" = "no" && as_fn_error
"libxft requires libfreetype" "$LINENO" 5
11824 if test "${HAVE_FREETYPE}" = "yes"; then
11826 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
11828 if test "${with_libotf}" != "no"; then
11832 # Extract the first word of "pkg-config", so it can be a program name with args.
11833 set dummy pkg-config
; ac_word
=$2
11834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11835 $as_echo_n "checking for $ac_word... " >&6; }
11836 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11837 $as_echo_n "(cached) " >&6
11839 case $PKG_CONFIG in
11841 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11844 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11845 for as_dir
in $PATH
11848 test -z "$as_dir" && as_dir
=.
11849 for ac_exec_ext
in '' $ac_executable_extensions; do
11850 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11851 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11859 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11863 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11864 if test -n "$PKG_CONFIG"; then
11865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11866 $as_echo "$PKG_CONFIG" >&6; }
11868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11869 $as_echo "no" >&6; }
11874 if test "$PKG_CONFIG" = "no" ; then
11877 PKG_CONFIG_MIN_VERSION
=0.9.0
11878 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libotf" >&5
11880 $as_echo_n "checking for libotf... " >&6; }
11882 if $PKG_CONFIG --exists "libotf" 2>&5; then
11883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11884 $as_echo "yes" >&6; }
11887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_CFLAGS" >&5
11888 $as_echo_n "checking LIBOTF_CFLAGS... " >&6; }
11889 LIBOTF_CFLAGS
=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
11890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_CFLAGS" >&5
11891 $as_echo "$LIBOTF_CFLAGS" >&6; }
11893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_LIBS" >&5
11894 $as_echo_n "checking LIBOTF_LIBS... " >&6; }
11895 LIBOTF_LIBS
=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
11896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_LIBS" >&5
11897 $as_echo "$LIBOTF_LIBS" >&6; }
11899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11900 $as_echo "no" >&6; }
11903 ## If we have a custom action on failure, don't print errors, but
11904 ## do set a variable so people can do so.
11905 LIBOTF_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
11912 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11913 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11917 if test $succeeded = yes; then
11923 if test "$HAVE_LIBOTF" = "yes"; then
11925 $as_echo "#define HAVE_LIBOTF 1" >>confdefs.h
11927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTF_get_variation_glyphs in -lotf" >&5
11928 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
11929 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then :
11930 $as_echo_n "(cached) " >&6
11932 ac_check_lib_save_LIBS
=$LIBS
11934 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11935 /* end confdefs.h. */
11937 /* Override any GCC internal prototype to avoid an error.
11938 Use char because int might match the return type of a GCC
11939 builtin and then its argument prototype would still apply. */
11943 char OTF_get_variation_glyphs ();
11947 return OTF_get_variation_glyphs ();
11952 if ac_fn_c_try_link
"$LINENO"; then :
11953 ac_cv_lib_otf_OTF_get_variation_glyphs
=yes
11955 ac_cv_lib_otf_OTF_get_variation_glyphs
=no
11957 rm -f core conftest.err conftest.
$ac_objext \
11958 conftest
$ac_exeext conftest.
$ac_ext
11959 LIBS
=$ac_check_lib_save_LIBS
11961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
11962 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
11963 if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = x
""yes; then :
11964 HAVE_OTF_GET_VARIATION_GLYPHS
=yes
11966 HAVE_OTF_GET_VARIATION_GLYPHS
=no
11969 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
11971 $as_echo "#define HAVE_OTF_GET_VARIATION_GLYPHS 1" >>confdefs.h
11979 if test "${HAVE_LIBOTF}" = yes; then
11980 if test "${with_m17n_flt}" != "no"; then
11984 # Extract the first word of "pkg-config", so it can be a program name with args.
11985 set dummy pkg-config
; ac_word
=$2
11986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11987 $as_echo_n "checking for $ac_word... " >&6; }
11988 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11989 $as_echo_n "(cached) " >&6
11991 case $PKG_CONFIG in
11993 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11996 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11997 for as_dir
in $PATH
12000 test -z "$as_dir" && as_dir
=.
12001 for ac_exec_ext
in '' $ac_executable_extensions; do
12002 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12003 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
12004 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12011 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
12015 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
12016 if test -n "$PKG_CONFIG"; then
12017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12018 $as_echo "$PKG_CONFIG" >&6; }
12020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12021 $as_echo "no" >&6; }
12026 if test "$PKG_CONFIG" = "no" ; then
12029 PKG_CONFIG_MIN_VERSION
=0.9.0
12030 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m17n-flt" >&5
12032 $as_echo_n "checking for m17n-flt... " >&6; }
12034 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
12035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12036 $as_echo "yes" >&6; }
12039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_CFLAGS" >&5
12040 $as_echo_n "checking M17N_FLT_CFLAGS... " >&6; }
12041 M17N_FLT_CFLAGS
=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
12042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_CFLAGS" >&5
12043 $as_echo "$M17N_FLT_CFLAGS" >&6; }
12045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_LIBS" >&5
12046 $as_echo_n "checking M17N_FLT_LIBS... " >&6; }
12047 M17N_FLT_LIBS
=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
12048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_LIBS" >&5
12049 $as_echo "$M17N_FLT_LIBS" >&6; }
12051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12052 $as_echo "no" >&6; }
12055 ## If we have a custom action on failure, don't print errors, but
12056 ## do set a variable so people can do so.
12057 M17N_FLT_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
12064 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12065 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12069 if test $succeeded = yes; then
12075 if test "$HAVE_M17N_FLT" = "yes"; then
12077 $as_echo "#define HAVE_M17N_FLT 1" >>confdefs.h
12089 ### End of font-backend (under X11) section.
12100 ### Use -lXpm if available, unless `--with-xpm=no'.
12103 if test "${HAVE_X11}" = "yes"; then
12104 if test "${with_xpm}" != "no"; then
12105 ac_fn_c_check_header_mongrel
"$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
12106 if test "x$ac_cv_header_X11_xpm_h" = x
""yes; then :
12107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToPixmap in -lXpm" >&5
12108 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
12109 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then :
12110 $as_echo_n "(cached) " >&6
12112 ac_check_lib_save_LIBS
=$LIBS
12113 LIBS
="-lXpm -lX11 $LIBS"
12114 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12115 /* end confdefs.h. */
12117 /* Override any GCC internal prototype to avoid an error.
12118 Use char because int might match the return type of a GCC
12119 builtin and then its argument prototype would still apply. */
12123 char XpmReadFileToPixmap ();
12127 return XpmReadFileToPixmap ();
12132 if ac_fn_c_try_link
"$LINENO"; then :
12133 ac_cv_lib_Xpm_XpmReadFileToPixmap
=yes
12135 ac_cv_lib_Xpm_XpmReadFileToPixmap
=no
12137 rm -f core conftest.err conftest.
$ac_objext \
12138 conftest
$ac_exeext conftest.
$ac_ext
12139 LIBS
=$ac_check_lib_save_LIBS
12141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
12142 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
12143 if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = x
""yes; then :
12150 if test "${HAVE_XPM}" = "yes"; then
12151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
12152 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
12153 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12154 /* end confdefs.h. */
12155 #include "X11/xpm.h"
12156 #ifndef XpmReturnAllocPixels
12157 no_return_alloc_pixels
12161 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12162 $EGREP "no_return_alloc_pixels" >/dev
/null
2>&1; then :
12170 if test "${HAVE_XPM}" = "yes"; then
12171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12172 $as_echo "yes" >&6; }
12174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12175 $as_echo "no" >&6; }
12180 if test "${HAVE_XPM}" = "yes"; then
12182 $as_echo "#define HAVE_XPM 1" >>confdefs.h
12189 ### Use -ljpeg if available, unless `--with-jpeg=no'.
12192 if test "${HAVE_X11}" = "yes"; then
12193 if test "${with_jpeg}" != "no"; then
12194 ac_fn_c_check_header_mongrel
"$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
12195 if test "x$ac_cv_header_jerror_h" = x
""yes; then :
12196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_compress in -ljpeg" >&5
12197 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
12198 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then :
12199 $as_echo_n "(cached) " >&6
12201 ac_check_lib_save_LIBS
=$LIBS
12202 LIBS
="-ljpeg $LIBS"
12203 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12204 /* end confdefs.h. */
12206 /* Override any GCC internal prototype to avoid an error.
12207 Use char because int might match the return type of a GCC
12208 builtin and then its argument prototype would still apply. */
12212 char jpeg_destroy_compress ();
12216 return jpeg_destroy_compress ();
12221 if ac_fn_c_try_link
"$LINENO"; then :
12222 ac_cv_lib_jpeg_jpeg_destroy_compress
=yes
12224 ac_cv_lib_jpeg_jpeg_destroy_compress
=no
12226 rm -f core conftest.err conftest.
$ac_objext \
12227 conftest
$ac_exeext conftest.
$ac_ext
12228 LIBS
=$ac_check_lib_save_LIBS
12230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
12231 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
12232 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = x
""yes; then :
12241 if test "${HAVE_JPEG}" = "yes"; then
12242 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
12244 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12245 /* end confdefs.h. */
12246 #include <jpeglib.h>
12247 version=JPEG_LIB_VERSION
12250 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12251 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev
/null
2>&1; then :
12252 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
12255 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5
12256 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
12262 if test "${HAVE_JPEG}" = "yes"; then
12268 ### Use -lpng if available, unless `--with-png=no'.
12271 if test "${HAVE_X11}" = "yes"; then
12272 if test "${with_png}" != "no"; then
12273 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
12274 # in /usr/include/libpng.
12275 for ac_header
in png.h libpng
/png.h
12277 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12278 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12279 eval as_val
=\$
$as_ac_Header
12280 if test "x$as_val" = x
""yes; then :
12281 cat >>confdefs.h
<<_ACEOF
12282 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12289 if test "$ac_cv_header_png_h" = yes ||
test "$ac_cv_header_libpng_png_h" = yes ; then
12290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_channels in -lpng" >&5
12291 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
12292 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then :
12293 $as_echo_n "(cached) " >&6
12295 ac_check_lib_save_LIBS
=$LIBS
12296 LIBS
="-lpng -lz -lm $LIBS"
12297 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12298 /* end confdefs.h. */
12300 /* Override any GCC internal prototype to avoid an error.
12301 Use char because int might match the return type of a GCC
12302 builtin and then its argument prototype would still apply. */
12306 char png_get_channels ();
12310 return png_get_channels ();
12315 if ac_fn_c_try_link
"$LINENO"; then :
12316 ac_cv_lib_png_png_get_channels
=yes
12318 ac_cv_lib_png_png_get_channels
=no
12320 rm -f core conftest.err conftest.
$ac_objext \
12321 conftest
$ac_exeext conftest.
$ac_ext
12322 LIBS
=$ac_check_lib_save_LIBS
12324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_channels" >&5
12325 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
12326 if test "x$ac_cv_lib_png_png_get_channels" = x
""yes; then :
12333 if test "${HAVE_PNG}" = "yes"; then
12335 $as_echo "#define HAVE_PNG 1" >>confdefs.h
12337 LIBPNG
="-lpng -lz -lm"
12342 ### Use -ltiff if available, unless `--with-tiff=no'.
12345 if test "${HAVE_X11}" = "yes"; then
12346 if test "${with_tiff}" != "no"; then
12347 ac_fn_c_check_header_mongrel
"$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
12348 if test "x$ac_cv_header_tiffio_h" = x
""yes; then :
12350 # At least one tiff package requires the jpeg library.
12351 if test "${HAVE_JPEG}" = yes; then tifflibs
="-ljpeg $tifflibs"; fi
12352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFGetVersion in -ltiff" >&5
12353 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
12354 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then :
12355 $as_echo_n "(cached) " >&6
12357 ac_check_lib_save_LIBS
=$LIBS
12358 LIBS
="-ltiff $tifflibs $LIBS"
12359 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12360 /* end confdefs.h. */
12362 /* Override any GCC internal prototype to avoid an error.
12363 Use char because int might match the return type of a GCC
12364 builtin and then its argument prototype would still apply. */
12368 char TIFFGetVersion ();
12372 return TIFFGetVersion ();
12377 if ac_fn_c_try_link
"$LINENO"; then :
12378 ac_cv_lib_tiff_TIFFGetVersion
=yes
12380 ac_cv_lib_tiff_TIFFGetVersion
=no
12382 rm -f core conftest.err conftest.
$ac_objext \
12383 conftest
$ac_exeext conftest.
$ac_ext
12384 LIBS
=$ac_check_lib_save_LIBS
12386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
12387 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
12388 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = x
""yes; then :
12397 if test "${HAVE_TIFF}" = "yes"; then
12399 $as_echo "#define HAVE_TIFF 1" >>confdefs.h
12406 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
12409 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
12410 ac_fn_c_check_header_mongrel
"$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
12411 if test "x$ac_cv_header_gif_lib_h" = x
""yes; then :
12412 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
12413 # Earlier versions can crash Emacs.
12414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lgif" >&5
12415 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
12416 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then :
12417 $as_echo_n "(cached) " >&6
12419 ac_check_lib_save_LIBS
=$LIBS
12421 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12422 /* end confdefs.h. */
12424 /* Override any GCC internal prototype to avoid an error.
12425 Use char because int might match the return type of a GCC
12426 builtin and then its argument prototype would still apply. */
12430 char EGifPutExtensionLast ();
12434 return EGifPutExtensionLast ();
12439 if ac_fn_c_try_link
"$LINENO"; then :
12440 ac_cv_lib_gif_EGifPutExtensionLast
=yes
12442 ac_cv_lib_gif_EGifPutExtensionLast
=no
12444 rm -f core conftest.err conftest.
$ac_objext \
12445 conftest
$ac_exeext conftest.
$ac_ext
12446 LIBS
=$ac_check_lib_save_LIBS
12448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
12449 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
12450 if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = x
""yes; then :
12460 if test "$HAVE_GIF" = yes; then
12462 elif test "$HAVE_GIF" = maybe
; then
12463 # If gif_lib.h but no libgif, try libungif.
12464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lungif" >&5
12465 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
12466 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then :
12467 $as_echo_n "(cached) " >&6
12469 ac_check_lib_save_LIBS
=$LIBS
12470 LIBS
="-lungif $LIBS"
12471 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12472 /* end confdefs.h. */
12474 /* Override any GCC internal prototype to avoid an error.
12475 Use char because int might match the return type of a GCC
12476 builtin and then its argument prototype would still apply. */
12480 char EGifPutExtensionLast ();
12484 return EGifPutExtensionLast ();
12489 if ac_fn_c_try_link
"$LINENO"; then :
12490 ac_cv_lib_ungif_EGifPutExtensionLast
=yes
12492 ac_cv_lib_ungif_EGifPutExtensionLast
=no
12494 rm -f core conftest.err conftest.
$ac_objext \
12495 conftest
$ac_exeext conftest.
$ac_ext
12496 LIBS
=$ac_check_lib_save_LIBS
12498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
12499 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
12500 if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = x
""yes; then :
12506 test "$HAVE_GIF" = yes && LIBGIF
=-lungif
12509 if test "${HAVE_GIF}" = "yes"; then
12511 $as_echo "#define HAVE_GIF 1" >>confdefs.h
12517 if test "${HAVE_X11}" = "yes"; then
12520 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
12521 MISSING
="libXpm" && WITH_NO
="--with-xpm=no"
12522 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
12523 MISSING
="$MISSING libjpeg" && WITH_NO
="$WITH_NO --with-jpeg=no"
12524 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
12525 MISSING
="$MISSING libpng" && WITH_NO
="$WITH_NO --with-png=no"
12526 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
12527 MISSING
="$MISSING libgif/libungif" && WITH_NO
="$WITH_NO --with-gif=no"
12528 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
12529 MISSING
="$MISSING libtiff" && WITH_NO
="$WITH_NO --with-tiff=no"
12531 if test "X${MISSING}" != X
; then
12532 as_fn_error
"The following required libraries were not found:
12534 Maybe some development libraries/packages are missing?
12535 If you don't want to link with them give
12537 as options to configure" "$LINENO" 5
12541 ### Use -lgpm if available, unless `--with-gpm=no'.
12545 if test "${with_gpm}" != "no"; then
12546 ac_fn_c_check_header_mongrel
"$LINENO" "gpm.h" "ac_cv_header_gpm_h" "$ac_includes_default"
12547 if test "x$ac_cv_header_gpm_h" = x
""yes; then :
12548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5
12549 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
12550 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then :
12551 $as_echo_n "(cached) " >&6
12553 ac_check_lib_save_LIBS
=$LIBS
12555 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12556 /* end confdefs.h. */
12558 /* Override any GCC internal prototype to avoid an error.
12559 Use char because int might match the return type of a GCC
12560 builtin and then its argument prototype would still apply. */
12568 return Gpm_Open ();
12573 if ac_fn_c_try_link
"$LINENO"; then :
12574 ac_cv_lib_gpm_Gpm_Open
=yes
12576 ac_cv_lib_gpm_Gpm_Open
=no
12578 rm -f core conftest.err conftest.
$ac_objext \
12579 conftest
$ac_exeext conftest.
$ac_ext
12580 LIBS
=$ac_check_lib_save_LIBS
12582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Open" >&5
12583 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
12584 if test "x$ac_cv_lib_gpm_Gpm_Open" = x
""yes; then :
12592 if test "${HAVE_GPM}" = "yes"; then
12594 $as_echo "#define HAVE_GPM 1" >>confdefs.h
12597 ## May be reset below.
12598 MOUSE_SUPPORT
="\$(GPM_MOUSE_SUPPORT)"
12603 ac_fn_c_check_header_mongrel
"$LINENO" "malloc/malloc.h" "ac_cv_header_malloc_malloc_h" "$ac_includes_default"
12604 if test "x$ac_cv_header_malloc_malloc_h" = x
""yes; then :
12606 $as_echo "#define HAVE_MALLOC_MALLOC_H 1" >>confdefs.h
12613 ### Use NeXTstep API to implement GUI.
12614 if test "${HAVE_NS}" = "yes"; then
12616 $as_echo "#define HAVE_NS 1" >>confdefs.h
12618 if test "${NS_IMPL_COCOA}" = "yes"; then
12620 $as_echo "#define NS_IMPL_COCOA 1" >>confdefs.h
12624 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
12626 $as_echo "#define NS_IMPL_GNUSTEP 1" >>confdefs.h
12628 # See also .m.o rule in Makefile.in */
12629 # FIXME: are all these flags really needed? Document here why. */
12630 C_SWITCH_X_SYSTEM
="-D_REENTRANT -fPIC -fno-strict-aliasing"
12631 GNU_OBJC_CFLAGS
="-fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE"
12633 if test "${NS_HAVE_NSINTEGER}" = "yes"; then
12635 $as_echo "#define NS_HAVE_NSINTEGER 1" >>confdefs.h
12638 # We also have mouse menus.
12644 ### Use session management (-lSM -lICE) if available
12647 if test "${HAVE_X11}" = "yes"; then
12648 ac_fn_c_check_header_mongrel
"$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
12649 if test "x$ac_cv_header_X11_SM_SMlib_h" = x
""yes; then :
12650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5
12651 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
12652 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then :
12653 $as_echo_n "(cached) " >&6
12655 ac_check_lib_save_LIBS
=$LIBS
12656 LIBS
="-lSM -lICE $LIBS"
12657 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12658 /* end confdefs.h. */
12660 /* Override any GCC internal prototype to avoid an error.
12661 Use char because int might match the return type of a GCC
12662 builtin and then its argument prototype would still apply. */
12666 char SmcOpenConnection ();
12670 return SmcOpenConnection ();
12675 if ac_fn_c_try_link
"$LINENO"; then :
12676 ac_cv_lib_SM_SmcOpenConnection
=yes
12678 ac_cv_lib_SM_SmcOpenConnection
=no
12680 rm -f core conftest.err conftest.
$ac_objext \
12681 conftest
$ac_exeext conftest.
$ac_ext
12682 LIBS
=$ac_check_lib_save_LIBS
12684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
12685 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
12686 if test "x$ac_cv_lib_SM_SmcOpenConnection" = x
""yes; then :
12694 if test "${HAVE_X_SM}" = "yes"; then
12696 $as_echo "#define HAVE_X_SM 1" >>confdefs.h
12698 LIBXSM
="-lSM -lICE"
12701 *) LIBS
="$LIBXSM $LIBS" ;;
12707 ### Use libxml (-lxml2) if available
12708 if test "${with_xml2}" != "no"; then
12709 ### I'm not sure what the version number should be, so I just guessed.
12713 # Extract the first word of "pkg-config", so it can be a program name with args.
12714 set dummy pkg-config
; ac_word
=$2
12715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12716 $as_echo_n "checking for $ac_word... " >&6; }
12717 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
12718 $as_echo_n "(cached) " >&6
12720 case $PKG_CONFIG in
12722 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
12725 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12726 for as_dir
in $PATH
12729 test -z "$as_dir" && as_dir
=.
12730 for ac_exec_ext
in '' $ac_executable_extensions; do
12731 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12732 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
12733 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12740 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
12744 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
12745 if test -n "$PKG_CONFIG"; then
12746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12747 $as_echo "$PKG_CONFIG" >&6; }
12749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12750 $as_echo "no" >&6; }
12755 if test "$PKG_CONFIG" = "no" ; then
12758 PKG_CONFIG_MIN_VERSION
=0.9.0
12759 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 > 2.6.17" >&5
12761 $as_echo_n "checking for libxml-2.0 > 2.6.17... " >&6; }
12763 if $PKG_CONFIG --exists "libxml-2.0 > 2.6.17" 2>&5; then
12764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12765 $as_echo "yes" >&6; }
12768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBXML2_CFLAGS" >&5
12769 $as_echo_n "checking LIBXML2_CFLAGS... " >&6; }
12770 LIBXML2_CFLAGS
=`$PKG_CONFIG --cflags "libxml-2.0 > 2.6.17"|sed -e 's,///*,/,g'`
12771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXML2_CFLAGS" >&5
12772 $as_echo "$LIBXML2_CFLAGS" >&6; }
12774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBXML2_LIBS" >&5
12775 $as_echo_n "checking LIBXML2_LIBS... " >&6; }
12776 LIBXML2_LIBS
=`$PKG_CONFIG --libs "libxml-2.0 > 2.6.17"|sed -e 's,///*,/,g'`
12777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXML2_LIBS" >&5
12778 $as_echo "$LIBXML2_LIBS" >&6; }
12780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12781 $as_echo "no" >&6; }
12784 ## If we have a custom action on failure, don't print errors, but
12785 ## do set a variable so people can do so.
12786 LIBXML2_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "libxml-2.0 > 2.6.17"`
12793 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12794 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12798 if test $succeeded = yes; then
12804 if test "${HAVE_LIBXML2}" = "yes"; then
12805 LIBS
="$LIBXML2_LIBS $LIBS"
12806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htmlReadMemory in -lxml2" >&5
12807 $as_echo_n "checking for htmlReadMemory in -lxml2... " >&6; }
12808 if test "${ac_cv_lib_xml2_htmlReadMemory+set}" = set; then :
12809 $as_echo_n "(cached) " >&6
12811 ac_check_lib_save_LIBS
=$LIBS
12812 LIBS
="-lxml2 $LIBS"
12813 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12814 /* end confdefs.h. */
12816 /* Override any GCC internal prototype to avoid an error.
12817 Use char because int might match the return type of a GCC
12818 builtin and then its argument prototype would still apply. */
12822 char htmlReadMemory ();
12826 return htmlReadMemory ();
12831 if ac_fn_c_try_link
"$LINENO"; then :
12832 ac_cv_lib_xml2_htmlReadMemory
=yes
12834 ac_cv_lib_xml2_htmlReadMemory
=no
12836 rm -f core conftest.err conftest.
$ac_objext \
12837 conftest
$ac_exeext conftest.
$ac_ext
12838 LIBS
=$ac_check_lib_save_LIBS
12840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_htmlReadMemory" >&5
12841 $as_echo "$ac_cv_lib_xml2_htmlReadMemory" >&6; }
12842 if test "x$ac_cv_lib_xml2_htmlReadMemory" = x
""yes; then :
12848 if test "${HAVE_LIBXML2}" = "yes"; then
12850 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
12861 # If netdb.h doesn't declare h_errno, we must declare it by hand.
12862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netdb declares h_errno" >&5
12863 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
12864 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then :
12865 $as_echo_n "(cached) " >&6
12867 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12868 /* end confdefs.h. */
12878 if ac_fn_c_try_link
"$LINENO"; then :
12879 emacs_cv_netdb_declares_h_errno
=yes
12881 emacs_cv_netdb_declares_h_errno
=no
12883 rm -f core conftest.err conftest.
$ac_objext \
12884 conftest
$ac_exeext conftest.
$ac_ext
12886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_netdb_declares_h_errno" >&5
12887 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
12888 if test $emacs_cv_netdb_declares_h_errno = yes; then
12890 $as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h
12894 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
12895 # for constant arguments. Useless!
12896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
12897 $as_echo_n "checking for working alloca.h... " >&6; }
12898 if test "${ac_cv_working_alloca_h+set}" = set; then :
12899 $as_echo_n "(cached) " >&6
12901 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12902 /* end confdefs.h. */
12903 #include <alloca.h>
12907 char *p = (char *) alloca (2 * sizeof (int));
12913 if ac_fn_c_try_link
"$LINENO"; then :
12914 ac_cv_working_alloca_h
=yes
12916 ac_cv_working_alloca_h
=no
12918 rm -f core conftest.err conftest.
$ac_objext \
12919 conftest
$ac_exeext conftest.
$ac_ext
12921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
12922 $as_echo "$ac_cv_working_alloca_h" >&6; }
12923 if test $ac_cv_working_alloca_h = yes; then
12925 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
12929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
12930 $as_echo_n "checking for alloca... " >&6; }
12931 if test "${ac_cv_func_alloca_works+set}" = set; then :
12932 $as_echo_n "(cached) " >&6
12934 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12935 /* end confdefs.h. */
12937 # define alloca __builtin_alloca
12940 # include <malloc.h>
12941 # define alloca _alloca
12943 # ifdef HAVE_ALLOCA_H
12944 # include <alloca.h>
12949 # ifndef alloca /* predefined by HP cc +Olibcalls */
12960 char *p = (char *) alloca (1);
12966 if ac_fn_c_try_link
"$LINENO"; then :
12967 ac_cv_func_alloca_works
=yes
12969 ac_cv_func_alloca_works
=no
12971 rm -f core conftest.err conftest.
$ac_objext \
12972 conftest
$ac_exeext conftest.
$ac_ext
12974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
12975 $as_echo "$ac_cv_func_alloca_works" >&6; }
12977 if test $ac_cv_func_alloca_works = yes; then
12979 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
12982 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
12983 # that cause trouble. Some versions do not even contain alloca or
12984 # contain a buggy version. If you still want to use their alloca,
12985 # use ar to extract alloca.o from them instead of compiling alloca.c.
12987 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
12989 $as_echo "#define C_ALLOCA 1" >>confdefs.h
12992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
12993 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
12994 if test "${ac_cv_os_cray+set}" = set; then :
12995 $as_echo_n "(cached) " >&6
12997 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12998 /* end confdefs.h. */
12999 #if defined CRAY && ! defined CRAY2
13006 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13007 $EGREP "webecray" >/dev
/null
2>&1; then :
13015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
13016 $as_echo "$ac_cv_os_cray" >&6; }
13017 if test $ac_cv_os_cray = yes; then
13018 for ac_func
in _getb67 GETB67 getb67
; do
13019 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13020 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
13021 eval as_val
=\$
$as_ac_var
13022 if test "x$as_val" = x
""yes; then :
13024 cat >>confdefs.h
<<_ACEOF
13025 #define CRAY_STACKSEG_END $ac_func
13034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
13035 $as_echo_n "checking stack direction for C alloca... " >&6; }
13036 if test "${ac_cv_c_stack_direction+set}" = set; then :
13037 $as_echo_n "(cached) " >&6
13039 if test "$cross_compiling" = yes; then :
13040 ac_cv_c_stack_direction
=0
13042 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13043 /* end confdefs.h. */
13044 $ac_includes_default
13046 find_stack_direction ()
13048 static char *addr = 0;
13053 return find_stack_direction ();
13056 return (&dummy > addr) ? 1 : -1;
13062 return find_stack_direction () < 0;
13065 if ac_fn_c_try_run
"$LINENO"; then :
13066 ac_cv_c_stack_direction
=1
13068 ac_cv_c_stack_direction
=-1
13070 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13071 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
13076 $as_echo "$ac_cv_c_stack_direction" >&6; }
13077 cat >>confdefs.h
<<_ACEOF
13078 #define STACK_DIRECTION $ac_cv_c_stack_direction
13085 if test x
"$ac_cv_func_alloca_works" != xyes
; then
13086 as_fn_error
"a system implementation of alloca is required " "$LINENO" 5
13089 # fmod, logb, and frexp are found in -lm on most systems.
13090 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
13091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
13092 $as_echo_n "checking for sqrt in -lm... " >&6; }
13093 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
13094 $as_echo_n "(cached) " >&6
13096 ac_check_lib_save_LIBS
=$LIBS
13098 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13099 /* end confdefs.h. */
13101 /* Override any GCC internal prototype to avoid an error.
13102 Use char because int might match the return type of a GCC
13103 builtin and then its argument prototype would still apply. */
13116 if ac_fn_c_try_link
"$LINENO"; then :
13117 ac_cv_lib_m_sqrt
=yes
13119 ac_cv_lib_m_sqrt
=no
13121 rm -f core conftest.err conftest.
$ac_objext \
13122 conftest
$ac_exeext conftest.
$ac_ext
13123 LIBS
=$ac_check_lib_save_LIBS
13125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
13126 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
13127 if test "x$ac_cv_lib_m_sqrt" = x
""yes; then :
13128 cat >>confdefs.h
<<_ACEOF
13129 #define HAVE_LIBM 1
13137 # Check for mail-locking functions in a "mail" library. Probably this should
13138 # have the same check as for liblockfile below.
13139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -lmail" >&5
13140 $as_echo_n "checking for maillock in -lmail... " >&6; }
13141 if test "${ac_cv_lib_mail_maillock+set}" = set; then :
13142 $as_echo_n "(cached) " >&6
13144 ac_check_lib_save_LIBS
=$LIBS
13145 LIBS
="-lmail $LIBS"
13146 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13147 /* end confdefs.h. */
13149 /* Override any GCC internal prototype to avoid an error.
13150 Use char because int might match the return type of a GCC
13151 builtin and then its argument prototype would still apply. */
13159 return maillock ();
13164 if ac_fn_c_try_link
"$LINENO"; then :
13165 ac_cv_lib_mail_maillock
=yes
13167 ac_cv_lib_mail_maillock
=no
13169 rm -f core conftest.err conftest.
$ac_objext \
13170 conftest
$ac_exeext conftest.
$ac_ext
13171 LIBS
=$ac_check_lib_save_LIBS
13173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mail_maillock" >&5
13174 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
13175 if test "x$ac_cv_lib_mail_maillock" = x
""yes; then :
13181 if test $have_mail = yes; then
13183 LIBS
="$LIBS_MAIL $LIBS"
13185 $as_echo "#define HAVE_LIBMAIL 1" >>confdefs.h
13190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -llockfile" >&5
13191 $as_echo_n "checking for maillock in -llockfile... " >&6; }
13192 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then :
13193 $as_echo_n "(cached) " >&6
13195 ac_check_lib_save_LIBS
=$LIBS
13196 LIBS
="-llockfile $LIBS"
13197 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13198 /* end confdefs.h. */
13200 /* Override any GCC internal prototype to avoid an error.
13201 Use char because int might match the return type of a GCC
13202 builtin and then its argument prototype would still apply. */
13210 return maillock ();
13215 if ac_fn_c_try_link
"$LINENO"; then :
13216 ac_cv_lib_lockfile_maillock
=yes
13218 ac_cv_lib_lockfile_maillock
=no
13220 rm -f core conftest.err conftest.
$ac_objext \
13221 conftest
$ac_exeext conftest.
$ac_ext
13222 LIBS
=$ac_check_lib_save_LIBS
13224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lockfile_maillock" >&5
13225 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
13226 if test "x$ac_cv_lib_lockfile_maillock" = x
""yes; then :
13232 if test $have_lockfile = yes; then
13233 LIBS_MAIL
=-llockfile
13234 LIBS
="$LIBS_MAIL $LIBS"
13236 $as_echo "#define HAVE_LIBLOCKFILE 1" >>confdefs.h
13239 # If we have the shared liblockfile, assume we must use it for mail
13240 # locking (e.g. Debian). If we couldn't link against liblockfile
13241 # (no liblockfile.a installed), ensure that we don't need to.
13242 # Extract the first word of "liblockfile.so", so it can be a program name with args.
13243 set dummy liblockfile.so
; ac_word
=$2
13244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13245 $as_echo_n "checking for $ac_word... " >&6; }
13246 if test "${ac_cv_prog_liblockfile+set}" = set; then :
13247 $as_echo_n "(cached) " >&6
13249 if test -n "$liblockfile"; then
13250 ac_cv_prog_liblockfile
="$liblockfile" # Let the user override the test.
13252 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13253 as_dummy
="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
13254 for as_dir
in $as_dummy
13257 test -z "$as_dir" && as_dir
=.
13258 for ac_exec_ext
in '' $ac_executable_extensions; do
13259 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13260 ac_cv_prog_liblockfile
="yes"
13261 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13268 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile
="no"
13271 liblockfile
=$ac_cv_prog_liblockfile
13272 if test -n "$liblockfile"; then
13273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblockfile" >&5
13274 $as_echo "$liblockfile" >&6; }
13276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13277 $as_echo "no" >&6; }
13281 if test $ac_cv_prog_liblockfile = yes; then
13282 as_fn_error
"Shared liblockfile found but can't link against it.
13283 This probably means that movemail could lose mail.
13284 There may be a \`development' package to install containing liblockfile." "$LINENO" 5
13287 for ac_func
in touchlock
13289 ac_fn_c_check_func
"$LINENO" "touchlock" "ac_cv_func_touchlock"
13290 if test "x$ac_cv_func_touchlock" = x
""yes; then :
13291 cat >>confdefs.h
<<_ACEOF
13292 #define HAVE_TOUCHLOCK 1
13298 for ac_header
in maillock.h
13300 ac_fn_c_check_header_mongrel
"$LINENO" "maillock.h" "ac_cv_header_maillock_h" "$ac_includes_default"
13301 if test "x$ac_cv_header_maillock_h" = x
""yes; then :
13302 cat >>confdefs.h
<<_ACEOF
13303 #define HAVE_MAILLOCK_H 1
13312 ## Define MAIL_USE_FLOCK (or LOCKF) if the mailer uses flock (or lockf) to
13313 ## interlock access to the mail spool. The alternative is a lock file named
13314 ## /usr/spool/mail/$USER.lock.
13317 aix4-2
) mail_lock
="lockf" ;;
13319 gnu|freebsd|netbsd|openbsd|darwin|irix6-5
) mail_lock
="flock" ;;
13321 ## On GNU/Linux systems, both methods are used by various mail programs.
13322 ## I assume most people are using newer mailers that have heard of flock.
13323 ## Change this if you need to.
13324 ## Debian contains a patch which says: ``On Debian/GNU/Linux systems,
13325 ## configure gets the right answers, and that means *NOT* using flock.
13326 ## Using flock is guaranteed to be the wrong thing. See Debian Policy
13327 ## for details.'' and then uses `#ifdef DEBIAN'. Unfortunately the
13328 ## Debian maintainer hasn't provided a clean fix for Emacs.
13329 ## movemail.c will use `maillock' when MAILDIR, HAVE_LIBMAIL and
13330 ## HAVE_MAILLOCK_H are defined, so the following appears to be the
13331 ## correct logic. -- fx
13332 ## We must check for HAVE_LIBLOCKFILE too, as movemail does.
13333 ## liblockfile is a Free Software replacement for libmail, used on
13334 ## Debian systems and elsewhere. -rfr.
13337 if test $have_mail = yes ||
test $have_lockfile = yes; then
13338 test $ac_cv_header_maillock_h = yes && mail_lock
=no
13344 case "$mail_lock" in
13346 $as_echo "#define MAIL_USE_FLOCK 1" >>confdefs.h
13350 $as_echo "#define MAIL_USE_LOCKF 1" >>confdefs.h
13353 *) BLESSMAIL_TARGET
="need-blessmail" ;;
13358 for ac_func
in gethostname getdomainname dup2 \
13359 rename closedir mkdir
rmdir sysinfo getrusage get_current_dir_name \
13360 random lrand48 logb frexp fmod rint cbrt ftime setsid \
13361 strerror fpathconf
select euidaccess getpagesize tzset setlocale \
13362 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
13363 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm strchr strrchr \
13364 sendto recvfrom getsockopt setsockopt getsockname getpeername \
13365 gai_strerror mkstemp getline getdelim mremap memmove fsync sync \
13366 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \
13367 cfmakeraw cfsetspeed isnan copysign __executable_start
13369 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13370 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
13371 eval as_val
=\$
$as_ac_var
13372 if test "x$as_val" = x
""yes; then :
13373 cat >>confdefs.h
<<_ACEOF
13374 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_unwind_init" >&5
13382 $as_echo_n "checking for __builtin_unwind_init... " >&6; }
13383 if test "${emacs_cv_func___builtin_unwind_init+set}" = set; then :
13384 $as_echo_n "(cached) " >&6
13386 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13387 /* end confdefs.h. */
13392 __builtin_unwind_init ();
13397 if ac_fn_c_try_link
"$LINENO"; then :
13398 emacs_cv_func___builtin_unwind_init
=yes
13400 emacs_cv_func___builtin_unwind_init
=no
13402 rm -f core conftest.err conftest.
$ac_objext \
13403 conftest
$ac_exeext conftest.
$ac_ext
13405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func___builtin_unwind_init" >&5
13406 $as_echo "$emacs_cv_func___builtin_unwind_init" >&6; }
13407 if test $emacs_cv_func___builtin_unwind_init = yes; then
13409 $as_echo "#define HAVE___BUILTIN_UNWIND_INIT 1" >>confdefs.h
13413 for ac_header
in sys
/un.h
13415 ac_fn_c_check_header_mongrel
"$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default"
13416 if test "x$ac_cv_header_sys_un_h" = x
""yes; then :
13417 cat >>confdefs.h
<<_ACEOF
13418 #define HAVE_SYS_UN_H 1
13426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
13427 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
13428 if test "${ac_cv_sys_largefile_source+set}" = set; then :
13429 $as_echo_n "(cached) " >&6
13432 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13433 /* end confdefs.h. */
13434 #include <sys/types.h> /* for off_t */
13439 int (*fp) (FILE *, off_t, int) = fseeko;
13440 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13445 if ac_fn_c_try_link
"$LINENO"; then :
13446 ac_cv_sys_largefile_source
=no
; break
13448 rm -f core conftest.err conftest.
$ac_objext \
13449 conftest
$ac_exeext conftest.
$ac_ext
13450 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13451 /* end confdefs.h. */
13452 #define _LARGEFILE_SOURCE 1
13453 #include <sys/types.h> /* for off_t */
13458 int (*fp) (FILE *, off_t, int) = fseeko;
13459 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13464 if ac_fn_c_try_link
"$LINENO"; then :
13465 ac_cv_sys_largefile_source
=1; break
13467 rm -f core conftest.err conftest.
$ac_objext \
13468 conftest
$ac_exeext conftest.
$ac_ext
13469 ac_cv_sys_largefile_source
=unknown
13473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
13474 $as_echo "$ac_cv_sys_largefile_source" >&6; }
13475 case $ac_cv_sys_largefile_source in #(
13478 cat >>confdefs.h
<<_ACEOF
13479 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
13485 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
13486 # in glibc 2.1.3, but that breaks too many other things.
13487 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
13488 if test $ac_cv_sys_largefile_source != unknown
; then
13490 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
13495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5
13496 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
13497 if test "${ac_cv_func_getpgrp_void+set}" = set; then :
13498 $as_echo_n "(cached) " >&6
13500 # Use it with a single arg.
13501 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13502 /* end confdefs.h. */
13503 $ac_includes_default
13512 if ac_fn_c_try_compile
"$LINENO"; then :
13513 ac_cv_func_getpgrp_void
=no
13515 ac_cv_func_getpgrp_void
=yes
13517 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5
13521 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
13522 if test $ac_cv_func_getpgrp_void = yes; then
13524 $as_echo "#define GETPGRP_VOID 1" >>confdefs.h
13529 # Configure gnulib.
13540 LIBC_FATAL_STDERR_
=1
13541 export LIBC_FATAL_STDERR_
13544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
13545 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
13546 if test "${ac_cv_c_bigendian+set}" = set; then :
13547 $as_echo_n "(cached) " >&6
13549 ac_cv_c_bigendian
=unknown
13550 # See if we're dealing with a universal compiler.
13551 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13552 /* end confdefs.h. */
13553 #ifndef __APPLE_CC__
13554 not a universal capable compiler
13559 if ac_fn_c_try_compile
"$LINENO"; then :
13561 # Check for potential -arch flags. It is not universal unless
13562 # there are at least two -arch flags with different values.
13565 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
13566 if test -n "$ac_prev"; then
13568 i?
86 | x86_64 | ppc | ppc64
)
13569 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
13572 ac_cv_c_bigendian
=universal
13578 elif test "x$ac_word" = "x-arch"; then
13583 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13584 if test $ac_cv_c_bigendian = unknown
; then
13585 # See if sys/param.h defines the BYTE_ORDER macro.
13586 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13587 /* end confdefs.h. */
13588 #include <sys/types.h>
13589 #include <sys/param.h>
13594 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
13595 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
13597 bogus endian macros
13604 if ac_fn_c_try_compile
"$LINENO"; then :
13605 # It does; now see whether it defined to BIG_ENDIAN or not.
13606 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13607 /* end confdefs.h. */
13608 #include <sys/types.h>
13609 #include <sys/param.h>
13614 #if BYTE_ORDER != BIG_ENDIAN
13622 if ac_fn_c_try_compile
"$LINENO"; then :
13623 ac_cv_c_bigendian
=yes
13625 ac_cv_c_bigendian
=no
13627 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13629 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13631 if test $ac_cv_c_bigendian = unknown
; then
13632 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
13633 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13634 /* end confdefs.h. */
13635 #include <limits.h>
13640 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
13641 bogus endian macros
13648 if ac_fn_c_try_compile
"$LINENO"; then :
13649 # It does; now see whether it defined to _BIG_ENDIAN or not.
13650 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13651 /* end confdefs.h. */
13652 #include <limits.h>
13657 #ifndef _BIG_ENDIAN
13665 if ac_fn_c_try_compile
"$LINENO"; then :
13666 ac_cv_c_bigendian
=yes
13668 ac_cv_c_bigendian
=no
13670 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13672 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13674 if test $ac_cv_c_bigendian = unknown
; then
13675 # Compile a test program.
13676 if test "$cross_compiling" = yes; then :
13677 # Try to guess by grepping values from an object file.
13678 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13679 /* end confdefs.h. */
13680 short int ascii_mm[] =
13681 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
13682 short int ascii_ii[] =
13683 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
13684 int use_ascii (int i) {
13685 return ascii_mm[i] + ascii_ii[i];
13687 short int ebcdic_ii[] =
13688 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
13689 short int ebcdic_mm[] =
13690 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
13691 int use_ebcdic (int i) {
13692 return ebcdic_mm[i] + ebcdic_ii[i];
13699 return use_ascii (foo) == use_ebcdic (foo);
13704 if ac_fn_c_try_compile
"$LINENO"; then :
13705 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
13706 ac_cv_c_bigendian
=yes
13708 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
13709 if test "$ac_cv_c_bigendian" = unknown
; then
13710 ac_cv_c_bigendian
=no
13712 # finding both strings is unlikely to happen, but who knows?
13713 ac_cv_c_bigendian
=unknown
13717 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13719 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13720 /* end confdefs.h. */
13721 $ac_includes_default
13726 /* Are we little or big endian? From Harbison&Steele. */
13730 char c[sizeof (long int)];
13733 return u.c[sizeof (long int) - 1] == 1;
13739 if ac_fn_c_try_run
"$LINENO"; then :
13740 ac_cv_c_bigendian
=no
13742 ac_cv_c_bigendian
=yes
13744 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13745 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
13751 $as_echo "$ac_cv_c_bigendian" >&6; }
13752 case $ac_cv_c_bigendian in #(
13754 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
13760 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
13764 as_fn_error
"unknown endianness
13765 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
13769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
13770 $as_echo_n "checking for inline... " >&6; }
13771 if test "${ac_cv_c_inline+set}" = set; then :
13772 $as_echo_n "(cached) " >&6
13775 for ac_kw
in inline __inline__ __inline
; do
13776 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13777 /* end confdefs.h. */
13778 #ifndef __cplusplus
13780 static $ac_kw foo_t static_foo () {return 0; }
13781 $ac_kw foo_t foo () {return 0; }
13785 if ac_fn_c_try_compile
"$LINENO"; then :
13786 ac_cv_c_inline
=$ac_kw
13788 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13789 test "$ac_cv_c_inline" != no
&& break
13793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
13794 $as_echo "$ac_cv_c_inline" >&6; }
13796 case $ac_cv_c_inline in
13799 case $ac_cv_c_inline in
13801 *) ac_val
=$ac_cv_c_inline;;
13803 cat >>confdefs.h
<<_ACEOF
13804 #ifndef __cplusplus
13805 #define inline $ac_val
13812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtold conforms to C99" >&5
13813 $as_echo_n "checking whether strtold conforms to C99... " >&6; }
13814 if test "${gl_cv_func_c99_strtold+set}" = set; then :
13815 $as_echo_n "(cached) " >&6
13817 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13818 /* end confdefs.h. */
13819 /* On HP-UX before 11.23, strtold returns a struct instead of
13820 long double. Reject implementations like that, by requiring
13821 compatibility with the C99 prototype. */
13822 #include <stdlib.h>
13823 static long double (*p) (char const *, char **) = strtold;
13825 test (char const *nptr, char **endptr)
13828 r = strtold (nptr, endptr);
13834 return test ("1.0", NULL) != 1 || p ("1.0", NULL) != 1;
13839 if ac_fn_c_try_link
"$LINENO"; then :
13840 gl_cv_func_c99_strtold
=yes
13842 gl_cv_func_c99_strtold
=no
13844 rm -f core conftest.err conftest.
$ac_objext \
13845 conftest
$ac_exeext conftest.
$ac_ext
13847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_c99_strtold" >&5
13848 $as_echo "$gl_cv_func_c99_strtold" >&6; }
13849 if test $gl_cv_func_c99_strtold = yes; then
13851 $as_echo "#define HAVE_C99_STRTOLD 1" >>confdefs.h
13855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_dm_mode in struct stat" >&5
13856 $as_echo_n "checking for st_dm_mode in struct stat... " >&6; }
13857 if test "${ac_cv_struct_st_dm_mode+set}" = set; then :
13858 $as_echo_n "(cached) " >&6
13860 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13861 /* end confdefs.h. */
13863 #include <sys/types.h>
13864 #include <sys/stat.h>
13868 struct stat s; s.st_dm_mode;
13873 if ac_fn_c_try_compile
"$LINENO"; then :
13874 ac_cv_struct_st_dm_mode
=yes
13876 ac_cv_struct_st_dm_mode
=no
13878 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_st_dm_mode" >&5
13881 $as_echo "$ac_cv_struct_st_dm_mode" >&6; }
13883 if test $ac_cv_struct_st_dm_mode = yes; then
13885 $as_echo "#define HAVE_ST_DM_MODE 1" >>confdefs.h
13890 ac_fn_c_check_decl
"$LINENO" "strmode" "ac_cv_have_decl_strmode" "$ac_includes_default"
13891 if test "x$ac_cv_have_decl_strmode" = x
""yes; then :
13897 cat >>confdefs.h
<<_ACEOF
13898 #define HAVE_DECL_STRMODE $ac_have_decl
13904 GNULIB_CALLOC_POSIX
=0;
13905 GNULIB_CANONICALIZE_FILE_NAME
=0;
13906 GNULIB_GETLOADAVG
=0;
13907 GNULIB_GETSUBOPT
=0;
13909 GNULIB_MALLOC_POSIX
=0;
13913 GNULIB_MKOSTEMPS
=0;
13919 GNULIB_REALLOC_POSIX
=0;
13926 GNULIB_SYSTEM_POSIX
=0;
13932 HAVE_CANONICALIZE_FILE_NAME
=1;
13933 HAVE_DECL_GETLOADAVG
=1;
13947 HAVE_DECL_SETENV
=1;
13951 HAVE_STRUCT_RANDOM_DATA
=1;
13952 HAVE_SYS_LOADAVG_H
=0;
13954 HAVE_DECL_UNSETENV
=1;
13956 REPLACE_CANONICALIZE_FILE_NAME
=0;
13962 REPLACE_REALPATH
=0;
13965 REPLACE_UNSETENV
=0;
13974 GNULIB_EUIDACCESS
=0;
13975 GNULIB_FACCESSAT
=0;
13979 GNULIB_FTRUNCATE
=0;
13981 GNULIB_GETDOMAINNAME
=0;
13982 GNULIB_GETDTABLESIZE
=0;
13983 GNULIB_GETGROUPS
=0;
13984 GNULIB_GETHOSTNAME
=0;
13986 GNULIB_GETLOGIN_R
=0;
13987 GNULIB_GETPAGESIZE
=0;
13988 GNULIB_GETUSERSHELL
=0;
13998 GNULIB_READLINKAT
=0;
14002 GNULIB_SYMLINKAT
=0;
14003 GNULIB_TTYNAME_R
=0;
14004 GNULIB_UNISTD_H_GETOPT
=0;
14005 GNULIB_UNISTD_H_SIGPIPE
=0;
14019 HAVE_GETDTABLESIZE
=1;
14021 HAVE_GETHOSTNAME
=1;
14023 HAVE_GETPAGESIZE
=1;
14038 HAVE_DECL_ENVIRON
=1;
14039 HAVE_DECL_FCHDIR
=1;
14040 HAVE_DECL_GETDOMAINNAME
=1;
14041 HAVE_DECL_GETLOGIN_R
=1;
14042 HAVE_DECL_GETPAGESIZE
=1;
14043 HAVE_DECL_GETUSERSHELL
=1;
14044 HAVE_DECL_TTYNAME_R
=1;
14046 HAVE_SYS_PARAM_H
=0;
14051 REPLACE_FCHOWNAT
=0;
14053 REPLACE_GETDOMAINNAME
=0;
14054 REPLACE_GETLOGIN_R
=0;
14055 REPLACE_GETGROUPS
=0;
14056 REPLACE_GETPAGESIZE
=0;
14063 REPLACE_READLINK
=0;
14067 REPLACE_TTYNAME_R
=0;
14069 REPLACE_UNLINKAT
=0;
14072 UNISTD_H_HAVE_WINSOCK2_H
=0;
14073 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
=0;
14078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
14079 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
14080 if test "${gl_cv_have_include_next+set}" = set; then :
14081 $as_echo_n "(cached) " >&6
14083 rm -rf conftestd1a conftestd1b conftestd2
14084 mkdir conftestd1a conftestd1b conftestd2
14085 cat <<EOF > conftestd1a/conftest.h
14086 #define DEFINED_IN_CONFTESTD1
14087 #include_next <conftest.h>
14088 #ifdef DEFINED_IN_CONFTESTD2
14091 #error "include_next doesn't work"
14094 cat <<EOF > conftestd1b/conftest.h
14095 #define DEFINED_IN_CONFTESTD1
14097 #include_next <conftest.h>
14098 #ifdef DEFINED_IN_CONFTESTD2
14101 #error "include_next doesn't work"
14104 cat <<EOF > conftestd2/conftest.h
14105 #ifndef DEFINED_IN_CONFTESTD1
14106 #error "include_next test doesn't work"
14108 #define DEFINED_IN_CONFTESTD2
14110 gl_save_CPPFLAGS
="$CPPFLAGS"
14111 CPPFLAGS
="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
14112 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14113 /* end confdefs.h. */
14114 #include <conftest.h>
14116 if ac_fn_c_try_compile
"$LINENO"; then :
14117 gl_cv_have_include_next
=yes
14119 CPPFLAGS
="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
14120 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14121 /* end confdefs.h. */
14122 #include <conftest.h>
14124 if ac_fn_c_try_compile
"$LINENO"; then :
14125 gl_cv_have_include_next
=buggy
14127 gl_cv_have_include_next
=no
14129 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14132 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14133 CPPFLAGS
="$gl_save_CPPFLAGS"
14134 rm -rf conftestd1a conftestd1b conftestd2
14137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
14138 $as_echo "$gl_cv_have_include_next" >&6; }
14139 PRAGMA_SYSTEM_HEADER
=
14140 if test $gl_cv_have_include_next = yes; then
14141 INCLUDE_NEXT
=include_next
14142 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include_next
14143 if test -n "$GCC"; then
14144 PRAGMA_SYSTEM_HEADER
='#pragma GCC system_header'
14147 if test $gl_cv_have_include_next = buggy
; then
14148 INCLUDE_NEXT
=include
14149 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include_next
14151 INCLUDE_NEXT
=include
14152 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include
14158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
14159 $as_echo_n "checking whether system header files limit the line length... " >&6; }
14160 if test "${gl_cv_pragma_columns+set}" = set; then :
14161 $as_echo_n "(cached) " >&6
14163 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14164 /* end confdefs.h. */
14171 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14172 $EGREP "choke me" >/dev
/null
2>&1; then :
14173 gl_cv_pragma_columns
=yes
14175 gl_cv_pragma_columns
=no
14181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
14182 $as_echo "$gl_cv_pragma_columns" >&6; }
14183 if test $gl_cv_pragma_columns = yes; then
14184 PRAGMA_COLUMNS
="#pragma COLUMNS 10000"
14205 if test $gl_cv_have_include_next = yes; then
14206 gl_cv_next_getopt_h
='<'getopt.h
'>'
14208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <getopt.h>" >&5
14209 $as_echo_n "checking absolute name of <getopt.h>... " >&6; }
14210 if test "${gl_cv_next_getopt_h+set}" = set; then :
14211 $as_echo_n "(cached) " >&6
14214 if test $ac_cv_header_getopt_h = yes; then
14217 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14218 /* end confdefs.h. */
14219 #include <getopt.h>
14223 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
14224 *) gl_absname_cpp
="$ac_cpp" ;;
14226 gl_cv_next_getopt_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
14227 sed -n '\#/getopt.h#{
14228 s#.*"\(.*/getopt.h\)".*#\1#
14234 gl_cv_next_getopt_h
='<'getopt.h
'>'
14239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_getopt_h" >&5
14240 $as_echo "$gl_cv_next_getopt_h" >&6; }
14242 NEXT_GETOPT_H
=$gl_cv_next_getopt_h
14244 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
14245 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
14246 gl_next_as_first_directive
='<'getopt.h
'>'
14248 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
14249 gl_next_as_first_directive
=$gl_cv_next_getopt_h
14251 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
=$gl_next_as_first_directive
14256 if test $ac_cv_header_getopt_h = yes; then
14265 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU
; then
14266 for ac_header
in getopt.h
14268 ac_fn_c_check_header_mongrel
"$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
14269 if test "x$ac_cv_header_getopt_h" = x
""yes; then :
14270 cat >>confdefs.h
<<_ACEOF
14271 #define HAVE_GETOPT_H 1
14275 gl_replace_getopt
=yes
14282 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU
; then
14283 for ac_func
in getopt_long_only
14285 ac_fn_c_check_func
"$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
14286 if test "x$ac_cv_func_getopt_long_only" = x
""yes; then :
14287 cat >>confdefs.h
<<_ACEOF
14288 #define HAVE_GETOPT_LONG_ONLY 1
14292 gl_replace_getopt
=yes
14298 if test -z "$gl_replace_getopt"; then
14299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt is POSIX compatible" >&5
14300 $as_echo_n "checking whether getopt is POSIX compatible... " >&6; }
14301 if test "${gl_cv_func_getopt_posix+set}" = set; then :
14302 $as_echo_n "(cached) " >&6
14305 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14306 /* end confdefs.h. */
14307 #include <unistd.h>
14311 int *p = &optreset; return optreset;
14316 if ac_fn_c_try_compile
"$LINENO"; then :
14319 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14320 /* end confdefs.h. */
14321 #include <getopt.h>
14325 return !getopt_clip;
14330 if ac_fn_c_try_compile
"$LINENO"; then :
14335 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14337 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14339 gl_save_CPPFLAGS
=$CPPFLAGS
14340 CPPFLAGS
="$CPPFLAGS -DOPTIND_MIN=$gl_optind_min"
14341 if test "$cross_compiling" = yes; then :
14343 mingw
*) gl_cv_func_getopt_posix
="guessing no";;
14344 darwin
* | aix
*) gl_cv_func_getopt_posix
="guessing no";;
14345 *) gl_cv_func_getopt_posix
="guessing yes";;
14349 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14350 /* end confdefs.h. */
14352 #include <unistd.h>
14353 #include <stdlib.h>
14354 #include <string.h>
14364 argv[argc++] = "program";
14365 argv[argc++] = "-a";
14366 argv[argc++] = "foo";
14367 argv[argc++] = "bar";
14369 optind = OPTIND_MIN;
14372 c = getopt (argc, argv, "ab");
14375 c = getopt (argc, argv, "ab");
14378 if (!(optind == 2))
14381 /* Some internal state exists at this point. */
14387 argv[argc++] = "program";
14388 argv[argc++] = "donald";
14389 argv[argc++] = "-p";
14390 argv[argc++] = "billy";
14391 argv[argc++] = "duck";
14392 argv[argc++] = "-a";
14393 argv[argc++] = "bar";
14395 optind = OPTIND_MIN;
14398 c = getopt (argc, argv, "+abp:q:");
14401 if (!(strcmp (argv[0], "program") == 0))
14403 if (!(strcmp (argv[1], "donald") == 0))
14405 if (!(strcmp (argv[2], "-p") == 0))
14407 if (!(strcmp (argv[3], "billy") == 0))
14409 if (!(strcmp (argv[4], "duck") == 0))
14411 if (!(strcmp (argv[5], "-a") == 0))
14413 if (!(strcmp (argv[6], "bar") == 0))
14415 if (!(optind == 1))
14418 /* Detect MacOS 10.5, AIX 7.1 bug. */
14420 char *argv[3] = { "program", "-ab", NULL };
14421 optind = OPTIND_MIN;
14423 if (getopt (2, argv, "ab:") != 'a')
14425 if (getopt (2, argv, "ab:") != '?')
14437 if ac_fn_c_try_run
"$LINENO"; then :
14438 gl_cv_func_getopt_posix
=yes
14440 gl_cv_func_getopt_posix
=no
14442 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14443 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14446 CPPFLAGS
=$gl_save_CPPFLAGS
14449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_posix" >&5
14450 $as_echo "$gl_cv_func_getopt_posix" >&6; }
14451 case "$gl_cv_func_getopt_posix" in
14452 *no
) gl_replace_getopt
=yes ;;
14456 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU
; then
14457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
14458 $as_echo_n "checking for working GNU getopt function... " >&6; }
14459 if test "${gl_cv_func_getopt_gnu+set}" = set; then :
14460 $as_echo_n "(cached) " >&6
14462 # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the
14463 # optstring is necessary for programs like m4 that have POSIX-mandated
14464 # semantics for supporting options interspersed with files.
14465 # Also, since getopt_long is a GNU extension, we require optind=0.
14466 # Bash ties 'set -o posix' to a non-exported POSIXLY_CORRECT;
14467 # so take care to revert to the correct (non-)export state.
14468 gl_awk_probe
='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }'
14469 case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" </dev/null` in
14470 xx
) gl_had_POSIXLY_CORRECT
=exported
;;
14471 x
) gl_had_POSIXLY_CORRECT
=yes ;;
14472 *) gl_had_POSIXLY_CORRECT
= ;;
14475 export POSIXLY_CORRECT
14476 if test "$cross_compiling" = yes; then :
14477 case $host_os:$ac_cv_have_decl_optreset in
14478 *-gnu*:* | mingw
*:*) gl_cv_func_getopt_gnu
=no
;;
14479 *:yes) gl_cv_func_getopt_gnu
=no
;;
14480 *) gl_cv_func_getopt_gnu
=yes;;
14484 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14485 /* end confdefs.h. */
14486 #include <getopt.h>
14487 #include <stddef.h>
14488 #include <string.h>
14495 /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
14496 and fails on MacOS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
14497 OSF/1 5.1, Solaris 10. */
14500 myargv[0] = "conftest";
14504 if (getopt (2, myargv, "+a") != '?')
14507 /* This code succeeds on glibc 2.8, mingw,
14508 and fails on MacOS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
14509 IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x. */
14511 char *argv[] = { "program", "-p", "foo", "bar", NULL };
14514 if (getopt (4, argv, "p::") != 'p')
14516 else if (optarg != NULL)
14518 else if (getopt (4, argv, "p::") != -1)
14520 else if (optind != 2)
14523 /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0. */
14525 char *argv[] = { "program", "foo", "-p", NULL };
14527 if (getopt (3, argv, "-p") != 1)
14529 else if (getopt (3, argv, "-p") != 'p')
14532 /* This code fails on glibc 2.11. */
14534 char *argv[] = { "program", "-b", "-a", NULL };
14535 optind = opterr = 0;
14536 if (getopt (3, argv, "+:a:b") != 'b')
14538 else if (getopt (3, argv, "+:a:b") != ':')
14547 if ac_fn_c_try_run
"$LINENO"; then :
14548 gl_cv_func_getopt_gnu
=yes
14550 gl_cv_func_getopt_gnu
=no
14552 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14553 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14556 case $gl_had_POSIXLY_CORRECT in
14558 yes) { POSIXLY_CORRECT
=; unset POSIXLY_CORRECT
;}; POSIXLY_CORRECT
=1 ;;
14559 *) { POSIXLY_CORRECT
=; unset POSIXLY_CORRECT
;} ;;
14563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_gnu" >&5
14564 $as_echo "$gl_cv_func_getopt_gnu" >&6; }
14565 if test "$gl_cv_func_getopt_gnu" = "no"; then
14566 gl_replace_getopt
=yes
14570 ac_fn_c_check_decl
"$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
14571 if test "x$ac_cv_have_decl_getenv" = x
""yes; then :
14577 cat >>confdefs.h
<<_ACEOF
14578 #define HAVE_DECL_GETENV $ac_have_decl
14586 if test -n "$gl_replace_getopt"; then :
14592 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
14596 GNULIB_UNISTD_H_GETOPT
=1
14605 gl_LIBOBJS
="$gl_LIBOBJS getopt.$ac_objext"
14615 gl_LIBOBJS
="$gl_LIBOBJS getopt1.$ac_objext"
14637 GNULIB_UTIMENSAT
=0;
14651 REPLACE_FUTIMENS
=0;
14657 REPLACE_UTIMENSAT
=0;
14662 for ac_func
in $ac_func_list
14664 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14665 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
14666 eval as_val
=\$
$as_ac_var
14667 if test "x$as_val" = x
""yes; then :
14668 cat >>confdefs.h
<<_ACEOF
14669 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
14679 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
14680 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
14681 $as_echo_n "(cached) " >&6
14683 rm -f conftest.sym conftest.
file
14684 echo >conftest.
file
14685 if test "$as_ln_s" = "ln -s" && ln -s conftest.
file conftest.sym
; then
14686 if test "$cross_compiling" = yes; then :
14687 # When cross-compiling, be pessimistic so we will end up using the
14688 # replacement version of lstat that checks for trailing slashes and
14689 # calls lstat a second time when necessary.
14690 ac_cv_func_lstat_dereferences_slashed_symlink
=no
14693 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14694 /* end confdefs.h. */
14695 $ac_includes_default
14700 /* Linux will dereference the symlink and fail, as required by
14701 POSIX. That is better in the sense that it means we will not
14702 have to compile and use the lstat wrapper. */
14703 return lstat ("conftest.sym/", &sbuf) == 0;
14709 if ac_fn_c_try_run
"$LINENO"; then :
14710 ac_cv_func_lstat_dereferences_slashed_symlink
=yes
14712 ac_cv_func_lstat_dereferences_slashed_symlink
=no
14714 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14715 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14719 # If the 'ln -s' command failed, then we probably don't even
14720 # have an lstat function.
14721 ac_cv_func_lstat_dereferences_slashed_symlink
=no
14723 rm -f conftest.sym conftest.
file
14726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
14727 $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
14728 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
14730 cat >>confdefs.h
<<_ACEOF
14731 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
14734 if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno
; then
14743 gl_LIBOBJS
="$gl_LIBOBJS lstat.$ac_objext"
14749 GNULIB_NANOSLEEP
=0;
14753 HAVE_DECL_LOCALTIME_R
=1;
14757 REPLACE_LOCALTIME_R
=GNULIB_PORTCHECK
;
14758 REPLACE_MKTIME
=GNULIB_PORTCHECK
;
14759 REPLACE_NANOSLEEP
=GNULIB_PORTCHECK
;
14760 REPLACE_TIMEGM
=GNULIB_PORTCHECK
;
14765 gl_cv_c_multiarch
=no
14766 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14767 /* end confdefs.h. */
14768 #ifndef __APPLE_CC__
14769 not a universal capable compiler
14774 if ac_fn_c_try_compile
"$LINENO"; then :
14778 for word
in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
14779 if test -n "$prev"; then
14781 i?
86 | x86_64 | ppc | ppc64
)
14782 if test -z "$arch" ||
test "$arch" = "$word"; then
14785 gl_cv_c_multiarch
=yes
14791 if test "x$word" = "x-arch"; then
14798 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14799 if test $gl_cv_c_multiarch = yes; then
14800 APPLE_UNIVERSAL_BUILD
=1
14802 APPLE_UNIVERSAL_BUILD
=0
14811 if test $ac_cv_header_sys_socket_h = no
; then
14812 for ac_header
in ws2tcpip.h
14814 ac_fn_c_check_header_mongrel
"$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
14815 if test "x$ac_cv_header_ws2tcpip_h" = x
""yes; then :
14816 cat >>confdefs.h
<<_ACEOF
14817 #define HAVE_WS2TCPIP_H 1
14826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
14827 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
14828 if test "${ac_cv_header_stdbool_h+set}" = set; then :
14829 $as_echo_n "(cached) " >&6
14831 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14832 /* end confdefs.h. */
14834 #include <stdbool.h>
14836 "error: bool is not defined"
14839 "error: false is not defined"
14842 "error: false is not 0"
14845 "error: true is not defined"
14848 "error: true is not 1"
14850 #ifndef __bool_true_false_are_defined
14851 "error: __bool_true_false_are_defined is not defined"
14854 struct s { _Bool s: 1; _Bool t; } s;
14856 char a[true == 1 ? 1 : -1];
14857 char b[false == 0 ? 1 : -1];
14858 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
14859 char d[(bool) 0.5 == true ? 1 : -1];
14860 /* See body of main program for 'e'. */
14861 char f[(_Bool) 0.0 == false ? 1 : -1];
14863 char h[sizeof (_Bool)];
14864 char i[sizeof s.t];
14865 enum { j = false, k = true, l = false * true, m = true * 256 };
14866 /* The following fails for
14867 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
14869 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
14870 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
14871 /* Catch a bug in an HP-UX C compiler. See
14872 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
14873 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
14885 /* Refer to every declared value, to avoid compiler optimizations. */
14886 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
14887 + !m + !n + !o + !p + !q + !pq);
14893 if ac_fn_c_try_compile
"$LINENO"; then :
14894 ac_cv_header_stdbool_h
=yes
14896 ac_cv_header_stdbool_h
=no
14898 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
14901 $as_echo "$ac_cv_header_stdbool_h" >&6; }
14902 ac_fn_c_check_type
"$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
14903 if test "x$ac_cv_type__Bool" = x
""yes; then :
14905 cat >>confdefs.h
<<_ACEOF
14906 #define HAVE__BOOL 1
14919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
14920 $as_echo_n "checking for wchar_t... " >&6; }
14921 if test "${gt_cv_c_wchar_t+set}" = set; then :
14922 $as_echo_n "(cached) " >&6
14924 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14925 /* end confdefs.h. */
14926 #include <stddef.h>
14927 wchar_t foo = (wchar_t)'\0';
14936 if ac_fn_c_try_compile
"$LINENO"; then :
14937 gt_cv_c_wchar_t
=yes
14941 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
14944 $as_echo "$gt_cv_c_wchar_t" >&6; }
14945 if test $gt_cv_c_wchar_t = yes; then
14947 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
14952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
14953 $as_echo_n "checking for unsigned long long int... " >&6; }
14954 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
14955 $as_echo_n "(cached) " >&6
14957 ac_cv_type_unsigned_long_long_int
=yes
14958 if test "x${ac_cv_prog_cc_c99-no}" = xno
; then
14959 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14960 /* end confdefs.h. */
14962 /* For now, do not test the preprocessor; as of 2007 there are too many
14963 implementations with broken preprocessors. Perhaps this can
14964 be revisited in 2012. In the meantime, code should not expect
14965 #if to work with literals wider than 32 bits. */
14966 /* Test literals. */
14967 long long int ll = 9223372036854775807ll;
14968 long long int nll = -9223372036854775807LL;
14969 unsigned long long int ull = 18446744073709551615ULL;
14970 /* Test constant expressions. */
14971 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
14973 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
14979 /* Test availability of runtime routines for shift and division. */
14980 long long int llmax = 9223372036854775807ll;
14981 unsigned long long int ullmax = 18446744073709551615ull;
14982 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
14983 | (llmax / ll) | (llmax % ll)
14984 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
14985 | (ullmax / ull) | (ullmax % ull));
14991 if ac_fn_c_try_link
"$LINENO"; then :
14994 ac_cv_type_unsigned_long_long_int
=no
14996 rm -f core conftest.err conftest.
$ac_objext \
14997 conftest
$ac_exeext conftest.
$ac_ext
15000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
15001 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
15002 if test $ac_cv_type_unsigned_long_long_int = yes; then
15004 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
15010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
15011 $as_echo_n "checking for long long int... " >&6; }
15012 if test "${ac_cv_type_long_long_int+set}" = set; then :
15013 $as_echo_n "(cached) " >&6
15015 ac_cv_type_long_long_int
=yes
15016 if test "x${ac_cv_prog_cc_c99-no}" = xno
; then
15017 ac_cv_type_long_long_int
=$ac_cv_type_unsigned_long_long_int
15018 if test $ac_cv_type_long_long_int = yes; then
15019 if test "$cross_compiling" = yes; then :
15022 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15023 /* end confdefs.h. */
15024 #include <limits.h>
15027 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
15028 # define LLONG_MAX (HALF - 1 + HALF)
15033 long long int n = 1;
15037 long long int m = n << i;
15040 if (LLONG_MAX / 2 < m)
15048 if ac_fn_c_try_run
"$LINENO"; then :
15051 ac_cv_type_long_long_int
=no
15053 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15054 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
15061 $as_echo "$ac_cv_type_long_long_int" >&6; }
15062 if test $ac_cv_type_long_long_int = yes; then
15064 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
15078 GNULIB_FPRINTF_POSIX
=0;
15090 GNULIB_OBSTACK_PRINTF
=0;
15091 GNULIB_OBSTACK_PRINTF_POSIX
=0;
15095 GNULIB_PRINTF_POSIX
=0;
15103 GNULIB_SPRINTF_POSIX
=0;
15104 GNULIB_STDIO_H_SIGPIPE
=0;
15106 GNULIB_VASPRINTF
=0;
15109 GNULIB_VFPRINTF_POSIX
=0;
15111 GNULIB_VPRINTF_POSIX
=0;
15112 GNULIB_VSNPRINTF
=0;
15113 GNULIB_VSPRINTF_POSIX
=0;
15114 HAVE_DECL_FPURGE
=1;
15115 HAVE_DECL_FSEEKO
=1;
15116 HAVE_DECL_FTELLO
=1;
15117 HAVE_DECL_GETDELIM
=1;
15118 HAVE_DECL_GETLINE
=1;
15119 HAVE_DECL_OBSTACK_PRINTF
=1;
15120 HAVE_DECL_SNPRINTF
=1;
15121 HAVE_DECL_VSNPRINTF
=1;
15139 REPLACE_GETDELIM
=0;
15141 REPLACE_OBSTACK_PRINTF
=0;
15147 REPLACE_RENAMEAT
=0;
15148 REPLACE_SNPRINTF
=0;
15150 REPLACE_STDIO_WRITE_FUNCS
=0;
15152 REPLACE_VASPRINTF
=0;
15153 REPLACE_VDPRINTF
=0;
15154 REPLACE_VFPRINTF
=0;
15156 REPLACE_VSNPRINTF
=0;
15157 REPLACE_VSPRINTF
=0;
15160 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
15162 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x
""yes; then :
15164 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
15173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
15174 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
15175 if test "${ac_cv_header_stat_broken+set}" = set; then :
15176 $as_echo_n "(cached) " >&6
15178 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15179 /* end confdefs.h. */
15180 #include <sys/types.h>
15181 #include <sys/stat.h>
15183 #if defined S_ISBLK && defined S_IFDIR
15184 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
15187 #if defined S_ISBLK && defined S_IFCHR
15188 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
15191 #if defined S_ISLNK && defined S_IFREG
15192 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
15195 #if defined S_ISSOCK && defined S_IFREG
15196 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
15200 if ac_fn_c_try_compile
"$LINENO"; then :
15201 ac_cv_header_stat_broken
=no
15203 ac_cv_header_stat_broken
=yes
15205 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
15208 $as_echo "$ac_cv_header_stat_broken" >&6; }
15209 if test $ac_cv_header_stat_broken = yes; then
15211 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
15217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
15218 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
15219 if test "${ac_cv_c_restrict+set}" = set; then :
15220 $as_echo_n "(cached) " >&6
15222 ac_cv_c_restrict
=no
15223 # The order here caters to the fact that C++ does not require restrict.
15224 for ac_kw
in __restrict __restrict__ _Restrict restrict
; do
15225 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15226 /* end confdefs.h. */
15227 typedef int * int_ptr;
15228 int foo (int_ptr $ac_kw ip) {
15235 int * $ac_kw t = s;
15242 if ac_fn_c_try_compile
"$LINENO"; then :
15243 ac_cv_c_restrict
=$ac_kw
15245 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15246 test "$ac_cv_c_restrict" != no
&& break
15250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
15251 $as_echo "$ac_cv_c_restrict" >&6; }
15253 case $ac_cv_c_restrict in
15255 no
) $as_echo "#define restrict /**/" >>confdefs.h
15257 *) cat >>confdefs.h
<<_ACEOF
15258 #define restrict $ac_cv_c_restrict
15267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
15268 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
15269 if test "${gl_cv_sys_struct_timespec_in_time_h+set}" = set; then :
15270 $as_echo_n "(cached) " >&6
15272 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15273 /* end confdefs.h. */
15279 static struct timespec x; x.tv_sec = x.tv_nsec;
15284 if ac_fn_c_try_compile
"$LINENO"; then :
15285 gl_cv_sys_struct_timespec_in_time_h
=yes
15287 gl_cv_sys_struct_timespec_in_time_h
=no
15289 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
15292 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
15294 TIME_H_DEFINES_STRUCT_TIMESPEC
=0
15295 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
=0
15296 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
=0
15297 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
15298 TIME_H_DEFINES_STRUCT_TIMESPEC
=1
15300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
15301 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
15302 if test "${gl_cv_sys_struct_timespec_in_sys_time_h+set}" = set; then :
15303 $as_echo_n "(cached) " >&6
15305 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15306 /* end confdefs.h. */
15307 #include <sys/time.h>
15312 static struct timespec x; x.tv_sec = x.tv_nsec;
15317 if ac_fn_c_try_compile
"$LINENO"; then :
15318 gl_cv_sys_struct_timespec_in_sys_time_h
=yes
15320 gl_cv_sys_struct_timespec_in_sys_time_h
=no
15322 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
15325 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
15326 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
15327 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
=1
15329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
15330 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
15331 if test "${gl_cv_sys_struct_timespec_in_pthread_h+set}" = set; then :
15332 $as_echo_n "(cached) " >&6
15334 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15335 /* end confdefs.h. */
15336 #include <pthread.h>
15341 static struct timespec x; x.tv_sec = x.tv_nsec;
15346 if ac_fn_c_try_compile
"$LINENO"; then :
15347 gl_cv_sys_struct_timespec_in_pthread_h
=yes
15349 gl_cv_sys_struct_timespec_in_pthread_h
=no
15351 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
15354 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
15355 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
15356 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
=1
15375 if test $gl_cv_have_include_next = yes; then
15376 gl_cv_next_time_h
='<'time.h
'>'
15378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
15379 $as_echo_n "checking absolute name of <time.h>... " >&6; }
15380 if test "${gl_cv_next_time_h+set}" = set; then :
15381 $as_echo_n "(cached) " >&6
15384 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15385 /* end confdefs.h. */
15390 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
15391 *) gl_absname_cpp
="$ac_cpp" ;;
15393 gl_cv_next_time_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15394 sed -n '\#/time.h#{
15395 s#.*"\(.*/time.h\)".*#\1#
15403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
15404 $as_echo "$gl_cv_next_time_h" >&6; }
15406 NEXT_TIME_H
=$gl_cv_next_time_h
15408 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
15409 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15410 gl_next_as_first_directive
='<'time.h
'>'
15412 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15413 gl_next_as_first_directive
=$gl_cv_next_time_h
15415 NEXT_AS_FIRST_DIRECTIVE_TIME_H
=$gl_next_as_first_directive
15422 ac_fn_c_check_decl
"$LINENO" "localtime_r" "ac_cv_have_decl_localtime_r" "$ac_includes_default"
15423 if test "x$ac_cv_have_decl_localtime_r" = x
""yes; then :
15429 cat >>confdefs.h
<<_ACEOF
15430 #define HAVE_DECL_LOCALTIME_R $ac_have_decl
15437 GL_COND_LIBTOOL_TRUE
=
15438 GL_COND_LIBTOOL_FALSE
='#'
15440 GL_COND_LIBTOOL_TRUE
='#'
15441 GL_COND_LIBTOOL_FALSE
=
15444 gl_cond_libtool
=false
15457 gl_source_base
='lib'
15458 # Code from module arg-nonnull:
15459 # Code from module c++defs:
15460 # Code from module crypto/md5:
15470 gl_LIBOBJS
="$gl_LIBOBJS md5.$ac_objext"
15477 # Code from module dosname:
15478 # Code from module dtoastr:
15480 # Code from module extensions:
15481 # Code from module filemode:
15492 gl_LIBOBJS
="$gl_LIBOBJS filemode.$ac_objext"
15496 # Code from module getloadavg:
15499 # Persuade glibc <stdlib.h> to declare getloadavg().
15502 # Make sure getloadavg.c is where it belongs, at configure-time.
15503 test -f "$srcdir/$gl_source_base/getloadavg.c" ||
15504 as_fn_error
"$srcdir/$gl_source_base/getloadavg.c is missing" "$LINENO" 5
15508 # getloadvg is present in libc on glibc >= 2.2, MacOS X, FreeBSD >= 2.0,
15509 # NetBSD >= 0.9, OpenBSD >= 2.0, Solaris >= 7.
15510 ac_fn_c_check_func
"$LINENO" "getloadavg" "ac_cv_func_getloadavg"
15511 if test "x$ac_cv_func_getloadavg" = x
""yes; then :
15516 # Some systems with -lutil have (and need) -lkvm as well, some do not.
15517 # On Solaris, -lkvm requires nlist from -lelf, so check that first
15518 # to get the right answer into the cache.
15519 # For kstat on solaris, we need to test for libelf and libkvm to force the
15520 # definition of SVR4 below.
15521 if test $gl_have_func = no
; then
15522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
15523 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
15524 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then :
15525 $as_echo_n "(cached) " >&6
15527 ac_check_lib_save_LIBS
=$LIBS
15529 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15530 /* end confdefs.h. */
15532 /* Override any GCC internal prototype to avoid an error.
15533 Use char because int might match the return type of a GCC
15534 builtin and then its argument prototype would still apply. */
15542 return elf_begin ();
15547 if ac_fn_c_try_link
"$LINENO"; then :
15548 ac_cv_lib_elf_elf_begin
=yes
15550 ac_cv_lib_elf_elf_begin
=no
15552 rm -f core conftest.err conftest.
$ac_objext \
15553 conftest
$ac_exeext conftest.
$ac_ext
15554 LIBS
=$ac_check_lib_save_LIBS
15556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
15557 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
15558 if test "x$ac_cv_lib_elf_elf_begin" = x
""yes; then :
15562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
15563 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
15564 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then :
15565 $as_echo_n "(cached) " >&6
15567 ac_check_lib_save_LIBS
=$LIBS
15569 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15570 /* end confdefs.h. */
15572 /* Override any GCC internal prototype to avoid an error.
15573 Use char because int might match the return type of a GCC
15574 builtin and then its argument prototype would still apply. */
15582 return kvm_open ();
15587 if ac_fn_c_try_link
"$LINENO"; then :
15588 ac_cv_lib_kvm_kvm_open
=yes
15590 ac_cv_lib_kvm_kvm_open
=no
15592 rm -f core conftest.err conftest.
$ac_objext \
15593 conftest
$ac_exeext conftest.
$ac_ext
15594 LIBS
=$ac_check_lib_save_LIBS
15596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
15597 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
15598 if test "x$ac_cv_lib_kvm_kvm_open" = x
""yes; then :
15602 # Check for the 4.4BSD definition of getloadavg.
15603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5
15604 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
15605 if test "${ac_cv_lib_util_getloadavg+set}" = set; then :
15606 $as_echo_n "(cached) " >&6
15608 ac_check_lib_save_LIBS
=$LIBS
15609 LIBS
="-lutil $LIBS"
15610 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15611 /* end confdefs.h. */
15613 /* Override any GCC internal prototype to avoid an error.
15614 Use char because int might match the return type of a GCC
15615 builtin and then its argument prototype would still apply. */
15619 char getloadavg ();
15623 return getloadavg ();
15628 if ac_fn_c_try_link
"$LINENO"; then :
15629 ac_cv_lib_util_getloadavg
=yes
15631 ac_cv_lib_util_getloadavg
=no
15633 rm -f core conftest.err conftest.
$ac_objext \
15634 conftest
$ac_exeext conftest.
$ac_ext
15635 LIBS
=$ac_check_lib_save_LIBS
15637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5
15638 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
15639 if test "x$ac_cv_lib_util_getloadavg" = x
""yes; then :
15640 LIBS
="-lutil $LIBS" gl_have_func
=yes
15645 if test $gl_have_func = no
; then
15646 # There is a commonly available library for RS/6000 AIX.
15647 # Since it is not a standard part of AIX, it might be installed locally.
15648 gl_getloadavg_LIBS
=$LIBS
15649 LIBS
="-L/usr/local/lib $LIBS"
15650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5
15651 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
15652 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then :
15653 $as_echo_n "(cached) " >&6
15655 ac_check_lib_save_LIBS
=$LIBS
15656 LIBS
="-lgetloadavg $LIBS"
15657 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15658 /* end confdefs.h. */
15660 /* Override any GCC internal prototype to avoid an error.
15661 Use char because int might match the return type of a GCC
15662 builtin and then its argument prototype would still apply. */
15666 char getloadavg ();
15670 return getloadavg ();
15675 if ac_fn_c_try_link
"$LINENO"; then :
15676 ac_cv_lib_getloadavg_getloadavg
=yes
15678 ac_cv_lib_getloadavg_getloadavg
=no
15680 rm -f core conftest.err conftest.
$ac_objext \
15681 conftest
$ac_exeext conftest.
$ac_ext
15682 LIBS
=$ac_check_lib_save_LIBS
15684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5
15685 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
15686 if test "x$ac_cv_lib_getloadavg_getloadavg" = x
""yes; then :
15687 LIBS
="-lgetloadavg $LIBS" gl_have_func
=yes
15689 LIBS
=$gl_getloadavg_LIBS
15694 # Set up the replacement function if necessary.
15695 if test $gl_have_func = no
; then
15704 gl_LIBOBJS
="$gl_LIBOBJS getloadavg.$ac_objext"
15707 # Figure out what our getloadavg.c needs.
15709 # Solaris has libkstat which does not require root.
15710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
15711 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
15712 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then :
15713 $as_echo_n "(cached) " >&6
15715 ac_check_lib_save_LIBS
=$LIBS
15716 LIBS
="-lkstat $LIBS"
15717 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15718 /* end confdefs.h. */
15720 /* Override any GCC internal prototype to avoid an error.
15721 Use char because int might match the return type of a GCC
15722 builtin and then its argument prototype would still apply. */
15726 char kstat_open ();
15730 return kstat_open ();
15735 if ac_fn_c_try_link
"$LINENO"; then :
15736 ac_cv_lib_kstat_kstat_open
=yes
15738 ac_cv_lib_kstat_kstat_open
=no
15740 rm -f core conftest.err conftest.
$ac_objext \
15741 conftest
$ac_exeext conftest.
$ac_ext
15742 LIBS
=$ac_check_lib_save_LIBS
15744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
15745 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
15746 if test "x$ac_cv_lib_kstat_kstat_open" = x
""yes; then :
15747 cat >>confdefs.h
<<_ACEOF
15748 #define HAVE_LIBKSTAT 1
15751 LIBS
="-lkstat $LIBS"
15755 test $ac_cv_lib_kstat_kstat_open = yes && gl_have_func
=yes
15757 # On HPUX9, an unprivileged user can get load averages this way.
15758 if test $gl_have_func = no
; then
15759 for ac_func
in pstat_getdynamic
15761 ac_fn_c_check_func
"$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic"
15762 if test "x$ac_cv_func_pstat_getdynamic" = x
""yes; then :
15763 cat >>confdefs.h
<<_ACEOF
15764 #define HAVE_PSTAT_GETDYNAMIC 1
15772 # AIX has libperfstat which does not require root
15773 if test $gl_have_func = no
; then
15774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perfstat_cpu_total in -lperfstat" >&5
15775 $as_echo_n "checking for perfstat_cpu_total in -lperfstat... " >&6; }
15776 if test "${ac_cv_lib_perfstat_perfstat_cpu_total+set}" = set; then :
15777 $as_echo_n "(cached) " >&6
15779 ac_check_lib_save_LIBS
=$LIBS
15780 LIBS
="-lperfstat $LIBS"
15781 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15782 /* end confdefs.h. */
15784 /* Override any GCC internal prototype to avoid an error.
15785 Use char because int might match the return type of a GCC
15786 builtin and then its argument prototype would still apply. */
15790 char perfstat_cpu_total ();
15794 return perfstat_cpu_total ();
15799 if ac_fn_c_try_link
"$LINENO"; then :
15800 ac_cv_lib_perfstat_perfstat_cpu_total
=yes
15802 ac_cv_lib_perfstat_perfstat_cpu_total
=no
15804 rm -f core conftest.err conftest.
$ac_objext \
15805 conftest
$ac_exeext conftest.
$ac_ext
15806 LIBS
=$ac_check_lib_save_LIBS
15808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_perfstat_perfstat_cpu_total" >&5
15809 $as_echo "$ac_cv_lib_perfstat_perfstat_cpu_total" >&6; }
15810 if test "x$ac_cv_lib_perfstat_perfstat_cpu_total" = x
""yes; then :
15811 cat >>confdefs.h
<<_ACEOF
15812 #define HAVE_LIBPERFSTAT 1
15815 LIBS
="-lperfstat $LIBS"
15819 test $ac_cv_lib_perfstat_perfstat_cpu_total = yes && gl_have_func
=yes
15822 if test $gl_have_func = no
; then
15823 ac_fn_c_check_header_mongrel
"$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
15824 if test "x$ac_cv_header_sys_dg_sys_info_h" = x
""yes; then :
15827 $as_echo "#define DGUX 1" >>confdefs.h
15829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5
15830 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
15831 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then :
15832 $as_echo_n "(cached) " >&6
15834 ac_check_lib_save_LIBS
=$LIBS
15836 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15837 /* end confdefs.h. */
15839 /* Override any GCC internal prototype to avoid an error.
15840 Use char because int might match the return type of a GCC
15841 builtin and then its argument prototype would still apply. */
15845 char dg_sys_info ();
15849 return dg_sys_info ();
15854 if ac_fn_c_try_link
"$LINENO"; then :
15855 ac_cv_lib_dgc_dg_sys_info
=yes
15857 ac_cv_lib_dgc_dg_sys_info
=no
15859 rm -f core conftest.err conftest.
$ac_objext \
15860 conftest
$ac_exeext conftest.
$ac_ext
15861 LIBS
=$ac_check_lib_save_LIBS
15863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5
15864 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
15865 if test "x$ac_cv_lib_dgc_dg_sys_info" = x
""yes; then :
15866 cat >>confdefs.h
<<_ACEOF
15867 #define HAVE_LIBDGC 1
15879 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
15880 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
15881 # Irix 4.0.5F has the header but not the library.
15882 if test $gl_have_func = no
&& test "$ac_cv_lib_elf_elf_begin" = yes \
15883 && test "$ac_cv_lib_kvm_kvm_open" = yes; then
15886 $as_echo "#define SVR4 1" >>confdefs.h
15890 if test $gl_have_func = no
; then
15891 ac_fn_c_check_header_mongrel
"$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default"
15892 if test "x$ac_cv_header_inq_stats_cpustats_h" = x
""yes; then :
15895 $as_echo "#define UMAX 1" >>confdefs.h
15898 $as_echo "#define UMAX4_3 1" >>confdefs.h
15905 if test $gl_have_func = no
; then
15906 ac_fn_c_check_header_mongrel
"$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default"
15907 if test "x$ac_cv_header_sys_cpustats_h" = x
""yes; then :
15908 gl_have_func
=yes; $as_echo "#define UMAX 1" >>confdefs.h
15915 if test $gl_have_func = no
; then
15916 for ac_header
in mach
/mach.h
15918 ac_fn_c_check_header_mongrel
"$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
15919 if test "x$ac_cv_header_mach_mach_h" = x
""yes; then :
15920 cat >>confdefs.h
<<_ACEOF
15921 #define HAVE_MACH_MACH_H 1
15930 for ac_header
in nlist.h
15932 ac_fn_c_check_header_mongrel
"$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
15933 if test "x$ac_cv_header_nlist_h" = x
""yes; then :
15934 cat >>confdefs.h
<<_ACEOF
15935 #define HAVE_NLIST_H 1
15937 ac_fn_c_check_member
"$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h>
15939 if test "x$ac_cv_member_struct_nlist_n_un_n_name" = x
""yes; then :
15941 cat >>confdefs.h
<<_ACEOF
15942 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
15948 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15949 /* end confdefs.h. */
15955 #ifdef HAVE_STRUCT_NLIST_N_UN_N_NAME
15956 x.n_un.n_name = "";
15964 if ac_fn_c_try_link
"$LINENO"; then :
15966 $as_echo "#define N_NAME_POINTER 1" >>confdefs.h
15969 rm -f core conftest.err conftest.
$ac_objext \
15970 conftest
$ac_exeext conftest.
$ac_ext
15980 if test "x$gl_save_LIBS" = x
; then
15981 GETLOADAVG_LIBS
=$LIBS
15983 GETLOADAVG_LIBS
=`echo "$LIBS" | sed "s!$gl_save_LIBS!!"`
15988 # Test whether the system declares getloadavg. Solaris has the function
15989 # but declares it in <sys/loadavg.h>, not <stdlib.h>.
15990 for ac_header
in sys
/loadavg.h
15992 ac_fn_c_check_header_mongrel
"$LINENO" "sys/loadavg.h" "ac_cv_header_sys_loadavg_h" "$ac_includes_default"
15993 if test "x$ac_cv_header_sys_loadavg_h" = x
""yes; then :
15994 cat >>confdefs.h
<<_ACEOF
15995 #define HAVE_SYS_LOADAVG_H 1
16002 if test $ac_cv_header_sys_loadavg_h = yes; then
16003 HAVE_SYS_LOADAVG_H
=1
16005 HAVE_SYS_LOADAVG_H
=0
16007 ac_fn_c_check_decl
"$LINENO" "getloadavg" "ac_cv_have_decl_getloadavg" "#if HAVE_SYS_LOADAVG_H
16008 # include <sys/loadavg.h>
16010 #include <stdlib.h>
16012 if test "x$ac_cv_have_decl_getloadavg" = x
""yes; then :
16015 HAVE_DECL_GETLOADAVG
=0
16022 GNULIB_GETLOADAVG
=1
16026 # Code from module getopt-gnu:
16033 # Code from module getopt-posix:
16039 if test -n "$gl_replace_getopt"; then :
16045 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
16049 GNULIB_UNISTD_H_GETOPT
=1
16058 gl_LIBOBJS
="$gl_LIBOBJS getopt.$ac_objext"
16068 gl_LIBOBJS
="$gl_LIBOBJS getopt1.$ac_objext"
16078 # Code from module gettext-h:
16081 # Code from module ignore-value:
16083 # Code from module include_next:
16084 # Code from module intprops:
16085 # Code from module lstat:
16089 if test $ac_cv_func_lstat = yes; then
16091 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no
; then
16094 # Prerequisites of lib/lstat.c.
16107 # Code from module mktime:
16113 if test $APPLE_UNIVERSAL_BUILD = 1; then
16114 # A universal build on Apple MacOS X platforms.
16115 # The test result would be 'yes' in 32-bit mode and 'no' in 64-bit mode.
16116 # But we need a configuration result that is valid in both modes.
16117 ac_cv_func_working_mktime
=no
16119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
16120 $as_echo_n "checking for working mktime... " >&6; }
16121 if test "${ac_cv_func_working_mktime+set}" = set; then :
16122 $as_echo_n "(cached) " >&6
16124 if test "$cross_compiling" = yes; then :
16125 ac_cv_func_working_mktime
=no
16127 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16128 /* end confdefs.h. */
16129 /* Test program from Paul Eggert and Tony Leneis. */
16130 #include <limits.h>
16131 #include <stdlib.h>
16134 #ifdef HAVE_UNISTD_H
16135 # include <unistd.h>
16139 # define alarm(X) /* empty */
16142 /* Work around redefinition to rpl_putenv by other config tests. */
16145 static time_t time_t_max;
16146 static time_t time_t_min;
16148 /* Values we'll use to set the TZ environment variable. */
16149 static char *tz_strings[] = {
16150 (char *) 0, "TZ=GMT0", "TZ=JST-9",
16151 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
16153 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
16155 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
16156 Based on a problem report from Andreas Jaeger. */
16158 spring_forward_gap ()
16160 /* glibc (up to about 1998-10-07) failed this test. */
16163 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
16164 instead of "TZ=America/Vancouver" in order to detect the bug even
16165 on systems that don't support the Olson extension, or don't have the
16166 full zoneinfo tables installed. */
16167 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
16176 return mktime (&tm) != (time_t) -1;
16180 mktime_test1 (time_t now)
16183 return ! (lt = localtime (&now)) || mktime (lt) == now;
16187 mktime_test (time_t now)
16189 return (mktime_test1 (now)
16190 && mktime_test1 ((time_t) (time_t_max - now))
16191 && mktime_test1 ((time_t) (time_t_min + now)));
16197 /* Based on code from Ariel Faigon. */
16207 return tm.tm_mon == 2 && tm.tm_mday == 31;
16211 bigtime_test (int j)
16215 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
16216 now = mktime (&tm);
16217 if (now != (time_t) -1)
16219 struct tm *lt = localtime (&now);
16221 && lt->tm_year == tm.tm_year
16222 && lt->tm_mon == tm.tm_mon
16223 && lt->tm_mday == tm.tm_mday
16224 && lt->tm_hour == tm.tm_hour
16225 && lt->tm_min == tm.tm_min
16226 && lt->tm_sec == tm.tm_sec
16227 && lt->tm_yday == tm.tm_yday
16228 && lt->tm_wday == tm.tm_wday
16229 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
16230 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
16239 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
16240 ignoring leap seconds. */
16241 unsigned long int answer = 2527315200UL;
16245 tm.tm_year = 2050 - 1900;
16248 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
16251 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
16252 instead of "TZ=America/Vancouver" in order to detect the bug even
16253 on systems that don't support the Olson extension, or don't have the
16254 full zoneinfo tables installed. */
16255 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
16259 /* Check that the result is either a failure, or close enough
16260 to the correct answer that we can assume the discrepancy is
16261 due to leap seconds. */
16262 return (t == (time_t) -1
16263 || (0 < t && answer - 120 <= t && t <= answer + 120));
16272 int time_t_signed_magnitude = (time_t) ~ (time_t) 0 < (time_t) -1;
16273 int time_t_signed = ! ((time_t) 0 < (time_t) -1);
16275 /* This test makes some buggy mktime implementations loop.
16276 Give up after 60 seconds; a mktime slower than that
16277 isn't worth using anyway. */
16280 time_t_max = (! time_t_signed
16282 : ((((time_t) 1 << (sizeof (time_t) * CHAR_BIT - 2)) - 1)
16284 time_t_min = (! time_t_signed
16286 : time_t_signed_magnitude
16290 delta = time_t_max / 997; /* a suitable prime number */
16291 for (i = 0; i < N_STRINGS; i++)
16294 putenv (tz_strings[i]);
16296 for (t = 0; t <= time_t_max - delta; t += delta)
16297 if (! mktime_test (t))
16299 if (! (mktime_test ((time_t) 1)
16300 && mktime_test ((time_t) (60 * 60))
16301 && mktime_test ((time_t) (60 * 60 * 24))))
16304 for (j = 1; ; j <<= 1)
16305 if (! bigtime_test (j))
16307 else if (INT_MAX / 2 < j)
16309 if (! bigtime_test (INT_MAX))
16312 if (! irix_6_4_bug ())
16314 if (! spring_forward_gap ())
16316 if (! year_2050_test ())
16321 if ac_fn_c_try_run
"$LINENO"; then :
16322 ac_cv_func_working_mktime
=yes
16324 ac_cv_func_working_mktime
=no
16326 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16327 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_working_mktime" >&5
16332 $as_echo "$ac_cv_func_working_mktime" >&6; }
16333 if test $ac_cv_func_working_mktime = no
; then
16342 gl_LIBOBJS
="$gl_LIBOBJS mktime.$ac_objext"
16346 if test $ac_cv_func_working_mktime = no
; then
16362 # Code from module multiarch:
16364 # Code from module readlink:
16368 if test $ac_cv_func_readlink = no
; then
16378 gl_LIBOBJS
="$gl_LIBOBJS readlink.$ac_objext"
16384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink signature is correct" >&5
16385 $as_echo_n "checking whether readlink signature is correct... " >&6; }
16386 if test "${gl_cv_decl_readlink_works+set}" = set; then :
16387 $as_echo_n "(cached) " >&6
16389 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16390 /* end confdefs.h. */
16391 #include <unistd.h>
16392 /* Cause compilation failure if original declaration has wrong type. */
16393 ssize_t readlink (const char *, char *, size_t);
16402 if ac_fn_c_try_compile
"$LINENO"; then :
16403 gl_cv_decl_readlink_works
=yes
16405 gl_cv_decl_readlink_works
=no
16407 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_readlink_works" >&5
16410 $as_echo "$gl_cv_decl_readlink_works" >&6; }
16411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink handles trailing slash correctly" >&5
16412 $as_echo_n "checking whether readlink handles trailing slash correctly... " >&6; }
16413 if test "${gl_cv_func_readlink_works+set}" = set; then :
16414 $as_echo_n "(cached) " >&6
16416 # We have readlink, so assume ln -s works.
16417 ln -s conftest.no-such conftest.link
16418 ln -s conftest.link conftest.lnk2
16419 if test "$cross_compiling" = yes; then :
16420 gl_cv_func_readlink_works
="guessing no"
16422 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16423 /* end confdefs.h. */
16424 #include <unistd.h>
16430 return readlink ("conftest.lnk2/", buf, sizeof buf) != -1;
16435 if ac_fn_c_try_run
"$LINENO"; then :
16436 gl_cv_func_readlink_works
=yes
16438 gl_cv_func_readlink_works
=no
16440 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16441 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16444 rm -f conftest.link conftest.lnk2
16446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_readlink_works" >&5
16447 $as_echo "$gl_cv_func_readlink_works" >&6; }
16448 if test "$gl_cv_func_readlink_works" != yes; then
16450 $as_echo "#define READLINK_TRAILING_SLASH_BUG 1" >>confdefs.h
16461 gl_LIBOBJS
="$gl_LIBOBJS readlink.$ac_objext"
16463 elif test "$gl_cv_decl_readlink_works" != yes; then
16473 gl_LIBOBJS
="$gl_LIBOBJS readlink.$ac_objext"
16485 # Code from module socklen:
16486 ac_fn_c_check_type
"$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
16487 /* <sys/types.h> is not needed according to POSIX, but the
16488 <sys/socket.h> in i386-unknown-freebsd4.10 and
16489 powerpc-apple-darwin5.5 required it. */
16490 #include <sys/types.h>
16491 #if HAVE_SYS_SOCKET_H
16492 # include <sys/socket.h>
16493 #elif HAVE_WS2TCPIP_H
16494 # include <ws2tcpip.h>
16498 if test "x$ac_cv_type_socklen_t" = x
""yes; then :
16501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
16502 $as_echo_n "checking for socklen_t equivalent... " >&6; }
16503 if test "${gl_cv_socklen_t_equiv+set}" = set; then :
16504 $as_echo_n "(cached) " >&6
16506 # Systems have either "struct sockaddr *" or
16507 # "void *" as the second argument to getpeername
16508 gl_cv_socklen_t_equiv
=
16509 for arg2
in "struct sockaddr" void
; do
16510 for t
in int size_t
"unsigned int" "long int" "unsigned long int"; do
16511 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16512 /* end confdefs.h. */
16513 #include <sys/types.h>
16514 #include <sys/socket.h>
16516 int getpeername (int, $arg2 *, $t *);
16521 getpeername (0, 0, &len);
16526 if ac_fn_c_try_compile
"$LINENO"; then :
16527 gl_cv_socklen_t_equiv
="$t"
16529 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16530 test "$gl_cv_socklen_t_equiv" != "" && break
16532 test "$gl_cv_socklen_t_equiv" != "" && break
16537 if test "$gl_cv_socklen_t_equiv" = ""; then
16538 as_fn_error
"Cannot find a type to use in place of socklen_t" "$LINENO" 5
16540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socklen_t_equiv" >&5
16541 $as_echo "$gl_cv_socklen_t_equiv" >&6; }
16543 cat >>confdefs.h
<<_ACEOF
16544 #define socklen_t $gl_cv_socklen_t_equiv
16549 # Code from module stat:
16553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on directories" >&5
16554 $as_echo_n "checking whether stat handles trailing slashes on directories... " >&6; }
16555 if test "${gl_cv_func_stat_dir_slash+set}" = set; then :
16556 $as_echo_n "(cached) " >&6
16558 if test "$cross_compiling" = yes; then :
16560 mingw
*) gl_cv_func_stat_dir_slash
="guessing no";;
16561 *) gl_cv_func_stat_dir_slash
="guessing yes";;
16564 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16565 /* end confdefs.h. */
16566 #include <sys/stat.h>
16571 struct stat st; return stat (".", &st) != stat ("./", &st);
16576 if ac_fn_c_try_run
"$LINENO"; then :
16577 gl_cv_func_stat_dir_slash
=yes
16579 gl_cv_func_stat_dir_slash
=no
16581 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16582 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_dir_slash" >&5
16587 $as_echo "$gl_cv_func_stat_dir_slash" >&6; }
16588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
16589 $as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
16590 if test "${gl_cv_func_stat_file_slash+set}" = set; then :
16591 $as_echo_n "(cached) " >&6
16594 # Assume that if we have lstat, we can also check symlinks.
16595 if test $ac_cv_func_lstat = yes; then
16596 ln -s conftest.tmp conftest.lnk
16598 if test "$cross_compiling" = yes; then :
16599 gl_cv_func_stat_file_slash
="guessing no"
16601 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16602 /* end confdefs.h. */
16603 #include <sys/stat.h>
16610 if (!stat ("conftest.tmp/", &st))
16613 if (!stat ("conftest.lnk/", &st))
16622 if ac_fn_c_try_run
"$LINENO"; then :
16623 gl_cv_func_stat_file_slash
=yes
16625 gl_cv_func_stat_file_slash
=no
16627 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16628 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16631 rm -f conftest.tmp conftest.lnk
16633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
16634 $as_echo "$gl_cv_func_stat_file_slash" >&6; }
16635 case $gl_cv_func_stat_dir_slash in
16636 *no
) REPLACE_STAT
=1
16638 $as_echo "#define REPLACE_FUNC_STAT_DIR 1" >>confdefs.h
16641 case $gl_cv_func_stat_file_slash in
16642 *no
) REPLACE_STAT
=1
16644 $as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
16647 if test $REPLACE_STAT = 1; then
16656 gl_LIBOBJS
="$gl_LIBOBJS stat.$ac_objext"
16668 # Code from module stdbool:
16672 # Define two additional variables used in the Makefile substitution.
16674 if test "$ac_cv_header_stdbool_h" = yes; then
16677 STDBOOL_H
='stdbool.h'
16681 if test "$ac_cv_type__Bool" = yes; then
16688 # Code from module stddef:
16692 if test $gt_cv_c_wchar_t = no
; then
16696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
16697 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
16698 if test "${gl_cv_decl_null_works+set}" = set; then :
16699 $as_echo_n "(cached) " >&6
16701 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16702 /* end confdefs.h. */
16703 #include <stddef.h>
16704 int test[2 * (sizeof NULL == sizeof (void *)) -1];
16714 if ac_fn_c_try_compile
"$LINENO"; then :
16715 gl_cv_decl_null_works
=yes
16717 gl_cv_decl_null_works
=no
16719 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
16722 $as_echo "$gl_cv_decl_null_works" >&6; }
16723 if test $gl_cv_decl_null_works = no
; then
16727 if test -n "$STDDEF_H"; then
16736 if test $gl_cv_have_include_next = yes; then
16737 gl_cv_next_stddef_h
='<'stddef.h
'>'
16739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
16740 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
16741 if test "${gl_cv_next_stddef_h+set}" = set; then :
16742 $as_echo_n "(cached) " >&6
16745 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16746 /* end confdefs.h. */
16747 #include <stddef.h>
16751 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
16752 *) gl_absname_cpp
="$ac_cpp" ;;
16754 gl_cv_next_stddef_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16755 sed -n '\#/stddef.h#{
16756 s#.*"\(.*/stddef.h\)".*#\1#
16764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
16765 $as_echo "$gl_cv_next_stddef_h" >&6; }
16767 NEXT_STDDEF_H
=$gl_cv_next_stddef_h
16769 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
16770 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16771 gl_next_as_first_directive
='<'stddef.h
'>'
16773 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16774 gl_next_as_first_directive
=$gl_cv_next_stddef_h
16776 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
=$gl_next_as_first_directive
16783 # Code from module stdint:
16787 if test $ac_cv_type_long_long_int = yes; then
16788 HAVE_LONG_LONG_INT
=1
16790 HAVE_LONG_LONG_INT
=0
16794 if test $ac_cv_type_unsigned_long_long_int = yes; then
16795 HAVE_UNSIGNED_LONG_LONG_INT
=1
16797 HAVE_UNSIGNED_LONG_LONG_INT
=0
16802 if test $ac_cv_header_wchar_h = yes; then
16809 if test $ac_cv_header_inttypes_h = yes; then
16816 if test $ac_cv_header_sys_types_h = yes; then
16832 if test $gl_cv_have_include_next = yes; then
16833 gl_cv_next_stdint_h
='<'stdint.h
'>'
16835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
16836 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
16837 if test "${gl_cv_next_stdint_h+set}" = set; then :
16838 $as_echo_n "(cached) " >&6
16841 if test $ac_cv_header_stdint_h = yes; then
16844 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16845 /* end confdefs.h. */
16846 #include <stdint.h>
16850 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
16851 *) gl_absname_cpp
="$ac_cpp" ;;
16853 gl_cv_next_stdint_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16854 sed -n '\#/stdint.h#{
16855 s#.*"\(.*/stdint.h\)".*#\1#
16861 gl_cv_next_stdint_h
='<'stdint.h
'>'
16866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
16867 $as_echo "$gl_cv_next_stdint_h" >&6; }
16869 NEXT_STDINT_H
=$gl_cv_next_stdint_h
16871 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
16872 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16873 gl_next_as_first_directive
='<'stdint.h
'>'
16875 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16876 gl_next_as_first_directive
=$gl_cv_next_stdint_h
16878 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
=$gl_next_as_first_directive
16883 if test $ac_cv_header_stdint_h = yes; then
16890 if test $ac_cv_header_stdint_h = yes; then
16891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
16892 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
16893 if test "${gl_cv_header_working_stdint_h+set}" = set; then :
16894 $as_echo_n "(cached) " >&6
16896 gl_cv_header_working_stdint_h
=no
16897 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16898 /* end confdefs.h. */
16901 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
16902 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
16903 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
16904 #include <stdint.h>
16905 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
16906 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
16907 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
16911 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
16912 included before <wchar.h>. */
16913 #include <stddef.h>
16914 #include <signal.h>
16916 # include <stdio.h>
16918 # include <wchar.h>
16923 int8_t a1 = INT8_MAX;
16924 int8_t a1min = INT8_MIN;
16927 int16_t a2 = INT16_MAX;
16928 int16_t a2min = INT16_MIN;
16931 int32_t a3 = INT32_MAX;
16932 int32_t a3min = INT32_MIN;
16935 int64_t a4 = INT64_MAX;
16936 int64_t a4min = INT64_MIN;
16939 uint8_t b1 = UINT8_MAX;
16941 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
16944 uint16_t b2 = UINT16_MAX;
16947 uint32_t b3 = UINT32_MAX;
16950 uint64_t b4 = UINT64_MAX;
16952 int_least8_t c1 = INT8_C (0x7f);
16953 int_least8_t c1max = INT_LEAST8_MAX;
16954 int_least8_t c1min = INT_LEAST8_MIN;
16955 int_least16_t c2 = INT16_C (0x7fff);
16956 int_least16_t c2max = INT_LEAST16_MAX;
16957 int_least16_t c2min = INT_LEAST16_MIN;
16958 int_least32_t c3 = INT32_C (0x7fffffff);
16959 int_least32_t c3max = INT_LEAST32_MAX;
16960 int_least32_t c3min = INT_LEAST32_MIN;
16961 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
16962 int_least64_t c4max = INT_LEAST64_MAX;
16963 int_least64_t c4min = INT_LEAST64_MIN;
16964 uint_least8_t d1 = UINT8_C (0xff);
16965 uint_least8_t d1max = UINT_LEAST8_MAX;
16966 uint_least16_t d2 = UINT16_C (0xffff);
16967 uint_least16_t d2max = UINT_LEAST16_MAX;
16968 uint_least32_t d3 = UINT32_C (0xffffffff);
16969 uint_least32_t d3max = UINT_LEAST32_MAX;
16970 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
16971 uint_least64_t d4max = UINT_LEAST64_MAX;
16972 int_fast8_t e1 = INT_FAST8_MAX;
16973 int_fast8_t e1min = INT_FAST8_MIN;
16974 int_fast16_t e2 = INT_FAST16_MAX;
16975 int_fast16_t e2min = INT_FAST16_MIN;
16976 int_fast32_t e3 = INT_FAST32_MAX;
16977 int_fast32_t e3min = INT_FAST32_MIN;
16978 int_fast64_t e4 = INT_FAST64_MAX;
16979 int_fast64_t e4min = INT_FAST64_MIN;
16980 uint_fast8_t f1 = UINT_FAST8_MAX;
16981 uint_fast16_t f2 = UINT_FAST16_MAX;
16982 uint_fast32_t f3 = UINT_FAST32_MAX;
16983 uint_fast64_t f4 = UINT_FAST64_MAX;
16985 intptr_t g = INTPTR_MAX;
16986 intptr_t gmin = INTPTR_MIN;
16989 uintptr_t h = UINTPTR_MAX;
16991 intmax_t i = INTMAX_MAX;
16992 uintmax_t j = UINTMAX_MAX;
16994 #include <limits.h> /* for CHAR_BIT */
16995 #define TYPE_MINIMUM(t) \
16996 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
16997 #define TYPE_MAXIMUM(t) \
16998 ((t) ((t) 0 < (t) -1 \
17000 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
17003 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
17004 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
17006 /* Detect bug in FreeBSD 6.0 / ia64. */
17007 int check_SIG_ATOMIC:
17008 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
17009 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
17011 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
17013 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
17014 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
17016 /* Detect bug in mingw. */
17018 WINT_MIN == TYPE_MINIMUM (wint_t)
17019 && WINT_MAX == TYPE_MAXIMUM (wint_t)
17022 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
17024 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
17025 int check_UINT16_C:
17026 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
17028 /* Detect bugs in OpenBSD 3.9 stdint.h. */
17030 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
17033 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
17036 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
17039 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
17041 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
17042 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
17043 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
17044 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
17045 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
17046 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
17047 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
17048 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
17049 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
17050 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
17051 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
17062 if ac_fn_c_try_compile
"$LINENO"; then :
17063 if test "$cross_compiling" = yes; then :
17064 gl_cv_header_working_stdint_h
=yes
17067 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17068 /* end confdefs.h. */
17071 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
17072 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
17073 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
17074 #include <stdint.h>
17077 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17078 included before <wchar.h>. */
17079 #include <stddef.h>
17080 #include <signal.h>
17082 # include <stdio.h>
17084 # include <wchar.h>
17089 #include <string.h>
17090 #define MVAL(macro) MVAL1(macro)
17091 #define MVAL1(expression) #expression
17092 static const char *macro_values[] =
17126 for (mv = macro_values; *mv != NULL; mv++)
17128 const char *value = *mv;
17129 /* Test whether it looks like a cast expression. */
17130 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
17131 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
17132 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
17133 || strncmp (value, "((int)"/*)*/, 6) == 0
17134 || strncmp (value, "((signed short)"/*)*/, 15) == 0
17135 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
17136 return mv - macro_values + 1;
17144 if ac_fn_c_try_run
"$LINENO"; then :
17145 gl_cv_header_working_stdint_h
=yes
17147 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17148 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17153 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
17157 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
17159 if test "$gl_cv_header_working_stdint_h" = yes; then
17162 for ac_header
in sys
/inttypes.h sys
/bitypes.h
17164 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17165 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17166 eval as_val
=\$
$as_ac_Header
17167 if test "x$as_val" = x
""yes; then :
17168 cat >>confdefs.h
<<_ACEOF
17169 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17176 if test $ac_cv_header_sys_inttypes_h = yes; then
17177 HAVE_SYS_INTTYPES_H
=1
17179 HAVE_SYS_INTTYPES_H
=0
17182 if test $ac_cv_header_sys_bitypes_h = yes; then
17183 HAVE_SYS_BITYPES_H
=1
17185 HAVE_SYS_BITYPES_H
=0
17191 if test $APPLE_UNIVERSAL_BUILD = 0; then
17194 for gltype
in ptrdiff_t size_t
; do
17195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
17196 $as_echo_n "checking for bit size of $gltype... " >&6; }
17197 if { as_var
=gl_cv_bitsizeof_
${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
17198 $as_echo_n "(cached) " >&6
17200 if ac_fn_c_compute_int
"$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
17201 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17202 included before <wchar.h>. */
17203 #include <stddef.h>
17204 #include <signal.h>
17206 # include <stdio.h>
17208 # include <wchar.h>
17211 #include <limits.h>"; then :
17217 eval gl_cv_bitsizeof_
${gltype}=\
$result
17220 eval ac_res
=\
$gl_cv_bitsizeof_${gltype}
17221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17222 $as_echo "$ac_res" >&6; }
17223 eval result
=\
$gl_cv_bitsizeof_${gltype}
17224 if test $result = unknown
; then
17227 GLTYPE
=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17228 cat >>confdefs.h
<<_ACEOF
17229 #define BITSIZEOF_${GLTYPE} $result
17232 eval BITSIZEOF_
${GLTYPE}=\
$result
17239 for gltype
in sig_atomic_t wchar_t wint_t
; do
17240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
17241 $as_echo_n "checking for bit size of $gltype... " >&6; }
17242 if { as_var
=gl_cv_bitsizeof_
${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
17243 $as_echo_n "(cached) " >&6
17245 if ac_fn_c_compute_int
"$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
17246 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17247 included before <wchar.h>. */
17248 #include <stddef.h>
17249 #include <signal.h>
17251 # include <stdio.h>
17253 # include <wchar.h>
17256 #include <limits.h>"; then :
17262 eval gl_cv_bitsizeof_
${gltype}=\
$result
17265 eval ac_res
=\
$gl_cv_bitsizeof_${gltype}
17266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17267 $as_echo "$ac_res" >&6; }
17268 eval result
=\
$gl_cv_bitsizeof_${gltype}
17269 if test $result = unknown
; then
17272 GLTYPE
=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17273 cat >>confdefs.h
<<_ACEOF
17274 #define BITSIZEOF_${GLTYPE} $result
17277 eval BITSIZEOF_
${GLTYPE}=\
$result
17283 for gltype
in sig_atomic_t wchar_t wint_t
; do
17284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
17285 $as_echo_n "checking whether $gltype is signed... " >&6; }
17286 if { as_var
=gl_cv_type_
${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then :
17287 $as_echo_n "(cached) " >&6
17289 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17290 /* end confdefs.h. */
17292 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17293 included before <wchar.h>. */
17294 #include <stddef.h>
17295 #include <signal.h>
17297 # include <stdio.h>
17299 # include <wchar.h>
17302 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
17311 if ac_fn_c_try_compile
"$LINENO"; then :
17316 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17317 eval gl_cv_type_
${gltype}_signed
=\
$result
17320 eval ac_res
=\
$gl_cv_type_${gltype}_signed
17321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17322 $as_echo "$ac_res" >&6; }
17323 eval result
=\
$gl_cv_type_${gltype}_signed
17324 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17325 if test "$result" = yes; then
17326 cat >>confdefs.h
<<_ACEOF
17327 #define HAVE_SIGNED_${GLTYPE} 1
17330 eval HAVE_SIGNED_
${GLTYPE}=1
17332 eval HAVE_SIGNED_
${GLTYPE}=0
17337 gl_cv_type_ptrdiff_t_signed
=yes
17338 gl_cv_type_size_t_signed
=no
17339 if test $APPLE_UNIVERSAL_BUILD = 0; then
17342 for gltype
in ptrdiff_t size_t
; do
17343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
17344 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
17345 if { as_var
=gl_cv_type_
${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
17346 $as_echo_n "(cached) " >&6
17348 eval gl_cv_type_
${gltype}_suffix
=no
17349 eval result
=\
$gl_cv_type_${gltype}_signed
17350 if test "$result" = yes; then
17355 for glsuf
in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64
; do
17357 '') gltype1
='int';;
17358 l
) gltype1
='long int';;
17359 ll
) gltype1
='long long int';;
17360 i64
) gltype1
='__int64';;
17361 u
) gltype1
='unsigned int';;
17362 ul
) gltype1
='unsigned long int';;
17363 ull
) gltype1
='unsigned long long int';;
17364 ui64
)gltype1
='unsigned __int64';;
17366 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17367 /* end confdefs.h. */
17369 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17370 included before <wchar.h>. */
17371 #include <stddef.h>
17372 #include <signal.h>
17374 # include <stdio.h>
17376 # include <wchar.h>
17379 extern $gltype foo;
17380 extern $gltype1 foo;
17389 if ac_fn_c_try_compile
"$LINENO"; then :
17390 eval gl_cv_type_
${gltype}_suffix
=\
$glsuf
17392 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17393 eval result
=\
$gl_cv_type_${gltype}_suffix
17394 test "$result" != no
&& break
17397 eval ac_res
=\
$gl_cv_type_${gltype}_suffix
17398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17399 $as_echo "$ac_res" >&6; }
17400 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17401 eval result
=\
$gl_cv_type_${gltype}_suffix
17402 test "$result" = no
&& result
=
17403 eval ${GLTYPE}_SUFFIX
=\
$result
17404 cat >>confdefs.h
<<_ACEOF
17405 #define ${GLTYPE}_SUFFIX $result
17414 for gltype
in sig_atomic_t wchar_t wint_t
; do
17415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
17416 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
17417 if { as_var
=gl_cv_type_
${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
17418 $as_echo_n "(cached) " >&6
17420 eval gl_cv_type_
${gltype}_suffix
=no
17421 eval result
=\
$gl_cv_type_${gltype}_signed
17422 if test "$result" = yes; then
17427 for glsuf
in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64
; do
17429 '') gltype1
='int';;
17430 l
) gltype1
='long int';;
17431 ll
) gltype1
='long long int';;
17432 i64
) gltype1
='__int64';;
17433 u
) gltype1
='unsigned int';;
17434 ul
) gltype1
='unsigned long int';;
17435 ull
) gltype1
='unsigned long long int';;
17436 ui64
)gltype1
='unsigned __int64';;
17438 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17439 /* end confdefs.h. */
17441 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17442 included before <wchar.h>. */
17443 #include <stddef.h>
17444 #include <signal.h>
17446 # include <stdio.h>
17448 # include <wchar.h>
17451 extern $gltype foo;
17452 extern $gltype1 foo;
17461 if ac_fn_c_try_compile
"$LINENO"; then :
17462 eval gl_cv_type_
${gltype}_suffix
=\
$glsuf
17464 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17465 eval result
=\
$gl_cv_type_${gltype}_suffix
17466 test "$result" != no
&& break
17469 eval ac_res
=\
$gl_cv_type_${gltype}_suffix
17470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17471 $as_echo "$ac_res" >&6; }
17472 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17473 eval result
=\
$gl_cv_type_${gltype}_suffix
17474 test "$result" = no
&& result
=
17475 eval ${GLTYPE}_SUFFIX
=\
$result
17476 cat >>confdefs.h
<<_ACEOF
17477 #define ${GLTYPE}_SUFFIX $result
17488 # Code from module stdio:
17500 if test $gl_cv_have_include_next = yes; then
17501 gl_cv_next_stdio_h
='<'stdio.h
'>'
17503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
17504 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
17505 if test "${gl_cv_next_stdio_h+set}" = set; then :
17506 $as_echo_n "(cached) " >&6
17509 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17510 /* end confdefs.h. */
17515 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
17516 *) gl_absname_cpp
="$ac_cpp" ;;
17518 gl_cv_next_stdio_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17519 sed -n '\#/stdio.h#{
17520 s#.*"\(.*/stdio.h\)".*#\1#
17528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
17529 $as_echo "$gl_cv_next_stdio_h" >&6; }
17531 NEXT_STDIO_H
=$gl_cv_next_stdio_h
17533 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
17534 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17535 gl_next_as_first_directive
='<'stdio.h
'>'
17537 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17538 gl_next_as_first_directive
=$gl_cv_next_stdio_h
17540 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
=$gl_next_as_first_directive
17559 # Code from module stdlib:
17570 if test $gl_cv_have_include_next = yes; then
17571 gl_cv_next_stdlib_h
='<'stdlib.h
'>'
17573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
17574 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
17575 if test "${gl_cv_next_stdlib_h+set}" = set; then :
17576 $as_echo_n "(cached) " >&6
17579 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17580 /* end confdefs.h. */
17581 #include <stdlib.h>
17585 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
17586 *) gl_absname_cpp
="$ac_cpp" ;;
17588 gl_cv_next_stdlib_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17589 sed -n '\#/stdlib.h#{
17590 s#.*"\(.*/stdlib.h\)".*#\1#
17598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
17599 $as_echo "$gl_cv_next_stdlib_h" >&6; }
17601 NEXT_STDLIB_H
=$gl_cv_next_stdlib_h
17603 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
17604 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17605 gl_next_as_first_directive
='<'stdlib.h
'>'
17607 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17608 gl_next_as_first_directive
=$gl_cv_next_stdlib_h
17610 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
=$gl_next_as_first_directive
17618 # Code from module strftime:
17629 gl_LIBOBJS
="$gl_LIBOBJS strftime.$ac_objext"
17632 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
17640 $as_echo "#define my_strftime nstrftime" >>confdefs.h
17644 # Code from module symlink:
17648 if test $ac_cv_func_symlink = no
; then
17658 gl_LIBOBJS
="$gl_LIBOBJS symlink.$ac_objext"
17661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symlink handles trailing slash correctly" >&5
17662 $as_echo_n "checking whether symlink handles trailing slash correctly... " >&6; }
17663 if test "${gl_cv_func_symlink_works+set}" = set; then :
17664 $as_echo_n "(cached) " >&6
17666 if test "$cross_compiling" = yes; then :
17667 gl_cv_func_symlink_works
="guessing no"
17669 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17670 /* end confdefs.h. */
17671 #include <unistd.h>
17677 if (!symlink ("a", "conftest.link/"))
17679 if (symlink ("conftest.f", "conftest.lnk2"))
17681 else if (!symlink ("a", "conftest.lnk2/"))
17689 if ac_fn_c_try_run
"$LINENO"; then :
17690 gl_cv_func_symlink_works
=yes
17692 gl_cv_func_symlink_works
=no
17694 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17695 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17698 rm -f conftest.f conftest.link conftest.lnk2
17700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_symlink_works" >&5
17701 $as_echo "$gl_cv_func_symlink_works" >&6; }
17702 if test "$gl_cv_func_symlink_works" != yes; then
17712 gl_LIBOBJS
="$gl_LIBOBJS symlink.$ac_objext"
17724 # Code from module sys_stat:
17741 if test $gl_cv_have_include_next = yes; then
17742 gl_cv_next_sys_stat_h
='<'sys
/stat.h
'>'
17744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
17745 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
17746 if test "${gl_cv_next_sys_stat_h+set}" = set; then :
17747 $as_echo_n "(cached) " >&6
17750 if test $ac_cv_header_sys_stat_h = yes; then
17753 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17754 /* end confdefs.h. */
17755 #include <sys/stat.h>
17759 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
17760 *) gl_absname_cpp
="$ac_cpp" ;;
17762 gl_cv_next_sys_stat_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17763 sed -n '\#/sys/stat.h#{
17764 s#.*"\(.*/sys/stat.h\)".*#\1#
17770 gl_cv_next_sys_stat_h
='<'sys
/stat.h
'>'
17775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
17776 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
17778 NEXT_SYS_STAT_H
=$gl_cv_next_sys_stat_h
17780 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
17781 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17782 gl_next_as_first_directive
='<'sys
/stat.h
'>'
17784 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17785 gl_next_as_first_directive
=$gl_cv_next_sys_stat_h
17787 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
=$gl_next_as_first_directive
17793 ac_fn_c_check_type
"$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
17794 #include <sys/stat.h>
17796 if test "x$ac_cv_type_nlink_t" = x
""yes; then :
17800 $as_echo "#define nlink_t int" >>confdefs.h
17808 # Code from module time:
17812 # Code from module time_r:
17820 if test $ac_cv_have_decl_localtime_r = no
; then
17821 HAVE_DECL_LOCALTIME_R
=0
17825 if test $ac_cv_func_localtime_r = yes; then
17827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime_r is compatible with its POSIX signature" >&5
17828 $as_echo_n "checking whether localtime_r is compatible with its POSIX signature... " >&6; }
17829 if test "${gl_cv_time_r_posix+set}" = set; then :
17830 $as_echo_n "(cached) " >&6
17832 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17833 /* end confdefs.h. */
17838 /* We don't need to append 'restrict's to the argument types,
17839 even though the POSIX signature has the 'restrict's,
17840 since C99 says they can't affect type compatibility. */
17841 struct tm * (*ptr) (time_t const *, struct tm *) = localtime_r;
17843 /* Check the return type is a pointer.
17844 On HP-UX 10 it is 'int'. */
17845 *localtime_r (0, 0);
17851 if ac_fn_c_try_compile
"$LINENO"; then :
17852 gl_cv_time_r_posix
=yes
17854 gl_cv_time_r_posix
=no
17856 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_time_r_posix" >&5
17860 $as_echo "$gl_cv_time_r_posix" >&6; }
17861 if test $gl_cv_time_r_posix = yes; then
17862 REPLACE_LOCALTIME_R
=0
17864 REPLACE_LOCALTIME_R
=1
17869 if test $HAVE_LOCALTIME_R = 0 ||
test $REPLACE_LOCALTIME_R = 1; then
17878 gl_LIBOBJS
="$gl_LIBOBJS time_r.$ac_objext"
17892 # Code from module unistd:
17906 if test $gl_cv_have_include_next = yes; then
17907 gl_cv_next_unistd_h
='<'unistd.h
'>'
17909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
17910 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
17911 if test "${gl_cv_next_unistd_h+set}" = set; then :
17912 $as_echo_n "(cached) " >&6
17915 if test $ac_cv_header_unistd_h = yes; then
17918 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17919 /* end confdefs.h. */
17920 #include <unistd.h>
17924 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
17925 *) gl_absname_cpp
="$ac_cpp" ;;
17927 gl_cv_next_unistd_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17928 sed -n '\#/unistd.h#{
17929 s#.*"\(.*/unistd.h\)".*#\1#
17935 gl_cv_next_unistd_h
='<'unistd.h
'>'
17940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
17941 $as_echo "$gl_cv_next_unistd_h" >&6; }
17943 NEXT_UNISTD_H
=$gl_cv_next_unistd_h
17945 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
17946 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17947 gl_next_as_first_directive
='<'unistd.h
'>'
17949 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17950 gl_next_as_first_directive
=$gl_cv_next_unistd_h
17952 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
=$gl_next_as_first_directive
17957 if test $ac_cv_header_unistd_h = yes; then
17966 # Code from module warn-on-use:
17967 # End of code from modules
17988 gl_source_base
='tests'
17989 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
17991 gl_module_indicator_condition
=$gltests_WITNESS
18001 LIBGNU_LIBDEPS
="$gl_libdeps"
18003 LIBGNU_LTLIBDEPS
="$gl_ltlibdeps"
18008 for ac_func
in grantpt
18010 ac_fn_c_check_func
"$LINENO" "grantpt" "ac_cv_func_grantpt"
18011 if test "x$ac_cv_func_grantpt" = x
""yes; then :
18012 cat >>confdefs.h
<<_ACEOF
18013 #define HAVE_GRANTPT 1
18020 # PTY-related GNU extensions.
18021 for ac_func
in getpt
18023 ac_fn_c_check_func
"$LINENO" "getpt" "ac_cv_func_getpt"
18024 if test "x$ac_cv_func_getpt" = x
""yes; then :
18025 cat >>confdefs.h
<<_ACEOF
18026 #define HAVE_GETPT 1
18033 # Check this now, so that we will NOT find the above functions in ncurses.
18034 # That is because we have not set up to link ncurses in lib-src.
18035 # It's better to believe a function is not available
18036 # than to expect to find it in ncurses.
18037 # Also we need tputs and friends to be able to build at all.
18038 have_tputs_et_al
=true
18039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tputs" >&5
18040 $as_echo_n "checking for library containing tputs... " >&6; }
18041 if test "${ac_cv_search_tputs+set}" = set; then :
18042 $as_echo_n "(cached) " >&6
18044 ac_func_search_save_LIBS
=$LIBS
18045 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18046 /* end confdefs.h. */
18048 /* Override any GCC internal prototype to avoid an error.
18049 Use char because int might match the return type of a GCC
18050 builtin and then its argument prototype would still apply. */
18063 for ac_lib
in '' ncurses terminfo termcap
; do
18064 if test -z "$ac_lib"; then
18065 ac_res
="none required"
18068 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
18070 if ac_fn_c_try_link
"$LINENO"; then :
18071 ac_cv_search_tputs
=$ac_res
18073 rm -f core conftest.err conftest.
$ac_objext \
18075 if test "${ac_cv_search_tputs+set}" = set; then :
18079 if test "${ac_cv_search_tputs+set}" = set; then :
18082 ac_cv_search_tputs
=no
18084 rm conftest.
$ac_ext
18085 LIBS
=$ac_func_search_save_LIBS
18087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tputs" >&5
18088 $as_echo "$ac_cv_search_tputs" >&6; }
18089 ac_res
=$ac_cv_search_tputs
18090 if test "$ac_res" != no
; then :
18091 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
18094 have_tputs_et_al
=false
18097 if test "$have_tputs_et_al" != true
; then
18098 as_fn_error
"I couldn't find termcap functions (tputs and friends).
18099 Maybe some development libraries/packages are missing? Try installing
18100 libncurses-dev(el), libterminfo-dev(el) or similar." "$LINENO" 5
18102 # Must define this when any termcap library is found.
18104 $as_echo "#define HAVE_LIBNCURSES 1" >>confdefs.h
18106 ## FIXME This was the cpp logic, but I am not sure it is right.
18107 ## The above test has not necessarily found libncurses.
18108 HAVE_LIBNCURSES
=yes
18110 ## Use terminfo instead of termcap?
18111 ## Note only system files NOT using terminfo are:
18112 ## freebsd < 40000, ms-w32, msdos, netbsd < 599002500, and
18113 ## darwin|gnu without ncurses.
18117 ## cygwin: Fewer environment variables to go wrong, more terminal types.
18118 ## hpux10-20: Use the system provided termcap(3) library.
18119 ## openbsd: David Mazieres <dm@reeducation-labor.lcs.mit.edu> says this
18120 ## is necessary. Otherwise Emacs dumps core when run -nw.
18121 aix4-2|cygwin|hpux
*|irix6-5|openbsd|sol2
*|unixware
) TERMINFO
=yes ;;
18123 ## darwin: Prevents crashes when running Emacs in Terminal.app under 10.2.
18124 ## The ncurses library has been moved out of the System framework in
18125 ## Mac OS X 10.2. So if configure detects it, set the command-line
18126 ## option to use it.
18128 ## (HAVE_LIBNCURSES was not always true, but is since 2010-03-18.)
18129 if test "x$HAVE_LIBNCURSES" = "xyes"; then
18131 LIBS_TERMCAP
="-lncurses"
18136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FreeBSD is new enough to use terminfo" >&5
18137 $as_echo_n "checking whether FreeBSD is new enough to use terminfo... " >&6; }
18138 if test "${emacs_cv_freebsd_terminfo+set}" = set; then :
18139 $as_echo_n "(cached) " >&6
18141 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18142 /* end confdefs.h. */
18143 #include <osreldate.h>
18147 #if __FreeBSD_version < 400000
18155 if ac_fn_c_try_link
"$LINENO"; then :
18156 emacs_cv_freebsd_terminfo
=yes
18158 emacs_cv_freebsd_terminfo
=no
18160 rm -f core conftest.err conftest.
$ac_objext \
18161 conftest
$ac_exeext conftest.
$ac_ext
18165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_freebsd_terminfo" >&5
18166 $as_echo "$emacs_cv_freebsd_terminfo" >&6; }
18168 if test $emacs_cv_freebsd_terminfo = yes; then
18170 LIBS_TERMCAP
="-lncurses"
18172 LIBS_TERMCAP
="-ltermcap"
18177 if test $ac_cv_search_tputs = -lterminfo; then
18179 LIBS_TERMCAP
="-lterminfo"
18181 LIBS_TERMCAP
="-ltermcap"
18188 ## hpux: Make sure we get select from libc rather than from libcurses
18189 ## because libcurses on HPUX 10.10 has a broken version of select.
18190 ## We used to use -lc -lcurses, but this may be cleaner.
18191 hpux
*) LIBS_TERMCAP
="-ltermcap" ;;
18193 openbsd
) LIBS_TERMCAP
="-lncurses" ;;
18195 ## Must use system termcap, if we use any termcap. It does special things.
18196 sol2
*) test "$TERMINFO" != yes && LIBS_TERMCAP
="-ltermcap" ;;
18199 TERMCAP_OBJ
=tparam.o
18200 if test $TERMINFO = yes; then
18202 $as_echo "#define TERMINFO 1" >>confdefs.h
18205 ## Default used to be -ltermcap. Add a case above if need something else.
18206 test "x$LIBS_TERMCAP" = "x" && LIBS_TERMCAP
="-lcurses"
18208 TERMCAP_OBJ
=terminfo.o
18214 # Do we have res_init, for detecting changes in /etc/resolv.conf?
18216 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18217 /* end confdefs.h. */
18218 #include <netinet/in.h>
18219 #include <arpa/nameser.h>
18220 #include <resolv.h>
18229 if ac_fn_c_try_link
"$LINENO"; then :
18234 rm -f core conftest.err conftest.
$ac_objext \
18235 conftest
$ac_exeext conftest.
$ac_ext
18236 if test "$have_res_init" = no
; then
18238 LIBS
="$LIBS -lresolv"
18239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5
18240 $as_echo_n "checking for res_init with -lresolv... " >&6; }
18241 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18242 /* end confdefs.h. */
18243 #include <netinet/in.h>
18244 #include <arpa/nameser.h>
18245 #include <resolv.h>
18254 if ac_fn_c_try_link
"$LINENO"; then :
18259 rm -f core conftest.err conftest.
$ac_objext \
18260 conftest
$ac_exeext conftest.
$ac_ext
18261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5
18262 $as_echo "$have_res_init" >&6; }
18263 if test "$have_res_init" = yes ; then
18269 if test "$have_res_init" = yes; then
18271 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
18275 # Do we need the Hesiod library to provide the support routines?
18277 if test "$with_hesiod" != no
; then
18278 # Don't set $LIBS here -- see comments above. FIXME which comments?
18279 ac_fn_c_check_func
"$LINENO" "res_send" "ac_cv_func_res_send"
18280 if test "x$ac_cv_func_res_send" = x
""yes; then :
18283 ac_fn_c_check_func
"$LINENO" "__res_send" "ac_cv_func___res_send"
18284 if test "x$ac_cv_func___res_send" = x
""yes; then :
18287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5
18288 $as_echo_n "checking for res_send in -lresolv... " >&6; }
18289 if test "${ac_cv_lib_resolv_res_send+set}" = set; then :
18290 $as_echo_n "(cached) " >&6
18292 ac_check_lib_save_LIBS
=$LIBS
18293 LIBS
="-lresolv $LIBS"
18294 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18295 /* end confdefs.h. */
18297 /* Override any GCC internal prototype to avoid an error.
18298 Use char because int might match the return type of a GCC
18299 builtin and then its argument prototype would still apply. */
18307 return res_send ();
18312 if ac_fn_c_try_link
"$LINENO"; then :
18313 ac_cv_lib_resolv_res_send
=yes
18315 ac_cv_lib_resolv_res_send
=no
18317 rm -f core conftest.err conftest.
$ac_objext \
18318 conftest
$ac_exeext conftest.
$ac_ext
18319 LIBS
=$ac_check_lib_save_LIBS
18321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5
18322 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
18323 if test "x$ac_cv_lib_resolv_res_send" = x
""yes; then :
18326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5
18327 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
18328 if test "${ac_cv_lib_resolv___res_send+set}" = set; then :
18329 $as_echo_n "(cached) " >&6
18331 ac_check_lib_save_LIBS
=$LIBS
18332 LIBS
="-lresolv $LIBS"
18333 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18334 /* end confdefs.h. */
18336 /* Override any GCC internal prototype to avoid an error.
18337 Use char because int might match the return type of a GCC
18338 builtin and then its argument prototype would still apply. */
18342 char __res_send ();
18346 return __res_send ();
18351 if ac_fn_c_try_link
"$LINENO"; then :
18352 ac_cv_lib_resolv___res_send
=yes
18354 ac_cv_lib_resolv___res_send
=no
18356 rm -f core conftest.err conftest.
$ac_objext \
18357 conftest
$ac_exeext conftest.
$ac_ext
18358 LIBS
=$ac_check_lib_save_LIBS
18360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5
18361 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
18362 if test "x$ac_cv_lib_resolv___res_send" = x
""yes; then :
18372 if test "$resolv" = yes ; then
18377 ac_fn_c_check_func
"$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost"
18378 if test "x$ac_cv_func_hes_getmailhost" = x
""yes; then :
18381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5
18382 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
18383 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then :
18384 $as_echo_n "(cached) " >&6
18386 ac_check_lib_save_LIBS
=$LIBS
18387 LIBS
="-lhesiod $RESOLVLIB $LIBS"
18388 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18389 /* end confdefs.h. */
18391 /* Override any GCC internal prototype to avoid an error.
18392 Use char because int might match the return type of a GCC
18393 builtin and then its argument prototype would still apply. */
18397 char hes_getmailhost ();
18401 return hes_getmailhost ();
18406 if ac_fn_c_try_link
"$LINENO"; then :
18407 ac_cv_lib_hesiod_hes_getmailhost
=yes
18409 ac_cv_lib_hesiod_hes_getmailhost
=no
18411 rm -f core conftest.err conftest.
$ac_objext \
18412 conftest
$ac_exeext conftest.
$ac_ext
18413 LIBS
=$ac_check_lib_save_LIBS
18415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
18416 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
18417 if test "x$ac_cv_lib_hesiod_hes_getmailhost" = x
""yes; then :
18426 if test x
"$hesiod" = xyes
; then
18428 $as_echo "#define HAVE_LIBHESIOD 1" >>confdefs.h
18435 # Do we need libresolv (due to res_init or Hesiod)?
18436 if test "$resolv" = yes ; then
18438 $as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
18446 # These tell us which Kerberos-related libraries to use.
18453 if test "${with_kerberos}" != no
; then
18454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
18455 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
18456 if test "${ac_cv_lib_com_err_com_err+set}" = set; then :
18457 $as_echo_n "(cached) " >&6
18459 ac_check_lib_save_LIBS
=$LIBS
18460 LIBS
="-lcom_err $LIBS"
18461 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18462 /* end confdefs.h. */
18464 /* Override any GCC internal prototype to avoid an error.
18465 Use char because int might match the return type of a GCC
18466 builtin and then its argument prototype would still apply. */
18479 if ac_fn_c_try_link
"$LINENO"; then :
18480 ac_cv_lib_com_err_com_err
=yes
18482 ac_cv_lib_com_err_com_err
=no
18484 rm -f core conftest.err conftest.
$ac_objext \
18485 conftest
$ac_exeext conftest.
$ac_ext
18486 LIBS
=$ac_check_lib_save_LIBS
18488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
18489 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
18490 if test "x$ac_cv_lib_com_err_com_err" = x
""yes; then :
18496 if test $have_com_err = yes; then
18497 COM_ERRLIB
=-lcom_err
18498 LIBS
="$COM_ERRLIB $LIBS"
18500 $as_echo "#define HAVE_LIBCOM_ERR 1" >>confdefs.h
18503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5
18504 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
18505 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then :
18506 $as_echo_n "(cached) " >&6
18508 ac_check_lib_save_LIBS
=$LIBS
18509 LIBS
="-lcrypto $LIBS"
18510 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18511 /* end confdefs.h. */
18513 /* Override any GCC internal prototype to avoid an error.
18514 Use char because int might match the return type of a GCC
18515 builtin and then its argument prototype would still apply. */
18519 char mit_des_cbc_encrypt ();
18523 return mit_des_cbc_encrypt ();
18528 if ac_fn_c_try_link
"$LINENO"; then :
18529 ac_cv_lib_crypto_mit_des_cbc_encrypt
=yes
18531 ac_cv_lib_crypto_mit_des_cbc_encrypt
=no
18533 rm -f core conftest.err conftest.
$ac_objext \
18534 conftest
$ac_exeext conftest.
$ac_ext
18535 LIBS
=$ac_check_lib_save_LIBS
18537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
18538 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
18539 if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = x
""yes; then :
18545 if test $have_crypto = yes; then
18547 LIBS
="$CRYPTOLIB $LIBS"
18549 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
18552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
18553 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
18554 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then :
18555 $as_echo_n "(cached) " >&6
18557 ac_check_lib_save_LIBS
=$LIBS
18558 LIBS
="-lk5crypto $LIBS"
18559 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18560 /* end confdefs.h. */
18562 /* Override any GCC internal prototype to avoid an error.
18563 Use char because int might match the return type of a GCC
18564 builtin and then its argument prototype would still apply. */
18568 char mit_des_cbc_encrypt ();
18572 return mit_des_cbc_encrypt ();
18577 if ac_fn_c_try_link
"$LINENO"; then :
18578 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=yes
18580 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=no
18582 rm -f core conftest.err conftest.
$ac_objext \
18583 conftest
$ac_exeext conftest.
$ac_ext
18584 LIBS
=$ac_check_lib_save_LIBS
18586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
18587 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
18588 if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = x
""yes; then :
18594 if test $have_k5crypto = yes; then
18595 CRYPTOLIB
=-lk5crypto
18596 LIBS
="$CRYPTOLIB $LIBS"
18598 $as_echo "#define HAVE_LIBK5CRYPTO 1" >>confdefs.h
18601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
18602 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
18603 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then :
18604 $as_echo_n "(cached) " >&6
18606 ac_check_lib_save_LIBS
=$LIBS
18607 LIBS
="-lkrb5 $LIBS"
18608 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18609 /* end confdefs.h. */
18611 /* Override any GCC internal prototype to avoid an error.
18612 Use char because int might match the return type of a GCC
18613 builtin and then its argument prototype would still apply. */
18617 char krb5_init_context ();
18621 return krb5_init_context ();
18626 if ac_fn_c_try_link
"$LINENO"; then :
18627 ac_cv_lib_krb5_krb5_init_context
=yes
18629 ac_cv_lib_krb5_krb5_init_context
=no
18631 rm -f core conftest.err conftest.
$ac_objext \
18632 conftest
$ac_exeext conftest.
$ac_ext
18633 LIBS
=$ac_check_lib_save_LIBS
18635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
18636 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
18637 if test "x$ac_cv_lib_krb5_krb5_init_context" = x
""yes; then :
18643 if test $have_krb5=yes; then
18645 LIBS
="$KRB5LIB $LIBS"
18647 $as_echo "#define HAVE_LIBKRB5 1" >>confdefs.h
18650 if test "${with_kerberos5}" = no
; then
18651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
18652 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
18653 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then :
18654 $as_echo_n "(cached) " >&6
18656 ac_check_lib_save_LIBS
=$LIBS
18657 LIBS
="-ldes425 $LIBS"
18658 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18659 /* end confdefs.h. */
18661 /* Override any GCC internal prototype to avoid an error.
18662 Use char because int might match the return type of a GCC
18663 builtin and then its argument prototype would still apply. */
18667 char des_cbc_encrypt ();
18671 return des_cbc_encrypt ();
18676 if ac_fn_c_try_link
"$LINENO"; then :
18677 ac_cv_lib_des425_des_cbc_encrypt
=yes
18679 ac_cv_lib_des425_des_cbc_encrypt
=no
18681 rm -f core conftest.err conftest.
$ac_objext \
18682 conftest
$ac_exeext conftest.
$ac_ext
18683 LIBS
=$ac_check_lib_save_LIBS
18685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
18686 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
18687 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = x
""yes; then :
18693 if test $have_des425 = yes; then
18695 LIBS
="$DESLIB $LIBS"
18697 $as_echo "#define HAVE_LIBDES425 1" >>confdefs.h
18700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
18701 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
18702 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then :
18703 $as_echo_n "(cached) " >&6
18705 ac_check_lib_save_LIBS
=$LIBS
18707 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18708 /* end confdefs.h. */
18710 /* Override any GCC internal prototype to avoid an error.
18711 Use char because int might match the return type of a GCC
18712 builtin and then its argument prototype would still apply. */
18716 char des_cbc_encrypt ();
18720 return des_cbc_encrypt ();
18725 if ac_fn_c_try_link
"$LINENO"; then :
18726 ac_cv_lib_des_des_cbc_encrypt
=yes
18728 ac_cv_lib_des_des_cbc_encrypt
=no
18730 rm -f core conftest.err conftest.
$ac_objext \
18731 conftest
$ac_exeext conftest.
$ac_ext
18732 LIBS
=$ac_check_lib_save_LIBS
18734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
18735 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
18736 if test "x$ac_cv_lib_des_des_cbc_encrypt" = x
""yes; then :
18742 if test $have_des = yes; then
18744 LIBS
="$DESLIB $LIBS"
18746 $as_echo "#define HAVE_LIBDES 1" >>confdefs.h
18750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5
18751 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
18752 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then :
18753 $as_echo_n "(cached) " >&6
18755 ac_check_lib_save_LIBS
=$LIBS
18756 LIBS
="-lkrb4 $LIBS"
18757 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18758 /* end confdefs.h. */
18760 /* Override any GCC internal prototype to avoid an error.
18761 Use char because int might match the return type of a GCC
18762 builtin and then its argument prototype would still apply. */
18766 char krb_get_cred ();
18770 return krb_get_cred ();
18775 if ac_fn_c_try_link
"$LINENO"; then :
18776 ac_cv_lib_krb4_krb_get_cred
=yes
18778 ac_cv_lib_krb4_krb_get_cred
=no
18780 rm -f core conftest.err conftest.
$ac_objext \
18781 conftest
$ac_exeext conftest.
$ac_ext
18782 LIBS
=$ac_check_lib_save_LIBS
18784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5
18785 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
18786 if test "x$ac_cv_lib_krb4_krb_get_cred" = x
""yes; then :
18792 if test $have_krb4 = yes; then
18794 LIBS
="$KRB4LIB $LIBS"
18796 $as_echo "#define HAVE_LIBKRB4 1" >>confdefs.h
18799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5
18800 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
18801 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then :
18802 $as_echo_n "(cached) " >&6
18804 ac_check_lib_save_LIBS
=$LIBS
18806 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18807 /* end confdefs.h. */
18809 /* Override any GCC internal prototype to avoid an error.
18810 Use char because int might match the return type of a GCC
18811 builtin and then its argument prototype would still apply. */
18815 char krb_get_cred ();
18819 return krb_get_cred ();
18824 if ac_fn_c_try_link
"$LINENO"; then :
18825 ac_cv_lib_krb_krb_get_cred
=yes
18827 ac_cv_lib_krb_krb_get_cred
=no
18829 rm -f core conftest.err conftest.
$ac_objext \
18830 conftest
$ac_exeext conftest.
$ac_ext
18831 LIBS
=$ac_check_lib_save_LIBS
18833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5
18834 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
18835 if test "x$ac_cv_lib_krb_krb_get_cred" = x
""yes; then :
18841 if test $have_krb = yes; then
18843 LIBS
="$KRB4LIB $LIBS"
18845 $as_echo "#define HAVE_LIBKRB 1" >>confdefs.h
18851 if test "${with_kerberos5}" != no
; then
18852 for ac_header
in krb5.h
18854 ac_fn_c_check_header_mongrel
"$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
18855 if test "x$ac_cv_header_krb5_h" = x
""yes; then :
18856 cat >>confdefs.h
<<_ACEOF
18857 #define HAVE_KRB5_H 1
18859 ac_fn_c_check_member
"$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h>
18861 if test "x$ac_cv_member_krb5_error_text" = x
""yes; then :
18863 cat >>confdefs.h
<<_ACEOF
18864 #define HAVE_KRB5_ERROR_TEXT 1
18869 ac_fn_c_check_member
"$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h>
18871 if test "x$ac_cv_member_krb5_error_e_text" = x
""yes; then :
18873 cat >>confdefs.h
<<_ACEOF
18874 #define HAVE_KRB5_ERROR_E_TEXT 1
18885 for ac_header
in des.h
18887 ac_fn_c_check_header_mongrel
"$LINENO" "des.h" "ac_cv_header_des_h" "$ac_includes_default"
18888 if test "x$ac_cv_header_des_h" = x
""yes; then :
18889 cat >>confdefs.h
<<_ACEOF
18890 #define HAVE_DES_H 1
18894 for ac_header
in kerberosIV
/des.h
18896 ac_fn_c_check_header_mongrel
"$LINENO" "kerberosIV/des.h" "ac_cv_header_kerberosIV_des_h" "$ac_includes_default"
18897 if test "x$ac_cv_header_kerberosIV_des_h" = x
""yes; then :
18898 cat >>confdefs.h
<<_ACEOF
18899 #define HAVE_KERBEROSIV_DES_H 1
18903 for ac_header
in kerberos
/des.h
18905 ac_fn_c_check_header_mongrel
"$LINENO" "kerberos/des.h" "ac_cv_header_kerberos_des_h" "$ac_includes_default"
18906 if test "x$ac_cv_header_kerberos_des_h" = x
""yes; then :
18907 cat >>confdefs.h
<<_ACEOF
18908 #define HAVE_KERBEROS_DES_H 1
18923 for ac_header
in krb.h
18925 ac_fn_c_check_header_mongrel
"$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
18926 if test "x$ac_cv_header_krb_h" = x
""yes; then :
18927 cat >>confdefs.h
<<_ACEOF
18928 #define HAVE_KRB_H 1
18932 for ac_header
in kerberosIV
/krb.h
18934 ac_fn_c_check_header_mongrel
"$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default"
18935 if test "x$ac_cv_header_kerberosIV_krb_h" = x
""yes; then :
18936 cat >>confdefs.h
<<_ACEOF
18937 #define HAVE_KERBEROSIV_KRB_H 1
18941 for ac_header
in kerberos
/krb.h
18943 ac_fn_c_check_header_mongrel
"$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default"
18944 if test "x$ac_cv_header_kerberos_krb_h" = x
""yes; then :
18945 cat >>confdefs.h
<<_ACEOF
18946 #define HAVE_KERBEROS_KRB_H 1
18962 for ac_header
in com_err.h
18964 ac_fn_c_check_header_mongrel
"$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default"
18965 if test "x$ac_cv_header_com_err_h" = x
""yes; then :
18966 cat >>confdefs.h
<<_ACEOF
18967 #define HAVE_COM_ERR_H 1
18982 # Solaris requires -lintl if you want strerror (which calls dgettext)
18983 # to return localized messages.
18984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in -lintl" >&5
18985 $as_echo_n "checking for dgettext in -lintl... " >&6; }
18986 if test "${ac_cv_lib_intl_dgettext+set}" = set; then :
18987 $as_echo_n "(cached) " >&6
18989 ac_check_lib_save_LIBS
=$LIBS
18990 LIBS
="-lintl $LIBS"
18991 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18992 /* end confdefs.h. */
18994 /* Override any GCC internal prototype to avoid an error.
18995 Use char because int might match the return type of a GCC
18996 builtin and then its argument prototype would still apply. */
19004 return dgettext ();
19009 if ac_fn_c_try_link
"$LINENO"; then :
19010 ac_cv_lib_intl_dgettext
=yes
19012 ac_cv_lib_intl_dgettext
=no
19014 rm -f core conftest.err conftest.
$ac_objext \
19015 conftest
$ac_exeext conftest.
$ac_ext
19016 LIBS
=$ac_check_lib_save_LIBS
19018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dgettext" >&5
19019 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
19020 if test "x$ac_cv_lib_intl_dgettext" = x
""yes; then :
19021 cat >>confdefs.h
<<_ACEOF
19022 #define HAVE_LIBINTL 1
19025 LIBS
="-lintl $LIBS"
19030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5
19031 $as_echo_n "checking whether localtime caches TZ... " >&6; }
19032 if test "${emacs_cv_localtime_cache+set}" = set; then :
19033 $as_echo_n "(cached) " >&6
19035 if test x
$ac_cv_func_tzset = xyes
; then
19036 if test "$cross_compiling" = yes; then :
19037 # If we have tzset, assume the worst when cross-compiling.
19038 emacs_cv_localtime_cache
=yes
19040 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19041 /* end confdefs.h. */
19043 char TZ_GMT0[] = "TZ=GMT0";
19044 char TZ_PST8[] = "TZ=PST8";
19047 time_t now = time ((time_t *) 0);
19048 int hour_GMT0, hour_unset;
19049 if (putenv (TZ_GMT0) != 0)
19051 hour_GMT0 = localtime (&now)->tm_hour;
19053 hour_unset = localtime (&now)->tm_hour;
19054 if (putenv (TZ_PST8) != 0)
19056 if (localtime (&now)->tm_hour == hour_GMT0)
19059 if (localtime (&now)->tm_hour != hour_unset)
19064 if ac_fn_c_try_run
"$LINENO"; then :
19065 emacs_cv_localtime_cache
=no
19067 emacs_cv_localtime_cache
=yes
19069 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19070 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19074 # If we lack tzset, report that localtime does not cache TZ,
19075 # since we can't invalidate the cache if we don't have tzset.
19076 emacs_cv_localtime_cache
=no
19079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5
19080 $as_echo "$emacs_cv_localtime_cache" >&6; }
19081 if test $emacs_cv_localtime_cache = yes; then
19083 $as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h
19087 if test "x$HAVE_TIMEVAL" = xyes
; then
19088 for ac_func
in gettimeofday
19090 ac_fn_c_check_func
"$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
19091 if test "x$ac_cv_func_gettimeofday" = x
""yes; then :
19092 cat >>confdefs.h
<<_ACEOF
19093 #define HAVE_GETTIMEOFDAY 1
19099 if test $ac_cv_func_gettimeofday = yes; then
19100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday can accept two arguments" >&5
19101 $as_echo_n "checking whether gettimeofday can accept two arguments... " >&6; }
19102 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then :
19103 $as_echo_n "(cached) " >&6
19105 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19106 /* end confdefs.h. */
19108 #ifdef TIME_WITH_SYS_TIME
19109 #include <sys/time.h>
19112 #ifdef HAVE_SYS_TIME_H
19113 #include <sys/time.h>
19121 struct timeval time;
19122 gettimeofday (&time, 0);
19127 if ac_fn_c_try_compile
"$LINENO"; then :
19128 emacs_cv_gettimeofday_two_arguments
=yes
19130 emacs_cv_gettimeofday_two_arguments
=no
19132 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_gettimeofday_two_arguments" >&5
19135 $as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; }
19136 if test $emacs_cv_gettimeofday_two_arguments = no
; then
19138 $as_echo "#define GETTIMEOFDAY_ONE_ARGUMENT 1" >>confdefs.h
19145 ac_fn_c_check_func
"$LINENO" "socket" "ac_cv_func_socket"
19146 if test "x$ac_cv_func_socket" = x
""yes; then :
19152 if test $ok_so_far = yes; then
19153 ac_fn_c_check_header_mongrel
"$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
19154 if test "x$ac_cv_header_netinet_in_h" = x
""yes; then :
19162 if test $ok_so_far = yes; then
19163 ac_fn_c_check_header_mongrel
"$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
19164 if test "x$ac_cv_header_arpa_inet_h" = x
""yes; then :
19172 if test $ok_so_far = yes; then
19174 $as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h
19178 if test -f /usr
/lpp
/X11
/bin
/smt.exp
; then
19180 $as_echo "#define HAVE_AIX_SMT_EXP 1" >>confdefs.h
19184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports dynamic ptys" >&5
19185 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
19186 if test -d /dev
/pts
&& ls -d /dev
/ptmx
> /dev
/null
2>&1 ; then
19187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19188 $as_echo "yes" >&6; }
19190 $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
19193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19194 $as_echo "no" >&6; }
19197 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
19198 if test "x$ac_cv_type_pid_t" = x
""yes; then :
19202 cat >>confdefs.h
<<_ACEOF
19208 for ac_header
in vfork.h
19210 ac_fn_c_check_header_mongrel
"$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
19211 if test "x$ac_cv_header_vfork_h" = x
""yes; then :
19212 cat >>confdefs.h
<<_ACEOF
19213 #define HAVE_VFORK_H 1
19220 for ac_func
in fork vfork
19222 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19223 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
19224 eval as_val
=\$
$as_ac_var
19225 if test "x$as_val" = x
""yes; then :
19226 cat >>confdefs.h
<<_ACEOF
19227 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19233 if test "x$ac_cv_func_fork" = xyes
; then
19234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
19235 $as_echo_n "checking for working fork... " >&6; }
19236 if test "${ac_cv_func_fork_works+set}" = set; then :
19237 $as_echo_n "(cached) " >&6
19239 if test "$cross_compiling" = yes; then :
19240 ac_cv_func_fork_works
=cross
19242 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19243 /* end confdefs.h. */
19244 $ac_includes_default
19249 /* By Ruediger Kuhlmann. */
19250 return fork () < 0;
19256 if ac_fn_c_try_run
"$LINENO"; then :
19257 ac_cv_func_fork_works
=yes
19259 ac_cv_func_fork_works
=no
19261 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19262 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
19267 $as_echo "$ac_cv_func_fork_works" >&6; }
19270 ac_cv_func_fork_works
=$ac_cv_func_fork
19272 if test "x$ac_cv_func_fork_works" = xcross
; then
19274 *-*-amigaos* |
*-*-msdosdjgpp*)
19275 # Override, as these systems have only a dummy fork() stub
19276 ac_cv_func_fork_works
=no
19279 ac_cv_func_fork_works
=yes
19282 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
19283 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
19285 ac_cv_func_vfork_works
=$ac_cv_func_vfork
19286 if test "x$ac_cv_func_vfork" = xyes
; then
19287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
19288 $as_echo_n "checking for working vfork... " >&6; }
19289 if test "${ac_cv_func_vfork_works+set}" = set; then :
19290 $as_echo_n "(cached) " >&6
19292 if test "$cross_compiling" = yes; then :
19293 ac_cv_func_vfork_works
=cross
19295 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19296 /* end confdefs.h. */
19297 /* Thanks to Paul Eggert for this test. */
19298 $ac_includes_default
19299 #include <sys/wait.h>
19300 #ifdef HAVE_VFORK_H
19301 # include <vfork.h>
19303 /* On some sparc systems, changes by the child to local and incoming
19304 argument registers are propagated back to the parent. The compiler
19305 is told about this with #include <vfork.h>, but some compilers
19306 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
19307 static variable whose address is put into a register that is
19308 clobbered by the vfork. */
19311 sparc_address_test (int arg)
19313 sparc_address_test (arg) int arg;
19316 static pid_t child;
19334 pid_t parent = getpid ();
19337 sparc_address_test (0);
19342 /* Here is another test for sparc vfork register problems. This
19343 test uses lots of local variables, at least as many local
19344 variables as main has allocated so far including compiler
19345 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
19346 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
19347 reuse the register of parent for one of the local variables,
19348 since it will think that parent can't possibly be used any more
19349 in this routine. Assigning to the local variable will thus
19350 munge parent in the parent process. */
19352 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
19353 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
19354 /* Convince the compiler that p..p7 are live; otherwise, it might
19355 use the same hardware register for all 8 local variables. */
19356 if (p != p1 || p != p2 || p != p3 || p != p4
19357 || p != p5 || p != p6 || p != p7)
19360 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
19361 from child file descriptors. If the child closes a descriptor
19362 before it execs or exits, this munges the parent's descriptor
19363 as well. Test for this by closing stdout in the child. */
19364 _exit(close(fileno(stdout)) != 0);
19369 while (wait(&status) != child)
19372 /* Was there some problem with vforking? */
19375 /* Did the child fail? (This shouldn't happen.) */
19378 /* Did the vfork/compiler bug occur? */
19379 || parent != getpid()
19381 /* Did the file descriptor bug occur? */
19382 || fstat(fileno(stdout), &st) != 0
19387 if ac_fn_c_try_run
"$LINENO"; then :
19388 ac_cv_func_vfork_works
=yes
19390 ac_cv_func_vfork_works
=no
19392 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19393 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
19398 $as_echo "$ac_cv_func_vfork_works" >&6; }
19401 if test "x$ac_cv_func_fork_works" = xcross
; then
19402 ac_cv_func_vfork_works
=$ac_cv_func_vfork
19403 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
19404 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
19407 if test "x$ac_cv_func_vfork_works" = xyes
; then
19409 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
19413 $as_echo "#define vfork fork" >>confdefs.h
19416 if test "x$ac_cv_func_fork_works" = xyes
; then
19418 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
19423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
19424 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
19425 if test "${emacs_cv_langinfo_codeset+set}" = set; then :
19426 $as_echo_n "(cached) " >&6
19428 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19429 /* end confdefs.h. */
19430 #include <langinfo.h>
19434 char* cs = nl_langinfo(CODESET);
19439 if ac_fn_c_try_link
"$LINENO"; then :
19440 emacs_cv_langinfo_codeset
=yes
19442 emacs_cv_langinfo_codeset
=no
19444 rm -f core conftest.err conftest.
$ac_objext \
19445 conftest
$ac_exeext conftest.
$ac_ext
19448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5
19449 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
19450 if test $emacs_cv_langinfo_codeset = yes; then
19452 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
19456 ac_fn_c_check_type
"$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
19457 if test "x$ac_cv_type_size_t" = x
""yes; then :
19459 cat >>confdefs.h
<<_ACEOF
19460 #define HAVE_SIZE_T 1
19467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
19468 $as_echo_n "checking for mbstate_t... " >&6; }
19469 if test "${ac_cv_type_mbstate_t+set}" = set; then :
19470 $as_echo_n "(cached) " >&6
19472 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19473 /* end confdefs.h. */
19474 $ac_includes_default
19475 # include <wchar.h>
19479 mbstate_t x; return sizeof x;
19484 if ac_fn_c_try_compile
"$LINENO"; then :
19485 ac_cv_type_mbstate_t
=yes
19487 ac_cv_type_mbstate_t
=no
19489 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
19492 $as_echo "$ac_cv_type_mbstate_t" >&6; }
19493 if test $ac_cv_type_mbstate_t = yes; then
19495 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
19499 $as_echo "#define mbstate_t int" >>confdefs.h
19503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5
19504 $as_echo_n "checking for C restricted array declarations... " >&6; }
19505 if test "${emacs_cv_c_restrict_arr+set}" = set; then :
19506 $as_echo_n "(cached) " >&6
19508 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19509 /* end confdefs.h. */
19510 void fred (int x[__restrict]);
19519 if ac_fn_c_try_compile
"$LINENO"; then :
19520 emacs_cv_c_restrict_arr
=yes
19522 emacs_cv_c_restrict_arr
=no
19524 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5
19527 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
19528 if test "$emacs_cv_c_restrict_arr" = yes; then
19530 $as_echo "#define __restrict_arr __restrict" >>confdefs.h
19536 # Set up the CFLAGS for real compilation, so we can substitute it.
19537 CFLAGS
="$REAL_CFLAGS"
19538 CPPFLAGS
="$REAL_CPPFLAGS"
19540 ## Hack to detect a buggy GCC version.
19541 if test "x$GCC" = xyes \
19542 && test x
"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
19543 && test x
"`echo $CFLAGS | grep '\-O[23]'`" != x \
19544 && test x
"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x
; then
19545 as_fn_error
"GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." "$LINENO" 5
19548 version
=$PACKAGE_VERSION
19550 ### Specify what sort of things we'll be editing into Makefile and config.h.
19551 ### Use configuration here uncanonicalized to avoid exceeding size limits.
19575 ## FIXME? Nothing uses @LD_SWITCH_X_SITE@.
19576 ## src/Makefile.in did add LD_SWITCH_X_SITE (as a cpp define) to the
19577 ## end of LIBX_BASE, but nothing ever set it.
19582 ## Used in lwlib/Makefile.in.
19584 if test -n "${machfile}"; then
19585 M_FILE
="\$(srcdir)/${machfile}"
19589 S_FILE
="\$(srcdir)/${opsysfile}"
19600 cat >>confdefs.h
<<_ACEOF
19601 #define EMACS_CONFIGURATION "${canonical}"
19605 cat >>confdefs.h
<<_ACEOF
19606 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
19609 if test -n "$machfile"; then
19611 cat >>confdefs.h
<<_ACEOF
19612 #define config_machfile "${machfile}"
19617 cat >>confdefs.h
<<_ACEOF
19618 #define config_opsysfile "${opsysfile}"
19625 if test "${HAVE_X_WINDOWS}" = "yes" ; then
19627 $as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h
19630 XOBJ
="xterm.o xfns.o xselect.o xrdb.o fontset.o xsmfns.o fringe.o image.o xsettings.o xgselect.o"
19632 if test "$HAVE_XFT" = "yes"; then
19633 FONT_OBJ
="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
19634 elif test "$HAVE_FREETYPE" = "yes"; then
19635 FONT_OBJ
="$FONT_OBJ ftfont.o ftxfont.o"
19645 if test "${USE_X_TOOLKIT}" != "none" ; then
19646 WIDGET_OBJ
=widget.o
19648 $as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h
19650 if test "${USE_X_TOOLKIT}" = "LUCID"; then
19652 $as_echo "#define USE_LUCID 1" >>confdefs.h
19654 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
19656 $as_echo "#define USE_MOTIF 1" >>confdefs.h
19661 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
19662 MOTIF_LIBW
="$MOTIF_LIBW -lXpm"
19666 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
19667 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
19668 MOTIF_LIBW
="MOTIF_LIBW -lXimp"
19672 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
19673 MOTIF_LIBW
="$MOTIF_LIBW -li18n"
19676 MOTIF_LIBW
="$MOTIF_LIBW $LIBXP"
19682 case "$USE_X_TOOLKIT" in
19683 MOTIF
) TOOLKIT_LIBW
="$MOTIF_LIBW" ;;
19684 LUCID
) TOOLKIT_LIBW
="$LUCID_LIBW" ;;
19685 none
) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW
="$GTK_LIBS" ;;
19689 if test "$USE_X_TOOLKIT" = "none"; then
19690 LIBXT_OTHER
="\$(LIBXSM)"
19691 OLDXMENU_TARGET
="really-oldXMenu"
19693 LIBXT_OTHER
="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext"
19694 OLDXMENU_TARGET
="really-lwlib"
19698 ## The X Menu stuff is present in the X10 distribution, but missing
19699 ## from X11. If we have X10, just use the installed library;
19700 ## otherwise, use our own copy.
19701 if test "${HAVE_X11}" = "yes" ; then
19703 $as_echo "#define HAVE_X11 1" >>confdefs.h
19706 if test "$USE_X_TOOLKIT" = "none"; then
19707 OLDXMENU
="\${oldXMenudir}/libXMenu11.a"
19709 OLDXMENU
="\${lwlibdir}/liblw.a"
19711 LIBXMENU
="\$(OLDXMENU)"
19712 LIBX_OTHER
="\$(LIBXT) \$(LIBX_EXTRA)"
19713 OLDXMENU_DEPS
="\${OLDXMENU} ../src/\${OLDXMENU}"
19715 ## For a syntactically valid Makefile; not actually used for anything.
19716 ## See comments in src/Makefile.in.
19718 ## FIXME This case (!HAVE_X11 && HAVE_X_WINDOWS) is no longer possible(?).
19719 if test "${HAVE_X_WINDOWS}" = "yes"; then
19728 if test "$HAVE_GTK" = "yes" ||
test "$HAVE_MENUS" != "yes"; then
19741 if test "${HAVE_MENUS}" = "yes" ; then
19743 $as_echo "#define HAVE_MENUS 1" >>confdefs.h
19747 if test "${GNU_MALLOC}" = "yes" ; then
19749 $as_echo "#define GNU_MALLOC 1" >>confdefs.h
19754 if test "${REL_ALLOC}" = "yes" ; then
19756 $as_echo "#define REL_ALLOC 1" >>confdefs.h
19759 test "$system_malloc" != "yes" && RALLOC_OBJ
=ralloc.o
19763 if test "$opsys" = "cygwin"; then
19764 CYGWIN_OBJ
="sheap.o"
19765 ## Cygwin differs because of its unexec().
19767 POST_ALLOC_OBJ
=lastfile.o
19770 PRE_ALLOC_OBJ
=lastfile.o
19779 aix4-2
) LD_SWITCH_SYSTEM_TEMACS
="-Wl,-bnodelcsect" ;;
19782 ## The -headerpad option tells ld (see man page) to leave room at the
19783 ## end of the header for adding load commands. Needed for dumping.
19784 ## 0x690 is the total size of 30 segment load commands (at 56
19785 ## each); under Cocoa 31 commands are required.
19786 if test "$HAVE_NS" = "yes"; then
19787 libs_nsgui
="-framework AppKit"
19788 headerpad_extra
=6C8
19791 headerpad_extra
=690
19793 LD_SWITCH_SYSTEM_TEMACS
="-prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra"
19795 ## This is here because src/Makefile.in did some extra fiddling around
19796 ## with LD_SWITCH_SYSTEM. The cpp logic was:
19797 ## #ifndef LD_SWITCH_SYSTEM
19798 ## #if !defined (__GNUC__) && ((defined (BSD_SYSTEM) && !defined (COFF)))
19799 ## Since all the *bsds define LD_SWITCH_SYSTEM, this simplifies to:
19800 ## not using gcc, darwin system not on an alpha (ie darwin, since
19801 ## darwin + alpha does not occur).
19802 ## Because this was done in src/Makefile.in, the resulting part of
19803 ## LD_SWITCH_SYSTEM was not used in configure (ie, in ac_link).
19804 ## It therefore seems cleaner to put this in LD_SWITCH_SYSTEM_TEMACS,
19805 ## rather than LD_SWITCH_SYSTEM.
19806 test "x$LD_SWITCH_SYSTEM" = "x" && test "x$GCC" != "xyes" && \
19807 LD_SWITCH_SYSTEM_TEMACS
="-X $LD_SWITCH_SYSTEM_TEMACS"
19810 ## LD_SWITCH_X_SITE_AUX is a -R option saying where to find X at run-time.
19811 ## When handled by cpp, this was in LD_SWITCH_SYSTEM. However, at
19812 ## the point where configure sourced the s/*.h file, LD_SWITCH_X_SITE_AUX
19813 ## had not yet been defined and was expanded to null. Hence LD_SWITCH_SYSTEM
19814 ## had different values in configure (in ac_link) and src/Makefile.in.
19815 ## It seems clearer therefore to put this piece in LD_SWITCH_SYSTEM_TEMACS.
19816 gnu-linux
) LD_SWITCH_SYSTEM_TEMACS
="\$(LD_SWITCH_X_SITE_AUX)" ;;
19818 *) LD_SWITCH_SYSTEM_TEMACS
= ;;
19821 if test "$NS_IMPL_GNUSTEP" = "yes"; then
19822 LD_SWITCH_SYSTEM_TEMACS
="${LD_SWITCH_SYSTEM_TEMACS} -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES} -lgnustep-gui -lgnustep-base -lobjc -lpthread"
19831 ## gnu: GNU needs its own crt0.
19832 aix4-2|cygwin|darwin|gnu|hpux
*|irix6-5|sol2
*|unixware
) ORDINARY_LINK
=yes ;;
19834 ## On post 1.3 releases of NetBSD, gcc -nostdlib also clears the
19835 ## library search parth, i.e. it won't search /usr/lib for libc and
19836 ## friends. Using -nostartfiles instead avoids this problem, and
19837 ## will also work on earlier NetBSD releases.
19838 netbsd|openbsd
) LD_FIRSTFLAG
="-nostartfiles" ;;
19840 ## macpcc: NAKAJI Hiroyuki <nakaji@tutrp.tut.ac.jp> says
19841 ## MkLinux/LinuxPPC needs this.
19842 ## ibms390x only supports opsys = gnu-linux so it can be added here.
19845 macppc|ibms390x
) LD_FIRSTFLAG
="-nostdlib" ;;
19851 if test "x$ORDINARY_LINK" = "xyes"; then
19855 $as_echo "#define ORDINARY_LINK 1" >>confdefs.h
19858 ## The system files defining neither ORDINARY_LINK nor LD_FIRSTFLAG are:
19859 ## freebsd, gnu-* not on macppc|ibms390x.
19860 elif test "x$GCC" = "xyes" && test "x$LD_FIRSTFLAG" = "x"; then
19862 ## Versions of GCC >= 2.0 put their library, libgcc.a, in obscure
19863 ## places that are difficult to figure out at make time. Fortunately,
19864 ## these same versions allow you to pass arbitrary flags on to the
19865 ## linker, so there is no reason not to use it as a linker.
19867 ## Well, it is not quite perfect. The "-nostdlib" keeps GCC from
19868 ## searching for libraries in its internal directories, so we have to
19869 ## ask GCC explicitly where to find libgcc.a (LIB_GCC below).
19870 LD_FIRSTFLAG
="-nostdlib"
19873 ## FIXME? What setting of EDIT_LDFLAGS should this have?
19874 test "$NS_IMPL_GNUSTEP" = "yes" && LD_FIRSTFLAG
="-rdynamic"
19879 ## FIXME? The logic here is not precisely the same as that above.
19880 ## There is no check here for a pre-defined LD_FIRSTFLAG.
19881 ## Should we only be setting LIB_GCC if LD ~ -nostdlib?
19883 if test "x$GCC" = "xyes" && test "x$ORDINARY_LINK" != "xyes"; then
19886 freebsd|netbsd|openbsd
) LIB_GCC
= ;;
19889 ## armin76@gentoo.org reported that the lgcc_s flag is necessary to
19890 ## build on ARM EABI under GNU/Linux. (Bug#5518)
19896 ## FIXME? s/gnu-linux.h used to define LIB_GCC as below, then
19897 ## immediately undefine it again and redefine it to empty.
19898 ## Was the C_SWITCH_X_SITE part really necessary?
19899 ## LIB_GCC=`$CC $C_SWITCH_X_SITE -print-libgcc-file-name`
19905 ## Ask GCC where to find libgcc.a.
19906 *) LIB_GCC
=`$CC -print-libgcc-file-name 2> /dev/null` ;;
19913 ## If we're using X11/GNUstep, define some consequences.
19914 if test "$HAVE_X_WINDOWS" = "yes" ||
test "$HAVE_NS" = "yes"; then
19916 $as_echo "#define HAVE_WINDOW_SYSTEM 1" >>confdefs.h
19919 $as_echo "#define HAVE_MOUSE 1" >>confdefs.h
19921 MOUSE_SUPPORT
="\$(REAL_MOUSE_SUPPORT)"
19922 TOOLTIP_SUPPORT
="\${lispsource}/mouse.elc"
19924 WINDOW_SUPPORT
="\$(BASE_WINDOW_SUPPORT)"
19925 test "$HAVE_X_WINDOWS" = "yes" && \
19926 WINDOW_SUPPORT
="$WINDOW_SUPPORT \$(X_WINDOW_SUPPORT)"
19936 #### Report on what we decided to do.
19937 #### Report GTK as a toolkit, even if it doesn't use Xt.
19938 #### It makes printing result more understandable as using GTK sets
19939 #### toolkit_scroll_bars to yes by default.
19940 if test "${HAVE_GTK}" = "yes"; then
19945 if test -n "$machfile"; then
19946 and_machfile
=" and \`${machfile}'"
19950 Configured for \`${canonical}'.
19952 Where should the build process find the source code? ${srcdir}
19953 What operating system and machine description files should Emacs use?
19954 \`${opsysfile}'${and_machfile}
19955 What compiler should emacs be built with? ${CC} ${CFLAGS}
19956 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
19957 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
19958 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
19959 What window system should Emacs use? ${window_system}
19960 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
19962 if test -n "${x_includes}"; then
19963 echo " Where do we find X Windows header files? ${x_includes}"
19965 echo " Where do we find X Windows header files? Standard dirs"
19967 if test -n "${x_libraries}"; then
19968 echo " Where do we find X Windows libraries? ${x_libraries}"
19970 echo " Where do we find X Windows libraries? Standard dirs"
19973 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
19974 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
19975 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
19976 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
19977 echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
19978 echo " Does Emacs use -lpng? ${HAVE_PNG}"
19979 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
19980 echo " Does Emacs use imagemagick? ${HAVE_IMAGEMAGICK}"
19982 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
19983 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
19984 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
19985 echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
19986 echo " Does Emacs use -lgnutls? ${HAVE_GNUTLS}"
19987 echo " Does Emacs use -lxml2? ${HAVE_LIBXML2}"
19989 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
19990 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
19991 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
19992 echo " Does Emacs use -lxft? ${HAVE_XFT}"
19994 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
19997 if test $USE_XASSERTS = yes; then
19998 echo " Compiling with asserts turned on."
19999 CPPFLAGS
="$CPPFLAGS -DXASSERTS=1"
20004 if test "$HAVE_NS" = "yes"; then
20006 echo "You must run \"make install\" in order to test the built application.
20007 The installed application will go to nextstep/Emacs.app and can be
20008 run or moved from there."
20009 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
20010 echo "The application will be fully self-contained."
20012 echo "The lisp resources for the application will be installed under ${prefix}.
20013 You may need to run \"make install\" with sudo. The application will fail
20014 to run if these resources are not installed."
20020 # Remove any trailing slashes in these variables.
20021 test "${prefix}" != NONE
&&
20022 prefix
=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
20023 test "${exec_prefix}" != NONE
&&
20024 exec_prefix
=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
20026 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"
20029 ac_config_commands
="$ac_config_commands mkdirs"
20032 ac_config_commands
="$ac_config_commands epaths"
20035 ac_config_commands
="$ac_config_commands gdbinit"
20038 cat >confcache
<<\_ACEOF
20039 # This file is a shell script that caches the results of configure
20040 # tests run on this system so they can be shared between configure
20041 # scripts and configure runs, see configure's option --config-cache.
20042 # It is not useful on other systems. If it contains results you don't
20043 # want to keep, you may remove or edit it.
20045 # config.status only pays attention to the cache file if you give it
20046 # the --recheck option to rerun configure.
20048 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20049 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20050 # following values.
20054 # The following way of writing the cache mishandles newlines in values,
20055 # but we know of no workaround that is simple, portable, and efficient.
20056 # So, we kill variables containing newlines.
20057 # Ultrix sh set writes to stderr and can't be redirected directly,
20058 # and sets the high bit in the cache file unless we assign to the vars.
20060 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20061 eval ac_val
=\$
$ac_var
20065 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
20066 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
20069 _ | IFS | as_nl
) ;; #(
20070 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
20071 *) { eval $ac_var=; unset $ac_var;} ;;
20077 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20078 *${as_nl}ac_space
=\
*)
20079 # `set' does not quote correctly, so add quotes: double-quote
20080 # substitution turns \\\\ into \\, and sed turns \\ into \.
20083 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20086 # `set' quotes correctly as required by POSIX, so do not add quotes.
20087 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20096 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20098 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20100 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
20101 if test -w "$cache_file"; then
20102 test "x$cache_file" != "x/dev/null" &&
20103 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
20104 $as_echo "$as_me: updating cache $cache_file" >&6;}
20105 cat confcache
>$cache_file
20107 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
20108 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20113 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
20114 # Let make expand exec_prefix.
20115 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
20117 DEFS
=-DHAVE_CONFIG_H
20121 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
20122 # 1. Remove the extension, and $U if already installed.
20123 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
20124 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
20125 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20126 # will be set to the directory where LIBOBJS objects are built.
20127 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20128 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
20130 LIBOBJS
=$ac_libobjs
20132 LTLIBOBJS
=$ac_ltlibobjs
20135 if test -n "$EXEEXT"; then
20137 am__EXEEXT_FALSE
='#'
20139 am__EXEEXT_TRUE
='#'
20143 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20144 as_fn_error
"conditional \"AMDEP\" was never defined.
20145 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20147 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20148 as_fn_error
"conditional \"am__fastdepCC\" was never defined.
20149 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20152 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
20153 as_fn_error
"conditional \"GL_COND_LIBTOOL\" was never defined.
20154 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20160 if test -n "$gl_LIBOBJS"; then
20161 # Remove the extension.
20162 sed_drop_objext
='s/\.o$//;s/\.obj$//'
20163 for i
in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
20164 gl_libobjs
="$gl_libobjs $i.$ac_objext"
20165 gl_ltlibobjs
="$gl_ltlibobjs $i.lo"
20168 gl_LIBOBJS
=$gl_libobjs
20170 gl_LTLIBOBJS
=$gl_ltlibobjs
20176 if test -n "$gltests_LIBOBJS"; then
20177 # Remove the extension.
20178 sed_drop_objext
='s/\.o$//;s/\.obj$//'
20179 for i
in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
20180 gltests_libobjs
="$gltests_libobjs $i.$ac_objext"
20181 gltests_ltlibobjs
="$gltests_ltlibobjs $i.lo"
20184 gltests_LIBOBJS
=$gltests_libobjs
20186 gltests_LTLIBOBJS
=$gltests_ltlibobjs
20190 : ${CONFIG_STATUS=./config.status}
20192 ac_clean_files_save
=$ac_clean_files
20193 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
20194 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
20195 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
20197 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
20199 # Generated by $as_me.
20200 # Run this file to recreate the current configuration.
20201 # Compiler output produced by configure, useful for debugging
20202 # configure, is in config.log if it exists.
20205 ac_cs_recheck=false
20208 SHELL=\${CONFIG_SHELL-$SHELL}
20211 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
20212 ## -------------------- ##
20213 ## M4sh Initialization. ##
20214 ## -------------------- ##
20216 # Be more Bourne compatible
20217 DUALCASE
=1; export DUALCASE
# for MKS sh
20218 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
20221 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20222 # is contrary to our usage. Disable this feature.
20223 alias -g '${1+"$@"}'='"$@"'
20224 setopt NO_GLOB_SUBST
20226 case `(set -o) 2>/dev/null` in #(
20238 # Printing a long string crashes Solaris 7 /usr/bin/printf.
20239 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
20240 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
20241 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
20242 # Prefer a ksh shell builtin over an external printf program on Solaris,
20243 # but without wasting forks for bash or zsh.
20244 if test -z "$BASH_VERSION$ZSH_VERSION" \
20245 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
20246 as_echo='print
-r --'
20247 as_echo_n='print
-rn --'
20248 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
20249 as_echo='printf %s
\n'
20250 as_echo_n='printf %s
'
20252 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
20253 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
20254 as_echo_n='/usr
/ucb
/echo -n'
20256 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
20257 as_echo_n_body='eval
20261 expr "X$arg" : "X\\(.*\\)$as_nl";
20262 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
20264 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
20266 export as_echo_n_body
20267 as_echo_n='sh
-c $as_echo_n_body as_echo
'
20269 export as_echo_body
20270 as_echo='sh
-c $as_echo_body as_echo
'
20273 # The user is always right.
20274 if test "${PATH_SEPARATOR+set}" != set; then
20276 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20277 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20284 # We need space, tab and new line, in precisely that order. Quoting is
20285 # there to prevent editors from complaining about space-tab.
20286 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20287 # splitting by setting IFS to empty value.)
20290 # Find who we are. Look in the path if we contain no directory separator.
20292 *[\\/]* ) as_myself=$0 ;;
20293 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20294 for as_dir in $PATH
20297 test -z "$as_dir" && as_dir=.
20298 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20304 # We did not find ourselves, most probably we were run as `sh COMMAND'
20305 # in which case we are not to be found in the path.
20306 if test "x$as_myself" = x
; then
20309 if test ! -f "$as_myself"; then
20310 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20314 # Unset variables that we do not need and which cause bugs (e.g. in
20315 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
20316 # suppresses any "Segmentation fault" message there. '((' could
20317 # trigger a bug in pdksh 5.2.14.
20318 for as_var
in BASH_ENV ENV MAIL MAILPATH
20319 do eval test x\
${$as_var+set} = xset \
20320 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
20333 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
20336 # as_fn_error ERROR [LINENO LOG_FD]
20337 # ---------------------------------
20338 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
20339 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
20340 # script with status $?, using 1 if that was 0.
20343 as_status
=$?
; test $as_status -eq 0 && as_status
=1
20345 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
20346 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
20348 $as_echo "$as_me: error: $1" >&2
20349 as_fn_exit
$as_status
20353 # as_fn_set_status STATUS
20354 # -----------------------
20355 # Set $? to STATUS, without forking.
20356 as_fn_set_status
()
20359 } # as_fn_set_status
20361 # as_fn_exit STATUS
20362 # -----------------
20363 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
20367 as_fn_set_status
$1
20373 # Portably unset VAR.
20376 { eval $1=; unset $1;}
20378 as_unset
=as_fn_unset
20379 # as_fn_append VAR VALUE
20380 # ----------------------
20381 # Append the text in VALUE to the end of the definition contained in VAR. Take
20382 # advantage of any shell optimizations that allow amortized linear growth over
20383 # repeated appends, instead of the typical quadratic growth present in naive
20385 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
20386 eval 'as_fn_append ()
20397 # as_fn_arith ARG...
20398 # ------------------
20399 # Perform arithmetic evaluation on the ARGs, and store the result in the
20400 # global $as_val. Take advantage of shells that can avoid forks. The arguments
20401 # must be portable across $(()) and expr.
20402 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
20403 eval 'as_fn_arith ()
20410 as_val
=`expr "$@" || test $? -eq 1`
20415 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
20416 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
20422 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20423 as_basename
=basename
20428 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
20434 as_me
=`$as_basename -- "$0" ||
20435 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20436 X"$0" : 'X\(//\)$' \| \
20437 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20439 sed '/^.*\/\([^/][^/]*\)\/*$/{
20453 # Avoid depending upon Character Ranges.
20454 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
20455 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20456 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
20457 as_cr_digits
='0123456789'
20458 as_cr_alnum
=$as_cr_Letters$as_cr_digits
20460 ECHO_C
= ECHO_N
= ECHO_T
=
20461 case `echo -n x` in #(((((
20463 case `echo 'xy\c'` in
20464 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
20466 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
20473 rm -f conf$$ conf$$.exe conf$$.
file
20474 if test -d conf$$.dir
; then
20475 rm -f conf$$.dir
/conf$$.
file
20478 mkdir conf$$.dir
2>/dev
/null
20480 if (echo >conf$$.
file) 2>/dev
/null
; then
20481 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
20483 # ... but there are two gotchas:
20484 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20485 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20486 # In both cases, we have to default to `cp -p'.
20487 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
20489 elif ln conf$$.
file conf$$
2>/dev
/null
; then
20497 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
20498 rmdir conf$$.dir
2>/dev
/null
20503 # Create "$as_dir" as a directory, including parents if necessary.
20508 -*) as_dir
=.
/$as_dir;;
20510 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
20514 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20515 *) as_qdir
=$as_dir;;
20517 as_dirs
="'$as_qdir' $as_dirs"
20518 as_dir
=`$as_dirname -- "$as_dir" ||
20519 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20520 X"$as_dir" : 'X\(//\)[^/]' \| \
20521 X"$as_dir" : 'X\(//\)$' \| \
20522 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20523 $as_echo X"$as_dir" |
20524 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20528 /^X\(\/\/\)[^/].*/{
20541 test -d "$as_dir" && break
20543 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
20544 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
20548 if mkdir
-p .
2>/dev
/null
; then
20549 as_mkdir_p
='mkdir -p "$as_dir"'
20551 test -d .
/-p && rmdir .
/-p
20555 if test -x / >/dev
/null
2>&1; then
20556 as_test_x
='test -x'
20558 if ls -dL / >/dev
/null
2>&1; then
20565 if test -d "$1"; then
20571 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
20572 ???[sx]*):;;*)false;;esac;fi
20576 as_executable_p
=$as_test_x
20578 # Sed expression to map a string onto a valid CPP name.
20579 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20581 # Sed expression to map a string onto a valid variable name.
20582 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20586 ## ----------------------------------- ##
20587 ## Main body of $CONFIG_STATUS script. ##
20588 ## ----------------------------------- ##
20590 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
20592 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20593 # Save the log message, to keep $0 and so on meaningful, and to
20594 # report actual input values of CONFIG_FILES etc. instead of their
20595 # values after options handling.
20597 This file was extended by emacs $as_me 24.0.50, which was
20598 generated by GNU Autoconf 2.65. Invocation command line was
20600 CONFIG_FILES = $CONFIG_FILES
20601 CONFIG_HEADERS = $CONFIG_HEADERS
20602 CONFIG_LINKS = $CONFIG_LINKS
20603 CONFIG_COMMANDS = $CONFIG_COMMANDS
20606 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20611 case $ac_config_files in *"
20612 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
20615 case $ac_config_headers in *"
20616 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
20620 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20621 # Files that config.status was made for.
20622 config_files="$ac_config_files"
20623 config_headers="$ac_config_headers"
20624 config_commands="$ac_config_commands"
20628 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20630 \`$as_me' instantiates files and other configuration actions
20631 from templates according to the current configuration. Unless the files
20632 and actions are specified as TAGs, all are instantiated by default.
20634 Usage: $0 [OPTION]... [TAG]...
20636 -h, --help print this help, then exit
20637 -V, --version print version number and configuration settings, then exit
20638 --config print configuration, then exit
20639 -q, --quiet, --silent
20640 do not print progress messages
20641 -d, --debug don't remove temporary files
20642 --recheck update $as_me by reconfiguring in the same conditions
20643 --file=FILE[:TEMPLATE]
20644 instantiate the configuration file FILE
20645 --header=FILE[:TEMPLATE]
20646 instantiate the configuration header FILE
20648 Configuration files:
20651 Configuration headers:
20654 Configuration commands:
20657 Report bugs to the package provider."
20660 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20661 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
20663 emacs config.status 24.0.50
20664 configured by $0, generated by GNU Autoconf 2.65,
20665 with options \\"\$ac_cs_config\\"
20667 Copyright (C) 2009 Free Software Foundation, Inc.
20668 This config.status script is free software; the Free Software Foundation
20669 gives unlimited permission to copy, distribute and modify it."
20676 test -n "\$AWK" || AWK=awk
20679 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20680 # The default lists apply if the user does not specify any file.
20686 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
20687 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
20698 # Handling of the options.
20699 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
20701 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
20702 $as_echo "$ac_cs_version"; exit ;;
20703 --config |
--confi |
--conf |
--con |
--co |
--c )
20704 $as_echo "$ac_cs_config"; exit ;;
20705 --debug |
--debu |
--deb |
--de |
--d |
-d )
20707 --file |
--fil |
--fi |
--f )
20710 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20712 as_fn_append CONFIG_FILES
" '$ac_optarg'"
20713 ac_need_defaults
=false
;;
20714 --header |
--heade |
--head |
--hea )
20717 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20719 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
20720 ac_need_defaults
=false
;;
20722 # Conflict between --help and --header
20723 as_fn_error
"ambiguous option: \`$1'
20724 Try \`$0 --help' for more information.";;
20725 --help |
--hel |
-h )
20726 $as_echo "$ac_cs_usage"; exit ;;
20727 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
20728 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
20731 # This is an error.
20732 -*) as_fn_error
"unrecognized option: \`$1'
20733 Try \`$0 --help' for more information." ;;
20735 *) as_fn_append ac_config_targets
" $1"
20736 ac_need_defaults
=false
;;
20742 ac_configure_extra_args
=
20744 if $ac_cs_silent; then
20746 ac_configure_extra_args
="$ac_configure_extra_args --silent"
20750 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20751 if \$ac_cs_recheck; then
20752 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20754 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20755 CONFIG_SHELL='$SHELL'
20756 export CONFIG_SHELL
20761 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20765 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20766 ## Running $as_me. ##
20772 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20776 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20777 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPPFLAGS="$CPPFLAGS"
20781 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20783 # Handling of arguments.
20784 for ac_config_target
in $ac_config_targets
20786 case $ac_config_target in
20787 "src/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
20788 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
20789 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
20790 "lib/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/Makefile" ;;
20791 "lib-src/Makefile") CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile" ;;
20792 "oldXMenu/Makefile") CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
20793 "doc/emacs/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/emacs/Makefile" ;;
20794 "doc/misc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/misc/Makefile" ;;
20795 "doc/lispintro/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispintro/Makefile" ;;
20796 "doc/lispref/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispref/Makefile" ;;
20797 "src/Makefile") CONFIG_FILES
="$CONFIG_FILES src/Makefile" ;;
20798 "lwlib/Makefile") CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
20799 "lisp/Makefile") CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
20800 "leim/Makefile") CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
20801 "test/automated/Makefile") CONFIG_FILES
="$CONFIG_FILES test/automated/Makefile" ;;
20802 "mkdirs") CONFIG_COMMANDS
="$CONFIG_COMMANDS mkdirs" ;;
20803 "epaths") CONFIG_COMMANDS
="$CONFIG_COMMANDS epaths" ;;
20804 "gdbinit") CONFIG_COMMANDS
="$CONFIG_COMMANDS gdbinit" ;;
20806 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20811 # If the user did not use the arguments to specify the items to instantiate,
20812 # then the envvar interface is used. Set only those that are not.
20813 # We use the long form for the default assignment because of an extremely
20814 # bizarre bug on SunOS 4.1.3.
20815 if $ac_need_defaults; then
20816 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
20817 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
20818 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
20821 # Have a temporary directory for convenience. Make it in the build tree
20822 # simply because there is no reason against having it here, and in addition,
20823 # creating and moving files from /tmp can sometimes cause problems.
20824 # Hook for its removal unless debugging.
20825 # Note that there is a small window in which the directory will not be cleaned:
20826 # after its creation but before its name has been assigned to `$tmp'.
20830 trap 'exit_status=$?
20831 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
20833 trap 'as_fn_exit 1' 1 2 13 15
20835 # Create a (secure) tmp directory for tmp files.
20838 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20839 test -n "$tmp" && test -d "$tmp"
20842 tmp
=.
/conf$$
-$RANDOM
20843 (umask 077 && mkdir
"$tmp")
20844 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
20846 # Set up the scripts for CONFIG_FILES section.
20847 # No need to generate them if there are no CONFIG_FILES.
20848 # This happens for instance with `./config.status config.h'.
20849 if test -n "$CONFIG_FILES"; then
20851 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
20852 ac_cs_awk_getline
=:
20853 ac_cs_awk_pipe_init
=
20854 ac_cs_awk_read_file
='
20855 while ((getline aline < (F[key])) > 0)
20858 ac_cs_awk_pipe_fini
=
20860 ac_cs_awk_getline
=false
20861 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
20862 ac_cs_awk_read_file
='
20864 print "cat " F[key] " &&"
20865 '$ac_cs_awk_pipe_init
20866 # The final `:' finishes the AND list.
20867 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
20869 ac_cr
=`echo X | tr X '\015'`
20870 # On cygwin, bash can eat \r inside `` if the user requested igncr.
20871 # But we know of no other shell where ac_cr would be empty at this
20872 # point, so we can use a bashism as a fallback.
20873 if test "x$ac_cr" = x
; then
20874 eval ac_cr
=\$
\'\\r
\'
20876 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20877 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20880 ac_cs_awk_cr
=$ac_cr
20883 echo 'BEGIN {' >"$tmp/subs1.awk" &&
20886 # Create commands to substitute file output variables.
20888 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
20889 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
20890 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
20893 } >conf$
$files.sh
&&
20894 . .
/conf$
$files.sh ||
20895 as_fn_error
"could not make $CONFIG_STATUS" "$LINENO" 5
20896 rm -f conf$
$files.sh
20899 echo "cat >conf$$subs.awk <<_ACEOF" &&
20900 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20902 } >conf$$subs.sh ||
20903 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
20904 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
20906 for ac_last_try in false false false false false :; do
20907 . ./conf$$subs.sh ||
20908 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
20910 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
20911 if test $ac_delim_n = $ac_delim_num; then
20913 elif $ac_last_try; then
20914 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
20916 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
20919 rm -f conf$$subs.sh
20921 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20922 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
20926 s/^/S["/; s
/!.
*/"]=/
20936 s/\(.\{148\}\)..*/\1/
20938 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
20943 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
20950 s/\(.\{148\}\)..*/\1/
20952 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
20956 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
20961 ' <conf$$subs.awk | sed '
20966 ' >>$CONFIG_STATUS || ac_write_fail=1
20967 rm -f conf$$subs.awk
20968 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20970 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
20971 for (key in S) S_is_set[key] = 1
20973 \$ac_cs_awk_pipe_init
20977 nfields = split(line, field, "@
")
20979 len = length(field[1])
20980 for (i = 2; i < nfields; i++) {
20982 keylen = length(key)
20983 if (S_is_set[key]) {
20985 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20986 len += length(value) + length(field[++i])
20991 if (nfields == 3 && !substed) {
20993 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
20994 \$ac_cs_awk_read_file
21000 \$ac_cs_awk_pipe_fini
21003 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21004 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
21005 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
21008 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
21009 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
21012 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21013 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
21014 # trailing colons and then remove the whole line if VPATH becomes empty
21015 # (actually we leave an empty line to preserve line numbers).
21016 if test "x
$srcdir" = x.; then
21017 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21018 s/:*\$(srcdir):*/:/
21019 s/:*\${srcdir}:*/:/
21021 s/^\([^=]*=[ ]*\):*/\1/
21027 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21028 fi # test -n "$CONFIG_FILES"
21030 # Set up the scripts for CONFIG_HEADERS section.
21031 # No need to generate them if there are no CONFIG_HEADERS.
21032 # This happens for instance with `./config.status Makefile'.
21033 if test -n "$CONFIG_HEADERS"; then
21034 cat >"$tmp/defines.
awk" <<\_ACAWK ||
21038 # Transform confdefs.h into an awk script `defines.awk', embedded as
21039 # here-document in config.status, that substitutes the proper values into
21040 # config.h.in to produce config.h.
21042 # Create a delimiter string that does not exist in confdefs.h, to ease
21043 # handling of long lines.
21045 for ac_last_try in false false :; do
21046 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
21047 if test -z "$ac_t"; then
21049 elif $ac_last_try; then
21050 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
21052 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
21056 # For the awk script, D is an array of macro values keyed by name,
21057 # likewise P contains macro parameters if any. Preserve backslash
21058 # newline sequences.
21060 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21062 s/.\{148\}/&'"$ac_delim"'/g
21065 s/^[ ]*#[ ]*define[ ][ ]*/ /
21072 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
21074 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
21078 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
21079 D["\
1"]=" \
3\\\\\\n
"\\/p
21081 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
21086 s/.\{148\}/&'"$ac_delim"'/g
21091 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
21094 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
21096 ' <confdefs.h | sed '
21097 s/'"$ac_delim"'/"\\\
21098 "/g' >>$CONFIG_STATUS || ac_write_fail=1
21100 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21101 for (key in D) D_is_set[key] = 1
21104 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
21106 split(line, arg, " ")
21107 if (arg[1] == "#") {
21111 defundef
= substr
(arg
[1], 2)
21114 split(mac1
, mac2
, "(") #)
21116 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
21117 if (D_is_set
[macro
]) {
21118 # Preserve the white space surrounding the "#".
21119 print prefix
"define", macro P
[macro
] D
[macro
]
21122 # Replace #undef with comments. This is necessary, for example,
21123 # in the case of _POSIX_SOURCE, which is predefined and required
21124 # on some systems where configure will not decide to define it.
21125 if (defundef
== "undef") {
21126 print
"/*", prefix defundef
, macro
, "*/"
21134 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
21135 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
21136 fi # test -n "$CONFIG_HEADERS"
21139 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
21144 :[FHLC
]) ac_mode
=$ac_tag; continue;;
21146 case $ac_mode$ac_tag in
21148 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
21149 :[FH
]-) ac_tag
=-:-;;
21150 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
21167 -) ac_f
="$tmp/stdin";;
21168 *) # Look for the file first in the build tree, then in the source tree
21169 # (if the path is not absolute). The absolute path cannot be DOS-style,
21170 # because $ac_f cannot contain `:'.
21174 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
21176 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
21178 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21179 as_fn_append ac_file_inputs
" '$ac_f'"
21182 # Let's still pretend it is `configure' which instantiates (i.e., don't
21183 # use $as_me), people would be surprised to read:
21184 # /* config.h. Generated by config.status. */
21185 configure_input
='Generated from '`
21186 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21188 if test x
"$ac_file" != x-
; then
21189 configure_input
="$ac_file. $configure_input"
21190 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
21191 $as_echo "$as_me: creating $ac_file" >&6;}
21193 # Neutralize special characters interpreted by sed in replacement strings.
21194 case $configure_input in #(
21195 *\
&* |
*\|
* |
*\\* )
21196 ac_sed_conf_input
=`$as_echo "$configure_input" |
21197 sed 's/[\\\\&|]/\\\\&/g'`;; #(
21198 *) ac_sed_conf_input
=$configure_input;;
21202 *:-:* |
*:-) cat >"$tmp/stdin" \
21203 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
21208 ac_dir
=`$as_dirname -- "$ac_file" ||
21209 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21210 X"$ac_file" : 'X\(//\)[^/]' \| \
21211 X"$ac_file" : 'X\(//\)$' \| \
21212 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21213 $as_echo X"$ac_file" |
21214 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21218 /^X\(\/\/\)[^/].*/{
21231 as_dir
="$ac_dir"; as_fn_mkdir_p
21235 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
21237 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21238 # A ".." for each directory in $ac_dir_suffix.
21239 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21240 case $ac_top_builddir_sub in
21241 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
21242 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
21245 ac_abs_top_builddir
=$ac_pwd
21246 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
21247 # for backward compatibility:
21248 ac_top_builddir
=$ac_top_build_prefix
21251 .
) # We are building in place.
21253 ac_top_srcdir
=$ac_top_builddir_sub
21254 ac_abs_top_srcdir
=$ac_pwd ;;
21255 [\\/]* | ?
:[\\/]* ) # Absolute name.
21256 ac_srcdir
=$srcdir$ac_dir_suffix;
21257 ac_top_srcdir
=$srcdir
21258 ac_abs_top_srcdir
=$srcdir ;;
21259 *) # Relative name.
21260 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
21261 ac_top_srcdir
=$ac_top_build_prefix$srcdir
21262 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
21264 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
21274 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
21275 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
21277 ac_MKDIR_P
=$MKDIR_P
21279 [\\/$
]* | ?
:[\\/]* ) ;;
21280 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
21284 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
21285 # If the template does not know about datarootdir, expand it.
21286 # FIXME: This hack should be removed a few years after 2.60.
21287 ac_datarootdir_hack
=; ac_datarootdir_seen
=
21298 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21299 *datarootdir
*) ac_datarootdir_seen
=yes;;
21300 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
21301 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21302 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21304 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21305 ac_datarootdir_hack='
21306 s&@datadir@&$datadir&g
21307 s&@docdir@&$docdir&g
21308 s&@infodir@&$infodir&g
21309 s&@localedir@&$localedir&g
21310 s&@mandir@&$mandir&g
21311 s&\\\${datarootdir}&$datarootdir&g' ;;
21315 # Neutralize VPATH when `$srcdir' = `.'.
21316 # Shell code in configure.ac might set extrasub.
21317 # FIXME: do we really want to maintain this feature?
21318 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21319 ac_sed_extra="$ac_vpsub
21322 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
21324 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
21325 s|@configure_input@|
$ac_sed_conf_input|
;t t
21326 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
21327 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
21328 s
&@srcdir@
&$ac_srcdir&;t t
21329 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
21330 s
&@top_srcdir@
&$ac_top_srcdir&;t t
21331 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
21332 s
&@builddir@
&$ac_builddir&;t t
21333 s
&@abs_builddir@
&$ac_abs_builddir&;t t
21334 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
21335 s
&@INSTALL@
&$ac_INSTALL&;t t
21336 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
21337 $ac_datarootdir_hack
21339 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
21340 if $ac_cs_awk_getline; then
21341 $AWK -f "$tmp/subs.
awk"
21343 $AWK -f "$tmp/subs.
awk" | $SHELL
21345 || as_fn_error "could not create
$ac_file" "$LINENO" 5
21347 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21348 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
21349 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
21350 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
21351 which seems to be undefined. Please make sure it is defined." >&5
21352 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
21353 which seems to be undefined. Please make sure it is defined." >&2;}
21357 -) cat "$tmp/out" && rm -f "$tmp/out";;
21358 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
21360 || as_fn_error "could not create $ac_file" "$LINENO" 5
21366 if test x"$ac_file" != x-; then
21368 $as_echo "/* $configure_input */" \
21369 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
21370 } >"$tmp/config.h" \
21371 || as_fn_error "could not create $ac_file" "$LINENO" 5
21372 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
21373 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
21374 $as_echo "$as_me: $ac_file is unchanged" >&6;}
21377 mv "$tmp/config.h" "$ac_file" \
21378 || as_fn_error "could not create $ac_file" "$LINENO" 5
21381 $as_echo "/* $configure_input */" \
21382 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
21383 || as_fn_error "could not create -" "$LINENO" 5
21385 # Compute "$ac_file"'s index
in $config_headers.
21388 for _am_header
in $config_headers :; do
21389 case $_am_header in
21390 $_am_arg |
$_am_arg:* )
21393 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
21396 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21397 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21398 X"$_am_arg" : 'X\(//\)[^/]' \| \
21399 X"$_am_arg" : 'X\(//\)$' \| \
21400 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21401 $as_echo X"$_am_arg" |
21402 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21406 /^X\(\/\/\)[^/].*/{
21418 s/.*/./; q'`/stamp-h
$_am_stamp_count
21421 :C
) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21422 $as_echo "$as_me: executing $ac_file commands" >&6;}
21427 case $ac_file$ac_mode in
21428 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
{
21429 # Autoconf 2.62 quotes --file arguments for eval, but not when files
21430 # are listed without --file. Let's play safe and only enable the eval
21431 # if we detect the quoting.
21432 case $CONFIG_FILES in
21433 *\'*) eval set x
"$CONFIG_FILES" ;;
21434 *) set x
$CONFIG_FILES ;;
21439 # Strip MF so we end up with the name of the file.
21440 mf
=`echo "$mf" | sed -e 's/:.*$//'`
21441 # Check whether this is an Automake generated Makefile or not.
21442 # We used to match only the files named `Makefile.in', but
21443 # some people rename them; so instead we look at the file content.
21444 # Grep'ing the first line is not enough: some people post-process
21445 # each Makefile.in and add a new line on top of each file to say so.
21446 # Grep'ing the whole file is not good either: AIX grep has a line
21447 # limit of 2048, but all sed's we know have understand at least 4000.
21448 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
21449 dirpart
=`$as_dirname -- "$mf" ||
21450 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21451 X"$mf" : 'X\(//\)[^/]' \| \
21452 X"$mf" : 'X\(//\)$' \| \
21453 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21455 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21459 /^X\(\/\/\)[^/].*/{
21475 # Extract the definition of DEPDIR, am__include, and am__quote
21476 # from the Makefile without running `make'.
21477 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
21478 test -z "$DEPDIR" && continue
21479 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
21480 test -z "am__include" && continue
21481 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
21482 # When using ansi2knr, U may be empty or an underscore; expand it
21483 U
=`sed -n 's/^U = //p' < "$mf"`
21484 # Find all dependency output files, they are included files with
21485 # $(DEPDIR) in their names. We invoke sed twice because it is the
21486 # simplest approach to changing $(DEPDIR) to its actual value in the
21488 for file in `sed -n "
21489 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21490 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21491 # Make sure the directory exists.
21492 test -f "$dirpart/$file" && continue
21493 fdir
=`$as_dirname -- "$file" ||
21494 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21495 X"$file" : 'X\(//\)[^/]' \| \
21496 X"$file" : 'X\(//\)$' \| \
21497 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21498 $as_echo X"$file" |
21499 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21503 /^X\(\/\/\)[^/].*/{
21516 as_dir
=$dirpart/$fdir; as_fn_mkdir_p
21517 # echo "creating $dirpart/$file"
21518 echo '# dummy' > "$dirpart/$file"
21524 for dir
in etc lisp
; do
21525 test -d ${dir} || mkdir
${dir}
21529 echo creating src
/epaths.h
21530 ${MAKE-make} epaths-force
21533 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
21534 echo creating src
/.gdbinit
21535 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
21545 ac_clean_files
=$ac_clean_files_save
21547 test $ac_write_fail = 0 ||
21548 as_fn_error
"write failure creating $CONFIG_STATUS" "$LINENO" 5
21551 # configure is writing to config.log, and then calls config.status.
21552 # config.status does its own redirection, appending to config.log.
21553 # Unfortunately, on DOS this fails, as config.log is still kept open
21554 # by configure, so config.status won't be able to write to it; its
21555 # output is simply discarded. So we exec the FD to /dev/null,
21556 # effectively closing config.log, so it can be properly (re)opened and
21557 # appended to by config.status. When coming back to configure, we
21558 # need to make the FD available again.
21559 if test "$no_create" != yes; then
21561 ac_config_status_args
=
21562 test "$silent" = yes &&
21563 ac_config_status_args
="$ac_config_status_args --quiet"
21565 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
21567 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21568 # would make configure fail if this is the last instruction.
21569 $ac_cs_success || as_fn_exit $?
21571 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
21572 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21573 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}