2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65 for emacs 24.0.50.
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE
=1; export DUALCASE
# for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo_n='print
-rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
55 as_echo_n='/usr
/ucb
/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
68 as_echo_n='sh
-c $as_echo_n_body as_echo
'
71 as_echo='sh
-c $as_echo_body as_echo
'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
91 # Find who we are. Look in the path if we contain no directory separator.
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x
; then
110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there. '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var
in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\
${$as_var+set} = xset \
121 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
134 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
136 if test "x$CONFIG_SHELL" = x
; then
137 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
145 case \`(set -o) 2>/dev/null\` in #(
153 as_required
="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167 exitcode=1; echo positional parameters were not saved.
169 test x\$exitcode = x0 || exit 1"
170 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174 test \$(( 1 + 1 )) = 2 || exit 1"
175 if (eval "$as_required") 2>/dev
/null
; then :
180 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
183 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
185 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
188 test -z "$as_dir" && as_dir
=.
192 for as_base
in sh bash ksh sh5
; do
193 # Try only shells that exist, to save several forks.
194 as_shell
=$as_dir/$as_base
195 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
196 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
197 CONFIG_SHELL
=$as_shell as_have_required
=yes
198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
206 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
208 CONFIG_SHELL
=$SHELL as_have_required
=yes
213 if test "x$CONFIG_SHELL" != x
; then :
214 # We cannot yet assume a decent shell, so we have to provide a
215 # neutralization value for shells without unset; and this also
216 # works around shells that cannot unset nonexistent variables.
219 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224 if test x
$as_have_required = xno
; then :
225 $as_echo "$0: This script requires a shell more modern than all"
226 $as_echo "$0: the shells that I found on your system."
227 if test x
${ZSH_VERSION+set} = xset
; then
228 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
231 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
232 $0: including any error possibly output before this
233 $0: message. Then install a modern shell, or manually run
234 $0: the script under such a shell if you do have one."
240 SHELL
=${CONFIG_SHELL-/bin/sh}
242 # Unset more variables known to interfere with behavior of common tools.
243 CLICOLOR_FORCE
= GREP_OPTIONS
=
244 unset CLICOLOR_FORCE GREP_OPTIONS
246 ## --------------------- ##
247 ## M4sh Shell Functions. ##
248 ## --------------------- ##
251 # Portably unset VAR.
254 { eval $1=; unset $1;}
258 # as_fn_set_status STATUS
259 # -----------------------
260 # Set $? to STATUS, without forking.
268 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
278 # Create "$as_dir" as a directory, including parents if necessary.
283 -*) as_dir
=.
/$as_dir;;
285 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
289 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
292 as_dirs
="'$as_qdir' $as_dirs"
293 as_dir
=`$as_dirname -- "$as_dir" ||
294 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
295 X"$as_dir" : 'X\(//\)[^/]' \| \
296 X"$as_dir" : 'X\(//\)$' \| \
297 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
298 $as_echo X"$as_dir" |
299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
316 test -d "$as_dir" && break
318 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
319 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
323 # as_fn_append VAR VALUE
324 # ----------------------
325 # Append the text in VALUE to the end of the definition contained in VAR. Take
326 # advantage of any shell optimizations that allow amortized linear growth over
327 # repeated appends, instead of the typical quadratic growth present in naive
329 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
330 eval 'as_fn_append ()
343 # Perform arithmetic evaluation on the ARGs, and store the result in the
344 # global $as_val. Take advantage of shells that can avoid forks. The arguments
345 # must be portable across $(()) and expr.
346 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
354 as_val
=`expr "$@" || test $? -eq 1`
359 # as_fn_error ERROR [LINENO LOG_FD]
360 # ---------------------------------
361 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
362 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
363 # script with status $?, using 1 if that was 0.
366 as_status
=$?
; test $as_status -eq 0 && as_status
=1
368 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
369 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
371 $as_echo "$as_me: error: $1" >&2
372 as_fn_exit
$as_status
375 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
376 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
382 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
388 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
394 as_me
=`$as_basename -- "$0" ||
395 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
396 X"$0" : 'X\(//\)$' \| \
397 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
399 sed '/^.*\/\([^/][^/]*\)\/*$/{
413 # Avoid depending upon Character Ranges.
414 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
415 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
416 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
417 as_cr_digits
='0123456789'
418 as_cr_alnum
=$as_cr_Letters$as_cr_digits
421 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
422 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
423 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
424 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
425 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
437 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
441 chmod +x
"$as_me.lineno" ||
442 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
444 # Don't try to exec as it changes $[0], causing all sort of problems
445 # (the dirname of $[0] is not the place where we might find the
446 # original and so on. Autoconf is especially sensitive to this).
448 # Exit status is that of the last command.
452 ECHO_C
= ECHO_N
= ECHO_T
=
453 case `echo -n x` in #(((((
455 case `echo 'xy\c'` in
456 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
458 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
465 rm -f conf$$ conf$$.exe conf$$.
file
466 if test -d conf$$.dir
; then
467 rm -f conf$$.dir
/conf$$.
file
470 mkdir conf$$.dir
2>/dev
/null
472 if (echo >conf$$.
file) 2>/dev
/null
; then
473 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
475 # ... but there are two gotchas:
476 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
477 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
478 # In both cases, we have to default to `cp -p'.
479 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
481 elif ln conf$$.
file conf$$
2>/dev
/null
; then
489 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
490 rmdir conf$$.dir
2>/dev
/null
492 if mkdir
-p .
2>/dev
/null
; then
493 as_mkdir_p
='mkdir -p "$as_dir"'
495 test -d .
/-p && rmdir .
/-p
499 if test -x / >/dev
/null
2>&1; then
502 if ls -dL / >/dev
/null
2>&1; then
509 if test -d "$1"; then
515 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
516 ???[sx]*):;;*)false;;esac;fi
520 as_executable_p
=$as_test_x
522 # Sed expression to map a string onto a valid CPP name.
523 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
525 # Sed expression to map a string onto a valid variable name.
526 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
529 test -n "$DJDIR" ||
exec 7<&0 </dev
/null
533 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
534 # so uname gets run too.
535 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
540 ac_default_prefix
=/usr
/local
542 ac_config_libobj_dir
=.
549 # Identity of this package.
551 PACKAGE_TARNAME
='emacs'
552 PACKAGE_VERSION
='24.0.50'
553 PACKAGE_STRING
='emacs 24.0.50'
557 ac_unique_file
="src/lisp.h"
558 # Factoring default headers for most tests.
559 ac_includes_default
="\
561 #ifdef HAVE_SYS_TYPES_H
562 # include <sys/types.h>
564 #ifdef HAVE_SYS_STAT_H
565 # include <sys/stat.h>
571 # ifdef HAVE_STDLIB_H
576 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
581 #ifdef HAVE_STRINGS_H
582 # include <strings.h>
584 #ifdef HAVE_INTTYPES_H
585 # include <inttypes.h>
596 gl_getopt_required
=POSIX
597 gl_getopt_required
=POSIX
598 ac_subst_vars
='gltests_LTLIBOBJS
609 LD_SWITCH_SYSTEM_TEMACS
613 gl_GNULIB_ENABLED_verify_FALSE
614 gl_GNULIB_ENABLED_verify_TRUE
615 gl_GNULIB_ENABLED_strtoull_FALSE
616 gl_GNULIB_ENABLED_strtoull_TRUE
617 gl_GNULIB_ENABLED_strtoll_FALSE
618 gl_GNULIB_ENABLED_strtoll_TRUE
619 gl_GNULIB_ENABLED_stat_FALSE
620 gl_GNULIB_ENABLED_stat_TRUE
621 gl_GNULIB_ENABLED_sigprocmask_FALSE
622 gl_GNULIB_ENABLED_sigprocmask_TRUE
623 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE
624 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE
625 gl_GNULIB_ENABLED_dosname_FALSE
626 gl_GNULIB_ENABLED_dosname_TRUE
630 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
632 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
633 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
634 TIME_H_DEFINES_STRUCT_TIMESPEC
635 NEXT_AS_FIRST_DIRECTIVE_TIME_H
637 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
639 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
641 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
650 REPLACE_STDIO_WRITE_FUNCS
651 REPLACE_STDIO_READ_FUNCS
660 REPLACE_OBSTACK_PRINTF
682 HAVE_DECL_OBSTACK_PRINTF
688 GNULIB_VSPRINTF_POSIX
692 GNULIB_VFPRINTF_POSIX
699 GNULIB_STDIO_H_SIGPIPE
700 GNULIB_STDIO_H_NONBLOCKING
714 GNULIB_OBSTACK_PRINTF_POSIX
715 GNULIB_OBSTACK_PRINTF
740 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
742 GL_GENERATE_STDDEF_H_FALSE
743 GL_GENERATE_STDDEF_H_TRUE
748 GL_GENERATE_STDBOOL_H_FALSE
749 GL_GENERATE_STDBOOL_H_TRUE
751 GL_GENERATE_STDARG_H_FALSE
752 GL_GENERATE_STDARG_H_TRUE
754 NEXT_AS_FIRST_DIRECTIVE_STDARG_H
756 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H
758 REPLACE_PTHREAD_SIGMASK
760 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
761 HAVE_STRUCT_SIGACTION_SA_SIGACTION
766 HAVE_POSIX_SIGNALBLOCKING
769 GNULIB_SIGNAL_H_SIGPIPE
770 GNULIB_PTHREAD_SIGMASK
779 HAVE_DECL_LOCALTIME_R
817 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
819 UINT64_MAX_EQ_ULONG_MAX
820 UINT32_MAX_LT_UINTMAX_MAX
823 INT64_MAX_EQ_LONG_MAX
824 INT32_MAX_LT_INTMAX_MAX
833 GL_GENERATE_STDINT_H_FALSE
834 GL_GENERATE_STDINT_H_TRUE
843 HAVE_SIGNED_SIG_ATOMIC_T
846 BITSIZEOF_SIG_ATOMIC_T
849 APPLE_UNIVERSAL_BUILD
853 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
858 HAVE_UNSIGNED_LONG_LONG_INT
862 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
866 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
879 REPLACE_CANONICALIZE_FILE_NAME
884 HAVE_STRUCT_RANDOM_DATA
903 HAVE_CANONICALIZE_FILE_NAME
930 GNULIB_CANONICALIZE_FILE_NAME
934 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
935 UNISTD_H_HAVE_WINSOCK2_H
955 REPLACE_GETDOMAINNAME
965 HAVE_DECL_GETUSERSHELL
966 HAVE_DECL_GETPAGESIZE
968 HAVE_DECL_GETDOMAINNAME
1004 GNULIB_UNISTD_H_SIGPIPE
1005 GNULIB_UNISTD_H_NONBLOCKING
1006 GNULIB_UNISTD_H_GETOPT
1030 GNULIB_GETDTABLESIZE
1031 GNULIB_GETDOMAINNAME
1044 GL_GENERATE_ALLOCA_H_FALSE
1045 GL_GENERATE_ALLOCA_H_TRUE
1048 GL_COND_LIBTOOL_FALSE
1049 GL_COND_LIBTOOL_TRUE
1082 x_default_search_path
1150 LD_SWITCH_X_SITE_AUX_RPATH
1151 LD_SWITCH_X_SITE_AUX
1214 INSTALL_STRIP_PROGRAM
1256 program_transform_name
1267 ac_subst_files
='deps_frag
1271 enable_option_checking
1294 with_toolkit_scroll_bars
1306 with_pkg_config_prog
1310 enable_ns_self_contained
1312 enable_maintainer_mode
1313 enable_locallisppath
1315 enable_use_lisp_union_type
1318 enable_dependency_tracking
1322 ac_precious_vars
='build_alias
1334 # Initialize some variables set by options.
1336 ac_init_version
=false
1337 ac_unrecognized_opts
=
1338 ac_unrecognized_sep
=
1339 # The variables have the same names as the options, with
1340 # dashes changed to underlines.
1341 cache_file
=/dev
/null
1348 program_transform_name
=s
,x
,x
,
1356 # Installation directory options.
1357 # These are left unexpanded so users can "make install exec_prefix=/foo"
1358 # and all the variables that are supposed to be based on exec_prefix
1359 # by default will actually change.
1360 # Use braces instead of parens because sh, perl, etc. also accept them.
1361 # (The list follows the same order as the GNU Coding Standards.)
1362 bindir
='${exec_prefix}/bin'
1363 sbindir
='${exec_prefix}/sbin'
1364 libexecdir
='${exec_prefix}/libexec'
1365 datarootdir
='${prefix}/share'
1366 datadir
='${datarootdir}'
1367 sysconfdir
='${prefix}/etc'
1368 sharedstatedir
='${prefix}/com'
1369 localstatedir
='${prefix}/var'
1370 includedir
='${prefix}/include'
1371 oldincludedir
='/usr/include'
1372 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
1373 infodir
='${datarootdir}/info'
1378 libdir
='${exec_prefix}/lib'
1379 localedir
='${datarootdir}/locale'
1380 mandir
='${datarootdir}/man'
1386 # If the previous option needs an argument, assign it.
1387 if test -n "$ac_prev"; then
1388 eval $ac_prev=\
$ac_option
1394 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1398 # Accept the important Cygnus configure options, so we can diagnose typos.
1400 case $ac_dashdash$ac_option in
1404 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1406 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1407 bindir
=$ac_optarg ;;
1409 -build |
--build |
--buil |
--bui |
--bu)
1410 ac_prev
=build_alias
;;
1411 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1412 build_alias
=$ac_optarg ;;
1414 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1415 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1416 ac_prev
=cache_file
;;
1417 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1418 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1419 cache_file
=$ac_optarg ;;
1421 --config-cache |
-C)
1422 cache_file
=config.cache
;;
1424 -datadir |
--datadir |
--datadi |
--datad)
1426 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1427 datadir
=$ac_optarg ;;
1429 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1430 |
--dataroo |
--dataro |
--datar)
1431 ac_prev
=datarootdir
;;
1432 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1433 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1434 datarootdir
=$ac_optarg ;;
1436 -disable-* |
--disable-*)
1437 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1438 # Reject names that are not valid shell variable names.
1439 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1440 as_fn_error
"invalid feature name: $ac_useropt"
1441 ac_useropt_orig
=$ac_useropt
1442 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1443 case $ac_user_opts in
1445 "enable_
$ac_useropt"
1447 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1448 ac_unrecognized_sep
=', ';;
1450 eval enable_
$ac_useropt=no
;;
1452 -docdir |
--docdir |
--docdi |
--doc |
--do)
1454 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1455 docdir
=$ac_optarg ;;
1457 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1459 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1460 dvidir
=$ac_optarg ;;
1462 -enable-* |
--enable-*)
1463 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1464 # Reject names that are not valid shell variable names.
1465 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1466 as_fn_error
"invalid feature name: $ac_useropt"
1467 ac_useropt_orig
=$ac_useropt
1468 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1469 case $ac_user_opts in
1471 "enable_
$ac_useropt"
1473 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1474 ac_unrecognized_sep
=', ';;
1476 eval enable_
$ac_useropt=\
$ac_optarg ;;
1478 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1479 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1480 |
--exec |
--exe |
--ex)
1481 ac_prev
=exec_prefix
;;
1482 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1483 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1484 |
--exec=* |
--exe=* |
--ex=*)
1485 exec_prefix
=$ac_optarg ;;
1487 -gas |
--gas |
--ga |
--g)
1488 # Obsolete; use --with-gas.
1491 -help |
--help |
--hel |
--he |
-h)
1492 ac_init_help
=long
;;
1493 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1494 ac_init_help
=recursive
;;
1495 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1496 ac_init_help
=short
;;
1498 -host |
--host |
--hos |
--ho)
1499 ac_prev
=host_alias
;;
1500 -host=* |
--host=* |
--hos=* |
--ho=*)
1501 host_alias
=$ac_optarg ;;
1503 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1505 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1507 htmldir
=$ac_optarg ;;
1509 -includedir |
--includedir |
--includedi |
--included |
--include \
1510 |
--includ |
--inclu |
--incl |
--inc)
1511 ac_prev
=includedir
;;
1512 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1513 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1514 includedir
=$ac_optarg ;;
1516 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1518 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1519 infodir
=$ac_optarg ;;
1521 -libdir |
--libdir |
--libdi |
--libd)
1523 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1524 libdir
=$ac_optarg ;;
1526 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1527 |
--libexe |
--libex |
--libe)
1528 ac_prev
=libexecdir
;;
1529 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1530 |
--libexe=* |
--libex=* |
--libe=*)
1531 libexecdir
=$ac_optarg ;;
1533 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1534 ac_prev
=localedir
;;
1535 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1536 localedir
=$ac_optarg ;;
1538 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1539 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1540 ac_prev
=localstatedir
;;
1541 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1542 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1543 localstatedir
=$ac_optarg ;;
1545 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1547 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1548 mandir
=$ac_optarg ;;
1550 -nfp |
--nfp |
--nf)
1551 # Obsolete; use --without-fp.
1554 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1555 |
--no-cr |
--no-c |
-n)
1558 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1559 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1562 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1563 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1564 |
--oldin |
--oldi |
--old |
--ol |
--o)
1565 ac_prev
=oldincludedir
;;
1566 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1567 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1568 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1569 oldincludedir
=$ac_optarg ;;
1571 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1573 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1574 prefix
=$ac_optarg ;;
1576 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1577 |
--program-pre |
--program-pr |
--program-p)
1578 ac_prev
=program_prefix
;;
1579 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1580 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1581 program_prefix
=$ac_optarg ;;
1583 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1584 |
--program-suf |
--program-su |
--program-s)
1585 ac_prev
=program_suffix
;;
1586 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1587 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1588 program_suffix
=$ac_optarg ;;
1590 -program-transform-name |
--program-transform-name \
1591 |
--program-transform-nam |
--program-transform-na \
1592 |
--program-transform-n |
--program-transform- \
1593 |
--program-transform |
--program-transfor \
1594 |
--program-transfo |
--program-transf \
1595 |
--program-trans |
--program-tran \
1596 |
--progr-tra |
--program-tr |
--program-t)
1597 ac_prev
=program_transform_name
;;
1598 -program-transform-name=* |
--program-transform-name=* \
1599 |
--program-transform-nam=* |
--program-transform-na=* \
1600 |
--program-transform-n=* |
--program-transform-=* \
1601 |
--program-transform=* |
--program-transfor=* \
1602 |
--program-transfo=* |
--program-transf=* \
1603 |
--program-trans=* |
--program-tran=* \
1604 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1605 program_transform_name
=$ac_optarg ;;
1607 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1609 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1610 pdfdir
=$ac_optarg ;;
1612 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1614 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1617 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1618 |
-silent |
--silent |
--silen |
--sile |
--sil)
1621 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1623 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1625 sbindir
=$ac_optarg ;;
1627 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1628 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1629 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1631 ac_prev
=sharedstatedir
;;
1632 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1633 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1634 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1636 sharedstatedir
=$ac_optarg ;;
1638 -site |
--site |
--sit)
1640 -site=* |
--site=* |
--sit=*)
1643 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1645 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1646 srcdir
=$ac_optarg ;;
1648 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1649 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1650 ac_prev
=sysconfdir
;;
1651 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1652 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1653 sysconfdir
=$ac_optarg ;;
1655 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1656 ac_prev
=target_alias
;;
1657 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1658 target_alias
=$ac_optarg ;;
1660 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1663 -version |
--version |
--versio |
--versi |
--vers |
-V)
1664 ac_init_version
=: ;;
1667 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1668 # Reject names that are not valid shell variable names.
1669 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1670 as_fn_error
"invalid package name: $ac_useropt"
1671 ac_useropt_orig
=$ac_useropt
1672 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1673 case $ac_user_opts in
1677 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1678 ac_unrecognized_sep
=', ';;
1680 eval with_
$ac_useropt=\
$ac_optarg ;;
1682 -without-* |
--without-*)
1683 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1684 # Reject names that are not valid shell variable names.
1685 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1686 as_fn_error
"invalid package name: $ac_useropt"
1687 ac_useropt_orig
=$ac_useropt
1688 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1689 case $ac_user_opts in
1693 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1694 ac_unrecognized_sep
=', ';;
1696 eval with_
$ac_useropt=no
;;
1699 # Obsolete; use --with-x.
1702 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1703 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1704 ac_prev
=x_includes
;;
1705 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1706 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1707 x_includes
=$ac_optarg ;;
1709 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1710 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1711 ac_prev
=x_libraries
;;
1712 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1713 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1714 x_libraries
=$ac_optarg ;;
1716 -*) as_fn_error
"unrecognized option: \`$ac_option'
1717 Try \`$0 --help' for more information."
1721 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1722 # Reject names that are not valid shell variable names.
1723 case $ac_envvar in #(
1724 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1725 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1727 eval $ac_envvar=\
$ac_optarg
1728 export $ac_envvar ;;
1731 # FIXME: should be removed in autoconf 3.0.
1732 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1733 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1734 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1735 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1741 if test -n "$ac_prev"; then
1742 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1743 as_fn_error
"missing argument to $ac_option"
1746 if test -n "$ac_unrecognized_opts"; then
1747 case $enable_option_checking in
1749 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1750 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1754 # Check all directory arguments for consistency.
1755 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1756 datadir sysconfdir sharedstatedir localstatedir includedir \
1757 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1758 libdir localedir mandir
1760 eval ac_val
=\$
$ac_var
1761 # Remove trailing slashes.
1764 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1765 eval $ac_var=\
$ac_val;;
1767 # Be sure to have absolute directory names.
1769 [\\/$
]* | ?
:[\\/]* ) continue;;
1770 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1772 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
1775 # There might be people who depend on the old broken behavior: `$host'
1776 # used to hold the argument of --host etc.
1777 # FIXME: To remove some day.
1780 target
=$target_alias
1782 # FIXME: To remove some day.
1783 if test "x$host_alias" != x
; then
1784 if test "x$build_alias" = x
; then
1785 cross_compiling
=maybe
1786 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1787 If a cross compiler is detected then cross compile mode will be used." >&2
1788 elif test "x$build_alias" != "x$host_alias"; then
1794 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1796 test "$silent" = yes && exec 6>/dev
/null
1799 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1800 ac_ls_di
=`ls -di .` &&
1801 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1802 as_fn_error
"working directory cannot be determined"
1803 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1804 as_fn_error
"pwd does not report name of working directory"
1807 # Find the source files, if location was not specified.
1808 if test -z "$srcdir"; then
1809 ac_srcdir_defaulted
=yes
1810 # Try the directory containing this script, then the parent directory.
1811 ac_confdir
=`$as_dirname -- "$as_myself" ||
1812 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1813 X"$as_myself" : 'X\(//\)[^/]' \| \
1814 X"$as_myself" : 'X\(//\)$' \| \
1815 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1816 $as_echo X"$as_myself" |
1817 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1835 if test ! -r "$srcdir/$ac_unique_file"; then
1839 ac_srcdir_defaulted
=no
1841 if test ! -r "$srcdir/$ac_unique_file"; then
1842 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1843 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
1845 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1847 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1849 # When building in place, set srcdir=.
1850 if test "$ac_abs_confdir" = "$ac_pwd"; then
1853 # Remove unnecessary trailing slashes from srcdir.
1854 # Double slashes in file names in object file debugging info
1855 # mess up M-x gdb in Emacs.
1857 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1859 for ac_var
in $ac_precious_vars; do
1860 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1861 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1862 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1863 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1867 # Report the --help message.
1869 if test "$ac_init_help" = "long"; then
1870 # Omit some internal or obsolete options to make the list less imposing.
1871 # This message is too long to be a string in the A/UX 3.1 sh.
1873 \`configure' configures emacs 24.0.50 to adapt to many kinds of systems.
1875 Usage: $0 [OPTION]... [VAR=VALUE]...
1877 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1878 VAR=VALUE. See below for descriptions of some of the useful variables.
1880 Defaults for the options are specified in brackets.
1883 -h, --help display this help and exit
1884 --help=short display options specific to this package
1885 --help=recursive display the short help of all the included packages
1886 -V, --version display version information and exit
1887 -q, --quiet, --silent do not print \`checking...' messages
1888 --cache-file=FILE cache test results in FILE [disabled]
1889 -C, --config-cache alias for \`--cache-file=config.cache'
1890 -n, --no-create do not create output files
1891 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1893 Installation directories:
1894 --prefix=PREFIX install architecture-independent files in PREFIX
1895 [$ac_default_prefix]
1896 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1899 By default, \`make install' will install all the files in
1900 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1901 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1902 for instance \`--prefix=\$HOME'.
1904 For better control, use the options below.
1906 Fine tuning of the installation directories:
1907 --bindir=DIR user executables [EPREFIX/bin]
1908 --sbindir=DIR system admin executables [EPREFIX/sbin]
1909 --libexecdir=DIR program executables [EPREFIX/libexec]
1910 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1911 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1912 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1913 --libdir=DIR object code libraries [EPREFIX/lib]
1914 --includedir=DIR C header files [PREFIX/include]
1915 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1916 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1917 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1918 --infodir=DIR info documentation [DATAROOTDIR/info]
1919 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1920 --mandir=DIR man documentation [DATAROOTDIR/man]
1921 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1922 --htmldir=DIR html documentation [DOCDIR]
1923 --dvidir=DIR dvi documentation [DOCDIR]
1924 --pdfdir=DIR pdf documentation [DOCDIR]
1925 --psdir=DIR ps documentation [DOCDIR]
1931 --program-prefix=PREFIX prepend PREFIX to installed program names
1932 --program-suffix=SUFFIX append SUFFIX to installed program names
1933 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1936 --x-includes=DIR X include files are
in DIR
1937 --x-libraries=DIR X library files are
in DIR
1940 --build=BUILD configure
for building on BUILD
[guessed
]
1941 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1945 if test -n "$ac_init_help"; then
1946 case $ac_init_help in
1947 short | recursive
) echo "Configuration of emacs 24.0.50:";;
1952 --disable-option-checking ignore unrecognized
--enable/--with options
1953 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1954 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1955 --disable-ns-self-contained
1956 disable self contained build under NeXTstep
1957 --enable-asserts compile code with asserts enabled
1958 --disable-maintainer-mode
1959 disable
make rules and dependencies not useful
(and
1960 sometimes confusing
) to the casual installer
1961 --enable-locallisppath=PATH
1962 directories Emacs should search
for lisp files
1963 specific to this site
1964 --enable-checking[=LIST
]
1965 enable expensive run-time checks. With LIST
, enable
1966 only specific categories of checks. Categories are
:
1967 all
,yes,no. Flags are
: stringbytes
, stringoverrun
,
1968 stringfreelist
, xmallocoverrun
, conslist
1969 --enable-use-lisp-union-type
1970 use a union
for the Lisp_Object data
type. This is
1971 only useful
for development
for catching certain
1973 --enable-profiling build emacs with profiling support. This might not
1974 work on all platforms
1975 --enable-autodepend automatically generate dependencies to .h-files.
1976 Requires GNU Make and Gcc. Enabled
if GNU Make and
1978 --disable-dependency-tracking speeds up one-time build
1979 --enable-dependency-tracking do not reject slow dependency extractors
1980 --disable-largefile omit support
for large files
1983 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1984 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1985 --without-pop don
't support POP mail retrieval with movemail
1986 --with-kerberos support Kerberos-authenticated POP
1987 --with-kerberos5 support Kerberos version 5 authenticated POP
1988 --with-hesiod support Hesiod to get the POP server host
1989 --with-mmdf support MMDF mailboxes
1990 --with-mail-unlink unlink, rather than empty, mail spool after reading
1991 --with-mailhost=HOSTNAME
1992 string giving default POP mail host
1993 --without-sound don't compile with sound support
1994 --without-sync-input process async input synchronously
1995 --with-x-toolkit=KIT use an X toolkit
(KIT one of
: yes or gtk
, gtk3
,
1996 lucid or athena
, motif
, no
)
1997 --with-wide-int prefer wide Emacs integers
(typically
62-bit)
1998 --without-xpm don
't compile with XPM image support
1999 --without-jpeg don't compile with JPEG image support
2000 --without-tiff don
't compile with TIFF image support
2001 --without-gif don't compile with GIF image support
2002 --without-png don
't compile with PNG image support
2003 --without-rsvg don't compile with SVG image support
2004 --without-xml2 don
't compile with XML parsing support
2005 --without-imagemagick don't compile with ImageMagick image support
2006 --without-xft don
't use XFT for anti aliased fonts
2007 --without-libotf don't use libotf
for OpenType font support
2008 --without-m17n-flt don
't use m17n-flt for text shaping
2009 --without-toolkit-scroll-bars
2010 don't use Motif or Xaw3d scroll bars
2011 --without-xaw3d don
't use Xaw3d
2012 --without-xim don't use X11 XIM
2013 --with-ns use NeXTstep
(Cocoa or GNUstep
) windowing system
2014 --without-gpm don
't use -lgpm for mouse support on a GNU/Linux
2016 --without-dbus don't compile with D-Bus support
2017 --without-gconf don
't compile with GConf support
2018 --without-gsettings don't compile with GSettings support
2019 --without-selinux don
't compile with SELinux support
2020 --without-gnutls don't use
-lgnutls for SSL
/TLS support
2021 --without-makeinfo don
't require makeinfo for building manuals
2022 --without-compress-info don't
compress the installed Info pages
2023 --with-pkg-config-prog=PATH
2024 path to pkg-config
for finding GTK and librsvg
2025 --with-crt-dir=DIR directory containing crtn.o etc. The default is
2026 /usr
/lib
, or
/usr
/lib64 on some platforms.
2027 --with-gameuser=USER user
for shared game score files
2028 --with-gnustep-conf=PATH
2029 path to GNUstep.conf
; default
$GNUSTEP_CONFIG_FILE,
2030 or
/etc
/GNUstep
/GNUstep.conf
2031 --with-x use the X Window System
2033 Some influential environment variables
:
2034 CC C compiler
command
2035 CFLAGS C compiler flags
2036 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
2037 nonstandard directory
<lib dir
>
2038 LIBS libraries to pass to the linker
, e.g.
-l<library
>
2039 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
2040 you have headers
in a nonstandard directory
<include dir
>
2042 XMKMF Path to xmkmf
, Makefile generator
for X Window System
2044 Use these variables to override the choices made by
`configure' or to help
2045 it to find libraries and programs with nonstandard names/locations.
2047 Report bugs to the package provider.
2052 if test "$ac_init_help" = "recursive"; then
2053 # If there are subdirs, report their specific --help.
2054 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2055 test -d "$ac_dir" ||
2056 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2061 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2063 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
2064 # A ".." for each directory in $ac_dir_suffix.
2065 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
2066 case $ac_top_builddir_sub in
2067 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2068 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2071 ac_abs_top_builddir=$ac_pwd
2072 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2073 # for backward compatibility:
2074 ac_top_builddir=$ac_top_build_prefix
2077 .) # We are building in place.
2079 ac_top_srcdir=$ac_top_builddir_sub
2080 ac_abs_top_srcdir=$ac_pwd ;;
2081 [\\/]* | ?:[\\/]* ) # Absolute name.
2082 ac_srcdir=$srcdir$ac_dir_suffix;
2083 ac_top_srcdir=$srcdir
2084 ac_abs_top_srcdir=$srcdir ;;
2086 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2087 ac_top_srcdir=$ac_top_build_prefix$srcdir
2088 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2090 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2092 cd "$ac_dir" || { ac_status=$?; continue; }
2093 # Check for guested configure.
2094 if test -f "$ac_srcdir/configure.gnu"; then
2096 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2097 elif test -f "$ac_srcdir/configure"; then
2099 $SHELL "$ac_srcdir/configure" --help=recursive
2101 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2103 cd "$ac_pwd" || { ac_status=$?; break; }
2107 test -n "$ac_init_help" && exit $ac_status
2108 if $ac_init_version; then
2110 emacs configure 24.0.50
2111 generated by GNU Autoconf 2.65
2113 Copyright (C) 2009 Free Software Foundation, Inc.
2114 This configure script is free software; the Free Software Foundation
2115 gives unlimited permission to copy, distribute and modify it.
2120 ## ------------------------ ##
2121 ## Autoconf initialization. ##
2122 ## ------------------------ ##
2124 # ac_fn_c_try_compile LINENO
2125 # --------------------------
2126 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2127 ac_fn_c_try_compile ()
2129 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2130 rm -f conftest.$ac_objext
2131 if { { ac_try="$ac_compile"
2133 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2134 *) ac_try_echo
=$ac_try;;
2136 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2137 $as_echo "$ac_try_echo"; } >&5
2138 (eval "$ac_compile") 2>conftest.err
2140 if test -s conftest.err
; then
2141 grep -v '^ *+' conftest.err
>conftest.er1
2142 cat conftest.er1
>&5
2143 mv -f conftest.er1 conftest.err
2145 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2146 test $ac_status = 0; } && {
2147 test -z "$ac_c_werror_flag" ||
2148 test ! -s conftest.err
2149 } && test -s conftest.
$ac_objext; then :
2152 $as_echo "$as_me: failed program was:" >&5
2153 sed 's/^/| /' conftest.
$ac_ext >&5
2157 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2158 as_fn_set_status
$ac_retval
2160 } # ac_fn_c_try_compile
2162 # ac_fn_c_try_cpp LINENO
2163 # ----------------------
2164 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2167 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2168 if { { ac_try
="$ac_cpp conftest.$ac_ext"
2170 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2171 *) ac_try_echo=$ac_try;;
2173 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2174 $as_echo "$ac_try_echo"; } >&5
2175 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2177 if test -s conftest.err; then
2178 grep -v '^ *+' conftest.err >conftest.er1
2179 cat conftest.er1 >&5
2180 mv -f conftest.er1 conftest.err
2182 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2183 test $ac_status = 0; } >/dev/null && {
2184 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2185 test ! -s conftest.err
2189 $as_echo "$as_me: failed program was:" >&5
2190 sed 's/^/| /' conftest.$ac_ext >&5
2194 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2195 as_fn_set_status $ac_retval
2199 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2200 # -------------------------------------------------------
2201 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2202 # the include files in INCLUDES and setting the cache variable VAR
2204 ac_fn_c_check_header_mongrel ()
2206 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2207 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2209 $as_echo_n "checking for $2... " >&6; }
2210 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2211 $as_echo_n "(cached) " >&6
2214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2215 $as_echo "$ac_res" >&6; }
2217 # Is the header compilable?
2218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2219 $as_echo_n "checking $2 usability... " >&6; }
2220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2221 /* end confdefs.h. */
2225 if ac_fn_c_try_compile "$LINENO"; then :
2226 ac_header_compiler=yes
2228 ac_header_compiler=no
2230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2232 $as_echo "$ac_header_compiler" >&6; }
2234 # Is the header present?
2235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2236 $as_echo_n "checking $2 presence... " >&6; }
2237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2238 /* end confdefs.h. */
2241 if ac_fn_c_try_cpp "$LINENO"; then :
2242 ac_header_preproc=yes
2244 ac_header_preproc=no
2246 rm -f conftest.err conftest.$ac_ext
2247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2248 $as_echo "$ac_header_preproc" >&6; }
2250 # So? What about this header?
2251 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2253 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2254 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2255 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2256 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2259 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2260 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2261 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2262 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2263 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2264 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2265 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2266 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2267 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2268 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2272 $as_echo_n "checking for $2... " >&6; }
2273 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2274 $as_echo_n "(cached) " >&6
2276 eval "$3=\$ac_header_compiler"
2279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2280 $as_echo "$ac_res" >&6; }
2282 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2284 } # ac_fn_c_check_header_mongrel
2286 # ac_fn_c_try_run LINENO
2287 # ----------------------
2288 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2289 # that executables *can* be run.
2292 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2293 if { { ac_try="$ac_link"
2295 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2296 *) ac_try_echo
=$ac_try;;
2298 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2299 $as_echo "$ac_try_echo"; } >&5
2300 (eval "$ac_link") 2>&5
2302 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2303 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
2304 { { case "(($ac_try" in
2305 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2306 *) ac_try_echo=$ac_try;;
2308 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2309 $as_echo "$ac_try_echo"; } >&5
2310 (eval "$ac_try") 2>&5
2312 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2313 test $ac_status = 0; }; }; then :
2316 $as_echo "$as_me: program exited with status $ac_status" >&5
2317 $as_echo "$as_me: failed program was:" >&5
2318 sed 's/^/| /' conftest.$ac_ext >&5
2320 ac_retval=$ac_status
2322 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2323 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2324 as_fn_set_status $ac_retval
2328 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2329 # -------------------------------------------------------
2330 # Tests whether HEADER exists and can be compiled using the include files in
2331 # INCLUDES, setting the cache variable VAR accordingly.
2332 ac_fn_c_check_header_compile ()
2334 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2336 $as_echo_n "checking for $2... " >&6; }
2337 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2338 $as_echo_n "(cached) " >&6
2340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2341 /* end confdefs.h. */
2345 if ac_fn_c_try_compile "$LINENO"; then :
2350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2354 $as_echo "$ac_res" >&6; }
2355 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2357 } # ac_fn_c_check_header_compile
2359 # ac_fn_c_try_link LINENO
2360 # -----------------------
2361 # Try to link conftest.$ac_ext, and return whether this succeeded.
2364 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2365 rm -f conftest.$ac_objext conftest$ac_exeext
2366 if { { ac_try="$ac_link"
2368 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2369 *) ac_try_echo
=$ac_try;;
2371 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2372 $as_echo "$ac_try_echo"; } >&5
2373 (eval "$ac_link") 2>conftest.err
2375 if test -s conftest.err
; then
2376 grep -v '^ *+' conftest.err
>conftest.er1
2377 cat conftest.er1
>&5
2378 mv -f conftest.er1 conftest.err
2380 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2381 test $ac_status = 0; } && {
2382 test -z "$ac_c_werror_flag" ||
2383 test ! -s conftest.err
2384 } && test -s conftest
$ac_exeext && {
2385 test "$cross_compiling" = yes ||
2386 $as_test_x conftest
$ac_exeext
2390 $as_echo "$as_me: failed program was:" >&5
2391 sed 's/^/| /' conftest.
$ac_ext >&5
2395 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2396 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2397 # interfere with the next link command; also delete a directory that is
2398 # left behind by Apple's compiler. We do this before executing the actions.
2399 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2400 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2401 as_fn_set_status
$ac_retval
2403 } # ac_fn_c_try_link
2405 # ac_fn_c_check_decl LINENO SYMBOL VAR
2406 # ------------------------------------
2407 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2408 ac_fn_c_check_decl
()
2410 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2412 $as_echo_n "checking whether $2 is declared... " >&6; }
2413 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2414 $as_echo_n "(cached) " >&6
2416 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2417 /* end confdefs.h. */
2430 if ac_fn_c_try_compile
"$LINENO"; then :
2435 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2439 $as_echo "$ac_res" >&6; }
2440 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2442 } # ac_fn_c_check_decl
2444 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2445 # ----------------------------------------------
2446 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2447 ac_fn_c_check_header_preproc
()
2449 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2451 $as_echo_n "checking for $2... " >&6; }
2452 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2453 $as_echo_n "(cached) " >&6
2455 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2456 /* end confdefs.h. */
2459 if ac_fn_c_try_cpp
"$LINENO"; then :
2464 rm -f conftest.err conftest.
$ac_ext
2467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2468 $as_echo "$ac_res" >&6; }
2469 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2471 } # ac_fn_c_check_header_preproc
2473 # ac_fn_c_check_func LINENO FUNC VAR
2474 # ----------------------------------
2475 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2476 ac_fn_c_check_func
()
2478 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2480 $as_echo_n "checking for $2... " >&6; }
2481 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2482 $as_echo_n "(cached) " >&6
2484 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2485 /* end confdefs.h. */
2486 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2487 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2488 #define $2 innocuous_$2
2490 /* System header to define __stub macros and hopefully few prototypes,
2491 which can conflict with char $2 (); below.
2492 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2493 <limits.h> exists even on freestanding compilers. */
2496 # include <limits.h>
2498 # include <assert.h>
2503 /* Override any GCC internal prototype to avoid an error.
2504 Use char because int might match the return type of a GCC
2505 builtin and then its argument prototype would still apply. */
2510 /* The GNU C library defines this for functions which it implements
2511 to always fail with ENOSYS. Some functions are actually named
2512 something starting with __ and the normal name is an alias. */
2513 #if defined __stub_$2 || defined __stub___$2
2525 if ac_fn_c_try_link
"$LINENO"; then :
2530 rm -f core conftest.err conftest.
$ac_objext \
2531 conftest
$ac_exeext conftest.
$ac_ext
2534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2535 $as_echo "$ac_res" >&6; }
2536 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2538 } # ac_fn_c_check_func
2540 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2541 # ----------------------------------------------------
2542 # Tries to find if the field MEMBER exists in type AGGR, after including
2543 # INCLUDES, setting cache variable VAR accordingly.
2544 ac_fn_c_check_member
()
2546 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2548 $as_echo_n "checking for $2.$3... " >&6; }
2549 if { as_var
=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2550 $as_echo_n "(cached) " >&6
2552 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2553 /* end confdefs.h. */
2565 if ac_fn_c_try_compile
"$LINENO"; then :
2568 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2569 /* end confdefs.h. */
2575 if (sizeof ac_aggr.$3)
2581 if ac_fn_c_try_compile
"$LINENO"; then :
2586 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2588 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2592 $as_echo "$ac_res" >&6; }
2593 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2595 } # ac_fn_c_check_member
2597 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2598 # -------------------------------------------
2599 # Tests whether TYPE exists after having included INCLUDES, setting cache
2600 # variable VAR accordingly.
2601 ac_fn_c_check_type
()
2603 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2605 $as_echo_n "checking for $2... " >&6; }
2606 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2607 $as_echo_n "(cached) " >&6
2610 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2611 /* end confdefs.h. */
2622 if ac_fn_c_try_compile
"$LINENO"; then :
2623 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2624 /* end confdefs.h. */
2635 if ac_fn_c_try_compile
"$LINENO"; then :
2640 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2642 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2646 $as_echo "$ac_res" >&6; }
2647 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2649 } # ac_fn_c_check_type
2651 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2652 # --------------------------------------------
2653 # Tries to find the compile-time value of EXPR in a program that includes
2654 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2656 ac_fn_c_compute_int
()
2658 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2659 if test "$cross_compiling" = yes; then
2660 # Depending upon the size, compute the lo and hi bounds.
2661 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2662 /* end confdefs.h. */
2667 static int test_array [1 - 2 * !(($2) >= 0)];
2674 if ac_fn_c_try_compile
"$LINENO"; then :
2677 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2678 /* end confdefs.h. */
2683 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2690 if ac_fn_c_try_compile
"$LINENO"; then :
2691 ac_hi
=$ac_mid; break
2693 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
2694 if test $ac_lo -le $ac_mid; then
2698 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
2700 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2703 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2704 /* end confdefs.h. */
2709 static int test_array [1 - 2 * !(($2) < 0)];
2716 if ac_fn_c_try_compile
"$LINENO"; then :
2719 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2720 /* end confdefs.h. */
2725 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2732 if ac_fn_c_try_compile
"$LINENO"; then :
2733 ac_lo
=$ac_mid; break
2735 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
2736 if test $ac_mid -le $ac_hi; then
2740 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
2742 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2747 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2749 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2750 # Binary search between lo and hi bounds.
2751 while test "x$ac_lo" != "x$ac_hi"; do
2752 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
2753 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2754 /* end confdefs.h. */
2759 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2766 if ac_fn_c_try_compile
"$LINENO"; then :
2769 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
2771 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2774 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
2778 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2779 /* end confdefs.h. */
2781 static long int longval () { return $2; }
2782 static unsigned long int ulongval () { return $2; }
2789 FILE *f = fopen ("conftest.val", "w");
2794 long int i = longval ();
2797 fprintf (f, "%ld", i);
2801 unsigned long int i = ulongval ();
2804 fprintf (f, "%lu", i);
2806 /* Do not output a trailing newline, as this causes \r\n confusion
2807 on some platforms. */
2808 return ferror (f) || fclose (f) != 0;
2814 if ac_fn_c_try_run
"$LINENO"; then :
2815 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
2819 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
2820 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
2824 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2825 as_fn_set_status
$ac_retval
2827 } # ac_fn_c_compute_int
2828 cat >config.log
<<_ACEOF
2829 This file contains any messages produced by compilers while
2830 running configure, to aid debugging if configure makes a mistake.
2832 It was created by emacs $as_me 24.0.50, which was
2833 generated by GNU Autoconf 2.65. Invocation command line was
2845 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2846 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2847 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2848 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2849 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2851 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2852 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2854 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2855 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2856 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2857 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2858 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2859 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2860 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2864 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2868 test -z "$as_dir" && as_dir
=.
2869 $as_echo "PATH: $as_dir"
2885 # Keep a trace of the command line.
2886 # Strip out --no-create and --no-recursion so they do not pile up.
2887 # Strip out --silent because we don't want to record it for future runs.
2888 # Also quote any args containing shell meta-characters.
2889 # Make two passes to allow for proper duplicate-argument suppression.
2893 ac_must_keep_next
=false
2899 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2900 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2901 |
-silent |
--silent |
--silen |
--sile |
--sil)
2904 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2907 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2909 as_fn_append ac_configure_args1
" '$ac_arg'"
2910 if test $ac_must_keep_next = true
; then
2911 ac_must_keep_next
=false
# Got value, back to normal.
2914 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2915 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2916 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2917 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2918 case "$ac_configure_args0 " in
2919 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2922 -* ) ac_must_keep_next
=true
;;
2925 as_fn_append ac_configure_args
" '$ac_arg'"
2930 { ac_configure_args0
=; unset ac_configure_args0
;}
2931 { ac_configure_args1
=; unset ac_configure_args1
;}
2933 # When interrupted or exit'd, cleanup temporary files, and complete
2934 # config.log. We remove comments because anyway the quotes in there
2935 # would cause problems or look ugly.
2936 # WARNING: Use '\'' to represent an apostrophe within the trap.
2937 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2938 trap 'exit_status=$?
2939 # Save into config.log some information that might help in debugging.
2944 ## ---------------- ##
2945 ## Cache variables. ##
2946 ## ---------------- ##
2949 # The following way of writing the cache mishandles newlines in values,
2951 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2952 eval ac_val=\$$ac_var
2956 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2957 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2960 _ | IFS | as_nl) ;; #(
2961 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2962 *) { eval $ac_var=; unset $ac_var;} ;;
2967 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2968 *${as_nl}ac_space=\ *)
2970 "s/'\''/'\''\\\\'\'''\''/g;
2971 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2974 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2982 ## ----------------- ##
2983 ## Output variables. ##
2984 ## ----------------- ##
2987 for ac_var in $ac_subst_vars
2989 eval ac_val=\$$ac_var
2991 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2993 $as_echo "$ac_var='\''$ac_val'\''"
2997 if test -n "$ac_subst_files"; then
2999 ## ------------------- ##
3000 ## File substitutions. ##
3001 ## ------------------- ##
3004 for ac_var
in $ac_subst_files
3006 eval ac_val
=\$
$ac_var
3008 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3010 $as_echo "$ac_var='\''$ac_val'\''"
3015 if test -s confdefs.h; then
3025 test "$ac_signal" != 0 &&
3026 $as_echo "$as_me: caught signal $ac_signal"
3027 $as_echo "$as_me: exit $exit_status"
3029 rm -f core *.core core.conftest.* &&
3030 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3033 for ac_signal
in 1 2 13 15; do
3034 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3038 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3039 rm -f -r conftest
* confdefs.h
3041 $as_echo "/* confdefs.h */" > confdefs.h
3043 # Predefined preprocessor variables.
3045 cat >>confdefs.h
<<_ACEOF
3046 #define PACKAGE_NAME "$PACKAGE_NAME"
3049 cat >>confdefs.h
<<_ACEOF
3050 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3053 cat >>confdefs.h
<<_ACEOF
3054 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3057 cat >>confdefs.h
<<_ACEOF
3058 #define PACKAGE_STRING "$PACKAGE_STRING"
3061 cat >>confdefs.h
<<_ACEOF
3062 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3065 cat >>confdefs.h
<<_ACEOF
3066 #define PACKAGE_URL "$PACKAGE_URL"
3070 # Let the site file select an alternate cache file if it wants to.
3071 # Prefer an explicitly selected file to automatically selected ones.
3074 if test -n "$CONFIG_SITE"; then
3075 ac_site_file1
=$CONFIG_SITE
3076 elif test "x$prefix" != xNONE
; then
3077 ac_site_file1
=$prefix/share
/config.site
3078 ac_site_file2
=$prefix/etc
/config.site
3080 ac_site_file1
=$ac_default_prefix/share
/config.site
3081 ac_site_file2
=$ac_default_prefix/etc
/config.site
3083 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
3085 test "x$ac_site_file" = xNONE
&& continue
3086 if test /dev
/null
!= "$ac_site_file" && test -r "$ac_site_file"; then
3087 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3088 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3089 sed 's/^/| /' "$ac_site_file" >&5
3094 if test -r "$cache_file"; then
3095 # Some versions of bash will fail to source /dev/null (special files
3096 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3097 if test /dev
/null
!= "$cache_file" && test -f "$cache_file"; then
3098 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3099 $as_echo "$as_me: loading cache $cache_file" >&6;}
3101 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
3102 *) .
"./$cache_file";;
3106 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3107 $as_echo "$as_me: creating cache $cache_file" >&6;}
3111 as_fn_append ac_header_list
" stdlib.h"
3112 as_fn_append ac_header_list
" unistd.h"
3113 as_fn_append ac_header_list
" sys/param.h"
3114 as_fn_append ac_func_list
" readlinkat"
3115 gl_getopt_required
=GNU
3116 as_fn_append ac_header_list
" getopt.h"
3117 as_fn_append ac_header_list
" wchar.h"
3118 as_fn_append ac_header_list
" stdint.h"
3119 as_fn_append ac_header_list
" inttypes.h"
3120 as_fn_append ac_func_list
" lstat"
3121 as_fn_append ac_func_list
" alarm"
3122 as_fn_append ac_func_list
" pthread_sigmask"
3123 as_fn_append ac_func_list
" readlink"
3124 as_fn_append ac_header_list
" sys/socket.h"
3125 as_fn_append ac_func_list
" tzset"
3126 as_fn_append ac_func_list
" strtoimax"
3127 as_fn_append ac_func_list
" strtoumax"
3128 as_fn_append ac_func_list
" symlink"
3129 as_fn_append ac_header_list
" sys/stat.h"
3130 as_fn_append ac_header_list
" sys/time.h"
3131 as_fn_append ac_func_list
" localtime_r"
3132 # Check that the precious variables saved in the cache have kept the same
3134 ac_cache_corrupted
=false
3135 for ac_var
in $ac_precious_vars; do
3136 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
3137 eval ac_new_set
=\
$ac_env_${ac_var}_set
3138 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
3139 eval ac_new_val
=\
$ac_env_${ac_var}_value
3140 case $ac_old_set,$ac_new_set in
3142 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3143 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3144 ac_cache_corrupted
=: ;;
3146 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3147 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3148 ac_cache_corrupted
=: ;;
3151 if test "x$ac_old_val" != "x$ac_new_val"; then
3152 # differences in whitespace do not lead to failure.
3153 ac_old_val_w
=`echo x $ac_old_val`
3154 ac_new_val_w
=`echo x $ac_new_val`
3155 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3156 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3157 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3158 ac_cache_corrupted
=:
3160 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3161 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3162 eval $ac_var=\
$ac_old_val
3164 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3165 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3166 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3167 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3170 # Pass precious variables to config.status.
3171 if test "$ac_new_set" = set; then
3173 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3174 *) ac_arg
=$ac_var=$ac_new_val ;;
3176 case " $ac_configure_args " in
3177 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3178 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
3182 if $ac_cache_corrupted; then
3183 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3184 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3185 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3186 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3187 as_fn_error
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3189 ## -------------------- ##
3190 ## Main body of script. ##
3191 ## -------------------- ##
3194 ac_cpp
='$CPP $CPPFLAGS'
3195 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3196 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3197 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3200 ac_config_headers
="$ac_config_headers src/config.h:src/config.in"
3204 for ac_dir
in build-aux
"$srcdir"/build-aux
; do
3205 for ac_t
in install-sh
install.sh shtool
; do
3206 if test -f "$ac_dir/$ac_t"; then
3208 ac_install_sh
="$ac_aux_dir/$ac_t -c"
3213 if test -z "$ac_aux_dir"; then
3214 as_fn_error
"cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
3217 # These three variables are undocumented and unsupported,
3218 # and are intended to be withdrawn in a future Autoconf release.
3219 # They can cause serious problems if a builder's source tree is in a directory
3220 # whose full name contains unusual characters.
3221 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3222 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3223 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3226 am__api_version
='1.11'
3228 # Find a good install program. We prefer a C program (faster),
3229 # so one script is as good as another. But avoid the broken or
3230 # incompatible versions:
3231 # SysV /etc/install, /usr/sbin/install
3232 # SunOS /usr/etc/install
3233 # IRIX /sbin/install
3235 # AmigaOS /C/install, which installs bootblocks on floppy discs
3236 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3237 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3238 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3239 # OS/2's system install, which has a completely different semantic
3240 # ./install, which can be erroneously created by make from ./install.sh.
3241 # Reject install programs that cannot install multiple files.
3242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3243 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3244 if test -z "$INSTALL"; then
3245 if test "${ac_cv_path_install+set}" = set; then :
3246 $as_echo_n "(cached) " >&6
3248 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3252 test -z "$as_dir" && as_dir
=.
3253 # Account for people who put trailing slashes in PATH elements.
3254 case $as_dir/ in #((
3255 .
/ | .
// |
/[cC
]/* | \
3256 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
3257 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
3260 # OSF1 and SCO ODT 3.0 have their own names for install.
3261 # Don't use installbsd from OSF since it installs stuff as root
3263 for ac_prog
in ginstall scoinst
install; do
3264 for ac_exec_ext
in '' $ac_executable_extensions; do
3265 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3266 if test $ac_prog = install &&
3267 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3268 # AIX install. It has an incompatible calling convention.
3270 elif test $ac_prog = install &&
3271 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3272 # program-specific install script used by HP pwplus--don't use.
3275 rm -rf conftest.one conftest.two conftest.dir
3276 echo one
> conftest.one
3277 echo two
> conftest.two
3279 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
3280 test -s conftest.one
&& test -s conftest.two
&&
3281 test -s conftest.dir
/conftest.one
&&
3282 test -s conftest.dir
/conftest.two
3284 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
3297 rm -rf conftest.one conftest.two conftest.dir
3300 if test "${ac_cv_path_install+set}" = set; then
3301 INSTALL
=$ac_cv_path_install
3303 # As a last resort, use the slow shell script. Don't cache a
3304 # value for INSTALL within a source directory, because that will
3305 # break other packages using the cache if that directory is
3306 # removed, or if the value is a relative name.
3307 INSTALL
=$ac_install_sh
3310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3311 $as_echo "$INSTALL" >&6; }
3313 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3314 # It thinks the first close brace ends the variable substitution.
3315 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
3317 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
3319 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
3321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3322 $as_echo_n "checking whether build environment is sane... " >&6; }
3325 echo timestamp
> conftest.
file
3326 # Reject unsafe characters in $srcdir or the absolute working directory
3327 # name. Accept space and tab only in the latter.
3331 *[\\\"\
#\$\&\'\`$am_lf]*)
3332 as_fn_error
"unsafe absolute working directory name" "$LINENO" 5;;
3335 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
3336 as_fn_error
"unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3339 # Do `set' in a subshell so we don't clobber the current shell's
3340 # arguments. Must try -L first in case configure is actually a
3341 # symlink; some systems play weird games with the mod time of symlinks
3342 # (eg FreeBSD returns the mod time of the symlink's containing
3345 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3346 if test "$*" = "X"; then
3348 set X
`ls -t "$srcdir/configure" conftest.file`
3351 if test "$*" != "X $srcdir/configure conftest.file" \
3352 && test "$*" != "X conftest.file $srcdir/configure"; then
3354 # If neither matched, then we have a broken ls. This can happen
3355 # if, for instance, CONFIG_SHELL is bash and it inherits a
3356 # broken ls alias from the environment. This has actually
3357 # happened. Such a system could not be considered "sane".
3358 as_fn_error
"ls -t appears to fail. Make sure there is not a broken
3359 alias in your environment" "$LINENO" 5
3362 test "$2" = conftest.
file
3368 as_fn_error
"newly created file is older than distributed files!
3369 Check your system clock" "$LINENO" 5
3371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3372 $as_echo "yes" >&6; }
3373 test "$program_prefix" != NONE
&&
3374 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
3375 # Use a double $ so make ignores it.
3376 test "$program_suffix" != NONE
&&
3377 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
3378 # Double any \ or $.
3379 # By default was `s,x,x', remove it if useless.
3380 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
3381 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
3383 # expand $ac_aux_dir to an absolute path
3384 am_aux_dir
=`cd $ac_aux_dir && pwd`
3386 if test x
"${MISSING+set}" != xset
; then
3389 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
3391 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
3394 # Use eval to expand $SHELL
3395 if eval "$MISSING --run true"; then
3396 am_missing_run
="$MISSING --run "
3399 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3400 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3403 if test x
"${install_sh}" != xset
; then
3406 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
3408 install_sh
="\${SHELL} $am_aux_dir/install-sh"
3412 # Installed binaries are usually stripped using `strip' when the user
3413 # run `make install-strip'. However `strip' might not be the right
3414 # tool to use in cross-compilation environments, therefore Automake
3415 # will honor the `STRIP' environment variable to overrule this program.
3416 if test "$cross_compiling" != no
; then
3417 if test -n "$ac_tool_prefix"; then
3418 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3419 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
3420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3421 $as_echo_n "checking for $ac_word... " >&6; }
3422 if test "${ac_cv_prog_STRIP+set}" = set; then :
3423 $as_echo_n "(cached) " >&6
3425 if test -n "$STRIP"; then
3426 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
3428 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3432 test -z "$as_dir" && as_dir
=.
3433 for ac_exec_ext
in '' $ac_executable_extensions; do
3434 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3435 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
3436 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3445 STRIP
=$ac_cv_prog_STRIP
3446 if test -n "$STRIP"; then
3447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3448 $as_echo "$STRIP" >&6; }
3450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3451 $as_echo "no" >&6; }
3456 if test -z "$ac_cv_prog_STRIP"; then
3458 # Extract the first word of "strip", so it can be a program name with args.
3459 set dummy strip
; ac_word
=$2
3460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3461 $as_echo_n "checking for $ac_word... " >&6; }
3462 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3463 $as_echo_n "(cached) " >&6
3465 if test -n "$ac_ct_STRIP"; then
3466 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
3468 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3472 test -z "$as_dir" && as_dir
=.
3473 for ac_exec_ext
in '' $ac_executable_extensions; do
3474 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3475 ac_cv_prog_ac_ct_STRIP
="strip"
3476 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3485 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
3486 if test -n "$ac_ct_STRIP"; then
3487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3488 $as_echo "$ac_ct_STRIP" >&6; }
3490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3491 $as_echo "no" >&6; }
3494 if test "x$ac_ct_STRIP" = x
; then
3497 case $cross_compiling:$ac_tool_warned in
3499 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3500 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3501 ac_tool_warned
=yes ;;
3506 STRIP
="$ac_cv_prog_STRIP"
3510 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
3512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3513 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3514 if test -z "$MKDIR_P"; then
3515 if test "${ac_cv_path_mkdir+set}" = set; then :
3516 $as_echo_n "(cached) " >&6
3518 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3519 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
3522 test -z "$as_dir" && as_dir
=.
3523 for ac_prog
in mkdir gmkdir
; do
3524 for ac_exec_ext
in '' $ac_executable_extensions; do
3525 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } ||
continue
3526 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3527 'mkdir (GNU coreutils) '* | \
3528 'mkdir (coreutils) '* | \
3529 'mkdir (fileutils) '4.1*)
3530 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
3540 test -d .
/--version && rmdir .
/--version
3541 if test "${ac_cv_path_mkdir+set}" = set; then
3542 MKDIR_P
="$ac_cv_path_mkdir -p"
3544 # As a last resort, use the slow shell script. Don't cache a
3545 # value for MKDIR_P within a source directory, because that will
3546 # break other packages using the cache if that directory is
3547 # removed, or if the value is a relative name.
3548 MKDIR_P
="$ac_install_sh -d"
3551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3552 $as_echo "$MKDIR_P" >&6; }
3557 [\\/$
]* | ?
:[\\/]*) ;;
3558 */*) mkdir_p
="\$(top_builddir)/$mkdir_p" ;;
3561 for ac_prog
in gawk mawk nawk
awk
3563 # Extract the first word of "$ac_prog", so it can be a program name with args.
3564 set dummy
$ac_prog; ac_word
=$2
3565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3566 $as_echo_n "checking for $ac_word... " >&6; }
3567 if test "${ac_cv_prog_AWK+set}" = set; then :
3568 $as_echo_n "(cached) " >&6
3570 if test -n "$AWK"; then
3571 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
3573 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3577 test -z "$as_dir" && as_dir
=.
3578 for ac_exec_ext
in '' $ac_executable_extensions; do
3579 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3580 ac_cv_prog_AWK
="$ac_prog"
3581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3591 if test -n "$AWK"; then
3592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3593 $as_echo "$AWK" >&6; }
3595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3596 $as_echo "no" >&6; }
3600 test -n "$AWK" && break
3603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3604 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3606 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3607 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3608 $as_echo_n "(cached) " >&6
3610 cat >conftest.
make <<\_ACEOF
3613 @
echo '@@@%%%=$(MAKE)=@@@%%%'
3615 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3616 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3618 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
3620 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
3624 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
3625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3626 $as_echo "yes" >&6; }
3629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3630 $as_echo "no" >&6; }
3631 SET_MAKE
="MAKE=${MAKE-make}"
3634 rm -rf .tst
2>/dev
/null
3635 mkdir .tst
2>/dev
/null
3636 if test -d .tst
; then
3641 rmdir .tst
2>/dev
/null
3643 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3644 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3645 # is not polluted with repeated "-I."
3646 am__isrc
=' -I$(srcdir)'
3647 # test to see if srcdir already configured
3648 if test -f $srcdir/config.status
; then
3649 as_fn_error
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3653 # test whether we have cygpath
3654 if test -z "$CYGPATH_W"; then
3655 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
3656 CYGPATH_W
='cygpath -w'
3663 # Define the identity of the package.
3668 cat >>confdefs.h
<<_ACEOF
3669 #define PACKAGE "$PACKAGE"
3673 cat >>confdefs.h
<<_ACEOF
3674 #define VERSION "$VERSION"
3677 # Some tools Automake needs.
3679 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3682 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
3685 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3688 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
3691 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
3693 # We need awk for the "check" target. The system "awk" is bad on
3695 # Always define AMTAR for backward compatibility.
3697 AMTAR
=${AMTAR-"${am_missing_run}tar"}
3699 am__tar
='${AMTAR} chof - "$$tardir"'; am__untar
='${AMTAR} xf -'
3708 lispdir
='${datadir}/emacs/${version}/lisp'
3709 locallisppath
='${datadir}/emacs/${version}/site-lisp:'\
3710 '${datadir}/emacs/site-lisp'
3711 lisppath
='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
3712 etcdir
='${datadir}/emacs/${version}/etc'
3713 archlibdir
='${libexecdir}/emacs/${version}/${configuration}'
3714 docdir
='${datadir}/emacs/${version}/etc'
3715 gamedir
='${localstatedir}/games/emacs'
3720 # Check whether --with-pop was given.
3721 if test "${with_pop+set}" = set; then :
3727 if test "$with_pop" = yes; then
3728 $as_echo "#define MAIL_USE_POP 1" >>confdefs.h
3733 # Check whether --with-kerberos was given.
3734 if test "${with_kerberos+set}" = set; then :
3735 withval
=$with_kerberos;
3740 if test "$with_kerberos" != no
; then
3741 $as_echo "#define KERBEROS 1" >>confdefs.h
3746 # Check whether --with-kerberos5 was given.
3747 if test "${with_kerberos5+set}" = set; then :
3748 withval
=$with_kerberos5;
3753 if test "${with_kerberos5}" != no
; then
3754 if test "${with_kerberos}" = no
; then
3756 $as_echo "#define KERBEROS 1" >>confdefs.h
3760 $as_echo "#define KERBEROS5 1" >>confdefs.h
3765 # Check whether --with-hesiod was given.
3766 if test "${with_hesiod+set}" = set; then :
3767 withval
=$with_hesiod;
3772 if test "$with_hesiod" != no
; then
3774 $as_echo "#define HESIOD 1" >>confdefs.h
3779 # Check whether --with-mmdf was given.
3780 if test "${with_mmdf+set}" = set; then :
3786 if test "$with_mmdf" != no
; then
3788 $as_echo "#define MAIL_USE_MMDF 1" >>confdefs.h
3793 # Check whether --with-mail-unlink was given.
3794 if test "${with_mail_unlink+set}" = set; then :
3795 withval
=$with_mail_unlink;
3800 if test "$with_mail_unlink" != no
; then
3802 $as_echo "#define MAIL_UNLINK_SPOOL 1" >>confdefs.h
3807 # Check whether --with-mailhost was given.
3808 if test "${with_mailhost+set}" = set; then :
3809 withval
=$with_mailhost;
3810 cat >>confdefs.h
<<_ACEOF
3811 #define MAILHOST "$withval"
3818 # Check whether --with-sound was given.
3819 if test "${with_sound+set}" = set; then :
3820 withval
=$with_sound;
3827 # Check whether --with-sync-input was given.
3828 if test "${with_sync_input+set}" = set; then :
3829 withval
=$with_sync_input;
3834 if test "$with_sync_input" = yes; then
3836 $as_echo "#define SYNC_INPUT 1" >>confdefs.h
3841 # Check whether --with-x-toolkit was given.
3842 if test "${with_x_toolkit+set}" = set; then :
3843 withval
=$with_x_toolkit; case "${withval}" in
3844 y | ye |
yes ) val
=gtk
;;
3846 l | lu | luc | luci | lucid
) val
=lucid
;;
3847 a |
at | ath | athe | athen | athena
) val
=athena
;;
3848 m | mo | mot | moti | motif
) val
=motif
;;
3849 g | gt | gtk
) val
=gtk
;;
3852 as_fn_error
"\`--with-x-toolkit=$withval' is invalid;
3853 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif', \`gtk' or
3854 \`gtk3'. \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." "$LINENO" 5
3863 # Check whether --with-wide-int was given.
3864 if test "${with_wide_int+set}" = set; then :
3865 withval
=$with_wide_int;
3870 if test "$with_wide_int" = yes; then
3872 $as_echo "#define WIDE_EMACS_INT 1" >>confdefs.h
3877 # Check whether --with-xpm was given.
3878 if test "${with_xpm+set}" = set; then :
3885 # Check whether --with-jpeg was given.
3886 if test "${with_jpeg+set}" = set; then :
3893 # Check whether --with-tiff was given.
3894 if test "${with_tiff+set}" = set; then :
3901 # Check whether --with-gif was given.
3902 if test "${with_gif+set}" = set; then :
3909 # Check whether --with-png was given.
3910 if test "${with_png+set}" = set; then :
3917 # Check whether --with-rsvg was given.
3918 if test "${with_rsvg+set}" = set; then :
3925 # Check whether --with-xml2 was given.
3926 if test "${with_xml2+set}" = set; then :
3933 # Check whether --with-imagemagick was given.
3934 if test "${with_imagemagick+set}" = set; then :
3935 withval
=$with_imagemagick;
3937 with_imagemagick
=yes
3942 # Check whether --with-xft was given.
3943 if test "${with_xft+set}" = set; then :
3950 # Check whether --with-libotf was given.
3951 if test "${with_libotf+set}" = set; then :
3952 withval
=$with_libotf;
3958 # Check whether --with-m17n-flt was given.
3959 if test "${with_m17n_flt+set}" = set; then :
3960 withval
=$with_m17n_flt;
3967 # Check whether --with-toolkit-scroll-bars was given.
3968 if test "${with_toolkit_scroll_bars+set}" = set; then :
3969 withval
=$with_toolkit_scroll_bars;
3971 with_toolkit_scroll_bars
=yes
3975 # Check whether --with-xaw3d was given.
3976 if test "${with_xaw3d+set}" = set; then :
3977 withval
=$with_xaw3d;
3983 # Check whether --with-xim was given.
3984 if test "${with_xim+set}" = set; then :
3991 # Check whether --with-ns was given.
3992 if test "${with_ns+set}" = set; then :
4000 # Check whether --with-gpm was given.
4001 if test "${with_gpm+set}" = set; then :
4008 # Check whether --with-dbus was given.
4009 if test "${with_dbus+set}" = set; then :
4016 # Check whether --with-gconf was given.
4017 if test "${with_gconf+set}" = set; then :
4018 withval
=$with_gconf;
4024 # Check whether --with-gsettings was given.
4025 if test "${with_gsettings+set}" = set; then :
4026 withval
=$with_gsettings;
4032 # Check whether --with-selinux was given.
4033 if test "${with_selinux+set}" = set; then :
4034 withval
=$with_selinux;
4040 # Check whether --with-gnutls was given.
4041 if test "${with_gnutls+set}" = set; then :
4042 withval
=$with_gnutls;
4048 ## For the times when you want to build Emacs but don't have
4049 ## a suitable makeinfo, and can live without the manuals.
4051 # Check whether --with-makeinfo was given.
4052 if test "${with_makeinfo+set}" = set; then :
4053 withval
=$with_makeinfo;
4059 ## This is an option because I do not know if all info/man support
4060 ## compressed files, nor how to test if they do so.
4062 # Check whether --with-compress-info was given.
4063 if test "${with_compress_info+set}" = set; then :
4064 withval
=$with_compress_info;
4066 with_compress_info
=yes
4069 if test $with_compress_info = yes; then
4077 # Check whether --with-pkg-config-prog was given.
4078 if test "${with_pkg_config_prog+set}" = set; then :
4079 withval
=$with_pkg_config_prog;
4082 if test "X${with_pkg_config_prog}" != X
; then
4083 if test "${with_pkg_config_prog}" != yes; then
4084 PKG_CONFIG
="${with_pkg_config_prog}"
4090 # Check whether --with-crt-dir was given.
4091 if test "${with_crt_dir+set}" = set; then :
4092 withval
=$with_crt_dir;
4095 CRT_DIR
="${with_crt_dir}"
4098 # Check whether --with-gameuser was given.
4099 if test "${with_gameuser+set}" = set; then :
4100 withval
=$with_gameuser;
4103 test "X${with_gameuser}" != X
&& test "${with_gameuser}" != yes \
4104 && gameuser
="${with_gameuser}"
4105 test "X$gameuser" = X
&& gameuser
=games
4108 # Check whether --with-gnustep-conf was given.
4109 if test "${with_gnustep_conf+set}" = set; then :
4110 withval
=$with_gnustep_conf;
4113 test "X${with_gnustep_conf}" != X
&& test "${with_gnustep_conf}" != yes && \
4114 GNUSTEP_CONFIG_FILE
="${with_gnustep_conf}"
4115 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
4116 GNUSTEP_CONFIG_FILE
=/etc
/GNUstep
/GNUstep.conf
4118 # Check whether --enable-ns-self-contained was given.
4119 if test "${enable_ns_self_contained+set}" = set; then :
4120 enableval
=$enable_ns_self_contained; EN_NS_SELF_CONTAINED
=$enableval
4122 EN_NS_SELF_CONTAINED
=yes
4126 # Check whether --enable-asserts was given.
4127 if test "${enable_asserts+set}" = set; then :
4128 enableval
=$enable_asserts; USE_XASSERTS
=$enableval
4134 # Check whether --enable-maintainer-mode was given.
4135 if test "${enable_maintainer_mode+set}" = set; then :
4136 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
4138 USE_MAINTAINER_MODE
=yes
4141 if test $USE_MAINTAINER_MODE = yes; then
4148 # Check whether --enable-locallisppath was given.
4149 if test "${enable_locallisppath+set}" = set; then :
4150 enableval
=$enable_locallisppath; if test "${enableval}" = "no"; then
4152 elif test "${enableval}" != "yes"; then
4153 locallisppath
=${enableval}
4158 # Check whether --enable-checking was given.
4159 if test "${enable_checking+set}" = set; then :
4160 enableval
=$enable_checking; ac_checking_flags
="${enableval}"
4163 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
4164 for check
in $ac_checking_flags
4167 # these set all the flags to specific states
4168 yes) ac_enable_checking
=1 ;;
4169 no
) ac_enable_checking
= ;
4170 ac_gc_check_stringbytes
= ;
4171 ac_gc_check_string_overrun
= ;
4172 ac_gc_check_string_free_list
= ;
4173 ac_xmalloc_overrun
= ;
4174 ac_gc_check_cons_list
= ;;
4175 all
) ac_enable_checking
=1 ;
4176 ac_gc_check_stringbytes
=1 ;
4177 ac_gc_check_string_overrun
=1 ;
4178 ac_gc_check_string_free_list
=1 ;
4179 ac_xmalloc_overrun
=1 ;
4180 ac_gc_check_cons_list
=1 ;;
4181 # these enable particular checks
4182 stringbytes
) ac_gc_check_stringbytes
=1 ;;
4183 stringoverrun
) ac_gc_check_string_overrun
=1 ;;
4184 stringfreelist
) ac_gc_check_string_free_list
=1 ;;
4185 xmallocoverrun
) ac_xmalloc_overrun
=1 ;;
4186 conslist
) ac_gc_check_cons_list
=1 ;;
4187 *) as_fn_error
"unknown check category $check" "$LINENO" 5 ;;
4192 if test x
$ac_enable_checking != x
; then
4194 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
4197 if test x
$ac_gc_check_stringbytes != x
; then
4199 $as_echo "#define GC_CHECK_STRING_BYTES 1" >>confdefs.h
4202 if test x
$ac_gc_check_string_overrun != x
; then
4204 $as_echo "#define GC_CHECK_STRING_OVERRUN 1" >>confdefs.h
4207 if test x
$ac_gc_check_string_free_list != x
; then
4209 $as_echo "#define GC_CHECK_STRING_FREE_LIST 1" >>confdefs.h
4212 if test x
$ac_xmalloc_overrun != x
; then
4214 $as_echo "#define XMALLOC_OVERRUN_CHECK 1" >>confdefs.h
4217 if test x
$ac_gc_check_cons_list != x
; then
4219 $as_echo "#define GC_CHECK_CONS_LIST 1" >>confdefs.h
4223 # Check whether --enable-use-lisp-union-type was given.
4224 if test "${enable_use_lisp_union_type+set}" = set; then :
4225 enableval
=$enable_use_lisp_union_type; if test "${enableval}" != "no"; then
4227 $as_echo "#define USE_LISP_UNION_TYPE 1" >>confdefs.h
4234 # Check whether --enable-profiling was given.
4235 if test "${enable_profiling+set}" = set; then :
4236 enableval
=$enable_profiling; ac_enable_profiling
="${enableval}"
4239 if test x
$ac_enable_profiling != x
; then
4240 PROFILING_CFLAGS
="-DPROFILING=1 -pg"
4246 # Check whether --enable-autodepend was given.
4247 if test "${enable_autodepend+set}" = set; then :
4248 enableval
=$enable_autodepend; ac_enable_autodepend
="${enableval}"
4250 ac_enable_autodepend
=yes
4254 #### Make srcdir absolute, if it isn't already. It's important to
4255 #### avoid running the path through pwd unnecessarily, since pwd can
4256 #### give you automounter prefixes, which can go away. We do all this
4257 #### so Emacs can find its files when run uninstalled.
4258 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
4263 ## We may be able to use the $PWD environment variable to make this
4264 ## absolute. But sometimes PWD is inaccurate.
4265 ## Note: we used to use ${PWD} at the end instead of `pwd`,
4266 ## but that tested only for a well-formed and valid PWD,
4267 ## it did not object when PWD was well-formed and valid but just wrong.
4268 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
4272 srcdir
="`(cd ${srcdir}; pwd)`"
4275 * ) srcdir
="`(cd ${srcdir}; pwd)`" ;;
4278 #### Given the configuration name, set machfile and opsysfile to the
4279 #### names of the m/*.h and s/*.h files we should use.
4281 ### Canonicalize the configuration name.
4283 # Make sure we can run config.sub.
4284 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
4285 as_fn_error
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4288 $as_echo_n "checking build system type... " >&6; }
4289 if test "${ac_cv_build+set}" = set; then :
4290 $as_echo_n "(cached) " >&6
4292 ac_build_alias
=$build_alias
4293 test "x$ac_build_alias" = x
&&
4294 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
4295 test "x$ac_build_alias" = x
&&
4296 as_fn_error
"cannot guess build type; you must specify one" "$LINENO" 5
4297 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4298 as_fn_error
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4302 $as_echo "$ac_cv_build" >&6; }
4303 case $ac_cv_build in
4305 *) as_fn_error
"invalid value of canonical build" "$LINENO" 5;;
4308 ac_save_IFS
=$IFS; IFS
='-'
4314 # Remember, the first character of IFS is used to create $*,
4315 # except with old shells:
4318 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
4321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4322 $as_echo_n "checking host system type... " >&6; }
4323 if test "${ac_cv_host+set}" = set; then :
4324 $as_echo_n "(cached) " >&6
4326 if test "x$host_alias" = x
; then
4327 ac_cv_host
=$ac_cv_build
4329 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4330 as_fn_error
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4335 $as_echo "$ac_cv_host" >&6; }
4338 *) as_fn_error
"invalid value of canonical host" "$LINENO" 5;;
4341 ac_save_IFS
=$IFS; IFS
='-'
4347 # Remember, the first character of IFS is used to create $*,
4348 # except with old shells:
4351 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
4355 configuration
=${host_alias-${build_alias-$host}}
4359 ### If you add support for a new configuration, add code to this
4360 ### switch statement to recognize your configuration name and select
4361 ### the appropriate operating system and machine description files.
4363 ### You would hope that you could choose an m/*.h file pretty much
4364 ### based on the machine portion of the configuration name, and an s/*.h
4365 ### file based on the operating system portion. However, it turns out
4366 ### that each m/*.h file is pretty manufacturer-specific - for
4367 ### example mips.h is MIPS
4368 ### So we basically have to have a special case for each
4369 ### configuration name.
4371 ### As far as handling version numbers on operating systems is
4372 ### concerned, make sure things will fail in a fixable way. If
4373 ### /etc/MACHINES doesn't say anything about version numbers, be
4374 ### prepared to handle anything reasonably. If version numbers
4375 ### matter, be sure /etc/MACHINES says something about it.
4377 machine
='' opsys
='' unported
=no
4378 case "${canonical}" in
4380 ## GNU/Linux and similar ports
4383 case ${canonical} in
4384 alpha
*) machine
=alpha
;;
4385 s390-
*) machine
=ibms390
;;
4386 s390x-
*) machine
=ibms390x
;;
4387 powerpc
*) machine
=macppc
;;
4388 sparc
*) machine
=sparc
;;
4389 ia64
*) machine
=ia64
;;
4390 m68k
*) machine
=m68k
;;
4391 x86_64
*) machine
=amdx86-64
;;
4398 case "${canonical}" in
4399 alpha
*) machine
=alpha
;;
4400 amd64-
*|x86_64-
*) machine
=amdx86-64
;;
4401 ia64-
*) machine
=ia64
;;
4402 i
[3456]86-*) machine
=intel386
;;
4403 powerpc-
*) machine
=macppc
;;
4404 sparc-
*) machine
=sparc
;;
4405 sparc64-
*) machine
=sparc
;;
4409 ## FreeBSD kernel + glibc based userland
4412 case "${canonical}" in
4413 alpha
*) machine
=alpha
;;
4414 amd64-
*|x86_64-
*) machine
=amdx86-64
;;
4415 ia64-
*) machine
=ia64
;;
4416 i
[3456]86-*) machine
=intel386
;;
4417 powerpc-
*) machine
=macppc
;;
4418 sparc-
*) machine
=sparc
;;
4419 sparc64-
*) machine
=sparc
;;
4426 case "${canonical}" in
4427 alpha
*) machine
=alpha
;;
4428 x86_64-
*) machine
=amdx86-64
;;
4429 i
[3456]86-*) machine
=intel386
;;
4430 m68k-
*) machine
=m68k
;;
4431 powerpc-
*) machine
=macppc
;;
4432 sparc
*-) machine
=sparc
;;
4433 vax-
*) machine
=vax
;;
4440 case "${canonical}" in
4441 alpha
*) machine
=alpha
;;
4442 x86_64-
*) machine
=amdx86-64
;;
4443 i386-
*) machine
=intel386
;;
4444 powerpc-
*) machine
=macppc
;;
4445 sparc
*) machine
=sparc
;;
4446 vax-
*) machine
=vax
;;
4450 ## Apple Darwin / Mac OS X
4452 case "${canonical}" in
4453 i
[3456]86-* ) machine
=intel386
;;
4454 powerpc-
* ) machine
=macppc
;;
4455 x86_64-
* ) machine
=amdx86-64
;;
4459 # Define CPP as follows to make autoconf work correctly.
4460 CPP
="${CC-cc} -E -no-cpp-precomp"
4461 # Use fink packages if available.
4462 if test -d /sw
/include
&& test -d /sw
/lib
; then
4463 GCC_TEST_OPTIONS
="-I/sw/include -L/sw/lib"
4464 CPP
="${CPP} ${GCC_TEST_OPTIONS}"
4465 NON_GCC_TEST_OPTIONS
=${GCC_TEST_OPTIONS}
4469 ## HP 9000 series 700 and 800, running HP/UX
4470 hppa
*-hp-hpux10.2
* )
4473 hppa
*-hp-hpux1[1-9]* )
4475 CFLAGS
="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
4479 rs6000-ibm-aix4.
[23]* )
4480 machine
=ibmrs6000 opsys
=aix4-2
4482 powerpc-ibm-aix4.
[23]* )
4483 machine
=ibmrs6000 opsys
=aix4-2
4485 rs6000-ibm-aix
[56]* )
4486 machine
=ibmrs6000 opsys
=aix4-2
4488 powerpc-ibm-aix
[56]* )
4489 machine
=ibmrs6000 opsys
=aix4-2
4492 ## Silicon Graphics machines
4496 # Without defining _LANGUAGE_C, things get masked out in the headers
4497 # so that, for instance, grepping for `free' in stdlib.h fails and
4498 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
4499 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
4500 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
4505 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* \
4506 | x86_64-
*-solaris2* | x86_64-
*-sunos5*)
4507 case "${canonical}" in
4508 i
[3456]86-*-* ) machine
=intel386
;;
4509 amd64-
*-*|x86_64-
*-*) machine
=amdx86-64
;;
4510 sparc
* ) machine
=sparc
;;
4513 case "${canonical}" in
4514 *-sunos5.6
* |
*-solaris2.6
* )
4516 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
4519 *-sunos5.
[7-9]* |
*-solaris2.
[7-9]* )
4521 emacs_check_sunpro_c
=yes
4522 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
4524 *-sunos5* |
*-solaris* )
4526 emacs_check_sunpro_c
=yes
4527 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
4530 ## Watch out for a compiler that we know will not work.
4531 case "${canonical}" in
4532 *-solaris* |
*-sunos5* )
4533 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
4534 ## /usr/ucb/cc doesn't work;
4535 ## we should find some other compiler that does work.
4543 ## Intel 386 machines where we don't care about the manufacturer.
4546 case "${canonical}" in
4547 *-cygwin ) opsys
=cygwin
;;
4548 *-darwin* ) opsys
=darwin
4549 CPP
="${CC-cc} -E -no-cpp-precomp"
4551 *-sysv4.2uw
* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
4552 *-sysv5uw* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
4553 *-sysv5OpenUNIX* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
4554 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
4563 ### If the code above didn't choose an operating system, just choose
4564 ### an operating system based on the configuration name. You really
4565 ### only want to use this when you have no idea what the right
4566 ### operating system is; if you know what operating systems a machine
4567 ### runs, it's cleaner to make it explicit in the case statement
4569 if test x
"${opsys}" = x
; then
4570 case "${canonical}" in
4571 *-gnu* ) opsys
=gnu
;;
4580 if test $unported = yes; then
4581 as_fn_error
"Emacs hasn't been ported to \`${canonical}' systems.
4582 Check \`etc/MACHINES' for recognized configuration names." "$LINENO" 5
4585 if test -n "$machine"; then
4586 machfile
="m/${machine}.h"
4590 opsysfile
="s/${opsys}.h"
4593 #### Choose a compiler.
4594 test -n "$CC" && cc_specified
=yes
4596 # Save the value of CFLAGS that the user specified.
4597 SPECIFIED_CFLAGS
="$CFLAGS"
4600 ac_cpp
='$CPP $CPPFLAGS'
4601 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4602 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4603 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4604 if test -n "$ac_tool_prefix"; then
4605 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4606 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
4607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4608 $as_echo_n "checking for $ac_word... " >&6; }
4609 if test "${ac_cv_prog_CC+set}" = set; then :
4610 $as_echo_n "(cached) " >&6
4612 if test -n "$CC"; then
4613 ac_cv_prog_CC
="$CC" # Let the user override the test.
4615 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4619 test -z "$as_dir" && as_dir
=.
4620 for ac_exec_ext
in '' $ac_executable_extensions; do
4621 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4622 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
4623 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4633 if test -n "$CC"; then
4634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4635 $as_echo "$CC" >&6; }
4637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4638 $as_echo "no" >&6; }
4643 if test -z "$ac_cv_prog_CC"; then
4645 # Extract the first word of "gcc", so it can be a program name with args.
4646 set dummy gcc
; ac_word
=$2
4647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4648 $as_echo_n "checking for $ac_word... " >&6; }
4649 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4650 $as_echo_n "(cached) " >&6
4652 if test -n "$ac_ct_CC"; then
4653 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4655 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4659 test -z "$as_dir" && as_dir
=.
4660 for ac_exec_ext
in '' $ac_executable_extensions; do
4661 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4662 ac_cv_prog_ac_ct_CC
="gcc"
4663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4672 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4673 if test -n "$ac_ct_CC"; then
4674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4675 $as_echo "$ac_ct_CC" >&6; }
4677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4678 $as_echo "no" >&6; }
4681 if test "x$ac_ct_CC" = x
; then
4684 case $cross_compiling:$ac_tool_warned in
4686 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4687 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4688 ac_tool_warned
=yes ;;
4696 if test -z "$CC"; then
4697 if test -n "$ac_tool_prefix"; then
4698 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4699 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
4700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4701 $as_echo_n "checking for $ac_word... " >&6; }
4702 if test "${ac_cv_prog_CC+set}" = set; then :
4703 $as_echo_n "(cached) " >&6
4705 if test -n "$CC"; then
4706 ac_cv_prog_CC
="$CC" # Let the user override the test.
4708 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4712 test -z "$as_dir" && as_dir
=.
4713 for ac_exec_ext
in '' $ac_executable_extensions; do
4714 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4715 ac_cv_prog_CC
="${ac_tool_prefix}cc"
4716 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4726 if test -n "$CC"; then
4727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4728 $as_echo "$CC" >&6; }
4730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4731 $as_echo "no" >&6; }
4737 if test -z "$CC"; then
4738 # Extract the first word of "cc", so it can be a program name with args.
4739 set dummy cc
; ac_word
=$2
4740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4741 $as_echo_n "checking for $ac_word... " >&6; }
4742 if test "${ac_cv_prog_CC+set}" = set; then :
4743 $as_echo_n "(cached) " >&6
4745 if test -n "$CC"; then
4746 ac_cv_prog_CC
="$CC" # Let the user override the test.
4749 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4753 test -z "$as_dir" && as_dir
=.
4754 for ac_exec_ext
in '' $ac_executable_extensions; do
4755 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4756 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4757 ac_prog_rejected
=yes
4761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4768 if test $ac_prog_rejected = yes; then
4769 # We found a bogon in the path, so make sure we never use it.
4770 set dummy
$ac_cv_prog_CC
4772 if test $# != 0; then
4773 # We chose a different compiler from the bogus one.
4774 # However, it has the same basename, so the bogon will be chosen
4775 # first if we set CC to just the basename; use the full file name.
4777 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
4783 if test -n "$CC"; then
4784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4785 $as_echo "$CC" >&6; }
4787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4788 $as_echo "no" >&6; }
4793 if test -z "$CC"; then
4794 if test -n "$ac_tool_prefix"; then
4795 for ac_prog
in cl.exe
4797 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4798 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4800 $as_echo_n "checking for $ac_word... " >&6; }
4801 if test "${ac_cv_prog_CC+set}" = set; then :
4802 $as_echo_n "(cached) " >&6
4804 if test -n "$CC"; then
4805 ac_cv_prog_CC
="$CC" # Let the user override the test.
4807 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4811 test -z "$as_dir" && as_dir
=.
4812 for ac_exec_ext
in '' $ac_executable_extensions; do
4813 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4814 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
4815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4825 if test -n "$CC"; then
4826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4827 $as_echo "$CC" >&6; }
4829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4830 $as_echo "no" >&6; }
4834 test -n "$CC" && break
4837 if test -z "$CC"; then
4839 for ac_prog
in cl.exe
4841 # Extract the first word of "$ac_prog", so it can be a program name with args.
4842 set dummy
$ac_prog; ac_word
=$2
4843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4844 $as_echo_n "checking for $ac_word... " >&6; }
4845 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4846 $as_echo_n "(cached) " >&6
4848 if test -n "$ac_ct_CC"; then
4849 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4851 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4855 test -z "$as_dir" && as_dir
=.
4856 for ac_exec_ext
in '' $ac_executable_extensions; do
4857 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4858 ac_cv_prog_ac_ct_CC
="$ac_prog"
4859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4868 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4869 if test -n "$ac_ct_CC"; then
4870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4871 $as_echo "$ac_ct_CC" >&6; }
4873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4874 $as_echo "no" >&6; }
4878 test -n "$ac_ct_CC" && break
4881 if test "x$ac_ct_CC" = x
; then
4884 case $cross_compiling:$ac_tool_warned in
4886 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4887 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4888 ac_tool_warned
=yes ;;
4897 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4898 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4899 as_fn_error
"no acceptable C compiler found in \$PATH
4900 See \`config.log' for more details." "$LINENO" 5; }
4902 # Provide some information about the compiler.
4903 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4906 for ac_option
in --version -v -V -qversion; do
4907 { { ac_try
="$ac_compiler $ac_option >&5"
4909 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4910 *) ac_try_echo=$ac_try;;
4912 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4913 $as_echo "$ac_try_echo"; } >&5
4914 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4916 if test -s conftest.err; then
4918 ... rest of stderr output deleted ...
4919 10q' conftest.err >conftest.er1
4920 cat conftest.er1 >&5
4922 rm -f conftest.er1 conftest.err
4923 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4924 test $ac_status = 0; }
4927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4928 /* end confdefs.h. */
4938 ac_clean_files_save=$ac_clean_files
4939 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4940 # Try to create an executable without -o first, disregard a.out.
4941 # It will help us diagnose broken compilers, and finding out an intuition
4943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4944 $as_echo_n "checking whether the C compiler works... " >&6; }
4945 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
4947 # The possible output files:
4948 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4951 for ac_file in $ac_files
4954 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4955 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4960 if { { ac_try="$ac_link_default"
4962 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4963 *) ac_try_echo
=$ac_try;;
4965 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4966 $as_echo "$ac_try_echo"; } >&5
4967 (eval "$ac_link_default") 2>&5
4969 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4970 test $ac_status = 0; }; then :
4971 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4972 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4973 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4974 # so that the user can short-circuit this test for compilers unknown to
4976 for ac_file
in $ac_files ''
4978 test -f "$ac_file" ||
continue
4980 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
4983 # We found the default executable, but exeext='' is most
4987 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
4989 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4991 # We set ac_cv_exeext here because the later test for it is not
4992 # safe: cross compilers may not add the suffix if given an `-o'
4993 # argument, so we may need to know it at that point already.
4994 # Even if this section looks crufty: it has the advantage of
5001 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
5006 if test -z "$ac_file"; then :
5007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5008 $as_echo "no" >&6; }
5009 $as_echo "$as_me: failed program was:" >&5
5010 sed 's/^/| /' conftest.
$ac_ext >&5
5012 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5013 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5014 { as_fn_set_status
77
5015 as_fn_error
"C compiler cannot create executables
5016 See \`config.log' for more details." "$LINENO" 5; }; }
5018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5019 $as_echo "yes" >&6; }
5021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
5022 $as_echo_n "checking for C compiler default output file name... " >&6; }
5023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
5024 $as_echo "$ac_file" >&6; }
5025 ac_exeext
=$ac_cv_exeext
5027 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
5028 ac_clean_files
=$ac_clean_files_save
5029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
5030 $as_echo_n "checking for suffix of executables... " >&6; }
5031 if { { ac_try
="$ac_link"
5033 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5034 *) ac_try_echo=$ac_try;;
5036 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5037 $as_echo "$ac_try_echo"; } >&5
5038 (eval "$ac_link") 2>&5
5040 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5041 test $ac_status = 0; }; then :
5042 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
5043 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
5044 # work properly (i.e., refer to `conftest.exe'), while it won't with
5046 for ac_file
in conftest.exe conftest conftest.
*; do
5047 test -f "$ac_file" ||
continue
5049 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
5050 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
5056 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5057 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5058 as_fn_error
"cannot compute suffix of executables: cannot compile and link
5059 See \`config.log' for more details." "$LINENO" 5; }
5061 rm -f conftest conftest
$ac_cv_exeext
5062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
5063 $as_echo "$ac_cv_exeext" >&6; }
5065 rm -f conftest.
$ac_ext
5066 EXEEXT
=$ac_cv_exeext
5068 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5069 /* end confdefs.h. */
5074 FILE *f = fopen ("conftest.out", "w");
5075 return ferror (f) || fclose (f) != 0;
5081 ac_clean_files
="$ac_clean_files conftest.out"
5082 # Check that the compiler produces executables we can run. If not, either
5083 # the compiler is broken, or we cross compile.
5084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5085 $as_echo_n "checking whether we are cross compiling... " >&6; }
5086 if test "$cross_compiling" != yes; then
5087 { { ac_try
="$ac_link"
5089 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5090 *) ac_try_echo=$ac_try;;
5092 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5093 $as_echo "$ac_try_echo"; } >&5
5094 (eval "$ac_link") 2>&5
5096 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5097 test $ac_status = 0; }
5098 if { ac_try='./conftest$ac_cv_exeext'
5099 { { case "(($ac_try" in
5100 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5101 *) ac_try_echo
=$ac_try;;
5103 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5104 $as_echo "$ac_try_echo"; } >&5
5105 (eval "$ac_try") 2>&5
5107 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5108 test $ac_status = 0; }; }; then
5111 if test "$cross_compiling" = maybe
; then
5114 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5115 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5116 as_fn_error
"cannot run C compiled programs.
5117 If you meant to cross compile, use \`--host'.
5118 See \`config.log' for more details." "$LINENO" 5; }
5122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5123 $as_echo "$cross_compiling" >&6; }
5125 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
5126 ac_clean_files
=$ac_clean_files_save
5127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
5128 $as_echo_n "checking for suffix of object files... " >&6; }
5129 if test "${ac_cv_objext+set}" = set; then :
5130 $as_echo_n "(cached) " >&6
5132 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5133 /* end confdefs.h. */
5143 rm -f conftest.o conftest.obj
5144 if { { ac_try
="$ac_compile"
5146 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5147 *) ac_try_echo=$ac_try;;
5149 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5150 $as_echo "$ac_try_echo"; } >&5
5151 (eval "$ac_compile") 2>&5
5153 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5154 test $ac_status = 0; }; then :
5155 for ac_file in conftest.o conftest.obj conftest.*; do
5156 test -f "$ac_file" || continue;
5158 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5159 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5164 $as_echo "$as_me: failed program was:" >&5
5165 sed 's/^/| /' conftest.$ac_ext >&5
5167 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5168 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5169 as_fn_error "cannot compute suffix of object files
: cannot compile
5170 See \
`config.log' for more details." "$LINENO" 5; }
5172 rm -f conftest.$ac_cv_objext conftest.$ac_ext
5174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5175 $as_echo "$ac_cv_objext" >&6; }
5176 OBJEXT=$ac_cv_objext
5178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5179 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5180 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5181 $as_echo_n "(cached) " >&6
5183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5184 /* end confdefs.h. */
5197 if ac_fn_c_try_compile "$LINENO"; then :
5202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5203 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5207 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5208 if test $ac_compiler_gnu = yes; then
5213 ac_test_CFLAGS=${CFLAGS+set}
5214 ac_save_CFLAGS=$CFLAGS
5215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5216 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5217 if test "${ac_cv_prog_cc_g+set}" = set; then :
5218 $as_echo_n "(cached) " >&6
5220 ac_save_c_werror_flag=$ac_c_werror_flag
5221 ac_c_werror_flag=yes
5224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5225 /* end confdefs.h. */
5235 if ac_fn_c_try_compile "$LINENO"; then :
5239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5240 /* end confdefs.h. */
5250 if ac_fn_c_try_compile "$LINENO"; then :
5253 ac_c_werror_flag=$ac_save_c_werror_flag
5255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5256 /* end confdefs.h. */
5266 if ac_fn_c_try_compile "$LINENO"; then :
5269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5274 ac_c_werror_flag=$ac_save_c_werror_flag
5276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5277 $as_echo "$ac_cv_prog_cc_g" >&6; }
5278 if test "$ac_test_CFLAGS" = set; then
5279 CFLAGS=$ac_save_CFLAGS
5280 elif test $ac_cv_prog_cc_g = yes; then
5281 if test "$GCC" = yes; then
5287 if test "$GCC" = yes; then
5293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5294 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5295 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5296 $as_echo_n "(cached) " >&6
5298 ac_cv_prog_cc_c89=no
5300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5301 /* end confdefs.h. */
5304 #include <sys/types.h>
5305 #include <sys/stat.h>
5306 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5307 struct buf { int x; };
5308 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5309 static char *e (p, i)
5315 static char *f (char * (*g) (char **, int), char **p, ...)
5320 s = g (p, va_arg (v,int));
5325 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5326 function prototypes and stuff, but not '\xHH' hex character constants.
5327 These don't provoke an error unfortunately, instead are silently treated
5328 as 'x'. The following induces an error, until -std is added to get
5329 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5330 array size at least. It's necessary to write '\x00'==0 to get something
5331 that's true only with -std. */
5332 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5334 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5335 inside strings and character constants. */
5337 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5339 int test (int i, double x);
5340 struct s1 {int (*f) (int a);};
5341 struct s2 {int (*f) (double a);};
5342 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5348 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5353 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5354 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5356 CC="$ac_save_CC $ac_arg"
5357 if ac_fn_c_try_compile "$LINENO"; then :
5358 ac_cv_prog_cc_c89=$ac_arg
5360 rm -f core conftest.err conftest.$ac_objext
5361 test "x$ac_cv_prog_cc_c89" != "xno" && break
5363 rm -f conftest.$ac_ext
5368 case "x$ac_cv_prog_cc_c89" in
5370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5371 $as_echo "none needed" >&6; } ;;
5373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5374 $as_echo "unsupported" >&6; } ;;
5376 CC="$CC $ac_cv_prog_cc_c89"
5377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5378 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5380 if test "x$ac_cv_prog_cc_c89" != xno; then :
5385 ac_cpp='$CPP $CPPFLAGS'
5386 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5387 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5388 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5389 DEPDIR="${am__leading_dot}deps"
5391 ac_config_commands="$ac_config_commands depfiles"
5394 am_make=${MAKE-make}
5395 cat > confinc << 'END'
5397 @echo this is the am__doit target
5400 # If we don't find an include directive, just comment out the code.
5401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
5402 $as_echo_n "checking for style of include used by $am_make... " >&6; }
5406 # First try GNU make style include.
5407 echo "include confinc" > confmf
5408 # Ignore all kinds of additional output from `make'.
5409 case `$am_make -s -f confmf 2> /dev/null` in #(
5410 *the\ am__doit\ target*)
5416 # Now try BSD make style include.
5417 if test "$am__include" = "#"; then
5418 echo '.include
"confinc"' > confmf
5419 case `$am_make -s -f confmf 2> /dev/null` in #(
5420 *the\ am__doit\ target*)
5421 am__include=.include
5429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5430 $as_echo "$_am_result" >&6; }
5431 rm -f confinc confmf
5433 # Check whether --enable-dependency-tracking was given.
5434 if test "${enable_dependency_tracking+set}" = set; then :
5435 enableval=$enable_dependency_tracking;
5438 if test "x$enable_dependency_tracking" != xno; then
5439 am_depcomp="$ac_aux_dir/depcomp"
5442 if test "x$enable_dependency_tracking" != xno
; then
5452 depcc
="$CC" am_compiler_list
=
5454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5455 $as_echo_n "checking dependency style of $depcc... " >&6; }
5456 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5457 $as_echo_n "(cached) " >&6
5459 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5460 # We make a subdir and do the tests there. Otherwise we can end up
5461 # making bogus files that we don't know about and never remove. For
5462 # instance it was reported that on HP-UX the gcc test will end up
5463 # making a dummy file named `D' -- because `-MD' means `put the output
5466 # Copy depcomp to subdir because otherwise we won't find it if we're
5467 # using a relative directory.
5468 cp "$am_depcomp" conftest.dir
5470 # We will build objects and dependencies in a subdirectory because
5471 # it helps to detect inapplicable dependency modes. For instance
5472 # both Tru64's cc and ICC support -MD to output dependencies as a
5473 # side effect of compilation, but ICC will put the dependencies in
5474 # the current directory while Tru64 will put them in the object
5478 am_cv_CC_dependencies_compiler_type
=none
5479 if test "$am_compiler_list" = ""; then
5480 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5483 case " $depcc " in #(
5484 *\
-arch\
*\
-arch\
*) am__universal
=true
;;
5487 for depmode
in $am_compiler_list; do
5488 # Setup a source with many dependencies, because some compilers
5489 # like to wrap large dependency lists on column 80 (with \), and
5490 # we should not choose a depcomp mode which is confused by this.
5492 # We need to recreate these files for each test, as the compiler may
5493 # overwrite some of them when testing with obscure command lines.
5494 # This happens at least with the AIX C compiler.
5496 for i
in 1 2 3 4 5 6; do
5497 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
5498 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5499 # Solaris 8's {/usr,}/bin/sh.
5500 touch sub
/conftst
$i.h
5502 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5504 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5505 # mode. It turns out that the SunPro C++ compiler does not properly
5506 # handle `-M -o', and we need to detect this. Also, some Intel
5507 # versions had trouble with output in subdirs
5508 am__obj
=sub
/conftest.
${OBJEXT-o}
5509 am__minus_obj
="-o $am__obj"
5512 # This depmode causes a compiler race in universal mode.
5513 test "$am__universal" = false ||
continue
5516 # after this tag, mechanisms are not by side-effect, so they'll
5517 # only be used when explicitly requested
5518 if test "x$enable_dependency_tracking" = xyes
; then
5524 msvisualcpp | msvcmsys
)
5525 # This compiler won't grok `-c -o', but also, the minuso test has
5526 # not run yet. These depmodes are late enough in the game, and
5527 # so weak that their functioning should not be impacted.
5528 am__obj
=conftest.
${OBJEXT-o}
5533 if depmode
=$depmode \
5534 source=sub
/conftest.c object
=$am__obj \
5535 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
5536 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
5537 >/dev
/null
2>conftest.err
&&
5538 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
5539 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
5540 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
5541 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
5542 # icc doesn't choke on unknown options, it will just issue warnings
5543 # or remarks (even with -Werror). So we grep stderr for any message
5544 # that says an option was ignored or not supported.
5545 # When given -MP, icc 7.0 and 7.1 complain thusly:
5546 # icc: Command line warning: ignoring option '-M'; no argument required
5547 # The diagnosis changed in icc 8.0:
5548 # icc: Command line remark: option '-MP' not supported
5549 if (grep 'ignoring option' conftest.err ||
5550 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
5551 am_cv_CC_dependencies_compiler_type
=$depmode
5560 am_cv_CC_dependencies_compiler_type
=none
5564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5565 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5566 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
5569 test "x$enable_dependency_tracking" != xno \
5570 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
5572 am__fastdepCC_FALSE
='#'
5574 am__fastdepCC_TRUE
='#'
5575 am__fastdepCC_FALSE
=
5579 if test "x$CC" != xcc
; then
5580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5581 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5584 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5586 set dummy
$CC; ac_cc
=`$as_echo "$2" |
5587 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5588 if { as_var
=ac_cv_prog_cc_
${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
5589 $as_echo_n "(cached) " >&6
5591 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5592 /* end confdefs.h. */
5602 # Make sure it works both with $CC and with simple cc.
5603 # We do the test twice because some compilers refuse to overwrite an
5604 # existing .o file with -o, though they will create one.
5605 ac_try
='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5607 if { { case "(($ac_try" in
5608 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5609 *) ac_try_echo=$ac_try;;
5611 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5612 $as_echo "$ac_try_echo"; } >&5
5613 (eval "$ac_try") 2>&5
5615 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5616 test $ac_status = 0; } &&
5617 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5618 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5619 *) ac_try_echo
=$ac_try;;
5621 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5622 $as_echo "$ac_try_echo"; } >&5
5623 (eval "$ac_try") 2>&5
5625 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5626 test $ac_status = 0; };
5628 eval ac_cv_prog_cc_
${ac_cc}_c_o
=yes
5629 if test "x$CC" != xcc
; then
5630 # Test first that cc exists at all.
5631 if { ac_try
='cc -c conftest.$ac_ext >&5'
5632 { { case "(($ac_try" in
5633 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5634 *) ac_try_echo=$ac_try;;
5636 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5637 $as_echo "$ac_try_echo"; } >&5
5638 (eval "$ac_try") 2>&5
5640 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5641 test $ac_status = 0; }; }; then
5642 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5644 if { { case "(($ac_try" in
5645 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5646 *) ac_try_echo
=$ac_try;;
5648 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5649 $as_echo "$ac_try_echo"; } >&5
5650 (eval "$ac_try") 2>&5
5652 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5653 test $ac_status = 0; } &&
5654 test -f conftest2.
$ac_objext && { { case "(($ac_try" in
5655 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5656 *) ac_try_echo=$ac_try;;
5658 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5659 $as_echo "$ac_try_echo"; } >&5
5660 (eval "$ac_try") 2>&5
5662 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5663 test $ac_status = 0; };
5668 # cc exists but doesn't like -o.
5669 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5674 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5676 rm -f core conftest*
5679 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5681 $as_echo "yes" >&6; }
5683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5684 $as_echo "no" >&6; }
5686 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5690 # FIXME: we rely on the cache variable name because
5691 # there is no other way.
5693 am_cc=`echo $2 |
sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5694 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5695 if test "$am_t" != yes; then
5696 # Losing compiler, so override with the script.
5697 # FIXME: It is wrong to rewrite CC.
5698 # But if we don't then we get into trouble of one sort or another.
5699 # A longer-term fix would be to have automake use am__CC in this case,
5700 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5701 CC="$am_aux_dir/compile $CC"
5706 # Initialize gnulib right after verifying that the C compiler works.
5709 ac_cpp='$CPP $CPPFLAGS'
5710 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5711 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5712 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5714 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5715 # On Suns, sometimes $CPP names a directory.
5716 if test -n "$CPP" && test -d "$CPP"; then
5719 if test -z "$CPP"; then
5720 if test "${ac_cv_prog_CPP+set}" = set; then :
5721 $as_echo_n "(cached) " >&6
5723 # Double quotes because CPP needs to be expanded
5724 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5727 for ac_c_preproc_warn_flag in '' yes
5729 # Use a header file that comes with gcc, so configuring glibc
5730 # with a fresh cross-compiler works.
5731 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5732 # <limits.h> exists even on freestanding compilers.
5733 # On the NeXT, cc -E runs the code through the compiler's parser,
5734 # not just through cpp. "Syntax error" is here to catch this case.
5735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5736 /* end confdefs.h. */
5738 # include <limits.h>
5740 # include <assert.h>
5744 if ac_fn_c_try_cpp "$LINENO"; then :
5747 # Broken: fails on valid input.
5750 rm -f conftest.err conftest.$ac_ext
5752 # OK, works on sane cases. Now check whether nonexistent headers
5753 # can be detected and how.
5754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5755 /* end confdefs.h. */
5756 #include <ac_nonexistent.h>
5758 if ac_fn_c_try_cpp "$LINENO"; then :
5759 # Broken: success on invalid input.
5762 # Passes both tests.
5766 rm -f conftest.err conftest.$ac_ext
5769 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5770 rm -f conftest.err conftest.
$ac_ext
5771 if $ac_preproc_ok; then :
5783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5784 $as_echo "$CPP" >&6; }
5786 for ac_c_preproc_warn_flag
in '' yes
5788 # Use a header file that comes with gcc, so configuring glibc
5789 # with a fresh cross-compiler works.
5790 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5791 # <limits.h> exists even on freestanding compilers.
5792 # On the NeXT, cc -E runs the code through the compiler's parser,
5793 # not just through cpp. "Syntax error" is here to catch this case.
5794 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5795 /* end confdefs.h. */
5797 # include <limits.h>
5799 # include <assert.h>
5803 if ac_fn_c_try_cpp
"$LINENO"; then :
5806 # Broken: fails on valid input.
5809 rm -f conftest.err conftest.
$ac_ext
5811 # OK, works on sane cases. Now check whether nonexistent headers
5812 # can be detected and how.
5813 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5814 /* end confdefs.h. */
5815 #include <ac_nonexistent.h>
5817 if ac_fn_c_try_cpp
"$LINENO"; then :
5818 # Broken: success on invalid input.
5821 # Passes both tests.
5825 rm -f conftest.err conftest.
$ac_ext
5828 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5829 rm -f conftest.err conftest.
$ac_ext
5830 if $ac_preproc_ok; then :
5833 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5834 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5835 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
5836 See \`config.log' for more details." "$LINENO" 5; }
5840 ac_cpp
='$CPP $CPPFLAGS'
5841 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5842 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5843 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5847 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5848 if test "${ac_cv_path_GREP+set}" = set; then :
5849 $as_echo_n "(cached) " >&6
5851 if test -z "$GREP"; then
5852 ac_path_GREP_found
=false
5853 # Loop through the user's path and test for each of PROGNAME-LIST
5854 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5855 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5858 test -z "$as_dir" && as_dir
=.
5859 for ac_prog
in grep ggrep
; do
5860 for ac_exec_ext
in '' $ac_executable_extensions; do
5861 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
5862 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
5863 # Check for GNU ac_path_GREP and select it if it is found.
5864 # Check for GNU $ac_path_GREP
5865 case `"$ac_path_GREP" --version 2>&1` in
5867 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
5870 $as_echo_n 0123456789 >"conftest.in"
5873 cat "conftest.in" "conftest.in" >"conftest.tmp"
5874 mv "conftest.tmp" "conftest.in"
5875 cp "conftest.in" "conftest.nl"
5876 $as_echo 'GREP' >> "conftest.nl"
5877 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5878 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5879 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5880 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5881 # Best one so far, save it but keep looking for a better one
5882 ac_cv_path_GREP
="$ac_path_GREP"
5883 ac_path_GREP_max
=$ac_count
5885 # 10*(2^10) chars as input seems more than enough
5886 test $ac_count -gt 10 && break
5888 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5891 $ac_path_GREP_found && break 3
5896 if test -z "$ac_cv_path_GREP"; then
5897 as_fn_error
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5900 ac_cv_path_GREP
=$GREP
5904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5905 $as_echo "$ac_cv_path_GREP" >&6; }
5906 GREP
="$ac_cv_path_GREP"
5909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5910 $as_echo_n "checking for egrep... " >&6; }
5911 if test "${ac_cv_path_EGREP+set}" = set; then :
5912 $as_echo_n "(cached) " >&6
5914 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
5915 then ac_cv_path_EGREP
="$GREP -E"
5917 if test -z "$EGREP"; then
5918 ac_path_EGREP_found
=false
5919 # Loop through the user's path and test for each of PROGNAME-LIST
5920 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5921 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5924 test -z "$as_dir" && as_dir
=.
5925 for ac_prog
in egrep; do
5926 for ac_exec_ext
in '' $ac_executable_extensions; do
5927 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
5928 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
5929 # Check for GNU ac_path_EGREP and select it if it is found.
5930 # Check for GNU $ac_path_EGREP
5931 case `"$ac_path_EGREP" --version 2>&1` in
5933 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
5936 $as_echo_n 0123456789 >"conftest.in"
5939 cat "conftest.in" "conftest.in" >"conftest.tmp"
5940 mv "conftest.tmp" "conftest.in"
5941 cp "conftest.in" "conftest.nl"
5942 $as_echo 'EGREP' >> "conftest.nl"
5943 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5944 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5945 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5946 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5947 # Best one so far, save it but keep looking for a better one
5948 ac_cv_path_EGREP
="$ac_path_EGREP"
5949 ac_path_EGREP_max
=$ac_count
5951 # 10*(2^10) chars as input seems more than enough
5952 test $ac_count -gt 10 && break
5954 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5957 $ac_path_EGREP_found && break 3
5962 if test -z "$ac_cv_path_EGREP"; then
5963 as_fn_error
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5966 ac_cv_path_EGREP
=$EGREP
5971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5972 $as_echo "$ac_cv_path_EGREP" >&6; }
5973 EGREP
="$ac_cv_path_EGREP"
5978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
5979 $as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
5980 if test "${gl_cv_c_amsterdam_compiler+set}" = set; then :
5981 $as_echo_n "(cached) " >&6
5984 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5985 /* end confdefs.h. */
5992 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5993 $EGREP "Amsterdam" >/dev
/null
2>&1; then :
5994 gl_cv_c_amsterdam_compiler
=yes
5996 gl_cv_c_amsterdam_compiler
=no
6002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
6003 $as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
6004 if test -z "$AR"; then
6005 if test $gl_cv_c_amsterdam_compiler = yes; then
6007 if test -z "$ARFLAGS"; then
6011 if test -n "$ac_tool_prefix"; then
6012 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6013 set dummy
${ac_tool_prefix}ar; ac_word
=$2
6014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6015 $as_echo_n "checking for $ac_word... " >&6; }
6016 if test "${ac_cv_prog_AR+set}" = set; then :
6017 $as_echo_n "(cached) " >&6
6019 if test -n "$AR"; then
6020 ac_cv_prog_AR
="$AR" # Let the user override the test.
6022 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6026 test -z "$as_dir" && as_dir
=.
6027 for ac_exec_ext
in '' $ac_executable_extensions; do
6028 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6029 ac_cv_prog_AR
="${ac_tool_prefix}ar"
6030 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6040 if test -n "$AR"; then
6041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6042 $as_echo "$AR" >&6; }
6044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6045 $as_echo "no" >&6; }
6050 if test -z "$ac_cv_prog_AR"; then
6052 # Extract the first word of "ar", so it can be a program name with args.
6053 set dummy
ar; ac_word
=$2
6054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6055 $as_echo_n "checking for $ac_word... " >&6; }
6056 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6057 $as_echo_n "(cached) " >&6
6059 if test -n "$ac_ct_AR"; then
6060 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
6062 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6066 test -z "$as_dir" && as_dir
=.
6067 for ac_exec_ext
in '' $ac_executable_extensions; do
6068 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6069 ac_cv_prog_ac_ct_AR
="ar"
6070 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6079 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
6080 if test -n "$ac_ct_AR"; then
6081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6082 $as_echo "$ac_ct_AR" >&6; }
6084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6085 $as_echo "no" >&6; }
6088 if test "x$ac_ct_AR" = x
; then
6091 case $cross_compiling:$ac_tool_warned in
6093 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6094 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6095 ac_tool_warned
=yes ;;
6103 if test -z "$ARFLAGS"; then
6108 if test -z "$ARFLAGS"; then
6114 if test -z "$RANLIB"; then
6115 if test $gl_cv_c_amsterdam_compiler = yes; then
6118 if test -n "$ac_tool_prefix"; then
6119 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6120 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
6121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6122 $as_echo_n "checking for $ac_word... " >&6; }
6123 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6124 $as_echo_n "(cached) " >&6
6126 if test -n "$RANLIB"; then
6127 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
6129 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6133 test -z "$as_dir" && as_dir
=.
6134 for ac_exec_ext
in '' $ac_executable_extensions; do
6135 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6136 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
6137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6146 RANLIB
=$ac_cv_prog_RANLIB
6147 if test -n "$RANLIB"; then
6148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6149 $as_echo "$RANLIB" >&6; }
6151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6152 $as_echo "no" >&6; }
6157 if test -z "$ac_cv_prog_RANLIB"; then
6158 ac_ct_RANLIB
=$RANLIB
6159 # Extract the first word of "ranlib", so it can be a program name with args.
6160 set dummy ranlib
; ac_word
=$2
6161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6162 $as_echo_n "checking for $ac_word... " >&6; }
6163 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6164 $as_echo_n "(cached) " >&6
6166 if test -n "$ac_ct_RANLIB"; then
6167 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
6169 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6173 test -z "$as_dir" && as_dir
=.
6174 for ac_exec_ext
in '' $ac_executable_extensions; do
6175 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6176 ac_cv_prog_ac_ct_RANLIB
="ranlib"
6177 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6186 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
6187 if test -n "$ac_ct_RANLIB"; then
6188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6189 $as_echo "$ac_ct_RANLIB" >&6; }
6191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6192 $as_echo "no" >&6; }
6195 if test "x$ac_ct_RANLIB" = x
; then
6198 case $cross_compiling:$ac_tool_warned in
6200 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6201 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6202 ac_tool_warned
=yes ;;
6204 RANLIB
=$ac_ct_RANLIB
6207 RANLIB
="$ac_cv_prog_RANLIB"
6214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6215 $as_echo_n "checking for ANSI C header files... " >&6; }
6216 if test "${ac_cv_header_stdc+set}" = set; then :
6217 $as_echo_n "(cached) " >&6
6219 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6220 /* end confdefs.h. */
6234 if ac_fn_c_try_compile
"$LINENO"; then :
6235 ac_cv_header_stdc
=yes
6237 ac_cv_header_stdc
=no
6239 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6241 if test $ac_cv_header_stdc = yes; then
6242 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6243 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6244 /* end confdefs.h. */
6248 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6249 $EGREP "memchr" >/dev
/null
2>&1; then :
6252 ac_cv_header_stdc
=no
6258 if test $ac_cv_header_stdc = yes; then
6259 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6260 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6261 /* end confdefs.h. */
6265 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6266 $EGREP "free" >/dev
/null
2>&1; then :
6269 ac_cv_header_stdc
=no
6275 if test $ac_cv_header_stdc = yes; then
6276 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6277 if test "$cross_compiling" = yes; then :
6280 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6281 /* end confdefs.h. */
6284 #if ((' ' & 0x0FF) == 0x020)
6285 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6286 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6288 # define ISLOWER(c) \
6289 (('a' <= (c) && (c) <= 'i') \
6290 || ('j' <= (c) && (c) <= 'r') \
6291 || ('s' <= (c) && (c) <= 'z'))
6292 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6295 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6300 for (i = 0; i < 256; i++)
6301 if (XOR (islower (i), ISLOWER (i))
6302 || toupper (i) != TOUPPER (i))
6307 if ac_fn_c_try_run
"$LINENO"; then :
6310 ac_cv_header_stdc
=no
6312 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6313 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6319 $as_echo "$ac_cv_header_stdc" >&6; }
6320 if test $ac_cv_header_stdc = yes; then
6322 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6326 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6327 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
6328 inttypes.h stdint.h unistd.h
6330 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6331 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6333 eval as_val
=\$
$as_ac_Header
6334 if test "x$as_val" = x
""yes; then :
6335 cat >>confdefs.h
<<_ACEOF
6336 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6347 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
6348 if test "x$ac_cv_header_minix_config_h" = x
""yes; then :
6355 if test "$MINIX" = yes; then
6357 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
6360 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
6363 $as_echo "#define _MINIX 1" >>confdefs.h
6370 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
6376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
6377 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
6378 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
6379 $as_echo_n "(cached) " >&6
6381 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6382 /* end confdefs.h. */
6384 # define __EXTENSIONS__ 1
6385 $ac_includes_default
6394 if ac_fn_c_try_compile
"$LINENO"; then :
6395 ac_cv_safe_to_define___extensions__
=yes
6397 ac_cv_safe_to_define___extensions__
=no
6399 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
6402 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6403 test $ac_cv_safe_to_define___extensions__ = yes &&
6404 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
6406 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6408 $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
6410 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
6412 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6414 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
6423 # Check whether --enable-largefile was given.
6424 if test "${enable_largefile+set}" = set; then :
6425 enableval
=$enable_largefile;
6428 if test "$enable_largefile" != no
; then
6430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6431 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6432 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
6433 $as_echo_n "(cached) " >&6
6435 ac_cv_sys_largefile_CC
=no
6436 if test "$GCC" != yes; then
6439 # IRIX 6.2 and later do not support large files by default,
6440 # so use the C compiler's -n32 option if that helps.
6441 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6442 /* end confdefs.h. */
6443 #include <sys/types.h>
6444 /* Check that off_t can represent 2**63 - 1 correctly.
6445 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6446 since some C++ compilers masquerading as C compilers
6447 incorrectly reject 9223372036854775807. */
6448 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6449 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6450 && LARGE_OFF_T % 2147483647 == 1)
6460 if ac_fn_c_try_compile
"$LINENO"; then :
6463 rm -f core conftest.err conftest.
$ac_objext
6465 if ac_fn_c_try_compile
"$LINENO"; then :
6466 ac_cv_sys_largefile_CC
=' -n32'; break
6468 rm -f core conftest.err conftest.
$ac_objext
6472 rm -f conftest.
$ac_ext
6475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6476 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6477 if test "$ac_cv_sys_largefile_CC" != no
; then
6478 CC
=$CC$ac_cv_sys_largefile_CC
6481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6482 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6483 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
6484 $as_echo_n "(cached) " >&6
6487 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6488 /* end confdefs.h. */
6489 #include <sys/types.h>
6490 /* Check that off_t can represent 2**63 - 1 correctly.
6491 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6492 since some C++ compilers masquerading as C compilers
6493 incorrectly reject 9223372036854775807. */
6494 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6495 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6496 && LARGE_OFF_T % 2147483647 == 1)
6506 if ac_fn_c_try_compile
"$LINENO"; then :
6507 ac_cv_sys_file_offset_bits
=no
; break
6509 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6510 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6511 /* end confdefs.h. */
6512 #define _FILE_OFFSET_BITS 64
6513 #include <sys/types.h>
6514 /* Check that off_t can represent 2**63 - 1 correctly.
6515 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6516 since some C++ compilers masquerading as C compilers
6517 incorrectly reject 9223372036854775807. */
6518 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6519 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6520 && LARGE_OFF_T % 2147483647 == 1)
6530 if ac_fn_c_try_compile
"$LINENO"; then :
6531 ac_cv_sys_file_offset_bits
=64; break
6533 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6534 ac_cv_sys_file_offset_bits
=unknown
6538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6539 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6540 case $ac_cv_sys_file_offset_bits in #(
6543 cat >>confdefs.h
<<_ACEOF
6544 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6549 if test $ac_cv_sys_file_offset_bits = unknown
; then
6550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6551 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6552 if test "${ac_cv_sys_large_files+set}" = set; then :
6553 $as_echo_n "(cached) " >&6
6556 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6557 /* end confdefs.h. */
6558 #include <sys/types.h>
6559 /* Check that off_t can represent 2**63 - 1 correctly.
6560 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6561 since some C++ compilers masquerading as C compilers
6562 incorrectly reject 9223372036854775807. */
6563 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6564 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6565 && LARGE_OFF_T % 2147483647 == 1)
6575 if ac_fn_c_try_compile
"$LINENO"; then :
6576 ac_cv_sys_large_files
=no
; break
6578 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6579 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6580 /* end confdefs.h. */
6581 #define _LARGE_FILES 1
6582 #include <sys/types.h>
6583 /* Check that off_t can represent 2**63 - 1 correctly.
6584 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6585 since some C++ compilers masquerading as C compilers
6586 incorrectly reject 9223372036854775807. */
6587 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6588 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6589 && LARGE_OFF_T % 2147483647 == 1)
6599 if ac_fn_c_try_compile
"$LINENO"; then :
6600 ac_cv_sys_large_files
=1; break
6602 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6603 ac_cv_sys_large_files
=unknown
6607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6608 $as_echo "$ac_cv_sys_large_files" >&6; }
6609 case $ac_cv_sys_large_files in #(
6612 cat >>confdefs.h
<<_ACEOF
6613 #define _LARGE_FILES $ac_cv_sys_large_files
6623 case $ac_cv_prog_cc_stdc in #(
6625 ac_cv_prog_cc_c99
=no
; ac_cv_prog_cc_c89
=no
;; #(
6627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
6628 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
6629 if test "${ac_cv_prog_cc_c99+set}" = set; then :
6630 $as_echo_n "(cached) " >&6
6632 ac_cv_prog_cc_c99
=no
6634 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6635 /* end confdefs.h. */
6637 #include <stdbool.h>
6642 // Check varargs macros. These examples are taken from C99 6.10.3.5.
6643 #define debug(...) fprintf (stderr, __VA_ARGS__)
6644 #define showlist(...) puts (#__VA_ARGS__)
6645 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6647 test_varargs_macros (void)
6652 debug ("X = %d\n", x);
6653 showlist (The first, second, and third items.);
6654 report (x>y, "x is %d but y is %d", x, y);
6657 // Check long long types.
6658 #define BIG64 18446744073709551615ull
6659 #define BIG32 4294967295ul
6660 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6662 your preprocessor is broken;
6666 your preprocessor is broken;
6668 static long long int bignum = -9223372036854775807LL;
6669 static unsigned long long int ubignum = BIG64;
6671 struct incomplete_array
6679 const wchar_t *name;
6683 typedef const char *ccp;
6686 test_restrict (ccp restrict text)
6688 // See if C++-style comments work.
6689 // Iterate through items via the restricted pointer.
6690 // Also check for declarations in for loops.
6691 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6696 // Check varargs and va_copy.
6698 test_varargs (const char *format, ...)
6701 va_start (args, format);
6703 va_copy (args_copy, args);
6714 str = va_arg (args_copy, const char *);
6717 number = va_arg (args_copy, int);
6720 fnumber = va_arg (args_copy, double);
6735 _Bool success = false;
6738 if (test_restrict ("String literal") == 0)
6740 char *restrict newvar = "Another string";
6743 test_varargs ("s, d' f .", "string", 65, 34.234);
6744 test_varargs_macros ();
6746 // Check flexible array members.
6747 struct incomplete_array *ia =
6748 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6750 for (int i = 0; i < ia->datasize; ++i)
6751 ia->data[i] = i * 1.234;
6753 // Check named initializers.
6754 struct named_init ni = {
6756 .name = L"Test wide string",
6757 .average = 543.34343,
6762 int dynamic_array[ni.number];
6763 dynamic_array[ni.number - 1] = 543;
6765 // work around unused variable warnings
6766 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
6767 || dynamic_array[ni.number - 1] != 543);
6773 for ac_arg
in '' -std=gnu99
-std=c99
-c99 -AC99 -xc99=all
-qlanglvl=extc99
6775 CC
="$ac_save_CC $ac_arg"
6776 if ac_fn_c_try_compile
"$LINENO"; then :
6777 ac_cv_prog_cc_c99
=$ac_arg
6779 rm -f core conftest.err conftest.
$ac_objext
6780 test "x$ac_cv_prog_cc_c99" != "xno" && break
6782 rm -f conftest.
$ac_ext
6787 case "x$ac_cv_prog_cc_c99" in
6789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6790 $as_echo "none needed" >&6; } ;;
6792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6793 $as_echo "unsupported" >&6; } ;;
6795 CC
="$CC $ac_cv_prog_cc_c99"
6796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
6797 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
6799 if test "x$ac_cv_prog_cc_c99" != xno
; then :
6800 ac_cv_prog_cc_stdc
=$ac_cv_prog_cc_c99
6802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6803 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6804 if test "${ac_cv_prog_cc_c89+set}" = set; then :
6805 $as_echo_n "(cached) " >&6
6807 ac_cv_prog_cc_c89
=no
6809 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6810 /* end confdefs.h. */
6813 #include <sys/types.h>
6814 #include <sys/stat.h>
6815 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6816 struct buf { int x; };
6817 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6818 static char *e (p, i)
6824 static char *f (char * (*g) (char **, int), char **p, ...)
6829 s = g (p, va_arg (v,int));
6834 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6835 function prototypes and stuff, but not '\xHH' hex character constants.
6836 These don't provoke an error unfortunately, instead are silently treated
6837 as 'x'. The following induces an error, until -std is added to get
6838 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6839 array size at least. It's necessary to write '\x00'==0 to get something
6840 that's true only with -std. */
6841 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6843 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6844 inside strings and character constants. */
6846 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6848 int test (int i, double x);
6849 struct s1 {int (*f) (int a);};
6850 struct s2 {int (*f) (double a);};
6851 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6857 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6862 for ac_arg
in '' -qlanglvl=extc89
-qlanglvl=ansi
-std \
6863 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6865 CC
="$ac_save_CC $ac_arg"
6866 if ac_fn_c_try_compile
"$LINENO"; then :
6867 ac_cv_prog_cc_c89
=$ac_arg
6869 rm -f core conftest.err conftest.
$ac_objext
6870 test "x$ac_cv_prog_cc_c89" != "xno" && break
6872 rm -f conftest.
$ac_ext
6877 case "x$ac_cv_prog_cc_c89" in
6879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6880 $as_echo "none needed" >&6; } ;;
6882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6883 $as_echo "unsupported" >&6; } ;;
6885 CC
="$CC $ac_cv_prog_cc_c89"
6886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6887 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6889 if test "x$ac_cv_prog_cc_c89" != xno
; then :
6890 ac_cv_prog_cc_stdc
=$ac_cv_prog_cc_c89
6892 ac_cv_prog_cc_stdc
=no
6898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
6899 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
6900 if test "${ac_cv_prog_cc_stdc+set}" = set; then :
6901 $as_echo_n "(cached) " >&6
6904 case $ac_cv_prog_cc_stdc in #(
6906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6907 $as_echo "unsupported" >&6; } ;; #(
6909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6910 $as_echo "none needed" >&6; } ;; #(
6912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
6913 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
6918 # Code from module alloca-opt:
6919 # Code from module allocator:
6920 # Code from module careadlinkat:
6921 # Code from module crypto/md5:
6922 # Code from module crypto/sha1:
6923 # Code from module crypto/sha256:
6924 # Code from module crypto/sha512:
6925 # Code from module dosname:
6926 # Code from module dtoastr:
6927 # Code from module dup2:
6928 # Code from module extensions:
6930 # Code from module filemode:
6931 # Code from module getloadavg:
6932 # Code from module getopt-gnu:
6933 # Code from module getopt-posix:
6934 # Code from module gettext-h:
6935 # Code from module ignore-value:
6936 # Code from module include_next:
6937 # Code from module intprops:
6938 # Code from module inttypes-incomplete:
6939 # Code from module largefile:
6941 # Code from module lstat:
6942 # Code from module mktime:
6943 # Code from module multiarch:
6944 # Code from module nocrash:
6945 # Code from module pthread_sigmask:
6946 # Code from module readlink:
6947 # Code from module signal:
6948 # Code from module sigprocmask:
6949 # Code from module snippet/_Noreturn:
6950 # Code from module snippet/arg-nonnull:
6951 # Code from module snippet/c++defs:
6952 # Code from module snippet/warn-on-use:
6953 # Code from module socklen:
6954 # Code from module ssize_t:
6955 # Code from module stat:
6956 # Code from module stdarg:
6958 # Code from module stdbool:
6959 # Code from module stddef:
6960 # Code from module stdint:
6961 # Code from module stdio:
6962 # Code from module stdlib:
6963 # Code from module strftime:
6964 # Code from module strtoimax:
6965 # Code from module strtoll:
6966 # Code from module strtoull:
6967 # Code from module strtoumax:
6968 # Code from module symlink:
6969 # Code from module sys_stat:
6970 # Code from module time:
6971 # Code from module time_r:
6972 # Code from module u64:
6973 # Code from module unistd:
6974 # Code from module verify:
6977 # On Suns, sometimes $CPP names a directory.
6978 if test -n "$CPP" && test -d "$CPP"; then
6982 ## If not using gcc, and on Solaris, and no CPP specified, see if
6983 ## using a Sun compiler, which needs -Xs to prevent whitespace.
6984 if test x
"$GCC" != xyes
&& test x
"$emacs_check_sunpro_c" = xyes
&& \
6985 test x
"$CPP" = x
; then
6986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using a Sun C compiler" >&5
6987 $as_echo_n "checking whether we are using a Sun C compiler... " >&6; }
6988 if test "${emacs_cv_sunpro_c+set}" = set; then :
6989 $as_echo_n "(cached) " >&6
6991 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6992 /* end confdefs.h. */
7005 if ac_fn_c_try_link
"$LINENO"; then :
7006 emacs_cv_sunpro_c
=yes
7008 emacs_cv_sunpro_c
=no
7010 rm -f core conftest.err conftest.
$ac_objext \
7011 conftest
$ac_exeext conftest.
$ac_ext
7014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_sunpro_c" >&5
7015 $as_echo "$emacs_cv_sunpro_c" >&6; }
7017 if test x
"$emacs_cv_sunpro_c" = xyes
; then
7018 NON_GNU_CPP
="$CC -E -Xs"
7022 #### Some systems specify a CPP to use unless we are using GCC.
7023 #### Now that we know whether we are using GCC, we can decide whether
7024 #### to use that one.
7025 if test "x$NON_GNU_CPP" != x
&& test x
$GCC != xyes
&& test "x$CPP" = x
7030 #### Some systems specify a CC to use unless we are using GCC.
7031 #### Now that we know whether we are using GCC, we can decide whether
7032 #### to use that one.
7033 if test "x$NON_GNU_CC" != x
&& test x
$GCC != xyes
&&
7034 test x
$cc_specified != xyes
7039 if test x
$GCC = xyes
; then
7040 test "x$GCC_TEST_OPTIONS" != x
&& CC
="$CC $GCC_TEST_OPTIONS"
7042 test "x$NON_GCC_TEST_OPTIONS" != x
&& CC
="$CC $NON_GCC_TEST_OPTIONS"
7045 ### Use -Wdeclaration-after-statement if the compiler supports it
7046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wdeclaration-after-statement" >&5
7047 $as_echo_n "checking whether gcc understands -Wdeclaration-after-statement... " >&6; }
7048 SAVE_CFLAGS
="$CFLAGS"
7049 CFLAGS
="$CFLAGS -Wdeclaration-after-statement"
7050 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7051 /* end confdefs.h. */
7061 if ac_fn_c_try_compile
"$LINENO"; then :
7066 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7067 if test $has_option = yes; then
7068 C_WARNINGS_SWITCH
="-Wdeclaration-after-statement $C_WARNINGS_SWITCH"
7070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
7071 $as_echo "$has_option" >&6; }
7072 CFLAGS
="$SAVE_CFLAGS"
7076 ### Use -Wold-style-definition if the compiler supports it
7077 # This can be removed when conversion to standard C is finished.
7078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wold-style-definition" >&5
7079 $as_echo_n "checking whether gcc understands -Wold-style-definition... " >&6; }
7080 SAVE_CFLAGS
="$CFLAGS"
7081 CFLAGS
="$CFLAGS -Wold-style-definition"
7082 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7083 /* end confdefs.h. */
7093 if ac_fn_c_try_compile
"$LINENO"; then :
7098 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7099 if test $has_option = yes; then
7100 C_WARNINGS_SWITCH
="-Wold-style-definition $C_WARNINGS_SWITCH"
7102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
7103 $as_echo "$has_option" >&6; }
7104 CFLAGS
="$SAVE_CFLAGS"
7108 ### Use -Wimplicit-function-declaration if the compiler supports it
7109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wimplicit-function-declaration" >&5
7110 $as_echo_n "checking whether gcc understands -Wimplicit-function-declaration... " >&6; }
7111 SAVE_CFLAGS
="$CFLAGS"
7112 CFLAGS
="$CFLAGS -Wimplicit-function-declaration"
7113 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7114 /* end confdefs.h. */
7124 if ac_fn_c_try_compile
"$LINENO"; then :
7129 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7130 if test $has_option = yes; then
7131 C_WARNINGS_SWITCH
="-Wimplicit-function-declaration $C_WARNINGS_SWITCH"
7133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
7134 $as_echo "$has_option" >&6; }
7135 CFLAGS
="$SAVE_CFLAGS"
7142 #### Some other nice autoconf tests.
7145 ac_cpp
='$CPP $CPPFLAGS'
7146 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7147 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7148 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7150 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7151 # On Suns, sometimes $CPP names a directory.
7152 if test -n "$CPP" && test -d "$CPP"; then
7155 if test -z "$CPP"; then
7156 if test "${ac_cv_prog_CPP+set}" = set; then :
7157 $as_echo_n "(cached) " >&6
7159 # Double quotes because CPP needs to be expanded
7160 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7163 for ac_c_preproc_warn_flag
in '' yes
7165 # Use a header file that comes with gcc, so configuring glibc
7166 # with a fresh cross-compiler works.
7167 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7168 # <limits.h> exists even on freestanding compilers.
7169 # On the NeXT, cc -E runs the code through the compiler's parser,
7170 # not just through cpp. "Syntax error" is here to catch this case.
7171 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7172 /* end confdefs.h. */
7174 # include <limits.h>
7176 # include <assert.h>
7180 if ac_fn_c_try_cpp
"$LINENO"; then :
7183 # Broken: fails on valid input.
7186 rm -f conftest.err conftest.
$ac_ext
7188 # OK, works on sane cases. Now check whether nonexistent headers
7189 # can be detected and how.
7190 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7191 /* end confdefs.h. */
7192 #include <ac_nonexistent.h>
7194 if ac_fn_c_try_cpp
"$LINENO"; then :
7195 # Broken: success on invalid input.
7198 # Passes both tests.
7202 rm -f conftest.err conftest.
$ac_ext
7205 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7206 rm -f conftest.err conftest.
$ac_ext
7207 if $ac_preproc_ok; then :
7219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7220 $as_echo "$CPP" >&6; }
7222 for ac_c_preproc_warn_flag
in '' yes
7224 # Use a header file that comes with gcc, so configuring glibc
7225 # with a fresh cross-compiler works.
7226 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7227 # <limits.h> exists even on freestanding compilers.
7228 # On the NeXT, cc -E runs the code through the compiler's parser,
7229 # not just through cpp. "Syntax error" is here to catch this case.
7230 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7231 /* end confdefs.h. */
7233 # include <limits.h>
7235 # include <assert.h>
7239 if ac_fn_c_try_cpp
"$LINENO"; then :
7242 # Broken: fails on valid input.
7245 rm -f conftest.err conftest.
$ac_ext
7247 # OK, works on sane cases. Now check whether nonexistent headers
7248 # can be detected and how.
7249 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7250 /* end confdefs.h. */
7251 #include <ac_nonexistent.h>
7253 if ac_fn_c_try_cpp
"$LINENO"; then :
7254 # Broken: success on invalid input.
7257 # Passes both tests.
7261 rm -f conftest.err conftest.
$ac_ext
7264 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7265 rm -f conftest.err conftest.
$ac_ext
7266 if $ac_preproc_ok; then :
7269 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7270 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7271 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
7272 See \`config.log' for more details." "$LINENO" 5; }
7276 ac_cpp
='$CPP $CPPFLAGS'
7277 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7278 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7279 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7282 if test "x$RANLIB" = x
; then
7283 if test -n "$ac_tool_prefix"; then
7284 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7285 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
7286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7287 $as_echo_n "checking for $ac_word... " >&6; }
7288 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7289 $as_echo_n "(cached) " >&6
7291 if test -n "$RANLIB"; then
7292 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
7294 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7298 test -z "$as_dir" && as_dir
=.
7299 for ac_exec_ext
in '' $ac_executable_extensions; do
7300 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7301 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
7302 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7311 RANLIB
=$ac_cv_prog_RANLIB
7312 if test -n "$RANLIB"; then
7313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7314 $as_echo "$RANLIB" >&6; }
7316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7317 $as_echo "no" >&6; }
7322 if test -z "$ac_cv_prog_RANLIB"; then
7323 ac_ct_RANLIB
=$RANLIB
7324 # Extract the first word of "ranlib", so it can be a program name with args.
7325 set dummy ranlib
; ac_word
=$2
7326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7327 $as_echo_n "checking for $ac_word... " >&6; }
7328 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7329 $as_echo_n "(cached) " >&6
7331 if test -n "$ac_ct_RANLIB"; then
7332 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
7334 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7338 test -z "$as_dir" && as_dir
=.
7339 for ac_exec_ext
in '' $ac_executable_extensions; do
7340 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7341 ac_cv_prog_ac_ct_RANLIB
="ranlib"
7342 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7351 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
7352 if test -n "$ac_ct_RANLIB"; then
7353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7354 $as_echo "$ac_ct_RANLIB" >&6; }
7356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7357 $as_echo "no" >&6; }
7360 if test "x$ac_ct_RANLIB" = x
; then
7363 case $cross_compiling:$ac_tool_warned in
7365 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7366 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7367 ac_tool_warned
=yes ;;
7369 RANLIB
=$ac_ct_RANLIB
7372 RANLIB
="$ac_cv_prog_RANLIB"
7377 ## Although we're running on an amd64 kernel, we're actually compiling for
7378 ## the x86 architecture. The user should probably have provided an
7379 ## explicit --build to `configure', but if everything else than the kernel
7380 ## is running in i386 mode, we can help them out.
7381 if test "$machine" = "amdx86-64"; then
7382 ac_fn_c_check_decl
"$LINENO" "i386" "ac_cv_have_decl_i386" "$ac_includes_default"
7383 if test "x$ac_cv_have_decl_i386" = x
""yes; then :
7387 if test "$ac_cv_have_decl_i386" = "yes"; then
7388 canonical
=`echo "$canonical" | sed -e 's/^amd64/i386/' -e 's/^x86_64/i386/'`
7390 machfile
="m/${machine}.h"
7394 # Extract the first word of "install-info", so it can be a program name with args.
7395 set dummy install-info
; ac_word
=$2
7396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7397 $as_echo_n "checking for $ac_word... " >&6; }
7398 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
7399 $as_echo_n "(cached) " >&6
7401 case $INSTALL_INFO in
7403 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
7406 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7410 test -z "$as_dir" && as_dir
=.
7411 for ac_exec_ext
in '' $ac_executable_extensions; do
7412 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7413 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
7414 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7424 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
7425 if test -n "$INSTALL_INFO"; then
7426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
7427 $as_echo "$INSTALL_INFO" >&6; }
7429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7430 $as_echo "no" >&6; }
7434 # Extract the first word of "install-info", so it can be a program name with args.
7435 set dummy install-info
; ac_word
=$2
7436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7437 $as_echo_n "checking for $ac_word... " >&6; }
7438 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
7439 $as_echo_n "(cached) " >&6
7441 case $INSTALL_INFO in
7443 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
7446 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7447 for as_dir
in /usr
/sbin
7450 test -z "$as_dir" && as_dir
=.
7451 for ac_exec_ext
in '' $ac_executable_extensions; do
7452 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7453 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
7454 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7464 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
7465 if test -n "$INSTALL_INFO"; then
7466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
7467 $as_echo "$INSTALL_INFO" >&6; }
7469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7470 $as_echo "no" >&6; }
7474 # Extract the first word of "install-info", so it can be a program name with args.
7475 set dummy install-info
; ac_word
=$2
7476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7477 $as_echo_n "checking for $ac_word... " >&6; }
7478 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
7479 $as_echo_n "(cached) " >&6
7481 case $INSTALL_INFO in
7483 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
7486 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7490 test -z "$as_dir" && as_dir
=.
7491 for ac_exec_ext
in '' $ac_executable_extensions; do
7492 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7493 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
7494 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7501 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
=":"
7505 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
7506 if test -n "$INSTALL_INFO"; then
7507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
7508 $as_echo "$INSTALL_INFO" >&6; }
7510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7511 $as_echo "no" >&6; }
7515 # Extract the first word of "gzip", so it can be a program name with args.
7516 set dummy
gzip; ac_word
=$2
7517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7518 $as_echo_n "checking for $ac_word... " >&6; }
7519 if test "${ac_cv_path_GZIP_PROG+set}" = set; then :
7520 $as_echo_n "(cached) " >&6
7524 ac_cv_path_GZIP_PROG
="$GZIP_PROG" # Let the user override the test with a path.
7527 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7531 test -z "$as_dir" && as_dir
=.
7532 for ac_exec_ext
in '' $ac_executable_extensions; do
7533 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7534 ac_cv_path_GZIP_PROG
="$as_dir/$ac_word$ac_exec_ext"
7535 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7545 GZIP_PROG
=$ac_cv_path_GZIP_PROG
7546 if test -n "$GZIP_PROG"; then
7547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP_PROG" >&5
7548 $as_echo "$GZIP_PROG" >&6; }
7550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7551 $as_echo "no" >&6; }
7557 ## Need makeinfo >= 4.6 (?) to build the manuals.
7558 # Extract the first word of "makeinfo", so it can be a program name with args.
7559 set dummy makeinfo
; ac_word
=$2
7560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7561 $as_echo_n "checking for $ac_word... " >&6; }
7562 if test "${ac_cv_path_MAKEINFO+set}" = set; then :
7563 $as_echo_n "(cached) " >&6
7567 ac_cv_path_MAKEINFO
="$MAKEINFO" # Let the user override the test with a path.
7570 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7574 test -z "$as_dir" && as_dir
=.
7575 for ac_exec_ext
in '' $ac_executable_extensions; do
7576 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7577 ac_cv_path_MAKEINFO
="$as_dir/$ac_word$ac_exec_ext"
7578 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7585 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO
="no"
7589 MAKEINFO
=$ac_cv_path_MAKEINFO
7590 if test -n "$MAKEINFO"; then
7591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7592 $as_echo "$MAKEINFO" >&6; }
7594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7595 $as_echo "no" >&6; }
7599 if test "$MAKEINFO" != "no" && \
7600 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
7604 ## Makeinfo is unusual. For a released Emacs, the manuals are
7605 ## pre-built, and not deleted by the normal clean rules. makeinfo is
7606 ## therefore in the category of "special tools" not normally required, which
7607 ## configure does not have to check for (eg autoconf itself).
7608 ## In a Bazaar checkout on the other hand, the manuals are not included.
7609 ## So makeinfo is a requirement to build from Bazaar, and configure
7610 ## should test for it as it does for any other build requirement.
7611 ## We use the presence of $srcdir/info/emacs to distinguish a release,
7612 ## with pre-built manuals, from a Bazaar checkout.
7615 if test "$MAKEINFO" = "no"; then
7617 if test "x${with_makeinfo}" = "xno"; then
7619 elif test ! -e $srcdir/info
/emacs
; then
7620 as_fn_error
"You do not seem to have makeinfo >= 4.6, and your
7621 source tree does not seem to have pre-built manuals in the \`info' directory.
7622 Either install a suitable version of makeinfo, or re-run configure
7623 with the \`--without-makeinfo' option to build without the manuals. " "$LINENO" 5
7629 if test x
$GCC = xyes
; then
7630 test "x$GCC_LINK_TEST_OPTIONS" != x
&& \
7631 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
7633 test "x$NON_GCC_LINK_TEST_OPTIONS" != x
&& \
7634 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
7638 late_LDFLAGS
=$LDFLAGS
7639 if test x
$GCC = xyes
; then
7640 LDFLAGS
="$LDFLAGS -Wl,-znocombreloc"
7642 LDFLAGS
="$LDFLAGS -znocombreloc"
7645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -znocombreloc" >&5
7646 $as_echo_n "checking for -znocombreloc... " >&6; }
7647 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7648 /* end confdefs.h. */
7658 if ac_fn_c_try_link
"$LINENO"; then :
7659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7660 $as_echo "yes" >&6; }
7662 LDFLAGS
=$late_LDFLAGS
7663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7664 $as_echo "no" >&6; }
7666 rm -f core conftest.err conftest.
$ac_objext \
7667 conftest
$ac_exeext conftest.
$ac_ext
7670 # The value of CPP is a quoted variable reference, so we need to do this
7671 # to get its actual value...
7672 CPP
=`eval "echo $CPP"`
7675 test "x$CANNOT_DUMP" = "x" && CANNOT_DUMP
=no
7677 your-opsys-here
) CANNOT_DUMP
=yes ;;
7680 test "$CANNOT_DUMP" = "yes" && \
7682 $as_echo "#define CANNOT_DUMP 1" >>confdefs.h
7688 UNEXEC_OBJ
=unexelf.o
7690 # MSDOS uses unexcoff.o
7691 # MSWindows uses unexw32.o
7693 UNEXEC_OBJ
=unexaix.o
7699 UNEXEC_OBJ
=unexmacosx.o
7702 UNEXEC_OBJ
=unexhp9k800.o
7705 # Use the Solaris dldump() function, called from unexsol.c, to dump
7706 # emacs, instead of the generic ELF dump code found in unexelf.c.
7707 # The resulting binary has a complete symbol table, and is better
7708 # for debugging and other observability tools (debuggers, pstack, etc).
7710 # If you encounter a problem using dldump(), please consider sending
7711 # a message to the OpenSolaris tools-linking mailing list:
7712 # http://mail.opensolaris.org/mailman/listinfo/tools-linking
7714 # It is likely that dldump() works with older Solaris too, but this has
7715 # not been tested, so for now this change is for Solaris 10 or newer.
7716 UNEXEC_OBJ
=unexsol.o
7723 ## Let `ld' find image libs and similar things in /usr/local/lib.
7724 ## The system compiler, GCC, has apparently been modified to not
7725 ## look there, contrary to what a stock GCC would do.
7726 LD_SWITCH_SYSTEM
=-L/usr
/local
/lib
7730 ## cpp test was "ifdef __mips__", but presumably this is equivalent...
7731 case $host_cpu in mips
*) LD_SWITCH_SYSTEM
="-G 0";; esac
7735 LD_SWITCH_SYSTEM
="-Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib"
7739 ## Han Boetes <han@mijncomputer.nl> says this is necessary,
7740 ## otherwise Emacs dumps core on elf systems.
7741 LD_SWITCH_SYSTEM
="-Z"
7746 ac_link
="$ac_link $LD_SWITCH_SYSTEM"
7748 ## This setting of LD_SWITCH_SYSTEM references LD_SWITCH_X_SITE_AUX,
7749 ## which has not been defined yet. When this was handled with cpp,
7750 ## it was expanded to null when configure sourced the s/*.h file.
7751 ## Thus LD_SWITCH_SYSTEM had different values in configure and the Makefiles.
7752 ## FIXME it would be cleaner to put this in LD_SWITCH_SYSTEM_TEMACS
7753 ## (or somesuch), but because it is supposed to go at the _front_
7754 ## of LD_SWITCH_SYSTEM, we cannot do that in exactly the same way.
7755 ## Compare with the gnu-linux case below, which added to the end
7756 ## of LD_SWITCH_SYSTEM, and so can instead go at the front of
7757 ## LD_SWITCH_SYSTEM_TEMACS.
7760 ## _AUX_RPATH is like _AUX, but uses -rpath instead of -R.
7761 LD_SWITCH_SYSTEM
="\$(LD_SWITCH_X_SITE_AUX_RPATH) $LD_SWITCH_SYSTEM" ;;
7766 if test "$machine" = "alpha"; then
7767 ac_fn_c_check_decl
"$LINENO" "__ELF__" "ac_cv_have_decl___ELF__" "$ac_includes_default"
7768 if test "x$ac_cv_have_decl___ELF__" = x
""yes; then :
7772 if test "$ac_cv_have_decl___ELF__" = "yes"; then
7773 ## With ELF, make sure that all common symbols get allocated to in the
7774 ## data section. Otherwise, the dump of temacs may miss variables in
7775 ## the shared library that have been initialized. For example, with
7776 ## GNU libc, __malloc_initialized would normally be resolved to the
7777 ## shared library's .bss section, which is fatal.
7778 if test "x$GCC" = "xyes"; then
7779 C_SWITCH_MACHINE
="-fno-common"
7781 as_fn_error
"What gives? Fix me if DEC Unix supports ELF now." "$LINENO" 5
7784 UNEXEC_OBJ
=unexalpha.o
7792 ## Some programs in src produce warnings saying certain subprograms
7793 ## are too complex and need a MAXMEM value greater than 2000 for
7794 ## additional optimization. --nils@exp-math.uni-essen.de
7795 test "$opsys" = "aix4.2" && test "x$GCC" != "xyes" && \
7796 C_SWITCH_SYSTEM
="-ma -qmaxmem=4000"
7797 ## gnu-linux might need -D_BSD_SOURCE on old libc5 systems.
7798 ## It is redundant in glibc2, since we define _GNU_SOURCE.
7804 ## IBM's X11R5 uses -lIM and -liconv in AIX 3.2.2.
7805 aix4-2
) LIBS_SYSTEM
="-lrts -lIM -liconv" ;;
7807 freebsd
) LIBS_SYSTEM
="-lutil" ;;
7809 hpux
*) LIBS_SYSTEM
="-l:libdld.sl" ;;
7811 sol2
*) LIBS_SYSTEM
="-lsocket -lnsl" ;;
7813 ## Motif needs -lgen.
7814 unixware
) LIBS_SYSTEM
="-lsocket -lnsl -lelf -lgen" ;;
7819 ### Make sure subsequent tests use flags consistent with the build flags.
7821 if test x
"${OVERRIDE_CPPFLAGS}" != x
; then
7822 CPPFLAGS
="${OVERRIDE_CPPFLAGS}"
7824 CPPFLAGS
="$C_SWITCH_SYSTEM $C_SWITCH_MACHINE $CPPFLAGS"
7827 # Suppress obsolescent Autoconf test for size_t; Emacs assumes C89 or better.
7829 # Likewise for obsolescent test for uid_t, gid_t; Emacs assumes them.
7832 # Check whether --enable-largefile was given.
7833 if test "${enable_largefile+set}" = set; then :
7834 enableval
=$enable_largefile;
7837 if test "$enable_largefile" != no
; then
7839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
7840 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
7841 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
7842 $as_echo_n "(cached) " >&6
7844 ac_cv_sys_largefile_CC
=no
7845 if test "$GCC" != yes; then
7848 # IRIX 6.2 and later do not support large files by default,
7849 # so use the C compiler's -n32 option if that helps.
7850 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7851 /* end confdefs.h. */
7852 #include <sys/types.h>
7853 /* Check that off_t can represent 2**63 - 1 correctly.
7854 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7855 since some C++ compilers masquerading as C compilers
7856 incorrectly reject 9223372036854775807. */
7857 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7858 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7859 && LARGE_OFF_T % 2147483647 == 1)
7869 if ac_fn_c_try_compile
"$LINENO"; then :
7872 rm -f core conftest.err conftest.
$ac_objext
7874 if ac_fn_c_try_compile
"$LINENO"; then :
7875 ac_cv_sys_largefile_CC
=' -n32'; break
7877 rm -f core conftest.err conftest.
$ac_objext
7881 rm -f conftest.
$ac_ext
7884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
7885 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
7886 if test "$ac_cv_sys_largefile_CC" != no
; then
7887 CC
=$CC$ac_cv_sys_largefile_CC
7890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
7891 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
7892 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
7893 $as_echo_n "(cached) " >&6
7896 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7897 /* end confdefs.h. */
7898 #include <sys/types.h>
7899 /* Check that off_t can represent 2**63 - 1 correctly.
7900 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7901 since some C++ compilers masquerading as C compilers
7902 incorrectly reject 9223372036854775807. */
7903 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7904 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7905 && LARGE_OFF_T % 2147483647 == 1)
7915 if ac_fn_c_try_compile
"$LINENO"; then :
7916 ac_cv_sys_file_offset_bits
=no
; break
7918 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7919 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7920 /* end confdefs.h. */
7921 #define _FILE_OFFSET_BITS 64
7922 #include <sys/types.h>
7923 /* Check that off_t can represent 2**63 - 1 correctly.
7924 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7925 since some C++ compilers masquerading as C compilers
7926 incorrectly reject 9223372036854775807. */
7927 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7928 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7929 && LARGE_OFF_T % 2147483647 == 1)
7939 if ac_fn_c_try_compile
"$LINENO"; then :
7940 ac_cv_sys_file_offset_bits
=64; break
7942 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7943 ac_cv_sys_file_offset_bits
=unknown
7947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
7948 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
7949 case $ac_cv_sys_file_offset_bits in #(
7952 cat >>confdefs.h
<<_ACEOF
7953 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
7958 if test $ac_cv_sys_file_offset_bits = unknown
; then
7959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
7960 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
7961 if test "${ac_cv_sys_large_files+set}" = set; then :
7962 $as_echo_n "(cached) " >&6
7965 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7966 /* end confdefs.h. */
7967 #include <sys/types.h>
7968 /* Check that off_t can represent 2**63 - 1 correctly.
7969 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7970 since some C++ compilers masquerading as C compilers
7971 incorrectly reject 9223372036854775807. */
7972 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7973 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7974 && LARGE_OFF_T % 2147483647 == 1)
7984 if ac_fn_c_try_compile
"$LINENO"; then :
7985 ac_cv_sys_large_files
=no
; break
7987 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7988 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7989 /* end confdefs.h. */
7990 #define _LARGE_FILES 1
7991 #include <sys/types.h>
7992 /* Check that off_t can represent 2**63 - 1 correctly.
7993 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7994 since some C++ compilers masquerading as C compilers
7995 incorrectly reject 9223372036854775807. */
7996 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7997 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7998 && LARGE_OFF_T % 2147483647 == 1)
8008 if ac_fn_c_try_compile
"$LINENO"; then :
8009 ac_cv_sys_large_files
=1; break
8011 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8012 ac_cv_sys_large_files
=unknown
8016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
8017 $as_echo "$ac_cv_sys_large_files" >&6; }
8018 case $ac_cv_sys_large_files in #(
8021 cat >>confdefs.h
<<_ACEOF
8022 #define _LARGE_FILES $ac_cv_sys_large_files
8041 START_FILES
='pre-crt0.o'
8044 ## Adding -lm confuses the dynamic linker, so omit it.
8046 START_FILES
='pre-crt0.o'
8049 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
8050 START_FILES
='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
8052 gnu-linux | gnu-kfreebsd
)
8053 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtn.o'
8054 START_FILES
='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o'
8056 hpux10-20 | hpux11
)
8058 START_FILES
='pre-crt0.o $(CRT_DIR)/crt0.o'
8061 if test -f $CRT_DIR/crti.o
; then
8062 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
8063 START_FILES
='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
8065 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o'
8066 START_FILES
='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crtbegin.o'
8076 for file in x
$LIB_STANDARD $START_FILES; do
8078 *CRT_DIR
*) crt_files
="$crt_files `echo $file | sed -e 's|.*/||'`" ;;
8082 if test "x$crt_files" != x
; then
8084 ## If user specified a crt-dir, use that unconditionally.
8087 if test "X$CRT_DIR" = "X"; then
8089 CRT_DIR
=/usr
/lib
# default
8091 case "$canonical" in
8092 x86_64-
*-linux-gnu* | s390x-
*-linux-gnu*)
8093 ## On x86-64 and s390x GNU/Linux distributions, the standard library
8094 ## can be in a variety of places. We only try /usr/lib64 and /usr/lib.
8095 ## For anything else (eg /usr/lib32), it is up the user to specify
8096 ## the location (bug#5655).
8097 ## Test for crtn.o, not just the directory, because sometimes the
8098 ## directory exists but does not have the relevant files (bug#1287).
8099 ## FIXME better to test for binary compatibility somehow.
8100 test -e /usr
/lib64
/crtn.o
&& CRT_DIR
=/usr
/lib64
8103 powerpc64-
*-linux-gnu* | sparc64-
*-linux-gnu*) CRT_DIR
=/usr
/lib64
;;
8107 hpux10-20
) CRT_DIR
=/lib
;;
8110 test "x${GCC}" = xyes
&& crt_gcc
=yes
8116 for file in $crt_files; do
8118 ## If we're using gcc, try to determine it automatically by asking
8119 ## gcc. [If this doesn't work, CRT_DIR will remain at the
8120 ## system-dependent default from above.]
8121 if test $crt_gcc = yes && test ! -e $CRT_DIR/$file; then
8123 crt_file
=`$CC --print-file-name=$file 2>/dev/null`
8126 CRT_DIR
=`$as_dirname -- "$crt_file" ||
8127 $as_expr X"$crt_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8128 X"$crt_file" : 'X\(//\)[^/]' \| \
8129 X"$crt_file" : 'X\(//\)$' \| \
8130 X"$crt_file" : 'X\(/\)' \| . 2>/dev/null ||
8131 $as_echo X"$crt_file" |
8132 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8155 test -e $CRT_DIR/$file || crt_missing
="$crt_missing $file"
8158 test "x$crt_missing" = x || \
8159 as_fn_error
"Required file(s) not found:$crt_missing
8160 Try using the --with-crt-dir option." "$LINENO" 5
8162 fi # crt_files != ""
8170 if test "${with_sound}" != "no"; then
8171 # Sound support for GNU/Linux and the free BSDs.
8172 for ac_header
in machine
/soundcard.h sys
/soundcard.h soundcard.h
8174 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8175 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8176 eval as_val
=\$
$as_ac_Header
8177 if test "x$as_val" = x
""yes; then :
8178 cat >>confdefs.h
<<_ACEOF
8179 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8181 have_sound_header
=yes
8186 # Emulation library used on NetBSD.
8187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
8188 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
8189 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then :
8190 $as_echo_n "(cached) " >&6
8192 ac_check_lib_save_LIBS
=$LIBS
8193 LIBS
="-lossaudio $LIBS"
8194 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8195 /* end confdefs.h. */
8197 /* Override any GCC internal prototype to avoid an error.
8198 Use char because int might match the return type of a GCC
8199 builtin and then its argument prototype would still apply. */
8207 return _oss_ioctl ();
8212 if ac_fn_c_try_link
"$LINENO"; then :
8213 ac_cv_lib_ossaudio__oss_ioctl
=yes
8215 ac_cv_lib_ossaudio__oss_ioctl
=no
8217 rm -f core conftest.err conftest.
$ac_objext \
8218 conftest
$ac_exeext conftest.
$ac_ext
8219 LIBS
=$ac_check_lib_save_LIBS
8221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
8222 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
8223 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = x
""yes; then :
8232 ALSA_MODULES
="alsa >= $ALSA_REQUIRED"
8236 # Extract the first word of "pkg-config", so it can be a program name with args.
8237 set dummy pkg-config
; ac_word
=$2
8238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8239 $as_echo_n "checking for $ac_word... " >&6; }
8240 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8241 $as_echo_n "(cached) " >&6
8245 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
8248 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8252 test -z "$as_dir" && as_dir
=.
8253 for ac_exec_ext
in '' $ac_executable_extensions; do
8254 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8255 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
8256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8263 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
8267 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
8268 if test -n "$PKG_CONFIG"; then
8269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8270 $as_echo "$PKG_CONFIG" >&6; }
8272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8273 $as_echo "no" >&6; }
8278 if test "$PKG_CONFIG" = "no" ; then
8281 PKG_CONFIG_MIN_VERSION
=0.9.0
8282 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ALSA_MODULES" >&5
8284 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
8286 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
8287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8288 $as_echo "yes" >&6; }
8291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_CFLAGS" >&5
8292 $as_echo_n "checking ALSA_CFLAGS... " >&6; }
8293 ALSA_CFLAGS
=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
8294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
8295 $as_echo "$ALSA_CFLAGS" >&6; }
8297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_LIBS" >&5
8298 $as_echo_n "checking ALSA_LIBS... " >&6; }
8299 ALSA_LIBS
=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
8300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
8301 $as_echo "$ALSA_LIBS" >&6; }
8303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8304 $as_echo "no" >&6; }
8307 ## If we have a custom action on failure, don't print errors, but
8308 ## do set a variable so people can do so.
8309 ALSA_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
8316 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8317 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8321 if test $succeeded = yes; then
8327 if test $HAVE_ALSA = yes; then
8328 SAVE_CFLAGS
="$CFLAGS"
8329 SAVE_LDFLAGS
="$LDFLAGS"
8330 CFLAGS
="$ALSA_CFLAGS $CFLAGS"
8331 LDFLAGS
="$ALSA_LIBS $LDFLAGS"
8332 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8333 /* end confdefs.h. */
8334 #include <asoundlib.h>
8338 snd_lib_error_set_handler (0);
8343 if ac_fn_c_try_compile
"$LINENO"; then :
8344 emacs_alsa_normal
=yes
8346 emacs_alsa_normal
=no
8348 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8349 if test "$emacs_alsa_normal" != yes; then
8350 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8351 /* end confdefs.h. */
8352 #include <alsa/asoundlib.h>
8356 snd_lib_error_set_handler (0);
8361 if ac_fn_c_try_compile
"$LINENO"; then :
8362 emacs_alsa_subdir
=yes
8364 emacs_alsa_subdir
=no
8366 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8367 if test "$emacs_alsa_subdir" != yes; then
8368 as_fn_error
"pkg-config found alsa, but it does not compile. See config.log for error messages." "$LINENO" 5
8370 ALSA_CFLAGS
="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
8373 CFLAGS
="$SAVE_CFLAGS"
8374 LDFLAGS
="$SAVE_LDFLAGS"
8375 LIBSOUND
="$LIBSOUND $ALSA_LIBS"
8376 CFLAGS_SOUND
="$CFLAGS_SOUND $ALSA_CFLAGS"
8378 $as_echo "#define HAVE_ALSA 1" >>confdefs.h
8382 if test x
$have_sound_header = xyes ||
test $HAVE_ALSA = yes; then
8384 gnu-linux|freebsd|netbsd
)
8386 $as_echo "#define HAVE_SOUND 1" >>confdefs.h
8395 for ac_header
in sys
/select.h sys
/time.h unistd.h utime.h \
8396 linux
/version.h sys
/systeminfo.h \
8397 stdio_ext.h fcntl.h coff.h pty.h sys
/mman.h \
8398 sys
/vlimit.h sys
/resource.h locale.h sys
/_mbstate_t.h \
8399 sys
/utsname.h
pwd.h utmp.h dirent.h util.h
8401 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8402 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8403 eval as_val
=\$
$as_ac_Header
8404 if test "x$as_val" = x
""yes; then :
8405 cat >>confdefs.h
<<_ACEOF
8406 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if personality LINUX32 can be set" >&5
8415 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
8416 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8417 /* end confdefs.h. */
8418 #include <sys/personality.h>
8422 personality (PER_LINUX32)
8427 if ac_fn_c_try_compile
"$LINENO"; then :
8428 emacs_cv_personality_linux32
=yes
8430 emacs_cv_personality_linux32
=no
8432 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_personality_linux32" >&5
8434 $as_echo "$emacs_cv_personality_linux32" >&6; }
8436 if test $emacs_cv_personality_linux32 = yes; then
8438 $as_echo "#define HAVE_PERSONALITY_LINUX32 1" >>confdefs.h
8442 for ac_header
in term.h
8444 ac_fn_c_check_header_preproc
"$LINENO" "term.h" "ac_cv_header_term_h"
8445 if test "x$ac_cv_header_term_h" = x
""yes; then :
8446 cat >>confdefs.h
<<_ACEOF
8447 #define HAVE_TERM_H 1
8454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8455 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8456 if test "${ac_cv_header_time+set}" = set; then :
8457 $as_echo_n "(cached) " >&6
8459 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8460 /* end confdefs.h. */
8461 #include <sys/types.h>
8462 #include <sys/time.h>
8468 if ((struct tm *) 0)
8474 if ac_fn_c_try_compile
"$LINENO"; then :
8475 ac_cv_header_time
=yes
8477 ac_cv_header_time
=no
8479 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8482 $as_echo "$ac_cv_header_time" >&6; }
8483 if test $ac_cv_header_time = yes; then
8485 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8489 ac_fn_c_check_decl
"$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "$ac_includes_default"
8490 if test "x$ac_cv_have_decl_sys_siglist" = x
""yes; then :
8496 cat >>confdefs.h
<<_ACEOF
8497 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
8500 if test $ac_cv_have_decl_sys_siglist != yes; then
8501 # For Tru64, at least:
8502 ac_fn_c_check_decl
"$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "$ac_includes_default"
8503 if test "x$ac_cv_have_decl___sys_siglist" = x
""yes; then :
8509 cat >>confdefs.h
<<_ACEOF
8510 #define HAVE_DECL___SYS_SIGLIST $ac_have_decl
8513 if test $ac_cv_have_decl___sys_siglist = yes; then
8515 $as_echo "#define sys_siglist __sys_siglist" >>confdefs.h
8519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8520 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8521 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8522 $as_echo_n "(cached) " >&6
8524 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8525 /* end confdefs.h. */
8526 #include <sys/types.h>
8527 #include <sys/wait.h>
8529 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8532 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8540 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8545 if ac_fn_c_try_compile
"$LINENO"; then :
8546 ac_cv_header_sys_wait_h
=yes
8548 ac_cv_header_sys_wait_h
=no
8550 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8553 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8554 if test $ac_cv_header_sys_wait_h = yes; then
8556 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utimbuf" >&5
8562 $as_echo_n "checking for struct utimbuf... " >&6; }
8563 if test "${emacs_cv_struct_utimbuf+set}" = set; then :
8564 $as_echo_n "(cached) " >&6
8566 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8567 /* end confdefs.h. */
8568 #ifdef TIME_WITH_SYS_TIME
8569 #include <sys/time.h>
8572 #ifdef HAVE_SYS_TIME_H
8573 #include <sys/time.h>
8584 static struct utimbuf x; x.actime = x.modtime;
8589 if ac_fn_c_try_compile
"$LINENO"; then :
8590 emacs_cv_struct_utimbuf
=yes
8592 emacs_cv_struct_utimbuf
=no
8594 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_utimbuf" >&5
8597 $as_echo "$emacs_cv_struct_utimbuf" >&6; }
8598 if test $emacs_cv_struct_utimbuf = yes; then
8600 $as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h
8604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t" >&5
8605 $as_echo_n "checking for speed_t... " >&6; }
8606 if test "${emacs_cv_speed_t+set}" = set; then :
8607 $as_echo_n "(cached) " >&6
8609 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8610 /* end confdefs.h. */
8611 #include <termios.h>
8620 if ac_fn_c_try_compile
"$LINENO"; then :
8621 emacs_cv_speed_t
=yes
8625 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_speed_t" >&5
8628 $as_echo "$emacs_cv_speed_t" >&6; }
8629 if test $emacs_cv_speed_t = yes; then
8631 $as_echo "#define HAVE_SPEED_T 1" >>confdefs.h
8635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
8636 $as_echo_n "checking for struct timeval... " >&6; }
8637 if test "${emacs_cv_struct_timeval+set}" = set; then :
8638 $as_echo_n "(cached) " >&6
8640 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8641 /* end confdefs.h. */
8642 #ifdef TIME_WITH_SYS_TIME
8643 #include <sys/time.h>
8646 #ifdef HAVE_SYS_TIME_H
8647 #include <sys/time.h>
8655 static struct timeval x; x.tv_sec = x.tv_usec;
8660 if ac_fn_c_try_compile
"$LINENO"; then :
8661 emacs_cv_struct_timeval
=yes
8663 emacs_cv_struct_timeval
=no
8665 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_timeval" >&5
8668 $as_echo "$emacs_cv_struct_timeval" >&6; }
8669 HAVE_TIMEVAL
=$emacs_cv_struct_timeval
8670 if test $emacs_cv_struct_timeval = yes; then
8672 $as_echo "#define HAVE_TIMEVAL 1" >>confdefs.h
8676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct exception" >&5
8677 $as_echo_n "checking for struct exception... " >&6; }
8678 if test "${emacs_cv_struct_exception+set}" = set; then :
8679 $as_echo_n "(cached) " >&6
8681 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8682 /* end confdefs.h. */
8687 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
8692 if ac_fn_c_try_compile
"$LINENO"; then :
8693 emacs_cv_struct_exception
=yes
8695 emacs_cv_struct_exception
=no
8697 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_exception" >&5
8700 $as_echo "$emacs_cv_struct_exception" >&6; }
8701 HAVE_EXCEPTION
=$emacs_cv_struct_exception
8702 if test $emacs_cv_struct_exception != yes; then
8704 $as_echo "#define NO_MATHERR 1" >>confdefs.h
8708 for ac_header
in sys
/socket.h
8710 ac_fn_c_check_header_mongrel
"$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
8711 if test "x$ac_cv_header_sys_socket_h" = x
""yes; then :
8712 cat >>confdefs.h
<<_ACEOF
8713 #define HAVE_SYS_SOCKET_H 1
8720 for ac_header
in net
/if.h
8722 ac_fn_c_check_header_compile
"$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
8723 #if HAVE_SYS_SOCKET_H
8724 #include <sys/socket.h>
8727 if test "x$ac_cv_header_net_if_h" = x
""yes; then :
8728 cat >>confdefs.h
<<_ACEOF
8729 #define HAVE_NET_IF_H 1
8736 for ac_header
in ifaddrs.h
8738 ac_fn_c_check_header_compile
"$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "$ac_includes_default
8739 #if HAVE_SYS_SOCKET_H
8740 #include <sys/socket.h>
8743 if test "x$ac_cv_header_ifaddrs_h" = x
""yes; then :
8744 cat >>confdefs.h
<<_ACEOF
8745 #define HAVE_IFADDRS_H 1
8752 for ac_header
in net
/if_dl.h
8754 ac_fn_c_check_header_compile
"$LINENO" "net/if_dl.h" "ac_cv_header_net_if_dl_h" "$ac_includes_default
8755 #if HAVE_SYS_SOCKET_H
8756 #include <sys/socket.h>
8759 if test "x$ac_cv_header_net_if_dl_h" = x
""yes; then :
8760 cat >>confdefs.h
<<_ACEOF
8761 #define HAVE_NET_IF_DL_H 1
8768 for ac_func
in getifaddrs freeifaddrs
8770 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8771 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
8772 eval as_val
=\$
$as_ac_var
8773 if test "x$as_val" = x
""yes; then :
8774 cat >>confdefs.h
<<_ACEOF
8775 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
8783 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
8784 if test "${ac_cv_struct_tm+set}" = set; then :
8785 $as_echo_n "(cached) " >&6
8787 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8788 /* end confdefs.h. */
8789 #include <sys/types.h>
8796 int *p = &tm.tm_sec;
8802 if ac_fn_c_try_compile
"$LINENO"; then :
8803 ac_cv_struct_tm
=time.h
8805 ac_cv_struct_tm
=sys
/time.h
8807 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
8810 $as_echo "$ac_cv_struct_tm" >&6; }
8811 if test $ac_cv_struct_tm = sys
/time.h
; then
8813 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
8817 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
8818 #include <$ac_cv_struct_tm>
8821 if test "x$ac_cv_member_struct_tm_tm_zone" = x
""yes; then :
8823 cat >>confdefs.h
<<_ACEOF
8824 #define HAVE_STRUCT_TM_TM_ZONE 1
8830 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
8832 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
8835 ac_fn_c_check_decl
"$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
8837 if test "x$ac_cv_have_decl_tzname" = x
""yes; then :
8843 cat >>confdefs.h
<<_ACEOF
8844 #define HAVE_DECL_TZNAME $ac_have_decl
8847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
8848 $as_echo_n "checking for tzname... " >&6; }
8849 if test "${ac_cv_var_tzname+set}" = set; then :
8850 $as_echo_n "(cached) " >&6
8852 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8853 /* end confdefs.h. */
8855 #if !HAVE_DECL_TZNAME
8856 extern char *tzname[];
8862 return tzname[0][0];
8867 if ac_fn_c_try_link
"$LINENO"; then :
8868 ac_cv_var_tzname
=yes
8872 rm -f core conftest.err conftest.
$ac_objext \
8873 conftest
$ac_exeext conftest.
$ac_ext
8875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
8876 $as_echo "$ac_cv_var_tzname" >&6; }
8877 if test $ac_cv_var_tzname = yes; then
8879 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
8884 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
8886 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x
""yes; then :
8888 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
8892 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_flags" "ac_cv_member_struct_ifreq_ifr_flags" "$ac_includes_default
8893 #if HAVE_SYS_SOCKET_H
8894 #include <sys/socket.h>
8900 if test "x$ac_cv_member_struct_ifreq_ifr_flags" = x
""yes; then :
8902 cat >>confdefs.h
<<_ACEOF
8903 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8908 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "$ac_includes_default
8909 #if HAVE_SYS_SOCKET_H
8910 #include <sys/socket.h>
8916 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = x
""yes; then :
8918 cat >>confdefs.h
<<_ACEOF
8919 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8924 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_netmask" "ac_cv_member_struct_ifreq_ifr_netmask" "$ac_includes_default
8925 #if HAVE_SYS_SOCKET_H
8926 #include <sys/socket.h>
8932 if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = x
""yes; then :
8934 cat >>confdefs.h
<<_ACEOF
8935 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8940 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_broadaddr" "ac_cv_member_struct_ifreq_ifr_broadaddr" "$ac_includes_default
8941 #if HAVE_SYS_SOCKET_H
8942 #include <sys/socket.h>
8948 if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = x
""yes; then :
8950 cat >>confdefs.h
<<_ACEOF
8951 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8956 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_addr" "ac_cv_member_struct_ifreq_ifr_addr" "$ac_includes_default
8957 #if HAVE_SYS_SOCKET_H
8958 #include <sys/socket.h>
8964 if test "x$ac_cv_member_struct_ifreq_ifr_addr" = x
""yes; then :
8966 cat >>confdefs.h
<<_ACEOF
8967 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8972 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_addr.sa_len" "ac_cv_member_struct_ifreq_ifr_addr_sa_len" "$ac_includes_default
8973 #if HAVE_SYS_SOCKET_H
8974 #include <sys/socket.h>
8980 if test "x$ac_cv_member_struct_ifreq_ifr_addr_sa_len" = x
""yes; then :
8982 cat >>confdefs.h
<<_ACEOF
8983 #define HAVE_STRUCT_IFREQ_IFR_ADDR_SA_LEN 1
8991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
8992 $as_echo_n "checking for function prototypes... " >&6; }
8993 if test "$ac_cv_prog_cc_c89" != no
; then
8994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8995 $as_echo "yes" >&6; }
8997 $as_echo "#define PROTOTYPES 1" >>confdefs.h
9000 $as_echo "#define __PROTOTYPES 1" >>confdefs.h
9003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9004 $as_echo "no" >&6; }
9007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
9008 $as_echo_n "checking for working volatile... " >&6; }
9009 if test "${ac_cv_c_volatile+set}" = set; then :
9010 $as_echo_n "(cached) " >&6
9012 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9013 /* end confdefs.h. */
9020 int * volatile y = (int *) 0;
9026 if ac_fn_c_try_compile
"$LINENO"; then :
9027 ac_cv_c_volatile
=yes
9031 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
9034 $as_echo "$ac_cv_c_volatile" >&6; }
9035 if test $ac_cv_c_volatile = no
; then
9037 $as_echo "#define volatile /**/" >>confdefs.h
9041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
9042 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
9043 if test "${ac_cv_c_const+set}" = set; then :
9044 $as_echo_n "(cached) " >&6
9046 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9047 /* end confdefs.h. */
9052 /* FIXME: Include the comments suggested by Paul. */
9054 /* Ultrix mips cc rejects this. */
9055 typedef int charset[2];
9057 /* SunOS 4.1.1 cc rejects this. */
9058 char const *const *pcpcc;
9060 /* NEC SVR4.0.2 mips cc rejects this. */
9061 struct point {int x, y;};
9062 static struct point const zero = {0,0};
9063 /* AIX XL C 1.02.0.0 rejects this.
9064 It does not let you subtract one const X* pointer from another in
9065 an arm of an if-expression whose if-part is not a constant
9067 const char *g = "string";
9068 pcpcc = &g + (g ? g-g : 0);
9069 /* HPUX 7.0 cc rejects these. */
9071 ppc = (char**) pcpcc;
9072 pcpcc = (char const *const *) ppc;
9073 { /* SCO 3.2v4 cc rejects this. */
9075 char const *s = 0 ? (char *) 0 : (char const *) 0;
9080 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9082 const int *foo = &x[0];
9085 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9086 typedef const int *iptr;
9090 { /* AIX XL C 1.02.0.0 rejects this saying
9091 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9092 struct s { int j; const int *ap[3]; };
9093 struct s *b; b->j = 5;
9095 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9099 return !cs[0] && !zero.x;
9106 if ac_fn_c_try_compile
"$LINENO"; then :
9111 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
9114 $as_echo "$ac_cv_c_const" >&6; }
9115 if test $ac_cv_c_const = no
; then
9117 $as_echo "#define const /**/" >>confdefs.h
9121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for void * support" >&5
9122 $as_echo_n "checking for void * support... " >&6; }
9123 if test "${emacs_cv_void_star+set}" = set; then :
9124 $as_echo_n "(cached) " >&6
9126 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9127 /* end confdefs.h. */
9137 if ac_fn_c_try_compile
"$LINENO"; then :
9138 emacs_cv_void_star
=yes
9140 emacs_cv_void_star
=no
9142 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_void_star" >&5
9145 $as_echo "$emacs_cv_void_star" >&6; }
9146 if test $emacs_cv_void_star = yes; then
9147 $as_echo "#define POINTER_TYPE void" >>confdefs.h
9150 $as_echo "#define POINTER_TYPE char" >>confdefs.h
9154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
9155 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
9156 if test "${ac_cv_c_bigendian+set}" = set; then :
9157 $as_echo_n "(cached) " >&6
9159 ac_cv_c_bigendian
=unknown
9160 # See if we're dealing with a universal compiler.
9161 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9162 /* end confdefs.h. */
9163 #ifndef __APPLE_CC__
9164 not a universal capable compiler
9169 if ac_fn_c_try_compile
"$LINENO"; then :
9171 # Check for potential -arch flags. It is not universal unless
9172 # there are at least two -arch flags with different values.
9175 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
9176 if test -n "$ac_prev"; then
9178 i?
86 | x86_64 | ppc | ppc64
)
9179 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
9182 ac_cv_c_bigendian
=universal
9188 elif test "x$ac_word" = "x-arch"; then
9193 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9194 if test $ac_cv_c_bigendian = unknown
; then
9195 # See if sys/param.h defines the BYTE_ORDER macro.
9196 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9197 /* end confdefs.h. */
9198 #include <sys/types.h>
9199 #include <sys/param.h>
9204 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
9205 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
9214 if ac_fn_c_try_compile
"$LINENO"; then :
9215 # It does; now see whether it defined to BIG_ENDIAN or not.
9216 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9217 /* end confdefs.h. */
9218 #include <sys/types.h>
9219 #include <sys/param.h>
9224 #if BYTE_ORDER != BIG_ENDIAN
9232 if ac_fn_c_try_compile
"$LINENO"; then :
9233 ac_cv_c_bigendian
=yes
9235 ac_cv_c_bigendian
=no
9237 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9239 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9241 if test $ac_cv_c_bigendian = unknown
; then
9242 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
9243 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9244 /* end confdefs.h. */
9250 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
9258 if ac_fn_c_try_compile
"$LINENO"; then :
9259 # It does; now see whether it defined to _BIG_ENDIAN or not.
9260 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9261 /* end confdefs.h. */
9275 if ac_fn_c_try_compile
"$LINENO"; then :
9276 ac_cv_c_bigendian
=yes
9278 ac_cv_c_bigendian
=no
9280 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9282 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9284 if test $ac_cv_c_bigendian = unknown
; then
9285 # Compile a test program.
9286 if test "$cross_compiling" = yes; then :
9287 # Try to guess by grepping values from an object file.
9288 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9289 /* end confdefs.h. */
9290 short int ascii_mm[] =
9291 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9292 short int ascii_ii[] =
9293 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9294 int use_ascii (int i) {
9295 return ascii_mm[i] + ascii_ii[i];
9297 short int ebcdic_ii[] =
9298 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9299 short int ebcdic_mm[] =
9300 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9301 int use_ebcdic (int i) {
9302 return ebcdic_mm[i] + ebcdic_ii[i];
9309 return use_ascii (foo) == use_ebcdic (foo);
9314 if ac_fn_c_try_compile
"$LINENO"; then :
9315 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
9316 ac_cv_c_bigendian
=yes
9318 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
9319 if test "$ac_cv_c_bigendian" = unknown
; then
9320 ac_cv_c_bigendian
=no
9322 # finding both strings is unlikely to happen, but who knows?
9323 ac_cv_c_bigendian
=unknown
9327 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9329 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9330 /* end confdefs.h. */
9331 $ac_includes_default
9336 /* Are we little or big endian? From Harbison&Steele. */
9340 char c[sizeof (long int)];
9343 return u.c[sizeof (long int) - 1] == 1;
9349 if ac_fn_c_try_run
"$LINENO"; then :
9350 ac_cv_c_bigendian
=no
9352 ac_cv_c_bigendian
=yes
9354 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9355 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
9361 $as_echo "$ac_cv_c_bigendian" >&6; }
9362 case $ac_cv_c_bigendian in #(
9364 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
9370 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9374 as_fn_error
"unknown endianness
9375 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
9379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__ ((__aligned__ (expr)))" >&5
9380 $as_echo_n "checking for __attribute__ ((__aligned__ (expr)))... " >&6; }
9381 if test "${emacs_cv_attribute_aligned+set}" = set; then :
9382 $as_echo_n "(cached) " >&6
9384 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9385 /* end confdefs.h. */
9386 char __attribute__ ((__aligned__ (1 << 3))) c;
9395 if ac_fn_c_try_compile
"$LINENO"; then :
9396 emacs_cv_attribute_aligned
=yes
9398 emacs_cv_attribute_aligned
=no
9400 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_attribute_aligned" >&5
9403 $as_echo "$emacs_cv_attribute_aligned" >&6; }
9404 if test $emacs_cv_attribute_aligned = yes; then
9406 $as_echo "#define HAVE_ATTRIBUTE_ALIGNED 1" >>confdefs.h
9410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9411 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
9413 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
9414 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
9415 $as_echo_n "(cached) " >&6
9417 cat >conftest.
make <<\_ACEOF
9420 @
echo '@@@%%%=$(MAKE)=@@@%%%'
9422 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9423 case `${MAKE-make} -f conftest.make 2>/dev/null` in
9425 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
9427 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
9431 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
9432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9433 $as_echo "yes" >&6; }
9436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9437 $as_echo "no" >&6; }
9438 SET_MAKE
="MAKE=${MAKE-make}"
9445 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
9446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU Make" >&5
9447 $as_echo_n "checking whether we are using GNU Make... " >&6; }
9449 testval
=`make --version 2>/dev/null | grep 'GNU Make'`
9450 if test "x$testval" != x
; then
9453 ac_enable_autodepend
=no
9455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_GNU_MAKE" >&5
9456 $as_echo "$HAVE_GNU_MAKE" >&6; }
9457 if test $HAVE_GNU_MAKE = yes; then
9458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -MMD -MF" >&5
9459 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
9460 SAVE_CFLAGS
="$CFLAGS"
9461 CFLAGS
="$CFLAGS -MMD -MF deps.d -MP"
9462 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9463 /* end confdefs.h. */
9473 if ac_fn_c_try_compile
"$LINENO"; then :
9476 ac_enable_autodepend
=no
9478 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9479 CFLAGS
="$SAVE_CFLAGS"
9480 test -f deps.d || ac_enable_autodepend
=no
9482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_autodepend" >&5
9483 $as_echo "$ac_enable_autodepend" >&6; }
9485 if test $ac_enable_autodepend = yes; then
9486 DEPFLAGS
='-MMD -MF ${DEPDIR}/$*.d -MP'
9487 ## In parallel builds, another make might create depdir between
9488 ## the first test and mkdir, so stick another test on the end.
9489 ## Or use install-sh -d? mkdir -p is not portable.
9490 MKDEPDIR
='test -d ${DEPDIR} || mkdir ${DEPDIR} || test -d ${DEPDIR}'
9491 deps_frag
=autodeps.mk
9494 deps_frag
=$srcdir/src
/$deps_frag
9500 lisp_frag
=$srcdir/src
/lisp.mk
9504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5
9505 $as_echo_n "checking for long file names... " >&6; }
9506 if test "${ac_cv_sys_long_file_names+set}" = set; then :
9507 $as_echo_n "(cached) " >&6
9509 ac_cv_sys_long_file_names
=yes
9510 # Test for long file names in all the places we know might matter:
9511 # . the current directory, where building will happen
9512 # $prefix/lib where we will be installing things
9513 # $exec_prefix/lib likewise
9514 # $TMPDIR if set, where it might want to write temporary files
9515 # /tmp where it might want to write temporary files
9518 for ac_dir
in .
"$TMPDIR" /tmp
/var
/tmp
/usr
/tmp
"$prefix/lib" "$exec_prefix/lib"; do
9519 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9520 # in the usual case where exec_prefix is '${prefix}'.
9522 . |
/* | ?
:[\\/]*) ;; #(
9525 test -w "$ac_dir/." ||
continue # It is less confusing to not echo anything here.
9526 ac_xdir
=$ac_dir/cf$$
9527 (umask 077 && mkdir
"$ac_xdir" 2>/dev
/null
) ||
continue
9528 ac_tf1
=$ac_xdir/conftest9012345
9529 ac_tf2
=$ac_xdir/conftest9012346
9530 touch "$ac_tf1" 2>/dev
/null
&& test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9531 ac_cv_sys_long_file_names
=no
9532 rm -f -r "$ac_xdir" 2>/dev
/null
9533 test $ac_cv_sys_long_file_names = no
&& break
9536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5
9537 $as_echo "$ac_cv_sys_long_file_names" >&6; }
9538 if test $ac_cv_sys_long_file_names = yes; then
9540 $as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h
9545 #### Choose a window system.
9547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
9548 $as_echo_n "checking for X... " >&6; }
9551 # Check whether --with-x was given.
9552 if test "${with_x+set}" = set; then :
9556 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9557 if test "x$with_x" = xno
; then
9558 # The user explicitly disabled X.
9561 case $x_includes,$x_libraries in #(
9562 *\'*) as_fn_error
"cannot use X directory names containing '" "$LINENO" 5;; #(
9563 *,NONE | NONE
,*) if test "${ac_cv_have_x+set}" = set; then :
9564 $as_echo_n "(cached) " >&6
9566 # One or both of the vars are not set, and there is no cached value.
9567 ac_x_includes
=no ac_x_libraries
=no
9568 rm -f -r conftest.dir
9569 if mkdir conftest.dir
; then
9571 cat >Imakefile
<<'_ACEOF'
9573 @echo incroot='${INCROOT}'
9575 @echo usrlibdir='${USRLIBDIR}'
9577 @echo libdir='${LIBDIR}'
9579 if (export CC
; ${XMKMF-xmkmf}) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
9580 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9581 for ac_var
in incroot usrlibdir libdir
; do
9582 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
9584 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9585 for ac_extension
in a so sl dylib la dll
; do
9586 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9587 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9588 ac_im_usrlibdir
=$ac_im_libdir; break
9591 # Screen out bogus values from the imake configuration. They are
9592 # bogus both because they are the default anyway, and because
9593 # using them would break gcc on systems where it needs fixed includes.
9594 case $ac_im_incroot in
9595 /usr
/include
) ac_x_includes
= ;;
9596 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
9598 case $ac_im_usrlibdir in
9599 /usr
/lib |
/usr
/lib64 |
/lib |
/lib64
) ;;
9600 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
9604 rm -f -r conftest.dir
9607 # Standard set of common directories for X headers.
9608 # Check X11 before X11Rn because it is often a symlink to the current release.
9622 /usr/local/X11/include
9623 /usr/local/X11R7/include
9624 /usr/local/X11R6/include
9625 /usr/local/X11R5/include
9626 /usr/local/X11R4/include
9628 /usr/local/include/X11
9629 /usr/local/include/X11R7
9630 /usr/local/include/X11R6
9631 /usr/local/include/X11R5
9632 /usr/local/include/X11R4
9636 /usr/XFree86/include/X11
9640 /usr/unsupported/include
9642 /usr/local/x11r5/include
9643 /usr/lpp/Xamples/include
9645 /usr/openwin/include
9646 /usr/openwin/share/include'
9648 if test "$ac_x_includes" = no
; then
9649 # Guess where to find include files, by looking for Xlib.h.
9650 # First, try using that file with no special directory specified.
9651 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9652 /* end confdefs.h. */
9653 #include <X11/Xlib.h>
9655 if ac_fn_c_try_cpp
"$LINENO"; then :
9656 # We can compile using X headers with no special include directory.
9659 for ac_dir
in $ac_x_header_dirs; do
9660 if test -r "$ac_dir/X11/Xlib.h"; then
9661 ac_x_includes
=$ac_dir
9666 rm -f conftest.err conftest.
$ac_ext
9667 fi # $ac_x_includes = no
9669 if test "$ac_x_libraries" = no
; then
9670 # Check for the libraries.
9671 # See if we find them without any special options.
9672 # Don't add to $LIBS permanently.
9675 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9676 /* end confdefs.h. */
9677 #include <X11/Xlib.h>
9686 if ac_fn_c_try_link
"$LINENO"; then :
9688 # We can link X programs with no special library path.
9692 for ac_dir
in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9694 # Don't even attempt the hair of trying to link an X program!
9695 for ac_extension
in a so sl dylib la dll
; do
9696 if test -r "$ac_dir/libX11.$ac_extension"; then
9697 ac_x_libraries
=$ac_dir
9703 rm -f core conftest.err conftest.
$ac_objext \
9704 conftest
$ac_exeext conftest.
$ac_ext
9705 fi # $ac_x_libraries = no
9707 case $ac_x_includes,$ac_x_libraries in #(
9709 # Didn't find X, or a directory has "'" in its name.
9710 ac_cv_have_x
="have_x=no";; #(
9712 # Record where we found X for the cache.
9713 ac_cv_have_x
="have_x=yes\
9714 ac_x_includes='$ac_x_includes'\
9715 ac_x_libraries='$ac_x_libraries'"
9721 eval "$ac_cv_have_x"
9724 if test "$have_x" != yes; then
9725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
9726 $as_echo "$have_x" >&6; }
9729 # If each of the values was on the command line, it overrides each guess.
9730 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
9731 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
9732 # Update the cache value to reflect the command line values.
9733 ac_cv_have_x
="have_x=yes\
9734 ac_x_includes='$x_includes'\
9735 ac_x_libraries='$x_libraries'"
9736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
9737 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
9740 if test "$no_x" = yes; then
9746 ## Workaround for bug in autoconf <= 2.62.
9747 ## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
9748 ## No need to do anything special for these standard directories.
9749 if test -n "${x_libraries}" && test x
"${x_libraries}" != xNONE
; then
9751 x_libraries
=`echo :${x_libraries}: | sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
9755 LD_SWITCH_X_SITE_AUX
=
9756 LD_SWITCH_X_SITE_AUX_RPATH
=
9757 if test "${x_libraries}" != NONE
; then
9758 if test -n "${x_libraries}"; then
9759 LD_SWITCH_X_SITE
=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9760 LD_SWITCH_X_SITE_AUX
=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
9761 LD_SWITCH_X_SITE_AUX_RPATH
=`echo ${LD_SWITCH_X_SITE_AUX} | sed -e 's/-R/-Wl,-rpath,/'`
9763 x_default_search_path
=""
9764 x_search_path
=${x_libraries}
9765 if test -z "${x_search_path}"; then
9766 x_search_path
=/usr
/lib
9768 for x_library
in `echo ${x_search_path}: | \
9769 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9771 ${x_library}/X11/%L/%T/%N%C%S:\
9772 ${x_library}/X11/%l/%T/%N%C%S:\
9773 ${x_library}/X11/%T/%N%C%S:\
9774 ${x_library}/X11/%L/%T/%N%S:\
9775 ${x_library}/X11/%l/%T/%N%S:\
9776 ${x_library}/X11/%T/%N%S"
9777 if test x
"${x_default_search_path}" = x
; then
9778 x_default_search_path
=${x_search_path}
9780 x_default_search_path
="${x_search_path}:${x_default_search_path}"
9787 if test "${x_includes}" != NONE
&& test -n "${x_includes}"; then
9788 C_SWITCH_X_SITE
=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
9791 if test x
"${x_includes}" = x
; then
9792 bitmapdir
=/usr
/include
/X11
/bitmaps
9794 # accumulate include directories that have X11 bitmap subdirectories
9796 for bmd
in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9797 if test -d "${bmd}/X11/bitmaps"; then
9798 bmd_acc
="${bmd_acc}:${bmd}/X11/bitmaps"
9800 if test -d "${bmd}/bitmaps"; then
9801 bmd_acc
="${bmd_acc}:${bmd}/bitmaps"
9804 if test ${bmd_acc} != "dummyval"; then
9805 bitmapdir
=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9812 tmp_CPPFLAGS
="$CPPFLAGS"
9813 tmp_CFLAGS
="$CFLAGS"
9814 CPPFLAGS
="$CPPFLAGS -x objective-c"
9815 CFLAGS
="$CFLAGS -x objective-c"
9816 TEMACS_LDFLAGS2
="\${LDFLAGS}"
9818 if test "${with_ns}" != no
; then
9819 if test "${opsys}" = darwin
; then
9821 ns_appdir
=`pwd`/nextstep
/Emacs.app
9822 ns_appbindir
=${ns_appdir}/Contents
/MacOS
/
9823 ns_appresdir
=${ns_appdir}/Contents
/Resources
9824 ns_appsrc
=${srcdir}/nextstep
/Cocoa
/Emacs.base
9825 elif test -f $GNUSTEP_CONFIG_FILE; then
9827 ns_appdir
=`pwd`/nextstep
/Emacs.app
9828 ns_appbindir
=${ns_appdir}/
9829 ns_appresdir
=${ns_appdir}/Resources
9830 ns_appsrc
=${srcdir}/nextstep
/GNUstep
/Emacs.base
9831 GNUSTEP_SYSTEM_HEADERS
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
9832 GNUSTEP_SYSTEM_LIBRARIES
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
9833 GNUSTEP_LOCAL_HEADERS
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_HEADERS)"
9834 GNUSTEP_LOCAL_LIBRARIES
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_LIBRARIES)"
9835 test "x${GNUSTEP_LOCAL_HEADERS}" != "x" && \
9836 GNUSTEP_LOCAL_HEADERS
="-I${GNUSTEP_LOCAL_HEADERS}"
9837 test "x${GNUSTEP_LOCAL_LIBRARIES}" != "x" && \
9838 GNUSTEP_LOCAL_LIBRARIES
="-L${GNUSTEP_LOCAL_LIBRARIES}"
9839 CPPFLAGS
="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
9840 CFLAGS
="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
9841 LDFLAGS
="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES}"
9845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GNUstep defines BASE_NATIVE_OBJC_EXCEPTIONS" >&5
9846 $as_echo_n "checking if GNUstep defines BASE_NATIVE_OBJC_EXCEPTIONS... " >&6; }
9847 if test "${emacs_cv_objc_exceptions+set}" = set; then :
9848 $as_echo_n "(cached) " >&6
9850 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9851 /* end confdefs.h. */
9852 #include <GNUstepBase/GSConfig.h>
9856 #if defined BASE_NATIVE_OBJC_EXCEPTIONS && BASE_NATIVE_OBJC_EXCEPTIONS > 0
9865 if ac_fn_c_try_compile
"$LINENO"; then :
9866 emacs_cv_objc_exceptions
=yes
9868 emacs_cv_objc_exceptions
=no
9870 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_objc_exceptions" >&5
9873 $as_echo "$emacs_cv_objc_exceptions" >&6; }
9874 if test $emacs_cv_objc_exceptions = yes; then
9876 $as_echo "#define _NATIVE_OBJC_EXCEPTIONS 1" >>confdefs.h
9878 GNU_OBJC_CFLAGS
="-fobjc-exceptions"
9882 CFLAGS
="$CFLAGS $GNU_OBJC_CFLAGS"
9884 ac_fn_c_check_header_mongrel
"$LINENO" "AppKit/AppKit.h" "ac_cv_header_AppKit_AppKit_h" "$ac_includes_default"
9885 if test "x$ac_cv_header_AppKit_AppKit_h" = x
""yes; then :
9888 as_fn_error
"\`--with-ns' was specified, but the include
9889 files are missing or cannot be compiled." "$LINENO" 5
9893 NS_HAVE_NSINTEGER
=yes
9894 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9895 /* end confdefs.h. */
9896 #include <Foundation/NSObjCRuntime.h>
9905 if ac_fn_c_try_compile
"$LINENO"; then :
9906 ns_have_nsinteger
=yes
9908 ns_have_nsinteger
=no
9910 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9911 if test $ns_have_nsinteger = no
; then
9912 NS_HAVE_NSINTEGER
=no
9920 if test "${HAVE_NS}" = yes; then
9921 window_system
=nextstep
9923 # set up packaging dirs
9924 exec_prefix
=${ns_appbindir}
9925 libexecdir
=${ns_appbindir}/libexec
9926 if test "${EN_NS_SELF_CONTAINED}" = yes; then
9927 prefix
=${ns_appresdir}
9929 ns_frag
=$srcdir/src
/ns.mk
9930 NS_OBJ
="fontset.o fringe.o image.o"
9931 NS_OBJC_OBJ
="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o"
9933 CFLAGS
="$tmp_CFLAGS"
9934 CPPFLAGS
="$tmp_CPPFLAGS"
9940 case "${window_system}" in
9944 case "${with_x_toolkit}" in
9945 athena | lucid
) USE_X_TOOLKIT
=LUCID
;;
9946 motif
) USE_X_TOOLKIT
=MOTIF
;;
9948 USE_X_TOOLKIT
=none
;;
9949 gtk3
) with_gtk3
=yes
9950 USE_X_TOOLKIT
=none
;;
9951 no
) USE_X_TOOLKIT
=none
;;
9952 * ) USE_X_TOOLKIT
=maybe
;;
9962 if test "$window_system" = none
&& test "X$with_x" != "Xno"; then
9963 # Extract the first word of "X", so it can be a program name with args.
9964 set dummy X
; ac_word
=$2
9965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9966 $as_echo_n "checking for $ac_word... " >&6; }
9967 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then :
9968 $as_echo_n "(cached) " >&6
9970 if test -n "$HAVE_XSERVER"; then
9971 ac_cv_prog_HAVE_XSERVER
="$HAVE_XSERVER" # Let the user override the test.
9973 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9977 test -z "$as_dir" && as_dir
=.
9978 for ac_exec_ext
in '' $ac_executable_extensions; do
9979 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9980 ac_cv_prog_HAVE_XSERVER
="true"
9981 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9988 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER
="false"
9991 HAVE_XSERVER
=$ac_cv_prog_HAVE_XSERVER
9992 if test -n "$HAVE_XSERVER"; then
9993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_XSERVER" >&5
9994 $as_echo "$HAVE_XSERVER" >&6; }
9996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9997 $as_echo "no" >&6; }
10001 if test "$HAVE_XSERVER" = true ||
10002 test -n "$DISPLAY" ||
10003 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
10004 as_fn_error
"You seem to be running X, but no X development libraries
10005 were found. You should install the relevant development files for X
10006 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
10007 sure you have development files for image handling, i.e.
10008 tiff, gif, jpeg, png and xpm.
10009 If you are sure you want Emacs compiled without X window support, pass
10011 to configure." "$LINENO" 5
10015 ### If we're using X11, we should use the X menu package.
10017 case ${HAVE_X11} in
10018 yes ) HAVE_MENUS
=yes ;;
10021 # Do the opsystem or machine files prohibit the use of the GNU malloc?
10022 # Assume not, until told otherwise.
10024 doug_lea_malloc
=yes
10025 ac_fn_c_check_func
"$LINENO" "malloc_get_state" "ac_cv_func_malloc_get_state"
10026 if test "x$ac_cv_func_malloc_get_state" = x
""yes; then :
10032 ac_fn_c_check_func
"$LINENO" "malloc_set_state" "ac_cv_func_malloc_set_state"
10033 if test "x$ac_cv_func_malloc_set_state" = x
""yes; then :
10039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __after_morecore_hook exists" >&5
10040 $as_echo_n "checking whether __after_morecore_hook exists... " >&6; }
10041 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then :
10042 $as_echo_n "(cached) " >&6
10044 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10045 /* end confdefs.h. */
10046 extern void (* __after_morecore_hook)();
10050 __after_morecore_hook = 0
10055 if ac_fn_c_try_link
"$LINENO"; then :
10056 emacs_cv_var___after_morecore_hook
=yes
10058 emacs_cv_var___after_morecore_hook
=no
10060 rm -f core conftest.err conftest.
$ac_objext \
10061 conftest
$ac_exeext conftest.
$ac_ext
10063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_var___after_morecore_hook" >&5
10064 $as_echo "$emacs_cv_var___after_morecore_hook" >&6; }
10065 if test $emacs_cv_var___after_morecore_hook = no
; then
10072 ## darwin ld insists on the use of malloc routines in the System framework.
10073 darwin|sol2-10
) system_malloc
=yes ;;
10076 if test "${system_malloc}" = "yes"; then
10078 $as_echo "#define SYSTEM_MALLOC 1" >>confdefs.h
10081 GNU_MALLOC_reason
="
10082 (The GNU allocators don't work with this system configuration.)"
10086 test "$doug_lea_malloc" != "yes" && GMALLOC_OBJ
=gmalloc.o
10087 VMLIMIT_OBJ
=vm-limit.o
10092 if test "$doug_lea_malloc" = "yes" ; then
10093 if test "$GNU_MALLOC" = yes ; then
10094 GNU_MALLOC_reason
="
10095 (Using Doug Lea's new malloc from the GNU C Library.)"
10098 $as_echo "#define DOUG_LEA_MALLOC 1" >>confdefs.h
10101 ## Use mmap directly for allocating larger buffers.
10102 ## FIXME this comes from src/s/{gnu,gnu-linux}.h:
10103 ## #ifdef DOUG_LEA_MALLOC; #undef REL_ALLOC; #endif
10104 ## Does the AC_FUNC_MMAP test below make this check unecessary?
10106 gnu
*) REL_ALLOC
=no
;;
10110 if test x
"${REL_ALLOC}" = x
; then
10111 REL_ALLOC
=${GNU_MALLOC}
10114 use_mmap_for_buffers
=no
10116 cygwin|freebsd|irix6-5
) use_mmap_for_buffers
=yes ;;
10122 for ac_header
in $ac_header_list
10124 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10125 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
10127 eval as_val
=\$
$as_ac_Header
10128 if test "x$as_val" = x
""yes; then :
10129 cat >>confdefs.h
<<_ACEOF
10130 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10144 for ac_func
in getpagesize
10146 ac_fn_c_check_func
"$LINENO" "getpagesize" "ac_cv_func_getpagesize"
10147 if test "x$ac_cv_func_getpagesize" = x
""yes; then :
10148 cat >>confdefs.h
<<_ACEOF
10149 #define HAVE_GETPAGESIZE 1
10155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
10156 $as_echo_n "checking for working mmap... " >&6; }
10157 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
10158 $as_echo_n "(cached) " >&6
10160 if test "$cross_compiling" = yes; then :
10161 ac_cv_func_mmap_fixed_mapped
=no
10163 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10164 /* end confdefs.h. */
10165 $ac_includes_default
10166 /* malloc might have been renamed as rpl_malloc. */
10169 /* Thanks to Mike Haertel and Jim Avera for this test.
10170 Here is a matrix of mmap possibilities:
10171 mmap private not fixed
10172 mmap private fixed at somewhere currently unmapped
10173 mmap private fixed at somewhere already mapped
10174 mmap shared not fixed
10175 mmap shared fixed at somewhere currently unmapped
10176 mmap shared fixed at somewhere already mapped
10177 For private mappings, we should verify that changes cannot be read()
10178 back from the file, nor mmap's back from the file at a different
10179 address. (There have been systems where private was not correctly
10180 implemented like the infamous i386 svr4.0, and systems where the
10181 VM page cache was not coherent with the file system buffer cache
10182 like early versions of FreeBSD and possibly contemporary NetBSD.)
10183 For shared mappings, we should conversely verify that changes get
10184 propagated back to all the places they're supposed to be.
10186 Grep wants private fixed already mapped.
10187 The main things grep needs to know about mmap are:
10188 * does it exist and is it safe to write into the mmap'd area
10189 * how to use it (BSD variants) */
10192 #include <sys/mman.h>
10194 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10198 /* This mess was copied from the GNU getpagesize.h. */
10199 #ifndef HAVE_GETPAGESIZE
10200 # ifdef _SC_PAGESIZE
10201 # define getpagesize() sysconf(_SC_PAGESIZE)
10202 # else /* no _SC_PAGESIZE */
10203 # ifdef HAVE_SYS_PARAM_H
10204 # include <sys/param.h>
10205 # ifdef EXEC_PAGESIZE
10206 # define getpagesize() EXEC_PAGESIZE
10207 # else /* no EXEC_PAGESIZE */
10209 # define getpagesize() NBPG * CLSIZE
10212 # endif /* no CLSIZE */
10213 # else /* no NBPG */
10215 # define getpagesize() NBPC
10216 # else /* no NBPC */
10218 # define getpagesize() PAGESIZE
10219 # endif /* PAGESIZE */
10220 # endif /* no NBPC */
10221 # endif /* no NBPG */
10222 # endif /* no EXEC_PAGESIZE */
10223 # else /* no HAVE_SYS_PARAM_H */
10224 # define getpagesize() 8192 /* punt totally */
10225 # endif /* no HAVE_SYS_PARAM_H */
10226 # endif /* no _SC_PAGESIZE */
10228 #endif /* no HAVE_GETPAGESIZE */
10233 char *data, *data2, *data3;
10234 const char *cdata2;
10238 pagesize = getpagesize ();
10240 /* First, make a file with some known garbage in it. */
10241 data = (char *) malloc (pagesize);
10244 for (i = 0; i < pagesize; ++i)
10245 *(data + i) = rand ();
10247 fd = creat ("conftest.mmap", 0600);
10250 if (write (fd, data, pagesize) != pagesize)
10254 /* Next, check that the tail of a page is zero-filled. File must have
10255 non-zero length, otherwise we risk SIGBUS for entire page. */
10256 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
10260 if (write (fd2, cdata2, 1) != 1)
10262 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
10263 if (data2 == MAP_FAILED)
10265 for (i = 0; i < pagesize; ++i)
10269 if (munmap (data2, pagesize))
10272 /* Next, try to mmap the file at a fixed address which already has
10273 something else allocated at it. If we can, also make sure that
10274 we see the same garbage. */
10275 fd = open ("conftest.mmap", O_RDWR);
10278 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10279 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10281 for (i = 0; i < pagesize; ++i)
10282 if (*(data + i) != *(data2 + i))
10285 /* Finally, make sure that changes to the mapped area do not
10286 percolate back to the file as seen by read(). (This is a bug on
10287 some variants of i386 svr4.0.) */
10288 for (i = 0; i < pagesize; ++i)
10289 *(data2 + i) = *(data2 + i) + 1;
10290 data3 = (char *) malloc (pagesize);
10293 if (read (fd, data3, pagesize) != pagesize)
10295 for (i = 0; i < pagesize; ++i)
10296 if (*(data + i) != *(data3 + i))
10302 if ac_fn_c_try_run
"$LINENO"; then :
10303 ac_cv_func_mmap_fixed_mapped
=yes
10305 ac_cv_func_mmap_fixed_mapped
=no
10307 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10308 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
10313 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
10314 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10316 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
10319 rm -f conftest.mmap conftest.txt
10321 if test $use_mmap_for_buffers = yes; then
10323 $as_echo "#define USE_MMAP_FOR_BUFFERS 1" >>confdefs.h
10328 LIBS
="$LIBS_SYSTEM $LIBS"
10330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
10331 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
10332 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
10333 $as_echo_n "(cached) " >&6
10335 ac_check_lib_save_LIBS
=$LIBS
10336 LIBS
="-ldnet $LIBS"
10337 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10338 /* end confdefs.h. */
10340 /* Override any GCC internal prototype to avoid an error.
10341 Use char because int might match the return type of a GCC
10342 builtin and then its argument prototype would still apply. */
10350 return dnet_ntoa ();
10355 if ac_fn_c_try_link
"$LINENO"; then :
10356 ac_cv_lib_dnet_dnet_ntoa
=yes
10358 ac_cv_lib_dnet_dnet_ntoa
=no
10360 rm -f core conftest.err conftest.
$ac_objext \
10361 conftest
$ac_exeext conftest.
$ac_ext
10362 LIBS
=$ac_check_lib_save_LIBS
10364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10365 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10366 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x
""yes; then :
10367 cat >>confdefs.h
<<_ACEOF
10368 #define HAVE_LIBDNET 1
10371 LIBS
="-ldnet $LIBS"
10376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXbsd" >&5
10377 $as_echo_n "checking for main in -lXbsd... " >&6; }
10378 if test "${ac_cv_lib_Xbsd_main+set}" = set; then :
10379 $as_echo_n "(cached) " >&6
10381 ac_check_lib_save_LIBS
=$LIBS
10382 LIBS
="-lXbsd $LIBS"
10383 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10384 /* end confdefs.h. */
10395 if ac_fn_c_try_link
"$LINENO"; then :
10396 ac_cv_lib_Xbsd_main
=yes
10398 ac_cv_lib_Xbsd_main
=no
10400 rm -f core conftest.err conftest.
$ac_objext \
10401 conftest
$ac_exeext conftest.
$ac_ext
10402 LIBS
=$ac_check_lib_save_LIBS
10404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xbsd_main" >&5
10405 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
10406 if test "x$ac_cv_lib_Xbsd_main" = x
""yes; then :
10407 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -lXbsd"
10412 for ac_header
in pthread.h
10414 ac_fn_c_check_header_mongrel
"$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
10415 if test "x$ac_cv_header_pthread_h" = x
""yes; then :
10416 cat >>confdefs.h
<<_ACEOF
10417 #define HAVE_PTHREAD_H 1
10424 if test "$ac_cv_header_pthread_h"; then
10425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_self in -lpthread" >&5
10426 $as_echo_n "checking for pthread_self in -lpthread... " >&6; }
10427 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then :
10428 $as_echo_n "(cached) " >&6
10430 ac_check_lib_save_LIBS
=$LIBS
10431 LIBS
="-lpthread $LIBS"
10432 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10433 /* end confdefs.h. */
10435 /* Override any GCC internal prototype to avoid an error.
10436 Use char because int might match the return type of a GCC
10437 builtin and then its argument prototype would still apply. */
10441 char pthread_self ();
10445 return pthread_self ();
10450 if ac_fn_c_try_link
"$LINENO"; then :
10451 ac_cv_lib_pthread_pthread_self
=yes
10453 ac_cv_lib_pthread_pthread_self
=no
10455 rm -f core conftest.err conftest.
$ac_objext \
10456 conftest
$ac_exeext conftest.
$ac_ext
10457 LIBS
=$ac_check_lib_save_LIBS
10459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_self" >&5
10460 $as_echo "$ac_cv_lib_pthread_pthread_self" >&6; }
10461 if test "x$ac_cv_lib_pthread_pthread_self" = x
""yes; then :
10466 if test "$HAVE_PTHREAD" = yes; then
10467 case "${canonical}" in
10469 *) LIB_PTHREAD
="-lpthread" ;;
10472 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
10477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cma_open in -lpthreads" >&5
10478 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
10479 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then :
10480 $as_echo_n "(cached) " >&6
10482 ac_check_lib_save_LIBS
=$LIBS
10483 LIBS
="-lpthreads $LIBS"
10484 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10485 /* end confdefs.h. */
10487 /* Override any GCC internal prototype to avoid an error.
10488 Use char because int might match the return type of a GCC
10489 builtin and then its argument prototype would still apply. */
10497 return cma_open ();
10502 if ac_fn_c_try_link
"$LINENO"; then :
10503 ac_cv_lib_pthreads_cma_open
=yes
10505 ac_cv_lib_pthreads_cma_open
=no
10507 rm -f core conftest.err conftest.
$ac_objext \
10508 conftest
$ac_exeext conftest.
$ac_ext
10509 LIBS
=$ac_check_lib_save_LIBS
10511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_cma_open" >&5
10512 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
10513 if test "x$ac_cv_lib_pthreads_cma_open" = x
""yes; then :
10514 cat >>confdefs.h
<<_ACEOF
10515 #define HAVE_LIBPTHREADS 1
10518 LIBS
="-lpthreads $LIBS"
10523 ## Note: when using cpp in s/aix4.2.h, this definition depended on
10524 ## HAVE_LIBPTHREADS. That was not defined earlier in configure when
10525 ## the system file was sourced. Hence the value of LIBS_SYSTEM
10526 ## added to LIBS in configure would never contain the pthreads part,
10527 ## but the value used in Makefiles might. FIXME?
10529 ## -lpthreads seems to be necessary for Xlib in X11R6, and should
10530 ## be harmless on older versions of X where it happens to exist.
10531 test "$opsys" = "aix4-2" && \
10532 test $ac_cv_lib_pthreads_cma_open = yes && \
10533 LIBS_SYSTEM
="$LIBS_SYSTEM -lpthreads"
10538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
10539 $as_echo_n "checking for -bbigtoc option... " >&6; }
10540 if test "${gdb_cv_bigtoc+set}" = set; then :
10541 $as_echo_n "(cached) " >&6
10545 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
10546 *) gdb_cv_bigtoc
=-bbigtoc ;;
10549 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
10550 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10551 /* end confdefs.h. */
10561 if ac_fn_c_try_link
"$LINENO"; then :
10566 rm -f core conftest.err conftest.
$ac_objext \
10567 conftest
$ac_exeext conftest.
$ac_ext
10570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
10571 $as_echo "$gdb_cv_bigtoc" >&6; }
10575 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10576 # used for the tests that follow. We set them back to REAL_CFLAGS and
10577 # REAL_CPPFLAGS later on.
10579 REAL_CFLAGS
="$CFLAGS"
10580 REAL_CPPFLAGS
="$CPPFLAGS"
10582 if test "${HAVE_X11}" = "yes"; then
10583 DEFS
="$C_SWITCH_X_SITE $DEFS"
10584 LDFLAGS
="$LDFLAGS $LD_SWITCH_X_SITE"
10586 CFLAGS
="$C_SWITCH_X_SITE $CFLAGS"
10587 CPPFLAGS
="$C_SWITCH_X_SITE $CPPFLAGS"
10589 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10590 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
10591 # but it's more convenient here to set LD_RUN_PATH
10592 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
10593 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
10594 LD_RUN_PATH
=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10598 if test "${opsys}" = "gnu-linux"; then
10599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X on GNU/Linux needs -b to link" >&5
10600 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
10601 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10602 /* end confdefs.h. */
10607 XOpenDisplay ("foo");
10612 if ac_fn_c_try_link
"$LINENO"; then :
10613 xlinux_first_failure
=no
10615 xlinux_first_failure
=yes
10617 rm -f core conftest.err conftest.
$ac_objext \
10618 conftest
$ac_exeext conftest.
$ac_ext
10619 if test "${xlinux_first_failure}" = "yes"; then
10620 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
10621 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
10622 OLD_CPPFLAGS
="$CPPFLAGS"
10624 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
10625 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
10626 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
10627 LIBS
="$LIBS -b i486-linuxaout"
10628 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10629 /* end confdefs.h. */
10634 XOpenDisplay ("foo");
10639 if ac_fn_c_try_link
"$LINENO"; then :
10640 xlinux_second_failure
=no
10642 xlinux_second_failure
=yes
10644 rm -f core conftest.err conftest.
$ac_objext \
10645 conftest
$ac_exeext conftest.
$ac_ext
10646 if test "${xlinux_second_failure}" = "yes"; then
10647 # If we get the same failure with -b, there is no use adding -b.
10648 # So take it out. This plays safe.
10649 LD_SWITCH_X_SITE
="$OLD_LD_SWITCH_X_SITE"
10650 C_SWITCH_X_SITE
="$OLD_C_SWITCH_X_SITE"
10651 CPPFLAGS
="$OLD_CPPFLAGS"
10653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10654 $as_echo "no" >&6; }
10656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10657 $as_echo "yes" >&6; }
10660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10661 $as_echo "no" >&6; }
10665 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10666 # header files included from there.
10667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xkb" >&5
10668 $as_echo_n "checking for Xkb... " >&6; }
10669 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10670 /* end confdefs.h. */
10671 #include <X11/Xlib.h>
10672 #include <X11/XKBlib.h>
10676 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10681 if ac_fn_c_try_link
"$LINENO"; then :
10686 rm -f core conftest.err conftest.
$ac_objext \
10687 conftest
$ac_exeext conftest.
$ac_ext
10688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_xkb" >&5
10689 $as_echo "$emacs_xkb" >&6; }
10690 if test $emacs_xkb = yes; then
10692 $as_echo "#define HAVE_XKBGETKEYBOARD 1" >>confdefs.h
10696 for ac_func
in XrmSetDatabase XScreenResourceString \
10697 XScreenNumberOfScreen XSetWMProtocols
10699 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10700 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10701 eval as_val
=\$
$as_ac_var
10702 if test "x$as_val" = x
""yes; then :
10703 cat >>confdefs.h
<<_ACEOF
10704 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10712 if test "${window_system}" = "x11"; then
10713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 version 6" >&5
10714 $as_echo_n "checking X11 version 6... " >&6; }
10715 if test "${emacs_cv_x11_version_6+set}" = set; then :
10716 $as_echo_n "(cached) " >&6
10718 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10719 /* end confdefs.h. */
10720 #include <X11/Xlib.h>
10724 #if XlibSpecificationRelease < 6
10732 if ac_fn_c_try_link
"$LINENO"; then :
10733 emacs_cv_x11_version_6
=yes
10735 emacs_cv_x11_version_6
=no
10737 rm -f core conftest.err conftest.
$ac_objext \
10738 conftest
$ac_exeext conftest.
$ac_ext
10741 if test $emacs_cv_x11_version_6 = yes; then
10742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
10743 $as_echo "6 or newer" >&6; }
10745 $as_echo "#define HAVE_X11R6 1" >>confdefs.h
10748 $as_echo "#define HAVE_X_I18N 1" >>confdefs.h
10750 ## inoue@ainet.or.jp says Solaris has a bug related to X11R6-style
10755 $as_echo "#define HAVE_X11R6_XIM 1" >>confdefs.h
10760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
10761 $as_echo "before 6" >&6; }
10766 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
10768 if test "${HAVE_X11}" = "yes" ||
test "${HAVE_NS}" = "yes"; then
10769 if test "${with_rsvg}" != "no"; then
10770 RSVG_REQUIRED
=2.11.0
10771 RSVG_MODULE
="librsvg-2.0 >= $RSVG_REQUIRED"
10776 # Extract the first word of "pkg-config", so it can be a program name with args.
10777 set dummy pkg-config
; ac_word
=$2
10778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10779 $as_echo_n "checking for $ac_word... " >&6; }
10780 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10781 $as_echo_n "(cached) " >&6
10783 case $PKG_CONFIG in
10785 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
10788 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10789 for as_dir
in $PATH
10792 test -z "$as_dir" && as_dir
=.
10793 for ac_exec_ext
in '' $ac_executable_extensions; do
10794 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10795 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
10796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10803 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
10807 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
10808 if test -n "$PKG_CONFIG"; then
10809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10810 $as_echo "$PKG_CONFIG" >&6; }
10812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10813 $as_echo "no" >&6; }
10818 if test "$PKG_CONFIG" = "no" ; then
10821 PKG_CONFIG_MIN_VERSION
=0.9.0
10822 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $RSVG_MODULE" >&5
10824 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
10826 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
10827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10828 $as_echo "yes" >&6; }
10831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_CFLAGS" >&5
10832 $as_echo_n "checking RSVG_CFLAGS... " >&6; }
10833 RSVG_CFLAGS
=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
10834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_CFLAGS" >&5
10835 $as_echo "$RSVG_CFLAGS" >&6; }
10837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_LIBS" >&5
10838 $as_echo_n "checking RSVG_LIBS... " >&6; }
10839 RSVG_LIBS
=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
10840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_LIBS" >&5
10841 $as_echo "$RSVG_LIBS" >&6; }
10843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10844 $as_echo "no" >&6; }
10847 ## If we have a custom action on failure, don't print errors, but
10848 ## do set a variable so people can do so.
10849 RSVG_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
10856 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10857 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10861 if test $succeeded = yes; then
10870 if test $HAVE_RSVG = yes; then
10872 $as_echo "#define HAVE_RSVG 1" >>confdefs.h
10874 CFLAGS
="$CFLAGS $RSVG_CFLAGS"
10875 LIBS
="$RSVG_LIBS $LIBS"
10880 HAVE_IMAGEMAGICK
=no
10881 if test "${HAVE_X11}" = "yes"; then
10882 if test "${with_imagemagick}" != "no"; then
10883 ## 6.2.8 is the earliest version known to work, but earlier versions
10884 ## might work - let us know if you find one.
10885 ## 6.0.7 does not work. See bug#7955.
10886 IMAGEMAGICK_MODULE
="Wand >= 6.2.8"
10890 # Extract the first word of "pkg-config", so it can be a program name with args.
10891 set dummy pkg-config
; ac_word
=$2
10892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10893 $as_echo_n "checking for $ac_word... " >&6; }
10894 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10895 $as_echo_n "(cached) " >&6
10897 case $PKG_CONFIG in
10899 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
10902 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10903 for as_dir
in $PATH
10906 test -z "$as_dir" && as_dir
=.
10907 for ac_exec_ext
in '' $ac_executable_extensions; do
10908 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10909 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
10910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10917 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
10921 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
10922 if test -n "$PKG_CONFIG"; then
10923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10924 $as_echo "$PKG_CONFIG" >&6; }
10926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10927 $as_echo "no" >&6; }
10932 if test "$PKG_CONFIG" = "no" ; then
10935 PKG_CONFIG_MIN_VERSION
=0.9.0
10936 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $IMAGEMAGICK_MODULE" >&5
10938 $as_echo_n "checking for $IMAGEMAGICK_MODULE... " >&6; }
10940 if $PKG_CONFIG --exists "$IMAGEMAGICK_MODULE" 2>&5; then
10941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10942 $as_echo "yes" >&6; }
10945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking IMAGEMAGICK_CFLAGS" >&5
10946 $as_echo_n "checking IMAGEMAGICK_CFLAGS... " >&6; }
10947 IMAGEMAGICK_CFLAGS
=`$PKG_CONFIG --cflags "$IMAGEMAGICK_MODULE"|sed -e 's,///*,/,g'`
10948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMAGEMAGICK_CFLAGS" >&5
10949 $as_echo "$IMAGEMAGICK_CFLAGS" >&6; }
10951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking IMAGEMAGICK_LIBS" >&5
10952 $as_echo_n "checking IMAGEMAGICK_LIBS... " >&6; }
10953 IMAGEMAGICK_LIBS
=`$PKG_CONFIG --libs "$IMAGEMAGICK_MODULE"|sed -e 's,///*,/,g'`
10954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMAGEMAGICK_LIBS" >&5
10955 $as_echo "$IMAGEMAGICK_LIBS" >&6; }
10957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10958 $as_echo "no" >&6; }
10959 IMAGEMAGICK_CFLAGS
=""
10960 IMAGEMAGICK_LIBS
=""
10961 ## If we have a custom action on failure, don't print errors, but
10962 ## do set a variable so people can do so.
10963 IMAGEMAGICK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$IMAGEMAGICK_MODULE"`
10970 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10971 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10975 if test $succeeded = yes; then
10976 HAVE_IMAGEMAGICK
=yes
10984 if test $HAVE_IMAGEMAGICK = yes; then
10986 $as_echo "#define HAVE_IMAGEMAGICK 1" >>confdefs.h
10988 CFLAGS
="$CFLAGS $IMAGEMAGICK_CFLAGS"
10989 LIBS
="$IMAGEMAGICK_LIBS $LIBS"
10990 for ac_func
in MagickExportImagePixels
10992 ac_fn_c_check_func
"$LINENO" "MagickExportImagePixels" "ac_cv_func_MagickExportImagePixels"
10993 if test "x$ac_cv_func_MagickExportImagePixels" = x
""yes; then :
10994 cat >>confdefs.h
<<_ACEOF
10995 #define HAVE_MAGICKEXPORTIMAGEPIXELS 1
11008 if test "${with_gtk3}" = "yes"; then
11011 GTK_MODULES
="gtk+-3.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
11016 # Extract the first word of "pkg-config", so it can be a program name with args.
11017 set dummy pkg-config
; ac_word
=$2
11018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11019 $as_echo_n "checking for $ac_word... " >&6; }
11020 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11021 $as_echo_n "(cached) " >&6
11023 case $PKG_CONFIG in
11025 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11028 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11029 for as_dir
in $PATH
11032 test -z "$as_dir" && as_dir
=.
11033 for ac_exec_ext
in '' $ac_executable_extensions; do
11034 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11035 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11036 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11043 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11047 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11048 if test -n "$PKG_CONFIG"; then
11049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11050 $as_echo "$PKG_CONFIG" >&6; }
11052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11053 $as_echo "no" >&6; }
11058 if test "$PKG_CONFIG" = "no" ; then
11061 PKG_CONFIG_MIN_VERSION
=0.9.0
11062 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
11064 $as_echo_n "checking for $GTK_MODULES... " >&6; }
11066 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
11067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11068 $as_echo "yes" >&6; }
11071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
11072 $as_echo_n "checking GTK_CFLAGS... " >&6; }
11073 GTK_CFLAGS
=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
11074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
11075 $as_echo "$GTK_CFLAGS" >&6; }
11077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
11078 $as_echo_n "checking GTK_LIBS... " >&6; }
11079 GTK_LIBS
=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
11080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
11081 $as_echo "$GTK_LIBS" >&6; }
11083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11084 $as_echo "no" >&6; }
11087 ## If we have a custom action on failure, don't print errors, but
11088 ## do set a variable so people can do so.
11089 GTK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
11096 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11097 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11101 if test $succeeded = yes; then
11107 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
11108 as_fn_error
"$GTK_PKG_ERRORS" "$LINENO" 5
11111 $as_echo "#define HAVE_GTK3 1" >>confdefs.h
11113 GTK_OBJ
=emacsgtkfixed.o
11116 if test "$pkg_check_gtk" != "yes"; then
11118 if test "${with_gtk}" = "yes" ||
test "$USE_X_TOOLKIT" = "maybe"; then
11121 GTK_MODULES
="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
11126 # Extract the first word of "pkg-config", so it can be a program name with args.
11127 set dummy pkg-config
; ac_word
=$2
11128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11129 $as_echo_n "checking for $ac_word... " >&6; }
11130 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11131 $as_echo_n "(cached) " >&6
11133 case $PKG_CONFIG in
11135 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11138 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11139 for as_dir
in $PATH
11142 test -z "$as_dir" && as_dir
=.
11143 for ac_exec_ext
in '' $ac_executable_extensions; do
11144 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11145 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11146 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11153 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11157 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11158 if test -n "$PKG_CONFIG"; then
11159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11160 $as_echo "$PKG_CONFIG" >&6; }
11162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11163 $as_echo "no" >&6; }
11168 if test "$PKG_CONFIG" = "no" ; then
11171 PKG_CONFIG_MIN_VERSION
=0.9.0
11172 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
11174 $as_echo_n "checking for $GTK_MODULES... " >&6; }
11176 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
11177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11178 $as_echo "yes" >&6; }
11181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
11182 $as_echo_n "checking GTK_CFLAGS... " >&6; }
11183 GTK_CFLAGS
=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
11184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
11185 $as_echo "$GTK_CFLAGS" >&6; }
11187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
11188 $as_echo_n "checking GTK_LIBS... " >&6; }
11189 GTK_LIBS
=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
11190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
11191 $as_echo "$GTK_LIBS" >&6; }
11193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11194 $as_echo "no" >&6; }
11197 ## If we have a custom action on failure, don't print errors, but
11198 ## do set a variable so people can do so.
11199 GTK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
11206 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11207 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11211 if test $succeeded = yes; then
11217 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
11218 as_fn_error
"$GTK_PKG_ERRORS" "$LINENO" 5
11223 if test x
"$pkg_check_gtk" = xyes
; then
11227 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $GTK_CFLAGS"
11228 CFLAGS
="$CFLAGS $GTK_CFLAGS"
11229 LIBS
="$GTK_LIBS $LIBS"
11231 for ac_func
in gtk_main
11233 ac_fn_c_check_func
"$LINENO" "gtk_main" "ac_cv_func_gtk_main"
11234 if test "x$ac_cv_func_gtk_main" = x
""yes; then :
11235 cat >>confdefs.h
<<_ACEOF
11236 #define HAVE_GTK_MAIN 1
11242 if test "${GTK_COMPILES}" != "yes"; then
11243 if test "$USE_X_TOOLKIT" != "maybe"; then
11244 as_fn_error
"Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" "$LINENO" 5;
11249 $as_echo "#define USE_GTK 1" >>confdefs.h
11251 GTK_OBJ
="gtkutil.o $GTK_OBJ"
11253 if $PKG_CONFIG --atleast-version=2.10 gtk
+-2.0
; then
11256 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of Gtk+ will have problems with
11257 closing open displays. This is no problem if you just use
11258 one display, but if you use more than one and close one of them
11259 Emacs may crash." >&5
11260 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
11261 closing open displays. This is no problem if you just use
11262 one display, but if you use more than one and close one of them
11263 Emacs may crash." >&2;}
11272 if test "${HAVE_GTK}" = "yes"; then
11274 if test "$with_toolkit_scroll_bars" != no
; then
11275 with_toolkit_scroll_bars
=yes
11278 HAVE_GTK_FILE_SELECTION
=no
11279 ac_fn_c_check_decl
"$LINENO" "GTK_TYPE_FILE_SELECTION" "ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" "$ac_includes_default
11280 #include <gtk/gtk.h>
11282 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = x
""yes; then :
11283 HAVE_GTK_FILE_SELECTION
=yes
11285 HAVE_GTK_FILE_SELECTION
=no
11288 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
11289 for ac_func
in gtk_file_selection_new
11291 ac_fn_c_check_func
"$LINENO" "gtk_file_selection_new" "ac_cv_func_gtk_file_selection_new"
11292 if test "x$ac_cv_func_gtk_file_selection_new" = x
""yes; then :
11293 cat >>confdefs.h
<<_ACEOF
11294 #define HAVE_GTK_FILE_SELECTION_NEW 1
11303 for ac_func
in gtk_widget_get_window gtk_widget_set_has_window \
11304 gtk_dialog_get_action_area gtk_widget_get_sensitive \
11305 gtk_widget_get_mapped gtk_adjustment_get_page_size \
11306 gtk_orientable_set_orientation
11308 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11309 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
11310 eval as_val
=\$
$as_ac_var
11311 if test "x$as_val" = x
""yes; then :
11312 cat >>confdefs.h
<<_ACEOF
11313 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11324 if test "${with_dbus}" = "yes"; then
11328 # Extract the first word of "pkg-config", so it can be a program name with args.
11329 set dummy pkg-config
; ac_word
=$2
11330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11331 $as_echo_n "checking for $ac_word... " >&6; }
11332 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11333 $as_echo_n "(cached) " >&6
11335 case $PKG_CONFIG in
11337 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11340 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11341 for as_dir
in $PATH
11344 test -z "$as_dir" && as_dir
=.
11345 for ac_exec_ext
in '' $ac_executable_extensions; do
11346 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11347 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11355 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11359 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11360 if test -n "$PKG_CONFIG"; then
11361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11362 $as_echo "$PKG_CONFIG" >&6; }
11364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11365 $as_echo "no" >&6; }
11370 if test "$PKG_CONFIG" = "no" ; then
11373 PKG_CONFIG_MIN_VERSION
=0.9.0
11374 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1 >= 1.0" >&5
11376 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
11378 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
11379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11380 $as_echo "yes" >&6; }
11383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_CFLAGS" >&5
11384 $as_echo_n "checking DBUS_CFLAGS... " >&6; }
11385 DBUS_CFLAGS
=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
11386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_CFLAGS" >&5
11387 $as_echo "$DBUS_CFLAGS" >&6; }
11389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_LIBS" >&5
11390 $as_echo_n "checking DBUS_LIBS... " >&6; }
11391 DBUS_LIBS
=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
11392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_LIBS" >&5
11393 $as_echo "$DBUS_LIBS" >&6; }
11395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11396 $as_echo "no" >&6; }
11399 ## If we have a custom action on failure, don't print errors, but
11400 ## do set a variable so people can do so.
11401 DBUS_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
11408 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11409 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11413 if test $succeeded = yes; then
11419 if test "$HAVE_DBUS" = yes; then
11420 LIBS
="$LIBS $DBUS_LIBS"
11422 $as_echo "#define HAVE_DBUS 1" >>confdefs.h
11424 for ac_func
in dbus_watch_get_unix_fd
11426 ac_fn_c_check_func
"$LINENO" "dbus_watch_get_unix_fd" "ac_cv_func_dbus_watch_get_unix_fd"
11427 if test "x$ac_cv_func_dbus_watch_get_unix_fd" = x
""yes; then :
11428 cat >>confdefs.h
<<_ACEOF
11429 #define HAVE_DBUS_WATCH_GET_UNIX_FD 1
11435 DBUS_OBJ
=dbusbind.o
11441 if test "${HAVE_X11}" = "yes" && test "${with_gsettings}" = "yes"; then
11445 # Extract the first word of "pkg-config", so it can be a program name with args.
11446 set dummy pkg-config
; ac_word
=$2
11447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11448 $as_echo_n "checking for $ac_word... " >&6; }
11449 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11450 $as_echo_n "(cached) " >&6
11452 case $PKG_CONFIG in
11454 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11457 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11458 for as_dir
in $PATH
11461 test -z "$as_dir" && as_dir
=.
11462 for ac_exec_ext
in '' $ac_executable_extensions; do
11463 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11464 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11472 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11476 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11477 if test -n "$PKG_CONFIG"; then
11478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11479 $as_echo "$PKG_CONFIG" >&6; }
11481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11482 $as_echo "no" >&6; }
11487 if test "$PKG_CONFIG" = "no" ; then
11490 PKG_CONFIG_MIN_VERSION
=0.9.0
11491 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gio-2.0 >= 2.26" >&5
11493 $as_echo_n "checking for gio-2.0 >= 2.26... " >&6; }
11495 if $PKG_CONFIG --exists "gio-2.0 >= 2.26" 2>&5; then
11496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11497 $as_echo "yes" >&6; }
11500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GSETTINGS_CFLAGS" >&5
11501 $as_echo_n "checking GSETTINGS_CFLAGS... " >&6; }
11502 GSETTINGS_CFLAGS
=`$PKG_CONFIG --cflags "gio-2.0 >= 2.26"|sed -e 's,///*,/,g'`
11503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSETTINGS_CFLAGS" >&5
11504 $as_echo "$GSETTINGS_CFLAGS" >&6; }
11506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GSETTINGS_LIBS" >&5
11507 $as_echo_n "checking GSETTINGS_LIBS... " >&6; }
11508 GSETTINGS_LIBS
=`$PKG_CONFIG --libs "gio-2.0 >= 2.26"|sed -e 's,///*,/,g'`
11509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSETTINGS_LIBS" >&5
11510 $as_echo "$GSETTINGS_LIBS" >&6; }
11512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11513 $as_echo "no" >&6; }
11514 GSETTINGS_CFLAGS
=""
11516 ## If we have a custom action on failure, don't print errors, but
11517 ## do set a variable so people can do so.
11518 GSETTINGS_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "gio-2.0 >= 2.26"`
11525 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11526 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11530 if test $succeeded = yes; then
11536 if test "$HAVE_GSETTINGS" = "yes"; then
11538 $as_echo "#define HAVE_GSETTINGS 1" >>confdefs.h
11540 SETTINGS_CFLAGS
="$GSETTINGS_CFLAGS"
11541 SETTINGS_LIBS
="$GSETTINGS_LIBS"
11546 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
11550 # Extract the first word of "pkg-config", so it can be a program name with args.
11551 set dummy pkg-config
; ac_word
=$2
11552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11553 $as_echo_n "checking for $ac_word... " >&6; }
11554 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11555 $as_echo_n "(cached) " >&6
11557 case $PKG_CONFIG in
11559 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11562 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11563 for as_dir
in $PATH
11566 test -z "$as_dir" && as_dir
=.
11567 for ac_exec_ext
in '' $ac_executable_extensions; do
11568 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11569 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11577 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11581 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11582 if test -n "$PKG_CONFIG"; then
11583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11584 $as_echo "$PKG_CONFIG" >&6; }
11586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11587 $as_echo "no" >&6; }
11592 if test "$PKG_CONFIG" = "no" ; then
11595 PKG_CONFIG_MIN_VERSION
=0.9.0
11596 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.13" >&5
11598 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
11600 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5; then
11601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11602 $as_echo "yes" >&6; }
11605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_CFLAGS" >&5
11606 $as_echo_n "checking GCONF_CFLAGS... " >&6; }
11607 GCONF_CFLAGS
=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
11608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_CFLAGS" >&5
11609 $as_echo "$GCONF_CFLAGS" >&6; }
11611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_LIBS" >&5
11612 $as_echo_n "checking GCONF_LIBS... " >&6; }
11613 GCONF_LIBS
=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
11614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_LIBS" >&5
11615 $as_echo "$GCONF_LIBS" >&6; }
11617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11618 $as_echo "no" >&6; }
11621 ## If we have a custom action on failure, don't print errors, but
11622 ## do set a variable so people can do so.
11623 GCONF_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.13"`
11630 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11631 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11635 if test $succeeded = yes; then
11641 if test "$HAVE_GCONF" = yes; then
11643 $as_echo "#define HAVE_GCONF 1" >>confdefs.h
11645 SETTINGS_CFLAGS
="$SETTINGS_CFLAGS $GCONF_CFLAGS"
11646 SETTINGS_LIBS
="$SETTINGS_LIBS $GCONF_LIBS"
11650 if test "$HAVE_GSETTINGS" = "yes" ||
test "$HAVE_GCONF" = "yes"; then
11651 SAVE_CFLAGS
="$CFLAGS"
11652 SAVE_LDFLAGS
="$LDFLAGS"
11653 CFLAGS
="$SETTINGS_CFLAGS $CFLAGS"
11654 LDFLAGS
="$SETTINGS_LIBS $LDFLAGS"
11655 for ac_func
in g_type_init
11657 ac_fn_c_check_func
"$LINENO" "g_type_init" "ac_cv_func_g_type_init"
11658 if test "x$ac_cv_func_g_type_init" = x
""yes; then :
11659 cat >>confdefs.h
<<_ACEOF
11660 #define HAVE_G_TYPE_INIT 1
11666 CFLAGS
="$SAVE_CFLAGS"
11667 LDFLAGS
="$SAVE_LDFLAGS"
11675 if test "${with_selinux}" = "yes"; then
11676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgetfilecon in -lselinux" >&5
11677 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
11678 if test "${ac_cv_lib_selinux_lgetfilecon+set}" = set; then :
11679 $as_echo_n "(cached) " >&6
11681 ac_check_lib_save_LIBS
=$LIBS
11682 LIBS
="-lselinux $LIBS"
11683 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11684 /* end confdefs.h. */
11686 /* Override any GCC internal prototype to avoid an error.
11687 Use char because int might match the return type of a GCC
11688 builtin and then its argument prototype would still apply. */
11692 char lgetfilecon ();
11696 return lgetfilecon ();
11701 if ac_fn_c_try_link
"$LINENO"; then :
11702 ac_cv_lib_selinux_lgetfilecon
=yes
11704 ac_cv_lib_selinux_lgetfilecon
=no
11706 rm -f core conftest.err conftest.
$ac_objext \
11707 conftest
$ac_exeext conftest.
$ac_ext
11708 LIBS
=$ac_check_lib_save_LIBS
11710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_lgetfilecon" >&5
11711 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
11712 if test "x$ac_cv_lib_selinux_lgetfilecon" = x
""yes; then :
11713 HAVE_LIBSELINUX
=yes
11718 if test "$HAVE_LIBSELINUX" = yes; then
11720 $as_echo "#define HAVE_LIBSELINUX 1" >>confdefs.h
11722 LIBSELINUX_LIBS
=-lselinux
11728 HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY
=no
11729 if test "${with_gnutls}" = "yes" ; then
11733 # Extract the first word of "pkg-config", so it can be a program name with args.
11734 set dummy pkg-config
; ac_word
=$2
11735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11736 $as_echo_n "checking for $ac_word... " >&6; }
11737 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11738 $as_echo_n "(cached) " >&6
11740 case $PKG_CONFIG in
11742 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11745 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11746 for as_dir
in $PATH
11749 test -z "$as_dir" && as_dir
=.
11750 for ac_exec_ext
in '' $ac_executable_extensions; do
11751 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11752 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11760 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11764 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11765 if test -n "$PKG_CONFIG"; then
11766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11767 $as_echo "$PKG_CONFIG" >&6; }
11769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11770 $as_echo "no" >&6; }
11775 if test "$PKG_CONFIG" = "no" ; then
11778 PKG_CONFIG_MIN_VERSION
=0.9.0
11779 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls >= 2.6.0" >&5
11781 $as_echo_n "checking for gnutls >= 2.6.0... " >&6; }
11783 if $PKG_CONFIG --exists "gnutls >= 2.6.0" 2>&5; then
11784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11785 $as_echo "yes" >&6; }
11788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGNUTLS_CFLAGS" >&5
11789 $as_echo_n "checking LIBGNUTLS_CFLAGS... " >&6; }
11790 LIBGNUTLS_CFLAGS
=`$PKG_CONFIG --cflags "gnutls >= 2.6.0"|sed -e 's,///*,/,g'`
11791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLS_CFLAGS" >&5
11792 $as_echo "$LIBGNUTLS_CFLAGS" >&6; }
11794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGNUTLS_LIBS" >&5
11795 $as_echo_n "checking LIBGNUTLS_LIBS... " >&6; }
11796 LIBGNUTLS_LIBS
=`$PKG_CONFIG --libs "gnutls >= 2.6.0"|sed -e 's,///*,/,g'`
11797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLS_LIBS" >&5
11798 $as_echo "$LIBGNUTLS_LIBS" >&6; }
11800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11801 $as_echo "no" >&6; }
11802 LIBGNUTLS_CFLAGS
=""
11804 ## If we have a custom action on failure, don't print errors, but
11805 ## do set a variable so people can do so.
11806 LIBGNUTLS_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "gnutls >= 2.6.0"`
11813 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11814 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11818 if test $succeeded = yes; then
11824 if test "${HAVE_GNUTLS}" = "yes"; then
11826 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
11830 CFLAGS
="$CFLAGS $LIBGNUTLS_CFLAGS"
11831 LIBS
="$LIBGNUTLS_LIBS $LIBS"
11832 for ac_func
in gnutls_certificate_set_verify_function
11834 ac_fn_c_check_func
"$LINENO" "gnutls_certificate_set_verify_function" "ac_cv_func_gnutls_certificate_set_verify_function"
11835 if test "x$ac_cv_func_gnutls_certificate_set_verify_function" = x
""yes; then :
11836 cat >>confdefs.h
<<_ACEOF
11837 #define HAVE_GNUTLS_CERTIFICATE_SET_VERIFY_FUNCTION 1
11839 HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY
=yes
11844 if test "${HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY}" = "yes"; then
11846 $as_echo "#define HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY 1" >>confdefs.h
11856 if test x
"${USE_X_TOOLKIT}" = xmaybe ||
test x
"${USE_X_TOOLKIT}" = xLUCID
; then
11857 if test "$with_xaw3d" != no
; then
11858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
11859 $as_echo_n "checking for xaw3d... " >&6; }
11860 if test "${emacs_cv_xaw3d+set}" = set; then :
11861 $as_echo_n "(cached) " >&6
11863 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11864 /* end confdefs.h. */
11866 #include <X11/Intrinsic.h>
11867 #include <X11/Xaw3d/Simple.h>
11876 if ac_fn_c_try_link
"$LINENO"; then :
11877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XawScrollbarSetThumb in -lXaw3d" >&5
11878 $as_echo_n "checking for XawScrollbarSetThumb in -lXaw3d... " >&6; }
11879 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then :
11880 $as_echo_n "(cached) " >&6
11882 ac_check_lib_save_LIBS
=$LIBS
11883 LIBS
="-lXaw3d $LIBS"
11884 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11885 /* end confdefs.h. */
11887 /* Override any GCC internal prototype to avoid an error.
11888 Use char because int might match the return type of a GCC
11889 builtin and then its argument prototype would still apply. */
11893 char XawScrollbarSetThumb ();
11897 return XawScrollbarSetThumb ();
11902 if ac_fn_c_try_link
"$LINENO"; then :
11903 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=yes
11905 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=no
11907 rm -f core conftest.err conftest.
$ac_objext \
11908 conftest
$ac_exeext conftest.
$ac_ext
11909 LIBS
=$ac_check_lib_save_LIBS
11911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
11912 $as_echo "$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6; }
11913 if test "x$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" = x
""yes; then :
11922 rm -f core conftest.err conftest.
$ac_objext \
11923 conftest
$ac_exeext conftest.
$ac_ext
11929 if test $emacs_cv_xaw3d = yes; then
11930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
11931 $as_echo "yes; using Lucid toolkit" >&6; }
11932 USE_X_TOOLKIT
=LUCID
11936 $as_echo "#define HAVE_XAW3D 1" >>confdefs.h
11939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11940 $as_echo "no" >&6; }
11941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXaw" >&5
11942 $as_echo_n "checking for libXaw... " >&6; }
11943 if test "${emacs_cv_xaw+set}" = set; then :
11944 $as_echo_n "(cached) " >&6
11946 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11947 /* end confdefs.h. */
11949 #include <X11/Intrinsic.h>
11950 #include <X11/Xaw/Simple.h>
11959 if ac_fn_c_try_link
"$LINENO"; then :
11964 rm -f core conftest.err conftest.
$ac_objext \
11965 conftest
$ac_exeext conftest.
$ac_ext
11968 if test $emacs_cv_xaw = yes; then
11969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
11970 $as_echo "yes; using Lucid toolkit" >&6; }
11971 USE_X_TOOLKIT
=LUCID
11973 elif test x
"${USE_X_TOOLKIT}" = xLUCID
; then
11974 as_fn_error
"Lucid toolkit requires X11/Xaw include files" "$LINENO" 5
11976 as_fn_error
"No X toolkit could be found.
11977 If you are sure you want Emacs compiled without an X toolkit, pass
11978 --with-x-toolkit=no
11979 to configure. Otherwise, install the development libraries for the toolkit
11980 that you want to use (e.g. Gtk+) and re-run configure." "$LINENO" 5
11985 X_TOOLKIT_TYPE
=$USE_X_TOOLKIT
11988 if test "${USE_X_TOOLKIT}" != "none"; then
11989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 toolkit version" >&5
11990 $as_echo_n "checking X11 toolkit version... " >&6; }
11991 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then :
11992 $as_echo_n "(cached) " >&6
11994 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11995 /* end confdefs.h. */
11996 #include <X11/Intrinsic.h>
12000 #if XtSpecificationRelease < 6
12008 if ac_fn_c_try_link
"$LINENO"; then :
12009 emacs_cv_x11_toolkit_version_6
=yes
12011 emacs_cv_x11_toolkit_version_6
=no
12013 rm -f core conftest.err conftest.
$ac_objext \
12014 conftest
$ac_exeext conftest.
$ac_ext
12017 HAVE_X11XTR6
=$emacs_cv_x11_toolkit_version_6
12018 if test $emacs_cv_x11_toolkit_version_6 = yes; then
12019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
12020 $as_echo "6 or newer" >&6; }
12022 $as_echo "#define HAVE_X11XTR6 1" >>confdefs.h
12024 LIBXTR6
="-lSM -lICE"
12026 ## Use libw.a along with X11R6 Xt.
12027 unixware
) LIBXTR6
="$LIBXTR6 -lw" ;;
12030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
12031 $as_echo "before 6" >&6; }
12035 if test x
$HAVE_X11XTR6 = xyes
; then
12036 LIBS
="-lXt -lSM -lICE $LIBS"
12040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuConvertStandardSelection in -lXmu" >&5
12041 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
12042 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then :
12043 $as_echo_n "(cached) " >&6
12045 ac_check_lib_save_LIBS
=$LIBS
12047 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12048 /* end confdefs.h. */
12050 /* Override any GCC internal prototype to avoid an error.
12051 Use char because int might match the return type of a GCC
12052 builtin and then its argument prototype would still apply. */
12056 char XmuConvertStandardSelection ();
12060 return XmuConvertStandardSelection ();
12065 if ac_fn_c_try_link
"$LINENO"; then :
12066 ac_cv_lib_Xmu_XmuConvertStandardSelection
=yes
12068 ac_cv_lib_Xmu_XmuConvertStandardSelection
=no
12070 rm -f core conftest.err conftest.
$ac_objext \
12071 conftest
$ac_exeext conftest.
$ac_ext
12072 LIBS
=$ac_check_lib_save_LIBS
12074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
12075 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
12076 if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = x
""yes; then :
12077 cat >>confdefs.h
<<_ACEOF
12078 #define HAVE_LIBXMU 1
12085 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no
&& LIBS
="$OLDLIBS"
12091 ## These systems don't supply Xmu.
12093 test "X$ac_cv_lib_Xmu_XmuConvertStandardSelection" != "Xyes" && LIBXMU
=
12098 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
12099 if test "${HAVE_X11}" = "yes"; then
12100 if test "${USE_X_TOOLKIT}" != "none"; then
12101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
12102 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
12103 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then :
12104 $as_echo_n "(cached) " >&6
12106 ac_check_lib_save_LIBS
=$LIBS
12107 LIBS
="-lXext $LIBS"
12108 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12109 /* end confdefs.h. */
12111 /* Override any GCC internal prototype to avoid an error.
12112 Use char because int might match the return type of a GCC
12113 builtin and then its argument prototype would still apply. */
12117 char XShapeQueryExtension ();
12121 return XShapeQueryExtension ();
12126 if ac_fn_c_try_link
"$LINENO"; then :
12127 ac_cv_lib_Xext_XShapeQueryExtension
=yes
12129 ac_cv_lib_Xext_XShapeQueryExtension
=no
12131 rm -f core conftest.err conftest.
$ac_objext \
12132 conftest
$ac_exeext conftest.
$ac_ext
12133 LIBS
=$ac_check_lib_save_LIBS
12135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
12136 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
12137 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x
""yes; then :
12138 cat >>confdefs.h
<<_ACEOF
12139 #define HAVE_LIBXEXT 1
12142 LIBS
="-lXext $LIBS"
12150 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Motif version 2.1" >&5
12152 $as_echo_n "checking for Motif version 2.1... " >&6; }
12153 if test "${emacs_cv_motif_version_2_1+set}" = set; then :
12154 $as_echo_n "(cached) " >&6
12156 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12157 /* end confdefs.h. */
12162 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
12165 Motif version prior to 2.1.
12171 if ac_fn_c_try_compile
"$LINENO"; then :
12172 emacs_cv_motif_version_2_1
=yes
12174 emacs_cv_motif_version_2_1
=no
12176 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_motif_version_2_1" >&5
12179 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
12180 if test $emacs_cv_motif_version_2_1 = yes; then
12181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpCreateContext in -lXp" >&5
12182 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
12183 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then :
12184 $as_echo_n "(cached) " >&6
12186 ac_check_lib_save_LIBS
=$LIBS
12188 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12189 /* end confdefs.h. */
12191 /* Override any GCC internal prototype to avoid an error.
12192 Use char because int might match the return type of a GCC
12193 builtin and then its argument prototype would still apply. */
12197 char XpCreateContext ();
12201 return XpCreateContext ();
12206 if ac_fn_c_try_link
"$LINENO"; then :
12207 ac_cv_lib_Xp_XpCreateContext
=yes
12209 ac_cv_lib_Xp_XpCreateContext
=no
12211 rm -f core conftest.err conftest.
$ac_objext \
12212 conftest
$ac_exeext conftest.
$ac_ext
12213 LIBS
=$ac_check_lib_save_LIBS
12215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpCreateContext" >&5
12216 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
12217 if test "x$ac_cv_lib_Xp_XpCreateContext" = x
""yes; then :
12222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LessTif where some systems put it" >&5
12223 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
12224 if test "${emacs_cv_lesstif+set}" = set; then :
12225 $as_echo_n "(cached) " >&6
12227 # We put this in CFLAGS temporarily to precede other -I options
12228 # that might be in CFLAGS temporarily.
12229 # We put this in CPPFLAGS where it precedes the other -I options.
12230 OLD_CPPFLAGS
=$CPPFLAGS
12232 CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
12233 CFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
12234 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12235 /* end confdefs.h. */
12236 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
12245 if ac_fn_c_try_compile
"$LINENO"; then :
12246 emacs_cv_lesstif
=yes
12248 emacs_cv_lesstif
=no
12250 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_lesstif" >&5
12253 $as_echo "$emacs_cv_lesstif" >&6; }
12254 if test $emacs_cv_lesstif = yes; then
12255 # Make sure this -I option remains in CPPFLAGS after it is set
12256 # back to REAL_CPPFLAGS.
12257 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
12258 # have those other -I options anyway. Ultimately, having this
12259 # directory ultimately in CPPFLAGS will be enough.
12260 REAL_CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
12261 LDFLAGS
="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
12264 CPPFLAGS
=$OLD_CPPFLAGS
12270 USE_TOOLKIT_SCROLL_BARS
=no
12271 if test "${with_toolkit_scroll_bars}" != "no"; then
12272 if test "${USE_X_TOOLKIT}" != "none"; then
12273 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12274 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12277 USE_TOOLKIT_SCROLL_BARS
=yes
12278 elif test "${HAVE_XAW3D}" = "yes"; then
12279 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12281 USE_TOOLKIT_SCROLL_BARS
=yes
12283 elif test "${HAVE_GTK}" = "yes"; then
12284 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12286 USE_TOOLKIT_SCROLL_BARS
=yes
12287 elif test "${HAVE_NS}" = "yes"; then
12288 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12290 USE_TOOLKIT_SCROLL_BARS
=yes
12294 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12295 /* end confdefs.h. */
12297 #include <X11/Xlib.h>
12298 #include <X11/Xresource.h>
12307 if ac_fn_c_try_compile
"$LINENO"; then :
12310 $as_echo "#define HAVE_XIM 1" >>confdefs.h
12315 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12318 if test "${with_xim}" != "no"; then
12320 $as_echo "#define USE_XIM 1" >>confdefs.h
12325 if test "${HAVE_XIM}" != "no"; then
12326 late_CFLAGS
=$CFLAGS
12327 if test "$GCC" = yes; then
12328 CFLAGS
="$CFLAGS --pedantic-errors"
12330 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12331 /* end confdefs.h. */
12333 #include <X11/Xlib.h>
12334 #include <X11/Xresource.h>
12343 XPointer *client_data;
12345 /* If we're not using GCC, it's probably not XFree86, and this is
12346 probably right, but we can't use something like --pedantic-errors. */
12347 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
12348 char*, XIMProc, XPointer*);
12350 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
12356 if ac_fn_c_try_compile
"$LINENO"; then :
12357 emacs_cv_arg6_star
=yes
12359 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12360 if test "$emacs_cv_arg6_star" = yes; then
12361 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer*" >>confdefs.h
12364 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer" >>confdefs.h
12367 CFLAGS
=$late_CFLAGS
12370 ### Start of font-backend (under any platform) section.
12371 # (nothing here yet -- this is a placeholder)
12372 ### End of font-backend (under any platform) section.
12374 ### Start of font-backend (under X11) section.
12375 if test "${HAVE_X11}" = "yes"; then
12379 # Extract the first word of "pkg-config", so it can be a program name with args.
12380 set dummy pkg-config
; ac_word
=$2
12381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12382 $as_echo_n "checking for $ac_word... " >&6; }
12383 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
12384 $as_echo_n "(cached) " >&6
12386 case $PKG_CONFIG in
12388 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
12391 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12392 for as_dir
in $PATH
12395 test -z "$as_dir" && as_dir
=.
12396 for ac_exec_ext
in '' $ac_executable_extensions; do
12397 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12398 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
12399 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12406 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
12410 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
12411 if test -n "$PKG_CONFIG"; then
12412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12413 $as_echo "$PKG_CONFIG" >&6; }
12415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12416 $as_echo "no" >&6; }
12421 if test "$PKG_CONFIG" = "no" ; then
12424 PKG_CONFIG_MIN_VERSION
=0.9.0
12425 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.2.0" >&5
12427 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
12429 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5; then
12430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12431 $as_echo "yes" >&6; }
12434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_CFLAGS" >&5
12435 $as_echo_n "checking FONTCONFIG_CFLAGS... " >&6; }
12436 FONTCONFIG_CFLAGS
=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
12437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_CFLAGS" >&5
12438 $as_echo "$FONTCONFIG_CFLAGS" >&6; }
12440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_LIBS" >&5
12441 $as_echo_n "checking FONTCONFIG_LIBS... " >&6; }
12442 FONTCONFIG_LIBS
=`$PKG_CONFIG --libs "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
12443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_LIBS" >&5
12444 $as_echo "$FONTCONFIG_LIBS" >&6; }
12446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12447 $as_echo "no" >&6; }
12448 FONTCONFIG_CFLAGS
=""
12450 ## If we have a custom action on failure, don't print errors, but
12451 ## do set a variable so people can do so.
12452 FONTCONFIG_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2.0"`
12459 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12460 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12464 if test $succeeded = yes; then
12471 ## Use -lXft if available, unless `--with-xft=no'.
12473 if test "${HAVE_FC}" = "no" ||
test "x${with_x}" = "xno"; then
12476 if test "x${with_xft}" != "xno"; then
12481 # Extract the first word of "pkg-config", so it can be a program name with args.
12482 set dummy pkg-config
; ac_word
=$2
12483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12484 $as_echo_n "checking for $ac_word... " >&6; }
12485 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
12486 $as_echo_n "(cached) " >&6
12488 case $PKG_CONFIG in
12490 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
12493 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12494 for as_dir
in $PATH
12497 test -z "$as_dir" && as_dir
=.
12498 for ac_exec_ext
in '' $ac_executable_extensions; do
12499 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12500 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
12501 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12508 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
12512 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
12513 if test -n "$PKG_CONFIG"; then
12514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12515 $as_echo "$PKG_CONFIG" >&6; }
12517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12518 $as_echo "no" >&6; }
12523 if test "$PKG_CONFIG" = "no" ; then
12526 PKG_CONFIG_MIN_VERSION
=0.9.0
12527 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xft >= 0.13.0" >&5
12529 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
12531 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
12532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12533 $as_echo "yes" >&6; }
12536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_CFLAGS" >&5
12537 $as_echo_n "checking XFT_CFLAGS... " >&6; }
12538 XFT_CFLAGS
=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
12539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_CFLAGS" >&5
12540 $as_echo "$XFT_CFLAGS" >&6; }
12542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_LIBS" >&5
12543 $as_echo_n "checking XFT_LIBS... " >&6; }
12544 XFT_LIBS
=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
12545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_LIBS" >&5
12546 $as_echo "$XFT_LIBS" >&6; }
12548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12549 $as_echo "no" >&6; }
12552 ## If we have a custom action on failure, don't print errors, but
12553 ## do set a variable so people can do so.
12554 XFT_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
12561 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12562 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12566 if test $succeeded = yes; then
12572 ## Because xftfont.c uses XRenderQueryExtension, we also
12573 ## need to link to -lXrender.
12575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5
12576 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
12577 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then :
12578 $as_echo_n "(cached) " >&6
12580 ac_check_lib_save_LIBS
=$LIBS
12581 LIBS
="-lXrender $LIBS"
12582 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12583 /* end confdefs.h. */
12585 /* Override any GCC internal prototype to avoid an error.
12586 Use char because int might match the return type of a GCC
12587 builtin and then its argument prototype would still apply. */
12591 char XRenderQueryExtension ();
12595 return XRenderQueryExtension ();
12600 if ac_fn_c_try_link
"$LINENO"; then :
12601 ac_cv_lib_Xrender_XRenderQueryExtension
=yes
12603 ac_cv_lib_Xrender_XRenderQueryExtension
=no
12605 rm -f core conftest.err conftest.
$ac_objext \
12606 conftest
$ac_exeext conftest.
$ac_ext
12607 LIBS
=$ac_check_lib_save_LIBS
12609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
12610 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
12611 if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = x
""yes; then :
12615 if test "$HAVE_XFT" != no
&& test "$HAVE_XRENDER" != no
; then
12616 OLD_CPPFLAGS
="$CPPFLAGS"
12617 OLD_CFLAGS
="$CFLAGS"
12619 CPPFLAGS
="$CPPFLAGS $XFT_CFLAGS"
12620 CFLAGS
="$CFLAGS $XFT_CFLAGS"
12621 XFT_LIBS
="-lXrender $XFT_LIBS"
12622 LIBS
="$XFT_LIBS $LIBS"
12623 ac_fn_c_check_header_mongrel
"$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default"
12624 if test "x$ac_cv_header_X11_Xft_Xft_h" = x
""yes; then :
12625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5
12626 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
12627 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then :
12628 $as_echo_n "(cached) " >&6
12630 ac_check_lib_save_LIBS
=$LIBS
12631 LIBS
="-lXft $XFT_LIBS $LIBS"
12632 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12633 /* end confdefs.h. */
12635 /* Override any GCC internal prototype to avoid an error.
12636 Use char because int might match the return type of a GCC
12637 builtin and then its argument prototype would still apply. */
12641 char XftFontOpen ();
12645 return XftFontOpen ();
12650 if ac_fn_c_try_link
"$LINENO"; then :
12651 ac_cv_lib_Xft_XftFontOpen
=yes
12653 ac_cv_lib_Xft_XftFontOpen
=no
12655 rm -f core conftest.err conftest.
$ac_objext \
12656 conftest
$ac_exeext conftest.
$ac_ext
12657 LIBS
=$ac_check_lib_save_LIBS
12659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftFontOpen" >&5
12660 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
12661 if test "x$ac_cv_lib_Xft_XftFontOpen" = x
""yes; then :
12669 if test "${HAVE_XFT}" = "yes"; then
12671 $as_echo "#define HAVE_XFT 1" >>confdefs.h
12674 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $XFT_CFLAGS"
12676 CPPFLAGS
="$OLD_CPPFLAGS"
12677 CFLAGS
="$OLD_CFLAGS"
12679 fi # "${HAVE_XFT}" = "yes"
12680 fi # "$HAVE_XFT" != no
12681 fi # "x${with_xft}" != "xno"
12683 ## We used to allow building with FreeType and without Xft.
12684 ## However, the ftx font backend driver is not in good shape.
12685 if test "$HAVE_XFT" != "yes"; then
12692 # Extract the first word of "pkg-config", so it can be a program name with args.
12693 set dummy pkg-config
; ac_word
=$2
12694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12695 $as_echo_n "checking for $ac_word... " >&6; }
12696 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
12697 $as_echo_n "(cached) " >&6
12699 case $PKG_CONFIG in
12701 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
12704 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12705 for as_dir
in $PATH
12708 test -z "$as_dir" && as_dir
=.
12709 for ac_exec_ext
in '' $ac_executable_extensions; do
12710 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12711 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
12712 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12719 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
12723 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
12724 if test -n "$PKG_CONFIG"; then
12725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12726 $as_echo "$PKG_CONFIG" >&6; }
12728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12729 $as_echo "no" >&6; }
12734 if test "$PKG_CONFIG" = "no" ; then
12737 PKG_CONFIG_MIN_VERSION
=0.9.0
12738 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype2" >&5
12740 $as_echo_n "checking for freetype2... " >&6; }
12742 if $PKG_CONFIG --exists "freetype2" 2>&5; then
12743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12744 $as_echo "yes" >&6; }
12747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FREETYPE_CFLAGS" >&5
12748 $as_echo_n "checking FREETYPE_CFLAGS... " >&6; }
12749 FREETYPE_CFLAGS
=`$PKG_CONFIG --cflags "freetype2"|sed -e 's,///*,/,g'`
12750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_CFLAGS" >&5
12751 $as_echo "$FREETYPE_CFLAGS" >&6; }
12753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FREETYPE_LIBS" >&5
12754 $as_echo_n "checking FREETYPE_LIBS... " >&6; }
12755 FREETYPE_LIBS
=`$PKG_CONFIG --libs "freetype2"|sed -e 's,///*,/,g'`
12756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIBS" >&5
12757 $as_echo "$FREETYPE_LIBS" >&6; }
12759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12760 $as_echo "no" >&6; }
12763 ## If we have a custom action on failure, don't print errors, but
12764 ## do set a variable so people can do so.
12765 FREETYPE_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2"`
12772 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12773 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12777 if test $succeeded = yes; then
12784 test "$HAVE_FREETYPE" = "no" && as_fn_error
"libxft requires libfreetype" "$LINENO" 5
12788 if test "${HAVE_FREETYPE}" = "yes"; then
12790 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
12792 if test "${with_libotf}" != "no"; then
12796 # Extract the first word of "pkg-config", so it can be a program name with args.
12797 set dummy pkg-config
; ac_word
=$2
12798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12799 $as_echo_n "checking for $ac_word... " >&6; }
12800 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
12801 $as_echo_n "(cached) " >&6
12803 case $PKG_CONFIG in
12805 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
12808 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12809 for as_dir
in $PATH
12812 test -z "$as_dir" && as_dir
=.
12813 for ac_exec_ext
in '' $ac_executable_extensions; do
12814 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12815 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
12816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12823 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
12827 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
12828 if test -n "$PKG_CONFIG"; then
12829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12830 $as_echo "$PKG_CONFIG" >&6; }
12832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12833 $as_echo "no" >&6; }
12838 if test "$PKG_CONFIG" = "no" ; then
12841 PKG_CONFIG_MIN_VERSION
=0.9.0
12842 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libotf" >&5
12844 $as_echo_n "checking for libotf... " >&6; }
12846 if $PKG_CONFIG --exists "libotf" 2>&5; then
12847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12848 $as_echo "yes" >&6; }
12851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_CFLAGS" >&5
12852 $as_echo_n "checking LIBOTF_CFLAGS... " >&6; }
12853 LIBOTF_CFLAGS
=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
12854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_CFLAGS" >&5
12855 $as_echo "$LIBOTF_CFLAGS" >&6; }
12857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_LIBS" >&5
12858 $as_echo_n "checking LIBOTF_LIBS... " >&6; }
12859 LIBOTF_LIBS
=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
12860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_LIBS" >&5
12861 $as_echo "$LIBOTF_LIBS" >&6; }
12863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12864 $as_echo "no" >&6; }
12867 ## If we have a custom action on failure, don't print errors, but
12868 ## do set a variable so people can do so.
12869 LIBOTF_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
12876 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12877 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12881 if test $succeeded = yes; then
12887 if test "$HAVE_LIBOTF" = "yes"; then
12889 $as_echo "#define HAVE_LIBOTF 1" >>confdefs.h
12891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTF_get_variation_glyphs in -lotf" >&5
12892 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
12893 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then :
12894 $as_echo_n "(cached) " >&6
12896 ac_check_lib_save_LIBS
=$LIBS
12898 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12899 /* end confdefs.h. */
12901 /* Override any GCC internal prototype to avoid an error.
12902 Use char because int might match the return type of a GCC
12903 builtin and then its argument prototype would still apply. */
12907 char OTF_get_variation_glyphs ();
12911 return OTF_get_variation_glyphs ();
12916 if ac_fn_c_try_link
"$LINENO"; then :
12917 ac_cv_lib_otf_OTF_get_variation_glyphs
=yes
12919 ac_cv_lib_otf_OTF_get_variation_glyphs
=no
12921 rm -f core conftest.err conftest.
$ac_objext \
12922 conftest
$ac_exeext conftest.
$ac_ext
12923 LIBS
=$ac_check_lib_save_LIBS
12925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
12926 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
12927 if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = x
""yes; then :
12928 HAVE_OTF_GET_VARIATION_GLYPHS
=yes
12930 HAVE_OTF_GET_VARIATION_GLYPHS
=no
12933 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
12935 $as_echo "#define HAVE_OTF_GET_VARIATION_GLYPHS 1" >>confdefs.h
12943 if test "${HAVE_LIBOTF}" = yes; then
12944 if test "${with_m17n_flt}" != "no"; then
12948 # Extract the first word of "pkg-config", so it can be a program name with args.
12949 set dummy pkg-config
; ac_word
=$2
12950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12951 $as_echo_n "checking for $ac_word... " >&6; }
12952 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
12953 $as_echo_n "(cached) " >&6
12955 case $PKG_CONFIG in
12957 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
12960 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12961 for as_dir
in $PATH
12964 test -z "$as_dir" && as_dir
=.
12965 for ac_exec_ext
in '' $ac_executable_extensions; do
12966 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12967 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
12968 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12975 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
12979 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
12980 if test -n "$PKG_CONFIG"; then
12981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12982 $as_echo "$PKG_CONFIG" >&6; }
12984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12985 $as_echo "no" >&6; }
12990 if test "$PKG_CONFIG" = "no" ; then
12993 PKG_CONFIG_MIN_VERSION
=0.9.0
12994 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m17n-flt" >&5
12996 $as_echo_n "checking for m17n-flt... " >&6; }
12998 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
12999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13000 $as_echo "yes" >&6; }
13003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_CFLAGS" >&5
13004 $as_echo_n "checking M17N_FLT_CFLAGS... " >&6; }
13005 M17N_FLT_CFLAGS
=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
13006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_CFLAGS" >&5
13007 $as_echo "$M17N_FLT_CFLAGS" >&6; }
13009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_LIBS" >&5
13010 $as_echo_n "checking M17N_FLT_LIBS... " >&6; }
13011 M17N_FLT_LIBS
=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
13012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_LIBS" >&5
13013 $as_echo "$M17N_FLT_LIBS" >&6; }
13015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13016 $as_echo "no" >&6; }
13019 ## If we have a custom action on failure, don't print errors, but
13020 ## do set a variable so people can do so.
13021 M17N_FLT_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
13028 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13029 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13033 if test $succeeded = yes; then
13039 if test "$HAVE_M17N_FLT" = "yes"; then
13041 $as_echo "#define HAVE_M17N_FLT 1" >>confdefs.h
13053 ### End of font-backend (under X11) section.
13064 ### Use -lXpm if available, unless `--with-xpm=no'.
13067 if test "${HAVE_X11}" = "yes"; then
13068 if test "${with_xpm}" != "no"; then
13069 ac_fn_c_check_header_mongrel
"$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
13070 if test "x$ac_cv_header_X11_xpm_h" = x
""yes; then :
13071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToPixmap in -lXpm" >&5
13072 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
13073 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then :
13074 $as_echo_n "(cached) " >&6
13076 ac_check_lib_save_LIBS
=$LIBS
13077 LIBS
="-lXpm -lX11 $LIBS"
13078 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13079 /* end confdefs.h. */
13081 /* Override any GCC internal prototype to avoid an error.
13082 Use char because int might match the return type of a GCC
13083 builtin and then its argument prototype would still apply. */
13087 char XpmReadFileToPixmap ();
13091 return XpmReadFileToPixmap ();
13096 if ac_fn_c_try_link
"$LINENO"; then :
13097 ac_cv_lib_Xpm_XpmReadFileToPixmap
=yes
13099 ac_cv_lib_Xpm_XpmReadFileToPixmap
=no
13101 rm -f core conftest.err conftest.
$ac_objext \
13102 conftest
$ac_exeext conftest.
$ac_ext
13103 LIBS
=$ac_check_lib_save_LIBS
13105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
13106 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
13107 if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = x
""yes; then :
13114 if test "${HAVE_XPM}" = "yes"; then
13115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
13116 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
13117 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13118 /* end confdefs.h. */
13119 #include "X11/xpm.h"
13120 #ifndef XpmReturnAllocPixels
13121 no_return_alloc_pixels
13125 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13126 $EGREP "no_return_alloc_pixels" >/dev
/null
2>&1; then :
13134 if test "${HAVE_XPM}" = "yes"; then
13135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13136 $as_echo "yes" >&6; }
13138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13139 $as_echo "no" >&6; }
13144 if test "${HAVE_XPM}" = "yes"; then
13146 $as_echo "#define HAVE_XPM 1" >>confdefs.h
13153 ### Use -ljpeg if available, unless `--with-jpeg=no'.
13156 if test "${HAVE_X11}" = "yes"; then
13157 if test "${with_jpeg}" != "no"; then
13158 ac_fn_c_check_header_mongrel
"$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
13159 if test "x$ac_cv_header_jerror_h" = x
""yes; then :
13160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_compress in -ljpeg" >&5
13161 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
13162 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then :
13163 $as_echo_n "(cached) " >&6
13165 ac_check_lib_save_LIBS
=$LIBS
13166 LIBS
="-ljpeg $LIBS"
13167 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13168 /* end confdefs.h. */
13170 /* Override any GCC internal prototype to avoid an error.
13171 Use char because int might match the return type of a GCC
13172 builtin and then its argument prototype would still apply. */
13176 char jpeg_destroy_compress ();
13180 return jpeg_destroy_compress ();
13185 if ac_fn_c_try_link
"$LINENO"; then :
13186 ac_cv_lib_jpeg_jpeg_destroy_compress
=yes
13188 ac_cv_lib_jpeg_jpeg_destroy_compress
=no
13190 rm -f core conftest.err conftest.
$ac_objext \
13191 conftest
$ac_exeext conftest.
$ac_ext
13192 LIBS
=$ac_check_lib_save_LIBS
13194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
13195 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
13196 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = x
""yes; then :
13205 if test "${HAVE_JPEG}" = "yes"; then
13206 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
13208 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13209 /* end confdefs.h. */
13210 #include <jpeglib.h>
13211 version=JPEG_LIB_VERSION
13214 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13215 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev
/null
2>&1; then :
13216 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
13219 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5
13220 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
13226 if test "${HAVE_JPEG}" = "yes"; then
13232 ### Use -lpng if available, unless `--with-png=no'.
13235 if test "${HAVE_X11}" = "yes"; then
13236 if test "${with_png}" != "no"; then
13237 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
13238 # in /usr/include/libpng.
13239 for ac_header
in png.h libpng
/png.h
13241 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13242 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13243 eval as_val
=\$
$as_ac_Header
13244 if test "x$as_val" = x
""yes; then :
13245 cat >>confdefs.h
<<_ACEOF
13246 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13253 if test "$ac_cv_header_png_h" = yes ||
test "$ac_cv_header_libpng_png_h" = yes ; then
13254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_channels in -lpng" >&5
13255 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
13256 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then :
13257 $as_echo_n "(cached) " >&6
13259 ac_check_lib_save_LIBS
=$LIBS
13260 LIBS
="-lpng -lz -lm $LIBS"
13261 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13262 /* end confdefs.h. */
13264 /* Override any GCC internal prototype to avoid an error.
13265 Use char because int might match the return type of a GCC
13266 builtin and then its argument prototype would still apply. */
13270 char png_get_channels ();
13274 return png_get_channels ();
13279 if ac_fn_c_try_link
"$LINENO"; then :
13280 ac_cv_lib_png_png_get_channels
=yes
13282 ac_cv_lib_png_png_get_channels
=no
13284 rm -f core conftest.err conftest.
$ac_objext \
13285 conftest
$ac_exeext conftest.
$ac_ext
13286 LIBS
=$ac_check_lib_save_LIBS
13288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_channels" >&5
13289 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
13290 if test "x$ac_cv_lib_png_png_get_channels" = x
""yes; then :
13297 if test "${HAVE_PNG}" = "yes"; then
13299 $as_echo "#define HAVE_PNG 1" >>confdefs.h
13301 LIBPNG
="-lpng -lz -lm"
13306 ### Use -ltiff if available, unless `--with-tiff=no'.
13309 if test "${HAVE_X11}" = "yes"; then
13310 if test "${with_tiff}" != "no"; then
13311 ac_fn_c_check_header_mongrel
"$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
13312 if test "x$ac_cv_header_tiffio_h" = x
""yes; then :
13314 # At least one tiff package requires the jpeg library.
13315 if test "${HAVE_JPEG}" = yes; then tifflibs
="-ljpeg $tifflibs"; fi
13316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFGetVersion in -ltiff" >&5
13317 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
13318 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then :
13319 $as_echo_n "(cached) " >&6
13321 ac_check_lib_save_LIBS
=$LIBS
13322 LIBS
="-ltiff $tifflibs $LIBS"
13323 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13324 /* end confdefs.h. */
13326 /* Override any GCC internal prototype to avoid an error.
13327 Use char because int might match the return type of a GCC
13328 builtin and then its argument prototype would still apply. */
13332 char TIFFGetVersion ();
13336 return TIFFGetVersion ();
13341 if ac_fn_c_try_link
"$LINENO"; then :
13342 ac_cv_lib_tiff_TIFFGetVersion
=yes
13344 ac_cv_lib_tiff_TIFFGetVersion
=no
13346 rm -f core conftest.err conftest.
$ac_objext \
13347 conftest
$ac_exeext conftest.
$ac_ext
13348 LIBS
=$ac_check_lib_save_LIBS
13350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
13351 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
13352 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = x
""yes; then :
13361 if test "${HAVE_TIFF}" = "yes"; then
13363 $as_echo "#define HAVE_TIFF 1" >>confdefs.h
13370 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
13373 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
13374 ac_fn_c_check_header_mongrel
"$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
13375 if test "x$ac_cv_header_gif_lib_h" = x
""yes; then :
13376 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
13377 # Earlier versions can crash Emacs.
13378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lgif" >&5
13379 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
13380 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then :
13381 $as_echo_n "(cached) " >&6
13383 ac_check_lib_save_LIBS
=$LIBS
13385 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13386 /* end confdefs.h. */
13388 /* Override any GCC internal prototype to avoid an error.
13389 Use char because int might match the return type of a GCC
13390 builtin and then its argument prototype would still apply. */
13394 char EGifPutExtensionLast ();
13398 return EGifPutExtensionLast ();
13403 if ac_fn_c_try_link
"$LINENO"; then :
13404 ac_cv_lib_gif_EGifPutExtensionLast
=yes
13406 ac_cv_lib_gif_EGifPutExtensionLast
=no
13408 rm -f core conftest.err conftest.
$ac_objext \
13409 conftest
$ac_exeext conftest.
$ac_ext
13410 LIBS
=$ac_check_lib_save_LIBS
13412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
13413 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
13414 if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = x
""yes; then :
13424 if test "$HAVE_GIF" = yes; then
13426 elif test "$HAVE_GIF" = maybe
; then
13427 # If gif_lib.h but no libgif, try libungif.
13428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lungif" >&5
13429 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
13430 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then :
13431 $as_echo_n "(cached) " >&6
13433 ac_check_lib_save_LIBS
=$LIBS
13434 LIBS
="-lungif $LIBS"
13435 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13436 /* end confdefs.h. */
13438 /* Override any GCC internal prototype to avoid an error.
13439 Use char because int might match the return type of a GCC
13440 builtin and then its argument prototype would still apply. */
13444 char EGifPutExtensionLast ();
13448 return EGifPutExtensionLast ();
13453 if ac_fn_c_try_link
"$LINENO"; then :
13454 ac_cv_lib_ungif_EGifPutExtensionLast
=yes
13456 ac_cv_lib_ungif_EGifPutExtensionLast
=no
13458 rm -f core conftest.err conftest.
$ac_objext \
13459 conftest
$ac_exeext conftest.
$ac_ext
13460 LIBS
=$ac_check_lib_save_LIBS
13462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
13463 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
13464 if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = x
""yes; then :
13470 test "$HAVE_GIF" = yes && LIBGIF
=-lungif
13473 if test "${HAVE_GIF}" = "yes"; then
13475 $as_echo "#define HAVE_GIF 1" >>confdefs.h
13481 if test "${HAVE_X11}" = "yes"; then
13484 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
13485 MISSING
="libXpm" && WITH_NO
="--with-xpm=no"
13486 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
13487 MISSING
="$MISSING libjpeg" && WITH_NO
="$WITH_NO --with-jpeg=no"
13488 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
13489 MISSING
="$MISSING libpng" && WITH_NO
="$WITH_NO --with-png=no"
13490 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
13491 MISSING
="$MISSING libgif/libungif" && WITH_NO
="$WITH_NO --with-gif=no"
13492 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
13493 MISSING
="$MISSING libtiff" && WITH_NO
="$WITH_NO --with-tiff=no"
13495 if test "X${MISSING}" != X
; then
13496 as_fn_error
"The following required libraries were not found:
13498 Maybe some development libraries/packages are missing?
13499 If you don't want to link with them give
13501 as options to configure" "$LINENO" 5
13505 ### Use -lgpm if available, unless `--with-gpm=no'.
13508 if test "${with_gpm}" != "no"; then
13509 ac_fn_c_check_header_mongrel
"$LINENO" "gpm.h" "ac_cv_header_gpm_h" "$ac_includes_default"
13510 if test "x$ac_cv_header_gpm_h" = x
""yes; then :
13511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5
13512 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
13513 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then :
13514 $as_echo_n "(cached) " >&6
13516 ac_check_lib_save_LIBS
=$LIBS
13518 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13519 /* end confdefs.h. */
13521 /* Override any GCC internal prototype to avoid an error.
13522 Use char because int might match the return type of a GCC
13523 builtin and then its argument prototype would still apply. */
13531 return Gpm_Open ();
13536 if ac_fn_c_try_link
"$LINENO"; then :
13537 ac_cv_lib_gpm_Gpm_Open
=yes
13539 ac_cv_lib_gpm_Gpm_Open
=no
13541 rm -f core conftest.err conftest.
$ac_objext \
13542 conftest
$ac_exeext conftest.
$ac_ext
13543 LIBS
=$ac_check_lib_save_LIBS
13545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Open" >&5
13546 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
13547 if test "x$ac_cv_lib_gpm_Gpm_Open" = x
""yes; then :
13555 if test "${HAVE_GPM}" = "yes"; then
13557 $as_echo "#define HAVE_GPM 1" >>confdefs.h
13564 ac_fn_c_check_header_mongrel
"$LINENO" "malloc/malloc.h" "ac_cv_header_malloc_malloc_h" "$ac_includes_default"
13565 if test "x$ac_cv_header_malloc_malloc_h" = x
""yes; then :
13567 $as_echo "#define HAVE_MALLOC_MALLOC_H 1" >>confdefs.h
13574 ### Use NeXTstep API to implement GUI.
13575 if test "${HAVE_NS}" = "yes"; then
13577 $as_echo "#define HAVE_NS 1" >>confdefs.h
13579 if test "${NS_IMPL_COCOA}" = "yes"; then
13581 $as_echo "#define NS_IMPL_COCOA 1" >>confdefs.h
13584 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
13586 $as_echo "#define NS_IMPL_GNUSTEP 1" >>confdefs.h
13588 # See also .m.o rule in Makefile.in */
13589 # FIXME: are all these flags really needed? Document here why. */
13590 C_SWITCH_X_SYSTEM
="-D_REENTRANT -fPIC -fno-strict-aliasing -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
13591 ## Extra CFLAGS applied to src/*.m files.
13592 GNU_OBJC_CFLAGS
="$GNU_OBJC_CFLAGS -fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE"
13594 if test "${NS_HAVE_NSINTEGER}" = "yes"; then
13596 $as_echo "#define NS_HAVE_NSINTEGER 1" >>confdefs.h
13599 # We also have mouse menus.
13605 ### Use session management (-lSM -lICE) if available
13608 if test "${HAVE_X11}" = "yes"; then
13609 ac_fn_c_check_header_mongrel
"$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
13610 if test "x$ac_cv_header_X11_SM_SMlib_h" = x
""yes; then :
13611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5
13612 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
13613 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then :
13614 $as_echo_n "(cached) " >&6
13616 ac_check_lib_save_LIBS
=$LIBS
13617 LIBS
="-lSM -lICE $LIBS"
13618 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13619 /* end confdefs.h. */
13621 /* Override any GCC internal prototype to avoid an error.
13622 Use char because int might match the return type of a GCC
13623 builtin and then its argument prototype would still apply. */
13627 char SmcOpenConnection ();
13631 return SmcOpenConnection ();
13636 if ac_fn_c_try_link
"$LINENO"; then :
13637 ac_cv_lib_SM_SmcOpenConnection
=yes
13639 ac_cv_lib_SM_SmcOpenConnection
=no
13641 rm -f core conftest.err conftest.
$ac_objext \
13642 conftest
$ac_exeext conftest.
$ac_ext
13643 LIBS
=$ac_check_lib_save_LIBS
13645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
13646 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
13647 if test "x$ac_cv_lib_SM_SmcOpenConnection" = x
""yes; then :
13655 if test "${HAVE_X_SM}" = "yes"; then
13657 $as_echo "#define HAVE_X_SM 1" >>confdefs.h
13659 LIBXSM
="-lSM -lICE"
13662 *) LIBS
="$LIBXSM $LIBS" ;;
13668 ### Use libxml (-lxml2) if available
13669 if test "${with_xml2}" != "no"; then
13670 ### I'm not sure what the version number should be, so I just guessed.
13674 # Extract the first word of "pkg-config", so it can be a program name with args.
13675 set dummy pkg-config
; ac_word
=$2
13676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13677 $as_echo_n "checking for $ac_word... " >&6; }
13678 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
13679 $as_echo_n "(cached) " >&6
13681 case $PKG_CONFIG in
13683 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
13686 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13687 for as_dir
in $PATH
13690 test -z "$as_dir" && as_dir
=.
13691 for ac_exec_ext
in '' $ac_executable_extensions; do
13692 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13693 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
13694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13701 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
13705 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
13706 if test -n "$PKG_CONFIG"; then
13707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13708 $as_echo "$PKG_CONFIG" >&6; }
13710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13711 $as_echo "no" >&6; }
13716 if test "$PKG_CONFIG" = "no" ; then
13719 PKG_CONFIG_MIN_VERSION
=0.9.0
13720 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 > 2.6.17" >&5
13722 $as_echo_n "checking for libxml-2.0 > 2.6.17... " >&6; }
13724 if $PKG_CONFIG --exists "libxml-2.0 > 2.6.17" 2>&5; then
13725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13726 $as_echo "yes" >&6; }
13729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBXML2_CFLAGS" >&5
13730 $as_echo_n "checking LIBXML2_CFLAGS... " >&6; }
13731 LIBXML2_CFLAGS
=`$PKG_CONFIG --cflags "libxml-2.0 > 2.6.17"|sed -e 's,///*,/,g'`
13732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXML2_CFLAGS" >&5
13733 $as_echo "$LIBXML2_CFLAGS" >&6; }
13735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBXML2_LIBS" >&5
13736 $as_echo_n "checking LIBXML2_LIBS... " >&6; }
13737 LIBXML2_LIBS
=`$PKG_CONFIG --libs "libxml-2.0 > 2.6.17"|sed -e 's,///*,/,g'`
13738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXML2_LIBS" >&5
13739 $as_echo "$LIBXML2_LIBS" >&6; }
13741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13742 $as_echo "no" >&6; }
13745 ## If we have a custom action on failure, don't print errors, but
13746 ## do set a variable so people can do so.
13747 LIBXML2_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "libxml-2.0 > 2.6.17"`
13754 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13755 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13759 if test $succeeded = yes; then
13765 if test "${HAVE_LIBXML2}" = "yes"; then
13766 LIBS
="$LIBXML2_LIBS $LIBS"
13767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htmlReadMemory in -lxml2" >&5
13768 $as_echo_n "checking for htmlReadMemory in -lxml2... " >&6; }
13769 if test "${ac_cv_lib_xml2_htmlReadMemory+set}" = set; then :
13770 $as_echo_n "(cached) " >&6
13772 ac_check_lib_save_LIBS
=$LIBS
13773 LIBS
="-lxml2 $LIBS"
13774 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13775 /* end confdefs.h. */
13777 /* Override any GCC internal prototype to avoid an error.
13778 Use char because int might match the return type of a GCC
13779 builtin and then its argument prototype would still apply. */
13783 char htmlReadMemory ();
13787 return htmlReadMemory ();
13792 if ac_fn_c_try_link
"$LINENO"; then :
13793 ac_cv_lib_xml2_htmlReadMemory
=yes
13795 ac_cv_lib_xml2_htmlReadMemory
=no
13797 rm -f core conftest.err conftest.
$ac_objext \
13798 conftest
$ac_exeext conftest.
$ac_ext
13799 LIBS
=$ac_check_lib_save_LIBS
13801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_htmlReadMemory" >&5
13802 $as_echo "$ac_cv_lib_xml2_htmlReadMemory" >&6; }
13803 if test "x$ac_cv_lib_xml2_htmlReadMemory" = x
""yes; then :
13809 if test "${HAVE_LIBXML2}" = "yes"; then
13811 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
13822 # If netdb.h doesn't declare h_errno, we must declare it by hand.
13823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netdb declares h_errno" >&5
13824 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
13825 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then :
13826 $as_echo_n "(cached) " >&6
13828 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13829 /* end confdefs.h. */
13839 if ac_fn_c_try_link
"$LINENO"; then :
13840 emacs_cv_netdb_declares_h_errno
=yes
13842 emacs_cv_netdb_declares_h_errno
=no
13844 rm -f core conftest.err conftest.
$ac_objext \
13845 conftest
$ac_exeext conftest.
$ac_ext
13847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_netdb_declares_h_errno" >&5
13848 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
13849 if test $emacs_cv_netdb_declares_h_errno = yes; then
13851 $as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h
13855 # fmod, logb, and frexp are found in -lm on most systems.
13856 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
13857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
13858 $as_echo_n "checking for sqrt in -lm... " >&6; }
13859 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
13860 $as_echo_n "(cached) " >&6
13862 ac_check_lib_save_LIBS
=$LIBS
13864 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13865 /* end confdefs.h. */
13867 /* Override any GCC internal prototype to avoid an error.
13868 Use char because int might match the return type of a GCC
13869 builtin and then its argument prototype would still apply. */
13882 if ac_fn_c_try_link
"$LINENO"; then :
13883 ac_cv_lib_m_sqrt
=yes
13885 ac_cv_lib_m_sqrt
=no
13887 rm -f core conftest.err conftest.
$ac_objext \
13888 conftest
$ac_exeext conftest.
$ac_ext
13889 LIBS
=$ac_check_lib_save_LIBS
13891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
13892 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
13893 if test "x$ac_cv_lib_m_sqrt" = x
""yes; then :
13894 cat >>confdefs.h
<<_ACEOF
13895 #define HAVE_LIBM 1
13903 # Check for mail-locking functions in a "mail" library. Probably this should
13904 # have the same check as for liblockfile below.
13905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -lmail" >&5
13906 $as_echo_n "checking for maillock in -lmail... " >&6; }
13907 if test "${ac_cv_lib_mail_maillock+set}" = set; then :
13908 $as_echo_n "(cached) " >&6
13910 ac_check_lib_save_LIBS
=$LIBS
13911 LIBS
="-lmail $LIBS"
13912 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13913 /* end confdefs.h. */
13915 /* Override any GCC internal prototype to avoid an error.
13916 Use char because int might match the return type of a GCC
13917 builtin and then its argument prototype would still apply. */
13925 return maillock ();
13930 if ac_fn_c_try_link
"$LINENO"; then :
13931 ac_cv_lib_mail_maillock
=yes
13933 ac_cv_lib_mail_maillock
=no
13935 rm -f core conftest.err conftest.
$ac_objext \
13936 conftest
$ac_exeext conftest.
$ac_ext
13937 LIBS
=$ac_check_lib_save_LIBS
13939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mail_maillock" >&5
13940 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
13941 if test "x$ac_cv_lib_mail_maillock" = x
""yes; then :
13947 if test $have_mail = yes; then
13949 LIBS
="$LIBS_MAIL $LIBS"
13951 $as_echo "#define HAVE_LIBMAIL 1" >>confdefs.h
13956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -llockfile" >&5
13957 $as_echo_n "checking for maillock in -llockfile... " >&6; }
13958 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then :
13959 $as_echo_n "(cached) " >&6
13961 ac_check_lib_save_LIBS
=$LIBS
13962 LIBS
="-llockfile $LIBS"
13963 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13964 /* end confdefs.h. */
13966 /* Override any GCC internal prototype to avoid an error.
13967 Use char because int might match the return type of a GCC
13968 builtin and then its argument prototype would still apply. */
13976 return maillock ();
13981 if ac_fn_c_try_link
"$LINENO"; then :
13982 ac_cv_lib_lockfile_maillock
=yes
13984 ac_cv_lib_lockfile_maillock
=no
13986 rm -f core conftest.err conftest.
$ac_objext \
13987 conftest
$ac_exeext conftest.
$ac_ext
13988 LIBS
=$ac_check_lib_save_LIBS
13990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lockfile_maillock" >&5
13991 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
13992 if test "x$ac_cv_lib_lockfile_maillock" = x
""yes; then :
13998 if test $have_lockfile = yes; then
13999 LIBS_MAIL
=-llockfile
14000 LIBS
="$LIBS_MAIL $LIBS"
14002 $as_echo "#define HAVE_LIBLOCKFILE 1" >>confdefs.h
14005 # If we have the shared liblockfile, assume we must use it for mail
14006 # locking (e.g. Debian). If we couldn't link against liblockfile
14007 # (no liblockfile.a installed), ensure that we don't need to.
14008 # Extract the first word of "liblockfile.so", so it can be a program name with args.
14009 set dummy liblockfile.so
; ac_word
=$2
14010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14011 $as_echo_n "checking for $ac_word... " >&6; }
14012 if test "${ac_cv_prog_liblockfile+set}" = set; then :
14013 $as_echo_n "(cached) " >&6
14015 if test -n "$liblockfile"; then
14016 ac_cv_prog_liblockfile
="$liblockfile" # Let the user override the test.
14018 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14019 as_dummy
="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
14020 for as_dir
in $as_dummy
14023 test -z "$as_dir" && as_dir
=.
14024 for ac_exec_ext
in '' $ac_executable_extensions; do
14025 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14026 ac_cv_prog_liblockfile
="yes"
14027 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14034 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile
="no"
14037 liblockfile
=$ac_cv_prog_liblockfile
14038 if test -n "$liblockfile"; then
14039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblockfile" >&5
14040 $as_echo "$liblockfile" >&6; }
14042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14043 $as_echo "no" >&6; }
14047 if test $ac_cv_prog_liblockfile = yes; then
14048 as_fn_error
"Shared liblockfile found but can't link against it.
14049 This probably means that movemail could lose mail.
14050 There may be a \`development' package to install containing liblockfile." "$LINENO" 5
14053 for ac_func
in touchlock
14055 ac_fn_c_check_func
"$LINENO" "touchlock" "ac_cv_func_touchlock"
14056 if test "x$ac_cv_func_touchlock" = x
""yes; then :
14057 cat >>confdefs.h
<<_ACEOF
14058 #define HAVE_TOUCHLOCK 1
14064 for ac_header
in maillock.h
14066 ac_fn_c_check_header_mongrel
"$LINENO" "maillock.h" "ac_cv_header_maillock_h" "$ac_includes_default"
14067 if test "x$ac_cv_header_maillock_h" = x
""yes; then :
14068 cat >>confdefs.h
<<_ACEOF
14069 #define HAVE_MAILLOCK_H 1
14078 ## Define MAIL_USE_FLOCK (or LOCKF) if the mailer uses flock (or lockf) to
14079 ## interlock access to the mail spool. The alternative is a lock file named
14080 ## /usr/spool/mail/$USER.lock.
14083 aix4-2
) mail_lock
="lockf" ;;
14085 gnu|freebsd|netbsd|openbsd|darwin|irix6-5
) mail_lock
="flock" ;;
14087 ## On GNU/Linux systems, both methods are used by various mail programs.
14088 ## I assume most people are using newer mailers that have heard of flock.
14089 ## Change this if you need to.
14090 ## Debian contains a patch which says: ``On Debian/GNU/Linux systems,
14091 ## configure gets the right answers, and that means *NOT* using flock.
14092 ## Using flock is guaranteed to be the wrong thing. See Debian Policy
14093 ## for details.'' and then uses `#ifdef DEBIAN'. Unfortunately the
14094 ## Debian maintainer hasn't provided a clean fix for Emacs.
14095 ## movemail.c will use `maillock' when MAILDIR, HAVE_LIBMAIL and
14096 ## HAVE_MAILLOCK_H are defined, so the following appears to be the
14097 ## correct logic. -- fx
14098 ## We must check for HAVE_LIBLOCKFILE too, as movemail does.
14099 ## liblockfile is a Free Software replacement for libmail, used on
14100 ## Debian systems and elsewhere. -rfr.
14103 if test $have_mail = yes ||
test $have_lockfile = yes; then
14104 test $ac_cv_header_maillock_h = yes && mail_lock
=no
14110 case "$mail_lock" in
14112 $as_echo "#define MAIL_USE_FLOCK 1" >>confdefs.h
14116 $as_echo "#define MAIL_USE_LOCKF 1" >>confdefs.h
14119 *) BLESSMAIL_TARGET
="need-blessmail" ;;
14124 for ac_func
in gethostname getdomainname \
14125 rename closedir mkdir
rmdir sysinfo getrusage get_current_dir_name \
14126 random lrand48 logb frexp fmod rint cbrt ftime setsid \
14127 strerror fpathconf
select euidaccess getpagesize tzset setlocale \
14128 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
14129 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm \
14130 sendto recvfrom getsockopt setsockopt getsockname getpeername \
14131 gai_strerror mkstemp getline getdelim mremap fsync sync \
14132 difftime mempcpy mblen mbrlen posix_memalign \
14133 cfmakeraw cfsetspeed copysign __executable_start
14135 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14136 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
14137 eval as_val
=\$
$as_ac_var
14138 if test "x$as_val" = x
""yes; then :
14139 cat >>confdefs.h
<<_ACEOF
14140 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_unwind_init" >&5
14148 $as_echo_n "checking for __builtin_unwind_init... " >&6; }
14149 if test "${emacs_cv_func___builtin_unwind_init+set}" = set; then :
14150 $as_echo_n "(cached) " >&6
14152 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14153 /* end confdefs.h. */
14158 __builtin_unwind_init ();
14163 if ac_fn_c_try_link
"$LINENO"; then :
14164 emacs_cv_func___builtin_unwind_init
=yes
14166 emacs_cv_func___builtin_unwind_init
=no
14168 rm -f core conftest.err conftest.
$ac_objext \
14169 conftest
$ac_exeext conftest.
$ac_ext
14171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func___builtin_unwind_init" >&5
14172 $as_echo "$emacs_cv_func___builtin_unwind_init" >&6; }
14173 if test $emacs_cv_func___builtin_unwind_init = yes; then
14175 $as_echo "#define HAVE___BUILTIN_UNWIND_INIT 1" >>confdefs.h
14179 for ac_header
in sys
/un.h
14181 ac_fn_c_check_header_mongrel
"$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default"
14182 if test "x$ac_cv_header_sys_un_h" = x
""yes; then :
14183 cat >>confdefs.h
<<_ACEOF
14184 #define HAVE_SYS_UN_H 1
14192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
14193 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
14194 if test "${ac_cv_sys_largefile_source+set}" = set; then :
14195 $as_echo_n "(cached) " >&6
14198 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14199 /* end confdefs.h. */
14200 #include <sys/types.h> /* for off_t */
14205 int (*fp) (FILE *, off_t, int) = fseeko;
14206 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
14211 if ac_fn_c_try_link
"$LINENO"; then :
14212 ac_cv_sys_largefile_source
=no
; break
14214 rm -f core conftest.err conftest.
$ac_objext \
14215 conftest
$ac_exeext conftest.
$ac_ext
14216 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14217 /* end confdefs.h. */
14218 #define _LARGEFILE_SOURCE 1
14219 #include <sys/types.h> /* for off_t */
14224 int (*fp) (FILE *, off_t, int) = fseeko;
14225 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
14230 if ac_fn_c_try_link
"$LINENO"; then :
14231 ac_cv_sys_largefile_source
=1; break
14233 rm -f core conftest.err conftest.
$ac_objext \
14234 conftest
$ac_exeext conftest.
$ac_ext
14235 ac_cv_sys_largefile_source
=unknown
14239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
14240 $as_echo "$ac_cv_sys_largefile_source" >&6; }
14241 case $ac_cv_sys_largefile_source in #(
14244 cat >>confdefs.h
<<_ACEOF
14245 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
14251 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
14252 # in glibc 2.1.3, but that breaks too many other things.
14253 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
14254 if test $ac_cv_sys_largefile_source != unknown
; then
14256 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
14261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5
14262 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
14263 if test "${ac_cv_func_getpgrp_void+set}" = set; then :
14264 $as_echo_n "(cached) " >&6
14266 # Use it with a single arg.
14267 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14268 /* end confdefs.h. */
14269 $ac_includes_default
14278 if ac_fn_c_try_compile
"$LINENO"; then :
14279 ac_cv_func_getpgrp_void
=no
14281 ac_cv_func_getpgrp_void
=yes
14283 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5
14287 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
14288 if test $ac_cv_func_getpgrp_void = yes; then
14290 $as_echo "#define GETPGRP_VOID 1" >>confdefs.h
14296 for ac_func
in grantpt
14298 ac_fn_c_check_func
"$LINENO" "grantpt" "ac_cv_func_grantpt"
14299 if test "x$ac_cv_func_grantpt" = x
""yes; then :
14300 cat >>confdefs.h
<<_ACEOF
14301 #define HAVE_GRANTPT 1
14308 # PTY-related GNU extensions.
14309 for ac_func
in getpt
14311 ac_fn_c_check_func
"$LINENO" "getpt" "ac_cv_func_getpt"
14312 if test "x$ac_cv_func_getpt" = x
""yes; then :
14313 cat >>confdefs.h
<<_ACEOF
14314 #define HAVE_GETPT 1
14321 # Check this now, so that we will NOT find the above functions in ncurses.
14322 # That is because we have not set up to link ncurses in lib-src.
14323 # It's better to believe a function is not available
14324 # than to expect to find it in ncurses.
14325 # Also we need tputs and friends to be able to build at all.
14326 have_tputs_et_al
=true
14327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tputs" >&5
14328 $as_echo_n "checking for library containing tputs... " >&6; }
14329 if test "${ac_cv_search_tputs+set}" = set; then :
14330 $as_echo_n "(cached) " >&6
14332 ac_func_search_save_LIBS
=$LIBS
14333 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14334 /* end confdefs.h. */
14336 /* Override any GCC internal prototype to avoid an error.
14337 Use char because int might match the return type of a GCC
14338 builtin and then its argument prototype would still apply. */
14351 for ac_lib
in '' ncurses terminfo termcap
; do
14352 if test -z "$ac_lib"; then
14353 ac_res
="none required"
14356 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
14358 if ac_fn_c_try_link
"$LINENO"; then :
14359 ac_cv_search_tputs
=$ac_res
14361 rm -f core conftest.err conftest.
$ac_objext \
14363 if test "${ac_cv_search_tputs+set}" = set; then :
14367 if test "${ac_cv_search_tputs+set}" = set; then :
14370 ac_cv_search_tputs
=no
14372 rm conftest.
$ac_ext
14373 LIBS
=$ac_func_search_save_LIBS
14375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tputs" >&5
14376 $as_echo "$ac_cv_search_tputs" >&6; }
14377 ac_res
=$ac_cv_search_tputs
14378 if test "$ac_res" != no
; then :
14379 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
14382 have_tputs_et_al
=false
14385 if test "$have_tputs_et_al" != true
; then
14386 as_fn_error
"I couldn't find termcap functions (tputs and friends).
14387 Maybe some development libraries/packages are missing? Try installing
14388 libncurses-dev(el), libterminfo-dev(el) or similar." "$LINENO" 5
14390 # Must define this when any termcap library is found.
14392 $as_echo "#define HAVE_LIBNCURSES 1" >>confdefs.h
14394 ## FIXME This was the cpp logic, but I am not sure it is right.
14395 ## The above test has not necessarily found libncurses.
14396 HAVE_LIBNCURSES
=yes
14398 ## Use terminfo instead of termcap?
14399 ## Note only system files NOT using terminfo are:
14400 ## freebsd < 40000, ms-w32, msdos, netbsd < 599002500, and
14401 ## darwin|gnu without ncurses.
14405 ## cygwin: Fewer environment variables to go wrong, more terminal types.
14406 ## hpux10-20: Use the system provided termcap(3) library.
14407 ## openbsd: David Mazieres <dm@reeducation-labor.lcs.mit.edu> says this
14408 ## is necessary. Otherwise Emacs dumps core when run -nw.
14409 aix4-2|cygwin|hpux
*|irix6-5|openbsd|sol2
*|unixware
) TERMINFO
=yes ;;
14411 ## darwin: Prevents crashes when running Emacs in Terminal.app under 10.2.
14412 ## The ncurses library has been moved out of the System framework in
14413 ## Mac OS X 10.2. So if configure detects it, set the command-line
14414 ## option to use it.
14416 ## (HAVE_LIBNCURSES was not always true, but is since 2010-03-18.)
14417 if test "x$HAVE_LIBNCURSES" = "xyes"; then
14419 LIBS_TERMCAP
="-lncurses"
14424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FreeBSD is new enough to use terminfo" >&5
14425 $as_echo_n "checking whether FreeBSD is new enough to use terminfo... " >&6; }
14426 if test "${emacs_cv_freebsd_terminfo+set}" = set; then :
14427 $as_echo_n "(cached) " >&6
14429 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14430 /* end confdefs.h. */
14431 #include <osreldate.h>
14435 #if __FreeBSD_version < 400000
14443 if ac_fn_c_try_link
"$LINENO"; then :
14444 emacs_cv_freebsd_terminfo
=yes
14446 emacs_cv_freebsd_terminfo
=no
14448 rm -f core conftest.err conftest.
$ac_objext \
14449 conftest
$ac_exeext conftest.
$ac_ext
14453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_freebsd_terminfo" >&5
14454 $as_echo "$emacs_cv_freebsd_terminfo" >&6; }
14456 if test $emacs_cv_freebsd_terminfo = yes; then
14458 LIBS_TERMCAP
="-lncurses"
14460 LIBS_TERMCAP
="-ltermcap"
14465 if test $ac_cv_search_tputs = -lterminfo; then
14467 LIBS_TERMCAP
="-lterminfo"
14469 LIBS_TERMCAP
="-ltermcap"
14476 ## hpux: Make sure we get select from libc rather than from libcurses
14477 ## because libcurses on HPUX 10.10 has a broken version of select.
14478 ## We used to use -lc -lcurses, but this may be cleaner.
14479 hpux
*) LIBS_TERMCAP
="-ltermcap" ;;
14481 openbsd
) LIBS_TERMCAP
="-lncurses" ;;
14483 ## Must use system termcap, if we use any termcap. It does special things.
14484 sol2
*) test "$TERMINFO" != yes && LIBS_TERMCAP
="-ltermcap" ;;
14487 TERMCAP_OBJ
=tparam.o
14488 if test $TERMINFO = yes; then
14490 $as_echo "#define TERMINFO 1" >>confdefs.h
14493 ## Default used to be -ltermcap. Add a case above if need something else.
14494 test "x$LIBS_TERMCAP" = "x" && LIBS_TERMCAP
="-lcurses"
14496 TERMCAP_OBJ
=terminfo.o
14502 # Do we have res_init, for detecting changes in /etc/resolv.conf?
14504 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14505 /* end confdefs.h. */
14506 #include <netinet/in.h>
14507 #include <arpa/nameser.h>
14508 #include <resolv.h>
14517 if ac_fn_c_try_link
"$LINENO"; then :
14522 rm -f core conftest.err conftest.
$ac_objext \
14523 conftest
$ac_exeext conftest.
$ac_ext
14524 if test "$have_res_init" = no
; then
14526 LIBS
="$LIBS -lresolv"
14527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5
14528 $as_echo_n "checking for res_init with -lresolv... " >&6; }
14529 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14530 /* end confdefs.h. */
14531 #include <netinet/in.h>
14532 #include <arpa/nameser.h>
14533 #include <resolv.h>
14542 if ac_fn_c_try_link
"$LINENO"; then :
14547 rm -f core conftest.err conftest.
$ac_objext \
14548 conftest
$ac_exeext conftest.
$ac_ext
14549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5
14550 $as_echo "$have_res_init" >&6; }
14551 if test "$have_res_init" = yes ; then
14557 if test "$have_res_init" = yes; then
14559 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
14563 # Do we need the Hesiod library to provide the support routines?
14565 if test "$with_hesiod" != no
; then
14566 # Don't set $LIBS here -- see comments above. FIXME which comments?
14567 ac_fn_c_check_func
"$LINENO" "res_send" "ac_cv_func_res_send"
14568 if test "x$ac_cv_func_res_send" = x
""yes; then :
14571 ac_fn_c_check_func
"$LINENO" "__res_send" "ac_cv_func___res_send"
14572 if test "x$ac_cv_func___res_send" = x
""yes; then :
14575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5
14576 $as_echo_n "checking for res_send in -lresolv... " >&6; }
14577 if test "${ac_cv_lib_resolv_res_send+set}" = set; then :
14578 $as_echo_n "(cached) " >&6
14580 ac_check_lib_save_LIBS
=$LIBS
14581 LIBS
="-lresolv $LIBS"
14582 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14583 /* end confdefs.h. */
14585 /* Override any GCC internal prototype to avoid an error.
14586 Use char because int might match the return type of a GCC
14587 builtin and then its argument prototype would still apply. */
14595 return res_send ();
14600 if ac_fn_c_try_link
"$LINENO"; then :
14601 ac_cv_lib_resolv_res_send
=yes
14603 ac_cv_lib_resolv_res_send
=no
14605 rm -f core conftest.err conftest.
$ac_objext \
14606 conftest
$ac_exeext conftest.
$ac_ext
14607 LIBS
=$ac_check_lib_save_LIBS
14609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5
14610 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
14611 if test "x$ac_cv_lib_resolv_res_send" = x
""yes; then :
14614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5
14615 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
14616 if test "${ac_cv_lib_resolv___res_send+set}" = set; then :
14617 $as_echo_n "(cached) " >&6
14619 ac_check_lib_save_LIBS
=$LIBS
14620 LIBS
="-lresolv $LIBS"
14621 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14622 /* end confdefs.h. */
14624 /* Override any GCC internal prototype to avoid an error.
14625 Use char because int might match the return type of a GCC
14626 builtin and then its argument prototype would still apply. */
14630 char __res_send ();
14634 return __res_send ();
14639 if ac_fn_c_try_link
"$LINENO"; then :
14640 ac_cv_lib_resolv___res_send
=yes
14642 ac_cv_lib_resolv___res_send
=no
14644 rm -f core conftest.err conftest.
$ac_objext \
14645 conftest
$ac_exeext conftest.
$ac_ext
14646 LIBS
=$ac_check_lib_save_LIBS
14648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5
14649 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
14650 if test "x$ac_cv_lib_resolv___res_send" = x
""yes; then :
14660 if test "$resolv" = yes ; then
14665 ac_fn_c_check_func
"$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost"
14666 if test "x$ac_cv_func_hes_getmailhost" = x
""yes; then :
14669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5
14670 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
14671 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then :
14672 $as_echo_n "(cached) " >&6
14674 ac_check_lib_save_LIBS
=$LIBS
14675 LIBS
="-lhesiod $RESOLVLIB $LIBS"
14676 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14677 /* end confdefs.h. */
14679 /* Override any GCC internal prototype to avoid an error.
14680 Use char because int might match the return type of a GCC
14681 builtin and then its argument prototype would still apply. */
14685 char hes_getmailhost ();
14689 return hes_getmailhost ();
14694 if ac_fn_c_try_link
"$LINENO"; then :
14695 ac_cv_lib_hesiod_hes_getmailhost
=yes
14697 ac_cv_lib_hesiod_hes_getmailhost
=no
14699 rm -f core conftest.err conftest.
$ac_objext \
14700 conftest
$ac_exeext conftest.
$ac_ext
14701 LIBS
=$ac_check_lib_save_LIBS
14703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
14704 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
14705 if test "x$ac_cv_lib_hesiod_hes_getmailhost" = x
""yes; then :
14714 if test x
"$hesiod" = xyes
; then
14716 $as_echo "#define HAVE_LIBHESIOD 1" >>confdefs.h
14723 # Do we need libresolv (due to res_init or Hesiod)?
14724 if test "$resolv" = yes ; then
14726 $as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
14734 # These tell us which Kerberos-related libraries to use.
14741 if test "${with_kerberos}" != no
; then
14742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
14743 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
14744 if test "${ac_cv_lib_com_err_com_err+set}" = set; then :
14745 $as_echo_n "(cached) " >&6
14747 ac_check_lib_save_LIBS
=$LIBS
14748 LIBS
="-lcom_err $LIBS"
14749 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14750 /* end confdefs.h. */
14752 /* Override any GCC internal prototype to avoid an error.
14753 Use char because int might match the return type of a GCC
14754 builtin and then its argument prototype would still apply. */
14767 if ac_fn_c_try_link
"$LINENO"; then :
14768 ac_cv_lib_com_err_com_err
=yes
14770 ac_cv_lib_com_err_com_err
=no
14772 rm -f core conftest.err conftest.
$ac_objext \
14773 conftest
$ac_exeext conftest.
$ac_ext
14774 LIBS
=$ac_check_lib_save_LIBS
14776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
14777 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
14778 if test "x$ac_cv_lib_com_err_com_err" = x
""yes; then :
14784 if test $have_com_err = yes; then
14785 COM_ERRLIB
=-lcom_err
14786 LIBS
="$COM_ERRLIB $LIBS"
14788 $as_echo "#define HAVE_LIBCOM_ERR 1" >>confdefs.h
14791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5
14792 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
14793 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then :
14794 $as_echo_n "(cached) " >&6
14796 ac_check_lib_save_LIBS
=$LIBS
14797 LIBS
="-lcrypto $LIBS"
14798 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14799 /* end confdefs.h. */
14801 /* Override any GCC internal prototype to avoid an error.
14802 Use char because int might match the return type of a GCC
14803 builtin and then its argument prototype would still apply. */
14807 char mit_des_cbc_encrypt ();
14811 return mit_des_cbc_encrypt ();
14816 if ac_fn_c_try_link
"$LINENO"; then :
14817 ac_cv_lib_crypto_mit_des_cbc_encrypt
=yes
14819 ac_cv_lib_crypto_mit_des_cbc_encrypt
=no
14821 rm -f core conftest.err conftest.
$ac_objext \
14822 conftest
$ac_exeext conftest.
$ac_ext
14823 LIBS
=$ac_check_lib_save_LIBS
14825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
14826 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
14827 if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = x
""yes; then :
14833 if test $have_crypto = yes; then
14835 LIBS
="$CRYPTOLIB $LIBS"
14837 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
14840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
14841 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
14842 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then :
14843 $as_echo_n "(cached) " >&6
14845 ac_check_lib_save_LIBS
=$LIBS
14846 LIBS
="-lk5crypto $LIBS"
14847 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14848 /* end confdefs.h. */
14850 /* Override any GCC internal prototype to avoid an error.
14851 Use char because int might match the return type of a GCC
14852 builtin and then its argument prototype would still apply. */
14856 char mit_des_cbc_encrypt ();
14860 return mit_des_cbc_encrypt ();
14865 if ac_fn_c_try_link
"$LINENO"; then :
14866 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=yes
14868 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=no
14870 rm -f core conftest.err conftest.
$ac_objext \
14871 conftest
$ac_exeext conftest.
$ac_ext
14872 LIBS
=$ac_check_lib_save_LIBS
14874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
14875 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
14876 if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = x
""yes; then :
14882 if test $have_k5crypto = yes; then
14883 CRYPTOLIB
=-lk5crypto
14884 LIBS
="$CRYPTOLIB $LIBS"
14886 $as_echo "#define HAVE_LIBK5CRYPTO 1" >>confdefs.h
14889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
14890 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
14891 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then :
14892 $as_echo_n "(cached) " >&6
14894 ac_check_lib_save_LIBS
=$LIBS
14895 LIBS
="-lkrb5 $LIBS"
14896 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14897 /* end confdefs.h. */
14899 /* Override any GCC internal prototype to avoid an error.
14900 Use char because int might match the return type of a GCC
14901 builtin and then its argument prototype would still apply. */
14905 char krb5_init_context ();
14909 return krb5_init_context ();
14914 if ac_fn_c_try_link
"$LINENO"; then :
14915 ac_cv_lib_krb5_krb5_init_context
=yes
14917 ac_cv_lib_krb5_krb5_init_context
=no
14919 rm -f core conftest.err conftest.
$ac_objext \
14920 conftest
$ac_exeext conftest.
$ac_ext
14921 LIBS
=$ac_check_lib_save_LIBS
14923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
14924 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
14925 if test "x$ac_cv_lib_krb5_krb5_init_context" = x
""yes; then :
14931 if test $have_krb5=yes; then
14933 LIBS
="$KRB5LIB $LIBS"
14935 $as_echo "#define HAVE_LIBKRB5 1" >>confdefs.h
14938 if test "${with_kerberos5}" = no
; then
14939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
14940 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
14941 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then :
14942 $as_echo_n "(cached) " >&6
14944 ac_check_lib_save_LIBS
=$LIBS
14945 LIBS
="-ldes425 $LIBS"
14946 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14947 /* end confdefs.h. */
14949 /* Override any GCC internal prototype to avoid an error.
14950 Use char because int might match the return type of a GCC
14951 builtin and then its argument prototype would still apply. */
14955 char des_cbc_encrypt ();
14959 return des_cbc_encrypt ();
14964 if ac_fn_c_try_link
"$LINENO"; then :
14965 ac_cv_lib_des425_des_cbc_encrypt
=yes
14967 ac_cv_lib_des425_des_cbc_encrypt
=no
14969 rm -f core conftest.err conftest.
$ac_objext \
14970 conftest
$ac_exeext conftest.
$ac_ext
14971 LIBS
=$ac_check_lib_save_LIBS
14973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
14974 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
14975 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = x
""yes; then :
14981 if test $have_des425 = yes; then
14983 LIBS
="$DESLIB $LIBS"
14985 $as_echo "#define HAVE_LIBDES425 1" >>confdefs.h
14988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
14989 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
14990 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then :
14991 $as_echo_n "(cached) " >&6
14993 ac_check_lib_save_LIBS
=$LIBS
14995 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14996 /* end confdefs.h. */
14998 /* Override any GCC internal prototype to avoid an error.
14999 Use char because int might match the return type of a GCC
15000 builtin and then its argument prototype would still apply. */
15004 char des_cbc_encrypt ();
15008 return des_cbc_encrypt ();
15013 if ac_fn_c_try_link
"$LINENO"; then :
15014 ac_cv_lib_des_des_cbc_encrypt
=yes
15016 ac_cv_lib_des_des_cbc_encrypt
=no
15018 rm -f core conftest.err conftest.
$ac_objext \
15019 conftest
$ac_exeext conftest.
$ac_ext
15020 LIBS
=$ac_check_lib_save_LIBS
15022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
15023 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
15024 if test "x$ac_cv_lib_des_des_cbc_encrypt" = x
""yes; then :
15030 if test $have_des = yes; then
15032 LIBS
="$DESLIB $LIBS"
15034 $as_echo "#define HAVE_LIBDES 1" >>confdefs.h
15038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5
15039 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
15040 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then :
15041 $as_echo_n "(cached) " >&6
15043 ac_check_lib_save_LIBS
=$LIBS
15044 LIBS
="-lkrb4 $LIBS"
15045 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15046 /* end confdefs.h. */
15048 /* Override any GCC internal prototype to avoid an error.
15049 Use char because int might match the return type of a GCC
15050 builtin and then its argument prototype would still apply. */
15054 char krb_get_cred ();
15058 return krb_get_cred ();
15063 if ac_fn_c_try_link
"$LINENO"; then :
15064 ac_cv_lib_krb4_krb_get_cred
=yes
15066 ac_cv_lib_krb4_krb_get_cred
=no
15068 rm -f core conftest.err conftest.
$ac_objext \
15069 conftest
$ac_exeext conftest.
$ac_ext
15070 LIBS
=$ac_check_lib_save_LIBS
15072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5
15073 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
15074 if test "x$ac_cv_lib_krb4_krb_get_cred" = x
""yes; then :
15080 if test $have_krb4 = yes; then
15082 LIBS
="$KRB4LIB $LIBS"
15084 $as_echo "#define HAVE_LIBKRB4 1" >>confdefs.h
15087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5
15088 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
15089 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then :
15090 $as_echo_n "(cached) " >&6
15092 ac_check_lib_save_LIBS
=$LIBS
15094 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15095 /* end confdefs.h. */
15097 /* Override any GCC internal prototype to avoid an error.
15098 Use char because int might match the return type of a GCC
15099 builtin and then its argument prototype would still apply. */
15103 char krb_get_cred ();
15107 return krb_get_cred ();
15112 if ac_fn_c_try_link
"$LINENO"; then :
15113 ac_cv_lib_krb_krb_get_cred
=yes
15115 ac_cv_lib_krb_krb_get_cred
=no
15117 rm -f core conftest.err conftest.
$ac_objext \
15118 conftest
$ac_exeext conftest.
$ac_ext
15119 LIBS
=$ac_check_lib_save_LIBS
15121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5
15122 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
15123 if test "x$ac_cv_lib_krb_krb_get_cred" = x
""yes; then :
15129 if test $have_krb = yes; then
15131 LIBS
="$KRB4LIB $LIBS"
15133 $as_echo "#define HAVE_LIBKRB 1" >>confdefs.h
15139 if test "${with_kerberos5}" != no
; then
15140 for ac_header
in krb5.h
15142 ac_fn_c_check_header_mongrel
"$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
15143 if test "x$ac_cv_header_krb5_h" = x
""yes; then :
15144 cat >>confdefs.h
<<_ACEOF
15145 #define HAVE_KRB5_H 1
15147 ac_fn_c_check_member
"$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h>
15149 if test "x$ac_cv_member_krb5_error_text" = x
""yes; then :
15151 cat >>confdefs.h
<<_ACEOF
15152 #define HAVE_KRB5_ERROR_TEXT 1
15157 ac_fn_c_check_member
"$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h>
15159 if test "x$ac_cv_member_krb5_error_e_text" = x
""yes; then :
15161 cat >>confdefs.h
<<_ACEOF
15162 #define HAVE_KRB5_ERROR_E_TEXT 1
15173 for ac_header
in des.h
15175 ac_fn_c_check_header_mongrel
"$LINENO" "des.h" "ac_cv_header_des_h" "$ac_includes_default"
15176 if test "x$ac_cv_header_des_h" = x
""yes; then :
15177 cat >>confdefs.h
<<_ACEOF
15178 #define HAVE_DES_H 1
15182 for ac_header
in kerberosIV
/des.h
15184 ac_fn_c_check_header_mongrel
"$LINENO" "kerberosIV/des.h" "ac_cv_header_kerberosIV_des_h" "$ac_includes_default"
15185 if test "x$ac_cv_header_kerberosIV_des_h" = x
""yes; then :
15186 cat >>confdefs.h
<<_ACEOF
15187 #define HAVE_KERBEROSIV_DES_H 1
15191 for ac_header
in kerberos
/des.h
15193 ac_fn_c_check_header_mongrel
"$LINENO" "kerberos/des.h" "ac_cv_header_kerberos_des_h" "$ac_includes_default"
15194 if test "x$ac_cv_header_kerberos_des_h" = x
""yes; then :
15195 cat >>confdefs.h
<<_ACEOF
15196 #define HAVE_KERBEROS_DES_H 1
15211 for ac_header
in krb.h
15213 ac_fn_c_check_header_mongrel
"$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
15214 if test "x$ac_cv_header_krb_h" = x
""yes; then :
15215 cat >>confdefs.h
<<_ACEOF
15216 #define HAVE_KRB_H 1
15220 for ac_header
in kerberosIV
/krb.h
15222 ac_fn_c_check_header_mongrel
"$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default"
15223 if test "x$ac_cv_header_kerberosIV_krb_h" = x
""yes; then :
15224 cat >>confdefs.h
<<_ACEOF
15225 #define HAVE_KERBEROSIV_KRB_H 1
15229 for ac_header
in kerberos
/krb.h
15231 ac_fn_c_check_header_mongrel
"$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default"
15232 if test "x$ac_cv_header_kerberos_krb_h" = x
""yes; then :
15233 cat >>confdefs.h
<<_ACEOF
15234 #define HAVE_KERBEROS_KRB_H 1
15250 for ac_header
in com_err.h
15252 ac_fn_c_check_header_mongrel
"$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default"
15253 if test "x$ac_cv_header_com_err_h" = x
""yes; then :
15254 cat >>confdefs.h
<<_ACEOF
15255 #define HAVE_COM_ERR_H 1
15270 # Solaris requires -lintl if you want strerror (which calls dgettext)
15271 # to return localized messages.
15272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in -lintl" >&5
15273 $as_echo_n "checking for dgettext in -lintl... " >&6; }
15274 if test "${ac_cv_lib_intl_dgettext+set}" = set; then :
15275 $as_echo_n "(cached) " >&6
15277 ac_check_lib_save_LIBS
=$LIBS
15278 LIBS
="-lintl $LIBS"
15279 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15280 /* end confdefs.h. */
15282 /* Override any GCC internal prototype to avoid an error.
15283 Use char because int might match the return type of a GCC
15284 builtin and then its argument prototype would still apply. */
15292 return dgettext ();
15297 if ac_fn_c_try_link
"$LINENO"; then :
15298 ac_cv_lib_intl_dgettext
=yes
15300 ac_cv_lib_intl_dgettext
=no
15302 rm -f core conftest.err conftest.
$ac_objext \
15303 conftest
$ac_exeext conftest.
$ac_ext
15304 LIBS
=$ac_check_lib_save_LIBS
15306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dgettext" >&5
15307 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
15308 if test "x$ac_cv_lib_intl_dgettext" = x
""yes; then :
15309 cat >>confdefs.h
<<_ACEOF
15310 #define HAVE_LIBINTL 1
15313 LIBS
="-lintl $LIBS"
15318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5
15319 $as_echo_n "checking whether localtime caches TZ... " >&6; }
15320 if test "${emacs_cv_localtime_cache+set}" = set; then :
15321 $as_echo_n "(cached) " >&6
15323 if test x
$ac_cv_func_tzset = xyes
; then
15324 if test "$cross_compiling" = yes; then :
15325 # If we have tzset, assume the worst when cross-compiling.
15326 emacs_cv_localtime_cache
=yes
15328 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15329 /* end confdefs.h. */
15331 char TZ_GMT0[] = "TZ=GMT0";
15332 char TZ_PST8[] = "TZ=PST8";
15335 time_t now = time ((time_t *) 0);
15336 int hour_GMT0, hour_unset;
15337 if (putenv (TZ_GMT0) != 0)
15339 hour_GMT0 = localtime (&now)->tm_hour;
15341 hour_unset = localtime (&now)->tm_hour;
15342 if (putenv (TZ_PST8) != 0)
15344 if (localtime (&now)->tm_hour == hour_GMT0)
15347 if (localtime (&now)->tm_hour != hour_unset)
15352 if ac_fn_c_try_run
"$LINENO"; then :
15353 emacs_cv_localtime_cache
=no
15355 emacs_cv_localtime_cache
=yes
15357 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15358 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15362 # If we lack tzset, report that localtime does not cache TZ,
15363 # since we can't invalidate the cache if we don't have tzset.
15364 emacs_cv_localtime_cache
=no
15367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5
15368 $as_echo "$emacs_cv_localtime_cache" >&6; }
15369 if test $emacs_cv_localtime_cache = yes; then
15371 $as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h
15375 if test "x$HAVE_TIMEVAL" = xyes
; then
15376 for ac_func
in gettimeofday
15378 ac_fn_c_check_func
"$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
15379 if test "x$ac_cv_func_gettimeofday" = x
""yes; then :
15380 cat >>confdefs.h
<<_ACEOF
15381 #define HAVE_GETTIMEOFDAY 1
15387 if test $ac_cv_func_gettimeofday = yes; then
15388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday can accept two arguments" >&5
15389 $as_echo_n "checking whether gettimeofday can accept two arguments... " >&6; }
15390 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then :
15391 $as_echo_n "(cached) " >&6
15393 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15394 /* end confdefs.h. */
15396 #ifdef TIME_WITH_SYS_TIME
15397 #include <sys/time.h>
15400 #ifdef HAVE_SYS_TIME_H
15401 #include <sys/time.h>
15409 struct timeval time;
15410 gettimeofday (&time, 0);
15415 if ac_fn_c_try_compile
"$LINENO"; then :
15416 emacs_cv_gettimeofday_two_arguments
=yes
15418 emacs_cv_gettimeofday_two_arguments
=no
15420 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_gettimeofday_two_arguments" >&5
15423 $as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; }
15424 if test $emacs_cv_gettimeofday_two_arguments = no
; then
15426 $as_echo "#define GETTIMEOFDAY_ONE_ARGUMENT 1" >>confdefs.h
15433 ac_fn_c_check_func
"$LINENO" "socket" "ac_cv_func_socket"
15434 if test "x$ac_cv_func_socket" = x
""yes; then :
15440 if test $ok_so_far = yes; then
15441 ac_fn_c_check_header_mongrel
"$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
15442 if test "x$ac_cv_header_netinet_in_h" = x
""yes; then :
15450 if test $ok_so_far = yes; then
15451 ac_fn_c_check_header_mongrel
"$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
15452 if test "x$ac_cv_header_arpa_inet_h" = x
""yes; then :
15460 if test $ok_so_far = yes; then
15462 $as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h
15466 if test -f /usr
/lpp
/X11
/bin
/smt.exp
; then
15468 $as_echo "#define HAVE_AIX_SMT_EXP 1" >>confdefs.h
15472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports dynamic ptys" >&5
15473 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
15474 if test -d /dev
/pts
&& ls -d /dev
/ptmx
> /dev
/null
2>&1 ; then
15475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15476 $as_echo "yes" >&6; }
15478 $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
15481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15482 $as_echo "no" >&6; }
15485 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
15486 if test "x$ac_cv_type_pid_t" = x
""yes; then :
15490 cat >>confdefs.h
<<_ACEOF
15496 for ac_header
in vfork.h
15498 ac_fn_c_check_header_mongrel
"$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
15499 if test "x$ac_cv_header_vfork_h" = x
""yes; then :
15500 cat >>confdefs.h
<<_ACEOF
15501 #define HAVE_VFORK_H 1
15508 for ac_func
in fork vfork
15510 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15511 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
15512 eval as_val
=\$
$as_ac_var
15513 if test "x$as_val" = x
""yes; then :
15514 cat >>confdefs.h
<<_ACEOF
15515 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15521 if test "x$ac_cv_func_fork" = xyes
; then
15522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
15523 $as_echo_n "checking for working fork... " >&6; }
15524 if test "${ac_cv_func_fork_works+set}" = set; then :
15525 $as_echo_n "(cached) " >&6
15527 if test "$cross_compiling" = yes; then :
15528 ac_cv_func_fork_works
=cross
15530 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15531 /* end confdefs.h. */
15532 $ac_includes_default
15537 /* By Ruediger Kuhlmann. */
15538 return fork () < 0;
15544 if ac_fn_c_try_run
"$LINENO"; then :
15545 ac_cv_func_fork_works
=yes
15547 ac_cv_func_fork_works
=no
15549 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15550 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
15555 $as_echo "$ac_cv_func_fork_works" >&6; }
15558 ac_cv_func_fork_works
=$ac_cv_func_fork
15560 if test "x$ac_cv_func_fork_works" = xcross
; then
15562 *-*-amigaos* |
*-*-msdosdjgpp*)
15563 # Override, as these systems have only a dummy fork() stub
15564 ac_cv_func_fork_works
=no
15567 ac_cv_func_fork_works
=yes
15570 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
15571 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
15573 ac_cv_func_vfork_works
=$ac_cv_func_vfork
15574 if test "x$ac_cv_func_vfork" = xyes
; then
15575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
15576 $as_echo_n "checking for working vfork... " >&6; }
15577 if test "${ac_cv_func_vfork_works+set}" = set; then :
15578 $as_echo_n "(cached) " >&6
15580 if test "$cross_compiling" = yes; then :
15581 ac_cv_func_vfork_works
=cross
15583 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15584 /* end confdefs.h. */
15585 /* Thanks to Paul Eggert for this test. */
15586 $ac_includes_default
15587 #include <sys/wait.h>
15588 #ifdef HAVE_VFORK_H
15589 # include <vfork.h>
15591 /* On some sparc systems, changes by the child to local and incoming
15592 argument registers are propagated back to the parent. The compiler
15593 is told about this with #include <vfork.h>, but some compilers
15594 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
15595 static variable whose address is put into a register that is
15596 clobbered by the vfork. */
15599 sparc_address_test (int arg)
15601 sparc_address_test (arg) int arg;
15604 static pid_t child;
15622 pid_t parent = getpid ();
15625 sparc_address_test (0);
15630 /* Here is another test for sparc vfork register problems. This
15631 test uses lots of local variables, at least as many local
15632 variables as main has allocated so far including compiler
15633 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
15634 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
15635 reuse the register of parent for one of the local variables,
15636 since it will think that parent can't possibly be used any more
15637 in this routine. Assigning to the local variable will thus
15638 munge parent in the parent process. */
15640 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
15641 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
15642 /* Convince the compiler that p..p7 are live; otherwise, it might
15643 use the same hardware register for all 8 local variables. */
15644 if (p != p1 || p != p2 || p != p3 || p != p4
15645 || p != p5 || p != p6 || p != p7)
15648 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
15649 from child file descriptors. If the child closes a descriptor
15650 before it execs or exits, this munges the parent's descriptor
15651 as well. Test for this by closing stdout in the child. */
15652 _exit(close(fileno(stdout)) != 0);
15657 while (wait(&status) != child)
15660 /* Was there some problem with vforking? */
15663 /* Did the child fail? (This shouldn't happen.) */
15666 /* Did the vfork/compiler bug occur? */
15667 || parent != getpid()
15669 /* Did the file descriptor bug occur? */
15670 || fstat(fileno(stdout), &st) != 0
15675 if ac_fn_c_try_run
"$LINENO"; then :
15676 ac_cv_func_vfork_works
=yes
15678 ac_cv_func_vfork_works
=no
15680 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15681 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
15686 $as_echo "$ac_cv_func_vfork_works" >&6; }
15689 if test "x$ac_cv_func_fork_works" = xcross
; then
15690 ac_cv_func_vfork_works
=$ac_cv_func_vfork
15691 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
15692 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
15695 if test "x$ac_cv_func_vfork_works" = xyes
; then
15697 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
15701 $as_echo "#define vfork fork" >>confdefs.h
15704 if test "x$ac_cv_func_fork_works" = xyes
; then
15706 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
15711 for ac_func
in snprintf
15713 ac_fn_c_check_func
"$LINENO" "snprintf" "ac_cv_func_snprintf"
15714 if test "x$ac_cv_func_snprintf" = x
""yes; then :
15715 cat >>confdefs.h
<<_ACEOF
15716 #define HAVE_SNPRINTF 1
15723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
15724 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
15725 if test "${emacs_cv_langinfo_codeset+set}" = set; then :
15726 $as_echo_n "(cached) " >&6
15728 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15729 /* end confdefs.h. */
15730 #include <langinfo.h>
15734 char* cs = nl_langinfo(CODESET);
15739 if ac_fn_c_try_link
"$LINENO"; then :
15740 emacs_cv_langinfo_codeset
=yes
15742 emacs_cv_langinfo_codeset
=no
15744 rm -f core conftest.err conftest.
$ac_objext \
15745 conftest
$ac_exeext conftest.
$ac_ext
15748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5
15749 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
15750 if test $emacs_cv_langinfo_codeset = yes; then
15752 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
15756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
15757 $as_echo_n "checking for mbstate_t... " >&6; }
15758 if test "${ac_cv_type_mbstate_t+set}" = set; then :
15759 $as_echo_n "(cached) " >&6
15761 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15762 /* end confdefs.h. */
15763 $ac_includes_default
15764 # include <wchar.h>
15768 mbstate_t x; return sizeof x;
15773 if ac_fn_c_try_compile
"$LINENO"; then :
15774 ac_cv_type_mbstate_t
=yes
15776 ac_cv_type_mbstate_t
=no
15778 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
15781 $as_echo "$ac_cv_type_mbstate_t" >&6; }
15782 if test $ac_cv_type_mbstate_t = yes; then
15784 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
15788 $as_echo "#define mbstate_t int" >>confdefs.h
15792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5
15793 $as_echo_n "checking for C restricted array declarations... " >&6; }
15794 if test "${emacs_cv_c_restrict_arr+set}" = set; then :
15795 $as_echo_n "(cached) " >&6
15797 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15798 /* end confdefs.h. */
15799 void fred (int x[__restrict]);
15808 if ac_fn_c_try_compile
"$LINENO"; then :
15809 emacs_cv_c_restrict_arr
=yes
15811 emacs_cv_c_restrict_arr
=no
15813 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5
15816 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
15817 if test "$emacs_cv_c_restrict_arr" = yes; then
15819 $as_echo "#define __restrict_arr __restrict" >>confdefs.h
15824 # Set up the CFLAGS for real compilation, so we can substitute it.
15825 CFLAGS
="$REAL_CFLAGS"
15826 CPPFLAGS
="$REAL_CPPFLAGS"
15828 ## Hack to detect a buggy GCC version.
15829 if test "x$GCC" = xyes \
15830 && test x
"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
15831 && test x
"`echo $CFLAGS | grep '\-O[23]'`" != x \
15832 && test x
"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x
; then
15833 as_fn_error
"GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." "$LINENO" 5
15836 version
=$PACKAGE_VERSION
15838 ### Specify what sort of things we'll be editing into Makefile and config.h.
15839 ### Use configuration here uncanonicalized to avoid exceeding size limits.
15863 ## FIXME? Nothing uses @LD_SWITCH_X_SITE@.
15864 ## src/Makefile.in did add LD_SWITCH_X_SITE (as a cpp define) to the
15865 ## end of LIBX_BASE, but nothing ever set it.
15870 ## Used in lwlib/Makefile.in.
15872 if test -n "${machfile}"; then
15873 M_FILE
="\$(srcdir)/${machfile}"
15877 S_FILE
="\$(srcdir)/${opsysfile}"
15888 cat >>confdefs.h
<<_ACEOF
15889 #define EMACS_CONFIGURATION "${canonical}"
15893 cat >>confdefs.h
<<_ACEOF
15894 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
15897 if test -n "$machfile"; then
15899 cat >>confdefs.h
<<_ACEOF
15900 #define config_machfile "${machfile}"
15905 cat >>confdefs.h
<<_ACEOF
15906 #define config_opsysfile "${opsysfile}"
15913 if test "${HAVE_X_WINDOWS}" = "yes" ; then
15915 $as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h
15918 XOBJ
="xterm.o xfns.o xselect.o xrdb.o fontset.o xsmfns.o fringe.o image.o xsettings.o xgselect.o"
15920 if test "$HAVE_XFT" = "yes"; then
15921 FONT_OBJ
="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
15922 elif test "$HAVE_FREETYPE" = "yes"; then
15923 FONT_OBJ
="$FONT_OBJ ftfont.o ftxfont.o"
15933 if test "${USE_X_TOOLKIT}" != "none" ; then
15934 WIDGET_OBJ
=widget.o
15936 $as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h
15938 if test "${USE_X_TOOLKIT}" = "LUCID"; then
15940 $as_echo "#define USE_LUCID 1" >>confdefs.h
15942 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
15944 $as_echo "#define USE_MOTIF 1" >>confdefs.h
15949 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
15950 MOTIF_LIBW
="$MOTIF_LIBW -lXpm"
15954 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
15955 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
15956 MOTIF_LIBW
="MOTIF_LIBW -lXimp"
15960 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
15961 MOTIF_LIBW
="$MOTIF_LIBW -li18n"
15964 MOTIF_LIBW
="$MOTIF_LIBW $LIBXP"
15970 case "$USE_X_TOOLKIT" in
15971 MOTIF
) TOOLKIT_LIBW
="$MOTIF_LIBW" ;;
15972 LUCID
) TOOLKIT_LIBW
="$LUCID_LIBW" ;;
15973 none
) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW
="$GTK_LIBS" ;;
15977 if test "$USE_X_TOOLKIT" = "none"; then
15978 LIBXT_OTHER
="\$(LIBXSM)"
15979 OLDXMENU_TARGET
="really-oldXMenu"
15981 LIBXT_OTHER
="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext"
15982 OLDXMENU_TARGET
="really-lwlib"
15986 ## The X Menu stuff is present in the X10 distribution, but missing
15987 ## from X11. If we have X10, just use the installed library;
15988 ## otherwise, use our own copy.
15989 if test "${HAVE_X11}" = "yes" ; then
15991 $as_echo "#define HAVE_X11 1" >>confdefs.h
15994 if test "$USE_X_TOOLKIT" = "none"; then
15995 OLDXMENU
="\${oldXMenudir}/libXMenu11.a"
15997 OLDXMENU
="\${lwlibdir}/liblw.a"
15999 LIBXMENU
="\$(OLDXMENU)"
16000 LIBX_OTHER
="\$(LIBXT) \$(LIBX_EXTRA)"
16001 OLDXMENU_DEPS
="\${OLDXMENU} ../src/\${OLDXMENU}"
16003 ## For a syntactically valid Makefile; not actually used for anything.
16004 ## See comments in src/Makefile.in.
16006 ## FIXME This case (!HAVE_X11 && HAVE_X_WINDOWS) is no longer possible(?).
16007 if test "${HAVE_X_WINDOWS}" = "yes"; then
16016 if test "$HAVE_GTK" = "yes" ||
test "$HAVE_MENUS" != "yes"; then
16029 if test "${HAVE_MENUS}" = "yes" ; then
16031 $as_echo "#define HAVE_MENUS 1" >>confdefs.h
16035 if test "${GNU_MALLOC}" = "yes" ; then
16037 $as_echo "#define GNU_MALLOC 1" >>confdefs.h
16042 if test "${REL_ALLOC}" = "yes" ; then
16044 $as_echo "#define REL_ALLOC 1" >>confdefs.h
16047 test "$system_malloc" != "yes" && RALLOC_OBJ
=ralloc.o
16051 if test "$opsys" = "cygwin"; then
16052 CYGWIN_OBJ
="sheap.o"
16053 ## Cygwin differs because of its unexec().
16055 POST_ALLOC_OBJ
=lastfile.o
16058 PRE_ALLOC_OBJ
=lastfile.o
16065 # Configure gnulib here, now that we know LIBS.
16077 LIBC_FATAL_STDERR_
=1
16078 export LIBC_FATAL_STDERR_
16080 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
16081 # for constant arguments. Useless!
16082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
16083 $as_echo_n "checking for working alloca.h... " >&6; }
16084 if test "${ac_cv_working_alloca_h+set}" = set; then :
16085 $as_echo_n "(cached) " >&6
16087 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16088 /* end confdefs.h. */
16089 #include <alloca.h>
16093 char *p = (char *) alloca (2 * sizeof (int));
16099 if ac_fn_c_try_link
"$LINENO"; then :
16100 ac_cv_working_alloca_h
=yes
16102 ac_cv_working_alloca_h
=no
16104 rm -f core conftest.err conftest.
$ac_objext \
16105 conftest
$ac_exeext conftest.
$ac_ext
16107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
16108 $as_echo "$ac_cv_working_alloca_h" >&6; }
16109 if test $ac_cv_working_alloca_h = yes; then
16111 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
16115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
16116 $as_echo_n "checking for alloca... " >&6; }
16117 if test "${ac_cv_func_alloca_works+set}" = set; then :
16118 $as_echo_n "(cached) " >&6
16120 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16121 /* end confdefs.h. */
16123 # define alloca __builtin_alloca
16126 # include <malloc.h>
16127 # define alloca _alloca
16129 # ifdef HAVE_ALLOCA_H
16130 # include <alloca.h>
16135 # ifndef alloca /* predefined by HP cc +Olibcalls */
16146 char *p = (char *) alloca (1);
16152 if ac_fn_c_try_link
"$LINENO"; then :
16153 ac_cv_func_alloca_works
=yes
16155 ac_cv_func_alloca_works
=no
16157 rm -f core conftest.err conftest.
$ac_objext \
16158 conftest
$ac_exeext conftest.
$ac_ext
16160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
16161 $as_echo "$ac_cv_func_alloca_works" >&6; }
16163 if test $ac_cv_func_alloca_works = yes; then
16165 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
16168 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16169 # that cause trouble. Some versions do not even contain alloca or
16170 # contain a buggy version. If you still want to use their alloca,
16171 # use ar to extract alloca.o from them instead of compiling alloca.c.
16177 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
16179 $as_echo "#define C_ALLOCA 1" >>confdefs.h
16182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
16183 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
16184 if test "${ac_cv_os_cray+set}" = set; then :
16185 $as_echo_n "(cached) " >&6
16187 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16188 /* end confdefs.h. */
16189 #if defined CRAY && ! defined CRAY2
16196 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16197 $EGREP "webecray" >/dev
/null
2>&1; then :
16205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
16206 $as_echo "$ac_cv_os_cray" >&6; }
16207 if test $ac_cv_os_cray = yes; then
16208 for ac_func
in _getb67 GETB67 getb67
; do
16209 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16210 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
16211 eval as_val
=\$
$as_ac_var
16212 if test "x$as_val" = x
""yes; then :
16214 cat >>confdefs.h
<<_ACEOF
16215 #define CRAY_STACKSEG_END $ac_func
16224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
16225 $as_echo_n "checking stack direction for C alloca... " >&6; }
16226 if test "${ac_cv_c_stack_direction+set}" = set; then :
16227 $as_echo_n "(cached) " >&6
16229 if test "$cross_compiling" = yes; then :
16230 ac_cv_c_stack_direction
=0
16232 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16233 /* end confdefs.h. */
16234 $ac_includes_default
16236 find_stack_direction (int *addr, int depth)
16238 int dir, dummy = 0;
16241 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
16242 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
16243 return dir + dummy;
16247 main (int argc, char **argv)
16249 return find_stack_direction (0, argc + !argv + 20) < 0;
16252 if ac_fn_c_try_run
"$LINENO"; then :
16253 ac_cv_c_stack_direction
=1
16255 ac_cv_c_stack_direction
=-1
16257 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16258 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
16263 $as_echo "$ac_cv_c_stack_direction" >&6; }
16264 cat >>confdefs.h
<<_ACEOF
16265 #define STACK_DIRECTION $ac_cv_c_stack_direction
16274 for ac_func
in $ac_func_list
16276 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16277 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
16278 eval as_val
=\$
$as_ac_var
16279 if test "x$as_val" = x
""yes; then :
16280 cat >>confdefs.h
<<_ACEOF
16281 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
16291 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
16292 if test "${ac_cv_c_bigendian+set}" = set; then :
16293 $as_echo_n "(cached) " >&6
16295 ac_cv_c_bigendian
=unknown
16296 # See if we're dealing with a universal compiler.
16297 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16298 /* end confdefs.h. */
16299 #ifndef __APPLE_CC__
16300 not a universal capable compiler
16305 if ac_fn_c_try_compile
"$LINENO"; then :
16307 # Check for potential -arch flags. It is not universal unless
16308 # there are at least two -arch flags with different values.
16311 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
16312 if test -n "$ac_prev"; then
16314 i?
86 | x86_64 | ppc | ppc64
)
16315 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
16318 ac_cv_c_bigendian
=universal
16324 elif test "x$ac_word" = "x-arch"; then
16329 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16330 if test $ac_cv_c_bigendian = unknown
; then
16331 # See if sys/param.h defines the BYTE_ORDER macro.
16332 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16333 /* end confdefs.h. */
16334 #include <sys/types.h>
16335 #include <sys/param.h>
16340 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
16341 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
16343 bogus endian macros
16350 if ac_fn_c_try_compile
"$LINENO"; then :
16351 # It does; now see whether it defined to BIG_ENDIAN or not.
16352 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16353 /* end confdefs.h. */
16354 #include <sys/types.h>
16355 #include <sys/param.h>
16360 #if BYTE_ORDER != BIG_ENDIAN
16368 if ac_fn_c_try_compile
"$LINENO"; then :
16369 ac_cv_c_bigendian
=yes
16371 ac_cv_c_bigendian
=no
16373 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16375 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16377 if test $ac_cv_c_bigendian = unknown
; then
16378 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
16379 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16380 /* end confdefs.h. */
16381 #include <limits.h>
16386 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
16387 bogus endian macros
16394 if ac_fn_c_try_compile
"$LINENO"; then :
16395 # It does; now see whether it defined to _BIG_ENDIAN or not.
16396 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16397 /* end confdefs.h. */
16398 #include <limits.h>
16403 #ifndef _BIG_ENDIAN
16411 if ac_fn_c_try_compile
"$LINENO"; then :
16412 ac_cv_c_bigendian
=yes
16414 ac_cv_c_bigendian
=no
16416 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16418 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16420 if test $ac_cv_c_bigendian = unknown
; then
16421 # Compile a test program.
16422 if test "$cross_compiling" = yes; then :
16423 # Try to guess by grepping values from an object file.
16424 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16425 /* end confdefs.h. */
16426 short int ascii_mm[] =
16427 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
16428 short int ascii_ii[] =
16429 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
16430 int use_ascii (int i) {
16431 return ascii_mm[i] + ascii_ii[i];
16433 short int ebcdic_ii[] =
16434 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
16435 short int ebcdic_mm[] =
16436 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
16437 int use_ebcdic (int i) {
16438 return ebcdic_mm[i] + ebcdic_ii[i];
16445 return use_ascii (foo) == use_ebcdic (foo);
16450 if ac_fn_c_try_compile
"$LINENO"; then :
16451 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
16452 ac_cv_c_bigendian
=yes
16454 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
16455 if test "$ac_cv_c_bigendian" = unknown
; then
16456 ac_cv_c_bigendian
=no
16458 # finding both strings is unlikely to happen, but who knows?
16459 ac_cv_c_bigendian
=unknown
16463 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16465 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16466 /* end confdefs.h. */
16467 $ac_includes_default
16472 /* Are we little or big endian? From Harbison&Steele. */
16476 char c[sizeof (long int)];
16479 return u.c[sizeof (long int) - 1] == 1;
16485 if ac_fn_c_try_run
"$LINENO"; then :
16486 ac_cv_c_bigendian
=no
16488 ac_cv_c_bigendian
=yes
16490 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16491 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
16497 $as_echo "$ac_cv_c_bigendian" >&6; }
16498 case $ac_cv_c_bigendian in #(
16500 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
16506 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
16510 as_fn_error
"unknown endianness
16511 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
16515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
16516 $as_echo_n "checking for inline... " >&6; }
16517 if test "${ac_cv_c_inline+set}" = set; then :
16518 $as_echo_n "(cached) " >&6
16521 for ac_kw
in inline __inline__ __inline
; do
16522 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16523 /* end confdefs.h. */
16524 #ifndef __cplusplus
16526 static $ac_kw foo_t static_foo () {return 0; }
16527 $ac_kw foo_t foo () {return 0; }
16531 if ac_fn_c_try_compile
"$LINENO"; then :
16532 ac_cv_c_inline
=$ac_kw
16534 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16535 test "$ac_cv_c_inline" != no
&& break
16539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
16540 $as_echo "$ac_cv_c_inline" >&6; }
16542 case $ac_cv_c_inline in
16545 case $ac_cv_c_inline in
16547 *) ac_val
=$ac_cv_c_inline;;
16549 cat >>confdefs.h
<<_ACEOF
16550 #ifndef __cplusplus
16551 #define inline $ac_val
16558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtold conforms to C99" >&5
16559 $as_echo_n "checking whether strtold conforms to C99... " >&6; }
16560 if test "${gl_cv_func_c99_strtold+set}" = set; then :
16561 $as_echo_n "(cached) " >&6
16563 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16564 /* end confdefs.h. */
16565 /* On HP-UX before 11.23, strtold returns a struct instead of
16566 long double. Reject implementations like that, by requiring
16567 compatibility with the C99 prototype. */
16568 #include <stdlib.h>
16569 static long double (*p) (char const *, char **) = strtold;
16571 test (char const *nptr, char **endptr)
16574 r = strtold (nptr, endptr);
16580 return test ("1.0", NULL) != 1 || p ("1.0", NULL) != 1;
16585 if ac_fn_c_try_link
"$LINENO"; then :
16586 gl_cv_func_c99_strtold
=yes
16588 gl_cv_func_c99_strtold
=no
16590 rm -f core conftest.err conftest.
$ac_objext \
16591 conftest
$ac_exeext conftest.
$ac_ext
16593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_c99_strtold" >&5
16594 $as_echo "$gl_cv_func_c99_strtold" >&6; }
16595 if test $gl_cv_func_c99_strtold = yes; then
16597 $as_echo "#define HAVE_C99_STRTOLD 1" >>confdefs.h
16607 GNULIB_EUIDACCESS
=0;
16608 GNULIB_FACCESSAT
=0;
16612 GNULIB_FTRUNCATE
=0;
16614 GNULIB_GETDOMAINNAME
=0;
16615 GNULIB_GETDTABLESIZE
=0;
16616 GNULIB_GETGROUPS
=0;
16617 GNULIB_GETHOSTNAME
=0;
16619 GNULIB_GETLOGIN_R
=0;
16620 GNULIB_GETPAGESIZE
=0;
16621 GNULIB_GETUSERSHELL
=0;
16622 GNULIB_GROUP_MEMBER
=0;
16633 GNULIB_READLINKAT
=0;
16637 GNULIB_SYMLINKAT
=0;
16638 GNULIB_TTYNAME_R
=0;
16639 GNULIB_UNISTD_H_GETOPT
=0;
16640 GNULIB_UNISTD_H_NONBLOCKING
=0;
16641 GNULIB_UNISTD_H_SIGPIPE
=0;
16655 HAVE_GETDTABLESIZE
=1;
16657 HAVE_GETHOSTNAME
=1;
16659 HAVE_GETPAGESIZE
=1;
16660 HAVE_GROUP_MEMBER
=1;
16675 HAVE_DECL_ENVIRON
=1;
16676 HAVE_DECL_FCHDIR
=1;
16677 HAVE_DECL_GETDOMAINNAME
=1;
16678 HAVE_DECL_GETLOGIN_R
=1;
16679 HAVE_DECL_GETPAGESIZE
=1;
16680 HAVE_DECL_GETUSERSHELL
=1;
16681 HAVE_DECL_TTYNAME_R
=1;
16683 HAVE_SYS_PARAM_H
=0;
16688 REPLACE_FCHOWNAT
=0;
16690 REPLACE_GETDOMAINNAME
=0;
16691 REPLACE_GETLOGIN_R
=0;
16692 REPLACE_GETGROUPS
=0;
16693 REPLACE_GETPAGESIZE
=0;
16701 REPLACE_READLINK
=0;
16705 REPLACE_TTYNAME_R
=0;
16707 REPLACE_UNLINKAT
=0;
16710 UNISTD_H_HAVE_WINSOCK2_H
=0;
16711 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
=0;
16714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_dm_mode in struct stat" >&5
16715 $as_echo_n "checking for st_dm_mode in struct stat... " >&6; }
16716 if test "${ac_cv_struct_st_dm_mode+set}" = set; then :
16717 $as_echo_n "(cached) " >&6
16719 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16720 /* end confdefs.h. */
16722 #include <sys/types.h>
16723 #include <sys/stat.h>
16727 struct stat s; s.st_dm_mode;
16732 if ac_fn_c_try_compile
"$LINENO"; then :
16733 ac_cv_struct_st_dm_mode
=yes
16735 ac_cv_struct_st_dm_mode
=no
16737 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_st_dm_mode" >&5
16740 $as_echo "$ac_cv_struct_st_dm_mode" >&6; }
16742 if test $ac_cv_struct_st_dm_mode = yes; then
16744 $as_echo "#define HAVE_ST_DM_MODE 1" >>confdefs.h
16749 ac_fn_c_check_decl
"$LINENO" "strmode" "ac_cv_have_decl_strmode" "$ac_includes_default"
16750 if test "x$ac_cv_have_decl_strmode" = x
""yes; then :
16756 cat >>confdefs.h
<<_ACEOF
16757 #define HAVE_DECL_STRMODE $ac_have_decl
16763 GNULIB_CALLOC_POSIX
=0;
16764 GNULIB_CANONICALIZE_FILE_NAME
=0;
16765 GNULIB_GETLOADAVG
=0;
16766 GNULIB_GETSUBOPT
=0;
16768 GNULIB_MALLOC_POSIX
=0;
16772 GNULIB_MKOSTEMPS
=0;
16778 GNULIB_REALLOC_POSIX
=0;
16785 GNULIB_SYSTEM_POSIX
=0;
16791 HAVE_CANONICALIZE_FILE_NAME
=1;
16792 HAVE_DECL_GETLOADAVG
=1;
16806 HAVE_DECL_SETENV
=1;
16810 HAVE_STRUCT_RANDOM_DATA
=1;
16811 HAVE_SYS_LOADAVG_H
=0;
16813 HAVE_DECL_UNSETENV
=1;
16815 REPLACE_CANONICALIZE_FILE_NAME
=0;
16821 REPLACE_REALPATH
=0;
16824 REPLACE_UNSETENV
=0;
16829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
16830 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
16831 if test "${gl_cv_have_include_next+set}" = set; then :
16832 $as_echo_n "(cached) " >&6
16834 rm -rf conftestd1a conftestd1b conftestd2
16835 mkdir conftestd1a conftestd1b conftestd2
16836 cat <<EOF > conftestd1a/conftest.h
16837 #define DEFINED_IN_CONFTESTD1
16838 #include_next <conftest.h>
16839 #ifdef DEFINED_IN_CONFTESTD2
16842 #error "include_next doesn't work"
16845 cat <<EOF > conftestd1b/conftest.h
16846 #define DEFINED_IN_CONFTESTD1
16848 #include_next <conftest.h>
16849 #ifdef DEFINED_IN_CONFTESTD2
16852 #error "include_next doesn't work"
16855 cat <<EOF > conftestd2/conftest.h
16856 #ifndef DEFINED_IN_CONFTESTD1
16857 #error "include_next test doesn't work"
16859 #define DEFINED_IN_CONFTESTD2
16861 gl_save_CPPFLAGS
="$CPPFLAGS"
16862 CPPFLAGS
="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
16863 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16864 /* end confdefs.h. */
16865 #include <conftest.h>
16867 if ac_fn_c_try_compile
"$LINENO"; then :
16868 gl_cv_have_include_next
=yes
16870 CPPFLAGS
="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
16871 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16872 /* end confdefs.h. */
16873 #include <conftest.h>
16875 if ac_fn_c_try_compile
"$LINENO"; then :
16876 gl_cv_have_include_next
=buggy
16878 gl_cv_have_include_next
=no
16880 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16883 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16884 CPPFLAGS
="$gl_save_CPPFLAGS"
16885 rm -rf conftestd1a conftestd1b conftestd2
16888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
16889 $as_echo "$gl_cv_have_include_next" >&6; }
16890 PRAGMA_SYSTEM_HEADER
=
16891 if test $gl_cv_have_include_next = yes; then
16892 INCLUDE_NEXT
=include_next
16893 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include_next
16894 if test -n "$GCC"; then
16895 PRAGMA_SYSTEM_HEADER
='#pragma GCC system_header'
16898 if test $gl_cv_have_include_next = buggy
; then
16899 INCLUDE_NEXT
=include
16900 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include_next
16902 INCLUDE_NEXT
=include
16903 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include
16909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
16910 $as_echo_n "checking whether system header files limit the line length... " >&6; }
16911 if test "${gl_cv_pragma_columns+set}" = set; then :
16912 $as_echo_n "(cached) " >&6
16914 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16915 /* end confdefs.h. */
16922 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16923 $EGREP "choke me" >/dev
/null
2>&1; then :
16924 gl_cv_pragma_columns
=yes
16926 gl_cv_pragma_columns
=no
16932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
16933 $as_echo "$gl_cv_pragma_columns" >&6; }
16934 if test $gl_cv_pragma_columns = yes; then
16935 PRAGMA_COLUMNS
="#pragma COLUMNS 10000"
16956 if test $gl_cv_have_include_next = yes; then
16957 gl_cv_next_getopt_h
='<'getopt.h
'>'
16959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <getopt.h>" >&5
16960 $as_echo_n "checking absolute name of <getopt.h>... " >&6; }
16961 if test "${gl_cv_next_getopt_h+set}" = set; then :
16962 $as_echo_n "(cached) " >&6
16965 if test $ac_cv_header_getopt_h = yes; then
16968 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16969 /* end confdefs.h. */
16970 #include <getopt.h>
16974 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
16975 *) gl_absname_cpp
="$ac_cpp" ;;
16980 gl_dirsep_regex
='[/\\]'
16983 gl_dirsep_regex
='/'
16987 gl_absolute_header_sed
='\#'"${gl_dirsep_regex}"'getopt.h#{
16988 s#.*"\(.*'"${gl_dirsep_regex}"'getopt.h\)".*#\1#
16993 gl_cv_next_getopt_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16994 sed -n "$gl_absolute_header_sed"`'"'
16996 gl_cv_next_getopt_h
='<'getopt.h
'>'
17001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_getopt_h" >&5
17002 $as_echo "$gl_cv_next_getopt_h" >&6; }
17004 NEXT_GETOPT_H
=$gl_cv_next_getopt_h
17006 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
17007 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17008 gl_next_as_first_directive
='<'getopt.h
'>'
17010 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17011 gl_next_as_first_directive
=$gl_cv_next_getopt_h
17013 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
=$gl_next_as_first_directive
17018 if test $ac_cv_header_getopt_h = yes; then
17027 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU
; then
17028 for ac_header
in getopt.h
17030 ac_fn_c_check_header_mongrel
"$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
17031 if test "x$ac_cv_header_getopt_h" = x
""yes; then :
17032 cat >>confdefs.h
<<_ACEOF
17033 #define HAVE_GETOPT_H 1
17037 gl_replace_getopt
=yes
17044 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU
; then
17045 for ac_func
in getopt_long_only
17047 ac_fn_c_check_func
"$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
17048 if test "x$ac_cv_func_getopt_long_only" = x
""yes; then :
17049 cat >>confdefs.h
<<_ACEOF
17050 #define HAVE_GETOPT_LONG_ONLY 1
17054 gl_replace_getopt
=yes
17060 if test -z "$gl_replace_getopt"; then
17061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt is POSIX compatible" >&5
17062 $as_echo_n "checking whether getopt is POSIX compatible... " >&6; }
17063 if test "${gl_cv_func_getopt_posix+set}" = set; then :
17064 $as_echo_n "(cached) " >&6
17067 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17068 /* end confdefs.h. */
17069 #include <unistd.h>
17073 int *p = &optreset; return optreset;
17078 if ac_fn_c_try_link
"$LINENO"; then :
17081 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17082 /* end confdefs.h. */
17083 #include <getopt.h>
17087 return !getopt_clip;
17092 if ac_fn_c_try_compile
"$LINENO"; then :
17097 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17099 rm -f core conftest.err conftest.
$ac_objext \
17100 conftest
$ac_exeext conftest.
$ac_ext
17102 gl_save_CPPFLAGS
=$CPPFLAGS
17103 CPPFLAGS
="$CPPFLAGS -DOPTIND_MIN=$gl_optind_min"
17104 if test "$cross_compiling" = yes; then :
17106 mingw
*) gl_cv_func_getopt_posix
="guessing no";;
17107 darwin
* | aix
*) gl_cv_func_getopt_posix
="guessing no";;
17108 *) gl_cv_func_getopt_posix
="guessing yes";;
17112 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17113 /* end confdefs.h. */
17115 #include <unistd.h>
17116 #include <stdlib.h>
17117 #include <string.h>
17123 static char program[] = "program";
17124 static char a[] = "-a";
17125 static char foo[] = "foo";
17126 static char bar[] = "bar";
17127 char *argv[] = { program, a, foo, bar, NULL };
17130 optind = OPTIND_MIN;
17133 c = getopt (4, argv, "ab");
17136 c = getopt (4, argv, "ab");
17139 if (!(optind == 2))
17142 /* Some internal state exists at this point. */
17144 static char program[] = "program";
17145 static char donald[] = "donald";
17146 static char p[] = "-p";
17147 static char billy[] = "billy";
17148 static char duck[] = "duck";
17149 static char a[] = "-a";
17150 static char bar[] = "bar";
17151 char *argv[] = { program, donald, p, billy, duck, a, bar, NULL };
17154 optind = OPTIND_MIN;
17157 c = getopt (7, argv, "+abp:q:");
17160 if (!(strcmp (argv[0], "program") == 0))
17162 if (!(strcmp (argv[1], "donald") == 0))
17164 if (!(strcmp (argv[2], "-p") == 0))
17166 if (!(strcmp (argv[3], "billy") == 0))
17168 if (!(strcmp (argv[4], "duck") == 0))
17170 if (!(strcmp (argv[5], "-a") == 0))
17172 if (!(strcmp (argv[6], "bar") == 0))
17174 if (!(optind == 1))
17177 /* Detect MacOS 10.5, AIX 7.1 bug. */
17179 static char program[] = "program";
17180 static char ab[] = "-ab";
17181 char *argv[3] = { program, ab, NULL };
17182 optind = OPTIND_MIN;
17184 if (getopt (2, argv, "ab:") != 'a')
17186 if (getopt (2, argv, "ab:") != '?')
17198 if ac_fn_c_try_run
"$LINENO"; then :
17199 gl_cv_func_getopt_posix
=yes
17201 gl_cv_func_getopt_posix
=no
17203 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17204 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17207 CPPFLAGS
=$gl_save_CPPFLAGS
17210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_posix" >&5
17211 $as_echo "$gl_cv_func_getopt_posix" >&6; }
17212 case "$gl_cv_func_getopt_posix" in
17213 *no
) gl_replace_getopt
=yes ;;
17217 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU
; then
17218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
17219 $as_echo_n "checking for working GNU getopt function... " >&6; }
17220 if test "${gl_cv_func_getopt_gnu+set}" = set; then :
17221 $as_echo_n "(cached) " >&6
17223 # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the
17224 # optstring is necessary for programs like m4 that have POSIX-mandated
17225 # semantics for supporting options interspersed with files.
17226 # Also, since getopt_long is a GNU extension, we require optind=0.
17227 # Bash ties 'set -o posix' to a non-exported POSIXLY_CORRECT;
17228 # so take care to revert to the correct (non-)export state.
17229 gl_awk_probe
='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }'
17230 case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" </dev/null` in
17231 xx
) gl_had_POSIXLY_CORRECT
=exported
;;
17232 x
) gl_had_POSIXLY_CORRECT
=yes ;;
17233 *) gl_had_POSIXLY_CORRECT
= ;;
17236 export POSIXLY_CORRECT
17237 if test "$cross_compiling" = yes; then :
17238 case $host_os:$ac_cv_have_decl_optreset in
17239 *-gnu*:* | mingw
*:*) gl_cv_func_getopt_gnu
=no
;;
17240 *:yes) gl_cv_func_getopt_gnu
=no
;;
17241 *) gl_cv_func_getopt_gnu
=yes;;
17245 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17246 /* end confdefs.h. */
17247 #include <getopt.h>
17248 #include <stddef.h>
17249 #include <string.h>
17251 #include <stdlib.h>
17252 #if defined __MACH__ && defined __APPLE__
17253 /* Avoid a crash on MacOS X. */
17254 #include <mach/mach.h>
17255 #include <mach/mach_error.h>
17256 #include <mach/thread_status.h>
17257 #include <mach/exception.h>
17258 #include <mach/task.h>
17259 #include <pthread.h>
17260 /* The exception port on which our thread listens. */
17261 static mach_port_t our_exception_port;
17262 /* The main function of the thread listening for exceptions of type
17265 mach_exception_thread (void *arg)
17267 /* Buffer for a message to be received. */
17269 mach_msg_header_t head;
17270 mach_msg_body_t msgh_body;
17273 mach_msg_return_t retval;
17274 /* Wait for a message on the exception port. */
17275 retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
17276 our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
17277 if (retval != MACH_MSG_SUCCESS)
17282 nocrash_init (void)
17284 mach_port_t self = mach_task_self ();
17285 /* Allocate a port on which the thread shall listen for exceptions. */
17286 if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
17288 /* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html. */
17289 if (mach_port_insert_right (self, our_exception_port, our_exception_port,
17290 MACH_MSG_TYPE_MAKE_SEND)
17292 /* The exceptions we want to catch. Only EXC_BAD_ACCESS is interesting
17294 exception_mask_t mask = EXC_MASK_BAD_ACCESS;
17295 /* Create the thread listening on the exception port. */
17296 pthread_attr_t attr;
17298 if (pthread_attr_init (&attr) == 0
17299 && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
17300 && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
17301 pthread_attr_destroy (&attr);
17302 /* Replace the exception port info for these exceptions with our own.
17303 Note that we replace the exception port for the entire task, not only
17304 for a particular thread. This has the effect that when our exception
17305 port gets the message, the thread specific exception port has already
17306 been asked, and we don't need to bother about it.
17307 See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html. */
17308 task_set_exception_ports (self, mask, our_exception_port,
17309 EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
17314 #elif (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
17315 /* Avoid a crash on native Windows. */
17316 #define WIN32_LEAN_AND_MEAN
17317 #include <windows.h>
17318 #include <winerror.h>
17320 exception_filter (EXCEPTION_POINTERS *ExceptionInfo)
17322 switch (ExceptionInfo->ExceptionRecord->ExceptionCode)
17324 case EXCEPTION_ACCESS_VIOLATION:
17325 case EXCEPTION_IN_PAGE_ERROR:
17326 case EXCEPTION_STACK_OVERFLOW:
17327 case EXCEPTION_GUARD_PAGE:
17328 case EXCEPTION_PRIV_INSTRUCTION:
17329 case EXCEPTION_ILLEGAL_INSTRUCTION:
17330 case EXCEPTION_DATATYPE_MISALIGNMENT:
17331 case EXCEPTION_ARRAY_BOUNDS_EXCEEDED:
17332 case EXCEPTION_NONCONTINUABLE_EXCEPTION:
17335 return EXCEPTION_CONTINUE_SEARCH;
17338 nocrash_init (void)
17340 SetUnhandledExceptionFilter ((LPTOP_LEVEL_EXCEPTION_FILTER) exception_filter);
17343 /* Avoid a crash on POSIX systems. */
17344 #include <signal.h>
17345 /* A POSIX signal handler. */
17347 exception_handler (int sig)
17352 nocrash_init (void)
17355 signal (SIGSEGV, exception_handler);
17358 signal (SIGBUS, exception_handler);
17372 /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
17373 and fails on MacOS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
17374 OSF/1 5.1, Solaris 10. */
17376 static char conftest[] = "conftest";
17377 static char plus[] = "-+";
17378 char *argv[3] = { conftest, plus, NULL };
17380 if (getopt (2, argv, "+a") != '?')
17383 /* This code succeeds on glibc 2.8, mingw,
17384 and fails on MacOS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
17385 IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x. */
17387 static char program[] = "program";
17388 static char p[] = "-p";
17389 static char foo[] = "foo";
17390 static char bar[] = "bar";
17391 char *argv[] = { program, p, foo, bar, NULL };
17394 if (getopt (4, argv, "p::") != 'p')
17396 else if (optarg != NULL)
17398 else if (getopt (4, argv, "p::") != -1)
17400 else if (optind != 2)
17403 /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0. */
17405 static char program[] = "program";
17406 static char foo[] = "foo";
17407 static char p[] = "-p";
17408 char *argv[] = { program, foo, p, NULL };
17410 if (getopt (3, argv, "-p") != 1)
17412 else if (getopt (3, argv, "-p") != 'p')
17415 /* This code fails on glibc 2.11. */
17417 static char program[] = "program";
17418 static char b[] = "-b";
17419 static char a[] = "-a";
17420 char *argv[] = { program, b, a, NULL };
17421 optind = opterr = 0;
17422 if (getopt (3, argv, "+:a:b") != 'b')
17424 else if (getopt (3, argv, "+:a:b") != ':')
17427 /* This code dumps core on glibc 2.14. */
17429 static char program[] = "program";
17430 static char w[] = "-W";
17431 static char dummy[] = "dummy";
17432 char *argv[] = { program, w, dummy, NULL };
17433 optind = opterr = 1;
17434 if (getopt (3, argv, "W;") != 'W')
17443 if ac_fn_c_try_run
"$LINENO"; then :
17444 gl_cv_func_getopt_gnu
=yes
17446 gl_cv_func_getopt_gnu
=no
17448 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17449 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17452 case $gl_had_POSIXLY_CORRECT in
17454 yes) { POSIXLY_CORRECT
=; unset POSIXLY_CORRECT
;}; POSIXLY_CORRECT
=1 ;;
17455 *) { POSIXLY_CORRECT
=; unset POSIXLY_CORRECT
;} ;;
17459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_gnu" >&5
17460 $as_echo "$gl_cv_func_getopt_gnu" >&6; }
17461 if test "$gl_cv_func_getopt_gnu" = "no"; then
17462 gl_replace_getopt
=yes
17473 if test -n "$gl_replace_getopt"; then :
17480 if test $REPLACE_GETOPT = 1; then
17484 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
17488 GNULIB_UNISTD_H_GETOPT
=1
17491 ac_fn_c_check_decl
"$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
17492 if test "x$ac_cv_have_decl_getenv" = x
""yes; then :
17498 cat >>confdefs.h
<<_ACEOF
17499 #define HAVE_DECL_GETENV $ac_have_decl
17503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
17504 $as_echo_n "checking for unsigned long long int... " >&6; }
17505 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
17506 $as_echo_n "(cached) " >&6
17508 ac_cv_type_unsigned_long_long_int
=yes
17509 if test "x${ac_cv_prog_cc_c99-no}" = xno
; then
17510 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17511 /* end confdefs.h. */
17513 /* For now, do not test the preprocessor; as of 2007 there are too many
17514 implementations with broken preprocessors. Perhaps this can
17515 be revisited in 2012. In the meantime, code should not expect
17516 #if to work with literals wider than 32 bits. */
17517 /* Test literals. */
17518 long long int ll = 9223372036854775807ll;
17519 long long int nll = -9223372036854775807LL;
17520 unsigned long long int ull = 18446744073709551615ULL;
17521 /* Test constant expressions. */
17522 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
17524 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
17530 /* Test availability of runtime routines for shift and division. */
17531 long long int llmax = 9223372036854775807ll;
17532 unsigned long long int ullmax = 18446744073709551615ull;
17533 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
17534 | (llmax / ll) | (llmax % ll)
17535 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
17536 | (ullmax / ull) | (ullmax % ull));
17542 if ac_fn_c_try_link
"$LINENO"; then :
17545 ac_cv_type_unsigned_long_long_int
=no
17547 rm -f core conftest.err conftest.
$ac_objext \
17548 conftest
$ac_exeext conftest.
$ac_ext
17551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
17552 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
17553 if test $ac_cv_type_unsigned_long_long_int = yes; then
17555 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
17561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
17562 $as_echo_n "checking for long long int... " >&6; }
17563 if test "${ac_cv_type_long_long_int+set}" = set; then :
17564 $as_echo_n "(cached) " >&6
17566 ac_cv_type_long_long_int
=yes
17567 if test "x${ac_cv_prog_cc_c99-no}" = xno
; then
17568 ac_cv_type_long_long_int
=$ac_cv_type_unsigned_long_long_int
17569 if test $ac_cv_type_long_long_int = yes; then
17570 if test "$cross_compiling" = yes; then :
17573 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17574 /* end confdefs.h. */
17575 #include <limits.h>
17578 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
17579 # define LLONG_MAX (HALF - 1 + HALF)
17584 long long int n = 1;
17588 long long int m = n << i;
17591 if (LLONG_MAX / 2 < m)
17599 if ac_fn_c_try_run
"$LINENO"; then :
17602 ac_cv_type_long_long_int
=no
17604 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17605 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
17612 $as_echo "$ac_cv_type_long_long_int" >&6; }
17613 if test $ac_cv_type_long_long_int = yes; then
17615 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
17624 gl_cv_c_multiarch
=no
17625 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17626 /* end confdefs.h. */
17627 #ifndef __APPLE_CC__
17628 not a universal capable compiler
17633 if ac_fn_c_try_compile
"$LINENO"; then :
17637 for word
in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
17638 if test -n "$prev"; then
17640 i?
86 | x86_64 | ppc | ppc64
)
17641 if test -z "$arch" ||
test "$arch" = "$word"; then
17644 gl_cv_c_multiarch
=yes
17650 if test "x$word" = "x-arch"; then
17657 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17658 if test $gl_cv_c_multiarch = yes; then
17659 APPLE_UNIVERSAL_BUILD
=1
17661 APPLE_UNIVERSAL_BUILD
=0
17668 if test $ac_cv_type_long_long_int = yes; then
17669 HAVE_LONG_LONG_INT
=1
17671 HAVE_LONG_LONG_INT
=0
17675 if test $ac_cv_type_unsigned_long_long_int = yes; then
17676 HAVE_UNSIGNED_LONG_LONG_INT
=1
17678 HAVE_UNSIGNED_LONG_LONG_INT
=0
17683 if test $ac_cv_header_wchar_h = yes; then
17690 if test $ac_cv_header_inttypes_h = yes; then
17697 if test $ac_cv_header_sys_types_h = yes; then
17713 if test $gl_cv_have_include_next = yes; then
17714 gl_cv_next_stdint_h
='<'stdint.h
'>'
17716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
17717 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
17718 if test "${gl_cv_next_stdint_h+set}" = set; then :
17719 $as_echo_n "(cached) " >&6
17722 if test $ac_cv_header_stdint_h = yes; then
17725 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17726 /* end confdefs.h. */
17727 #include <stdint.h>
17731 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
17732 *) gl_absname_cpp
="$ac_cpp" ;;
17737 gl_dirsep_regex
='[/\\]'
17740 gl_dirsep_regex
='/'
17744 gl_absolute_header_sed
='\#'"${gl_dirsep_regex}"'stdint.h#{
17745 s#.*"\(.*'"${gl_dirsep_regex}"'stdint.h\)".*#\1#
17750 gl_cv_next_stdint_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17751 sed -n "$gl_absolute_header_sed"`'"'
17753 gl_cv_next_stdint_h
='<'stdint.h
'>'
17758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
17759 $as_echo "$gl_cv_next_stdint_h" >&6; }
17761 NEXT_STDINT_H
=$gl_cv_next_stdint_h
17763 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
17764 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17765 gl_next_as_first_directive
='<'stdint.h
'>'
17767 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17768 gl_next_as_first_directive
=$gl_cv_next_stdint_h
17770 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
=$gl_next_as_first_directive
17775 if test $ac_cv_header_stdint_h = yes; then
17782 if test $ac_cv_header_stdint_h = yes; then
17783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
17784 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
17785 if test "${gl_cv_header_working_stdint_h+set}" = set; then :
17786 $as_echo_n "(cached) " >&6
17788 gl_cv_header_working_stdint_h
=no
17789 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17790 /* end confdefs.h. */
17793 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
17794 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
17795 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
17796 #include <stdint.h>
17797 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
17798 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
17799 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
17803 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17804 included before <wchar.h>. */
17805 #include <stddef.h>
17806 #include <signal.h>
17808 # include <stdio.h>
17810 # include <wchar.h>
17815 int8_t a1 = INT8_MAX;
17816 int8_t a1min = INT8_MIN;
17819 int16_t a2 = INT16_MAX;
17820 int16_t a2min = INT16_MIN;
17823 int32_t a3 = INT32_MAX;
17824 int32_t a3min = INT32_MIN;
17827 int64_t a4 = INT64_MAX;
17828 int64_t a4min = INT64_MIN;
17831 uint8_t b1 = UINT8_MAX;
17833 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
17836 uint16_t b2 = UINT16_MAX;
17839 uint32_t b3 = UINT32_MAX;
17842 uint64_t b4 = UINT64_MAX;
17844 int_least8_t c1 = INT8_C (0x7f);
17845 int_least8_t c1max = INT_LEAST8_MAX;
17846 int_least8_t c1min = INT_LEAST8_MIN;
17847 int_least16_t c2 = INT16_C (0x7fff);
17848 int_least16_t c2max = INT_LEAST16_MAX;
17849 int_least16_t c2min = INT_LEAST16_MIN;
17850 int_least32_t c3 = INT32_C (0x7fffffff);
17851 int_least32_t c3max = INT_LEAST32_MAX;
17852 int_least32_t c3min = INT_LEAST32_MIN;
17853 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
17854 int_least64_t c4max = INT_LEAST64_MAX;
17855 int_least64_t c4min = INT_LEAST64_MIN;
17856 uint_least8_t d1 = UINT8_C (0xff);
17857 uint_least8_t d1max = UINT_LEAST8_MAX;
17858 uint_least16_t d2 = UINT16_C (0xffff);
17859 uint_least16_t d2max = UINT_LEAST16_MAX;
17860 uint_least32_t d3 = UINT32_C (0xffffffff);
17861 uint_least32_t d3max = UINT_LEAST32_MAX;
17862 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
17863 uint_least64_t d4max = UINT_LEAST64_MAX;
17864 int_fast8_t e1 = INT_FAST8_MAX;
17865 int_fast8_t e1min = INT_FAST8_MIN;
17866 int_fast16_t e2 = INT_FAST16_MAX;
17867 int_fast16_t e2min = INT_FAST16_MIN;
17868 int_fast32_t e3 = INT_FAST32_MAX;
17869 int_fast32_t e3min = INT_FAST32_MIN;
17870 int_fast64_t e4 = INT_FAST64_MAX;
17871 int_fast64_t e4min = INT_FAST64_MIN;
17872 uint_fast8_t f1 = UINT_FAST8_MAX;
17873 uint_fast16_t f2 = UINT_FAST16_MAX;
17874 uint_fast32_t f3 = UINT_FAST32_MAX;
17875 uint_fast64_t f4 = UINT_FAST64_MAX;
17877 intptr_t g = INTPTR_MAX;
17878 intptr_t gmin = INTPTR_MIN;
17881 uintptr_t h = UINTPTR_MAX;
17883 intmax_t i = INTMAX_MAX;
17884 uintmax_t j = UINTMAX_MAX;
17886 #include <limits.h> /* for CHAR_BIT */
17887 #define TYPE_MINIMUM(t) \
17888 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
17889 #define TYPE_MAXIMUM(t) \
17890 ((t) ((t) 0 < (t) -1 \
17892 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
17895 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
17896 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
17898 /* Detect bug in FreeBSD 6.0 / ia64. */
17899 int check_SIG_ATOMIC:
17900 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
17901 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
17903 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
17905 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
17906 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
17908 /* Detect bug in mingw. */
17910 WINT_MIN == TYPE_MINIMUM (wint_t)
17911 && WINT_MAX == TYPE_MAXIMUM (wint_t)
17914 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
17916 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
17917 int check_UINT16_C:
17918 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
17920 /* Detect bugs in OpenBSD 3.9 stdint.h. */
17922 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
17925 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
17928 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
17931 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
17933 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
17934 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
17935 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
17936 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
17937 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
17938 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
17939 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
17940 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
17941 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
17942 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
17943 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
17954 if ac_fn_c_try_compile
"$LINENO"; then :
17955 if test "$cross_compiling" = yes; then :
17956 gl_cv_header_working_stdint_h
=yes
17959 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17960 /* end confdefs.h. */
17963 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
17964 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
17965 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
17966 #include <stdint.h>
17969 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17970 included before <wchar.h>. */
17971 #include <stddef.h>
17972 #include <signal.h>
17974 # include <stdio.h>
17976 # include <wchar.h>
17981 #include <string.h>
17982 #define MVAL(macro) MVAL1(macro)
17983 #define MVAL1(expression) #expression
17984 static const char *macro_values[] =
18018 for (mv = macro_values; *mv != NULL; mv++)
18020 const char *value = *mv;
18021 /* Test whether it looks like a cast expression. */
18022 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
18023 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
18024 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
18025 || strncmp (value, "((int)"/*)*/, 6) == 0
18026 || strncmp (value, "((signed short)"/*)*/, 15) == 0
18027 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
18028 return mv - macro_values + 1;
18036 if ac_fn_c_try_run
"$LINENO"; then :
18037 gl_cv_header_working_stdint_h
=yes
18039 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
18040 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18045 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
18049 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
18051 if test "$gl_cv_header_working_stdint_h" = yes; then
18054 for ac_header
in sys
/inttypes.h sys
/bitypes.h
18056 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18057 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18058 eval as_val
=\$
$as_ac_Header
18059 if test "x$as_val" = x
""yes; then :
18060 cat >>confdefs.h
<<_ACEOF
18061 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18068 if test $ac_cv_header_sys_inttypes_h = yes; then
18069 HAVE_SYS_INTTYPES_H
=1
18071 HAVE_SYS_INTTYPES_H
=0
18074 if test $ac_cv_header_sys_bitypes_h = yes; then
18075 HAVE_SYS_BITYPES_H
=1
18077 HAVE_SYS_BITYPES_H
=0
18083 if test $APPLE_UNIVERSAL_BUILD = 0; then
18086 for gltype
in ptrdiff_t size_t
; do
18087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
18088 $as_echo_n "checking for bit size of $gltype... " >&6; }
18089 if { as_var
=gl_cv_bitsizeof_
${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
18090 $as_echo_n "(cached) " >&6
18092 if ac_fn_c_compute_int
"$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
18093 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18094 included before <wchar.h>. */
18095 #include <stddef.h>
18096 #include <signal.h>
18098 # include <stdio.h>
18100 # include <wchar.h>
18103 #include <limits.h>"; then :
18109 eval gl_cv_bitsizeof_
${gltype}=\
$result
18112 eval ac_res
=\
$gl_cv_bitsizeof_${gltype}
18113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18114 $as_echo "$ac_res" >&6; }
18115 eval result
=\
$gl_cv_bitsizeof_${gltype}
18116 if test $result = unknown
; then
18119 GLTYPE
=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18120 cat >>confdefs.h
<<_ACEOF
18121 #define BITSIZEOF_${GLTYPE} $result
18124 eval BITSIZEOF_
${GLTYPE}=\
$result
18131 for gltype
in sig_atomic_t wchar_t wint_t
; do
18132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
18133 $as_echo_n "checking for bit size of $gltype... " >&6; }
18134 if { as_var
=gl_cv_bitsizeof_
${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
18135 $as_echo_n "(cached) " >&6
18137 if ac_fn_c_compute_int
"$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
18138 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18139 included before <wchar.h>. */
18140 #include <stddef.h>
18141 #include <signal.h>
18143 # include <stdio.h>
18145 # include <wchar.h>
18148 #include <limits.h>"; then :
18154 eval gl_cv_bitsizeof_
${gltype}=\
$result
18157 eval ac_res
=\
$gl_cv_bitsizeof_${gltype}
18158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18159 $as_echo "$ac_res" >&6; }
18160 eval result
=\
$gl_cv_bitsizeof_${gltype}
18161 if test $result = unknown
; then
18164 GLTYPE
=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18165 cat >>confdefs.h
<<_ACEOF
18166 #define BITSIZEOF_${GLTYPE} $result
18169 eval BITSIZEOF_
${GLTYPE}=\
$result
18175 for gltype
in sig_atomic_t wchar_t wint_t
; do
18176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
18177 $as_echo_n "checking whether $gltype is signed... " >&6; }
18178 if { as_var
=gl_cv_type_
${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then :
18179 $as_echo_n "(cached) " >&6
18181 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18182 /* end confdefs.h. */
18184 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18185 included before <wchar.h>. */
18186 #include <stddef.h>
18187 #include <signal.h>
18189 # include <stdio.h>
18191 # include <wchar.h>
18194 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
18203 if ac_fn_c_try_compile
"$LINENO"; then :
18208 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18209 eval gl_cv_type_
${gltype}_signed
=\
$result
18212 eval ac_res
=\
$gl_cv_type_${gltype}_signed
18213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18214 $as_echo "$ac_res" >&6; }
18215 eval result
=\
$gl_cv_type_${gltype}_signed
18216 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18217 if test "$result" = yes; then
18218 cat >>confdefs.h
<<_ACEOF
18219 #define HAVE_SIGNED_${GLTYPE} 1
18222 eval HAVE_SIGNED_
${GLTYPE}=1
18224 eval HAVE_SIGNED_
${GLTYPE}=0
18229 gl_cv_type_ptrdiff_t_signed
=yes
18230 gl_cv_type_size_t_signed
=no
18231 if test $APPLE_UNIVERSAL_BUILD = 0; then
18234 for gltype
in ptrdiff_t size_t
; do
18235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
18236 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
18237 if { as_var
=gl_cv_type_
${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
18238 $as_echo_n "(cached) " >&6
18240 eval gl_cv_type_
${gltype}_suffix
=no
18241 eval result
=\
$gl_cv_type_${gltype}_signed
18242 if test "$result" = yes; then
18247 for glsuf
in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64
; do
18249 '') gltype1
='int';;
18250 l
) gltype1
='long int';;
18251 ll
) gltype1
='long long int';;
18252 i64
) gltype1
='__int64';;
18253 u
) gltype1
='unsigned int';;
18254 ul
) gltype1
='unsigned long int';;
18255 ull
) gltype1
='unsigned long long int';;
18256 ui64
)gltype1
='unsigned __int64';;
18258 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18259 /* end confdefs.h. */
18261 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18262 included before <wchar.h>. */
18263 #include <stddef.h>
18264 #include <signal.h>
18266 # include <stdio.h>
18268 # include <wchar.h>
18271 extern $gltype foo;
18272 extern $gltype1 foo;
18281 if ac_fn_c_try_compile
"$LINENO"; then :
18282 eval gl_cv_type_
${gltype}_suffix
=\
$glsuf
18284 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18285 eval result
=\
$gl_cv_type_${gltype}_suffix
18286 test "$result" != no
&& break
18289 eval ac_res
=\
$gl_cv_type_${gltype}_suffix
18290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18291 $as_echo "$ac_res" >&6; }
18292 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18293 eval result
=\
$gl_cv_type_${gltype}_suffix
18294 test "$result" = no
&& result
=
18295 eval ${GLTYPE}_SUFFIX
=\
$result
18296 cat >>confdefs.h
<<_ACEOF
18297 #define ${GLTYPE}_SUFFIX $result
18306 for gltype
in sig_atomic_t wchar_t wint_t
; do
18307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
18308 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
18309 if { as_var
=gl_cv_type_
${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
18310 $as_echo_n "(cached) " >&6
18312 eval gl_cv_type_
${gltype}_suffix
=no
18313 eval result
=\
$gl_cv_type_${gltype}_signed
18314 if test "$result" = yes; then
18319 for glsuf
in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64
; do
18321 '') gltype1
='int';;
18322 l
) gltype1
='long int';;
18323 ll
) gltype1
='long long int';;
18324 i64
) gltype1
='__int64';;
18325 u
) gltype1
='unsigned int';;
18326 ul
) gltype1
='unsigned long int';;
18327 ull
) gltype1
='unsigned long long int';;
18328 ui64
)gltype1
='unsigned __int64';;
18330 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18331 /* end confdefs.h. */
18333 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18334 included before <wchar.h>. */
18335 #include <stddef.h>
18336 #include <signal.h>
18338 # include <stdio.h>
18340 # include <wchar.h>
18343 extern $gltype foo;
18344 extern $gltype1 foo;
18353 if ac_fn_c_try_compile
"$LINENO"; then :
18354 eval gl_cv_type_
${gltype}_suffix
=\
$glsuf
18356 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18357 eval result
=\
$gl_cv_type_${gltype}_suffix
18358 test "$result" != no
&& break
18361 eval ac_res
=\
$gl_cv_type_${gltype}_suffix
18362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18363 $as_echo "$ac_res" >&6; }
18364 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18365 eval result
=\
$gl_cv_type_${gltype}_suffix
18366 test "$result" = no
&& result
=
18367 eval ${GLTYPE}_SUFFIX
=\
$result
18368 cat >>confdefs.h
<<_ACEOF
18369 #define ${GLTYPE}_SUFFIX $result
18379 if test -n "$STDINT_H"; then
18380 GL_GENERATE_STDINT_H_TRUE
=
18381 GL_GENERATE_STDINT_H_FALSE
='#'
18383 GL_GENERATE_STDINT_H_TRUE
='#'
18384 GL_GENERATE_STDINT_H_FALSE
=
18393 GNULIB_STRTOIMAX
=0;
18394 GNULIB_STRTOUMAX
=0;
18395 HAVE_DECL_IMAXABS
=1;
18396 HAVE_DECL_IMAXDIV
=1;
18397 HAVE_DECL_STRTOIMAX
=1;
18398 HAVE_DECL_STRTOUMAX
=1;
18399 INT32_MAX_LT_INTMAX_MAX
=1;
18400 INT64_MAX_EQ_LONG_MAX
='defined _LP64';
18401 PRI_MACROS_BROKEN
=0;
18402 PRIPTR_PREFIX
=__PRIPTR_PREFIX
;
18403 UINT32_MAX_LT_UINTMAX_MAX
=1;
18404 UINT64_MAX_EQ_ULONG_MAX
='defined _LP64';
18420 if test $gl_cv_have_include_next = yes; then
18421 gl_cv_next_inttypes_h
='<'inttypes.h
'>'
18423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5
18424 $as_echo_n "checking absolute name of <inttypes.h>... " >&6; }
18425 if test "${gl_cv_next_inttypes_h+set}" = set; then :
18426 $as_echo_n "(cached) " >&6
18429 if test $ac_cv_header_inttypes_h = yes; then
18432 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18433 /* end confdefs.h. */
18434 #include <inttypes.h>
18438 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
18439 *) gl_absname_cpp
="$ac_cpp" ;;
18444 gl_dirsep_regex
='[/\\]'
18447 gl_dirsep_regex
='/'
18451 gl_absolute_header_sed
='\#'"${gl_dirsep_regex}"'inttypes.h#{
18452 s#.*"\(.*'"${gl_dirsep_regex}"'inttypes.h\)".*#\1#
18457 gl_cv_next_inttypes_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18458 sed -n "$gl_absolute_header_sed"`'"'
18460 gl_cv_next_inttypes_h
='<'inttypes.h
'>'
18465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5
18466 $as_echo "$gl_cv_next_inttypes_h" >&6; }
18468 NEXT_INTTYPES_H
=$gl_cv_next_inttypes_h
18470 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
18471 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18472 gl_next_as_first_directive
='<'inttypes.h
'>'
18474 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18475 gl_next_as_first_directive
=$gl_cv_next_inttypes_h
18477 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
=$gl_next_as_first_directive
18486 $as_echo "#define GL_TRIGGER_STDC_LIMIT_MACROS 1" >>confdefs.h
18504 GNULIB_UTIMENSAT
=0;
18518 REPLACE_FUTIMENS
=0;
18524 REPLACE_UTIMENSAT
=0;
18529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
18530 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
18531 if test "${gl_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
18532 $as_echo_n "(cached) " >&6
18534 rm -f conftest.sym conftest.
file
18535 echo >conftest.
file
18536 if test "$as_ln_s" = "ln -s" && ln -s conftest.
file conftest.sym
; then
18537 if test "$cross_compiling" = yes; then :
18538 # When cross-compiling, be pessimistic so we will end up using the
18539 # replacement version of lstat that checks for trailing slashes and
18540 # calls lstat a second time when necessary.
18541 gl_cv_func_lstat_dereferences_slashed_symlink
=no
18544 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18545 /* end confdefs.h. */
18546 $ac_includes_default
18551 /* Linux will dereference the symlink and fail, as required by
18552 POSIX. That is better in the sense that it means we will not
18553 have to compile and use the lstat wrapper. */
18554 return lstat ("conftest.sym/", &sbuf) == 0;
18560 if ac_fn_c_try_run
"$LINENO"; then :
18561 gl_cv_func_lstat_dereferences_slashed_symlink
=yes
18563 gl_cv_func_lstat_dereferences_slashed_symlink
=no
18565 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
18566 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18570 # If the 'ln -s' command failed, then we probably don't even
18571 # have an lstat function.
18572 gl_cv_func_lstat_dereferences_slashed_symlink
=no
18574 rm -f conftest.sym conftest.
file
18577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lstat_dereferences_slashed_symlink" >&5
18578 $as_echo "$gl_cv_func_lstat_dereferences_slashed_symlink" >&6; }
18579 test $gl_cv_func_lstat_dereferences_slashed_symlink = yes &&
18581 cat >>confdefs.h
<<_ACEOF
18582 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
18588 GNULIB_NANOSLEEP
=0;
18592 HAVE_DECL_LOCALTIME_R
=1;
18596 REPLACE_LOCALTIME_R
=GNULIB_PORTCHECK
;
18597 REPLACE_MKTIME
=GNULIB_PORTCHECK
;
18598 REPLACE_NANOSLEEP
=GNULIB_PORTCHECK
;
18599 REPLACE_TIMEGM
=GNULIB_PORTCHECK
;
18606 GNULIB_PTHREAD_SIGMASK
=0;
18607 GNULIB_SIGNAL_H_SIGPIPE
=0;
18608 GNULIB_SIGPROCMASK
=0;
18609 GNULIB_SIGACTION
=0;
18610 HAVE_POSIX_SIGNALBLOCKING
=1;
18611 HAVE_PTHREAD_SIGMASK
=1;
18615 HAVE_STRUCT_SIGACTION_SA_SIGACTION
=1;
18617 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
=1;
18619 HAVE_SIGHANDLER_T
=1;
18620 REPLACE_PTHREAD_SIGMASK
=0;
18625 ac_fn_c_check_type
"$LINENO" "sigset_t" "ac_cv_type_sigset_t" "
18626 #include <signal.h>
18627 /* Mingw defines sigset_t not in <signal.h>, but in <sys/types.h>. */
18628 #include <sys/types.h>
18631 if test "x$ac_cv_type_sigset_t" = x
""yes; then :
18633 cat >>confdefs.h
<<_ACEOF
18634 #define HAVE_SIGSET_T 1
18637 gl_cv_type_sigset_t
=yes
18639 gl_cv_type_sigset_t
=no
18642 if test $gl_cv_type_sigset_t != yes; then
18650 if test $ac_cv_header_sys_socket_h = no
; then
18651 for ac_header
in ws2tcpip.h
18653 ac_fn_c_check_header_mongrel
"$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
18654 if test "x$ac_cv_header_ws2tcpip_h" = x
""yes; then :
18655 cat >>confdefs.h
<<_ACEOF
18656 #define HAVE_WS2TCPIP_H 1
18665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
18666 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
18667 if test "${ac_cv_header_stdbool_h+set}" = set; then :
18668 $as_echo_n "(cached) " >&6
18670 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18671 /* end confdefs.h. */
18673 #include <stdbool.h>
18675 "error: bool is not defined"
18678 "error: false is not defined"
18681 "error: false is not 0"
18684 "error: true is not defined"
18687 "error: true is not 1"
18689 #ifndef __bool_true_false_are_defined
18690 "error: __bool_true_false_are_defined is not defined"
18693 struct s { _Bool s: 1; _Bool t; } s;
18695 char a[true == 1 ? 1 : -1];
18696 char b[false == 0 ? 1 : -1];
18697 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
18698 char d[(bool) 0.5 == true ? 1 : -1];
18699 /* See body of main program for 'e'. */
18700 char f[(_Bool) 0.0 == false ? 1 : -1];
18702 char h[sizeof (_Bool)];
18703 char i[sizeof s.t];
18704 enum { j = false, k = true, l = false * true, m = true * 256 };
18705 /* The following fails for
18706 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
18708 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
18709 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
18710 /* Catch a bug in an HP-UX C compiler. See
18711 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
18712 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
18724 /* Refer to every declared value, to avoid compiler optimizations. */
18725 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
18726 + !m + !n + !o + !p + !q + !pq);
18732 if ac_fn_c_try_compile
"$LINENO"; then :
18733 ac_cv_header_stdbool_h
=yes
18735 ac_cv_header_stdbool_h
=no
18737 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
18740 $as_echo "$ac_cv_header_stdbool_h" >&6; }
18741 ac_fn_c_check_type
"$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
18742 if test "x$ac_cv_type__Bool" = x
""yes; then :
18744 cat >>confdefs.h
<<_ACEOF
18745 #define HAVE__BOOL 1
18757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
18758 $as_echo_n "checking for wchar_t... " >&6; }
18759 if test "${gt_cv_c_wchar_t+set}" = set; then :
18760 $as_echo_n "(cached) " >&6
18762 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18763 /* end confdefs.h. */
18764 #include <stddef.h>
18765 wchar_t foo = (wchar_t)'\0';
18774 if ac_fn_c_try_compile
"$LINENO"; then :
18775 gt_cv_c_wchar_t
=yes
18779 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
18782 $as_echo "$gt_cv_c_wchar_t" >&6; }
18783 if test $gt_cv_c_wchar_t = yes; then
18785 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
18797 GNULIB_FPRINTF_POSIX
=0;
18814 GNULIB_OBSTACK_PRINTF
=0;
18815 GNULIB_OBSTACK_PRINTF_POSIX
=0;
18819 GNULIB_PRINTF_POSIX
=0;
18828 GNULIB_SPRINTF_POSIX
=0;
18829 GNULIB_STDIO_H_NONBLOCKING
=0;
18830 GNULIB_STDIO_H_SIGPIPE
=0;
18832 GNULIB_VASPRINTF
=0;
18837 GNULIB_VFPRINTF_POSIX
=0;
18839 GNULIB_VPRINTF_POSIX
=0;
18840 GNULIB_VSNPRINTF
=0;
18841 GNULIB_VSPRINTF_POSIX
=0;
18842 HAVE_DECL_FPURGE
=1;
18843 HAVE_DECL_FSEEKO
=1;
18844 HAVE_DECL_FTELLO
=1;
18845 HAVE_DECL_GETDELIM
=1;
18846 HAVE_DECL_GETLINE
=1;
18847 HAVE_DECL_OBSTACK_PRINTF
=1;
18848 HAVE_DECL_SNPRINTF
=1;
18849 HAVE_DECL_VSNPRINTF
=1;
18867 REPLACE_GETDELIM
=0;
18869 REPLACE_OBSTACK_PRINTF
=0;
18875 REPLACE_RENAMEAT
=0;
18876 REPLACE_SNPRINTF
=0;
18878 REPLACE_STDIO_READ_FUNCS
=0;
18879 REPLACE_STDIO_WRITE_FUNCS
=0;
18881 REPLACE_VASPRINTF
=0;
18882 REPLACE_VDPRINTF
=0;
18883 REPLACE_VFPRINTF
=0;
18885 REPLACE_VSNPRINTF
=0;
18886 REPLACE_VSPRINTF
=0;
18889 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
18891 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x
""yes; then :
18893 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
18902 ac_fn_c_check_decl
"$LINENO" "strtoimax" "ac_cv_have_decl_strtoimax" "$ac_includes_default"
18903 if test "x$ac_cv_have_decl_strtoimax" = x
""yes; then :
18909 cat >>confdefs.h
<<_ACEOF
18910 #define HAVE_DECL_STRTOIMAX $ac_have_decl
18915 ac_fn_c_check_decl
"$LINENO" "strtoumax" "ac_cv_have_decl_strtoumax" "$ac_includes_default"
18916 if test "x$ac_cv_have_decl_strtoumax" = x
""yes; then :
18922 cat >>confdefs.h
<<_ACEOF
18923 #define HAVE_DECL_STRTOUMAX $ac_have_decl
18928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
18929 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
18930 if test "${ac_cv_header_stat_broken+set}" = set; then :
18931 $as_echo_n "(cached) " >&6
18933 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18934 /* end confdefs.h. */
18935 #include <sys/types.h>
18936 #include <sys/stat.h>
18938 #if defined S_ISBLK && defined S_IFDIR
18939 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
18942 #if defined S_ISBLK && defined S_IFCHR
18943 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
18946 #if defined S_ISLNK && defined S_IFREG
18947 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
18950 #if defined S_ISSOCK && defined S_IFREG
18951 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
18955 if ac_fn_c_try_compile
"$LINENO"; then :
18956 ac_cv_header_stat_broken
=no
18958 ac_cv_header_stat_broken
=yes
18960 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
18963 $as_echo "$ac_cv_header_stat_broken" >&6; }
18964 if test $ac_cv_header_stat_broken = yes; then
18966 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
18972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
18973 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
18974 if test "${ac_cv_c_restrict+set}" = set; then :
18975 $as_echo_n "(cached) " >&6
18977 ac_cv_c_restrict
=no
18978 # The order here caters to the fact that C++ does not require restrict.
18979 for ac_kw
in __restrict __restrict__ _Restrict restrict
; do
18980 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18981 /* end confdefs.h. */
18982 typedef int * int_ptr;
18983 int foo (int_ptr $ac_kw ip) {
18990 int * $ac_kw t = s;
18997 if ac_fn_c_try_compile
"$LINENO"; then :
18998 ac_cv_c_restrict
=$ac_kw
19000 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19001 test "$ac_cv_c_restrict" != no
&& break
19005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
19006 $as_echo "$ac_cv_c_restrict" >&6; }
19008 case $ac_cv_c_restrict in
19010 no
) $as_echo "#define restrict /**/" >>confdefs.h
19012 *) cat >>confdefs.h
<<_ACEOF
19013 #define restrict $ac_cv_c_restrict
19022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
19023 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
19024 if test "${gl_cv_sys_struct_timespec_in_time_h+set}" = set; then :
19025 $as_echo_n "(cached) " >&6
19027 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19028 /* end confdefs.h. */
19034 static struct timespec x; x.tv_sec = x.tv_nsec;
19039 if ac_fn_c_try_compile
"$LINENO"; then :
19040 gl_cv_sys_struct_timespec_in_time_h
=yes
19042 gl_cv_sys_struct_timespec_in_time_h
=no
19044 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
19047 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
19049 TIME_H_DEFINES_STRUCT_TIMESPEC
=0
19050 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
=0
19051 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
=0
19052 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
19053 TIME_H_DEFINES_STRUCT_TIMESPEC
=1
19055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
19056 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
19057 if test "${gl_cv_sys_struct_timespec_in_sys_time_h+set}" = set; then :
19058 $as_echo_n "(cached) " >&6
19060 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19061 /* end confdefs.h. */
19062 #include <sys/time.h>
19067 static struct timespec x; x.tv_sec = x.tv_nsec;
19072 if ac_fn_c_try_compile
"$LINENO"; then :
19073 gl_cv_sys_struct_timespec_in_sys_time_h
=yes
19075 gl_cv_sys_struct_timespec_in_sys_time_h
=no
19077 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
19080 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
19081 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
19082 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
=1
19084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
19085 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
19086 if test "${gl_cv_sys_struct_timespec_in_pthread_h+set}" = set; then :
19087 $as_echo_n "(cached) " >&6
19089 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19090 /* end confdefs.h. */
19091 #include <pthread.h>
19096 static struct timespec x; x.tv_sec = x.tv_nsec;
19101 if ac_fn_c_try_compile
"$LINENO"; then :
19102 gl_cv_sys_struct_timespec_in_pthread_h
=yes
19104 gl_cv_sys_struct_timespec_in_pthread_h
=no
19106 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
19109 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
19110 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
19111 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
=1
19130 if test $gl_cv_have_include_next = yes; then
19131 gl_cv_next_time_h
='<'time.h
'>'
19133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
19134 $as_echo_n "checking absolute name of <time.h>... " >&6; }
19135 if test "${gl_cv_next_time_h+set}" = set; then :
19136 $as_echo_n "(cached) " >&6
19139 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19140 /* end confdefs.h. */
19145 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
19146 *) gl_absname_cpp
="$ac_cpp" ;;
19151 gl_dirsep_regex
='[/\\]'
19154 gl_dirsep_regex
='/'
19158 gl_absolute_header_sed
='\#'"${gl_dirsep_regex}"'time.h#{
19159 s#.*"\(.*'"${gl_dirsep_regex}"'time.h\)".*#\1#
19164 gl_cv_next_time_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19165 sed -n "$gl_absolute_header_sed"`'"'
19169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
19170 $as_echo "$gl_cv_next_time_h" >&6; }
19172 NEXT_TIME_H
=$gl_cv_next_time_h
19174 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
19175 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19176 gl_next_as_first_directive
='<'time.h
'>'
19178 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19179 gl_next_as_first_directive
=$gl_cv_next_time_h
19181 NEXT_AS_FIRST_DIRECTIVE_TIME_H
=$gl_next_as_first_directive
19190 ac_fn_c_check_decl
"$LINENO" "localtime_r" "ac_cv_have_decl_localtime_r" "$ac_includes_default"
19191 if test "x$ac_cv_have_decl_localtime_r" = x
""yes; then :
19197 cat >>confdefs.h
<<_ACEOF
19198 #define HAVE_DECL_LOCALTIME_R $ac_have_decl
19205 GL_COND_LIBTOOL_TRUE
=
19206 GL_COND_LIBTOOL_FALSE
='#'
19208 GL_COND_LIBTOOL_TRUE
='#'
19209 GL_COND_LIBTOOL_FALSE
=
19212 gl_cond_libtool
=false
19225 gl_source_base
='lib'
19228 if test $ac_cv_func_alloca_works = no
; then
19232 # Define an additional variable used in the Makefile substitution.
19233 if test $ac_cv_working_alloca_h = yes; then
19234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
19235 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
19236 if test "${gl_cv_rpl_alloca+set}" = set; then :
19237 $as_echo_n "(cached) " >&6
19240 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19241 /* end confdefs.h. */
19243 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
19248 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19249 $EGREP "Need own alloca" >/dev
/null
2>&1; then :
19250 gl_cv_rpl_alloca
=yes
19252 gl_cv_rpl_alloca
=no
19258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
19259 $as_echo "$gl_cv_rpl_alloca" >&6; }
19260 if test $gl_cv_rpl_alloca = yes; then
19262 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
19272 if test -n "$ALLOCA_H"; then
19273 GL_GENERATE_ALLOCA_H_TRUE
=
19274 GL_GENERATE_ALLOCA_H_FALSE
='#'
19276 GL_GENERATE_ALLOCA_H_TRUE
='#'
19277 GL_GENERATE_ALLOCA_H_FALSE
=
19306 $as_echo "#define HAVE_DUP2 1" >>confdefs.h
19309 if test $HAVE_DUP2 = 1; then
19310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dup2 works" >&5
19311 $as_echo_n "checking whether dup2 works... " >&6; }
19312 if test "${gl_cv_func_dup2_works+set}" = set; then :
19313 $as_echo_n "(cached) " >&6
19315 if test "$cross_compiling" = yes; then :
19317 mingw
*) # on this platform, dup2 always returns 0 for success
19318 gl_cv_func_dup2_works
=no
;;
19319 cygwin
*) # on cygwin 1.5.x, dup2(1,1) returns 0
19320 gl_cv_func_dup2_works
=no
;;
19321 linux
*) # On linux between 2008-07-27 and 2009-05-11, dup2 of a
19322 # closed fd may yield -EBADF instead of -1 / errno=EBADF.
19323 gl_cv_func_dup2_works
=no
;;
19324 freebsd
*) # on FreeBSD 6.1, dup2(1,1000000) gives EMFILE, not EBADF.
19325 gl_cv_func_dup2_works
=no
;;
19326 haiku
*) # on Haiku alpha 2, dup2(1, 1) resets FD_CLOEXEC.
19327 gl_cv_func_dup2_works
=no
;;
19328 *) gl_cv_func_dup2_works
=yes;;
19331 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19332 /* end confdefs.h. */
19334 #include <unistd.h>
19342 if (fcntl (1, F_SETFD, FD_CLOEXEC) == -1)
19345 if (dup2 (1, 1) == 0)
19348 if (fcntl (1, F_GETFD) != FD_CLOEXEC)
19352 if (dup2 (0, 0) != -1)
19354 /* Many gnulib modules require POSIX conformance of EBADF. */
19355 if (dup2 (2, 1000000) == -1 && errno != EBADF)
19364 if ac_fn_c_try_run
"$LINENO"; then :
19365 gl_cv_func_dup2_works
=yes
19367 gl_cv_func_dup2_works
=no
19369 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19370 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dup2_works" >&5
19376 $as_echo "$gl_cv_func_dup2_works" >&6; }
19377 if test "$gl_cv_func_dup2_works" = no
; then
19383 if test $HAVE_DUP2 = 0 ||
test $REPLACE_DUP2 = 1; then
19392 gl_LIBOBJS
="$gl_LIBOBJS dup2.$ac_objext"
19412 # Persuade glibc <stdlib.h> to declare getloadavg().
19417 # getloadvg is present in libc on glibc >= 2.2, MacOS X, FreeBSD >= 2.0,
19418 # NetBSD >= 0.9, OpenBSD >= 2.0, Solaris >= 7.
19420 ac_fn_c_check_func
"$LINENO" "getloadavg" "ac_cv_func_getloadavg"
19421 if test "x$ac_cv_func_getloadavg" = x
""yes; then :
19424 gl_func_getloadavg_done
=no
19426 # Some systems with -lutil have (and need) -lkvm as well, some do not.
19427 # On Solaris, -lkvm requires nlist from -lelf, so check that first
19428 # to get the right answer into the cache.
19429 # For kstat on solaris, we need to test for libelf and libkvm to force the
19430 # definition of SVR4 below.
19431 if test $gl_func_getloadavg_done = no
; then
19432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
19433 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
19434 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then :
19435 $as_echo_n "(cached) " >&6
19437 ac_check_lib_save_LIBS
=$LIBS
19439 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19440 /* end confdefs.h. */
19442 /* Override any GCC internal prototype to avoid an error.
19443 Use char because int might match the return type of a GCC
19444 builtin and then its argument prototype would still apply. */
19452 return elf_begin ();
19457 if ac_fn_c_try_link
"$LINENO"; then :
19458 ac_cv_lib_elf_elf_begin
=yes
19460 ac_cv_lib_elf_elf_begin
=no
19462 rm -f core conftest.err conftest.
$ac_objext \
19463 conftest
$ac_exeext conftest.
$ac_ext
19464 LIBS
=$ac_check_lib_save_LIBS
19466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
19467 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
19468 if test "x$ac_cv_lib_elf_elf_begin" = x
""yes; then :
19472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
19473 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
19474 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then :
19475 $as_echo_n "(cached) " >&6
19477 ac_check_lib_save_LIBS
=$LIBS
19479 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19480 /* end confdefs.h. */
19482 /* Override any GCC internal prototype to avoid an error.
19483 Use char because int might match the return type of a GCC
19484 builtin and then its argument prototype would still apply. */
19492 return kvm_open ();
19497 if ac_fn_c_try_link
"$LINENO"; then :
19498 ac_cv_lib_kvm_kvm_open
=yes
19500 ac_cv_lib_kvm_kvm_open
=no
19502 rm -f core conftest.err conftest.
$ac_objext \
19503 conftest
$ac_exeext conftest.
$ac_ext
19504 LIBS
=$ac_check_lib_save_LIBS
19506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
19507 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
19508 if test "x$ac_cv_lib_kvm_kvm_open" = x
""yes; then :
19512 # Check for the 4.4BSD definition of getloadavg.
19513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5
19514 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
19515 if test "${ac_cv_lib_util_getloadavg+set}" = set; then :
19516 $as_echo_n "(cached) " >&6
19518 ac_check_lib_save_LIBS
=$LIBS
19519 LIBS
="-lutil $LIBS"
19520 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19521 /* end confdefs.h. */
19523 /* Override any GCC internal prototype to avoid an error.
19524 Use char because int might match the return type of a GCC
19525 builtin and then its argument prototype would still apply. */
19529 char getloadavg ();
19533 return getloadavg ();
19538 if ac_fn_c_try_link
"$LINENO"; then :
19539 ac_cv_lib_util_getloadavg
=yes
19541 ac_cv_lib_util_getloadavg
=no
19543 rm -f core conftest.err conftest.
$ac_objext \
19544 conftest
$ac_exeext conftest.
$ac_ext
19545 LIBS
=$ac_check_lib_save_LIBS
19547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5
19548 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
19549 if test "x$ac_cv_lib_util_getloadavg" = x
""yes; then :
19550 LIBS
="-lutil $LIBS" gl_func_getloadavg_done
=yes
19555 if test $gl_func_getloadavg_done = no
; then
19556 # There is a commonly available library for RS/6000 AIX.
19557 # Since it is not a standard part of AIX, it might be installed locally.
19558 gl_getloadavg_LIBS
=$LIBS
19559 LIBS
="-L/usr/local/lib $LIBS"
19560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5
19561 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
19562 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then :
19563 $as_echo_n "(cached) " >&6
19565 ac_check_lib_save_LIBS
=$LIBS
19566 LIBS
="-lgetloadavg $LIBS"
19567 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19568 /* end confdefs.h. */
19570 /* Override any GCC internal prototype to avoid an error.
19571 Use char because int might match the return type of a GCC
19572 builtin and then its argument prototype would still apply. */
19576 char getloadavg ();
19580 return getloadavg ();
19585 if ac_fn_c_try_link
"$LINENO"; then :
19586 ac_cv_lib_getloadavg_getloadavg
=yes
19588 ac_cv_lib_getloadavg_getloadavg
=no
19590 rm -f core conftest.err conftest.
$ac_objext \
19591 conftest
$ac_exeext conftest.
$ac_ext
19592 LIBS
=$ac_check_lib_save_LIBS
19594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5
19595 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
19596 if test "x$ac_cv_lib_getloadavg_getloadavg" = x
""yes; then :
19597 LIBS
="-lgetloadavg $LIBS" gl_func_getloadavg_done
=yes
19599 LIBS
=$gl_getloadavg_LIBS
19604 # Set up the replacement function if necessary.
19605 if test $gl_func_getloadavg_done = no
; then
19608 # Solaris has libkstat which does not require root.
19609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
19610 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
19611 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then :
19612 $as_echo_n "(cached) " >&6
19614 ac_check_lib_save_LIBS
=$LIBS
19615 LIBS
="-lkstat $LIBS"
19616 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19617 /* end confdefs.h. */
19619 /* Override any GCC internal prototype to avoid an error.
19620 Use char because int might match the return type of a GCC
19621 builtin and then its argument prototype would still apply. */
19625 char kstat_open ();
19629 return kstat_open ();
19634 if ac_fn_c_try_link
"$LINENO"; then :
19635 ac_cv_lib_kstat_kstat_open
=yes
19637 ac_cv_lib_kstat_kstat_open
=no
19639 rm -f core conftest.err conftest.
$ac_objext \
19640 conftest
$ac_exeext conftest.
$ac_ext
19641 LIBS
=$ac_check_lib_save_LIBS
19643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
19644 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
19645 if test "x$ac_cv_lib_kstat_kstat_open" = x
""yes; then :
19646 cat >>confdefs.h
<<_ACEOF
19647 #define HAVE_LIBKSTAT 1
19650 LIBS
="-lkstat $LIBS"
19654 test $ac_cv_lib_kstat_kstat_open = yes && gl_func_getloadavg_done
=yes
19656 # AIX has libperfstat which does not require root
19657 if test $gl_func_getloadavg_done = no
; then
19658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perfstat_cpu_total in -lperfstat" >&5
19659 $as_echo_n "checking for perfstat_cpu_total in -lperfstat... " >&6; }
19660 if test "${ac_cv_lib_perfstat_perfstat_cpu_total+set}" = set; then :
19661 $as_echo_n "(cached) " >&6
19663 ac_check_lib_save_LIBS
=$LIBS
19664 LIBS
="-lperfstat $LIBS"
19665 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19666 /* end confdefs.h. */
19668 /* Override any GCC internal prototype to avoid an error.
19669 Use char because int might match the return type of a GCC
19670 builtin and then its argument prototype would still apply. */
19674 char perfstat_cpu_total ();
19678 return perfstat_cpu_total ();
19683 if ac_fn_c_try_link
"$LINENO"; then :
19684 ac_cv_lib_perfstat_perfstat_cpu_total
=yes
19686 ac_cv_lib_perfstat_perfstat_cpu_total
=no
19688 rm -f core conftest.err conftest.
$ac_objext \
19689 conftest
$ac_exeext conftest.
$ac_ext
19690 LIBS
=$ac_check_lib_save_LIBS
19692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_perfstat_perfstat_cpu_total" >&5
19693 $as_echo "$ac_cv_lib_perfstat_perfstat_cpu_total" >&6; }
19694 if test "x$ac_cv_lib_perfstat_perfstat_cpu_total" = x
""yes; then :
19695 cat >>confdefs.h
<<_ACEOF
19696 #define HAVE_LIBPERFSTAT 1
19699 LIBS
="-lperfstat $LIBS"
19703 test $ac_cv_lib_perfstat_perfstat_cpu_total = yes && gl_func_getloadavg_done
=yes
19706 if test $gl_func_getloadavg_done = no
; then
19707 ac_fn_c_check_header_mongrel
"$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
19708 if test "x$ac_cv_header_sys_dg_sys_info_h" = x
""yes; then :
19709 gl_func_getloadavg_done
=yes
19711 $as_echo "#define DGUX 1" >>confdefs.h
19713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5
19714 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
19715 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then :
19716 $as_echo_n "(cached) " >&6
19718 ac_check_lib_save_LIBS
=$LIBS
19720 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19721 /* end confdefs.h. */
19723 /* Override any GCC internal prototype to avoid an error.
19724 Use char because int might match the return type of a GCC
19725 builtin and then its argument prototype would still apply. */
19729 char dg_sys_info ();
19733 return dg_sys_info ();
19738 if ac_fn_c_try_link
"$LINENO"; then :
19739 ac_cv_lib_dgc_dg_sys_info
=yes
19741 ac_cv_lib_dgc_dg_sys_info
=no
19743 rm -f core conftest.err conftest.
$ac_objext \
19744 conftest
$ac_exeext conftest.
$ac_ext
19745 LIBS
=$ac_check_lib_save_LIBS
19747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5
19748 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
19749 if test "x$ac_cv_lib_dgc_dg_sys_info" = x
""yes; then :
19750 cat >>confdefs.h
<<_ACEOF
19751 #define HAVE_LIBDGC 1
19766 if test "x$gl_save_LIBS" = x
; then
19767 GETLOADAVG_LIBS
=$LIBS
19769 GETLOADAVG_LIBS
=`echo "$LIBS" | sed "s!$gl_save_LIBS!!"`
19774 # Test whether the system declares getloadavg. Solaris has the function
19775 # but declares it in <sys/loadavg.h>, not <stdlib.h>.
19776 for ac_header
in sys
/loadavg.h
19778 ac_fn_c_check_header_mongrel
"$LINENO" "sys/loadavg.h" "ac_cv_header_sys_loadavg_h" "$ac_includes_default"
19779 if test "x$ac_cv_header_sys_loadavg_h" = x
""yes; then :
19780 cat >>confdefs.h
<<_ACEOF
19781 #define HAVE_SYS_LOADAVG_H 1
19788 if test $ac_cv_header_sys_loadavg_h = yes; then
19789 HAVE_SYS_LOADAVG_H
=1
19791 HAVE_SYS_LOADAVG_H
=0
19793 ac_fn_c_check_decl
"$LINENO" "getloadavg" "ac_cv_have_decl_getloadavg" "#if HAVE_SYS_LOADAVG_H
19794 # include <sys/loadavg.h>
19796 #include <stdlib.h>
19798 if test "x$ac_cv_have_decl_getloadavg" = x
""yes; then :
19801 HAVE_DECL_GETLOADAVG
=0
19805 if test $HAVE_GETLOADAVG = 0; then
19814 gl_LIBOBJS
="$gl_LIBOBJS getloadavg.$ac_objext"
19817 # Figure out what our getloadavg.c needs.
19819 # On HPUX9, an unprivileged user can get load averages this way.
19820 if test $gl_func_getloadavg_done = no
; then
19821 for ac_func
in pstat_getdynamic
19823 ac_fn_c_check_func
"$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic"
19824 if test "x$ac_cv_func_pstat_getdynamic" = x
""yes; then :
19825 cat >>confdefs.h
<<_ACEOF
19826 #define HAVE_PSTAT_GETDYNAMIC 1
19828 gl_func_getloadavg_done
=yes
19834 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
19835 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
19836 # Irix 4.0.5F has the header but not the library.
19837 if test $gl_func_getloadavg_done = no
&& test "$ac_cv_lib_elf_elf_begin" = yes \
19838 && test "$ac_cv_lib_kvm_kvm_open" = yes; then
19839 gl_func_getloadavg_done
=yes
19841 $as_echo "#define SVR4 1" >>confdefs.h
19845 if test $gl_func_getloadavg_done = no
; then
19846 ac_fn_c_check_header_mongrel
"$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default"
19847 if test "x$ac_cv_header_inq_stats_cpustats_h" = x
""yes; then :
19848 gl_func_getloadavg_done
=yes
19850 $as_echo "#define UMAX 1" >>confdefs.h
19853 $as_echo "#define UMAX4_3 1" >>confdefs.h
19860 if test $gl_func_getloadavg_done = no
; then
19861 ac_fn_c_check_header_mongrel
"$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default"
19862 if test "x$ac_cv_header_sys_cpustats_h" = x
""yes; then :
19863 gl_func_getloadavg_done
=yes; $as_echo "#define UMAX 1" >>confdefs.h
19870 if test $gl_func_getloadavg_done = no
; then
19871 for ac_header
in mach
/mach.h
19873 ac_fn_c_check_header_mongrel
"$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
19874 if test "x$ac_cv_header_mach_mach_h" = x
""yes; then :
19875 cat >>confdefs.h
<<_ACEOF
19876 #define HAVE_MACH_MACH_H 1
19885 for ac_header
in nlist.h
19887 ac_fn_c_check_header_mongrel
"$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
19888 if test "x$ac_cv_header_nlist_h" = x
""yes; then :
19889 cat >>confdefs.h
<<_ACEOF
19890 #define HAVE_NLIST_H 1
19892 ac_fn_c_check_member
"$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h>
19894 if test "x$ac_cv_member_struct_nlist_n_un_n_name" = x
""yes; then :
19896 cat >>confdefs.h
<<_ACEOF
19897 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
19903 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19904 /* end confdefs.h. */
19910 #ifdef HAVE_STRUCT_NLIST_N_UN_N_NAME
19911 x.n_un.n_name = "";
19919 if ac_fn_c_try_link
"$LINENO"; then :
19921 $as_echo "#define N_NAME_POINTER 1" >>confdefs.h
19924 rm -f core conftest.err conftest.
$ac_objext \
19925 conftest
$ac_exeext conftest.
$ac_ext
19937 GNULIB_GETLOADAVG
=1
19948 if test $REPLACE_GETOPT = 1; then
19957 gl_LIBOBJS
="$gl_LIBOBJS getopt.$ac_objext"
19967 gl_LIBOBJS
="$gl_LIBOBJS getopt1.$ac_objext"
19981 if test -n "$gl_replace_getopt"; then :
19988 if test $REPLACE_GETOPT = 1; then
19992 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
19996 GNULIB_UNISTD_H_GETOPT
=1
19999 if test $REPLACE_GETOPT = 1; then
20008 gl_LIBOBJS
="$gl_LIBOBJS getopt.$ac_objext"
20018 gl_LIBOBJS
="$gl_LIBOBJS getopt1.$ac_objext"
20029 if test $ac_cv_func_lstat = yes; then
20031 if test $gl_cv_func_lstat_dereferences_slashed_symlink = no
; then
20038 if test $REPLACE_LSTAT = 1; then
20047 gl_LIBOBJS
="$gl_LIBOBJS lstat.$ac_objext"
20071 if test $APPLE_UNIVERSAL_BUILD = 1; then
20072 # A universal build on Apple MacOS X platforms.
20073 # The test result would be 'yes' in 32-bit mode and 'no' in 64-bit mode.
20074 # But we need a configuration result that is valid in both modes.
20075 gl_cv_func_working_mktime
=no
20077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
20078 $as_echo_n "checking for working mktime... " >&6; }
20079 if test "${gl_cv_func_working_mktime+set}" = set; then :
20080 $as_echo_n "(cached) " >&6
20082 if test "$cross_compiling" = yes; then :
20083 gl_cv_func_working_mktime
=no
20085 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20086 /* end confdefs.h. */
20087 /* Test program from Paul Eggert and Tony Leneis. */
20088 #include <limits.h>
20089 #include <stdlib.h>
20092 #ifdef HAVE_UNISTD_H
20093 # include <unistd.h>
20097 # define alarm(X) /* empty */
20100 /* Work around redefinition to rpl_putenv by other config tests. */
20103 static time_t time_t_max;
20104 static time_t time_t_min;
20106 /* Values we'll use to set the TZ environment variable. */
20107 static char *tz_strings[] = {
20108 (char *) 0, "TZ=GMT0", "TZ=JST-9",
20109 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
20111 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
20113 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
20114 Based on a problem report from Andreas Jaeger. */
20116 spring_forward_gap ()
20118 /* glibc (up to about 1998-10-07) failed this test. */
20121 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
20122 instead of "TZ=America/Vancouver" in order to detect the bug even
20123 on systems that don't support the Olson extension, or don't have the
20124 full zoneinfo tables installed. */
20125 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
20134 return mktime (&tm) != (time_t) -1;
20138 mktime_test1 (time_t now)
20141 return ! (lt = localtime (&now)) || mktime (lt) == now;
20145 mktime_test (time_t now)
20147 return (mktime_test1 (now)
20148 && mktime_test1 ((time_t) (time_t_max - now))
20149 && mktime_test1 ((time_t) (time_t_min + now)));
20155 /* Based on code from Ariel Faigon. */
20165 return tm.tm_mon == 2 && tm.tm_mday == 31;
20169 bigtime_test (int j)
20173 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
20174 now = mktime (&tm);
20175 if (now != (time_t) -1)
20177 struct tm *lt = localtime (&now);
20179 && lt->tm_year == tm.tm_year
20180 && lt->tm_mon == tm.tm_mon
20181 && lt->tm_mday == tm.tm_mday
20182 && lt->tm_hour == tm.tm_hour
20183 && lt->tm_min == tm.tm_min
20184 && lt->tm_sec == tm.tm_sec
20185 && lt->tm_yday == tm.tm_yday
20186 && lt->tm_wday == tm.tm_wday
20187 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
20188 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
20197 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
20198 ignoring leap seconds. */
20199 unsigned long int answer = 2527315200UL;
20203 tm.tm_year = 2050 - 1900;
20206 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
20209 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
20210 instead of "TZ=America/Vancouver" in order to detect the bug even
20211 on systems that don't support the Olson extension, or don't have the
20212 full zoneinfo tables installed. */
20213 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
20217 /* Check that the result is either a failure, or close enough
20218 to the correct answer that we can assume the discrepancy is
20219 due to leap seconds. */
20220 return (t == (time_t) -1
20221 || (0 < t && answer - 120 <= t && t <= answer + 120));
20230 int time_t_signed_magnitude = (time_t) ~ (time_t) 0 < (time_t) -1;
20231 int time_t_signed = ! ((time_t) 0 < (time_t) -1);
20233 /* This test makes some buggy mktime implementations loop.
20234 Give up after 60 seconds; a mktime slower than that
20235 isn't worth using anyway. */
20238 time_t_max = (! time_t_signed
20240 : ((((time_t) 1 << (sizeof (time_t) * CHAR_BIT - 2)) - 1)
20242 time_t_min = (! time_t_signed
20244 : time_t_signed_magnitude
20248 delta = time_t_max / 997; /* a suitable prime number */
20249 for (i = 0; i < N_STRINGS; i++)
20252 putenv (tz_strings[i]);
20254 for (t = 0; t <= time_t_max - delta; t += delta)
20255 if (! mktime_test (t))
20257 if (! (mktime_test ((time_t) 1)
20258 && mktime_test ((time_t) (60 * 60))
20259 && mktime_test ((time_t) (60 * 60 * 24))))
20262 for (j = 1; ; j <<= 1)
20263 if (! bigtime_test (j))
20265 else if (INT_MAX / 2 < j)
20267 if (! bigtime_test (INT_MAX))
20270 if (! irix_6_4_bug ())
20272 if (! spring_forward_gap ())
20274 if (! year_2050_test ())
20279 if ac_fn_c_try_run
"$LINENO"; then :
20280 gl_cv_func_working_mktime
=yes
20282 gl_cv_func_working_mktime
=no
20284 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20285 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_mktime" >&5
20291 $as_echo "$gl_cv_func_working_mktime" >&6; }
20293 if test $gl_cv_func_working_mktime = no
; then
20299 if test $REPLACE_MKTIME = 1; then
20308 gl_LIBOBJS
="$gl_LIBOBJS mktime.$ac_objext"
20328 LIB_PTHREAD_SIGMASK
=
20331 if test $ac_cv_func_pthread_sigmask = yes; then
20334 HAVE_PTHREAD_SIGMASK
=0
20335 REPLACE_PTHREAD_SIGMASK
=1
20341 if test $HAVE_PTHREAD_SIGMASK = 1; then
20344 if test -z "$LIB_PTHREAD_SIGMASK"; then
20345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask works without -lpthread" >&5
20346 $as_echo_n "checking whether pthread_sigmask works without -lpthread... " >&6; }
20347 if test "${gl_cv_func_pthread_sigmask_in_libc_works+set}" = set; then :
20348 $as_echo_n "(cached) " >&6
20351 if test "$cross_compiling" = yes; then :
20354 freebsd
* | hpux
* | solaris | solaris2.
[2-9]*)
20355 gl_cv_func_pthread_sigmask_in_libc_works
="guessing no";;
20357 gl_cv_func_pthread_sigmask_in_libc_works
="guessing yes";;
20361 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20362 /* end confdefs.h. */
20364 #include <pthread.h>
20365 #include <signal.h>
20366 #include <stddef.h>
20370 sigemptyset (&set);
20371 return pthread_sigmask (1729, &set, NULL) != 0;
20374 if ac_fn_c_try_run
"$LINENO"; then :
20375 gl_cv_func_pthread_sigmask_in_libc_works
=no
20377 gl_cv_func_pthread_sigmask_in_libc_works
=yes
20379 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20380 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_in_libc_works" >&5
20386 $as_echo "$gl_cv_func_pthread_sigmask_in_libc_works" >&6; }
20387 case "$gl_cv_func_pthread_sigmask_in_libc_works" in
20389 REPLACE_PTHREAD_SIGMASK
=1
20391 $as_echo "#define PTHREAD_SIGMASK_INEFFECTIVE 1" >>confdefs.h
20397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask returns error numbers" >&5
20398 $as_echo_n "checking whether pthread_sigmask returns error numbers... " >&6; }
20399 if test "${gl_cv_func_pthread_sigmask_return_works+set}" = set; then :
20400 $as_echo_n "(cached) " >&6
20403 gl_save_LIBS
="$LIBS"
20404 LIBS
="$LIBS $LIB_PTHREAD_SIGMASK"
20405 if test "$cross_compiling" = yes; then :
20408 gl_cv_func_pthread_sigmask_return_works
="guessing no";;
20410 gl_cv_func_pthread_sigmask_return_works
="guessing yes";;
20414 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20415 /* end confdefs.h. */
20417 #include <pthread.h>
20418 #include <signal.h>
20419 #include <stddef.h>
20423 sigemptyset (&set);
20424 if (pthread_sigmask (1729, &set, NULL) == -1)
20429 if ac_fn_c_try_run
"$LINENO"; then :
20430 gl_cv_func_pthread_sigmask_return_works
=yes
20432 gl_cv_func_pthread_sigmask_return_works
=no
20434 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20435 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20438 LIBS
="$gl_save_LIBS"
20441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_return_works" >&5
20442 $as_echo "$gl_cv_func_pthread_sigmask_return_works" >&6; }
20443 case "$gl_cv_func_pthread_sigmask_return_works" in
20445 REPLACE_PTHREAD_SIGMASK
=1
20447 $as_echo "#define PTHREAD_SIGMASK_FAILS_WITH_ERRNO 1" >>confdefs.h
20452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask unblocks signals correctly" >&5
20453 $as_echo_n "checking whether pthread_sigmask unblocks signals correctly... " >&6; }
20454 if test "${gl_cv_func_pthread_sigmask_unblock_works+set}" = set; then :
20455 $as_echo_n "(cached) " >&6
20460 gl_cv_func_pthread_sigmask_unblock_works
="guessing no";;
20462 gl_cv_func_pthread_sigmask_unblock_works
="guessing yes";;
20464 gl_save_LIBS
="$LIBS"
20465 LIBS
="$LIBS $LIBMULTITHREAD"
20466 if test "$cross_compiling" = yes; then :
20469 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20470 /* end confdefs.h. */
20472 #include <pthread.h>
20473 #include <signal.h>
20475 #include <stdlib.h>
20476 #include <unistd.h>
20477 static volatile int sigint_occurred;
20479 sigint_handler (int sig)
20486 int pid = getpid ();
20488 signal (SIGINT, sigint_handler);
20489 sigemptyset (&set);
20490 sigaddset (&set, SIGINT);
20491 if (!(pthread_sigmask (SIG_BLOCK, &set, NULL) == 0))
20493 sprintf (command, "sh -c 'sleep 1; kill -%d %d' &", SIGINT, pid);
20494 if (!(system (command) == 0))
20497 if (!(sigint_occurred == 0))
20499 if (!(pthread_sigmask (SIG_UNBLOCK, &set, NULL) == 0))
20501 if (!(sigint_occurred == 1)) /* This fails on IRIX. */
20506 if ac_fn_c_try_run
"$LINENO"; then :
20509 gl_cv_func_pthread_sigmask_unblock_works
=no
20511 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20512 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20515 LIBS
="$gl_save_LIBS"
20518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_unblock_works" >&5
20519 $as_echo "$gl_cv_func_pthread_sigmask_unblock_works" >&6; }
20520 case "$gl_cv_func_pthread_sigmask_unblock_works" in
20522 REPLACE_PTHREAD_SIGMASK
=1
20524 $as_echo "#define PTHREAD_SIGMASK_UNBLOCK_BUG 1" >>confdefs.h
20530 if test $HAVE_PTHREAD_SIGMASK = 0 ||
test $REPLACE_PTHREAD_SIGMASK = 1; then
20539 gl_LIBOBJS
="$gl_LIBOBJS pthread_sigmask.$ac_objext"
20542 if test $HAVE_PTHREAD_SIGMASK = 1; then
20544 $as_echo "#define HAVE_PTHREAD_SIGMASK 1" >>confdefs.h
20554 GNULIB_PTHREAD_SIGMASK
=1
20563 if test $ac_cv_func_readlink = no
; then
20566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink signature is correct" >&5
20567 $as_echo_n "checking whether readlink signature is correct... " >&6; }
20568 if test "${gl_cv_decl_readlink_works+set}" = set; then :
20569 $as_echo_n "(cached) " >&6
20571 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20572 /* end confdefs.h. */
20573 #include <unistd.h>
20574 /* Cause compilation failure if original declaration has wrong type. */
20575 ssize_t readlink (const char *, char *, size_t);
20584 if ac_fn_c_try_compile
"$LINENO"; then :
20585 gl_cv_decl_readlink_works
=yes
20587 gl_cv_decl_readlink_works
=no
20589 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_readlink_works" >&5
20592 $as_echo "$gl_cv_decl_readlink_works" >&6; }
20593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink handles trailing slash correctly" >&5
20594 $as_echo_n "checking whether readlink handles trailing slash correctly... " >&6; }
20595 if test "${gl_cv_func_readlink_works+set}" = set; then :
20596 $as_echo_n "(cached) " >&6
20598 # We have readlink, so assume ln -s works.
20599 ln -s conftest.no-such conftest.link
20600 ln -s conftest.link conftest.lnk2
20601 if test "$cross_compiling" = yes; then :
20602 gl_cv_func_readlink_works
="guessing no"
20604 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20605 /* end confdefs.h. */
20606 #include <unistd.h>
20612 return readlink ("conftest.lnk2/", buf, sizeof buf) != -1;
20617 if ac_fn_c_try_run
"$LINENO"; then :
20618 gl_cv_func_readlink_works
=yes
20620 gl_cv_func_readlink_works
=no
20622 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20623 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20626 rm -f conftest.link conftest.lnk2
20628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_readlink_works" >&5
20629 $as_echo "$gl_cv_func_readlink_works" >&6; }
20630 if test "$gl_cv_func_readlink_works" != yes; then
20632 $as_echo "#define READLINK_TRAILING_SLASH_BUG 1" >>confdefs.h
20635 elif test "$gl_cv_decl_readlink_works" != yes; then
20640 if test $HAVE_READLINK = 0 ||
test $REPLACE_READLINK = 1; then
20649 gl_LIBOBJS
="$gl_LIBOBJS readlink.$ac_objext"
20677 if test $gl_cv_have_include_next = yes; then
20678 gl_cv_next_signal_h
='<'signal.h
'>'
20680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <signal.h>" >&5
20681 $as_echo_n "checking absolute name of <signal.h>... " >&6; }
20682 if test "${gl_cv_next_signal_h+set}" = set; then :
20683 $as_echo_n "(cached) " >&6
20686 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20687 /* end confdefs.h. */
20688 #include <signal.h>
20692 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
20693 *) gl_absname_cpp
="$ac_cpp" ;;
20698 gl_dirsep_regex
='[/\\]'
20701 gl_dirsep_regex
='/'
20705 gl_absolute_header_sed
='\#'"${gl_dirsep_regex}"'signal.h#{
20706 s#.*"\(.*'"${gl_dirsep_regex}"'signal.h\)".*#\1#
20711 gl_cv_next_signal_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20712 sed -n "$gl_absolute_header_sed"`'"'
20716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_signal_h" >&5
20717 $as_echo "$gl_cv_next_signal_h" >&6; }
20719 NEXT_SIGNAL_H
=$gl_cv_next_signal_h
20721 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
20722 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20723 gl_next_as_first_directive
='<'signal.h
'>'
20725 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20726 gl_next_as_first_directive
=$gl_cv_next_signal_h
20728 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H
=$gl_next_as_first_directive
20734 # AIX declares sig_atomic_t to already include volatile, and C89 compilers
20735 # then choke on 'volatile sig_atomic_t'. C99 requires that it compile.
20736 ac_fn_c_check_type
"$LINENO" "volatile sig_atomic_t" "ac_cv_type_volatile_sig_atomic_t" "
20737 #include <signal.h>
20740 if test "x$ac_cv_type_volatile_sig_atomic_t" = x
""yes; then :
20743 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
=0
20752 ac_fn_c_check_type
"$LINENO" "sighandler_t" "ac_cv_type_sighandler_t" "
20753 #include <signal.h>
20756 if test "x$ac_cv_type_sighandler_t" = x
""yes; then :
20759 HAVE_SIGHANDLER_T
=0
20765 ac_fn_c_check_type
"$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
20766 /* <sys/types.h> is not needed according to POSIX, but the
20767 <sys/socket.h> in i386-unknown-freebsd4.10 and
20768 powerpc-apple-darwin5.5 required it. */
20769 #include <sys/types.h>
20770 #if HAVE_SYS_SOCKET_H
20771 # include <sys/socket.h>
20772 #elif HAVE_WS2TCPIP_H
20773 # include <ws2tcpip.h>
20777 if test "x$ac_cv_type_socklen_t" = x
""yes; then :
20780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
20781 $as_echo_n "checking for socklen_t equivalent... " >&6; }
20782 if test "${gl_cv_socklen_t_equiv+set}" = set; then :
20783 $as_echo_n "(cached) " >&6
20785 # Systems have either "struct sockaddr *" or
20786 # "void *" as the second argument to getpeername
20787 gl_cv_socklen_t_equiv
=
20788 for arg2
in "struct sockaddr" void
; do
20789 for t
in int size_t
"unsigned int" "long int" "unsigned long int"; do
20790 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20791 /* end confdefs.h. */
20792 #include <sys/types.h>
20793 #include <sys/socket.h>
20795 int getpeername (int, $arg2 *, $t *);
20800 getpeername (0, 0, &len);
20805 if ac_fn_c_try_compile
"$LINENO"; then :
20806 gl_cv_socklen_t_equiv
="$t"
20808 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20809 test "$gl_cv_socklen_t_equiv" != "" && break
20811 test "$gl_cv_socklen_t_equiv" != "" && break
20816 if test "$gl_cv_socklen_t_equiv" = ""; then
20817 as_fn_error
"Cannot find a type to use in place of socklen_t" "$LINENO" 5
20819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socklen_t_equiv" >&5
20820 $as_echo "$gl_cv_socklen_t_equiv" >&6; }
20822 cat >>confdefs.h
<<_ACEOF
20823 #define socklen_t $gl_cv_socklen_t_equiv
20829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
20830 $as_echo_n "checking for ssize_t... " >&6; }
20831 if test "${gt_cv_ssize_t+set}" = set; then :
20832 $as_echo_n "(cached) " >&6
20834 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20835 /* end confdefs.h. */
20836 #include <sys/types.h>
20840 int x = sizeof (ssize_t *) + sizeof (ssize_t);
20846 if ac_fn_c_try_compile
"$LINENO"; then :
20851 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
20854 $as_echo "$gt_cv_ssize_t" >&6; }
20855 if test $gt_cv_ssize_t = no
; then
20857 $as_echo "#define ssize_t int" >>confdefs.h
20863 NEXT_STDARG_H
='<stdarg.h>'
20864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
20865 $as_echo_n "checking for va_copy... " >&6; }
20866 if test "${gl_cv_func_va_copy+set}" = set; then :
20867 $as_echo_n "(cached) " >&6
20870 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20871 /* end confdefs.h. */
20872 #include <stdarg.h>
20878 void (*func) (va_list, va_list) = va_copy;
20885 if ac_fn_c_try_compile
"$LINENO"; then :
20886 gl_cv_func_va_copy
=yes
20888 gl_cv_func_va_copy
=no
20890 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_va_copy" >&5
20894 $as_echo "$gl_cv_func_va_copy" >&6; }
20895 if test $gl_cv_func_va_copy = no
; then
20896 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20897 /* end confdefs.h. */
20898 #if defined _AIX && !defined __GNUC__
20903 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20904 $EGREP "vaccine" >/dev
/null
2>&1; then :
20911 if test $gl_aixcc = yes; then
20921 if test $gl_cv_have_include_next = yes; then
20922 gl_cv_next_stdarg_h
='<'stdarg.h
'>'
20924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdarg.h>" >&5
20925 $as_echo_n "checking absolute name of <stdarg.h>... " >&6; }
20926 if test "${gl_cv_next_stdarg_h+set}" = set; then :
20927 $as_echo_n "(cached) " >&6
20930 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20931 /* end confdefs.h. */
20932 #include <stdarg.h>
20936 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
20937 *) gl_absname_cpp
="$ac_cpp" ;;
20942 gl_dirsep_regex
='[/\\]'
20945 gl_dirsep_regex
='/'
20949 gl_absolute_header_sed
='\#'"${gl_dirsep_regex}"'stdarg.h#{
20950 s#.*"\(.*'"${gl_dirsep_regex}"'stdarg.h\)".*#\1#
20955 gl_cv_next_stdarg_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20956 sed -n "$gl_absolute_header_sed"`'"'
20960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdarg_h" >&5
20961 $as_echo "$gl_cv_next_stdarg_h" >&6; }
20963 NEXT_STDARG_H
=$gl_cv_next_stdarg_h
20965 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
20966 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20967 gl_next_as_first_directive
='<'stdarg.h
'>'
20969 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20970 gl_next_as_first_directive
=$gl_cv_next_stdarg_h
20972 NEXT_AS_FIRST_DIRECTIVE_STDARG_H
=$gl_next_as_first_directive
20977 if test "$gl_cv_next_stdarg_h" = '""'; then
20978 gl_cv_next_stdarg_h
='"///usr/include/stdarg.h"'
20979 NEXT_STDARG_H
="$gl_cv_next_stdarg_h"
20983 saved_as_echo_n
="$as_echo_n"
20985 if test "${gl_cv_func___va_copy+set}" = set; then :
20986 $as_echo_n "(cached) " >&6
20989 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20990 /* end confdefs.h. */
20991 #include <stdarg.h>
21004 if ac_fn_c_try_compile
"$LINENO"; then :
21005 gl_cv_func___va_copy
=yes
21007 gl_cv_func___va_copy
=no
21009 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21012 as_echo_n
="$saved_as_echo_n"
21014 if test $gl_cv_func___va_copy = yes; then
21016 $as_echo "#define va_copy __va_copy" >>confdefs.h
21021 $as_echo "#define va_copy gl_va_copy" >>confdefs.h
21027 if test -n "$STDARG_H"; then
21028 GL_GENERATE_STDARG_H_TRUE
=
21029 GL_GENERATE_STDARG_H_FALSE
='#'
21031 GL_GENERATE_STDARG_H_TRUE
='#'
21032 GL_GENERATE_STDARG_H_FALSE
=
21040 # Define two additional variables used in the Makefile substitution.
21042 if test "$ac_cv_header_stdbool_h" = yes; then
21045 STDBOOL_H
='stdbool.h'
21048 if test -n "$STDBOOL_H"; then
21049 GL_GENERATE_STDBOOL_H_TRUE
=
21050 GL_GENERATE_STDBOOL_H_FALSE
='#'
21052 GL_GENERATE_STDBOOL_H_TRUE
='#'
21053 GL_GENERATE_STDBOOL_H_FALSE
=
21057 if test "$ac_cv_type__Bool" = yes; then
21068 if test $gt_cv_c_wchar_t = no
; then
21072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
21073 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
21074 if test "${gl_cv_decl_null_works+set}" = set; then :
21075 $as_echo_n "(cached) " >&6
21077 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21078 /* end confdefs.h. */
21079 #include <stddef.h>
21080 int test[2 * (sizeof NULL == sizeof (void *)) -1];
21090 if ac_fn_c_try_compile
"$LINENO"; then :
21091 gl_cv_decl_null_works
=yes
21093 gl_cv_decl_null_works
=no
21095 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
21098 $as_echo "$gl_cv_decl_null_works" >&6; }
21099 if test $gl_cv_decl_null_works = no
; then
21104 if test -n "$STDDEF_H"; then
21105 GL_GENERATE_STDDEF_H_TRUE
=
21106 GL_GENERATE_STDDEF_H_FALSE
='#'
21108 GL_GENERATE_STDDEF_H_TRUE
='#'
21109 GL_GENERATE_STDDEF_H_FALSE
=
21112 if test -n "$STDDEF_H"; then
21121 if test $gl_cv_have_include_next = yes; then
21122 gl_cv_next_stddef_h
='<'stddef.h
'>'
21124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
21125 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
21126 if test "${gl_cv_next_stddef_h+set}" = set; then :
21127 $as_echo_n "(cached) " >&6
21130 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21131 /* end confdefs.h. */
21132 #include <stddef.h>
21136 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
21137 *) gl_absname_cpp
="$ac_cpp" ;;
21142 gl_dirsep_regex
='[/\\]'
21145 gl_dirsep_regex
='/'
21149 gl_absolute_header_sed
='\#'"${gl_dirsep_regex}"'stddef.h#{
21150 s#.*"\(.*'"${gl_dirsep_regex}"'stddef.h\)".*#\1#
21155 gl_cv_next_stddef_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21156 sed -n "$gl_absolute_header_sed"`'"'
21160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
21161 $as_echo "$gl_cv_next_stddef_h" >&6; }
21163 NEXT_STDDEF_H
=$gl_cv_next_stddef_h
21165 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
21166 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21167 gl_next_as_first_directive
='<'stddef.h
'>'
21169 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21170 gl_next_as_first_directive
=$gl_cv_next_stddef_h
21172 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
=$gl_next_as_first_directive
21191 if test $gl_cv_have_include_next = yes; then
21192 gl_cv_next_stdio_h
='<'stdio.h
'>'
21194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
21195 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
21196 if test "${gl_cv_next_stdio_h+set}" = set; then :
21197 $as_echo_n "(cached) " >&6
21200 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21201 /* end confdefs.h. */
21206 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
21207 *) gl_absname_cpp
="$ac_cpp" ;;
21212 gl_dirsep_regex
='[/\\]'
21215 gl_dirsep_regex
='/'
21219 gl_absolute_header_sed
='\#'"${gl_dirsep_regex}"'stdio.h#{
21220 s#.*"\(.*'"${gl_dirsep_regex}"'stdio.h\)".*#\1#
21225 gl_cv_next_stdio_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21226 sed -n "$gl_absolute_header_sed"`'"'
21230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
21231 $as_echo "$gl_cv_next_stdio_h" >&6; }
21233 NEXT_STDIO_H
=$gl_cv_next_stdio_h
21235 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
21236 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21237 gl_next_as_first_directive
='<'stdio.h
'>'
21239 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21240 gl_next_as_first_directive
=$gl_cv_next_stdio_h
21242 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
=$gl_next_as_first_directive
21283 if test $gl_cv_have_include_next = yes; then
21284 gl_cv_next_stdlib_h
='<'stdlib.h
'>'
21286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
21287 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
21288 if test "${gl_cv_next_stdlib_h+set}" = set; then :
21289 $as_echo_n "(cached) " >&6
21292 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21293 /* end confdefs.h. */
21294 #include <stdlib.h>
21298 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
21299 *) gl_absname_cpp
="$ac_cpp" ;;
21304 gl_dirsep_regex
='[/\\]'
21307 gl_dirsep_regex
='/'
21311 gl_absolute_header_sed
='\#'"${gl_dirsep_regex}"'stdlib.h#{
21312 s#.*"\(.*'"${gl_dirsep_regex}"'stdlib.h\)".*#\1#
21317 gl_cv_next_stdlib_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21318 sed -n "$gl_absolute_header_sed"`'"'
21322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
21323 $as_echo "$gl_cv_next_stdlib_h" >&6; }
21325 NEXT_STDLIB_H
=$gl_cv_next_stdlib_h
21327 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
21328 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21329 gl_next_as_first_directive
='<'stdlib.h
'>'
21331 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21332 gl_next_as_first_directive
=$gl_cv_next_stdlib_h
21334 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
=$gl_next_as_first_directive
21344 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
21352 $as_echo "#define my_strftime nstrftime" >>confdefs.h
21361 if test "$ac_cv_have_decl_strtoimax" != yes; then
21362 HAVE_DECL_STRTOIMAX
=0
21365 if test $ac_cv_func_strtoimax = no
; then
21374 gl_LIBOBJS
="$gl_LIBOBJS strtoimax.$ac_objext"
21377 ac_fn_c_check_decl
"$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
21378 if test "x$ac_cv_have_decl_strtoll" = x
""yes; then :
21384 cat >>confdefs.h
<<_ACEOF
21385 #define HAVE_DECL_STRTOLL $ac_have_decl
21406 if test "$ac_cv_have_decl_strtoumax" != yes; then
21407 HAVE_DECL_STRTOUMAX
=0
21410 if test $ac_cv_func_strtoumax = no
; then
21419 gl_LIBOBJS
="$gl_LIBOBJS strtoumax.$ac_objext"
21422 ac_fn_c_check_decl
"$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
21423 if test "x$ac_cv_have_decl_strtoull" = x
""yes; then :
21429 cat >>confdefs.h
<<_ACEOF
21430 #define HAVE_DECL_STRTOULL $ac_have_decl
21449 if test $ac_cv_func_symlink = no
; then
21452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symlink handles trailing slash correctly" >&5
21453 $as_echo_n "checking whether symlink handles trailing slash correctly... " >&6; }
21454 if test "${gl_cv_func_symlink_works+set}" = set; then :
21455 $as_echo_n "(cached) " >&6
21457 if test "$cross_compiling" = yes; then :
21458 gl_cv_func_symlink_works
="guessing no"
21460 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21461 /* end confdefs.h. */
21462 #include <unistd.h>
21468 if (!symlink ("a", "conftest.link/"))
21470 if (symlink ("conftest.f", "conftest.lnk2"))
21472 else if (!symlink ("a", "conftest.lnk2/"))
21480 if ac_fn_c_try_run
"$LINENO"; then :
21481 gl_cv_func_symlink_works
=yes
21483 gl_cv_func_symlink_works
=no
21485 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
21486 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21489 rm -f conftest.f conftest.link conftest.lnk2
21491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_symlink_works" >&5
21492 $as_echo "$gl_cv_func_symlink_works" >&6; }
21493 if test "$gl_cv_func_symlink_works" != yes; then
21498 if test $HAVE_SYMLINK = 0 ||
test $REPLACE_SYMLINK = 1; then
21507 gl_LIBOBJS
="$gl_LIBOBJS symlink.$ac_objext"
21537 if test $gl_cv_have_include_next = yes; then
21538 gl_cv_next_sys_stat_h
='<'sys
/stat.h
'>'
21540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
21541 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
21542 if test "${gl_cv_next_sys_stat_h+set}" = set; then :
21543 $as_echo_n "(cached) " >&6
21546 if test $ac_cv_header_sys_stat_h = yes; then
21549 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21550 /* end confdefs.h. */
21551 #include <sys/stat.h>
21555 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
21556 *) gl_absname_cpp
="$ac_cpp" ;;
21561 gl_dirsep_regex
='[/\\]'
21564 gl_dirsep_regex
='/'
21568 gl_absolute_header_sed
='\#'"${gl_dirsep_regex}"'sys/stat.h#{
21569 s#.*"\(.*'"${gl_dirsep_regex}"'sys/stat.h\)".*#\1#
21574 gl_cv_next_sys_stat_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21575 sed -n "$gl_absolute_header_sed"`'"'
21577 gl_cv_next_sys_stat_h
='<'sys
/stat.h
'>'
21582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
21583 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
21585 NEXT_SYS_STAT_H
=$gl_cv_next_sys_stat_h
21587 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
21588 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21589 gl_next_as_first_directive
='<'sys
/stat.h
'>'
21591 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21592 gl_next_as_first_directive
=$gl_cv_next_sys_stat_h
21594 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
=$gl_next_as_first_directive
21600 ac_fn_c_check_type
"$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
21601 #include <sys/stat.h>
21603 if test "x$ac_cv_type_nlink_t" = x
""yes; then :
21607 $as_echo "#define nlink_t int" >>confdefs.h
21625 if test $ac_cv_have_decl_localtime_r = no
; then
21626 HAVE_DECL_LOCALTIME_R
=0
21630 if test $ac_cv_func_localtime_r = yes; then
21632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime_r is compatible with its POSIX signature" >&5
21633 $as_echo_n "checking whether localtime_r is compatible with its POSIX signature... " >&6; }
21634 if test "${gl_cv_time_r_posix+set}" = set; then :
21635 $as_echo_n "(cached) " >&6
21637 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21638 /* end confdefs.h. */
21643 /* We don't need to append 'restrict's to the argument types,
21644 even though the POSIX signature has the 'restrict's,
21645 since C99 says they can't affect type compatibility. */
21646 struct tm * (*ptr) (time_t const *, struct tm *) = localtime_r;
21648 /* Check the return type is a pointer.
21649 On HP-UX 10 it is 'int'. */
21650 *localtime_r (0, 0);
21656 if ac_fn_c_try_compile
"$LINENO"; then :
21657 gl_cv_time_r_posix
=yes
21659 gl_cv_time_r_posix
=no
21661 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_time_r_posix" >&5
21665 $as_echo "$gl_cv_time_r_posix" >&6; }
21666 if test $gl_cv_time_r_posix = yes; then
21667 REPLACE_LOCALTIME_R
=0
21669 REPLACE_LOCALTIME_R
=1
21675 if test $HAVE_LOCALTIME_R = 0 ||
test $REPLACE_LOCALTIME_R = 1; then
21684 gl_LIBOBJS
="$gl_LIBOBJS time_r.$ac_objext"
21715 if test $gl_cv_have_include_next = yes; then
21716 gl_cv_next_unistd_h
='<'unistd.h
'>'
21718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
21719 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
21720 if test "${gl_cv_next_unistd_h+set}" = set; then :
21721 $as_echo_n "(cached) " >&6
21724 if test $ac_cv_header_unistd_h = yes; then
21727 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21728 /* end confdefs.h. */
21729 #include <unistd.h>
21733 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
21734 *) gl_absname_cpp
="$ac_cpp" ;;
21739 gl_dirsep_regex
='[/\\]'
21742 gl_dirsep_regex
='/'
21746 gl_absolute_header_sed
='\#'"${gl_dirsep_regex}"'unistd.h#{
21747 s#.*"\(.*'"${gl_dirsep_regex}"'unistd.h\)".*#\1#
21752 gl_cv_next_unistd_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21753 sed -n "$gl_absolute_header_sed"`'"'
21755 gl_cv_next_unistd_h
='<'unistd.h
'>'
21760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
21761 $as_echo "$gl_cv_next_unistd_h" >&6; }
21763 NEXT_UNISTD_H
=$gl_cv_next_unistd_h
21765 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
21766 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21767 gl_next_as_first_directive
='<'unistd.h
'>'
21769 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21770 gl_next_as_first_directive
=$gl_cv_next_unistd_h
21772 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
=$gl_next_as_first_directive
21777 if test $ac_cv_header_unistd_h = yes; then
21788 gl_gnulib_enabled_dosname
=false
21789 gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36
=false
21790 gl_gnulib_enabled_sigprocmask
=false
21791 gl_gnulib_enabled_stat
=false
21792 gl_gnulib_enabled_strtoll
=false
21793 gl_gnulib_enabled_strtoull
=false
21794 gl_gnulib_enabled_verify
=false
21795 func_gl_gnulib_m4code_dosname
()
21797 if ! $gl_gnulib_enabled_dosname; then
21798 gl_gnulib_enabled_dosname
=true
21801 func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36
()
21803 if ! $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
21806 gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36
=true
21809 func_gl_gnulib_m4code_sigprocmask
()
21811 if ! $gl_gnulib_enabled_sigprocmask; then
21815 if test $gl_cv_type_sigset_t = yes; then
21816 ac_fn_c_check_func
"$LINENO" "sigprocmask" "ac_cv_func_sigprocmask"
21817 if test "x$ac_cv_func_sigprocmask" = x
""yes; then :
21818 gl_cv_func_sigprocmask
=1
21822 if test -z "$gl_cv_func_sigprocmask"; then
21823 HAVE_POSIX_SIGNALBLOCKING
=0
21826 if test $HAVE_POSIX_SIGNALBLOCKING = 0; then
21835 gl_LIBOBJS
="$gl_LIBOBJS sigprocmask.$ac_objext"
21844 GNULIB_SIGPROCMASK
=1
21850 gl_gnulib_enabled_sigprocmask
=true
21853 func_gl_gnulib_m4code_stat
()
21855 if ! $gl_gnulib_enabled_stat; then
21859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on directories" >&5
21860 $as_echo_n "checking whether stat handles trailing slashes on directories... " >&6; }
21861 if test "${gl_cv_func_stat_dir_slash+set}" = set; then :
21862 $as_echo_n "(cached) " >&6
21864 if test "$cross_compiling" = yes; then :
21866 mingw
*) gl_cv_func_stat_dir_slash
="guessing no";;
21867 *) gl_cv_func_stat_dir_slash
="guessing yes";;
21870 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21871 /* end confdefs.h. */
21872 #include <sys/stat.h>
21877 struct stat st; return stat (".", &st) != stat ("./", &st);
21882 if ac_fn_c_try_run
"$LINENO"; then :
21883 gl_cv_func_stat_dir_slash
=yes
21885 gl_cv_func_stat_dir_slash
=no
21887 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
21888 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_dir_slash" >&5
21893 $as_echo "$gl_cv_func_stat_dir_slash" >&6; }
21894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
21895 $as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
21896 if test "${gl_cv_func_stat_file_slash+set}" = set; then :
21897 $as_echo_n "(cached) " >&6
21900 # Assume that if we have lstat, we can also check symlinks.
21901 if test $ac_cv_func_lstat = yes; then
21902 ln -s conftest.tmp conftest.lnk
21904 if test "$cross_compiling" = yes; then :
21905 gl_cv_func_stat_file_slash
="guessing no"
21907 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21908 /* end confdefs.h. */
21909 #include <sys/stat.h>
21916 if (!stat ("conftest.tmp/", &st))
21919 if (!stat ("conftest.lnk/", &st))
21928 if ac_fn_c_try_run
"$LINENO"; then :
21929 gl_cv_func_stat_file_slash
=yes
21931 gl_cv_func_stat_file_slash
=no
21933 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
21934 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21937 rm -f conftest.tmp conftest.lnk
21939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
21940 $as_echo "$gl_cv_func_stat_file_slash" >&6; }
21941 case $gl_cv_func_stat_dir_slash in
21942 *no
) REPLACE_STAT
=1
21944 $as_echo "#define REPLACE_FUNC_STAT_DIR 1" >>confdefs.h
21947 case $gl_cv_func_stat_file_slash in
21948 *no
) REPLACE_STAT
=1
21950 $as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
21954 if test $REPLACE_STAT = 1; then
21963 gl_LIBOBJS
="$gl_LIBOBJS stat.$ac_objext"
21981 gl_gnulib_enabled_stat
=true
21982 if $condition; then
21983 func_gl_gnulib_m4code_dosname
21985 if $condition; then
21986 func_gl_gnulib_m4code_verify
21990 func_gl_gnulib_m4code_strtoll
()
21992 if ! $gl_gnulib_enabled_strtoll; then
21996 if test "$ac_cv_type_long_long_int" = yes; then
21997 for ac_func
in strtoll
21999 ac_fn_c_check_func
"$LINENO" "strtoll" "ac_cv_func_strtoll"
22000 if test "x$ac_cv_func_strtoll" = x
""yes; then :
22001 cat >>confdefs.h
<<_ACEOF
22002 #define HAVE_STRTOLL 1
22008 if test $ac_cv_func_strtoll = no
; then
22013 if test $HAVE_STRTOLL = 0; then
22022 gl_LIBOBJS
="$gl_LIBOBJS strtoll.$ac_objext"
22039 gl_gnulib_enabled_strtoll
=true
22042 func_gl_gnulib_m4code_strtoull
()
22044 if ! $gl_gnulib_enabled_strtoull; then
22048 if test "$ac_cv_type_unsigned_long_long_int" = yes; then
22049 for ac_func
in strtoull
22051 ac_fn_c_check_func
"$LINENO" "strtoull" "ac_cv_func_strtoull"
22052 if test "x$ac_cv_func_strtoull" = x
""yes; then :
22053 cat >>confdefs.h
<<_ACEOF
22054 #define HAVE_STRTOULL 1
22060 if test $ac_cv_func_strtoull = no
; then
22065 if test $HAVE_STRTOULL = 0; then
22074 gl_LIBOBJS
="$gl_LIBOBJS strtoull.$ac_objext"
22091 gl_gnulib_enabled_strtoull
=true
22094 func_gl_gnulib_m4code_verify
()
22096 if ! $gl_gnulib_enabled_verify; then
22097 gl_gnulib_enabled_verify
=true
22100 if test $REPLACE_GETOPT = 1; then
22101 func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36
22103 if test $REPLACE_LSTAT = 1; then
22104 func_gl_gnulib_m4code_dosname
22106 if test $REPLACE_LSTAT = 1; then
22107 func_gl_gnulib_m4code_stat
22109 if test $HAVE_PTHREAD_SIGMASK = 0 ||
test $REPLACE_PTHREAD_SIGMASK = 1; then
22110 func_gl_gnulib_m4code_sigprocmask
22112 if test $HAVE_READLINK = 0 ||
test $REPLACE_READLINK = 1; then
22113 func_gl_gnulib_m4code_stat
22115 if test $ac_cv_func_strtoimax = no
; then
22116 func_gl_gnulib_m4code_verify
22118 if test $ac_cv_func_strtoimax = no
&& test $ac_cv_type_long_long_int = yes; then
22119 func_gl_gnulib_m4code_strtoll
22121 if test $ac_cv_func_strtoumax = no
; then
22122 func_gl_gnulib_m4code_verify
22124 if test $ac_cv_func_strtoumax = no
&& test $ac_cv_type_unsigned_long_long_int = yes; then
22125 func_gl_gnulib_m4code_strtoull
22128 if $gl_gnulib_enabled_dosname; then
22129 gl_GNULIB_ENABLED_dosname_TRUE
=
22130 gl_GNULIB_ENABLED_dosname_FALSE
='#'
22132 gl_GNULIB_ENABLED_dosname_TRUE
='#'
22133 gl_GNULIB_ENABLED_dosname_FALSE
=
22136 if $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
22137 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE
=
22138 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE
='#'
22140 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE
='#'
22141 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE
=
22144 if $gl_gnulib_enabled_sigprocmask; then
22145 gl_GNULIB_ENABLED_sigprocmask_TRUE
=
22146 gl_GNULIB_ENABLED_sigprocmask_FALSE
='#'
22148 gl_GNULIB_ENABLED_sigprocmask_TRUE
='#'
22149 gl_GNULIB_ENABLED_sigprocmask_FALSE
=
22152 if $gl_gnulib_enabled_stat; then
22153 gl_GNULIB_ENABLED_stat_TRUE
=
22154 gl_GNULIB_ENABLED_stat_FALSE
='#'
22156 gl_GNULIB_ENABLED_stat_TRUE
='#'
22157 gl_GNULIB_ENABLED_stat_FALSE
=
22160 if $gl_gnulib_enabled_strtoll; then
22161 gl_GNULIB_ENABLED_strtoll_TRUE
=
22162 gl_GNULIB_ENABLED_strtoll_FALSE
='#'
22164 gl_GNULIB_ENABLED_strtoll_TRUE
='#'
22165 gl_GNULIB_ENABLED_strtoll_FALSE
=
22168 if $gl_gnulib_enabled_strtoull; then
22169 gl_GNULIB_ENABLED_strtoull_TRUE
=
22170 gl_GNULIB_ENABLED_strtoull_FALSE
='#'
22172 gl_GNULIB_ENABLED_strtoull_TRUE
='#'
22173 gl_GNULIB_ENABLED_strtoull_FALSE
=
22176 if $gl_gnulib_enabled_verify; then
22177 gl_GNULIB_ENABLED_verify_TRUE
=
22178 gl_GNULIB_ENABLED_verify_FALSE
='#'
22180 gl_GNULIB_ENABLED_verify_TRUE
='#'
22181 gl_GNULIB_ENABLED_verify_FALSE
=
22184 # End of code from modules
22205 gl_source_base
='tests'
22206 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
22208 gl_module_indicator_condition
=$gltests_WITNESS
22219 LIBGNU_LIBDEPS
="$gl_libdeps"
22221 LIBGNU_LTLIBDEPS
="$gl_ltlibdeps"
22226 aix4-2
) LD_SWITCH_SYSTEM_TEMACS
="-Wl,-bnodelcsect" ;;
22229 ## The -headerpad option tells ld (see man page) to leave room at the
22230 ## end of the header for adding load commands. Needed for dumping.
22231 ## 0x690 is the total size of 30 segment load commands (at 56
22232 ## each); under Cocoa 31 commands are required.
22233 if test "$HAVE_NS" = "yes"; then
22234 libs_nsgui
="-framework AppKit"
22235 headerpad_extra
=6C8
22238 headerpad_extra
=690
22240 LD_SWITCH_SYSTEM_TEMACS
="-fno-pie -prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra"
22242 ## This is here because src/Makefile.in did some extra fiddling around
22243 ## with LD_SWITCH_SYSTEM. The cpp logic was:
22244 ## #ifndef LD_SWITCH_SYSTEM
22245 ## #if !defined (__GNUC__) && ((defined (BSD_SYSTEM) && !defined (COFF)))
22246 ## Since all the *bsds define LD_SWITCH_SYSTEM, this simplifies to:
22247 ## not using gcc, darwin system not on an alpha (ie darwin, since
22248 ## darwin + alpha does not occur).
22249 ## Because this was done in src/Makefile.in, the resulting part of
22250 ## LD_SWITCH_SYSTEM was not used in configure (ie, in ac_link).
22251 ## It therefore seems cleaner to put this in LD_SWITCH_SYSTEM_TEMACS,
22252 ## rather than LD_SWITCH_SYSTEM.
22253 test "x$LD_SWITCH_SYSTEM" = "x" && test "x$GCC" != "xyes" && \
22254 LD_SWITCH_SYSTEM_TEMACS
="-X $LD_SWITCH_SYSTEM_TEMACS"
22257 ## LD_SWITCH_X_SITE_AUX is a -R option saying where to find X at run-time.
22258 ## When handled by cpp, this was in LD_SWITCH_SYSTEM. However, at
22259 ## the point where configure sourced the s/*.h file, LD_SWITCH_X_SITE_AUX
22260 ## had not yet been defined and was expanded to null. Hence LD_SWITCH_SYSTEM
22261 ## had different values in configure (in ac_link) and src/Makefile.in.
22262 ## It seems clearer therefore to put this piece in LD_SWITCH_SYSTEM_TEMACS.
22263 gnu-linux
) LD_SWITCH_SYSTEM_TEMACS
="\$(LD_SWITCH_X_SITE_AUX)" ;;
22265 *) LD_SWITCH_SYSTEM_TEMACS
= ;;
22268 if test "$NS_IMPL_GNUSTEP" = "yes"; then
22269 LD_SWITCH_SYSTEM_TEMACS
="${LD_SWITCH_SYSTEM_TEMACS} -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES} -lgnustep-gui -lgnustep-base -lobjc -lpthread"
22278 ## gnu: GNU needs its own crt0.
22279 aix4-2|cygwin|darwin|gnu|hpux
*|irix6-5|sol2
*|unixware
) ORDINARY_LINK
=yes ;;
22281 ## On post 1.3 releases of NetBSD, gcc -nostdlib also clears the
22282 ## library search parth, i.e. it won't search /usr/lib for libc and
22283 ## friends. Using -nostartfiles instead avoids this problem, and
22284 ## will also work on earlier NetBSD releases.
22285 netbsd|openbsd
) LD_FIRSTFLAG
="-nostartfiles" ;;
22287 ## macpcc: NAKAJI Hiroyuki <nakaji@tutrp.tut.ac.jp> says
22288 ## MkLinux/LinuxPPC needs this.
22289 ## ibms390x only supports opsys = gnu-linux so it can be added here.
22292 macppc|ibms390x
) LD_FIRSTFLAG
="-nostdlib" ;;
22298 if test "x$ORDINARY_LINK" = "xyes"; then
22302 $as_echo "#define ORDINARY_LINK 1" >>confdefs.h
22305 ## The system files defining neither ORDINARY_LINK nor LD_FIRSTFLAG are:
22306 ## freebsd, gnu-* not on macppc|ibms390x.
22307 elif test "x$GCC" = "xyes" && test "x$LD_FIRSTFLAG" = "x"; then
22309 ## Versions of GCC >= 2.0 put their library, libgcc.a, in obscure
22310 ## places that are difficult to figure out at make time. Fortunately,
22311 ## these same versions allow you to pass arbitrary flags on to the
22312 ## linker, so there is no reason not to use it as a linker.
22314 ## Well, it is not quite perfect. The "-nostdlib" keeps GCC from
22315 ## searching for libraries in its internal directories, so we have to
22316 ## ask GCC explicitly where to find libgcc.a (LIB_GCC below).
22317 LD_FIRSTFLAG
="-nostdlib"
22320 ## FIXME? What setting of EDIT_LDFLAGS should this have?
22321 test "$NS_IMPL_GNUSTEP" = "yes" && LD_FIRSTFLAG
="-rdynamic"
22326 ## FIXME? The logic here is not precisely the same as that above.
22327 ## There is no check here for a pre-defined LD_FIRSTFLAG.
22328 ## Should we only be setting LIB_GCC if LD ~ -nostdlib?
22330 if test "x$GCC" = "xyes" && test "x$ORDINARY_LINK" != "xyes"; then
22333 freebsd|netbsd|openbsd
) LIB_GCC
= ;;
22336 ## armin76@gentoo.org reported that the lgcc_s flag is necessary to
22337 ## build on ARM EABI under GNU/Linux. (Bug#5518)
22343 ## FIXME? s/gnu-linux.h used to define LIB_GCC as below, then
22344 ## immediately undefine it again and redefine it to empty.
22345 ## Was the C_SWITCH_X_SITE part really necessary?
22346 ## LIB_GCC=`$CC $C_SWITCH_X_SITE -print-libgcc-file-name`
22352 ## Ask GCC where to find libgcc.a.
22353 *) LIB_GCC
=`$CC -print-libgcc-file-name 2> /dev/null` ;;
22358 ## If we're using X11/GNUstep, define some consequences.
22359 if test "$HAVE_X_WINDOWS" = "yes" ||
test "$HAVE_NS" = "yes"; then
22361 $as_echo "#define HAVE_WINDOW_SYSTEM 1" >>confdefs.h
22364 $as_echo "#define HAVE_MOUSE 1" >>confdefs.h
22371 #### Report on what we decided to do.
22372 #### Report GTK as a toolkit, even if it doesn't use Xt.
22373 #### It makes printing result more understandable as using GTK sets
22374 #### toolkit_scroll_bars to yes by default.
22375 if test "${HAVE_GTK}" = "yes"; then
22380 if test -n "$machfile"; then
22381 and_machfile
=" and \`${machfile}'"
22385 Configured for \`${canonical}'.
22387 Where should the build process find the source code? ${srcdir}
22388 What operating system and machine description files should Emacs use?
22389 \`${opsysfile}'${and_machfile}
22390 What compiler should emacs be built with? ${CC} ${CFLAGS}
22391 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
22392 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
22393 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
22394 What window system should Emacs use? ${window_system}
22395 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
22397 if test -n "${x_includes}"; then
22398 echo " Where do we find X Windows header files? ${x_includes}"
22400 echo " Where do we find X Windows header files? Standard dirs"
22402 if test -n "${x_libraries}"; then
22403 echo " Where do we find X Windows libraries? ${x_libraries}"
22405 echo " Where do we find X Windows libraries? Standard dirs"
22408 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
22409 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
22410 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
22411 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
22412 echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
22413 echo " Does Emacs use -lpng? ${HAVE_PNG}"
22414 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
22415 echo " Does Emacs use imagemagick? ${HAVE_IMAGEMAGICK}"
22417 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
22418 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
22419 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
22420 echo " Does Emacs use GSettings? ${HAVE_GSETTINGS}"
22421 echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
22422 echo " Does Emacs use -lgnutls (2.6.x or higher)? ${HAVE_GNUTLS}"
22423 echo " Does Emacs use -lxml2? ${HAVE_LIBXML2}"
22425 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
22426 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
22427 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
22428 echo " Does Emacs use -lxft? ${HAVE_XFT}"
22430 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
22433 if test $USE_XASSERTS = yes; then
22434 echo " Compiling with asserts turned on."
22435 CPPFLAGS
="$CPPFLAGS -DXASSERTS=1"
22440 if test "$HAVE_NS" = "yes"; then
22442 echo "You must run \"make install\" in order to test the built application.
22443 The installed application will go to nextstep/Emacs.app and can be
22444 run or moved from there."
22445 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
22446 echo "The application will be fully self-contained."
22448 echo "The lisp resources for the application will be installed under ${prefix}.
22449 You may need to run \"make install\" with sudo. The application will fail
22450 to run if these resources are not installed."
22456 # Remove any trailing slashes in these variables.
22457 test "${prefix}" != NONE
&&
22458 prefix
=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
22459 test "${exec_prefix}" != NONE
&&
22460 exec_prefix
=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
22462 SUBDIR_MAKEFILES
="lib/Makefile lib-src/Makefile oldXMenu/Makefile doc/emacs/Makefile doc/misc/Makefile doc/lispintro/Makefile doc/lispref/Makefile src/Makefile lwlib/Makefile lisp/Makefile leim/Makefile"
22464 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"
22467 opt_makefile
=test
/automated
/Makefile
22469 if test -f $srcdir/${opt_makefile}.
in; then
22470 SUBDIR_MAKEFILES
="$SUBDIR_MAKEFILES $opt_makefile"
22471 ac_config_files
="$ac_config_files test/automated/Makefile"
22475 SUBDIR_MAKEFILES_IN
=`echo " ${SUBDIR_MAKEFILES}" | sed -e 's| | $(srcdir)/|g' -e 's|Makefile|Makefile.in|g'`
22479 ac_config_commands
="$ac_config_commands mkdirs"
22482 ac_config_commands
="$ac_config_commands epaths"
22485 ac_config_commands
="$ac_config_commands gdbinit"
22488 cat >confcache
<<\_ACEOF
22489 # This file is a shell script that caches the results of configure
22490 # tests run on this system so they can be shared between configure
22491 # scripts and configure runs, see configure's option --config-cache.
22492 # It is not useful on other systems. If it contains results you don't
22493 # want to keep, you may remove or edit it.
22495 # config.status only pays attention to the cache file if you give it
22496 # the --recheck option to rerun configure.
22498 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22499 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22500 # following values.
22504 # The following way of writing the cache mishandles newlines in values,
22505 # but we know of no workaround that is simple, portable, and efficient.
22506 # So, we kill variables containing newlines.
22507 # Ultrix sh set writes to stderr and can't be redirected directly,
22508 # and sets the high bit in the cache file unless we assign to the vars.
22510 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22511 eval ac_val
=\$
$ac_var
22515 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
22516 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
22519 _ | IFS | as_nl
) ;; #(
22520 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
22521 *) { eval $ac_var=; unset $ac_var;} ;;
22527 case $as_nl`(ac_space=' '; set) 2>&1` in #(
22528 *${as_nl}ac_space
=\
*)
22529 # `set' does not quote correctly, so add quotes: double-quote
22530 # substitution turns \\\\ into \\, and sed turns \\ into \.
22533 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22536 # `set' quotes correctly as required by POSIX, so do not add quotes.
22537 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22546 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22548 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22550 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
22551 if test -w "$cache_file"; then
22552 test "x$cache_file" != "x/dev/null" &&
22553 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
22554 $as_echo "$as_me: updating cache $cache_file" >&6;}
22555 cat confcache
>$cache_file
22557 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
22558 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22563 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
22564 # Let make expand exec_prefix.
22565 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
22567 DEFS
=-DHAVE_CONFIG_H
22571 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
22572 # 1. Remove the extension, and $U if already installed.
22573 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
22574 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
22575 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
22576 # will be set to the directory where LIBOBJS objects are built.
22577 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22578 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
22580 LIBOBJS
=$ac_libobjs
22582 LTLIBOBJS
=$ac_ltlibobjs
22585 if test -n "$EXEEXT"; then
22587 am__EXEEXT_FALSE
='#'
22589 am__EXEEXT_TRUE
='#'
22593 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22594 as_fn_error
"conditional \"AMDEP\" was never defined.
22595 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22597 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22598 as_fn_error
"conditional \"am__fastdepCC\" was never defined.
22599 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22602 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
22603 as_fn_error
"conditional \"GL_COND_LIBTOOL\" was never defined.
22604 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22606 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
22607 as_fn_error
"conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
22608 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22611 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
22612 as_fn_error
"conditional \"GL_GENERATE_STDINT_H\" was never defined.
22613 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22615 if test -z "${GL_GENERATE_STDARG_H_TRUE}" && test -z "${GL_GENERATE_STDARG_H_FALSE}"; then
22616 as_fn_error
"conditional \"GL_GENERATE_STDARG_H\" was never defined.
22617 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22619 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
22620 as_fn_error
"conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
22621 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22623 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
22624 as_fn_error
"conditional \"GL_GENERATE_STDDEF_H\" was never defined.
22625 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22627 if test -z "${gl_GNULIB_ENABLED_dosname_TRUE}" && test -z "${gl_GNULIB_ENABLED_dosname_FALSE}"; then
22628 as_fn_error
"conditional \"gl_GNULIB_ENABLED_dosname\" was never defined.
22629 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22631 if test -z "${gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE}" && test -z "${gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE}"; then
22632 as_fn_error
"conditional \"gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36\" was never defined.
22633 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22635 if test -z "${gl_GNULIB_ENABLED_sigprocmask_TRUE}" && test -z "${gl_GNULIB_ENABLED_sigprocmask_FALSE}"; then
22636 as_fn_error
"conditional \"gl_GNULIB_ENABLED_sigprocmask\" was never defined.
22637 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22639 if test -z "${gl_GNULIB_ENABLED_stat_TRUE}" && test -z "${gl_GNULIB_ENABLED_stat_FALSE}"; then
22640 as_fn_error
"conditional \"gl_GNULIB_ENABLED_stat\" was never defined.
22641 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22643 if test -z "${gl_GNULIB_ENABLED_strtoll_TRUE}" && test -z "${gl_GNULIB_ENABLED_strtoll_FALSE}"; then
22644 as_fn_error
"conditional \"gl_GNULIB_ENABLED_strtoll\" was never defined.
22645 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22647 if test -z "${gl_GNULIB_ENABLED_strtoull_TRUE}" && test -z "${gl_GNULIB_ENABLED_strtoull_FALSE}"; then
22648 as_fn_error
"conditional \"gl_GNULIB_ENABLED_strtoull\" was never defined.
22649 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22651 if test -z "${gl_GNULIB_ENABLED_verify_TRUE}" && test -z "${gl_GNULIB_ENABLED_verify_FALSE}"; then
22652 as_fn_error
"conditional \"gl_GNULIB_ENABLED_verify\" was never defined.
22653 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22658 if test -n "$gl_LIBOBJS"; then
22659 # Remove the extension.
22660 sed_drop_objext
='s/\.o$//;s/\.obj$//'
22661 for i
in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
22662 gl_libobjs
="$gl_libobjs $i.$ac_objext"
22663 gl_ltlibobjs
="$gl_ltlibobjs $i.lo"
22666 gl_LIBOBJS
=$gl_libobjs
22668 gl_LTLIBOBJS
=$gl_ltlibobjs
22674 if test -n "$gltests_LIBOBJS"; then
22675 # Remove the extension.
22676 sed_drop_objext
='s/\.o$//;s/\.obj$//'
22677 for i
in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
22678 gltests_libobjs
="$gltests_libobjs $i.$ac_objext"
22679 gltests_ltlibobjs
="$gltests_ltlibobjs $i.lo"
22682 gltests_LIBOBJS
=$gltests_libobjs
22684 gltests_LTLIBOBJS
=$gltests_ltlibobjs
22688 : ${CONFIG_STATUS=./config.status}
22690 ac_clean_files_save
=$ac_clean_files
22691 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
22692 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
22693 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
22695 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
22697 # Generated by $as_me.
22698 # Run this file to recreate the current configuration.
22699 # Compiler output produced by configure, useful for debugging
22700 # configure, is in config.log if it exists.
22703 ac_cs_recheck=false
22706 SHELL=\${CONFIG_SHELL-$SHELL}
22709 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
22710 ## -------------------- ##
22711 ## M4sh Initialization. ##
22712 ## -------------------- ##
22714 # Be more Bourne compatible
22715 DUALCASE
=1; export DUALCASE
# for MKS sh
22716 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
22719 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
22720 # is contrary to our usage. Disable this feature.
22721 alias -g '${1+"$@"}'='"$@"'
22722 setopt NO_GLOB_SUBST
22724 case `(set -o) 2>/dev/null` in #(
22736 # Printing a long string crashes Solaris 7 /usr/bin/printf.
22737 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
22738 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
22739 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
22740 # Prefer a ksh shell builtin over an external printf program on Solaris,
22741 # but without wasting forks for bash or zsh.
22742 if test -z "$BASH_VERSION$ZSH_VERSION" \
22743 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
22744 as_echo='print
-r --'
22745 as_echo_n='print
-rn --'
22746 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
22747 as_echo='printf %s
\n'
22748 as_echo_n='printf %s
'
22750 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
22751 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
22752 as_echo_n='/usr
/ucb
/echo -n'
22754 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
22755 as_echo_n_body='eval
22759 expr "X$arg" : "X\\(.*\\)$as_nl";
22760 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
22762 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
22764 export as_echo_n_body
22765 as_echo_n='sh
-c $as_echo_n_body as_echo
'
22767 export as_echo_body
22768 as_echo='sh
-c $as_echo_body as_echo
'
22771 # The user is always right.
22772 if test "${PATH_SEPARATOR+set}" != set; then
22774 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
22775 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
22782 # We need space, tab and new line, in precisely that order. Quoting is
22783 # there to prevent editors from complaining about space-tab.
22784 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
22785 # splitting by setting IFS to empty value.)
22788 # Find who we are. Look in the path if we contain no directory separator.
22790 *[\\/]* ) as_myself=$0 ;;
22791 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22792 for as_dir in $PATH
22795 test -z "$as_dir" && as_dir=.
22796 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22802 # We did not find ourselves, most probably we were run as `sh COMMAND'
22803 # in which case we are not to be found in the path.
22804 if test "x$as_myself" = x
; then
22807 if test ! -f "$as_myself"; then
22808 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22812 # Unset variables that we do not need and which cause bugs (e.g. in
22813 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
22814 # suppresses any "Segmentation fault" message there. '((' could
22815 # trigger a bug in pdksh 5.2.14.
22816 for as_var
in BASH_ENV ENV MAIL MAILPATH
22817 do eval test x\
${$as_var+set} = xset \
22818 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
22831 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
22834 # as_fn_error ERROR [LINENO LOG_FD]
22835 # ---------------------------------
22836 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
22837 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
22838 # script with status $?, using 1 if that was 0.
22841 as_status
=$?
; test $as_status -eq 0 && as_status
=1
22843 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
22844 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
22846 $as_echo "$as_me: error: $1" >&2
22847 as_fn_exit
$as_status
22851 # as_fn_set_status STATUS
22852 # -----------------------
22853 # Set $? to STATUS, without forking.
22854 as_fn_set_status
()
22857 } # as_fn_set_status
22859 # as_fn_exit STATUS
22860 # -----------------
22861 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
22865 as_fn_set_status
$1
22871 # Portably unset VAR.
22874 { eval $1=; unset $1;}
22876 as_unset
=as_fn_unset
22877 # as_fn_append VAR VALUE
22878 # ----------------------
22879 # Append the text in VALUE to the end of the definition contained in VAR. Take
22880 # advantage of any shell optimizations that allow amortized linear growth over
22881 # repeated appends, instead of the typical quadratic growth present in naive
22883 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
22884 eval 'as_fn_append ()
22895 # as_fn_arith ARG...
22896 # ------------------
22897 # Perform arithmetic evaluation on the ARGs, and store the result in the
22898 # global $as_val. Take advantage of shells that can avoid forks. The arguments
22899 # must be portable across $(()) and expr.
22900 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
22901 eval 'as_fn_arith ()
22908 as_val
=`expr "$@" || test $? -eq 1`
22913 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
22914 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
22920 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22921 as_basename
=basename
22926 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
22932 as_me
=`$as_basename -- "$0" ||
22933 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22934 X"$0" : 'X\(//\)$' \| \
22935 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22937 sed '/^.*\/\([^/][^/]*\)\/*$/{
22951 # Avoid depending upon Character Ranges.
22952 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
22953 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22954 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
22955 as_cr_digits
='0123456789'
22956 as_cr_alnum
=$as_cr_Letters$as_cr_digits
22958 ECHO_C
= ECHO_N
= ECHO_T
=
22959 case `echo -n x` in #(((((
22961 case `echo 'xy\c'` in
22962 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
22964 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
22971 rm -f conf$$ conf$$.exe conf$$.
file
22972 if test -d conf$$.dir
; then
22973 rm -f conf$$.dir
/conf$$.
file
22976 mkdir conf$$.dir
2>/dev
/null
22978 if (echo >conf$$.
file) 2>/dev
/null
; then
22979 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
22981 # ... but there are two gotchas:
22982 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22983 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22984 # In both cases, we have to default to `cp -p'.
22985 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
22987 elif ln conf$$.
file conf$$
2>/dev
/null
; then
22995 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
22996 rmdir conf$$.dir
2>/dev
/null
23001 # Create "$as_dir" as a directory, including parents if necessary.
23006 -*) as_dir
=.
/$as_dir;;
23008 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
23012 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
23013 *) as_qdir
=$as_dir;;
23015 as_dirs
="'$as_qdir' $as_dirs"
23016 as_dir
=`$as_dirname -- "$as_dir" ||
23017 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23018 X"$as_dir" : 'X\(//\)[^/]' \| \
23019 X"$as_dir" : 'X\(//\)$' \| \
23020 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23021 $as_echo X"$as_dir" |
23022 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23026 /^X\(\/\/\)[^/].*/{
23039 test -d "$as_dir" && break
23041 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
23042 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
23046 if mkdir
-p .
2>/dev
/null
; then
23047 as_mkdir_p
='mkdir -p "$as_dir"'
23049 test -d .
/-p && rmdir .
/-p
23053 if test -x / >/dev
/null
2>&1; then
23054 as_test_x
='test -x'
23056 if ls -dL / >/dev
/null
2>&1; then
23063 if test -d "$1"; then
23069 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
23070 ???[sx]*):;;*)false;;esac;fi
23074 as_executable_p
=$as_test_x
23076 # Sed expression to map a string onto a valid CPP name.
23077 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23079 # Sed expression to map a string onto a valid variable name.
23080 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23084 ## ----------------------------------- ##
23085 ## Main body of $CONFIG_STATUS script. ##
23086 ## ----------------------------------- ##
23088 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
23090 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
23091 # Save the log message, to keep $0 and so on meaningful, and to
23092 # report actual input values of CONFIG_FILES etc. instead of their
23093 # values after options handling.
23095 This file was extended by emacs $as_me 24.0.50, which was
23096 generated by GNU Autoconf 2.65. Invocation command line was
23098 CONFIG_FILES = $CONFIG_FILES
23099 CONFIG_HEADERS = $CONFIG_HEADERS
23100 CONFIG_LINKS = $CONFIG_LINKS
23101 CONFIG_COMMANDS = $CONFIG_COMMANDS
23104 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23109 case $ac_config_files in *"
23110 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
23113 case $ac_config_headers in *"
23114 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
23118 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23119 # Files that config.status was made for.
23120 config_files="$ac_config_files"
23121 config_headers="$ac_config_headers"
23122 config_commands="$ac_config_commands"
23126 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
23128 \`$as_me' instantiates files and other configuration actions
23129 from templates according to the current configuration. Unless the files
23130 and actions are specified as TAGs, all are instantiated by default.
23132 Usage: $0 [OPTION]... [TAG]...
23134 -h, --help print this help, then exit
23135 -V, --version print version number and configuration settings, then exit
23136 --config print configuration, then exit
23137 -q, --quiet, --silent
23138 do not print progress messages
23139 -d, --debug don't remove temporary files
23140 --recheck update $as_me by reconfiguring in the same conditions
23141 --file=FILE[:TEMPLATE]
23142 instantiate the configuration file FILE
23143 --header=FILE[:TEMPLATE]
23144 instantiate the configuration header FILE
23146 Configuration files:
23149 Configuration headers:
23152 Configuration commands:
23155 Report bugs to the package provider."
23158 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23159 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
23161 emacs config.status 24.0.50
23162 configured by $0, generated by GNU Autoconf 2.65,
23163 with options \\"\$ac_cs_config\\"
23165 Copyright (C) 2009 Free Software Foundation, Inc.
23166 This config.status script is free software; the Free Software Foundation
23167 gives unlimited permission to copy, distribute and modify it."
23174 test -n "\$AWK" || AWK=awk
23177 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
23178 # The default lists apply if the user does not specify any file.
23184 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
23185 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
23196 # Handling of the options.
23197 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
23199 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
23200 $as_echo "$ac_cs_version"; exit ;;
23201 --config |
--confi |
--conf |
--con |
--co |
--c )
23202 $as_echo "$ac_cs_config"; exit ;;
23203 --debug |
--debu |
--deb |
--de |
--d |
-d )
23205 --file |
--fil |
--fi |
--f )
23208 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
23210 as_fn_append CONFIG_FILES
" '$ac_optarg'"
23211 ac_need_defaults
=false
;;
23212 --header |
--heade |
--head |
--hea )
23215 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
23217 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
23218 ac_need_defaults
=false
;;
23220 # Conflict between --help and --header
23221 as_fn_error
"ambiguous option: \`$1'
23222 Try \`$0 --help' for more information.";;
23223 --help |
--hel |
-h )
23224 $as_echo "$ac_cs_usage"; exit ;;
23225 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
23226 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
23229 # This is an error.
23230 -*) as_fn_error
"unrecognized option: \`$1'
23231 Try \`$0 --help' for more information." ;;
23233 *) as_fn_append ac_config_targets
" $1"
23234 ac_need_defaults
=false
;;
23240 ac_configure_extra_args
=
23242 if $ac_cs_silent; then
23244 ac_configure_extra_args
="$ac_configure_extra_args --silent"
23248 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23249 if \$ac_cs_recheck; then
23250 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23252 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
23253 CONFIG_SHELL='$SHELL'
23254 export CONFIG_SHELL
23259 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
23263 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23264 ## Running $as_me. ##
23270 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23274 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
23275 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPPFLAGS="$CPPFLAGS"
23279 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
23281 # Handling of arguments.
23282 for ac_config_target
in $ac_config_targets
23284 case $ac_config_target in
23285 "src/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
23286 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
23287 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
23288 "lib/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/Makefile" ;;
23289 "lib-src/Makefile") CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile" ;;
23290 "oldXMenu/Makefile") CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
23291 "doc/emacs/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/emacs/Makefile" ;;
23292 "doc/misc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/misc/Makefile" ;;
23293 "doc/lispintro/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispintro/Makefile" ;;
23294 "doc/lispref/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispref/Makefile" ;;
23295 "src/Makefile") CONFIG_FILES
="$CONFIG_FILES src/Makefile" ;;
23296 "lwlib/Makefile") CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
23297 "lisp/Makefile") CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
23298 "leim/Makefile") CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
23299 "test/automated/Makefile") CONFIG_FILES
="$CONFIG_FILES test/automated/Makefile" ;;
23300 "mkdirs") CONFIG_COMMANDS
="$CONFIG_COMMANDS mkdirs" ;;
23301 "epaths") CONFIG_COMMANDS
="$CONFIG_COMMANDS epaths" ;;
23302 "gdbinit") CONFIG_COMMANDS
="$CONFIG_COMMANDS gdbinit" ;;
23304 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
23309 # If the user did not use the arguments to specify the items to instantiate,
23310 # then the envvar interface is used. Set only those that are not.
23311 # We use the long form for the default assignment because of an extremely
23312 # bizarre bug on SunOS 4.1.3.
23313 if $ac_need_defaults; then
23314 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
23315 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
23316 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
23319 # Have a temporary directory for convenience. Make it in the build tree
23320 # simply because there is no reason against having it here, and in addition,
23321 # creating and moving files from /tmp can sometimes cause problems.
23322 # Hook for its removal unless debugging.
23323 # Note that there is a small window in which the directory will not be cleaned:
23324 # after its creation but before its name has been assigned to `$tmp'.
23328 trap 'exit_status=$?
23329 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
23331 trap 'as_fn_exit 1' 1 2 13 15
23333 # Create a (secure) tmp directory for tmp files.
23336 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23337 test -n "$tmp" && test -d "$tmp"
23340 tmp
=.
/conf$$
-$RANDOM
23341 (umask 077 && mkdir
"$tmp")
23342 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
23344 # Set up the scripts for CONFIG_FILES section.
23345 # No need to generate them if there are no CONFIG_FILES.
23346 # This happens for instance with `./config.status config.h'.
23347 if test -n "$CONFIG_FILES"; then
23349 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
23350 ac_cs_awk_getline
=:
23351 ac_cs_awk_pipe_init
=
23352 ac_cs_awk_read_file
='
23353 while ((getline aline < (F[key])) > 0)
23356 ac_cs_awk_pipe_fini
=
23358 ac_cs_awk_getline
=false
23359 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
23360 ac_cs_awk_read_file
='
23362 print "cat " F[key] " &&"
23363 '$ac_cs_awk_pipe_init
23364 # The final `:' finishes the AND list.
23365 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
23367 ac_cr
=`echo X | tr X '\015'`
23368 # On cygwin, bash can eat \r inside `` if the user requested igncr.
23369 # But we know of no other shell where ac_cr would be empty at this
23370 # point, so we can use a bashism as a fallback.
23371 if test "x$ac_cr" = x
; then
23372 eval ac_cr
=\$
\'\\r
\'
23374 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
23375 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
23378 ac_cs_awk_cr
=$ac_cr
23381 echo 'BEGIN {' >"$tmp/subs1.awk" &&
23384 # Create commands to substitute file output variables.
23386 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
23387 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
23388 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
23391 } >conf$
$files.sh
&&
23392 . .
/conf$
$files.sh ||
23393 as_fn_error
"could not make $CONFIG_STATUS" "$LINENO" 5
23394 rm -f conf$
$files.sh
23397 echo "cat >conf$$subs.awk <<_ACEOF" &&
23398 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
23400 } >conf$$subs.sh ||
23401 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
23402 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
23404 for ac_last_try in false false false false false :; do
23405 . ./conf$$subs.sh ||
23406 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
23408 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
23409 if test $ac_delim_n = $ac_delim_num; then
23411 elif $ac_last_try; then
23412 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
23414 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
23417 rm -f conf$$subs.sh
23419 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23420 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
23424 s/^/S["/; s
/!.
*/"]=/
23434 s/\(.\{148\}\)..*/\1/
23436 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
23441 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
23448 s/\(.\{148\}\)..*/\1/
23450 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
23454 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
23459 ' <conf$$subs.awk | sed '
23464 ' >>$CONFIG_STATUS || ac_write_fail=1
23465 rm -f conf$$subs.awk
23466 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23468 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
23469 for (key in S) S_is_set[key] = 1
23471 \$ac_cs_awk_pipe_init
23475 nfields = split(line, field, "@
")
23477 len = length(field[1])
23478 for (i = 2; i < nfields; i++) {
23480 keylen = length(key)
23481 if (S_is_set[key]) {
23483 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
23484 len += length(value) + length(field[++i])
23489 if (nfields == 3 && !substed) {
23491 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
23492 \$ac_cs_awk_read_file
23498 \$ac_cs_awk_pipe_fini
23501 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23502 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
23503 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
23506 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
23507 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
23510 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23511 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
23512 # trailing colons and then remove the whole line if VPATH becomes empty
23513 # (actually we leave an empty line to preserve line numbers).
23514 if test "x
$srcdir" = x.; then
23515 ac_vpsub='/^[ ]*VPATH[ ]*=/{
23516 s/:*\$(srcdir):*/:/
23517 s/:*\${srcdir}:*/:/
23519 s/^\([^=]*=[ ]*\):*/\1/
23525 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23526 fi # test -n "$CONFIG_FILES"
23528 # Set up the scripts for CONFIG_HEADERS section.
23529 # No need to generate them if there are no CONFIG_HEADERS.
23530 # This happens for instance with `./config.status Makefile'.
23531 if test -n "$CONFIG_HEADERS"; then
23532 cat >"$tmp/defines.
awk" <<\_ACAWK ||
23536 # Transform confdefs.h into an awk script `defines.awk', embedded as
23537 # here-document in config.status, that substitutes the proper values into
23538 # config.h.in to produce config.h.
23540 # Create a delimiter string that does not exist in confdefs.h, to ease
23541 # handling of long lines.
23543 for ac_last_try in false false :; do
23544 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
23545 if test -z "$ac_t"; then
23547 elif $ac_last_try; then
23548 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
23550 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
23554 # For the awk script, D is an array of macro values keyed by name,
23555 # likewise P contains macro parameters if any. Preserve backslash
23556 # newline sequences.
23558 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23560 s/.\{148\}/&'"$ac_delim"'/g
23563 s/^[ ]*#[ ]*define[ ][ ]*/ /
23570 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
23572 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
23576 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
23577 D["\
1"]=" \
3\\\\\\n
"\\/p
23579 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
23584 s/.\{148\}/&'"$ac_delim"'/g
23589 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
23592 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
23594 ' <confdefs.h | sed '
23595 s/'"$ac_delim"'/"\\\
23596 "/g' >>$CONFIG_STATUS || ac_write_fail=1
23598 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23599 for (key in D) D_is_set[key] = 1
23602 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
23604 split(line, arg, " ")
23605 if (arg[1] == "#") {
23609 defundef
= substr
(arg
[1], 2)
23612 split(mac1
, mac2
, "(") #)
23614 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
23615 if (D_is_set
[macro
]) {
23616 # Preserve the white space surrounding the "#".
23617 print prefix
"define", macro P
[macro
] D
[macro
]
23620 # Replace #undef with comments. This is necessary, for example,
23621 # in the case of _POSIX_SOURCE, which is predefined and required
23622 # on some systems where configure will not decide to define it.
23623 if (defundef
== "undef") {
23624 print
"/*", prefix defundef
, macro
, "*/"
23632 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
23633 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
23634 fi # test -n "$CONFIG_HEADERS"
23637 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
23642 :[FHLC
]) ac_mode
=$ac_tag; continue;;
23644 case $ac_mode$ac_tag in
23646 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
23647 :[FH
]-) ac_tag
=-:-;;
23648 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
23665 -) ac_f
="$tmp/stdin";;
23666 *) # Look for the file first in the build tree, then in the source tree
23667 # (if the path is not absolute). The absolute path cannot be DOS-style,
23668 # because $ac_f cannot contain `:'.
23672 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
23674 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
23676 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
23677 as_fn_append ac_file_inputs
" '$ac_f'"
23680 # Let's still pretend it is `configure' which instantiates (i.e., don't
23681 # use $as_me), people would be surprised to read:
23682 # /* config.h. Generated by config.status. */
23683 configure_input
='Generated from '`
23684 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
23686 if test x
"$ac_file" != x-
; then
23687 configure_input
="$ac_file. $configure_input"
23688 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
23689 $as_echo "$as_me: creating $ac_file" >&6;}
23691 # Neutralize special characters interpreted by sed in replacement strings.
23692 case $configure_input in #(
23693 *\
&* |
*\|
* |
*\\* )
23694 ac_sed_conf_input
=`$as_echo "$configure_input" |
23695 sed 's/[\\\\&|]/\\\\&/g'`;; #(
23696 *) ac_sed_conf_input
=$configure_input;;
23700 *:-:* |
*:-) cat >"$tmp/stdin" \
23701 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
23706 ac_dir
=`$as_dirname -- "$ac_file" ||
23707 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23708 X"$ac_file" : 'X\(//\)[^/]' \| \
23709 X"$ac_file" : 'X\(//\)$' \| \
23710 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23711 $as_echo X"$ac_file" |
23712 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23716 /^X\(\/\/\)[^/].*/{
23729 as_dir
="$ac_dir"; as_fn_mkdir_p
23733 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
23735 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
23736 # A ".." for each directory in $ac_dir_suffix.
23737 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
23738 case $ac_top_builddir_sub in
23739 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
23740 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
23743 ac_abs_top_builddir
=$ac_pwd
23744 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
23745 # for backward compatibility:
23746 ac_top_builddir
=$ac_top_build_prefix
23749 .
) # We are building in place.
23751 ac_top_srcdir
=$ac_top_builddir_sub
23752 ac_abs_top_srcdir
=$ac_pwd ;;
23753 [\\/]* | ?
:[\\/]* ) # Absolute name.
23754 ac_srcdir
=$srcdir$ac_dir_suffix;
23755 ac_top_srcdir
=$srcdir
23756 ac_abs_top_srcdir
=$srcdir ;;
23757 *) # Relative name.
23758 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
23759 ac_top_srcdir
=$ac_top_build_prefix$srcdir
23760 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
23762 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
23772 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
23773 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
23775 ac_MKDIR_P
=$MKDIR_P
23777 [\\/$
]* | ?
:[\\/]* ) ;;
23778 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
23782 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
23783 # If the template does not know about datarootdir, expand it.
23784 # FIXME: This hack should be removed a few years after 2.60.
23785 ac_datarootdir_hack
=; ac_datarootdir_seen
=
23796 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
23797 *datarootdir
*) ac_datarootdir_seen
=yes;;
23798 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
23799 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23800 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23802 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23803 ac_datarootdir_hack='
23804 s&@datadir@&$datadir&g
23805 s&@docdir@&$docdir&g
23806 s&@infodir@&$infodir&g
23807 s&@localedir@&$localedir&g
23808 s&@mandir@&$mandir&g
23809 s&\\\${datarootdir}&$datarootdir&g' ;;
23813 # Neutralize VPATH when `$srcdir' = `.'.
23814 # Shell code in configure.ac might set extrasub.
23815 # FIXME: do we really want to maintain this feature?
23816 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23817 ac_sed_extra="$ac_vpsub
23820 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
23822 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
23823 s|@configure_input@|
$ac_sed_conf_input|
;t t
23824 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
23825 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
23826 s
&@srcdir@
&$ac_srcdir&;t t
23827 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
23828 s
&@top_srcdir@
&$ac_top_srcdir&;t t
23829 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
23830 s
&@builddir@
&$ac_builddir&;t t
23831 s
&@abs_builddir@
&$ac_abs_builddir&;t t
23832 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
23833 s
&@INSTALL@
&$ac_INSTALL&;t t
23834 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
23835 $ac_datarootdir_hack
23837 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
23838 if $ac_cs_awk_getline; then
23839 $AWK -f "$tmp/subs.
awk"
23841 $AWK -f "$tmp/subs.
awk" | $SHELL
23843 || as_fn_error "could not create
$ac_file" "$LINENO" 5
23845 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23846 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
23847 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
23848 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
23849 which seems to be undefined. Please make sure it is defined." >&5
23850 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
23851 which seems to be undefined. Please make sure it is defined." >&2;}
23855 -) cat "$tmp/out" && rm -f "$tmp/out";;
23856 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
23858 || as_fn_error "could not create $ac_file" "$LINENO" 5
23864 if test x"$ac_file" != x-; then
23866 $as_echo "/* $configure_input */" \
23867 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
23868 } >"$tmp/config.h" \
23869 || as_fn_error "could not create $ac_file" "$LINENO" 5
23870 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
23871 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
23872 $as_echo "$as_me: $ac_file is unchanged" >&6;}
23875 mv "$tmp/config.h" "$ac_file" \
23876 || as_fn_error "could not create $ac_file" "$LINENO" 5
23879 $as_echo "/* $configure_input */" \
23880 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
23881 || as_fn_error "could not create -" "$LINENO" 5
23883 # Compute "$ac_file"'s index
in $config_headers.
23886 for _am_header
in $config_headers :; do
23887 case $_am_header in
23888 $_am_arg |
$_am_arg:* )
23891 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
23894 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
23895 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23896 X"$_am_arg" : 'X\(//\)[^/]' \| \
23897 X"$_am_arg" : 'X\(//\)$' \| \
23898 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
23899 $as_echo X"$_am_arg" |
23900 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23904 /^X\(\/\/\)[^/].*/{
23916 s/.*/./; q'`/stamp-h
$_am_stamp_count
23919 :C
) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
23920 $as_echo "$as_me: executing $ac_file commands" >&6;}
23925 case $ac_file$ac_mode in
23926 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
{
23927 # Autoconf 2.62 quotes --file arguments for eval, but not when files
23928 # are listed without --file. Let's play safe and only enable the eval
23929 # if we detect the quoting.
23930 case $CONFIG_FILES in
23931 *\'*) eval set x
"$CONFIG_FILES" ;;
23932 *) set x
$CONFIG_FILES ;;
23937 # Strip MF so we end up with the name of the file.
23938 mf
=`echo "$mf" | sed -e 's/:.*$//'`
23939 # Check whether this is an Automake generated Makefile or not.
23940 # We used to match only the files named `Makefile.in', but
23941 # some people rename them; so instead we look at the file content.
23942 # Grep'ing the first line is not enough: some people post-process
23943 # each Makefile.in and add a new line on top of each file to say so.
23944 # Grep'ing the whole file is not good either: AIX grep has a line
23945 # limit of 2048, but all sed's we know have understand at least 4000.
23946 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
23947 dirpart
=`$as_dirname -- "$mf" ||
23948 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23949 X"$mf" : 'X\(//\)[^/]' \| \
23950 X"$mf" : 'X\(//\)$' \| \
23951 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
23953 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23957 /^X\(\/\/\)[^/].*/{
23973 # Extract the definition of DEPDIR, am__include, and am__quote
23974 # from the Makefile without running `make'.
23975 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
23976 test -z "$DEPDIR" && continue
23977 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
23978 test -z "am__include" && continue
23979 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
23980 # When using ansi2knr, U may be empty or an underscore; expand it
23981 U
=`sed -n 's/^U = //p' < "$mf"`
23982 # Find all dependency output files, they are included files with
23983 # $(DEPDIR) in their names. We invoke sed twice because it is the
23984 # simplest approach to changing $(DEPDIR) to its actual value in the
23986 for file in `sed -n "
23987 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
23988 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
23989 # Make sure the directory exists.
23990 test -f "$dirpart/$file" && continue
23991 fdir
=`$as_dirname -- "$file" ||
23992 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23993 X"$file" : 'X\(//\)[^/]' \| \
23994 X"$file" : 'X\(//\)$' \| \
23995 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
23996 $as_echo X"$file" |
23997 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24001 /^X\(\/\/\)[^/].*/{
24014 as_dir
=$dirpart/$fdir; as_fn_mkdir_p
24015 # echo "creating $dirpart/$file"
24016 echo '# dummy' > "$dirpart/$file"
24022 for dir
in etc lisp
; do
24023 test -d ${dir} || mkdir
${dir}
24027 echo creating src
/epaths.h
24028 ${MAKE-make} epaths-force
24031 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
24032 echo creating src
/.gdbinit
24033 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
24043 ac_clean_files
=$ac_clean_files_save
24045 test $ac_write_fail = 0 ||
24046 as_fn_error
"write failure creating $CONFIG_STATUS" "$LINENO" 5
24049 # configure is writing to config.log, and then calls config.status.
24050 # config.status does its own redirection, appending to config.log.
24051 # Unfortunately, on DOS this fails, as config.log is still kept open
24052 # by configure, so config.status won't be able to write to it; its
24053 # output is simply discarded. So we exec the FD to /dev/null,
24054 # effectively closing config.log, so it can be properly (re)opened and
24055 # appended to by config.status. When coming back to configure, we
24056 # need to make the FD available again.
24057 if test "$no_create" != yes; then
24059 ac_config_status_args
=
24060 test "$silent" = yes &&
24061 ac_config_status_args
="$ac_config_status_args --quiet"
24063 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
24065 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24066 # would make configure fail if this is the last instruction.
24067 $ac_cs_success || as_fn_exit $?
24069 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
24070 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
24071 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}