2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.67 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, 2010 Free Software
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 STATUS 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
=$1; test $as_status -eq 0 && as_status
=1
368 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
369 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
371 $as_echo "$as_me: error: $2" >&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, old GNU/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
706 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
716 HAVE_SIGNED_SIG_ATOMIC_T
719 BITSIZEOF_SIG_ATOMIC_T
725 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
730 HAVE_UNSIGNED_LONG_LONG_INT
732 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
739 APPLE_UNIVERSAL_BUILD
747 HAVE_DECL_LOCALTIME_R
757 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
761 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
763 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
764 UNISTD_H_HAVE_WINSOCK2_H
783 REPLACE_GETDOMAINNAME
793 HAVE_DECL_GETUSERSHELL
794 HAVE_DECL_GETPAGESIZE
796 HAVE_DECL_GETDOMAINNAME
831 GNULIB_UNISTD_H_SIGPIPE
832 GNULIB_UNISTD_H_GETOPT
877 REPLACE_CANONICALIZE_FILE_NAME
882 HAVE_STRUCT_RANDOM_DATA
901 HAVE_CANONICALIZE_FILE_NAME
926 GNULIB_CANONICALIZE_FILE_NAME
930 GL_COND_LIBTOOL_FALSE
980 LD_SWITCH_X_SITE_AUX_RPATH
1042 INSTALL_STRIP_PROGRAM
1084 program_transform_name
1095 ac_subst_files
='deps_frag
1098 enable_option_checking
1120 with_toolkit_scroll_bars
1131 with_pkg_config_prog
1135 enable_ns_self_contained
1137 enable_maintainer_mode
1138 enable_locallisppath
1140 enable_use_lisp_union_type
1143 enable_dependency_tracking
1147 ac_precious_vars
='build_alias
1159 # Initialize some variables set by options.
1161 ac_init_version
=false
1162 ac_unrecognized_opts
=
1163 ac_unrecognized_sep
=
1164 # The variables have the same names as the options, with
1165 # dashes changed to underlines.
1166 cache_file
=/dev
/null
1173 program_transform_name
=s
,x
,x
,
1181 # Installation directory options.
1182 # These are left unexpanded so users can "make install exec_prefix=/foo"
1183 # and all the variables that are supposed to be based on exec_prefix
1184 # by default will actually change.
1185 # Use braces instead of parens because sh, perl, etc. also accept them.
1186 # (The list follows the same order as the GNU Coding Standards.)
1187 bindir
='${exec_prefix}/bin'
1188 sbindir
='${exec_prefix}/sbin'
1189 libexecdir
='${exec_prefix}/libexec'
1190 datarootdir
='${prefix}/share'
1191 datadir
='${datarootdir}'
1192 sysconfdir
='${prefix}/etc'
1193 sharedstatedir
='${prefix}/com'
1194 localstatedir
='${prefix}/var'
1195 includedir
='${prefix}/include'
1196 oldincludedir
='/usr/include'
1197 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
1198 infodir
='${datarootdir}/info'
1203 libdir
='${exec_prefix}/lib'
1204 localedir
='${datarootdir}/locale'
1205 mandir
='${datarootdir}/man'
1211 # If the previous option needs an argument, assign it.
1212 if test -n "$ac_prev"; then
1213 eval $ac_prev=\
$ac_option
1219 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1224 # Accept the important Cygnus configure options, so we can diagnose typos.
1226 case $ac_dashdash$ac_option in
1230 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1232 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1233 bindir
=$ac_optarg ;;
1235 -build |
--build |
--buil |
--bui |
--bu)
1236 ac_prev
=build_alias
;;
1237 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1238 build_alias
=$ac_optarg ;;
1240 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1241 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1242 ac_prev
=cache_file
;;
1243 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1244 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1245 cache_file
=$ac_optarg ;;
1247 --config-cache |
-C)
1248 cache_file
=config.cache
;;
1250 -datadir |
--datadir |
--datadi |
--datad)
1252 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1253 datadir
=$ac_optarg ;;
1255 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1256 |
--dataroo |
--dataro |
--datar)
1257 ac_prev
=datarootdir
;;
1258 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1259 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1260 datarootdir
=$ac_optarg ;;
1262 -disable-* |
--disable-*)
1263 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1264 # Reject names that are not valid shell variable names.
1265 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1266 as_fn_error $?
"invalid feature name: $ac_useropt"
1267 ac_useropt_orig
=$ac_useropt
1268 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1269 case $ac_user_opts in
1271 "enable_
$ac_useropt"
1273 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1274 ac_unrecognized_sep
=', ';;
1276 eval enable_
$ac_useropt=no
;;
1278 -docdir |
--docdir |
--docdi |
--doc |
--do)
1280 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1281 docdir
=$ac_optarg ;;
1283 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1285 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1286 dvidir
=$ac_optarg ;;
1288 -enable-* |
--enable-*)
1289 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1290 # Reject names that are not valid shell variable names.
1291 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1292 as_fn_error $?
"invalid feature name: $ac_useropt"
1293 ac_useropt_orig
=$ac_useropt
1294 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1295 case $ac_user_opts in
1297 "enable_
$ac_useropt"
1299 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1300 ac_unrecognized_sep
=', ';;
1302 eval enable_
$ac_useropt=\
$ac_optarg ;;
1304 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1305 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1306 |
--exec |
--exe |
--ex)
1307 ac_prev
=exec_prefix
;;
1308 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1309 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1310 |
--exec=* |
--exe=* |
--ex=*)
1311 exec_prefix
=$ac_optarg ;;
1313 -gas |
--gas |
--ga |
--g)
1314 # Obsolete; use --with-gas.
1317 -help |
--help |
--hel |
--he |
-h)
1318 ac_init_help
=long
;;
1319 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1320 ac_init_help
=recursive
;;
1321 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1322 ac_init_help
=short
;;
1324 -host |
--host |
--hos |
--ho)
1325 ac_prev
=host_alias
;;
1326 -host=* |
--host=* |
--hos=* |
--ho=*)
1327 host_alias
=$ac_optarg ;;
1329 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1331 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1333 htmldir
=$ac_optarg ;;
1335 -includedir |
--includedir |
--includedi |
--included |
--include \
1336 |
--includ |
--inclu |
--incl |
--inc)
1337 ac_prev
=includedir
;;
1338 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1339 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1340 includedir
=$ac_optarg ;;
1342 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1344 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1345 infodir
=$ac_optarg ;;
1347 -libdir |
--libdir |
--libdi |
--libd)
1349 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1350 libdir
=$ac_optarg ;;
1352 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1353 |
--libexe |
--libex |
--libe)
1354 ac_prev
=libexecdir
;;
1355 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1356 |
--libexe=* |
--libex=* |
--libe=*)
1357 libexecdir
=$ac_optarg ;;
1359 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1360 ac_prev
=localedir
;;
1361 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1362 localedir
=$ac_optarg ;;
1364 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1365 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1366 ac_prev
=localstatedir
;;
1367 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1368 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1369 localstatedir
=$ac_optarg ;;
1371 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1373 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1374 mandir
=$ac_optarg ;;
1376 -nfp |
--nfp |
--nf)
1377 # Obsolete; use --without-fp.
1380 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1381 |
--no-cr |
--no-c |
-n)
1384 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1385 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1388 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1389 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1390 |
--oldin |
--oldi |
--old |
--ol |
--o)
1391 ac_prev
=oldincludedir
;;
1392 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1393 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1394 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1395 oldincludedir
=$ac_optarg ;;
1397 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1399 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1400 prefix
=$ac_optarg ;;
1402 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1403 |
--program-pre |
--program-pr |
--program-p)
1404 ac_prev
=program_prefix
;;
1405 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1406 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1407 program_prefix
=$ac_optarg ;;
1409 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1410 |
--program-suf |
--program-su |
--program-s)
1411 ac_prev
=program_suffix
;;
1412 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1413 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1414 program_suffix
=$ac_optarg ;;
1416 -program-transform-name |
--program-transform-name \
1417 |
--program-transform-nam |
--program-transform-na \
1418 |
--program-transform-n |
--program-transform- \
1419 |
--program-transform |
--program-transfor \
1420 |
--program-transfo |
--program-transf \
1421 |
--program-trans |
--program-tran \
1422 |
--progr-tra |
--program-tr |
--program-t)
1423 ac_prev
=program_transform_name
;;
1424 -program-transform-name=* |
--program-transform-name=* \
1425 |
--program-transform-nam=* |
--program-transform-na=* \
1426 |
--program-transform-n=* |
--program-transform-=* \
1427 |
--program-transform=* |
--program-transfor=* \
1428 |
--program-transfo=* |
--program-transf=* \
1429 |
--program-trans=* |
--program-tran=* \
1430 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1431 program_transform_name
=$ac_optarg ;;
1433 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1435 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1436 pdfdir
=$ac_optarg ;;
1438 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1440 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1443 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1444 |
-silent |
--silent |
--silen |
--sile |
--sil)
1447 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1449 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1451 sbindir
=$ac_optarg ;;
1453 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1454 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1455 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1457 ac_prev
=sharedstatedir
;;
1458 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1459 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1460 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1462 sharedstatedir
=$ac_optarg ;;
1464 -site |
--site |
--sit)
1466 -site=* |
--site=* |
--sit=*)
1469 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1471 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1472 srcdir
=$ac_optarg ;;
1474 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1475 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1476 ac_prev
=sysconfdir
;;
1477 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1478 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1479 sysconfdir
=$ac_optarg ;;
1481 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1482 ac_prev
=target_alias
;;
1483 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1484 target_alias
=$ac_optarg ;;
1486 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1489 -version |
--version |
--versio |
--versi |
--vers |
-V)
1490 ac_init_version
=: ;;
1493 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1494 # Reject names that are not valid shell variable names.
1495 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1496 as_fn_error $?
"invalid package name: $ac_useropt"
1497 ac_useropt_orig
=$ac_useropt
1498 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1499 case $ac_user_opts in
1503 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1504 ac_unrecognized_sep
=', ';;
1506 eval with_
$ac_useropt=\
$ac_optarg ;;
1508 -without-* |
--without-*)
1509 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1510 # Reject names that are not valid shell variable names.
1511 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1512 as_fn_error $?
"invalid package name: $ac_useropt"
1513 ac_useropt_orig
=$ac_useropt
1514 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1515 case $ac_user_opts in
1519 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1520 ac_unrecognized_sep
=', ';;
1522 eval with_
$ac_useropt=no
;;
1525 # Obsolete; use --with-x.
1528 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1529 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1530 ac_prev
=x_includes
;;
1531 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1532 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1533 x_includes
=$ac_optarg ;;
1535 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1536 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1537 ac_prev
=x_libraries
;;
1538 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1539 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1540 x_libraries
=$ac_optarg ;;
1542 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1543 Try \`$0 --help' for more information"
1547 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1548 # Reject names that are not valid shell variable names.
1549 case $ac_envvar in #(
1550 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1551 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1553 eval $ac_envvar=\
$ac_optarg
1554 export $ac_envvar ;;
1557 # FIXME: should be removed in autoconf 3.0.
1558 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1559 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1560 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1561 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1567 if test -n "$ac_prev"; then
1568 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1569 as_fn_error $?
"missing argument to $ac_option"
1572 if test -n "$ac_unrecognized_opts"; then
1573 case $enable_option_checking in
1575 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1576 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1580 # Check all directory arguments for consistency.
1581 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1582 datadir sysconfdir sharedstatedir localstatedir includedir \
1583 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1584 libdir localedir mandir
1586 eval ac_val
=\$
$ac_var
1587 # Remove trailing slashes.
1590 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1591 eval $ac_var=\
$ac_val;;
1593 # Be sure to have absolute directory names.
1595 [\\/$
]* | ?
:[\\/]* ) continue;;
1596 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1598 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1601 # There might be people who depend on the old broken behavior: `$host'
1602 # used to hold the argument of --host etc.
1603 # FIXME: To remove some day.
1606 target
=$target_alias
1608 # FIXME: To remove some day.
1609 if test "x$host_alias" != x
; then
1610 if test "x$build_alias" = x
; then
1611 cross_compiling
=maybe
1612 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1613 If a cross compiler is detected then cross compile mode will be used" >&2
1614 elif test "x$build_alias" != "x$host_alias"; then
1620 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1622 test "$silent" = yes && exec 6>/dev
/null
1625 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1626 ac_ls_di
=`ls -di .` &&
1627 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1628 as_fn_error $?
"working directory cannot be determined"
1629 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1630 as_fn_error $?
"pwd does not report name of working directory"
1633 # Find the source files, if location was not specified.
1634 if test -z "$srcdir"; then
1635 ac_srcdir_defaulted
=yes
1636 # Try the directory containing this script, then the parent directory.
1637 ac_confdir
=`$as_dirname -- "$as_myself" ||
1638 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1639 X"$as_myself" : 'X\(//\)[^/]' \| \
1640 X"$as_myself" : 'X\(//\)$' \| \
1641 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1642 $as_echo X"$as_myself" |
1643 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1661 if test ! -r "$srcdir/$ac_unique_file"; then
1665 ac_srcdir_defaulted
=no
1667 if test ! -r "$srcdir/$ac_unique_file"; then
1668 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1669 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1671 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1673 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1675 # When building in place, set srcdir=.
1676 if test "$ac_abs_confdir" = "$ac_pwd"; then
1679 # Remove unnecessary trailing slashes from srcdir.
1680 # Double slashes in file names in object file debugging info
1681 # mess up M-x gdb in Emacs.
1683 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1685 for ac_var
in $ac_precious_vars; do
1686 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1687 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1688 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1689 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1693 # Report the --help message.
1695 if test "$ac_init_help" = "long"; then
1696 # Omit some internal or obsolete options to make the list less imposing.
1697 # This message is too long to be a string in the A/UX 3.1 sh.
1699 \`configure' configures emacs 24.0.50 to adapt to many kinds of systems.
1701 Usage: $0 [OPTION]... [VAR=VALUE]...
1703 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1704 VAR=VALUE. See below for descriptions of some of the useful variables.
1706 Defaults for the options are specified in brackets.
1709 -h, --help display this help and exit
1710 --help=short display options specific to this package
1711 --help=recursive display the short help of all the included packages
1712 -V, --version display version information and exit
1713 -q, --quiet, --silent do not print \`checking ...' messages
1714 --cache-file=FILE cache test results in FILE [disabled]
1715 -C, --config-cache alias for \`--cache-file=config.cache'
1716 -n, --no-create do not create output files
1717 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1719 Installation directories:
1720 --prefix=PREFIX install architecture-independent files in PREFIX
1721 [$ac_default_prefix]
1722 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1725 By default, \`make install' will install all the files in
1726 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1727 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1728 for instance \`--prefix=\$HOME'.
1730 For better control, use the options below.
1732 Fine tuning of the installation directories:
1733 --bindir=DIR user executables [EPREFIX/bin]
1734 --sbindir=DIR system admin executables [EPREFIX/sbin]
1735 --libexecdir=DIR program executables [EPREFIX/libexec]
1736 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1737 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1738 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1739 --libdir=DIR object code libraries [EPREFIX/lib]
1740 --includedir=DIR C header files [PREFIX/include]
1741 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1742 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1743 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1744 --infodir=DIR info documentation [DATAROOTDIR/info]
1745 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1746 --mandir=DIR man documentation [DATAROOTDIR/man]
1747 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1748 --htmldir=DIR html documentation [DOCDIR]
1749 --dvidir=DIR dvi documentation [DOCDIR]
1750 --pdfdir=DIR pdf documentation [DOCDIR]
1751 --psdir=DIR ps documentation [DOCDIR]
1757 --program-prefix=PREFIX prepend PREFIX to installed program names
1758 --program-suffix=SUFFIX append SUFFIX to installed program names
1759 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1762 --x-includes=DIR X include files are
in DIR
1763 --x-libraries=DIR X library files are
in DIR
1766 --build=BUILD configure
for building on BUILD
[guessed
]
1767 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1771 if test -n "$ac_init_help"; then
1772 case $ac_init_help in
1773 short | recursive
) echo "Configuration of emacs 24.0.50:";;
1778 --disable-option-checking ignore unrecognized
--enable/--with options
1779 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1780 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1781 --disable-ns-self-contained
1782 disable self contained build under NeXTstep
1783 --enable-asserts compile code with asserts enabled
1784 --enable-maintainer-mode
1785 enable make rules and dependencies not useful
(and
1786 sometimes confusing
) to the casual installer
1787 --enable-locallisppath=PATH
1788 directories Emacs should search
for lisp files
1789 specific to this site
1790 --enable-checking[=LIST
]
1791 enable expensive run-time checks. With LIST
, enable
1792 only specific categories of checks. Categories are
:
1793 all
,yes,no. Flags are
: stringbytes
, stringoverrun
,
1794 stringfreelist
, xmallocoverrun
, conslist
1795 --enable-use-lisp-union-type
1796 use a union
for the Lisp_Object data
type. This is
1797 only useful
for development
for catching certain
1799 --enable-profiling build emacs with profiling support. This might not
1800 work on all platforms
1801 --enable-autodepend automatically generate dependencies to .h-files.
1802 Requires GNU Make and Gcc. Enabled
if GNU Make and
1804 --disable-dependency-tracking speeds up one-time build
1805 --enable-dependency-tracking do not reject slow dependency extractors
1806 --disable-largefile omit support
for large files
1809 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1810 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1811 --without-pop don
't support POP mail retrieval with movemail
1812 --with-kerberos support Kerberos-authenticated POP
1813 --with-kerberos5 support Kerberos version 5 authenticated POP
1814 --with-hesiod support Hesiod to get the POP server host
1815 --with-mmdf support MMDF mailboxes
1816 --with-mail-unlink unlink, rather than empty, mail spool after reading
1817 --with-mailhost=HOSTNAME
1818 string giving default POP mail host
1819 --without-sound don't compile with sound support
1820 --without-sync-input process async input synchronously
1821 --with-x-toolkit=KIT use an X toolkit
(KIT one of
: yes or gtk
, gtk3
,
1822 lucid or athena
, motif
, no
)
1823 --without-xpm don
't compile with XPM image support
1824 --without-jpeg don't compile with JPEG image support
1825 --without-tiff don
't compile with TIFF image support
1826 --without-gif don't compile with GIF image support
1827 --without-png don
't compile with PNG image support
1828 --without-rsvg don't compile with SVG image support
1829 --without-xml2 don
't compile with XML parsing support
1830 --without-imagemagick don't compile with ImageMagick image support
1831 --without-xft don
't use XFT for anti aliased fonts
1832 --without-libotf don't use libotf
for OpenType font support
1833 --without-m17n-flt don
't use m17n-flt for text shaping
1834 --without-toolkit-scroll-bars
1835 don't use Motif or Xaw3d scroll bars
1836 --without-xaw3d don
't use Xaw3d
1837 --without-xim don't use X11 XIM
1838 --with-ns use nextstep
(Cocoa or GNUstep
) windowing system
1839 --without-gpm don
't use -lgpm for mouse support on a GNU/Linux
1841 --without-dbus don't compile with D-Bus support
1842 --without-gconf don
't compile with GConf support
1843 --without-selinux don't compile with SELinux support
1844 --without-gnutls don
't use -lgnutls for SSL/TLS support
1845 --without-makeinfo don't require makeinfo
for building manuals
1846 --without-compress-info don
't compress the installed Info pages
1847 --with-pkg-config-prog=PATH
1848 path to pkg-config for finding GTK and librsvg
1849 --with-crt-dir=DIR directory containing crtn.o etc. The default is
1850 /usr/lib, or /usr/lib64 on some platforms.
1851 --with-gameuser=USER user for shared game score files
1852 --with-gnustep-conf=PATH
1853 path to GNUstep.conf; default $GNUSTEP_CONFIG_FILE,
1854 or /etc/GNUstep/GNUstep.conf
1855 --with-x use the X Window System
1857 Some influential environment variables:
1858 CC C compiler command
1859 CFLAGS C compiler flags
1860 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1861 nonstandard directory <lib dir>
1862 LIBS libraries to pass to the linker, e.g. -l<library>
1863 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1864 you have headers in a nonstandard directory <include dir>
1866 XMKMF Path to xmkmf, Makefile generator for X Window System
1868 Use these variables to override the choices made by `configure' or to
help
1869 it to
find libraries and programs with nonstandard names
/locations.
1871 Report bugs to the package provider.
1876 if test "$ac_init_help" = "recursive"; then
1877 # If there are subdirs, report their specific --help.
1878 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1879 test -d "$ac_dir" ||
1880 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1885 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1887 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1888 # A ".." for each directory in $ac_dir_suffix.
1889 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1890 case $ac_top_builddir_sub in
1891 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1892 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1895 ac_abs_top_builddir
=$ac_pwd
1896 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1897 # for backward compatibility:
1898 ac_top_builddir
=$ac_top_build_prefix
1901 .
) # We are building in place.
1903 ac_top_srcdir
=$ac_top_builddir_sub
1904 ac_abs_top_srcdir
=$ac_pwd ;;
1905 [\\/]* | ?
:[\\/]* ) # Absolute name.
1906 ac_srcdir
=$srcdir$ac_dir_suffix;
1907 ac_top_srcdir
=$srcdir
1908 ac_abs_top_srcdir
=$srcdir ;;
1910 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1911 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1912 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1914 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1916 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1917 # Check for guested configure.
1918 if test -f "$ac_srcdir/configure.gnu"; then
1920 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1921 elif test -f "$ac_srcdir/configure"; then
1923 $SHELL "$ac_srcdir/configure" --help=recursive
1925 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1927 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1931 test -n "$ac_init_help" && exit $ac_status
1932 if $ac_init_version; then
1934 emacs configure
24.0.50
1935 generated by GNU Autoconf
2.67
1937 Copyright
(C
) 2010 Free Software Foundation
, Inc.
1938 This configure
script is free software
; the Free Software Foundation
1939 gives unlimited permission to copy
, distribute and modify it.
1944 ## ------------------------ ##
1945 ## Autoconf initialization. ##
1946 ## ------------------------ ##
1948 # ac_fn_c_try_compile LINENO
1949 # --------------------------
1950 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1951 ac_fn_c_try_compile
()
1953 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1954 rm -f conftest.
$ac_objext
1955 if { { ac_try
="$ac_compile"
1957 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1958 *) ac_try_echo=$ac_try;;
1960 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1961 $as_echo "$ac_try_echo"; } >&5
1962 (eval "$ac_compile") 2>conftest.err
1964 if test -s conftest.err; then
1965 grep -v '^ *+' conftest.err >conftest.er1
1966 cat conftest.er1 >&5
1967 mv -f conftest.er1 conftest.err
1969 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1970 test $ac_status = 0; } && {
1971 test -z "$ac_c_werror_flag" ||
1972 test ! -s conftest.err
1973 } && test -s conftest.$ac_objext; then :
1976 $as_echo "$as_me: failed program was:" >&5
1977 sed 's/^/| /' conftest.$ac_ext >&5
1981 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1982 as_fn_set_status $ac_retval
1984 } # ac_fn_c_try_compile
1986 # ac_fn_c_try_cpp LINENO
1987 # ----------------------
1988 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1991 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1992 if { { ac_try="$ac_cpp conftest.$ac_ext"
1994 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1995 *) ac_try_echo
=$ac_try;;
1997 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1998 $as_echo "$ac_try_echo"; } >&5
1999 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2001 if test -s conftest.err
; then
2002 grep -v '^ *+' conftest.err
>conftest.er1
2003 cat conftest.er1
>&5
2004 mv -f conftest.er1 conftest.err
2006 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2007 test $ac_status = 0; } > conftest.i
&& {
2008 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2009 test ! -s conftest.err
2013 $as_echo "$as_me: failed program was:" >&5
2014 sed 's/^/| /' conftest.
$ac_ext >&5
2018 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2019 as_fn_set_status
$ac_retval
2023 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2024 # -------------------------------------------------------
2025 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2026 # the include files in INCLUDES and setting the cache variable VAR
2028 ac_fn_c_check_header_mongrel
()
2030 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2031 if eval "test \"\${$3+set}\"" = set; then :
2032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2033 $as_echo_n "checking for $2... " >&6; }
2034 if eval "test \"\${$3+set}\"" = set; then :
2035 $as_echo_n "(cached) " >&6
2038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2039 $as_echo "$ac_res" >&6; }
2041 # Is the header compilable?
2042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2043 $as_echo_n "checking $2 usability... " >&6; }
2044 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2045 /* end confdefs.h. */
2049 if ac_fn_c_try_compile
"$LINENO"; then :
2050 ac_header_compiler
=yes
2052 ac_header_compiler
=no
2054 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2056 $as_echo "$ac_header_compiler" >&6; }
2058 # Is the header present?
2059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2060 $as_echo_n "checking $2 presence... " >&6; }
2061 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2062 /* end confdefs.h. */
2065 if ac_fn_c_try_cpp
"$LINENO"; then :
2066 ac_header_preproc
=yes
2068 ac_header_preproc
=no
2070 rm -f conftest.err conftest.i conftest.
$ac_ext
2071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2072 $as_echo "$ac_header_preproc" >&6; }
2074 # So? What about this header?
2075 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2077 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2078 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2079 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2080 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2083 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2084 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2085 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2086 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2087 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2088 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2089 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2090 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2091 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2092 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2096 $as_echo_n "checking for $2... " >&6; }
2097 if eval "test \"\${$3+set}\"" = set; then :
2098 $as_echo_n "(cached) " >&6
2100 eval "$3=\$ac_header_compiler"
2103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2104 $as_echo "$ac_res" >&6; }
2106 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2108 } # ac_fn_c_check_header_mongrel
2110 # ac_fn_c_try_run LINENO
2111 # ----------------------
2112 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2113 # that executables *can* be run.
2116 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2117 if { { ac_try
="$ac_link"
2119 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2120 *) ac_try_echo=$ac_try;;
2122 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2123 $as_echo "$ac_try_echo"; } >&5
2124 (eval "$ac_link") 2>&5
2126 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2127 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2128 { { case "(($ac_try" in
2129 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2130 *) ac_try_echo
=$ac_try;;
2132 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2133 $as_echo "$ac_try_echo"; } >&5
2134 (eval "$ac_try") 2>&5
2136 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2137 test $ac_status = 0; }; }; then :
2140 $as_echo "$as_me: program exited with status $ac_status" >&5
2141 $as_echo "$as_me: failed program was:" >&5
2142 sed 's/^/| /' conftest.
$ac_ext >&5
2144 ac_retval
=$ac_status
2146 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2147 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2148 as_fn_set_status
$ac_retval
2152 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2153 # -------------------------------------------------------
2154 # Tests whether HEADER exists and can be compiled using the include files in
2155 # INCLUDES, setting the cache variable VAR accordingly.
2156 ac_fn_c_check_header_compile
()
2158 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2160 $as_echo_n "checking for $2... " >&6; }
2161 if eval "test \"\${$3+set}\"" = set; then :
2162 $as_echo_n "(cached) " >&6
2164 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2165 /* end confdefs.h. */
2169 if ac_fn_c_try_compile
"$LINENO"; then :
2174 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2178 $as_echo "$ac_res" >&6; }
2179 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2181 } # ac_fn_c_check_header_compile
2183 # ac_fn_c_try_link LINENO
2184 # -----------------------
2185 # Try to link conftest.$ac_ext, and return whether this succeeded.
2188 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2189 rm -f conftest.
$ac_objext conftest
$ac_exeext
2190 if { { ac_try
="$ac_link"
2192 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2193 *) ac_try_echo=$ac_try;;
2195 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2196 $as_echo "$ac_try_echo"; } >&5
2197 (eval "$ac_link") 2>conftest.err
2199 if test -s conftest.err; then
2200 grep -v '^ *+' conftest.err >conftest.er1
2201 cat conftest.er1 >&5
2202 mv -f conftest.er1 conftest.err
2204 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2205 test $ac_status = 0; } && {
2206 test -z "$ac_c_werror_flag" ||
2207 test ! -s conftest.err
2208 } && test -s conftest$ac_exeext && {
2209 test "$cross_compiling" = yes ||
2210 $as_test_x conftest$ac_exeext
2214 $as_echo "$as_me: failed program was:" >&5
2215 sed 's/^/| /' conftest.$ac_ext >&5
2219 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2220 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2221 # interfere with the next link command; also delete a directory that is
2222 # left behind by Apple's compiler. We do this before executing the actions.
2223 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2224 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2225 as_fn_set_status $ac_retval
2227 } # ac_fn_c_try_link
2229 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2230 # ---------------------------------------------
2231 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2233 ac_fn_c_check_decl ()
2235 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2236 as_decl_name=`echo $2|
sed 's/ *(.*//'`
2237 as_decl_use=`echo $2|
sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2239 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2240 if eval "test \"\${$3+set}\"" = set; then :
2241 $as_echo_n "(cached) " >&6
2243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2244 /* end confdefs.h. */
2249 #ifndef $as_decl_name
2251 (void) $as_decl_use;
2253 (void) $as_decl_name;
2261 if ac_fn_c_try_compile "$LINENO"; then :
2266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2270 $as_echo "$ac_res" >&6; }
2271 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2273 } # ac_fn_c_check_decl
2275 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2276 # ----------------------------------------------
2277 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2278 ac_fn_c_check_header_preproc ()
2280 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2282 $as_echo_n "checking for $2... " >&6; }
2283 if eval "test \"\${$3+set}\"" = set; then :
2284 $as_echo_n "(cached) " >&6
2286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2287 /* end confdefs.h. */
2290 if ac_fn_c_try_cpp "$LINENO"; then :
2295 rm -f conftest.err conftest.i conftest.$ac_ext
2298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2299 $as_echo "$ac_res" >&6; }
2300 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2302 } # ac_fn_c_check_header_preproc
2304 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2305 # ----------------------------------------------------
2306 # Tries to find if the field MEMBER exists in type AGGR, after including
2307 # INCLUDES, setting cache variable VAR accordingly.
2308 ac_fn_c_check_member ()
2310 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2312 $as_echo_n "checking for $2.$3... " >&6; }
2313 if eval "test \"\${$4+set}\"" = set; then :
2314 $as_echo_n "(cached) " >&6
2316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2317 /* end confdefs.h. */
2329 if ac_fn_c_try_compile "$LINENO"; then :
2332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2333 /* end confdefs.h. */
2339 if (sizeof ac_aggr.$3)
2345 if ac_fn_c_try_compile "$LINENO"; then :
2350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2356 $as_echo "$ac_res" >&6; }
2357 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2359 } # ac_fn_c_check_member
2361 # ac_fn_c_check_func LINENO FUNC VAR
2362 # ----------------------------------
2363 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2364 ac_fn_c_check_func ()
2366 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2368 $as_echo_n "checking for $2... " >&6; }
2369 if eval "test \"\${$3+set}\"" = set; then :
2370 $as_echo_n "(cached) " >&6
2372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2373 /* end confdefs.h. */
2374 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2375 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2376 #define $2 innocuous_$2
2378 /* System header to define __stub macros and hopefully few prototypes,
2379 which can conflict with char $2 (); below.
2380 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2381 <limits.h> exists even on freestanding compilers. */
2384 # include <limits.h>
2386 # include <assert.h>
2391 /* Override any GCC internal prototype to avoid an error.
2392 Use char because int might match the return type of a GCC
2393 builtin and then its argument prototype would still apply. */
2398 /* The GNU C library defines this for functions which it implements
2399 to always fail with ENOSYS. Some functions are actually named
2400 something starting with __ and the normal name is an alias. */
2401 #if defined __stub_$2 || defined __stub___$2
2413 if ac_fn_c_try_link "$LINENO"; then :
2418 rm -f core conftest.err conftest.$ac_objext \
2419 conftest$ac_exeext conftest.$ac_ext
2422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2423 $as_echo "$ac_res" >&6; }
2424 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2426 } # ac_fn_c_check_func
2428 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2429 # -------------------------------------------
2430 # Tests whether TYPE exists after having included INCLUDES, setting cache
2431 # variable VAR accordingly.
2432 ac_fn_c_check_type ()
2434 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2436 $as_echo_n "checking for $2... " >&6; }
2437 if eval "test \"\${$3+set}\"" = set; then :
2438 $as_echo_n "(cached) " >&6
2441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2442 /* end confdefs.h. */
2453 if ac_fn_c_try_compile "$LINENO"; then :
2454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2455 /* end confdefs.h. */
2466 if ac_fn_c_try_compile "$LINENO"; then :
2471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2477 $as_echo "$ac_res" >&6; }
2478 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2480 } # ac_fn_c_check_type
2482 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2483 # --------------------------------------------
2484 # Tries to find the compile-time value of EXPR in a program that includes
2485 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2487 ac_fn_c_compute_int ()
2489 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2490 if test "$cross_compiling" = yes; then
2491 # Depending upon the size, compute the lo and hi bounds.
2492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2493 /* end confdefs.h. */
2498 static int test_array [1 - 2 * !(($2) >= 0)];
2505 if ac_fn_c_try_compile "$LINENO"; then :
2508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2509 /* end confdefs.h. */
2514 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2521 if ac_fn_c_try_compile "$LINENO"; then :
2522 ac_hi=$ac_mid; break
2524 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2525 if test $ac_lo -le $ac_mid; then
2529 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2535 /* end confdefs.h. */
2540 static int test_array [1 - 2 * !(($2) < 0)];
2547 if ac_fn_c_try_compile "$LINENO"; then :
2550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2551 /* end confdefs.h. */
2556 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2563 if ac_fn_c_try_compile "$LINENO"; then :
2564 ac_lo=$ac_mid; break
2566 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2567 if test $ac_mid -le $ac_hi; then
2571 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2581 # Binary search between lo and hi bounds.
2582 while test "x$ac_lo" != "x$ac_hi"; do
2583 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2585 /* end confdefs.h. */
2590 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2597 if ac_fn_c_try_compile "$LINENO"; then :
2600 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2605 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2610 /* end confdefs.h. */
2612 static long int longval () { return $2; }
2613 static unsigned long int ulongval () { return $2; }
2620 FILE *f = fopen ("conftest.val", "w");
2625 long int i = longval ();
2628 fprintf (f, "%ld", i);
2632 unsigned long int i = ulongval ();
2635 fprintf (f, "%lu", i);
2637 /* Do not output a trailing newline, as this causes \r\n confusion
2638 on some platforms. */
2639 return ferror (f) || fclose (f) != 0;
2645 if ac_fn_c_try_run "$LINENO"; then :
2646 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2650 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2651 conftest.$ac_objext conftest.beam conftest.$ac_ext
2655 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2656 as_fn_set_status $ac_retval
2658 } # ac_fn_c_compute_int
2659 cat >config.log <<_ACEOF
2660 This file contains any messages produced by compilers while
2661 running configure, to aid debugging if configure makes a mistake.
2663 It was created by emacs $as_me 24.0.50, which was
2664 generated by GNU Autoconf 2.67. Invocation command line was
2676 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2677 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2678 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2679 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2680 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2682 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2683 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2685 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2686 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2687 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2688 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2689 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2690 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2691 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2699 test -z "$as_dir" && as_dir=.
2700 $as_echo "PATH: $as_dir"
2716 # Keep a trace of the command line.
2717 # Strip out --no-create and --no-recursion so they do not pile up.
2718 # Strip out --silent because we don't want to record it for future runs.
2719 # Also quote any args containing shell meta-characters.
2720 # Make two passes to allow for proper duplicate-argument suppression.
2724 ac_must_keep_next=false
2730 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2731 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2732 | -silent | --silent | --silen | --sile | --sil)
2735 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2738 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2740 as_fn_append ac_configure_args1 " '$ac_arg'"
2741 if test $ac_must_keep_next = true; then
2742 ac_must_keep_next=false # Got value, back to normal.
2745 *=* | --config-cache | -C | -disable-* | --disable-* \
2746 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2747 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2748 | -with-* | --with-* | -without-* | --without-* | --x)
2749 case "$ac_configure_args0 " in
2750 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2753 -* ) ac_must_keep_next=true ;;
2756 as_fn_append ac_configure_args " '$ac_arg'"
2761 { ac_configure_args0=; unset ac_configure_args0;}
2762 { ac_configure_args1=; unset ac_configure_args1;}
2764 # When interrupted or exit'd, cleanup temporary files, and complete
2765 # config.log. We remove comments because anyway the quotes in there
2766 # would cause problems or look ugly.
2767 # WARNING: Use '\'' to represent an apostrophe within the trap.
2768 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2769 trap 'exit_status=$?
2770 # Save into config.log some information that might help in debugging.
2774 $as_echo "## ---------------- ##
2775 ## Cache variables. ##
2776 ## ---------------- ##"
2778 # The following way of writing the cache mishandles newlines in values,
2780 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2781 eval ac_val=\$$ac_var
2785 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2786 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2789 _ | IFS | as_nl) ;; #(
2790 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2791 *) { eval $ac_var=; unset $ac_var;} ;;
2796 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2797 *${as_nl}ac_space=\ *)
2799 "s/'\''/'\''\\\\'\'''\''/g;
2800 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2803 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2810 $as_echo "## ----------------- ##
2811 ## Output variables. ##
2812 ## ----------------- ##"
2814 for ac_var in $ac_subst_vars
2816 eval ac_val=\$$ac_var
2818 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2820 $as_echo "$ac_var='\''$ac_val'\''"
2824 if test -n "$ac_subst_files"; then
2825 $as_echo "## ------------------- ##
2826 ## File substitutions. ##
2827 ## ------------------- ##"
2829 for ac_var in $ac_subst_files
2831 eval ac_val=\$$ac_var
2833 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2835 $as_echo "$ac_var='\''$ac_val'\''"
2840 if test -s confdefs.h; then
2841 $as_echo "## ----------- ##
2848 test "$ac_signal" != 0 &&
2849 $as_echo "$as_me: caught signal $ac_signal"
2850 $as_echo "$as_me: exit $exit_status"
2852 rm -f core *.core core.conftest.* &&
2853 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2856 for ac_signal in 1 2 13 15; do
2857 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2861 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2862 rm -f -r conftest* confdefs.h
2864 $as_echo "/* confdefs.h */" > confdefs.h
2866 # Predefined preprocessor variables.
2868 cat >>confdefs.h <<_ACEOF
2869 #define PACKAGE_NAME "$PACKAGE_NAME"
2872 cat >>confdefs.h <<_ACEOF
2873 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2876 cat >>confdefs.h <<_ACEOF
2877 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2880 cat >>confdefs.h <<_ACEOF
2881 #define PACKAGE_STRING "$PACKAGE_STRING"
2884 cat >>confdefs.h <<_ACEOF
2885 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2888 cat >>confdefs.h <<_ACEOF
2889 #define PACKAGE_URL "$PACKAGE_URL"
2893 # Let the site file select an alternate cache file if it wants to.
2894 # Prefer an explicitly selected file to automatically selected ones.
2897 if test -n "$CONFIG_SITE"; then
2898 # We do not want a PATH search for config.site.
2899 case $CONFIG_SITE in #((
2900 -*) ac_site_file1=./$CONFIG_SITE;;
2901 */*) ac_site_file1=$CONFIG_SITE;;
2902 *) ac_site_file1=./$CONFIG_SITE;;
2904 elif test "x$prefix" != xNONE; then
2905 ac_site_file1=$prefix/share/config.site
2906 ac_site_file2=$prefix/etc/config.site
2908 ac_site_file1=$ac_default_prefix/share/config.site
2909 ac_site_file2=$ac_default_prefix/etc/config.site
2911 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2913 test "x$ac_site_file" = xNONE && continue
2914 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2915 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2916 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2917 sed 's/^/| /' "$ac_site_file" >&5
2919 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2920 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2921 as_fn_error $? "failed to load site
script $ac_site_file
2922 See \
`config.log' for more details" "$LINENO" 5 ; }
2926 if test -r "$cache_file"; then
2927 # Some versions of bash will fail to source /dev/null (special files
2928 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2929 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2930 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2931 $as_echo "$as_me: loading cache $cache_file" >&6;}
2933 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2934 *) . "./$cache_file";;
2938 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2939 $as_echo "$as_me: creating cache $cache_file" >&6;}
2943 as_fn_append ac_header_list " stdlib.h"
2944 as_fn_append ac_header_list " unistd.h"
2945 as_fn_append ac_header_list " sys/param.h"
2946 gl_getopt_required=GNU
2947 as_fn_append ac_header_list " getopt.h"
2948 as_fn_append ac_func_list " alarm"
2949 as_fn_append ac_header_list " wchar.h"
2950 as_fn_append ac_header_list " stdint.h"
2951 as_fn_append ac_func_list " tzset"
2952 as_fn_append ac_header_list " sys/stat.h"
2953 as_fn_append ac_header_list " sys/time.h"
2954 as_fn_append ac_func_list " localtime_r"
2955 # Check that the precious variables saved in the cache have kept the same
2957 ac_cache_corrupted=false
2958 for ac_var in $ac_precious_vars; do
2959 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2960 eval ac_new_set=\$ac_env_${ac_var}_set
2961 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2962 eval ac_new_val=\$ac_env_${ac_var}_value
2963 case $ac_old_set,$ac_new_set in
2965 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2966 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2967 ac_cache_corrupted=: ;;
2969 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2970 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2971 ac_cache_corrupted=: ;;
2974 if test "x$ac_old_val" != "x$ac_new_val"; then
2975 # differences in whitespace do not lead to failure.
2976 ac_old_val_w=`echo x
$ac_old_val`
2977 ac_new_val_w=`echo x
$ac_new_val`
2978 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2979 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2980 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2981 ac_cache_corrupted=:
2983 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2984 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2985 eval $ac_var=\$ac_old_val
2987 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2988 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2989 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2990 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2993 # Pass precious variables to config.status.
2994 if test "$ac_new_set" = set; then
2996 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2997 *) ac_arg=$ac_var=$ac_new_val ;;
2999 case " $ac_configure_args " in
3000 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3001 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3005 if $ac_cache_corrupted; then
3006 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
3007 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3008 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3009 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3010 as_fn_error $? "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
3012 ## -------------------- ##
3013 ## Main body of script. ##
3014 ## -------------------- ##
3017 ac_cpp='$CPP $CPPFLAGS'
3018 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3019 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3020 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3023 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
3026 am__api_version='1.11'
3029 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3030 if test -f "$ac_dir/install-sh"; then
3032 ac_install_sh="$ac_aux_dir/install-sh -c"
3034 elif test -f "$ac_dir/install.sh"; then
3036 ac_install_sh="$ac_aux_dir/install.sh -c"
3038 elif test -f "$ac_dir/shtool"; then
3040 ac_install_sh="$ac_aux_dir/shtool install -c"
3044 if test -z "$ac_aux_dir"; then
3045 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3048 # These three variables are undocumented and unsupported,
3049 # and are intended to be withdrawn in a future Autoconf release.
3050 # They can cause serious problems if a builder's source tree is in a directory
3051 # whose full name contains unusual characters.
3052 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3053 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3054 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3057 # Find a good install program. We prefer a C program (faster),
3058 # so one script is as good as another. But avoid the broken or
3059 # incompatible versions:
3060 # SysV /etc/install, /usr/sbin/install
3061 # SunOS /usr/etc/install
3062 # IRIX /sbin/install
3064 # AmigaOS /C/install, which installs bootblocks on floppy discs
3065 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3066 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3067 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3068 # OS/2's system install, which has a completely different semantic
3069 # ./install, which can be erroneously created by make from ./install.sh.
3070 # Reject install programs that cannot install multiple files.
3071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3072 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3073 if test -z "$INSTALL"; then
3074 if test "${ac_cv_path_install+set}" = set; then :
3075 $as_echo_n "(cached) " >&6
3077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3081 test -z "$as_dir" && as_dir=.
3082 # Account for people who put trailing slashes in PATH elements.
3083 case $as_dir/ in #((
3084 ./ | .// | /[cC]/* | \
3085 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3086 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3089 # OSF1 and SCO ODT 3.0 have their own names for install.
3090 # Don't use installbsd from OSF since it installs stuff as root
3092 for ac_prog in ginstall scoinst install; do
3093 for ac_exec_ext in '' $ac_executable_extensions; do
3094 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3095 if test $ac_prog = install &&
3096 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3097 # AIX install. It has an incompatible calling convention.
3099 elif test $ac_prog = install &&
3100 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3101 # program-specific install script used by HP pwplus--don't use.
3104 rm -rf conftest.one conftest.two conftest.dir
3105 echo one > conftest.one
3106 echo two > conftest.two
3108 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3109 test -s conftest.one && test -s conftest.two &&
3110 test -s conftest.dir/conftest.one &&
3111 test -s conftest.dir/conftest.two
3113 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3126 rm -rf conftest.one conftest.two conftest.dir
3129 if test "${ac_cv_path_install+set}" = set; then
3130 INSTALL=$ac_cv_path_install
3132 # As a last resort, use the slow shell script. Don't cache a
3133 # value for INSTALL within a source directory, because that will
3134 # break other packages using the cache if that directory is
3135 # removed, or if the value is a relative name.
3136 INSTALL=$ac_install_sh
3139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3140 $as_echo "$INSTALL" >&6; }
3142 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3143 # It thinks the first close brace ends the variable substitution.
3144 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3146 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3148 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3151 $as_echo_n "checking whether build environment is sane... " >&6; }
3154 echo timestamp > conftest.file
3155 # Reject unsafe characters in $srcdir or the absolute working directory
3156 # name. Accept space and tab only in the latter.
3160 *[\\\"\#\$\&\'\`$am_lf]*)
3161 as_fn_error $?
"unsafe absolute working directory name" "$LINENO" 5 ;;
3164 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
3165 as_fn_error $?
"unsafe srcdir value: \`$srcdir'" "$LINENO" 5 ;;
3168 # Do `set' in a subshell so we don't clobber the current shell's
3169 # arguments. Must try -L first in case configure is actually a
3170 # symlink; some systems play weird games with the mod time of symlinks
3171 # (eg FreeBSD returns the mod time of the symlink's containing
3174 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3175 if test "$*" = "X"; then
3177 set X
`ls -t "$srcdir/configure" conftest.file`
3180 if test "$*" != "X $srcdir/configure conftest.file" \
3181 && test "$*" != "X conftest.file $srcdir/configure"; then
3183 # If neither matched, then we have a broken ls. This can happen
3184 # if, for instance, CONFIG_SHELL is bash and it inherits a
3185 # broken ls alias from the environment. This has actually
3186 # happened. Such a system could not be considered "sane".
3187 as_fn_error $?
"ls -t appears to fail. Make sure there is not a broken
3188 alias in your environment" "$LINENO" 5
3191 test "$2" = conftest.
file
3197 as_fn_error $?
"newly created file is older than distributed files!
3198 Check your system clock" "$LINENO" 5
3200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3201 $as_echo "yes" >&6; }
3202 test "$program_prefix" != NONE
&&
3203 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
3204 # Use a double $ so make ignores it.
3205 test "$program_suffix" != NONE
&&
3206 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
3207 # Double any \ or $.
3208 # By default was `s,x,x', remove it if useless.
3209 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
3210 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
3212 # expand $ac_aux_dir to an absolute path
3213 am_aux_dir
=`cd $ac_aux_dir && pwd`
3215 if test x
"${MISSING+set}" != xset
; then
3218 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
3220 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
3223 # Use eval to expand $SHELL
3224 if eval "$MISSING --run true"; then
3225 am_missing_run
="$MISSING --run "
3228 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3229 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3232 if test x
"${install_sh}" != xset
; then
3235 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
3237 install_sh
="\${SHELL} $am_aux_dir/install-sh"
3241 # Installed binaries are usually stripped using `strip' when the user
3242 # run `make install-strip'. However `strip' might not be the right
3243 # tool to use in cross-compilation environments, therefore Automake
3244 # will honor the `STRIP' environment variable to overrule this program.
3245 if test "$cross_compiling" != no
; then
3246 if test -n "$ac_tool_prefix"; then
3247 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3248 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
3249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3250 $as_echo_n "checking for $ac_word... " >&6; }
3251 if test "${ac_cv_prog_STRIP+set}" = set; then :
3252 $as_echo_n "(cached) " >&6
3254 if test -n "$STRIP"; then
3255 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
3257 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3261 test -z "$as_dir" && as_dir
=.
3262 for ac_exec_ext
in '' $ac_executable_extensions; do
3263 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3264 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
3265 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3274 STRIP
=$ac_cv_prog_STRIP
3275 if test -n "$STRIP"; then
3276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3277 $as_echo "$STRIP" >&6; }
3279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3280 $as_echo "no" >&6; }
3285 if test -z "$ac_cv_prog_STRIP"; then
3287 # Extract the first word of "strip", so it can be a program name with args.
3288 set dummy strip
; ac_word
=$2
3289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3290 $as_echo_n "checking for $ac_word... " >&6; }
3291 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3292 $as_echo_n "(cached) " >&6
3294 if test -n "$ac_ct_STRIP"; then
3295 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
3297 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3301 test -z "$as_dir" && as_dir
=.
3302 for ac_exec_ext
in '' $ac_executable_extensions; do
3303 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3304 ac_cv_prog_ac_ct_STRIP
="strip"
3305 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3314 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
3315 if test -n "$ac_ct_STRIP"; then
3316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3317 $as_echo "$ac_ct_STRIP" >&6; }
3319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3320 $as_echo "no" >&6; }
3323 if test "x$ac_ct_STRIP" = x
; then
3326 case $cross_compiling:$ac_tool_warned in
3328 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3329 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3330 ac_tool_warned
=yes ;;
3335 STRIP
="$ac_cv_prog_STRIP"
3339 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
3341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3342 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3343 if test -z "$MKDIR_P"; then
3344 if test "${ac_cv_path_mkdir+set}" = set; then :
3345 $as_echo_n "(cached) " >&6
3347 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3348 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
3351 test -z "$as_dir" && as_dir
=.
3352 for ac_prog
in mkdir gmkdir
; do
3353 for ac_exec_ext
in '' $ac_executable_extensions; do
3354 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } ||
continue
3355 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3356 'mkdir (GNU coreutils) '* | \
3357 'mkdir (coreutils) '* | \
3358 'mkdir (fileutils) '4.1*)
3359 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
3369 test -d .
/--version && rmdir .
/--version
3370 if test "${ac_cv_path_mkdir+set}" = set; then
3371 MKDIR_P
="$ac_cv_path_mkdir -p"
3373 # As a last resort, use the slow shell script. Don't cache a
3374 # value for MKDIR_P within a source directory, because that will
3375 # break other packages using the cache if that directory is
3376 # removed, or if the value is a relative name.
3377 MKDIR_P
="$ac_install_sh -d"
3380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3381 $as_echo "$MKDIR_P" >&6; }
3386 [\\/$
]* | ?
:[\\/]*) ;;
3387 */*) mkdir_p
="\$(top_builddir)/$mkdir_p" ;;
3390 for ac_prog
in gawk mawk nawk
awk
3392 # Extract the first word of "$ac_prog", so it can be a program name with args.
3393 set dummy
$ac_prog; ac_word
=$2
3394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3395 $as_echo_n "checking for $ac_word... " >&6; }
3396 if test "${ac_cv_prog_AWK+set}" = set; then :
3397 $as_echo_n "(cached) " >&6
3399 if test -n "$AWK"; then
3400 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
3402 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3406 test -z "$as_dir" && as_dir
=.
3407 for ac_exec_ext
in '' $ac_executable_extensions; do
3408 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3409 ac_cv_prog_AWK
="$ac_prog"
3410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3420 if test -n "$AWK"; then
3421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3422 $as_echo "$AWK" >&6; }
3424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3425 $as_echo "no" >&6; }
3429 test -n "$AWK" && break
3432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3433 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3435 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3436 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
3437 $as_echo_n "(cached) " >&6
3439 cat >conftest.
make <<\_ACEOF
3442 @
echo '@@@%%%=$(MAKE)=@@@%%%'
3444 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3445 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3447 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
3449 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
3453 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
3454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3455 $as_echo "yes" >&6; }
3458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3459 $as_echo "no" >&6; }
3460 SET_MAKE
="MAKE=${MAKE-make}"
3463 rm -rf .tst
2>/dev
/null
3464 mkdir .tst
2>/dev
/null
3465 if test -d .tst
; then
3470 rmdir .tst
2>/dev
/null
3472 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3473 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3474 # is not polluted with repeated "-I."
3475 am__isrc
=' -I$(srcdir)'
3476 # test to see if srcdir already configured
3477 if test -f $srcdir/config.status
; then
3478 as_fn_error $?
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3482 # test whether we have cygpath
3483 if test -z "$CYGPATH_W"; then
3484 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
3485 CYGPATH_W
='cygpath -w'
3492 # Define the identity of the package.
3497 cat >>confdefs.h
<<_ACEOF
3498 #define PACKAGE "$PACKAGE"
3502 cat >>confdefs.h
<<_ACEOF
3503 #define VERSION "$VERSION"
3506 # Some tools Automake needs.
3508 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3511 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
3514 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3517 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
3520 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
3522 # We need awk for the "check" target. The system "awk" is bad on
3524 # Always define AMTAR for backward compatibility.
3526 AMTAR
=${AMTAR-"${am_missing_run}tar"}
3528 am__tar
='${AMTAR} chof - "$$tardir"'; am__untar
='${AMTAR} xf -'
3537 lispdir
='${datadir}/emacs/${version}/lisp'
3538 locallisppath
='${datadir}/emacs/${version}/site-lisp:'\
3539 '${datadir}/emacs/site-lisp'
3540 lisppath
='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
3541 etcdir
='${datadir}/emacs/${version}/etc'
3542 archlibdir
='${libexecdir}/emacs/${version}/${configuration}'
3543 docdir
='${datadir}/emacs/${version}/etc'
3544 gamedir
='${localstatedir}/games/emacs'
3549 # Check whether --with-pop was given.
3550 if test "${with_pop+set}" = set; then :
3556 if test "$with_pop" = yes; then
3557 $as_echo "#define MAIL_USE_POP 1" >>confdefs.h
3562 # Check whether --with-kerberos was given.
3563 if test "${with_kerberos+set}" = set; then :
3564 withval
=$with_kerberos;
3569 if test "$with_kerberos" != no
; then
3570 $as_echo "#define KERBEROS 1" >>confdefs.h
3575 # Check whether --with-kerberos5 was given.
3576 if test "${with_kerberos5+set}" = set; then :
3577 withval
=$with_kerberos5;
3582 if test "${with_kerberos5}" != no
; then
3583 if test "${with_kerberos}" = no
; then
3585 $as_echo "#define KERBEROS 1" >>confdefs.h
3589 $as_echo "#define KERBEROS5 1" >>confdefs.h
3594 # Check whether --with-hesiod was given.
3595 if test "${with_hesiod+set}" = set; then :
3596 withval
=$with_hesiod;
3601 if test "$with_hesiod" != no
; then
3603 $as_echo "#define HESIOD 1" >>confdefs.h
3608 # Check whether --with-mmdf was given.
3609 if test "${with_mmdf+set}" = set; then :
3615 if test "$with_mmdf" != no
; then
3617 $as_echo "#define MAIL_USE_MMDF 1" >>confdefs.h
3622 # Check whether --with-mail-unlink was given.
3623 if test "${with_mail_unlink+set}" = set; then :
3624 withval
=$with_mail_unlink;
3629 if test "$with_mail_unlink" != no
; then
3631 $as_echo "#define MAIL_UNLINK_SPOOL 1" >>confdefs.h
3636 # Check whether --with-mailhost was given.
3637 if test "${with_mailhost+set}" = set; then :
3638 withval
=$with_mailhost;
3639 cat >>confdefs.h
<<_ACEOF
3640 #define MAILHOST "$withval"
3647 # Check whether --with-sound was given.
3648 if test "${with_sound+set}" = set; then :
3649 withval
=$with_sound;
3656 # Check whether --with-sync-input was given.
3657 if test "${with_sync_input+set}" = set; then :
3658 withval
=$with_sync_input;
3663 if test "$with_sync_input" = yes; then
3665 $as_echo "#define SYNC_INPUT 1" >>confdefs.h
3670 # Check whether --with-x-toolkit was given.
3671 if test "${with_x_toolkit+set}" = set; then :
3672 withval
=$with_x_toolkit; case "${withval}" in
3673 y | ye |
yes ) val
=gtk
;;
3675 l | lu | luc | luci | lucid
) val
=lucid
;;
3676 a |
at | ath | athe | athen | athena
) val
=athena
;;
3677 m | mo | mot | moti | motif
) val
=motif
;;
3678 g | gt | gtk
) val
=gtk
;;
3681 as_fn_error $?
"\`--with-x-toolkit=$withval' is invalid;
3682 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif', \`gtk' or
3683 \`gtk3'. \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." "$LINENO" 5
3692 # Check whether --with-xpm was given.
3693 if test "${with_xpm+set}" = set; then :
3700 # Check whether --with-jpeg was given.
3701 if test "${with_jpeg+set}" = set; then :
3708 # Check whether --with-tiff was given.
3709 if test "${with_tiff+set}" = set; then :
3716 # Check whether --with-gif was given.
3717 if test "${with_gif+set}" = set; then :
3724 # Check whether --with-png was given.
3725 if test "${with_png+set}" = set; then :
3732 # Check whether --with-rsvg was given.
3733 if test "${with_rsvg+set}" = set; then :
3740 # Check whether --with-xml2 was given.
3741 if test "${with_xml2+set}" = set; then :
3748 # Check whether --with-imagemagick was given.
3749 if test "${with_imagemagick+set}" = set; then :
3750 withval
=$with_imagemagick;
3752 with_imagemagick
=yes
3757 # Check whether --with-xft was given.
3758 if test "${with_xft+set}" = set; then :
3765 # Check whether --with-libotf was given.
3766 if test "${with_libotf+set}" = set; then :
3767 withval
=$with_libotf;
3773 # Check whether --with-m17n-flt was given.
3774 if test "${with_m17n_flt+set}" = set; then :
3775 withval
=$with_m17n_flt;
3782 # Check whether --with-toolkit-scroll-bars was given.
3783 if test "${with_toolkit_scroll_bars+set}" = set; then :
3784 withval
=$with_toolkit_scroll_bars;
3786 with_toolkit_scroll_bars
=yes
3790 # Check whether --with-xaw3d was given.
3791 if test "${with_xaw3d+set}" = set; then :
3792 withval
=$with_xaw3d;
3798 # Check whether --with-xim was given.
3799 if test "${with_xim+set}" = set; then :
3806 # Check whether --with-ns was given.
3807 if test "${with_ns+set}" = set; then :
3815 # Check whether --with-gpm was given.
3816 if test "${with_gpm+set}" = set; then :
3823 # Check whether --with-dbus was given.
3824 if test "${with_dbus+set}" = set; then :
3831 # Check whether --with-gconf was given.
3832 if test "${with_gconf+set}" = set; then :
3833 withval
=$with_gconf;
3839 # Check whether --with-selinux was given.
3840 if test "${with_selinux+set}" = set; then :
3841 withval
=$with_selinux;
3847 # Check whether --with-gnutls was given.
3848 if test "${with_gnutls+set}" = set; then :
3849 withval
=$with_gnutls;
3855 ## For the times when you want to build Emacs but don't have
3856 ## a suitable makeinfo, and can live without the manuals.
3858 # Check whether --with-makeinfo was given.
3859 if test "${with_makeinfo+set}" = set; then :
3860 withval
=$with_makeinfo;
3866 ## This is an option because I do not know if all info/man support
3867 ## compressed files, nor how to test if they do so.
3869 # Check whether --with-compress-info was given.
3870 if test "${with_compress_info+set}" = set; then :
3871 withval
=$with_compress_info;
3873 with_compress_info
=yes
3876 if test $with_compress_info = yes; then
3884 # Check whether --with-pkg-config-prog was given.
3885 if test "${with_pkg_config_prog+set}" = set; then :
3886 withval
=$with_pkg_config_prog;
3889 if test "X${with_pkg_config_prog}" != X
; then
3890 if test "${with_pkg_config_prog}" != yes; then
3891 PKG_CONFIG
="${with_pkg_config_prog}"
3897 # Check whether --with-crt-dir was given.
3898 if test "${with_crt_dir+set}" = set; then :
3899 withval
=$with_crt_dir;
3902 CRT_DIR
="${with_crt_dir}"
3905 # Check whether --with-gameuser was given.
3906 if test "${with_gameuser+set}" = set; then :
3907 withval
=$with_gameuser;
3910 test "X${with_gameuser}" != X
&& test "${with_gameuser}" != yes \
3911 && gameuser
="${with_gameuser}"
3912 test "X$gameuser" = X
&& gameuser
=games
3915 # Check whether --with-gnustep-conf was given.
3916 if test "${with_gnustep_conf+set}" = set; then :
3917 withval
=$with_gnustep_conf;
3920 test "X${with_gnustep_conf}" != X
&& test "${with_gnustep_conf}" != yes && \
3921 GNUSTEP_CONFIG_FILE
="${with_gnustep_conf}"
3922 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
3923 GNUSTEP_CONFIG_FILE
=/etc
/GNUstep
/GNUstep.conf
3925 # Check whether --enable-ns-self-contained was given.
3926 if test "${enable_ns_self_contained+set}" = set; then :
3927 enableval
=$enable_ns_self_contained; EN_NS_SELF_CONTAINED
=$enableval
3929 EN_NS_SELF_CONTAINED
=yes
3933 # Check whether --enable-asserts was given.
3934 if test "${enable_asserts+set}" = set; then :
3935 enableval
=$enable_asserts; USE_XASSERTS
=$enableval
3941 # Check whether --enable-maintainer-mode was given.
3942 if test "${enable_maintainer_mode+set}" = set; then :
3943 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
3945 USE_MAINTAINER_MODE
=no
3948 if test $USE_MAINTAINER_MODE = yes; then
3955 # Check whether --enable-locallisppath was given.
3956 if test "${enable_locallisppath+set}" = set; then :
3957 enableval
=$enable_locallisppath; if test "${enableval}" = "no"; then
3959 elif test "${enableval}" != "yes"; then
3960 locallisppath
=${enableval}
3965 # Check whether --enable-checking was given.
3966 if test "${enable_checking+set}" = set; then :
3967 enableval
=$enable_checking; ac_checking_flags
="${enableval}"
3970 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
3971 for check
in $ac_checking_flags
3974 # these set all the flags to specific states
3975 yes) ac_enable_checking
=1 ;;
3976 no
) ac_enable_checking
= ;
3977 ac_gc_check_stringbytes
= ;
3978 ac_gc_check_string_overrun
= ;
3979 ac_gc_check_string_free_list
= ;
3980 ac_xmalloc_overrun
= ;
3981 ac_gc_check_cons_list
= ;;
3982 all
) ac_enable_checking
=1 ;
3983 ac_gc_check_stringbytes
=1 ;
3984 ac_gc_check_string_overrun
=1 ;
3985 ac_gc_check_string_free_list
=1 ;
3986 ac_xmalloc_overrun
=1 ;
3987 ac_gc_check_cons_list
=1 ;;
3988 # these enable particular checks
3989 stringbytes
) ac_gc_check_stringbytes
=1 ;;
3990 stringoverrun
) ac_gc_check_string_overrun
=1 ;;
3991 stringfreelist
) ac_gc_check_string_free_list
=1 ;;
3992 xmallocoverrun
) ac_xmalloc_overrun
=1 ;;
3993 conslist
) ac_gc_check_cons_list
=1 ;;
3994 *) as_fn_error $?
"unknown check category $check" "$LINENO" 5 ;;
3999 if test x
$ac_enable_checking != x
; then
4001 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
4004 if test x
$ac_gc_check_stringbytes != x
; then
4006 $as_echo "#define GC_CHECK_STRING_BYTES 1" >>confdefs.h
4009 if test x
$ac_gc_check_stringoverrun != x
; then
4011 $as_echo "#define GC_CHECK_STRING_OVERRUN 1" >>confdefs.h
4014 if test x
$ac_gc_check_string_free_list != x
; then
4016 $as_echo "#define GC_CHECK_STRING_FREE_LIST 1" >>confdefs.h
4019 if test x
$ac_xmalloc_overrun != x
; then
4021 $as_echo "#define XMALLOC_OVERRUN_CHECK 1" >>confdefs.h
4024 if test x
$ac_gc_check_cons_list != x
; then
4026 $as_echo "#define GC_CHECK_CONS_LIST 1" >>confdefs.h
4030 # Check whether --enable-use-lisp-union-type was given.
4031 if test "${enable_use_lisp_union_type+set}" = set; then :
4032 enableval
=$enable_use_lisp_union_type; if test "${enableval}" != "no"; then
4034 $as_echo "#define USE_LISP_UNION_TYPE 1" >>confdefs.h
4041 # Check whether --enable-profiling was given.
4042 if test "${enable_profiling+set}" = set; then :
4043 enableval
=$enable_profiling; ac_enable_profiling
="${enableval}"
4046 if test x
$ac_enable_profiling != x
; then
4047 PROFILING_CFLAGS
="-DPROFILING=1 -pg"
4053 # Check whether --enable-autodepend was given.
4054 if test "${enable_autodepend+set}" = set; then :
4055 enableval
=$enable_autodepend; ac_enable_autodepend
="${enableval}"
4057 ac_enable_autodepend
=yes
4061 #### Make srcdir absolute, if it isn't already. It's important to
4062 #### avoid running the path through pwd unnecessarily, since pwd can
4063 #### give you automounter prefixes, which can go away. We do all this
4064 #### so Emacs can find its files when run uninstalled.
4065 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
4070 ## We may be able to use the $PWD environment variable to make this
4071 ## absolute. But sometimes PWD is inaccurate.
4072 ## Note: we used to use ${PWD} at the end instead of `pwd`,
4073 ## but that tested only for a well-formed and valid PWD,
4074 ## it did not object when PWD was well-formed and valid but just wrong.
4075 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
4079 srcdir
="`(cd ${srcdir}; pwd)`"
4082 * ) srcdir
="`(cd ${srcdir}; pwd)`" ;;
4085 #### Check if the source directory already has a configured system in it.
4086 if test `pwd` != `(cd ${srcdir} && pwd)` \
4087 && test -f "${srcdir}/src/config.h" ; then
4088 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The directory tree \`${srcdir}' is being used
4089 as a build directory right now; it has been configured in its own
4090 right. To configure in another directory as well, you MUST
4091 use GNU make. If you do not have GNU make, then you must
4092 now do \`make distclean' in ${srcdir},
4093 and then run $0 again." >&5
4094 $as_echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
4095 as a build directory right now; it has been configured in its own
4096 right. To configure in another directory as well, you MUST
4097 use GNU make. If you do not have GNU make, then you must
4098 now do \`make distclean' in ${srcdir},
4099 and then run $0 again." >&2;}
4102 #### Given the configuration name, set machfile and opsysfile to the
4103 #### names of the m/*.h and s/*.h files we should use.
4105 ### Canonicalize the configuration name.
4107 # Make sure we can run config.sub.
4108 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
4109 as_fn_error $?
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4112 $as_echo_n "checking build system type... " >&6; }
4113 if test "${ac_cv_build+set}" = set; then :
4114 $as_echo_n "(cached) " >&6
4116 ac_build_alias
=$build_alias
4117 test "x$ac_build_alias" = x
&&
4118 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
4119 test "x$ac_build_alias" = x
&&
4120 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
4121 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4122 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4126 $as_echo "$ac_cv_build" >&6; }
4127 case $ac_cv_build in
4129 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5 ;;
4132 ac_save_IFS
=$IFS; IFS
='-'
4138 # Remember, the first character of IFS is used to create $*,
4139 # except with old shells:
4142 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
4145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4146 $as_echo_n "checking host system type... " >&6; }
4147 if test "${ac_cv_host+set}" = set; then :
4148 $as_echo_n "(cached) " >&6
4150 if test "x$host_alias" = x
; then
4151 ac_cv_host
=$ac_cv_build
4153 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4154 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4159 $as_echo "$ac_cv_host" >&6; }
4162 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5 ;;
4165 ac_save_IFS
=$IFS; IFS
='-'
4171 # Remember, the first character of IFS is used to create $*,
4172 # except with old shells:
4175 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
4179 configuration
=${host_alias-${build_alias-$host}}
4183 ### If you add support for a new configuration, add code to this
4184 ### switch statement to recognize your configuration name and select
4185 ### the appropriate operating system and machine description files.
4187 ### You would hope that you could choose an m/*.h file pretty much
4188 ### based on the machine portion of the configuration name, and an s/*.h
4189 ### file based on the operating system portion. However, it turns out
4190 ### that each m/*.h file is pretty manufacturer-specific - for
4191 ### example mips.h is MIPS
4192 ### So we basically have to have a special case for each
4193 ### configuration name.
4195 ### As far as handling version numbers on operating systems is
4196 ### concerned, make sure things will fail in a fixable way. If
4197 ### /etc/MACHINES doesn't say anything about version numbers, be
4198 ### prepared to handle anything reasonably. If version numbers
4199 ### matter, be sure /etc/MACHINES says something about it.
4201 machine
='' opsys
='' unported
=no
4202 case "${canonical}" in
4207 case ${canonical} in
4208 alpha
*) machine
=alpha
;;
4209 s390-
*) machine
=ibms390
;;
4210 s390x-
*) machine
=ibms390x
;;
4211 powerpc
*) machine
=macppc
;;
4212 sparc
*) machine
=sparc
;;
4213 ia64
*) machine
=ia64
;;
4214 m68k
*) machine
=m68k
;;
4215 x86_64
*) machine
=amdx86-64
;;
4222 case "${canonical}" in
4223 alpha
*) machine
=alpha
;;
4224 amd64-
*|x86_64-
*) machine
=amdx86-64
;;
4225 ia64-
*) machine
=ia64
;;
4226 i
[3456]86-*) machine
=intel386
;;
4227 powerpc-
*) machine
=macppc
;;
4228 sparc-
*) machine
=sparc
;;
4229 sparc64-
*) machine
=sparc
;;
4233 ## FreeBSD kernel + glibc based userland
4236 case "${canonical}" in
4237 alpha
*) machine
=alpha
;;
4238 amd64-
*|x86_64-
*) machine
=amdx86-64
;;
4239 ia64-
*) machine
=ia64
;;
4240 i
[3456]86-*) machine
=intel386
;;
4241 powerpc-
*) machine
=macppc
;;
4242 sparc-
*) machine
=sparc
;;
4243 sparc64-
*) machine
=sparc
;;
4250 case "${canonical}" in
4251 alpha
*) machine
=alpha
;;
4252 x86_64-
*) machine
=amdx86-64
;;
4253 i
[3456]86-*) machine
=intel386
;;
4254 m68k-
*) machine
=m68k
;;
4255 powerpc-
*) machine
=macppc
;;
4256 sparc
*-) machine
=sparc
;;
4257 vax-
*) machine
=vax
;;
4264 case "${canonical}" in
4265 alpha
*) machine
=alpha
;;
4266 x86_64-
*) machine
=amdx86-64
;;
4267 i386-
*) machine
=intel386
;;
4268 powerpc-
*) machine
=macppc
;;
4269 sparc
*) machine
=sparc
;;
4270 vax-
*) machine
=vax
;;
4274 ## Apple Darwin / Mac OS X
4276 case "${canonical}" in
4277 i
[3456]86-* ) machine
=intel386
;;
4278 powerpc-
* ) machine
=macppc
;;
4279 x86_64-
* ) machine
=amdx86-64
;;
4283 # Define CPP as follows to make autoconf work correctly.
4284 CPP
="${CC-cc} -E -no-cpp-precomp"
4285 # Use fink packages if available.
4286 if test -d /sw
/include
&& test -d /sw
/lib
; then
4287 GCC_TEST_OPTIONS
="-I/sw/include -L/sw/lib"
4288 CPP
="${CPP} ${GCC_TEST_OPTIONS}"
4289 NON_GCC_TEST_OPTIONS
=${GCC_TEST_OPTIONS}
4293 ## HP 9000 series 700 and 800, running HP/UX
4294 hppa
*-hp-hpux10.2
* )
4297 hppa
*-hp-hpux1[1-9]* )
4299 CFLAGS
="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
4302 ia64
*-hp-hpux1[1-9]* )
4303 machine
=hp800 opsys
=hpux11
4304 ## FIXME. Peter O'Gorman reports that dumping using unexelf.o doesn't
4305 ## work either: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=6811
4309 hppa
*-*-linux-gnu* )
4310 machine
=hp800 opsys
=gnu-linux
4314 rs6000-ibm-aix4.
[23]* )
4315 machine
=ibmrs6000 opsys
=aix4-2
4317 powerpc-ibm-aix4.
[23]* )
4318 machine
=ibmrs6000 opsys
=aix4-2
4320 rs6000-ibm-aix
[56]* )
4321 machine
=ibmrs6000 opsys
=aix4-2
4323 powerpc-ibm-aix
[56]* )
4324 machine
=ibmrs6000 opsys
=aix4-2
4327 ## Silicon Graphics machines
4330 machine
=iris4d opsys
=irix6-5
4331 # Without defining _LANGUAGE_C, things get masked out in the headers
4332 # so that, for instance, grepping for `free' in stdlib.h fails and
4333 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
4334 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
4335 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
4340 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* \
4341 | x86_64-
*-solaris2* | x86_64-
*-sunos5*)
4342 case "${canonical}" in
4343 i
[3456]86-*-* ) machine
=intel386
;;
4344 amd64-
*-*|x86_64-
*-*) machine
=amdx86-64
;;
4345 sparc
* ) machine
=sparc
;;
4348 case "${canonical}" in
4349 *-sunos5.6
* |
*-solaris2.6
* )
4351 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
4354 *-sunos5.
[7-9]* |
*-solaris2.
[7-9]* )
4356 emacs_check_sunpro_c
=yes
4357 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
4359 *-sunos5* |
*-solaris* )
4361 emacs_check_sunpro_c
=yes
4362 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
4365 ## Watch out for a compiler that we know will not work.
4366 case "${canonical}" in
4367 *-solaris* |
*-sunos5* )
4368 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
4369 ## /usr/ucb/cc doesn't work;
4370 ## we should find some other compiler that does work.
4378 ## Intel 386 machines where we don't care about the manufacturer.
4381 case "${canonical}" in
4382 *-cygwin ) opsys
=cygwin
;;
4383 *-darwin* ) opsys
=darwin
4384 CPP
="${CC-cc} -E -no-cpp-precomp"
4386 *-sysv4.2uw
* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
4387 *-sysv5uw* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
4388 *-sysv5OpenUNIX* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
4389 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
4398 ### If the code above didn't choose an operating system, just choose
4399 ### an operating system based on the configuration name. You really
4400 ### only want to use this when you have no idea what the right
4401 ### operating system is; if you know what operating systems a machine
4402 ### runs, it's cleaner to make it explicit in the case statement
4404 if test x
"${opsys}" = x
; then
4405 case "${canonical}" in
4406 *-gnu* ) opsys
=gnu
;;
4415 if test $unported = yes; then
4416 as_fn_error $?
"Emacs hasn't been ported to \`${canonical}' systems.
4417 Check \`etc/MACHINES' for recognized configuration names." "$LINENO" 5
4420 if test -n "$machine"; then
4421 machfile
="m/${machine}.h"
4425 opsysfile
="s/${opsys}.h"
4428 #### Choose a compiler.
4429 test -n "$CC" && cc_specified
=yes
4431 # Save the value of CFLAGS that the user specified.
4432 SPECIFIED_CFLAGS
="$CFLAGS"
4435 ac_cpp
='$CPP $CPPFLAGS'
4436 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4437 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4438 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4439 if test -n "$ac_tool_prefix"; then
4440 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4441 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
4442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4443 $as_echo_n "checking for $ac_word... " >&6; }
4444 if test "${ac_cv_prog_CC+set}" = set; then :
4445 $as_echo_n "(cached) " >&6
4447 if test -n "$CC"; then
4448 ac_cv_prog_CC
="$CC" # Let the user override the test.
4450 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4454 test -z "$as_dir" && as_dir
=.
4455 for ac_exec_ext
in '' $ac_executable_extensions; do
4456 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4457 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
4458 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4468 if test -n "$CC"; then
4469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4470 $as_echo "$CC" >&6; }
4472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4473 $as_echo "no" >&6; }
4478 if test -z "$ac_cv_prog_CC"; then
4480 # Extract the first word of "gcc", so it can be a program name with args.
4481 set dummy gcc
; ac_word
=$2
4482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4483 $as_echo_n "checking for $ac_word... " >&6; }
4484 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4485 $as_echo_n "(cached) " >&6
4487 if test -n "$ac_ct_CC"; then
4488 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4490 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4494 test -z "$as_dir" && as_dir
=.
4495 for ac_exec_ext
in '' $ac_executable_extensions; do
4496 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4497 ac_cv_prog_ac_ct_CC
="gcc"
4498 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4507 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4508 if test -n "$ac_ct_CC"; then
4509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4510 $as_echo "$ac_ct_CC" >&6; }
4512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4513 $as_echo "no" >&6; }
4516 if test "x$ac_ct_CC" = x
; then
4519 case $cross_compiling:$ac_tool_warned in
4521 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4522 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4523 ac_tool_warned
=yes ;;
4531 if test -z "$CC"; then
4532 if test -n "$ac_tool_prefix"; then
4533 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4534 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
4535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4536 $as_echo_n "checking for $ac_word... " >&6; }
4537 if test "${ac_cv_prog_CC+set}" = set; then :
4538 $as_echo_n "(cached) " >&6
4540 if test -n "$CC"; then
4541 ac_cv_prog_CC
="$CC" # Let the user override the test.
4543 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4547 test -z "$as_dir" && as_dir
=.
4548 for ac_exec_ext
in '' $ac_executable_extensions; do
4549 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4550 ac_cv_prog_CC
="${ac_tool_prefix}cc"
4551 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4561 if test -n "$CC"; then
4562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4563 $as_echo "$CC" >&6; }
4565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4566 $as_echo "no" >&6; }
4572 if test -z "$CC"; then
4573 # Extract the first word of "cc", so it can be a program name with args.
4574 set dummy cc
; ac_word
=$2
4575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4576 $as_echo_n "checking for $ac_word... " >&6; }
4577 if test "${ac_cv_prog_CC+set}" = set; then :
4578 $as_echo_n "(cached) " >&6
4580 if test -n "$CC"; then
4581 ac_cv_prog_CC
="$CC" # Let the user override the test.
4584 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4588 test -z "$as_dir" && as_dir
=.
4589 for ac_exec_ext
in '' $ac_executable_extensions; do
4590 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4591 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4592 ac_prog_rejected
=yes
4596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4603 if test $ac_prog_rejected = yes; then
4604 # We found a bogon in the path, so make sure we never use it.
4605 set dummy
$ac_cv_prog_CC
4607 if test $# != 0; then
4608 # We chose a different compiler from the bogus one.
4609 # However, it has the same basename, so the bogon will be chosen
4610 # first if we set CC to just the basename; use the full file name.
4612 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
4618 if test -n "$CC"; then
4619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4620 $as_echo "$CC" >&6; }
4622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4623 $as_echo "no" >&6; }
4628 if test -z "$CC"; then
4629 if test -n "$ac_tool_prefix"; then
4630 for ac_prog
in cl.exe
4632 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4633 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4635 $as_echo_n "checking for $ac_word... " >&6; }
4636 if test "${ac_cv_prog_CC+set}" = set; then :
4637 $as_echo_n "(cached) " >&6
4639 if test -n "$CC"; then
4640 ac_cv_prog_CC
="$CC" # Let the user override the test.
4642 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4646 test -z "$as_dir" && as_dir
=.
4647 for ac_exec_ext
in '' $ac_executable_extensions; do
4648 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4649 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
4650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4660 if test -n "$CC"; then
4661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4662 $as_echo "$CC" >&6; }
4664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4665 $as_echo "no" >&6; }
4669 test -n "$CC" && break
4672 if test -z "$CC"; then
4674 for ac_prog
in cl.exe
4676 # Extract the first word of "$ac_prog", so it can be a program name with args.
4677 set dummy
$ac_prog; ac_word
=$2
4678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4679 $as_echo_n "checking for $ac_word... " >&6; }
4680 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4681 $as_echo_n "(cached) " >&6
4683 if test -n "$ac_ct_CC"; then
4684 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4686 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4690 test -z "$as_dir" && as_dir
=.
4691 for ac_exec_ext
in '' $ac_executable_extensions; do
4692 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4693 ac_cv_prog_ac_ct_CC
="$ac_prog"
4694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4703 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4704 if test -n "$ac_ct_CC"; then
4705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4706 $as_echo "$ac_ct_CC" >&6; }
4708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4709 $as_echo "no" >&6; }
4713 test -n "$ac_ct_CC" && break
4716 if test "x$ac_ct_CC" = x
; then
4719 case $cross_compiling:$ac_tool_warned in
4721 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4722 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4723 ac_tool_warned
=yes ;;
4732 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4733 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4734 as_fn_error $?
"no acceptable C compiler found in \$PATH
4735 See \`config.log' for more details" "$LINENO" 5 ; }
4737 # Provide some information about the compiler.
4738 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4741 for ac_option
in --version -v -V -qversion; do
4742 { { ac_try
="$ac_compiler $ac_option >&5"
4744 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4745 *) ac_try_echo=$ac_try;;
4747 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4748 $as_echo "$ac_try_echo"; } >&5
4749 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4751 if test -s conftest.err; then
4753 ... rest of stderr output deleted ...
4754 10q' conftest.err >conftest.er1
4755 cat conftest.er1 >&5
4757 rm -f conftest.er1 conftest.err
4758 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4759 test $ac_status = 0; }
4762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4763 /* end confdefs.h. */
4773 ac_clean_files_save=$ac_clean_files
4774 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4775 # Try to create an executable without -o first, disregard a.out.
4776 # It will help us diagnose broken compilers, and finding out an intuition
4778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4779 $as_echo_n "checking whether the C compiler works... " >&6; }
4780 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
4782 # The possible output files:
4783 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4786 for ac_file in $ac_files
4789 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4790 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4795 if { { ac_try="$ac_link_default"
4797 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4798 *) ac_try_echo
=$ac_try;;
4800 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4801 $as_echo "$ac_try_echo"; } >&5
4802 (eval "$ac_link_default") 2>&5
4804 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4805 test $ac_status = 0; }; then :
4806 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4807 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4808 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4809 # so that the user can short-circuit this test for compilers unknown to
4811 for ac_file
in $ac_files ''
4813 test -f "$ac_file" ||
continue
4815 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
4818 # We found the default executable, but exeext='' is most
4822 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
4824 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4826 # We set ac_cv_exeext here because the later test for it is not
4827 # safe: cross compilers may not add the suffix if given an `-o'
4828 # argument, so we may need to know it at that point already.
4829 # Even if this section looks crufty: it has the advantage of
4836 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
4841 if test -z "$ac_file"; then :
4842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4843 $as_echo "no" >&6; }
4844 $as_echo "$as_me: failed program was:" >&5
4845 sed 's/^/| /' conftest.
$ac_ext >&5
4847 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4848 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4849 as_fn_error
77 "C compiler cannot create executables
4850 See \`config.log' for more details" "$LINENO" 5 ; }
4852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4853 $as_echo "yes" >&6; }
4855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4856 $as_echo_n "checking for C compiler default output file name... " >&6; }
4857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4858 $as_echo "$ac_file" >&6; }
4859 ac_exeext
=$ac_cv_exeext
4861 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
4862 ac_clean_files
=$ac_clean_files_save
4863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4864 $as_echo_n "checking for suffix of executables... " >&6; }
4865 if { { ac_try
="$ac_link"
4867 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4868 *) ac_try_echo=$ac_try;;
4870 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4871 $as_echo "$ac_try_echo"; } >&5
4872 (eval "$ac_link") 2>&5
4874 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4875 test $ac_status = 0; }; then :
4876 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
4877 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
4878 # work properly (i.e., refer to `conftest.exe'), while it won't with
4880 for ac_file
in conftest.exe conftest conftest.
*; do
4881 test -f "$ac_file" ||
continue
4883 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
4884 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4890 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4891 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4892 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
4893 See \`config.log' for more details" "$LINENO" 5 ; }
4895 rm -f conftest conftest
$ac_cv_exeext
4896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4897 $as_echo "$ac_cv_exeext" >&6; }
4899 rm -f conftest.
$ac_ext
4900 EXEEXT
=$ac_cv_exeext
4902 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4903 /* end confdefs.h. */
4908 FILE *f = fopen ("conftest.out", "w");
4909 return ferror (f) || fclose (f) != 0;
4915 ac_clean_files
="$ac_clean_files conftest.out"
4916 # Check that the compiler produces executables we can run. If not, either
4917 # the compiler is broken, or we cross compile.
4918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4919 $as_echo_n "checking whether we are cross compiling... " >&6; }
4920 if test "$cross_compiling" != yes; then
4921 { { ac_try
="$ac_link"
4923 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4924 *) ac_try_echo=$ac_try;;
4926 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4927 $as_echo "$ac_try_echo"; } >&5
4928 (eval "$ac_link") 2>&5
4930 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4931 test $ac_status = 0; }
4932 if { ac_try='./conftest$ac_cv_exeext'
4933 { { case "(($ac_try" in
4934 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4935 *) ac_try_echo
=$ac_try;;
4937 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4938 $as_echo "$ac_try_echo"; } >&5
4939 (eval "$ac_try") 2>&5
4941 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4942 test $ac_status = 0; }; }; then
4945 if test "$cross_compiling" = maybe
; then
4948 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4949 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4950 as_fn_error $?
"cannot run C compiled programs.
4951 If you meant to cross compile, use \`--host'.
4952 See \`config.log' for more details" "$LINENO" 5 ; }
4956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4957 $as_echo "$cross_compiling" >&6; }
4959 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
4960 ac_clean_files
=$ac_clean_files_save
4961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4962 $as_echo_n "checking for suffix of object files... " >&6; }
4963 if test "${ac_cv_objext+set}" = set; then :
4964 $as_echo_n "(cached) " >&6
4966 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4967 /* end confdefs.h. */
4977 rm -f conftest.o conftest.obj
4978 if { { ac_try
="$ac_compile"
4980 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4981 *) ac_try_echo=$ac_try;;
4983 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4984 $as_echo "$ac_try_echo"; } >&5
4985 (eval "$ac_compile") 2>&5
4987 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4988 test $ac_status = 0; }; then :
4989 for ac_file in conftest.o conftest.obj conftest.*; do
4990 test -f "$ac_file" || continue;
4992 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4993 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4998 $as_echo "$as_me: failed program was:" >&5
4999 sed 's/^/| /' conftest.$ac_ext >&5
5001 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5002 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5003 as_fn_error $? "cannot compute suffix of object files
: cannot compile
5004 See \
`config.log' for more details" "$LINENO" 5 ; }
5006 rm -f conftest.$ac_cv_objext conftest.$ac_ext
5008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5009 $as_echo "$ac_cv_objext" >&6; }
5010 OBJEXT=$ac_cv_objext
5012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5013 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5014 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5015 $as_echo_n "(cached) " >&6
5017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5018 /* end confdefs.h. */
5031 if ac_fn_c_try_compile "$LINENO"; then :
5036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5037 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5041 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5042 if test $ac_compiler_gnu = yes; then
5047 ac_test_CFLAGS=${CFLAGS+set}
5048 ac_save_CFLAGS=$CFLAGS
5049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5050 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5051 if test "${ac_cv_prog_cc_g+set}" = set; then :
5052 $as_echo_n "(cached) " >&6
5054 ac_save_c_werror_flag=$ac_c_werror_flag
5055 ac_c_werror_flag=yes
5058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5059 /* end confdefs.h. */
5069 if ac_fn_c_try_compile "$LINENO"; then :
5073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5074 /* end confdefs.h. */
5084 if ac_fn_c_try_compile "$LINENO"; then :
5087 ac_c_werror_flag=$ac_save_c_werror_flag
5089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5090 /* end confdefs.h. */
5100 if ac_fn_c_try_compile "$LINENO"; then :
5103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5108 ac_c_werror_flag=$ac_save_c_werror_flag
5110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5111 $as_echo "$ac_cv_prog_cc_g" >&6; }
5112 if test "$ac_test_CFLAGS" = set; then
5113 CFLAGS=$ac_save_CFLAGS
5114 elif test $ac_cv_prog_cc_g = yes; then
5115 if test "$GCC" = yes; then
5121 if test "$GCC" = yes; then
5127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5128 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5129 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5130 $as_echo_n "(cached) " >&6
5132 ac_cv_prog_cc_c89=no
5134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5135 /* end confdefs.h. */
5138 #include <sys/types.h>
5139 #include <sys/stat.h>
5140 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5141 struct buf { int x; };
5142 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5143 static char *e (p, i)
5149 static char *f (char * (*g) (char **, int), char **p, ...)
5154 s = g (p, va_arg (v,int));
5159 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5160 function prototypes and stuff, but not '\xHH' hex character constants.
5161 These don't provoke an error unfortunately, instead are silently treated
5162 as 'x'. The following induces an error, until -std is added to get
5163 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5164 array size at least. It's necessary to write '\x00'==0 to get something
5165 that's true only with -std. */
5166 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5168 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5169 inside strings and character constants. */
5171 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5173 int test (int i, double x);
5174 struct s1 {int (*f) (int a);};
5175 struct s2 {int (*f) (double a);};
5176 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5182 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5187 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5188 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5190 CC="$ac_save_CC $ac_arg"
5191 if ac_fn_c_try_compile "$LINENO"; then :
5192 ac_cv_prog_cc_c89=$ac_arg
5194 rm -f core conftest.err conftest.$ac_objext
5195 test "x$ac_cv_prog_cc_c89" != "xno" && break
5197 rm -f conftest.$ac_ext
5202 case "x$ac_cv_prog_cc_c89" in
5204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5205 $as_echo "none needed" >&6; } ;;
5207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5208 $as_echo "unsupported" >&6; } ;;
5210 CC="$CC $ac_cv_prog_cc_c89"
5211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5212 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5214 if test "x$ac_cv_prog_cc_c89" != xno; then :
5219 ac_cpp='$CPP $CPPFLAGS'
5220 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5221 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5222 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5223 DEPDIR="${am__leading_dot}deps"
5225 ac_config_commands="$ac_config_commands depfiles"
5228 am_make=${MAKE-make}
5229 cat > confinc << 'END'
5231 @echo this is the am__doit target
5234 # If we don't find an include directive, just comment out the code.
5235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
5236 $as_echo_n "checking for style of include used by $am_make... " >&6; }
5240 # First try GNU make style include.
5241 echo "include confinc" > confmf
5242 # Ignore all kinds of additional output from `make'.
5243 case `$am_make -s -f confmf 2> /dev/null` in #(
5244 *the\ am__doit\ target*)
5250 # Now try BSD make style include.
5251 if test "$am__include" = "#"; then
5252 echo '.include
"confinc"' > confmf
5253 case `$am_make -s -f confmf 2> /dev/null` in #(
5254 *the\ am__doit\ target*)
5255 am__include=.include
5263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5264 $as_echo "$_am_result" >&6; }
5265 rm -f confinc confmf
5267 # Check whether --enable-dependency-tracking was given.
5268 if test "${enable_dependency_tracking+set}" = set; then :
5269 enableval=$enable_dependency_tracking;
5272 if test "x$enable_dependency_tracking" != xno; then
5273 am_depcomp="$ac_aux_dir/depcomp"
5276 if test "x$enable_dependency_tracking" != xno
; then
5286 depcc
="$CC" am_compiler_list
=
5288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5289 $as_echo_n "checking dependency style of $depcc... " >&6; }
5290 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5291 $as_echo_n "(cached) " >&6
5293 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5294 # We make a subdir and do the tests there. Otherwise we can end up
5295 # making bogus files that we don't know about and never remove. For
5296 # instance it was reported that on HP-UX the gcc test will end up
5297 # making a dummy file named `D' -- because `-MD' means `put the output
5300 # Copy depcomp to subdir because otherwise we won't find it if we're
5301 # using a relative directory.
5302 cp "$am_depcomp" conftest.dir
5304 # We will build objects and dependencies in a subdirectory because
5305 # it helps to detect inapplicable dependency modes. For instance
5306 # both Tru64's cc and ICC support -MD to output dependencies as a
5307 # side effect of compilation, but ICC will put the dependencies in
5308 # the current directory while Tru64 will put them in the object
5312 am_cv_CC_dependencies_compiler_type
=none
5313 if test "$am_compiler_list" = ""; then
5314 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5317 case " $depcc " in #(
5318 *\
-arch\
*\
-arch\
*) am__universal
=true
;;
5321 for depmode
in $am_compiler_list; do
5322 # Setup a source with many dependencies, because some compilers
5323 # like to wrap large dependency lists on column 80 (with \), and
5324 # we should not choose a depcomp mode which is confused by this.
5326 # We need to recreate these files for each test, as the compiler may
5327 # overwrite some of them when testing with obscure command lines.
5328 # This happens at least with the AIX C compiler.
5330 for i
in 1 2 3 4 5 6; do
5331 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
5332 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5333 # Solaris 8's {/usr,}/bin/sh.
5334 touch sub
/conftst
$i.h
5336 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5338 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5339 # mode. It turns out that the SunPro C++ compiler does not properly
5340 # handle `-M -o', and we need to detect this. Also, some Intel
5341 # versions had trouble with output in subdirs
5342 am__obj
=sub
/conftest.
${OBJEXT-o}
5343 am__minus_obj
="-o $am__obj"
5346 # This depmode causes a compiler race in universal mode.
5347 test "$am__universal" = false ||
continue
5350 # after this tag, mechanisms are not by side-effect, so they'll
5351 # only be used when explicitly requested
5352 if test "x$enable_dependency_tracking" = xyes
; then
5358 msvisualcpp | msvcmsys
)
5359 # This compiler won't grok `-c -o', but also, the minuso test has
5360 # not run yet. These depmodes are late enough in the game, and
5361 # so weak that their functioning should not be impacted.
5362 am__obj
=conftest.
${OBJEXT-o}
5367 if depmode
=$depmode \
5368 source=sub
/conftest.c object
=$am__obj \
5369 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
5370 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
5371 >/dev
/null
2>conftest.err
&&
5372 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
5373 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
5374 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
5375 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
5376 # icc doesn't choke on unknown options, it will just issue warnings
5377 # or remarks (even with -Werror). So we grep stderr for any message
5378 # that says an option was ignored or not supported.
5379 # When given -MP, icc 7.0 and 7.1 complain thusly:
5380 # icc: Command line warning: ignoring option '-M'; no argument required
5381 # The diagnosis changed in icc 8.0:
5382 # icc: Command line remark: option '-MP' not supported
5383 if (grep 'ignoring option' conftest.err ||
5384 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
5385 am_cv_CC_dependencies_compiler_type
=$depmode
5394 am_cv_CC_dependencies_compiler_type
=none
5398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5399 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5400 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
5403 test "x$enable_dependency_tracking" != xno \
5404 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
5406 am__fastdepCC_FALSE
='#'
5408 am__fastdepCC_TRUE
='#'
5409 am__fastdepCC_FALSE
=
5413 if test "x$CC" != xcc
; then
5414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5415 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5418 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5420 set dummy
$CC; ac_cc
=`$as_echo "$2" |
5421 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5422 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\"" = set; then :
5423 $as_echo_n "(cached) " >&6
5425 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5426 /* end confdefs.h. */
5436 # Make sure it works both with $CC and with simple cc.
5437 # We do the test twice because some compilers refuse to overwrite an
5438 # existing .o file with -o, though they will create one.
5439 ac_try
='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5441 if { { case "(($ac_try" in
5442 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5443 *) ac_try_echo=$ac_try;;
5445 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5446 $as_echo "$ac_try_echo"; } >&5
5447 (eval "$ac_try") 2>&5
5449 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5450 test $ac_status = 0; } &&
5451 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5452 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5453 *) ac_try_echo
=$ac_try;;
5455 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5456 $as_echo "$ac_try_echo"; } >&5
5457 (eval "$ac_try") 2>&5
5459 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5460 test $ac_status = 0; };
5462 eval ac_cv_prog_cc_
${ac_cc}_c_o
=yes
5463 if test "x$CC" != xcc
; then
5464 # Test first that cc exists at all.
5465 if { ac_try
='cc -c conftest.$ac_ext >&5'
5466 { { case "(($ac_try" in
5467 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5468 *) ac_try_echo=$ac_try;;
5470 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5471 $as_echo "$ac_try_echo"; } >&5
5472 (eval "$ac_try") 2>&5
5474 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5475 test $ac_status = 0; }; }; then
5476 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5478 if { { case "(($ac_try" in
5479 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5480 *) ac_try_echo
=$ac_try;;
5482 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5483 $as_echo "$ac_try_echo"; } >&5
5484 (eval "$ac_try") 2>&5
5486 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5487 test $ac_status = 0; } &&
5488 test -f conftest2.
$ac_objext && { { case "(($ac_try" in
5489 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5490 *) ac_try_echo=$ac_try;;
5492 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5493 $as_echo "$ac_try_echo"; } >&5
5494 (eval "$ac_try") 2>&5
5496 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5497 test $ac_status = 0; };
5502 # cc exists but doesn't like -o.
5503 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5508 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5510 rm -f core conftest*
5513 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5515 $as_echo "yes" >&6; }
5517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5518 $as_echo "no" >&6; }
5520 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5524 # FIXME: we rely on the cache variable name because
5525 # there is no other way.
5527 am_cc=`echo $2 |
sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5528 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5529 if test "$am_t" != yes; then
5530 # Losing compiler, so override with the script.
5531 # FIXME: It is wrong to rewrite CC.
5532 # But if we don't then we get into trouble of one sort or another.
5533 # A longer-term fix would be to have automake use am__CC in this case,
5534 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5535 CC="$am_aux_dir/compile $CC"
5540 # Initialize gnulib right after verifying that the C compiler works.
5541 if test -n "$ac_tool_prefix"; then
5542 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5543 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5545 $as_echo_n "checking for $ac_word... " >&6; }
5546 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5547 $as_echo_n "(cached) " >&6
5549 if test -n "$RANLIB"; then
5550 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5556 test -z "$as_dir" && as_dir=.
5557 for ac_exec_ext in '' $ac_executable_extensions; do
5558 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5559 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5560 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5569 RANLIB=$ac_cv_prog_RANLIB
5570 if test -n "$RANLIB"; then
5571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5572 $as_echo "$RANLIB" >&6; }
5574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5575 $as_echo "no" >&6; }
5580 if test -z "$ac_cv_prog_RANLIB"; then
5581 ac_ct_RANLIB=$RANLIB
5582 # Extract the first word of "ranlib", so it can be a program name with args.
5583 set dummy ranlib; ac_word=$2
5584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5585 $as_echo_n "checking for $ac_word... " >&6; }
5586 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5587 $as_echo_n "(cached) " >&6
5589 if test -n "$ac_ct_RANLIB"; then
5590 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5596 test -z "$as_dir" && as_dir=.
5597 for ac_exec_ext in '' $ac_executable_extensions; do
5598 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5599 ac_cv_prog_ac_ct_RANLIB="ranlib"
5600 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5609 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5610 if test -n "$ac_ct_RANLIB"; then
5611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5612 $as_echo "$ac_ct_RANLIB" >&6; }
5614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5615 $as_echo "no" >&6; }
5618 if test "x$ac_ct_RANLIB" = x; then
5621 case $cross_compiling:$ac_tool_warned in
5623 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5624 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5625 ac_tool_warned=yes ;;
5627 RANLIB=$ac_ct_RANLIB
5630 RANLIB="$ac_cv_prog_RANLIB"
5635 ac_cpp='$CPP $CPPFLAGS'
5636 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5637 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5638 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5640 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5641 # On Suns, sometimes $CPP names a directory.
5642 if test -n "$CPP" && test -d "$CPP"; then
5645 if test -z "$CPP"; then
5646 if test "${ac_cv_prog_CPP+set}" = set; then :
5647 $as_echo_n "(cached) " >&6
5649 # Double quotes because CPP needs to be expanded
5650 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5653 for ac_c_preproc_warn_flag in '' yes
5655 # Use a header file that comes with gcc, so configuring glibc
5656 # with a fresh cross-compiler works.
5657 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5658 # <limits.h> exists even on freestanding compilers.
5659 # On the NeXT, cc -E runs the code through the compiler's parser,
5660 # not just through cpp. "Syntax error" is here to catch this case.
5661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5662 /* end confdefs.h. */
5664 # include <limits.h>
5666 # include <assert.h>
5670 if ac_fn_c_try_cpp "$LINENO"; then :
5673 # Broken: fails on valid input.
5676 rm -f conftest.err conftest.i conftest.$ac_ext
5678 # OK, works on sane cases. Now check whether nonexistent headers
5679 # can be detected and how.
5680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5681 /* end confdefs.h. */
5682 #include <ac_nonexistent.h>
5684 if ac_fn_c_try_cpp "$LINENO"; then :
5685 # Broken: success on invalid input.
5688 # Passes both tests.
5692 rm -f conftest.err conftest.i conftest.$ac_ext
5695 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5696 rm -f conftest.i conftest.err conftest.
$ac_ext
5697 if $ac_preproc_ok; then :
5709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5710 $as_echo "$CPP" >&6; }
5712 for ac_c_preproc_warn_flag
in '' yes
5714 # Use a header file that comes with gcc, so configuring glibc
5715 # with a fresh cross-compiler works.
5716 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5717 # <limits.h> exists even on freestanding compilers.
5718 # On the NeXT, cc -E runs the code through the compiler's parser,
5719 # not just through cpp. "Syntax error" is here to catch this case.
5720 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5721 /* end confdefs.h. */
5723 # include <limits.h>
5725 # include <assert.h>
5729 if ac_fn_c_try_cpp
"$LINENO"; then :
5732 # Broken: fails on valid input.
5735 rm -f conftest.err conftest.i conftest.
$ac_ext
5737 # OK, works on sane cases. Now check whether nonexistent headers
5738 # can be detected and how.
5739 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5740 /* end confdefs.h. */
5741 #include <ac_nonexistent.h>
5743 if ac_fn_c_try_cpp
"$LINENO"; then :
5744 # Broken: success on invalid input.
5747 # Passes both tests.
5751 rm -f conftest.err conftest.i conftest.
$ac_ext
5754 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5755 rm -f conftest.i conftest.err conftest.
$ac_ext
5756 if $ac_preproc_ok; then :
5759 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5760 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5761 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
5762 See \`config.log' for more details" "$LINENO" 5 ; }
5766 ac_cpp
='$CPP $CPPFLAGS'
5767 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5768 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5769 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5773 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5774 if test "${ac_cv_path_GREP+set}" = set; then :
5775 $as_echo_n "(cached) " >&6
5777 if test -z "$GREP"; then
5778 ac_path_GREP_found
=false
5779 # Loop through the user's path and test for each of PROGNAME-LIST
5780 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5781 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5784 test -z "$as_dir" && as_dir
=.
5785 for ac_prog
in grep ggrep
; do
5786 for ac_exec_ext
in '' $ac_executable_extensions; do
5787 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
5788 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
5789 # Check for GNU ac_path_GREP and select it if it is found.
5790 # Check for GNU $ac_path_GREP
5791 case `"$ac_path_GREP" --version 2>&1` in
5793 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
5796 $as_echo_n 0123456789 >"conftest.in"
5799 cat "conftest.in" "conftest.in" >"conftest.tmp"
5800 mv "conftest.tmp" "conftest.in"
5801 cp "conftest.in" "conftest.nl"
5802 $as_echo 'GREP' >> "conftest.nl"
5803 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5804 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5805 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5806 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5807 # Best one so far, save it but keep looking for a better one
5808 ac_cv_path_GREP
="$ac_path_GREP"
5809 ac_path_GREP_max
=$ac_count
5811 # 10*(2^10) chars as input seems more than enough
5812 test $ac_count -gt 10 && break
5814 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5817 $ac_path_GREP_found && break 3
5822 if test -z "$ac_cv_path_GREP"; then
5823 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5826 ac_cv_path_GREP
=$GREP
5830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5831 $as_echo "$ac_cv_path_GREP" >&6; }
5832 GREP
="$ac_cv_path_GREP"
5835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5836 $as_echo_n "checking for egrep... " >&6; }
5837 if test "${ac_cv_path_EGREP+set}" = set; then :
5838 $as_echo_n "(cached) " >&6
5840 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
5841 then ac_cv_path_EGREP
="$GREP -E"
5843 if test -z "$EGREP"; then
5844 ac_path_EGREP_found
=false
5845 # Loop through the user's path and test for each of PROGNAME-LIST
5846 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5847 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5850 test -z "$as_dir" && as_dir
=.
5851 for ac_prog
in egrep; do
5852 for ac_exec_ext
in '' $ac_executable_extensions; do
5853 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
5854 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
5855 # Check for GNU ac_path_EGREP and select it if it is found.
5856 # Check for GNU $ac_path_EGREP
5857 case `"$ac_path_EGREP" --version 2>&1` in
5859 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
5862 $as_echo_n 0123456789 >"conftest.in"
5865 cat "conftest.in" "conftest.in" >"conftest.tmp"
5866 mv "conftest.tmp" "conftest.in"
5867 cp "conftest.in" "conftest.nl"
5868 $as_echo 'EGREP' >> "conftest.nl"
5869 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5870 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5871 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5872 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5873 # Best one so far, save it but keep looking for a better one
5874 ac_cv_path_EGREP
="$ac_path_EGREP"
5875 ac_path_EGREP_max
=$ac_count
5877 # 10*(2^10) chars as input seems more than enough
5878 test $ac_count -gt 10 && break
5880 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5883 $ac_path_EGREP_found && break 3
5888 if test -z "$ac_cv_path_EGREP"; then
5889 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5892 ac_cv_path_EGREP
=$EGREP
5897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5898 $as_echo "$ac_cv_path_EGREP" >&6; }
5899 EGREP
="$ac_cv_path_EGREP"
5902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5903 $as_echo_n "checking for ANSI C header files... " >&6; }
5904 if test "${ac_cv_header_stdc+set}" = set; then :
5905 $as_echo_n "(cached) " >&6
5907 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5908 /* end confdefs.h. */
5922 if ac_fn_c_try_compile
"$LINENO"; then :
5923 ac_cv_header_stdc
=yes
5925 ac_cv_header_stdc
=no
5927 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5929 if test $ac_cv_header_stdc = yes; then
5930 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5931 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5932 /* end confdefs.h. */
5936 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5937 $EGREP "memchr" >/dev
/null
2>&1; then :
5940 ac_cv_header_stdc
=no
5946 if test $ac_cv_header_stdc = yes; then
5947 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5948 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5949 /* end confdefs.h. */
5953 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5954 $EGREP "free" >/dev
/null
2>&1; then :
5957 ac_cv_header_stdc
=no
5963 if test $ac_cv_header_stdc = yes; then
5964 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5965 if test "$cross_compiling" = yes; then :
5968 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5969 /* end confdefs.h. */
5972 #if ((' ' & 0x0FF) == 0x020)
5973 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5974 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5976 # define ISLOWER(c) \
5977 (('a' <= (c) && (c) <= 'i') \
5978 || ('j' <= (c) && (c) <= 'r') \
5979 || ('s' <= (c) && (c) <= 'z'))
5980 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5983 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5988 for (i = 0; i < 256; i++)
5989 if (XOR (islower (i), ISLOWER (i))
5990 || toupper (i) != TOUPPER (i))
5995 if ac_fn_c_try_run
"$LINENO"; then :
5998 ac_cv_header_stdc
=no
6000 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6001 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6007 $as_echo "$ac_cv_header_stdc" >&6; }
6008 if test $ac_cv_header_stdc = yes; then
6010 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6014 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6015 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
6016 inttypes.h stdint.h unistd.h
6018 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6019 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6021 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
6022 cat >>confdefs.h
<<_ACEOF
6023 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6034 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
6035 if test "x$ac_cv_header_minix_config_h" = x
""yes; then :
6042 if test "$MINIX" = yes; then
6044 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
6047 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
6050 $as_echo "#define _MINIX 1" >>confdefs.h
6057 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
6063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
6064 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
6065 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
6066 $as_echo_n "(cached) " >&6
6068 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6069 /* end confdefs.h. */
6071 # define __EXTENSIONS__ 1
6072 $ac_includes_default
6081 if ac_fn_c_try_compile
"$LINENO"; then :
6082 ac_cv_safe_to_define___extensions__
=yes
6084 ac_cv_safe_to_define___extensions__
=no
6086 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
6089 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6090 test $ac_cv_safe_to_define___extensions__ = yes &&
6091 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
6093 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6095 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
6097 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6099 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
6110 # Code from module arg-nonnull:
6111 # Code from module c++defs:
6112 # Code from module crypto/md5:
6113 # Code from module dtoastr:
6114 # Code from module extensions:
6116 # Code from module filemode:
6117 # Code from module getloadavg:
6118 # Code from module getopt-gnu:
6119 # Code from module getopt-posix:
6120 # Code from module gettext-h:
6121 # Code from module ignore-value:
6122 # Code from module include_next:
6123 # Code from module intprops:
6124 # Code from module mktime:
6125 # Code from module multiarch:
6126 # Code from module stdbool:
6127 # Code from module stddef:
6128 # Code from module stdint:
6129 # Code from module stdlib:
6130 # Code from module strftime:
6131 # Code from module sys_stat:
6132 # Code from module time:
6133 # Code from module time_r:
6134 # Code from module unistd:
6135 # Code from module warn-on-use:
6138 # On Suns, sometimes $CPP names a directory.
6139 if test -n "$CPP" && test -d "$CPP"; then
6143 ## If not using gcc, and on Solaris, and no CPP specified, see if
6144 ## using a Sun compiler, which needs -Xs to prevent whitespace.
6145 if test x
"$GCC" != xyes
&& test x
"$emacs_check_sunpro_c" = xyes
&& \
6146 test x
"$CPP" = x
; then
6147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using a Sun C compiler" >&5
6148 $as_echo_n "checking whether we are using a Sun C compiler... " >&6; }
6149 if test "${emacs_cv_sunpro_c+set}" = set; then :
6150 $as_echo_n "(cached) " >&6
6152 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6153 /* end confdefs.h. */
6166 if ac_fn_c_try_link
"$LINENO"; then :
6167 emacs_cv_sunpro_c
=yes
6169 emacs_cv_sunpro_c
=no
6171 rm -f core conftest.err conftest.
$ac_objext \
6172 conftest
$ac_exeext conftest.
$ac_ext
6175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_sunpro_c" >&5
6176 $as_echo "$emacs_cv_sunpro_c" >&6; }
6178 if test x
"$emacs_cv_sunpro_c" = xyes
; then
6179 NON_GNU_CPP
="$CC -E -Xs"
6183 #### Some systems specify a CPP to use unless we are using GCC.
6184 #### Now that we know whether we are using GCC, we can decide whether
6185 #### to use that one.
6186 if test "x$NON_GNU_CPP" != x
&& test x
$GCC != xyes
&& test "x$CPP" = x
6191 #### Some systems specify a CC to use unless we are using GCC.
6192 #### Now that we know whether we are using GCC, we can decide whether
6193 #### to use that one.
6194 if test "x$NON_GNU_CC" != x
&& test x
$GCC != xyes
&&
6195 test x
$cc_specified != xyes
6200 if test x
$GCC = xyes
; then
6201 test "x$GCC_TEST_OPTIONS" != x
&& CC
="$CC $GCC_TEST_OPTIONS"
6203 test "x$NON_GCC_TEST_OPTIONS" != x
&& CC
="$CC $NON_GCC_TEST_OPTIONS"
6206 ### Use -Wdeclaration-after-statement if the compiler supports it
6207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wdeclaration-after-statement" >&5
6208 $as_echo_n "checking whether gcc understands -Wdeclaration-after-statement... " >&6; }
6209 SAVE_CFLAGS
="$CFLAGS"
6210 CFLAGS
="$CFLAGS -Wdeclaration-after-statement"
6211 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6212 /* end confdefs.h. */
6222 if ac_fn_c_try_compile
"$LINENO"; then :
6227 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6228 if test $has_option = yes; then
6229 C_WARNINGS_SWITCH
="-Wdeclaration-after-statement $C_WARNINGS_SWITCH"
6231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
6232 $as_echo "$has_option" >&6; }
6233 CFLAGS
="$SAVE_CFLAGS"
6237 ### Use -Wold-style-definition if the compiler supports it
6238 # This can be removed when conversion to standard C is finished.
6239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wold-style-definition" >&5
6240 $as_echo_n "checking whether gcc understands -Wold-style-definition... " >&6; }
6241 SAVE_CFLAGS
="$CFLAGS"
6242 CFLAGS
="$CFLAGS -Wold-style-definition"
6243 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6244 /* end confdefs.h. */
6254 if ac_fn_c_try_compile
"$LINENO"; then :
6259 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6260 if test $has_option = yes; then
6261 C_WARNINGS_SWITCH
="-Wold-style-definition $C_WARNINGS_SWITCH"
6263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
6264 $as_echo "$has_option" >&6; }
6265 CFLAGS
="$SAVE_CFLAGS"
6269 ### Use -Wimplicit-function-declaration if the compiler supports it
6270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wimplicit-function-declaration" >&5
6271 $as_echo_n "checking whether gcc understands -Wimplicit-function-declaration... " >&6; }
6272 SAVE_CFLAGS
="$CFLAGS"
6273 CFLAGS
="$CFLAGS -Wimplicit-function-declaration"
6274 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6275 /* end confdefs.h. */
6285 if ac_fn_c_try_compile
"$LINENO"; then :
6290 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6291 if test $has_option = yes; then
6292 C_WARNINGS_SWITCH
="-Wimplicit-function-declaration $C_WARNINGS_SWITCH"
6294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
6295 $as_echo "$has_option" >&6; }
6296 CFLAGS
="$SAVE_CFLAGS"
6303 #### Some other nice autoconf tests.
6306 ac_cpp
='$CPP $CPPFLAGS'
6307 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6308 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6309 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6311 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6312 # On Suns, sometimes $CPP names a directory.
6313 if test -n "$CPP" && test -d "$CPP"; then
6316 if test -z "$CPP"; then
6317 if test "${ac_cv_prog_CPP+set}" = set; then :
6318 $as_echo_n "(cached) " >&6
6320 # Double quotes because CPP needs to be expanded
6321 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6324 for ac_c_preproc_warn_flag
in '' yes
6326 # Use a header file that comes with gcc, so configuring glibc
6327 # with a fresh cross-compiler works.
6328 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6329 # <limits.h> exists even on freestanding compilers.
6330 # On the NeXT, cc -E runs the code through the compiler's parser,
6331 # not just through cpp. "Syntax error" is here to catch this case.
6332 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6333 /* end confdefs.h. */
6335 # include <limits.h>
6337 # include <assert.h>
6341 if ac_fn_c_try_cpp
"$LINENO"; then :
6344 # Broken: fails on valid input.
6347 rm -f conftest.err conftest.i conftest.
$ac_ext
6349 # OK, works on sane cases. Now check whether nonexistent headers
6350 # can be detected and how.
6351 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6352 /* end confdefs.h. */
6353 #include <ac_nonexistent.h>
6355 if ac_fn_c_try_cpp
"$LINENO"; then :
6356 # Broken: success on invalid input.
6359 # Passes both tests.
6363 rm -f conftest.err conftest.i conftest.
$ac_ext
6366 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6367 rm -f conftest.i conftest.err conftest.
$ac_ext
6368 if $ac_preproc_ok; then :
6380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6381 $as_echo "$CPP" >&6; }
6383 for ac_c_preproc_warn_flag
in '' yes
6385 # Use a header file that comes with gcc, so configuring glibc
6386 # with a fresh cross-compiler works.
6387 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6388 # <limits.h> exists even on freestanding compilers.
6389 # On the NeXT, cc -E runs the code through the compiler's parser,
6390 # not just through cpp. "Syntax error" is here to catch this case.
6391 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6392 /* end confdefs.h. */
6394 # include <limits.h>
6396 # include <assert.h>
6400 if ac_fn_c_try_cpp
"$LINENO"; then :
6403 # Broken: fails on valid input.
6406 rm -f conftest.err conftest.i conftest.
$ac_ext
6408 # OK, works on sane cases. Now check whether nonexistent headers
6409 # can be detected and how.
6410 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6411 /* end confdefs.h. */
6412 #include <ac_nonexistent.h>
6414 if ac_fn_c_try_cpp
"$LINENO"; then :
6415 # Broken: success on invalid input.
6418 # Passes both tests.
6422 rm -f conftest.err conftest.i conftest.
$ac_ext
6425 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6426 rm -f conftest.i conftest.err conftest.
$ac_ext
6427 if $ac_preproc_ok; then :
6430 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6431 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6432 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
6433 See \`config.log' for more details" "$LINENO" 5 ; }
6437 ac_cpp
='$CPP $CPPFLAGS'
6438 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6439 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6440 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6443 if test "x$RANLIB" = x
; then
6444 if test -n "$ac_tool_prefix"; then
6445 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6446 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
6447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6448 $as_echo_n "checking for $ac_word... " >&6; }
6449 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6450 $as_echo_n "(cached) " >&6
6452 if test -n "$RANLIB"; then
6453 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
6455 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6459 test -z "$as_dir" && as_dir
=.
6460 for ac_exec_ext
in '' $ac_executable_extensions; do
6461 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6462 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
6463 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6472 RANLIB
=$ac_cv_prog_RANLIB
6473 if test -n "$RANLIB"; then
6474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6475 $as_echo "$RANLIB" >&6; }
6477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6478 $as_echo "no" >&6; }
6483 if test -z "$ac_cv_prog_RANLIB"; then
6484 ac_ct_RANLIB
=$RANLIB
6485 # Extract the first word of "ranlib", so it can be a program name with args.
6486 set dummy ranlib
; ac_word
=$2
6487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6488 $as_echo_n "checking for $ac_word... " >&6; }
6489 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6490 $as_echo_n "(cached) " >&6
6492 if test -n "$ac_ct_RANLIB"; then
6493 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
6495 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6499 test -z "$as_dir" && as_dir
=.
6500 for ac_exec_ext
in '' $ac_executable_extensions; do
6501 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6502 ac_cv_prog_ac_ct_RANLIB
="ranlib"
6503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6512 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
6513 if test -n "$ac_ct_RANLIB"; then
6514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6515 $as_echo "$ac_ct_RANLIB" >&6; }
6517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6518 $as_echo "no" >&6; }
6521 if test "x$ac_ct_RANLIB" = x
; then
6524 case $cross_compiling:$ac_tool_warned in
6526 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6527 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6528 ac_tool_warned
=yes ;;
6530 RANLIB
=$ac_ct_RANLIB
6533 RANLIB
="$ac_cv_prog_RANLIB"
6538 ## Although we're running on an amd64 kernel, we're actually compiling for
6539 ## the x86 architecture. The user should probably have provided an
6540 ## explicit --build to `configure', but if everything else than the kernel
6541 ## is running in i386 mode, we can help them out.
6542 if test "$machine" = "amdx86-64"; then
6543 ac_fn_c_check_decl
"$LINENO" "i386" "ac_cv_have_decl_i386" "$ac_includes_default"
6544 if test "x$ac_cv_have_decl_i386" = x
""yes; then :
6548 if test "$ac_cv_have_decl_i386" = "yes"; then
6549 canonical
=`echo "$canonical" | sed -e 's/^amd64/i386/' -e 's/^x86_64/i386/'`
6551 machfile
="m/${machine}.h"
6555 # Extract the first word of "install-info", so it can be a program name with args.
6556 set dummy install-info
; ac_word
=$2
6557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6558 $as_echo_n "checking for $ac_word... " >&6; }
6559 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
6560 $as_echo_n "(cached) " >&6
6562 case $INSTALL_INFO in
6564 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
6567 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6571 test -z "$as_dir" && as_dir
=.
6572 for ac_exec_ext
in '' $ac_executable_extensions; do
6573 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6574 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
6575 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6585 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
6586 if test -n "$INSTALL_INFO"; then
6587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
6588 $as_echo "$INSTALL_INFO" >&6; }
6590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6591 $as_echo "no" >&6; }
6595 # Extract the first word of "install-info", so it can be a program name with args.
6596 set dummy install-info
; ac_word
=$2
6597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6598 $as_echo_n "checking for $ac_word... " >&6; }
6599 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
6600 $as_echo_n "(cached) " >&6
6602 case $INSTALL_INFO in
6604 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
6607 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6608 for as_dir
in /usr
/sbin
6611 test -z "$as_dir" && as_dir
=.
6612 for ac_exec_ext
in '' $ac_executable_extensions; do
6613 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6614 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
6615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6625 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
6626 if test -n "$INSTALL_INFO"; then
6627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
6628 $as_echo "$INSTALL_INFO" >&6; }
6630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6631 $as_echo "no" >&6; }
6635 # Extract the first word of "install-info", so it can be a program name with args.
6636 set dummy install-info
; ac_word
=$2
6637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6638 $as_echo_n "checking for $ac_word... " >&6; }
6639 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
6640 $as_echo_n "(cached) " >&6
6642 case $INSTALL_INFO in
6644 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
6647 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6651 test -z "$as_dir" && as_dir
=.
6652 for ac_exec_ext
in '' $ac_executable_extensions; do
6653 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6654 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
6655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6662 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
=":"
6666 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
6667 if test -n "$INSTALL_INFO"; then
6668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
6669 $as_echo "$INSTALL_INFO" >&6; }
6671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6672 $as_echo "no" >&6; }
6676 # Extract the first word of "gzip", so it can be a program name with args.
6677 set dummy
gzip; ac_word
=$2
6678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6679 $as_echo_n "checking for $ac_word... " >&6; }
6680 if test "${ac_cv_path_GZIP_PROG+set}" = set; then :
6681 $as_echo_n "(cached) " >&6
6685 ac_cv_path_GZIP_PROG
="$GZIP_PROG" # Let the user override the test with a path.
6688 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6692 test -z "$as_dir" && as_dir
=.
6693 for ac_exec_ext
in '' $ac_executable_extensions; do
6694 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6695 ac_cv_path_GZIP_PROG
="$as_dir/$ac_word$ac_exec_ext"
6696 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6706 GZIP_PROG
=$ac_cv_path_GZIP_PROG
6707 if test -n "$GZIP_PROG"; then
6708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP_PROG" >&5
6709 $as_echo "$GZIP_PROG" >&6; }
6711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6712 $as_echo "no" >&6; }
6718 ## Need makeinfo >= 4.6 (?) to build the manuals.
6719 # Extract the first word of "makeinfo", so it can be a program name with args.
6720 set dummy makeinfo
; ac_word
=$2
6721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6722 $as_echo_n "checking for $ac_word... " >&6; }
6723 if test "${ac_cv_path_MAKEINFO+set}" = set; then :
6724 $as_echo_n "(cached) " >&6
6728 ac_cv_path_MAKEINFO
="$MAKEINFO" # Let the user override the test with a path.
6731 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6735 test -z "$as_dir" && as_dir
=.
6736 for ac_exec_ext
in '' $ac_executable_extensions; do
6737 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6738 ac_cv_path_MAKEINFO
="$as_dir/$ac_word$ac_exec_ext"
6739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6746 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO
="no"
6750 MAKEINFO
=$ac_cv_path_MAKEINFO
6751 if test -n "$MAKEINFO"; then
6752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
6753 $as_echo "$MAKEINFO" >&6; }
6755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6756 $as_echo "no" >&6; }
6760 if test "$MAKEINFO" != "no" && \
6761 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
6765 ## Makeinfo is unusual. For a released Emacs, the manuals are
6766 ## pre-built, and not deleted by the normal clean rules. makeinfo is
6767 ## therefore in the category of "special tools" not normally required, which
6768 ## configure does not have to check for (eg autoconf itself).
6769 ## In a Bazaar checkout on the other hand, the manuals are not included.
6770 ## So makeinfo is a requirement to build from Bazaar, and configure
6771 ## should test for it as it does for any other build requirement.
6772 ## We use the presence of $srcdir/info/emacs to distinguish a release,
6773 ## with pre-built manuals, from a Bazaar checkout.
6776 if test "$MAKEINFO" = "no"; then
6778 if test "x${with_makeinfo}" = "xno"; then
6780 elif test ! -e $srcdir/info
/emacs
; then
6781 as_fn_error $?
"You do not seem to have makeinfo >= 4.6, and your
6782 source tree does not seem to have pre-built manuals in the \`info' directory.
6783 Either install a suitable version of makeinfo, or re-run configure
6784 with the \`--without-makeinfo' option to build without the manuals. " "$LINENO" 5
6790 if test x
$GCC = xyes
; then
6791 test "x$GCC_LINK_TEST_OPTIONS" != x
&& \
6792 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
6794 test "x$NON_GCC_LINK_TEST_OPTIONS" != x
&& \
6795 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
6799 late_LDFLAGS
=$LDFLAGS
6800 if test x
$GCC = xyes
; then
6801 LDFLAGS
="$LDFLAGS -Wl,-znocombreloc"
6803 LDFLAGS
="$LDFLAGS -znocombreloc"
6806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -znocombreloc" >&5
6807 $as_echo_n "checking for -znocombreloc... " >&6; }
6808 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6809 /* end confdefs.h. */
6819 if ac_fn_c_try_link
"$LINENO"; then :
6820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6821 $as_echo "yes" >&6; }
6823 LDFLAGS
=$late_LDFLAGS
6824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6825 $as_echo "no" >&6; }
6827 rm -f core conftest.err conftest.
$ac_objext \
6828 conftest
$ac_exeext conftest.
$ac_ext
6831 # The value of CPP is a quoted variable reference, so we need to do this
6832 # to get its actual value...
6833 CPP
=`eval "echo $CPP"`
6836 test "x$CANNOT_DUMP" = "x" && CANNOT_DUMP
=no
6838 your-opsys-here
) CANNOT_DUMP
=yes ;;
6841 test "$CANNOT_DUMP" = "yes" && \
6843 $as_echo "#define CANNOT_DUMP 1" >>confdefs.h
6849 UNEXEC_OBJ
=unexelf.o
6851 # MSDOS uses unexcoff.o
6852 # MSWindows uses unexw32.o
6854 UNEXEC_OBJ
=unexaix.o
6860 UNEXEC_OBJ
=unexmacosx.o
6863 UNEXEC_OBJ
=unexhp9k800.o
6866 # Use the Solaris dldump() function, called from unexsol.c, to dump
6867 # emacs, instead of the generic ELF dump code found in unexelf.c.
6868 # The resulting binary has a complete symbol table, and is better
6869 # for debugging and other observability tools (debuggers, pstack, etc).
6871 # If you encounter a problem using dldump(), please consider sending
6872 # a message to the OpenSolaris tools-linking mailing list:
6873 # http://mail.opensolaris.org/mailman/listinfo/tools-linking
6875 # It is likely that dldump() works with older Solaris too, but this has
6876 # not been tested, so for now this change is for Solaris 10 or newer.
6877 UNEXEC_OBJ
=unexsol.o
6884 ## Let `ld' find image libs and similar things in /usr/local/lib.
6885 ## The system compiler, GCC, has apparently been modified to not
6886 ## look there, contrary to what a stock GCC would do.
6887 LD_SWITCH_SYSTEM
=-L/usr
/local
/lib
6891 ## cpp test was "ifdef __mips__", but presumably this is equivalent...
6892 case $host_cpu in mips
*) LD_SWITCH_SYSTEM
="-G 0";; esac
6896 LD_SWITCH_SYSTEM
="-Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib"
6900 ## Han Boetes <han@mijncomputer.nl> says this is necessary,
6901 ## otherwise Emacs dumps core on elf systems.
6902 LD_SWITCH_SYSTEM
="-Z"
6907 ac_link
="$ac_link $LD_SWITCH_SYSTEM"
6909 ## This setting of LD_SWITCH_SYSTEM references LD_SWITCH_X_SITE_AUX,
6910 ## which has not been defined yet. When this was handled with cpp,
6911 ## it was expanded to null when configure sourced the s/*.h file.
6912 ## Thus LD_SWITCH_SYSTEM had different values in configure and the Makefiles.
6913 ## FIXME it would be cleaner to put this in LD_SWITCH_SYSTEM_TEMACS
6914 ## (or somesuch), but because it is supposed to go at the _front_
6915 ## of LD_SWITCH_SYSTEM, we cannot do that in exactly the same way.
6916 ## Compare with the gnu-linux case below, which added to the end
6917 ## of LD_SWITCH_SYSTEM, and so can instead go at the front of
6918 ## LD_SWITCH_SYSTEM_TEMACS.
6921 ## _AUX_RPATH is like _AUX, but uses -rpath instead of -R.
6922 LD_SWITCH_SYSTEM
="\$(LD_SWITCH_X_SITE_AUX_RPATH) $LD_SWITCH_SYSTEM" ;;
6927 if test "$machine" = "alpha"; then
6928 ac_fn_c_check_decl
"$LINENO" "__ELF__" "ac_cv_have_decl___ELF__" "$ac_includes_default"
6929 if test "x$ac_cv_have_decl___ELF__" = x
""yes; then :
6933 if test "$ac_cv_have_decl___ELF__" = "yes"; then
6934 ## With ELF, make sure that all common symbols get allocated to in the
6935 ## data section. Otherwise, the dump of temacs may miss variables in
6936 ## the shared library that have been initialized. For example, with
6937 ## GNU libc, __malloc_initialized would normally be resolved to the
6938 ## shared library's .bss section, which is fatal.
6939 if test "x$GCC" = "xyes"; then
6940 C_SWITCH_MACHINE
="-fno-common"
6942 as_fn_error $?
"What gives? Fix me if DEC Unix supports ELF now." "$LINENO" 5
6945 UNEXEC_OBJ
=unexalpha.o
6953 ## Some programs in src produce warnings saying certain subprograms
6954 ## are too complex and need a MAXMEM value greater than 2000 for
6955 ## additional optimization. --nils@exp-math.uni-essen.de
6956 test "$opsys" = "aix4.2" && test "x$GCC" != "xyes" && \
6957 C_SWITCH_SYSTEM
="-ma -qmaxmem=4000"
6958 ## gnu-linux might need -D_BSD_SOURCE on old libc5 systems.
6959 ## It is redundant in glibc2, since we define _GNU_SOURCE.
6965 ## IBM's X11R5 uses -lIM and -liconv in AIX 3.2.2.
6966 aix4-2
) LIBS_SYSTEM
="-lrts -lIM -liconv" ;;
6968 freebsd
) LIBS_SYSTEM
="-lutil" ;;
6970 hpux
*) LIBS_SYSTEM
="-l:libdld.sl" ;;
6972 sol2
*) LIBS_SYSTEM
="-lsocket -lnsl" ;;
6974 ## Motif needs -lgen.
6975 unixware
) LIBS_SYSTEM
="-lsocket -lnsl -lelf -lgen" ;;
6980 ### Make sure subsequent tests use flags consistent with the build flags.
6982 if test x
"${OVERRIDE_CPPFLAGS}" != x
; then
6983 CPPFLAGS
="${OVERRIDE_CPPFLAGS}"
6985 CPPFLAGS
="$C_SWITCH_SYSTEM $C_SWITCH_MACHINE $CPPFLAGS"
6988 # Check whether --enable-largefile was given.
6989 if test "${enable_largefile+set}" = set; then :
6990 enableval
=$enable_largefile;
6993 if test "$enable_largefile" != no
; then
6995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6996 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6997 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
6998 $as_echo_n "(cached) " >&6
7000 ac_cv_sys_largefile_CC
=no
7001 if test "$GCC" != yes; then
7004 # IRIX 6.2 and later do not support large files by default,
7005 # so use the C compiler's -n32 option if that helps.
7006 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7007 /* end confdefs.h. */
7008 #include <sys/types.h>
7009 /* Check that off_t can represent 2**63 - 1 correctly.
7010 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7011 since some C++ compilers masquerading as C compilers
7012 incorrectly reject 9223372036854775807. */
7013 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7014 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7015 && LARGE_OFF_T % 2147483647 == 1)
7025 if ac_fn_c_try_compile
"$LINENO"; then :
7028 rm -f core conftest.err conftest.
$ac_objext
7030 if ac_fn_c_try_compile
"$LINENO"; then :
7031 ac_cv_sys_largefile_CC
=' -n32'; break
7033 rm -f core conftest.err conftest.
$ac_objext
7037 rm -f conftest.
$ac_ext
7040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
7041 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
7042 if test "$ac_cv_sys_largefile_CC" != no
; then
7043 CC
=$CC$ac_cv_sys_largefile_CC
7046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
7047 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
7048 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
7049 $as_echo_n "(cached) " >&6
7052 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7053 /* end confdefs.h. */
7054 #include <sys/types.h>
7055 /* Check that off_t can represent 2**63 - 1 correctly.
7056 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7057 since some C++ compilers masquerading as C compilers
7058 incorrectly reject 9223372036854775807. */
7059 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7060 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7061 && LARGE_OFF_T % 2147483647 == 1)
7071 if ac_fn_c_try_compile
"$LINENO"; then :
7072 ac_cv_sys_file_offset_bits
=no
; break
7074 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7075 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7076 /* end confdefs.h. */
7077 #define _FILE_OFFSET_BITS 64
7078 #include <sys/types.h>
7079 /* Check that off_t can represent 2**63 - 1 correctly.
7080 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7081 since some C++ compilers masquerading as C compilers
7082 incorrectly reject 9223372036854775807. */
7083 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7084 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7085 && LARGE_OFF_T % 2147483647 == 1)
7095 if ac_fn_c_try_compile
"$LINENO"; then :
7096 ac_cv_sys_file_offset_bits
=64; break
7098 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7099 ac_cv_sys_file_offset_bits
=unknown
7103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
7104 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
7105 case $ac_cv_sys_file_offset_bits in #(
7108 cat >>confdefs.h
<<_ACEOF
7109 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
7114 if test $ac_cv_sys_file_offset_bits = unknown
; then
7115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
7116 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
7117 if test "${ac_cv_sys_large_files+set}" = set; then :
7118 $as_echo_n "(cached) " >&6
7121 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7122 /* end confdefs.h. */
7123 #include <sys/types.h>
7124 /* Check that off_t can represent 2**63 - 1 correctly.
7125 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7126 since some C++ compilers masquerading as C compilers
7127 incorrectly reject 9223372036854775807. */
7128 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7129 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7130 && LARGE_OFF_T % 2147483647 == 1)
7140 if ac_fn_c_try_compile
"$LINENO"; then :
7141 ac_cv_sys_large_files
=no
; break
7143 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7144 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7145 /* end confdefs.h. */
7146 #define _LARGE_FILES 1
7147 #include <sys/types.h>
7148 /* Check that off_t can represent 2**63 - 1 correctly.
7149 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7150 since some C++ compilers masquerading as C compilers
7151 incorrectly reject 9223372036854775807. */
7152 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7153 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7154 && LARGE_OFF_T % 2147483647 == 1)
7164 if ac_fn_c_try_compile
"$LINENO"; then :
7165 ac_cv_sys_large_files
=1; break
7167 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7168 ac_cv_sys_large_files
=unknown
7172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
7173 $as_echo "$ac_cv_sys_large_files" >&6; }
7174 case $ac_cv_sys_large_files in #(
7177 cat >>confdefs.h
<<_ACEOF
7178 #define _LARGE_FILES $ac_cv_sys_large_files
7188 ## If user specified a crt-dir, use that unconditionally.
7189 if test "X$CRT_DIR" = "X"; then
7191 case "$canonical" in
7192 x86_64-
*-linux-gnu* | s390x-
*-linux-gnu*)
7193 ## On x86-64 and s390x GNU/Linux distributions, the standard library
7194 ## can be in a variety of places. We only try /usr/lib64 and /usr/lib.
7195 ## For anything else (eg /usr/lib32), it is up the user to specify
7196 ## the location (bug#5655).
7197 ## Test for crtn.o, not just the directory, because sometimes the
7198 ## directory exists but does not have the relevant files (bug#1287).
7199 ## FIXME better to test for binary compatibility somehow.
7200 test -e /usr
/lib64
/crtn.o
&& CRT_DIR
=/usr
/lib64
7203 powerpc64-
*-linux-gnu* | sparc64-
*-linux-gnu*) CRT_DIR
=/usr
/lib64
;;
7207 hpux10-20
) CRT_DIR
=/lib
;;
7210 ## Default is /usr/lib.
7211 test "X$CRT_DIR" = "X" && CRT_DIR
=/usr
/lib
7215 ## Some platforms don't use any of these files, so it is not
7216 ## appropriate to put this test outside the if block.
7217 test -e $CRT_DIR/crtn.o ||
test -e $CRT_DIR/crt0.o || \
7218 as_fn_error $?
"crt*.o not found in specified location." "$LINENO" 5
7231 START_FILES
='pre-crt0.o'
7234 ## Adding -lm confuses the dynamic linker, so omit it.
7236 START_FILES
='pre-crt0.o'
7239 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
7240 START_FILES
='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
7242 gnu-linux | gnu-kfreebsd
)
7243 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtn.o'
7244 START_FILES
='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o'
7246 hpux10-20 | hpux11
)
7248 START_FILES
='pre-crt0.o $(CRT_DIR)/crt0.o'
7251 if test -f $CRT_DIR/crti.o
; then
7252 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
7253 START_FILES
='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
7255 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o'
7256 START_FILES
='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crtbegin.o'
7267 if test "${with_sound}" != "no"; then
7268 # Sound support for GNU/Linux and the free BSDs.
7269 for ac_header
in machine
/soundcard.h sys
/soundcard.h soundcard.h
7271 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7272 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7273 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
7274 cat >>confdefs.h
<<_ACEOF
7275 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7277 have_sound_header
=yes
7282 # Emulation library used on NetBSD.
7283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
7284 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
7285 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then :
7286 $as_echo_n "(cached) " >&6
7288 ac_check_lib_save_LIBS
=$LIBS
7289 LIBS
="-lossaudio $LIBS"
7290 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7291 /* end confdefs.h. */
7293 /* Override any GCC internal prototype to avoid an error.
7294 Use char because int might match the return type of a GCC
7295 builtin and then its argument prototype would still apply. */
7303 return _oss_ioctl ();
7308 if ac_fn_c_try_link
"$LINENO"; then :
7309 ac_cv_lib_ossaudio__oss_ioctl
=yes
7311 ac_cv_lib_ossaudio__oss_ioctl
=no
7313 rm -f core conftest.err conftest.
$ac_objext \
7314 conftest
$ac_exeext conftest.
$ac_ext
7315 LIBS
=$ac_check_lib_save_LIBS
7317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
7318 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
7319 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = x
""yes; then :
7328 ALSA_MODULES
="alsa >= $ALSA_REQUIRED"
7332 # Extract the first word of "pkg-config", so it can be a program name with args.
7333 set dummy pkg-config
; ac_word
=$2
7334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7335 $as_echo_n "checking for $ac_word... " >&6; }
7336 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
7337 $as_echo_n "(cached) " >&6
7341 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
7344 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7348 test -z "$as_dir" && as_dir
=.
7349 for ac_exec_ext
in '' $ac_executable_extensions; do
7350 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7351 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
7352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7359 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
7363 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
7364 if test -n "$PKG_CONFIG"; then
7365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7366 $as_echo "$PKG_CONFIG" >&6; }
7368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7369 $as_echo "no" >&6; }
7374 if test "$PKG_CONFIG" = "no" ; then
7377 PKG_CONFIG_MIN_VERSION
=0.9.0
7378 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
7379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ALSA_MODULES" >&5
7380 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
7382 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
7383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7384 $as_echo "yes" >&6; }
7387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_CFLAGS" >&5
7388 $as_echo_n "checking ALSA_CFLAGS... " >&6; }
7389 ALSA_CFLAGS
=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
7390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
7391 $as_echo "$ALSA_CFLAGS" >&6; }
7393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_LIBS" >&5
7394 $as_echo_n "checking ALSA_LIBS... " >&6; }
7395 ALSA_LIBS
=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
7396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
7397 $as_echo "$ALSA_LIBS" >&6; }
7399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7400 $as_echo "no" >&6; }
7403 ## If we have a custom action on failure, don't print errors, but
7404 ## do set a variable so people can do so.
7405 ALSA_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
7412 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
7413 echo "*** See http://www.freedesktop.org/software/pkgconfig"
7417 if test $succeeded = yes; then
7423 if test $HAVE_ALSA = yes; then
7424 SAVE_CFLAGS
="$CFLAGS"
7425 SAVE_LDFLAGS
="$LDFLAGS"
7426 CFLAGS
="$ALSA_CFLAGS $CFLAGS"
7427 LDFLAGS
="$ALSA_LIBS $LDFLAGS"
7428 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7429 /* end confdefs.h. */
7430 #include <asoundlib.h>
7434 snd_lib_error_set_handler (0);
7439 if ac_fn_c_try_compile
"$LINENO"; then :
7440 emacs_alsa_normal
=yes
7442 emacs_alsa_normal
=no
7444 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7445 if test "$emacs_alsa_normal" != yes; then
7446 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7447 /* end confdefs.h. */
7448 #include <alsa/asoundlib.h>
7452 snd_lib_error_set_handler (0);
7457 if ac_fn_c_try_compile
"$LINENO"; then :
7458 emacs_alsa_subdir
=yes
7460 emacs_alsa_subdir
=no
7462 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7463 if test "$emacs_alsa_subdir" != yes; then
7464 as_fn_error $?
"pkg-config found alsa, but it does not compile. See config.log for error messages." "$LINENO" 5
7466 ALSA_CFLAGS
="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
7469 CFLAGS
="$SAVE_CFLAGS"
7470 LDFLAGS
="$SAVE_LDFLAGS"
7471 LIBSOUND
="$LIBSOUND $ALSA_LIBS"
7472 CFLAGS_SOUND
="$CFLAGS_SOUND $ALSA_CFLAGS"
7474 $as_echo "#define HAVE_ALSA 1" >>confdefs.h
7478 if test x
$have_sound_header = xyes ||
test $HAVE_ALSA = yes; then
7480 gnu-linux|freebsd|netbsd
)
7482 $as_echo "#define HAVE_SOUND 1" >>confdefs.h
7491 for ac_header
in sys
/select.h sys
/time.h unistd.h utime.h \
7492 linux
/version.h sys
/systeminfo.h limits.h \
7493 stdio_ext.h fcntl.h coff.h pty.h sys
/mman.h \
7494 sys
/vlimit.h sys
/resource.h locale.h sys
/_mbstate_t.h \
7495 sys
/utsname.h
pwd.h utmp.h dirent.h util.h
7497 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7498 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7499 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
7500 cat >>confdefs.h
<<_ACEOF
7501 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if personality LINUX32 can be set" >&5
7510 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
7511 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7512 /* end confdefs.h. */
7513 #include <sys/personality.h>
7517 personality (PER_LINUX32)
7522 if ac_fn_c_try_compile
"$LINENO"; then :
7523 emacs_cv_personality_linux32
=yes
7525 emacs_cv_personality_linux32
=no
7527 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_personality_linux32" >&5
7529 $as_echo "$emacs_cv_personality_linux32" >&6; }
7531 if test $emacs_cv_personality_linux32 = yes; then
7533 $as_echo "#define HAVE_PERSONALITY_LINUX32 1" >>confdefs.h
7537 for ac_header
in term.h
7539 ac_fn_c_check_header_preproc
"$LINENO" "term.h" "ac_cv_header_term_h"
7540 if test "x$ac_cv_header_term_h" = x
""yes; then :
7541 cat >>confdefs.h
<<_ACEOF
7542 #define HAVE_TERM_H 1
7549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7550 $as_echo_n "checking for ANSI C header files... " >&6; }
7551 if test "${ac_cv_header_stdc+set}" = set; then :
7552 $as_echo_n "(cached) " >&6
7554 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7555 /* end confdefs.h. */
7569 if ac_fn_c_try_compile
"$LINENO"; then :
7570 ac_cv_header_stdc
=yes
7572 ac_cv_header_stdc
=no
7574 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7576 if test $ac_cv_header_stdc = yes; then
7577 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7578 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7579 /* end confdefs.h. */
7583 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7584 $EGREP "memchr" >/dev
/null
2>&1; then :
7587 ac_cv_header_stdc
=no
7593 if test $ac_cv_header_stdc = yes; then
7594 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7595 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7596 /* end confdefs.h. */
7600 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7601 $EGREP "free" >/dev
/null
2>&1; then :
7604 ac_cv_header_stdc
=no
7610 if test $ac_cv_header_stdc = yes; then
7611 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7612 if test "$cross_compiling" = yes; then :
7615 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7616 /* end confdefs.h. */
7619 #if ((' ' & 0x0FF) == 0x020)
7620 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7621 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7623 # define ISLOWER(c) \
7624 (('a' <= (c) && (c) <= 'i') \
7625 || ('j' <= (c) && (c) <= 'r') \
7626 || ('s' <= (c) && (c) <= 'z'))
7627 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7630 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7635 for (i = 0; i < 256; i++)
7636 if (XOR (islower (i), ISLOWER (i))
7637 || toupper (i) != TOUPPER (i))
7642 if ac_fn_c_try_run
"$LINENO"; then :
7645 ac_cv_header_stdc
=no
7647 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7648 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7654 $as_echo "$ac_cv_header_stdc" >&6; }
7655 if test $ac_cv_header_stdc = yes; then
7657 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
7662 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
7663 if test "${ac_cv_header_time+set}" = set; then :
7664 $as_echo_n "(cached) " >&6
7666 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7667 /* end confdefs.h. */
7668 #include <sys/types.h>
7669 #include <sys/time.h>
7675 if ((struct tm *) 0)
7681 if ac_fn_c_try_compile
"$LINENO"; then :
7682 ac_cv_header_time
=yes
7684 ac_cv_header_time
=no
7686 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
7689 $as_echo "$ac_cv_header_time" >&6; }
7690 if test $ac_cv_header_time = yes; then
7692 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
7696 ac_fn_c_check_decl
"$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "$ac_includes_default"
7697 if test "x$ac_cv_have_decl_sys_siglist" = x
""yes; then :
7703 cat >>confdefs.h
<<_ACEOF
7704 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
7707 if test $ac_cv_have_decl_sys_siglist != yes; then
7708 # For Tru64, at least:
7709 ac_fn_c_check_decl
"$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "$ac_includes_default"
7710 if test "x$ac_cv_have_decl___sys_siglist" = x
""yes; then :
7716 cat >>confdefs.h
<<_ACEOF
7717 #define HAVE_DECL___SYS_SIGLIST $ac_have_decl
7720 if test $ac_cv_have_decl___sys_siglist = yes; then
7722 $as_echo "#define sys_siglist __sys_siglist" >>confdefs.h
7726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
7727 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
7728 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
7729 $as_echo_n "(cached) " >&6
7731 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7732 /* end confdefs.h. */
7733 #include <sys/types.h>
7734 #include <sys/wait.h>
7736 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7739 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7747 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7752 if ac_fn_c_try_compile
"$LINENO"; then :
7753 ac_cv_header_sys_wait_h
=yes
7755 ac_cv_header_sys_wait_h
=no
7757 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
7760 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
7761 if test $ac_cv_header_sys_wait_h = yes; then
7763 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
7768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utimbuf" >&5
7769 $as_echo_n "checking for struct utimbuf... " >&6; }
7770 if test "${emacs_cv_struct_utimbuf+set}" = set; then :
7771 $as_echo_n "(cached) " >&6
7773 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7774 /* end confdefs.h. */
7775 #ifdef TIME_WITH_SYS_TIME
7776 #include <sys/time.h>
7779 #ifdef HAVE_SYS_TIME_H
7780 #include <sys/time.h>
7791 static struct utimbuf x; x.actime = x.modtime;
7796 if ac_fn_c_try_compile
"$LINENO"; then :
7797 emacs_cv_struct_utimbuf
=yes
7799 emacs_cv_struct_utimbuf
=no
7801 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_utimbuf" >&5
7804 $as_echo "$emacs_cv_struct_utimbuf" >&6; }
7805 if test $emacs_cv_struct_utimbuf = yes; then
7807 $as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h
7811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
7812 $as_echo_n "checking return type of signal handlers... " >&6; }
7813 if test "${ac_cv_type_signal+set}" = set; then :
7814 $as_echo_n "(cached) " >&6
7816 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7817 /* end confdefs.h. */
7818 #include <sys/types.h>
7824 return *(signal (0, 0)) (0) == 1;
7829 if ac_fn_c_try_compile
"$LINENO"; then :
7830 ac_cv_type_signal
=int
7832 ac_cv_type_signal
=void
7834 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
7837 $as_echo "$ac_cv_type_signal" >&6; }
7839 cat >>confdefs.h
<<_ACEOF
7840 #define RETSIGTYPE $ac_cv_type_signal
7845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t" >&5
7846 $as_echo_n "checking for speed_t... " >&6; }
7847 if test "${emacs_cv_speed_t+set}" = set; then :
7848 $as_echo_n "(cached) " >&6
7850 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7851 /* end confdefs.h. */
7852 #include <termios.h>
7861 if ac_fn_c_try_compile
"$LINENO"; then :
7862 emacs_cv_speed_t
=yes
7866 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_speed_t" >&5
7869 $as_echo "$emacs_cv_speed_t" >&6; }
7870 if test $emacs_cv_speed_t = yes; then
7872 $as_echo "#define HAVE_SPEED_T 1" >>confdefs.h
7876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
7877 $as_echo_n "checking for struct timeval... " >&6; }
7878 if test "${emacs_cv_struct_timeval+set}" = set; then :
7879 $as_echo_n "(cached) " >&6
7881 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7882 /* end confdefs.h. */
7883 #ifdef TIME_WITH_SYS_TIME
7884 #include <sys/time.h>
7887 #ifdef HAVE_SYS_TIME_H
7888 #include <sys/time.h>
7896 static struct timeval x; x.tv_sec = x.tv_usec;
7901 if ac_fn_c_try_compile
"$LINENO"; then :
7902 emacs_cv_struct_timeval
=yes
7904 emacs_cv_struct_timeval
=no
7906 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_timeval" >&5
7909 $as_echo "$emacs_cv_struct_timeval" >&6; }
7910 HAVE_TIMEVAL
=$emacs_cv_struct_timeval
7911 if test $emacs_cv_struct_timeval = yes; then
7913 $as_echo "#define HAVE_TIMEVAL 1" >>confdefs.h
7917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct exception" >&5
7918 $as_echo_n "checking for struct exception... " >&6; }
7919 if test "${emacs_cv_struct_exception+set}" = set; then :
7920 $as_echo_n "(cached) " >&6
7922 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7923 /* end confdefs.h. */
7928 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7933 if ac_fn_c_try_compile
"$LINENO"; then :
7934 emacs_cv_struct_exception
=yes
7936 emacs_cv_struct_exception
=no
7938 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_exception" >&5
7941 $as_echo "$emacs_cv_struct_exception" >&6; }
7942 HAVE_EXCEPTION
=$emacs_cv_struct_exception
7943 if test $emacs_cv_struct_exception != yes; then
7945 $as_echo "#define NO_MATHERR 1" >>confdefs.h
7949 for ac_header
in sys
/socket.h
7951 ac_fn_c_check_header_mongrel
"$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
7952 if test "x$ac_cv_header_sys_socket_h" = x
""yes; then :
7953 cat >>confdefs.h
<<_ACEOF
7954 #define HAVE_SYS_SOCKET_H 1
7961 for ac_header
in net
/if.h
7963 ac_fn_c_check_header_compile
"$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
7964 #if HAVE_SYS_SOCKET_H
7965 #include <sys/socket.h>
7968 if test "x$ac_cv_header_net_if_h" = x
""yes; then :
7969 cat >>confdefs.h
<<_ACEOF
7970 #define HAVE_NET_IF_H 1
7978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
7979 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
7980 if test "${ac_cv_struct_tm+set}" = set; then :
7981 $as_echo_n "(cached) " >&6
7983 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7984 /* end confdefs.h. */
7985 #include <sys/types.h>
7992 int *p = &tm.tm_sec;
7998 if ac_fn_c_try_compile
"$LINENO"; then :
7999 ac_cv_struct_tm
=time.h
8001 ac_cv_struct_tm
=sys
/time.h
8003 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
8006 $as_echo "$ac_cv_struct_tm" >&6; }
8007 if test $ac_cv_struct_tm = sys
/time.h
; then
8009 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
8013 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
8014 #include <$ac_cv_struct_tm>
8017 if test "x$ac_cv_member_struct_tm_tm_zone" = x
""yes; then :
8019 cat >>confdefs.h
<<_ACEOF
8020 #define HAVE_STRUCT_TM_TM_ZONE 1
8026 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
8028 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
8031 ac_fn_c_check_decl
"$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
8033 if test "x$ac_cv_have_decl_tzname" = x
""yes; then :
8039 cat >>confdefs.h
<<_ACEOF
8040 #define HAVE_DECL_TZNAME $ac_have_decl
8043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
8044 $as_echo_n "checking for tzname... " >&6; }
8045 if test "${ac_cv_var_tzname+set}" = set; then :
8046 $as_echo_n "(cached) " >&6
8048 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8049 /* end confdefs.h. */
8051 #if !HAVE_DECL_TZNAME
8052 extern char *tzname[];
8058 return tzname[0][0];
8063 if ac_fn_c_try_link
"$LINENO"; then :
8064 ac_cv_var_tzname
=yes
8068 rm -f core conftest.err conftest.
$ac_objext \
8069 conftest
$ac_exeext conftest.
$ac_ext
8071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
8072 $as_echo "$ac_cv_var_tzname" >&6; }
8073 if test $ac_cv_var_tzname = yes; then
8075 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
8080 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
8082 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x
""yes; then :
8084 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
8088 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_flags" "ac_cv_member_struct_ifreq_ifr_flags" "$ac_includes_default
8089 #if HAVE_SYS_SOCKET_H
8090 #include <sys/socket.h>
8096 if test "x$ac_cv_member_struct_ifreq_ifr_flags" = x
""yes; then :
8098 cat >>confdefs.h
<<_ACEOF
8099 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8104 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "$ac_includes_default
8105 #if HAVE_SYS_SOCKET_H
8106 #include <sys/socket.h>
8112 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = x
""yes; then :
8114 cat >>confdefs.h
<<_ACEOF
8115 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8120 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_netmask" "ac_cv_member_struct_ifreq_ifr_netmask" "$ac_includes_default
8121 #if HAVE_SYS_SOCKET_H
8122 #include <sys/socket.h>
8128 if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = x
""yes; then :
8130 cat >>confdefs.h
<<_ACEOF
8131 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8136 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_broadaddr" "ac_cv_member_struct_ifreq_ifr_broadaddr" "$ac_includes_default
8137 #if HAVE_SYS_SOCKET_H
8138 #include <sys/socket.h>
8144 if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = x
""yes; then :
8146 cat >>confdefs.h
<<_ACEOF
8147 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8152 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_addr" "ac_cv_member_struct_ifreq_ifr_addr" "$ac_includes_default
8153 #if HAVE_SYS_SOCKET_H
8154 #include <sys/socket.h>
8160 if test "x$ac_cv_member_struct_ifreq_ifr_addr" = x
""yes; then :
8162 cat >>confdefs.h
<<_ACEOF
8163 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
8172 $as_echo_n "checking for function prototypes... " >&6; }
8173 if test "$ac_cv_prog_cc_c89" != no
; then
8174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8175 $as_echo "yes" >&6; }
8177 $as_echo "#define PROTOTYPES 1" >>confdefs.h
8180 $as_echo "#define __PROTOTYPES 1" >>confdefs.h
8183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8184 $as_echo "no" >&6; }
8187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
8188 $as_echo_n "checking for working volatile... " >&6; }
8189 if test "${ac_cv_c_volatile+set}" = set; then :
8190 $as_echo_n "(cached) " >&6
8192 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8193 /* end confdefs.h. */
8200 int * volatile y = (int *) 0;
8206 if ac_fn_c_try_compile
"$LINENO"; then :
8207 ac_cv_c_volatile
=yes
8211 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
8214 $as_echo "$ac_cv_c_volatile" >&6; }
8215 if test $ac_cv_c_volatile = no
; then
8217 $as_echo "#define volatile /**/" >>confdefs.h
8221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
8222 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
8223 if test "${ac_cv_c_const+set}" = set; then :
8224 $as_echo_n "(cached) " >&6
8226 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8227 /* end confdefs.h. */
8232 /* FIXME: Include the comments suggested by Paul. */
8234 /* Ultrix mips cc rejects this. */
8235 typedef int charset[2];
8237 /* SunOS 4.1.1 cc rejects this. */
8238 char const *const *pcpcc;
8240 /* NEC SVR4.0.2 mips cc rejects this. */
8241 struct point {int x, y;};
8242 static struct point const zero = {0,0};
8243 /* AIX XL C 1.02.0.0 rejects this.
8244 It does not let you subtract one const X* pointer from another in
8245 an arm of an if-expression whose if-part is not a constant
8247 const char *g = "string";
8248 pcpcc = &g + (g ? g-g : 0);
8249 /* HPUX 7.0 cc rejects these. */
8251 ppc = (char**) pcpcc;
8252 pcpcc = (char const *const *) ppc;
8253 { /* SCO 3.2v4 cc rejects this. */
8255 char const *s = 0 ? (char *) 0 : (char const *) 0;
8260 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8262 const int *foo = &x[0];
8265 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8266 typedef const int *iptr;
8270 { /* AIX XL C 1.02.0.0 rejects this saying
8271 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8272 struct s { int j; const int *ap[3]; };
8273 struct s *b; b->j = 5;
8275 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8279 return !cs[0] && !zero.x;
8286 if ac_fn_c_try_compile
"$LINENO"; then :
8291 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
8294 $as_echo "$ac_cv_c_const" >&6; }
8295 if test $ac_cv_c_const = no
; then
8297 $as_echo "#define const /**/" >>confdefs.h
8301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for void * support" >&5
8302 $as_echo_n "checking for void * support... " >&6; }
8303 if test "${emacs_cv_void_star+set}" = set; then :
8304 $as_echo_n "(cached) " >&6
8306 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8307 /* end confdefs.h. */
8317 if ac_fn_c_try_compile
"$LINENO"; then :
8318 emacs_cv_void_star
=yes
8320 emacs_cv_void_star
=no
8322 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_void_star" >&5
8325 $as_echo "$emacs_cv_void_star" >&6; }
8326 if test $emacs_cv_void_star = yes; then
8327 $as_echo "#define POINTER_TYPE void" >>confdefs.h
8330 $as_echo "#define POINTER_TYPE char" >>confdefs.h
8334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8335 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8336 if test "${ac_cv_c_bigendian+set}" = set; then :
8337 $as_echo_n "(cached) " >&6
8339 ac_cv_c_bigendian
=unknown
8340 # See if we're dealing with a universal compiler.
8341 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8342 /* end confdefs.h. */
8343 #ifndef __APPLE_CC__
8344 not a universal capable compiler
8349 if ac_fn_c_try_compile
"$LINENO"; then :
8351 # Check for potential -arch flags. It is not universal unless
8352 # there are at least two -arch flags with different values.
8355 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8356 if test -n "$ac_prev"; then
8358 i?
86 | x86_64 | ppc | ppc64
)
8359 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
8362 ac_cv_c_bigendian
=universal
8368 elif test "x$ac_word" = "x-arch"; then
8373 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8374 if test $ac_cv_c_bigendian = unknown
; then
8375 # See if sys/param.h defines the BYTE_ORDER macro.
8376 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8377 /* end confdefs.h. */
8378 #include <sys/types.h>
8379 #include <sys/param.h>
8384 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8385 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8394 if ac_fn_c_try_compile
"$LINENO"; then :
8395 # It does; now see whether it defined to BIG_ENDIAN or not.
8396 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8397 /* end confdefs.h. */
8398 #include <sys/types.h>
8399 #include <sys/param.h>
8404 #if BYTE_ORDER != BIG_ENDIAN
8412 if ac_fn_c_try_compile
"$LINENO"; then :
8413 ac_cv_c_bigendian
=yes
8415 ac_cv_c_bigendian
=no
8417 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8419 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8421 if test $ac_cv_c_bigendian = unknown
; then
8422 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8423 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8424 /* end confdefs.h. */
8430 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8438 if ac_fn_c_try_compile
"$LINENO"; then :
8439 # It does; now see whether it defined to _BIG_ENDIAN or not.
8440 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8441 /* end confdefs.h. */
8455 if ac_fn_c_try_compile
"$LINENO"; then :
8456 ac_cv_c_bigendian
=yes
8458 ac_cv_c_bigendian
=no
8460 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8462 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8464 if test $ac_cv_c_bigendian = unknown
; then
8465 # Compile a test program.
8466 if test "$cross_compiling" = yes; then :
8467 # Try to guess by grepping values from an object file.
8468 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8469 /* end confdefs.h. */
8470 short int ascii_mm[] =
8471 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8472 short int ascii_ii[] =
8473 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8474 int use_ascii (int i) {
8475 return ascii_mm[i] + ascii_ii[i];
8477 short int ebcdic_ii[] =
8478 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8479 short int ebcdic_mm[] =
8480 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8481 int use_ebcdic (int i) {
8482 return ebcdic_mm[i] + ebcdic_ii[i];
8489 return use_ascii (foo) == use_ebcdic (foo);
8494 if ac_fn_c_try_compile
"$LINENO"; then :
8495 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
8496 ac_cv_c_bigendian
=yes
8498 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
8499 if test "$ac_cv_c_bigendian" = unknown
; then
8500 ac_cv_c_bigendian
=no
8502 # finding both strings is unlikely to happen, but who knows?
8503 ac_cv_c_bigendian
=unknown
8507 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8509 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8510 /* end confdefs.h. */
8511 $ac_includes_default
8516 /* Are we little or big endian? From Harbison&Steele. */
8520 char c[sizeof (long int)];
8523 return u.c[sizeof (long int) - 1] == 1;
8529 if ac_fn_c_try_run
"$LINENO"; then :
8530 ac_cv_c_bigendian
=no
8532 ac_cv_c_bigendian
=yes
8534 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8535 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8541 $as_echo "$ac_cv_c_bigendian" >&6; }
8542 case $ac_cv_c_bigendian in #(
8544 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8550 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8554 as_fn_error $?
"unknown endianness
8555 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__ ((__aligned__ (expr)))" >&5
8560 $as_echo_n "checking for __attribute__ ((__aligned__ (expr)))... " >&6; }
8561 if test "${emacs_cv_attribute_aligned+set}" = set; then :
8562 $as_echo_n "(cached) " >&6
8564 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8565 /* end confdefs.h. */
8566 char __attribute__ ((__aligned__ (1 << 3))) c;
8575 if ac_fn_c_try_compile
"$LINENO"; then :
8576 emacs_cv_attribute_aligned
=yes
8578 emacs_cv_attribute_aligned
=no
8580 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_attribute_aligned" >&5
8583 $as_echo "$emacs_cv_attribute_aligned" >&6; }
8584 if test $emacs_cv_attribute_aligned = yes; then
8586 $as_echo "#define HAVE_ATTRIBUTE_ALIGNED 1" >>confdefs.h
8590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8591 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
8593 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8594 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
8595 $as_echo_n "(cached) " >&6
8597 cat >conftest.
make <<\_ACEOF
8600 @
echo '@@@%%%=$(MAKE)=@@@%%%'
8602 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
8603 case `${MAKE-make} -f conftest.make 2>/dev/null` in
8605 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
8607 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
8611 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
8612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8613 $as_echo "yes" >&6; }
8616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8617 $as_echo "no" >&6; }
8618 SET_MAKE
="MAKE=${MAKE-make}"
8625 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
8626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU Make" >&5
8627 $as_echo_n "checking whether we are using GNU Make... " >&6; }
8629 testval
=`make --version 2>/dev/null | grep 'GNU Make'`
8630 if test "x$testval" != x
; then
8633 ac_enable_autodepend
=no
8635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_GNU_MAKE" >&5
8636 $as_echo "$HAVE_GNU_MAKE" >&6; }
8637 if test $HAVE_GNU_MAKE = yes; then
8638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -MMD -MF" >&5
8639 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
8640 SAVE_CFLAGS
="$CFLAGS"
8641 CFLAGS
="$CFLAGS -MMD -MF deps.d"
8642 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8643 /* end confdefs.h. */
8653 if ac_fn_c_try_compile
"$LINENO"; then :
8656 ac_enable_autodepend
=no
8658 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8659 CFLAGS
="$SAVE_CFLAGS"
8660 test -f deps.d || ac_enable_autodepend
=no
8662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_autodepend" >&5
8663 $as_echo "$ac_enable_autodepend" >&6; }
8665 if test $ac_enable_autodepend = yes; then
8666 DEPFLAGS
='-MMD -MF ${DEPDIR}/$*.d'
8667 ## In parallel builds, another make might create depdir between
8668 ## the first test and mkdir, so stick another test on the end.
8669 ## Or use mkinstalldirs? mkdir -p is not portable.
8670 MKDEPDIR
='test -d ${DEPDIR} || mkdir ${DEPDIR} || test -d ${DEPDIR}'
8671 deps_frag
=autodeps.mk
8674 deps_frag
=$srcdir/src
/$deps_frag
8680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5
8681 $as_echo_n "checking for long file names... " >&6; }
8682 if test "${ac_cv_sys_long_file_names+set}" = set; then :
8683 $as_echo_n "(cached) " >&6
8685 ac_cv_sys_long_file_names
=yes
8686 # Test for long file names in all the places we know might matter:
8687 # . the current directory, where building will happen
8688 # $prefix/lib where we will be installing things
8689 # $exec_prefix/lib likewise
8690 # $TMPDIR if set, where it might want to write temporary files
8691 # /tmp where it might want to write temporary files
8694 for ac_dir
in .
"$TMPDIR" /tmp
/var
/tmp
/usr
/tmp
"$prefix/lib" "$exec_prefix/lib"; do
8695 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
8696 # in the usual case where exec_prefix is '${prefix}'.
8698 . |
/* | ?
:[\\/]*) ;; #(
8701 test -w "$ac_dir/." ||
continue # It is less confusing to not echo anything here.
8702 ac_xdir
=$ac_dir/cf$$
8703 (umask 077 && mkdir
"$ac_xdir" 2>/dev
/null
) ||
continue
8704 ac_tf1
=$ac_xdir/conftest9012345
8705 ac_tf2
=$ac_xdir/conftest9012346
8706 touch "$ac_tf1" 2>/dev
/null
&& test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
8707 ac_cv_sys_long_file_names
=no
8708 rm -f -r "$ac_xdir" 2>/dev
/null
8709 test $ac_cv_sys_long_file_names = no
&& break
8712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5
8713 $as_echo "$ac_cv_sys_long_file_names" >&6; }
8714 if test $ac_cv_sys_long_file_names = yes; then
8716 $as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h
8721 #### Choose a window system.
8723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
8724 $as_echo_n "checking for X... " >&6; }
8727 # Check whether --with-x was given.
8728 if test "${with_x+set}" = set; then :
8732 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8733 if test "x$with_x" = xno
; then
8734 # The user explicitly disabled X.
8737 case $x_includes,$x_libraries in #(
8738 *\'*) as_fn_error $?
"cannot use X directory names containing '" "$LINENO" 5 ;; #(
8739 *,NONE | NONE
,*) if test "${ac_cv_have_x+set}" = set; then :
8740 $as_echo_n "(cached) " >&6
8742 # One or both of the vars are not set, and there is no cached value.
8743 ac_x_includes
=no ac_x_libraries
=no
8744 rm -f -r conftest.dir
8745 if mkdir conftest.dir
; then
8747 cat >Imakefile
<<'_ACEOF'
8749 @echo incroot='${INCROOT}'
8751 @echo usrlibdir='${USRLIBDIR}'
8753 @echo libdir='${LIBDIR}'
8755 if (export CC
; ${XMKMF-xmkmf}) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
8756 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
8757 for ac_var
in incroot usrlibdir libdir
; do
8758 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
8760 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8761 for ac_extension
in a so sl dylib la dll
; do
8762 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
8763 test -f "$ac_im_libdir/libX11.$ac_extension"; then
8764 ac_im_usrlibdir
=$ac_im_libdir; break
8767 # Screen out bogus values from the imake configuration. They are
8768 # bogus both because they are the default anyway, and because
8769 # using them would break gcc on systems where it needs fixed includes.
8770 case $ac_im_incroot in
8771 /usr
/include
) ac_x_includes
= ;;
8772 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
8774 case $ac_im_usrlibdir in
8775 /usr
/lib |
/usr
/lib64 |
/lib |
/lib64
) ;;
8776 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
8780 rm -f -r conftest.dir
8783 # Standard set of common directories for X headers.
8784 # Check X11 before X11Rn because it is often a symlink to the current release.
8798 /usr/local/X11/include
8799 /usr/local/X11R7/include
8800 /usr/local/X11R6/include
8801 /usr/local/X11R5/include
8802 /usr/local/X11R4/include
8804 /usr/local/include/X11
8805 /usr/local/include/X11R7
8806 /usr/local/include/X11R6
8807 /usr/local/include/X11R5
8808 /usr/local/include/X11R4
8812 /usr/XFree86/include/X11
8816 /usr/unsupported/include
8818 /usr/local/x11r5/include
8819 /usr/lpp/Xamples/include
8821 /usr/openwin/include
8822 /usr/openwin/share/include'
8824 if test "$ac_x_includes" = no
; then
8825 # Guess where to find include files, by looking for Xlib.h.
8826 # First, try using that file with no special directory specified.
8827 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8828 /* end confdefs.h. */
8829 #include <X11/Xlib.h>
8831 if ac_fn_c_try_cpp
"$LINENO"; then :
8832 # We can compile using X headers with no special include directory.
8835 for ac_dir
in $ac_x_header_dirs; do
8836 if test -r "$ac_dir/X11/Xlib.h"; then
8837 ac_x_includes
=$ac_dir
8842 rm -f conftest.err conftest.i conftest.
$ac_ext
8843 fi # $ac_x_includes = no
8845 if test "$ac_x_libraries" = no
; then
8846 # Check for the libraries.
8847 # See if we find them without any special options.
8848 # Don't add to $LIBS permanently.
8851 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8852 /* end confdefs.h. */
8853 #include <X11/Xlib.h>
8862 if ac_fn_c_try_link
"$LINENO"; then :
8864 # We can link X programs with no special library path.
8868 for ac_dir
in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8870 # Don't even attempt the hair of trying to link an X program!
8871 for ac_extension
in a so sl dylib la dll
; do
8872 if test -r "$ac_dir/libX11.$ac_extension"; then
8873 ac_x_libraries
=$ac_dir
8879 rm -f core conftest.err conftest.
$ac_objext \
8880 conftest
$ac_exeext conftest.
$ac_ext
8881 fi # $ac_x_libraries = no
8883 case $ac_x_includes,$ac_x_libraries in #(
8885 # Didn't find X, or a directory has "'" in its name.
8886 ac_cv_have_x
="have_x=no";; #(
8888 # Record where we found X for the cache.
8889 ac_cv_have_x
="have_x=yes\
8890 ac_x_includes='$ac_x_includes'\
8891 ac_x_libraries='$ac_x_libraries'"
8897 eval "$ac_cv_have_x"
8900 if test "$have_x" != yes; then
8901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
8902 $as_echo "$have_x" >&6; }
8905 # If each of the values was on the command line, it overrides each guess.
8906 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
8907 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
8908 # Update the cache value to reflect the command line values.
8909 ac_cv_have_x
="have_x=yes\
8910 ac_x_includes='$x_includes'\
8911 ac_x_libraries='$x_libraries'"
8912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
8913 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
8916 if test "$no_x" = yes; then
8922 ## Workaround for bug in autoconf <= 2.62.
8923 ## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
8924 ## No need to do anything special for these standard directories.
8925 if test -n "${x_libraries}" && test x
"${x_libraries}" != xNONE
; then
8927 x_libraries
=`echo :${x_libraries}: | sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
8931 LD_SWITCH_X_SITE_AUX
=
8932 LD_SWITCH_X_SITE_AUX_RPATH
=
8933 if test "${x_libraries}" != NONE
; then
8934 if test -n "${x_libraries}"; then
8935 LD_SWITCH_X_SITE
=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
8936 LD_SWITCH_X_SITE_AUX
=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
8937 LD_SWITCH_X_SITE_AUX_RPATH
=`echo ${LD_SWITCH_X_SITE_AUX} | sed -e 's/-R/-Wl,-rpath,/'`
8939 x_default_search_path
=""
8940 x_search_path
=${x_libraries}
8941 if test -z "${x_search_path}"; then
8942 x_search_path
=/usr
/lib
8944 for x_library
in `echo ${x_search_path}: | \
8945 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
8947 ${x_library}/X11/%L/%T/%N%C%S:\
8948 ${x_library}/X11/%l/%T/%N%C%S:\
8949 ${x_library}/X11/%T/%N%C%S:\
8950 ${x_library}/X11/%L/%T/%N%S:\
8951 ${x_library}/X11/%l/%T/%N%S:\
8952 ${x_library}/X11/%T/%N%S"
8953 if test x
"${x_default_search_path}" = x
; then
8954 x_default_search_path
=${x_search_path}
8956 x_default_search_path
="${x_search_path}:${x_default_search_path}"
8963 if test "${x_includes}" != NONE
&& test -n "${x_includes}"; then
8964 C_SWITCH_X_SITE
=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
8967 if test x
"${x_includes}" = x
; then
8968 bitmapdir
=/usr
/include
/X11
/bitmaps
8970 # accumulate include directories that have X11 bitmap subdirectories
8972 for bmd
in `echo ${x_includes} | sed -e "s/:/ /g"`; do
8973 if test -d "${bmd}/X11/bitmaps"; then
8974 bmd_acc
="${bmd_acc}:${bmd}/X11/bitmaps"
8976 if test -d "${bmd}/bitmaps"; then
8977 bmd_acc
="${bmd_acc}:${bmd}/bitmaps"
8980 if test ${bmd_acc} != "dummyval"; then
8981 bitmapdir
=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
8988 tmp_CPPFLAGS
="$CPPFLAGS"
8989 tmp_CFLAGS
="$CFLAGS"
8990 CPPFLAGS
="$CPPFLAGS -x objective-c"
8991 CFLAGS
="$CFLAGS -x objective-c"
8992 TEMACS_LDFLAGS2
="\${LDFLAGS}"
8993 if test "${with_ns}" != no
; then
8994 if test "${opsys}" = darwin
; then
8996 ns_appdir
=`pwd`/nextstep
/Emacs.app
8997 ns_appbindir
=${ns_appdir}/Contents
/MacOS
/
8998 ns_appresdir
=${ns_appdir}/Contents
/Resources
8999 ns_appsrc
=${srcdir}/nextstep
/Cocoa
/Emacs.base
9000 elif test -f $GNUSTEP_CONFIG_FILE; then
9002 ns_appdir
=`pwd`/nextstep
/Emacs.app
9003 ns_appbindir
=${ns_appdir}/
9004 ns_appresdir
=${ns_appdir}/Resources
9005 ns_appsrc
=${srcdir}/nextstep
/GNUstep
/Emacs.base
9006 GNUSTEP_SYSTEM_HEADERS
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
9007 GNUSTEP_SYSTEM_LIBRARIES
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
9008 GNUSTEP_LOCAL_HEADERS
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_HEADERS)"
9009 GNUSTEP_LOCAL_LIBRARIES
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_LIBRARIES)"
9010 test "x${GNUSTEP_LOCAL_HEADERS}" != "x" && \
9011 GNUSTEP_LOCAL_HEADERS
="-I${GNUSTEP_LOCAL_HEADERS}"
9012 test "x${GNUSTEP_LOCAL_LIBRARIES}" != "x" && \
9013 GNUSTEP_LOCAL_LIBRARIES
="-L${GNUSTEP_LOCAL_LIBRARIES}"
9014 CPPFLAGS
="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
9015 CFLAGS
="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
9016 LDFLAGS
="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES}"
9021 ac_fn_c_check_header_mongrel
"$LINENO" "AppKit/AppKit.h" "ac_cv_header_AppKit_AppKit_h" "$ac_includes_default"
9022 if test "x$ac_cv_header_AppKit_AppKit_h" = x
""yes; then :
9025 as_fn_error $?
"\`--with-ns' was specified, but the include
9026 files are missing or cannot be compiled." "$LINENO" 5
9030 NS_HAVE_NSINTEGER
=yes
9031 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9032 /* end confdefs.h. */
9033 #include <Foundation/NSObjCRuntime.h>
9042 if ac_fn_c_try_compile
"$LINENO"; then :
9043 ns_have_nsinteger
=yes
9045 ns_have_nsinteger
=no
9047 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9048 if test $ns_have_nsinteger = no
; then
9049 NS_HAVE_NSINTEGER
=no
9058 if test "${HAVE_NS}" = yes; then
9059 window_system
=nextstep
9061 # set up packaging dirs
9062 exec_prefix
=${ns_appbindir}
9063 libexecdir
=${ns_appbindir}/libexec
9064 if test "${EN_NS_SELF_CONTAINED}" = yes; then
9065 prefix
=${ns_appresdir}
9067 ns_frag
=$srcdir/src
/ns.mk
9068 NS_OBJ
="fontset.o fringe.o image.o"
9069 NS_OBJC_OBJ
="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o"
9070 NS_SUPPORT
="\${lispsource}/emacs-lisp/easymenu.elc \${lispsource}/term/ns-win.elc"
9072 CFLAGS
="$tmp_CFLAGS"
9073 CPPFLAGS
="$tmp_CPPFLAGS"
9080 case "${window_system}" in
9084 case "${with_x_toolkit}" in
9085 athena | lucid
) USE_X_TOOLKIT
=LUCID
;;
9086 motif
) USE_X_TOOLKIT
=MOTIF
;;
9088 USE_X_TOOLKIT
=none
;;
9089 gtk3
) with_gtk3
=yes
9090 USE_X_TOOLKIT
=none
;;
9091 no
) USE_X_TOOLKIT
=none
;;
9092 * ) USE_X_TOOLKIT
=maybe
;;
9102 if test "$window_system" = none
&& test "X$with_x" != "Xno"; then
9103 # Extract the first word of "X", so it can be a program name with args.
9104 set dummy X
; ac_word
=$2
9105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9106 $as_echo_n "checking for $ac_word... " >&6; }
9107 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then :
9108 $as_echo_n "(cached) " >&6
9110 if test -n "$HAVE_XSERVER"; then
9111 ac_cv_prog_HAVE_XSERVER
="$HAVE_XSERVER" # Let the user override the test.
9113 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9117 test -z "$as_dir" && as_dir
=.
9118 for ac_exec_ext
in '' $ac_executable_extensions; do
9119 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9120 ac_cv_prog_HAVE_XSERVER
="true"
9121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9128 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER
="false"
9131 HAVE_XSERVER
=$ac_cv_prog_HAVE_XSERVER
9132 if test -n "$HAVE_XSERVER"; then
9133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_XSERVER" >&5
9134 $as_echo "$HAVE_XSERVER" >&6; }
9136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9137 $as_echo "no" >&6; }
9141 if test "$HAVE_XSERVER" = true ||
9142 test -n "$DISPLAY" ||
9143 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
9144 as_fn_error $?
"You seem to be running X, but no X development libraries
9145 were found. You should install the relevant development files for X
9146 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9147 sure you have development files for image handling, i.e.
9148 tiff, gif, jpeg, png and xpm.
9149 If you are sure you want Emacs compiled without X window support, pass
9151 to configure." "$LINENO" 5
9155 ### If we're using X11, we should use the X menu package.
9158 yes ) HAVE_MENUS
=yes ;;
9161 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9162 # Assume not, until told otherwise.
9165 ac_fn_c_check_func
"$LINENO" "malloc_get_state" "ac_cv_func_malloc_get_state"
9166 if test "x$ac_cv_func_malloc_get_state" = x
""yes; then :
9172 ac_fn_c_check_func
"$LINENO" "malloc_set_state" "ac_cv_func_malloc_set_state"
9173 if test "x$ac_cv_func_malloc_set_state" = x
""yes; then :
9179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __after_morecore_hook exists" >&5
9180 $as_echo_n "checking whether __after_morecore_hook exists... " >&6; }
9181 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then :
9182 $as_echo_n "(cached) " >&6
9184 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9185 /* end confdefs.h. */
9186 extern void (* __after_morecore_hook)();
9190 __after_morecore_hook = 0
9195 if ac_fn_c_try_link
"$LINENO"; then :
9196 emacs_cv_var___after_morecore_hook
=yes
9198 emacs_cv_var___after_morecore_hook
=no
9200 rm -f core conftest.err conftest.
$ac_objext \
9201 conftest
$ac_exeext conftest.
$ac_ext
9203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_var___after_morecore_hook" >&5
9204 $as_echo "$emacs_cv_var___after_morecore_hook" >&6; }
9205 if test $emacs_cv_var___after_morecore_hook = no
; then
9212 ## darwin ld insists on the use of malloc routines in the System framework.
9213 darwin|sol2-10
) system_malloc
=yes ;;
9216 if test "${system_malloc}" = "yes"; then
9218 $as_echo "#define SYSTEM_MALLOC 1" >>confdefs.h
9222 (The GNU allocators don't work with this system configuration.)"
9226 test "$doug_lea_malloc" != "yes" && GMALLOC_OBJ
=gmalloc.o
9227 VMLIMIT_OBJ
=vm-limit.o
9232 if test "$doug_lea_malloc" = "yes" ; then
9233 if test "$GNU_MALLOC" = yes ; then
9235 (Using Doug Lea's new malloc from the GNU C Library.)"
9238 $as_echo "#define DOUG_LEA_MALLOC 1" >>confdefs.h
9241 ## Use mmap directly for allocating larger buffers.
9242 ## FIXME this comes from src/s/{gnu,gnu-linux}.h:
9243 ## #ifdef DOUG_LEA_MALLOC; #undef REL_ALLOC; #endif
9244 ## Does the AC_FUNC_MMAP test below make this check unecessary?
9246 gnu
*) REL_ALLOC
=no
;;
9250 if test x
"${REL_ALLOC}" = x
; then
9251 REL_ALLOC
=${GNU_MALLOC}
9254 use_mmap_for_buffers
=no
9256 freebsd|irix6-5
) use_mmap_for_buffers
=yes ;;
9262 for ac_header
in $ac_header_list
9264 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9265 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9267 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
9268 cat >>confdefs.h
<<_ACEOF
9269 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9283 for ac_func
in getpagesize
9285 ac_fn_c_check_func
"$LINENO" "getpagesize" "ac_cv_func_getpagesize"
9286 if test "x$ac_cv_func_getpagesize" = x
""yes; then :
9287 cat >>confdefs.h
<<_ACEOF
9288 #define HAVE_GETPAGESIZE 1
9294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
9295 $as_echo_n "checking for working mmap... " >&6; }
9296 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
9297 $as_echo_n "(cached) " >&6
9299 if test "$cross_compiling" = yes; then :
9300 ac_cv_func_mmap_fixed_mapped
=no
9302 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9303 /* end confdefs.h. */
9304 $ac_includes_default
9305 /* malloc might have been renamed as rpl_malloc. */
9308 /* Thanks to Mike Haertel and Jim Avera for this test.
9309 Here is a matrix of mmap possibilities:
9310 mmap private not fixed
9311 mmap private fixed at somewhere currently unmapped
9312 mmap private fixed at somewhere already mapped
9313 mmap shared not fixed
9314 mmap shared fixed at somewhere currently unmapped
9315 mmap shared fixed at somewhere already mapped
9316 For private mappings, we should verify that changes cannot be read()
9317 back from the file, nor mmap's back from the file at a different
9318 address. (There have been systems where private was not correctly
9319 implemented like the infamous i386 svr4.0, and systems where the
9320 VM page cache was not coherent with the file system buffer cache
9321 like early versions of FreeBSD and possibly contemporary NetBSD.)
9322 For shared mappings, we should conversely verify that changes get
9323 propagated back to all the places they're supposed to be.
9325 Grep wants private fixed already mapped.
9326 The main things grep needs to know about mmap are:
9327 * does it exist and is it safe to write into the mmap'd area
9328 * how to use it (BSD variants) */
9331 #include <sys/mman.h>
9333 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
9337 /* This mess was copied from the GNU getpagesize.h. */
9338 #ifndef HAVE_GETPAGESIZE
9339 # ifdef _SC_PAGESIZE
9340 # define getpagesize() sysconf(_SC_PAGESIZE)
9341 # else /* no _SC_PAGESIZE */
9342 # ifdef HAVE_SYS_PARAM_H
9343 # include <sys/param.h>
9344 # ifdef EXEC_PAGESIZE
9345 # define getpagesize() EXEC_PAGESIZE
9346 # else /* no EXEC_PAGESIZE */
9348 # define getpagesize() NBPG * CLSIZE
9351 # endif /* no CLSIZE */
9352 # else /* no NBPG */
9354 # define getpagesize() NBPC
9355 # else /* no NBPC */
9357 # define getpagesize() PAGESIZE
9358 # endif /* PAGESIZE */
9359 # endif /* no NBPC */
9360 # endif /* no NBPG */
9361 # endif /* no EXEC_PAGESIZE */
9362 # else /* no HAVE_SYS_PARAM_H */
9363 # define getpagesize() 8192 /* punt totally */
9364 # endif /* no HAVE_SYS_PARAM_H */
9365 # endif /* no _SC_PAGESIZE */
9367 #endif /* no HAVE_GETPAGESIZE */
9372 char *data, *data2, *data3;
9377 pagesize = getpagesize ();
9379 /* First, make a file with some known garbage in it. */
9380 data = (char *) malloc (pagesize);
9383 for (i = 0; i < pagesize; ++i)
9384 *(data + i) = rand ();
9386 fd = creat ("conftest.mmap", 0600);
9389 if (write (fd, data, pagesize) != pagesize)
9393 /* Next, check that the tail of a page is zero-filled. File must have
9394 non-zero length, otherwise we risk SIGBUS for entire page. */
9395 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
9399 if (write (fd2, cdata2, 1) != 1)
9401 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
9402 if (data2 == MAP_FAILED)
9404 for (i = 0; i < pagesize; ++i)
9408 if (munmap (data2, pagesize))
9411 /* Next, try to mmap the file at a fixed address which already has
9412 something else allocated at it. If we can, also make sure that
9413 we see the same garbage. */
9414 fd = open ("conftest.mmap", O_RDWR);
9417 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9418 MAP_PRIVATE | MAP_FIXED, fd, 0L))
9420 for (i = 0; i < pagesize; ++i)
9421 if (*(data + i) != *(data2 + i))
9424 /* Finally, make sure that changes to the mapped area do not
9425 percolate back to the file as seen by read(). (This is a bug on
9426 some variants of i386 svr4.0.) */
9427 for (i = 0; i < pagesize; ++i)
9428 *(data2 + i) = *(data2 + i) + 1;
9429 data3 = (char *) malloc (pagesize);
9432 if (read (fd, data3, pagesize) != pagesize)
9434 for (i = 0; i < pagesize; ++i)
9435 if (*(data + i) != *(data3 + i))
9441 if ac_fn_c_try_run
"$LINENO"; then :
9442 ac_cv_func_mmap_fixed_mapped
=yes
9444 ac_cv_func_mmap_fixed_mapped
=no
9446 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9447 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
9452 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
9453 if test $ac_cv_func_mmap_fixed_mapped = yes; then
9455 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
9458 rm -f conftest.mmap conftest.txt
9460 if test $use_mmap_for_buffers = yes; then
9462 $as_echo "#define USE_MMAP_FOR_BUFFERS 1" >>confdefs.h
9467 LIBS
="$LIBS_SYSTEM $LIBS"
9469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
9470 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
9471 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
9472 $as_echo_n "(cached) " >&6
9474 ac_check_lib_save_LIBS
=$LIBS
9476 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9477 /* end confdefs.h. */
9479 /* Override any GCC internal prototype to avoid an error.
9480 Use char because int might match the return type of a GCC
9481 builtin and then its argument prototype would still apply. */
9489 return dnet_ntoa ();
9494 if ac_fn_c_try_link
"$LINENO"; then :
9495 ac_cv_lib_dnet_dnet_ntoa
=yes
9497 ac_cv_lib_dnet_dnet_ntoa
=no
9499 rm -f core conftest.err conftest.
$ac_objext \
9500 conftest
$ac_exeext conftest.
$ac_ext
9501 LIBS
=$ac_check_lib_save_LIBS
9503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
9504 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
9505 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x
""yes; then :
9506 cat >>confdefs.h
<<_ACEOF
9507 #define HAVE_LIBDNET 1
9515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXbsd" >&5
9516 $as_echo_n "checking for main in -lXbsd... " >&6; }
9517 if test "${ac_cv_lib_Xbsd_main+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. */
9534 if ac_fn_c_try_link
"$LINENO"; then :
9535 ac_cv_lib_Xbsd_main
=yes
9537 ac_cv_lib_Xbsd_main
=no
9539 rm -f core conftest.err conftest.
$ac_objext \
9540 conftest
$ac_exeext conftest.
$ac_ext
9541 LIBS
=$ac_check_lib_save_LIBS
9543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xbsd_main" >&5
9544 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
9545 if test "x$ac_cv_lib_Xbsd_main" = x
""yes; then :
9546 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -lXbsd"
9550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cma_open in -lpthreads" >&5
9551 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
9552 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then :
9553 $as_echo_n "(cached) " >&6
9555 ac_check_lib_save_LIBS
=$LIBS
9556 LIBS
="-lpthreads $LIBS"
9557 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9558 /* end confdefs.h. */
9560 /* Override any GCC internal prototype to avoid an error.
9561 Use char because int might match the return type of a GCC
9562 builtin and then its argument prototype would still apply. */
9575 if ac_fn_c_try_link
"$LINENO"; then :
9576 ac_cv_lib_pthreads_cma_open
=yes
9578 ac_cv_lib_pthreads_cma_open
=no
9580 rm -f core conftest.err conftest.
$ac_objext \
9581 conftest
$ac_exeext conftest.
$ac_ext
9582 LIBS
=$ac_check_lib_save_LIBS
9584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_cma_open" >&5
9585 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
9586 if test "x$ac_cv_lib_pthreads_cma_open" = x
""yes; then :
9587 cat >>confdefs.h
<<_ACEOF
9588 #define HAVE_LIBPTHREADS 1
9591 LIBS
="-lpthreads $LIBS"
9596 ## Note: when using cpp in s/aix4.2.h, this definition depended on
9597 ## HAVE_LIBPTHREADS. That was not defined earlier in configure when
9598 ## the system file was sourced. Hence the value of LIBS_SYSTEM
9599 ## added to LIBS in configure would never contain the pthreads part,
9600 ## but the value used in Makefiles might. FIXME?
9602 ## -lpthreads seems to be necessary for Xlib in X11R6, and should
9603 ## be harmless on older versions of X where it happens to exist.
9604 test "$opsys" = "aix4-2" && \
9605 test $ac_cv_lib_pthreads_cma_open = yes && \
9606 LIBS_SYSTEM
="$LIBS_SYSTEM -lpthreads"
9611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
9612 $as_echo_n "checking for -bbigtoc option... " >&6; }
9613 if test "${gdb_cv_bigtoc+set}" = set; then :
9614 $as_echo_n "(cached) " >&6
9618 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
9619 *) gdb_cv_bigtoc
=-bbigtoc ;;
9622 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
9623 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9624 /* end confdefs.h. */
9634 if ac_fn_c_try_link
"$LINENO"; then :
9639 rm -f core conftest.err conftest.
$ac_objext \
9640 conftest
$ac_exeext conftest.
$ac_ext
9643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
9644 $as_echo "$gdb_cv_bigtoc" >&6; }
9648 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
9649 # used for the tests that follow. We set them back to REAL_CFLAGS and
9650 # REAL_CPPFLAGS later on.
9652 REAL_CFLAGS
="$CFLAGS"
9653 REAL_CPPFLAGS
="$CPPFLAGS"
9655 if test "${HAVE_X11}" = "yes"; then
9656 DEFS
="$C_SWITCH_X_SITE $DEFS"
9657 LDFLAGS
="$LDFLAGS $LD_SWITCH_X_SITE"
9659 CFLAGS
="$C_SWITCH_X_SITE $CFLAGS"
9660 CPPFLAGS
="$C_SWITCH_X_SITE $CPPFLAGS"
9662 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
9663 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
9664 # but it's more convenient here to set LD_RUN_PATH
9665 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
9666 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
9667 LD_RUN_PATH
=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
9671 if test "${opsys}" = "gnu-linux"; then
9672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X on GNU/Linux needs -b to link" >&5
9673 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
9674 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9675 /* end confdefs.h. */
9680 XOpenDisplay ("foo");
9685 if ac_fn_c_try_link
"$LINENO"; then :
9686 xlinux_first_failure
=no
9688 xlinux_first_failure
=yes
9690 rm -f core conftest.err conftest.
$ac_objext \
9691 conftest
$ac_exeext conftest.
$ac_ext
9692 if test "${xlinux_first_failure}" = "yes"; then
9693 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
9694 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
9695 OLD_CPPFLAGS
="$CPPFLAGS"
9697 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
9698 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
9699 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
9700 LIBS
="$LIBS -b i486-linuxaout"
9701 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9702 /* end confdefs.h. */
9707 XOpenDisplay ("foo");
9712 if ac_fn_c_try_link
"$LINENO"; then :
9713 xlinux_second_failure
=no
9715 xlinux_second_failure
=yes
9717 rm -f core conftest.err conftest.
$ac_objext \
9718 conftest
$ac_exeext conftest.
$ac_ext
9719 if test "${xlinux_second_failure}" = "yes"; then
9720 # If we get the same failure with -b, there is no use adding -b.
9721 # So take it out. This plays safe.
9722 LD_SWITCH_X_SITE
="$OLD_LD_SWITCH_X_SITE"
9723 C_SWITCH_X_SITE
="$OLD_C_SWITCH_X_SITE"
9724 CPPFLAGS
="$OLD_CPPFLAGS"
9726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9727 $as_echo "no" >&6; }
9729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9730 $as_echo "yes" >&6; }
9733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9734 $as_echo "no" >&6; }
9738 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
9739 # header files included from there.
9740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xkb" >&5
9741 $as_echo_n "checking for Xkb... " >&6; }
9742 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9743 /* end confdefs.h. */
9744 #include <X11/Xlib.h>
9745 #include <X11/XKBlib.h>
9749 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
9754 if ac_fn_c_try_link
"$LINENO"; then :
9759 rm -f core conftest.err conftest.
$ac_objext \
9760 conftest
$ac_exeext conftest.
$ac_ext
9761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_xkb" >&5
9762 $as_echo "$emacs_xkb" >&6; }
9763 if test $emacs_xkb = yes; then
9765 $as_echo "#define HAVE_XKBGETKEYBOARD 1" >>confdefs.h
9769 for ac_func
in XrmSetDatabase XScreenResourceString \
9770 XScreenNumberOfScreen XSetWMProtocols
9772 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9773 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
9774 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
9775 cat >>confdefs.h
<<_ACEOF
9776 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9784 if test "${window_system}" = "x11"; then
9785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 version 6" >&5
9786 $as_echo_n "checking X11 version 6... " >&6; }
9787 if test "${emacs_cv_x11_version_6+set}" = set; then :
9788 $as_echo_n "(cached) " >&6
9790 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9791 /* end confdefs.h. */
9792 #include <X11/Xlib.h>
9796 #if XlibSpecificationRelease < 6
9804 if ac_fn_c_try_link
"$LINENO"; then :
9805 emacs_cv_x11_version_6
=yes
9807 emacs_cv_x11_version_6
=no
9809 rm -f core conftest.err conftest.
$ac_objext \
9810 conftest
$ac_exeext conftest.
$ac_ext
9813 if test $emacs_cv_x11_version_6 = yes; then
9814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
9815 $as_echo "6 or newer" >&6; }
9817 $as_echo "#define HAVE_X11R6 1" >>confdefs.h
9820 $as_echo "#define HAVE_X_I18N 1" >>confdefs.h
9822 ## inoue@ainet.or.jp says Solaris has a bug related to X11R6-style
9827 $as_echo "#define HAVE_X11R6_XIM 1" >>confdefs.h
9832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
9833 $as_echo "before 6" >&6; }
9838 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
9840 if test "${HAVE_X11}" = "yes" ||
test "${NS_IMPL_GNUSTEP}" = "yes"; then
9841 if test "${with_rsvg}" != "no"; then
9842 RSVG_REQUIRED
=2.11.0
9843 RSVG_MODULE
="librsvg-2.0 >= $RSVG_REQUIRED"
9848 # Extract the first word of "pkg-config", so it can be a program name with args.
9849 set dummy pkg-config
; ac_word
=$2
9850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9851 $as_echo_n "checking for $ac_word... " >&6; }
9852 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
9853 $as_echo_n "(cached) " >&6
9857 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
9860 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9864 test -z "$as_dir" && as_dir
=.
9865 for ac_exec_ext
in '' $ac_executable_extensions; do
9866 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9867 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
9868 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9875 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
9879 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
9880 if test -n "$PKG_CONFIG"; then
9881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9882 $as_echo "$PKG_CONFIG" >&6; }
9884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9885 $as_echo "no" >&6; }
9890 if test "$PKG_CONFIG" = "no" ; then
9893 PKG_CONFIG_MIN_VERSION
=0.9.0
9894 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $RSVG_MODULE" >&5
9896 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
9898 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
9899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9900 $as_echo "yes" >&6; }
9903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_CFLAGS" >&5
9904 $as_echo_n "checking RSVG_CFLAGS... " >&6; }
9905 RSVG_CFLAGS
=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
9906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_CFLAGS" >&5
9907 $as_echo "$RSVG_CFLAGS" >&6; }
9909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_LIBS" >&5
9910 $as_echo_n "checking RSVG_LIBS... " >&6; }
9911 RSVG_LIBS
=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
9912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_LIBS" >&5
9913 $as_echo "$RSVG_LIBS" >&6; }
9915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9916 $as_echo "no" >&6; }
9919 ## If we have a custom action on failure, don't print errors, but
9920 ## do set a variable so people can do so.
9921 RSVG_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
9928 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9929 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9933 if test $succeeded = yes; then
9942 if test $HAVE_RSVG = yes; then
9944 $as_echo "#define HAVE_RSVG 1" >>confdefs.h
9946 CFLAGS
="$CFLAGS $RSVG_CFLAGS"
9947 LIBS
="$RSVG_LIBS $LIBS"
9953 if test "${HAVE_X11}" = "yes"; then
9954 if test "${with_imagemagick}" != "no"; then
9955 IMAGEMAGICK_MODULE
="Wand"
9959 # Extract the first word of "pkg-config", so it can be a program name with args.
9960 set dummy pkg-config
; ac_word
=$2
9961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9962 $as_echo_n "checking for $ac_word... " >&6; }
9963 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
9964 $as_echo_n "(cached) " >&6
9968 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
9971 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9975 test -z "$as_dir" && as_dir
=.
9976 for ac_exec_ext
in '' $ac_executable_extensions; do
9977 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9978 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
9979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9986 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
9990 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
9991 if test -n "$PKG_CONFIG"; then
9992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9993 $as_echo "$PKG_CONFIG" >&6; }
9995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9996 $as_echo "no" >&6; }
10001 if test "$PKG_CONFIG" = "no" ; then
10004 PKG_CONFIG_MIN_VERSION
=0.9.0
10005 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $IMAGEMAGICK_MODULE" >&5
10007 $as_echo_n "checking for $IMAGEMAGICK_MODULE... " >&6; }
10009 if $PKG_CONFIG --exists "$IMAGEMAGICK_MODULE" 2>&5; then
10010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10011 $as_echo "yes" >&6; }
10014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking IMAGEMAGICK_CFLAGS" >&5
10015 $as_echo_n "checking IMAGEMAGICK_CFLAGS... " >&6; }
10016 IMAGEMAGICK_CFLAGS
=`$PKG_CONFIG --cflags "$IMAGEMAGICK_MODULE"|sed -e 's,///*,/,g'`
10017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMAGEMAGICK_CFLAGS" >&5
10018 $as_echo "$IMAGEMAGICK_CFLAGS" >&6; }
10020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking IMAGEMAGICK_LIBS" >&5
10021 $as_echo_n "checking IMAGEMAGICK_LIBS... " >&6; }
10022 IMAGEMAGICK_LIBS
=`$PKG_CONFIG --libs "$IMAGEMAGICK_MODULE"|sed -e 's,///*,/,g'`
10023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMAGEMAGICK_LIBS" >&5
10024 $as_echo "$IMAGEMAGICK_LIBS" >&6; }
10026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10027 $as_echo "no" >&6; }
10028 IMAGEMAGICK_CFLAGS
=""
10029 IMAGEMAGICK_LIBS
=""
10030 ## If we have a custom action on failure, don't print errors, but
10031 ## do set a variable so people can do so.
10032 IMAGEMAGICK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$IMAGEMAGICK_MODULE"`
10039 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10040 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10044 if test $succeeded = yes; then
10045 HAVE_IMAGEMAGICK
=yes
10053 if test $HAVE_IMAGEMAGICK = yes; then
10055 $as_echo "#define HAVE_IMAGEMAGICK 1" >>confdefs.h
10057 CFLAGS
="$CFLAGS $IMAGEMAGICK_CFLAGS"
10058 LIBS
="$IMAGEMAGICK_LIBS $LIBS"
10059 for ac_func
in MagickExportImagePixels
10061 ac_fn_c_check_func
"$LINENO" "MagickExportImagePixels" "ac_cv_func_MagickExportImagePixels"
10062 if test "x$ac_cv_func_MagickExportImagePixels" = x
""yes; then :
10063 cat >>confdefs.h
<<_ACEOF
10064 #define HAVE_MAGICKEXPORTIMAGEPIXELS 1
10076 if test "${with_gtk3}" = "yes"; then
10079 GTK_MODULES
="gtk+-3.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10084 # Extract the first word of "pkg-config", so it can be a program name with args.
10085 set dummy pkg-config
; ac_word
=$2
10086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10087 $as_echo_n "checking for $ac_word... " >&6; }
10088 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10089 $as_echo_n "(cached) " >&6
10091 case $PKG_CONFIG in
10093 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
10096 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10097 for as_dir
in $PATH
10100 test -z "$as_dir" && as_dir
=.
10101 for ac_exec_ext
in '' $ac_executable_extensions; do
10102 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10103 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
10104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10111 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
10115 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
10116 if test -n "$PKG_CONFIG"; then
10117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10118 $as_echo "$PKG_CONFIG" >&6; }
10120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10121 $as_echo "no" >&6; }
10126 if test "$PKG_CONFIG" = "no" ; then
10129 PKG_CONFIG_MIN_VERSION
=0.9.0
10130 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
10132 $as_echo_n "checking for $GTK_MODULES... " >&6; }
10134 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
10135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10136 $as_echo "yes" >&6; }
10139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
10140 $as_echo_n "checking GTK_CFLAGS... " >&6; }
10141 GTK_CFLAGS
=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
10142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
10143 $as_echo "$GTK_CFLAGS" >&6; }
10145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
10146 $as_echo_n "checking GTK_LIBS... " >&6; }
10147 GTK_LIBS
=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
10148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
10149 $as_echo "$GTK_LIBS" >&6; }
10151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10152 $as_echo "no" >&6; }
10155 ## If we have a custom action on failure, don't print errors, but
10156 ## do set a variable so people can do so.
10157 GTK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
10164 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10165 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10169 if test $succeeded = yes; then
10175 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
10176 as_fn_error $?
"$GTK_PKG_ERRORS" "$LINENO" 5
10180 if test "$pkg_check_gtk" != "yes"; then
10182 if test "${with_gtk}" = "yes" ||
test "$USE_X_TOOLKIT" = "maybe"; then
10185 GTK_MODULES
="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10190 # Extract the first word of "pkg-config", so it can be a program name with args.
10191 set dummy pkg-config
; ac_word
=$2
10192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10193 $as_echo_n "checking for $ac_word... " >&6; }
10194 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10195 $as_echo_n "(cached) " >&6
10197 case $PKG_CONFIG in
10199 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
10202 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10203 for as_dir
in $PATH
10206 test -z "$as_dir" && as_dir
=.
10207 for ac_exec_ext
in '' $ac_executable_extensions; do
10208 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10209 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
10210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10217 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
10221 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
10222 if test -n "$PKG_CONFIG"; then
10223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10224 $as_echo "$PKG_CONFIG" >&6; }
10226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10227 $as_echo "no" >&6; }
10232 if test "$PKG_CONFIG" = "no" ; then
10235 PKG_CONFIG_MIN_VERSION
=0.9.0
10236 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
10238 $as_echo_n "checking for $GTK_MODULES... " >&6; }
10240 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
10241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10242 $as_echo "yes" >&6; }
10245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
10246 $as_echo_n "checking GTK_CFLAGS... " >&6; }
10247 GTK_CFLAGS
=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
10248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
10249 $as_echo "$GTK_CFLAGS" >&6; }
10251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
10252 $as_echo_n "checking GTK_LIBS... " >&6; }
10253 GTK_LIBS
=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
10254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
10255 $as_echo "$GTK_LIBS" >&6; }
10257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10258 $as_echo "no" >&6; }
10261 ## If we have a custom action on failure, don't print errors, but
10262 ## do set a variable so people can do so.
10263 GTK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
10270 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10271 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10275 if test $succeeded = yes; then
10281 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
10282 as_fn_error $?
"$GTK_PKG_ERRORS" "$LINENO" 5
10288 if test x
"$pkg_check_gtk" = xyes
; then
10292 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $GTK_CFLAGS"
10293 CFLAGS
="$CFLAGS $GTK_CFLAGS"
10294 LIBS
="$GTK_LIBS $LIBS"
10296 for ac_func
in gtk_main
10298 ac_fn_c_check_func
"$LINENO" "gtk_main" "ac_cv_func_gtk_main"
10299 if test "x$ac_cv_func_gtk_main" = x
""yes; then :
10300 cat >>confdefs.h
<<_ACEOF
10301 #define HAVE_GTK_MAIN 1
10307 if test "${GTK_COMPILES}" != "yes"; then
10308 if test "$USE_X_TOOLKIT" != "maybe"; then
10309 as_fn_error $?
"Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" "$LINENO" 5 ;
10314 $as_echo "#define USE_GTK 1" >>confdefs.h
10318 if $PKG_CONFIG --atleast-version=2.10 gtk
+-2.0
; then
10321 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of Gtk+ will have problems with
10322 closing open displays. This is no problem if you just use
10323 one display, but if you use more than one and close one of them
10324 Emacs may crash." >&5
10325 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
10326 closing open displays. This is no problem if you just use
10327 one display, but if you use more than one and close one of them
10328 Emacs may crash." >&2;}
10337 if test "${HAVE_GTK}" = "yes"; then
10339 if test "$with_toolkit_scroll_bars" != no
; then
10340 with_toolkit_scroll_bars
=yes
10343 HAVE_GTK_FILE_SELECTION
=no
10344 ac_fn_c_check_decl
"$LINENO" "GTK_TYPE_FILE_SELECTION" "ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" "$ac_includes_default
10345 #include <gtk/gtk.h>
10347 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = x
""yes; then :
10348 HAVE_GTK_FILE_SELECTION
=yes
10350 HAVE_GTK_FILE_SELECTION
=no
10353 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
10354 for ac_func
in gtk_file_selection_new
10356 ac_fn_c_check_func
"$LINENO" "gtk_file_selection_new" "ac_cv_func_gtk_file_selection_new"
10357 if test "x$ac_cv_func_gtk_file_selection_new" = x
""yes; then :
10358 cat >>confdefs.h
<<_ACEOF
10359 #define HAVE_GTK_FILE_SELECTION_NEW 1
10367 HAVE_GTK_AND_PTHREAD
=no
10368 for ac_header
in pthread.h
10370 ac_fn_c_check_header_mongrel
"$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
10371 if test "x$ac_cv_header_pthread_h" = x
""yes; then :
10372 cat >>confdefs.h
<<_ACEOF
10373 #define HAVE_PTHREAD_H 1
10380 if test "$ac_cv_header_pthread_h"; then
10381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_self in -lpthread" >&5
10382 $as_echo_n "checking for pthread_self in -lpthread... " >&6; }
10383 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then :
10384 $as_echo_n "(cached) " >&6
10386 ac_check_lib_save_LIBS
=$LIBS
10387 LIBS
="-lpthread $LIBS"
10388 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10389 /* end confdefs.h. */
10391 /* Override any GCC internal prototype to avoid an error.
10392 Use char because int might match the return type of a GCC
10393 builtin and then its argument prototype would still apply. */
10397 char pthread_self ();
10401 return pthread_self ();
10406 if ac_fn_c_try_link
"$LINENO"; then :
10407 ac_cv_lib_pthread_pthread_self
=yes
10409 ac_cv_lib_pthread_pthread_self
=no
10411 rm -f core conftest.err conftest.
$ac_objext \
10412 conftest
$ac_exeext conftest.
$ac_ext
10413 LIBS
=$ac_check_lib_save_LIBS
10415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_self" >&5
10416 $as_echo "$ac_cv_lib_pthread_pthread_self" >&6; }
10417 if test "x$ac_cv_lib_pthread_pthread_self" = x
""yes; then :
10418 HAVE_GTK_AND_PTHREAD
=yes
10422 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
10423 case "${canonical}" in
10425 *) GTK_LIBS
="$GTK_LIBS -lpthread" ;;
10428 $as_echo "#define HAVE_GTK_AND_PTHREAD 1" >>confdefs.h
10432 for ac_func
in gtk_widget_get_window gtk_widget_set_has_window \
10433 gtk_dialog_get_action_area gtk_widget_get_sensitive \
10434 gtk_widget_get_mapped gtk_adjustment_get_page_size \
10435 gtk_orientable_set_orientation
10437 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10438 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10439 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
10440 cat >>confdefs.h
<<_ACEOF
10441 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10452 if test "${with_dbus}" = "yes"; then
10456 # Extract the first word of "pkg-config", so it can be a program name with args.
10457 set dummy pkg-config
; ac_word
=$2
10458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10459 $as_echo_n "checking for $ac_word... " >&6; }
10460 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10461 $as_echo_n "(cached) " >&6
10463 case $PKG_CONFIG in
10465 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
10468 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10469 for as_dir
in $PATH
10472 test -z "$as_dir" && as_dir
=.
10473 for ac_exec_ext
in '' $ac_executable_extensions; do
10474 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10475 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
10476 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10483 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
10487 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
10488 if test -n "$PKG_CONFIG"; then
10489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10490 $as_echo "$PKG_CONFIG" >&6; }
10492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10493 $as_echo "no" >&6; }
10498 if test "$PKG_CONFIG" = "no" ; then
10501 PKG_CONFIG_MIN_VERSION
=0.9.0
10502 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1 >= 1.0" >&5
10504 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
10506 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
10507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10508 $as_echo "yes" >&6; }
10511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_CFLAGS" >&5
10512 $as_echo_n "checking DBUS_CFLAGS... " >&6; }
10513 DBUS_CFLAGS
=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
10514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_CFLAGS" >&5
10515 $as_echo "$DBUS_CFLAGS" >&6; }
10517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_LIBS" >&5
10518 $as_echo_n "checking DBUS_LIBS... " >&6; }
10519 DBUS_LIBS
=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
10520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_LIBS" >&5
10521 $as_echo "$DBUS_LIBS" >&6; }
10523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10524 $as_echo "no" >&6; }
10527 ## If we have a custom action on failure, don't print errors, but
10528 ## do set a variable so people can do so.
10529 DBUS_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
10536 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10537 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10541 if test $succeeded = yes; then
10547 if test "$HAVE_DBUS" = yes; then
10548 LIBS
="$LIBS $DBUS_LIBS"
10550 $as_echo "#define HAVE_DBUS 1" >>confdefs.h
10552 for ac_func
in dbus_watch_get_unix_fd
10554 ac_fn_c_check_func
"$LINENO" "dbus_watch_get_unix_fd" "ac_cv_func_dbus_watch_get_unix_fd"
10555 if test "x$ac_cv_func_dbus_watch_get_unix_fd" = x
""yes; then :
10556 cat >>confdefs.h
<<_ACEOF
10557 #define HAVE_DBUS_WATCH_GET_UNIX_FD 1
10563 DBUS_OBJ
=dbusbind.o
10569 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
10573 # Extract the first word of "pkg-config", so it can be a program name with args.
10574 set dummy pkg-config
; ac_word
=$2
10575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10576 $as_echo_n "checking for $ac_word... " >&6; }
10577 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10578 $as_echo_n "(cached) " >&6
10580 case $PKG_CONFIG in
10582 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
10585 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10586 for as_dir
in $PATH
10589 test -z "$as_dir" && as_dir
=.
10590 for ac_exec_ext
in '' $ac_executable_extensions; do
10591 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10592 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
10593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10600 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
10604 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
10605 if test -n "$PKG_CONFIG"; then
10606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10607 $as_echo "$PKG_CONFIG" >&6; }
10609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10610 $as_echo "no" >&6; }
10615 if test "$PKG_CONFIG" = "no" ; then
10618 PKG_CONFIG_MIN_VERSION
=0.9.0
10619 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.13" >&5
10621 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
10623 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5; then
10624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10625 $as_echo "yes" >&6; }
10628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_CFLAGS" >&5
10629 $as_echo_n "checking GCONF_CFLAGS... " >&6; }
10630 GCONF_CFLAGS
=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
10631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_CFLAGS" >&5
10632 $as_echo "$GCONF_CFLAGS" >&6; }
10634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_LIBS" >&5
10635 $as_echo_n "checking GCONF_LIBS... " >&6; }
10636 GCONF_LIBS
=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
10637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_LIBS" >&5
10638 $as_echo "$GCONF_LIBS" >&6; }
10640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10641 $as_echo "no" >&6; }
10644 ## If we have a custom action on failure, don't print errors, but
10645 ## do set a variable so people can do so.
10646 GCONF_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.13"`
10653 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10654 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10658 if test $succeeded = yes; then
10664 if test "$HAVE_GCONF" = yes; then
10666 $as_echo "#define HAVE_GCONF 1" >>confdefs.h
10668 for ac_func
in g_type_init
10670 ac_fn_c_check_func
"$LINENO" "g_type_init" "ac_cv_func_g_type_init"
10671 if test "x$ac_cv_func_g_type_init" = x
""yes; then :
10672 cat >>confdefs.h
<<_ACEOF
10673 #define HAVE_G_TYPE_INIT 1
10684 if test "${with_selinux}" = "yes"; then
10685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgetfilecon in -lselinux" >&5
10686 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
10687 if test "${ac_cv_lib_selinux_lgetfilecon+set}" = set; then :
10688 $as_echo_n "(cached) " >&6
10690 ac_check_lib_save_LIBS
=$LIBS
10691 LIBS
="-lselinux $LIBS"
10692 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10693 /* end confdefs.h. */
10695 /* Override any GCC internal prototype to avoid an error.
10696 Use char because int might match the return type of a GCC
10697 builtin and then its argument prototype would still apply. */
10701 char lgetfilecon ();
10705 return lgetfilecon ();
10710 if ac_fn_c_try_link
"$LINENO"; then :
10711 ac_cv_lib_selinux_lgetfilecon
=yes
10713 ac_cv_lib_selinux_lgetfilecon
=no
10715 rm -f core conftest.err conftest.
$ac_objext \
10716 conftest
$ac_exeext conftest.
$ac_ext
10717 LIBS
=$ac_check_lib_save_LIBS
10719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_lgetfilecon" >&5
10720 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
10721 if test "x$ac_cv_lib_selinux_lgetfilecon" = x
""yes; then :
10722 HAVE_LIBSELINUX
=yes
10727 if test "$HAVE_LIBSELINUX" = yes; then
10729 $as_echo "#define HAVE_LIBSELINUX 1" >>confdefs.h
10731 LIBSELINUX_LIBS
=-lselinux
10737 if test "${with_gnutls}" = "yes" ; then
10741 # Extract the first word of "pkg-config", so it can be a program name with args.
10742 set dummy pkg-config
; ac_word
=$2
10743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10744 $as_echo_n "checking for $ac_word... " >&6; }
10745 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10746 $as_echo_n "(cached) " >&6
10748 case $PKG_CONFIG in
10750 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
10753 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10754 for as_dir
in $PATH
10757 test -z "$as_dir" && as_dir
=.
10758 for ac_exec_ext
in '' $ac_executable_extensions; do
10759 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10760 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
10761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10768 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
10772 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
10773 if test -n "$PKG_CONFIG"; then
10774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10775 $as_echo "$PKG_CONFIG" >&6; }
10777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10778 $as_echo "no" >&6; }
10783 if test "$PKG_CONFIG" = "no" ; then
10786 PKG_CONFIG_MIN_VERSION
=0.9.0
10787 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls >= 2.2.4" >&5
10789 $as_echo_n "checking for gnutls >= 2.2.4... " >&6; }
10791 if $PKG_CONFIG --exists "gnutls >= 2.2.4" 2>&5; then
10792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10793 $as_echo "yes" >&6; }
10796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGNUTLS_CFLAGS" >&5
10797 $as_echo_n "checking LIBGNUTLS_CFLAGS... " >&6; }
10798 LIBGNUTLS_CFLAGS
=`$PKG_CONFIG --cflags "gnutls >= 2.2.4"|sed -e 's,///*,/,g'`
10799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLS_CFLAGS" >&5
10800 $as_echo "$LIBGNUTLS_CFLAGS" >&6; }
10802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGNUTLS_LIBS" >&5
10803 $as_echo_n "checking LIBGNUTLS_LIBS... " >&6; }
10804 LIBGNUTLS_LIBS
=`$PKG_CONFIG --libs "gnutls >= 2.2.4"|sed -e 's,///*,/,g'`
10805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLS_LIBS" >&5
10806 $as_echo "$LIBGNUTLS_LIBS" >&6; }
10808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10809 $as_echo "no" >&6; }
10810 LIBGNUTLS_CFLAGS
=""
10812 ## If we have a custom action on failure, don't print errors, but
10813 ## do set a variable so people can do so.
10814 LIBGNUTLS_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "gnutls >= 2.2.4"`
10821 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10822 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10826 if test $succeeded = yes; then
10832 if test "${HAVE_GNUTLS}" = "yes"; then
10834 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
10843 if test x
"${USE_X_TOOLKIT}" = xmaybe ||
test x
"${USE_X_TOOLKIT}" = xLUCID
; then
10844 if test "$with_xaw3d" != no
; then
10845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
10846 $as_echo_n "checking for xaw3d... " >&6; }
10847 if test "${emacs_cv_xaw3d+set}" = set; then :
10848 $as_echo_n "(cached) " >&6
10850 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10851 /* end confdefs.h. */
10853 #include <X11/Intrinsic.h>
10854 #include <X11/Xaw3d/Simple.h>
10863 if ac_fn_c_try_link
"$LINENO"; then :
10864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XawScrollbarSetThumb in -lXaw3d" >&5
10865 $as_echo_n "checking for XawScrollbarSetThumb in -lXaw3d... " >&6; }
10866 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then :
10867 $as_echo_n "(cached) " >&6
10869 ac_check_lib_save_LIBS
=$LIBS
10870 LIBS
="-lXaw3d $LIBS"
10871 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10872 /* end confdefs.h. */
10874 /* Override any GCC internal prototype to avoid an error.
10875 Use char because int might match the return type of a GCC
10876 builtin and then its argument prototype would still apply. */
10880 char XawScrollbarSetThumb ();
10884 return XawScrollbarSetThumb ();
10889 if ac_fn_c_try_link
"$LINENO"; then :
10890 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=yes
10892 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=no
10894 rm -f core conftest.err conftest.
$ac_objext \
10895 conftest
$ac_exeext conftest.
$ac_ext
10896 LIBS
=$ac_check_lib_save_LIBS
10898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
10899 $as_echo "$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6; }
10900 if test "x$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" = x
""yes; then :
10909 rm -f core conftest.err conftest.
$ac_objext \
10910 conftest
$ac_exeext conftest.
$ac_ext
10916 if test $emacs_cv_xaw3d = yes; then
10917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
10918 $as_echo "yes; using Lucid toolkit" >&6; }
10919 USE_X_TOOLKIT
=LUCID
10923 $as_echo "#define HAVE_XAW3D 1" >>confdefs.h
10926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10927 $as_echo "no" >&6; }
10928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXaw" >&5
10929 $as_echo_n "checking for libXaw... " >&6; }
10930 if test "${emacs_cv_xaw+set}" = set; then :
10931 $as_echo_n "(cached) " >&6
10933 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10934 /* end confdefs.h. */
10936 #include <X11/Intrinsic.h>
10937 #include <X11/Xaw/Simple.h>
10946 if ac_fn_c_try_link
"$LINENO"; then :
10951 rm -f core conftest.err conftest.
$ac_objext \
10952 conftest
$ac_exeext conftest.
$ac_ext
10955 if test $emacs_cv_xaw = yes; then
10956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
10957 $as_echo "yes; using Lucid toolkit" >&6; }
10958 USE_X_TOOLKIT
=LUCID
10960 elif test x
"${USE_X_TOOLKIT}" = xLUCID
; then
10961 as_fn_error $?
"Lucid toolkit requires X11/Xaw include files" "$LINENO" 5
10963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no; do not use toolkit by default" >&5
10964 $as_echo "no; do not use toolkit by default" >&6; }
10970 X_TOOLKIT_TYPE
=$USE_X_TOOLKIT
10973 if test "${USE_X_TOOLKIT}" != "none"; then
10974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 toolkit version" >&5
10975 $as_echo_n "checking X11 toolkit version... " >&6; }
10976 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then :
10977 $as_echo_n "(cached) " >&6
10979 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10980 /* end confdefs.h. */
10981 #include <X11/Intrinsic.h>
10985 #if XtSpecificationRelease < 6
10993 if ac_fn_c_try_link
"$LINENO"; then :
10994 emacs_cv_x11_toolkit_version_6
=yes
10996 emacs_cv_x11_toolkit_version_6
=no
10998 rm -f core conftest.err conftest.
$ac_objext \
10999 conftest
$ac_exeext conftest.
$ac_ext
11002 HAVE_X11XTR6
=$emacs_cv_x11_toolkit_version_6
11003 if test $emacs_cv_x11_toolkit_version_6 = yes; then
11004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
11005 $as_echo "6 or newer" >&6; }
11007 $as_echo "#define HAVE_X11XTR6 1" >>confdefs.h
11009 LIBXTR6
="-lSM -lICE"
11011 ## Use libw.a along with X11R6 Xt.
11012 unixware
) LIBXTR6
="$LIBXTR6 -lw" ;;
11015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
11016 $as_echo "before 6" >&6; }
11020 if test x
$HAVE_X11XTR6 = xyes
; then
11021 LIBS
="-lXt -lSM -lICE $LIBS"
11025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuConvertStandardSelection in -lXmu" >&5
11026 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
11027 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then :
11028 $as_echo_n "(cached) " >&6
11030 ac_check_lib_save_LIBS
=$LIBS
11032 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11033 /* end confdefs.h. */
11035 /* Override any GCC internal prototype to avoid an error.
11036 Use char because int might match the return type of a GCC
11037 builtin and then its argument prototype would still apply. */
11041 char XmuConvertStandardSelection ();
11045 return XmuConvertStandardSelection ();
11050 if ac_fn_c_try_link
"$LINENO"; then :
11051 ac_cv_lib_Xmu_XmuConvertStandardSelection
=yes
11053 ac_cv_lib_Xmu_XmuConvertStandardSelection
=no
11055 rm -f core conftest.err conftest.
$ac_objext \
11056 conftest
$ac_exeext conftest.
$ac_ext
11057 LIBS
=$ac_check_lib_save_LIBS
11059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
11060 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
11061 if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = x
""yes; then :
11062 cat >>confdefs.h
<<_ACEOF
11063 #define HAVE_LIBXMU 1
11070 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no
&& LIBS
="$OLDLIBS"
11076 ## These systems don't supply Xmu.
11078 test "X$ac_cv_lib_Xmu_XmuConvertStandardSelection" != "Xyes" && LIBXMU
=
11083 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
11084 if test "${HAVE_X11}" = "yes"; then
11085 if test "${USE_X_TOOLKIT}" != "none"; then
11086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
11087 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
11088 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then :
11089 $as_echo_n "(cached) " >&6
11091 ac_check_lib_save_LIBS
=$LIBS
11092 LIBS
="-lXext $LIBS"
11093 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11094 /* end confdefs.h. */
11096 /* Override any GCC internal prototype to avoid an error.
11097 Use char because int might match the return type of a GCC
11098 builtin and then its argument prototype would still apply. */
11102 char XShapeQueryExtension ();
11106 return XShapeQueryExtension ();
11111 if ac_fn_c_try_link
"$LINENO"; then :
11112 ac_cv_lib_Xext_XShapeQueryExtension
=yes
11114 ac_cv_lib_Xext_XShapeQueryExtension
=no
11116 rm -f core conftest.err conftest.
$ac_objext \
11117 conftest
$ac_exeext conftest.
$ac_ext
11118 LIBS
=$ac_check_lib_save_LIBS
11120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
11121 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
11122 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x
""yes; then :
11123 cat >>confdefs.h
<<_ACEOF
11124 #define HAVE_LIBXEXT 1
11127 LIBS
="-lXext $LIBS"
11135 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Motif version 2.1" >&5
11137 $as_echo_n "checking for Motif version 2.1... " >&6; }
11138 if test "${emacs_cv_motif_version_2_1+set}" = set; then :
11139 $as_echo_n "(cached) " >&6
11141 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11142 /* end confdefs.h. */
11147 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
11150 Motif version prior to 2.1.
11156 if ac_fn_c_try_compile
"$LINENO"; then :
11157 emacs_cv_motif_version_2_1
=yes
11159 emacs_cv_motif_version_2_1
=no
11161 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_motif_version_2_1" >&5
11164 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
11165 if test $emacs_cv_motif_version_2_1 = yes; then
11166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpCreateContext in -lXp" >&5
11167 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
11168 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then :
11169 $as_echo_n "(cached) " >&6
11171 ac_check_lib_save_LIBS
=$LIBS
11173 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11174 /* end confdefs.h. */
11176 /* Override any GCC internal prototype to avoid an error.
11177 Use char because int might match the return type of a GCC
11178 builtin and then its argument prototype would still apply. */
11182 char XpCreateContext ();
11186 return XpCreateContext ();
11191 if ac_fn_c_try_link
"$LINENO"; then :
11192 ac_cv_lib_Xp_XpCreateContext
=yes
11194 ac_cv_lib_Xp_XpCreateContext
=no
11196 rm -f core conftest.err conftest.
$ac_objext \
11197 conftest
$ac_exeext conftest.
$ac_ext
11198 LIBS
=$ac_check_lib_save_LIBS
11200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpCreateContext" >&5
11201 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
11202 if test "x$ac_cv_lib_Xp_XpCreateContext" = x
""yes; then :
11207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LessTif where some systems put it" >&5
11208 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
11209 if test "${emacs_cv_lesstif+set}" = set; then :
11210 $as_echo_n "(cached) " >&6
11212 # We put this in CFLAGS temporarily to precede other -I options
11213 # that might be in CFLAGS temporarily.
11214 # We put this in CPPFLAGS where it precedes the other -I options.
11215 OLD_CPPFLAGS
=$CPPFLAGS
11217 CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
11218 CFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
11219 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11220 /* end confdefs.h. */
11221 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
11230 if ac_fn_c_try_compile
"$LINENO"; then :
11231 emacs_cv_lesstif
=yes
11233 emacs_cv_lesstif
=no
11235 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_lesstif" >&5
11238 $as_echo "$emacs_cv_lesstif" >&6; }
11239 if test $emacs_cv_lesstif = yes; then
11240 # Make sure this -I option remains in CPPFLAGS after it is set
11241 # back to REAL_CPPFLAGS.
11242 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
11243 # have those other -I options anyway. Ultimately, having this
11244 # directory ultimately in CPPFLAGS will be enough.
11245 REAL_CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
11246 LDFLAGS
="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
11249 CPPFLAGS
=$OLD_CPPFLAGS
11255 USE_TOOLKIT_SCROLL_BARS
=no
11256 if test "${with_toolkit_scroll_bars}" != "no"; then
11257 if test "${USE_X_TOOLKIT}" != "none"; then
11258 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11259 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11262 USE_TOOLKIT_SCROLL_BARS
=yes
11263 elif test "${HAVE_XAW3D}" = "yes"; then
11264 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11266 USE_TOOLKIT_SCROLL_BARS
=yes
11268 elif test "${HAVE_GTK}" = "yes"; then
11269 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11271 USE_TOOLKIT_SCROLL_BARS
=yes
11272 elif test "${HAVE_NS}" = "yes"; then
11273 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11275 USE_TOOLKIT_SCROLL_BARS
=yes
11279 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11280 /* end confdefs.h. */
11282 #include <X11/Xlib.h>
11283 #include <X11/Xresource.h>
11292 if ac_fn_c_try_compile
"$LINENO"; then :
11295 $as_echo "#define HAVE_XIM 1" >>confdefs.h
11300 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11303 if test "${with_xim}" != "no"; then
11305 $as_echo "#define USE_XIM 1" >>confdefs.h
11310 if test "${HAVE_XIM}" != "no"; then
11311 late_CFLAGS
=$CFLAGS
11312 if test "$GCC" = yes; then
11313 CFLAGS
="$CFLAGS --pedantic-errors"
11315 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11316 /* end confdefs.h. */
11318 #include <X11/Xlib.h>
11319 #include <X11/Xresource.h>
11328 XPointer *client_data;
11330 /* If we're not using GCC, it's probably not XFree86, and this is
11331 probably right, but we can't use something like --pedantic-errors. */
11332 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
11333 char*, XIMProc, XPointer*);
11335 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
11341 if ac_fn_c_try_compile
"$LINENO"; then :
11342 emacs_cv_arg6_star
=yes
11344 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11345 if test "$emacs_cv_arg6_star" = yes; then
11346 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer*" >>confdefs.h
11349 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer" >>confdefs.h
11352 CFLAGS
=$late_CFLAGS
11355 ### Start of font-backend (under any platform) section.
11356 # (nothing here yet -- this is a placeholder)
11357 ### End of font-backend (under any platform) section.
11359 ### Start of font-backend (under X11) section.
11360 if test "${HAVE_X11}" = "yes"; then
11364 # Extract the first word of "pkg-config", so it can be a program name with args.
11365 set dummy pkg-config
; ac_word
=$2
11366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11367 $as_echo_n "checking for $ac_word... " >&6; }
11368 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11369 $as_echo_n "(cached) " >&6
11371 case $PKG_CONFIG in
11373 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11376 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11377 for as_dir
in $PATH
11380 test -z "$as_dir" && as_dir
=.
11381 for ac_exec_ext
in '' $ac_executable_extensions; do
11382 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11383 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11384 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11391 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11395 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11396 if test -n "$PKG_CONFIG"; then
11397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11398 $as_echo "$PKG_CONFIG" >&6; }
11400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11401 $as_echo "no" >&6; }
11406 if test "$PKG_CONFIG" = "no" ; then
11409 PKG_CONFIG_MIN_VERSION
=0.9.0
11410 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.2.0" >&5
11412 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
11414 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5; then
11415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11416 $as_echo "yes" >&6; }
11419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_CFLAGS" >&5
11420 $as_echo_n "checking FONTCONFIG_CFLAGS... " >&6; }
11421 FONTCONFIG_CFLAGS
=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
11422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_CFLAGS" >&5
11423 $as_echo "$FONTCONFIG_CFLAGS" >&6; }
11425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_LIBS" >&5
11426 $as_echo_n "checking FONTCONFIG_LIBS... " >&6; }
11427 FONTCONFIG_LIBS
=`$PKG_CONFIG --libs "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
11428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_LIBS" >&5
11429 $as_echo "$FONTCONFIG_LIBS" >&6; }
11431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11432 $as_echo "no" >&6; }
11433 FONTCONFIG_CFLAGS
=""
11435 ## If we have a custom action on failure, don't print errors, but
11436 ## do set a variable so people can do so.
11437 FONTCONFIG_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2.0"`
11444 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11445 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11449 if test $succeeded = yes; then
11456 ## Use -lXft if available, unless `--with-xft=no'.
11458 if test "${HAVE_FC}" = "no" ||
test "x${with_x}" = "xno"; then
11461 if test "x${with_xft}" != "xno"; then
11466 # Extract the first word of "pkg-config", so it can be a program name with args.
11467 set dummy pkg-config
; ac_word
=$2
11468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11469 $as_echo_n "checking for $ac_word... " >&6; }
11470 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11471 $as_echo_n "(cached) " >&6
11473 case $PKG_CONFIG in
11475 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11478 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11479 for as_dir
in $PATH
11482 test -z "$as_dir" && as_dir
=.
11483 for ac_exec_ext
in '' $ac_executable_extensions; do
11484 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11485 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11486 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11493 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11497 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11498 if test -n "$PKG_CONFIG"; then
11499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11500 $as_echo "$PKG_CONFIG" >&6; }
11502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11503 $as_echo "no" >&6; }
11508 if test "$PKG_CONFIG" = "no" ; then
11511 PKG_CONFIG_MIN_VERSION
=0.9.0
11512 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xft >= 0.13.0" >&5
11514 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
11516 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
11517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11518 $as_echo "yes" >&6; }
11521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_CFLAGS" >&5
11522 $as_echo_n "checking XFT_CFLAGS... " >&6; }
11523 XFT_CFLAGS
=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
11524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_CFLAGS" >&5
11525 $as_echo "$XFT_CFLAGS" >&6; }
11527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_LIBS" >&5
11528 $as_echo_n "checking XFT_LIBS... " >&6; }
11529 XFT_LIBS
=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
11530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_LIBS" >&5
11531 $as_echo "$XFT_LIBS" >&6; }
11533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11534 $as_echo "no" >&6; }
11537 ## If we have a custom action on failure, don't print errors, but
11538 ## do set a variable so people can do so.
11539 XFT_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
11546 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11547 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11551 if test $succeeded = yes; then
11557 ## Because xftfont.c uses XRenderQueryExtension, we also
11558 ## need to link to -lXrender.
11560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5
11561 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
11562 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then :
11563 $as_echo_n "(cached) " >&6
11565 ac_check_lib_save_LIBS
=$LIBS
11566 LIBS
="-lXrender $LIBS"
11567 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11568 /* end confdefs.h. */
11570 /* Override any GCC internal prototype to avoid an error.
11571 Use char because int might match the return type of a GCC
11572 builtin and then its argument prototype would still apply. */
11576 char XRenderQueryExtension ();
11580 return XRenderQueryExtension ();
11585 if ac_fn_c_try_link
"$LINENO"; then :
11586 ac_cv_lib_Xrender_XRenderQueryExtension
=yes
11588 ac_cv_lib_Xrender_XRenderQueryExtension
=no
11590 rm -f core conftest.err conftest.
$ac_objext \
11591 conftest
$ac_exeext conftest.
$ac_ext
11592 LIBS
=$ac_check_lib_save_LIBS
11594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
11595 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
11596 if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = x
""yes; then :
11600 if test "$HAVE_XFT" != no
&& test "$HAVE_XRENDER" != no
; then
11601 OLD_CPPFLAGS
="$CPPFLAGS"
11602 OLD_CFLAGS
="$CFLAGS"
11604 CPPFLAGS
="$CPPFLAGS $XFT_CFLAGS"
11605 CFLAGS
="$CFLAGS $XFT_CFLAGS"
11606 XFT_LIBS
="-lXrender $XFT_LIBS"
11607 LIBS
="$XFT_LIBS $LIBS"
11608 ac_fn_c_check_header_mongrel
"$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default"
11609 if test "x$ac_cv_header_X11_Xft_Xft_h" = x
""yes; then :
11610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5
11611 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
11612 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then :
11613 $as_echo_n "(cached) " >&6
11615 ac_check_lib_save_LIBS
=$LIBS
11616 LIBS
="-lXft $XFT_LIBS $LIBS"
11617 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11618 /* end confdefs.h. */
11620 /* Override any GCC internal prototype to avoid an error.
11621 Use char because int might match the return type of a GCC
11622 builtin and then its argument prototype would still apply. */
11626 char XftFontOpen ();
11630 return XftFontOpen ();
11635 if ac_fn_c_try_link
"$LINENO"; then :
11636 ac_cv_lib_Xft_XftFontOpen
=yes
11638 ac_cv_lib_Xft_XftFontOpen
=no
11640 rm -f core conftest.err conftest.
$ac_objext \
11641 conftest
$ac_exeext conftest.
$ac_ext
11642 LIBS
=$ac_check_lib_save_LIBS
11644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftFontOpen" >&5
11645 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
11646 if test "x$ac_cv_lib_Xft_XftFontOpen" = x
""yes; then :
11654 if test "${HAVE_XFT}" = "yes"; then
11656 $as_echo "#define HAVE_XFT 1" >>confdefs.h
11659 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $XFT_CFLAGS"
11661 CPPFLAGS
="$OLD_CPPFLAGS"
11662 CFLAGS
="$OLD_CFLAGS"
11664 fi # "${HAVE_XFT}" = "yes"
11665 fi # "$HAVE_XFT" != no
11666 fi # "x${with_xft}" != "xno"
11668 if test "$HAVE_XFT" != "yes"; then
11672 ## We used to allow building with FreeType and without Xft.
11673 ## However, the ftx font backend driver is not in good shape.
11674 HAVE_FREETYPE
=$HAVE_XFT
11677 if test "${HAVE_FREETYPE}" = "yes"; then
11679 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
11681 if test "${with_libotf}" != "no"; then
11685 # Extract the first word of "pkg-config", so it can be a program name with args.
11686 set dummy pkg-config
; ac_word
=$2
11687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11688 $as_echo_n "checking for $ac_word... " >&6; }
11689 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11690 $as_echo_n "(cached) " >&6
11692 case $PKG_CONFIG in
11694 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11697 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11698 for as_dir
in $PATH
11701 test -z "$as_dir" && as_dir
=.
11702 for ac_exec_ext
in '' $ac_executable_extensions; do
11703 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11704 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11712 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11716 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11717 if test -n "$PKG_CONFIG"; then
11718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11719 $as_echo "$PKG_CONFIG" >&6; }
11721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11722 $as_echo "no" >&6; }
11727 if test "$PKG_CONFIG" = "no" ; then
11730 PKG_CONFIG_MIN_VERSION
=0.9.0
11731 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libotf" >&5
11733 $as_echo_n "checking for libotf... " >&6; }
11735 if $PKG_CONFIG --exists "libotf" 2>&5; then
11736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11737 $as_echo "yes" >&6; }
11740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_CFLAGS" >&5
11741 $as_echo_n "checking LIBOTF_CFLAGS... " >&6; }
11742 LIBOTF_CFLAGS
=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
11743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_CFLAGS" >&5
11744 $as_echo "$LIBOTF_CFLAGS" >&6; }
11746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_LIBS" >&5
11747 $as_echo_n "checking LIBOTF_LIBS... " >&6; }
11748 LIBOTF_LIBS
=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
11749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_LIBS" >&5
11750 $as_echo "$LIBOTF_LIBS" >&6; }
11752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11753 $as_echo "no" >&6; }
11756 ## If we have a custom action on failure, don't print errors, but
11757 ## do set a variable so people can do so.
11758 LIBOTF_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
11765 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11766 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11770 if test $succeeded = yes; then
11776 if test "$HAVE_LIBOTF" = "yes"; then
11778 $as_echo "#define HAVE_LIBOTF 1" >>confdefs.h
11780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTF_get_variation_glyphs in -lotf" >&5
11781 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
11782 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then :
11783 $as_echo_n "(cached) " >&6
11785 ac_check_lib_save_LIBS
=$LIBS
11787 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11788 /* end confdefs.h. */
11790 /* Override any GCC internal prototype to avoid an error.
11791 Use char because int might match the return type of a GCC
11792 builtin and then its argument prototype would still apply. */
11796 char OTF_get_variation_glyphs ();
11800 return OTF_get_variation_glyphs ();
11805 if ac_fn_c_try_link
"$LINENO"; then :
11806 ac_cv_lib_otf_OTF_get_variation_glyphs
=yes
11808 ac_cv_lib_otf_OTF_get_variation_glyphs
=no
11810 rm -f core conftest.err conftest.
$ac_objext \
11811 conftest
$ac_exeext conftest.
$ac_ext
11812 LIBS
=$ac_check_lib_save_LIBS
11814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
11815 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
11816 if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = x
""yes; then :
11817 HAVE_OTF_GET_VARIATION_GLYPHS
=yes
11819 HAVE_OTF_GET_VARIATION_GLYPHS
=no
11822 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
11824 $as_echo "#define HAVE_OTF_GET_VARIATION_GLYPHS 1" >>confdefs.h
11832 if test "${HAVE_LIBOTF}" = yes; then
11833 if test "${with_m17n_flt}" != "no"; then
11837 # Extract the first word of "pkg-config", so it can be a program name with args.
11838 set dummy pkg-config
; ac_word
=$2
11839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11840 $as_echo_n "checking for $ac_word... " >&6; }
11841 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11842 $as_echo_n "(cached) " >&6
11844 case $PKG_CONFIG in
11846 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11849 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11850 for as_dir
in $PATH
11853 test -z "$as_dir" && as_dir
=.
11854 for ac_exec_ext
in '' $ac_executable_extensions; do
11855 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11856 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11857 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11864 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11868 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11869 if test -n "$PKG_CONFIG"; then
11870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11871 $as_echo "$PKG_CONFIG" >&6; }
11873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11874 $as_echo "no" >&6; }
11879 if test "$PKG_CONFIG" = "no" ; then
11882 PKG_CONFIG_MIN_VERSION
=0.9.0
11883 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m17n-flt" >&5
11885 $as_echo_n "checking for m17n-flt... " >&6; }
11887 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
11888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11889 $as_echo "yes" >&6; }
11892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_CFLAGS" >&5
11893 $as_echo_n "checking M17N_FLT_CFLAGS... " >&6; }
11894 M17N_FLT_CFLAGS
=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
11895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_CFLAGS" >&5
11896 $as_echo "$M17N_FLT_CFLAGS" >&6; }
11898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_LIBS" >&5
11899 $as_echo_n "checking M17N_FLT_LIBS... " >&6; }
11900 M17N_FLT_LIBS
=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
11901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_LIBS" >&5
11902 $as_echo "$M17N_FLT_LIBS" >&6; }
11904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11905 $as_echo "no" >&6; }
11908 ## If we have a custom action on failure, don't print errors, but
11909 ## do set a variable so people can do so.
11910 M17N_FLT_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
11917 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11918 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11922 if test $succeeded = yes; then
11928 if test "$HAVE_M17N_FLT" = "yes"; then
11930 $as_echo "#define HAVE_M17N_FLT 1" >>confdefs.h
11942 ### End of font-backend (under X11) section.
11953 ### Use -lXpm if available, unless `--with-xpm=no'.
11956 if test "${HAVE_X11}" = "yes"; then
11957 if test "${with_xpm}" != "no"; then
11958 ac_fn_c_check_header_mongrel
"$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
11959 if test "x$ac_cv_header_X11_xpm_h" = x
""yes; then :
11960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToPixmap in -lXpm" >&5
11961 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
11962 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then :
11963 $as_echo_n "(cached) " >&6
11965 ac_check_lib_save_LIBS
=$LIBS
11966 LIBS
="-lXpm -lX11 $LIBS"
11967 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11968 /* end confdefs.h. */
11970 /* Override any GCC internal prototype to avoid an error.
11971 Use char because int might match the return type of a GCC
11972 builtin and then its argument prototype would still apply. */
11976 char XpmReadFileToPixmap ();
11980 return XpmReadFileToPixmap ();
11985 if ac_fn_c_try_link
"$LINENO"; then :
11986 ac_cv_lib_Xpm_XpmReadFileToPixmap
=yes
11988 ac_cv_lib_Xpm_XpmReadFileToPixmap
=no
11990 rm -f core conftest.err conftest.
$ac_objext \
11991 conftest
$ac_exeext conftest.
$ac_ext
11992 LIBS
=$ac_check_lib_save_LIBS
11994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
11995 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
11996 if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = x
""yes; then :
12003 if test "${HAVE_XPM}" = "yes"; then
12004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
12005 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
12006 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12007 /* end confdefs.h. */
12008 #include "X11/xpm.h"
12009 #ifndef XpmReturnAllocPixels
12010 no_return_alloc_pixels
12014 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12015 $EGREP "no_return_alloc_pixels" >/dev
/null
2>&1; then :
12023 if test "${HAVE_XPM}" = "yes"; then
12024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12025 $as_echo "yes" >&6; }
12027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12028 $as_echo "no" >&6; }
12033 if test "${HAVE_XPM}" = "yes"; then
12035 $as_echo "#define HAVE_XPM 1" >>confdefs.h
12042 ### Use -ljpeg if available, unless `--with-jpeg=no'.
12045 if test "${HAVE_X11}" = "yes"; then
12046 if test "${with_jpeg}" != "no"; then
12047 ac_fn_c_check_header_mongrel
"$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
12048 if test "x$ac_cv_header_jerror_h" = x
""yes; then :
12049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_compress in -ljpeg" >&5
12050 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
12051 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then :
12052 $as_echo_n "(cached) " >&6
12054 ac_check_lib_save_LIBS
=$LIBS
12055 LIBS
="-ljpeg $LIBS"
12056 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12057 /* end confdefs.h. */
12059 /* Override any GCC internal prototype to avoid an error.
12060 Use char because int might match the return type of a GCC
12061 builtin and then its argument prototype would still apply. */
12065 char jpeg_destroy_compress ();
12069 return jpeg_destroy_compress ();
12074 if ac_fn_c_try_link
"$LINENO"; then :
12075 ac_cv_lib_jpeg_jpeg_destroy_compress
=yes
12077 ac_cv_lib_jpeg_jpeg_destroy_compress
=no
12079 rm -f core conftest.err conftest.
$ac_objext \
12080 conftest
$ac_exeext conftest.
$ac_ext
12081 LIBS
=$ac_check_lib_save_LIBS
12083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
12084 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
12085 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = x
""yes; then :
12094 if test "${HAVE_JPEG}" = "yes"; then
12095 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
12097 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12098 /* end confdefs.h. */
12099 #include <jpeglib.h>
12100 version=JPEG_LIB_VERSION
12103 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12104 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev
/null
2>&1; then :
12105 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
12108 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5
12109 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
12115 if test "${HAVE_JPEG}" = "yes"; then
12121 ### Use -lpng if available, unless `--with-png=no'.
12124 if test "${HAVE_X11}" = "yes"; then
12125 if test "${with_png}" != "no"; then
12126 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
12127 # in /usr/include/libpng.
12128 for ac_header
in png.h libpng
/png.h
12130 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12131 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12132 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
12133 cat >>confdefs.h
<<_ACEOF
12134 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12141 if test "$ac_cv_header_png_h" = yes ||
test "$ac_cv_header_libpng_png_h" = yes ; then
12142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_channels in -lpng" >&5
12143 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
12144 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then :
12145 $as_echo_n "(cached) " >&6
12147 ac_check_lib_save_LIBS
=$LIBS
12148 LIBS
="-lpng -lz -lm $LIBS"
12149 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12150 /* end confdefs.h. */
12152 /* Override any GCC internal prototype to avoid an error.
12153 Use char because int might match the return type of a GCC
12154 builtin and then its argument prototype would still apply. */
12158 char png_get_channels ();
12162 return png_get_channels ();
12167 if ac_fn_c_try_link
"$LINENO"; then :
12168 ac_cv_lib_png_png_get_channels
=yes
12170 ac_cv_lib_png_png_get_channels
=no
12172 rm -f core conftest.err conftest.
$ac_objext \
12173 conftest
$ac_exeext conftest.
$ac_ext
12174 LIBS
=$ac_check_lib_save_LIBS
12176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_channels" >&5
12177 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
12178 if test "x$ac_cv_lib_png_png_get_channels" = x
""yes; then :
12185 if test "${HAVE_PNG}" = "yes"; then
12187 $as_echo "#define HAVE_PNG 1" >>confdefs.h
12189 LIBPNG
="-lpng -lz -lm"
12194 ### Use -ltiff if available, unless `--with-tiff=no'.
12197 if test "${HAVE_X11}" = "yes"; then
12198 if test "${with_tiff}" != "no"; then
12199 ac_fn_c_check_header_mongrel
"$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
12200 if test "x$ac_cv_header_tiffio_h" = x
""yes; then :
12202 # At least one tiff package requires the jpeg library.
12203 if test "${HAVE_JPEG}" = yes; then tifflibs
="-ljpeg $tifflibs"; fi
12204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFGetVersion in -ltiff" >&5
12205 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
12206 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then :
12207 $as_echo_n "(cached) " >&6
12209 ac_check_lib_save_LIBS
=$LIBS
12210 LIBS
="-ltiff $tifflibs $LIBS"
12211 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12212 /* end confdefs.h. */
12214 /* Override any GCC internal prototype to avoid an error.
12215 Use char because int might match the return type of a GCC
12216 builtin and then its argument prototype would still apply. */
12220 char TIFFGetVersion ();
12224 return TIFFGetVersion ();
12229 if ac_fn_c_try_link
"$LINENO"; then :
12230 ac_cv_lib_tiff_TIFFGetVersion
=yes
12232 ac_cv_lib_tiff_TIFFGetVersion
=no
12234 rm -f core conftest.err conftest.
$ac_objext \
12235 conftest
$ac_exeext conftest.
$ac_ext
12236 LIBS
=$ac_check_lib_save_LIBS
12238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
12239 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
12240 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = x
""yes; then :
12249 if test "${HAVE_TIFF}" = "yes"; then
12251 $as_echo "#define HAVE_TIFF 1" >>confdefs.h
12258 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
12261 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
12262 ac_fn_c_check_header_mongrel
"$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
12263 if test "x$ac_cv_header_gif_lib_h" = x
""yes; then :
12264 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
12265 # Earlier versions can crash Emacs.
12266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lgif" >&5
12267 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
12268 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then :
12269 $as_echo_n "(cached) " >&6
12271 ac_check_lib_save_LIBS
=$LIBS
12273 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12274 /* end confdefs.h. */
12276 /* Override any GCC internal prototype to avoid an error.
12277 Use char because int might match the return type of a GCC
12278 builtin and then its argument prototype would still apply. */
12282 char EGifPutExtensionLast ();
12286 return EGifPutExtensionLast ();
12291 if ac_fn_c_try_link
"$LINENO"; then :
12292 ac_cv_lib_gif_EGifPutExtensionLast
=yes
12294 ac_cv_lib_gif_EGifPutExtensionLast
=no
12296 rm -f core conftest.err conftest.
$ac_objext \
12297 conftest
$ac_exeext conftest.
$ac_ext
12298 LIBS
=$ac_check_lib_save_LIBS
12300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
12301 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
12302 if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = x
""yes; then :
12312 if test "$HAVE_GIF" = yes; then
12314 elif test "$HAVE_GIF" = maybe
; then
12315 # If gif_lib.h but no libgif, try libungif.
12316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lungif" >&5
12317 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
12318 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then :
12319 $as_echo_n "(cached) " >&6
12321 ac_check_lib_save_LIBS
=$LIBS
12322 LIBS
="-lungif $LIBS"
12323 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12324 /* end confdefs.h. */
12326 /* Override any GCC internal prototype to avoid an error.
12327 Use char because int might match the return type of a GCC
12328 builtin and then its argument prototype would still apply. */
12332 char EGifPutExtensionLast ();
12336 return EGifPutExtensionLast ();
12341 if ac_fn_c_try_link
"$LINENO"; then :
12342 ac_cv_lib_ungif_EGifPutExtensionLast
=yes
12344 ac_cv_lib_ungif_EGifPutExtensionLast
=no
12346 rm -f core conftest.err conftest.
$ac_objext \
12347 conftest
$ac_exeext conftest.
$ac_ext
12348 LIBS
=$ac_check_lib_save_LIBS
12350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
12351 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
12352 if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = x
""yes; then :
12358 test "$HAVE_GIF" = yes && LIBGIF
=-lungif
12361 if test "${HAVE_GIF}" = "yes"; then
12363 $as_echo "#define HAVE_GIF 1" >>confdefs.h
12369 if test "${HAVE_X11}" = "yes"; then
12372 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
12373 MISSING
="libXpm" && WITH_NO
="--with-xpm=no"
12374 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
12375 MISSING
="$MISSING libjpeg" && WITH_NO
="$WITH_NO --with-jpeg=no"
12376 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
12377 MISSING
="$MISSING libpng" && WITH_NO
="$WITH_NO --with-png=no"
12378 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
12379 MISSING
="$MISSING libgif/libungif" && WITH_NO
="$WITH_NO --with-gif=no"
12380 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
12381 MISSING
="$MISSING libtiff" && WITH_NO
="$WITH_NO --with-tiff=no"
12383 if test "X${MISSING}" != X
; then
12384 as_fn_error $?
"The following required libraries were not found:
12386 Maybe some development libraries/packages are missing?
12387 If you don't want to link with them give
12389 as options to configure" "$LINENO" 5
12393 ### Use -lgpm if available, unless `--with-gpm=no'.
12397 if test "${with_gpm}" != "no"; then
12398 ac_fn_c_check_header_mongrel
"$LINENO" "gpm.h" "ac_cv_header_gpm_h" "$ac_includes_default"
12399 if test "x$ac_cv_header_gpm_h" = x
""yes; then :
12400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5
12401 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
12402 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then :
12403 $as_echo_n "(cached) " >&6
12405 ac_check_lib_save_LIBS
=$LIBS
12407 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12408 /* end confdefs.h. */
12410 /* Override any GCC internal prototype to avoid an error.
12411 Use char because int might match the return type of a GCC
12412 builtin and then its argument prototype would still apply. */
12420 return Gpm_Open ();
12425 if ac_fn_c_try_link
"$LINENO"; then :
12426 ac_cv_lib_gpm_Gpm_Open
=yes
12428 ac_cv_lib_gpm_Gpm_Open
=no
12430 rm -f core conftest.err conftest.
$ac_objext \
12431 conftest
$ac_exeext conftest.
$ac_ext
12432 LIBS
=$ac_check_lib_save_LIBS
12434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Open" >&5
12435 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
12436 if test "x$ac_cv_lib_gpm_Gpm_Open" = x
""yes; then :
12444 if test "${HAVE_GPM}" = "yes"; then
12446 $as_echo "#define HAVE_GPM 1" >>confdefs.h
12449 ## May be reset below.
12450 MOUSE_SUPPORT
="\$(GPM_MOUSE_SUPPORT)"
12455 ac_fn_c_check_header_mongrel
"$LINENO" "malloc/malloc.h" "ac_cv_header_malloc_malloc_h" "$ac_includes_default"
12456 if test "x$ac_cv_header_malloc_malloc_h" = x
""yes; then :
12458 $as_echo "#define HAVE_MALLOC_MALLOC_H 1" >>confdefs.h
12465 ### Use NeXTstep API to implement GUI.
12466 if test "${HAVE_NS}" = "yes"; then
12468 $as_echo "#define HAVE_NS 1" >>confdefs.h
12470 if test "${NS_IMPL_COCOA}" = "yes"; then
12472 $as_echo "#define NS_IMPL_COCOA 1" >>confdefs.h
12476 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
12478 $as_echo "#define NS_IMPL_GNUSTEP 1" >>confdefs.h
12480 # See also .m.o rule in Makefile.in */
12481 # FIXME: are all these flags really needed? Document here why. */
12482 C_SWITCH_X_SYSTEM
="-D_REENTRANT -fPIC -fno-strict-aliasing"
12483 GNU_OBJC_CFLAGS
="-fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE"
12485 if test "${NS_HAVE_NSINTEGER}" = "yes"; then
12487 $as_echo "#define NS_HAVE_NSINTEGER 1" >>confdefs.h
12490 # We also have mouse menus.
12496 ### Use session management (-lSM -lICE) if available
12499 if test "${HAVE_X11}" = "yes"; then
12500 ac_fn_c_check_header_mongrel
"$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
12501 if test "x$ac_cv_header_X11_SM_SMlib_h" = x
""yes; then :
12502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5
12503 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
12504 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then :
12505 $as_echo_n "(cached) " >&6
12507 ac_check_lib_save_LIBS
=$LIBS
12508 LIBS
="-lSM -lICE $LIBS"
12509 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12510 /* end confdefs.h. */
12512 /* Override any GCC internal prototype to avoid an error.
12513 Use char because int might match the return type of a GCC
12514 builtin and then its argument prototype would still apply. */
12518 char SmcOpenConnection ();
12522 return SmcOpenConnection ();
12527 if ac_fn_c_try_link
"$LINENO"; then :
12528 ac_cv_lib_SM_SmcOpenConnection
=yes
12530 ac_cv_lib_SM_SmcOpenConnection
=no
12532 rm -f core conftest.err conftest.
$ac_objext \
12533 conftest
$ac_exeext conftest.
$ac_ext
12534 LIBS
=$ac_check_lib_save_LIBS
12536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
12537 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
12538 if test "x$ac_cv_lib_SM_SmcOpenConnection" = x
""yes; then :
12546 if test "${HAVE_X_SM}" = "yes"; then
12548 $as_echo "#define HAVE_X_SM 1" >>confdefs.h
12550 LIBXSM
="-lSM -lICE"
12553 *) LIBS
="$LIBXSM $LIBS" ;;
12559 ### Use libxml (-lxml2) if available
12560 if test "${with_xml2}" != "no"; then
12561 ### I'm not sure what the version number should be, so I just guessed.
12565 # Extract the first word of "pkg-config", so it can be a program name with args.
12566 set dummy pkg-config
; ac_word
=$2
12567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12568 $as_echo_n "checking for $ac_word... " >&6; }
12569 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
12570 $as_echo_n "(cached) " >&6
12572 case $PKG_CONFIG in
12574 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
12577 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12578 for as_dir
in $PATH
12581 test -z "$as_dir" && as_dir
=.
12582 for ac_exec_ext
in '' $ac_executable_extensions; do
12583 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12584 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
12585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12592 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
12596 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
12597 if test -n "$PKG_CONFIG"; then
12598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12599 $as_echo "$PKG_CONFIG" >&6; }
12601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12602 $as_echo "no" >&6; }
12607 if test "$PKG_CONFIG" = "no" ; then
12610 PKG_CONFIG_MIN_VERSION
=0.9.0
12611 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 > 2.6.17" >&5
12613 $as_echo_n "checking for libxml-2.0 > 2.6.17... " >&6; }
12615 if $PKG_CONFIG --exists "libxml-2.0 > 2.6.17" 2>&5; then
12616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12617 $as_echo "yes" >&6; }
12620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBXML2_CFLAGS" >&5
12621 $as_echo_n "checking LIBXML2_CFLAGS... " >&6; }
12622 LIBXML2_CFLAGS
=`$PKG_CONFIG --cflags "libxml-2.0 > 2.6.17"|sed -e 's,///*,/,g'`
12623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXML2_CFLAGS" >&5
12624 $as_echo "$LIBXML2_CFLAGS" >&6; }
12626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBXML2_LIBS" >&5
12627 $as_echo_n "checking LIBXML2_LIBS... " >&6; }
12628 LIBXML2_LIBS
=`$PKG_CONFIG --libs "libxml-2.0 > 2.6.17"|sed -e 's,///*,/,g'`
12629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXML2_LIBS" >&5
12630 $as_echo "$LIBXML2_LIBS" >&6; }
12632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12633 $as_echo "no" >&6; }
12636 ## If we have a custom action on failure, don't print errors, but
12637 ## do set a variable so people can do so.
12638 LIBXML2_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "libxml-2.0 > 2.6.17"`
12645 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12646 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12650 if test $succeeded = yes; then
12656 if test "${HAVE_LIBXML2}" = "yes"; then
12657 LIBS
="$LIBXML2_LIBS $LIBS"
12658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htmlReadMemory in -lxml2" >&5
12659 $as_echo_n "checking for htmlReadMemory in -lxml2... " >&6; }
12660 if test "${ac_cv_lib_xml2_htmlReadMemory+set}" = set; then :
12661 $as_echo_n "(cached) " >&6
12663 ac_check_lib_save_LIBS
=$LIBS
12664 LIBS
="-lxml2 $LIBS"
12665 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12666 /* end confdefs.h. */
12668 /* Override any GCC internal prototype to avoid an error.
12669 Use char because int might match the return type of a GCC
12670 builtin and then its argument prototype would still apply. */
12674 char htmlReadMemory ();
12678 return htmlReadMemory ();
12683 if ac_fn_c_try_link
"$LINENO"; then :
12684 ac_cv_lib_xml2_htmlReadMemory
=yes
12686 ac_cv_lib_xml2_htmlReadMemory
=no
12688 rm -f core conftest.err conftest.
$ac_objext \
12689 conftest
$ac_exeext conftest.
$ac_ext
12690 LIBS
=$ac_check_lib_save_LIBS
12692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_htmlReadMemory" >&5
12693 $as_echo "$ac_cv_lib_xml2_htmlReadMemory" >&6; }
12694 if test "x$ac_cv_lib_xml2_htmlReadMemory" = x
""yes; then :
12700 if test "${HAVE_LIBXML2}" = "yes"; then
12702 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
12713 # If netdb.h doesn't declare h_errno, we must declare it by hand.
12714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netdb declares h_errno" >&5
12715 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
12716 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then :
12717 $as_echo_n "(cached) " >&6
12719 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12720 /* end confdefs.h. */
12730 if ac_fn_c_try_link
"$LINENO"; then :
12731 emacs_cv_netdb_declares_h_errno
=yes
12733 emacs_cv_netdb_declares_h_errno
=no
12735 rm -f core conftest.err conftest.
$ac_objext \
12736 conftest
$ac_exeext conftest.
$ac_ext
12738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_netdb_declares_h_errno" >&5
12739 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
12740 if test $emacs_cv_netdb_declares_h_errno = yes; then
12742 $as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h
12746 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
12747 # for constant arguments. Useless!
12748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
12749 $as_echo_n "checking for working alloca.h... " >&6; }
12750 if test "${ac_cv_working_alloca_h+set}" = set; then :
12751 $as_echo_n "(cached) " >&6
12753 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12754 /* end confdefs.h. */
12755 #include <alloca.h>
12759 char *p = (char *) alloca (2 * sizeof (int));
12765 if ac_fn_c_try_link
"$LINENO"; then :
12766 ac_cv_working_alloca_h
=yes
12768 ac_cv_working_alloca_h
=no
12770 rm -f core conftest.err conftest.
$ac_objext \
12771 conftest
$ac_exeext conftest.
$ac_ext
12773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
12774 $as_echo "$ac_cv_working_alloca_h" >&6; }
12775 if test $ac_cv_working_alloca_h = yes; then
12777 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
12781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
12782 $as_echo_n "checking for alloca... " >&6; }
12783 if test "${ac_cv_func_alloca_works+set}" = set; then :
12784 $as_echo_n "(cached) " >&6
12786 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12787 /* end confdefs.h. */
12789 # define alloca __builtin_alloca
12792 # include <malloc.h>
12793 # define alloca _alloca
12795 # ifdef HAVE_ALLOCA_H
12796 # include <alloca.h>
12801 # ifndef alloca /* predefined by HP cc +Olibcalls */
12812 char *p = (char *) alloca (1);
12818 if ac_fn_c_try_link
"$LINENO"; then :
12819 ac_cv_func_alloca_works
=yes
12821 ac_cv_func_alloca_works
=no
12823 rm -f core conftest.err conftest.
$ac_objext \
12824 conftest
$ac_exeext conftest.
$ac_ext
12826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
12827 $as_echo "$ac_cv_func_alloca_works" >&6; }
12829 if test $ac_cv_func_alloca_works = yes; then
12831 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
12834 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
12835 # that cause trouble. Some versions do not even contain alloca or
12836 # contain a buggy version. If you still want to use their alloca,
12837 # use ar to extract alloca.o from them instead of compiling alloca.c.
12839 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
12841 $as_echo "#define C_ALLOCA 1" >>confdefs.h
12844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
12845 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
12846 if test "${ac_cv_os_cray+set}" = set; then :
12847 $as_echo_n "(cached) " >&6
12849 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12850 /* end confdefs.h. */
12851 #if defined CRAY && ! defined CRAY2
12858 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12859 $EGREP "webecray" >/dev
/null
2>&1; then :
12867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
12868 $as_echo "$ac_cv_os_cray" >&6; }
12869 if test $ac_cv_os_cray = yes; then
12870 for ac_func
in _getb67 GETB67 getb67
; do
12871 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12872 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
12873 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
12875 cat >>confdefs.h
<<_ACEOF
12876 #define CRAY_STACKSEG_END $ac_func
12885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
12886 $as_echo_n "checking stack direction for C alloca... " >&6; }
12887 if test "${ac_cv_c_stack_direction+set}" = set; then :
12888 $as_echo_n "(cached) " >&6
12890 if test "$cross_compiling" = yes; then :
12891 ac_cv_c_stack_direction
=0
12893 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12894 /* end confdefs.h. */
12895 $ac_includes_default
12897 find_stack_direction ()
12899 static char *addr = 0;
12904 return find_stack_direction ();
12907 return (&dummy > addr) ? 1 : -1;
12913 return find_stack_direction () < 0;
12916 if ac_fn_c_try_run
"$LINENO"; then :
12917 ac_cv_c_stack_direction
=1
12919 ac_cv_c_stack_direction
=-1
12921 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12922 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
12927 $as_echo "$ac_cv_c_stack_direction" >&6; }
12928 cat >>confdefs.h
<<_ACEOF
12929 #define STACK_DIRECTION $ac_cv_c_stack_direction
12936 if test x
"$ac_cv_func_alloca_works" != xyes
; then
12937 as_fn_error $?
"a system implementation of alloca is required " "$LINENO" 5
12940 # fmod, logb, and frexp are found in -lm on most systems.
12941 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
12942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
12943 $as_echo_n "checking for sqrt in -lm... " >&6; }
12944 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
12945 $as_echo_n "(cached) " >&6
12947 ac_check_lib_save_LIBS
=$LIBS
12949 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12950 /* end confdefs.h. */
12952 /* Override any GCC internal prototype to avoid an error.
12953 Use char because int might match the return type of a GCC
12954 builtin and then its argument prototype would still apply. */
12967 if ac_fn_c_try_link
"$LINENO"; then :
12968 ac_cv_lib_m_sqrt
=yes
12970 ac_cv_lib_m_sqrt
=no
12972 rm -f core conftest.err conftest.
$ac_objext \
12973 conftest
$ac_exeext conftest.
$ac_ext
12974 LIBS
=$ac_check_lib_save_LIBS
12976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
12977 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
12978 if test "x$ac_cv_lib_m_sqrt" = x
""yes; then :
12979 cat >>confdefs.h
<<_ACEOF
12980 #define HAVE_LIBM 1
12988 # Check for mail-locking functions in a "mail" library. Probably this should
12989 # have the same check as for liblockfile below.
12990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -lmail" >&5
12991 $as_echo_n "checking for maillock in -lmail... " >&6; }
12992 if test "${ac_cv_lib_mail_maillock+set}" = set; then :
12993 $as_echo_n "(cached) " >&6
12995 ac_check_lib_save_LIBS
=$LIBS
12996 LIBS
="-lmail $LIBS"
12997 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12998 /* end confdefs.h. */
13000 /* Override any GCC internal prototype to avoid an error.
13001 Use char because int might match the return type of a GCC
13002 builtin and then its argument prototype would still apply. */
13010 return maillock ();
13015 if ac_fn_c_try_link
"$LINENO"; then :
13016 ac_cv_lib_mail_maillock
=yes
13018 ac_cv_lib_mail_maillock
=no
13020 rm -f core conftest.err conftest.
$ac_objext \
13021 conftest
$ac_exeext conftest.
$ac_ext
13022 LIBS
=$ac_check_lib_save_LIBS
13024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mail_maillock" >&5
13025 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
13026 if test "x$ac_cv_lib_mail_maillock" = x
""yes; then :
13032 if test $have_mail = yes; then
13034 LIBS
="$LIBS_MAIL $LIBS"
13036 $as_echo "#define HAVE_LIBMAIL 1" >>confdefs.h
13041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -llockfile" >&5
13042 $as_echo_n "checking for maillock in -llockfile... " >&6; }
13043 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then :
13044 $as_echo_n "(cached) " >&6
13046 ac_check_lib_save_LIBS
=$LIBS
13047 LIBS
="-llockfile $LIBS"
13048 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13049 /* end confdefs.h. */
13051 /* Override any GCC internal prototype to avoid an error.
13052 Use char because int might match the return type of a GCC
13053 builtin and then its argument prototype would still apply. */
13061 return maillock ();
13066 if ac_fn_c_try_link
"$LINENO"; then :
13067 ac_cv_lib_lockfile_maillock
=yes
13069 ac_cv_lib_lockfile_maillock
=no
13071 rm -f core conftest.err conftest.
$ac_objext \
13072 conftest
$ac_exeext conftest.
$ac_ext
13073 LIBS
=$ac_check_lib_save_LIBS
13075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lockfile_maillock" >&5
13076 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
13077 if test "x$ac_cv_lib_lockfile_maillock" = x
""yes; then :
13083 if test $have_lockfile = yes; then
13084 LIBS_MAIL
=-llockfile
13085 LIBS
="$LIBS_MAIL $LIBS"
13087 $as_echo "#define HAVE_LIBLOCKFILE 1" >>confdefs.h
13090 # If we have the shared liblockfile, assume we must use it for mail
13091 # locking (e.g. Debian). If we couldn't link against liblockfile
13092 # (no liblockfile.a installed), ensure that we don't need to.
13093 # Extract the first word of "liblockfile.so", so it can be a program name with args.
13094 set dummy liblockfile.so
; ac_word
=$2
13095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13096 $as_echo_n "checking for $ac_word... " >&6; }
13097 if test "${ac_cv_prog_liblockfile+set}" = set; then :
13098 $as_echo_n "(cached) " >&6
13100 if test -n "$liblockfile"; then
13101 ac_cv_prog_liblockfile
="$liblockfile" # Let the user override the test.
13103 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13104 as_dummy
="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
13105 for as_dir
in $as_dummy
13108 test -z "$as_dir" && as_dir
=.
13109 for ac_exec_ext
in '' $ac_executable_extensions; do
13110 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13111 ac_cv_prog_liblockfile
="yes"
13112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13119 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile
="no"
13122 liblockfile
=$ac_cv_prog_liblockfile
13123 if test -n "$liblockfile"; then
13124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblockfile" >&5
13125 $as_echo "$liblockfile" >&6; }
13127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13128 $as_echo "no" >&6; }
13132 if test $ac_cv_prog_liblockfile = yes; then
13133 as_fn_error $?
"Shared liblockfile found but can't link against it.
13134 This probably means that movemail could lose mail.
13135 There may be a \`development' package to install containing liblockfile." "$LINENO" 5
13138 for ac_func
in touchlock
13140 ac_fn_c_check_func
"$LINENO" "touchlock" "ac_cv_func_touchlock"
13141 if test "x$ac_cv_func_touchlock" = x
""yes; then :
13142 cat >>confdefs.h
<<_ACEOF
13143 #define HAVE_TOUCHLOCK 1
13149 for ac_header
in maillock.h
13151 ac_fn_c_check_header_mongrel
"$LINENO" "maillock.h" "ac_cv_header_maillock_h" "$ac_includes_default"
13152 if test "x$ac_cv_header_maillock_h" = x
""yes; then :
13153 cat >>confdefs.h
<<_ACEOF
13154 #define HAVE_MAILLOCK_H 1
13163 ## Define MAIL_USE_FLOCK (or LOCKF) if the mailer uses flock (or lockf) to
13164 ## interlock access to the mail spool. The alternative is a lock file named
13165 ## /usr/spool/mail/$USER.lock.
13168 aix4-2
) mail_lock
="lockf" ;;
13170 gnu|freebsd|netbsd|openbsd|darwin|irix6-5
) mail_lock
="flock" ;;
13172 ## On GNU/Linux systems, both methods are used by various mail programs.
13173 ## I assume most people are using newer mailers that have heard of flock.
13174 ## Change this if you need to.
13175 ## Debian contains a patch which says: ``On Debian/GNU/Linux systems,
13176 ## configure gets the right answers, and that means *NOT* using flock.
13177 ## Using flock is guaranteed to be the wrong thing. See Debian Policy
13178 ## for details.'' and then uses `#ifdef DEBIAN'. Unfortunately the
13179 ## Debian maintainer hasn't provided a clean fix for Emacs.
13180 ## movemail.c will use `maillock' when MAILDIR, HAVE_LIBMAIL and
13181 ## HAVE_MAILLOCK_H are defined, so the following appears to be the
13182 ## correct logic. -- fx
13183 ## We must check for HAVE_LIBLOCKFILE too, as movemail does.
13184 ## liblockfile is a Free Software replacement for libmail, used on
13185 ## Debian systems and elsewhere. -rfr.
13188 if test $have_mail = yes ||
test $have_lockfile = yes; then
13189 test $ac_cv_header_maillock_h = yes && mail_lock
=no
13195 case "$mail_lock" in
13197 $as_echo "#define MAIL_USE_FLOCK 1" >>confdefs.h
13201 $as_echo "#define MAIL_USE_LOCKF 1" >>confdefs.h
13204 *) BLESSMAIL_TARGET
="need-blessmail" ;;
13209 for ac_func
in gethostname getdomainname dup2 \
13210 rename closedir mkdir
rmdir sysinfo getrusage get_current_dir_name \
13211 random lrand48 logb frexp fmod rint cbrt ftime setsid \
13212 strerror fpathconf
select euidaccess getpagesize tzset setlocale \
13213 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
13214 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm strchr strrchr \
13215 sendto recvfrom getsockopt setsockopt getsockname getpeername \
13216 gai_strerror mkstemp getline getdelim mremap memmove fsync sync \
13217 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \
13218 cfmakeraw cfsetspeed isnan copysign __executable_start
13220 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13221 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
13222 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
13223 cat >>confdefs.h
<<_ACEOF
13224 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_unwind_init" >&5
13232 $as_echo_n "checking for __builtin_unwind_init... " >&6; }
13233 if test "${emacs_cv_func___builtin_unwind_init+set}" = set; then :
13234 $as_echo_n "(cached) " >&6
13236 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13237 /* end confdefs.h. */
13242 __builtin_unwind_init ();
13247 if ac_fn_c_try_link
"$LINENO"; then :
13248 emacs_cv_func___builtin_unwind_init
=yes
13250 emacs_cv_func___builtin_unwind_init
=no
13252 rm -f core conftest.err conftest.
$ac_objext \
13253 conftest
$ac_exeext conftest.
$ac_ext
13255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func___builtin_unwind_init" >&5
13256 $as_echo "$emacs_cv_func___builtin_unwind_init" >&6; }
13257 if test $emacs_cv_func___builtin_unwind_init = yes; then
13259 $as_echo "#define HAVE___BUILTIN_UNWIND_INIT 1" >>confdefs.h
13263 for ac_header
in sys
/un.h
13265 ac_fn_c_check_header_mongrel
"$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default"
13266 if test "x$ac_cv_header_sys_un_h" = x
""yes; then :
13267 cat >>confdefs.h
<<_ACEOF
13268 #define HAVE_SYS_UN_H 1
13276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
13277 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
13278 if test "${ac_cv_sys_largefile_source+set}" = set; then :
13279 $as_echo_n "(cached) " >&6
13282 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13283 /* end confdefs.h. */
13284 #include <sys/types.h> /* for off_t */
13289 int (*fp) (FILE *, off_t, int) = fseeko;
13290 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13295 if ac_fn_c_try_link
"$LINENO"; then :
13296 ac_cv_sys_largefile_source
=no
; break
13298 rm -f core conftest.err conftest.
$ac_objext \
13299 conftest
$ac_exeext conftest.
$ac_ext
13300 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13301 /* end confdefs.h. */
13302 #define _LARGEFILE_SOURCE 1
13303 #include <sys/types.h> /* for off_t */
13308 int (*fp) (FILE *, off_t, int) = fseeko;
13309 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13314 if ac_fn_c_try_link
"$LINENO"; then :
13315 ac_cv_sys_largefile_source
=1; break
13317 rm -f core conftest.err conftest.
$ac_objext \
13318 conftest
$ac_exeext conftest.
$ac_ext
13319 ac_cv_sys_largefile_source
=unknown
13323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
13324 $as_echo "$ac_cv_sys_largefile_source" >&6; }
13325 case $ac_cv_sys_largefile_source in #(
13328 cat >>confdefs.h
<<_ACEOF
13329 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
13335 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
13336 # in glibc 2.1.3, but that breaks too many other things.
13337 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
13338 if test $ac_cv_sys_largefile_source != unknown
; then
13340 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
13345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5
13346 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
13347 if test "${ac_cv_func_getpgrp_void+set}" = set; then :
13348 $as_echo_n "(cached) " >&6
13350 # Use it with a single arg.
13351 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13352 /* end confdefs.h. */
13353 $ac_includes_default
13362 if ac_fn_c_try_compile
"$LINENO"; then :
13363 ac_cv_func_getpgrp_void
=no
13365 ac_cv_func_getpgrp_void
=yes
13367 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5
13371 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
13372 if test $ac_cv_func_getpgrp_void = yes; then
13374 $as_echo "#define GETPGRP_VOID 1" >>confdefs.h
13379 # Configure gnulib.
13390 LIBC_FATAL_STDERR_
=1
13391 export LIBC_FATAL_STDERR_
13394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
13395 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
13396 if test "${ac_cv_c_bigendian+set}" = set; then :
13397 $as_echo_n "(cached) " >&6
13399 ac_cv_c_bigendian
=unknown
13400 # See if we're dealing with a universal compiler.
13401 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13402 /* end confdefs.h. */
13403 #ifndef __APPLE_CC__
13404 not a universal capable compiler
13409 if ac_fn_c_try_compile
"$LINENO"; then :
13411 # Check for potential -arch flags. It is not universal unless
13412 # there are at least two -arch flags with different values.
13415 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
13416 if test -n "$ac_prev"; then
13418 i?
86 | x86_64 | ppc | ppc64
)
13419 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
13422 ac_cv_c_bigendian
=universal
13428 elif test "x$ac_word" = "x-arch"; then
13433 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13434 if test $ac_cv_c_bigendian = unknown
; then
13435 # See if sys/param.h defines the BYTE_ORDER macro.
13436 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13437 /* end confdefs.h. */
13438 #include <sys/types.h>
13439 #include <sys/param.h>
13444 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
13445 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
13447 bogus endian macros
13454 if ac_fn_c_try_compile
"$LINENO"; then :
13455 # It does; now see whether it defined to BIG_ENDIAN or not.
13456 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13457 /* end confdefs.h. */
13458 #include <sys/types.h>
13459 #include <sys/param.h>
13464 #if BYTE_ORDER != BIG_ENDIAN
13472 if ac_fn_c_try_compile
"$LINENO"; then :
13473 ac_cv_c_bigendian
=yes
13475 ac_cv_c_bigendian
=no
13477 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13479 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13481 if test $ac_cv_c_bigendian = unknown
; then
13482 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
13483 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13484 /* end confdefs.h. */
13485 #include <limits.h>
13490 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
13491 bogus endian macros
13498 if ac_fn_c_try_compile
"$LINENO"; then :
13499 # It does; now see whether it defined to _BIG_ENDIAN or not.
13500 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13501 /* end confdefs.h. */
13502 #include <limits.h>
13507 #ifndef _BIG_ENDIAN
13515 if ac_fn_c_try_compile
"$LINENO"; then :
13516 ac_cv_c_bigendian
=yes
13518 ac_cv_c_bigendian
=no
13520 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13522 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13524 if test $ac_cv_c_bigendian = unknown
; then
13525 # Compile a test program.
13526 if test "$cross_compiling" = yes; then :
13527 # Try to guess by grepping values from an object file.
13528 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13529 /* end confdefs.h. */
13530 short int ascii_mm[] =
13531 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
13532 short int ascii_ii[] =
13533 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
13534 int use_ascii (int i) {
13535 return ascii_mm[i] + ascii_ii[i];
13537 short int ebcdic_ii[] =
13538 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
13539 short int ebcdic_mm[] =
13540 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
13541 int use_ebcdic (int i) {
13542 return ebcdic_mm[i] + ebcdic_ii[i];
13549 return use_ascii (foo) == use_ebcdic (foo);
13554 if ac_fn_c_try_compile
"$LINENO"; then :
13555 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
13556 ac_cv_c_bigendian
=yes
13558 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
13559 if test "$ac_cv_c_bigendian" = unknown
; then
13560 ac_cv_c_bigendian
=no
13562 # finding both strings is unlikely to happen, but who knows?
13563 ac_cv_c_bigendian
=unknown
13567 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13569 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13570 /* end confdefs.h. */
13571 $ac_includes_default
13576 /* Are we little or big endian? From Harbison&Steele. */
13580 char c[sizeof (long int)];
13583 return u.c[sizeof (long int) - 1] == 1;
13589 if ac_fn_c_try_run
"$LINENO"; then :
13590 ac_cv_c_bigendian
=no
13592 ac_cv_c_bigendian
=yes
13594 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13595 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
13601 $as_echo "$ac_cv_c_bigendian" >&6; }
13602 case $ac_cv_c_bigendian in #(
13604 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
13610 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
13614 as_fn_error $?
"unknown endianness
13615 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
13619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
13620 $as_echo_n "checking for inline... " >&6; }
13621 if test "${ac_cv_c_inline+set}" = set; then :
13622 $as_echo_n "(cached) " >&6
13625 for ac_kw
in inline __inline__ __inline
; do
13626 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13627 /* end confdefs.h. */
13628 #ifndef __cplusplus
13630 static $ac_kw foo_t static_foo () {return 0; }
13631 $ac_kw foo_t foo () {return 0; }
13635 if ac_fn_c_try_compile
"$LINENO"; then :
13636 ac_cv_c_inline
=$ac_kw
13638 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13639 test "$ac_cv_c_inline" != no
&& break
13643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
13644 $as_echo "$ac_cv_c_inline" >&6; }
13646 case $ac_cv_c_inline in
13649 case $ac_cv_c_inline in
13651 *) ac_val
=$ac_cv_c_inline;;
13653 cat >>confdefs.h
<<_ACEOF
13654 #ifndef __cplusplus
13655 #define inline $ac_val
13662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtold conforms to C99" >&5
13663 $as_echo_n "checking whether strtold conforms to C99... " >&6; }
13664 if test "${gl_cv_func_c99_strtold+set}" = set; then :
13665 $as_echo_n "(cached) " >&6
13667 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13668 /* end confdefs.h. */
13669 /* On HP-UX before 11.23, strtold returns a struct instead of
13670 long double. Reject implementations like that, by requiring
13671 compatibility with the C99 prototype. */
13672 #include <stdlib.h>
13673 static long double (*p) (char const *, char **) = strtold;
13675 test (char const *nptr, char **endptr)
13678 r = strtold (nptr, endptr);
13684 return test ("1.0", NULL) != 1 || p ("1.0", NULL) != 1;
13689 if ac_fn_c_try_link
"$LINENO"; then :
13690 gl_cv_func_c99_strtold
=yes
13692 gl_cv_func_c99_strtold
=no
13694 rm -f core conftest.err conftest.
$ac_objext \
13695 conftest
$ac_exeext conftest.
$ac_ext
13697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_c99_strtold" >&5
13698 $as_echo "$gl_cv_func_c99_strtold" >&6; }
13699 if test $gl_cv_func_c99_strtold = yes; then
13701 $as_echo "#define HAVE_C99_STRTOLD 1" >>confdefs.h
13705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_dm_mode in struct stat" >&5
13706 $as_echo_n "checking for st_dm_mode in struct stat... " >&6; }
13707 if test "${ac_cv_struct_st_dm_mode+set}" = set; then :
13708 $as_echo_n "(cached) " >&6
13710 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13711 /* end confdefs.h. */
13713 #include <sys/types.h>
13714 #include <sys/stat.h>
13718 struct stat s; s.st_dm_mode;
13723 if ac_fn_c_try_compile
"$LINENO"; then :
13724 ac_cv_struct_st_dm_mode
=yes
13726 ac_cv_struct_st_dm_mode
=no
13728 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_st_dm_mode" >&5
13731 $as_echo "$ac_cv_struct_st_dm_mode" >&6; }
13733 if test $ac_cv_struct_st_dm_mode = yes; then
13735 $as_echo "#define HAVE_ST_DM_MODE 1" >>confdefs.h
13740 ac_fn_c_check_decl
"$LINENO" "strmode" "ac_cv_have_decl_strmode" "$ac_includes_default"
13741 if test "x$ac_cv_have_decl_strmode" = x
""yes; then :
13747 cat >>confdefs.h
<<_ACEOF
13748 #define HAVE_DECL_STRMODE $ac_have_decl
13754 GNULIB_CALLOC_POSIX
=0;
13755 GNULIB_CANONICALIZE_FILE_NAME
=0;
13756 GNULIB_GETLOADAVG
=0;
13757 GNULIB_GETSUBOPT
=0;
13759 GNULIB_MALLOC_POSIX
=0;
13762 GNULIB_MKOSTEMPS
=0;
13768 GNULIB_REALLOC_POSIX
=0;
13775 GNULIB_SYSTEM_POSIX
=0;
13780 HAVE_CANONICALIZE_FILE_NAME
=1;
13781 HAVE_DECL_GETLOADAVG
=1;
13795 HAVE_DECL_SETENV
=1;
13799 HAVE_STRUCT_RANDOM_DATA
=1;
13800 HAVE_SYS_LOADAVG_H
=0;
13802 HAVE_DECL_UNSETENV
=1;
13804 REPLACE_CANONICALIZE_FILE_NAME
=0;
13809 REPLACE_REALPATH
=0;
13812 REPLACE_UNSETENV
=0;
13820 GNULIB_EUIDACCESS
=0;
13821 GNULIB_FACCESSAT
=0;
13825 GNULIB_FTRUNCATE
=0;
13827 GNULIB_GETDOMAINNAME
=0;
13828 GNULIB_GETDTABLESIZE
=0;
13829 GNULIB_GETGROUPS
=0;
13830 GNULIB_GETHOSTNAME
=0;
13832 GNULIB_GETLOGIN_R
=0;
13833 GNULIB_GETPAGESIZE
=0;
13834 GNULIB_GETUSERSHELL
=0;
13844 GNULIB_READLINKAT
=0;
13848 GNULIB_SYMLINKAT
=0;
13849 GNULIB_TTYNAME_R
=0;
13850 GNULIB_UNISTD_H_GETOPT
=0;
13851 GNULIB_UNISTD_H_SIGPIPE
=0;
13865 HAVE_GETDTABLESIZE
=1;
13867 HAVE_GETHOSTNAME
=1;
13869 HAVE_GETPAGESIZE
=1;
13884 HAVE_DECL_ENVIRON
=1;
13885 HAVE_DECL_FCHDIR
=1;
13886 HAVE_DECL_GETDOMAINNAME
=1;
13887 HAVE_DECL_GETLOGIN_R
=1;
13888 HAVE_DECL_GETPAGESIZE
=1;
13889 HAVE_DECL_GETUSERSHELL
=1;
13890 HAVE_DECL_TTYNAME_R
=1;
13892 HAVE_SYS_PARAM_H
=0;
13897 REPLACE_FCHOWNAT
=0;
13899 REPLACE_GETDOMAINNAME
=0;
13900 REPLACE_GETLOGIN_R
=0;
13901 REPLACE_GETGROUPS
=0;
13902 REPLACE_GETPAGESIZE
=0;
13909 REPLACE_READLINK
=0;
13913 REPLACE_TTYNAME_R
=0;
13915 REPLACE_UNLINKAT
=0;
13918 UNISTD_H_HAVE_WINSOCK2_H
=0;
13919 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
=0;
13924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
13925 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
13926 if test "${gl_cv_have_include_next+set}" = set; then :
13927 $as_echo_n "(cached) " >&6
13929 rm -rf conftestd1a conftestd1b conftestd2
13930 mkdir conftestd1a conftestd1b conftestd2
13931 cat <<EOF > conftestd1a/conftest.h
13932 #define DEFINED_IN_CONFTESTD1
13933 #include_next <conftest.h>
13934 #ifdef DEFINED_IN_CONFTESTD2
13937 #error "include_next doesn't work"
13940 cat <<EOF > conftestd1b/conftest.h
13941 #define DEFINED_IN_CONFTESTD1
13943 #include_next <conftest.h>
13944 #ifdef DEFINED_IN_CONFTESTD2
13947 #error "include_next doesn't work"
13950 cat <<EOF > conftestd2/conftest.h
13951 #ifndef DEFINED_IN_CONFTESTD1
13952 #error "include_next test doesn't work"
13954 #define DEFINED_IN_CONFTESTD2
13956 gl_save_CPPFLAGS
="$CPPFLAGS"
13957 CPPFLAGS
="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
13958 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13959 /* end confdefs.h. */
13960 #include <conftest.h>
13962 if ac_fn_c_try_compile
"$LINENO"; then :
13963 gl_cv_have_include_next
=yes
13965 CPPFLAGS
="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
13966 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13967 /* end confdefs.h. */
13968 #include <conftest.h>
13970 if ac_fn_c_try_compile
"$LINENO"; then :
13971 gl_cv_have_include_next
=buggy
13973 gl_cv_have_include_next
=no
13975 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13978 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13979 CPPFLAGS
="$gl_save_CPPFLAGS"
13980 rm -rf conftestd1a conftestd1b conftestd2
13983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
13984 $as_echo "$gl_cv_have_include_next" >&6; }
13985 PRAGMA_SYSTEM_HEADER
=
13986 if test $gl_cv_have_include_next = yes; then
13987 INCLUDE_NEXT
=include_next
13988 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include_next
13989 if test -n "$GCC"; then
13990 PRAGMA_SYSTEM_HEADER
='#pragma GCC system_header'
13993 if test $gl_cv_have_include_next = buggy
; then
13994 INCLUDE_NEXT
=include
13995 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include_next
13997 INCLUDE_NEXT
=include
13998 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include
14004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
14005 $as_echo_n "checking whether system header files limit the line length... " >&6; }
14006 if test "${gl_cv_pragma_columns+set}" = set; then :
14007 $as_echo_n "(cached) " >&6
14009 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14010 /* end confdefs.h. */
14017 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14018 $EGREP "choke me" >/dev
/null
2>&1; then :
14019 gl_cv_pragma_columns
=yes
14021 gl_cv_pragma_columns
=no
14027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
14028 $as_echo "$gl_cv_pragma_columns" >&6; }
14029 if test $gl_cv_pragma_columns = yes; then
14030 PRAGMA_COLUMNS
="#pragma COLUMNS 10000"
14051 if test $gl_cv_have_include_next = yes; then
14052 gl_cv_next_getopt_h
='<'getopt.h
'>'
14054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <getopt.h>" >&5
14055 $as_echo_n "checking absolute name of <getopt.h>... " >&6; }
14056 if test "${gl_cv_next_getopt_h+set}" = set; then :
14057 $as_echo_n "(cached) " >&6
14060 if test $ac_cv_header_getopt_h = yes; then
14063 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14064 /* end confdefs.h. */
14065 #include <getopt.h>
14069 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
14070 *) gl_absname_cpp
="$ac_cpp" ;;
14072 gl_cv_next_getopt_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
14073 sed -n '\#/getopt.h#{
14074 s#.*"\(.*/getopt.h\)".*#\1#
14080 gl_cv_next_getopt_h
='<'getopt.h
'>'
14085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_getopt_h" >&5
14086 $as_echo "$gl_cv_next_getopt_h" >&6; }
14088 NEXT_GETOPT_H
=$gl_cv_next_getopt_h
14090 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
14091 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
14092 gl_next_as_first_directive
='<'getopt.h
'>'
14094 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
14095 gl_next_as_first_directive
=$gl_cv_next_getopt_h
14097 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
=$gl_next_as_first_directive
14102 if test $ac_cv_header_getopt_h = yes; then
14111 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU
; then
14112 for ac_header
in getopt.h
14114 ac_fn_c_check_header_mongrel
"$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
14115 if test "x$ac_cv_header_getopt_h" = x
""yes; then :
14116 cat >>confdefs.h
<<_ACEOF
14117 #define HAVE_GETOPT_H 1
14121 gl_replace_getopt
=yes
14128 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU
; then
14129 for ac_func
in getopt_long_only
14131 ac_fn_c_check_func
"$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
14132 if test "x$ac_cv_func_getopt_long_only" = x
""yes; then :
14133 cat >>confdefs.h
<<_ACEOF
14134 #define HAVE_GETOPT_LONG_ONLY 1
14138 gl_replace_getopt
=yes
14144 if test -z "$gl_replace_getopt"; then
14145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt is POSIX compatible" >&5
14146 $as_echo_n "checking whether getopt is POSIX compatible... " >&6; }
14147 if test "${gl_cv_func_getopt_posix+set}" = set; then :
14148 $as_echo_n "(cached) " >&6
14151 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14152 /* end confdefs.h. */
14153 #include <unistd.h>
14157 int *p = &optreset; return optreset;
14162 if ac_fn_c_try_compile
"$LINENO"; then :
14165 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14166 /* end confdefs.h. */
14167 #include <getopt.h>
14171 return !getopt_clip;
14176 if ac_fn_c_try_compile
"$LINENO"; then :
14181 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14183 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14185 gl_save_CPPFLAGS
=$CPPFLAGS
14186 CPPFLAGS
="$CPPFLAGS -DOPTIND_MIN=$gl_optind_min"
14187 if test "$cross_compiling" = yes; then :
14189 mingw
*) gl_cv_func_getopt_posix
="guessing no";;
14190 darwin
* | aix
*) gl_cv_func_getopt_posix
="guessing no";;
14191 *) gl_cv_func_getopt_posix
="guessing yes";;
14195 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14196 /* end confdefs.h. */
14198 #include <unistd.h>
14199 #include <stdlib.h>
14200 #include <string.h>
14210 argv[argc++] = "program";
14211 argv[argc++] = "-a";
14212 argv[argc++] = "foo";
14213 argv[argc++] = "bar";
14215 optind = OPTIND_MIN;
14218 c = getopt (argc, argv, "ab");
14221 c = getopt (argc, argv, "ab");
14224 if (!(optind == 2))
14227 /* Some internal state exists at this point. */
14233 argv[argc++] = "program";
14234 argv[argc++] = "donald";
14235 argv[argc++] = "-p";
14236 argv[argc++] = "billy";
14237 argv[argc++] = "duck";
14238 argv[argc++] = "-a";
14239 argv[argc++] = "bar";
14241 optind = OPTIND_MIN;
14244 c = getopt (argc, argv, "+abp:q:");
14247 if (!(strcmp (argv[0], "program") == 0))
14249 if (!(strcmp (argv[1], "donald") == 0))
14251 if (!(strcmp (argv[2], "-p") == 0))
14253 if (!(strcmp (argv[3], "billy") == 0))
14255 if (!(strcmp (argv[4], "duck") == 0))
14257 if (!(strcmp (argv[5], "-a") == 0))
14259 if (!(strcmp (argv[6], "bar") == 0))
14261 if (!(optind == 1))
14264 /* Detect MacOS 10.5, AIX 7.1 bug. */
14266 char *argv[3] = { "program", "-ab", NULL };
14267 optind = OPTIND_MIN;
14269 if (getopt (2, argv, "ab:") != 'a')
14271 if (getopt (2, argv, "ab:") != '?')
14283 if ac_fn_c_try_run
"$LINENO"; then :
14284 gl_cv_func_getopt_posix
=yes
14286 gl_cv_func_getopt_posix
=no
14288 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14289 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14292 CPPFLAGS
=$gl_save_CPPFLAGS
14295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_posix" >&5
14296 $as_echo "$gl_cv_func_getopt_posix" >&6; }
14297 case "$gl_cv_func_getopt_posix" in
14298 *no
) gl_replace_getopt
=yes ;;
14302 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU
; then
14303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
14304 $as_echo_n "checking for working GNU getopt function... " >&6; }
14305 if test "${gl_cv_func_getopt_gnu+set}" = set; then :
14306 $as_echo_n "(cached) " >&6
14308 # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the
14309 # optstring is necessary for programs like m4 that have POSIX-mandated
14310 # semantics for supporting options interspersed with files.
14311 # Also, since getopt_long is a GNU extension, we require optind=0.
14312 # Bash ties 'set -o posix' to a non-exported POSIXLY_CORRECT;
14313 # so take care to revert to the correct (non-)export state.
14314 gl_awk_probe
='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }'
14315 case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" </dev/null` in
14316 xx
) gl_had_POSIXLY_CORRECT
=exported
;;
14317 x
) gl_had_POSIXLY_CORRECT
=yes ;;
14318 *) gl_had_POSIXLY_CORRECT
= ;;
14321 export POSIXLY_CORRECT
14322 if test "$cross_compiling" = yes; then :
14323 case $host_os:$ac_cv_have_decl_optreset in
14324 *-gnu*:* | mingw
*:*) gl_cv_func_getopt_gnu
=no
;;
14325 *:yes) gl_cv_func_getopt_gnu
=no
;;
14326 *) gl_cv_func_getopt_gnu
=yes;;
14330 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14331 /* end confdefs.h. */
14332 #include <getopt.h>
14333 #include <stddef.h>
14334 #include <string.h>
14341 /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
14342 and fails on MacOS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
14343 OSF/1 5.1, Solaris 10. */
14346 myargv[0] = "conftest";
14350 if (getopt (2, myargv, "+a") != '?')
14353 /* This code succeeds on glibc 2.8, mingw,
14354 and fails on MacOS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
14355 IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x. */
14357 char *argv[] = { "program", "-p", "foo", "bar", NULL };
14360 if (getopt (4, argv, "p::") != 'p')
14362 else if (optarg != NULL)
14364 else if (getopt (4, argv, "p::") != -1)
14366 else if (optind != 2)
14369 /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0. */
14371 char *argv[] = { "program", "foo", "-p", NULL };
14373 if (getopt (3, argv, "-p") != 1)
14375 else if (getopt (3, argv, "-p") != 'p')
14378 /* This code fails on glibc 2.11. */
14380 char *argv[] = { "program", "-b", "-a", NULL };
14381 optind = opterr = 0;
14382 if (getopt (3, argv, "+:a:b") != 'b')
14384 else if (getopt (3, argv, "+:a:b") != ':')
14393 if ac_fn_c_try_run
"$LINENO"; then :
14394 gl_cv_func_getopt_gnu
=yes
14396 gl_cv_func_getopt_gnu
=no
14398 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14399 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14402 case $gl_had_POSIXLY_CORRECT in
14404 yes) { POSIXLY_CORRECT
=; unset POSIXLY_CORRECT
;}; POSIXLY_CORRECT
=1 ;;
14405 *) { POSIXLY_CORRECT
=; unset POSIXLY_CORRECT
;} ;;
14409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_gnu" >&5
14410 $as_echo "$gl_cv_func_getopt_gnu" >&6; }
14411 if test "$gl_cv_func_getopt_gnu" = "no"; then
14412 gl_replace_getopt
=yes
14416 ac_fn_c_check_decl
"$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
14417 if test "x$ac_cv_have_decl_getenv" = x
""yes; then :
14423 cat >>confdefs.h
<<_ACEOF
14424 #define HAVE_DECL_GETENV $ac_have_decl
14432 if test -n "$gl_replace_getopt"; then :
14438 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
14442 GNULIB_UNISTD_H_GETOPT
=1
14451 gl_LIBOBJS
="$gl_LIBOBJS getopt.$ac_objext"
14461 gl_LIBOBJS
="$gl_LIBOBJS getopt1.$ac_objext"
14473 GNULIB_NANOSLEEP
=0;
14477 HAVE_DECL_LOCALTIME_R
=1;
14481 REPLACE_LOCALTIME_R
=GNULIB_PORTCHECK
;
14482 REPLACE_MKTIME
=GNULIB_PORTCHECK
;
14483 REPLACE_NANOSLEEP
=GNULIB_PORTCHECK
;
14484 REPLACE_TIMEGM
=GNULIB_PORTCHECK
;
14489 for ac_func
in $ac_func_list
14491 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14492 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
14493 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
14494 cat >>confdefs.h
<<_ACEOF
14495 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14504 gl_cv_c_multiarch
=no
14505 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14506 /* end confdefs.h. */
14507 #ifndef __APPLE_CC__
14508 not a universal capable compiler
14513 if ac_fn_c_try_compile
"$LINENO"; then :
14517 for word
in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
14518 if test -n "$prev"; then
14520 i?
86 | x86_64 | ppc | ppc64
)
14521 if test -z "$arch" ||
test "$arch" = "$word"; then
14524 gl_cv_c_multiarch
=yes
14530 if test "x$word" = "x-arch"; then
14537 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14538 if test $gl_cv_c_multiarch = yes; then
14539 APPLE_UNIVERSAL_BUILD
=1
14541 APPLE_UNIVERSAL_BUILD
=0
14545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
14546 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
14547 if test "${ac_cv_header_stdbool_h+set}" = set; then :
14548 $as_echo_n "(cached) " >&6
14550 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14551 /* end confdefs.h. */
14553 #include <stdbool.h>
14555 "error: bool is not defined"
14558 "error: false is not defined"
14561 "error: false is not 0"
14564 "error: true is not defined"
14567 "error: true is not 1"
14569 #ifndef __bool_true_false_are_defined
14570 "error: __bool_true_false_are_defined is not defined"
14573 struct s { _Bool s: 1; _Bool t; } s;
14575 char a[true == 1 ? 1 : -1];
14576 char b[false == 0 ? 1 : -1];
14577 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
14578 char d[(bool) 0.5 == true ? 1 : -1];
14579 /* See body of main program for 'e'. */
14580 char f[(_Bool) 0.0 == false ? 1 : -1];
14582 char h[sizeof (_Bool)];
14583 char i[sizeof s.t];
14584 enum { j = false, k = true, l = false * true, m = true * 256 };
14585 /* The following fails for
14586 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
14588 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
14589 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
14590 /* Catch a bug in an HP-UX C compiler. See
14591 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
14592 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
14604 /* Refer to every declared value, to avoid compiler optimizations. */
14605 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
14606 + !m + !n + !o + !p + !q + !pq);
14612 if ac_fn_c_try_compile
"$LINENO"; then :
14613 ac_cv_header_stdbool_h
=yes
14615 ac_cv_header_stdbool_h
=no
14617 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
14620 $as_echo "$ac_cv_header_stdbool_h" >&6; }
14621 ac_fn_c_check_type
"$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
14622 if test "x$ac_cv_type__Bool" = x
""yes; then :
14624 cat >>confdefs.h
<<_ACEOF
14625 #define HAVE__BOOL 1
14638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
14639 $as_echo_n "checking for wchar_t... " >&6; }
14640 if test "${gt_cv_c_wchar_t+set}" = set; then :
14641 $as_echo_n "(cached) " >&6
14643 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14644 /* end confdefs.h. */
14645 #include <stddef.h>
14646 wchar_t foo = (wchar_t)'\0';
14655 if ac_fn_c_try_compile
"$LINENO"; then :
14656 gt_cv_c_wchar_t
=yes
14660 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
14663 $as_echo "$gt_cv_c_wchar_t" >&6; }
14664 if test $gt_cv_c_wchar_t = yes; then
14666 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
14671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
14672 $as_echo_n "checking for unsigned long long int... " >&6; }
14673 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
14674 $as_echo_n "(cached) " >&6
14676 ac_cv_type_unsigned_long_long_int
=yes
14677 if test "x${ac_cv_prog_cc_c99-no}" = xno
; then
14678 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14679 /* end confdefs.h. */
14681 /* For now, do not test the preprocessor; as of 2007 there are too many
14682 implementations with broken preprocessors. Perhaps this can
14683 be revisited in 2012. In the meantime, code should not expect
14684 #if to work with literals wider than 32 bits. */
14685 /* Test literals. */
14686 long long int ll = 9223372036854775807ll;
14687 long long int nll = -9223372036854775807LL;
14688 unsigned long long int ull = 18446744073709551615ULL;
14689 /* Test constant expressions. */
14690 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
14692 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
14698 /* Test availability of runtime routines for shift and division. */
14699 long long int llmax = 9223372036854775807ll;
14700 unsigned long long int ullmax = 18446744073709551615ull;
14701 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
14702 | (llmax / ll) | (llmax % ll)
14703 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
14704 | (ullmax / ull) | (ullmax % ull));
14710 if ac_fn_c_try_link
"$LINENO"; then :
14713 ac_cv_type_unsigned_long_long_int
=no
14715 rm -f core conftest.err conftest.
$ac_objext \
14716 conftest
$ac_exeext conftest.
$ac_ext
14719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
14720 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
14721 if test $ac_cv_type_unsigned_long_long_int = yes; then
14723 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
14729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
14730 $as_echo_n "checking for long long int... " >&6; }
14731 if test "${ac_cv_type_long_long_int+set}" = set; then :
14732 $as_echo_n "(cached) " >&6
14734 ac_cv_type_long_long_int
=yes
14735 if test "x${ac_cv_prog_cc_c99-no}" = xno
; then
14736 ac_cv_type_long_long_int
=$ac_cv_type_unsigned_long_long_int
14737 if test $ac_cv_type_long_long_int = yes; then
14738 if test "$cross_compiling" = yes; then :
14741 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14742 /* end confdefs.h. */
14743 #include <limits.h>
14746 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
14747 # define LLONG_MAX (HALF - 1 + HALF)
14752 long long int n = 1;
14756 long long int m = n << i;
14759 if (LLONG_MAX / 2 < m)
14767 if ac_fn_c_try_run
"$LINENO"; then :
14770 ac_cv_type_long_long_int
=no
14772 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14773 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
14780 $as_echo "$ac_cv_type_long_long_int" >&6; }
14781 if test $ac_cv_type_long_long_int = yes; then
14783 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
14792 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
14794 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x
""yes; then :
14796 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
14815 GNULIB_UTIMENSAT
=0;
14829 REPLACE_FUTIMENS
=0;
14835 REPLACE_UTIMENSAT
=0;
14837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
14838 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
14839 if test "${ac_cv_header_stat_broken+set}" = set; then :
14840 $as_echo_n "(cached) " >&6
14842 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14843 /* end confdefs.h. */
14844 #include <sys/types.h>
14845 #include <sys/stat.h>
14847 #if defined S_ISBLK && defined S_IFDIR
14848 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
14851 #if defined S_ISBLK && defined S_IFCHR
14852 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
14855 #if defined S_ISLNK && defined S_IFREG
14856 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
14859 #if defined S_ISSOCK && defined S_IFREG
14860 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
14864 if ac_fn_c_try_compile
"$LINENO"; then :
14865 ac_cv_header_stat_broken
=no
14867 ac_cv_header_stat_broken
=yes
14869 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
14872 $as_echo "$ac_cv_header_stat_broken" >&6; }
14873 if test $ac_cv_header_stat_broken = yes; then
14875 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
14881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
14882 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
14883 if test "${ac_cv_c_restrict+set}" = set; then :
14884 $as_echo_n "(cached) " >&6
14886 ac_cv_c_restrict
=no
14887 # The order here caters to the fact that C++ does not require restrict.
14888 for ac_kw
in __restrict __restrict__ _Restrict restrict
; do
14889 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14890 /* end confdefs.h. */
14891 typedef int * int_ptr;
14892 int foo (int_ptr $ac_kw ip) {
14899 int * $ac_kw t = s;
14906 if ac_fn_c_try_compile
"$LINENO"; then :
14907 ac_cv_c_restrict
=$ac_kw
14909 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14910 test "$ac_cv_c_restrict" != no
&& break
14914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
14915 $as_echo "$ac_cv_c_restrict" >&6; }
14917 case $ac_cv_c_restrict in
14919 no
) $as_echo "#define restrict /**/" >>confdefs.h
14921 *) cat >>confdefs.h
<<_ACEOF
14922 #define restrict $ac_cv_c_restrict
14931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
14932 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
14933 if test "${gl_cv_sys_struct_timespec_in_time_h+set}" = set; then :
14934 $as_echo_n "(cached) " >&6
14936 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14937 /* end confdefs.h. */
14943 static struct timespec x; x.tv_sec = x.tv_nsec;
14948 if ac_fn_c_try_compile
"$LINENO"; then :
14949 gl_cv_sys_struct_timespec_in_time_h
=yes
14951 gl_cv_sys_struct_timespec_in_time_h
=no
14953 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
14956 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
14958 TIME_H_DEFINES_STRUCT_TIMESPEC
=0
14959 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
=0
14960 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
=0
14961 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
14962 TIME_H_DEFINES_STRUCT_TIMESPEC
=1
14964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
14965 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
14966 if test "${gl_cv_sys_struct_timespec_in_sys_time_h+set}" = set; then :
14967 $as_echo_n "(cached) " >&6
14969 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14970 /* end confdefs.h. */
14971 #include <sys/time.h>
14976 static struct timespec x; x.tv_sec = x.tv_nsec;
14981 if ac_fn_c_try_compile
"$LINENO"; then :
14982 gl_cv_sys_struct_timespec_in_sys_time_h
=yes
14984 gl_cv_sys_struct_timespec_in_sys_time_h
=no
14986 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
14989 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
14990 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
14991 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
=1
14993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
14994 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
14995 if test "${gl_cv_sys_struct_timespec_in_pthread_h+set}" = set; then :
14996 $as_echo_n "(cached) " >&6
14998 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14999 /* end confdefs.h. */
15000 #include <pthread.h>
15005 static struct timespec x; x.tv_sec = x.tv_nsec;
15010 if ac_fn_c_try_compile
"$LINENO"; then :
15011 gl_cv_sys_struct_timespec_in_pthread_h
=yes
15013 gl_cv_sys_struct_timespec_in_pthread_h
=no
15015 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
15018 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
15019 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
15020 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
=1
15039 if test $gl_cv_have_include_next = yes; then
15040 gl_cv_next_time_h
='<'time.h
'>'
15042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
15043 $as_echo_n "checking absolute name of <time.h>... " >&6; }
15044 if test "${gl_cv_next_time_h+set}" = set; then :
15045 $as_echo_n "(cached) " >&6
15048 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15049 /* end confdefs.h. */
15054 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
15055 *) gl_absname_cpp
="$ac_cpp" ;;
15057 gl_cv_next_time_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15058 sed -n '\#/time.h#{
15059 s#.*"\(.*/time.h\)".*#\1#
15067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
15068 $as_echo "$gl_cv_next_time_h" >&6; }
15070 NEXT_TIME_H
=$gl_cv_next_time_h
15072 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
15073 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15074 gl_next_as_first_directive
='<'time.h
'>'
15076 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15077 gl_next_as_first_directive
=$gl_cv_next_time_h
15079 NEXT_AS_FIRST_DIRECTIVE_TIME_H
=$gl_next_as_first_directive
15086 ac_fn_c_check_decl
"$LINENO" "localtime_r" "ac_cv_have_decl_localtime_r" "$ac_includes_default"
15087 if test "x$ac_cv_have_decl_localtime_r" = x
""yes; then :
15093 cat >>confdefs.h
<<_ACEOF
15094 #define HAVE_DECL_LOCALTIME_R $ac_have_decl
15101 GL_COND_LIBTOOL_TRUE
=
15102 GL_COND_LIBTOOL_FALSE
='#'
15104 GL_COND_LIBTOOL_TRUE
='#'
15105 GL_COND_LIBTOOL_FALSE
=
15108 gl_cond_libtool
=false
15121 gl_source_base
='lib'
15122 # Code from module arg-nonnull:
15123 # Code from module c++defs:
15124 # Code from module crypto/md5:
15134 gl_LIBOBJS
="$gl_LIBOBJS md5.$ac_objext"
15141 # Code from module dtoastr:
15143 # Code from module extensions:
15144 # Code from module filemode:
15155 gl_LIBOBJS
="$gl_LIBOBJS filemode.$ac_objext"
15159 # Code from module getloadavg:
15162 # Persuade glibc <stdlib.h> to declare getloadavg().
15165 # Make sure getloadavg.c is where it belongs, at configure-time.
15166 test -f "$srcdir/$gl_source_base/getloadavg.c" ||
15167 as_fn_error $?
"$srcdir/$gl_source_base/getloadavg.c is missing" "$LINENO" 5
15171 # getloadvg is present in libc on glibc >= 2.2, MacOS X, FreeBSD >= 2.0,
15172 # NetBSD >= 0.9, OpenBSD >= 2.0, Solaris >= 7.
15173 ac_fn_c_check_func
"$LINENO" "getloadavg" "ac_cv_func_getloadavg"
15174 if test "x$ac_cv_func_getloadavg" = x
""yes; then :
15179 # Some systems with -lutil have (and need) -lkvm as well, some do not.
15180 # On Solaris, -lkvm requires nlist from -lelf, so check that first
15181 # to get the right answer into the cache.
15182 # For kstat on solaris, we need to test for libelf and libkvm to force the
15183 # definition of SVR4 below.
15184 if test $gl_have_func = no
; then
15185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
15186 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
15187 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then :
15188 $as_echo_n "(cached) " >&6
15190 ac_check_lib_save_LIBS
=$LIBS
15192 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15193 /* end confdefs.h. */
15195 /* Override any GCC internal prototype to avoid an error.
15196 Use char because int might match the return type of a GCC
15197 builtin and then its argument prototype would still apply. */
15205 return elf_begin ();
15210 if ac_fn_c_try_link
"$LINENO"; then :
15211 ac_cv_lib_elf_elf_begin
=yes
15213 ac_cv_lib_elf_elf_begin
=no
15215 rm -f core conftest.err conftest.
$ac_objext \
15216 conftest
$ac_exeext conftest.
$ac_ext
15217 LIBS
=$ac_check_lib_save_LIBS
15219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
15220 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
15221 if test "x$ac_cv_lib_elf_elf_begin" = x
""yes; then :
15225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
15226 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
15227 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then :
15228 $as_echo_n "(cached) " >&6
15230 ac_check_lib_save_LIBS
=$LIBS
15232 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15233 /* end confdefs.h. */
15235 /* Override any GCC internal prototype to avoid an error.
15236 Use char because int might match the return type of a GCC
15237 builtin and then its argument prototype would still apply. */
15245 return kvm_open ();
15250 if ac_fn_c_try_link
"$LINENO"; then :
15251 ac_cv_lib_kvm_kvm_open
=yes
15253 ac_cv_lib_kvm_kvm_open
=no
15255 rm -f core conftest.err conftest.
$ac_objext \
15256 conftest
$ac_exeext conftest.
$ac_ext
15257 LIBS
=$ac_check_lib_save_LIBS
15259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
15260 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
15261 if test "x$ac_cv_lib_kvm_kvm_open" = x
""yes; then :
15265 # Check for the 4.4BSD definition of getloadavg.
15266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5
15267 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
15268 if test "${ac_cv_lib_util_getloadavg+set}" = set; then :
15269 $as_echo_n "(cached) " >&6
15271 ac_check_lib_save_LIBS
=$LIBS
15272 LIBS
="-lutil $LIBS"
15273 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15274 /* end confdefs.h. */
15276 /* Override any GCC internal prototype to avoid an error.
15277 Use char because int might match the return type of a GCC
15278 builtin and then its argument prototype would still apply. */
15282 char getloadavg ();
15286 return getloadavg ();
15291 if ac_fn_c_try_link
"$LINENO"; then :
15292 ac_cv_lib_util_getloadavg
=yes
15294 ac_cv_lib_util_getloadavg
=no
15296 rm -f core conftest.err conftest.
$ac_objext \
15297 conftest
$ac_exeext conftest.
$ac_ext
15298 LIBS
=$ac_check_lib_save_LIBS
15300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5
15301 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
15302 if test "x$ac_cv_lib_util_getloadavg" = x
""yes; then :
15303 LIBS
="-lutil $LIBS" gl_have_func
=yes
15308 if test $gl_have_func = no
; then
15309 # There is a commonly available library for RS/6000 AIX.
15310 # Since it is not a standard part of AIX, it might be installed locally.
15311 gl_getloadavg_LIBS
=$LIBS
15312 LIBS
="-L/usr/local/lib $LIBS"
15313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5
15314 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
15315 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then :
15316 $as_echo_n "(cached) " >&6
15318 ac_check_lib_save_LIBS
=$LIBS
15319 LIBS
="-lgetloadavg $LIBS"
15320 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15321 /* end confdefs.h. */
15323 /* Override any GCC internal prototype to avoid an error.
15324 Use char because int might match the return type of a GCC
15325 builtin and then its argument prototype would still apply. */
15329 char getloadavg ();
15333 return getloadavg ();
15338 if ac_fn_c_try_link
"$LINENO"; then :
15339 ac_cv_lib_getloadavg_getloadavg
=yes
15341 ac_cv_lib_getloadavg_getloadavg
=no
15343 rm -f core conftest.err conftest.
$ac_objext \
15344 conftest
$ac_exeext conftest.
$ac_ext
15345 LIBS
=$ac_check_lib_save_LIBS
15347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5
15348 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
15349 if test "x$ac_cv_lib_getloadavg_getloadavg" = x
""yes; then :
15350 LIBS
="-lgetloadavg $LIBS" gl_have_func
=yes
15352 LIBS
=$gl_getloadavg_LIBS
15357 # Set up the replacement function if necessary.
15358 if test $gl_have_func = no
; then
15367 gl_LIBOBJS
="$gl_LIBOBJS getloadavg.$ac_objext"
15370 # Figure out what our getloadavg.c needs.
15372 # Solaris has libkstat which does not require root.
15373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
15374 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
15375 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then :
15376 $as_echo_n "(cached) " >&6
15378 ac_check_lib_save_LIBS
=$LIBS
15379 LIBS
="-lkstat $LIBS"
15380 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15381 /* end confdefs.h. */
15383 /* Override any GCC internal prototype to avoid an error.
15384 Use char because int might match the return type of a GCC
15385 builtin and then its argument prototype would still apply. */
15389 char kstat_open ();
15393 return kstat_open ();
15398 if ac_fn_c_try_link
"$LINENO"; then :
15399 ac_cv_lib_kstat_kstat_open
=yes
15401 ac_cv_lib_kstat_kstat_open
=no
15403 rm -f core conftest.err conftest.
$ac_objext \
15404 conftest
$ac_exeext conftest.
$ac_ext
15405 LIBS
=$ac_check_lib_save_LIBS
15407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
15408 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
15409 if test "x$ac_cv_lib_kstat_kstat_open" = x
""yes; then :
15410 cat >>confdefs.h
<<_ACEOF
15411 #define HAVE_LIBKSTAT 1
15414 LIBS
="-lkstat $LIBS"
15418 test $ac_cv_lib_kstat_kstat_open = yes && gl_have_func
=yes
15420 # On HPUX9, an unprivileged user can get load averages this way.
15421 if test $gl_have_func = no
; then
15422 for ac_func
in pstat_getdynamic
15424 ac_fn_c_check_func
"$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic"
15425 if test "x$ac_cv_func_pstat_getdynamic" = x
""yes; then :
15426 cat >>confdefs.h
<<_ACEOF
15427 #define HAVE_PSTAT_GETDYNAMIC 1
15435 # AIX has libperfstat which does not require root
15436 if test $gl_have_func = no
; then
15437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perfstat_cpu_total in -lperfstat" >&5
15438 $as_echo_n "checking for perfstat_cpu_total in -lperfstat... " >&6; }
15439 if test "${ac_cv_lib_perfstat_perfstat_cpu_total+set}" = set; then :
15440 $as_echo_n "(cached) " >&6
15442 ac_check_lib_save_LIBS
=$LIBS
15443 LIBS
="-lperfstat $LIBS"
15444 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15445 /* end confdefs.h. */
15447 /* Override any GCC internal prototype to avoid an error.
15448 Use char because int might match the return type of a GCC
15449 builtin and then its argument prototype would still apply. */
15453 char perfstat_cpu_total ();
15457 return perfstat_cpu_total ();
15462 if ac_fn_c_try_link
"$LINENO"; then :
15463 ac_cv_lib_perfstat_perfstat_cpu_total
=yes
15465 ac_cv_lib_perfstat_perfstat_cpu_total
=no
15467 rm -f core conftest.err conftest.
$ac_objext \
15468 conftest
$ac_exeext conftest.
$ac_ext
15469 LIBS
=$ac_check_lib_save_LIBS
15471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_perfstat_perfstat_cpu_total" >&5
15472 $as_echo "$ac_cv_lib_perfstat_perfstat_cpu_total" >&6; }
15473 if test "x$ac_cv_lib_perfstat_perfstat_cpu_total" = x
""yes; then :
15474 cat >>confdefs.h
<<_ACEOF
15475 #define HAVE_LIBPERFSTAT 1
15478 LIBS
="-lperfstat $LIBS"
15482 test $ac_cv_lib_perfstat_perfstat_cpu_total = yes && gl_have_func
=yes
15485 if test $gl_have_func = no
; then
15486 ac_fn_c_check_header_mongrel
"$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
15487 if test "x$ac_cv_header_sys_dg_sys_info_h" = x
""yes; then :
15490 $as_echo "#define DGUX 1" >>confdefs.h
15492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5
15493 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
15494 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then :
15495 $as_echo_n "(cached) " >&6
15497 ac_check_lib_save_LIBS
=$LIBS
15499 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15500 /* end confdefs.h. */
15502 /* Override any GCC internal prototype to avoid an error.
15503 Use char because int might match the return type of a GCC
15504 builtin and then its argument prototype would still apply. */
15508 char dg_sys_info ();
15512 return dg_sys_info ();
15517 if ac_fn_c_try_link
"$LINENO"; then :
15518 ac_cv_lib_dgc_dg_sys_info
=yes
15520 ac_cv_lib_dgc_dg_sys_info
=no
15522 rm -f core conftest.err conftest.
$ac_objext \
15523 conftest
$ac_exeext conftest.
$ac_ext
15524 LIBS
=$ac_check_lib_save_LIBS
15526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5
15527 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
15528 if test "x$ac_cv_lib_dgc_dg_sys_info" = x
""yes; then :
15529 cat >>confdefs.h
<<_ACEOF
15530 #define HAVE_LIBDGC 1
15542 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
15543 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
15544 # Irix 4.0.5F has the header but not the library.
15545 if test $gl_have_func = no
&& test "$ac_cv_lib_elf_elf_begin" = yes \
15546 && test "$ac_cv_lib_kvm_kvm_open" = yes; then
15549 $as_echo "#define SVR4 1" >>confdefs.h
15553 if test $gl_have_func = no
; then
15554 ac_fn_c_check_header_mongrel
"$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default"
15555 if test "x$ac_cv_header_inq_stats_cpustats_h" = x
""yes; then :
15558 $as_echo "#define UMAX 1" >>confdefs.h
15561 $as_echo "#define UMAX4_3 1" >>confdefs.h
15568 if test $gl_have_func = no
; then
15569 ac_fn_c_check_header_mongrel
"$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default"
15570 if test "x$ac_cv_header_sys_cpustats_h" = x
""yes; then :
15571 gl_have_func
=yes; $as_echo "#define UMAX 1" >>confdefs.h
15578 if test $gl_have_func = no
; then
15579 for ac_header
in mach
/mach.h
15581 ac_fn_c_check_header_mongrel
"$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
15582 if test "x$ac_cv_header_mach_mach_h" = x
""yes; then :
15583 cat >>confdefs.h
<<_ACEOF
15584 #define HAVE_MACH_MACH_H 1
15593 for ac_header
in nlist.h
15595 ac_fn_c_check_header_mongrel
"$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
15596 if test "x$ac_cv_header_nlist_h" = x
""yes; then :
15597 cat >>confdefs.h
<<_ACEOF
15598 #define HAVE_NLIST_H 1
15600 ac_fn_c_check_member
"$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h>
15602 if test "x$ac_cv_member_struct_nlist_n_un_n_name" = x
""yes; then :
15604 cat >>confdefs.h
<<_ACEOF
15605 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
15611 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15612 /* end confdefs.h. */
15618 #ifdef HAVE_STRUCT_NLIST_N_UN_N_NAME
15619 x.n_un.n_name = "";
15627 if ac_fn_c_try_link
"$LINENO"; then :
15629 $as_echo "#define N_NAME_POINTER 1" >>confdefs.h
15632 rm -f core conftest.err conftest.
$ac_objext \
15633 conftest
$ac_exeext conftest.
$ac_ext
15643 if test "x$gl_save_LIBS" = x
; then
15644 GETLOADAVG_LIBS
=$LIBS
15646 GETLOADAVG_LIBS
=`echo "$LIBS" | sed "s!$gl_save_LIBS!!"`
15651 # Test whether the system declares getloadavg. Solaris has the function
15652 # but declares it in <sys/loadavg.h>, not <stdlib.h>.
15653 for ac_header
in sys
/loadavg.h
15655 ac_fn_c_check_header_mongrel
"$LINENO" "sys/loadavg.h" "ac_cv_header_sys_loadavg_h" "$ac_includes_default"
15656 if test "x$ac_cv_header_sys_loadavg_h" = x
""yes; then :
15657 cat >>confdefs.h
<<_ACEOF
15658 #define HAVE_SYS_LOADAVG_H 1
15665 if test $ac_cv_header_sys_loadavg_h = yes; then
15666 HAVE_SYS_LOADAVG_H
=1
15668 HAVE_SYS_LOADAVG_H
=0
15670 ac_fn_c_check_decl
"$LINENO" "getloadavg" "ac_cv_have_decl_getloadavg" "#if HAVE_SYS_LOADAVG_H
15671 # include <sys/loadavg.h>
15673 #include <stdlib.h>
15675 if test "x$ac_cv_have_decl_getloadavg" = x
""yes; then :
15678 HAVE_DECL_GETLOADAVG
=0
15685 GNULIB_GETLOADAVG
=1
15689 # Code from module getopt-gnu:
15696 # Code from module getopt-posix:
15702 if test -n "$gl_replace_getopt"; then :
15708 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
15712 GNULIB_UNISTD_H_GETOPT
=1
15721 gl_LIBOBJS
="$gl_LIBOBJS getopt.$ac_objext"
15731 gl_LIBOBJS
="$gl_LIBOBJS getopt1.$ac_objext"
15741 # Code from module gettext-h:
15744 # Code from module ignore-value:
15746 # Code from module include_next:
15747 # Code from module intprops:
15748 # Code from module mktime:
15754 if test $APPLE_UNIVERSAL_BUILD = 1; then
15755 # A universal build on Apple MacOS X platforms.
15756 # The test result would be 'yes' in 32-bit mode and 'no' in 64-bit mode.
15757 # But we need a configuration result that is valid in both modes.
15758 ac_cv_func_working_mktime
=no
15760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
15761 $as_echo_n "checking for working mktime... " >&6; }
15762 if test "${ac_cv_func_working_mktime+set}" = set; then :
15763 $as_echo_n "(cached) " >&6
15765 if test "$cross_compiling" = yes; then :
15766 ac_cv_func_working_mktime
=no
15768 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15769 /* end confdefs.h. */
15770 /* Test program from Paul Eggert and Tony Leneis. */
15771 #include <limits.h>
15772 #include <stdlib.h>
15775 #ifdef HAVE_UNISTD_H
15776 # include <unistd.h>
15780 # define alarm(X) /* empty */
15783 /* Work around redefinition to rpl_putenv by other config tests. */
15786 static time_t time_t_max;
15787 static time_t time_t_min;
15789 /* Values we'll use to set the TZ environment variable. */
15790 static char *tz_strings[] = {
15791 (char *) 0, "TZ=GMT0", "TZ=JST-9",
15792 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
15794 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
15796 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
15797 Based on a problem report from Andreas Jaeger. */
15799 spring_forward_gap ()
15801 /* glibc (up to about 1998-10-07) failed this test. */
15804 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
15805 instead of "TZ=America/Vancouver" in order to detect the bug even
15806 on systems that don't support the Olson extension, or don't have the
15807 full zoneinfo tables installed. */
15808 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
15817 return mktime (&tm) != (time_t) -1;
15821 mktime_test1 (time_t now)
15824 return ! (lt = localtime (&now)) || mktime (lt) == now;
15828 mktime_test (time_t now)
15830 return (mktime_test1 (now)
15831 && mktime_test1 ((time_t) (time_t_max - now))
15832 && mktime_test1 ((time_t) (time_t_min + now)));
15838 /* Based on code from Ariel Faigon. */
15848 return tm.tm_mon == 2 && tm.tm_mday == 31;
15852 bigtime_test (int j)
15856 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
15857 now = mktime (&tm);
15858 if (now != (time_t) -1)
15860 struct tm *lt = localtime (&now);
15862 && lt->tm_year == tm.tm_year
15863 && lt->tm_mon == tm.tm_mon
15864 && lt->tm_mday == tm.tm_mday
15865 && lt->tm_hour == tm.tm_hour
15866 && lt->tm_min == tm.tm_min
15867 && lt->tm_sec == tm.tm_sec
15868 && lt->tm_yday == tm.tm_yday
15869 && lt->tm_wday == tm.tm_wday
15870 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
15871 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
15880 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
15881 ignoring leap seconds. */
15882 unsigned long int answer = 2527315200UL;
15886 tm.tm_year = 2050 - 1900;
15889 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
15892 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
15893 instead of "TZ=America/Vancouver" in order to detect the bug even
15894 on systems that don't support the Olson extension, or don't have the
15895 full zoneinfo tables installed. */
15896 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
15900 /* Check that the result is either a failure, or close enough
15901 to the correct answer that we can assume the discrepancy is
15902 due to leap seconds. */
15903 return (t == (time_t) -1
15904 || (0 < t && answer - 120 <= t && t <= answer + 120));
15913 int time_t_signed_magnitude = (time_t) ~ (time_t) 0 < (time_t) -1;
15914 int time_t_signed = ! ((time_t) 0 < (time_t) -1);
15916 /* This test makes some buggy mktime implementations loop.
15917 Give up after 60 seconds; a mktime slower than that
15918 isn't worth using anyway. */
15921 time_t_max = (! time_t_signed
15923 : ((((time_t) 1 << (sizeof (time_t) * CHAR_BIT - 2)) - 1)
15925 time_t_min = (! time_t_signed
15927 : time_t_signed_magnitude
15931 delta = time_t_max / 997; /* a suitable prime number */
15932 for (i = 0; i < N_STRINGS; i++)
15935 putenv (tz_strings[i]);
15937 for (t = 0; t <= time_t_max - delta; t += delta)
15938 if (! mktime_test (t))
15940 if (! (mktime_test ((time_t) 1)
15941 && mktime_test ((time_t) (60 * 60))
15942 && mktime_test ((time_t) (60 * 60 * 24))))
15945 for (j = 1; ; j <<= 1)
15946 if (! bigtime_test (j))
15948 else if (INT_MAX / 2 < j)
15950 if (! bigtime_test (INT_MAX))
15953 if (! irix_6_4_bug ())
15955 if (! spring_forward_gap ())
15957 if (! year_2050_test ())
15962 if ac_fn_c_try_run
"$LINENO"; then :
15963 ac_cv_func_working_mktime
=yes
15965 ac_cv_func_working_mktime
=no
15967 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15968 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_working_mktime" >&5
15973 $as_echo "$ac_cv_func_working_mktime" >&6; }
15974 if test $ac_cv_func_working_mktime = no
; then
15983 gl_LIBOBJS
="$gl_LIBOBJS mktime.$ac_objext"
15987 if test $ac_cv_func_working_mktime = no
; then
16003 # Code from module multiarch:
16005 # Code from module stdbool:
16009 # Define two additional variables used in the Makefile substitution.
16011 if test "$ac_cv_header_stdbool_h" = yes; then
16014 STDBOOL_H
='stdbool.h'
16018 if test "$ac_cv_type__Bool" = yes; then
16025 # Code from module stddef:
16029 if test $gt_cv_c_wchar_t = no
; then
16033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
16034 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
16035 if test "${gl_cv_decl_null_works+set}" = set; then :
16036 $as_echo_n "(cached) " >&6
16038 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16039 /* end confdefs.h. */
16040 #include <stddef.h>
16041 int test[2 * (sizeof NULL == sizeof (void *)) -1];
16051 if ac_fn_c_try_compile
"$LINENO"; then :
16052 gl_cv_decl_null_works
=yes
16054 gl_cv_decl_null_works
=no
16056 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
16059 $as_echo "$gl_cv_decl_null_works" >&6; }
16060 if test $gl_cv_decl_null_works = no
; then
16064 if test -n "$STDDEF_H"; then
16073 if test $gl_cv_have_include_next = yes; then
16074 gl_cv_next_stddef_h
='<'stddef.h
'>'
16076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
16077 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
16078 if test "${gl_cv_next_stddef_h+set}" = set; then :
16079 $as_echo_n "(cached) " >&6
16082 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16083 /* end confdefs.h. */
16084 #include <stddef.h>
16088 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
16089 *) gl_absname_cpp
="$ac_cpp" ;;
16091 gl_cv_next_stddef_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16092 sed -n '\#/stddef.h#{
16093 s#.*"\(.*/stddef.h\)".*#\1#
16101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
16102 $as_echo "$gl_cv_next_stddef_h" >&6; }
16104 NEXT_STDDEF_H
=$gl_cv_next_stddef_h
16106 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
16107 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16108 gl_next_as_first_directive
='<'stddef.h
'>'
16110 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16111 gl_next_as_first_directive
=$gl_cv_next_stddef_h
16113 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
=$gl_next_as_first_directive
16120 # Code from module stdint:
16124 if test $ac_cv_type_long_long_int = yes; then
16125 HAVE_LONG_LONG_INT
=1
16127 HAVE_LONG_LONG_INT
=0
16131 if test $ac_cv_type_unsigned_long_long_int = yes; then
16132 HAVE_UNSIGNED_LONG_LONG_INT
=1
16134 HAVE_UNSIGNED_LONG_LONG_INT
=0
16139 if test $ac_cv_header_wchar_h = yes; then
16146 if test $ac_cv_header_inttypes_h = yes; then
16153 if test $ac_cv_header_sys_types_h = yes; then
16169 if test $gl_cv_have_include_next = yes; then
16170 gl_cv_next_stdint_h
='<'stdint.h
'>'
16172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
16173 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
16174 if test "${gl_cv_next_stdint_h+set}" = set; then :
16175 $as_echo_n "(cached) " >&6
16178 if test $ac_cv_header_stdint_h = yes; then
16181 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16182 /* end confdefs.h. */
16183 #include <stdint.h>
16187 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
16188 *) gl_absname_cpp
="$ac_cpp" ;;
16190 gl_cv_next_stdint_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16191 sed -n '\#/stdint.h#{
16192 s#.*"\(.*/stdint.h\)".*#\1#
16198 gl_cv_next_stdint_h
='<'stdint.h
'>'
16203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
16204 $as_echo "$gl_cv_next_stdint_h" >&6; }
16206 NEXT_STDINT_H
=$gl_cv_next_stdint_h
16208 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
16209 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16210 gl_next_as_first_directive
='<'stdint.h
'>'
16212 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16213 gl_next_as_first_directive
=$gl_cv_next_stdint_h
16215 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
=$gl_next_as_first_directive
16220 if test $ac_cv_header_stdint_h = yes; then
16227 if test $ac_cv_header_stdint_h = yes; then
16228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
16229 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
16230 if test "${gl_cv_header_working_stdint_h+set}" = set; then :
16231 $as_echo_n "(cached) " >&6
16233 gl_cv_header_working_stdint_h
=no
16234 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16235 /* end confdefs.h. */
16238 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
16239 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
16240 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
16241 #include <stdint.h>
16242 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
16243 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
16244 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
16248 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
16249 included before <wchar.h>. */
16250 #include <stddef.h>
16251 #include <signal.h>
16253 # include <stdio.h>
16255 # include <wchar.h>
16260 int8_t a1 = INT8_MAX;
16261 int8_t a1min = INT8_MIN;
16264 int16_t a2 = INT16_MAX;
16265 int16_t a2min = INT16_MIN;
16268 int32_t a3 = INT32_MAX;
16269 int32_t a3min = INT32_MIN;
16272 int64_t a4 = INT64_MAX;
16273 int64_t a4min = INT64_MIN;
16276 uint8_t b1 = UINT8_MAX;
16278 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
16281 uint16_t b2 = UINT16_MAX;
16284 uint32_t b3 = UINT32_MAX;
16287 uint64_t b4 = UINT64_MAX;
16289 int_least8_t c1 = INT8_C (0x7f);
16290 int_least8_t c1max = INT_LEAST8_MAX;
16291 int_least8_t c1min = INT_LEAST8_MIN;
16292 int_least16_t c2 = INT16_C (0x7fff);
16293 int_least16_t c2max = INT_LEAST16_MAX;
16294 int_least16_t c2min = INT_LEAST16_MIN;
16295 int_least32_t c3 = INT32_C (0x7fffffff);
16296 int_least32_t c3max = INT_LEAST32_MAX;
16297 int_least32_t c3min = INT_LEAST32_MIN;
16298 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
16299 int_least64_t c4max = INT_LEAST64_MAX;
16300 int_least64_t c4min = INT_LEAST64_MIN;
16301 uint_least8_t d1 = UINT8_C (0xff);
16302 uint_least8_t d1max = UINT_LEAST8_MAX;
16303 uint_least16_t d2 = UINT16_C (0xffff);
16304 uint_least16_t d2max = UINT_LEAST16_MAX;
16305 uint_least32_t d3 = UINT32_C (0xffffffff);
16306 uint_least32_t d3max = UINT_LEAST32_MAX;
16307 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
16308 uint_least64_t d4max = UINT_LEAST64_MAX;
16309 int_fast8_t e1 = INT_FAST8_MAX;
16310 int_fast8_t e1min = INT_FAST8_MIN;
16311 int_fast16_t e2 = INT_FAST16_MAX;
16312 int_fast16_t e2min = INT_FAST16_MIN;
16313 int_fast32_t e3 = INT_FAST32_MAX;
16314 int_fast32_t e3min = INT_FAST32_MIN;
16315 int_fast64_t e4 = INT_FAST64_MAX;
16316 int_fast64_t e4min = INT_FAST64_MIN;
16317 uint_fast8_t f1 = UINT_FAST8_MAX;
16318 uint_fast16_t f2 = UINT_FAST16_MAX;
16319 uint_fast32_t f3 = UINT_FAST32_MAX;
16320 uint_fast64_t f4 = UINT_FAST64_MAX;
16322 intptr_t g = INTPTR_MAX;
16323 intptr_t gmin = INTPTR_MIN;
16326 uintptr_t h = UINTPTR_MAX;
16328 intmax_t i = INTMAX_MAX;
16329 uintmax_t j = UINTMAX_MAX;
16331 #include <limits.h> /* for CHAR_BIT */
16332 #define TYPE_MINIMUM(t) \
16333 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
16334 #define TYPE_MAXIMUM(t) \
16335 ((t) ((t) 0 < (t) -1 \
16337 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
16340 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
16341 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
16343 /* Detect bug in FreeBSD 6.0 / ia64. */
16344 int check_SIG_ATOMIC:
16345 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
16346 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
16348 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
16350 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
16351 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
16353 /* Detect bug in mingw. */
16355 WINT_MIN == TYPE_MINIMUM (wint_t)
16356 && WINT_MAX == TYPE_MAXIMUM (wint_t)
16359 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
16361 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
16362 int check_UINT16_C:
16363 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
16365 /* Detect bugs in OpenBSD 3.9 stdint.h. */
16367 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
16370 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
16373 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
16376 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
16378 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
16379 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
16380 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
16381 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
16382 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
16383 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
16384 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
16385 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
16386 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
16387 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
16388 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
16399 if ac_fn_c_try_compile
"$LINENO"; then :
16400 if test "$cross_compiling" = yes; then :
16401 gl_cv_header_working_stdint_h
=yes
16404 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16405 /* end confdefs.h. */
16408 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
16409 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
16410 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
16411 #include <stdint.h>
16414 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
16415 included before <wchar.h>. */
16416 #include <stddef.h>
16417 #include <signal.h>
16419 # include <stdio.h>
16421 # include <wchar.h>
16426 #include <string.h>
16427 #define MVAL(macro) MVAL1(macro)
16428 #define MVAL1(expression) #expression
16429 static const char *macro_values[] =
16463 for (mv = macro_values; *mv != NULL; mv++)
16465 const char *value = *mv;
16466 /* Test whether it looks like a cast expression. */
16467 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
16468 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
16469 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
16470 || strncmp (value, "((int)"/*)*/, 6) == 0
16471 || strncmp (value, "((signed short)"/*)*/, 15) == 0
16472 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
16473 return mv - macro_values + 1;
16481 if ac_fn_c_try_run
"$LINENO"; then :
16482 gl_cv_header_working_stdint_h
=yes
16484 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16485 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16490 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
16494 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
16496 if test "$gl_cv_header_working_stdint_h" = yes; then
16499 for ac_header
in sys
/inttypes.h sys
/bitypes.h
16501 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16502 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16503 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
16504 cat >>confdefs.h
<<_ACEOF
16505 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16512 if test $ac_cv_header_sys_inttypes_h = yes; then
16513 HAVE_SYS_INTTYPES_H
=1
16515 HAVE_SYS_INTTYPES_H
=0
16518 if test $ac_cv_header_sys_bitypes_h = yes; then
16519 HAVE_SYS_BITYPES_H
=1
16521 HAVE_SYS_BITYPES_H
=0
16527 if test $APPLE_UNIVERSAL_BUILD = 0; then
16530 for gltype
in ptrdiff_t size_t
; do
16531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
16532 $as_echo_n "checking for bit size of $gltype... " >&6; }
16533 if eval "test \"\${gl_cv_bitsizeof_${gltype}+set}\"" = set; then :
16534 $as_echo_n "(cached) " >&6
16536 if ac_fn_c_compute_int
"$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
16537 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
16538 included before <wchar.h>. */
16539 #include <stddef.h>
16540 #include <signal.h>
16542 # include <stdio.h>
16544 # include <wchar.h>
16547 #include <limits.h>"; then :
16553 eval gl_cv_bitsizeof_
${gltype}=\
$result
16556 eval ac_res
=\
$gl_cv_bitsizeof_${gltype}
16557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16558 $as_echo "$ac_res" >&6; }
16559 eval result
=\
$gl_cv_bitsizeof_${gltype}
16560 if test $result = unknown
; then
16563 GLTYPE
=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
16564 cat >>confdefs.h
<<_ACEOF
16565 #define BITSIZEOF_${GLTYPE} $result
16568 eval BITSIZEOF_
${GLTYPE}=\
$result
16575 for gltype
in sig_atomic_t wchar_t wint_t
; do
16576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
16577 $as_echo_n "checking for bit size of $gltype... " >&6; }
16578 if eval "test \"\${gl_cv_bitsizeof_${gltype}+set}\"" = set; then :
16579 $as_echo_n "(cached) " >&6
16581 if ac_fn_c_compute_int
"$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
16582 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
16583 included before <wchar.h>. */
16584 #include <stddef.h>
16585 #include <signal.h>
16587 # include <stdio.h>
16589 # include <wchar.h>
16592 #include <limits.h>"; then :
16598 eval gl_cv_bitsizeof_
${gltype}=\
$result
16601 eval ac_res
=\
$gl_cv_bitsizeof_${gltype}
16602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16603 $as_echo "$ac_res" >&6; }
16604 eval result
=\
$gl_cv_bitsizeof_${gltype}
16605 if test $result = unknown
; then
16608 GLTYPE
=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
16609 cat >>confdefs.h
<<_ACEOF
16610 #define BITSIZEOF_${GLTYPE} $result
16613 eval BITSIZEOF_
${GLTYPE}=\
$result
16619 for gltype
in sig_atomic_t wchar_t wint_t
; do
16620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
16621 $as_echo_n "checking whether $gltype is signed... " >&6; }
16622 if eval "test \"\${gl_cv_type_${gltype}_signed+set}\"" = set; then :
16623 $as_echo_n "(cached) " >&6
16625 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16626 /* end confdefs.h. */
16628 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
16629 included before <wchar.h>. */
16630 #include <stddef.h>
16631 #include <signal.h>
16633 # include <stdio.h>
16635 # include <wchar.h>
16638 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
16647 if ac_fn_c_try_compile
"$LINENO"; then :
16652 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16653 eval gl_cv_type_
${gltype}_signed
=\
$result
16656 eval ac_res
=\
$gl_cv_type_${gltype}_signed
16657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16658 $as_echo "$ac_res" >&6; }
16659 eval result
=\
$gl_cv_type_${gltype}_signed
16660 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
16661 if test "$result" = yes; then
16662 cat >>confdefs.h
<<_ACEOF
16663 #define HAVE_SIGNED_${GLTYPE} 1
16666 eval HAVE_SIGNED_
${GLTYPE}=1
16668 eval HAVE_SIGNED_
${GLTYPE}=0
16673 gl_cv_type_ptrdiff_t_signed
=yes
16674 gl_cv_type_size_t_signed
=no
16675 if test $APPLE_UNIVERSAL_BUILD = 0; then
16678 for gltype
in ptrdiff_t size_t
; do
16679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
16680 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
16681 if eval "test \"\${gl_cv_type_${gltype}_suffix+set}\"" = set; then :
16682 $as_echo_n "(cached) " >&6
16684 eval gl_cv_type_
${gltype}_suffix
=no
16685 eval result
=\
$gl_cv_type_${gltype}_signed
16686 if test "$result" = yes; then
16691 for glsuf
in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64
; do
16693 '') gltype1
='int';;
16694 l
) gltype1
='long int';;
16695 ll
) gltype1
='long long int';;
16696 i64
) gltype1
='__int64';;
16697 u
) gltype1
='unsigned int';;
16698 ul
) gltype1
='unsigned long int';;
16699 ull
) gltype1
='unsigned long long int';;
16700 ui64
)gltype1
='unsigned __int64';;
16702 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16703 /* end confdefs.h. */
16705 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
16706 included before <wchar.h>. */
16707 #include <stddef.h>
16708 #include <signal.h>
16710 # include <stdio.h>
16712 # include <wchar.h>
16715 extern $gltype foo;
16716 extern $gltype1 foo;
16725 if ac_fn_c_try_compile
"$LINENO"; then :
16726 eval gl_cv_type_
${gltype}_suffix
=\
$glsuf
16728 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16729 eval result
=\
$gl_cv_type_${gltype}_suffix
16730 test "$result" != no
&& break
16733 eval ac_res
=\
$gl_cv_type_${gltype}_suffix
16734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16735 $as_echo "$ac_res" >&6; }
16736 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
16737 eval result
=\
$gl_cv_type_${gltype}_suffix
16738 test "$result" = no
&& result
=
16739 eval ${GLTYPE}_SUFFIX
=\
$result
16740 cat >>confdefs.h
<<_ACEOF
16741 #define ${GLTYPE}_SUFFIX $result
16750 for gltype
in sig_atomic_t wchar_t wint_t
; do
16751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
16752 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
16753 if eval "test \"\${gl_cv_type_${gltype}_suffix+set}\"" = set; then :
16754 $as_echo_n "(cached) " >&6
16756 eval gl_cv_type_
${gltype}_suffix
=no
16757 eval result
=\
$gl_cv_type_${gltype}_signed
16758 if test "$result" = yes; then
16763 for glsuf
in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64
; do
16765 '') gltype1
='int';;
16766 l
) gltype1
='long int';;
16767 ll
) gltype1
='long long int';;
16768 i64
) gltype1
='__int64';;
16769 u
) gltype1
='unsigned int';;
16770 ul
) gltype1
='unsigned long int';;
16771 ull
) gltype1
='unsigned long long int';;
16772 ui64
)gltype1
='unsigned __int64';;
16774 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16775 /* end confdefs.h. */
16777 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
16778 included before <wchar.h>. */
16779 #include <stddef.h>
16780 #include <signal.h>
16782 # include <stdio.h>
16784 # include <wchar.h>
16787 extern $gltype foo;
16788 extern $gltype1 foo;
16797 if ac_fn_c_try_compile
"$LINENO"; then :
16798 eval gl_cv_type_
${gltype}_suffix
=\
$glsuf
16800 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16801 eval result
=\
$gl_cv_type_${gltype}_suffix
16802 test "$result" != no
&& break
16805 eval ac_res
=\
$gl_cv_type_${gltype}_suffix
16806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16807 $as_echo "$ac_res" >&6; }
16808 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
16809 eval result
=\
$gl_cv_type_${gltype}_suffix
16810 test "$result" = no
&& result
=
16811 eval ${GLTYPE}_SUFFIX
=\
$result
16812 cat >>confdefs.h
<<_ACEOF
16813 #define ${GLTYPE}_SUFFIX $result
16824 # Code from module stdlib:
16835 if test $gl_cv_have_include_next = yes; then
16836 gl_cv_next_stdlib_h
='<'stdlib.h
'>'
16838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
16839 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
16840 if test "${gl_cv_next_stdlib_h+set}" = set; then :
16841 $as_echo_n "(cached) " >&6
16844 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16845 /* end confdefs.h. */
16846 #include <stdlib.h>
16850 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
16851 *) gl_absname_cpp
="$ac_cpp" ;;
16853 gl_cv_next_stdlib_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16854 sed -n '\#/stdlib.h#{
16855 s#.*"\(.*/stdlib.h\)".*#\1#
16863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
16864 $as_echo "$gl_cv_next_stdlib_h" >&6; }
16866 NEXT_STDLIB_H
=$gl_cv_next_stdlib_h
16868 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
16869 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16870 gl_next_as_first_directive
='<'stdlib.h
'>'
16872 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16873 gl_next_as_first_directive
=$gl_cv_next_stdlib_h
16875 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
=$gl_next_as_first_directive
16883 # Code from module strftime:
16894 gl_LIBOBJS
="$gl_LIBOBJS strftime.$ac_objext"
16897 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
16905 $as_echo "#define my_strftime nstrftime" >>confdefs.h
16909 # Code from module sys_stat:
16926 if test $gl_cv_have_include_next = yes; then
16927 gl_cv_next_sys_stat_h
='<'sys
/stat.h
'>'
16929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
16930 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
16931 if test "${gl_cv_next_sys_stat_h+set}" = set; then :
16932 $as_echo_n "(cached) " >&6
16935 if test $ac_cv_header_sys_stat_h = yes; then
16938 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16939 /* end confdefs.h. */
16940 #include <sys/stat.h>
16944 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
16945 *) gl_absname_cpp
="$ac_cpp" ;;
16947 gl_cv_next_sys_stat_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16948 sed -n '\#/sys/stat.h#{
16949 s#.*"\(.*/sys/stat.h\)".*#\1#
16955 gl_cv_next_sys_stat_h
='<'sys
/stat.h
'>'
16960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
16961 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
16963 NEXT_SYS_STAT_H
=$gl_cv_next_sys_stat_h
16965 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
16966 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16967 gl_next_as_first_directive
='<'sys
/stat.h
'>'
16969 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16970 gl_next_as_first_directive
=$gl_cv_next_sys_stat_h
16972 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
=$gl_next_as_first_directive
16978 ac_fn_c_check_type
"$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
16979 #include <sys/stat.h>
16981 if test "x$ac_cv_type_nlink_t" = x
""yes; then :
16985 $as_echo "#define nlink_t int" >>confdefs.h
16993 # Code from module time:
16997 # Code from module time_r:
17005 if test $ac_cv_have_decl_localtime_r = no
; then
17006 HAVE_DECL_LOCALTIME_R
=0
17010 if test $ac_cv_func_localtime_r = yes; then
17012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime_r is compatible with its POSIX signature" >&5
17013 $as_echo_n "checking whether localtime_r is compatible with its POSIX signature... " >&6; }
17014 if test "${gl_cv_time_r_posix+set}" = set; then :
17015 $as_echo_n "(cached) " >&6
17017 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17018 /* end confdefs.h. */
17023 /* We don't need to append 'restrict's to the argument types,
17024 even though the POSIX signature has the 'restrict's,
17025 since C99 says they can't affect type compatibility. */
17026 struct tm * (*ptr) (time_t const *, struct tm *) = localtime_r;
17028 /* Check the return type is a pointer.
17029 On HP-UX 10 it is 'int'. */
17030 *localtime_r (0, 0);
17036 if ac_fn_c_try_compile
"$LINENO"; then :
17037 gl_cv_time_r_posix
=yes
17039 gl_cv_time_r_posix
=no
17041 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_time_r_posix" >&5
17045 $as_echo "$gl_cv_time_r_posix" >&6; }
17046 if test $gl_cv_time_r_posix = yes; then
17047 REPLACE_LOCALTIME_R
=0
17049 REPLACE_LOCALTIME_R
=1
17054 if test $HAVE_LOCALTIME_R = 0 ||
test $REPLACE_LOCALTIME_R = 1; then
17063 gl_LIBOBJS
="$gl_LIBOBJS time_r.$ac_objext"
17077 # Code from module unistd:
17091 if test $gl_cv_have_include_next = yes; then
17092 gl_cv_next_unistd_h
='<'unistd.h
'>'
17094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
17095 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
17096 if test "${gl_cv_next_unistd_h+set}" = set; then :
17097 $as_echo_n "(cached) " >&6
17100 if test $ac_cv_header_unistd_h = yes; then
17103 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17104 /* end confdefs.h. */
17105 #include <unistd.h>
17109 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
17110 *) gl_absname_cpp
="$ac_cpp" ;;
17112 gl_cv_next_unistd_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17113 sed -n '\#/unistd.h#{
17114 s#.*"\(.*/unistd.h\)".*#\1#
17120 gl_cv_next_unistd_h
='<'unistd.h
'>'
17125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
17126 $as_echo "$gl_cv_next_unistd_h" >&6; }
17128 NEXT_UNISTD_H
=$gl_cv_next_unistd_h
17130 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
17131 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17132 gl_next_as_first_directive
='<'unistd.h
'>'
17134 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17135 gl_next_as_first_directive
=$gl_cv_next_unistd_h
17137 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
=$gl_next_as_first_directive
17142 if test $ac_cv_header_unistd_h = yes; then
17151 # Code from module warn-on-use:
17152 # End of code from modules
17173 gl_source_base
='tests'
17174 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
17176 gl_module_indicator_condition
=$gltests_WITNESS
17186 LIBGNU_LIBDEPS
="$gl_libdeps"
17188 LIBGNU_LTLIBDEPS
="$gl_ltlibdeps"
17193 for ac_func
in grantpt
17195 ac_fn_c_check_func
"$LINENO" "grantpt" "ac_cv_func_grantpt"
17196 if test "x$ac_cv_func_grantpt" = x
""yes; then :
17197 cat >>confdefs.h
<<_ACEOF
17198 #define HAVE_GRANTPT 1
17205 # PTY-related GNU extensions.
17206 for ac_func
in getpt
17208 ac_fn_c_check_func
"$LINENO" "getpt" "ac_cv_func_getpt"
17209 if test "x$ac_cv_func_getpt" = x
""yes; then :
17210 cat >>confdefs.h
<<_ACEOF
17211 #define HAVE_GETPT 1
17218 # Check this now, so that we will NOT find the above functions in ncurses.
17219 # That is because we have not set up to link ncurses in lib-src.
17220 # It's better to believe a function is not available
17221 # than to expect to find it in ncurses.
17222 # Also we need tputs and friends to be able to build at all.
17223 have_tputs_et_al
=true
17224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tputs" >&5
17225 $as_echo_n "checking for library containing tputs... " >&6; }
17226 if test "${ac_cv_search_tputs+set}" = set; then :
17227 $as_echo_n "(cached) " >&6
17229 ac_func_search_save_LIBS
=$LIBS
17230 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17231 /* end confdefs.h. */
17233 /* Override any GCC internal prototype to avoid an error.
17234 Use char because int might match the return type of a GCC
17235 builtin and then its argument prototype would still apply. */
17248 for ac_lib
in '' ncurses terminfo termcap
; do
17249 if test -z "$ac_lib"; then
17250 ac_res
="none required"
17253 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
17255 if ac_fn_c_try_link
"$LINENO"; then :
17256 ac_cv_search_tputs
=$ac_res
17258 rm -f core conftest.err conftest.
$ac_objext \
17260 if test "${ac_cv_search_tputs+set}" = set; then :
17264 if test "${ac_cv_search_tputs+set}" = set; then :
17267 ac_cv_search_tputs
=no
17269 rm conftest.
$ac_ext
17270 LIBS
=$ac_func_search_save_LIBS
17272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tputs" >&5
17273 $as_echo "$ac_cv_search_tputs" >&6; }
17274 ac_res
=$ac_cv_search_tputs
17275 if test "$ac_res" != no
; then :
17276 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
17279 have_tputs_et_al
=false
17282 if test "$have_tputs_et_al" != true
; then
17283 as_fn_error $?
"I couldn't find termcap functions (tputs and friends).
17284 Maybe some development libraries/packages are missing? Try installing
17285 libncurses-dev(el), libterminfo-dev(el) or similar." "$LINENO" 5
17287 # Must define this when any termcap library is found.
17289 $as_echo "#define HAVE_LIBNCURSES 1" >>confdefs.h
17291 ## FIXME This was the cpp logic, but I am not sure it is right.
17292 ## The above test has not necessarily found libncurses.
17293 HAVE_LIBNCURSES
=yes
17295 ## Use terminfo instead of termcap?
17296 ## Note only system files NOT using terminfo are:
17297 ## freebsd < 40000, ms-w32, msdos, netbsd < 599002500, and
17298 ## darwin|gnu without ncurses.
17302 ## cygwin: Fewer environment variables to go wrong, more terminal types.
17303 ## hpux10-20: Use the system provided termcap(3) library.
17304 ## openbsd: David Mazieres <dm@reeducation-labor.lcs.mit.edu> says this
17305 ## is necessary. Otherwise Emacs dumps core when run -nw.
17306 aix4-2|cygwin|hpux
*|irix6-5|openbsd|sol2
*|unixware
) TERMINFO
=yes ;;
17308 ## darwin: Prevents crashes when running Emacs in Terminal.app under 10.2.
17309 ## The ncurses library has been moved out of the System framework in
17310 ## Mac OS X 10.2. So if configure detects it, set the command-line
17311 ## option to use it.
17313 ## (HAVE_LIBNCURSES was not always true, but is since 2010-03-18.)
17314 if test "x$HAVE_LIBNCURSES" = "xyes"; then
17316 LIBS_TERMCAP
="-lncurses"
17321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FreeBSD is new enough to use terminfo" >&5
17322 $as_echo_n "checking whether FreeBSD is new enough to use terminfo... " >&6; }
17323 if test "${emacs_cv_freebsd_terminfo+set}" = set; then :
17324 $as_echo_n "(cached) " >&6
17326 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17327 /* end confdefs.h. */
17328 #include <osreldate.h>
17332 #if __FreeBSD_version < 400000
17340 if ac_fn_c_try_link
"$LINENO"; then :
17341 emacs_cv_freebsd_terminfo
=yes
17343 emacs_cv_freebsd_terminfo
=no
17345 rm -f core conftest.err conftest.
$ac_objext \
17346 conftest
$ac_exeext conftest.
$ac_ext
17350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_freebsd_terminfo" >&5
17351 $as_echo "$emacs_cv_freebsd_terminfo" >&6; }
17353 if test $emacs_cv_freebsd_terminfo = yes; then
17355 LIBS_TERMCAP
="-lncurses"
17357 LIBS_TERMCAP
="-ltermcap"
17362 if test $ac_cv_search_tputs = -lterminfo; then
17364 LIBS_TERMCAP
="-lterminfo"
17366 LIBS_TERMCAP
="-ltermcap"
17373 ## hpux: Make sure we get select from libc rather than from libcurses
17374 ## because libcurses on HPUX 10.10 has a broken version of select.
17375 ## We used to use -lc -lcurses, but this may be cleaner.
17376 hpux
*) LIBS_TERMCAP
="-ltermcap" ;;
17378 openbsd
) LIBS_TERMCAP
="-lncurses" ;;
17380 ## Must use system termcap, if we use any termcap. It does special things.
17381 sol2
*) test "$TERMINFO" != yes && LIBS_TERMCAP
="-ltermcap" ;;
17384 TERMCAP_OBJ
=tparam.o
17385 if test $TERMINFO = yes; then
17387 $as_echo "#define TERMINFO 1" >>confdefs.h
17390 ## Default used to be -ltermcap. Add a case above if need something else.
17391 test "x$LIBS_TERMCAP" = "x" && LIBS_TERMCAP
="-lcurses"
17393 TERMCAP_OBJ
=terminfo.o
17399 # Do we have res_init, for detecting changes in /etc/resolv.conf?
17401 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17402 /* end confdefs.h. */
17403 #include <netinet/in.h>
17404 #include <arpa/nameser.h>
17405 #include <resolv.h>
17414 if ac_fn_c_try_link
"$LINENO"; then :
17419 rm -f core conftest.err conftest.
$ac_objext \
17420 conftest
$ac_exeext conftest.
$ac_ext
17421 if test "$have_res_init" = no
; then
17423 LIBS
="$LIBS -lresolv"
17424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5
17425 $as_echo_n "checking for res_init with -lresolv... " >&6; }
17426 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17427 /* end confdefs.h. */
17428 #include <netinet/in.h>
17429 #include <arpa/nameser.h>
17430 #include <resolv.h>
17439 if ac_fn_c_try_link
"$LINENO"; then :
17444 rm -f core conftest.err conftest.
$ac_objext \
17445 conftest
$ac_exeext conftest.
$ac_ext
17446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5
17447 $as_echo "$have_res_init" >&6; }
17448 if test "$have_res_init" = yes ; then
17454 if test "$have_res_init" = yes; then
17456 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
17460 # Do we need the Hesiod library to provide the support routines?
17462 if test "$with_hesiod" != no
; then
17463 # Don't set $LIBS here -- see comments above. FIXME which comments?
17464 ac_fn_c_check_func
"$LINENO" "res_send" "ac_cv_func_res_send"
17465 if test "x$ac_cv_func_res_send" = x
""yes; then :
17468 ac_fn_c_check_func
"$LINENO" "__res_send" "ac_cv_func___res_send"
17469 if test "x$ac_cv_func___res_send" = x
""yes; then :
17472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5
17473 $as_echo_n "checking for res_send in -lresolv... " >&6; }
17474 if test "${ac_cv_lib_resolv_res_send+set}" = set; then :
17475 $as_echo_n "(cached) " >&6
17477 ac_check_lib_save_LIBS
=$LIBS
17478 LIBS
="-lresolv $LIBS"
17479 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17480 /* end confdefs.h. */
17482 /* Override any GCC internal prototype to avoid an error.
17483 Use char because int might match the return type of a GCC
17484 builtin and then its argument prototype would still apply. */
17492 return res_send ();
17497 if ac_fn_c_try_link
"$LINENO"; then :
17498 ac_cv_lib_resolv_res_send
=yes
17500 ac_cv_lib_resolv_res_send
=no
17502 rm -f core conftest.err conftest.
$ac_objext \
17503 conftest
$ac_exeext conftest.
$ac_ext
17504 LIBS
=$ac_check_lib_save_LIBS
17506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5
17507 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
17508 if test "x$ac_cv_lib_resolv_res_send" = x
""yes; then :
17511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5
17512 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
17513 if test "${ac_cv_lib_resolv___res_send+set}" = set; then :
17514 $as_echo_n "(cached) " >&6
17516 ac_check_lib_save_LIBS
=$LIBS
17517 LIBS
="-lresolv $LIBS"
17518 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17519 /* end confdefs.h. */
17521 /* Override any GCC internal prototype to avoid an error.
17522 Use char because int might match the return type of a GCC
17523 builtin and then its argument prototype would still apply. */
17527 char __res_send ();
17531 return __res_send ();
17536 if ac_fn_c_try_link
"$LINENO"; then :
17537 ac_cv_lib_resolv___res_send
=yes
17539 ac_cv_lib_resolv___res_send
=no
17541 rm -f core conftest.err conftest.
$ac_objext \
17542 conftest
$ac_exeext conftest.
$ac_ext
17543 LIBS
=$ac_check_lib_save_LIBS
17545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5
17546 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
17547 if test "x$ac_cv_lib_resolv___res_send" = x
""yes; then :
17557 if test "$resolv" = yes ; then
17562 ac_fn_c_check_func
"$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost"
17563 if test "x$ac_cv_func_hes_getmailhost" = x
""yes; then :
17566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5
17567 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
17568 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then :
17569 $as_echo_n "(cached) " >&6
17571 ac_check_lib_save_LIBS
=$LIBS
17572 LIBS
="-lhesiod $RESOLVLIB $LIBS"
17573 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17574 /* end confdefs.h. */
17576 /* Override any GCC internal prototype to avoid an error.
17577 Use char because int might match the return type of a GCC
17578 builtin and then its argument prototype would still apply. */
17582 char hes_getmailhost ();
17586 return hes_getmailhost ();
17591 if ac_fn_c_try_link
"$LINENO"; then :
17592 ac_cv_lib_hesiod_hes_getmailhost
=yes
17594 ac_cv_lib_hesiod_hes_getmailhost
=no
17596 rm -f core conftest.err conftest.
$ac_objext \
17597 conftest
$ac_exeext conftest.
$ac_ext
17598 LIBS
=$ac_check_lib_save_LIBS
17600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
17601 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
17602 if test "x$ac_cv_lib_hesiod_hes_getmailhost" = x
""yes; then :
17611 if test x
"$hesiod" = xyes
; then
17613 $as_echo "#define HAVE_LIBHESIOD 1" >>confdefs.h
17620 # Do we need libresolv (due to res_init or Hesiod)?
17621 if test "$resolv" = yes ; then
17623 $as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
17631 # These tell us which Kerberos-related libraries to use.
17638 if test "${with_kerberos}" != no
; then
17639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
17640 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
17641 if test "${ac_cv_lib_com_err_com_err+set}" = set; then :
17642 $as_echo_n "(cached) " >&6
17644 ac_check_lib_save_LIBS
=$LIBS
17645 LIBS
="-lcom_err $LIBS"
17646 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17647 /* end confdefs.h. */
17649 /* Override any GCC internal prototype to avoid an error.
17650 Use char because int might match the return type of a GCC
17651 builtin and then its argument prototype would still apply. */
17664 if ac_fn_c_try_link
"$LINENO"; then :
17665 ac_cv_lib_com_err_com_err
=yes
17667 ac_cv_lib_com_err_com_err
=no
17669 rm -f core conftest.err conftest.
$ac_objext \
17670 conftest
$ac_exeext conftest.
$ac_ext
17671 LIBS
=$ac_check_lib_save_LIBS
17673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
17674 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
17675 if test "x$ac_cv_lib_com_err_com_err" = x
""yes; then :
17681 if test $have_com_err = yes; then
17682 COM_ERRLIB
=-lcom_err
17683 LIBS
="$COM_ERRLIB $LIBS"
17685 $as_echo "#define HAVE_LIBCOM_ERR 1" >>confdefs.h
17688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5
17689 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
17690 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then :
17691 $as_echo_n "(cached) " >&6
17693 ac_check_lib_save_LIBS
=$LIBS
17694 LIBS
="-lcrypto $LIBS"
17695 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17696 /* end confdefs.h. */
17698 /* Override any GCC internal prototype to avoid an error.
17699 Use char because int might match the return type of a GCC
17700 builtin and then its argument prototype would still apply. */
17704 char mit_des_cbc_encrypt ();
17708 return mit_des_cbc_encrypt ();
17713 if ac_fn_c_try_link
"$LINENO"; then :
17714 ac_cv_lib_crypto_mit_des_cbc_encrypt
=yes
17716 ac_cv_lib_crypto_mit_des_cbc_encrypt
=no
17718 rm -f core conftest.err conftest.
$ac_objext \
17719 conftest
$ac_exeext conftest.
$ac_ext
17720 LIBS
=$ac_check_lib_save_LIBS
17722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
17723 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
17724 if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = x
""yes; then :
17730 if test $have_crypto = yes; then
17732 LIBS
="$CRYPTOLIB $LIBS"
17734 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
17737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
17738 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
17739 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then :
17740 $as_echo_n "(cached) " >&6
17742 ac_check_lib_save_LIBS
=$LIBS
17743 LIBS
="-lk5crypto $LIBS"
17744 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17745 /* end confdefs.h. */
17747 /* Override any GCC internal prototype to avoid an error.
17748 Use char because int might match the return type of a GCC
17749 builtin and then its argument prototype would still apply. */
17753 char mit_des_cbc_encrypt ();
17757 return mit_des_cbc_encrypt ();
17762 if ac_fn_c_try_link
"$LINENO"; then :
17763 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=yes
17765 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=no
17767 rm -f core conftest.err conftest.
$ac_objext \
17768 conftest
$ac_exeext conftest.
$ac_ext
17769 LIBS
=$ac_check_lib_save_LIBS
17771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
17772 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
17773 if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = x
""yes; then :
17779 if test $have_k5crypto = yes; then
17780 CRYPTOLIB
=-lk5crypto
17781 LIBS
="$CRYPTOLIB $LIBS"
17783 $as_echo "#define HAVE_LIBK5CRYPTO 1" >>confdefs.h
17786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
17787 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
17788 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then :
17789 $as_echo_n "(cached) " >&6
17791 ac_check_lib_save_LIBS
=$LIBS
17792 LIBS
="-lkrb5 $LIBS"
17793 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17794 /* end confdefs.h. */
17796 /* Override any GCC internal prototype to avoid an error.
17797 Use char because int might match the return type of a GCC
17798 builtin and then its argument prototype would still apply. */
17802 char krb5_init_context ();
17806 return krb5_init_context ();
17811 if ac_fn_c_try_link
"$LINENO"; then :
17812 ac_cv_lib_krb5_krb5_init_context
=yes
17814 ac_cv_lib_krb5_krb5_init_context
=no
17816 rm -f core conftest.err conftest.
$ac_objext \
17817 conftest
$ac_exeext conftest.
$ac_ext
17818 LIBS
=$ac_check_lib_save_LIBS
17820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
17821 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
17822 if test "x$ac_cv_lib_krb5_krb5_init_context" = x
""yes; then :
17828 if test $have_krb5=yes; then
17830 LIBS
="$KRB5LIB $LIBS"
17832 $as_echo "#define HAVE_LIBKRB5 1" >>confdefs.h
17835 if test "${with_kerberos5}" = no
; then
17836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
17837 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
17838 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then :
17839 $as_echo_n "(cached) " >&6
17841 ac_check_lib_save_LIBS
=$LIBS
17842 LIBS
="-ldes425 $LIBS"
17843 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17844 /* end confdefs.h. */
17846 /* Override any GCC internal prototype to avoid an error.
17847 Use char because int might match the return type of a GCC
17848 builtin and then its argument prototype would still apply. */
17852 char des_cbc_encrypt ();
17856 return des_cbc_encrypt ();
17861 if ac_fn_c_try_link
"$LINENO"; then :
17862 ac_cv_lib_des425_des_cbc_encrypt
=yes
17864 ac_cv_lib_des425_des_cbc_encrypt
=no
17866 rm -f core conftest.err conftest.
$ac_objext \
17867 conftest
$ac_exeext conftest.
$ac_ext
17868 LIBS
=$ac_check_lib_save_LIBS
17870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
17871 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
17872 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = x
""yes; then :
17878 if test $have_des425 = yes; then
17880 LIBS
="$DESLIB $LIBS"
17882 $as_echo "#define HAVE_LIBDES425 1" >>confdefs.h
17885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
17886 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
17887 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then :
17888 $as_echo_n "(cached) " >&6
17890 ac_check_lib_save_LIBS
=$LIBS
17892 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17893 /* end confdefs.h. */
17895 /* Override any GCC internal prototype to avoid an error.
17896 Use char because int might match the return type of a GCC
17897 builtin and then its argument prototype would still apply. */
17901 char des_cbc_encrypt ();
17905 return des_cbc_encrypt ();
17910 if ac_fn_c_try_link
"$LINENO"; then :
17911 ac_cv_lib_des_des_cbc_encrypt
=yes
17913 ac_cv_lib_des_des_cbc_encrypt
=no
17915 rm -f core conftest.err conftest.
$ac_objext \
17916 conftest
$ac_exeext conftest.
$ac_ext
17917 LIBS
=$ac_check_lib_save_LIBS
17919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
17920 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
17921 if test "x$ac_cv_lib_des_des_cbc_encrypt" = x
""yes; then :
17927 if test $have_des = yes; then
17929 LIBS
="$DESLIB $LIBS"
17931 $as_echo "#define HAVE_LIBDES 1" >>confdefs.h
17935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5
17936 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
17937 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then :
17938 $as_echo_n "(cached) " >&6
17940 ac_check_lib_save_LIBS
=$LIBS
17941 LIBS
="-lkrb4 $LIBS"
17942 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17943 /* end confdefs.h. */
17945 /* Override any GCC internal prototype to avoid an error.
17946 Use char because int might match the return type of a GCC
17947 builtin and then its argument prototype would still apply. */
17951 char krb_get_cred ();
17955 return krb_get_cred ();
17960 if ac_fn_c_try_link
"$LINENO"; then :
17961 ac_cv_lib_krb4_krb_get_cred
=yes
17963 ac_cv_lib_krb4_krb_get_cred
=no
17965 rm -f core conftest.err conftest.
$ac_objext \
17966 conftest
$ac_exeext conftest.
$ac_ext
17967 LIBS
=$ac_check_lib_save_LIBS
17969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5
17970 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
17971 if test "x$ac_cv_lib_krb4_krb_get_cred" = x
""yes; then :
17977 if test $have_krb4 = yes; then
17979 LIBS
="$KRB4LIB $LIBS"
17981 $as_echo "#define HAVE_LIBKRB4 1" >>confdefs.h
17984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5
17985 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
17986 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then :
17987 $as_echo_n "(cached) " >&6
17989 ac_check_lib_save_LIBS
=$LIBS
17991 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17992 /* end confdefs.h. */
17994 /* Override any GCC internal prototype to avoid an error.
17995 Use char because int might match the return type of a GCC
17996 builtin and then its argument prototype would still apply. */
18000 char krb_get_cred ();
18004 return krb_get_cred ();
18009 if ac_fn_c_try_link
"$LINENO"; then :
18010 ac_cv_lib_krb_krb_get_cred
=yes
18012 ac_cv_lib_krb_krb_get_cred
=no
18014 rm -f core conftest.err conftest.
$ac_objext \
18015 conftest
$ac_exeext conftest.
$ac_ext
18016 LIBS
=$ac_check_lib_save_LIBS
18018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5
18019 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
18020 if test "x$ac_cv_lib_krb_krb_get_cred" = x
""yes; then :
18026 if test $have_krb = yes; then
18028 LIBS
="$KRB4LIB $LIBS"
18030 $as_echo "#define HAVE_LIBKRB 1" >>confdefs.h
18036 if test "${with_kerberos5}" != no
; then
18037 for ac_header
in krb5.h
18039 ac_fn_c_check_header_mongrel
"$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
18040 if test "x$ac_cv_header_krb5_h" = x
""yes; then :
18041 cat >>confdefs.h
<<_ACEOF
18042 #define HAVE_KRB5_H 1
18044 ac_fn_c_check_member
"$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h>
18046 if test "x$ac_cv_member_krb5_error_text" = x
""yes; then :
18048 cat >>confdefs.h
<<_ACEOF
18049 #define HAVE_KRB5_ERROR_TEXT 1
18054 ac_fn_c_check_member
"$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h>
18056 if test "x$ac_cv_member_krb5_error_e_text" = x
""yes; then :
18058 cat >>confdefs.h
<<_ACEOF
18059 #define HAVE_KRB5_ERROR_E_TEXT 1
18070 for ac_header
in des.h
18072 ac_fn_c_check_header_mongrel
"$LINENO" "des.h" "ac_cv_header_des_h" "$ac_includes_default"
18073 if test "x$ac_cv_header_des_h" = x
""yes; then :
18074 cat >>confdefs.h
<<_ACEOF
18075 #define HAVE_DES_H 1
18079 for ac_header
in kerberosIV
/des.h
18081 ac_fn_c_check_header_mongrel
"$LINENO" "kerberosIV/des.h" "ac_cv_header_kerberosIV_des_h" "$ac_includes_default"
18082 if test "x$ac_cv_header_kerberosIV_des_h" = x
""yes; then :
18083 cat >>confdefs.h
<<_ACEOF
18084 #define HAVE_KERBEROSIV_DES_H 1
18088 for ac_header
in kerberos
/des.h
18090 ac_fn_c_check_header_mongrel
"$LINENO" "kerberos/des.h" "ac_cv_header_kerberos_des_h" "$ac_includes_default"
18091 if test "x$ac_cv_header_kerberos_des_h" = x
""yes; then :
18092 cat >>confdefs.h
<<_ACEOF
18093 #define HAVE_KERBEROS_DES_H 1
18108 for ac_header
in krb.h
18110 ac_fn_c_check_header_mongrel
"$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
18111 if test "x$ac_cv_header_krb_h" = x
""yes; then :
18112 cat >>confdefs.h
<<_ACEOF
18113 #define HAVE_KRB_H 1
18117 for ac_header
in kerberosIV
/krb.h
18119 ac_fn_c_check_header_mongrel
"$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default"
18120 if test "x$ac_cv_header_kerberosIV_krb_h" = x
""yes; then :
18121 cat >>confdefs.h
<<_ACEOF
18122 #define HAVE_KERBEROSIV_KRB_H 1
18126 for ac_header
in kerberos
/krb.h
18128 ac_fn_c_check_header_mongrel
"$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default"
18129 if test "x$ac_cv_header_kerberos_krb_h" = x
""yes; then :
18130 cat >>confdefs.h
<<_ACEOF
18131 #define HAVE_KERBEROS_KRB_H 1
18147 for ac_header
in com_err.h
18149 ac_fn_c_check_header_mongrel
"$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default"
18150 if test "x$ac_cv_header_com_err_h" = x
""yes; then :
18151 cat >>confdefs.h
<<_ACEOF
18152 #define HAVE_COM_ERR_H 1
18167 # Solaris requires -lintl if you want strerror (which calls dgettext)
18168 # to return localized messages.
18169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in -lintl" >&5
18170 $as_echo_n "checking for dgettext in -lintl... " >&6; }
18171 if test "${ac_cv_lib_intl_dgettext+set}" = set; then :
18172 $as_echo_n "(cached) " >&6
18174 ac_check_lib_save_LIBS
=$LIBS
18175 LIBS
="-lintl $LIBS"
18176 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18177 /* end confdefs.h. */
18179 /* Override any GCC internal prototype to avoid an error.
18180 Use char because int might match the return type of a GCC
18181 builtin and then its argument prototype would still apply. */
18189 return dgettext ();
18194 if ac_fn_c_try_link
"$LINENO"; then :
18195 ac_cv_lib_intl_dgettext
=yes
18197 ac_cv_lib_intl_dgettext
=no
18199 rm -f core conftest.err conftest.
$ac_objext \
18200 conftest
$ac_exeext conftest.
$ac_ext
18201 LIBS
=$ac_check_lib_save_LIBS
18203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dgettext" >&5
18204 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
18205 if test "x$ac_cv_lib_intl_dgettext" = x
""yes; then :
18206 cat >>confdefs.h
<<_ACEOF
18207 #define HAVE_LIBINTL 1
18210 LIBS
="-lintl $LIBS"
18215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5
18216 $as_echo_n "checking whether localtime caches TZ... " >&6; }
18217 if test "${emacs_cv_localtime_cache+set}" = set; then :
18218 $as_echo_n "(cached) " >&6
18220 if test x
$ac_cv_func_tzset = xyes
; then
18221 if test "$cross_compiling" = yes; then :
18222 # If we have tzset, assume the worst when cross-compiling.
18223 emacs_cv_localtime_cache
=yes
18225 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18226 /* end confdefs.h. */
18228 char TZ_GMT0[] = "TZ=GMT0";
18229 char TZ_PST8[] = "TZ=PST8";
18232 time_t now = time ((time_t *) 0);
18233 int hour_GMT0, hour_unset;
18234 if (putenv (TZ_GMT0) != 0)
18236 hour_GMT0 = localtime (&now)->tm_hour;
18238 hour_unset = localtime (&now)->tm_hour;
18239 if (putenv (TZ_PST8) != 0)
18241 if (localtime (&now)->tm_hour == hour_GMT0)
18244 if (localtime (&now)->tm_hour != hour_unset)
18249 if ac_fn_c_try_run
"$LINENO"; then :
18250 emacs_cv_localtime_cache
=no
18252 emacs_cv_localtime_cache
=yes
18254 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
18255 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18259 # If we lack tzset, report that localtime does not cache TZ,
18260 # since we can't invalidate the cache if we don't have tzset.
18261 emacs_cv_localtime_cache
=no
18264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5
18265 $as_echo "$emacs_cv_localtime_cache" >&6; }
18266 if test $emacs_cv_localtime_cache = yes; then
18268 $as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h
18272 if test "x$HAVE_TIMEVAL" = xyes
; then
18273 for ac_func
in gettimeofday
18275 ac_fn_c_check_func
"$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
18276 if test "x$ac_cv_func_gettimeofday" = x
""yes; then :
18277 cat >>confdefs.h
<<_ACEOF
18278 #define HAVE_GETTIMEOFDAY 1
18284 if test $ac_cv_func_gettimeofday = yes; then
18285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday can accept two arguments" >&5
18286 $as_echo_n "checking whether gettimeofday can accept two arguments... " >&6; }
18287 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then :
18288 $as_echo_n "(cached) " >&6
18290 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18291 /* end confdefs.h. */
18293 #ifdef TIME_WITH_SYS_TIME
18294 #include <sys/time.h>
18297 #ifdef HAVE_SYS_TIME_H
18298 #include <sys/time.h>
18306 struct timeval time;
18307 gettimeofday (&time, 0);
18312 if ac_fn_c_try_compile
"$LINENO"; then :
18313 emacs_cv_gettimeofday_two_arguments
=yes
18315 emacs_cv_gettimeofday_two_arguments
=no
18317 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_gettimeofday_two_arguments" >&5
18320 $as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; }
18321 if test $emacs_cv_gettimeofday_two_arguments = no
; then
18323 $as_echo "#define GETTIMEOFDAY_ONE_ARGUMENT 1" >>confdefs.h
18330 ac_fn_c_check_func
"$LINENO" "socket" "ac_cv_func_socket"
18331 if test "x$ac_cv_func_socket" = x
""yes; then :
18337 if test $ok_so_far = yes; then
18338 ac_fn_c_check_header_mongrel
"$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
18339 if test "x$ac_cv_header_netinet_in_h" = x
""yes; then :
18347 if test $ok_so_far = yes; then
18348 ac_fn_c_check_header_mongrel
"$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
18349 if test "x$ac_cv_header_arpa_inet_h" = x
""yes; then :
18357 if test $ok_so_far = yes; then
18359 $as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h
18363 if test -f /usr
/lpp
/X11
/bin
/smt.exp
; then
18365 $as_echo "#define HAVE_AIX_SMT_EXP 1" >>confdefs.h
18369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports dynamic ptys" >&5
18370 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
18371 if test -d /dev
/pts
&& ls -d /dev
/ptmx
> /dev
/null
2>&1 ; then
18372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18373 $as_echo "yes" >&6; }
18375 $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
18378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18379 $as_echo "no" >&6; }
18382 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
18383 if test "x$ac_cv_type_pid_t" = x
""yes; then :
18387 cat >>confdefs.h
<<_ACEOF
18393 for ac_header
in vfork.h
18395 ac_fn_c_check_header_mongrel
"$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
18396 if test "x$ac_cv_header_vfork_h" = x
""yes; then :
18397 cat >>confdefs.h
<<_ACEOF
18398 #define HAVE_VFORK_H 1
18405 for ac_func
in fork vfork
18407 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18408 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
18409 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
18410 cat >>confdefs.h
<<_ACEOF
18411 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18417 if test "x$ac_cv_func_fork" = xyes
; then
18418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
18419 $as_echo_n "checking for working fork... " >&6; }
18420 if test "${ac_cv_func_fork_works+set}" = set; then :
18421 $as_echo_n "(cached) " >&6
18423 if test "$cross_compiling" = yes; then :
18424 ac_cv_func_fork_works
=cross
18426 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18427 /* end confdefs.h. */
18428 $ac_includes_default
18433 /* By Ruediger Kuhlmann. */
18434 return fork () < 0;
18440 if ac_fn_c_try_run
"$LINENO"; then :
18441 ac_cv_func_fork_works
=yes
18443 ac_cv_func_fork_works
=no
18445 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
18446 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
18451 $as_echo "$ac_cv_func_fork_works" >&6; }
18454 ac_cv_func_fork_works
=$ac_cv_func_fork
18456 if test "x$ac_cv_func_fork_works" = xcross
; then
18458 *-*-amigaos* |
*-*-msdosdjgpp*)
18459 # Override, as these systems have only a dummy fork() stub
18460 ac_cv_func_fork_works
=no
18463 ac_cv_func_fork_works
=yes
18466 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
18467 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
18469 ac_cv_func_vfork_works
=$ac_cv_func_vfork
18470 if test "x$ac_cv_func_vfork" = xyes
; then
18471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
18472 $as_echo_n "checking for working vfork... " >&6; }
18473 if test "${ac_cv_func_vfork_works+set}" = set; then :
18474 $as_echo_n "(cached) " >&6
18476 if test "$cross_compiling" = yes; then :
18477 ac_cv_func_vfork_works
=cross
18479 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18480 /* end confdefs.h. */
18481 /* Thanks to Paul Eggert for this test. */
18482 $ac_includes_default
18483 #include <sys/wait.h>
18484 #ifdef HAVE_VFORK_H
18485 # include <vfork.h>
18487 /* On some sparc systems, changes by the child to local and incoming
18488 argument registers are propagated back to the parent. The compiler
18489 is told about this with #include <vfork.h>, but some compilers
18490 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
18491 static variable whose address is put into a register that is
18492 clobbered by the vfork. */
18495 sparc_address_test (int arg)
18497 sparc_address_test (arg) int arg;
18500 static pid_t child;
18518 pid_t parent = getpid ();
18521 sparc_address_test (0);
18526 /* Here is another test for sparc vfork register problems. This
18527 test uses lots of local variables, at least as many local
18528 variables as main has allocated so far including compiler
18529 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
18530 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
18531 reuse the register of parent for one of the local variables,
18532 since it will think that parent can't possibly be used any more
18533 in this routine. Assigning to the local variable will thus
18534 munge parent in the parent process. */
18536 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
18537 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
18538 /* Convince the compiler that p..p7 are live; otherwise, it might
18539 use the same hardware register for all 8 local variables. */
18540 if (p != p1 || p != p2 || p != p3 || p != p4
18541 || p != p5 || p != p6 || p != p7)
18544 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
18545 from child file descriptors. If the child closes a descriptor
18546 before it execs or exits, this munges the parent's descriptor
18547 as well. Test for this by closing stdout in the child. */
18548 _exit(close(fileno(stdout)) != 0);
18553 while (wait(&status) != child)
18556 /* Was there some problem with vforking? */
18559 /* Did the child fail? (This shouldn't happen.) */
18562 /* Did the vfork/compiler bug occur? */
18563 || parent != getpid()
18565 /* Did the file descriptor bug occur? */
18566 || fstat(fileno(stdout), &st) != 0
18571 if ac_fn_c_try_run
"$LINENO"; then :
18572 ac_cv_func_vfork_works
=yes
18574 ac_cv_func_vfork_works
=no
18576 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
18577 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
18582 $as_echo "$ac_cv_func_vfork_works" >&6; }
18585 if test "x$ac_cv_func_fork_works" = xcross
; then
18586 ac_cv_func_vfork_works
=$ac_cv_func_vfork
18587 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
18588 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
18591 if test "x$ac_cv_func_vfork_works" = xyes
; then
18593 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
18597 $as_echo "#define vfork fork" >>confdefs.h
18600 if test "x$ac_cv_func_fork_works" = xyes
; then
18602 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
18607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
18608 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
18609 if test "${emacs_cv_langinfo_codeset+set}" = set; then :
18610 $as_echo_n "(cached) " >&6
18612 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18613 /* end confdefs.h. */
18614 #include <langinfo.h>
18618 char* cs = nl_langinfo(CODESET);
18623 if ac_fn_c_try_link
"$LINENO"; then :
18624 emacs_cv_langinfo_codeset
=yes
18626 emacs_cv_langinfo_codeset
=no
18628 rm -f core conftest.err conftest.
$ac_objext \
18629 conftest
$ac_exeext conftest.
$ac_ext
18632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5
18633 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
18634 if test $emacs_cv_langinfo_codeset = yes; then
18636 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
18640 ac_fn_c_check_type
"$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
18641 if test "x$ac_cv_type_size_t" = x
""yes; then :
18643 cat >>confdefs.h
<<_ACEOF
18644 #define HAVE_SIZE_T 1
18651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
18652 $as_echo_n "checking for mbstate_t... " >&6; }
18653 if test "${ac_cv_type_mbstate_t+set}" = set; then :
18654 $as_echo_n "(cached) " >&6
18656 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18657 /* end confdefs.h. */
18658 $ac_includes_default
18659 # include <wchar.h>
18663 mbstate_t x; return sizeof x;
18668 if ac_fn_c_try_compile
"$LINENO"; then :
18669 ac_cv_type_mbstate_t
=yes
18671 ac_cv_type_mbstate_t
=no
18673 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
18676 $as_echo "$ac_cv_type_mbstate_t" >&6; }
18677 if test $ac_cv_type_mbstate_t = yes; then
18679 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
18683 $as_echo "#define mbstate_t int" >>confdefs.h
18687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5
18688 $as_echo_n "checking for C restricted array declarations... " >&6; }
18689 if test "${emacs_cv_c_restrict_arr+set}" = set; then :
18690 $as_echo_n "(cached) " >&6
18692 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18693 /* end confdefs.h. */
18694 void fred (int x[__restrict]);
18703 if ac_fn_c_try_compile
"$LINENO"; then :
18704 emacs_cv_c_restrict_arr
=yes
18706 emacs_cv_c_restrict_arr
=no
18708 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5
18711 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
18712 if test "$emacs_cv_c_restrict_arr" = yes; then
18714 $as_echo "#define __restrict_arr __restrict" >>confdefs.h
18720 # Set up the CFLAGS for real compilation, so we can substitute it.
18721 CFLAGS
="$REAL_CFLAGS"
18722 CPPFLAGS
="$REAL_CPPFLAGS"
18724 ## Hack to detect a buggy GCC version.
18725 if test "x$GCC" = xyes \
18726 && test x
"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
18727 && test x
"`echo $CFLAGS | grep '\-O[23]'`" != x \
18728 && test x
"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x
; then
18729 as_fn_error $?
"GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." "$LINENO" 5
18732 version
=$PACKAGE_VERSION
18734 ### Specify what sort of things we'll be editing into Makefile and config.h.
18735 ### Use configuration here uncanonicalized to avoid exceeding size limits.
18759 ## FIXME? Nothing uses @LD_SWITCH_X_SITE@.
18760 ## src/Makefile.in did add LD_SWITCH_X_SITE (as a cpp define) to the
18761 ## end of LIBX_BASE, but nothing ever set it.
18766 ## Used in lwlib/Makefile.in.
18768 if test -n "${machfile}"; then
18769 M_FILE
="\$(srcdir)/${machfile}"
18773 S_FILE
="\$(srcdir)/${opsysfile}"
18784 cat >>confdefs.h
<<_ACEOF
18785 #define EMACS_CONFIGURATION "${canonical}"
18789 cat >>confdefs.h
<<_ACEOF
18790 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
18793 if test -n "$machfile"; then
18795 cat >>confdefs.h
<<_ACEOF
18796 #define config_machfile "${machfile}"
18801 cat >>confdefs.h
<<_ACEOF
18802 #define config_opsysfile "${opsysfile}"
18809 if test "${HAVE_X_WINDOWS}" = "yes" ; then
18811 $as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h
18814 XOBJ
="xterm.o xfns.o xselect.o xrdb.o fontset.o xsmfns.o fringe.o image.o xsettings.o xgselect.o"
18816 if test "$HAVE_XFT" = "yes"; then
18817 FONT_OBJ
="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
18818 elif test "$HAVE_FREETYPE" = "yes"; then
18819 FONT_OBJ
="$FONT_OBJ ftfont.o ftxfont.o"
18829 if test "${USE_X_TOOLKIT}" != "none" ; then
18830 WIDGET_OBJ
=widget.o
18832 $as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h
18834 if test "${USE_X_TOOLKIT}" = "LUCID"; then
18836 $as_echo "#define USE_LUCID 1" >>confdefs.h
18838 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
18840 $as_echo "#define USE_MOTIF 1" >>confdefs.h
18845 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
18846 MOTIF_LIBW
="$MOTIF_LIBW -lXpm"
18850 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
18851 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
18852 MOTIF_LIBW
="MOTIF_LIBW -lXimp"
18856 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
18857 MOTIF_LIBW
="$MOTIF_LIBW -li18n"
18860 MOTIF_LIBW
="$MOTIF_LIBW $LIBXP"
18866 case "$USE_X_TOOLKIT" in
18867 MOTIF
) TOOLKIT_LIBW
="$MOTIF_LIBW" ;;
18868 LUCID
) TOOLKIT_LIBW
="$LUCID_LIBW" ;;
18869 none
) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW
="$GTK_LIBS" ;;
18873 if test "$USE_X_TOOLKIT" = "none"; then
18874 LIBXT_OTHER
="\$(LIBXSM)"
18875 OLDXMENU_TARGET
="really-oldXMenu"
18877 LIBXT_OTHER
="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext"
18878 OLDXMENU_TARGET
="really-lwlib"
18882 ## The X Menu stuff is present in the X10 distribution, but missing
18883 ## from X11. If we have X10, just use the installed library;
18884 ## otherwise, use our own copy.
18885 if test "${HAVE_X11}" = "yes" ; then
18887 $as_echo "#define HAVE_X11 1" >>confdefs.h
18890 if test "$USE_X_TOOLKIT" = "none"; then
18891 OLDXMENU
="\${oldXMenudir}/libXMenu11.a"
18893 OLDXMENU
="\${lwlibdir}/liblw.a"
18895 LIBXMENU
="\$(OLDXMENU)"
18896 LIBX_OTHER
="\$(LIBXT) \$(LIBX_EXTRA)"
18897 OLDXMENU_DEPS
="\${OLDXMENU} ../src/\${OLDXMENU}"
18899 ## For a syntactically valid Makefile; not actually used for anything.
18900 ## See comments in src/Makefile.in.
18902 ## FIXME This case (!HAVE_X11 && HAVE_X_WINDOWS) is no longer possible(?).
18903 if test "${HAVE_X_WINDOWS}" = "yes"; then
18912 if test "$HAVE_GTK" = "yes" ||
test "$HAVE_MENUS" != "yes"; then
18925 if test "${HAVE_MENUS}" = "yes" ; then
18927 $as_echo "#define HAVE_MENUS 1" >>confdefs.h
18931 if test "${GNU_MALLOC}" = "yes" ; then
18933 $as_echo "#define GNU_MALLOC 1" >>confdefs.h
18938 if test "${REL_ALLOC}" = "yes" ; then
18940 $as_echo "#define REL_ALLOC 1" >>confdefs.h
18943 test "$system_malloc" != "yes" && RALLOC_OBJ
=ralloc.o
18947 if test "$opsys" = "cygwin"; then
18948 CYGWIN_OBJ
="sheap.o"
18949 ## Cygwin differs because of its unexec().
18951 POST_ALLOC_OBJ
=lastfile.o
18954 PRE_ALLOC_OBJ
=lastfile.o
18963 aix4-2
) LD_SWITCH_SYSTEM_TEMACS
="-Wl,-bnodelcsect" ;;
18966 ## The -headerpad option tells ld (see man page) to leave room at the
18967 ## end of the header for adding load commands. Needed for dumping.
18968 ## 0x690 is the total size of 30 segment load commands (at 56
18969 ## each); under Cocoa 31 commands are required.
18970 if test "$HAVE_NS" = "yes"; then
18971 libs_nsgui
="-framework AppKit"
18972 headerpad_extra
=6C8
18975 headerpad_extra
=690
18977 LD_SWITCH_SYSTEM_TEMACS
="-prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra"
18979 ## This is here because src/Makefile.in did some extra fiddling around
18980 ## with LD_SWITCH_SYSTEM. The cpp logic was:
18981 ## #ifndef LD_SWITCH_SYSTEM
18982 ## #if !defined (__GNUC__) && ((defined (BSD_SYSTEM) && !defined (COFF)))
18983 ## Since all the *bsds define LD_SWITCH_SYSTEM, this simplifies to:
18984 ## not using gcc, darwin system not on an alpha (ie darwin, since
18985 ## darwin + alpha does not occur).
18986 ## Because this was done in src/Makefile.in, the resulting part of
18987 ## LD_SWITCH_SYSTEM was not used in configure (ie, in ac_link).
18988 ## It therefore seems cleaner to put this in LD_SWITCH_SYSTEM_TEMACS,
18989 ## rather than LD_SWITCH_SYSTEM.
18990 test "x$LD_SWITCH_SYSTEM" = "x" && test "x$GCC" != "xyes" && \
18991 LD_SWITCH_SYSTEM_TEMACS
="-X $LD_SWITCH_SYSTEM_TEMACS"
18994 ## LD_SWITCH_X_SITE_AUX is a -R option saying where to find X at run-time.
18995 ## When handled by cpp, this was in LD_SWITCH_SYSTEM. However, at
18996 ## the point where configure sourced the s/*.h file, LD_SWITCH_X_SITE_AUX
18997 ## had not yet been defined and was expanded to null. Hence LD_SWITCH_SYSTEM
18998 ## had different values in configure (in ac_link) and src/Makefile.in.
18999 ## It seems clearer therefore to put this piece in LD_SWITCH_SYSTEM_TEMACS.
19000 gnu-linux
) LD_SWITCH_SYSTEM_TEMACS
="\$(LD_SWITCH_X_SITE_AUX)" ;;
19002 *) LD_SWITCH_SYSTEM_TEMACS
= ;;
19005 if test "$NS_IMPL_GNUSTEP" = "yes"; then
19006 LD_SWITCH_SYSTEM_TEMACS
="${LD_SWITCH_SYSTEM_TEMACS} -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES} -lgnustep-gui -lgnustep-base -lobjc -lpthread"
19015 ## gnu: GNU needs its own crt0.
19016 aix4-2|cygwin|darwin|gnu|hpux
*|irix6-5|sol2
*|unixware
) ORDINARY_LINK
=yes ;;
19018 ## On post 1.3 releases of NetBSD, gcc -nostdlib also clears the
19019 ## library search parth, i.e. it won't search /usr/lib for libc and
19020 ## friends. Using -nostartfiles instead avoids this problem, and
19021 ## will also work on earlier NetBSD releases.
19022 netbsd|openbsd
) LD_FIRSTFLAG
="-nostartfiles" ;;
19024 ## macpcc: NAKAJI Hiroyuki <nakaji@tutrp.tut.ac.jp> says
19025 ## MkLinux/LinuxPPC needs this.
19026 ## ibms390x only supports opsys = gnu-linux so it can be added here.
19029 macppc|ibms390x
) LD_FIRSTFLAG
="-nostdlib" ;;
19035 if test "x$ORDINARY_LINK" = "xyes"; then
19039 $as_echo "#define ORDINARY_LINK 1" >>confdefs.h
19042 ## The system files defining neither ORDINARY_LINK nor LD_FIRSTFLAG are:
19043 ## freebsd, gnu-* not on macppc|ibms390x.
19044 elif test "x$GCC" = "xyes" && test "x$LD_FIRSTFLAG" = "x"; then
19046 ## Versions of GCC >= 2.0 put their library, libgcc.a, in obscure
19047 ## places that are difficult to figure out at make time. Fortunately,
19048 ## these same versions allow you to pass arbitrary flags on to the
19049 ## linker, so there is no reason not to use it as a linker.
19051 ## Well, it is not quite perfect. The "-nostdlib" keeps GCC from
19052 ## searching for libraries in its internal directories, so we have to
19053 ## ask GCC explicitly where to find libgcc.a (LIB_GCC below).
19054 LD_FIRSTFLAG
="-nostdlib"
19057 ## FIXME? What setting of EDIT_LDFLAGS should this have?
19058 test "$NS_IMPL_GNUSTEP" = "yes" && LD_FIRSTFLAG
="-rdynamic"
19063 ## FIXME? The logic here is not precisely the same as that above.
19064 ## There is no check here for a pre-defined LD_FIRSTFLAG.
19065 ## Should we only be setting LIB_GCC if LD ~ -nostdlib?
19067 if test "x$GCC" = "xyes" && test "x$ORDINARY_LINK" != "xyes"; then
19070 freebsd|netbsd|openbsd
) LIB_GCC
= ;;
19073 ## armin76@gentoo.org reported that the lgcc_s flag is necessary to
19074 ## build on ARM EABI under GNU/Linux. (Bug#5518)
19080 ## FIXME? s/gnu-linux.h used to define LIB_GCC as below, then
19081 ## immediately undefine it again and redefine it to empty.
19082 ## Was the C_SWITCH_X_SITE part really necessary?
19083 ## LIB_GCC=`$CC $C_SWITCH_X_SITE -print-libgcc-file-name`
19089 ## Ask GCC where to find libgcc.a.
19090 *) LIB_GCC
=`$CC -print-libgcc-file-name 2> /dev/null` ;;
19097 ## If we're using X11/GNUstep, define some consequences.
19098 if test "$HAVE_X_WINDOWS" = "yes" ||
test "$HAVE_NS" = "yes"; then
19100 $as_echo "#define HAVE_WINDOW_SYSTEM 1" >>confdefs.h
19103 $as_echo "#define HAVE_MOUSE 1" >>confdefs.h
19105 MOUSE_SUPPORT
="\$(REAL_MOUSE_SUPPORT)"
19106 TOOLTIP_SUPPORT
="\${lispsource}/mouse.elc"
19108 WINDOW_SUPPORT
="\$(BASE_WINDOW_SUPPORT)"
19109 test "$HAVE_X_WINDOWS" = "yes" && \
19110 WINDOW_SUPPORT
="$WINDOW_SUPPORT \$(X_WINDOW_SUPPORT)"
19120 #### Report on what we decided to do.
19121 #### Report GTK as a toolkit, even if it doesn't use Xt.
19122 #### It makes printing result more understandable as using GTK sets
19123 #### toolkit_scroll_bars to yes by default.
19124 if test "${HAVE_GTK}" = "yes"; then
19129 if test -n "$machfile"; then
19130 and_machfile
=" and \`${machfile}'"
19134 Configured for \`${canonical}'.
19136 Where should the build process find the source code? ${srcdir}
19137 What operating system and machine description files should Emacs use?
19138 \`${opsysfile}'${and_machfile}
19139 What compiler should emacs be built with? ${CC} ${CFLAGS}
19140 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
19141 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
19142 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
19143 What window system should Emacs use? ${window_system}
19144 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
19146 if test -n "${x_includes}"; then
19147 echo " Where do we find X Windows header files? ${x_includes}"
19149 echo " Where do we find X Windows header files? Standard dirs"
19151 if test -n "${x_libraries}"; then
19152 echo " Where do we find X Windows libraries? ${x_libraries}"
19154 echo " Where do we find X Windows libraries? Standard dirs"
19157 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
19158 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
19159 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
19160 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
19161 echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
19162 echo " Does Emacs use -lpng? ${HAVE_PNG}"
19163 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
19164 echo " Does Emacs use imagemagick? ${HAVE_IMAGEMAGICK}"
19166 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
19167 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
19168 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
19169 echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
19170 echo " Does Emacs use -lgnutls? ${HAVE_GNUTLS}"
19171 echo " Does Emacs use -lxml2? ${HAVE_LIBXML2}"
19173 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
19174 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
19175 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
19176 echo " Does Emacs use -lxft? ${HAVE_XFT}"
19178 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
19181 if test $USE_XASSERTS = yes; then
19182 echo " Compiling with asserts turned on."
19183 CPPFLAGS
="$CPPFLAGS -DXASSERTS=1"
19188 if test "$HAVE_NS" = "yes"; then
19190 echo "You must run \"make install\" in order to test the built application.
19191 The installed application will go to nextstep/Emacs.app and can be
19192 run or moved from there."
19193 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
19194 echo "The application will be fully self-contained."
19196 echo "The lisp resources for the application will be installed under ${prefix}.
19197 You may need to run \"make install\" with sudo. The application will fail
19198 to run if these resources are not installed."
19204 # Remove any trailing slashes in these variables.
19205 test "${prefix}" != NONE
&&
19206 prefix
=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
19207 test "${exec_prefix}" != NONE
&&
19208 exec_prefix
=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
19210 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"
19212 ac_config_commands
="$ac_config_commands default"
19214 cat >confcache
<<\_ACEOF
19215 # This file is a shell script that caches the results of configure
19216 # tests run on this system so they can be shared between configure
19217 # scripts and configure runs, see configure's option --config-cache.
19218 # It is not useful on other systems. If it contains results you don't
19219 # want to keep, you may remove or edit it.
19221 # config.status only pays attention to the cache file if you give it
19222 # the --recheck option to rerun configure.
19224 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19225 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19226 # following values.
19230 # The following way of writing the cache mishandles newlines in values,
19231 # but we know of no workaround that is simple, portable, and efficient.
19232 # So, we kill variables containing newlines.
19233 # Ultrix sh set writes to stderr and can't be redirected directly,
19234 # and sets the high bit in the cache file unless we assign to the vars.
19236 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19237 eval ac_val
=\$
$ac_var
19241 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19242 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19245 _ | IFS | as_nl
) ;; #(
19246 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
19247 *) { eval $ac_var=; unset $ac_var;} ;;
19253 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19254 *${as_nl}ac_space
=\
*)
19255 # `set' does not quote correctly, so add quotes: double-quote
19256 # substitution turns \\\\ into \\, and sed turns \\ into \.
19259 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19262 # `set' quotes correctly as required by POSIX, so do not add quotes.
19263 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19272 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19274 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19276 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
19277 if test -w "$cache_file"; then
19278 test "x$cache_file" != "x/dev/null" &&
19279 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19280 $as_echo "$as_me: updating cache $cache_file" >&6;}
19281 cat confcache
>$cache_file
19283 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19284 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19289 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
19290 # Let make expand exec_prefix.
19291 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
19293 DEFS
=-DHAVE_CONFIG_H
19298 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
19299 # 1. Remove the extension, and $U if already installed.
19300 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
19301 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
19302 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19303 # will be set to the directory where LIBOBJS objects are built.
19304 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19305 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
19307 LIBOBJS
=$ac_libobjs
19309 LTLIBOBJS
=$ac_ltlibobjs
19312 if test -n "$EXEEXT"; then
19314 am__EXEEXT_FALSE
='#'
19316 am__EXEEXT_TRUE
='#'
19320 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19321 as_fn_error $?
"conditional \"AMDEP\" was never defined.
19322 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19324 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19325 as_fn_error $?
"conditional \"am__fastdepCC\" was never defined.
19326 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19329 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
19330 as_fn_error $?
"conditional \"GL_COND_LIBTOOL\" was never defined.
19331 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19337 if test -n "$gl_LIBOBJS"; then
19338 # Remove the extension.
19339 sed_drop_objext
='s/\.o$//;s/\.obj$//'
19340 for i
in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
19341 gl_libobjs
="$gl_libobjs $i.$ac_objext"
19342 gl_ltlibobjs
="$gl_ltlibobjs $i.lo"
19345 gl_LIBOBJS
=$gl_libobjs
19347 gl_LTLIBOBJS
=$gl_ltlibobjs
19353 if test -n "$gltests_LIBOBJS"; then
19354 # Remove the extension.
19355 sed_drop_objext
='s/\.o$//;s/\.obj$//'
19356 for i
in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
19357 gltests_libobjs
="$gltests_libobjs $i.$ac_objext"
19358 gltests_ltlibobjs
="$gltests_ltlibobjs $i.lo"
19361 gltests_LIBOBJS
=$gltests_libobjs
19363 gltests_LTLIBOBJS
=$gltests_ltlibobjs
19367 : ${CONFIG_STATUS=./config.status}
19369 ac_clean_files_save
=$ac_clean_files
19370 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
19371 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19372 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19374 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19376 # Generated by $as_me.
19377 # Run this file to recreate the current configuration.
19378 # Compiler output produced by configure, useful for debugging
19379 # configure, is in config.log if it exists.
19382 ac_cs_recheck=false
19385 SHELL=\${CONFIG_SHELL-$SHELL}
19388 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
19389 ## -------------------- ##
19390 ## M4sh Initialization. ##
19391 ## -------------------- ##
19393 # Be more Bourne compatible
19394 DUALCASE
=1; export DUALCASE
# for MKS sh
19395 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
19398 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19399 # is contrary to our usage. Disable this feature.
19400 alias -g '${1+"$@"}'='"$@"'
19401 setopt NO_GLOB_SUBST
19403 case `(set -o) 2>/dev/null` in #(
19415 # Printing a long string crashes Solaris 7 /usr/bin/printf.
19416 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19417 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19418 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19419 # Prefer a ksh shell builtin over an external printf program on Solaris,
19420 # but without wasting forks for bash or zsh.
19421 if test -z "$BASH_VERSION$ZSH_VERSION" \
19422 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19423 as_echo='print
-r --'
19424 as_echo_n='print
-rn --'
19425 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19426 as_echo='printf %s
\n'
19427 as_echo_n='printf %s
'
19429 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19430 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
19431 as_echo_n='/usr
/ucb
/echo -n'
19433 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19434 as_echo_n_body='eval
19438 expr "X$arg" : "X\\(.*\\)$as_nl";
19439 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19441 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
19443 export as_echo_n_body
19444 as_echo_n='sh
-c $as_echo_n_body as_echo
'
19446 export as_echo_body
19447 as_echo='sh
-c $as_echo_body as_echo
'
19450 # The user is always right.
19451 if test "${PATH_SEPARATOR+set}" != set; then
19453 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19454 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19461 # We need space, tab and new line, in precisely that order. Quoting is
19462 # there to prevent editors from complaining about space-tab.
19463 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
19464 # splitting by setting IFS to empty value.)
19467 # Find who we are. Look in the path if we contain no directory separator.
19469 *[\\/]* ) as_myself=$0 ;;
19470 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19471 for as_dir in $PATH
19474 test -z "$as_dir" && as_dir=.
19475 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19481 # We did not find ourselves, most probably we were run as `sh COMMAND'
19482 # in which case we are not to be found in the path.
19483 if test "x$as_myself" = x
; then
19486 if test ! -f "$as_myself"; then
19487 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19491 # Unset variables that we do not need and which cause bugs (e.g. in
19492 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
19493 # suppresses any "Segmentation fault" message there. '((' could
19494 # trigger a bug in pdksh 5.2.14.
19495 for as_var
in BASH_ENV ENV MAIL MAILPATH
19496 do eval test x\
${$as_var+set} = xset \
19497 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
19510 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
19513 # as_fn_error STATUS ERROR [LINENO LOG_FD]
19514 # ----------------------------------------
19515 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19516 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19517 # script with STATUS, using 1 if that was 0.
19520 as_status
=$1; test $as_status -eq 0 && as_status
=1
19522 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
19523 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19525 $as_echo "$as_me: error: $2" >&2
19526 as_fn_exit
$as_status
19530 # as_fn_set_status STATUS
19531 # -----------------------
19532 # Set $? to STATUS, without forking.
19533 as_fn_set_status
()
19536 } # as_fn_set_status
19538 # as_fn_exit STATUS
19539 # -----------------
19540 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19544 as_fn_set_status
$1
19550 # Portably unset VAR.
19553 { eval $1=; unset $1;}
19555 as_unset
=as_fn_unset
19556 # as_fn_append VAR VALUE
19557 # ----------------------
19558 # Append the text in VALUE to the end of the definition contained in VAR. Take
19559 # advantage of any shell optimizations that allow amortized linear growth over
19560 # repeated appends, instead of the typical quadratic growth present in naive
19562 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
19563 eval 'as_fn_append ()
19574 # as_fn_arith ARG...
19575 # ------------------
19576 # Perform arithmetic evaluation on the ARGs, and store the result in the
19577 # global $as_val. Take advantage of shells that can avoid forks. The arguments
19578 # must be portable across $(()) and expr.
19579 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
19580 eval 'as_fn_arith ()
19587 as_val
=`expr "$@" || test $? -eq 1`
19592 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
19593 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
19599 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19600 as_basename
=basename
19605 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
19611 as_me
=`$as_basename -- "$0" ||
19612 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19613 X"$0" : 'X\(//\)$' \| \
19614 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19616 sed '/^.*\/\([^/][^/]*\)\/*$/{
19630 # Avoid depending upon Character Ranges.
19631 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
19632 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19633 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
19634 as_cr_digits
='0123456789'
19635 as_cr_alnum
=$as_cr_Letters$as_cr_digits
19637 ECHO_C
= ECHO_N
= ECHO_T
=
19638 case `echo -n x` in #(((((
19640 case `echo 'xy\c'` in
19641 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
19643 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
19650 rm -f conf$$ conf$$.exe conf$$.
file
19651 if test -d conf$$.dir
; then
19652 rm -f conf$$.dir
/conf$$.
file
19655 mkdir conf$$.dir
2>/dev
/null
19657 if (echo >conf$$.
file) 2>/dev
/null
; then
19658 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
19660 # ... but there are two gotchas:
19661 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19662 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19663 # In both cases, we have to default to `cp -p'.
19664 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
19666 elif ln conf$$.
file conf$$
2>/dev
/null
; then
19674 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
19675 rmdir conf$$.dir
2>/dev
/null
19680 # Create "$as_dir" as a directory, including parents if necessary.
19685 -*) as_dir
=.
/$as_dir;;
19687 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
19691 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19692 *) as_qdir
=$as_dir;;
19694 as_dirs
="'$as_qdir' $as_dirs"
19695 as_dir
=`$as_dirname -- "$as_dir" ||
19696 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19697 X"$as_dir" : 'X\(//\)[^/]' \| \
19698 X"$as_dir" : 'X\(//\)$' \| \
19699 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19700 $as_echo X"$as_dir" |
19701 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19705 /^X\(\/\/\)[^/].*/{
19718 test -d "$as_dir" && break
19720 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
19721 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
19725 if mkdir
-p .
2>/dev
/null
; then
19726 as_mkdir_p
='mkdir -p "$as_dir"'
19728 test -d .
/-p && rmdir .
/-p
19732 if test -x / >/dev
/null
2>&1; then
19733 as_test_x
='test -x'
19735 if ls -dL / >/dev
/null
2>&1; then
19742 if test -d "$1"; then
19748 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
19749 ???[sx]*):;;*)false;;esac;fi
19753 as_executable_p
=$as_test_x
19755 # Sed expression to map a string onto a valid CPP name.
19756 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19758 # Sed expression to map a string onto a valid variable name.
19759 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19763 ## ----------------------------------- ##
19764 ## Main body of $CONFIG_STATUS script. ##
19765 ## ----------------------------------- ##
19767 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
19769 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19770 # Save the log message, to keep $0 and so on meaningful, and to
19771 # report actual input values of CONFIG_FILES etc. instead of their
19772 # values after options handling.
19774 This file was extended by emacs $as_me 24.0.50, which was
19775 generated by GNU Autoconf 2.67. Invocation command line was
19777 CONFIG_FILES = $CONFIG_FILES
19778 CONFIG_HEADERS = $CONFIG_HEADERS
19779 CONFIG_LINKS = $CONFIG_LINKS
19780 CONFIG_COMMANDS = $CONFIG_COMMANDS
19783 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19788 case $ac_config_files in *"
19789 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
19792 case $ac_config_headers in *"
19793 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
19797 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19798 # Files that config.status was made for.
19799 config_files="$ac_config_files"
19800 config_headers="$ac_config_headers"
19801 config_commands="$ac_config_commands"
19805 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19807 \`$as_me' instantiates files and other configuration actions
19808 from templates according to the current configuration. Unless the files
19809 and actions are specified as TAGs, all are instantiated by default.
19811 Usage: $0 [OPTION]... [TAG]...
19813 -h, --help print this help, then exit
19814 -V, --version print version number and configuration settings, then exit
19815 --config print configuration, then exit
19816 -q, --quiet, --silent
19817 do not print progress messages
19818 -d, --debug don't remove temporary files
19819 --recheck update $as_me by reconfiguring in the same conditions
19820 --file=FILE[:TEMPLATE]
19821 instantiate the configuration file FILE
19822 --header=FILE[:TEMPLATE]
19823 instantiate the configuration header FILE
19825 Configuration files:
19828 Configuration headers:
19831 Configuration commands:
19834 Report bugs to the package provider."
19837 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19838 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19840 emacs config.status 24.0.50
19841 configured by $0, generated by GNU Autoconf 2.67,
19842 with options \\"\$ac_cs_config\\"
19844 Copyright (C) 2010 Free Software Foundation, Inc.
19845 This config.status script is free software; the Free Software Foundation
19846 gives unlimited permission to copy, distribute and modify it."
19853 test -n "\$AWK" || AWK=awk
19856 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19857 # The default lists apply if the user does not specify any file.
19863 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
19864 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
19868 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
19880 # Handling of the options.
19881 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
19883 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
19884 $as_echo "$ac_cs_version"; exit ;;
19885 --config |
--confi |
--conf |
--con |
--co |
--c )
19886 $as_echo "$ac_cs_config"; exit ;;
19887 --debug |
--debu |
--deb |
--de |
--d |
-d )
19889 --file |
--fil |
--fi |
--f )
19892 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19893 '') as_fn_error $?
"missing file argument" ;;
19895 as_fn_append CONFIG_FILES
" '$ac_optarg'"
19896 ac_need_defaults
=false
;;
19897 --header |
--heade |
--head |
--hea )
19900 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19902 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
19903 ac_need_defaults
=false
;;
19905 # Conflict between --help and --header
19906 as_fn_error $?
"ambiguous option: \`$1'
19907 Try \`$0 --help' for more information.";;
19908 --help |
--hel |
-h )
19909 $as_echo "$ac_cs_usage"; exit ;;
19910 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
19911 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
19914 # This is an error.
19915 -*) as_fn_error $?
"unrecognized option: \`$1'
19916 Try \`$0 --help' for more information." ;;
19918 *) as_fn_append ac_config_targets
" $1"
19919 ac_need_defaults
=false
;;
19925 ac_configure_extra_args
=
19927 if $ac_cs_silent; then
19929 ac_configure_extra_args
="$ac_configure_extra_args --silent"
19933 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19934 if \$ac_cs_recheck; then
19935 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19937 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19938 CONFIG_SHELL='$SHELL'
19939 export CONFIG_SHELL
19944 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19948 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19949 ## Running $as_me. ##
19955 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19959 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19960 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPPFLAGS="$CPPFLAGS"
19964 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19966 # Handling of arguments.
19967 for ac_config_target
in $ac_config_targets
19969 case $ac_config_target in
19970 "src/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
19971 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
19972 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
19973 "lib/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/Makefile" ;;
19974 "lib-src/Makefile") CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile" ;;
19975 "oldXMenu/Makefile") CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
19976 "doc/emacs/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/emacs/Makefile" ;;
19977 "doc/misc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/misc/Makefile" ;;
19978 "doc/lispintro/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispintro/Makefile" ;;
19979 "doc/lispref/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispref/Makefile" ;;
19980 "src/Makefile") CONFIG_FILES
="$CONFIG_FILES src/Makefile" ;;
19981 "lwlib/Makefile") CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
19982 "lisp/Makefile") CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
19983 "leim/Makefile") CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
19984 "test/automated/Makefile") CONFIG_FILES
="$CONFIG_FILES test/automated/Makefile" ;;
19985 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
19987 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
19992 # If the user did not use the arguments to specify the items to instantiate,
19993 # then the envvar interface is used. Set only those that are not.
19994 # We use the long form for the default assignment because of an extremely
19995 # bizarre bug on SunOS 4.1.3.
19996 if $ac_need_defaults; then
19997 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
19998 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
19999 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
20002 # Have a temporary directory for convenience. Make it in the build tree
20003 # simply because there is no reason against having it here, and in addition,
20004 # creating and moving files from /tmp can sometimes cause problems.
20005 # Hook for its removal unless debugging.
20006 # Note that there is a small window in which the directory will not be cleaned:
20007 # after its creation but before its name has been assigned to `$tmp'.
20011 trap 'exit_status=$?
20012 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
20014 trap 'as_fn_exit 1' 1 2 13 15
20016 # Create a (secure) tmp directory for tmp files.
20019 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20020 test -n "$tmp" && test -d "$tmp"
20023 tmp
=.
/conf$$
-$RANDOM
20024 (umask 077 && mkdir
"$tmp")
20025 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
20027 # Set up the scripts for CONFIG_FILES section.
20028 # No need to generate them if there are no CONFIG_FILES.
20029 # This happens for instance with `./config.status config.h'.
20030 if test -n "$CONFIG_FILES"; then
20032 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
20033 ac_cs_awk_getline
=:
20034 ac_cs_awk_pipe_init
=
20035 ac_cs_awk_read_file
='
20036 while ((getline aline < (F[key])) > 0)
20039 ac_cs_awk_pipe_fini
=
20041 ac_cs_awk_getline
=false
20042 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
20043 ac_cs_awk_read_file
='
20045 print "cat " F[key] " &&"
20046 '$ac_cs_awk_pipe_init
20047 # The final `:' finishes the AND list.
20048 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
20050 ac_cr
=`echo X | tr X '\015'`
20051 # On cygwin, bash can eat \r inside `` if the user requested igncr.
20052 # But we know of no other shell where ac_cr would be empty at this
20053 # point, so we can use a bashism as a fallback.
20054 if test "x$ac_cr" = x
; then
20055 eval ac_cr
=\$
\'\\r
\'
20057 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20058 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20061 ac_cs_awk_cr
=$ac_cr
20064 echo 'BEGIN {' >"$tmp/subs1.awk" &&
20067 # Create commands to substitute file output variables.
20069 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
20070 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
20071 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
20074 } >conf$
$files.sh
&&
20075 . .
/conf$
$files.sh ||
20076 as_fn_error $?
"could not make $CONFIG_STATUS" "$LINENO" 5
20077 rm -f conf$
$files.sh
20080 echo "cat >conf$$subs.awk <<_ACEOF" &&
20081 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20083 } >conf$$subs.sh ||
20084 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
20085 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20087 for ac_last_try in false false false false false :; do
20088 . ./conf$$subs.sh ||
20089 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
20091 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
20092 if test $ac_delim_n = $ac_delim_num; then
20094 elif $ac_last_try; then
20095 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
20097 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
20100 rm -f conf$$subs.sh
20102 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20103 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
20107 s/^/S["/; s
/!.
*/"]=/
20117 s/\(.\{148\}\)..*/\1/
20119 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
20124 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
20131 s/\(.\{148\}\)..*/\1/
20133 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
20137 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
20142 ' <conf$$subs.awk | sed '
20147 ' >>$CONFIG_STATUS || ac_write_fail=1
20148 rm -f conf$$subs.awk
20149 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20151 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
20152 for (key in S) S_is_set[key] = 1
20154 \$ac_cs_awk_pipe_init
20158 nfields = split(line, field, "@
")
20160 len = length(field[1])
20161 for (i = 2; i < nfields; i++) {
20163 keylen = length(key)
20164 if (S_is_set[key]) {
20166 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20167 len += length(value) + length(field[++i])
20172 if (nfields == 3 && !substed) {
20174 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
20175 \$ac_cs_awk_read_file
20181 \$ac_cs_awk_pipe_fini
20184 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20185 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20186 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
20189 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
20190 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
20193 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20194 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
20195 # trailing colons and then remove the whole line if VPATH becomes empty
20196 # (actually we leave an empty line to preserve line numbers).
20197 if test "x
$srcdir" = x.; then
20198 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
20216 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20217 fi # test -n "$CONFIG_FILES"
20219 # Set up the scripts for CONFIG_HEADERS section.
20220 # No need to generate them if there are no CONFIG_HEADERS.
20221 # This happens for instance with `./config.status Makefile'.
20222 if test -n "$CONFIG_HEADERS"; then
20223 cat >"$tmp/defines.
awk" <<\_ACAWK ||
20227 # Transform confdefs.h into an awk script `defines.awk', embedded as
20228 # here-document in config.status, that substitutes the proper values into
20229 # config.h.in to produce config.h.
20231 # Create a delimiter string that does not exist in confdefs.h, to ease
20232 # handling of long lines.
20234 for ac_last_try in false false :; do
20235 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
20236 if test -z "$ac_t"; then
20238 elif $ac_last_try; then
20239 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
20241 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
20245 # For the awk script, D is an array of macro values keyed by name,
20246 # likewise P contains macro parameters if any. Preserve backslash
20247 # newline sequences.
20249 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20251 s/.\{148\}/&'"$ac_delim"'/g
20254 s/^[ ]*#[ ]*define[ ][ ]*/ /
20261 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
20263 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
20267 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
20268 D["\
1"]=" \
3\\\\\\n
"\\/p
20270 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
20275 s/.\{148\}/&'"$ac_delim"'/g
20280 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
20283 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
20285 ' <confdefs.h | sed '
20286 s/'"$ac_delim"'/"\\\
20287 "/g' >>$CONFIG_STATUS || ac_write_fail=1
20289 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20290 for (key in D) D_is_set[key] = 1
20293 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20295 split(line, arg, " ")
20296 if (arg[1] == "#") {
20300 defundef
= substr
(arg
[1], 2)
20303 split(mac1
, mac2
, "(") #)
20305 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
20306 if (D_is_set
[macro
]) {
20307 # Preserve the white space surrounding the "#".
20308 print prefix
"define", macro P
[macro
] D
[macro
]
20311 # Replace #undef with comments. This is necessary, for example,
20312 # in the case of _POSIX_SOURCE, which is predefined and required
20313 # on some systems where configure will not decide to define it.
20314 if (defundef
== "undef") {
20315 print
"/*", prefix defundef
, macro
, "*/"
20323 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20324 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
20325 fi # test -n "$CONFIG_HEADERS"
20328 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
20333 :[FHLC
]) ac_mode
=$ac_tag; continue;;
20335 case $ac_mode$ac_tag in
20337 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5 ;;
20338 :[FH
]-) ac_tag
=-:-;;
20339 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
20356 -) ac_f
="$tmp/stdin";;
20357 *) # Look for the file first in the build tree, then in the source tree
20358 # (if the path is not absolute). The absolute path cannot be DOS-style,
20359 # because $ac_f cannot contain `:'.
20363 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
20365 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
20367 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20368 as_fn_append ac_file_inputs
" '$ac_f'"
20371 # Let's still pretend it is `configure' which instantiates (i.e., don't
20372 # use $as_me), people would be surprised to read:
20373 # /* config.h. Generated by config.status. */
20374 configure_input
='Generated from '`
20375 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20377 if test x
"$ac_file" != x-
; then
20378 configure_input
="$ac_file. $configure_input"
20379 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20380 $as_echo "$as_me: creating $ac_file" >&6;}
20382 # Neutralize special characters interpreted by sed in replacement strings.
20383 case $configure_input in #(
20384 *\
&* |
*\|
* |
*\\* )
20385 ac_sed_conf_input
=`$as_echo "$configure_input" |
20386 sed 's/[\\\\&|]/\\\\&/g'`;; #(
20387 *) ac_sed_conf_input
=$configure_input;;
20391 *:-:* |
*:-) cat >"$tmp/stdin" \
20392 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
20397 ac_dir
=`$as_dirname -- "$ac_file" ||
20398 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20399 X"$ac_file" : 'X\(//\)[^/]' \| \
20400 X"$ac_file" : 'X\(//\)$' \| \
20401 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20402 $as_echo X"$ac_file" |
20403 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20407 /^X\(\/\/\)[^/].*/{
20420 as_dir
="$ac_dir"; as_fn_mkdir_p
20424 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
20426 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20427 # A ".." for each directory in $ac_dir_suffix.
20428 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20429 case $ac_top_builddir_sub in
20430 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
20431 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
20434 ac_abs_top_builddir
=$ac_pwd
20435 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
20436 # for backward compatibility:
20437 ac_top_builddir
=$ac_top_build_prefix
20440 .
) # We are building in place.
20442 ac_top_srcdir
=$ac_top_builddir_sub
20443 ac_abs_top_srcdir
=$ac_pwd ;;
20444 [\\/]* | ?
:[\\/]* ) # Absolute name.
20445 ac_srcdir
=$srcdir$ac_dir_suffix;
20446 ac_top_srcdir
=$srcdir
20447 ac_abs_top_srcdir
=$srcdir ;;
20448 *) # Relative name.
20449 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
20450 ac_top_srcdir
=$ac_top_build_prefix$srcdir
20451 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
20453 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
20463 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
20464 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
20466 ac_MKDIR_P
=$MKDIR_P
20468 [\\/$
]* | ?
:[\\/]* ) ;;
20469 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
20473 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20474 # If the template does not know about datarootdir, expand it.
20475 # FIXME: This hack should be removed a few years after 2.60.
20476 ac_datarootdir_hack
=; ac_datarootdir_seen
=
20487 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20488 *datarootdir
*) ac_datarootdir_seen
=yes;;
20489 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
20490 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20491 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20493 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20494 ac_datarootdir_hack='
20495 s&@datadir@&$datadir&g
20496 s&@docdir@&$docdir&g
20497 s&@infodir@&$infodir&g
20498 s&@localedir@&$localedir&g
20499 s&@mandir@&$mandir&g
20500 s&\\\${datarootdir}&$datarootdir&g' ;;
20504 # Neutralize VPATH when `$srcdir' = `.'.
20505 # Shell code in configure.ac might set extrasub.
20506 # FIXME: do we really want to maintain this feature?
20507 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20508 ac_sed_extra="$ac_vpsub
20511 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20513 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
20514 s|@configure_input@|
$ac_sed_conf_input|
;t t
20515 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
20516 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
20517 s
&@srcdir@
&$ac_srcdir&;t t
20518 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
20519 s
&@top_srcdir@
&$ac_top_srcdir&;t t
20520 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
20521 s
&@builddir@
&$ac_builddir&;t t
20522 s
&@abs_builddir@
&$ac_abs_builddir&;t t
20523 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
20524 s
&@INSTALL@
&$ac_INSTALL&;t t
20525 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
20526 $ac_datarootdir_hack
20528 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
20529 if $ac_cs_awk_getline; then
20530 $AWK -f "$tmp/subs.
awk"
20532 $AWK -f "$tmp/subs.
awk" | $SHELL
20534 || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
20536 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20537 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
20538 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
20539 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
20540 which seems to be undefined. Please make sure it is defined" >&5
20541 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
20542 which seems to be undefined. Please make sure it is defined" >&2;}
20546 -) cat "$tmp/out" && rm -f "$tmp/out";;
20547 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
20549 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20555 if test x"$ac_file" != x-; then
20557 $as_echo "/* $configure_input */" \
20558 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
20559 } >"$tmp/config.h" \
20560 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20561 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
20562 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20563 $as_echo "$as_me: $ac_file is unchanged" >&6;}
20566 mv "$tmp/config.h" "$ac_file" \
20567 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20570 $as_echo "/* $configure_input */" \
20571 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
20572 || as_fn_error $? "could not create -" "$LINENO" 5
20574 # Compute "$ac_file"'s index
in $config_headers.
20577 for _am_header
in $config_headers :; do
20578 case $_am_header in
20579 $_am_arg |
$_am_arg:* )
20582 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
20585 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
20586 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20587 X"$_am_arg" : 'X\(//\)[^/]' \| \
20588 X"$_am_arg" : 'X\(//\)$' \| \
20589 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
20590 $as_echo X"$_am_arg" |
20591 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20595 /^X\(\/\/\)[^/].*/{
20607 s/.*/./; q'`/stamp-h
$_am_stamp_count
20610 :C
) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20611 $as_echo "$as_me: executing $ac_file commands" >&6;}
20616 case $ac_file$ac_mode in
20617 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
{
20618 # Autoconf 2.62 quotes --file arguments for eval, but not when files
20619 # are listed without --file. Let's play safe and only enable the eval
20620 # if we detect the quoting.
20621 case $CONFIG_FILES in
20622 *\'*) eval set x
"$CONFIG_FILES" ;;
20623 *) set x
$CONFIG_FILES ;;
20628 # Strip MF so we end up with the name of the file.
20629 mf
=`echo "$mf" | sed -e 's/:.*$//'`
20630 # Check whether this is an Automake generated Makefile or not.
20631 # We used to match only the files named `Makefile.in', but
20632 # some people rename them; so instead we look at the file content.
20633 # Grep'ing the first line is not enough: some people post-process
20634 # each Makefile.in and add a new line on top of each file to say so.
20635 # Grep'ing the whole file is not good either: AIX grep has a line
20636 # limit of 2048, but all sed's we know have understand at least 4000.
20637 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
20638 dirpart
=`$as_dirname -- "$mf" ||
20639 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20640 X"$mf" : 'X\(//\)[^/]' \| \
20641 X"$mf" : 'X\(//\)$' \| \
20642 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
20644 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20648 /^X\(\/\/\)[^/].*/{
20664 # Extract the definition of DEPDIR, am__include, and am__quote
20665 # from the Makefile without running `make'.
20666 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
20667 test -z "$DEPDIR" && continue
20668 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
20669 test -z "am__include" && continue
20670 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
20671 # When using ansi2knr, U may be empty or an underscore; expand it
20672 U
=`sed -n 's/^U = //p' < "$mf"`
20673 # Find all dependency output files, they are included files with
20674 # $(DEPDIR) in their names. We invoke sed twice because it is the
20675 # simplest approach to changing $(DEPDIR) to its actual value in the
20677 for file in `sed -n "
20678 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20679 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
20680 # Make sure the directory exists.
20681 test -f "$dirpart/$file" && continue
20682 fdir
=`$as_dirname -- "$file" ||
20683 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20684 X"$file" : 'X\(//\)[^/]' \| \
20685 X"$file" : 'X\(//\)$' \| \
20686 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
20687 $as_echo X"$file" |
20688 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20692 /^X\(\/\/\)[^/].*/{
20705 as_dir
=$dirpart/$fdir; as_fn_mkdir_p
20706 # echo "creating $dirpart/$file"
20707 echo '# dummy' > "$dirpart/$file"
20714 ### Make the necessary directories, if they don't exist.
20715 for dir
in etc lisp
; do
20716 test -d ${dir} || mkdir
${dir}
20719 echo creating src
/epaths.h
20720 ${MAKE-make} epaths-force
20722 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
20723 echo creating src
/.gdbinit
20724 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
20735 ac_clean_files
=$ac_clean_files_save
20737 test $ac_write_fail = 0 ||
20738 as_fn_error $?
"write failure creating $CONFIG_STATUS" "$LINENO" 5
20741 # configure is writing to config.log, and then calls config.status.
20742 # config.status does its own redirection, appending to config.log.
20743 # Unfortunately, on DOS this fails, as config.log is still kept open
20744 # by configure, so config.status won't be able to write to it; its
20745 # output is simply discarded. So we exec the FD to /dev/null,
20746 # effectively closing config.log, so it can be properly (re)opened and
20747 # appended to by config.status. When coming back to configure, we
20748 # need to make the FD available again.
20749 if test "$no_create" != yes; then
20751 ac_config_status_args
=
20752 test "$silent" = yes &&
20753 ac_config_status_args
="$ac_config_status_args --quiet"
20755 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
20757 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20758 # would make configure fail if this is the last instruction.
20759 $ac_cs_success || as_fn_exit
1
20761 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
20762 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20763 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}