2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65 for emacs 24.1.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.1.50'
553 PACKAGE_STRING
='emacs 24.1.50'
557 ac_unique_file
="src/lisp.h"
558 # Factoring default headers for most tests.
559 ac_includes_default
="\
561 #ifdef HAVE_SYS_TYPES_H
562 # include <sys/types.h>
564 #ifdef HAVE_SYS_STAT_H
565 # include <sys/stat.h>
571 # ifdef HAVE_STDLIB_H
576 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
581 #ifdef HAVE_STRINGS_H
582 # include <strings.h>
584 #ifdef HAVE_INTTYPES_H
585 # include <inttypes.h>
595 gl_getopt_required
=POSIX
597 gl_getopt_required
=POSIX
598 ac_subst_vars
='gltests_LTLIBOBJS
609 LD_SWITCH_SYSTEM_TEMACS
641 x_default_search_path
711 INSTALL_ARCH_INDEP_EXTRA
713 LD_SWITCH_X_SITE_RPATH
725 gl_GNULIB_ENABLED_verify_FALSE
726 gl_GNULIB_ENABLED_verify_TRUE
727 gl_GNULIB_ENABLED_strtoull_FALSE
728 gl_GNULIB_ENABLED_strtoull_TRUE
729 gl_GNULIB_ENABLED_strtoll_FALSE
730 gl_GNULIB_ENABLED_strtoll_TRUE
731 gl_GNULIB_ENABLED_stat_FALSE
732 gl_GNULIB_ENABLED_stat_TRUE
733 gl_GNULIB_ENABLED_pathmax_FALSE
734 gl_GNULIB_ENABLED_pathmax_TRUE
735 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE
736 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE
737 gl_GNULIB_ENABLED_dosname_FALSE
738 gl_GNULIB_ENABLED_dosname_TRUE
743 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
745 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
746 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
747 TIME_H_DEFINES_STRUCT_TIMESPEC
748 NEXT_AS_FIRST_DIRECTIVE_TIME_H
750 WINDOWS_64_BIT_ST_SIZE
751 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
753 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
755 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
764 REPLACE_STDIO_WRITE_FUNCS
765 REPLACE_STDIO_READ_FUNCS
774 REPLACE_OBSTACK_PRINTF
799 HAVE_DECL_OBSTACK_PRINTF
805 GNULIB_VSPRINTF_POSIX
809 GNULIB_VFPRINTF_POSIX
816 GNULIB_STDIO_H_SIGPIPE
817 GNULIB_STDIO_H_NONBLOCKING
832 GNULIB_OBSTACK_PRINTF_POSIX
833 GNULIB_OBSTACK_PRINTF
858 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
860 GL_GENERATE_STDDEF_H_FALSE
861 GL_GENERATE_STDDEF_H_TRUE
866 GL_GENERATE_STDBOOL_H_FALSE
867 GL_GENERATE_STDBOOL_H_TRUE
869 GL_GENERATE_STDARG_H_FALSE
870 GL_GENERATE_STDARG_H_TRUE
872 NEXT_AS_FIRST_DIRECTIVE_STDARG_H
874 GL_GENERATE_STDALIGN_H_FALSE
875 GL_GENERATE_STDALIGN_H_TRUE
877 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H
881 REPLACE_PTHREAD_SIGMASK
883 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
884 HAVE_STRUCT_SIGACTION_SA_SIGACTION
890 HAVE_POSIX_SIGNALBLOCKING
893 GNULIB_SIGNAL_H_SIGPIPE
895 GNULIB_PTHREAD_SIGMASK
897 NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H
911 HAVE_DECL_LOCALTIME_R
950 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
952 UINT64_MAX_EQ_ULONG_MAX
953 UINT32_MAX_LT_UINTMAX_MAX
956 INT64_MAX_EQ_LONG_MAX
957 INT32_MAX_LT_INTMAX_MAX
967 GL_GENERATE_STDINT_H_FALSE
968 GL_GENERATE_STDINT_H_TRUE
977 HAVE_SIGNED_SIG_ATOMIC_T
980 BITSIZEOF_SIG_ATOMIC_T
983 APPLE_UNIVERSAL_BUILD
987 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
992 HAVE_UNSIGNED_LONG_LONG_INT
995 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H
997 REPLACE_STRUCT_TIMEVAL
1003 GNULIB_GL_UNISTD_H_GETOPT
1006 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
1009 PRAGMA_SYSTEM_HEADER
1010 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
1025 REPLACE_CANONICALIZE_FILE_NAME
1030 HAVE_STRUCT_RANDOM_DATA
1051 HAVE_DECL_GETLOADAVG
1052 HAVE_CANONICALIZE_FILE_NAME
1065 GNULIB_REALLOC_POSIX
1082 GNULIB_CANONICALIZE_FILE_NAME
1086 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
1087 UNISTD_H_HAVE_WINSOCK2_H
1108 REPLACE_GETDOMAINNAME
1119 HAVE_DECL_SETHOSTNAME
1120 HAVE_DECL_GETUSERSHELL
1121 HAVE_DECL_GETPAGESIZE
1122 HAVE_DECL_GETLOGIN_R
1123 HAVE_DECL_GETDOMAINNAME
1162 GNULIB_UNISTD_H_SIGPIPE
1163 GNULIB_UNISTD_H_NONBLOCKING
1189 GNULIB_GETDTABLESIZE
1190 GNULIB_GETDOMAINNAME
1207 GL_GENERATE_ALLOCA_H_FALSE
1208 GL_GENERATE_ALLOCA_H_TRUE
1211 GL_COND_LIBTOOL_FALSE
1212 GL_COND_LIBTOOL_TRUE
1272 INSTALL_STRIP_PROGRAM
1314 program_transform_name
1325 ac_subst_files
='deps_frag
1329 enable_option_checking
1352 with_toolkit_scroll_bars
1364 with_pkg_config_prog
1368 enable_ns_self_contained
1369 enable_locallisppath
1371 enable_check_lisp_object_type
1374 enable_dependency_tracking
1377 enable_link_time_optimization
1380 ac_precious_vars
='build_alias
1392 # Initialize some variables set by options.
1394 ac_init_version
=false
1395 ac_unrecognized_opts
=
1396 ac_unrecognized_sep
=
1397 # The variables have the same names as the options, with
1398 # dashes changed to underlines.
1399 cache_file
=/dev
/null
1406 program_transform_name
=s
,x
,x
,
1414 # Installation directory options.
1415 # These are left unexpanded so users can "make install exec_prefix=/foo"
1416 # and all the variables that are supposed to be based on exec_prefix
1417 # by default will actually change.
1418 # Use braces instead of parens because sh, perl, etc. also accept them.
1419 # (The list follows the same order as the GNU Coding Standards.)
1420 bindir
='${exec_prefix}/bin'
1421 sbindir
='${exec_prefix}/sbin'
1422 libexecdir
='${exec_prefix}/libexec'
1423 datarootdir
='${prefix}/share'
1424 datadir
='${datarootdir}'
1425 sysconfdir
='${prefix}/etc'
1426 sharedstatedir
='${prefix}/com'
1427 localstatedir
='${prefix}/var'
1428 includedir
='${prefix}/include'
1429 oldincludedir
='/usr/include'
1430 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
1431 infodir
='${datarootdir}/info'
1436 libdir
='${exec_prefix}/lib'
1437 localedir
='${datarootdir}/locale'
1438 mandir
='${datarootdir}/man'
1444 # If the previous option needs an argument, assign it.
1445 if test -n "$ac_prev"; then
1446 eval $ac_prev=\
$ac_option
1452 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1456 # Accept the important Cygnus configure options, so we can diagnose typos.
1458 case $ac_dashdash$ac_option in
1462 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1464 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1465 bindir
=$ac_optarg ;;
1467 -build |
--build |
--buil |
--bui |
--bu)
1468 ac_prev
=build_alias
;;
1469 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1470 build_alias
=$ac_optarg ;;
1472 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1473 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1474 ac_prev
=cache_file
;;
1475 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1476 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1477 cache_file
=$ac_optarg ;;
1479 --config-cache |
-C)
1480 cache_file
=config.cache
;;
1482 -datadir |
--datadir |
--datadi |
--datad)
1484 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1485 datadir
=$ac_optarg ;;
1487 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1488 |
--dataroo |
--dataro |
--datar)
1489 ac_prev
=datarootdir
;;
1490 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1491 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1492 datarootdir
=$ac_optarg ;;
1494 -disable-* |
--disable-*)
1495 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1496 # Reject names that are not valid shell variable names.
1497 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1498 as_fn_error
"invalid feature name: $ac_useropt"
1499 ac_useropt_orig
=$ac_useropt
1500 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1501 case $ac_user_opts in
1503 "enable_
$ac_useropt"
1505 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1506 ac_unrecognized_sep
=', ';;
1508 eval enable_
$ac_useropt=no
;;
1510 -docdir |
--docdir |
--docdi |
--doc |
--do)
1512 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1513 docdir
=$ac_optarg ;;
1515 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1517 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1518 dvidir
=$ac_optarg ;;
1520 -enable-* |
--enable-*)
1521 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1522 # Reject names that are not valid shell variable names.
1523 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1524 as_fn_error
"invalid feature name: $ac_useropt"
1525 ac_useropt_orig
=$ac_useropt
1526 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1527 case $ac_user_opts in
1529 "enable_
$ac_useropt"
1531 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1532 ac_unrecognized_sep
=', ';;
1534 eval enable_
$ac_useropt=\
$ac_optarg ;;
1536 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1537 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1538 |
--exec |
--exe |
--ex)
1539 ac_prev
=exec_prefix
;;
1540 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1541 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1542 |
--exec=* |
--exe=* |
--ex=*)
1543 exec_prefix
=$ac_optarg ;;
1545 -gas |
--gas |
--ga |
--g)
1546 # Obsolete; use --with-gas.
1549 -help |
--help |
--hel |
--he |
-h)
1550 ac_init_help
=long
;;
1551 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1552 ac_init_help
=recursive
;;
1553 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1554 ac_init_help
=short
;;
1556 -host |
--host |
--hos |
--ho)
1557 ac_prev
=host_alias
;;
1558 -host=* |
--host=* |
--hos=* |
--ho=*)
1559 host_alias
=$ac_optarg ;;
1561 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1563 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1565 htmldir
=$ac_optarg ;;
1567 -includedir |
--includedir |
--includedi |
--included |
--include \
1568 |
--includ |
--inclu |
--incl |
--inc)
1569 ac_prev
=includedir
;;
1570 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1571 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1572 includedir
=$ac_optarg ;;
1574 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1576 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1577 infodir
=$ac_optarg ;;
1579 -libdir |
--libdir |
--libdi |
--libd)
1581 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1582 libdir
=$ac_optarg ;;
1584 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1585 |
--libexe |
--libex |
--libe)
1586 ac_prev
=libexecdir
;;
1587 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1588 |
--libexe=* |
--libex=* |
--libe=*)
1589 libexecdir
=$ac_optarg ;;
1591 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1592 ac_prev
=localedir
;;
1593 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1594 localedir
=$ac_optarg ;;
1596 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1597 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1598 ac_prev
=localstatedir
;;
1599 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1600 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1601 localstatedir
=$ac_optarg ;;
1603 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1605 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1606 mandir
=$ac_optarg ;;
1608 -nfp |
--nfp |
--nf)
1609 # Obsolete; use --without-fp.
1612 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1613 |
--no-cr |
--no-c |
-n)
1616 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1617 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1620 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1621 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1622 |
--oldin |
--oldi |
--old |
--ol |
--o)
1623 ac_prev
=oldincludedir
;;
1624 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1625 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1626 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1627 oldincludedir
=$ac_optarg ;;
1629 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1631 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1632 prefix
=$ac_optarg ;;
1634 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1635 |
--program-pre |
--program-pr |
--program-p)
1636 ac_prev
=program_prefix
;;
1637 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1638 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1639 program_prefix
=$ac_optarg ;;
1641 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1642 |
--program-suf |
--program-su |
--program-s)
1643 ac_prev
=program_suffix
;;
1644 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1645 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1646 program_suffix
=$ac_optarg ;;
1648 -program-transform-name |
--program-transform-name \
1649 |
--program-transform-nam |
--program-transform-na \
1650 |
--program-transform-n |
--program-transform- \
1651 |
--program-transform |
--program-transfor \
1652 |
--program-transfo |
--program-transf \
1653 |
--program-trans |
--program-tran \
1654 |
--progr-tra |
--program-tr |
--program-t)
1655 ac_prev
=program_transform_name
;;
1656 -program-transform-name=* |
--program-transform-name=* \
1657 |
--program-transform-nam=* |
--program-transform-na=* \
1658 |
--program-transform-n=* |
--program-transform-=* \
1659 |
--program-transform=* |
--program-transfor=* \
1660 |
--program-transfo=* |
--program-transf=* \
1661 |
--program-trans=* |
--program-tran=* \
1662 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1663 program_transform_name
=$ac_optarg ;;
1665 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1667 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1668 pdfdir
=$ac_optarg ;;
1670 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1672 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1675 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1676 |
-silent |
--silent |
--silen |
--sile |
--sil)
1679 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1681 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1683 sbindir
=$ac_optarg ;;
1685 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1686 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1687 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1689 ac_prev
=sharedstatedir
;;
1690 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1691 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1692 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1694 sharedstatedir
=$ac_optarg ;;
1696 -site |
--site |
--sit)
1698 -site=* |
--site=* |
--sit=*)
1701 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1703 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1704 srcdir
=$ac_optarg ;;
1706 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1707 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1708 ac_prev
=sysconfdir
;;
1709 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1710 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1711 sysconfdir
=$ac_optarg ;;
1713 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1714 ac_prev
=target_alias
;;
1715 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1716 target_alias
=$ac_optarg ;;
1718 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1721 -version |
--version |
--versio |
--versi |
--vers |
-V)
1722 ac_init_version
=: ;;
1725 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1726 # Reject names that are not valid shell variable names.
1727 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1728 as_fn_error
"invalid package name: $ac_useropt"
1729 ac_useropt_orig
=$ac_useropt
1730 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1731 case $ac_user_opts in
1735 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1736 ac_unrecognized_sep
=', ';;
1738 eval with_
$ac_useropt=\
$ac_optarg ;;
1740 -without-* |
--without-*)
1741 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1742 # Reject names that are not valid shell variable names.
1743 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1744 as_fn_error
"invalid package name: $ac_useropt"
1745 ac_useropt_orig
=$ac_useropt
1746 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1747 case $ac_user_opts in
1751 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1752 ac_unrecognized_sep
=', ';;
1754 eval with_
$ac_useropt=no
;;
1757 # Obsolete; use --with-x.
1760 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1761 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1762 ac_prev
=x_includes
;;
1763 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1764 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1765 x_includes
=$ac_optarg ;;
1767 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1768 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1769 ac_prev
=x_libraries
;;
1770 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1771 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1772 x_libraries
=$ac_optarg ;;
1774 -*) as_fn_error
"unrecognized option: \`$ac_option'
1775 Try \`$0 --help' for more information."
1779 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1780 # Reject names that are not valid shell variable names.
1781 case $ac_envvar in #(
1782 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1783 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1785 eval $ac_envvar=\
$ac_optarg
1786 export $ac_envvar ;;
1789 # FIXME: should be removed in autoconf 3.0.
1790 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1791 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1792 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1793 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1799 if test -n "$ac_prev"; then
1800 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1801 as_fn_error
"missing argument to $ac_option"
1804 if test -n "$ac_unrecognized_opts"; then
1805 case $enable_option_checking in
1807 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1808 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1812 # Check all directory arguments for consistency.
1813 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1814 datadir sysconfdir sharedstatedir localstatedir includedir \
1815 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1816 libdir localedir mandir
1818 eval ac_val
=\$
$ac_var
1819 # Remove trailing slashes.
1822 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1823 eval $ac_var=\
$ac_val;;
1825 # Be sure to have absolute directory names.
1827 [\\/$
]* | ?
:[\\/]* ) continue;;
1828 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1830 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
1833 # There might be people who depend on the old broken behavior: `$host'
1834 # used to hold the argument of --host etc.
1835 # FIXME: To remove some day.
1838 target
=$target_alias
1840 # FIXME: To remove some day.
1841 if test "x$host_alias" != x
; then
1842 if test "x$build_alias" = x
; then
1843 cross_compiling
=maybe
1844 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1845 If a cross compiler is detected then cross compile mode will be used." >&2
1846 elif test "x$build_alias" != "x$host_alias"; then
1852 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1854 test "$silent" = yes && exec 6>/dev
/null
1857 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1858 ac_ls_di
=`ls -di .` &&
1859 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1860 as_fn_error
"working directory cannot be determined"
1861 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1862 as_fn_error
"pwd does not report name of working directory"
1865 # Find the source files, if location was not specified.
1866 if test -z "$srcdir"; then
1867 ac_srcdir_defaulted
=yes
1868 # Try the directory containing this script, then the parent directory.
1869 ac_confdir
=`$as_dirname -- "$as_myself" ||
1870 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1871 X"$as_myself" : 'X\(//\)[^/]' \| \
1872 X"$as_myself" : 'X\(//\)$' \| \
1873 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1874 $as_echo X"$as_myself" |
1875 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1893 if test ! -r "$srcdir/$ac_unique_file"; then
1897 ac_srcdir_defaulted
=no
1899 if test ! -r "$srcdir/$ac_unique_file"; then
1900 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1901 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
1903 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1905 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1907 # When building in place, set srcdir=.
1908 if test "$ac_abs_confdir" = "$ac_pwd"; then
1911 # Remove unnecessary trailing slashes from srcdir.
1912 # Double slashes in file names in object file debugging info
1913 # mess up M-x gdb in Emacs.
1915 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1917 for ac_var
in $ac_precious_vars; do
1918 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1919 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1920 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1921 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1925 # Report the --help message.
1927 if test "$ac_init_help" = "long"; then
1928 # Omit some internal or obsolete options to make the list less imposing.
1929 # This message is too long to be a string in the A/UX 3.1 sh.
1931 \`configure' configures emacs 24.1.50 to adapt to many kinds of systems.
1933 Usage: $0 [OPTION]... [VAR=VALUE]...
1935 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1936 VAR=VALUE. See below for descriptions of some of the useful variables.
1938 Defaults for the options are specified in brackets.
1941 -h, --help display this help and exit
1942 --help=short display options specific to this package
1943 --help=recursive display the short help of all the included packages
1944 -V, --version display version information and exit
1945 -q, --quiet, --silent do not print \`checking...' messages
1946 --cache-file=FILE cache test results in FILE [disabled]
1947 -C, --config-cache alias for \`--cache-file=config.cache'
1948 -n, --no-create do not create output files
1949 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1951 Installation directories:
1952 --prefix=PREFIX install architecture-independent files in PREFIX
1953 [$ac_default_prefix]
1954 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1957 By default, \`make install' will install all the files in
1958 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1959 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1960 for instance \`--prefix=\$HOME'.
1962 For better control, use the options below.
1964 Fine tuning of the installation directories:
1965 --bindir=DIR user executables [EPREFIX/bin]
1966 --sbindir=DIR system admin executables [EPREFIX/sbin]
1967 --libexecdir=DIR program executables [EPREFIX/libexec]
1968 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1969 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1970 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1971 --libdir=DIR object code libraries [EPREFIX/lib]
1972 --includedir=DIR C header files [PREFIX/include]
1973 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1974 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1975 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1976 --infodir=DIR info documentation [DATAROOTDIR/info]
1977 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1978 --mandir=DIR man documentation [DATAROOTDIR/man]
1979 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1980 --htmldir=DIR html documentation [DOCDIR]
1981 --dvidir=DIR dvi documentation [DOCDIR]
1982 --pdfdir=DIR pdf documentation [DOCDIR]
1983 --psdir=DIR ps documentation [DOCDIR]
1989 --program-prefix=PREFIX prepend PREFIX to installed program names
1990 --program-suffix=SUFFIX append SUFFIX to installed program names
1991 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1994 --x-includes=DIR X include files are
in DIR
1995 --x-libraries=DIR X library files are
in DIR
1998 --build=BUILD configure
for building on BUILD
[guessed
]
1999 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
2003 if test -n "$ac_init_help"; then
2004 case $ac_init_help in
2005 short | recursive
) echo "Configuration of emacs 24.1.50:";;
2010 --disable-option-checking ignore unrecognized
--enable/--with options
2011 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
2012 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
2013 --disable-ns-self-contained
2014 disable self contained build under NeXTstep
2015 --enable-locallisppath=PATH
2016 directories Emacs should search
for lisp files
2017 specific to this site
2018 --enable-checking[=LIST
]
2019 enable expensive run-time checks. With LIST
, enable
2020 only specific categories of checks. Categories are
:
2021 all
,yes,no. Flags are
: stringbytes
, stringoverrun
,
2022 stringfreelist
, xmallocoverrun
, conslist
, glyphs
2023 --enable-check-lisp-object-type
2024 enable compile
time checks
for the Lisp_Object data
2025 type. This is useful
for development
for catching
2026 certain types of bugs.
2027 --enable-profiling build emacs with profiling support. This might not
2028 work on all platforms
2029 --enable-autodepend automatically generate dependencies to .h-files.
2030 Requires GNU Make and Gcc. Enabled
if GNU Make and
2032 --disable-dependency-tracking speeds up one-time build
2033 --enable-dependency-tracking do not reject slow dependency extractors
2034 --disable-largefile omit support
for large files
2035 --enable-gcc-warnings turn on lots of GCC warnings. This is intended
for
2036 developers
, and may generate false alarms when used
2037 with older or non-GNU development tools.
2038 --enable-link-time-optimization
2039 build emacs with link-time optimization. This is
2040 supported only
for GCC since
4.5.0.
2043 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
2044 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
2045 --without-pop don
't support POP mail retrieval with movemail
2046 --with-kerberos support Kerberos-authenticated POP
2047 --with-kerberos5 support Kerberos version 5 authenticated POP
2048 --with-hesiod support Hesiod to get the POP server host
2049 --with-mmdf support MMDF mailboxes
2050 --with-mail-unlink unlink, rather than empty, mail spool after reading
2051 --with-mailhost=HOSTNAME
2052 string giving default POP mail host
2053 --without-sound don't compile with sound support
2054 --without-sync-input process async input synchronously
2055 --with-x-toolkit=KIT use an X toolkit
(KIT one of
: yes or gtk
, gtk3
,
2056 lucid or athena
, motif
, no
)
2057 --with-wide-int prefer wide Emacs integers
(typically
62-bit)
2058 --without-xpm don
't compile with XPM image support
2059 --without-jpeg don't compile with JPEG image support
2060 --without-tiff don
't compile with TIFF image support
2061 --without-gif don't compile with GIF image support
2062 --without-png don
't compile with PNG image support
2063 --without-rsvg don't compile with SVG image support
2064 --without-xml2 don
't compile with XML parsing support
2065 --without-imagemagick don't compile with ImageMagick image support
2066 --without-xft don
't use XFT for anti aliased fonts
2067 --without-libotf don't use libotf
for OpenType font support
2068 --without-m17n-flt don
't use m17n-flt for text shaping
2069 --without-toolkit-scroll-bars
2070 don't use Motif or Xaw3d scroll bars
2071 --without-xaw3d don
't use Xaw3d
2072 --without-xim don't use X11 XIM
2073 --with-ns use NeXTstep
(Cocoa or GNUstep
) windowing system
2074 --without-gpm don
't use -lgpm for mouse support on a GNU/Linux
2076 --without-dbus don't compile with D-Bus support
2077 --without-gconf don
't compile with GConf support
2078 --without-gsettings don't compile with GSettings support
2079 --without-selinux don
't compile with SELinux support
2080 --without-gnutls don't use
-lgnutls for SSL
/TLS support
2081 --without-makeinfo don
't require makeinfo for building manuals
2082 --without-compress-info don't
compress the installed Info pages
2083 --with-pkg-config-prog=PATH
2084 path to pkg-config
for finding GTK and librsvg
2085 --with-crt-dir=DIR directory containing crtn.o etc. The default is
2086 /usr
/lib
, or
/usr
/lib64 on some platforms.
2087 --with-gameuser=USER user
for shared game score files
2088 --with-gnustep-conf=PATH
2089 path to GNUstep.conf
; default
$GNUSTEP_CONFIG_FILE,
2090 or
/etc
/GNUstep
/GNUstep.conf
2091 --with-x use the X Window System
2093 Some influential environment variables
:
2094 CC C compiler
command
2095 CFLAGS C compiler flags
2096 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
2097 nonstandard directory
<lib dir
>
2098 LIBS libraries to pass to the linker
, e.g.
-l<library
>
2099 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
2100 you have headers
in a nonstandard directory
<include dir
>
2102 XMKMF Path to xmkmf
, Makefile generator
for X Window System
2104 Use these variables to override the choices made by
`configure' or to help
2105 it to find libraries and programs with nonstandard names/locations.
2107 Report bugs to the package provider.
2112 if test "$ac_init_help" = "recursive"; then
2113 # If there are subdirs, report their specific --help.
2114 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2115 test -d "$ac_dir" ||
2116 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2121 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2123 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
2124 # A ".." for each directory in $ac_dir_suffix.
2125 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
2126 case $ac_top_builddir_sub in
2127 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2128 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2131 ac_abs_top_builddir=$ac_pwd
2132 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2133 # for backward compatibility:
2134 ac_top_builddir=$ac_top_build_prefix
2137 .) # We are building in place.
2139 ac_top_srcdir=$ac_top_builddir_sub
2140 ac_abs_top_srcdir=$ac_pwd ;;
2141 [\\/]* | ?:[\\/]* ) # Absolute name.
2142 ac_srcdir=$srcdir$ac_dir_suffix;
2143 ac_top_srcdir=$srcdir
2144 ac_abs_top_srcdir=$srcdir ;;
2146 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2147 ac_top_srcdir=$ac_top_build_prefix$srcdir
2148 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2150 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2152 cd "$ac_dir" || { ac_status=$?; continue; }
2153 # Check for guested configure.
2154 if test -f "$ac_srcdir/configure.gnu"; then
2156 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2157 elif test -f "$ac_srcdir/configure"; then
2159 $SHELL "$ac_srcdir/configure" --help=recursive
2161 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2163 cd "$ac_pwd" || { ac_status=$?; break; }
2167 test -n "$ac_init_help" && exit $ac_status
2168 if $ac_init_version; then
2170 emacs configure 24.1.50
2171 generated by GNU Autoconf 2.65
2173 Copyright (C) 2009 Free Software Foundation, Inc.
2174 This configure script is free software; the Free Software Foundation
2175 gives unlimited permission to copy, distribute and modify it.
2180 ## ------------------------ ##
2181 ## Autoconf initialization. ##
2182 ## ------------------------ ##
2184 # ac_fn_c_try_compile LINENO
2185 # --------------------------
2186 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2187 ac_fn_c_try_compile ()
2189 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2190 rm -f conftest.$ac_objext
2191 if { { ac_try="$ac_compile"
2193 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2194 *) ac_try_echo
=$ac_try;;
2196 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2197 $as_echo "$ac_try_echo"; } >&5
2198 (eval "$ac_compile") 2>conftest.err
2200 if test -s conftest.err
; then
2201 grep -v '^ *+' conftest.err
>conftest.er1
2202 cat conftest.er1
>&5
2203 mv -f conftest.er1 conftest.err
2205 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2206 test $ac_status = 0; } && {
2207 test -z "$ac_c_werror_flag" ||
2208 test ! -s conftest.err
2209 } && test -s conftest.
$ac_objext; then :
2212 $as_echo "$as_me: failed program was:" >&5
2213 sed 's/^/| /' conftest.
$ac_ext >&5
2217 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2218 as_fn_set_status
$ac_retval
2220 } # ac_fn_c_try_compile
2222 # ac_fn_c_try_cpp LINENO
2223 # ----------------------
2224 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2227 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2228 if { { ac_try
="$ac_cpp conftest.$ac_ext"
2230 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2231 *) ac_try_echo=$ac_try;;
2233 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2234 $as_echo "$ac_try_echo"; } >&5
2235 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2237 if test -s conftest.err; then
2238 grep -v '^ *+' conftest.err >conftest.er1
2239 cat conftest.er1 >&5
2240 mv -f conftest.er1 conftest.err
2242 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2243 test $ac_status = 0; } >/dev/null && {
2244 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2245 test ! -s conftest.err
2249 $as_echo "$as_me: failed program was:" >&5
2250 sed 's/^/| /' conftest.$ac_ext >&5
2254 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2255 as_fn_set_status $ac_retval
2259 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2260 # -------------------------------------------------------
2261 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2262 # the include files in INCLUDES and setting the cache variable VAR
2264 ac_fn_c_check_header_mongrel ()
2266 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2267 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2269 $as_echo_n "checking for $2... " >&6; }
2270 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2271 $as_echo_n "(cached) " >&6
2274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2275 $as_echo "$ac_res" >&6; }
2277 # Is the header compilable?
2278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2279 $as_echo_n "checking $2 usability... " >&6; }
2280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2281 /* end confdefs.h. */
2285 if ac_fn_c_try_compile "$LINENO"; then :
2286 ac_header_compiler=yes
2288 ac_header_compiler=no
2290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2292 $as_echo "$ac_header_compiler" >&6; }
2294 # Is the header present?
2295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2296 $as_echo_n "checking $2 presence... " >&6; }
2297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2298 /* end confdefs.h. */
2301 if ac_fn_c_try_cpp "$LINENO"; then :
2302 ac_header_preproc=yes
2304 ac_header_preproc=no
2306 rm -f conftest.err conftest.$ac_ext
2307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2308 $as_echo "$ac_header_preproc" >&6; }
2310 # So? What about this header?
2311 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2313 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2314 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2315 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2316 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2319 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2320 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2321 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2322 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2323 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2324 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2325 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2326 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2327 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2328 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2332 $as_echo_n "checking for $2... " >&6; }
2333 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2334 $as_echo_n "(cached) " >&6
2336 eval "$3=\$ac_header_compiler"
2339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2340 $as_echo "$ac_res" >&6; }
2342 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2344 } # ac_fn_c_check_header_mongrel
2346 # ac_fn_c_try_run LINENO
2347 # ----------------------
2348 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2349 # that executables *can* be run.
2352 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2353 if { { ac_try="$ac_link"
2355 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2356 *) ac_try_echo
=$ac_try;;
2358 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2359 $as_echo "$ac_try_echo"; } >&5
2360 (eval "$ac_link") 2>&5
2362 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2363 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
2364 { { case "(($ac_try" in
2365 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2366 *) ac_try_echo=$ac_try;;
2368 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2369 $as_echo "$ac_try_echo"; } >&5
2370 (eval "$ac_try") 2>&5
2372 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2373 test $ac_status = 0; }; }; then :
2376 $as_echo "$as_me: program exited with status $ac_status" >&5
2377 $as_echo "$as_me: failed program was:" >&5
2378 sed 's/^/| /' conftest.$ac_ext >&5
2380 ac_retval=$ac_status
2382 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2383 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2384 as_fn_set_status $ac_retval
2388 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2389 # -------------------------------------------------------
2390 # Tests whether HEADER exists and can be compiled using the include files in
2391 # INCLUDES, setting the cache variable VAR accordingly.
2392 ac_fn_c_check_header_compile ()
2394 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2396 $as_echo_n "checking for $2... " >&6; }
2397 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2398 $as_echo_n "(cached) " >&6
2400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2401 /* end confdefs.h. */
2405 if ac_fn_c_try_compile "$LINENO"; then :
2410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2414 $as_echo "$ac_res" >&6; }
2415 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2417 } # ac_fn_c_check_header_compile
2419 # ac_fn_c_try_link LINENO
2420 # -----------------------
2421 # Try to link conftest.$ac_ext, and return whether this succeeded.
2424 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2425 rm -f conftest.$ac_objext conftest$ac_exeext
2426 if { { ac_try="$ac_link"
2428 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2429 *) ac_try_echo
=$ac_try;;
2431 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2432 $as_echo "$ac_try_echo"; } >&5
2433 (eval "$ac_link") 2>conftest.err
2435 if test -s conftest.err
; then
2436 grep -v '^ *+' conftest.err
>conftest.er1
2437 cat conftest.er1
>&5
2438 mv -f conftest.er1 conftest.err
2440 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2441 test $ac_status = 0; } && {
2442 test -z "$ac_c_werror_flag" ||
2443 test ! -s conftest.err
2444 } && test -s conftest
$ac_exeext && {
2445 test "$cross_compiling" = yes ||
2446 $as_test_x conftest
$ac_exeext
2450 $as_echo "$as_me: failed program was:" >&5
2451 sed 's/^/| /' conftest.
$ac_ext >&5
2455 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2456 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2457 # interfere with the next link command; also delete a directory that is
2458 # left behind by Apple's compiler. We do this before executing the actions.
2459 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2460 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2461 as_fn_set_status
$ac_retval
2463 } # ac_fn_c_try_link
2465 # ac_fn_c_check_decl LINENO SYMBOL VAR
2466 # ------------------------------------
2467 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2468 ac_fn_c_check_decl
()
2470 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2472 $as_echo_n "checking whether $2 is declared... " >&6; }
2473 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2474 $as_echo_n "(cached) " >&6
2476 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2477 /* end confdefs.h. */
2490 if ac_fn_c_try_compile
"$LINENO"; then :
2495 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2499 $as_echo "$ac_res" >&6; }
2500 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2502 } # ac_fn_c_check_decl
2504 # ac_fn_c_check_func LINENO FUNC VAR
2505 # ----------------------------------
2506 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2507 ac_fn_c_check_func
()
2509 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2511 $as_echo_n "checking for $2... " >&6; }
2512 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2513 $as_echo_n "(cached) " >&6
2515 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2516 /* end confdefs.h. */
2517 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2518 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2519 #define $2 innocuous_$2
2521 /* System header to define __stub macros and hopefully few prototypes,
2522 which can conflict with char $2 (); below.
2523 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2524 <limits.h> exists even on freestanding compilers. */
2527 # include <limits.h>
2529 # include <assert.h>
2534 /* Override any GCC internal prototype to avoid an error.
2535 Use char because int might match the return type of a GCC
2536 builtin and then its argument prototype would still apply. */
2541 /* The GNU C library defines this for functions which it implements
2542 to always fail with ENOSYS. Some functions are actually named
2543 something starting with __ and the normal name is an alias. */
2544 #if defined __stub_$2 || defined __stub___$2
2556 if ac_fn_c_try_link
"$LINENO"; then :
2561 rm -f core conftest.err conftest.
$ac_objext \
2562 conftest
$ac_exeext conftest.
$ac_ext
2565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2566 $as_echo "$ac_res" >&6; }
2567 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2569 } # ac_fn_c_check_func
2571 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2572 # ----------------------------------------------------
2573 # Tries to find if the field MEMBER exists in type AGGR, after including
2574 # INCLUDES, setting cache variable VAR accordingly.
2575 ac_fn_c_check_member
()
2577 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2579 $as_echo_n "checking for $2.$3... " >&6; }
2580 if { as_var
=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2581 $as_echo_n "(cached) " >&6
2583 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2584 /* end confdefs.h. */
2596 if ac_fn_c_try_compile
"$LINENO"; then :
2599 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2600 /* end confdefs.h. */
2606 if (sizeof ac_aggr.$3)
2612 if ac_fn_c_try_compile
"$LINENO"; then :
2617 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2619 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2623 $as_echo "$ac_res" >&6; }
2624 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2626 } # ac_fn_c_check_member
2628 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2629 # --------------------------------------------
2630 # Tries to find the compile-time value of EXPR in a program that includes
2631 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2633 ac_fn_c_compute_int
()
2635 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2636 if test "$cross_compiling" = yes; then
2637 # Depending upon the size, compute the lo and hi bounds.
2638 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2639 /* end confdefs.h. */
2644 static int test_array [1 - 2 * !(($2) >= 0)];
2651 if ac_fn_c_try_compile
"$LINENO"; then :
2654 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2655 /* end confdefs.h. */
2660 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2667 if ac_fn_c_try_compile
"$LINENO"; then :
2668 ac_hi
=$ac_mid; break
2670 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
2671 if test $ac_lo -le $ac_mid; then
2675 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
2677 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2680 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2681 /* end confdefs.h. */
2686 static int test_array [1 - 2 * !(($2) < 0)];
2693 if ac_fn_c_try_compile
"$LINENO"; then :
2696 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2697 /* end confdefs.h. */
2702 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2709 if ac_fn_c_try_compile
"$LINENO"; then :
2710 ac_lo
=$ac_mid; break
2712 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
2713 if test $ac_mid -le $ac_hi; then
2717 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
2719 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2724 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2726 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2727 # Binary search between lo and hi bounds.
2728 while test "x$ac_lo" != "x$ac_hi"; do
2729 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
2730 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2731 /* end confdefs.h. */
2736 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2743 if ac_fn_c_try_compile
"$LINENO"; then :
2746 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
2748 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2751 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
2755 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2756 /* end confdefs.h. */
2758 static long int longval () { return $2; }
2759 static unsigned long int ulongval () { return $2; }
2766 FILE *f = fopen ("conftest.val", "w");
2771 long int i = longval ();
2774 fprintf (f, "%ld", i);
2778 unsigned long int i = ulongval ();
2781 fprintf (f, "%lu", i);
2783 /* Do not output a trailing newline, as this causes \r\n confusion
2784 on some platforms. */
2785 return ferror (f) || fclose (f) != 0;
2791 if ac_fn_c_try_run
"$LINENO"; then :
2792 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
2796 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
2797 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
2801 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2802 as_fn_set_status
$ac_retval
2804 } # ac_fn_c_compute_int
2806 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2807 # -------------------------------------------
2808 # Tests whether TYPE exists after having included INCLUDES, setting cache
2809 # variable VAR accordingly.
2810 ac_fn_c_check_type
()
2812 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2814 $as_echo_n "checking for $2... " >&6; }
2815 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2816 $as_echo_n "(cached) " >&6
2819 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2820 /* end confdefs.h. */
2831 if ac_fn_c_try_compile
"$LINENO"; then :
2832 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2833 /* end confdefs.h. */
2844 if ac_fn_c_try_compile
"$LINENO"; then :
2849 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2851 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2855 $as_echo "$ac_res" >&6; }
2856 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2858 } # ac_fn_c_check_type
2860 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2861 # ----------------------------------------------
2862 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2863 ac_fn_c_check_header_preproc
()
2865 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2867 $as_echo_n "checking for $2... " >&6; }
2868 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2869 $as_echo_n "(cached) " >&6
2871 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2872 /* end confdefs.h. */
2875 if ac_fn_c_try_cpp
"$LINENO"; then :
2880 rm -f conftest.err conftest.
$ac_ext
2883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2884 $as_echo "$ac_res" >&6; }
2885 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2887 } # ac_fn_c_check_header_preproc
2888 cat >config.log
<<_ACEOF
2889 This file contains any messages produced by compilers while
2890 running configure, to aid debugging if configure makes a mistake.
2892 It was created by emacs $as_me 24.1.50, which was
2893 generated by GNU Autoconf 2.65. Invocation command line was
2905 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2906 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2907 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2908 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2909 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2911 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2912 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2914 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2915 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2916 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2917 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2918 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2919 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2920 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2924 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2928 test -z "$as_dir" && as_dir
=.
2929 $as_echo "PATH: $as_dir"
2945 # Keep a trace of the command line.
2946 # Strip out --no-create and --no-recursion so they do not pile up.
2947 # Strip out --silent because we don't want to record it for future runs.
2948 # Also quote any args containing shell meta-characters.
2949 # Make two passes to allow for proper duplicate-argument suppression.
2953 ac_must_keep_next
=false
2959 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2960 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2961 |
-silent |
--silent |
--silen |
--sile |
--sil)
2964 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2967 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2969 as_fn_append ac_configure_args1
" '$ac_arg'"
2970 if test $ac_must_keep_next = true
; then
2971 ac_must_keep_next
=false
# Got value, back to normal.
2974 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2975 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2976 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2977 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2978 case "$ac_configure_args0 " in
2979 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2982 -* ) ac_must_keep_next
=true
;;
2985 as_fn_append ac_configure_args
" '$ac_arg'"
2990 { ac_configure_args0
=; unset ac_configure_args0
;}
2991 { ac_configure_args1
=; unset ac_configure_args1
;}
2993 # When interrupted or exit'd, cleanup temporary files, and complete
2994 # config.log. We remove comments because anyway the quotes in there
2995 # would cause problems or look ugly.
2996 # WARNING: Use '\'' to represent an apostrophe within the trap.
2997 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2998 trap 'exit_status=$?
2999 # Save into config.log some information that might help in debugging.
3004 ## ---------------- ##
3005 ## Cache variables. ##
3006 ## ---------------- ##
3009 # The following way of writing the cache mishandles newlines in values,
3011 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3012 eval ac_val=\$$ac_var
3016 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3017 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3020 _ | IFS | as_nl) ;; #(
3021 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3022 *) { eval $ac_var=; unset $ac_var;} ;;
3027 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3028 *${as_nl}ac_space=\ *)
3030 "s/'\''/'\''\\\\'\'''\''/g;
3031 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3034 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3042 ## ----------------- ##
3043 ## Output variables. ##
3044 ## ----------------- ##
3047 for ac_var in $ac_subst_vars
3049 eval ac_val=\$$ac_var
3051 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3053 $as_echo "$ac_var='\''$ac_val'\''"
3057 if test -n "$ac_subst_files"; then
3059 ## ------------------- ##
3060 ## File substitutions. ##
3061 ## ------------------- ##
3064 for ac_var
in $ac_subst_files
3066 eval ac_val
=\$
$ac_var
3068 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3070 $as_echo "$ac_var='\''$ac_val'\''"
3075 if test -s confdefs.h; then
3085 test "$ac_signal" != 0 &&
3086 $as_echo "$as_me: caught signal $ac_signal"
3087 $as_echo "$as_me: exit $exit_status"
3089 rm -f core *.core core.conftest.* &&
3090 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3093 for ac_signal
in 1 2 13 15; do
3094 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3098 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3099 rm -f -r conftest
* confdefs.h
3101 $as_echo "/* confdefs.h */" > confdefs.h
3103 # Predefined preprocessor variables.
3105 cat >>confdefs.h
<<_ACEOF
3106 #define PACKAGE_NAME "$PACKAGE_NAME"
3109 cat >>confdefs.h
<<_ACEOF
3110 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3113 cat >>confdefs.h
<<_ACEOF
3114 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3117 cat >>confdefs.h
<<_ACEOF
3118 #define PACKAGE_STRING "$PACKAGE_STRING"
3121 cat >>confdefs.h
<<_ACEOF
3122 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3125 cat >>confdefs.h
<<_ACEOF
3126 #define PACKAGE_URL "$PACKAGE_URL"
3130 # Let the site file select an alternate cache file if it wants to.
3131 # Prefer an explicitly selected file to automatically selected ones.
3134 if test -n "$CONFIG_SITE"; then
3135 ac_site_file1
=$CONFIG_SITE
3136 elif test "x$prefix" != xNONE
; then
3137 ac_site_file1
=$prefix/share
/config.site
3138 ac_site_file2
=$prefix/etc
/config.site
3140 ac_site_file1
=$ac_default_prefix/share
/config.site
3141 ac_site_file2
=$ac_default_prefix/etc
/config.site
3143 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
3145 test "x$ac_site_file" = xNONE
&& continue
3146 if test /dev
/null
!= "$ac_site_file" && test -r "$ac_site_file"; then
3147 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3148 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3149 sed 's/^/| /' "$ac_site_file" >&5
3154 if test -r "$cache_file"; then
3155 # Some versions of bash will fail to source /dev/null (special files
3156 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3157 if test /dev
/null
!= "$cache_file" && test -f "$cache_file"; then
3158 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3159 $as_echo "$as_me: loading cache $cache_file" >&6;}
3161 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
3162 *) .
"./$cache_file";;
3166 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3167 $as_echo "$as_me: creating cache $cache_file" >&6;}
3171 as_fn_append ac_func_list
" readlinkat"
3172 gl_getopt_required
=GNU
3173 as_fn_append ac_header_list
" getopt.h"
3174 as_fn_append ac_func_list
" gettimeofday"
3175 as_fn_append ac_func_list
" nanotime"
3176 as_fn_append ac_header_list
" sys/time.h"
3177 as_fn_append ac_header_list
" sys/socket.h"
3178 as_fn_append ac_header_list
" wchar.h"
3179 as_fn_append ac_header_list
" stdint.h"
3180 as_fn_append ac_header_list
" inttypes.h"
3181 as_fn_append ac_func_list
" lstat"
3182 as_fn_append ac_header_list
" unistd.h"
3183 as_fn_append ac_func_list
" alarm"
3184 as_fn_append ac_header_list
" sys/select.h"
3185 as_fn_append ac_func_list
" pselect"
3186 as_fn_append ac_func_list
" pthread_sigmask"
3187 as_fn_append ac_func_list
" readlink"
3188 as_fn_append ac_func_list
" tzset"
3189 as_fn_append ac_func_list
" strtoimax"
3190 as_fn_append ac_func_list
" strtoumax"
3191 as_fn_append ac_func_list
" symlink"
3192 as_fn_append ac_header_list
" sys/stat.h"
3193 as_fn_append ac_func_list
" localtime_r"
3194 as_fn_append ac_header_list
" utime.h"
3195 as_fn_append ac_func_list
" futimes"
3196 as_fn_append ac_func_list
" futimesat"
3197 as_fn_append ac_func_list
" futimens"
3198 as_fn_append ac_func_list
" utimensat"
3199 as_fn_append ac_func_list
" lutimes"
3200 as_fn_append ac_header_list
" sys/param.h"
3201 as_fn_append ac_header_list
" linux/version.h"
3202 as_fn_append ac_header_list
" sys/systeminfo.h"
3203 as_fn_append ac_header_list
" stdio_ext.h"
3204 as_fn_append ac_header_list
" fcntl.h"
3205 as_fn_append ac_header_list
" coff.h"
3206 as_fn_append ac_header_list
" pty.h"
3207 as_fn_append ac_header_list
" sys/vlimit.h"
3208 as_fn_append ac_header_list
" sys/resource.h"
3209 as_fn_append ac_header_list
" sys/utsname.h"
3210 as_fn_append ac_header_list
" pwd.h"
3211 as_fn_append ac_header_list
" utmp.h"
3212 as_fn_append ac_header_list
" dirent.h"
3213 as_fn_append ac_header_list
" util.h"
3214 as_fn_append ac_header_list
" stdlib.h"
3215 as_fn_append ac_header_list
" pthread.h"
3216 as_fn_append ac_header_list
" malloc/malloc.h"
3217 as_fn_append ac_header_list
" maillock.h"
3218 as_fn_append ac_header_list
" sys/un.h"
3219 # Check that the precious variables saved in the cache have kept the same
3221 ac_cache_corrupted
=false
3222 for ac_var
in $ac_precious_vars; do
3223 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
3224 eval ac_new_set
=\
$ac_env_${ac_var}_set
3225 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
3226 eval ac_new_val
=\
$ac_env_${ac_var}_value
3227 case $ac_old_set,$ac_new_set in
3229 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3230 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3231 ac_cache_corrupted
=: ;;
3233 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3234 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3235 ac_cache_corrupted
=: ;;
3238 if test "x$ac_old_val" != "x$ac_new_val"; then
3239 # differences in whitespace do not lead to failure.
3240 ac_old_val_w
=`echo x $ac_old_val`
3241 ac_new_val_w
=`echo x $ac_new_val`
3242 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3243 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3244 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3245 ac_cache_corrupted
=:
3247 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3248 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3249 eval $ac_var=\
$ac_old_val
3251 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3252 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3253 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3254 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3257 # Pass precious variables to config.status.
3258 if test "$ac_new_set" = set; then
3260 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3261 *) ac_arg
=$ac_var=$ac_new_val ;;
3263 case " $ac_configure_args " in
3264 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3265 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
3269 if $ac_cache_corrupted; then
3270 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3271 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3272 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3273 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3274 as_fn_error
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3276 ## -------------------- ##
3277 ## Main body of script. ##
3278 ## -------------------- ##
3281 ac_cpp
='$CPP $CPPFLAGS'
3282 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3283 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3284 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3287 ac_config_headers
="$ac_config_headers src/config.h:src/config.in"
3291 for ac_dir
in build-aux
"$srcdir"/build-aux
; do
3292 for ac_t
in install-sh
install.sh shtool
; do
3293 if test -f "$ac_dir/$ac_t"; then
3295 ac_install_sh
="$ac_aux_dir/$ac_t -c"
3300 if test -z "$ac_aux_dir"; then
3301 as_fn_error
"cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
3304 # These three variables are undocumented and unsupported,
3305 # and are intended to be withdrawn in a future Autoconf release.
3306 # They can cause serious problems if a builder's source tree is in a directory
3307 # whose full name contains unusual characters.
3308 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3309 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3310 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3313 am__api_version
='1.11'
3315 # Find a good install program. We prefer a C program (faster),
3316 # so one script is as good as another. But avoid the broken or
3317 # incompatible versions:
3318 # SysV /etc/install, /usr/sbin/install
3319 # SunOS /usr/etc/install
3320 # IRIX /sbin/install
3322 # AmigaOS /C/install, which installs bootblocks on floppy discs
3323 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3324 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3325 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3326 # OS/2's system install, which has a completely different semantic
3327 # ./install, which can be erroneously created by make from ./install.sh.
3328 # Reject install programs that cannot install multiple files.
3329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3330 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3331 if test -z "$INSTALL"; then
3332 if test "${ac_cv_path_install+set}" = set; then :
3333 $as_echo_n "(cached) " >&6
3335 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3339 test -z "$as_dir" && as_dir
=.
3340 # Account for people who put trailing slashes in PATH elements.
3341 case $as_dir/ in #((
3342 .
/ | .
// |
/[cC
]/* | \
3343 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
3344 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
3347 # OSF1 and SCO ODT 3.0 have their own names for install.
3348 # Don't use installbsd from OSF since it installs stuff as root
3350 for ac_prog
in ginstall scoinst
install; do
3351 for ac_exec_ext
in '' $ac_executable_extensions; do
3352 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3353 if test $ac_prog = install &&
3354 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3355 # AIX install. It has an incompatible calling convention.
3357 elif test $ac_prog = install &&
3358 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3359 # program-specific install script used by HP pwplus--don't use.
3362 rm -rf conftest.one conftest.two conftest.dir
3363 echo one
> conftest.one
3364 echo two
> conftest.two
3366 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
3367 test -s conftest.one
&& test -s conftest.two
&&
3368 test -s conftest.dir
/conftest.one
&&
3369 test -s conftest.dir
/conftest.two
3371 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
3384 rm -rf conftest.one conftest.two conftest.dir
3387 if test "${ac_cv_path_install+set}" = set; then
3388 INSTALL
=$ac_cv_path_install
3390 # As a last resort, use the slow shell script. Don't cache a
3391 # value for INSTALL within a source directory, because that will
3392 # break other packages using the cache if that directory is
3393 # removed, or if the value is a relative name.
3394 INSTALL
=$ac_install_sh
3397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3398 $as_echo "$INSTALL" >&6; }
3400 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3401 # It thinks the first close brace ends the variable substitution.
3402 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
3404 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
3406 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
3408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3409 $as_echo_n "checking whether build environment is sane... " >&6; }
3412 echo timestamp
> conftest.
file
3413 # Reject unsafe characters in $srcdir or the absolute working directory
3414 # name. Accept space and tab only in the latter.
3418 *[\\\"\
#\$\&\'\`$am_lf]*)
3419 as_fn_error
"unsafe absolute working directory name" "$LINENO" 5;;
3422 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
3423 as_fn_error
"unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3426 # Do `set' in a subshell so we don't clobber the current shell's
3427 # arguments. Must try -L first in case configure is actually a
3428 # symlink; some systems play weird games with the mod time of symlinks
3429 # (eg FreeBSD returns the mod time of the symlink's containing
3432 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3433 if test "$*" = "X"; then
3435 set X
`ls -t "$srcdir/configure" conftest.file`
3438 if test "$*" != "X $srcdir/configure conftest.file" \
3439 && test "$*" != "X conftest.file $srcdir/configure"; then
3441 # If neither matched, then we have a broken ls. This can happen
3442 # if, for instance, CONFIG_SHELL is bash and it inherits a
3443 # broken ls alias from the environment. This has actually
3444 # happened. Such a system could not be considered "sane".
3445 as_fn_error
"ls -t appears to fail. Make sure there is not a broken
3446 alias in your environment" "$LINENO" 5
3449 test "$2" = conftest.
file
3455 as_fn_error
"newly created file is older than distributed files!
3456 Check your system clock" "$LINENO" 5
3458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3459 $as_echo "yes" >&6; }
3460 test "$program_prefix" != NONE
&&
3461 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
3462 # Use a double $ so make ignores it.
3463 test "$program_suffix" != NONE
&&
3464 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
3465 # Double any \ or $.
3466 # By default was `s,x,x', remove it if useless.
3467 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
3468 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
3470 # expand $ac_aux_dir to an absolute path
3471 am_aux_dir
=`cd $ac_aux_dir && pwd`
3473 if test x
"${MISSING+set}" != xset
; then
3476 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
3478 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
3481 # Use eval to expand $SHELL
3482 if eval "$MISSING --run true"; then
3483 am_missing_run
="$MISSING --run "
3486 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3487 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3490 if test x
"${install_sh}" != xset
; then
3493 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
3495 install_sh
="\${SHELL} $am_aux_dir/install-sh"
3499 # Installed binaries are usually stripped using `strip' when the user
3500 # run `make install-strip'. However `strip' might not be the right
3501 # tool to use in cross-compilation environments, therefore Automake
3502 # will honor the `STRIP' environment variable to overrule this program.
3503 if test "$cross_compiling" != no
; then
3504 if test -n "$ac_tool_prefix"; then
3505 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3506 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
3507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3508 $as_echo_n "checking for $ac_word... " >&6; }
3509 if test "${ac_cv_prog_STRIP+set}" = set; then :
3510 $as_echo_n "(cached) " >&6
3512 if test -n "$STRIP"; then
3513 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
3515 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3519 test -z "$as_dir" && as_dir
=.
3520 for ac_exec_ext
in '' $ac_executable_extensions; do
3521 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3522 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
3523 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3532 STRIP
=$ac_cv_prog_STRIP
3533 if test -n "$STRIP"; then
3534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3535 $as_echo "$STRIP" >&6; }
3537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3538 $as_echo "no" >&6; }
3543 if test -z "$ac_cv_prog_STRIP"; then
3545 # Extract the first word of "strip", so it can be a program name with args.
3546 set dummy strip
; ac_word
=$2
3547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3548 $as_echo_n "checking for $ac_word... " >&6; }
3549 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3550 $as_echo_n "(cached) " >&6
3552 if test -n "$ac_ct_STRIP"; then
3553 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
3555 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3559 test -z "$as_dir" && as_dir
=.
3560 for ac_exec_ext
in '' $ac_executable_extensions; do
3561 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3562 ac_cv_prog_ac_ct_STRIP
="strip"
3563 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3572 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
3573 if test -n "$ac_ct_STRIP"; then
3574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3575 $as_echo "$ac_ct_STRIP" >&6; }
3577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3578 $as_echo "no" >&6; }
3581 if test "x$ac_ct_STRIP" = x
; then
3584 case $cross_compiling:$ac_tool_warned in
3586 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3587 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3588 ac_tool_warned
=yes ;;
3593 STRIP
="$ac_cv_prog_STRIP"
3597 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
3599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3600 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3601 if test -z "$MKDIR_P"; then
3602 if test "${ac_cv_path_mkdir+set}" = set; then :
3603 $as_echo_n "(cached) " >&6
3605 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3606 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
3609 test -z "$as_dir" && as_dir
=.
3610 for ac_prog
in mkdir gmkdir
; do
3611 for ac_exec_ext
in '' $ac_executable_extensions; do
3612 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } ||
continue
3613 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3614 'mkdir (GNU coreutils) '* | \
3615 'mkdir (coreutils) '* | \
3616 'mkdir (fileutils) '4.1*)
3617 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
3627 test -d .
/--version && rmdir .
/--version
3628 if test "${ac_cv_path_mkdir+set}" = set; then
3629 MKDIR_P
="$ac_cv_path_mkdir -p"
3631 # As a last resort, use the slow shell script. Don't cache a
3632 # value for MKDIR_P within a source directory, because that will
3633 # break other packages using the cache if that directory is
3634 # removed, or if the value is a relative name.
3635 MKDIR_P
="$ac_install_sh -d"
3638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3639 $as_echo "$MKDIR_P" >&6; }
3644 [\\/$
]* | ?
:[\\/]*) ;;
3645 */*) mkdir_p
="\$(top_builddir)/$mkdir_p" ;;
3648 for ac_prog
in gawk mawk nawk
awk
3650 # Extract the first word of "$ac_prog", so it can be a program name with args.
3651 set dummy
$ac_prog; ac_word
=$2
3652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3653 $as_echo_n "checking for $ac_word... " >&6; }
3654 if test "${ac_cv_prog_AWK+set}" = set; then :
3655 $as_echo_n "(cached) " >&6
3657 if test -n "$AWK"; then
3658 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
3660 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3664 test -z "$as_dir" && as_dir
=.
3665 for ac_exec_ext
in '' $ac_executable_extensions; do
3666 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3667 ac_cv_prog_AWK
="$ac_prog"
3668 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3678 if test -n "$AWK"; then
3679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3680 $as_echo "$AWK" >&6; }
3682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3683 $as_echo "no" >&6; }
3687 test -n "$AWK" && break
3690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3691 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3693 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3694 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3695 $as_echo_n "(cached) " >&6
3697 cat >conftest.
make <<\_ACEOF
3700 @
echo '@@@%%%=$(MAKE)=@@@%%%'
3702 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3703 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3705 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
3707 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
3711 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
3712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3713 $as_echo "yes" >&6; }
3716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3717 $as_echo "no" >&6; }
3718 SET_MAKE
="MAKE=${MAKE-make}"
3721 rm -rf .tst
2>/dev
/null
3722 mkdir .tst
2>/dev
/null
3723 if test -d .tst
; then
3728 rmdir .tst
2>/dev
/null
3730 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3731 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3732 # is not polluted with repeated "-I."
3733 am__isrc
=' -I$(srcdir)'
3734 # test to see if srcdir already configured
3735 if test -f $srcdir/config.status
; then
3736 as_fn_error
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3740 # test whether we have cygpath
3741 if test -z "$CYGPATH_W"; then
3742 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
3743 CYGPATH_W
='cygpath -w'
3750 # Define the identity of the package.
3755 cat >>confdefs.h
<<_ACEOF
3756 #define PACKAGE "$PACKAGE"
3760 cat >>confdefs.h
<<_ACEOF
3761 #define VERSION "$VERSION"
3764 # Some tools Automake needs.
3766 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3769 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
3772 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3775 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
3778 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
3780 # We need awk for the "check" target. The system "awk" is bad on
3782 # Always define AMTAR for backward compatibility.
3784 AMTAR
=${AMTAR-"${am_missing_run}tar"}
3786 am__tar
='${AMTAR} chof - "$$tardir"'; am__untar
='${AMTAR} xf -'
3795 lispdir
='${datadir}/emacs/${version}/lisp'
3796 leimdir
='${datadir}/emacs/${version}/leim'
3797 standardlisppath
='${lispdir}:${leimdir}'
3798 locallisppath
='${datadir}/emacs/${version}/site-lisp:'\
3799 '${datadir}/emacs/site-lisp'
3800 lisppath
='${locallisppath}:${standardlisppath}'
3801 etcdir
='${datadir}/emacs/${version}/etc'
3802 archlibdir
='${libexecdir}/emacs/${version}/${configuration}'
3803 docdir
='${datadir}/emacs/${version}/etc'
3804 gamedir
='${localstatedir}/games/emacs'
3809 # Check whether --with-pop was given.
3810 if test "${with_pop+set}" = set; then :
3816 if test "$with_pop" = yes; then
3817 $as_echo "#define MAIL_USE_POP 1" >>confdefs.h
3822 # Check whether --with-kerberos was given.
3823 if test "${with_kerberos+set}" = set; then :
3824 withval
=$with_kerberos;
3829 if test "$with_kerberos" != no
; then
3830 $as_echo "#define KERBEROS 1" >>confdefs.h
3835 # Check whether --with-kerberos5 was given.
3836 if test "${with_kerberos5+set}" = set; then :
3837 withval
=$with_kerberos5;
3842 if test "${with_kerberos5}" != no
; then
3843 if test "${with_kerberos}" = no
; then
3845 $as_echo "#define KERBEROS 1" >>confdefs.h
3849 $as_echo "#define KERBEROS5 1" >>confdefs.h
3854 # Check whether --with-hesiod was given.
3855 if test "${with_hesiod+set}" = set; then :
3856 withval
=$with_hesiod;
3861 if test "$with_hesiod" != no
; then
3863 $as_echo "#define HESIOD 1" >>confdefs.h
3868 # Check whether --with-mmdf was given.
3869 if test "${with_mmdf+set}" = set; then :
3875 if test "$with_mmdf" != no
; then
3877 $as_echo "#define MAIL_USE_MMDF 1" >>confdefs.h
3882 # Check whether --with-mail-unlink was given.
3883 if test "${with_mail_unlink+set}" = set; then :
3884 withval
=$with_mail_unlink;
3889 if test "$with_mail_unlink" != no
; then
3891 $as_echo "#define MAIL_UNLINK_SPOOL 1" >>confdefs.h
3896 # Check whether --with-mailhost was given.
3897 if test "${with_mailhost+set}" = set; then :
3898 withval
=$with_mailhost;
3899 cat >>confdefs.h
<<_ACEOF
3900 #define MAILHOST "$withval"
3907 # Check whether --with-sound was given.
3908 if test "${with_sound+set}" = set; then :
3909 withval
=$with_sound;
3916 # Check whether --with-sync-input was given.
3917 if test "${with_sync_input+set}" = set; then :
3918 withval
=$with_sync_input;
3923 if test "$with_sync_input" = yes; then
3925 $as_echo "#define SYNC_INPUT 1" >>confdefs.h
3930 # Check whether --with-x-toolkit was given.
3931 if test "${with_x_toolkit+set}" = set; then :
3932 withval
=$with_x_toolkit; case "${withval}" in
3933 y | ye |
yes ) val
=gtk
;;
3935 l | lu | luc | luci | lucid
) val
=lucid
;;
3936 a |
at | ath | athe | athen | athena
) val
=athena
;;
3937 m | mo | mot | moti | motif
) val
=motif
;;
3938 g | gt | gtk
) val
=gtk
;;
3941 as_fn_error
"\`--with-x-toolkit=$withval' is invalid;
3942 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif', \`gtk' or
3943 \`gtk3'. \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." "$LINENO" 5
3952 # Check whether --with-wide-int was given.
3953 if test "${with_wide_int+set}" = set; then :
3954 withval
=$with_wide_int;
3959 if test "$with_wide_int" = yes; then
3961 $as_echo "#define WIDE_EMACS_INT 1" >>confdefs.h
3966 # Check whether --with-xpm was given.
3967 if test "${with_xpm+set}" = set; then :
3974 # Check whether --with-jpeg was given.
3975 if test "${with_jpeg+set}" = set; then :
3982 # Check whether --with-tiff was given.
3983 if test "${with_tiff+set}" = set; then :
3990 # Check whether --with-gif was given.
3991 if test "${with_gif+set}" = set; then :
3998 # Check whether --with-png was given.
3999 if test "${with_png+set}" = set; then :
4006 # Check whether --with-rsvg was given.
4007 if test "${with_rsvg+set}" = set; then :
4014 # Check whether --with-xml2 was given.
4015 if test "${with_xml2+set}" = set; then :
4022 # Check whether --with-imagemagick was given.
4023 if test "${with_imagemagick+set}" = set; then :
4024 withval
=$with_imagemagick;
4026 with_imagemagick
=yes
4031 # Check whether --with-xft was given.
4032 if test "${with_xft+set}" = set; then :
4039 # Check whether --with-libotf was given.
4040 if test "${with_libotf+set}" = set; then :
4041 withval
=$with_libotf;
4047 # Check whether --with-m17n-flt was given.
4048 if test "${with_m17n_flt+set}" = set; then :
4049 withval
=$with_m17n_flt;
4056 # Check whether --with-toolkit-scroll-bars was given.
4057 if test "${with_toolkit_scroll_bars+set}" = set; then :
4058 withval
=$with_toolkit_scroll_bars;
4060 with_toolkit_scroll_bars
=yes
4064 # Check whether --with-xaw3d was given.
4065 if test "${with_xaw3d+set}" = set; then :
4066 withval
=$with_xaw3d;
4072 # Check whether --with-xim was given.
4073 if test "${with_xim+set}" = set; then :
4080 # Check whether --with-ns was given.
4081 if test "${with_ns+set}" = set; then :
4089 # Check whether --with-gpm was given.
4090 if test "${with_gpm+set}" = set; then :
4097 # Check whether --with-dbus was given.
4098 if test "${with_dbus+set}" = set; then :
4105 # Check whether --with-gconf was given.
4106 if test "${with_gconf+set}" = set; then :
4107 withval
=$with_gconf;
4113 # Check whether --with-gsettings was given.
4114 if test "${with_gsettings+set}" = set; then :
4115 withval
=$with_gsettings;
4121 # Check whether --with-selinux was given.
4122 if test "${with_selinux+set}" = set; then :
4123 withval
=$with_selinux;
4129 # Check whether --with-gnutls was given.
4130 if test "${with_gnutls+set}" = set; then :
4131 withval
=$with_gnutls;
4137 ## For the times when you want to build Emacs but don't have
4138 ## a suitable makeinfo, and can live without the manuals.
4140 # Check whether --with-makeinfo was given.
4141 if test "${with_makeinfo+set}" = set; then :
4142 withval
=$with_makeinfo;
4148 ## Makefile.in needs the cache file name.
4151 ## This is an option because I do not know if all info/man support
4152 ## compressed files, nor how to test if they do so.
4154 # Check whether --with-compress-info was given.
4155 if test "${with_compress_info+set}" = set; then :
4156 withval
=$with_compress_info;
4158 with_compress_info
=yes
4161 if test $with_compress_info = yes; then
4169 # Check whether --with-pkg-config-prog was given.
4170 if test "${with_pkg_config_prog+set}" = set; then :
4171 withval
=$with_pkg_config_prog;
4174 if test "X${with_pkg_config_prog}" != X
; then
4175 if test "${with_pkg_config_prog}" != yes; then
4176 PKG_CONFIG
="${with_pkg_config_prog}"
4182 # Check whether --with-crt-dir was given.
4183 if test "${with_crt_dir+set}" = set; then :
4184 withval
=$with_crt_dir;
4187 CRT_DIR
="${with_crt_dir}"
4190 # Check whether --with-gameuser was given.
4191 if test "${with_gameuser+set}" = set; then :
4192 withval
=$with_gameuser;
4195 test "X${with_gameuser}" != X
&& test "${with_gameuser}" != yes \
4196 && gameuser
="${with_gameuser}"
4197 test "X$gameuser" = X
&& gameuser
=games
4200 # Check whether --with-gnustep-conf was given.
4201 if test "${with_gnustep_conf+set}" = set; then :
4202 withval
=$with_gnustep_conf;
4205 test "X${with_gnustep_conf}" != X
&& test "${with_gnustep_conf}" != yes && \
4206 GNUSTEP_CONFIG_FILE
="${with_gnustep_conf}"
4207 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
4208 GNUSTEP_CONFIG_FILE
=/etc
/GNUstep
/GNUstep.conf
4210 # Check whether --enable-ns-self-contained was given.
4211 if test "${enable_ns_self_contained+set}" = set; then :
4212 enableval
=$enable_ns_self_contained; EN_NS_SELF_CONTAINED
=$enableval
4214 EN_NS_SELF_CONTAINED
=yes
4218 # Check whether --enable-locallisppath was given.
4219 if test "${enable_locallisppath+set}" = set; then :
4220 enableval
=$enable_locallisppath; if test "${enableval}" = "no"; then
4222 elif test "${enableval}" != "yes"; then
4223 locallisppath
=${enableval}
4228 # Check whether --enable-checking was given.
4229 if test "${enable_checking+set}" = set; then :
4230 enableval
=$enable_checking; ac_checking_flags
="${enableval}"
4233 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
4234 for check
in $ac_checking_flags
4237 # these set all the flags to specific states
4238 yes) ac_enable_checking
=1 ;;
4239 no
) ac_enable_checking
= ;
4240 ac_gc_check_stringbytes
= ;
4241 ac_gc_check_string_overrun
= ;
4242 ac_gc_check_string_free_list
= ;
4243 ac_xmalloc_overrun
= ;
4244 ac_gc_check_cons_list
= ;
4246 all
) ac_enable_checking
=1 ;
4247 ac_gc_check_stringbytes
=1 ;
4248 ac_gc_check_string_overrun
=1 ;
4249 ac_gc_check_string_free_list
=1 ;
4250 ac_xmalloc_overrun
=1 ;
4251 ac_gc_check_cons_list
=1 ;
4252 ac_glyphs_debug
=1 ;;
4253 # these enable particular checks
4254 stringbytes
) ac_gc_check_stringbytes
=1 ;;
4255 stringoverrun
) ac_gc_check_string_overrun
=1 ;;
4256 stringfreelist
) ac_gc_check_string_free_list
=1 ;;
4257 xmallocoverrun
) ac_xmalloc_overrun
=1 ;;
4258 conslist
) ac_gc_check_cons_list
=1 ;;
4259 glyphs
) ac_glyphs_debug
=1 ;;
4260 *) as_fn_error
"unknown check category $check" "$LINENO" 5 ;;
4265 if test x
$ac_enable_checking != x
; then
4267 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
4270 if test x
$ac_gc_check_stringbytes != x
; then
4272 $as_echo "#define GC_CHECK_STRING_BYTES 1" >>confdefs.h
4275 if test x
$ac_gc_check_string_overrun != x
; then
4277 $as_echo "#define GC_CHECK_STRING_OVERRUN 1" >>confdefs.h
4280 if test x
$ac_gc_check_string_free_list != x
; then
4282 $as_echo "#define GC_CHECK_STRING_FREE_LIST 1" >>confdefs.h
4285 if test x
$ac_xmalloc_overrun != x
; then
4287 $as_echo "#define XMALLOC_OVERRUN_CHECK 1" >>confdefs.h
4290 if test x
$ac_gc_check_cons_list != x
; then
4292 $as_echo "#define GC_CHECK_CONS_LIST 1" >>confdefs.h
4295 if test x
$ac_glyphs_debug != x
; then
4297 $as_echo "#define GLYPH_DEBUG 1" >>confdefs.h
4301 # Check whether --enable-check-lisp-object-type was given.
4302 if test "${enable_check_lisp_object_type+set}" = set; then :
4303 enableval
=$enable_check_lisp_object_type; if test "${enableval}" != "no"; then
4305 $as_echo "#define CHECK_LISP_OBJECT_TYPE 1" >>confdefs.h
4312 # Check whether --enable-profiling was given.
4313 if test "${enable_profiling+set}" = set; then :
4314 enableval
=$enable_profiling; ac_enable_profiling
="${enableval}"
4317 if test x
$ac_enable_profiling != x
; then
4318 PROFILING_CFLAGS
="-DPROFILING=1 -pg"
4324 # Check whether --enable-autodepend was given.
4325 if test "${enable_autodepend+set}" = set; then :
4326 enableval
=$enable_autodepend; ac_enable_autodepend
="${enableval}"
4328 ac_enable_autodepend
=yes
4332 #### Make srcdir absolute, if it isn't already. It's important to
4333 #### avoid running the path through pwd unnecessarily, since pwd can
4334 #### give you automounter prefixes, which can go away. We do all this
4335 #### so Emacs can find its files when run uninstalled.
4336 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
4341 ## We may be able to use the $PWD environment variable to make this
4342 ## absolute. But sometimes PWD is inaccurate.
4343 ## Note: we used to use ${PWD} at the end instead of `pwd`,
4344 ## but that tested only for a well-formed and valid PWD,
4345 ## it did not object when PWD was well-formed and valid but just wrong.
4346 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
4350 srcdir
="`(cd ${srcdir}; pwd)`"
4353 * ) srcdir
="`(cd ${srcdir}; pwd)`" ;;
4356 #### Given the configuration name, set opsysfile to the
4357 #### name of s/*.h file we should use.
4359 ### Canonicalize the configuration name.
4361 # Make sure we can run config.sub.
4362 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
4363 as_fn_error
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4366 $as_echo_n "checking build system type... " >&6; }
4367 if test "${ac_cv_build+set}" = set; then :
4368 $as_echo_n "(cached) " >&6
4370 ac_build_alias
=$build_alias
4371 test "x$ac_build_alias" = x
&&
4372 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
4373 test "x$ac_build_alias" = x
&&
4374 as_fn_error
"cannot guess build type; you must specify one" "$LINENO" 5
4375 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4376 as_fn_error
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4380 $as_echo "$ac_cv_build" >&6; }
4381 case $ac_cv_build in
4383 *) as_fn_error
"invalid value of canonical build" "$LINENO" 5;;
4386 ac_save_IFS
=$IFS; IFS
='-'
4392 # Remember, the first character of IFS is used to create $*,
4393 # except with old shells:
4396 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
4399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4400 $as_echo_n "checking host system type... " >&6; }
4401 if test "${ac_cv_host+set}" = set; then :
4402 $as_echo_n "(cached) " >&6
4404 if test "x$host_alias" = x
; then
4405 ac_cv_host
=$ac_cv_build
4407 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4408 as_fn_error
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4413 $as_echo "$ac_cv_host" >&6; }
4416 *) as_fn_error
"invalid value of canonical host" "$LINENO" 5;;
4419 ac_save_IFS
=$IFS; IFS
='-'
4425 # Remember, the first character of IFS is used to create $*,
4426 # except with old shells:
4429 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
4433 configuration
=${host_alias-${build_alias-$host}}
4437 ### If you add support for a new configuration, add code to this
4438 ### switch statement to recognize your configuration name and select
4439 ### the appropriate operating system file.
4441 ### You would hope that you could choose an s/*.h
4442 ### file based on the operating system portion. However, it turns out
4443 ### that each s/*.h file is pretty manufacturer-specific.
4444 ### So we basically have to have a special case for each
4445 ### configuration name.
4447 ### As far as handling version numbers on operating systems is
4448 ### concerned, make sure things will fail in a fixable way. If
4449 ### /etc/MACHINES doesn't say anything about version numbers, be
4450 ### prepared to handle anything reasonably. If version numbers
4451 ### matter, be sure /etc/MACHINES says something about it.
4453 opsys
='' unported
=no
4454 case "${canonical}" in
4456 ## GNU/Linux and similar ports
4466 ## FreeBSD kernel + glibc based userland
4481 ## Apple Darwin / Mac OS X
4483 case "${canonical}" in
4490 ## Use fink packages if available.
4491 ## FIXME find a better way to do this: http://debbugs.gnu.org/11507
4492 ## if test -d /sw/include && test -d /sw/lib; then
4493 ## GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
4494 ## NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
4498 ## HP 9000 series 700 and 800, running HP/UX
4499 hppa
*-hp-hpux10.2
* )
4502 hppa
*-hp-hpux1[1-9]* )
4504 CFLAGS
="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
4508 rs6000-ibm-aix4.
[23]* )
4511 powerpc-ibm-aix4.
[23]* )
4514 rs6000-ibm-aix
[56]* )
4517 powerpc-ibm-aix
[56]* )
4521 ## Silicon Graphics machines
4525 # Without defining _LANGUAGE_C, things get masked out in the headers
4526 # so that, for instance, grepping for `free' in stdlib.h fails and
4527 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
4528 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
4533 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* \
4534 | x86_64-
*-solaris2* | x86_64-
*-sunos5*)
4535 case "${canonical}" in
4537 amd64-
*-*|x86_64-
*-*) ;;
4541 case "${canonical}" in
4542 *-sunos5.6
* |
*-solaris2.6
* )
4546 *-sunos5.
[7-9]* |
*-solaris2.
[7-9]* )
4548 emacs_check_sunpro_c
=yes
4550 *-sunos5* |
*-solaris* )
4552 emacs_check_sunpro_c
=yes
4555 ## Watch out for a compiler that we know will not work.
4556 case "${canonical}" in
4557 *-solaris* |
*-sunos5* )
4558 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
4559 ## /usr/ucb/cc doesn't work;
4560 ## we should find some other compiler that does work.
4568 ## Intel 386 machines where we don't care about the manufacturer.
4570 case "${canonical}" in
4571 *-cygwin ) opsys
=cygwin
;;
4572 *-darwin* ) opsys
=darwin
;;
4573 *-sysv4.2uw
* ) opsys
=unixware
;;
4574 *-sysv5uw* ) opsys
=unixware
;;
4575 *-sysv5OpenUNIX* ) opsys
=unixware
;;
4576 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
4585 ### If the code above didn't choose an operating system, just choose
4586 ### an operating system based on the configuration name. You really
4587 ### only want to use this when you have no idea what the right
4588 ### operating system is; if you know what operating systems a machine
4589 ### runs, it's cleaner to make it explicit in the case statement
4591 if test x
"${opsys}" = x
; then
4592 case "${canonical}" in
4593 *-gnu* ) opsys
=gnu
;;
4602 if test $unported = yes; then
4603 as_fn_error
"Emacs hasn't been ported to \`${canonical}' systems.
4604 Check \`etc/MACHINES' for recognized configuration names." "$LINENO" 5
4607 opsysfile
="s/${opsys}.h"
4610 #### Choose a compiler.
4613 ac_cpp
='$CPP $CPPFLAGS'
4614 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4615 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4616 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4617 if test -n "$ac_tool_prefix"; then
4618 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4619 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
4620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4621 $as_echo_n "checking for $ac_word... " >&6; }
4622 if test "${ac_cv_prog_CC+set}" = set; then :
4623 $as_echo_n "(cached) " >&6
4625 if test -n "$CC"; then
4626 ac_cv_prog_CC
="$CC" # Let the user override the test.
4628 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4632 test -z "$as_dir" && as_dir
=.
4633 for ac_exec_ext
in '' $ac_executable_extensions; do
4634 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4635 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
4636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4646 if test -n "$CC"; then
4647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4648 $as_echo "$CC" >&6; }
4650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4651 $as_echo "no" >&6; }
4656 if test -z "$ac_cv_prog_CC"; then
4658 # Extract the first word of "gcc", so it can be a program name with args.
4659 set dummy gcc
; ac_word
=$2
4660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4661 $as_echo_n "checking for $ac_word... " >&6; }
4662 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4663 $as_echo_n "(cached) " >&6
4665 if test -n "$ac_ct_CC"; then
4666 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4668 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4672 test -z "$as_dir" && as_dir
=.
4673 for ac_exec_ext
in '' $ac_executable_extensions; do
4674 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4675 ac_cv_prog_ac_ct_CC
="gcc"
4676 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4685 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4686 if test -n "$ac_ct_CC"; then
4687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4688 $as_echo "$ac_ct_CC" >&6; }
4690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4691 $as_echo "no" >&6; }
4694 if test "x$ac_ct_CC" = x
; then
4697 case $cross_compiling:$ac_tool_warned in
4699 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4700 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4701 ac_tool_warned
=yes ;;
4709 if test -z "$CC"; then
4710 if test -n "$ac_tool_prefix"; then
4711 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4712 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
4713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4714 $as_echo_n "checking for $ac_word... " >&6; }
4715 if test "${ac_cv_prog_CC+set}" = set; then :
4716 $as_echo_n "(cached) " >&6
4718 if test -n "$CC"; then
4719 ac_cv_prog_CC
="$CC" # Let the user override the test.
4721 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4725 test -z "$as_dir" && as_dir
=.
4726 for ac_exec_ext
in '' $ac_executable_extensions; do
4727 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4728 ac_cv_prog_CC
="${ac_tool_prefix}cc"
4729 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4739 if test -n "$CC"; then
4740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4741 $as_echo "$CC" >&6; }
4743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4744 $as_echo "no" >&6; }
4750 if test -z "$CC"; then
4751 # Extract the first word of "cc", so it can be a program name with args.
4752 set dummy cc
; ac_word
=$2
4753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4754 $as_echo_n "checking for $ac_word... " >&6; }
4755 if test "${ac_cv_prog_CC+set}" = set; then :
4756 $as_echo_n "(cached) " >&6
4758 if test -n "$CC"; then
4759 ac_cv_prog_CC
="$CC" # Let the user override the test.
4762 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4766 test -z "$as_dir" && as_dir
=.
4767 for ac_exec_ext
in '' $ac_executable_extensions; do
4768 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4769 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4770 ac_prog_rejected
=yes
4774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4781 if test $ac_prog_rejected = yes; then
4782 # We found a bogon in the path, so make sure we never use it.
4783 set dummy
$ac_cv_prog_CC
4785 if test $# != 0; then
4786 # We chose a different compiler from the bogus one.
4787 # However, it has the same basename, so the bogon will be chosen
4788 # first if we set CC to just the basename; use the full file name.
4790 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
4796 if test -n "$CC"; then
4797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4798 $as_echo "$CC" >&6; }
4800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4801 $as_echo "no" >&6; }
4806 if test -z "$CC"; then
4807 if test -n "$ac_tool_prefix"; then
4808 for ac_prog
in cl.exe
4810 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4811 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4813 $as_echo_n "checking for $ac_word... " >&6; }
4814 if test "${ac_cv_prog_CC+set}" = set; then :
4815 $as_echo_n "(cached) " >&6
4817 if test -n "$CC"; then
4818 ac_cv_prog_CC
="$CC" # Let the user override the test.
4820 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4824 test -z "$as_dir" && as_dir
=.
4825 for ac_exec_ext
in '' $ac_executable_extensions; do
4826 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4827 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
4828 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4838 if test -n "$CC"; then
4839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4840 $as_echo "$CC" >&6; }
4842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4843 $as_echo "no" >&6; }
4847 test -n "$CC" && break
4850 if test -z "$CC"; then
4852 for ac_prog
in cl.exe
4854 # Extract the first word of "$ac_prog", so it can be a program name with args.
4855 set dummy
$ac_prog; ac_word
=$2
4856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4857 $as_echo_n "checking for $ac_word... " >&6; }
4858 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4859 $as_echo_n "(cached) " >&6
4861 if test -n "$ac_ct_CC"; then
4862 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4864 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4868 test -z "$as_dir" && as_dir
=.
4869 for ac_exec_ext
in '' $ac_executable_extensions; do
4870 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4871 ac_cv_prog_ac_ct_CC
="$ac_prog"
4872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4881 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4882 if test -n "$ac_ct_CC"; then
4883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4884 $as_echo "$ac_ct_CC" >&6; }
4886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4887 $as_echo "no" >&6; }
4891 test -n "$ac_ct_CC" && break
4894 if test "x$ac_ct_CC" = x
; then
4897 case $cross_compiling:$ac_tool_warned in
4899 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4900 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4901 ac_tool_warned
=yes ;;
4910 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4911 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4912 as_fn_error
"no acceptable C compiler found in \$PATH
4913 See \`config.log' for more details." "$LINENO" 5; }
4915 # Provide some information about the compiler.
4916 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4919 for ac_option
in --version -v -V -qversion; do
4920 { { ac_try
="$ac_compiler $ac_option >&5"
4922 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4923 *) ac_try_echo=$ac_try;;
4925 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4926 $as_echo "$ac_try_echo"; } >&5
4927 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4929 if test -s conftest.err; then
4931 ... rest of stderr output deleted ...
4932 10q' conftest.err >conftest.er1
4933 cat conftest.er1 >&5
4935 rm -f conftest.er1 conftest.err
4936 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4937 test $ac_status = 0; }
4940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4941 /* end confdefs.h. */
4951 ac_clean_files_save=$ac_clean_files
4952 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4953 # Try to create an executable without -o first, disregard a.out.
4954 # It will help us diagnose broken compilers, and finding out an intuition
4956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4957 $as_echo_n "checking whether the C compiler works... " >&6; }
4958 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
4960 # The possible output files:
4961 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4964 for ac_file in $ac_files
4967 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4968 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4973 if { { ac_try="$ac_link_default"
4975 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4976 *) ac_try_echo
=$ac_try;;
4978 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4979 $as_echo "$ac_try_echo"; } >&5
4980 (eval "$ac_link_default") 2>&5
4982 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4983 test $ac_status = 0; }; then :
4984 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4985 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4986 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4987 # so that the user can short-circuit this test for compilers unknown to
4989 for ac_file
in $ac_files ''
4991 test -f "$ac_file" ||
continue
4993 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
4996 # We found the default executable, but exeext='' is most
5000 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
5002 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
5004 # We set ac_cv_exeext here because the later test for it is not
5005 # safe: cross compilers may not add the suffix if given an `-o'
5006 # argument, so we may need to know it at that point already.
5007 # Even if this section looks crufty: it has the advantage of
5014 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
5019 if test -z "$ac_file"; then :
5020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5021 $as_echo "no" >&6; }
5022 $as_echo "$as_me: failed program was:" >&5
5023 sed 's/^/| /' conftest.
$ac_ext >&5
5025 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5026 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5027 { as_fn_set_status
77
5028 as_fn_error
"C compiler cannot create executables
5029 See \`config.log' for more details." "$LINENO" 5; }; }
5031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5032 $as_echo "yes" >&6; }
5034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
5035 $as_echo_n "checking for C compiler default output file name... " >&6; }
5036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
5037 $as_echo "$ac_file" >&6; }
5038 ac_exeext
=$ac_cv_exeext
5040 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
5041 ac_clean_files
=$ac_clean_files_save
5042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
5043 $as_echo_n "checking for suffix of executables... " >&6; }
5044 if { { ac_try
="$ac_link"
5046 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5047 *) ac_try_echo=$ac_try;;
5049 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5050 $as_echo "$ac_try_echo"; } >&5
5051 (eval "$ac_link") 2>&5
5053 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5054 test $ac_status = 0; }; then :
5055 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
5056 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
5057 # work properly (i.e., refer to `conftest.exe'), while it won't with
5059 for ac_file
in conftest.exe conftest conftest.
*; do
5060 test -f "$ac_file" ||
continue
5062 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
5063 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
5069 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5070 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5071 as_fn_error
"cannot compute suffix of executables: cannot compile and link
5072 See \`config.log' for more details." "$LINENO" 5; }
5074 rm -f conftest conftest
$ac_cv_exeext
5075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
5076 $as_echo "$ac_cv_exeext" >&6; }
5078 rm -f conftest.
$ac_ext
5079 EXEEXT
=$ac_cv_exeext
5081 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5082 /* end confdefs.h. */
5087 FILE *f = fopen ("conftest.out", "w");
5088 return ferror (f) || fclose (f) != 0;
5094 ac_clean_files
="$ac_clean_files conftest.out"
5095 # Check that the compiler produces executables we can run. If not, either
5096 # the compiler is broken, or we cross compile.
5097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5098 $as_echo_n "checking whether we are cross compiling... " >&6; }
5099 if test "$cross_compiling" != yes; then
5100 { { ac_try
="$ac_link"
5102 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5103 *) ac_try_echo=$ac_try;;
5105 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5106 $as_echo "$ac_try_echo"; } >&5
5107 (eval "$ac_link") 2>&5
5109 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5110 test $ac_status = 0; }
5111 if { ac_try='./conftest$ac_cv_exeext'
5112 { { case "(($ac_try" in
5113 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5114 *) ac_try_echo
=$ac_try;;
5116 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5117 $as_echo "$ac_try_echo"; } >&5
5118 (eval "$ac_try") 2>&5
5120 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5121 test $ac_status = 0; }; }; then
5124 if test "$cross_compiling" = maybe
; then
5127 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5128 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5129 as_fn_error
"cannot run C compiled programs.
5130 If you meant to cross compile, use \`--host'.
5131 See \`config.log' for more details." "$LINENO" 5; }
5135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5136 $as_echo "$cross_compiling" >&6; }
5138 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
5139 ac_clean_files
=$ac_clean_files_save
5140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
5141 $as_echo_n "checking for suffix of object files... " >&6; }
5142 if test "${ac_cv_objext+set}" = set; then :
5143 $as_echo_n "(cached) " >&6
5145 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5146 /* end confdefs.h. */
5156 rm -f conftest.o conftest.obj
5157 if { { ac_try
="$ac_compile"
5159 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5160 *) ac_try_echo=$ac_try;;
5162 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5163 $as_echo "$ac_try_echo"; } >&5
5164 (eval "$ac_compile") 2>&5
5166 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5167 test $ac_status = 0; }; then :
5168 for ac_file in conftest.o conftest.obj conftest.*; do
5169 test -f "$ac_file" || continue;
5171 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5172 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5177 $as_echo "$as_me: failed program was:" >&5
5178 sed 's/^/| /' conftest.$ac_ext >&5
5180 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5181 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5182 as_fn_error "cannot compute suffix of object files
: cannot compile
5183 See \
`config.log' for more details." "$LINENO" 5; }
5185 rm -f conftest.$ac_cv_objext conftest.$ac_ext
5187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5188 $as_echo "$ac_cv_objext" >&6; }
5189 OBJEXT=$ac_cv_objext
5191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5192 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5193 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5194 $as_echo_n "(cached) " >&6
5196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5197 /* end confdefs.h. */
5210 if ac_fn_c_try_compile "$LINENO"; then :
5215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5216 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5220 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5221 if test $ac_compiler_gnu = yes; then
5226 ac_test_CFLAGS=${CFLAGS+set}
5227 ac_save_CFLAGS=$CFLAGS
5228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5229 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5230 if test "${ac_cv_prog_cc_g+set}" = set; then :
5231 $as_echo_n "(cached) " >&6
5233 ac_save_c_werror_flag=$ac_c_werror_flag
5234 ac_c_werror_flag=yes
5237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5238 /* end confdefs.h. */
5248 if ac_fn_c_try_compile "$LINENO"; then :
5252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5253 /* end confdefs.h. */
5263 if ac_fn_c_try_compile "$LINENO"; then :
5266 ac_c_werror_flag=$ac_save_c_werror_flag
5268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5269 /* end confdefs.h. */
5279 if ac_fn_c_try_compile "$LINENO"; then :
5282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5287 ac_c_werror_flag=$ac_save_c_werror_flag
5289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5290 $as_echo "$ac_cv_prog_cc_g" >&6; }
5291 if test "$ac_test_CFLAGS" = set; then
5292 CFLAGS=$ac_save_CFLAGS
5293 elif test $ac_cv_prog_cc_g = yes; then
5294 if test "$GCC" = yes; then
5300 if test "$GCC" = yes; then
5306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5307 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5308 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5309 $as_echo_n "(cached) " >&6
5311 ac_cv_prog_cc_c89=no
5313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5314 /* end confdefs.h. */
5317 #include <sys/types.h>
5318 #include <sys/stat.h>
5319 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5320 struct buf { int x; };
5321 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5322 static char *e (p, i)
5328 static char *f (char * (*g) (char **, int), char **p, ...)
5333 s = g (p, va_arg (v,int));
5338 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5339 function prototypes and stuff, but not '\xHH' hex character constants.
5340 These don't provoke an error unfortunately, instead are silently treated
5341 as 'x'. The following induces an error, until -std is added to get
5342 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5343 array size at least. It's necessary to write '\x00'==0 to get something
5344 that's true only with -std. */
5345 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5347 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5348 inside strings and character constants. */
5350 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5352 int test (int i, double x);
5353 struct s1 {int (*f) (int a);};
5354 struct s2 {int (*f) (double a);};
5355 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5361 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5366 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5367 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5369 CC="$ac_save_CC $ac_arg"
5370 if ac_fn_c_try_compile "$LINENO"; then :
5371 ac_cv_prog_cc_c89=$ac_arg
5373 rm -f core conftest.err conftest.$ac_objext
5374 test "x$ac_cv_prog_cc_c89" != "xno" && break
5376 rm -f conftest.$ac_ext
5381 case "x$ac_cv_prog_cc_c89" in
5383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5384 $as_echo "none needed" >&6; } ;;
5386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5387 $as_echo "unsupported" >&6; } ;;
5389 CC="$CC $ac_cv_prog_cc_c89"
5390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5391 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5393 if test "x$ac_cv_prog_cc_c89" != xno; then :
5398 ac_cpp='$CPP $CPPFLAGS'
5399 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5400 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5401 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5402 DEPDIR="${am__leading_dot}deps"
5404 ac_config_commands="$ac_config_commands depfiles"
5407 am_make=${MAKE-make}
5408 cat > confinc << 'END'
5410 @echo this is the am__doit target
5413 # If we don't find an include directive, just comment out the code.
5414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
5415 $as_echo_n "checking for style of include used by $am_make... " >&6; }
5419 # First try GNU make style include.
5420 echo "include confinc" > confmf
5421 # Ignore all kinds of additional output from `make'.
5422 case `$am_make -s -f confmf 2> /dev/null` in #(
5423 *the\ am__doit\ target*)
5429 # Now try BSD make style include.
5430 if test "$am__include" = "#"; then
5431 echo '.include
"confinc"' > confmf
5432 case `$am_make -s -f confmf 2> /dev/null` in #(
5433 *the\ am__doit\ target*)
5434 am__include=.include
5442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5443 $as_echo "$_am_result" >&6; }
5444 rm -f confinc confmf
5446 # Check whether --enable-dependency-tracking was given.
5447 if test "${enable_dependency_tracking+set}" = set; then :
5448 enableval=$enable_dependency_tracking;
5451 if test "x$enable_dependency_tracking" != xno; then
5452 am_depcomp="$ac_aux_dir/depcomp"
5455 if test "x$enable_dependency_tracking" != xno
; then
5465 depcc
="$CC" am_compiler_list
=
5467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5468 $as_echo_n "checking dependency style of $depcc... " >&6; }
5469 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5470 $as_echo_n "(cached) " >&6
5472 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5473 # We make a subdir and do the tests there. Otherwise we can end up
5474 # making bogus files that we don't know about and never remove. For
5475 # instance it was reported that on HP-UX the gcc test will end up
5476 # making a dummy file named `D' -- because `-MD' means `put the output
5479 # Copy depcomp to subdir because otherwise we won't find it if we're
5480 # using a relative directory.
5481 cp "$am_depcomp" conftest.dir
5483 # We will build objects and dependencies in a subdirectory because
5484 # it helps to detect inapplicable dependency modes. For instance
5485 # both Tru64's cc and ICC support -MD to output dependencies as a
5486 # side effect of compilation, but ICC will put the dependencies in
5487 # the current directory while Tru64 will put them in the object
5491 am_cv_CC_dependencies_compiler_type
=none
5492 if test "$am_compiler_list" = ""; then
5493 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5496 case " $depcc " in #(
5497 *\
-arch\
*\
-arch\
*) am__universal
=true
;;
5500 for depmode
in $am_compiler_list; do
5501 # Setup a source with many dependencies, because some compilers
5502 # like to wrap large dependency lists on column 80 (with \), and
5503 # we should not choose a depcomp mode which is confused by this.
5505 # We need to recreate these files for each test, as the compiler may
5506 # overwrite some of them when testing with obscure command lines.
5507 # This happens at least with the AIX C compiler.
5509 for i
in 1 2 3 4 5 6; do
5510 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
5511 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5512 # Solaris 8's {/usr,}/bin/sh.
5513 touch sub
/conftst
$i.h
5515 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5517 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5518 # mode. It turns out that the SunPro C++ compiler does not properly
5519 # handle `-M -o', and we need to detect this. Also, some Intel
5520 # versions had trouble with output in subdirs
5521 am__obj
=sub
/conftest.
${OBJEXT-o}
5522 am__minus_obj
="-o $am__obj"
5525 # This depmode causes a compiler race in universal mode.
5526 test "$am__universal" = false ||
continue
5529 # after this tag, mechanisms are not by side-effect, so they'll
5530 # only be used when explicitly requested
5531 if test "x$enable_dependency_tracking" = xyes
; then
5537 msvisualcpp | msvcmsys
)
5538 # This compiler won't grok `-c -o', but also, the minuso test has
5539 # not run yet. These depmodes are late enough in the game, and
5540 # so weak that their functioning should not be impacted.
5541 am__obj
=conftest.
${OBJEXT-o}
5546 if depmode
=$depmode \
5547 source=sub
/conftest.c object
=$am__obj \
5548 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
5549 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
5550 >/dev
/null
2>conftest.err
&&
5551 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
5552 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
5553 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
5554 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
5555 # icc doesn't choke on unknown options, it will just issue warnings
5556 # or remarks (even with -Werror). So we grep stderr for any message
5557 # that says an option was ignored or not supported.
5558 # When given -MP, icc 7.0 and 7.1 complain thusly:
5559 # icc: Command line warning: ignoring option '-M'; no argument required
5560 # The diagnosis changed in icc 8.0:
5561 # icc: Command line remark: option '-MP' not supported
5562 if (grep 'ignoring option' conftest.err ||
5563 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
5564 am_cv_CC_dependencies_compiler_type
=$depmode
5573 am_cv_CC_dependencies_compiler_type
=none
5577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5578 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5579 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
5582 test "x$enable_dependency_tracking" != xno \
5583 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
5585 am__fastdepCC_FALSE
='#'
5587 am__fastdepCC_TRUE
='#'
5588 am__fastdepCC_FALSE
=
5592 if test "x$CC" != xcc
; then
5593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5594 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5597 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5599 set dummy
$CC; ac_cc
=`$as_echo "$2" |
5600 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5601 if { as_var
=ac_cv_prog_cc_
${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
5602 $as_echo_n "(cached) " >&6
5604 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5605 /* end confdefs.h. */
5615 # Make sure it works both with $CC and with simple cc.
5616 # We do the test twice because some compilers refuse to overwrite an
5617 # existing .o file with -o, though they will create one.
5618 ac_try
='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5620 if { { case "(($ac_try" in
5621 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5622 *) ac_try_echo=$ac_try;;
5624 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5625 $as_echo "$ac_try_echo"; } >&5
5626 (eval "$ac_try") 2>&5
5628 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5629 test $ac_status = 0; } &&
5630 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5631 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5632 *) ac_try_echo
=$ac_try;;
5634 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5635 $as_echo "$ac_try_echo"; } >&5
5636 (eval "$ac_try") 2>&5
5638 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5639 test $ac_status = 0; };
5641 eval ac_cv_prog_cc_
${ac_cc}_c_o
=yes
5642 if test "x$CC" != xcc
; then
5643 # Test first that cc exists at all.
5644 if { ac_try
='cc -c conftest.$ac_ext >&5'
5645 { { case "(($ac_try" in
5646 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5647 *) ac_try_echo=$ac_try;;
5649 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5650 $as_echo "$ac_try_echo"; } >&5
5651 (eval "$ac_try") 2>&5
5653 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5654 test $ac_status = 0; }; }; then
5655 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5657 if { { case "(($ac_try" in
5658 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5659 *) ac_try_echo
=$ac_try;;
5661 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5662 $as_echo "$ac_try_echo"; } >&5
5663 (eval "$ac_try") 2>&5
5665 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5666 test $ac_status = 0; } &&
5667 test -f conftest2.
$ac_objext && { { case "(($ac_try" in
5668 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5669 *) ac_try_echo=$ac_try;;
5671 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5672 $as_echo "$ac_try_echo"; } >&5
5673 (eval "$ac_try") 2>&5
5675 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5676 test $ac_status = 0; };
5681 # cc exists but doesn't like -o.
5682 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5687 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5689 rm -f core conftest*
5692 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5694 $as_echo "yes" >&6; }
5696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5697 $as_echo "no" >&6; }
5699 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5703 # FIXME: we rely on the cache variable name because
5704 # there is no other way.
5706 am_cc=`echo $2 |
sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5707 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5708 if test "$am_t" != yes; then
5709 # Losing compiler, so override with the script.
5710 # FIXME: It is wrong to rewrite CC.
5711 # But if we don't then we get into trouble of one sort or another.
5712 # A longer-term fix would be to have automake use am__CC in this case,
5713 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5714 CC="$am_aux_dir/compile $CC"
5719 if test x$GCC = xyes; then
5720 test "x$GCC_TEST_OPTIONS" != x && CC="$CC $GCC_TEST_OPTIONS"
5722 test "x$NON_GCC_TEST_OPTIONS" != x && CC="$CC $NON_GCC_TEST_OPTIONS"
5725 # Initialize gnulib right after choosing the compiler.
5728 ac_cpp='$CPP $CPPFLAGS'
5729 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5730 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5731 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5733 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5734 # On Suns, sometimes $CPP names a directory.
5735 if test -n "$CPP" && test -d "$CPP"; then
5738 if test -z "$CPP"; then
5739 if test "${ac_cv_prog_CPP+set}" = set; then :
5740 $as_echo_n "(cached) " >&6
5742 # Double quotes because CPP needs to be expanded
5743 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5746 for ac_c_preproc_warn_flag in '' yes
5748 # Use a header file that comes with gcc, so configuring glibc
5749 # with a fresh cross-compiler works.
5750 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5751 # <limits.h> exists even on freestanding compilers.
5752 # On the NeXT, cc -E runs the code through the compiler's parser,
5753 # not just through cpp. "Syntax error" is here to catch this case.
5754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5755 /* end confdefs.h. */
5757 # include <limits.h>
5759 # include <assert.h>
5763 if ac_fn_c_try_cpp "$LINENO"; then :
5766 # Broken: fails on valid input.
5769 rm -f conftest.err conftest.$ac_ext
5771 # OK, works on sane cases. Now check whether nonexistent headers
5772 # can be detected and how.
5773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5774 /* end confdefs.h. */
5775 #include <ac_nonexistent.h>
5777 if ac_fn_c_try_cpp "$LINENO"; then :
5778 # Broken: success on invalid input.
5781 # Passes both tests.
5785 rm -f conftest.err conftest.$ac_ext
5788 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5789 rm -f conftest.err conftest.
$ac_ext
5790 if $ac_preproc_ok; then :
5802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5803 $as_echo "$CPP" >&6; }
5805 for ac_c_preproc_warn_flag
in '' yes
5807 # Use a header file that comes with gcc, so configuring glibc
5808 # with a fresh cross-compiler works.
5809 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5810 # <limits.h> exists even on freestanding compilers.
5811 # On the NeXT, cc -E runs the code through the compiler's parser,
5812 # not just through cpp. "Syntax error" is here to catch this case.
5813 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5814 /* end confdefs.h. */
5816 # include <limits.h>
5818 # include <assert.h>
5822 if ac_fn_c_try_cpp
"$LINENO"; then :
5825 # Broken: fails on valid input.
5828 rm -f conftest.err conftest.
$ac_ext
5830 # OK, works on sane cases. Now check whether nonexistent headers
5831 # can be detected and how.
5832 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5833 /* end confdefs.h. */
5834 #include <ac_nonexistent.h>
5836 if ac_fn_c_try_cpp
"$LINENO"; then :
5837 # Broken: success on invalid input.
5840 # Passes both tests.
5844 rm -f conftest.err conftest.
$ac_ext
5847 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5848 rm -f conftest.err conftest.
$ac_ext
5849 if $ac_preproc_ok; then :
5852 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5853 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5854 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
5855 See \`config.log' for more details." "$LINENO" 5; }
5859 ac_cpp
='$CPP $CPPFLAGS'
5860 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5861 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5862 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5866 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5867 if test "${ac_cv_path_GREP+set}" = set; then :
5868 $as_echo_n "(cached) " >&6
5870 if test -z "$GREP"; then
5871 ac_path_GREP_found
=false
5872 # Loop through the user's path and test for each of PROGNAME-LIST
5873 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5874 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5877 test -z "$as_dir" && as_dir
=.
5878 for ac_prog
in grep ggrep
; do
5879 for ac_exec_ext
in '' $ac_executable_extensions; do
5880 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
5881 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
5882 # Check for GNU ac_path_GREP and select it if it is found.
5883 # Check for GNU $ac_path_GREP
5884 case `"$ac_path_GREP" --version 2>&1` in
5886 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
5889 $as_echo_n 0123456789 >"conftest.in"
5892 cat "conftest.in" "conftest.in" >"conftest.tmp"
5893 mv "conftest.tmp" "conftest.in"
5894 cp "conftest.in" "conftest.nl"
5895 $as_echo 'GREP' >> "conftest.nl"
5896 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5897 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5898 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5899 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5900 # Best one so far, save it but keep looking for a better one
5901 ac_cv_path_GREP
="$ac_path_GREP"
5902 ac_path_GREP_max
=$ac_count
5904 # 10*(2^10) chars as input seems more than enough
5905 test $ac_count -gt 10 && break
5907 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5910 $ac_path_GREP_found && break 3
5915 if test -z "$ac_cv_path_GREP"; then
5916 as_fn_error
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5919 ac_cv_path_GREP
=$GREP
5923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5924 $as_echo "$ac_cv_path_GREP" >&6; }
5925 GREP
="$ac_cv_path_GREP"
5928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5929 $as_echo_n "checking for egrep... " >&6; }
5930 if test "${ac_cv_path_EGREP+set}" = set; then :
5931 $as_echo_n "(cached) " >&6
5933 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
5934 then ac_cv_path_EGREP
="$GREP -E"
5936 if test -z "$EGREP"; then
5937 ac_path_EGREP_found
=false
5938 # Loop through the user's path and test for each of PROGNAME-LIST
5939 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5940 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5943 test -z "$as_dir" && as_dir
=.
5944 for ac_prog
in egrep; do
5945 for ac_exec_ext
in '' $ac_executable_extensions; do
5946 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
5947 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
5948 # Check for GNU ac_path_EGREP and select it if it is found.
5949 # Check for GNU $ac_path_EGREP
5950 case `"$ac_path_EGREP" --version 2>&1` in
5952 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
5955 $as_echo_n 0123456789 >"conftest.in"
5958 cat "conftest.in" "conftest.in" >"conftest.tmp"
5959 mv "conftest.tmp" "conftest.in"
5960 cp "conftest.in" "conftest.nl"
5961 $as_echo 'EGREP' >> "conftest.nl"
5962 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5963 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5964 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5965 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5966 # Best one so far, save it but keep looking for a better one
5967 ac_cv_path_EGREP
="$ac_path_EGREP"
5968 ac_path_EGREP_max
=$ac_count
5970 # 10*(2^10) chars as input seems more than enough
5971 test $ac_count -gt 10 && break
5973 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5976 $ac_path_EGREP_found && break 3
5981 if test -z "$ac_cv_path_EGREP"; then
5982 as_fn_error
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5985 ac_cv_path_EGREP
=$EGREP
5990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5991 $as_echo "$ac_cv_path_EGREP" >&6; }
5992 EGREP
="$ac_cv_path_EGREP"
5997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
5998 $as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
5999 if test "${gl_cv_c_amsterdam_compiler+set}" = set; then :
6000 $as_echo_n "(cached) " >&6
6003 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6004 /* end confdefs.h. */
6011 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6012 $EGREP "Amsterdam" >/dev
/null
2>&1; then :
6013 gl_cv_c_amsterdam_compiler
=yes
6015 gl_cv_c_amsterdam_compiler
=no
6021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
6022 $as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
6023 if test -z "$AR"; then
6024 if test $gl_cv_c_amsterdam_compiler = yes; then
6026 if test -z "$ARFLAGS"; then
6030 if test -n "$ac_tool_prefix"; then
6031 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6032 set dummy
${ac_tool_prefix}ar; ac_word
=$2
6033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6034 $as_echo_n "checking for $ac_word... " >&6; }
6035 if test "${ac_cv_prog_AR+set}" = set; then :
6036 $as_echo_n "(cached) " >&6
6038 if test -n "$AR"; then
6039 ac_cv_prog_AR
="$AR" # Let the user override the test.
6041 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6045 test -z "$as_dir" && as_dir
=.
6046 for ac_exec_ext
in '' $ac_executable_extensions; do
6047 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6048 ac_cv_prog_AR
="${ac_tool_prefix}ar"
6049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6059 if test -n "$AR"; then
6060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6061 $as_echo "$AR" >&6; }
6063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6064 $as_echo "no" >&6; }
6069 if test -z "$ac_cv_prog_AR"; then
6071 # Extract the first word of "ar", so it can be a program name with args.
6072 set dummy
ar; ac_word
=$2
6073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6074 $as_echo_n "checking for $ac_word... " >&6; }
6075 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6076 $as_echo_n "(cached) " >&6
6078 if test -n "$ac_ct_AR"; then
6079 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
6081 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6085 test -z "$as_dir" && as_dir
=.
6086 for ac_exec_ext
in '' $ac_executable_extensions; do
6087 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6088 ac_cv_prog_ac_ct_AR
="ar"
6089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6098 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
6099 if test -n "$ac_ct_AR"; then
6100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6101 $as_echo "$ac_ct_AR" >&6; }
6103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6104 $as_echo "no" >&6; }
6107 if test "x$ac_ct_AR" = x
; then
6110 case $cross_compiling:$ac_tool_warned in
6112 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6113 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6114 ac_tool_warned
=yes ;;
6122 if test -z "$ARFLAGS"; then
6127 if test -z "$ARFLAGS"; then
6133 if test -z "$RANLIB"; then
6134 if test $gl_cv_c_amsterdam_compiler = yes; then
6137 if test -n "$ac_tool_prefix"; then
6138 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6139 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
6140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6141 $as_echo_n "checking for $ac_word... " >&6; }
6142 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6143 $as_echo_n "(cached) " >&6
6145 if test -n "$RANLIB"; then
6146 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
6148 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6152 test -z "$as_dir" && as_dir
=.
6153 for ac_exec_ext
in '' $ac_executable_extensions; do
6154 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6155 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
6156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6165 RANLIB
=$ac_cv_prog_RANLIB
6166 if test -n "$RANLIB"; then
6167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6168 $as_echo "$RANLIB" >&6; }
6170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6171 $as_echo "no" >&6; }
6176 if test -z "$ac_cv_prog_RANLIB"; then
6177 ac_ct_RANLIB
=$RANLIB
6178 # Extract the first word of "ranlib", so it can be a program name with args.
6179 set dummy ranlib
; ac_word
=$2
6180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6181 $as_echo_n "checking for $ac_word... " >&6; }
6182 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6183 $as_echo_n "(cached) " >&6
6185 if test -n "$ac_ct_RANLIB"; then
6186 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
6188 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6192 test -z "$as_dir" && as_dir
=.
6193 for ac_exec_ext
in '' $ac_executable_extensions; do
6194 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6195 ac_cv_prog_ac_ct_RANLIB
="ranlib"
6196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6205 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
6206 if test -n "$ac_ct_RANLIB"; then
6207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6208 $as_echo "$ac_ct_RANLIB" >&6; }
6210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6211 $as_echo "no" >&6; }
6214 if test "x$ac_ct_RANLIB" = x
; then
6217 case $cross_compiling:$ac_tool_warned in
6219 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6220 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6221 ac_tool_warned
=yes ;;
6223 RANLIB
=$ac_ct_RANLIB
6226 RANLIB
="$ac_cv_prog_RANLIB"
6233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6234 $as_echo_n "checking for ANSI C header files... " >&6; }
6235 if test "${ac_cv_header_stdc+set}" = set; then :
6236 $as_echo_n "(cached) " >&6
6238 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6239 /* end confdefs.h. */
6253 if ac_fn_c_try_compile
"$LINENO"; then :
6254 ac_cv_header_stdc
=yes
6256 ac_cv_header_stdc
=no
6258 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6260 if test $ac_cv_header_stdc = yes; then
6261 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6262 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6263 /* end confdefs.h. */
6267 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6268 $EGREP "memchr" >/dev
/null
2>&1; then :
6271 ac_cv_header_stdc
=no
6277 if test $ac_cv_header_stdc = yes; then
6278 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6279 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6280 /* end confdefs.h. */
6284 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6285 $EGREP "free" >/dev
/null
2>&1; then :
6288 ac_cv_header_stdc
=no
6294 if test $ac_cv_header_stdc = yes; then
6295 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6296 if test "$cross_compiling" = yes; then :
6299 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6300 /* end confdefs.h. */
6303 #if ((' ' & 0x0FF) == 0x020)
6304 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6305 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6307 # define ISLOWER(c) \
6308 (('a' <= (c) && (c) <= 'i') \
6309 || ('j' <= (c) && (c) <= 'r') \
6310 || ('s' <= (c) && (c) <= 'z'))
6311 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6314 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6319 for (i = 0; i < 256; i++)
6320 if (XOR (islower (i), ISLOWER (i))
6321 || toupper (i) != TOUPPER (i))
6326 if ac_fn_c_try_run
"$LINENO"; then :
6329 ac_cv_header_stdc
=no
6331 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6332 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6338 $as_echo "$ac_cv_header_stdc" >&6; }
6339 if test $ac_cv_header_stdc = yes; then
6341 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6345 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6346 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
6347 inttypes.h stdint.h unistd.h
6349 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6350 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6352 eval as_val
=\$
$as_ac_Header
6353 if test "x$as_val" = x
""yes; then :
6354 cat >>confdefs.h
<<_ACEOF
6355 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6366 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
6367 if test "x$ac_cv_header_minix_config_h" = x
""yes; then :
6374 if test "$MINIX" = yes; then
6376 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
6379 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
6382 $as_echo "#define _MINIX 1" >>confdefs.h
6389 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
6395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
6396 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
6397 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
6398 $as_echo_n "(cached) " >&6
6400 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6401 /* end confdefs.h. */
6403 # define __EXTENSIONS__ 1
6404 $ac_includes_default
6413 if ac_fn_c_try_compile
"$LINENO"; then :
6414 ac_cv_safe_to_define___extensions__
=yes
6416 ac_cv_safe_to_define___extensions__
=no
6418 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
6421 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6422 test $ac_cv_safe_to_define___extensions__ = yes &&
6423 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
6425 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6427 $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
6429 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
6431 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6433 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
6442 # Check whether --enable-largefile was given.
6443 if test "${enable_largefile+set}" = set; then :
6444 enableval
=$enable_largefile;
6447 if test "$enable_largefile" != no
; then
6449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6450 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6451 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
6452 $as_echo_n "(cached) " >&6
6454 ac_cv_sys_largefile_CC
=no
6455 if test "$GCC" != yes; then
6458 # IRIX 6.2 and later do not support large files by default,
6459 # so use the C compiler's -n32 option if that helps.
6460 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6461 /* end confdefs.h. */
6462 #include <sys/types.h>
6463 /* Check that off_t can represent 2**63 - 1 correctly.
6464 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6465 since some C++ compilers masquerading as C compilers
6466 incorrectly reject 9223372036854775807. */
6467 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6468 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6469 && LARGE_OFF_T % 2147483647 == 1)
6479 if ac_fn_c_try_compile
"$LINENO"; then :
6482 rm -f core conftest.err conftest.
$ac_objext
6484 if ac_fn_c_try_compile
"$LINENO"; then :
6485 ac_cv_sys_largefile_CC
=' -n32'; break
6487 rm -f core conftest.err conftest.
$ac_objext
6491 rm -f conftest.
$ac_ext
6494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6495 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6496 if test "$ac_cv_sys_largefile_CC" != no
; then
6497 CC
=$CC$ac_cv_sys_largefile_CC
6500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6501 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6502 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
6503 $as_echo_n "(cached) " >&6
6506 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6507 /* end confdefs.h. */
6508 #include <sys/types.h>
6509 /* Check that off_t can represent 2**63 - 1 correctly.
6510 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6511 since some C++ compilers masquerading as C compilers
6512 incorrectly reject 9223372036854775807. */
6513 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6514 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6515 && LARGE_OFF_T % 2147483647 == 1)
6525 if ac_fn_c_try_compile
"$LINENO"; then :
6526 ac_cv_sys_file_offset_bits
=no
; break
6528 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6529 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6530 /* end confdefs.h. */
6531 #define _FILE_OFFSET_BITS 64
6532 #include <sys/types.h>
6533 /* Check that off_t can represent 2**63 - 1 correctly.
6534 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6535 since some C++ compilers masquerading as C compilers
6536 incorrectly reject 9223372036854775807. */
6537 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6538 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6539 && LARGE_OFF_T % 2147483647 == 1)
6549 if ac_fn_c_try_compile
"$LINENO"; then :
6550 ac_cv_sys_file_offset_bits
=64; break
6552 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6553 ac_cv_sys_file_offset_bits
=unknown
6557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6558 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6559 case $ac_cv_sys_file_offset_bits in #(
6562 cat >>confdefs.h
<<_ACEOF
6563 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6568 if test $ac_cv_sys_file_offset_bits = unknown
; then
6569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6570 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6571 if test "${ac_cv_sys_large_files+set}" = set; then :
6572 $as_echo_n "(cached) " >&6
6575 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6576 /* end confdefs.h. */
6577 #include <sys/types.h>
6578 /* Check that off_t can represent 2**63 - 1 correctly.
6579 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6580 since some C++ compilers masquerading as C compilers
6581 incorrectly reject 9223372036854775807. */
6582 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6583 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6584 && LARGE_OFF_T % 2147483647 == 1)
6594 if ac_fn_c_try_compile
"$LINENO"; then :
6595 ac_cv_sys_large_files
=no
; break
6597 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6598 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6599 /* end confdefs.h. */
6600 #define _LARGE_FILES 1
6601 #include <sys/types.h>
6602 /* Check that off_t can represent 2**63 - 1 correctly.
6603 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6604 since some C++ compilers masquerading as C compilers
6605 incorrectly reject 9223372036854775807. */
6606 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6607 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6608 && LARGE_OFF_T % 2147483647 == 1)
6618 if ac_fn_c_try_compile
"$LINENO"; then :
6619 ac_cv_sys_large_files
=1; break
6621 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6622 ac_cv_sys_large_files
=unknown
6626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6627 $as_echo "$ac_cv_sys_large_files" >&6; }
6628 case $ac_cv_sys_large_files in #(
6631 cat >>confdefs.h
<<_ACEOF
6632 #define _LARGE_FILES $ac_cv_sys_large_files
6642 case $ac_cv_prog_cc_stdc in #(
6644 ac_cv_prog_cc_c99
=no
; ac_cv_prog_cc_c89
=no
;; #(
6646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
6647 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
6648 if test "${ac_cv_prog_cc_c99+set}" = set; then :
6649 $as_echo_n "(cached) " >&6
6651 ac_cv_prog_cc_c99
=no
6653 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6654 /* end confdefs.h. */
6656 #include <stdbool.h>
6661 // Check varargs macros. These examples are taken from C99 6.10.3.5.
6662 #define debug(...) fprintf (stderr, __VA_ARGS__)
6663 #define showlist(...) puts (#__VA_ARGS__)
6664 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6666 test_varargs_macros (void)
6671 debug ("X = %d\n", x);
6672 showlist (The first, second, and third items.);
6673 report (x>y, "x is %d but y is %d", x, y);
6676 // Check long long types.
6677 #define BIG64 18446744073709551615ull
6678 #define BIG32 4294967295ul
6679 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6681 your preprocessor is broken;
6685 your preprocessor is broken;
6687 static long long int bignum = -9223372036854775807LL;
6688 static unsigned long long int ubignum = BIG64;
6690 struct incomplete_array
6698 const wchar_t *name;
6702 typedef const char *ccp;
6705 test_restrict (ccp restrict text)
6707 // See if C++-style comments work.
6708 // Iterate through items via the restricted pointer.
6709 // Also check for declarations in for loops.
6710 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6715 // Check varargs and va_copy.
6717 test_varargs (const char *format, ...)
6720 va_start (args, format);
6722 va_copy (args_copy, args);
6733 str = va_arg (args_copy, const char *);
6736 number = va_arg (args_copy, int);
6739 fnumber = va_arg (args_copy, double);
6754 _Bool success = false;
6757 if (test_restrict ("String literal") == 0)
6759 char *restrict newvar = "Another string";
6762 test_varargs ("s, d' f .", "string", 65, 34.234);
6763 test_varargs_macros ();
6765 // Check flexible array members.
6766 struct incomplete_array *ia =
6767 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6769 for (int i = 0; i < ia->datasize; ++i)
6770 ia->data[i] = i * 1.234;
6772 // Check named initializers.
6773 struct named_init ni = {
6775 .name = L"Test wide string",
6776 .average = 543.34343,
6781 int dynamic_array[ni.number];
6782 dynamic_array[ni.number - 1] = 543;
6784 // work around unused variable warnings
6785 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
6786 || dynamic_array[ni.number - 1] != 543);
6792 for ac_arg
in '' -std=gnu99
-std=c99
-c99 -AC99 -xc99=all
-qlanglvl=extc99
6794 CC
="$ac_save_CC $ac_arg"
6795 if ac_fn_c_try_compile
"$LINENO"; then :
6796 ac_cv_prog_cc_c99
=$ac_arg
6798 rm -f core conftest.err conftest.
$ac_objext
6799 test "x$ac_cv_prog_cc_c99" != "xno" && break
6801 rm -f conftest.
$ac_ext
6806 case "x$ac_cv_prog_cc_c99" in
6808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6809 $as_echo "none needed" >&6; } ;;
6811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6812 $as_echo "unsupported" >&6; } ;;
6814 CC
="$CC $ac_cv_prog_cc_c99"
6815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
6816 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
6818 if test "x$ac_cv_prog_cc_c99" != xno
; then :
6819 ac_cv_prog_cc_stdc
=$ac_cv_prog_cc_c99
6821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6822 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6823 if test "${ac_cv_prog_cc_c89+set}" = set; then :
6824 $as_echo_n "(cached) " >&6
6826 ac_cv_prog_cc_c89
=no
6828 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6829 /* end confdefs.h. */
6832 #include <sys/types.h>
6833 #include <sys/stat.h>
6834 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6835 struct buf { int x; };
6836 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6837 static char *e (p, i)
6843 static char *f (char * (*g) (char **, int), char **p, ...)
6848 s = g (p, va_arg (v,int));
6853 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6854 function prototypes and stuff, but not '\xHH' hex character constants.
6855 These don't provoke an error unfortunately, instead are silently treated
6856 as 'x'. The following induces an error, until -std is added to get
6857 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6858 array size at least. It's necessary to write '\x00'==0 to get something
6859 that's true only with -std. */
6860 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6862 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6863 inside strings and character constants. */
6865 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6867 int test (int i, double x);
6868 struct s1 {int (*f) (int a);};
6869 struct s2 {int (*f) (double a);};
6870 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6876 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6881 for ac_arg
in '' -qlanglvl=extc89
-qlanglvl=ansi
-std \
6882 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6884 CC
="$ac_save_CC $ac_arg"
6885 if ac_fn_c_try_compile
"$LINENO"; then :
6886 ac_cv_prog_cc_c89
=$ac_arg
6888 rm -f core conftest.err conftest.
$ac_objext
6889 test "x$ac_cv_prog_cc_c89" != "xno" && break
6891 rm -f conftest.
$ac_ext
6896 case "x$ac_cv_prog_cc_c89" in
6898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6899 $as_echo "none needed" >&6; } ;;
6901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6902 $as_echo "unsupported" >&6; } ;;
6904 CC
="$CC $ac_cv_prog_cc_c89"
6905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6906 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6908 if test "x$ac_cv_prog_cc_c89" != xno
; then :
6909 ac_cv_prog_cc_stdc
=$ac_cv_prog_cc_c89
6911 ac_cv_prog_cc_stdc
=no
6917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
6918 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
6919 if test "${ac_cv_prog_cc_stdc+set}" = set; then :
6920 $as_echo_n "(cached) " >&6
6923 case $ac_cv_prog_cc_stdc in #(
6925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6926 $as_echo "unsupported" >&6; } ;; #(
6928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6929 $as_echo "none needed" >&6; } ;; #(
6931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
6932 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
6937 # Code from module alloca-opt:
6938 # Code from module allocator:
6939 # Code from module c-ctype:
6940 # Code from module c-strcase:
6941 # Code from module careadlinkat:
6942 # Code from module clock-time:
6943 # Code from module crypto/md5:
6944 # Code from module crypto/sha1:
6945 # Code from module crypto/sha256:
6946 # Code from module crypto/sha512:
6947 # Code from module dosname:
6948 # Code from module dtoastr:
6949 # Code from module dtotimespec:
6950 # Code from module dup2:
6951 # Code from module extensions:
6953 # Code from module filemode:
6954 # Code from module getloadavg:
6955 # Code from module getopt-gnu:
6956 # Code from module getopt-posix:
6957 # Code from module gettext-h:
6958 # Code from module gettime:
6959 # Code from module gettimeofday:
6960 # Code from module ignore-value:
6961 # Code from module include_next:
6962 # Code from module intprops:
6963 # Code from module inttypes-incomplete:
6964 # Code from module largefile:
6966 # Code from module lstat:
6967 # Code from module manywarnings:
6968 # Code from module mktime:
6969 # Code from module multiarch:
6970 # Code from module nocrash:
6971 # Code from module pathmax:
6972 # Code from module pselect:
6973 # Code from module pthread_sigmask:
6974 # Code from module readlink:
6975 # Code from module signal-h:
6976 # Code from module snippet/_Noreturn:
6977 # Code from module snippet/arg-nonnull:
6978 # Code from module snippet/c++defs:
6979 # Code from module snippet/warn-on-use:
6980 # Code from module socklen:
6981 # Code from module ssize_t:
6982 # Code from module stat:
6983 # Code from module stat-time:
6984 # Code from module stdalign:
6985 # Code from module stdarg:
6989 # Code from module stdbool:
6990 # Code from module stddef:
6991 # Code from module stdint:
6992 # Code from module stdio:
6993 # Code from module stdlib:
6994 # Code from module strftime:
6995 # Code from module strtoimax:
6996 # Code from module strtoll:
6997 # Code from module strtoull:
6998 # Code from module strtoumax:
6999 # Code from module symlink:
7000 # Code from module sys_select:
7001 # Code from module sys_stat:
7002 # Code from module sys_time:
7003 # Code from module time:
7004 # Code from module time_r:
7005 # Code from module timespec:
7006 # Code from module timespec-add:
7007 # Code from module timespec-sub:
7008 # Code from module u64:
7009 # Code from module unistd:
7010 # Code from module utimens:
7011 # Code from module verify:
7012 # Code from module warnings:
7015 # Check whether --enable-gcc-warnings was given.
7016 if test "${enable_gcc_warnings+set}" = set; then :
7017 enableval
=$enable_gcc_warnings; case $enableval in
7019 *) as_fn_error
"bad value $enableval for gcc-warnings option" "$LINENO" 5 ;;
7021 gl_gcc_warnings
=$enableval
7028 # Check whether --enable-link-time-optimization was given.
7029 if test "${enable_link_time_optimization+set}" = set; then :
7030 enableval
=$enable_link_time_optimization; if test "${enableval}" != "no"; then
7031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether link-time optimization is supported" >&5
7032 $as_echo_n "checking whether link-time optimization is supported... " >&6; }
7034 if test x
$GCC = xyes
; then
7035 CPUS
=`getconf _NPROCESSORS_ONLN 2>/dev/null`
7036 if test x
$CPUS != x
; then
7042 CFLAGS
="$CFLAGS $LTO"
7043 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7044 /* end confdefs.h. */
7054 if ac_fn_c_try_compile
"$LINENO"; then :
7055 ac_lto_supported
=yes
7059 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7060 CFLAGS
="$old_CFLAGS"
7062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_lto_supported" >&5
7063 $as_echo "$ac_lto_supported" >&6; }
7064 if test "$ac_lto_supported" = "yes"; then
7065 CFLAGS
="$CFLAGS $LTO"
7071 # gl_GCC_VERSION_IFELSE([major], [minor], [run-if-found], [run-if-not-found])
7072 # ------------------------------------------------
7073 # If $CPP is gcc-MAJOR.MINOR or newer, then run RUN-IF-FOUND.
7074 # Otherwise, run RUN-IF-NOT-FOUND.
7077 # When compiling with GCC, prefer -isystem to -I when including system
7078 # include files, to avoid generating useless diagnostics for the files.
7079 if test "$gl_gcc_warnings" != yes; then
7084 # This, $nw, is the list of warnings we disable.
7087 case $with_x_toolkit in
7088 lucid | athena | motif
)
7089 # Old toolkits mishandle 'const'.
7090 nw
="$nw -Wwrite-strings"
7093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Werror" >&5
7094 $as_echo_n "checking whether C compiler handles -Werror... " >&6; }
7095 if test "${gl_cv_warn_c__Werror+set}" = set; then :
7096 $as_echo_n "(cached) " >&6
7099 gl_save_compiler_FLAGS
="$CFLAGS"
7100 as_fn_append CFLAGS
" -Werror"
7101 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7102 /* end confdefs.h. */
7112 if ac_fn_c_try_compile
"$LINENO"; then :
7113 gl_cv_warn_c__Werror
=yes
7115 gl_cv_warn_c__Werror
=no
7117 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7118 CFLAGS
="$gl_save_compiler_FLAGS"
7121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Werror" >&5
7122 $as_echo "$gl_cv_warn_c__Werror" >&6; }
7123 if test "x$gl_cv_warn_c__Werror" = x
""yes; then :
7124 as_fn_append WERROR_CFLAGS
" -Werror"
7132 nw
="$nw -Waggregate-return" # anachronistic
7133 nw
="$nw -Wlong-long" # C90 is anachronistic
7134 nw
="$nw -Wc++-compat" # We don't care about C++ compilers
7135 nw
="$nw -Wundef" # Warns on '#if GNULIB_FOO' etc in gnulib
7136 nw
="$nw -Wtraditional" # Warns on #elif which we use often
7137 nw
="$nw -Wcast-qual" # Too many warnings for now
7138 nw
="$nw -Wconversion" # Too many warnings for now
7139 nw
="$nw -Wsystem-headers" # Don't let system headers trigger warnings
7140 nw
="$nw -Wsign-conversion" # Too many warnings for now
7141 nw
="$nw -Woverlength-strings" # Not a problem these days
7142 nw
="$nw -Wtraditional-conversion" # Too many warnings for now
7143 nw
="$nw -Wunreachable-code" # so buggy that it's now silently ignored
7144 nw
="$nw -Wpadded" # Our structs are not padded
7145 nw
="$nw -Wredundant-decls" # we regularly (re)declare functions
7146 nw
="$nw -Wlogical-op" # any use of fwrite provokes this
7147 nw
="$nw -Wformat-nonliteral" # we do this a lot
7148 nw
="$nw -Wvla" # warnings in gettext.h
7149 nw
="$nw -Wnested-externs" # use of XARGMATCH/verify_function__
7150 nw
="$nw -Wswitch-enum" # Too many warnings for now
7151 nw
="$nw -Wswitch-default" # Too many warnings for now
7152 nw
="$nw -Wfloat-equal" # warns about high-quality code
7153 nw
="$nw -Winline" # OK to ignore 'inline'
7154 nw
="$nw -Wsync-nand" # irrelevant here, and provokes ObjC warning
7155 nw
="$nw -Wunsafe-loop-optimizations" # OK to suppress unsafe optimizations
7157 # Emacs doesn't care about shadowing; see
7158 # <http://lists.gnu.org/archive/html/emacs-diffs/2011-11/msg00265.html>.
7161 # The following lines should be removable at some point.
7162 nw
="$nw -Wstack-protector"
7163 nw
="$nw -Wstrict-overflow"
7164 nw
="$nw -Wsuggest-attribute=const"
7165 nw
="$nw -Wsuggest-attribute=pure"
7169 if test -n "$GCC"; then
7171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is supported" >&5
7172 $as_echo_n "checking whether -Wno-missing-field-initializers is supported... " >&6; }
7173 if test "${gl_cv_cc_nomfi_supported+set}" = set; then :
7174 $as_echo_n "(cached) " >&6
7177 gl_save_CFLAGS
="$CFLAGS"
7178 CFLAGS
="$CFLAGS -W -Werror -Wno-missing-field-initializers"
7179 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7180 /* end confdefs.h. */
7190 if ac_fn_c_try_compile
"$LINENO"; then :
7191 gl_cv_cc_nomfi_supported
=yes
7193 gl_cv_cc_nomfi_supported
=no
7195 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7196 CFLAGS
="$gl_save_CFLAGS"
7199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_supported" >&5
7200 $as_echo "$gl_cv_cc_nomfi_supported" >&6; }
7202 if test "$gl_cv_cc_nomfi_supported" = yes; then
7203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is needed" >&5
7204 $as_echo_n "checking whether -Wno-missing-field-initializers is needed... " >&6; }
7205 if test "${gl_cv_cc_nomfi_needed+set}" = set; then :
7206 $as_echo_n "(cached) " >&6
7209 gl_save_CFLAGS
="$CFLAGS"
7210 CFLAGS
="$CFLAGS -W -Werror"
7211 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7212 /* end confdefs.h. */
7215 typedef struct { int a; int b; } s_t;
7227 if ac_fn_c_try_compile
"$LINENO"; then :
7228 gl_cv_cc_nomfi_needed
=no
7230 gl_cv_cc_nomfi_needed
=yes
7232 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7233 CFLAGS
="$gl_save_CFLAGS"
7237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_needed" >&5
7238 $as_echo "$gl_cv_cc_nomfi_needed" >&6; }
7243 for gl_manywarn_item
in \
7247 -Wformat-nonliteral \
7250 -Wmissing-include-dirs \
7260 -Wtraditional-conversion \
7261 -Wdeclaration-after-statement \
7264 -Wunsafe-loop-optimizations \
7266 -Wbad-function-cast \
7274 -Waggregate-return \
7275 -Wstrict-prototypes \
7276 -Wold-style-definition \
7277 -Wmissing-prototypes \
7278 -Wmissing-declarations \
7279 -Wmissing-noreturn \
7280 -Wmissing-format-attribute \
7285 -Wunreachable-code \
7290 -Wvolatile-register-var \
7291 -Wdisabled-optimization \
7293 -Woverlength-strings \
7294 -Wbuiltin-macro-redefined \
7296 -Wpacked-bitfield-compat \
7299 gl_manywarn_set
="$gl_manywarn_set $gl_manywarn_item"
7301 # The following are not documented in the manual but are included in
7302 # output from gcc --help=warnings.
7303 for gl_manywarn_item
in \
7305 -Wcoverage-mismatch \
7308 gl_manywarn_set
="$gl_manywarn_set $gl_manywarn_item"
7310 # More warnings from gcc 4.6.2 --help=warnings.
7311 for gl_manywarn_item
in \
7315 -Wdeprecated-declarations \
7317 -Wdouble-promotion \
7320 -Wformat-contains-nul \
7321 -Wformat-extra-args \
7322 -Wformat-zero-length \
7327 -Wpointer-to-int-cast \
7329 -Wsuggest-attribute=const \
7330 -Wsuggest-attribute=noreturn \
7331 -Wsuggest-attribute=pure \
7334 gl_manywarn_set
="$gl_manywarn_set $gl_manywarn_item"
7337 # Disable the missing-field-initializers warning if needed
7338 if test "$gl_cv_cc_nomfi_needed" = yes; then
7339 gl_manywarn_set
="$gl_manywarn_set -Wno-missing-field-initializers"
7350 *" $gl_warn_item "*)
7353 gl_warn_set
="$gl_warn_set $gl_warn_item"
7360 as_gl_Warn
=`$as_echo "gl_cv_warn_c_$w" | $as_tr_sh`
7361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles $w" >&5
7362 $as_echo_n "checking whether C compiler handles $w... " >&6; }
7363 if { as_var
=$as_gl_Warn; eval "test \"\${$as_var+set}\" = set"; }; then :
7364 $as_echo_n "(cached) " >&6
7367 gl_save_compiler_FLAGS
="$CFLAGS"
7368 as_fn_append CFLAGS
" $w"
7369 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7370 /* end confdefs.h. */
7380 if ac_fn_c_try_compile
"$LINENO"; then :
7381 eval "$as_gl_Warn=yes"
7383 eval "$as_gl_Warn=no"
7385 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7386 CFLAGS
="$gl_save_compiler_FLAGS"
7389 eval ac_res
=\$
$as_gl_Warn
7390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7391 $as_echo "$ac_res" >&6; }
7392 eval as_val
=\$
$as_gl_Warn
7393 if test "x$as_val" = x
""yes; then :
7394 as_fn_append WARN_CFLAGS
" $w"
7399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-missing-field-initializers" >&5
7400 $as_echo_n "checking whether C compiler handles -Wno-missing-field-initializers... " >&6; }
7401 if test "${gl_cv_warn_c__Wno_missing_field_initializers+set}" = set; then :
7402 $as_echo_n "(cached) " >&6
7405 gl_save_compiler_FLAGS
="$CFLAGS"
7406 as_fn_append CFLAGS
" -Wno-missing-field-initializers"
7407 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7408 /* end confdefs.h. */
7418 if ac_fn_c_try_compile
"$LINENO"; then :
7419 gl_cv_warn_c__Wno_missing_field_initializers
=yes
7421 gl_cv_warn_c__Wno_missing_field_initializers
=no
7423 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7424 CFLAGS
="$gl_save_compiler_FLAGS"
7427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_missing_field_initializers" >&5
7428 $as_echo "$gl_cv_warn_c__Wno_missing_field_initializers" >&6; }
7429 if test "x$gl_cv_warn_c__Wno_missing_field_initializers" = x
""yes; then :
7430 as_fn_append WARN_CFLAGS
" -Wno-missing-field-initializers"
7434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-sign-compare" >&5
7435 $as_echo_n "checking whether C compiler handles -Wno-sign-compare... " >&6; }
7436 if test "${gl_cv_warn_c__Wno_sign_compare+set}" = set; then :
7437 $as_echo_n "(cached) " >&6
7440 gl_save_compiler_FLAGS
="$CFLAGS"
7441 as_fn_append CFLAGS
" -Wno-sign-compare"
7442 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7443 /* end confdefs.h. */
7453 if ac_fn_c_try_compile
"$LINENO"; then :
7454 gl_cv_warn_c__Wno_sign_compare
=yes
7456 gl_cv_warn_c__Wno_sign_compare
=no
7458 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7459 CFLAGS
="$gl_save_compiler_FLAGS"
7462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_sign_compare" >&5
7463 $as_echo "$gl_cv_warn_c__Wno_sign_compare" >&6; }
7464 if test "x$gl_cv_warn_c__Wno_sign_compare" = x
""yes; then :
7465 as_fn_append WARN_CFLAGS
" -Wno-sign-compare"
7468 # Too many warnings for now
7469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-type-limits" >&5
7470 $as_echo_n "checking whether C compiler handles -Wno-type-limits... " >&6; }
7471 if test "${gl_cv_warn_c__Wno_type_limits+set}" = set; then :
7472 $as_echo_n "(cached) " >&6
7475 gl_save_compiler_FLAGS
="$CFLAGS"
7476 as_fn_append CFLAGS
" -Wno-type-limits"
7477 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7478 /* end confdefs.h. */
7488 if ac_fn_c_try_compile
"$LINENO"; then :
7489 gl_cv_warn_c__Wno_type_limits
=yes
7491 gl_cv_warn_c__Wno_type_limits
=no
7493 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7494 CFLAGS
="$gl_save_compiler_FLAGS"
7497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_type_limits" >&5
7498 $as_echo "$gl_cv_warn_c__Wno_type_limits" >&6; }
7499 if test "x$gl_cv_warn_c__Wno_type_limits" = x
""yes; then :
7500 as_fn_append WARN_CFLAGS
" -Wno-type-limits"
7503 # Too many warnings for now
7504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-switch" >&5
7505 $as_echo_n "checking whether C compiler handles -Wno-switch... " >&6; }
7506 if test "${gl_cv_warn_c__Wno_switch+set}" = set; then :
7507 $as_echo_n "(cached) " >&6
7510 gl_save_compiler_FLAGS
="$CFLAGS"
7511 as_fn_append CFLAGS
" -Wno-switch"
7512 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7513 /* end confdefs.h. */
7523 if ac_fn_c_try_compile
"$LINENO"; then :
7524 gl_cv_warn_c__Wno_switch
=yes
7526 gl_cv_warn_c__Wno_switch
=no
7528 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7529 CFLAGS
="$gl_save_compiler_FLAGS"
7532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_switch" >&5
7533 $as_echo "$gl_cv_warn_c__Wno_switch" >&6; }
7534 if test "x$gl_cv_warn_c__Wno_switch" = x
""yes; then :
7535 as_fn_append WARN_CFLAGS
" -Wno-switch"
7538 # Too many warnings for now
7539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-unused-parameter" >&5
7540 $as_echo_n "checking whether C compiler handles -Wno-unused-parameter... " >&6; }
7541 if test "${gl_cv_warn_c__Wno_unused_parameter+set}" = set; then :
7542 $as_echo_n "(cached) " >&6
7545 gl_save_compiler_FLAGS
="$CFLAGS"
7546 as_fn_append CFLAGS
" -Wno-unused-parameter"
7547 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7548 /* end confdefs.h. */
7558 if ac_fn_c_try_compile
"$LINENO"; then :
7559 gl_cv_warn_c__Wno_unused_parameter
=yes
7561 gl_cv_warn_c__Wno_unused_parameter
=no
7563 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7564 CFLAGS
="$gl_save_compiler_FLAGS"
7567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_unused_parameter" >&5
7568 $as_echo "$gl_cv_warn_c__Wno_unused_parameter" >&6; }
7569 if test "x$gl_cv_warn_c__Wno_unused_parameter" = x
""yes; then :
7570 as_fn_append WARN_CFLAGS
" -Wno-unused-parameter"
7573 # Too many warnings for now
7574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-format-nonliteral" >&5
7575 $as_echo_n "checking whether C compiler handles -Wno-format-nonliteral... " >&6; }
7576 if test "${gl_cv_warn_c__Wno_format_nonliteral+set}" = set; then :
7577 $as_echo_n "(cached) " >&6
7580 gl_save_compiler_FLAGS
="$CFLAGS"
7581 as_fn_append CFLAGS
" -Wno-format-nonliteral"
7582 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7583 /* end confdefs.h. */
7593 if ac_fn_c_try_compile
"$LINENO"; then :
7594 gl_cv_warn_c__Wno_format_nonliteral
=yes
7596 gl_cv_warn_c__Wno_format_nonliteral
=no
7598 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7599 CFLAGS
="$gl_save_compiler_FLAGS"
7602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_format_nonliteral" >&5
7603 $as_echo "$gl_cv_warn_c__Wno_format_nonliteral" >&6; }
7604 if test "x$gl_cv_warn_c__Wno_format_nonliteral" = x
""yes; then :
7605 as_fn_append WARN_CFLAGS
" -Wno-format-nonliteral"
7610 # In spite of excluding -Wlogical-op above, it is enabled, as of
7611 # gcc 4.5.0 20090517.
7612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-logical-op" >&5
7613 $as_echo_n "checking whether C compiler handles -Wno-logical-op... " >&6; }
7614 if test "${gl_cv_warn_c__Wno_logical_op+set}" = set; then :
7615 $as_echo_n "(cached) " >&6
7618 gl_save_compiler_FLAGS
="$CFLAGS"
7619 as_fn_append CFLAGS
" -Wno-logical-op"
7620 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7621 /* end confdefs.h. */
7631 if ac_fn_c_try_compile
"$LINENO"; then :
7632 gl_cv_warn_c__Wno_logical_op
=yes
7634 gl_cv_warn_c__Wno_logical_op
=no
7636 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7637 CFLAGS
="$gl_save_compiler_FLAGS"
7640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_logical_op" >&5
7641 $as_echo "$gl_cv_warn_c__Wno_logical_op" >&6; }
7642 if test "x$gl_cv_warn_c__Wno_logical_op" = x
""yes; then :
7643 as_fn_append WARN_CFLAGS
" -Wno-logical-op"
7648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -fdiagnostics-show-option" >&5
7649 $as_echo_n "checking whether C compiler handles -fdiagnostics-show-option... " >&6; }
7650 if test "${gl_cv_warn_c__fdiagnostics_show_option+set}" = set; then :
7651 $as_echo_n "(cached) " >&6
7654 gl_save_compiler_FLAGS
="$CFLAGS"
7655 as_fn_append CFLAGS
" -fdiagnostics-show-option"
7656 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7657 /* end confdefs.h. */
7667 if ac_fn_c_try_compile
"$LINENO"; then :
7668 gl_cv_warn_c__fdiagnostics_show_option
=yes
7670 gl_cv_warn_c__fdiagnostics_show_option
=no
7672 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7673 CFLAGS
="$gl_save_compiler_FLAGS"
7676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__fdiagnostics_show_option" >&5
7677 $as_echo "$gl_cv_warn_c__fdiagnostics_show_option" >&6; }
7678 if test "x$gl_cv_warn_c__fdiagnostics_show_option" = x
""yes; then :
7679 as_fn_append WARN_CFLAGS
" -fdiagnostics-show-option"
7683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -funit-at-a-time" >&5
7684 $as_echo_n "checking whether C compiler handles -funit-at-a-time... " >&6; }
7685 if test "${gl_cv_warn_c__funit_at_a_time+set}" = set; then :
7686 $as_echo_n "(cached) " >&6
7689 gl_save_compiler_FLAGS
="$CFLAGS"
7690 as_fn_append CFLAGS
" -funit-at-a-time"
7691 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7692 /* end confdefs.h. */
7702 if ac_fn_c_try_compile
"$LINENO"; then :
7703 gl_cv_warn_c__funit_at_a_time
=yes
7705 gl_cv_warn_c__funit_at_a_time
=no
7707 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7708 CFLAGS
="$gl_save_compiler_FLAGS"
7711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__funit_at_a_time" >&5
7712 $as_echo "$gl_cv_warn_c__funit_at_a_time" >&6; }
7713 if test "x$gl_cv_warn_c__funit_at_a_time" = x
""yes; then :
7714 as_fn_append WARN_CFLAGS
" -funit-at-a-time"
7720 $as_echo "#define lint 1" >>confdefs.h
7723 $as_echo "#define _FORTIFY_SOURCE 2" >>confdefs.h
7726 $as_echo "#define GNULIB_PORTCHECK 1" >>confdefs.h
7729 # We use a slightly smaller set of warning options for lib/.
7730 # Remove the following and save the result in GNULIB_WARN_CFLAGS.
7732 nw
="$nw -Wunused-macros"
7736 set x
$WARN_CFLAGS; shift
7740 *" $gl_warn_item "*)
7743 gl_warn_set
="$gl_warn_set $gl_warn_item"
7747 GNULIB_WARN_CFLAGS
=$gl_warn_set
7755 # Extract the first word of "install-info", so it can be a program name with args.
7756 set dummy install-info
; ac_word
=$2
7757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7758 $as_echo_n "checking for $ac_word... " >&6; }
7759 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
7760 $as_echo_n "(cached) " >&6
7762 case $INSTALL_INFO in
7764 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
7767 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7768 for as_dir
in $PATH$PATH_SEPARATOR/usr
/sbin
$PATH_SEPARATOR/sbin
7771 test -z "$as_dir" && as_dir
=.
7772 for ac_exec_ext
in '' $ac_executable_extensions; do
7773 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7774 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
7775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7782 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
=":"
7786 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
7787 if test -n "$INSTALL_INFO"; then
7788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
7789 $as_echo "$INSTALL_INFO" >&6; }
7791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7792 $as_echo "no" >&6; }
7796 # Extract the first word of "gzip", so it can be a program name with args.
7797 set dummy
gzip; ac_word
=$2
7798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7799 $as_echo_n "checking for $ac_word... " >&6; }
7800 if test "${ac_cv_path_GZIP_PROG+set}" = set; then :
7801 $as_echo_n "(cached) " >&6
7805 ac_cv_path_GZIP_PROG
="$GZIP_PROG" # Let the user override the test with a path.
7808 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7812 test -z "$as_dir" && as_dir
=.
7813 for ac_exec_ext
in '' $ac_executable_extensions; do
7814 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7815 ac_cv_path_GZIP_PROG
="$as_dir/$ac_word$ac_exec_ext"
7816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7826 GZIP_PROG
=$ac_cv_path_GZIP_PROG
7827 if test -n "$GZIP_PROG"; then
7828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP_PROG" >&5
7829 $as_echo "$GZIP_PROG" >&6; }
7831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7832 $as_echo "no" >&6; }
7837 if test $opsys = gnu-linux
; then
7838 # Extract the first word of "paxctl", so it can be a program name with args.
7839 set dummy paxctl
; ac_word
=$2
7840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7841 $as_echo_n "checking for $ac_word... " >&6; }
7842 if test "${ac_cv_path_PAXCTL+set}" = set; then :
7843 $as_echo_n "(cached) " >&6
7847 ac_cv_path_PAXCTL
="$PAXCTL" # Let the user override the test with a path.
7850 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7851 for as_dir
in $PATH$PATH_SEPARATOR/sbin
$PATH_SEPARATOR/usr
/sbin
7854 test -z "$as_dir" && as_dir
=.
7855 for ac_exec_ext
in '' $ac_executable_extensions; do
7856 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7857 ac_cv_path_PAXCTL
="$as_dir/$ac_word$ac_exec_ext"
7858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7868 PAXCTL
=$ac_cv_path_PAXCTL
7869 if test -n "$PAXCTL"; then
7870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PAXCTL" >&5
7871 $as_echo "$PAXCTL" >&6; }
7873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7874 $as_echo "no" >&6; }
7880 ## Need makeinfo >= 4.7 (?) to build the manuals.
7881 # Extract the first word of "makeinfo", so it can be a program name with args.
7882 set dummy makeinfo
; ac_word
=$2
7883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7884 $as_echo_n "checking for $ac_word... " >&6; }
7885 if test "${ac_cv_path_MAKEINFO+set}" = set; then :
7886 $as_echo_n "(cached) " >&6
7890 ac_cv_path_MAKEINFO
="$MAKEINFO" # Let the user override the test with a path.
7893 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7897 test -z "$as_dir" && as_dir
=.
7898 for ac_exec_ext
in '' $ac_executable_extensions; do
7899 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7900 ac_cv_path_MAKEINFO
="$as_dir/$ac_word$ac_exec_ext"
7901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7908 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO
="no"
7912 MAKEINFO
=$ac_cv_path_MAKEINFO
7913 if test -n "$MAKEINFO"; then
7914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7915 $as_echo "$MAKEINFO" >&6; }
7917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7918 $as_echo "no" >&6; }
7922 if test "$MAKEINFO" != "no" && \
7923 test x
"`$MAKEINFO --version 2> /dev/null | $EGREP 'texinfo[^0-9]*([1-4][0-9]+|[5-9]|4\.[7-9]|4\.[1-6][0-9]+)'`" = x
; then
7927 ## Makeinfo is unusual. For a released Emacs, the manuals are
7928 ## pre-built, and not deleted by the normal clean rules. makeinfo is
7929 ## therefore in the category of "special tools" not normally required, which
7930 ## configure does not have to check for (eg autoconf itself).
7931 ## In a Bazaar checkout on the other hand, the manuals are not included.
7932 ## So makeinfo is a requirement to build from Bazaar, and configure
7933 ## should test for it as it does for any other build requirement.
7934 ## We use the presence of $srcdir/info/emacs to distinguish a release,
7935 ## with pre-built manuals, from a Bazaar checkout.
7938 if test "$MAKEINFO" = "no"; then
7940 if test "x${with_makeinfo}" = "xno"; then
7942 elif test ! -e $srcdir/info
/emacs
; then
7943 as_fn_error
"You do not seem to have makeinfo >= 4.7, and your
7944 source tree does not seem to have pre-built manuals in the \`info' directory.
7945 Either install a suitable version of makeinfo, or re-run configure
7946 with the \`--without-makeinfo' option to build without the manuals. " "$LINENO" 5
7952 INFO_OPTS
=--no-split
7957 if test x
$GCC = xyes
; then
7958 test "x$GCC_LINK_TEST_OPTIONS" != x
&& \
7959 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
7961 test "x$NON_GCC_LINK_TEST_OPTIONS" != x
&& \
7962 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
7966 late_LDFLAGS
=$LDFLAGS
7967 if test x
$GCC = xyes
; then
7968 LDFLAGS
="$LDFLAGS -Wl,-znocombreloc"
7970 LDFLAGS
="$LDFLAGS -znocombreloc"
7973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -znocombreloc" >&5
7974 $as_echo_n "checking for -znocombreloc... " >&6; }
7975 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7976 /* end confdefs.h. */
7986 if ac_fn_c_try_link
"$LINENO"; then :
7987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7988 $as_echo "yes" >&6; }
7990 LDFLAGS
=$late_LDFLAGS
7991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7992 $as_echo "no" >&6; }
7994 rm -f core conftest.err conftest.
$ac_objext \
7995 conftest
$ac_exeext conftest.
$ac_ext
7998 test "x$CANNOT_DUMP" = "x" && CANNOT_DUMP
=no
8000 your-opsys-here
) CANNOT_DUMP
=yes ;;
8003 test "$CANNOT_DUMP" = "yes" && \
8005 $as_echo "#define CANNOT_DUMP 1" >>confdefs.h
8011 UNEXEC_OBJ
=unexelf.o
8013 # MSDOS uses unexcoff.o
8014 # MSWindows uses unexw32.o
8016 UNEXEC_OBJ
=unexaix.o
8022 UNEXEC_OBJ
=unexmacosx.o
8025 UNEXEC_OBJ
=unexhp9k800.o
8028 # Use the Solaris dldump() function, called from unexsol.c, to dump
8029 # emacs, instead of the generic ELF dump code found in unexelf.c.
8030 # The resulting binary has a complete symbol table, and is better
8031 # for debugging and other observability tools (debuggers, pstack, etc).
8033 # If you encounter a problem using dldump(), please consider sending
8034 # a message to the OpenSolaris tools-linking mailing list:
8035 # http://mail.opensolaris.org/mailman/listinfo/tools-linking
8037 # It is likely that dldump() works with older Solaris too, but this has
8038 # not been tested, so for now this change is for Solaris 10 or newer.
8039 UNEXEC_OBJ
=unexsol.o
8046 ## Let `ld' find image libs and similar things in /usr/local/lib.
8047 ## The system compiler, GCC, has apparently been modified to not
8048 ## look there, contrary to what a stock GCC would do.
8049 ### It's not our place to do this. See bug#10313#17.
8050 ### LD_SWITCH_SYSTEM=-L/usr/local/lib
8055 ## cpp test was "ifdef __mips__", but presumably this is equivalent...
8056 case $host_cpu in mips
*) LD_SWITCH_SYSTEM
="-G 0";; esac
8060 ### It's not our place to do this. See bug#10313#17.
8061 ### LD_SWITCH_SYSTEM="-Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib"
8066 ## Han Boetes <han@mijncomputer.nl> says this is necessary,
8067 ## otherwise Emacs dumps core on elf systems.
8068 LD_SWITCH_SYSTEM
="-Z"
8073 ac_link
="$ac_link $LD_SWITCH_SYSTEM"
8075 ## This setting of LD_SWITCH_SYSTEM references LD_SWITCH_X_SITE_RPATH,
8076 ## which has not been defined yet. When this was handled with cpp,
8077 ## it was expanded to null when configure sourced the s/*.h file.
8078 ## Thus LD_SWITCH_SYSTEM had different values in configure and the Makefiles.
8079 ## FIXME it would be cleaner to put this in LD_SWITCH_SYSTEM_TEMACS
8080 ## (or somesuch), but because it is supposed to go at the _front_
8081 ## of LD_SWITCH_SYSTEM, we cannot do that in exactly the same way.
8082 ## Compare with the gnu-linux case below, which added to the end
8083 ## of LD_SWITCH_SYSTEM, and so can instead go at the front of
8084 ## LD_SWITCH_SYSTEM_TEMACS.
8087 LD_SWITCH_SYSTEM
="\$(LD_SWITCH_X_SITE_RPATH) $LD_SWITCH_SYSTEM" ;;
8094 ac_fn_c_check_decl
"$LINENO" "__ELF__" "ac_cv_have_decl___ELF__" "$ac_includes_default"
8095 if test "x$ac_cv_have_decl___ELF__" = x
""yes; then :
8099 if test "$ac_cv_have_decl___ELF__" = "yes"; then
8100 ## With ELF, make sure that all common symbols get allocated to in the
8101 ## data section. Otherwise, the dump of temacs may miss variables in
8102 ## the shared library that have been initialized. For example, with
8103 ## GNU libc, __malloc_initialized would normally be resolved to the
8104 ## shared library's .bss section, which is fatal.
8105 if test "x$GCC" = "xyes"; then
8106 C_SWITCH_MACHINE
="-fno-common"
8108 as_fn_error
"What gives? Fix me if DEC Unix supports ELF now." "$LINENO" 5
8111 UNEXEC_OBJ
=unexalpha.o
8120 ## Some programs in src produce warnings saying certain subprograms
8121 ## are too complex and need a MAXMEM value greater than 2000 for
8122 ## additional optimization. --nils@exp-math.uni-essen.de
8123 test "$opsys" = "aix4.2" && test "x$GCC" != "xyes" && \
8124 C_SWITCH_SYSTEM
="-ma -qmaxmem=4000"
8125 ## gnu-linux might need -D_BSD_SOURCE on old libc5 systems.
8126 ## It is redundant in glibc2, since we define _GNU_SOURCE.
8132 ## IBM's X11R5 uses -lIM and -liconv in AIX 3.2.2.
8133 aix4-2
) LIBS_SYSTEM
="-lrts -lIM -liconv" ;;
8135 freebsd
) LIBS_SYSTEM
="-lutil" ;;
8137 hpux
*) LIBS_SYSTEM
="-l:libdld.sl" ;;
8139 sol2
*) LIBS_SYSTEM
="-lsocket -lnsl" ;;
8141 ## Motif needs -lgen.
8142 unixware
) LIBS_SYSTEM
="-lsocket -lnsl -lelf -lgen" ;;
8147 ### Make sure subsequent tests use flags consistent with the build flags.
8149 if test x
"${OVERRIDE_CPPFLAGS}" != x
; then
8150 CPPFLAGS
="${OVERRIDE_CPPFLAGS}"
8152 CPPFLAGS
="$C_SWITCH_SYSTEM $C_SWITCH_MACHINE $CPPFLAGS"
8155 # Suppress obsolescent Autoconf test for size_t; Emacs assumes C89 or better.
8157 # Likewise for obsolescent test for uid_t, gid_t; Emacs assumes them.
8164 SYSTEM_TYPE
=`echo $opsys | sed -e 's/[0-9].*//' -e 's|-|/|'`
8169 START_FILES
='pre-crt0.o'
8172 ## Adding -lm confuses the dynamic linker, so omit it.
8174 START_FILES
='pre-crt0.o'
8177 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
8178 START_FILES
='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
8179 SYSTEM_TYPE
=berkeley-unix
8181 gnu-linux | gnu-kfreebsd
)
8182 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtn.o'
8183 START_FILES
='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o'
8185 hpux10-20 | hpux11
)
8187 START_FILES
='pre-crt0.o $(CRT_DIR)/crt0.o'
8190 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o'
8191 START_FILES
='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crtbegin.o'
8192 SYSTEM_TYPE
=berkeley-unix
8196 SYSTEM_TYPE
=usg-unix-v
8204 cat >>confdefs.h
<<_ACEOF
8205 #define SYSTEM_TYPE "$SYSTEM_TYPE"
8211 for file in x
$LIB_STANDARD $START_FILES; do
8213 *CRT_DIR
*) crt_files
="$crt_files `echo $file | sed -e 's|.*/||'`" ;;
8217 if test "x$crt_files" != x
; then
8219 ## If user specified a crt-dir, use that unconditionally.
8222 if test "X$CRT_DIR" = "X"; then
8224 CRT_DIR
=/usr
/lib
# default
8226 case "$canonical" in
8227 x86_64-
*-linux-gnu* | s390x-
*-linux-gnu*)
8228 ## On x86-64 and s390x GNU/Linux distributions, the standard library
8229 ## can be in a variety of places. We only try /usr/lib64 and /usr/lib.
8230 ## For anything else (eg /usr/lib32), it is up the user to specify
8231 ## the location (bug#5655).
8232 ## Test for crtn.o, not just the directory, because sometimes the
8233 ## directory exists but does not have the relevant files (bug#1287).
8234 ## FIXME better to test for binary compatibility somehow.
8235 test -e /usr
/lib64
/crtn.o
&& CRT_DIR
=/usr
/lib64
8238 powerpc64-
*-linux-gnu* | sparc64-
*-linux-gnu*) CRT_DIR
=/usr
/lib64
;;
8242 hpux10-20
) CRT_DIR
=/lib
;;
8245 test "x${GCC}" = xyes
&& crt_gcc
=yes
8251 for file in $crt_files; do
8253 ## If we're using gcc, try to determine it automatically by asking
8254 ## gcc. [If this doesn't work, CRT_DIR will remain at the
8255 ## system-dependent default from above.]
8256 if test $crt_gcc = yes && test ! -e $CRT_DIR/$file; then
8258 crt_file
=`$CC --print-file-name=$file 2>/dev/null`
8261 CRT_DIR
=`$as_dirname -- "$crt_file" ||
8262 $as_expr X"$crt_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8263 X"$crt_file" : 'X\(//\)[^/]' \| \
8264 X"$crt_file" : 'X\(//\)$' \| \
8265 X"$crt_file" : 'X\(/\)' \| . 2>/dev/null ||
8266 $as_echo X"$crt_file" |
8267 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8290 test -e $CRT_DIR/$file || crt_missing
="$crt_missing $file"
8293 test "x$crt_missing" = x || \
8294 as_fn_error
"Required file(s) not found:$crt_missing
8295 Try using the --with-crt-dir option." "$LINENO" 5
8297 fi # crt_files != ""
8303 if test -f $CRT_DIR/crti.o
; then
8305 test -f $CRT_DIR/crtn.o || \
8306 as_fn_error
"Required file not found: crtn.o" "$LINENO" 5
8308 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
8309 START_FILES
='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
8315 # Configure gnulib before invoking PKG_CHECK_MODULES, as the latter might
8316 # for example add -lrt to RSVG_LIBS, which would then cause gnulib to
8317 # incorrectly conclude that -lrt is not needed to link clock_gettime.
8329 LIBC_FATAL_STDERR_
=1
8330 export LIBC_FATAL_STDERR_
8332 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8333 # for constant arguments. Useless!
8334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
8335 $as_echo_n "checking for working alloca.h... " >&6; }
8336 if test "${ac_cv_working_alloca_h+set}" = set; then :
8337 $as_echo_n "(cached) " >&6
8339 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8340 /* end confdefs.h. */
8345 char *p = (char *) alloca (2 * sizeof (int));
8351 if ac_fn_c_try_link
"$LINENO"; then :
8352 ac_cv_working_alloca_h
=yes
8354 ac_cv_working_alloca_h
=no
8356 rm -f core conftest.err conftest.
$ac_objext \
8357 conftest
$ac_exeext conftest.
$ac_ext
8359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
8360 $as_echo "$ac_cv_working_alloca_h" >&6; }
8361 if test $ac_cv_working_alloca_h = yes; then
8363 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
8367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
8368 $as_echo_n "checking for alloca... " >&6; }
8369 if test "${ac_cv_func_alloca_works+set}" = set; then :
8370 $as_echo_n "(cached) " >&6
8372 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8373 /* end confdefs.h. */
8375 # define alloca __builtin_alloca
8378 # include <malloc.h>
8379 # define alloca _alloca
8381 # ifdef HAVE_ALLOCA_H
8382 # include <alloca.h>
8387 # ifndef alloca /* predefined by HP cc +Olibcalls */
8398 char *p = (char *) alloca (1);
8404 if ac_fn_c_try_link
"$LINENO"; then :
8405 ac_cv_func_alloca_works
=yes
8407 ac_cv_func_alloca_works
=no
8409 rm -f core conftest.err conftest.
$ac_objext \
8410 conftest
$ac_exeext conftest.
$ac_ext
8412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
8413 $as_echo "$ac_cv_func_alloca_works" >&6; }
8415 if test $ac_cv_func_alloca_works = yes; then
8417 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
8420 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
8421 # that cause trouble. Some versions do not even contain alloca or
8422 # contain a buggy version. If you still want to use their alloca,
8423 # use ar to extract alloca.o from them instead of compiling alloca.c.
8429 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
8431 $as_echo "#define C_ALLOCA 1" >>confdefs.h
8434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 'alloca.c' needs Cray hooks" >&5
8435 $as_echo_n "checking whether 'alloca.c' needs Cray hooks... " >&6; }
8436 if test "${ac_cv_os_cray+set}" = set; then :
8437 $as_echo_n "(cached) " >&6
8439 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8440 /* end confdefs.h. */
8441 #if defined CRAY && ! defined CRAY2
8448 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8449 $EGREP "webecray" >/dev
/null
2>&1; then :
8457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
8458 $as_echo "$ac_cv_os_cray" >&6; }
8459 if test $ac_cv_os_cray = yes; then
8460 for ac_func
in _getb67 GETB67 getb67
; do
8461 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8462 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
8463 eval as_val
=\$
$as_ac_var
8464 if test "x$as_val" = x
""yes; then :
8466 cat >>confdefs.h
<<_ACEOF
8467 #define CRAY_STACKSEG_END $ac_func
8476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
8477 $as_echo_n "checking stack direction for C alloca... " >&6; }
8478 if test "${ac_cv_c_stack_direction+set}" = set; then :
8479 $as_echo_n "(cached) " >&6
8481 if test "$cross_compiling" = yes; then :
8482 ac_cv_c_stack_direction
=0
8484 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8485 /* end confdefs.h. */
8486 $ac_includes_default
8488 find_stack_direction (int *addr, int depth)
8493 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
8494 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
8499 main (int argc, char **argv)
8501 return find_stack_direction (0, argc + !argv + 20) < 0;
8504 if ac_fn_c_try_run
"$LINENO"; then :
8505 ac_cv_c_stack_direction
=1
8507 ac_cv_c_stack_direction
=-1
8509 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8510 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
8515 $as_echo "$ac_cv_c_stack_direction" >&6; }
8516 cat >>confdefs.h
<<_ACEOF
8517 #define STACK_DIRECTION $ac_cv_c_stack_direction
8526 for ac_func
in $ac_func_list
8528 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8529 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
8530 eval as_val
=\$
$as_ac_var
8531 if test "x$as_val" = x
""yes; then :
8532 cat >>confdefs.h
<<_ACEOF
8533 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8543 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8544 if test "${ac_cv_c_bigendian+set}" = set; then :
8545 $as_echo_n "(cached) " >&6
8547 ac_cv_c_bigendian
=unknown
8548 # See if we're dealing with a universal compiler.
8549 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8550 /* end confdefs.h. */
8551 #ifndef __APPLE_CC__
8552 not a universal capable compiler
8557 if ac_fn_c_try_compile
"$LINENO"; then :
8559 # Check for potential -arch flags. It is not universal unless
8560 # there are at least two -arch flags with different values.
8563 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8564 if test -n "$ac_prev"; then
8566 i?
86 | x86_64 | ppc | ppc64
)
8567 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
8570 ac_cv_c_bigendian
=universal
8576 elif test "x$ac_word" = "x-arch"; then
8581 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8582 if test $ac_cv_c_bigendian = unknown
; then
8583 # See if sys/param.h defines the BYTE_ORDER macro.
8584 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8585 /* end confdefs.h. */
8586 #include <sys/types.h>
8587 #include <sys/param.h>
8592 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8593 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8602 if ac_fn_c_try_compile
"$LINENO"; then :
8603 # It does; now see whether it defined to BIG_ENDIAN or not.
8604 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8605 /* end confdefs.h. */
8606 #include <sys/types.h>
8607 #include <sys/param.h>
8612 #if BYTE_ORDER != BIG_ENDIAN
8620 if ac_fn_c_try_compile
"$LINENO"; then :
8621 ac_cv_c_bigendian
=yes
8623 ac_cv_c_bigendian
=no
8625 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8627 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8629 if test $ac_cv_c_bigendian = unknown
; then
8630 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8631 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8632 /* end confdefs.h. */
8638 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8646 if ac_fn_c_try_compile
"$LINENO"; then :
8647 # It does; now see whether it defined to _BIG_ENDIAN or not.
8648 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8649 /* end confdefs.h. */
8663 if ac_fn_c_try_compile
"$LINENO"; then :
8664 ac_cv_c_bigendian
=yes
8666 ac_cv_c_bigendian
=no
8668 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8670 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8672 if test $ac_cv_c_bigendian = unknown
; then
8673 # Compile a test program.
8674 if test "$cross_compiling" = yes; then :
8675 # Try to guess by grepping values from an object file.
8676 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8677 /* end confdefs.h. */
8678 short int ascii_mm[] =
8679 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8680 short int ascii_ii[] =
8681 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8682 int use_ascii (int i) {
8683 return ascii_mm[i] + ascii_ii[i];
8685 short int ebcdic_ii[] =
8686 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8687 short int ebcdic_mm[] =
8688 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8689 int use_ebcdic (int i) {
8690 return ebcdic_mm[i] + ebcdic_ii[i];
8697 return use_ascii (foo) == use_ebcdic (foo);
8702 if ac_fn_c_try_compile
"$LINENO"; then :
8703 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
8704 ac_cv_c_bigendian
=yes
8706 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
8707 if test "$ac_cv_c_bigendian" = unknown
; then
8708 ac_cv_c_bigendian
=no
8710 # finding both strings is unlikely to happen, but who knows?
8711 ac_cv_c_bigendian
=unknown
8715 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8717 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8718 /* end confdefs.h. */
8719 $ac_includes_default
8724 /* Are we little or big endian? From Harbison&Steele. */
8728 char c[sizeof (long int)];
8731 return u.c[sizeof (long int) - 1] == 1;
8737 if ac_fn_c_try_run
"$LINENO"; then :
8738 ac_cv_c_bigendian
=no
8740 ac_cv_c_bigendian
=yes
8742 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8743 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8749 $as_echo "$ac_cv_c_bigendian" >&6; }
8750 case $ac_cv_c_bigendian in #(
8752 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8758 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8762 as_fn_error
"unknown endianness
8763 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
8768 $as_echo_n "checking for inline... " >&6; }
8769 if test "${ac_cv_c_inline+set}" = set; then :
8770 $as_echo_n "(cached) " >&6
8773 for ac_kw
in inline __inline__ __inline
; do
8774 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8775 /* end confdefs.h. */
8778 static $ac_kw foo_t static_foo () {return 0; }
8779 $ac_kw foo_t foo () {return 0; }
8783 if ac_fn_c_try_compile
"$LINENO"; then :
8784 ac_cv_c_inline
=$ac_kw
8786 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8787 test "$ac_cv_c_inline" != no
&& break
8791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
8792 $as_echo "$ac_cv_c_inline" >&6; }
8794 case $ac_cv_c_inline in
8797 case $ac_cv_c_inline in
8799 *) ac_val
=$ac_cv_c_inline;;
8801 cat >>confdefs.h
<<_ACEOF
8803 #define inline $ac_val
8810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtold conforms to C99" >&5
8811 $as_echo_n "checking whether strtold conforms to C99... " >&6; }
8812 if test "${gl_cv_func_c99_strtold+set}" = set; then :
8813 $as_echo_n "(cached) " >&6
8815 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8816 /* end confdefs.h. */
8817 /* On HP-UX before 11.23, strtold returns a struct instead of
8818 long double. Reject implementations like that, by requiring
8819 compatibility with the C99 prototype. */
8821 static long double (*p) (char const *, char **) = strtold;
8823 test (char const *nptr, char **endptr)
8826 r = strtold (nptr, endptr);
8832 return test ("1.0", NULL) != 1 || p ("1.0", NULL) != 1;
8837 if ac_fn_c_try_link
"$LINENO"; then :
8838 gl_cv_func_c99_strtold
=yes
8840 gl_cv_func_c99_strtold
=no
8842 rm -f core conftest.err conftest.
$ac_objext \
8843 conftest
$ac_exeext conftest.
$ac_ext
8845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_c99_strtold" >&5
8846 $as_echo "$gl_cv_func_c99_strtold" >&6; }
8847 if test $gl_cv_func_c99_strtold = yes; then
8849 $as_echo "#define HAVE_C99_STRTOLD 1" >>confdefs.h
8861 GNULIB_EUIDACCESS
=0;
8869 GNULIB_GETDOMAINNAME
=0;
8870 GNULIB_GETDTABLESIZE
=0;
8872 GNULIB_GETHOSTNAME
=0;
8874 GNULIB_GETLOGIN_R
=0;
8875 GNULIB_GETPAGESIZE
=0;
8876 GNULIB_GETUSERSHELL
=0;
8877 GNULIB_GROUP_MEMBER
=0;
8889 GNULIB_READLINKAT
=0;
8891 GNULIB_SETHOSTNAME
=0;
8896 GNULIB_UNISTD_H_NONBLOCKING
=0;
8897 GNULIB_UNISTD_H_SIGPIPE
=0;
8912 HAVE_GETDTABLESIZE
=1;
8917 HAVE_GROUP_MEMBER
=1;
8933 HAVE_DECL_ENVIRON
=1;
8935 HAVE_DECL_FDATASYNC
=1;
8936 HAVE_DECL_GETDOMAINNAME
=1;
8937 HAVE_DECL_GETLOGIN_R
=1;
8938 HAVE_DECL_GETPAGESIZE
=1;
8939 HAVE_DECL_GETUSERSHELL
=1;
8940 HAVE_DECL_SETHOSTNAME
=1;
8941 HAVE_DECL_TTYNAME_R
=1;
8949 REPLACE_FTRUNCATE
=0;
8951 REPLACE_GETDOMAINNAME
=0;
8952 REPLACE_GETLOGIN_R
=0;
8953 REPLACE_GETGROUPS
=0;
8954 REPLACE_GETPAGESIZE
=0;
8967 REPLACE_TTYNAME_R
=0;
8972 UNISTD_H_HAVE_WINSOCK2_H
=0;
8973 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
=0;
8976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_dm_mode in struct stat" >&5
8977 $as_echo_n "checking for st_dm_mode in struct stat... " >&6; }
8978 if test "${ac_cv_struct_st_dm_mode+set}" = set; then :
8979 $as_echo_n "(cached) " >&6
8981 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8982 /* end confdefs.h. */
8984 #include <sys/types.h>
8985 #include <sys/stat.h>
8989 struct stat s; s.st_dm_mode;
8994 if ac_fn_c_try_compile
"$LINENO"; then :
8995 ac_cv_struct_st_dm_mode
=yes
8997 ac_cv_struct_st_dm_mode
=no
8999 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_st_dm_mode" >&5
9002 $as_echo "$ac_cv_struct_st_dm_mode" >&6; }
9004 if test $ac_cv_struct_st_dm_mode = yes; then
9006 $as_echo "#define HAVE_ST_DM_MODE 1" >>confdefs.h
9011 ac_fn_c_check_decl
"$LINENO" "strmode" "ac_cv_have_decl_strmode" "$ac_includes_default"
9012 if test "x$ac_cv_have_decl_strmode" = x
""yes; then :
9018 cat >>confdefs.h
<<_ACEOF
9019 #define HAVE_DECL_STRMODE $ac_have_decl
9025 GNULIB_CALLOC_POSIX
=0;
9026 GNULIB_CANONICALIZE_FILE_NAME
=0;
9027 GNULIB_GETLOADAVG
=0;
9030 GNULIB_MALLOC_POSIX
=0;
9037 GNULIB_POSIX_OPENPT
=0;
9043 GNULIB_REALLOC_POSIX
=0;
9050 GNULIB_SYSTEM_POSIX
=0;
9056 HAVE_CANONICALIZE_FILE_NAME
=1;
9057 HAVE_DECL_GETLOADAVG
=1;
9065 HAVE_POSIX_OPENPT
=1;
9078 HAVE_STRUCT_RANDOM_DATA
=1;
9079 HAVE_SYS_LOADAVG_H
=0;
9081 HAVE_DECL_UNSETENV
=1;
9083 REPLACE_CANONICALIZE_FILE_NAME
=0;
9087 REPLACE_PTSNAME_R
=0;
9099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
9100 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
9101 if test "${gl_cv_have_include_next+set}" = set; then :
9102 $as_echo_n "(cached) " >&6
9104 rm -rf conftestd1a conftestd1b conftestd2
9105 mkdir conftestd1a conftestd1b conftestd2
9106 cat <<EOF > conftestd1a/conftest.h
9107 #define DEFINED_IN_CONFTESTD1
9108 #include_next <conftest.h>
9109 #ifdef DEFINED_IN_CONFTESTD2
9112 #error "include_next doesn't work"
9115 cat <<EOF > conftestd1b/conftest.h
9116 #define DEFINED_IN_CONFTESTD1
9118 #include_next <conftest.h>
9119 #ifdef DEFINED_IN_CONFTESTD2
9122 #error "include_next doesn't work"
9125 cat <<EOF > conftestd2/conftest.h
9126 #ifndef DEFINED_IN_CONFTESTD1
9127 #error "include_next test doesn't work"
9129 #define DEFINED_IN_CONFTESTD2
9131 gl_save_CPPFLAGS
="$CPPFLAGS"
9132 CPPFLAGS
="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
9133 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9134 /* end confdefs.h. */
9135 #include <conftest.h>
9137 if ac_fn_c_try_compile
"$LINENO"; then :
9138 gl_cv_have_include_next
=yes
9140 CPPFLAGS
="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
9141 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9142 /* end confdefs.h. */
9143 #include <conftest.h>
9145 if ac_fn_c_try_compile
"$LINENO"; then :
9146 gl_cv_have_include_next
=buggy
9148 gl_cv_have_include_next
=no
9150 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9153 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9154 CPPFLAGS
="$gl_save_CPPFLAGS"
9155 rm -rf conftestd1a conftestd1b conftestd2
9158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
9159 $as_echo "$gl_cv_have_include_next" >&6; }
9160 PRAGMA_SYSTEM_HEADER
=
9161 if test $gl_cv_have_include_next = yes; then
9162 INCLUDE_NEXT
=include_next
9163 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include_next
9164 if test -n "$GCC"; then
9165 PRAGMA_SYSTEM_HEADER
='#pragma GCC system_header'
9168 if test $gl_cv_have_include_next = buggy
; then
9169 INCLUDE_NEXT
=include
9170 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include_next
9172 INCLUDE_NEXT
=include
9173 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include
9179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
9180 $as_echo_n "checking whether system header files limit the line length... " >&6; }
9181 if test "${gl_cv_pragma_columns+set}" = set; then :
9182 $as_echo_n "(cached) " >&6
9184 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9185 /* end confdefs.h. */
9192 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9193 $EGREP "choke me" >/dev
/null
2>&1; then :
9194 gl_cv_pragma_columns
=yes
9196 gl_cv_pragma_columns
=no
9202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
9203 $as_echo "$gl_cv_pragma_columns" >&6; }
9204 if test $gl_cv_pragma_columns = yes; then
9205 PRAGMA_COLUMNS
="#pragma COLUMNS 10000"
9214 for ac_header
in $ac_header_list
9216 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9217 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9219 eval as_val
=\$
$as_ac_Header
9220 if test "x$as_val" = x
""yes; then :
9221 cat >>confdefs.h
<<_ACEOF
9222 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9244 if test $gl_cv_have_include_next = yes; then
9245 gl_cv_next_getopt_h
='<'getopt.h
'>'
9247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <getopt.h>" >&5
9248 $as_echo_n "checking absolute name of <getopt.h>... " >&6; }
9249 if test "${gl_cv_next_getopt_h+set}" = set; then :
9250 $as_echo_n "(cached) " >&6
9253 if test $ac_cv_header_getopt_h = yes; then
9256 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9257 /* end confdefs.h. */
9262 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
9263 *) gl_absname_cpp
="$ac_cpp" ;;
9268 gl_dirsep_regex
='[/\\]'
9271 gl_dirsep_regex
='\/'
9274 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
9276 gl_header_literal_regex
=`echo 'getopt.h' \
9277 | sed -e "$gl_make_literal_regex_sed"`
9278 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
9279 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
9284 gl_cv_next_getopt_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
9285 sed -n "$gl_absolute_header_sed"`'"'
9287 gl_cv_next_getopt_h
='<'getopt.h
'>'
9292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_getopt_h" >&5
9293 $as_echo "$gl_cv_next_getopt_h" >&6; }
9295 NEXT_GETOPT_H
=$gl_cv_next_getopt_h
9297 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
9298 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
9299 gl_next_as_first_directive
='<'getopt.h
'>'
9301 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
9302 gl_next_as_first_directive
=$gl_cv_next_getopt_h
9304 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
=$gl_next_as_first_directive
9309 if test $ac_cv_header_getopt_h = yes; then
9318 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU
; then
9319 for ac_header
in getopt.h
9321 ac_fn_c_check_header_mongrel
"$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
9322 if test "x$ac_cv_header_getopt_h" = x
""yes; then :
9323 cat >>confdefs.h
<<_ACEOF
9324 #define HAVE_GETOPT_H 1
9328 gl_replace_getopt
=yes
9335 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU
; then
9336 for ac_func
in getopt_long_only
9338 ac_fn_c_check_func
"$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
9339 if test "x$ac_cv_func_getopt_long_only" = x
""yes; then :
9340 cat >>confdefs.h
<<_ACEOF
9341 #define HAVE_GETOPT_LONG_ONLY 1
9345 gl_replace_getopt
=yes
9351 if test -z "$gl_replace_getopt"; then
9352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt is POSIX compatible" >&5
9353 $as_echo_n "checking whether getopt is POSIX compatible... " >&6; }
9354 if test "${gl_cv_func_getopt_posix+set}" = set; then :
9355 $as_echo_n "(cached) " >&6
9358 if test $cross_compiling = no
; then
9359 if test "$cross_compiling" = yes; then :
9360 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9361 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9362 as_fn_error
"cannot run test program while cross compiling
9363 See \`config.log' for more details." "$LINENO" 5; }
9365 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9366 /* end confdefs.h. */
9375 static char program[] = "program";
9376 static char a[] = "-a";
9377 static char foo[] = "foo";
9378 static char bar[] = "bar";
9379 char *argv[] = { program, a, foo, bar, NULL };
9382 c = getopt (4, argv, "ab");
9385 c = getopt (4, argv, "ab");
9394 if ac_fn_c_try_run
"$LINENO"; then :
9395 gl_cv_func_getopt_posix
=maybe
9397 gl_cv_func_getopt_posix
=no
9399 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9400 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9403 if test $gl_cv_func_getopt_posix = maybe
; then
9404 if test "$cross_compiling" = yes; then :
9405 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9406 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9407 as_fn_error
"cannot run test program while cross compiling
9408 See \`config.log' for more details." "$LINENO" 5; }
9410 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9411 /* end confdefs.h. */
9420 static char program[] = "program";
9421 static char donald[] = "donald";
9422 static char p[] = "-p";
9423 static char billy[] = "billy";
9424 static char duck[] = "duck";
9425 static char a[] = "-a";
9426 static char bar[] = "bar";
9427 char *argv[] = { program, donald, p, billy, duck, a, bar, NULL };
9430 c = getopt (7, argv, "+abp:q:");
9433 if (!(strcmp (argv[0], "program") == 0))
9435 if (!(strcmp (argv[1], "donald") == 0))
9437 if (!(strcmp (argv[2], "-p") == 0))
9439 if (!(strcmp (argv[3], "billy") == 0))
9441 if (!(strcmp (argv[4], "duck") == 0))
9443 if (!(strcmp (argv[5], "-a") == 0))
9445 if (!(strcmp (argv[6], "bar") == 0))
9453 if ac_fn_c_try_run
"$LINENO"; then :
9454 gl_cv_func_getopt_posix
=maybe
9456 gl_cv_func_getopt_posix
=no
9458 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9459 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9463 if test $gl_cv_func_getopt_posix = maybe
; then
9464 if test "$cross_compiling" = yes; then :
9465 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9466 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9467 as_fn_error
"cannot run test program while cross compiling
9468 See \`config.log' for more details." "$LINENO" 5; }
9470 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9471 /* end confdefs.h. */
9480 static char program[] = "program";
9481 static char ab[] = "-ab";
9482 char *argv[3] = { program, ab, NULL };
9483 if (getopt (2, argv, "ab:") != 'a')
9485 if (getopt (2, argv, "ab:") != '?')
9495 if ac_fn_c_try_run
"$LINENO"; then :
9496 gl_cv_func_getopt_posix
=yes
9498 gl_cv_func_getopt_posix
=no
9500 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9501 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9507 darwin
* | aix
* | mingw
*) gl_cv_func_getopt_posix
="guessing no";;
9508 *) gl_cv_func_getopt_posix
="guessing yes";;
9513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_posix" >&5
9514 $as_echo "$gl_cv_func_getopt_posix" >&6; }
9515 case "$gl_cv_func_getopt_posix" in
9516 *no
) gl_replace_getopt
=yes ;;
9520 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU
; then
9521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
9522 $as_echo_n "checking for working GNU getopt function... " >&6; }
9523 if test "${gl_cv_func_getopt_gnu+set}" = set; then :
9524 $as_echo_n "(cached) " >&6
9526 # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the
9527 # optstring is necessary for programs like m4 that have POSIX-mandated
9528 # semantics for supporting options interspersed with files.
9529 # Also, since getopt_long is a GNU extension, we require optind=0.
9530 # Bash ties 'set -o posix' to a non-exported POSIXLY_CORRECT;
9531 # so take care to revert to the correct (non-)export state.
9532 gl_awk_probe
='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }'
9533 case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" </dev/null` in
9534 xx
) gl_had_POSIXLY_CORRECT
=exported
;;
9535 x
) gl_had_POSIXLY_CORRECT
=yes ;;
9536 *) gl_had_POSIXLY_CORRECT
= ;;
9539 export POSIXLY_CORRECT
9540 if test "$cross_compiling" = yes; then :
9541 gl_cv_func_getopt_gnu
="guessing no"
9544 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9545 /* end confdefs.h. */
9551 #if defined __MACH__ && defined __APPLE__
9552 /* Avoid a crash on Mac OS X. */
9553 #include <mach/mach.h>
9554 #include <mach/mach_error.h>
9555 #include <mach/thread_status.h>
9556 #include <mach/exception.h>
9557 #include <mach/task.h>
9558 #include <pthread.h>
9559 /* The exception port on which our thread listens. */
9560 static mach_port_t our_exception_port;
9561 /* The main function of the thread listening for exceptions of type
9564 mach_exception_thread (void *arg)
9566 /* Buffer for a message to be received. */
9568 mach_msg_header_t head;
9569 mach_msg_body_t msgh_body;
9572 mach_msg_return_t retval;
9573 /* Wait for a message on the exception port. */
9574 retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
9575 our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
9576 if (retval != MACH_MSG_SUCCESS)
9583 mach_port_t self = mach_task_self ();
9584 /* Allocate a port on which the thread shall listen for exceptions. */
9585 if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
9587 /* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html. */
9588 if (mach_port_insert_right (self, our_exception_port, our_exception_port,
9589 MACH_MSG_TYPE_MAKE_SEND)
9591 /* The exceptions we want to catch. Only EXC_BAD_ACCESS is interesting
9593 exception_mask_t mask = EXC_MASK_BAD_ACCESS;
9594 /* Create the thread listening on the exception port. */
9595 pthread_attr_t attr;
9597 if (pthread_attr_init (&attr) == 0
9598 && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
9599 && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
9600 pthread_attr_destroy (&attr);
9601 /* Replace the exception port info for these exceptions with our own.
9602 Note that we replace the exception port for the entire task, not only
9603 for a particular thread. This has the effect that when our exception
9604 port gets the message, the thread specific exception port has already
9605 been asked, and we don't need to bother about it.
9606 See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html. */
9607 task_set_exception_ports (self, mask, our_exception_port,
9608 EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
9613 #elif (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
9614 /* Avoid a crash on native Windows. */
9615 #define WIN32_LEAN_AND_MEAN
9616 #include <windows.h>
9617 #include <winerror.h>
9619 exception_filter (EXCEPTION_POINTERS *ExceptionInfo)
9621 switch (ExceptionInfo->ExceptionRecord->ExceptionCode)
9623 case EXCEPTION_ACCESS_VIOLATION:
9624 case EXCEPTION_IN_PAGE_ERROR:
9625 case EXCEPTION_STACK_OVERFLOW:
9626 case EXCEPTION_GUARD_PAGE:
9627 case EXCEPTION_PRIV_INSTRUCTION:
9628 case EXCEPTION_ILLEGAL_INSTRUCTION:
9629 case EXCEPTION_DATATYPE_MISALIGNMENT:
9630 case EXCEPTION_ARRAY_BOUNDS_EXCEEDED:
9631 case EXCEPTION_NONCONTINUABLE_EXCEPTION:
9634 return EXCEPTION_CONTINUE_SEARCH;
9639 SetUnhandledExceptionFilter ((LPTOP_LEVEL_EXCEPTION_FILTER) exception_filter);
9642 /* Avoid a crash on POSIX systems. */
9644 /* A POSIX signal handler. */
9646 exception_handler (int sig)
9654 signal (SIGSEGV, exception_handler);
9657 signal (SIGBUS, exception_handler);
9671 /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
9672 and fails on Mac OS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
9673 OSF/1 5.1, Solaris 10. */
9675 static char conftest[] = "conftest";
9676 static char plus[] = "-+";
9677 char *argv[3] = { conftest, plus, NULL };
9679 if (getopt (2, argv, "+a") != '?')
9682 /* This code succeeds on glibc 2.8, mingw,
9683 and fails on Mac OS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
9684 IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x. */
9686 static char program[] = "program";
9687 static char p[] = "-p";
9688 static char foo[] = "foo";
9689 static char bar[] = "bar";
9690 char *argv[] = { program, p, foo, bar, NULL };
9693 if (getopt (4, argv, "p::") != 'p')
9695 else if (optarg != NULL)
9697 else if (getopt (4, argv, "p::") != -1)
9699 else if (optind != 2)
9702 /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0. */
9704 static char program[] = "program";
9705 static char foo[] = "foo";
9706 static char p[] = "-p";
9707 char *argv[] = { program, foo, p, NULL };
9709 if (getopt (3, argv, "-p") != 1)
9711 else if (getopt (3, argv, "-p") != 'p')
9714 /* This code fails on glibc 2.11. */
9716 static char program[] = "program";
9717 static char b[] = "-b";
9718 static char a[] = "-a";
9719 char *argv[] = { program, b, a, NULL };
9720 optind = opterr = 0;
9721 if (getopt (3, argv, "+:a:b") != 'b')
9723 else if (getopt (3, argv, "+:a:b") != ':')
9726 /* This code dumps core on glibc 2.14. */
9728 static char program[] = "program";
9729 static char w[] = "-W";
9730 static char dummy[] = "dummy";
9731 char *argv[] = { program, w, dummy, NULL };
9732 optind = opterr = 1;
9733 if (getopt (3, argv, "W;") != 'W')
9742 if ac_fn_c_try_run
"$LINENO"; then :
9743 gl_cv_func_getopt_gnu
=yes
9745 gl_cv_func_getopt_gnu
=no
9747 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9748 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9751 case $gl_had_POSIXLY_CORRECT in
9753 yes) { POSIXLY_CORRECT
=; unset POSIXLY_CORRECT
;}; POSIXLY_CORRECT
=1 ;;
9754 *) { POSIXLY_CORRECT
=; unset POSIXLY_CORRECT
;} ;;
9758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_gnu" >&5
9759 $as_echo "$gl_cv_func_getopt_gnu" >&6; }
9760 if test "$gl_cv_func_getopt_gnu" != yes; then
9761 gl_replace_getopt
=yes
9763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt_long function" >&5
9764 $as_echo_n "checking for working GNU getopt_long function... " >&6; }
9765 if test "${gl_cv_func_getopt_long_gnu+set}" = set; then :
9766 $as_echo_n "(cached) " >&6
9768 if test "$cross_compiling" = yes; then :
9770 openbsd
*) gl_cv_func_getopt_long_gnu
="guessing no";;
9771 *) gl_cv_func_getopt_long_gnu
="guessing yes";;
9775 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9776 /* end confdefs.h. */
9784 static const struct option long_options[] =
9786 { "xtremely-",no_argument, NULL, 1003 },
9787 { "xtra", no_argument, NULL, 1001 },
9788 { "xtreme", no_argument, NULL, 1002 },
9789 { "xtremely", no_argument, NULL, 1003 },
9790 { NULL, 0, NULL, 0 }
9792 /* This code fails on OpenBSD 5.0. */
9794 static char program[] = "program";
9795 static char xtremel[] = "--xtremel";
9796 char *argv[] = { program, xtremel, NULL };
9798 optind = 1; opterr = 0;
9799 if (getopt_long (2, argv, "", long_options, &option_index) != 1003)
9808 if ac_fn_c_try_run
"$LINENO"; then :
9809 gl_cv_func_getopt_long_gnu
=yes
9811 gl_cv_func_getopt_long_gnu
=no
9813 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9814 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_long_gnu" >&5
9820 $as_echo "$gl_cv_func_getopt_long_gnu" >&6; }
9821 case "$gl_cv_func_getopt_long_gnu" in
9823 *) gl_replace_getopt
=yes ;;
9835 if test -n "$gl_replace_getopt"; then :
9842 if test $REPLACE_GETOPT = 1; then
9846 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
9852 ac_fn_c_check_decl
"$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
9853 if test "x$ac_cv_have_decl_getenv" = x
""yes; then :
9859 cat >>confdefs.h
<<_ACEOF
9860 #define HAVE_DECL_GETENV $ac_have_decl
9870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
9871 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
9872 if test "${ac_cv_c_restrict+set}" = set; then :
9873 $as_echo_n "(cached) " >&6
9876 # The order here caters to the fact that C++ does not require restrict.
9877 for ac_kw
in __restrict __restrict__ _Restrict restrict
; do
9878 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9879 /* end confdefs.h. */
9880 typedef int * int_ptr;
9881 int foo (int_ptr $ac_kw ip) {
9895 if ac_fn_c_try_compile
"$LINENO"; then :
9896 ac_cv_c_restrict
=$ac_kw
9898 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9899 test "$ac_cv_c_restrict" != no
&& break
9903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
9904 $as_echo "$ac_cv_c_restrict" >&6; }
9906 case $ac_cv_c_restrict in
9908 no
) $as_echo "#define restrict /**/" >>confdefs.h
9910 *) cat >>confdefs.h
<<_ACEOF
9911 #define restrict $ac_cv_c_restrict
9917 GNULIB_GETTIMEOFDAY
=0;
9918 HAVE_GETTIMEOFDAY
=1;
9919 HAVE_STRUCT_TIMEVAL
=1;
9921 REPLACE_GETTIMEOFDAY
=0;
9922 REPLACE_STRUCT_TIMEVAL
=0;
9941 if test $gl_cv_have_include_next = yes; then
9942 gl_cv_next_sys_time_h
='<'sys
/time.h
'>'
9944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/time.h>" >&5
9945 $as_echo_n "checking absolute name of <sys/time.h>... " >&6; }
9946 if test "${gl_cv_next_sys_time_h+set}" = set; then :
9947 $as_echo_n "(cached) " >&6
9950 if test $ac_cv_header_sys_time_h = yes; then
9953 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9954 /* end confdefs.h. */
9955 #include <sys/time.h>
9959 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
9960 *) gl_absname_cpp
="$ac_cpp" ;;
9965 gl_dirsep_regex
='[/\\]'
9968 gl_dirsep_regex
='\/'
9971 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
9973 gl_header_literal_regex
=`echo 'sys/time.h' \
9974 | sed -e "$gl_make_literal_regex_sed"`
9975 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
9976 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
9981 gl_cv_next_sys_time_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
9982 sed -n "$gl_absolute_header_sed"`'"'
9984 gl_cv_next_sys_time_h
='<'sys
/time.h
'>'
9989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_time_h" >&5
9990 $as_echo "$gl_cv_next_sys_time_h" >&6; }
9992 NEXT_SYS_TIME_H
=$gl_cv_next_sys_time_h
9994 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
9995 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
9996 gl_next_as_first_directive
='<'sys
/time.h
'>'
9998 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
9999 gl_next_as_first_directive
=$gl_cv_next_sys_time_h
10001 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H
=$gl_next_as_first_directive
10007 if test $ac_cv_header_sys_time_h != yes; then
10015 if test $ac_cv_header_sys_socket_h != yes; then
10016 for ac_header
in winsock2.h
10018 ac_fn_c_check_header_mongrel
"$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
10019 if test "x$ac_cv_header_winsock2_h" = x
""yes; then :
10020 cat >>confdefs.h
<<_ACEOF
10021 #define HAVE_WINSOCK2_H 1
10029 if test "$ac_cv_header_winsock2_h" = yes; then
10031 UNISTD_H_HAVE_WINSOCK2_H
=1
10032 SYS_IOCTL_H_HAVE_WINSOCK2_H
=1
10038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
10039 $as_echo_n "checking for struct timeval... " >&6; }
10040 if test "${gl_cv_sys_struct_timeval+set}" = set; then :
10041 $as_echo_n "(cached) " >&6
10043 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10044 /* end confdefs.h. */
10045 #if HAVE_SYS_TIME_H
10046 #include <sys/time.h>
10049 #if HAVE_WINSOCK2_H
10050 # include <winsock2.h>
10056 static struct timeval x; x.tv_sec = x.tv_usec;
10061 if ac_fn_c_try_compile
"$LINENO"; then :
10062 gl_cv_sys_struct_timeval
=yes
10064 gl_cv_sys_struct_timeval
=no
10066 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval" >&5
10070 $as_echo "$gl_cv_sys_struct_timeval" >&6; }
10071 if test $gl_cv_sys_struct_timeval != yes; then
10072 HAVE_STRUCT_TIMEVAL
=0
10074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wide-enough struct timeval.tv_sec member" >&5
10075 $as_echo_n "checking for wide-enough struct timeval.tv_sec member... " >&6; }
10076 if test "${gl_cv_sys_struct_timeval_tv_sec+set}" = set; then :
10077 $as_echo_n "(cached) " >&6
10079 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10080 /* end confdefs.h. */
10081 #if HAVE_SYS_TIME_H
10082 #include <sys/time.h>
10085 #if HAVE_WINSOCK2_H
10086 # include <winsock2.h>
10092 static struct timeval x;
10093 typedef int verify_tv_sec_type[
10094 sizeof (time_t) <= sizeof x.tv_sec ? 1 : -1
10101 if ac_fn_c_try_compile
"$LINENO"; then :
10102 gl_cv_sys_struct_timeval_tv_sec
=yes
10104 gl_cv_sys_struct_timeval_tv_sec
=no
10106 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval_tv_sec" >&5
10110 $as_echo "$gl_cv_sys_struct_timeval_tv_sec" >&6; }
10111 if test $gl_cv_sys_struct_timeval_tv_sec != yes; then
10112 REPLACE_STRUCT_TIMEVAL
=1
10122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
10123 $as_echo_n "checking for unsigned long long int... " >&6; }
10124 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
10125 $as_echo_n "(cached) " >&6
10127 ac_cv_type_unsigned_long_long_int
=yes
10128 if test "x${ac_cv_prog_cc_c99-no}" = xno
; then
10129 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10130 /* end confdefs.h. */
10132 /* For now, do not test the preprocessor; as of 2007 there are too many
10133 implementations with broken preprocessors. Perhaps this can
10134 be revisited in 2012. In the meantime, code should not expect
10135 #if to work with literals wider than 32 bits. */
10136 /* Test literals. */
10137 long long int ll = 9223372036854775807ll;
10138 long long int nll = -9223372036854775807LL;
10139 unsigned long long int ull = 18446744073709551615ULL;
10140 /* Test constant expressions. */
10141 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
10143 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
10149 /* Test availability of runtime routines for shift and division. */
10150 long long int llmax = 9223372036854775807ll;
10151 unsigned long long int ullmax = 18446744073709551615ull;
10152 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
10153 | (llmax / ll) | (llmax % ll)
10154 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
10155 | (ullmax / ull) | (ullmax % ull));
10161 if ac_fn_c_try_link
"$LINENO"; then :
10164 ac_cv_type_unsigned_long_long_int
=no
10166 rm -f core conftest.err conftest.
$ac_objext \
10167 conftest
$ac_exeext conftest.
$ac_ext
10170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
10171 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
10172 if test $ac_cv_type_unsigned_long_long_int = yes; then
10174 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
10180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
10181 $as_echo_n "checking for long long int... " >&6; }
10182 if test "${ac_cv_type_long_long_int+set}" = set; then :
10183 $as_echo_n "(cached) " >&6
10185 ac_cv_type_long_long_int
=yes
10186 if test "x${ac_cv_prog_cc_c99-no}" = xno
; then
10187 ac_cv_type_long_long_int
=$ac_cv_type_unsigned_long_long_int
10188 if test $ac_cv_type_long_long_int = yes; then
10189 if test "$cross_compiling" = yes; then :
10192 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10193 /* end confdefs.h. */
10194 #include <limits.h>
10197 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
10198 # define LLONG_MAX (HALF - 1 + HALF)
10203 long long int n = 1;
10207 long long int m = n << i;
10210 if (LLONG_MAX / 2 < m)
10218 if ac_fn_c_try_run
"$LINENO"; then :
10221 ac_cv_type_long_long_int
=no
10223 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10224 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
10231 $as_echo "$ac_cv_type_long_long_int" >&6; }
10232 if test $ac_cv_type_long_long_int = yes; then
10234 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
10243 gl_cv_c_multiarch
=no
10244 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10245 /* end confdefs.h. */
10246 #ifndef __APPLE_CC__
10247 not a universal capable compiler
10252 if ac_fn_c_try_compile
"$LINENO"; then :
10256 for word
in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
10257 if test -n "$prev"; then
10259 i?
86 | x86_64 | ppc | ppc64
)
10260 if test -z "$arch" ||
test "$arch" = "$word"; then
10263 gl_cv_c_multiarch
=yes
10269 if test "x$word" = "x-arch"; then
10276 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10277 if test $gl_cv_c_multiarch = yes; then
10278 APPLE_UNIVERSAL_BUILD
=1
10280 APPLE_UNIVERSAL_BUILD
=0
10287 if test $ac_cv_type_long_long_int = yes; then
10288 HAVE_LONG_LONG_INT
=1
10290 HAVE_LONG_LONG_INT
=0
10294 if test $ac_cv_type_unsigned_long_long_int = yes; then
10295 HAVE_UNSIGNED_LONG_LONG_INT
=1
10297 HAVE_UNSIGNED_LONG_LONG_INT
=0
10302 if test $ac_cv_header_wchar_h = yes; then
10309 if test $ac_cv_header_inttypes_h = yes; then
10316 if test $ac_cv_header_sys_types_h = yes; then
10332 if test $gl_cv_have_include_next = yes; then
10333 gl_cv_next_stdint_h
='<'stdint.h
'>'
10335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
10336 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
10337 if test "${gl_cv_next_stdint_h+set}" = set; then :
10338 $as_echo_n "(cached) " >&6
10341 if test $ac_cv_header_stdint_h = yes; then
10344 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10345 /* end confdefs.h. */
10346 #include <stdint.h>
10350 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
10351 *) gl_absname_cpp
="$ac_cpp" ;;
10356 gl_dirsep_regex
='[/\\]'
10359 gl_dirsep_regex
='\/'
10362 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
10364 gl_header_literal_regex
=`echo 'stdint.h' \
10365 | sed -e "$gl_make_literal_regex_sed"`
10366 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
10367 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
10372 gl_cv_next_stdint_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
10373 sed -n "$gl_absolute_header_sed"`'"'
10375 gl_cv_next_stdint_h
='<'stdint.h
'>'
10380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
10381 $as_echo "$gl_cv_next_stdint_h" >&6; }
10383 NEXT_STDINT_H
=$gl_cv_next_stdint_h
10385 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
10386 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
10387 gl_next_as_first_directive
='<'stdint.h
'>'
10389 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
10390 gl_next_as_first_directive
=$gl_cv_next_stdint_h
10392 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
=$gl_next_as_first_directive
10397 if test $ac_cv_header_stdint_h = yes; then
10404 if test $ac_cv_header_stdint_h = yes; then
10405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
10406 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
10407 if test "${gl_cv_header_working_stdint_h+set}" = set; then :
10408 $as_echo_n "(cached) " >&6
10410 gl_cv_header_working_stdint_h
=no
10411 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10412 /* end confdefs.h. */
10415 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
10416 #include <stdint.h>
10417 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
10418 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
10419 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
10423 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
10424 included before <wchar.h>. */
10425 #include <stddef.h>
10426 #include <signal.h>
10428 # include <stdio.h>
10430 # include <wchar.h>
10435 int8_t a1 = INT8_MAX;
10436 int8_t a1min = INT8_MIN;
10439 int16_t a2 = INT16_MAX;
10440 int16_t a2min = INT16_MIN;
10443 int32_t a3 = INT32_MAX;
10444 int32_t a3min = INT32_MIN;
10447 int64_t a4 = INT64_MAX;
10448 int64_t a4min = INT64_MIN;
10451 uint8_t b1 = UINT8_MAX;
10453 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
10456 uint16_t b2 = UINT16_MAX;
10459 uint32_t b3 = UINT32_MAX;
10462 uint64_t b4 = UINT64_MAX;
10464 int_least8_t c1 = INT8_C (0x7f);
10465 int_least8_t c1max = INT_LEAST8_MAX;
10466 int_least8_t c1min = INT_LEAST8_MIN;
10467 int_least16_t c2 = INT16_C (0x7fff);
10468 int_least16_t c2max = INT_LEAST16_MAX;
10469 int_least16_t c2min = INT_LEAST16_MIN;
10470 int_least32_t c3 = INT32_C (0x7fffffff);
10471 int_least32_t c3max = INT_LEAST32_MAX;
10472 int_least32_t c3min = INT_LEAST32_MIN;
10473 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
10474 int_least64_t c4max = INT_LEAST64_MAX;
10475 int_least64_t c4min = INT_LEAST64_MIN;
10476 uint_least8_t d1 = UINT8_C (0xff);
10477 uint_least8_t d1max = UINT_LEAST8_MAX;
10478 uint_least16_t d2 = UINT16_C (0xffff);
10479 uint_least16_t d2max = UINT_LEAST16_MAX;
10480 uint_least32_t d3 = UINT32_C (0xffffffff);
10481 uint_least32_t d3max = UINT_LEAST32_MAX;
10482 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
10483 uint_least64_t d4max = UINT_LEAST64_MAX;
10484 int_fast8_t e1 = INT_FAST8_MAX;
10485 int_fast8_t e1min = INT_FAST8_MIN;
10486 int_fast16_t e2 = INT_FAST16_MAX;
10487 int_fast16_t e2min = INT_FAST16_MIN;
10488 int_fast32_t e3 = INT_FAST32_MAX;
10489 int_fast32_t e3min = INT_FAST32_MIN;
10490 int_fast64_t e4 = INT_FAST64_MAX;
10491 int_fast64_t e4min = INT_FAST64_MIN;
10492 uint_fast8_t f1 = UINT_FAST8_MAX;
10493 uint_fast16_t f2 = UINT_FAST16_MAX;
10494 uint_fast32_t f3 = UINT_FAST32_MAX;
10495 uint_fast64_t f4 = UINT_FAST64_MAX;
10497 intptr_t g = INTPTR_MAX;
10498 intptr_t gmin = INTPTR_MIN;
10501 uintptr_t h = UINTPTR_MAX;
10503 intmax_t i = INTMAX_MAX;
10504 uintmax_t j = UINTMAX_MAX;
10506 #include <limits.h> /* for CHAR_BIT */
10507 #define TYPE_MINIMUM(t) \
10508 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
10509 #define TYPE_MAXIMUM(t) \
10510 ((t) ((t) 0 < (t) -1 \
10512 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
10515 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
10516 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
10518 /* Detect bug in FreeBSD 6.0 / ia64. */
10519 int check_SIG_ATOMIC:
10520 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
10521 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
10523 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
10525 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
10526 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
10528 /* Detect bug in mingw. */
10530 WINT_MIN == TYPE_MINIMUM (wint_t)
10531 && WINT_MAX == TYPE_MAXIMUM (wint_t)
10534 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
10536 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
10537 int check_UINT16_C:
10538 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
10540 /* Detect bugs in OpenBSD 3.9 stdint.h. */
10542 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
10545 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
10548 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
10551 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
10553 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
10554 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
10555 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
10556 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
10557 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
10558 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
10559 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
10560 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
10561 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
10562 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
10563 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
10574 if ac_fn_c_try_compile
"$LINENO"; then :
10575 if test "$cross_compiling" = yes; then :
10576 gl_cv_header_working_stdint_h
=yes
10579 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10580 /* end confdefs.h. */
10583 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
10584 #include <stdint.h>
10587 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
10588 included before <wchar.h>. */
10589 #include <stddef.h>
10590 #include <signal.h>
10592 # include <stdio.h>
10594 # include <wchar.h>
10599 #include <string.h>
10600 #define MVAL(macro) MVAL1(macro)
10601 #define MVAL1(expression) #expression
10602 static const char *macro_values[] =
10636 for (mv = macro_values; *mv != NULL; mv++)
10638 const char *value = *mv;
10639 /* Test whether it looks like a cast expression. */
10640 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
10641 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
10642 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
10643 || strncmp (value, "((int)"/*)*/, 6) == 0
10644 || strncmp (value, "((signed short)"/*)*/, 15) == 0
10645 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
10646 return mv - macro_values + 1;
10654 if ac_fn_c_try_run
"$LINENO"; then :
10655 gl_cv_header_working_stdint_h
=yes
10657 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10658 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10663 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
10667 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
10669 if test "$gl_cv_header_working_stdint_h" = yes; then
10672 for ac_header
in sys
/inttypes.h sys
/bitypes.h
10674 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10675 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10676 eval as_val
=\$
$as_ac_Header
10677 if test "x$as_val" = x
""yes; then :
10678 cat >>confdefs.h
<<_ACEOF
10679 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10686 if test $ac_cv_header_sys_inttypes_h = yes; then
10687 HAVE_SYS_INTTYPES_H
=1
10689 HAVE_SYS_INTTYPES_H
=0
10692 if test $ac_cv_header_sys_bitypes_h = yes; then
10693 HAVE_SYS_BITYPES_H
=1
10695 HAVE_SYS_BITYPES_H
=0
10701 if test $APPLE_UNIVERSAL_BUILD = 0; then
10704 for gltype
in ptrdiff_t size_t
; do
10705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
10706 $as_echo_n "checking for bit size of $gltype... " >&6; }
10707 if { as_var
=gl_cv_bitsizeof_
${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
10708 $as_echo_n "(cached) " >&6
10710 if ac_fn_c_compute_int
"$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
10711 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
10712 included before <wchar.h>. */
10713 #include <stddef.h>
10714 #include <signal.h>
10716 # include <stdio.h>
10718 # include <wchar.h>
10721 #include <limits.h>"; then :
10727 eval gl_cv_bitsizeof_
${gltype}=\
$result
10730 eval ac_res
=\
$gl_cv_bitsizeof_${gltype}
10731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10732 $as_echo "$ac_res" >&6; }
10733 eval result
=\
$gl_cv_bitsizeof_${gltype}
10734 if test $result = unknown
; then
10737 GLTYPE
=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
10738 cat >>confdefs.h
<<_ACEOF
10739 #define BITSIZEOF_${GLTYPE} $result
10742 eval BITSIZEOF_
${GLTYPE}=\
$result
10749 for gltype
in sig_atomic_t wchar_t wint_t
; do
10750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
10751 $as_echo_n "checking for bit size of $gltype... " >&6; }
10752 if { as_var
=gl_cv_bitsizeof_
${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
10753 $as_echo_n "(cached) " >&6
10755 if ac_fn_c_compute_int
"$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
10756 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
10757 included before <wchar.h>. */
10758 #include <stddef.h>
10759 #include <signal.h>
10761 # include <stdio.h>
10763 # include <wchar.h>
10766 #include <limits.h>"; then :
10772 eval gl_cv_bitsizeof_
${gltype}=\
$result
10775 eval ac_res
=\
$gl_cv_bitsizeof_${gltype}
10776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10777 $as_echo "$ac_res" >&6; }
10778 eval result
=\
$gl_cv_bitsizeof_${gltype}
10779 if test $result = unknown
; then
10782 GLTYPE
=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
10783 cat >>confdefs.h
<<_ACEOF
10784 #define BITSIZEOF_${GLTYPE} $result
10787 eval BITSIZEOF_
${GLTYPE}=\
$result
10793 for gltype
in sig_atomic_t wchar_t wint_t
; do
10794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
10795 $as_echo_n "checking whether $gltype is signed... " >&6; }
10796 if { as_var
=gl_cv_type_
${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then :
10797 $as_echo_n "(cached) " >&6
10799 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10800 /* end confdefs.h. */
10802 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
10803 included before <wchar.h>. */
10804 #include <stddef.h>
10805 #include <signal.h>
10807 # include <stdio.h>
10809 # include <wchar.h>
10812 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
10821 if ac_fn_c_try_compile
"$LINENO"; then :
10826 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10827 eval gl_cv_type_
${gltype}_signed
=\
$result
10830 eval ac_res
=\
$gl_cv_type_${gltype}_signed
10831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10832 $as_echo "$ac_res" >&6; }
10833 eval result
=\
$gl_cv_type_${gltype}_signed
10834 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
10835 if test "$result" = yes; then
10836 cat >>confdefs.h
<<_ACEOF
10837 #define HAVE_SIGNED_${GLTYPE} 1
10840 eval HAVE_SIGNED_
${GLTYPE}=1
10842 eval HAVE_SIGNED_
${GLTYPE}=0
10847 gl_cv_type_ptrdiff_t_signed
=yes
10848 gl_cv_type_size_t_signed
=no
10849 if test $APPLE_UNIVERSAL_BUILD = 0; then
10852 for gltype
in ptrdiff_t size_t
; do
10853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
10854 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
10855 if { as_var
=gl_cv_type_
${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
10856 $as_echo_n "(cached) " >&6
10858 eval gl_cv_type_
${gltype}_suffix
=no
10859 eval result
=\
$gl_cv_type_${gltype}_signed
10860 if test "$result" = yes; then
10865 for glsuf
in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64
; do
10867 '') gltype1
='int';;
10868 l
) gltype1
='long int';;
10869 ll
) gltype1
='long long int';;
10870 i64
) gltype1
='__int64';;
10871 u
) gltype1
='unsigned int';;
10872 ul
) gltype1
='unsigned long int';;
10873 ull
) gltype1
='unsigned long long int';;
10874 ui64
)gltype1
='unsigned __int64';;
10876 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10877 /* end confdefs.h. */
10879 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
10880 included before <wchar.h>. */
10881 #include <stddef.h>
10882 #include <signal.h>
10884 # include <stdio.h>
10886 # include <wchar.h>
10889 extern $gltype foo;
10890 extern $gltype1 foo;
10899 if ac_fn_c_try_compile
"$LINENO"; then :
10900 eval gl_cv_type_
${gltype}_suffix
=\
$glsuf
10902 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10903 eval result
=\
$gl_cv_type_${gltype}_suffix
10904 test "$result" != no
&& break
10907 eval ac_res
=\
$gl_cv_type_${gltype}_suffix
10908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10909 $as_echo "$ac_res" >&6; }
10910 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
10911 eval result
=\
$gl_cv_type_${gltype}_suffix
10912 test "$result" = no
&& result
=
10913 eval ${GLTYPE}_SUFFIX
=\
$result
10914 cat >>confdefs.h
<<_ACEOF
10915 #define ${GLTYPE}_SUFFIX $result
10924 for gltype
in sig_atomic_t wchar_t wint_t
; do
10925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
10926 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
10927 if { as_var
=gl_cv_type_
${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
10928 $as_echo_n "(cached) " >&6
10930 eval gl_cv_type_
${gltype}_suffix
=no
10931 eval result
=\
$gl_cv_type_${gltype}_signed
10932 if test "$result" = yes; then
10937 for glsuf
in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64
; do
10939 '') gltype1
='int';;
10940 l
) gltype1
='long int';;
10941 ll
) gltype1
='long long int';;
10942 i64
) gltype1
='__int64';;
10943 u
) gltype1
='unsigned int';;
10944 ul
) gltype1
='unsigned long int';;
10945 ull
) gltype1
='unsigned long long int';;
10946 ui64
)gltype1
='unsigned __int64';;
10948 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10949 /* end confdefs.h. */
10951 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
10952 included before <wchar.h>. */
10953 #include <stddef.h>
10954 #include <signal.h>
10956 # include <stdio.h>
10958 # include <wchar.h>
10961 extern $gltype foo;
10962 extern $gltype1 foo;
10971 if ac_fn_c_try_compile
"$LINENO"; then :
10972 eval gl_cv_type_
${gltype}_suffix
=\
$glsuf
10974 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10975 eval result
=\
$gl_cv_type_${gltype}_suffix
10976 test "$result" != no
&& break
10979 eval ac_res
=\
$gl_cv_type_${gltype}_suffix
10980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10981 $as_echo "$ac_res" >&6; }
10982 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
10983 eval result
=\
$gl_cv_type_${gltype}_suffix
10984 test "$result" = no
&& result
=
10985 eval ${GLTYPE}_SUFFIX
=\
$result
10986 cat >>confdefs.h
<<_ACEOF
10987 #define ${GLTYPE}_SUFFIX $result
10994 if test $BITSIZEOF_WINT_T -lt 32; then
10995 BITSIZEOF_WINT_T
=32
11001 if test -n "$STDINT_H"; then
11002 GL_GENERATE_STDINT_H_TRUE
=
11003 GL_GENERATE_STDINT_H_FALSE
='#'
11005 GL_GENERATE_STDINT_H_TRUE
='#'
11006 GL_GENERATE_STDINT_H_FALSE
=
11015 GNULIB_STRTOIMAX
=0;
11016 GNULIB_STRTOUMAX
=0;
11017 HAVE_DECL_IMAXABS
=1;
11018 HAVE_DECL_IMAXDIV
=1;
11019 HAVE_DECL_STRTOIMAX
=1;
11020 HAVE_DECL_STRTOUMAX
=1;
11021 REPLACE_STRTOIMAX
=0;
11022 INT32_MAX_LT_INTMAX_MAX
=1;
11023 INT64_MAX_EQ_LONG_MAX
='defined _LP64';
11024 PRI_MACROS_BROKEN
=0;
11025 PRIPTR_PREFIX
=__PRIPTR_PREFIX
;
11026 UINT32_MAX_LT_UINTMAX_MAX
=1;
11027 UINT64_MAX_EQ_ULONG_MAX
='defined _LP64';
11043 if test $gl_cv_have_include_next = yes; then
11044 gl_cv_next_inttypes_h
='<'inttypes.h
'>'
11046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5
11047 $as_echo_n "checking absolute name of <inttypes.h>... " >&6; }
11048 if test "${gl_cv_next_inttypes_h+set}" = set; then :
11049 $as_echo_n "(cached) " >&6
11052 if test $ac_cv_header_inttypes_h = yes; then
11055 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11056 /* end confdefs.h. */
11057 #include <inttypes.h>
11061 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
11062 *) gl_absname_cpp
="$ac_cpp" ;;
11067 gl_dirsep_regex
='[/\\]'
11070 gl_dirsep_regex
='\/'
11073 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
11075 gl_header_literal_regex
=`echo 'inttypes.h' \
11076 | sed -e "$gl_make_literal_regex_sed"`
11077 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
11078 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
11083 gl_cv_next_inttypes_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
11084 sed -n "$gl_absolute_header_sed"`'"'
11086 gl_cv_next_inttypes_h
='<'inttypes.h
'>'
11091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5
11092 $as_echo "$gl_cv_next_inttypes_h" >&6; }
11094 NEXT_INTTYPES_H
=$gl_cv_next_inttypes_h
11096 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
11097 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
11098 gl_next_as_first_directive
='<'inttypes.h
'>'
11100 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
11101 gl_next_as_first_directive
=$gl_cv_next_inttypes_h
11103 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
=$gl_next_as_first_directive
11117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit off_t" >&5
11118 $as_echo_n "checking for 64-bit off_t... " >&6; }
11119 if test "${gl_cv_type_off_t_64+set}" = set; then :
11120 $as_echo_n "(cached) " >&6
11122 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11123 /* end confdefs.h. */
11124 #include <sys/types.h>
11125 int verify_off_t_size[sizeof (off_t) >= 8 ? 1 : -1];
11135 if ac_fn_c_try_compile
"$LINENO"; then :
11136 gl_cv_type_off_t_64
=yes
11138 gl_cv_type_off_t_64
=no
11140 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_off_t_64" >&5
11144 $as_echo "$gl_cv_type_off_t_64" >&6; }
11145 if test $gl_cv_type_off_t_64 = no
; then
11146 WINDOWS_64_BIT_OFF_T
=1
11148 WINDOWS_64_BIT_OFF_T
=0
11150 WINDOWS_64_BIT_ST_SIZE
=1
11153 WINDOWS_64_BIT_OFF_T
=0
11154 WINDOWS_64_BIT_ST_SIZE
=0
11171 GNULIB_UTIMENSAT
=0;
11185 REPLACE_FUTIMENS
=0;
11191 REPLACE_UTIMENSAT
=0;
11196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
11197 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
11198 if test "${gl_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
11199 $as_echo_n "(cached) " >&6
11201 rm -f conftest.sym conftest.
file
11202 echo >conftest.
file
11203 if test "$as_ln_s" = "ln -s" && ln -s conftest.
file conftest.sym
; then
11204 if test "$cross_compiling" = yes; then :
11206 # Guess yes on glibc systems.
11207 *-gnu*) gl_cv_func_lstat_dereferences_slashed_symlink
="guessing yes" ;;
11208 # If we don't know, assume the worst.
11209 *) gl_cv_func_lstat_dereferences_slashed_symlink
="guessing no" ;;
11213 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11214 /* end confdefs.h. */
11215 $ac_includes_default
11220 /* Linux will dereference the symlink and fail, as required by
11221 POSIX. That is better in the sense that it means we will not
11222 have to compile and use the lstat wrapper. */
11223 return lstat ("conftest.sym/", &sbuf) == 0;
11229 if ac_fn_c_try_run
"$LINENO"; then :
11230 gl_cv_func_lstat_dereferences_slashed_symlink
=yes
11232 gl_cv_func_lstat_dereferences_slashed_symlink
=no
11234 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11235 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11239 # If the 'ln -s' command failed, then we probably don't even
11240 # have an lstat function.
11241 gl_cv_func_lstat_dereferences_slashed_symlink
="guessing no"
11243 rm -f conftest.sym conftest.
file
11246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lstat_dereferences_slashed_symlink" >&5
11247 $as_echo "$gl_cv_func_lstat_dereferences_slashed_symlink" >&6; }
11248 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
11251 cat >>confdefs.h
<<_ACEOF
11252 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
11260 GNULIB_NANOSLEEP
=0;
11264 HAVE_DECL_LOCALTIME_R
=1;
11268 REPLACE_LOCALTIME_R
=GNULIB_PORTCHECK
;
11269 REPLACE_MKTIME
=GNULIB_PORTCHECK
;
11270 REPLACE_NANOSLEEP
=GNULIB_PORTCHECK
;
11271 REPLACE_TIMEGM
=GNULIB_PORTCHECK
;
11289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/select.h> is self-contained" >&5
11290 $as_echo_n "checking whether <sys/select.h> is self-contained... " >&6; }
11291 if test "${gl_cv_header_sys_select_h_selfcontained+set}" = set; then :
11292 $as_echo_n "(cached) " >&6
11295 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11296 /* end confdefs.h. */
11297 #include <sys/select.h>
11306 if ac_fn_c_try_compile
"$LINENO"; then :
11307 gl_cv_header_sys_select_h_selfcontained
=yes
11309 gl_cv_header_sys_select_h_selfcontained
=no
11311 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11312 if test $gl_cv_header_sys_select_h_selfcontained = yes; then
11313 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11314 /* end confdefs.h. */
11315 #include <sys/select.h>
11319 int memset; int bzero;
11325 if ac_fn_c_try_compile
"$LINENO"; then :
11326 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11327 /* end confdefs.h. */
11328 #include <sys/select.h>
11334 #define memset nonexistent_memset
11339 void *memset (void *, int, unsigned long);
11341 #define bzero nonexistent_bzero
11346 void bzero (void *, unsigned long);
11355 if ac_fn_c_try_link
"$LINENO"; then :
11358 gl_cv_header_sys_select_h_selfcontained
=no
11360 rm -f core conftest.err conftest.
$ac_objext \
11361 conftest
$ac_exeext conftest.
$ac_ext
11364 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_select_h_selfcontained" >&5
11369 $as_echo "$gl_cv_header_sys_select_h_selfcontained" >&6; }
11379 if test $gl_cv_have_include_next = yes; then
11380 gl_cv_next_sys_select_h
='<'sys
/select.h
'>'
11382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/select.h>" >&5
11383 $as_echo_n "checking absolute name of <sys/select.h>... " >&6; }
11384 if test "${gl_cv_next_sys_select_h+set}" = set; then :
11385 $as_echo_n "(cached) " >&6
11388 if test $ac_cv_header_sys_select_h = yes; then
11391 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11392 /* end confdefs.h. */
11393 #include <sys/select.h>
11397 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
11398 *) gl_absname_cpp
="$ac_cpp" ;;
11403 gl_dirsep_regex
='[/\\]'
11406 gl_dirsep_regex
='\/'
11409 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
11411 gl_header_literal_regex
=`echo 'sys/select.h' \
11412 | sed -e "$gl_make_literal_regex_sed"`
11413 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
11414 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
11419 gl_cv_next_sys_select_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
11420 sed -n "$gl_absolute_header_sed"`'"'
11422 gl_cv_next_sys_select_h
='<'sys
/select.h
'>'
11427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_select_h" >&5
11428 $as_echo "$gl_cv_next_sys_select_h" >&6; }
11430 NEXT_SYS_SELECT_H
=$gl_cv_next_sys_select_h
11432 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
11433 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
11434 gl_next_as_first_directive
='<'sys
/select.h
'>'
11436 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
11437 gl_next_as_first_directive
=$gl_cv_next_sys_select_h
11439 NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H
=$gl_next_as_first_directive
11444 if test $ac_cv_header_sys_select_h = yes; then
11445 HAVE_SYS_SELECT_H
=1
11447 HAVE_SYS_SELECT_H
=0
11454 if test $ac_cv_header_sys_socket_h != yes; then
11455 for ac_header
in winsock2.h
11457 ac_fn_c_check_header_mongrel
"$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
11458 if test "x$ac_cv_header_winsock2_h" = x
""yes; then :
11459 cat >>confdefs.h
<<_ACEOF
11460 #define HAVE_WINSOCK2_H 1
11468 if test "$ac_cv_header_winsock2_h" = yes; then
11470 UNISTD_H_HAVE_WINSOCK2_H
=1
11471 SYS_IOCTL_H_HAVE_WINSOCK2_H
=1
11483 GNULIB_PTHREAD_SIGMASK
=0;
11485 GNULIB_SIGNAL_H_SIGPIPE
=0;
11486 GNULIB_SIGPROCMASK
=0;
11487 GNULIB_SIGACTION
=0;
11488 HAVE_POSIX_SIGNALBLOCKING
=1;
11489 HAVE_PTHREAD_SIGMASK
=1;
11494 HAVE_STRUCT_SIGACTION_SA_SIGACTION
=1;
11496 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
=1;
11498 HAVE_SIGHANDLER_T
=1;
11499 REPLACE_PTHREAD_SIGMASK
=0;
11507 ac_fn_c_check_type
"$LINENO" "sigset_t" "ac_cv_type_sigset_t" "
11508 #include <signal.h>
11509 /* Mingw defines sigset_t not in <signal.h>, but in <sys/types.h>. */
11510 #include <sys/types.h>
11513 if test "x$ac_cv_type_sigset_t" = x
""yes; then :
11515 cat >>confdefs.h
<<_ACEOF
11516 #define HAVE_SIGSET_T 1
11519 gl_cv_type_sigset_t
=yes
11521 gl_cv_type_sigset_t
=no
11524 if test $gl_cv_type_sigset_t != yes; then
11528 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
11529 if test "x$ac_cv_type_pid_t" = x
""yes; then :
11533 cat >>confdefs.h
<<_ACEOF
11541 if test $ac_cv_header_sys_socket_h = no
; then
11542 for ac_header
in ws2tcpip.h
11544 ac_fn_c_check_header_mongrel
"$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
11545 if test "x$ac_cv_header_ws2tcpip_h" = x
""yes; then :
11546 cat >>confdefs.h
<<_ACEOF
11547 #define HAVE_WS2TCPIP_H 1
11556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
11557 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
11558 if test "${ac_cv_header_stdbool_h+set}" = set; then :
11559 $as_echo_n "(cached) " >&6
11561 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11562 /* end confdefs.h. */
11564 #include <stdbool.h>
11566 "error: bool is not defined"
11569 "error: false is not defined"
11572 "error: false is not 0"
11575 "error: true is not defined"
11578 "error: true is not 1"
11580 #ifndef __bool_true_false_are_defined
11581 "error: __bool_true_false_are_defined is not defined"
11584 struct s { _Bool s: 1; _Bool t; } s;
11586 char a[true == 1 ? 1 : -1];
11587 char b[false == 0 ? 1 : -1];
11588 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
11589 char d[(bool) 0.5 == true ? 1 : -1];
11590 /* See body of main program for 'e'. */
11591 char f[(_Bool) 0.0 == false ? 1 : -1];
11593 char h[sizeof (_Bool)];
11594 char i[sizeof s.t];
11595 enum { j = false, k = true, l = false * true, m = true * 256 };
11596 /* The following fails for
11597 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
11599 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
11600 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
11601 /* Catch a bug in an HP-UX C compiler. See
11602 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
11603 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
11615 /* Refer to every declared value, to avoid compiler optimizations. */
11616 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
11617 + !m + !n + !o + !p + !q + !pq);
11623 if ac_fn_c_try_compile
"$LINENO"; then :
11624 ac_cv_header_stdbool_h
=yes
11626 ac_cv_header_stdbool_h
=no
11628 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
11631 $as_echo "$ac_cv_header_stdbool_h" >&6; }
11632 ac_fn_c_check_type
"$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
11633 if test "x$ac_cv_type__Bool" = x
""yes; then :
11635 cat >>confdefs.h
<<_ACEOF
11636 #define HAVE__BOOL 1
11648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
11649 $as_echo_n "checking for wchar_t... " >&6; }
11650 if test "${gt_cv_c_wchar_t+set}" = set; then :
11651 $as_echo_n "(cached) " >&6
11653 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11654 /* end confdefs.h. */
11655 #include <stddef.h>
11656 wchar_t foo = (wchar_t)'\0';
11665 if ac_fn_c_try_compile
"$LINENO"; then :
11666 gt_cv_c_wchar_t
=yes
11670 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
11673 $as_echo "$gt_cv_c_wchar_t" >&6; }
11674 if test $gt_cv_c_wchar_t = yes; then
11676 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
11689 GNULIB_FPRINTF_POSIX
=0;
11705 GNULIB_OBSTACK_PRINTF
=0;
11706 GNULIB_OBSTACK_PRINTF_POSIX
=0;
11711 GNULIB_PRINTF_POSIX
=0;
11720 GNULIB_SPRINTF_POSIX
=0;
11721 GNULIB_STDIO_H_NONBLOCKING
=0;
11722 GNULIB_STDIO_H_SIGPIPE
=0;
11724 GNULIB_VASPRINTF
=0;
11729 GNULIB_VFPRINTF_POSIX
=0;
11731 GNULIB_VPRINTF_POSIX
=0;
11732 GNULIB_VSNPRINTF
=0;
11733 GNULIB_VSPRINTF_POSIX
=0;
11734 HAVE_DECL_FPURGE
=1;
11735 HAVE_DECL_FSEEKO
=1;
11736 HAVE_DECL_FTELLO
=1;
11737 HAVE_DECL_GETDELIM
=1;
11738 HAVE_DECL_GETLINE
=1;
11739 HAVE_DECL_OBSTACK_PRINTF
=1;
11740 HAVE_DECL_SNPRINTF
=1;
11741 HAVE_DECL_VSNPRINTF
=1;
11762 REPLACE_GETDELIM
=0;
11764 REPLACE_OBSTACK_PRINTF
=0;
11770 REPLACE_RENAMEAT
=0;
11771 REPLACE_SNPRINTF
=0;
11773 REPLACE_STDIO_READ_FUNCS
=0;
11774 REPLACE_STDIO_WRITE_FUNCS
=0;
11776 REPLACE_VASPRINTF
=0;
11777 REPLACE_VDPRINTF
=0;
11778 REPLACE_VFPRINTF
=0;
11780 REPLACE_VSNPRINTF
=0;
11781 REPLACE_VSPRINTF
=0;
11783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
11784 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
11785 if test "${ac_cv_struct_tm+set}" = set; then :
11786 $as_echo_n "(cached) " >&6
11788 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11789 /* end confdefs.h. */
11790 #include <sys/types.h>
11797 int *p = &tm.tm_sec;
11803 if ac_fn_c_try_compile
"$LINENO"; then :
11804 ac_cv_struct_tm
=time.h
11806 ac_cv_struct_tm
=sys
/time.h
11808 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
11811 $as_echo "$ac_cv_struct_tm" >&6; }
11812 if test $ac_cv_struct_tm = sys
/time.h
; then
11814 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
11818 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
11819 #include <$ac_cv_struct_tm>
11822 if test "x$ac_cv_member_struct_tm_tm_zone" = x
""yes; then :
11824 cat >>confdefs.h
<<_ACEOF
11825 #define HAVE_STRUCT_TM_TM_ZONE 1
11831 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
11833 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
11836 ac_fn_c_check_decl
"$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
11838 if test "x$ac_cv_have_decl_tzname" = x
""yes; then :
11844 cat >>confdefs.h
<<_ACEOF
11845 #define HAVE_DECL_TZNAME $ac_have_decl
11848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
11849 $as_echo_n "checking for tzname... " >&6; }
11850 if test "${ac_cv_var_tzname+set}" = set; then :
11851 $as_echo_n "(cached) " >&6
11853 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11854 /* end confdefs.h. */
11856 #if !HAVE_DECL_TZNAME
11857 extern char *tzname[];
11863 return tzname[0][0];
11868 if ac_fn_c_try_link
"$LINENO"; then :
11869 ac_cv_var_tzname
=yes
11871 ac_cv_var_tzname
=no
11873 rm -f core conftest.err conftest.
$ac_objext \
11874 conftest
$ac_exeext conftest.
$ac_ext
11876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
11877 $as_echo "$ac_cv_var_tzname" >&6; }
11878 if test $ac_cv_var_tzname = yes; then
11880 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
11886 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
11888 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x
""yes; then :
11890 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
11899 ac_fn_c_check_decl
"$LINENO" "strtoimax" "ac_cv_have_decl_strtoimax" "$ac_includes_default"
11900 if test "x$ac_cv_have_decl_strtoimax" = x
""yes; then :
11906 cat >>confdefs.h
<<_ACEOF
11907 #define HAVE_DECL_STRTOIMAX $ac_have_decl
11912 ac_fn_c_check_decl
"$LINENO" "strtoumax" "ac_cv_have_decl_strtoumax" "$ac_includes_default"
11913 if test "x$ac_cv_have_decl_strtoumax" = x
""yes; then :
11919 cat >>confdefs.h
<<_ACEOF
11920 #define HAVE_DECL_STRTOUMAX $ac_have_decl
11925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
11926 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
11927 if test "${ac_cv_header_stat_broken+set}" = set; then :
11928 $as_echo_n "(cached) " >&6
11930 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11931 /* end confdefs.h. */
11932 #include <sys/types.h>
11933 #include <sys/stat.h>
11935 #if defined S_ISBLK && defined S_IFDIR
11936 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
11939 #if defined S_ISBLK && defined S_IFCHR
11940 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
11943 #if defined S_ISLNK && defined S_IFREG
11944 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
11947 #if defined S_ISSOCK && defined S_IFREG
11948 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
11952 if ac_fn_c_try_compile
"$LINENO"; then :
11953 ac_cv_header_stat_broken
=no
11955 ac_cv_header_stat_broken
=yes
11957 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
11960 $as_echo "$ac_cv_header_stat_broken" >&6; }
11961 if test $ac_cv_header_stat_broken = yes; then
11963 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
11969 ac_fn_c_check_type
"$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
11970 if test "x$ac_cv_type_mode_t" = x
""yes; then :
11974 cat >>confdefs.h
<<_ACEOF
11982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
11983 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
11984 if test "${gl_cv_sys_struct_timespec_in_time_h+set}" = set; then :
11985 $as_echo_n "(cached) " >&6
11987 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11988 /* end confdefs.h. */
11994 static struct timespec x; x.tv_sec = x.tv_nsec;
11999 if ac_fn_c_try_compile
"$LINENO"; then :
12000 gl_cv_sys_struct_timespec_in_time_h
=yes
12002 gl_cv_sys_struct_timespec_in_time_h
=no
12004 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
12007 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
12009 TIME_H_DEFINES_STRUCT_TIMESPEC
=0
12010 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
=0
12011 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
=0
12012 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
12013 TIME_H_DEFINES_STRUCT_TIMESPEC
=1
12015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
12016 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
12017 if test "${gl_cv_sys_struct_timespec_in_sys_time_h+set}" = set; then :
12018 $as_echo_n "(cached) " >&6
12020 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12021 /* end confdefs.h. */
12022 #include <sys/time.h>
12027 static struct timespec x; x.tv_sec = x.tv_nsec;
12032 if ac_fn_c_try_compile
"$LINENO"; then :
12033 gl_cv_sys_struct_timespec_in_sys_time_h
=yes
12035 gl_cv_sys_struct_timespec_in_sys_time_h
=no
12037 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
12040 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
12041 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
12042 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
=1
12044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
12045 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
12046 if test "${gl_cv_sys_struct_timespec_in_pthread_h+set}" = set; then :
12047 $as_echo_n "(cached) " >&6
12049 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12050 /* end confdefs.h. */
12051 #include <pthread.h>
12056 static struct timespec x; x.tv_sec = x.tv_nsec;
12061 if ac_fn_c_try_compile
"$LINENO"; then :
12062 gl_cv_sys_struct_timespec_in_pthread_h
=yes
12064 gl_cv_sys_struct_timespec_in_pthread_h
=no
12066 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
12069 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
12070 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
12071 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
=1
12090 if test $gl_cv_have_include_next = yes; then
12091 gl_cv_next_time_h
='<'time.h
'>'
12093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
12094 $as_echo_n "checking absolute name of <time.h>... " >&6; }
12095 if test "${gl_cv_next_time_h+set}" = set; then :
12096 $as_echo_n "(cached) " >&6
12099 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12100 /* end confdefs.h. */
12105 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
12106 *) gl_absname_cpp
="$ac_cpp" ;;
12111 gl_dirsep_regex
='[/\\]'
12114 gl_dirsep_regex
='\/'
12117 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
12119 gl_header_literal_regex
=`echo 'time.h' \
12120 | sed -e "$gl_make_literal_regex_sed"`
12121 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
12122 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
12127 gl_cv_next_time_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
12128 sed -n "$gl_absolute_header_sed"`'"'
12132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
12133 $as_echo "$gl_cv_next_time_h" >&6; }
12135 NEXT_TIME_H
=$gl_cv_next_time_h
12137 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
12138 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
12139 gl_next_as_first_directive
='<'time.h
'>'
12141 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
12142 gl_next_as_first_directive
=$gl_cv_next_time_h
12144 NEXT_AS_FIRST_DIRECTIVE_TIME_H
=$gl_next_as_first_directive
12160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the utimes function works" >&5
12161 $as_echo_n "checking whether the utimes function works... " >&6; }
12162 if test "${gl_cv_func_working_utimes+set}" = set; then :
12163 $as_echo_n "(cached) " >&6
12166 if test "$cross_compiling" = yes; then :
12167 gl_cv_func_working_utimes
=no
12169 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12170 /* end confdefs.h. */
12172 #include <sys/types.h>
12173 #include <sys/stat.h>
12175 #include <sys/time.h>
12177 #include <unistd.h>
12178 #include <stdlib.h>
12183 inorder (time_t a, time_t b, time_t c)
12185 return a <= b && b <= c;
12192 char const *file = "conftest.utimes";
12193 static struct timeval timeval[2] = {{9, 10}, {999999, 999999}};
12195 /* Test whether utimes() essentially works. */
12198 FILE *f = fopen (file, "w");
12201 else if (fclose (f) != 0)
12203 else if (utimes (file, timeval) != 0)
12205 else if (lstat (file, &sbuf) != 0)
12207 else if (!(sbuf.st_atime == timeval[0].tv_sec
12208 && sbuf.st_mtime == timeval[1].tv_sec))
12210 if (unlink (file) != 0)
12214 /* Test whether utimes() with a NULL argument sets the file's timestamp
12215 to the current time. Use 'fstat' as well as 'time' to
12216 determine the "current" time, to accommodate NFS file systems
12217 if there is a time skew between the host and the NFS server. */
12219 int fd = open (file, O_WRONLY|O_CREAT, 0644);
12225 struct stat st0, st1, st2;
12226 if (time (&t0) == (time_t) -1)
12228 else if (fstat (fd, &st0) != 0)
12230 else if (utimes (file, timeval) != 0)
12232 else if (utimes (file, NULL) != 0)
12234 else if (fstat (fd, &st1) != 0)
12236 else if (write (fd, "\n", 1) != 1)
12238 else if (fstat (fd, &st2) != 0)
12240 else if (time (&t2) == (time_t) -1)
12244 int m_ok_POSIX = inorder (t0, st1.st_mtime, t2);
12245 int m_ok_NFS = inorder (st0.st_mtime, st1.st_mtime, st2.st_mtime);
12246 if (! (st1.st_atime == st1.st_mtime))
12248 if (! (m_ok_POSIX || m_ok_NFS))
12251 if (close (fd) != 0)
12254 if (unlink (file) != 0)
12258 /* Test whether utimes() with a NULL argument works on read-only files. */
12260 int fd = open (file, O_WRONLY|O_CREAT, 0444);
12263 else if (close (fd) != 0)
12265 else if (utimes (file, NULL) != 0)
12267 if (unlink (file) != 0)
12275 if ac_fn_c_try_run
"$LINENO"; then :
12276 gl_cv_func_working_utimes
=yes
12278 gl_cv_func_working_utimes
=no
12280 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12281 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_utimes" >&5
12286 $as_echo "$gl_cv_func_working_utimes" >&6; }
12288 if test $gl_cv_func_working_utimes = yes; then
12290 $as_echo "#define HAVE_WORKING_UTIMES 1" >>confdefs.h
12298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utimbuf" >&5
12299 $as_echo_n "checking for struct utimbuf... " >&6; }
12300 if test "${gl_cv_sys_struct_utimbuf+set}" = set; then :
12301 $as_echo_n "(cached) " >&6
12303 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12304 /* end confdefs.h. */
12305 #if HAVE_SYS_TIME_H
12306 #include <sys/time.h>
12309 #ifdef HAVE_UTIME_H
12316 static struct utimbuf x; x.actime = x.modtime;
12321 if ac_fn_c_try_compile
"$LINENO"; then :
12322 gl_cv_sys_struct_utimbuf
=yes
12324 gl_cv_sys_struct_utimbuf
=no
12326 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_utimbuf" >&5
12329 $as_echo "$gl_cv_sys_struct_utimbuf" >&6; }
12331 if test $gl_cv_sys_struct_utimbuf = yes; then
12333 $as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h
12351 GL_COND_LIBTOOL_TRUE
=
12352 GL_COND_LIBTOOL_FALSE
='#'
12354 GL_COND_LIBTOOL_TRUE
='#'
12355 GL_COND_LIBTOOL_FALSE
=
12358 gl_cond_libtool
=false
12371 gl_source_base
='lib'
12374 if test $ac_cv_func_alloca_works = no
; then
12378 # Define an additional variable used in the Makefile substitution.
12379 if test $ac_cv_working_alloca_h = yes; then
12380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
12381 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
12382 if test "${gl_cv_rpl_alloca+set}" = set; then :
12383 $as_echo_n "(cached) " >&6
12386 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12387 /* end confdefs.h. */
12389 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
12394 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12395 $EGREP "Need own alloca" >/dev
/null
2>&1; then :
12396 gl_cv_rpl_alloca
=yes
12398 gl_cv_rpl_alloca
=no
12404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
12405 $as_echo "$gl_cv_rpl_alloca" >&6; }
12406 if test $gl_cv_rpl_alloca = yes; then
12408 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
12418 if test -n "$ALLOCA_H"; then
12419 GL_GENERATE_ALLOCA_H_TRUE
=
12420 GL_GENERATE_ALLOCA_H_FALSE
='#'
12422 GL_GENERATE_ALLOCA_H_TRUE
='#'
12423 GL_GENERATE_ALLOCA_H_FALSE
=
12431 # Solaris 2.5.1 needs -lposix4 to get the clock_gettime function.
12432 # Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4.
12434 # Save and restore LIBS so e.g., -lrt, isn't added to it. Otherwise, *all*
12435 # programs in the package would end up linked with that potentially-shared
12436 # library, inducing unnecessary run-time overhead.
12439 gl_saved_libs
=$LIBS
12440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
12441 $as_echo_n "checking for library containing clock_gettime... " >&6; }
12442 if test "${ac_cv_search_clock_gettime+set}" = set; then :
12443 $as_echo_n "(cached) " >&6
12445 ac_func_search_save_LIBS
=$LIBS
12446 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12447 /* end confdefs.h. */
12449 /* Override any GCC internal prototype to avoid an error.
12450 Use char because int might match the return type of a GCC
12451 builtin and then its argument prototype would still apply. */
12455 char clock_gettime ();
12459 return clock_gettime ();
12464 for ac_lib
in '' rt posix4
; do
12465 if test -z "$ac_lib"; then
12466 ac_res
="none required"
12469 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
12471 if ac_fn_c_try_link
"$LINENO"; then :
12472 ac_cv_search_clock_gettime
=$ac_res
12474 rm -f core conftest.err conftest.
$ac_objext \
12476 if test "${ac_cv_search_clock_gettime+set}" = set; then :
12480 if test "${ac_cv_search_clock_gettime+set}" = set; then :
12483 ac_cv_search_clock_gettime
=no
12485 rm conftest.
$ac_ext
12486 LIBS
=$ac_func_search_save_LIBS
12488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
12489 $as_echo "$ac_cv_search_clock_gettime" >&6; }
12490 ac_res
=$ac_cv_search_clock_gettime
12491 if test "$ac_res" != no
; then :
12492 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
12493 test "$ac_cv_search_clock_gettime" = "none required" ||
12494 LIB_CLOCK_GETTIME
=$ac_cv_search_clock_gettime
12497 for ac_func
in clock_gettime clock_settime
12499 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12500 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
12501 eval as_val
=\$
$as_ac_var
12502 if test "x$as_val" = x
""yes; then :
12503 cat >>confdefs.h
<<_ACEOF
12504 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12510 LIBS
=$gl_saved_libs
12536 $as_echo "#define HAVE_DUP2 1" >>confdefs.h
12539 if test $HAVE_DUP2 = 1; then
12540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dup2 works" >&5
12541 $as_echo_n "checking whether dup2 works... " >&6; }
12542 if test "${gl_cv_func_dup2_works+set}" = set; then :
12543 $as_echo_n "(cached) " >&6
12545 if test "$cross_compiling" = yes; then :
12547 mingw
*) # on this platform, dup2 always returns 0 for success
12548 gl_cv_func_dup2_works
="guessing no" ;;
12549 cygwin
*) # on cygwin 1.5.x, dup2(1,1) returns 0
12550 gl_cv_func_dup2_works
="guessing no" ;;
12551 linux
*) # On linux between 2008-07-27 and 2009-05-11, dup2 of a
12552 # closed fd may yield -EBADF instead of -1 / errno=EBADF.
12553 gl_cv_func_dup2_works
="guessing no" ;;
12554 freebsd
*) # on FreeBSD 6.1, dup2(1,1000000) gives EMFILE, not EBADF.
12555 gl_cv_func_dup2_works
="guessing no" ;;
12556 haiku
*) # on Haiku alpha 2, dup2(1, 1) resets FD_CLOEXEC.
12557 gl_cv_func_dup2_works
="guessing no" ;;
12558 *) gl_cv_func_dup2_works
="guessing yes" ;;
12561 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12562 /* end confdefs.h. */
12564 #include <unistd.h>
12572 if (fcntl (1, F_SETFD, FD_CLOEXEC) == -1)
12575 if (dup2 (1, 1) == 0)
12578 if (fcntl (1, F_GETFD) != FD_CLOEXEC)
12582 if (dup2 (0, 0) != -1)
12584 /* Many gnulib modules require POSIX conformance of EBADF. */
12585 if (dup2 (2, 1000000) == -1 && errno != EBADF)
12594 if ac_fn_c_try_run
"$LINENO"; then :
12595 gl_cv_func_dup2_works
=yes
12597 gl_cv_func_dup2_works
=no
12599 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12600 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dup2_works" >&5
12606 $as_echo "$gl_cv_func_dup2_works" >&6; }
12607 case "$gl_cv_func_dup2_works" in
12616 if test $HAVE_DUP2 = 0 ||
test $REPLACE_DUP2 = 1; then
12625 gl_LIBOBJS
="$gl_LIBOBJS dup2.$ac_objext"
12646 # Persuade glibc <stdlib.h> to declare getloadavg().
12651 # getloadvg is present in libc on glibc >= 2.2, Mac OS X, FreeBSD >= 2.0,
12652 # NetBSD >= 0.9, OpenBSD >= 2.0, Solaris >= 7.
12654 ac_fn_c_check_func
"$LINENO" "getloadavg" "ac_cv_func_getloadavg"
12655 if test "x$ac_cv_func_getloadavg" = x
""yes; then :
12658 gl_func_getloadavg_done
=no
12660 # Some systems with -lutil have (and need) -lkvm as well, some do not.
12661 # On Solaris, -lkvm requires nlist from -lelf, so check that first
12662 # to get the right answer into the cache.
12663 # For kstat on solaris, we need to test for libelf and libkvm to force the
12664 # definition of SVR4 below.
12665 if test $gl_func_getloadavg_done = no
; then
12666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
12667 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
12668 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then :
12669 $as_echo_n "(cached) " >&6
12671 ac_check_lib_save_LIBS
=$LIBS
12673 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12674 /* end confdefs.h. */
12676 /* Override any GCC internal prototype to avoid an error.
12677 Use char because int might match the return type of a GCC
12678 builtin and then its argument prototype would still apply. */
12686 return elf_begin ();
12691 if ac_fn_c_try_link
"$LINENO"; then :
12692 ac_cv_lib_elf_elf_begin
=yes
12694 ac_cv_lib_elf_elf_begin
=no
12696 rm -f core conftest.err conftest.
$ac_objext \
12697 conftest
$ac_exeext conftest.
$ac_ext
12698 LIBS
=$ac_check_lib_save_LIBS
12700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
12701 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
12702 if test "x$ac_cv_lib_elf_elf_begin" = x
""yes; then :
12706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
12707 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
12708 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then :
12709 $as_echo_n "(cached) " >&6
12711 ac_check_lib_save_LIBS
=$LIBS
12713 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12714 /* end confdefs.h. */
12716 /* Override any GCC internal prototype to avoid an error.
12717 Use char because int might match the return type of a GCC
12718 builtin and then its argument prototype would still apply. */
12726 return kvm_open ();
12731 if ac_fn_c_try_link
"$LINENO"; then :
12732 ac_cv_lib_kvm_kvm_open
=yes
12734 ac_cv_lib_kvm_kvm_open
=no
12736 rm -f core conftest.err conftest.
$ac_objext \
12737 conftest
$ac_exeext conftest.
$ac_ext
12738 LIBS
=$ac_check_lib_save_LIBS
12740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
12741 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
12742 if test "x$ac_cv_lib_kvm_kvm_open" = x
""yes; then :
12746 # Check for the 4.4BSD definition of getloadavg.
12747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5
12748 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
12749 if test "${ac_cv_lib_util_getloadavg+set}" = set; then :
12750 $as_echo_n "(cached) " >&6
12752 ac_check_lib_save_LIBS
=$LIBS
12753 LIBS
="-lutil $LIBS"
12754 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12755 /* end confdefs.h. */
12757 /* Override any GCC internal prototype to avoid an error.
12758 Use char because int might match the return type of a GCC
12759 builtin and then its argument prototype would still apply. */
12763 char getloadavg ();
12767 return getloadavg ();
12772 if ac_fn_c_try_link
"$LINENO"; then :
12773 ac_cv_lib_util_getloadavg
=yes
12775 ac_cv_lib_util_getloadavg
=no
12777 rm -f core conftest.err conftest.
$ac_objext \
12778 conftest
$ac_exeext conftest.
$ac_ext
12779 LIBS
=$ac_check_lib_save_LIBS
12781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5
12782 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
12783 if test "x$ac_cv_lib_util_getloadavg" = x
""yes; then :
12784 LIBS
="-lutil $LIBS" gl_func_getloadavg_done
=yes
12789 if test $gl_func_getloadavg_done = no
; then
12790 # There is a commonly available library for RS/6000 AIX.
12791 # Since it is not a standard part of AIX, it might be installed locally.
12792 gl_getloadavg_LIBS
=$LIBS
12793 LIBS
="-L/usr/local/lib $LIBS"
12794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5
12795 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
12796 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then :
12797 $as_echo_n "(cached) " >&6
12799 ac_check_lib_save_LIBS
=$LIBS
12800 LIBS
="-lgetloadavg $LIBS"
12801 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12802 /* end confdefs.h. */
12804 /* Override any GCC internal prototype to avoid an error.
12805 Use char because int might match the return type of a GCC
12806 builtin and then its argument prototype would still apply. */
12810 char getloadavg ();
12814 return getloadavg ();
12819 if ac_fn_c_try_link
"$LINENO"; then :
12820 ac_cv_lib_getloadavg_getloadavg
=yes
12822 ac_cv_lib_getloadavg_getloadavg
=no
12824 rm -f core conftest.err conftest.
$ac_objext \
12825 conftest
$ac_exeext conftest.
$ac_ext
12826 LIBS
=$ac_check_lib_save_LIBS
12828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5
12829 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
12830 if test "x$ac_cv_lib_getloadavg_getloadavg" = x
""yes; then :
12831 LIBS
="-lgetloadavg $LIBS" gl_func_getloadavg_done
=yes
12833 LIBS
=$gl_getloadavg_LIBS
12838 # Set up the replacement function if necessary.
12839 if test $gl_func_getloadavg_done = no
; then
12842 # Solaris has libkstat which does not require root.
12843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
12844 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
12845 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then :
12846 $as_echo_n "(cached) " >&6
12848 ac_check_lib_save_LIBS
=$LIBS
12849 LIBS
="-lkstat $LIBS"
12850 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12851 /* end confdefs.h. */
12853 /* Override any GCC internal prototype to avoid an error.
12854 Use char because int might match the return type of a GCC
12855 builtin and then its argument prototype would still apply. */
12859 char kstat_open ();
12863 return kstat_open ();
12868 if ac_fn_c_try_link
"$LINENO"; then :
12869 ac_cv_lib_kstat_kstat_open
=yes
12871 ac_cv_lib_kstat_kstat_open
=no
12873 rm -f core conftest.err conftest.
$ac_objext \
12874 conftest
$ac_exeext conftest.
$ac_ext
12875 LIBS
=$ac_check_lib_save_LIBS
12877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
12878 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
12879 if test "x$ac_cv_lib_kstat_kstat_open" = x
""yes; then :
12880 cat >>confdefs.h
<<_ACEOF
12881 #define HAVE_LIBKSTAT 1
12884 LIBS
="-lkstat $LIBS"
12888 test $ac_cv_lib_kstat_kstat_open = yes && gl_func_getloadavg_done
=yes
12890 # AIX has libperfstat which does not require root
12891 if test $gl_func_getloadavg_done = no
; then
12892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perfstat_cpu_total in -lperfstat" >&5
12893 $as_echo_n "checking for perfstat_cpu_total in -lperfstat... " >&6; }
12894 if test "${ac_cv_lib_perfstat_perfstat_cpu_total+set}" = set; then :
12895 $as_echo_n "(cached) " >&6
12897 ac_check_lib_save_LIBS
=$LIBS
12898 LIBS
="-lperfstat $LIBS"
12899 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12900 /* end confdefs.h. */
12902 /* Override any GCC internal prototype to avoid an error.
12903 Use char because int might match the return type of a GCC
12904 builtin and then its argument prototype would still apply. */
12908 char perfstat_cpu_total ();
12912 return perfstat_cpu_total ();
12917 if ac_fn_c_try_link
"$LINENO"; then :
12918 ac_cv_lib_perfstat_perfstat_cpu_total
=yes
12920 ac_cv_lib_perfstat_perfstat_cpu_total
=no
12922 rm -f core conftest.err conftest.
$ac_objext \
12923 conftest
$ac_exeext conftest.
$ac_ext
12924 LIBS
=$ac_check_lib_save_LIBS
12926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_perfstat_perfstat_cpu_total" >&5
12927 $as_echo "$ac_cv_lib_perfstat_perfstat_cpu_total" >&6; }
12928 if test "x$ac_cv_lib_perfstat_perfstat_cpu_total" = x
""yes; then :
12929 cat >>confdefs.h
<<_ACEOF
12930 #define HAVE_LIBPERFSTAT 1
12933 LIBS
="-lperfstat $LIBS"
12937 test $ac_cv_lib_perfstat_perfstat_cpu_total = yes && gl_func_getloadavg_done
=yes
12940 if test $gl_func_getloadavg_done = no
; then
12941 ac_fn_c_check_header_mongrel
"$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
12942 if test "x$ac_cv_header_sys_dg_sys_info_h" = x
""yes; then :
12943 gl_func_getloadavg_done
=yes
12945 $as_echo "#define DGUX 1" >>confdefs.h
12947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5
12948 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
12949 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then :
12950 $as_echo_n "(cached) " >&6
12952 ac_check_lib_save_LIBS
=$LIBS
12954 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12955 /* end confdefs.h. */
12957 /* Override any GCC internal prototype to avoid an error.
12958 Use char because int might match the return type of a GCC
12959 builtin and then its argument prototype would still apply. */
12963 char dg_sys_info ();
12967 return dg_sys_info ();
12972 if ac_fn_c_try_link
"$LINENO"; then :
12973 ac_cv_lib_dgc_dg_sys_info
=yes
12975 ac_cv_lib_dgc_dg_sys_info
=no
12977 rm -f core conftest.err conftest.
$ac_objext \
12978 conftest
$ac_exeext conftest.
$ac_ext
12979 LIBS
=$ac_check_lib_save_LIBS
12981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5
12982 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
12983 if test "x$ac_cv_lib_dgc_dg_sys_info" = x
""yes; then :
12984 cat >>confdefs.h
<<_ACEOF
12985 #define HAVE_LIBDGC 1
13000 if test "x$gl_save_LIBS" = x
; then
13001 GETLOADAVG_LIBS
=$LIBS
13003 GETLOADAVG_LIBS
=`echo "$LIBS" | sed "s!$gl_save_LIBS!!"`
13008 # Test whether the system declares getloadavg. Solaris has the function
13009 # but declares it in <sys/loadavg.h>, not <stdlib.h>.
13010 for ac_header
in sys
/loadavg.h
13012 ac_fn_c_check_header_mongrel
"$LINENO" "sys/loadavg.h" "ac_cv_header_sys_loadavg_h" "$ac_includes_default"
13013 if test "x$ac_cv_header_sys_loadavg_h" = x
""yes; then :
13014 cat >>confdefs.h
<<_ACEOF
13015 #define HAVE_SYS_LOADAVG_H 1
13022 if test $ac_cv_header_sys_loadavg_h = yes; then
13023 HAVE_SYS_LOADAVG_H
=1
13025 HAVE_SYS_LOADAVG_H
=0
13027 ac_fn_c_check_decl
"$LINENO" "getloadavg" "ac_cv_have_decl_getloadavg" "#if HAVE_SYS_LOADAVG_H
13028 # include <sys/loadavg.h>
13030 #include <stdlib.h>
13032 if test "x$ac_cv_have_decl_getloadavg" = x
""yes; then :
13035 HAVE_DECL_GETLOADAVG
=0
13039 if test $HAVE_GETLOADAVG = 0; then
13048 gl_LIBOBJS
="$gl_LIBOBJS getloadavg.$ac_objext"
13051 # Figure out what our getloadavg.c needs.
13053 # On HPUX9, an unprivileged user can get load averages this way.
13054 if test $gl_func_getloadavg_done = no
; then
13055 for ac_func
in pstat_getdynamic
13057 ac_fn_c_check_func
"$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic"
13058 if test "x$ac_cv_func_pstat_getdynamic" = x
""yes; then :
13059 cat >>confdefs.h
<<_ACEOF
13060 #define HAVE_PSTAT_GETDYNAMIC 1
13062 gl_func_getloadavg_done
=yes
13068 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
13069 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
13070 # Irix 4.0.5F has the header but not the library.
13071 if test $gl_func_getloadavg_done = no
&& test "$ac_cv_lib_elf_elf_begin" = yes \
13072 && test "$ac_cv_lib_kvm_kvm_open" = yes; then
13073 gl_func_getloadavg_done
=yes
13075 $as_echo "#define SVR4 1" >>confdefs.h
13079 if test $gl_func_getloadavg_done = no
; then
13080 ac_fn_c_check_header_mongrel
"$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default"
13081 if test "x$ac_cv_header_inq_stats_cpustats_h" = x
""yes; then :
13082 gl_func_getloadavg_done
=yes
13084 $as_echo "#define UMAX 1" >>confdefs.h
13087 $as_echo "#define UMAX4_3 1" >>confdefs.h
13094 if test $gl_func_getloadavg_done = no
; then
13095 ac_fn_c_check_header_mongrel
"$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default"
13096 if test "x$ac_cv_header_sys_cpustats_h" = x
""yes; then :
13097 gl_func_getloadavg_done
=yes; $as_echo "#define UMAX 1" >>confdefs.h
13104 if test $gl_func_getloadavg_done = no
; then
13105 for ac_header
in mach
/mach.h
13107 ac_fn_c_check_header_mongrel
"$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
13108 if test "x$ac_cv_header_mach_mach_h" = x
""yes; then :
13109 cat >>confdefs.h
<<_ACEOF
13110 #define HAVE_MACH_MACH_H 1
13119 for ac_header
in nlist.h
13121 ac_fn_c_check_header_mongrel
"$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
13122 if test "x$ac_cv_header_nlist_h" = x
""yes; then :
13123 cat >>confdefs.h
<<_ACEOF
13124 #define HAVE_NLIST_H 1
13126 ac_fn_c_check_member
"$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h>
13128 if test "x$ac_cv_member_struct_nlist_n_un_n_name" = x
""yes; then :
13130 cat >>confdefs.h
<<_ACEOF
13131 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
13137 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13138 /* end confdefs.h. */
13144 #ifdef HAVE_STRUCT_NLIST_N_UN_N_NAME
13145 x.n_un.n_name = "";
13153 if ac_fn_c_try_link
"$LINENO"; then :
13155 $as_echo "#define N_NAME_POINTER 1" >>confdefs.h
13158 rm -f core conftest.err conftest.
$ac_objext \
13159 conftest
$ac_exeext conftest.
$ac_ext
13171 GNULIB_GETLOADAVG
=1
13182 if test $REPLACE_GETOPT = 1; then
13191 gl_LIBOBJS
="$gl_LIBOBJS getopt.$ac_objext"
13201 gl_LIBOBJS
="$gl_LIBOBJS getopt1.$ac_objext"
13206 GNULIB_GL_UNISTD_H_GETOPT
=1
13217 if test -n "$gl_replace_getopt"; then :
13224 if test $REPLACE_GETOPT = 1; then
13228 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
13234 if test $REPLACE_GETOPT = 1; then
13243 gl_LIBOBJS
="$gl_LIBOBJS getopt.$ac_objext"
13253 gl_LIBOBJS
="$gl_LIBOBJS getopt1.$ac_objext"
13258 GNULIB_GL_UNISTD_H_GETOPT
=1
13272 gl_gettimeofday_timezone
=void
13273 if test $ac_cv_func_gettimeofday != yes; then
13274 HAVE_GETTIMEOFDAY
=0
13279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday clobbers localtime buffer" >&5
13280 $as_echo_n "checking whether gettimeofday clobbers localtime buffer... " >&6; }
13281 if test "${gl_cv_func_gettimeofday_clobber+set}" = set; then :
13282 $as_echo_n "(cached) " >&6
13284 if test "$cross_compiling" = yes; then :
13285 # When cross-compiling:
13287 # Guess all is fine on glibc systems.
13288 *-gnu*) gl_cv_func_gettimeofday_clobber
="guessing no" ;;
13289 # If we don't know, assume the worst.
13290 *) gl_cv_func_gettimeofday_clobber
="guessing yes" ;;
13294 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13295 /* end confdefs.h. */
13296 #include <string.h>
13297 #include <sys/time.h>
13299 #include <stdlib.h>
13307 struct tm saved_lt;
13309 lt = localtime (&t);
13311 gettimeofday (&tv, NULL);
13312 return memcmp (lt, &saved_lt, sizeof (struct tm)) != 0;
13318 if ac_fn_c_try_run
"$LINENO"; then :
13319 gl_cv_func_gettimeofday_clobber
=no
13321 gl_cv_func_gettimeofday_clobber
=yes
13323 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13324 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_clobber" >&5
13329 $as_echo "$gl_cv_func_gettimeofday_clobber" >&6; }
13331 case "$gl_cv_func_gettimeofday_clobber" in
13333 REPLACE_GETTIMEOFDAY
=1
13336 $as_echo "#define gmtime rpl_gmtime" >>confdefs.h
13339 $as_echo "#define localtime rpl_localtime" >>confdefs.h
13343 $as_echo "#define GETTIMEOFDAY_CLOBBERS_LOCALTIME 1" >>confdefs.h
13348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettimeofday with POSIX signature" >&5
13349 $as_echo_n "checking for gettimeofday with POSIX signature... " >&6; }
13350 if test "${gl_cv_func_gettimeofday_posix_signature+set}" = set; then :
13351 $as_echo_n "(cached) " >&6
13353 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13354 /* end confdefs.h. */
13355 #include <sys/time.h>
13357 int gettimeofday (struct timeval *restrict, void *restrict);
13362 /* glibc uses struct timezone * rather than the POSIX void *
13363 if _GNU_SOURCE is defined. However, since the only portable
13364 use of gettimeofday uses NULL as the second parameter, and
13365 since the glibc definition is actually more typesafe, it is
13366 not worth wrapping this to get a compliant signature. */
13367 int (*f) (struct timeval *restrict, void *restrict)
13370 return !(x | c.tv_sec | c.tv_usec);
13376 if ac_fn_c_try_compile
"$LINENO"; then :
13377 gl_cv_func_gettimeofday_posix_signature
=yes
13379 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13380 /* end confdefs.h. */
13381 #include <sys/time.h>
13382 int gettimeofday (struct timeval *restrict, struct timezone *restrict);
13392 if ac_fn_c_try_compile
"$LINENO"; then :
13393 gl_cv_func_gettimeofday_posix_signature
=almost
13395 gl_cv_func_gettimeofday_posix_signature
=no
13397 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13399 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_posix_signature" >&5
13402 $as_echo "$gl_cv_func_gettimeofday_posix_signature" >&6; }
13403 if test $gl_cv_func_gettimeofday_posix_signature = almost
; then
13404 gl_gettimeofday_timezone
='struct timezone'
13405 elif test $gl_cv_func_gettimeofday_posix_signature != yes; then
13406 REPLACE_GETTIMEOFDAY
=1
13408 if test $REPLACE_STRUCT_TIMEVAL = 1; then
13409 REPLACE_GETTIMEOFDAY
=1
13414 cat >>confdefs.h
<<_ACEOF
13415 #define GETTIMEOFDAY_TIMEZONE $gl_gettimeofday_timezone
13419 if test $HAVE_GETTIMEOFDAY = 0 ||
test $REPLACE_GETTIMEOFDAY = 1; then
13428 gl_LIBOBJS
="$gl_LIBOBJS gettimeofday.$ac_objext"
13431 for ac_header
in sys
/timeb.h
13433 ac_fn_c_check_header_mongrel
"$LINENO" "sys/timeb.h" "ac_cv_header_sys_timeb_h" "$ac_includes_default"
13434 if test "x$ac_cv_header_sys_timeb_h" = x
""yes; then :
13435 cat >>confdefs.h
<<_ACEOF
13436 #define HAVE_SYS_TIMEB_H 1
13443 for ac_func
in _ftime
13445 ac_fn_c_check_func
"$LINENO" "_ftime" "ac_cv_func__ftime"
13446 if test "x$ac_cv_func__ftime" = x
""yes; then :
13447 cat >>confdefs.h
<<_ACEOF
13448 #define HAVE__FTIME 1
13461 GNULIB_GETTIMEOFDAY
=1
13473 if test $ac_cv_func_lstat = yes; then
13475 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
13484 if test $REPLACE_LSTAT = 1; then
13493 gl_LIBOBJS
="$gl_LIBOBJS lstat.$ac_objext"
13517 if test $APPLE_UNIVERSAL_BUILD = 1; then
13518 # A universal build on Apple Mac OS X platforms.
13519 # The test result would be 'yes' in 32-bit mode and 'no' in 64-bit mode.
13520 # But we need a configuration result that is valid in both modes.
13521 gl_cv_func_working_mktime
=no
13523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
13524 $as_echo_n "checking for working mktime... " >&6; }
13525 if test "${gl_cv_func_working_mktime+set}" = set; then :
13526 $as_echo_n "(cached) " >&6
13528 if test "$cross_compiling" = yes; then :
13529 gl_cv_func_working_mktime
=no
13531 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13532 /* end confdefs.h. */
13533 /* Test program from Paul Eggert and Tony Leneis. */
13534 #include <limits.h>
13535 #include <stdlib.h>
13538 #ifdef HAVE_UNISTD_H
13539 # include <unistd.h>
13543 # define alarm(X) /* empty */
13546 /* Work around redefinition to rpl_putenv by other config tests. */
13549 static time_t time_t_max;
13550 static time_t time_t_min;
13552 /* Values we'll use to set the TZ environment variable. */
13553 static char *tz_strings[] = {
13554 (char *) 0, "TZ=GMT0", "TZ=JST-9",
13555 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
13557 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
13559 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
13560 Based on a problem report from Andreas Jaeger. */
13562 spring_forward_gap ()
13564 /* glibc (up to about 1998-10-07) failed this test. */
13567 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
13568 instead of "TZ=America/Vancouver" in order to detect the bug even
13569 on systems that don't support the Olson extension, or don't have the
13570 full zoneinfo tables installed. */
13571 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
13580 return mktime (&tm) != (time_t) -1;
13584 mktime_test1 (time_t now)
13587 return ! (lt = localtime (&now)) || mktime (lt) == now;
13591 mktime_test (time_t now)
13593 return (mktime_test1 (now)
13594 && mktime_test1 ((time_t) (time_t_max - now))
13595 && mktime_test1 ((time_t) (time_t_min + now)));
13601 /* Based on code from Ariel Faigon. */
13611 return tm.tm_mon == 2 && tm.tm_mday == 31;
13615 bigtime_test (int j)
13619 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
13620 now = mktime (&tm);
13621 if (now != (time_t) -1)
13623 struct tm *lt = localtime (&now);
13625 && lt->tm_year == tm.tm_year
13626 && lt->tm_mon == tm.tm_mon
13627 && lt->tm_mday == tm.tm_mday
13628 && lt->tm_hour == tm.tm_hour
13629 && lt->tm_min == tm.tm_min
13630 && lt->tm_sec == tm.tm_sec
13631 && lt->tm_yday == tm.tm_yday
13632 && lt->tm_wday == tm.tm_wday
13633 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
13634 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
13643 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
13644 ignoring leap seconds. */
13645 unsigned long int answer = 2527315200UL;
13649 tm.tm_year = 2050 - 1900;
13652 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
13655 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
13656 instead of "TZ=America/Vancouver" in order to detect the bug even
13657 on systems that don't support the Olson extension, or don't have the
13658 full zoneinfo tables installed. */
13659 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
13663 /* Check that the result is either a failure, or close enough
13664 to the correct answer that we can assume the discrepancy is
13665 due to leap seconds. */
13666 return (t == (time_t) -1
13667 || (0 < t && answer - 120 <= t && t <= answer + 120));
13676 int time_t_signed_magnitude = (time_t) ~ (time_t) 0 < (time_t) -1;
13677 int time_t_signed = ! ((time_t) 0 < (time_t) -1);
13679 /* This test makes some buggy mktime implementations loop.
13680 Give up after 60 seconds; a mktime slower than that
13681 isn't worth using anyway. */
13684 time_t_max = (! time_t_signed
13686 : ((((time_t) 1 << (sizeof (time_t) * CHAR_BIT - 2)) - 1)
13688 time_t_min = (! time_t_signed
13690 : time_t_signed_magnitude
13694 delta = time_t_max / 997; /* a suitable prime number */
13695 for (i = 0; i < N_STRINGS; i++)
13698 putenv (tz_strings[i]);
13700 for (t = 0; t <= time_t_max - delta && (result & 1) == 0; t += delta)
13701 if (! mktime_test (t))
13703 if ((result & 2) == 0
13704 && ! (mktime_test ((time_t) 1)
13705 && mktime_test ((time_t) (60 * 60))
13706 && mktime_test ((time_t) (60 * 60 * 24))))
13709 for (j = 1; (result & 4) == 0; j <<= 1)
13711 if (! bigtime_test (j))
13713 if (INT_MAX / 2 < j)
13716 if ((result & 8) == 0 && ! bigtime_test (INT_MAX))
13719 if (! irix_6_4_bug ())
13721 if (! spring_forward_gap ())
13723 if (! year_2050_test ())
13728 if ac_fn_c_try_run
"$LINENO"; then :
13729 gl_cv_func_working_mktime
=yes
13731 gl_cv_func_working_mktime
=no
13733 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13734 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_mktime" >&5
13740 $as_echo "$gl_cv_func_working_mktime" >&6; }
13742 if test $gl_cv_func_working_mktime = no
; then
13748 if test $REPLACE_MKTIME = 1; then
13757 gl_LIBOBJS
="$gl_LIBOBJS mktime.$ac_objext"
13780 if test $ac_cv_func_pselect = yes; then
13781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether signature of pselect conforms to POSIX" >&5
13782 $as_echo_n "checking whether signature of pselect conforms to POSIX... " >&6; }
13783 if test "${gl_cv_sig_pselect+set}" = set; then :
13784 $as_echo_n "(cached) " >&6
13786 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13787 /* end confdefs.h. */
13788 #include <sys/select.h>
13793 int (*p) (int, fd_set *, fd_set *, fd_set *restrict,
13794 struct timespec const *restrict,
13795 sigset_t const *restrict) = pselect;
13801 if ac_fn_c_try_link
"$LINENO"; then :
13802 gl_cv_sig_pselect
=yes
13804 gl_cv_sig_pselect
=no
13806 rm -f core conftest.err conftest.
$ac_objext \
13807 conftest
$ac_exeext conftest.
$ac_ext
13809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sig_pselect" >&5
13810 $as_echo "$gl_cv_sig_pselect" >&6; }
13813 if test $ac_cv_func_pselect = no ||
test $gl_cv_sig_pselect = no
; then
13817 if test $HAVE_PSELECT = 0 ||
test $REPLACE_PSELECT = 1; then
13826 gl_LIBOBJS
="$gl_LIBOBJS pselect.$ac_objext"
13844 LIB_PTHREAD_SIGMASK
=
13847 if test $ac_cv_func_pthread_sigmask = yes; then
13850 HAVE_PTHREAD_SIGMASK
=0
13851 REPLACE_PTHREAD_SIGMASK
=1
13857 if test $HAVE_PTHREAD_SIGMASK = 1; then
13860 if test -z "$LIB_PTHREAD_SIGMASK"; then
13861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask works without -lpthread" >&5
13862 $as_echo_n "checking whether pthread_sigmask works without -lpthread... " >&6; }
13863 if test "${gl_cv_func_pthread_sigmask_in_libc_works+set}" = set; then :
13864 $as_echo_n "(cached) " >&6
13867 if test "$cross_compiling" = yes; then :
13870 freebsd
* | hpux
* | solaris | solaris2.
[2-9]*)
13871 gl_cv_func_pthread_sigmask_in_libc_works
="guessing no";;
13873 gl_cv_func_pthread_sigmask_in_libc_works
="guessing yes";;
13877 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13878 /* end confdefs.h. */
13880 #include <pthread.h>
13881 #include <signal.h>
13882 #include <stddef.h>
13886 sigemptyset (&set);
13887 return pthread_sigmask (1729, &set, NULL) != 0;
13890 if ac_fn_c_try_run
"$LINENO"; then :
13891 gl_cv_func_pthread_sigmask_in_libc_works
=no
13893 gl_cv_func_pthread_sigmask_in_libc_works
=yes
13895 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13896 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_in_libc_works" >&5
13902 $as_echo "$gl_cv_func_pthread_sigmask_in_libc_works" >&6; }
13903 case "$gl_cv_func_pthread_sigmask_in_libc_works" in
13905 REPLACE_PTHREAD_SIGMASK
=1
13907 $as_echo "#define PTHREAD_SIGMASK_INEFFECTIVE 1" >>confdefs.h
13913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask returns error numbers" >&5
13914 $as_echo_n "checking whether pthread_sigmask returns error numbers... " >&6; }
13915 if test "${gl_cv_func_pthread_sigmask_return_works+set}" = set; then :
13916 $as_echo_n "(cached) " >&6
13919 gl_save_LIBS
="$LIBS"
13920 LIBS
="$LIBS $LIB_PTHREAD_SIGMASK"
13921 if test "$cross_compiling" = yes; then :
13924 gl_cv_func_pthread_sigmask_return_works
="guessing no";;
13926 gl_cv_func_pthread_sigmask_return_works
="guessing yes";;
13930 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13931 /* end confdefs.h. */
13933 #include <pthread.h>
13934 #include <signal.h>
13935 #include <stddef.h>
13939 sigemptyset (&set);
13940 if (pthread_sigmask (1729, &set, NULL) == -1)
13945 if ac_fn_c_try_run
"$LINENO"; then :
13946 gl_cv_func_pthread_sigmask_return_works
=yes
13948 gl_cv_func_pthread_sigmask_return_works
=no
13950 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13951 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13954 LIBS
="$gl_save_LIBS"
13957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_return_works" >&5
13958 $as_echo "$gl_cv_func_pthread_sigmask_return_works" >&6; }
13959 case "$gl_cv_func_pthread_sigmask_return_works" in
13961 REPLACE_PTHREAD_SIGMASK
=1
13963 $as_echo "#define PTHREAD_SIGMASK_FAILS_WITH_ERRNO 1" >>confdefs.h
13968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask unblocks signals correctly" >&5
13969 $as_echo_n "checking whether pthread_sigmask unblocks signals correctly... " >&6; }
13970 if test "${gl_cv_func_pthread_sigmask_unblock_works+set}" = set; then :
13971 $as_echo_n "(cached) " >&6
13976 gl_cv_func_pthread_sigmask_unblock_works
="guessing no";;
13978 gl_cv_func_pthread_sigmask_unblock_works
="guessing yes";;
13980 gl_save_LIBS
="$LIBS"
13981 LIBS
="$LIBS $LIBMULTITHREAD"
13982 if test "$cross_compiling" = yes; then :
13985 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13986 /* end confdefs.h. */
13988 #include <pthread.h>
13989 #include <signal.h>
13991 #include <stdlib.h>
13992 #include <unistd.h>
13993 static volatile int sigint_occurred;
13995 sigint_handler (int sig)
14002 int pid = getpid ();
14004 signal (SIGINT, sigint_handler);
14005 sigemptyset (&set);
14006 sigaddset (&set, SIGINT);
14007 if (!(pthread_sigmask (SIG_BLOCK, &set, NULL) == 0))
14009 sprintf (command, "sh -c 'sleep 1; kill -%d %d' &", SIGINT, pid);
14010 if (!(system (command) == 0))
14013 if (!(sigint_occurred == 0))
14015 if (!(pthread_sigmask (SIG_UNBLOCK, &set, NULL) == 0))
14017 if (!(sigint_occurred == 1)) /* This fails on IRIX. */
14022 if ac_fn_c_try_run
"$LINENO"; then :
14025 gl_cv_func_pthread_sigmask_unblock_works
=no
14027 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14028 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14031 LIBS
="$gl_save_LIBS"
14034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_unblock_works" >&5
14035 $as_echo "$gl_cv_func_pthread_sigmask_unblock_works" >&6; }
14036 case "$gl_cv_func_pthread_sigmask_unblock_works" in
14038 REPLACE_PTHREAD_SIGMASK
=1
14040 $as_echo "#define PTHREAD_SIGMASK_UNBLOCK_BUG 1" >>confdefs.h
14046 if test $HAVE_PTHREAD_SIGMASK = 0 ||
test $REPLACE_PTHREAD_SIGMASK = 1; then
14055 gl_LIBOBJS
="$gl_LIBOBJS pthread_sigmask.$ac_objext"
14058 if test $HAVE_PTHREAD_SIGMASK = 1; then
14060 $as_echo "#define HAVE_PTHREAD_SIGMASK 1" >>confdefs.h
14070 GNULIB_PTHREAD_SIGMASK
=1
14079 if test $ac_cv_func_readlink = no
; then
14082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink signature is correct" >&5
14083 $as_echo_n "checking whether readlink signature is correct... " >&6; }
14084 if test "${gl_cv_decl_readlink_works+set}" = set; then :
14085 $as_echo_n "(cached) " >&6
14087 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14088 /* end confdefs.h. */
14089 #include <unistd.h>
14090 /* Cause compilation failure if original declaration has wrong type. */
14091 ssize_t readlink (const char *, char *, size_t);
14100 if ac_fn_c_try_compile
"$LINENO"; then :
14101 gl_cv_decl_readlink_works
=yes
14103 gl_cv_decl_readlink_works
=no
14105 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_readlink_works" >&5
14108 $as_echo "$gl_cv_decl_readlink_works" >&6; }
14109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink handles trailing slash correctly" >&5
14110 $as_echo_n "checking whether readlink handles trailing slash correctly... " >&6; }
14111 if test "${gl_cv_func_readlink_works+set}" = set; then :
14112 $as_echo_n "(cached) " >&6
14114 # We have readlink, so assume ln -s works.
14115 ln -s conftest.no-such conftest.link
14116 ln -s conftest.link conftest.lnk2
14117 if test "$cross_compiling" = yes; then :
14119 # Guess yes on glibc systems.
14120 *-gnu*) gl_cv_func_readlink_works
="guessing yes" ;;
14121 # If we don't know, assume the worst.
14122 *) gl_cv_func_readlink_works
="guessing no" ;;
14126 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14127 /* end confdefs.h. */
14128 #include <unistd.h>
14134 return readlink ("conftest.lnk2/", buf, sizeof buf) != -1;
14139 if ac_fn_c_try_run
"$LINENO"; then :
14140 gl_cv_func_readlink_works
=yes
14142 gl_cv_func_readlink_works
=no
14144 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14145 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14148 rm -f conftest.link conftest.lnk2
14150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_readlink_works" >&5
14151 $as_echo "$gl_cv_func_readlink_works" >&6; }
14152 case "$gl_cv_func_readlink_works" in
14154 if test "$gl_cv_decl_readlink_works" != yes; then
14160 $as_echo "#define READLINK_TRAILING_SLASH_BUG 1" >>confdefs.h
14167 if test $HAVE_READLINK = 0 ||
test $REPLACE_READLINK = 1; then
14176 gl_LIBOBJS
="$gl_LIBOBJS readlink.$ac_objext"
14204 if test $gl_cv_have_include_next = yes; then
14205 gl_cv_next_signal_h
='<'signal.h
'>'
14207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <signal.h>" >&5
14208 $as_echo_n "checking absolute name of <signal.h>... " >&6; }
14209 if test "${gl_cv_next_signal_h+set}" = set; then :
14210 $as_echo_n "(cached) " >&6
14213 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14214 /* end confdefs.h. */
14215 #include <signal.h>
14219 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
14220 *) gl_absname_cpp
="$ac_cpp" ;;
14225 gl_dirsep_regex
='[/\\]'
14228 gl_dirsep_regex
='\/'
14231 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
14233 gl_header_literal_regex
=`echo 'signal.h' \
14234 | sed -e "$gl_make_literal_regex_sed"`
14235 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
14236 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
14241 gl_cv_next_signal_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
14242 sed -n "$gl_absolute_header_sed"`'"'
14246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_signal_h" >&5
14247 $as_echo "$gl_cv_next_signal_h" >&6; }
14249 NEXT_SIGNAL_H
=$gl_cv_next_signal_h
14251 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
14252 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
14253 gl_next_as_first_directive
='<'signal.h
'>'
14255 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
14256 gl_next_as_first_directive
=$gl_cv_next_signal_h
14258 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H
=$gl_next_as_first_directive
14264 # AIX declares sig_atomic_t to already include volatile, and C89 compilers
14265 # then choke on 'volatile sig_atomic_t'. C99 requires that it compile.
14266 ac_fn_c_check_type
"$LINENO" "volatile sig_atomic_t" "ac_cv_type_volatile_sig_atomic_t" "
14267 #include <signal.h>
14270 if test "x$ac_cv_type_volatile_sig_atomic_t" = x
""yes; then :
14273 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
=0
14282 ac_fn_c_check_type
"$LINENO" "sighandler_t" "ac_cv_type_sighandler_t" "
14283 #include <signal.h>
14286 if test "x$ac_cv_type_sighandler_t" = x
""yes; then :
14289 HAVE_SIGHANDLER_T
=0
14295 ac_fn_c_check_type
"$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
14296 /* <sys/types.h> is not needed according to POSIX, but the
14297 <sys/socket.h> in i386-unknown-freebsd4.10 and
14298 powerpc-apple-darwin5.5 required it. */
14299 #include <sys/types.h>
14300 #if HAVE_SYS_SOCKET_H
14301 # include <sys/socket.h>
14302 #elif HAVE_WS2TCPIP_H
14303 # include <ws2tcpip.h>
14307 if test "x$ac_cv_type_socklen_t" = x
""yes; then :
14310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
14311 $as_echo_n "checking for socklen_t equivalent... " >&6; }
14312 if test "${gl_cv_socklen_t_equiv+set}" = set; then :
14313 $as_echo_n "(cached) " >&6
14315 # Systems have either "struct sockaddr *" or
14316 # "void *" as the second argument to getpeername
14317 gl_cv_socklen_t_equiv
=
14318 for arg2
in "struct sockaddr" void
; do
14319 for t
in int size_t
"unsigned int" "long int" "unsigned long int"; do
14320 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14321 /* end confdefs.h. */
14322 #include <sys/types.h>
14323 #include <sys/socket.h>
14325 int getpeername (int, $arg2 *, $t *);
14330 getpeername (0, 0, &len);
14335 if ac_fn_c_try_compile
"$LINENO"; then :
14336 gl_cv_socklen_t_equiv
="$t"
14338 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14339 test "$gl_cv_socklen_t_equiv" != "" && break
14341 test "$gl_cv_socklen_t_equiv" != "" && break
14346 if test "$gl_cv_socklen_t_equiv" = ""; then
14347 as_fn_error
"Cannot find a type to use in place of socklen_t" "$LINENO" 5
14349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socklen_t_equiv" >&5
14350 $as_echo "$gl_cv_socklen_t_equiv" >&6; }
14352 cat >>confdefs.h
<<_ACEOF
14353 #define socklen_t $gl_cv_socklen_t_equiv
14359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
14360 $as_echo_n "checking for ssize_t... " >&6; }
14361 if test "${gt_cv_ssize_t+set}" = set; then :
14362 $as_echo_n "(cached) " >&6
14364 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14365 /* end confdefs.h. */
14366 #include <sys/types.h>
14370 int x = sizeof (ssize_t *) + sizeof (ssize_t);
14376 if ac_fn_c_try_compile
"$LINENO"; then :
14381 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
14384 $as_echo "$gt_cv_ssize_t" >&6; }
14385 if test $gt_cv_ssize_t = no
; then
14387 $as_echo "#define ssize_t int" >>confdefs.h
14396 ac_fn_c_check_member
"$LINENO" "struct stat" "st_atim.tv_nsec" "ac_cv_member_struct_stat_st_atim_tv_nsec" "#include <sys/types.h>
14397 #include <sys/stat.h>
14399 if test "x$ac_cv_member_struct_stat_st_atim_tv_nsec" = x
""yes; then :
14401 cat >>confdefs.h
<<_ACEOF
14402 #define HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC 1
14405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat.st_atim is of type struct timespec" >&5
14406 $as_echo_n "checking whether struct stat.st_atim is of type struct timespec... " >&6; }
14407 if test "${ac_cv_typeof_struct_stat_st_atim_is_struct_timespec+set}" = set; then :
14408 $as_echo_n "(cached) " >&6
14410 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14411 /* end confdefs.h. */
14413 #include <sys/types.h>
14414 #include <sys/stat.h>
14415 #if HAVE_SYS_TIME_H
14416 # include <sys/time.h>
14419 struct timespec ts;
14432 if ac_fn_c_try_compile
"$LINENO"; then :
14433 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec
=yes
14435 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec
=no
14437 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&5
14440 $as_echo "$ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&6; }
14441 if test $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec = yes; then
14443 $as_echo "#define TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC 1" >>confdefs.h
14447 ac_fn_c_check_member
"$LINENO" "struct stat" "st_atimespec.tv_nsec" "ac_cv_member_struct_stat_st_atimespec_tv_nsec" "#include <sys/types.h>
14448 #include <sys/stat.h>
14450 if test "x$ac_cv_member_struct_stat_st_atimespec_tv_nsec" = x
""yes; then :
14452 cat >>confdefs.h
<<_ACEOF
14453 #define HAVE_STRUCT_STAT_ST_ATIMESPEC_TV_NSEC 1
14458 ac_fn_c_check_member
"$LINENO" "struct stat" "st_atimensec" "ac_cv_member_struct_stat_st_atimensec" "#include <sys/types.h>
14459 #include <sys/stat.h>
14461 if test "x$ac_cv_member_struct_stat_st_atimensec" = x
""yes; then :
14463 cat >>confdefs.h
<<_ACEOF
14464 #define HAVE_STRUCT_STAT_ST_ATIMENSEC 1
14469 ac_fn_c_check_member
"$LINENO" "struct stat" "st_atim.st__tim.tv_nsec" "ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" "#include <sys/types.h>
14470 #include <sys/stat.h>
14472 if test "x$ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" = x
""yes; then :
14474 cat >>confdefs.h
<<_ACEOF
14475 #define HAVE_STRUCT_STAT_ST_ATIM_ST__TIM_TV_NSEC 1
14492 ac_fn_c_check_member
"$LINENO" "struct stat" "st_birthtimespec.tv_nsec" "ac_cv_member_struct_stat_st_birthtimespec_tv_nsec" "#include <sys/types.h>
14493 #include <sys/stat.h>
14495 if test "x$ac_cv_member_struct_stat_st_birthtimespec_tv_nsec" = x
""yes; then :
14497 cat >>confdefs.h
<<_ACEOF
14498 #define HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC_TV_NSEC 1
14503 ac_fn_c_check_member
"$LINENO" "struct stat" "st_birthtimensec" "ac_cv_member_struct_stat_st_birthtimensec" "#include <sys/types.h>
14504 #include <sys/stat.h>
14506 if test "x$ac_cv_member_struct_stat_st_birthtimensec" = x
""yes; then :
14508 cat >>confdefs.h
<<_ACEOF
14509 #define HAVE_STRUCT_STAT_ST_BIRTHTIMENSEC 1
14514 ac_fn_c_check_member
"$LINENO" "struct stat" "st_birthtim.tv_nsec" "ac_cv_member_struct_stat_st_birthtim_tv_nsec" "#include <sys/types.h>
14515 #include <sys/stat.h>
14517 if test "x$ac_cv_member_struct_stat_st_birthtim_tv_nsec" = x
""yes; then :
14519 cat >>confdefs.h
<<_ACEOF
14520 #define HAVE_STRUCT_STAT_ST_BIRTHTIM_TV_NSEC 1
14532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working stdalign.h" >&5
14533 $as_echo_n "checking for working stdalign.h... " >&6; }
14534 if test "${gl_cv_header_working_stdalign_h+set}" = set; then :
14535 $as_echo_n "(cached) " >&6
14537 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14538 /* end confdefs.h. */
14539 #include <stdalign.h>
14540 #include <stddef.h>
14542 /* Test that alignof yields a result consistent with offsetof.
14543 This catches GCC bug 52023
14544 <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023>. */
14546 template <class t> struct alignof_helper { char a; t b; };
14547 # define ao(type) offsetof (alignof_helper<type>, b)
14549 # define ao(type) offsetof (struct { char a; type b; }, b)
14551 char test_double[ao (double) % _Alignof (double) == 0 ? 1 : -1];
14552 char test_long[ao (long int) % _Alignof (long int) == 0 ? 1 : -1];
14553 char test_alignof[alignof (double) == _Alignof (double) ? 1 : -1];
14555 /* Test _Alignas only on platforms where gnulib can help. */
14557 (__GNUC__ || __IBMC__ || __IBMCPP__ \
14558 || 0x5110 <= __SUNPRO_C || 1300 <= _MSC_VER)
14559 int alignas (8) alignas_int = 1;
14560 char test_alignas[_Alignof (alignas_int) == 8 ? 1 : -1];
14571 if ac_fn_c_try_compile
"$LINENO"; then :
14572 gl_cv_header_working_stdalign_h
=yes
14574 gl_cv_header_working_stdalign_h
=no
14576 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdalign_h" >&5
14579 $as_echo "$gl_cv_header_working_stdalign_h" >&6; }
14581 if test $gl_cv_header_working_stdalign_h = yes; then
14584 STDALIGN_H
='stdalign.h'
14588 if test -n "$STDALIGN_H"; then
14589 GL_GENERATE_STDALIGN_H_TRUE
=
14590 GL_GENERATE_STDALIGN_H_FALSE
='#'
14592 GL_GENERATE_STDALIGN_H_TRUE
='#'
14593 GL_GENERATE_STDALIGN_H_FALSE
=
14599 NEXT_STDARG_H
='<stdarg.h>'
14600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
14601 $as_echo_n "checking for va_copy... " >&6; }
14602 if test "${gl_cv_func_va_copy+set}" = set; then :
14603 $as_echo_n "(cached) " >&6
14606 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14607 /* end confdefs.h. */
14608 #include <stdarg.h>
14614 void (*func) (va_list, va_list) = va_copy;
14621 if ac_fn_c_try_compile
"$LINENO"; then :
14622 gl_cv_func_va_copy
=yes
14624 gl_cv_func_va_copy
=no
14626 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_va_copy" >&5
14630 $as_echo "$gl_cv_func_va_copy" >&6; }
14631 if test $gl_cv_func_va_copy = no
; then
14632 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14633 /* end confdefs.h. */
14634 #if defined _AIX && !defined __GNUC__
14639 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14640 $EGREP "vaccine" >/dev
/null
2>&1; then :
14647 if test $gl_aixcc = yes; then
14657 if test $gl_cv_have_include_next = yes; then
14658 gl_cv_next_stdarg_h
='<'stdarg.h
'>'
14660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdarg.h>" >&5
14661 $as_echo_n "checking absolute name of <stdarg.h>... " >&6; }
14662 if test "${gl_cv_next_stdarg_h+set}" = set; then :
14663 $as_echo_n "(cached) " >&6
14666 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14667 /* end confdefs.h. */
14668 #include <stdarg.h>
14672 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
14673 *) gl_absname_cpp
="$ac_cpp" ;;
14678 gl_dirsep_regex
='[/\\]'
14681 gl_dirsep_regex
='\/'
14684 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
14686 gl_header_literal_regex
=`echo 'stdarg.h' \
14687 | sed -e "$gl_make_literal_regex_sed"`
14688 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
14689 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
14694 gl_cv_next_stdarg_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
14695 sed -n "$gl_absolute_header_sed"`'"'
14699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdarg_h" >&5
14700 $as_echo "$gl_cv_next_stdarg_h" >&6; }
14702 NEXT_STDARG_H
=$gl_cv_next_stdarg_h
14704 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
14705 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
14706 gl_next_as_first_directive
='<'stdarg.h
'>'
14708 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
14709 gl_next_as_first_directive
=$gl_cv_next_stdarg_h
14711 NEXT_AS_FIRST_DIRECTIVE_STDARG_H
=$gl_next_as_first_directive
14716 if test "$gl_cv_next_stdarg_h" = '""'; then
14717 gl_cv_next_stdarg_h
='"///usr/include/stdarg.h"'
14718 NEXT_STDARG_H
="$gl_cv_next_stdarg_h"
14722 saved_as_echo_n
="$as_echo_n"
14724 if test "${gl_cv_func___va_copy+set}" = set; then :
14725 $as_echo_n "(cached) " >&6
14728 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14729 /* end confdefs.h. */
14730 #include <stdarg.h>
14743 if ac_fn_c_try_compile
"$LINENO"; then :
14744 gl_cv_func___va_copy
=yes
14746 gl_cv_func___va_copy
=no
14748 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14751 as_echo_n
="$saved_as_echo_n"
14753 if test $gl_cv_func___va_copy = yes; then
14755 $as_echo "#define va_copy __va_copy" >>confdefs.h
14760 $as_echo "#define va_copy gl_va_copy" >>confdefs.h
14766 if test -n "$STDARG_H"; then
14767 GL_GENERATE_STDARG_H_TRUE
=
14768 GL_GENERATE_STDARG_H_FALSE
='#'
14770 GL_GENERATE_STDARG_H_TRUE
='#'
14771 GL_GENERATE_STDARG_H_FALSE
=
14779 # Define two additional variables used in the Makefile substitution.
14781 if test "$ac_cv_header_stdbool_h" = yes; then
14784 STDBOOL_H
='stdbool.h'
14787 if test -n "$STDBOOL_H"; then
14788 GL_GENERATE_STDBOOL_H_TRUE
=
14789 GL_GENERATE_STDBOOL_H_FALSE
='#'
14791 GL_GENERATE_STDBOOL_H_TRUE
='#'
14792 GL_GENERATE_STDBOOL_H_FALSE
=
14796 if test "$ac_cv_type__Bool" = yes; then
14807 if test $gt_cv_c_wchar_t = no
; then
14811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
14812 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
14813 if test "${gl_cv_decl_null_works+set}" = set; then :
14814 $as_echo_n "(cached) " >&6
14816 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14817 /* end confdefs.h. */
14818 #include <stddef.h>
14819 int test[2 * (sizeof NULL == sizeof (void *)) -1];
14829 if ac_fn_c_try_compile
"$LINENO"; then :
14830 gl_cv_decl_null_works
=yes
14832 gl_cv_decl_null_works
=no
14834 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
14837 $as_echo "$gl_cv_decl_null_works" >&6; }
14838 if test $gl_cv_decl_null_works = no
; then
14843 if test -n "$STDDEF_H"; then
14844 GL_GENERATE_STDDEF_H_TRUE
=
14845 GL_GENERATE_STDDEF_H_FALSE
='#'
14847 GL_GENERATE_STDDEF_H_TRUE
='#'
14848 GL_GENERATE_STDDEF_H_FALSE
=
14851 if test -n "$STDDEF_H"; then
14860 if test $gl_cv_have_include_next = yes; then
14861 gl_cv_next_stddef_h
='<'stddef.h
'>'
14863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
14864 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
14865 if test "${gl_cv_next_stddef_h+set}" = set; then :
14866 $as_echo_n "(cached) " >&6
14869 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14870 /* end confdefs.h. */
14871 #include <stddef.h>
14875 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
14876 *) gl_absname_cpp
="$ac_cpp" ;;
14881 gl_dirsep_regex
='[/\\]'
14884 gl_dirsep_regex
='\/'
14887 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
14889 gl_header_literal_regex
=`echo 'stddef.h' \
14890 | sed -e "$gl_make_literal_regex_sed"`
14891 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
14892 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
14897 gl_cv_next_stddef_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
14898 sed -n "$gl_absolute_header_sed"`'"'
14902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
14903 $as_echo "$gl_cv_next_stddef_h" >&6; }
14905 NEXT_STDDEF_H
=$gl_cv_next_stddef_h
14907 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
14908 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
14909 gl_next_as_first_directive
='<'stddef.h
'>'
14911 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
14912 gl_next_as_first_directive
=$gl_cv_next_stddef_h
14914 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
=$gl_next_as_first_directive
14933 if test $gl_cv_have_include_next = yes; then
14934 gl_cv_next_stdio_h
='<'stdio.h
'>'
14936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
14937 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
14938 if test "${gl_cv_next_stdio_h+set}" = set; then :
14939 $as_echo_n "(cached) " >&6
14942 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14943 /* end confdefs.h. */
14948 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
14949 *) gl_absname_cpp
="$ac_cpp" ;;
14954 gl_dirsep_regex
='[/\\]'
14957 gl_dirsep_regex
='\/'
14960 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
14962 gl_header_literal_regex
=`echo 'stdio.h' \
14963 | sed -e "$gl_make_literal_regex_sed"`
14964 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
14965 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
14970 gl_cv_next_stdio_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
14971 sed -n "$gl_absolute_header_sed"`'"'
14975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
14976 $as_echo "$gl_cv_next_stdio_h" >&6; }
14978 NEXT_STDIO_H
=$gl_cv_next_stdio_h
14980 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
14981 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
14982 gl_next_as_first_directive
='<'stdio.h
'>'
14984 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
14985 gl_next_as_first_directive
=$gl_cv_next_stdio_h
14987 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
=$gl_next_as_first_directive
14996 cat >>confdefs.h
<<_ACEOF
14997 #define GNULIB_FSCANF 1
15004 cat >>confdefs.h
<<_ACEOF
15005 #define GNULIB_SCANF 1
15041 if test $gl_cv_have_include_next = yes; then
15042 gl_cv_next_stdlib_h
='<'stdlib.h
'>'
15044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
15045 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
15046 if test "${gl_cv_next_stdlib_h+set}" = set; then :
15047 $as_echo_n "(cached) " >&6
15050 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15051 /* end confdefs.h. */
15052 #include <stdlib.h>
15056 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
15057 *) gl_absname_cpp
="$ac_cpp" ;;
15062 gl_dirsep_regex
='[/\\]'
15065 gl_dirsep_regex
='\/'
15068 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
15070 gl_header_literal_regex
=`echo 'stdlib.h' \
15071 | sed -e "$gl_make_literal_regex_sed"`
15072 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
15073 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
15078 gl_cv_next_stdlib_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15079 sed -n "$gl_absolute_header_sed"`'"'
15083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
15084 $as_echo "$gl_cv_next_stdlib_h" >&6; }
15086 NEXT_STDLIB_H
=$gl_cv_next_stdlib_h
15088 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
15089 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15090 gl_next_as_first_directive
='<'stdlib.h
'>'
15092 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15093 gl_next_as_first_directive
=$gl_cv_next_stdlib_h
15095 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
=$gl_next_as_first_directive
15105 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
15113 $as_echo "#define my_strftime nstrftime" >>confdefs.h
15122 if test "$ac_cv_have_decl_strtoimax" != yes; then
15123 HAVE_DECL_STRTOIMAX
=0
15126 if test $ac_cv_func_strtoimax = yes; then
15128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtoimax works" >&5
15129 $as_echo_n "checking whether strtoimax works... " >&6; }
15130 if test "${gl_cv_func_strtoimax+set}" = set; then :
15131 $as_echo_n "(cached) " >&6
15133 if test "$cross_compiling" = yes; then :
15135 # Guess no on AIX 5.
15136 aix5
*) gl_cv_func_strtoimax
="guessing no" ;;
15137 # Guess yes otherwise.
15138 *) gl_cv_func_strtoimax
="guessing yes" ;;
15142 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15143 /* end confdefs.h. */
15146 #include <string.h>
15147 #include <inttypes.h>
15150 if (sizeof (intmax_t) > sizeof (int))
15152 const char *s = "4294967295";
15156 res = strtoimax (s, &p, 10);
15157 if (p != s + strlen (s))
15161 if (res != (intmax_t) 65535 * (intmax_t) 65537)
15166 const char *s = "2147483647";
15170 res = strtoimax (s, &p, 10);
15171 if (p != s + strlen (s))
15175 if (res != 2147483647)
15182 if ac_fn_c_try_run
"$LINENO"; then :
15183 gl_cv_func_strtoimax
=yes
15185 gl_cv_func_strtoimax
=no
15187 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15188 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strtoimax" >&5
15194 $as_echo "$gl_cv_func_strtoimax" >&6; }
15195 case "$gl_cv_func_strtoimax" in
15196 *no
) REPLACE_STRTOIMAX
=1 ;;
15202 if test $HAVE_STRTOIMAX = 0 ||
test $REPLACE_STRTOIMAX = 1; then
15211 gl_LIBOBJS
="$gl_LIBOBJS strtoimax.$ac_objext"
15214 ac_fn_c_check_decl
"$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
15215 if test "x$ac_cv_have_decl_strtoll" = x
""yes; then :
15221 cat >>confdefs.h
<<_ACEOF
15222 #define HAVE_DECL_STRTOLL $ac_have_decl
15243 if test "$ac_cv_have_decl_strtoumax" != yes; then
15244 HAVE_DECL_STRTOUMAX
=0
15247 if test $ac_cv_func_strtoumax = no
; then
15256 gl_LIBOBJS
="$gl_LIBOBJS strtoumax.$ac_objext"
15259 ac_fn_c_check_decl
"$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
15260 if test "x$ac_cv_have_decl_strtoull" = x
""yes; then :
15266 cat >>confdefs.h
<<_ACEOF
15267 #define HAVE_DECL_STRTOULL $ac_have_decl
15286 if test $ac_cv_func_symlink = no
; then
15289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symlink handles trailing slash correctly" >&5
15290 $as_echo_n "checking whether symlink handles trailing slash correctly... " >&6; }
15291 if test "${gl_cv_func_symlink_works+set}" = set; then :
15292 $as_echo_n "(cached) " >&6
15294 if test "$cross_compiling" = yes; then :
15296 # Guess yes on glibc systems.
15297 *-gnu*) gl_cv_func_symlink_works
="guessing yes" ;;
15298 # If we don't know, assume the worst.
15299 *) gl_cv_func_symlink_works
="guessing no" ;;
15303 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15304 /* end confdefs.h. */
15305 #include <unistd.h>
15311 if (!symlink ("a", "conftest.link/"))
15313 if (symlink ("conftest.f", "conftest.lnk2"))
15315 else if (!symlink ("a", "conftest.lnk2/"))
15323 if ac_fn_c_try_run
"$LINENO"; then :
15324 gl_cv_func_symlink_works
=yes
15326 gl_cv_func_symlink_works
=no
15328 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15329 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15332 rm -f conftest.f conftest.link conftest.lnk2
15334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_symlink_works" >&5
15335 $as_echo "$gl_cv_func_symlink_works" >&6; }
15336 case "$gl_cv_func_symlink_works" in
15344 if test $HAVE_SYMLINK = 0 ||
test $REPLACE_SYMLINK = 1; then
15353 gl_LIBOBJS
="$gl_LIBOBJS symlink.$ac_objext"
15370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/select.h> is self-contained" >&5
15371 $as_echo_n "checking whether <sys/select.h> is self-contained... " >&6; }
15372 if test "${gl_cv_header_sys_select_h_selfcontained+set}" = set; then :
15373 $as_echo_n "(cached) " >&6
15376 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15377 /* end confdefs.h. */
15378 #include <sys/select.h>
15387 if ac_fn_c_try_compile
"$LINENO"; then :
15388 gl_cv_header_sys_select_h_selfcontained
=yes
15390 gl_cv_header_sys_select_h_selfcontained
=no
15392 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15393 if test $gl_cv_header_sys_select_h_selfcontained = yes; then
15394 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15395 /* end confdefs.h. */
15396 #include <sys/select.h>
15400 int memset; int bzero;
15406 if ac_fn_c_try_compile
"$LINENO"; then :
15407 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15408 /* end confdefs.h. */
15409 #include <sys/select.h>
15415 #define memset nonexistent_memset
15420 void *memset (void *, int, unsigned long);
15422 #define bzero nonexistent_bzero
15427 void bzero (void *, unsigned long);
15436 if ac_fn_c_try_link
"$LINENO"; then :
15439 gl_cv_header_sys_select_h_selfcontained
=no
15441 rm -f core conftest.err conftest.
$ac_objext \
15442 conftest
$ac_exeext conftest.
$ac_ext
15445 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_select_h_selfcontained" >&5
15450 $as_echo "$gl_cv_header_sys_select_h_selfcontained" >&6; }
15460 if test $gl_cv_have_include_next = yes; then
15461 gl_cv_next_sys_select_h
='<'sys
/select.h
'>'
15463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/select.h>" >&5
15464 $as_echo_n "checking absolute name of <sys/select.h>... " >&6; }
15465 if test "${gl_cv_next_sys_select_h+set}" = set; then :
15466 $as_echo_n "(cached) " >&6
15469 if test $ac_cv_header_sys_select_h = yes; then
15472 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15473 /* end confdefs.h. */
15474 #include <sys/select.h>
15478 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
15479 *) gl_absname_cpp
="$ac_cpp" ;;
15484 gl_dirsep_regex
='[/\\]'
15487 gl_dirsep_regex
='\/'
15490 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
15492 gl_header_literal_regex
=`echo 'sys/select.h' \
15493 | sed -e "$gl_make_literal_regex_sed"`
15494 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
15495 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
15500 gl_cv_next_sys_select_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15501 sed -n "$gl_absolute_header_sed"`'"'
15503 gl_cv_next_sys_select_h
='<'sys
/select.h
'>'
15508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_select_h" >&5
15509 $as_echo "$gl_cv_next_sys_select_h" >&6; }
15511 NEXT_SYS_SELECT_H
=$gl_cv_next_sys_select_h
15513 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
15514 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15515 gl_next_as_first_directive
='<'sys
/select.h
'>'
15517 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15518 gl_next_as_first_directive
=$gl_cv_next_sys_select_h
15520 NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H
=$gl_next_as_first_directive
15525 if test $ac_cv_header_sys_select_h = yes; then
15526 HAVE_SYS_SELECT_H
=1
15528 HAVE_SYS_SELECT_H
=0
15535 if test $ac_cv_header_sys_socket_h != yes; then
15536 for ac_header
in winsock2.h
15538 ac_fn_c_check_header_mongrel
"$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
15539 if test "x$ac_cv_header_winsock2_h" = x
""yes; then :
15540 cat >>confdefs.h
<<_ACEOF
15541 #define HAVE_WINSOCK2_H 1
15549 if test "$ac_cv_header_winsock2_h" = yes; then
15551 UNISTD_H_HAVE_WINSOCK2_H
=1
15552 SYS_IOCTL_H_HAVE_WINSOCK2_H
=1
15578 if test $gl_cv_have_include_next = yes; then
15579 gl_cv_next_sys_stat_h
='<'sys
/stat.h
'>'
15581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
15582 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
15583 if test "${gl_cv_next_sys_stat_h+set}" = set; then :
15584 $as_echo_n "(cached) " >&6
15587 if test $ac_cv_header_sys_stat_h = yes; then
15590 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15591 /* end confdefs.h. */
15592 #include <sys/stat.h>
15596 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
15597 *) gl_absname_cpp
="$ac_cpp" ;;
15602 gl_dirsep_regex
='[/\\]'
15605 gl_dirsep_regex
='\/'
15608 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
15610 gl_header_literal_regex
=`echo 'sys/stat.h' \
15611 | sed -e "$gl_make_literal_regex_sed"`
15612 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
15613 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
15618 gl_cv_next_sys_stat_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15619 sed -n "$gl_absolute_header_sed"`'"'
15621 gl_cv_next_sys_stat_h
='<'sys
/stat.h
'>'
15626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
15627 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
15629 NEXT_SYS_STAT_H
=$gl_cv_next_sys_stat_h
15631 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
15632 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15633 gl_next_as_first_directive
='<'sys
/stat.h
'>'
15635 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15636 gl_next_as_first_directive
=$gl_cv_next_sys_stat_h
15638 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
=$gl_next_as_first_directive
15650 if test $WINDOWS_64_BIT_ST_SIZE = 1; then
15652 $as_echo "#define _GL_WINDOWS_64_BIT_ST_SIZE 1" >>confdefs.h
15656 ac_fn_c_check_type
"$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
15657 #include <sys/stat.h>
15659 if test "x$ac_cv_type_nlink_t" = x
""yes; then :
15663 $as_echo "#define nlink_t int" >>confdefs.h
15684 ac_fn_c_check_decl
"$LINENO" "localtime_r" "ac_cv_have_decl_localtime_r" "#include <time.h>
15686 if test "x$ac_cv_have_decl_localtime_r" = x
""yes; then :
15692 cat >>confdefs.h
<<_ACEOF
15693 #define HAVE_DECL_LOCALTIME_R $ac_have_decl
15696 if test $ac_cv_have_decl_localtime_r = no
; then
15697 HAVE_DECL_LOCALTIME_R
=0
15701 if test $ac_cv_func_localtime_r = yes; then
15703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime_r is compatible with its POSIX signature" >&5
15704 $as_echo_n "checking whether localtime_r is compatible with its POSIX signature... " >&6; }
15705 if test "${gl_cv_time_r_posix+set}" = set; then :
15706 $as_echo_n "(cached) " >&6
15708 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15709 /* end confdefs.h. */
15714 /* We don't need to append 'restrict's to the argument types,
15715 even though the POSIX signature has the 'restrict's,
15716 since C99 says they can't affect type compatibility. */
15717 struct tm * (*ptr) (time_t const *, struct tm *) = localtime_r;
15719 /* Check the return type is a pointer.
15720 On HP-UX 10 it is 'int'. */
15721 *localtime_r (0, 0);
15727 if ac_fn_c_try_compile
"$LINENO"; then :
15728 gl_cv_time_r_posix
=yes
15730 gl_cv_time_r_posix
=no
15732 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_time_r_posix" >&5
15736 $as_echo "$gl_cv_time_r_posix" >&6; }
15737 if test $gl_cv_time_r_posix = yes; then
15738 REPLACE_LOCALTIME_R
=0
15740 REPLACE_LOCALTIME_R
=1
15746 if test $HAVE_LOCALTIME_R = 0 ||
test $REPLACE_LOCALTIME_R = 1; then
15755 gl_LIBOBJS
="$gl_LIBOBJS time_r.$ac_objext"
15789 if test $gl_cv_have_include_next = yes; then
15790 gl_cv_next_unistd_h
='<'unistd.h
'>'
15792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
15793 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
15794 if test "${gl_cv_next_unistd_h+set}" = set; then :
15795 $as_echo_n "(cached) " >&6
15798 if test $ac_cv_header_unistd_h = yes; then
15801 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15802 /* end confdefs.h. */
15803 #include <unistd.h>
15807 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
15808 *) gl_absname_cpp
="$ac_cpp" ;;
15813 gl_dirsep_regex
='[/\\]'
15816 gl_dirsep_regex
='\/'
15819 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
15821 gl_header_literal_regex
=`echo 'unistd.h' \
15822 | sed -e "$gl_make_literal_regex_sed"`
15823 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
15824 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
15829 gl_cv_next_unistd_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15830 sed -n "$gl_absolute_header_sed"`'"'
15832 gl_cv_next_unistd_h
='<'unistd.h
'>'
15837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
15838 $as_echo "$gl_cv_next_unistd_h" >&6; }
15840 NEXT_UNISTD_H
=$gl_cv_next_unistd_h
15842 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
15843 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15844 gl_next_as_first_directive
='<'unistd.h
'>'
15846 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15847 gl_next_as_first_directive
=$gl_cv_next_unistd_h
15849 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
=$gl_next_as_first_directive
15854 if test $ac_cv_header_unistd_h = yes; then
15873 if test $ac_cv_func_futimens = no
&& test $ac_cv_func_futimesat = yes; then
15874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether futimesat handles NULL file" >&5
15875 $as_echo_n "checking whether futimesat handles NULL file... " >&6; }
15876 if test "${gl_cv_func_futimesat_works+set}" = set; then :
15877 $as_echo_n "(cached) " >&6
15879 touch conftest.
file
15880 if test "$cross_compiling" = yes; then :
15882 # Guess yes on glibc systems.
15883 *-gnu*) gl_cv_func_futimesat_works
="guessing yes" ;;
15884 # If we don't know, assume the worst.
15885 *) gl_cv_func_futimesat_works
="guessing no" ;;
15889 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15890 /* end confdefs.h. */
15892 #include <stddef.h>
15893 #include <sys/times.h>
15899 int fd = open ("conftest.file", O_RDWR);
15900 if (fd < 0) return 1;
15901 if (futimesat (fd, NULL, NULL)) return 2;
15907 if ac_fn_c_try_run
"$LINENO"; then :
15908 gl_cv_func_futimesat_works
=yes
15910 gl_cv_func_futimesat_works
=no
15912 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15913 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15916 rm -f conftest.
file
15918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_futimesat_works" >&5
15919 $as_echo "$gl_cv_func_futimesat_works" >&6; }
15920 case "$gl_cv_func_futimesat_works" in
15924 $as_echo "#define FUTIMESAT_NULL_BUG 1" >>confdefs.h
15930 gl_gnulib_enabled_dosname
=false
15931 gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36
=false
15932 gl_gnulib_enabled_pathmax
=false
15933 gl_gnulib_enabled_stat
=false
15934 gl_gnulib_enabled_strtoll
=false
15935 gl_gnulib_enabled_strtoull
=false
15936 gl_gnulib_enabled_verify
=false
15937 func_gl_gnulib_m4code_dosname
()
15939 if ! $gl_gnulib_enabled_dosname; then
15940 gl_gnulib_enabled_dosname
=true
15943 func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36
()
15945 if ! $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
15948 gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36
=true
15951 func_gl_gnulib_m4code_pathmax
()
15953 if ! $gl_gnulib_enabled_pathmax; then
15957 gl_gnulib_enabled_pathmax
=true
15960 func_gl_gnulib_m4code_stat
()
15962 if ! $gl_gnulib_enabled_stat; then
15966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on directories" >&5
15967 $as_echo_n "checking whether stat handles trailing slashes on directories... " >&6; }
15968 if test "${gl_cv_func_stat_dir_slash+set}" = set; then :
15969 $as_echo_n "(cached) " >&6
15971 if test "$cross_compiling" = yes; then :
15973 mingw
*) gl_cv_func_stat_dir_slash
="guessing no";;
15974 *) gl_cv_func_stat_dir_slash
="guessing yes";;
15977 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15978 /* end confdefs.h. */
15979 #include <sys/stat.h>
15984 struct stat st; return stat (".", &st) != stat ("./", &st);
15989 if ac_fn_c_try_run
"$LINENO"; then :
15990 gl_cv_func_stat_dir_slash
=yes
15992 gl_cv_func_stat_dir_slash
=no
15994 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15995 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_dir_slash" >&5
16000 $as_echo "$gl_cv_func_stat_dir_slash" >&6; }
16001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
16002 $as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
16003 if test "${gl_cv_func_stat_file_slash+set}" = set; then :
16004 $as_echo_n "(cached) " >&6
16007 # Assume that if we have lstat, we can also check symlinks.
16008 if test $ac_cv_func_lstat = yes; then
16009 ln -s conftest.tmp conftest.lnk
16011 if test "$cross_compiling" = yes; then :
16013 # Guess yes on glibc systems.
16014 *-gnu*) gl_cv_func_stat_file_slash
="guessing yes" ;;
16015 # If we don't know, assume the worst.
16016 *) gl_cv_func_stat_file_slash
="guessing no" ;;
16020 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16021 /* end confdefs.h. */
16022 #include <sys/stat.h>
16029 if (!stat ("conftest.tmp/", &st))
16032 if (!stat ("conftest.lnk/", &st))
16041 if ac_fn_c_try_run
"$LINENO"; then :
16042 gl_cv_func_stat_file_slash
=yes
16044 gl_cv_func_stat_file_slash
=no
16046 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16047 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16050 rm -f conftest.tmp conftest.lnk
16052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
16053 $as_echo "$gl_cv_func_stat_file_slash" >&6; }
16054 case $gl_cv_func_stat_dir_slash in
16055 *no
) REPLACE_STAT
=1
16057 $as_echo "#define REPLACE_FUNC_STAT_DIR 1" >>confdefs.h
16060 case $gl_cv_func_stat_file_slash in
16061 *no
) REPLACE_STAT
=1
16063 $as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
16067 if test $REPLACE_STAT = 1; then
16076 gl_LIBOBJS
="$gl_LIBOBJS stat.$ac_objext"
16094 gl_gnulib_enabled_stat
=true
16095 if test $REPLACE_STAT = 1; then
16096 func_gl_gnulib_m4code_dosname
16098 if test $REPLACE_STAT = 1; then
16099 func_gl_gnulib_m4code_pathmax
16101 if test $REPLACE_STAT = 1; then
16102 func_gl_gnulib_m4code_verify
16106 func_gl_gnulib_m4code_strtoll
()
16108 if ! $gl_gnulib_enabled_strtoll; then
16112 if test "$ac_cv_type_long_long_int" = yes; then
16113 for ac_func
in strtoll
16115 ac_fn_c_check_func
"$LINENO" "strtoll" "ac_cv_func_strtoll"
16116 if test "x$ac_cv_func_strtoll" = x
""yes; then :
16117 cat >>confdefs.h
<<_ACEOF
16118 #define HAVE_STRTOLL 1
16124 if test $ac_cv_func_strtoll = no
; then
16129 if test $HAVE_STRTOLL = 0; then
16138 gl_LIBOBJS
="$gl_LIBOBJS strtoll.$ac_objext"
16155 gl_gnulib_enabled_strtoll
=true
16158 func_gl_gnulib_m4code_strtoull
()
16160 if ! $gl_gnulib_enabled_strtoull; then
16164 if test "$ac_cv_type_unsigned_long_long_int" = yes; then
16165 for ac_func
in strtoull
16167 ac_fn_c_check_func
"$LINENO" "strtoull" "ac_cv_func_strtoull"
16168 if test "x$ac_cv_func_strtoull" = x
""yes; then :
16169 cat >>confdefs.h
<<_ACEOF
16170 #define HAVE_STRTOULL 1
16176 if test $ac_cv_func_strtoull = no
; then
16181 if test $HAVE_STRTOULL = 0; then
16190 gl_LIBOBJS
="$gl_LIBOBJS strtoull.$ac_objext"
16207 gl_gnulib_enabled_strtoull
=true
16210 func_gl_gnulib_m4code_verify
()
16212 if ! $gl_gnulib_enabled_verify; then
16213 gl_gnulib_enabled_verify
=true
16216 if test $REPLACE_GETOPT = 1; then
16217 func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36
16219 if test $REPLACE_LSTAT = 1; then
16220 func_gl_gnulib_m4code_dosname
16222 if test $REPLACE_LSTAT = 1; then
16223 func_gl_gnulib_m4code_stat
16225 if test $HAVE_READLINK = 0 ||
test $REPLACE_READLINK = 1; then
16226 func_gl_gnulib_m4code_stat
16228 if { test $HAVE_STRTOIMAX = 0 ||
test $REPLACE_STRTOIMAX = 1; } && test $ac_cv_type_long_long_int = yes; then
16229 func_gl_gnulib_m4code_strtoll
16231 if test $HAVE_STRTOIMAX = 0 ||
test $REPLACE_STRTOIMAX = 1; then
16232 func_gl_gnulib_m4code_verify
16234 if test $ac_cv_func_strtoumax = no
&& test $ac_cv_type_unsigned_long_long_int = yes; then
16235 func_gl_gnulib_m4code_strtoull
16237 if test $ac_cv_func_strtoumax = no
; then
16238 func_gl_gnulib_m4code_verify
16241 if $gl_gnulib_enabled_dosname; then
16242 gl_GNULIB_ENABLED_dosname_TRUE
=
16243 gl_GNULIB_ENABLED_dosname_FALSE
='#'
16245 gl_GNULIB_ENABLED_dosname_TRUE
='#'
16246 gl_GNULIB_ENABLED_dosname_FALSE
=
16249 if $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
16250 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE
=
16251 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE
='#'
16253 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE
='#'
16254 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE
=
16257 if $gl_gnulib_enabled_pathmax; then
16258 gl_GNULIB_ENABLED_pathmax_TRUE
=
16259 gl_GNULIB_ENABLED_pathmax_FALSE
='#'
16261 gl_GNULIB_ENABLED_pathmax_TRUE
='#'
16262 gl_GNULIB_ENABLED_pathmax_FALSE
=
16265 if $gl_gnulib_enabled_stat; then
16266 gl_GNULIB_ENABLED_stat_TRUE
=
16267 gl_GNULIB_ENABLED_stat_FALSE
='#'
16269 gl_GNULIB_ENABLED_stat_TRUE
='#'
16270 gl_GNULIB_ENABLED_stat_FALSE
=
16273 if $gl_gnulib_enabled_strtoll; then
16274 gl_GNULIB_ENABLED_strtoll_TRUE
=
16275 gl_GNULIB_ENABLED_strtoll_FALSE
='#'
16277 gl_GNULIB_ENABLED_strtoll_TRUE
='#'
16278 gl_GNULIB_ENABLED_strtoll_FALSE
=
16281 if $gl_gnulib_enabled_strtoull; then
16282 gl_GNULIB_ENABLED_strtoull_TRUE
=
16283 gl_GNULIB_ENABLED_strtoull_FALSE
='#'
16285 gl_GNULIB_ENABLED_strtoull_TRUE
='#'
16286 gl_GNULIB_ENABLED_strtoull_FALSE
=
16289 if $gl_gnulib_enabled_verify; then
16290 gl_GNULIB_ENABLED_verify_TRUE
=
16291 gl_GNULIB_ENABLED_verify_FALSE
='#'
16293 gl_GNULIB_ENABLED_verify_TRUE
='#'
16294 gl_GNULIB_ENABLED_verify_FALSE
=
16297 # End of code from modules
16318 gl_source_base
='tests'
16319 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
16321 gl_module_indicator_condition
=$gltests_WITNESS
16332 LIBGNU_LIBDEPS
="$gl_libdeps"
16334 LIBGNU_LTLIBDEPS
="$gl_ltlibdeps"
16338 # Extract the first word of "pkg-config", so it can be a program name with args.
16339 set dummy pkg-config
; ac_word
=$2
16340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16341 $as_echo_n "checking for $ac_word... " >&6; }
16342 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
16343 $as_echo_n "(cached) " >&6
16345 case $PKG_CONFIG in
16347 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
16350 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
16351 for as_dir
in $PATH
16354 test -z "$as_dir" && as_dir
=.
16355 for ac_exec_ext
in '' $ac_executable_extensions; do
16356 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16357 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
16358 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16365 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
16369 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
16370 if test -n "$PKG_CONFIG"; then
16371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
16372 $as_echo "$PKG_CONFIG" >&6; }
16374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16375 $as_echo "no" >&6; }
16383 if test "${with_sound}" != "no"; then
16384 # Sound support for GNU/Linux and the free BSDs.
16385 for ac_header
in machine
/soundcard.h sys
/soundcard.h soundcard.h
16387 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16388 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16389 eval as_val
=\$
$as_ac_Header
16390 if test "x$as_val" = x
""yes; then :
16391 cat >>confdefs.h
<<_ACEOF
16392 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16394 have_sound_header
=yes
16399 # Emulation library used on NetBSD.
16400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
16401 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
16402 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then :
16403 $as_echo_n "(cached) " >&6
16405 ac_check_lib_save_LIBS
=$LIBS
16406 LIBS
="-lossaudio $LIBS"
16407 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16408 /* end confdefs.h. */
16410 /* Override any GCC internal prototype to avoid an error.
16411 Use char because int might match the return type of a GCC
16412 builtin and then its argument prototype would still apply. */
16416 char _oss_ioctl ();
16420 return _oss_ioctl ();
16425 if ac_fn_c_try_link
"$LINENO"; then :
16426 ac_cv_lib_ossaudio__oss_ioctl
=yes
16428 ac_cv_lib_ossaudio__oss_ioctl
=no
16430 rm -f core conftest.err conftest.
$ac_objext \
16431 conftest
$ac_exeext conftest.
$ac_ext
16432 LIBS
=$ac_check_lib_save_LIBS
16434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
16435 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
16436 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = x
""yes; then :
16437 LIBSOUND
=-lossaudio
16444 ALSA_REQUIRED
=1.0.0
16445 ALSA_MODULES
="alsa >= $ALSA_REQUIRED"
16449 if test "$PKG_CONFIG" = "no" ; then
16452 PKG_CONFIG_MIN_VERSION
=0.9.0
16453 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
16454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ALSA_MODULES" >&5
16455 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
16457 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5 &&
16458 ALSA_CFLAGS
=`$PKG_CONFIG --cflags "$ALSA_MODULES" 2>&5` &&
16459 ALSA_LIBS
=`$PKG_CONFIG --libs "$ALSA_MODULES" 2>&5`; then
16466 ALSA_CFLAGS
=`$as_echo "$ALSA_CFLAGS" | sed -e "$edit_cflags"`
16467 ALSA_LIBS
=`$as_echo "$ALSA_LIBS" | sed -e 's,///*,/,g'`
16468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$ALSA_CFLAGS' LIBS='$ALSA_LIBS'" >&5
16469 $as_echo "yes CFLAGS='$ALSA_CFLAGS' LIBS='$ALSA_LIBS'" >&6; }
16472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16473 $as_echo "no" >&6; }
16476 ## If we have a custom action on failure, don't print errors, but
16477 ## do set a variable so people can do so.
16478 ALSA_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
16485 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
16486 echo "*** See http://www.freedesktop.org/software/pkgconfig"
16490 if test $succeeded = yes; then
16496 if test $HAVE_ALSA = yes; then
16497 SAVE_CFLAGS
="$CFLAGS"
16499 CFLAGS
="$ALSA_CFLAGS $CFLAGS"
16500 LIBS
="$ALSA_LIBS $LIBS"
16501 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16502 /* end confdefs.h. */
16503 #include <asoundlib.h>
16507 snd_lib_error_set_handler (0);
16512 if ac_fn_c_try_compile
"$LINENO"; then :
16513 emacs_alsa_normal
=yes
16515 emacs_alsa_normal
=no
16517 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16518 if test "$emacs_alsa_normal" != yes; then
16519 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16520 /* end confdefs.h. */
16521 #include <alsa/asoundlib.h>
16525 snd_lib_error_set_handler (0);
16530 if ac_fn_c_try_compile
"$LINENO"; then :
16531 emacs_alsa_subdir
=yes
16533 emacs_alsa_subdir
=no
16535 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16536 if test "$emacs_alsa_subdir" != yes; then
16537 as_fn_error
"pkg-config found alsa, but it does not compile. See config.log for error messages." "$LINENO" 5
16539 ALSA_CFLAGS
="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
16542 CFLAGS
="$SAVE_CFLAGS"
16544 LIBSOUND
="$LIBSOUND $ALSA_LIBS"
16545 CFLAGS_SOUND
="$CFLAGS_SOUND $ALSA_CFLAGS"
16547 $as_echo "#define HAVE_ALSA 1" >>confdefs.h
16551 if test x
$have_sound_header = xyes ||
test $HAVE_ALSA = yes; then
16553 gnu-linux|freebsd|netbsd
)
16555 $as_echo "#define HAVE_SOUND 1" >>confdefs.h
16592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if personality LINUX32 can be set" >&5
16593 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
16594 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16595 /* end confdefs.h. */
16596 #include <sys/personality.h>
16600 personality (PER_LINUX32)
16605 if ac_fn_c_try_compile
"$LINENO"; then :
16606 emacs_cv_personality_linux32
=yes
16608 emacs_cv_personality_linux32
=no
16610 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_personality_linux32" >&5
16612 $as_echo "$emacs_cv_personality_linux32" >&6; }
16614 if test $emacs_cv_personality_linux32 = yes; then
16616 $as_echo "#define HAVE_PERSONALITY_LINUX32 1" >>confdefs.h
16620 for ac_header
in term.h
16622 ac_fn_c_check_header_preproc
"$LINENO" "term.h" "ac_cv_header_term_h"
16623 if test "x$ac_cv_header_term_h" = x
""yes; then :
16624 cat >>confdefs.h
<<_ACEOF
16625 #define HAVE_TERM_H 1
16632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
16633 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
16634 if test "${ac_cv_header_time+set}" = set; then :
16635 $as_echo_n "(cached) " >&6
16637 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16638 /* end confdefs.h. */
16639 #include <sys/types.h>
16640 #include <sys/time.h>
16646 if ((struct tm *) 0)
16652 if ac_fn_c_try_compile
"$LINENO"; then :
16653 ac_cv_header_time
=yes
16655 ac_cv_header_time
=no
16657 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
16660 $as_echo "$ac_cv_header_time" >&6; }
16661 if test $ac_cv_header_time = yes; then
16663 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
16667 ac_fn_c_check_decl
"$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "$ac_includes_default"
16668 if test "x$ac_cv_have_decl_sys_siglist" = x
""yes; then :
16674 cat >>confdefs.h
<<_ACEOF
16675 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
16678 if test $ac_cv_have_decl_sys_siglist != yes; then
16679 # For Tru64, at least:
16680 ac_fn_c_check_decl
"$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "$ac_includes_default"
16681 if test "x$ac_cv_have_decl___sys_siglist" = x
""yes; then :
16687 cat >>confdefs.h
<<_ACEOF
16688 #define HAVE_DECL___SYS_SIGLIST $ac_have_decl
16691 if test $ac_cv_have_decl___sys_siglist = yes; then
16693 $as_echo "#define sys_siglist __sys_siglist" >>confdefs.h
16697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
16698 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
16699 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
16700 $as_echo_n "(cached) " >&6
16702 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16703 /* end confdefs.h. */
16704 #include <sys/types.h>
16705 #include <sys/wait.h>
16706 #ifndef WEXITSTATUS
16707 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
16710 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
16718 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
16723 if ac_fn_c_try_compile
"$LINENO"; then :
16724 ac_cv_header_sys_wait_h
=yes
16726 ac_cv_header_sys_wait_h
=no
16728 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
16731 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
16732 if test $ac_cv_header_sys_wait_h = yes; then
16734 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
16739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t" >&5
16740 $as_echo_n "checking for speed_t... " >&6; }
16741 if test "${emacs_cv_speed_t+set}" = set; then :
16742 $as_echo_n "(cached) " >&6
16744 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16745 /* end confdefs.h. */
16746 #include <termios.h>
16755 if ac_fn_c_try_compile
"$LINENO"; then :
16756 emacs_cv_speed_t
=yes
16758 emacs_cv_speed_t
=no
16760 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_speed_t" >&5
16763 $as_echo "$emacs_cv_speed_t" >&6; }
16764 if test $emacs_cv_speed_t = yes; then
16766 $as_echo "#define HAVE_SPEED_T 1" >>confdefs.h
16770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct exception" >&5
16771 $as_echo_n "checking for struct exception... " >&6; }
16772 if test "${emacs_cv_struct_exception+set}" = set; then :
16773 $as_echo_n "(cached) " >&6
16775 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16776 /* end confdefs.h. */
16781 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
16786 if ac_fn_c_try_compile
"$LINENO"; then :
16787 emacs_cv_struct_exception
=yes
16789 emacs_cv_struct_exception
=no
16791 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_exception" >&5
16794 $as_echo "$emacs_cv_struct_exception" >&6; }
16795 HAVE_EXCEPTION
=$emacs_cv_struct_exception
16796 if test $emacs_cv_struct_exception != yes; then
16798 $as_echo "#define NO_MATHERR 1" >>confdefs.h
16803 for ac_header
in net
/if.h
16805 ac_fn_c_check_header_compile
"$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
16806 #if HAVE_SYS_SOCKET_H
16807 #include <sys/socket.h>
16810 if test "x$ac_cv_header_net_if_h" = x
""yes; then :
16811 cat >>confdefs.h
<<_ACEOF
16812 #define HAVE_NET_IF_H 1
16819 for ac_header
in ifaddrs.h
16821 ac_fn_c_check_header_compile
"$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "$ac_includes_default
16822 #if HAVE_SYS_SOCKET_H
16823 #include <sys/socket.h>
16826 if test "x$ac_cv_header_ifaddrs_h" = x
""yes; then :
16827 cat >>confdefs.h
<<_ACEOF
16828 #define HAVE_IFADDRS_H 1
16835 for ac_header
in net
/if_dl.h
16837 ac_fn_c_check_header_compile
"$LINENO" "net/if_dl.h" "ac_cv_header_net_if_dl_h" "$ac_includes_default
16838 #if HAVE_SYS_SOCKET_H
16839 #include <sys/socket.h>
16842 if test "x$ac_cv_header_net_if_dl_h" = x
""yes; then :
16843 cat >>confdefs.h
<<_ACEOF
16844 #define HAVE_NET_IF_DL_H 1
16852 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_flags" "ac_cv_member_struct_ifreq_ifr_flags" "$ac_includes_default
16853 #if HAVE_SYS_SOCKET_H
16854 #include <sys/socket.h>
16857 #include <net/if.h>
16860 if test "x$ac_cv_member_struct_ifreq_ifr_flags" = x
""yes; then :
16862 cat >>confdefs.h
<<_ACEOF
16863 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
16868 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "$ac_includes_default
16869 #if HAVE_SYS_SOCKET_H
16870 #include <sys/socket.h>
16873 #include <net/if.h>
16876 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = x
""yes; then :
16878 cat >>confdefs.h
<<_ACEOF
16879 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
16884 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_netmask" "ac_cv_member_struct_ifreq_ifr_netmask" "$ac_includes_default
16885 #if HAVE_SYS_SOCKET_H
16886 #include <sys/socket.h>
16889 #include <net/if.h>
16892 if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = x
""yes; then :
16894 cat >>confdefs.h
<<_ACEOF
16895 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
16900 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_broadaddr" "ac_cv_member_struct_ifreq_ifr_broadaddr" "$ac_includes_default
16901 #if HAVE_SYS_SOCKET_H
16902 #include <sys/socket.h>
16905 #include <net/if.h>
16908 if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = x
""yes; then :
16910 cat >>confdefs.h
<<_ACEOF
16911 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
16916 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_addr" "ac_cv_member_struct_ifreq_ifr_addr" "$ac_includes_default
16917 #if HAVE_SYS_SOCKET_H
16918 #include <sys/socket.h>
16921 #include <net/if.h>
16924 if test "x$ac_cv_member_struct_ifreq_ifr_addr" = x
""yes; then :
16926 cat >>confdefs.h
<<_ACEOF
16927 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
16932 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_addr.sa_len" "ac_cv_member_struct_ifreq_ifr_addr_sa_len" "$ac_includes_default
16933 #if HAVE_SYS_SOCKET_H
16934 #include <sys/socket.h>
16937 #include <net/if.h>
16940 if test "x$ac_cv_member_struct_ifreq_ifr_addr_sa_len" = x
""yes; then :
16942 cat >>confdefs.h
<<_ACEOF
16943 #define HAVE_STRUCT_IFREQ_IFR_ADDR_SA_LEN 1
16951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__ ((__aligned__ (expr)))" >&5
16952 $as_echo_n "checking for __attribute__ ((__aligned__ (expr)))... " >&6; }
16953 if test "${emacs_cv_attribute_aligned+set}" = set; then :
16954 $as_echo_n "(cached) " >&6
16956 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16957 /* end confdefs.h. */
16958 char __attribute__ ((__aligned__ (1 << 3))) c;
16967 if ac_fn_c_try_compile
"$LINENO"; then :
16968 emacs_cv_attribute_aligned
=yes
16970 emacs_cv_attribute_aligned
=no
16972 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_attribute_aligned" >&5
16975 $as_echo "$emacs_cv_attribute_aligned" >&6; }
16976 if test $emacs_cv_attribute_aligned = yes; then
16978 $as_echo "#define HAVE_ATTRIBUTE_ALIGNED 1" >>confdefs.h
16986 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
16987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU Make" >&5
16988 $as_echo_n "checking whether we are using GNU Make... " >&6; }
16990 testval
=`${MAKE-make} --version 2>/dev/null | grep 'GNU Make'`
16991 if test "x$testval" != x
; then
16994 ac_enable_autodepend
=no
16996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_GNU_MAKE" >&5
16997 $as_echo "$HAVE_GNU_MAKE" >&6; }
16998 if test $HAVE_GNU_MAKE = yes; then
16999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -MMD -MF" >&5
17000 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
17001 SAVE_CFLAGS
="$CFLAGS"
17002 CFLAGS
="$CFLAGS -MMD -MF deps.d -MP"
17003 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17004 /* end confdefs.h. */
17014 if ac_fn_c_try_compile
"$LINENO"; then :
17017 ac_enable_autodepend
=no
17019 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17020 CFLAGS
="$SAVE_CFLAGS"
17021 test -f deps.d || ac_enable_autodepend
=no
17023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_autodepend" >&5
17024 $as_echo "$ac_enable_autodepend" >&6; }
17026 if test $ac_enable_autodepend = yes; then
17027 DEPFLAGS
='-MMD -MF ${DEPDIR}/$*.d -MP'
17028 ## MKDIR_P is documented (see AC_PROG_MKDIR_P) to be parallel-safe.
17029 MKDEPDIR
='${MKDIR_P} ${DEPDIR}'
17030 deps_frag
=autodeps.mk
17033 deps_frag
=$srcdir/src
/$deps_frag
17039 lisp_frag
=$srcdir/src
/lisp.mk
17043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5
17044 $as_echo_n "checking for long file names... " >&6; }
17045 if test "${ac_cv_sys_long_file_names+set}" = set; then :
17046 $as_echo_n "(cached) " >&6
17048 ac_cv_sys_long_file_names
=yes
17049 # Test for long file names in all the places we know might matter:
17050 # . the current directory, where building will happen
17051 # $prefix/lib where we will be installing things
17052 # $exec_prefix/lib likewise
17053 # $TMPDIR if set, where it might want to write temporary files
17054 # /tmp where it might want to write temporary files
17055 # /var/tmp likewise
17056 # /usr/tmp likewise
17057 for ac_dir
in .
"$TMPDIR" /tmp
/var
/tmp
/usr
/tmp
"$prefix/lib" "$exec_prefix/lib"; do
17058 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
17059 # in the usual case where exec_prefix is '${prefix}'.
17061 . |
/* | ?
:[\\/]*) ;; #(
17064 test -w "$ac_dir/." ||
continue # It is less confusing to not echo anything here.
17065 ac_xdir
=$ac_dir/cf$$
17066 (umask 077 && mkdir
"$ac_xdir" 2>/dev
/null
) ||
continue
17067 ac_tf1
=$ac_xdir/conftest9012345
17068 ac_tf2
=$ac_xdir/conftest9012346
17069 touch "$ac_tf1" 2>/dev
/null
&& test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
17070 ac_cv_sys_long_file_names
=no
17071 rm -f -r "$ac_xdir" 2>/dev
/null
17072 test $ac_cv_sys_long_file_names = no
&& break
17075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5
17076 $as_echo "$ac_cv_sys_long_file_names" >&6; }
17077 if test $ac_cv_sys_long_file_names = yes; then
17079 $as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h
17084 #### Choose a window system.
17086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
17087 $as_echo_n "checking for X... " >&6; }
17090 # Check whether --with-x was given.
17091 if test "${with_x+set}" = set; then :
17095 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
17096 if test "x$with_x" = xno
; then
17097 # The user explicitly disabled X.
17100 case $x_includes,$x_libraries in #(
17101 *\'*) as_fn_error
"cannot use X directory names containing '" "$LINENO" 5;; #(
17102 *,NONE | NONE
,*) if test "${ac_cv_have_x+set}" = set; then :
17103 $as_echo_n "(cached) " >&6
17105 # One or both of the vars are not set, and there is no cached value.
17106 ac_x_includes
=no ac_x_libraries
=no
17107 rm -f -r conftest.dir
17108 if mkdir conftest.dir
; then
17110 cat >Imakefile
<<'_ACEOF'
17112 @echo incroot='${INCROOT}'
17114 @echo usrlibdir='${USRLIBDIR}'
17116 @echo libdir='${LIBDIR}'
17118 if (export CC
; ${XMKMF-xmkmf}) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
17119 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
17120 for ac_var
in incroot usrlibdir libdir
; do
17121 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
17123 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
17124 for ac_extension
in a so sl dylib la dll
; do
17125 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
17126 test -f "$ac_im_libdir/libX11.$ac_extension"; then
17127 ac_im_usrlibdir
=$ac_im_libdir; break
17130 # Screen out bogus values from the imake configuration. They are
17131 # bogus both because they are the default anyway, and because
17132 # using them would break gcc on systems where it needs fixed includes.
17133 case $ac_im_incroot in
17134 /usr
/include
) ac_x_includes
= ;;
17135 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
17137 case $ac_im_usrlibdir in
17138 /usr
/lib |
/usr
/lib64 |
/lib |
/lib64
) ;;
17139 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
17143 rm -f -r conftest.dir
17146 # Standard set of common directories for X headers.
17147 # Check X11 before X11Rn because it is often a symlink to the current release.
17161 /usr/local/X11/include
17162 /usr/local/X11R7/include
17163 /usr/local/X11R6/include
17164 /usr/local/X11R5/include
17165 /usr/local/X11R4/include
17167 /usr/local/include/X11
17168 /usr/local/include/X11R7
17169 /usr/local/include/X11R6
17170 /usr/local/include/X11R5
17171 /usr/local/include/X11R4
17175 /usr/XFree86/include/X11
17179 /usr/unsupported/include
17180 /usr/athena/include
17181 /usr/local/x11r5/include
17182 /usr/lpp/Xamples/include
17184 /usr/openwin/include
17185 /usr/openwin/share/include'
17187 if test "$ac_x_includes" = no
; then
17188 # Guess where to find include files, by looking for Xlib.h.
17189 # First, try using that file with no special directory specified.
17190 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17191 /* end confdefs.h. */
17192 #include <X11/Xlib.h>
17194 if ac_fn_c_try_cpp
"$LINENO"; then :
17195 # We can compile using X headers with no special include directory.
17198 for ac_dir
in $ac_x_header_dirs; do
17199 if test -r "$ac_dir/X11/Xlib.h"; then
17200 ac_x_includes
=$ac_dir
17205 rm -f conftest.err conftest.
$ac_ext
17206 fi # $ac_x_includes = no
17208 if test "$ac_x_libraries" = no
; then
17209 # Check for the libraries.
17210 # See if we find them without any special options.
17211 # Don't add to $LIBS permanently.
17214 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17215 /* end confdefs.h. */
17216 #include <X11/Xlib.h>
17225 if ac_fn_c_try_link
"$LINENO"; then :
17227 # We can link X programs with no special library path.
17231 for ac_dir
in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
17233 # Don't even attempt the hair of trying to link an X program!
17234 for ac_extension
in a so sl dylib la dll
; do
17235 if test -r "$ac_dir/libX11.$ac_extension"; then
17236 ac_x_libraries
=$ac_dir
17242 rm -f core conftest.err conftest.
$ac_objext \
17243 conftest
$ac_exeext conftest.
$ac_ext
17244 fi # $ac_x_libraries = no
17246 case $ac_x_includes,$ac_x_libraries in #(
17247 no
,* |
*,no |
*\'*)
17248 # Didn't find X, or a directory has "'" in its name.
17249 ac_cv_have_x
="have_x=no";; #(
17251 # Record where we found X for the cache.
17252 ac_cv_have_x
="have_x=yes\
17253 ac_x_includes='$ac_x_includes'\
17254 ac_x_libraries='$ac_x_libraries'"
17260 eval "$ac_cv_have_x"
17263 if test "$have_x" != yes; then
17264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
17265 $as_echo "$have_x" >&6; }
17268 # If each of the values was on the command line, it overrides each guess.
17269 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
17270 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
17271 # Update the cache value to reflect the command line values.
17272 ac_cv_have_x
="have_x=yes\
17273 ac_x_includes='$x_includes'\
17274 ac_x_libraries='$x_libraries'"
17275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
17276 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
17279 if test "$no_x" = yes; then
17285 LD_SWITCH_X_SITE_RPATH
=
17286 if test "${x_libraries}" != NONE
; then
17287 if test -n "${x_libraries}"; then
17288 LD_SWITCH_X_SITE
=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
17289 LD_SWITCH_X_SITE_RPATH
=-Wl,-rpath,`echo ${x_libraries} | sed -e "s/:/ -Wl,-rpath,/g"`
17291 x_default_search_path
=""
17292 x_search_path
=${x_libraries}
17293 if test -z "${x_search_path}"; then
17294 x_search_path
=/usr
/lib
17296 for x_library
in `echo ${x_search_path}: | \
17297 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
17299 ${x_library}/X11/%L/%T/%N%C%S:\
17300 ${x_library}/X11/%l/%T/%N%C%S:\
17301 ${x_library}/X11/%T/%N%C%S:\
17302 ${x_library}/X11/%L/%T/%N%S:\
17303 ${x_library}/X11/%l/%T/%N%S:\
17304 ${x_library}/X11/%T/%N%S"
17305 if test x
"${x_default_search_path}" = x
; then
17306 x_default_search_path
=${x_search_path}
17308 x_default_search_path
="${x_search_path}:${x_default_search_path}"
17314 if test "${x_includes}" != NONE
&& test -n "${x_includes}"; then
17315 C_SWITCH_X_SITE
="$isystem"`echo ${x_includes} | sed -e "s/:/ $isystem/g"`
17318 if test x
"${x_includes}" = x
; then
17319 bitmapdir
=/usr
/include
/X11
/bitmaps
17321 # accumulate include directories that have X11 bitmap subdirectories
17323 for bmd
in `echo ${x_includes} | sed -e "s/:/ /g"`; do
17324 if test -d "${bmd}/X11/bitmaps"; then
17325 bmd_acc
="${bmd_acc}:${bmd}/X11/bitmaps"
17327 if test -d "${bmd}/bitmaps"; then
17328 bmd_acc
="${bmd_acc}:${bmd}/bitmaps"
17331 if test ${bmd_acc} != "dummyval"; then
17332 bitmapdir
=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
17339 tmp_CPPFLAGS
="$CPPFLAGS"
17340 tmp_CFLAGS
="$CFLAGS"
17341 CPPFLAGS
="$CPPFLAGS -x objective-c"
17342 CFLAGS
="$CFLAGS -x objective-c"
17343 TEMACS_LDFLAGS2
="\${LDFLAGS}"
17345 if test "${with_ns}" != no
; then
17346 if test "${opsys}" = darwin
; then
17348 ns_appdir
=`pwd`/nextstep
/Emacs.app
17349 ns_appbindir
=${ns_appdir}/Contents
/MacOS
17350 ns_appresdir
=${ns_appdir}/Contents
/Resources
17351 ns_appsrc
=${srcdir}/nextstep
/Cocoa
/Emacs.base
17352 elif test -f $GNUSTEP_CONFIG_FILE; then
17353 NS_IMPL_GNUSTEP
=yes
17354 ns_appdir
=`pwd`/nextstep
/Emacs.app
17355 ns_appbindir
=${ns_appdir}
17356 ns_appresdir
=${ns_appdir}/Resources
17357 ns_appsrc
=${srcdir}/nextstep
/GNUstep
/Emacs.base
17358 GNUSTEP_SYSTEM_HEADERS
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
17359 GNUSTEP_SYSTEM_LIBRARIES
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
17360 GNUSTEP_LOCAL_HEADERS
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_HEADERS)"
17361 GNUSTEP_LOCAL_LIBRARIES
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_LIBRARIES)"
17362 test "x${GNUSTEP_LOCAL_HEADERS}" != "x" && \
17363 GNUSTEP_LOCAL_HEADERS
="-I${GNUSTEP_LOCAL_HEADERS}"
17364 test "x${GNUSTEP_LOCAL_LIBRARIES}" != "x" && \
17365 GNUSTEP_LOCAL_LIBRARIES
="-L${GNUSTEP_LOCAL_LIBRARIES}"
17366 CPPFLAGS
="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
17367 CFLAGS
="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
17368 LDFLAGS
="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES}"
17372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GNUstep defines BASE_NATIVE_OBJC_EXCEPTIONS" >&5
17373 $as_echo_n "checking if GNUstep defines BASE_NATIVE_OBJC_EXCEPTIONS... " >&6; }
17374 if test "${emacs_cv_objc_exceptions+set}" = set; then :
17375 $as_echo_n "(cached) " >&6
17377 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17378 /* end confdefs.h. */
17379 #include <GNUstepBase/GSConfig.h>
17383 #if defined BASE_NATIVE_OBJC_EXCEPTIONS && BASE_NATIVE_OBJC_EXCEPTIONS > 0
17392 if ac_fn_c_try_compile
"$LINENO"; then :
17393 emacs_cv_objc_exceptions
=yes
17395 emacs_cv_objc_exceptions
=no
17397 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_objc_exceptions" >&5
17400 $as_echo "$emacs_cv_objc_exceptions" >&6; }
17401 if test $emacs_cv_objc_exceptions = yes; then
17403 $as_echo "#define _NATIVE_OBJC_EXCEPTIONS 1" >>confdefs.h
17405 GNU_OBJC_CFLAGS
="-fobjc-exceptions"
17409 CFLAGS
="$CFLAGS $GNU_OBJC_CFLAGS"
17411 ac_fn_c_check_header_mongrel
"$LINENO" "AppKit/AppKit.h" "ac_cv_header_AppKit_AppKit_h" "$ac_includes_default"
17412 if test "x$ac_cv_header_AppKit_AppKit_h" = x
""yes; then :
17415 as_fn_error
"\`--with-ns' was specified, but the include
17416 files are missing or cannot be compiled." "$LINENO" 5
17420 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17421 /* end confdefs.h. */
17422 #include <Foundation/NSObjCRuntime.h>
17431 if ac_fn_c_try_compile
"$LINENO"; then :
17432 ns_have_nsinteger
=yes
17434 ns_have_nsinteger
=no
17436 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17437 if test $ns_have_nsinteger = yes; then
17439 $as_echo "#define NS_HAVE_NSINTEGER 1" >>confdefs.h
17445 INSTALL_ARCH_INDEP_EXTRA
=install-etc
17446 ns_self_contained
=no
17450 if test "${HAVE_NS}" = yes; then
17451 if test "$with_toolkit_scroll_bars" = "no"; then
17452 as_fn_error
"Non-toolkit scroll bars are not implemented for Nextstep." "$LINENO" 5
17455 window_system
=nextstep
17457 # set up packaging dirs
17458 if test "${EN_NS_SELF_CONTAINED}" = yes; then
17459 ns_self_contained
=yes
17460 prefix
=${ns_appresdir}
17461 exec_prefix
=${ns_appbindir}
17462 libexecdir
="\${ns_appbindir}/libexec"
17463 archlibdir
="\${ns_appbindir}/libexec"
17464 docdir
="\${ns_appresdir}/etc"
17465 etcdir
="\${ns_appresdir}/etc"
17466 infodir
="\${ns_appresdir}/info"
17467 mandir
="\${ns_appresdir}/man"
17468 lispdir
="\${ns_appresdir}/lisp"
17469 leimdir
="\${ns_appresdir}/leim"
17470 INSTALL_ARCH_INDEP_EXTRA
=
17472 ns_frag
=$srcdir/src
/ns.mk
17473 NS_OBJ
="fontset.o fringe.o image.o"
17474 NS_OBJC_OBJ
="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o"
17476 CFLAGS
="$tmp_CFLAGS"
17477 CPPFLAGS
="$tmp_CPPFLAGS"
17485 case "${window_system}" in
17489 case "${with_x_toolkit}" in
17490 athena | lucid
) USE_X_TOOLKIT
=LUCID
;;
17491 motif
) USE_X_TOOLKIT
=MOTIF
;;
17493 USE_X_TOOLKIT
=none
;;
17494 gtk3
) with_gtk3
=yes
17495 USE_X_TOOLKIT
=none
;;
17496 no
) USE_X_TOOLKIT
=none
;;
17497 * ) USE_X_TOOLKIT
=maybe
;;
17507 if test "$window_system" = none
&& test "X$with_x" != "Xno"; then
17508 # Extract the first word of "X", so it can be a program name with args.
17509 set dummy X
; ac_word
=$2
17510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17511 $as_echo_n "checking for $ac_word... " >&6; }
17512 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then :
17513 $as_echo_n "(cached) " >&6
17515 if test -n "$HAVE_XSERVER"; then
17516 ac_cv_prog_HAVE_XSERVER
="$HAVE_XSERVER" # Let the user override the test.
17518 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
17519 for as_dir
in $PATH
17522 test -z "$as_dir" && as_dir
=.
17523 for ac_exec_ext
in '' $ac_executable_extensions; do
17524 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17525 ac_cv_prog_HAVE_XSERVER
="true"
17526 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17533 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER
="false"
17536 HAVE_XSERVER
=$ac_cv_prog_HAVE_XSERVER
17537 if test -n "$HAVE_XSERVER"; then
17538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_XSERVER" >&5
17539 $as_echo "$HAVE_XSERVER" >&6; }
17541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17542 $as_echo "no" >&6; }
17546 if test "$HAVE_XSERVER" = true ||
17547 test -n "$DISPLAY" ||
17548 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
17549 as_fn_error
"You seem to be running X, but no X development libraries
17550 were found. You should install the relevant development files for X
17551 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
17552 sure you have development files for image handling, i.e.
17553 tiff, gif, jpeg, png and xpm.
17554 If you are sure you want Emacs compiled without X window support, pass
17556 to configure." "$LINENO" 5
17560 ### If we're using X11, we should use the X menu package.
17562 case ${HAVE_X11} in
17563 yes ) HAVE_MENUS
=yes ;;
17566 # Does the opsystem file prohibit the use of the GNU malloc?
17567 # Assume not, until told otherwise.
17570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc is Doug Lea style" >&5
17571 $as_echo_n "checking whether malloc is Doug Lea style... " >&6; }
17572 if test "${emacs_cv_var_doug_lea_malloc+set}" = set; then :
17573 $as_echo_n "(cached) " >&6
17575 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17576 /* end confdefs.h. */
17577 #include <malloc.h>
17578 static void hook (void) {}
17582 malloc_set_state (malloc_get_state ());
17583 __after_morecore_hook = hook;
17584 __malloc_initialize_hook = hook;
17589 if ac_fn_c_try_link
"$LINENO"; then :
17590 emacs_cv_var_doug_lea_malloc
=yes
17592 emacs_cv_var_doug_lea_malloc
=no
17594 rm -f core conftest.err conftest.
$ac_objext \
17595 conftest
$ac_exeext conftest.
$ac_ext
17597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_var_doug_lea_malloc" >&5
17598 $as_echo "$emacs_cv_var_doug_lea_malloc" >&6; }
17599 doug_lea_malloc
=$emacs_cv_var_doug_lea_malloc
17604 ## darwin ld insists on the use of malloc routines in the System framework.
17605 darwin|sol2-10
) system_malloc
=yes ;;
17608 if test "${system_malloc}" = "yes"; then
17610 $as_echo "#define SYSTEM_MALLOC 1" >>confdefs.h
17613 GNU_MALLOC_reason
="
17614 (The GNU allocators don't work with this system configuration.)"
17618 test "$doug_lea_malloc" != "yes" && GMALLOC_OBJ
=gmalloc.o
17619 VMLIMIT_OBJ
=vm-limit.o
17624 if test "$doug_lea_malloc" = "yes" ; then
17625 if test "$GNU_MALLOC" = yes ; then
17626 GNU_MALLOC_reason
="
17627 (Using Doug Lea's new malloc from the GNU C Library.)"
17630 $as_echo "#define DOUG_LEA_MALLOC 1" >>confdefs.h
17633 ## Use mmap directly for allocating larger buffers.
17634 ## FIXME this comes from src/s/{gnu,gnu-linux}.h:
17635 ## #ifdef DOUG_LEA_MALLOC; #undef REL_ALLOC; #endif
17636 ## Does the AC_FUNC_MMAP test below make this check unnecessary?
17638 gnu
*) REL_ALLOC
=no
;;
17642 if test x
"${REL_ALLOC}" = x
; then
17643 REL_ALLOC
=${GNU_MALLOC}
17646 use_mmap_for_buffers
=no
17648 cygwin|freebsd|irix6-5
) use_mmap_for_buffers
=yes ;;
17654 for ac_func
in getpagesize
17656 ac_fn_c_check_func
"$LINENO" "getpagesize" "ac_cv_func_getpagesize"
17657 if test "x$ac_cv_func_getpagesize" = x
""yes; then :
17658 cat >>confdefs.h
<<_ACEOF
17659 #define HAVE_GETPAGESIZE 1
17665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
17666 $as_echo_n "checking for working mmap... " >&6; }
17667 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
17668 $as_echo_n "(cached) " >&6
17670 if test "$cross_compiling" = yes; then :
17671 ac_cv_func_mmap_fixed_mapped
=no
17673 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17674 /* end confdefs.h. */
17675 $ac_includes_default
17676 /* malloc might have been renamed as rpl_malloc. */
17679 /* Thanks to Mike Haertel and Jim Avera for this test.
17680 Here is a matrix of mmap possibilities:
17681 mmap private not fixed
17682 mmap private fixed at somewhere currently unmapped
17683 mmap private fixed at somewhere already mapped
17684 mmap shared not fixed
17685 mmap shared fixed at somewhere currently unmapped
17686 mmap shared fixed at somewhere already mapped
17687 For private mappings, we should verify that changes cannot be read()
17688 back from the file, nor mmap's back from the file at a different
17689 address. (There have been systems where private was not correctly
17690 implemented like the infamous i386 svr4.0, and systems where the
17691 VM page cache was not coherent with the file system buffer cache
17692 like early versions of FreeBSD and possibly contemporary NetBSD.)
17693 For shared mappings, we should conversely verify that changes get
17694 propagated back to all the places they're supposed to be.
17696 Grep wants private fixed already mapped.
17697 The main things grep needs to know about mmap are:
17698 * does it exist and is it safe to write into the mmap'd area
17699 * how to use it (BSD variants) */
17702 #include <sys/mman.h>
17704 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
17708 /* This mess was copied from the GNU getpagesize.h. */
17709 #ifndef HAVE_GETPAGESIZE
17710 # ifdef _SC_PAGESIZE
17711 # define getpagesize() sysconf(_SC_PAGESIZE)
17712 # else /* no _SC_PAGESIZE */
17713 # ifdef HAVE_SYS_PARAM_H
17714 # include <sys/param.h>
17715 # ifdef EXEC_PAGESIZE
17716 # define getpagesize() EXEC_PAGESIZE
17717 # else /* no EXEC_PAGESIZE */
17719 # define getpagesize() NBPG * CLSIZE
17722 # endif /* no CLSIZE */
17723 # else /* no NBPG */
17725 # define getpagesize() NBPC
17726 # else /* no NBPC */
17728 # define getpagesize() PAGESIZE
17729 # endif /* PAGESIZE */
17730 # endif /* no NBPC */
17731 # endif /* no NBPG */
17732 # endif /* no EXEC_PAGESIZE */
17733 # else /* no HAVE_SYS_PARAM_H */
17734 # define getpagesize() 8192 /* punt totally */
17735 # endif /* no HAVE_SYS_PARAM_H */
17736 # endif /* no _SC_PAGESIZE */
17738 #endif /* no HAVE_GETPAGESIZE */
17743 char *data, *data2, *data3;
17744 const char *cdata2;
17748 pagesize = getpagesize ();
17750 /* First, make a file with some known garbage in it. */
17751 data = (char *) malloc (pagesize);
17754 for (i = 0; i < pagesize; ++i)
17755 *(data + i) = rand ();
17757 fd = creat ("conftest.mmap", 0600);
17760 if (write (fd, data, pagesize) != pagesize)
17764 /* Next, check that the tail of a page is zero-filled. File must have
17765 non-zero length, otherwise we risk SIGBUS for entire page. */
17766 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
17770 if (write (fd2, cdata2, 1) != 1)
17772 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
17773 if (data2 == MAP_FAILED)
17775 for (i = 0; i < pagesize; ++i)
17779 if (munmap (data2, pagesize))
17782 /* Next, try to mmap the file at a fixed address which already has
17783 something else allocated at it. If we can, also make sure that
17784 we see the same garbage. */
17785 fd = open ("conftest.mmap", O_RDWR);
17788 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
17789 MAP_PRIVATE | MAP_FIXED, fd, 0L))
17791 for (i = 0; i < pagesize; ++i)
17792 if (*(data + i) != *(data2 + i))
17795 /* Finally, make sure that changes to the mapped area do not
17796 percolate back to the file as seen by read(). (This is a bug on
17797 some variants of i386 svr4.0.) */
17798 for (i = 0; i < pagesize; ++i)
17799 *(data2 + i) = *(data2 + i) + 1;
17800 data3 = (char *) malloc (pagesize);
17803 if (read (fd, data3, pagesize) != pagesize)
17805 for (i = 0; i < pagesize; ++i)
17806 if (*(data + i) != *(data3 + i))
17812 if ac_fn_c_try_run
"$LINENO"; then :
17813 ac_cv_func_mmap_fixed_mapped
=yes
17815 ac_cv_func_mmap_fixed_mapped
=no
17817 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17818 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
17823 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
17824 if test $ac_cv_func_mmap_fixed_mapped = yes; then
17826 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
17829 rm -f conftest.mmap conftest.txt
17831 if test $use_mmap_for_buffers = yes; then
17833 $as_echo "#define USE_MMAP_FOR_BUFFERS 1" >>confdefs.h
17838 LIBS
="$LIBS_SYSTEM $LIBS"
17840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
17841 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
17842 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
17843 $as_echo_n "(cached) " >&6
17845 ac_check_lib_save_LIBS
=$LIBS
17846 LIBS
="-ldnet $LIBS"
17847 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17848 /* end confdefs.h. */
17850 /* Override any GCC internal prototype to avoid an error.
17851 Use char because int might match the return type of a GCC
17852 builtin and then its argument prototype would still apply. */
17860 return dnet_ntoa ();
17865 if ac_fn_c_try_link
"$LINENO"; then :
17866 ac_cv_lib_dnet_dnet_ntoa
=yes
17868 ac_cv_lib_dnet_dnet_ntoa
=no
17870 rm -f core conftest.err conftest.
$ac_objext \
17871 conftest
$ac_exeext conftest.
$ac_ext
17872 LIBS
=$ac_check_lib_save_LIBS
17874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
17875 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
17876 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x
""yes; then :
17877 cat >>confdefs.h
<<_ACEOF
17878 #define HAVE_LIBDNET 1
17881 LIBS
="-ldnet $LIBS"
17886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXbsd" >&5
17887 $as_echo_n "checking for main in -lXbsd... " >&6; }
17888 if test "${ac_cv_lib_Xbsd_main+set}" = set; then :
17889 $as_echo_n "(cached) " >&6
17891 ac_check_lib_save_LIBS
=$LIBS
17892 LIBS
="-lXbsd $LIBS"
17893 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17894 /* end confdefs.h. */
17905 if ac_fn_c_try_link
"$LINENO"; then :
17906 ac_cv_lib_Xbsd_main
=yes
17908 ac_cv_lib_Xbsd_main
=no
17910 rm -f core conftest.err conftest.
$ac_objext \
17911 conftest
$ac_exeext conftest.
$ac_ext
17912 LIBS
=$ac_check_lib_save_LIBS
17914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xbsd_main" >&5
17915 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
17916 if test "x$ac_cv_lib_Xbsd_main" = x
""yes; then :
17917 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -lXbsd"
17925 if test "$ac_cv_header_pthread_h"; then
17926 if test "$GMALLOC_OBJ" = gmalloc.o
; then
17927 emacs_pthread_function
=pthread_atfork
17929 emacs_pthread_function
=pthread_self
17931 as_ac_Lib
=`$as_echo "ac_cv_lib_pthread_$emacs_pthread_function" | $as_tr_sh`
17932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $emacs_pthread_function in -lpthread" >&5
17933 $as_echo_n "checking for $emacs_pthread_function in -lpthread... " >&6; }
17934 if { as_var
=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
17935 $as_echo_n "(cached) " >&6
17937 ac_check_lib_save_LIBS
=$LIBS
17938 LIBS
="-lpthread $LIBS"
17939 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17940 /* end confdefs.h. */
17942 /* Override any GCC internal prototype to avoid an error.
17943 Use char because int might match the return type of a GCC
17944 builtin and then its argument prototype would still apply. */
17948 char $emacs_pthread_function ();
17952 return $emacs_pthread_function ();
17957 if ac_fn_c_try_link
"$LINENO"; then :
17958 eval "$as_ac_Lib=yes"
17960 eval "$as_ac_Lib=no"
17962 rm -f core conftest.err conftest.
$ac_objext \
17963 conftest
$ac_exeext conftest.
$ac_ext
17964 LIBS
=$ac_check_lib_save_LIBS
17966 eval ac_res
=\$
$as_ac_Lib
17967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17968 $as_echo "$ac_res" >&6; }
17969 eval as_val
=\$
$as_ac_Lib
17970 if test "x$as_val" = x
""yes; then :
17975 if test "$HAVE_PTHREAD" = yes; then
17976 case "${canonical}" in
17978 *) LIB_PTHREAD
="-lpthread"
17979 LIBS
="$LIB_PTHREAD $LIBS" ;;
17982 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
17987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cma_open in -lpthreads" >&5
17988 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
17989 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then :
17990 $as_echo_n "(cached) " >&6
17992 ac_check_lib_save_LIBS
=$LIBS
17993 LIBS
="-lpthreads $LIBS"
17994 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17995 /* end confdefs.h. */
17997 /* Override any GCC internal prototype to avoid an error.
17998 Use char because int might match the return type of a GCC
17999 builtin and then its argument prototype would still apply. */
18007 return cma_open ();
18012 if ac_fn_c_try_link
"$LINENO"; then :
18013 ac_cv_lib_pthreads_cma_open
=yes
18015 ac_cv_lib_pthreads_cma_open
=no
18017 rm -f core conftest.err conftest.
$ac_objext \
18018 conftest
$ac_exeext conftest.
$ac_ext
18019 LIBS
=$ac_check_lib_save_LIBS
18021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_cma_open" >&5
18022 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
18023 if test "x$ac_cv_lib_pthreads_cma_open" = x
""yes; then :
18024 cat >>confdefs.h
<<_ACEOF
18025 #define HAVE_LIBPTHREADS 1
18028 LIBS
="-lpthreads $LIBS"
18033 ## Note: when using cpp in s/aix4.2.h, this definition depended on
18034 ## HAVE_LIBPTHREADS. That was not defined earlier in configure when
18035 ## the system file was sourced. Hence the value of LIBS_SYSTEM
18036 ## added to LIBS in configure would never contain the pthreads part,
18037 ## but the value used in Makefiles might. FIXME?
18039 ## -lpthreads seems to be necessary for Xlib in X11R6, and should
18040 ## be harmless on older versions of X where it happens to exist.
18041 test "$opsys" = "aix4-2" && \
18042 test $ac_cv_lib_pthreads_cma_open = yes && \
18043 LIBS_SYSTEM
="$LIBS_SYSTEM -lpthreads"
18048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
18049 $as_echo_n "checking for -bbigtoc option... " >&6; }
18050 if test "${gdb_cv_bigtoc+set}" = set; then :
18051 $as_echo_n "(cached) " >&6
18055 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
18056 *) gdb_cv_bigtoc
=-bbigtoc ;;
18059 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
18060 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18061 /* end confdefs.h. */
18071 if ac_fn_c_try_link
"$LINENO"; then :
18076 rm -f core conftest.err conftest.
$ac_objext \
18077 conftest
$ac_exeext conftest.
$ac_ext
18080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
18081 $as_echo "$gdb_cv_bigtoc" >&6; }
18085 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
18086 # used for the tests that follow. We set them back to REAL_CFLAGS and
18087 # REAL_CPPFLAGS later on.
18089 REAL_CFLAGS
="$CFLAGS"
18090 REAL_CPPFLAGS
="$CPPFLAGS"
18092 if test "${HAVE_X11}" = "yes"; then
18093 DEFS
="$C_SWITCH_X_SITE $DEFS"
18094 LDFLAGS
="$LDFLAGS $LD_SWITCH_X_SITE"
18096 CFLAGS
="$C_SWITCH_X_SITE $CFLAGS"
18097 CPPFLAGS
="$C_SWITCH_X_SITE $CPPFLAGS"
18099 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
18100 # This is handled by LD_SWITCH_X_SITE_RPATH during the real build,
18101 # but it's more convenient here to set LD_RUN_PATH since this
18102 # also works on hosts that don't understand LD_SWITCH_X_SITE_RPATH.
18103 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
18104 LD_RUN_PATH
=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
18108 if test "${opsys}" = "gnu-linux"; then
18109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X on GNU/Linux needs -b to link" >&5
18110 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
18111 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18112 /* end confdefs.h. */
18117 XOpenDisplay ("foo");
18122 if ac_fn_c_try_link
"$LINENO"; then :
18123 xgnu_linux_first_failure
=no
18125 xgnu_linux_first_failure
=yes
18127 rm -f core conftest.err conftest.
$ac_objext \
18128 conftest
$ac_exeext conftest.
$ac_ext
18129 if test "${xgnu_linux_first_failure}" = "yes"; then
18130 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
18131 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
18132 OLD_CPPFLAGS
="$CPPFLAGS"
18134 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
18135 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
18136 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
18137 LIBS
="$LIBS -b i486-linuxaout"
18138 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18139 /* end confdefs.h. */
18144 XOpenDisplay ("foo");
18149 if ac_fn_c_try_link
"$LINENO"; then :
18150 xgnu_linux_second_failure
=no
18152 xgnu_linux_second_failure
=yes
18154 rm -f core conftest.err conftest.
$ac_objext \
18155 conftest
$ac_exeext conftest.
$ac_ext
18156 if test "${xgnu_linux_second_failure}" = "yes"; then
18157 # If we get the same failure with -b, there is no use adding -b.
18158 # So take it out. This plays safe.
18159 LD_SWITCH_X_SITE
="$OLD_LD_SWITCH_X_SITE"
18160 C_SWITCH_X_SITE
="$OLD_C_SWITCH_X_SITE"
18161 CPPFLAGS
="$OLD_CPPFLAGS"
18163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18164 $as_echo "no" >&6; }
18166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18167 $as_echo "yes" >&6; }
18170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18171 $as_echo "no" >&6; }
18175 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
18176 # header files included from there.
18177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xkb" >&5
18178 $as_echo_n "checking for Xkb... " >&6; }
18179 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18180 /* end confdefs.h. */
18181 #include <X11/Xlib.h>
18182 #include <X11/XKBlib.h>
18186 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
18191 if ac_fn_c_try_link
"$LINENO"; then :
18196 rm -f core conftest.err conftest.
$ac_objext \
18197 conftest
$ac_exeext conftest.
$ac_ext
18198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_xkb" >&5
18199 $as_echo "$emacs_xkb" >&6; }
18200 if test $emacs_xkb = yes; then
18202 $as_echo "#define HAVE_XKBGETKEYBOARD 1" >>confdefs.h
18206 for ac_func
in XrmSetDatabase XScreenResourceString \
18207 XScreenNumberOfScreen
18209 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18210 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
18211 eval as_val
=\$
$as_ac_var
18212 if test "x$as_val" = x
""yes; then :
18213 cat >>confdefs.h
<<_ACEOF
18214 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18222 if test "${window_system}" = "x11"; then
18223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 version 6" >&5
18224 $as_echo_n "checking X11 version 6... " >&6; }
18225 if test "${emacs_cv_x11_version_6+set}" = set; then :
18226 $as_echo_n "(cached) " >&6
18228 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18229 /* end confdefs.h. */
18230 #include <X11/Xlib.h>
18234 #if XlibSpecificationRelease < 6
18242 if ac_fn_c_try_link
"$LINENO"; then :
18243 emacs_cv_x11_version_6
=yes
18245 emacs_cv_x11_version_6
=no
18247 rm -f core conftest.err conftest.
$ac_objext \
18248 conftest
$ac_exeext conftest.
$ac_ext
18251 if test $emacs_cv_x11_version_6 = yes; then
18252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
18253 $as_echo "6 or newer" >&6; }
18255 $as_echo "#define HAVE_X11R6 1" >>confdefs.h
18258 $as_echo "#define HAVE_X_I18N 1" >>confdefs.h
18260 ## inoue@ainet.or.jp says Solaris has a bug related to X11R6-style
18265 $as_echo "#define HAVE_X11R6_XIM 1" >>confdefs.h
18270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
18271 $as_echo "before 6" >&6; }
18276 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
18278 if test "${HAVE_X11}" = "yes" ||
test "${HAVE_NS}" = "yes"; then
18279 if test "${with_rsvg}" != "no"; then
18280 RSVG_REQUIRED
=2.11.0
18281 RSVG_MODULE
="librsvg-2.0 >= $RSVG_REQUIRED"
18286 if test "$PKG_CONFIG" = "no" ; then
18289 PKG_CONFIG_MIN_VERSION
=0.9.0
18290 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
18291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $RSVG_MODULE" >&5
18292 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
18294 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5 &&
18295 RSVG_CFLAGS
=`$PKG_CONFIG --cflags "$RSVG_MODULE" 2>&5` &&
18296 RSVG_LIBS
=`$PKG_CONFIG --libs "$RSVG_MODULE" 2>&5`; then
18303 RSVG_CFLAGS
=`$as_echo "$RSVG_CFLAGS" | sed -e "$edit_cflags"`
18304 RSVG_LIBS
=`$as_echo "$RSVG_LIBS" | sed -e 's,///*,/,g'`
18305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$RSVG_CFLAGS' LIBS='$RSVG_LIBS'" >&5
18306 $as_echo "yes CFLAGS='$RSVG_CFLAGS' LIBS='$RSVG_LIBS'" >&6; }
18309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18310 $as_echo "no" >&6; }
18313 ## If we have a custom action on failure, don't print errors, but
18314 ## do set a variable so people can do so.
18315 RSVG_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
18322 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
18323 echo "*** See http://www.freedesktop.org/software/pkgconfig"
18327 if test $succeeded = yes; then
18336 if test $HAVE_RSVG = yes; then
18338 $as_echo "#define HAVE_RSVG 1" >>confdefs.h
18340 CFLAGS
="$CFLAGS $RSVG_CFLAGS"
18341 LIBS
="$RSVG_LIBS $LIBS"
18346 HAVE_IMAGEMAGICK
=no
18347 if test "${HAVE_X11}" = "yes"; then
18348 if test "${with_imagemagick}" != "no"; then
18349 ## 6.2.8 is the earliest version known to work, but earlier versions
18350 ## might work - let us know if you find one.
18351 ## 6.0.7 does not work. See bug#7955.
18352 IMAGEMAGICK_MODULE
="Wand >= 6.2.8"
18356 if test "$PKG_CONFIG" = "no" ; then
18359 PKG_CONFIG_MIN_VERSION
=0.9.0
18360 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
18361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $IMAGEMAGICK_MODULE" >&5
18362 $as_echo_n "checking for $IMAGEMAGICK_MODULE... " >&6; }
18364 if $PKG_CONFIG --exists "$IMAGEMAGICK_MODULE" 2>&5 &&
18365 IMAGEMAGICK_CFLAGS
=`$PKG_CONFIG --cflags "$IMAGEMAGICK_MODULE" 2>&5` &&
18366 IMAGEMAGICK_LIBS
=`$PKG_CONFIG --libs "$IMAGEMAGICK_MODULE" 2>&5`; then
18373 IMAGEMAGICK_CFLAGS
=`$as_echo "$IMAGEMAGICK_CFLAGS" | sed -e "$edit_cflags"`
18374 IMAGEMAGICK_LIBS
=`$as_echo "$IMAGEMAGICK_LIBS" | sed -e 's,///*,/,g'`
18375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$IMAGEMAGICK_CFLAGS' LIBS='$IMAGEMAGICK_LIBS'" >&5
18376 $as_echo "yes CFLAGS='$IMAGEMAGICK_CFLAGS' LIBS='$IMAGEMAGICK_LIBS'" >&6; }
18379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18380 $as_echo "no" >&6; }
18381 IMAGEMAGICK_CFLAGS
=""
18382 IMAGEMAGICK_LIBS
=""
18383 ## If we have a custom action on failure, don't print errors, but
18384 ## do set a variable so people can do so.
18385 IMAGEMAGICK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$IMAGEMAGICK_MODULE"`
18392 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
18393 echo "*** See http://www.freedesktop.org/software/pkgconfig"
18397 if test $succeeded = yes; then
18398 HAVE_IMAGEMAGICK
=yes
18406 if test $HAVE_IMAGEMAGICK = yes; then
18408 $as_echo "#define HAVE_IMAGEMAGICK 1" >>confdefs.h
18410 CFLAGS
="$CFLAGS $IMAGEMAGICK_CFLAGS"
18411 LIBS
="$IMAGEMAGICK_LIBS $LIBS"
18412 for ac_func
in MagickExportImagePixels MagickMergeImageLayers
18414 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18415 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
18416 eval as_val
=\$
$as_ac_var
18417 if test "x$as_val" = x
""yes; then :
18418 cat >>confdefs.h
<<_ACEOF
18419 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18432 if test "${with_gtk3}" = "yes"; then
18435 GTK_MODULES
="gtk+-3.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
18440 if test "$PKG_CONFIG" = "no" ; then
18443 PKG_CONFIG_MIN_VERSION
=0.9.0
18444 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
18445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
18446 $as_echo_n "checking for $GTK_MODULES... " >&6; }
18448 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5 &&
18449 GTK_CFLAGS
=`$PKG_CONFIG --cflags "$GTK_MODULES" 2>&5` &&
18450 GTK_LIBS
=`$PKG_CONFIG --libs "$GTK_MODULES" 2>&5`; then
18457 GTK_CFLAGS
=`$as_echo "$GTK_CFLAGS" | sed -e "$edit_cflags"`
18458 GTK_LIBS
=`$as_echo "$GTK_LIBS" | sed -e 's,///*,/,g'`
18459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&5
18460 $as_echo "yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&6; }
18463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18464 $as_echo "no" >&6; }
18467 ## If we have a custom action on failure, don't print errors, but
18468 ## do set a variable so people can do so.
18469 GTK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
18476 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
18477 echo "*** See http://www.freedesktop.org/software/pkgconfig"
18481 if test $succeeded = yes; then
18487 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
18488 as_fn_error
"$GTK_PKG_ERRORS" "$LINENO" 5
18491 $as_echo "#define HAVE_GTK3 1" >>confdefs.h
18493 GTK_OBJ
=emacsgtkfixed.o
18496 if test "$pkg_check_gtk" != "yes"; then
18498 if test "${with_gtk}" = "yes" ||
test "$USE_X_TOOLKIT" = "maybe"; then
18501 GTK_MODULES
="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
18506 if test "$PKG_CONFIG" = "no" ; then
18509 PKG_CONFIG_MIN_VERSION
=0.9.0
18510 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
18511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
18512 $as_echo_n "checking for $GTK_MODULES... " >&6; }
18514 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5 &&
18515 GTK_CFLAGS
=`$PKG_CONFIG --cflags "$GTK_MODULES" 2>&5` &&
18516 GTK_LIBS
=`$PKG_CONFIG --libs "$GTK_MODULES" 2>&5`; then
18523 GTK_CFLAGS
=`$as_echo "$GTK_CFLAGS" | sed -e "$edit_cflags"`
18524 GTK_LIBS
=`$as_echo "$GTK_LIBS" | sed -e 's,///*,/,g'`
18525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&5
18526 $as_echo "yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&6; }
18529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18530 $as_echo "no" >&6; }
18533 ## If we have a custom action on failure, don't print errors, but
18534 ## do set a variable so people can do so.
18535 GTK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
18542 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
18543 echo "*** See http://www.freedesktop.org/software/pkgconfig"
18547 if test $succeeded = yes; then
18553 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
18554 as_fn_error
"$GTK_PKG_ERRORS" "$LINENO" 5
18559 if test x
"$pkg_check_gtk" = xyes
; then
18563 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $GTK_CFLAGS"
18564 CFLAGS
="$CFLAGS $GTK_CFLAGS"
18565 LIBS
="$GTK_LIBS $LIBS"
18567 for ac_func
in gtk_main
18569 ac_fn_c_check_func
"$LINENO" "gtk_main" "ac_cv_func_gtk_main"
18570 if test "x$ac_cv_func_gtk_main" = x
""yes; then :
18571 cat >>confdefs.h
<<_ACEOF
18572 #define HAVE_GTK_MAIN 1
18578 if test "${GTK_COMPILES}" != "yes"; then
18579 if test "$USE_X_TOOLKIT" != "maybe"; then
18580 as_fn_error
"Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" "$LINENO" 5;
18585 $as_echo "#define USE_GTK 1" >>confdefs.h
18587 GTK_OBJ
="gtkutil.o $GTK_OBJ"
18589 if $PKG_CONFIG --atleast-version=2.10 gtk
+-2.0
; then
18592 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of Gtk+ will have problems with
18593 closing open displays. This is no problem if you just use
18594 one display, but if you use more than one and close one of them
18595 Emacs may crash." >&5
18596 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
18597 closing open displays. This is no problem if you just use
18598 one display, but if you use more than one and close one of them
18599 Emacs may crash." >&2;}
18608 if test "${HAVE_GTK}" = "yes"; then
18610 if test "$with_toolkit_scroll_bars" != no
; then
18611 with_toolkit_scroll_bars
=yes
18614 HAVE_GTK_FILE_SELECTION
=no
18615 ac_fn_c_check_decl
"$LINENO" "GTK_TYPE_FILE_SELECTION" "ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" "$ac_includes_default
18616 #include <gtk/gtk.h>
18618 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = x
""yes; then :
18619 HAVE_GTK_FILE_SELECTION
=yes
18621 HAVE_GTK_FILE_SELECTION
=no
18624 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
18625 for ac_func
in gtk_file_selection_new
18627 ac_fn_c_check_func
"$LINENO" "gtk_file_selection_new" "ac_cv_func_gtk_file_selection_new"
18628 if test "x$ac_cv_func_gtk_file_selection_new" = x
""yes; then :
18629 cat >>confdefs.h
<<_ACEOF
18630 #define HAVE_GTK_FILE_SELECTION_NEW 1
18639 for ac_func
in gtk_widget_get_window gtk_widget_set_has_window \
18640 gtk_dialog_get_action_area gtk_widget_get_sensitive \
18641 gtk_widget_get_mapped gtk_adjustment_get_page_size \
18642 gtk_orientable_set_orientation \
18643 gtk_window_set_has_resize_grip
18645 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18646 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
18647 eval as_val
=\$
$as_ac_var
18648 if test "x$as_val" = x
""yes; then :
18649 cat >>confdefs.h
<<_ACEOF
18650 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18660 if test "${with_dbus}" = "yes"; then
18664 if test "$PKG_CONFIG" = "no" ; then
18667 PKG_CONFIG_MIN_VERSION
=0.9.0
18668 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
18669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1 >= 1.0" >&5
18670 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
18672 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5 &&
18673 DBUS_CFLAGS
=`$PKG_CONFIG --cflags "dbus-1 >= 1.0" 2>&5` &&
18674 DBUS_LIBS
=`$PKG_CONFIG --libs "dbus-1 >= 1.0" 2>&5`; then
18681 DBUS_CFLAGS
=`$as_echo "$DBUS_CFLAGS" | sed -e "$edit_cflags"`
18682 DBUS_LIBS
=`$as_echo "$DBUS_LIBS" | sed -e 's,///*,/,g'`
18683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$DBUS_CFLAGS' LIBS='$DBUS_LIBS'" >&5
18684 $as_echo "yes CFLAGS='$DBUS_CFLAGS' LIBS='$DBUS_LIBS'" >&6; }
18687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18688 $as_echo "no" >&6; }
18691 ## If we have a custom action on failure, don't print errors, but
18692 ## do set a variable so people can do so.
18693 DBUS_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
18700 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
18701 echo "*** See http://www.freedesktop.org/software/pkgconfig"
18705 if test $succeeded = yes; then
18711 if test "$HAVE_DBUS" = yes; then
18712 LIBS
="$LIBS $DBUS_LIBS"
18714 $as_echo "#define HAVE_DBUS 1" >>confdefs.h
18716 for ac_func
in dbus_watch_get_unix_fd \
18717 dbus_type_is_valid \
18718 dbus_validate_bus_name \
18719 dbus_validate_path \
18720 dbus_validate_interface \
18721 dbus_validate_member
18723 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18724 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
18725 eval as_val
=\$
$as_ac_var
18726 if test "x$as_val" = x
""yes; then :
18727 cat >>confdefs.h
<<_ACEOF
18728 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18734 DBUS_OBJ
=dbusbind.o
18740 if test "${HAVE_X11}" = "yes" && test "${with_gsettings}" = "yes"; then
18744 if test "$PKG_CONFIG" = "no" ; then
18747 PKG_CONFIG_MIN_VERSION
=0.9.0
18748 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
18749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gio-2.0 >= 2.26" >&5
18750 $as_echo_n "checking for gio-2.0 >= 2.26... " >&6; }
18752 if $PKG_CONFIG --exists "gio-2.0 >= 2.26" 2>&5 &&
18753 GSETTINGS_CFLAGS
=`$PKG_CONFIG --cflags "gio-2.0 >= 2.26" 2>&5` &&
18754 GSETTINGS_LIBS
=`$PKG_CONFIG --libs "gio-2.0 >= 2.26" 2>&5`; then
18761 GSETTINGS_CFLAGS
=`$as_echo "$GSETTINGS_CFLAGS" | sed -e "$edit_cflags"`
18762 GSETTINGS_LIBS
=`$as_echo "$GSETTINGS_LIBS" | sed -e 's,///*,/,g'`
18763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GSETTINGS_CFLAGS' LIBS='$GSETTINGS_LIBS'" >&5
18764 $as_echo "yes CFLAGS='$GSETTINGS_CFLAGS' LIBS='$GSETTINGS_LIBS'" >&6; }
18767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18768 $as_echo "no" >&6; }
18769 GSETTINGS_CFLAGS
=""
18771 ## If we have a custom action on failure, don't print errors, but
18772 ## do set a variable so people can do so.
18773 GSETTINGS_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "gio-2.0 >= 2.26"`
18780 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
18781 echo "*** See http://www.freedesktop.org/software/pkgconfig"
18785 if test $succeeded = yes; then
18791 if test "$HAVE_GSETTINGS" = "yes"; then
18793 $as_echo "#define HAVE_GSETTINGS 1" >>confdefs.h
18795 SETTINGS_CFLAGS
="$GSETTINGS_CFLAGS"
18796 SETTINGS_LIBS
="$GSETTINGS_LIBS"
18801 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
18805 if test "$PKG_CONFIG" = "no" ; then
18808 PKG_CONFIG_MIN_VERSION
=0.9.0
18809 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
18810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.13" >&5
18811 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
18813 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5 &&
18814 GCONF_CFLAGS
=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13" 2>&5` &&
18815 GCONF_LIBS
=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13" 2>&5`; then
18822 GCONF_CFLAGS
=`$as_echo "$GCONF_CFLAGS" | sed -e "$edit_cflags"`
18823 GCONF_LIBS
=`$as_echo "$GCONF_LIBS" | sed -e 's,///*,/,g'`
18824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GCONF_CFLAGS' LIBS='$GCONF_LIBS'" >&5
18825 $as_echo "yes CFLAGS='$GCONF_CFLAGS' LIBS='$GCONF_LIBS'" >&6; }
18828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18829 $as_echo "no" >&6; }
18832 ## If we have a custom action on failure, don't print errors, but
18833 ## do set a variable so people can do so.
18834 GCONF_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.13"`
18841 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
18842 echo "*** See http://www.freedesktop.org/software/pkgconfig"
18846 if test $succeeded = yes; then
18852 if test "$HAVE_GCONF" = yes; then
18854 $as_echo "#define HAVE_GCONF 1" >>confdefs.h
18856 SETTINGS_CFLAGS
="$SETTINGS_CFLAGS $GCONF_CFLAGS"
18857 SETTINGS_LIBS
="$SETTINGS_LIBS $GCONF_LIBS"
18861 if test "$HAVE_GSETTINGS" = "yes" ||
test "$HAVE_GCONF" = "yes"; then
18862 SAVE_CFLAGS
="$CFLAGS"
18864 CFLAGS
="$SETTINGS_CFLAGS $CFLAGS"
18865 LIBS
="$SETTINGS_LIBS $LIBS"
18866 for ac_func
in g_type_init
18868 ac_fn_c_check_func
"$LINENO" "g_type_init" "ac_cv_func_g_type_init"
18869 if test "x$ac_cv_func_g_type_init" = x
""yes; then :
18870 cat >>confdefs.h
<<_ACEOF
18871 #define HAVE_G_TYPE_INIT 1
18877 CFLAGS
="$SAVE_CFLAGS"
18886 if test "${with_selinux}" = "yes"; then
18887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgetfilecon in -lselinux" >&5
18888 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
18889 if test "${ac_cv_lib_selinux_lgetfilecon+set}" = set; then :
18890 $as_echo_n "(cached) " >&6
18892 ac_check_lib_save_LIBS
=$LIBS
18893 LIBS
="-lselinux $LIBS"
18894 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18895 /* end confdefs.h. */
18897 /* Override any GCC internal prototype to avoid an error.
18898 Use char because int might match the return type of a GCC
18899 builtin and then its argument prototype would still apply. */
18903 char lgetfilecon ();
18907 return lgetfilecon ();
18912 if ac_fn_c_try_link
"$LINENO"; then :
18913 ac_cv_lib_selinux_lgetfilecon
=yes
18915 ac_cv_lib_selinux_lgetfilecon
=no
18917 rm -f core conftest.err conftest.
$ac_objext \
18918 conftest
$ac_exeext conftest.
$ac_ext
18919 LIBS
=$ac_check_lib_save_LIBS
18921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_lgetfilecon" >&5
18922 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
18923 if test "x$ac_cv_lib_selinux_lgetfilecon" = x
""yes; then :
18924 HAVE_LIBSELINUX
=yes
18929 if test "$HAVE_LIBSELINUX" = yes; then
18931 $as_echo "#define HAVE_LIBSELINUX 1" >>confdefs.h
18933 LIBSELINUX_LIBS
=-lselinux
18939 HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY
=no
18940 if test "${with_gnutls}" = "yes" ; then
18944 if test "$PKG_CONFIG" = "no" ; then
18947 PKG_CONFIG_MIN_VERSION
=0.9.0
18948 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
18949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls >= 2.6.6" >&5
18950 $as_echo_n "checking for gnutls >= 2.6.6... " >&6; }
18952 if $PKG_CONFIG --exists "gnutls >= 2.6.6" 2>&5 &&
18953 LIBGNUTLS_CFLAGS
=`$PKG_CONFIG --cflags "gnutls >= 2.6.6" 2>&5` &&
18954 LIBGNUTLS_LIBS
=`$PKG_CONFIG --libs "gnutls >= 2.6.6" 2>&5`; then
18961 LIBGNUTLS_CFLAGS
=`$as_echo "$LIBGNUTLS_CFLAGS" | sed -e "$edit_cflags"`
18962 LIBGNUTLS_LIBS
=`$as_echo "$LIBGNUTLS_LIBS" | sed -e 's,///*,/,g'`
18963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBGNUTLS_CFLAGS' LIBS='$LIBGNUTLS_LIBS'" >&5
18964 $as_echo "yes CFLAGS='$LIBGNUTLS_CFLAGS' LIBS='$LIBGNUTLS_LIBS'" >&6; }
18967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18968 $as_echo "no" >&6; }
18969 LIBGNUTLS_CFLAGS
=""
18971 ## If we have a custom action on failure, don't print errors, but
18972 ## do set a variable so people can do so.
18973 LIBGNUTLS_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "gnutls >= 2.6.6"`
18980 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
18981 echo "*** See http://www.freedesktop.org/software/pkgconfig"
18985 if test $succeeded = yes; then
18991 if test "${HAVE_GNUTLS}" = "yes"; then
18993 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
18997 CFLAGS
="$CFLAGS $LIBGNUTLS_CFLAGS"
18998 LIBS
="$LIBGNUTLS_LIBS $LIBS"
18999 for ac_func
in gnutls_certificate_set_verify_function
19001 ac_fn_c_check_func
"$LINENO" "gnutls_certificate_set_verify_function" "ac_cv_func_gnutls_certificate_set_verify_function"
19002 if test "x$ac_cv_func_gnutls_certificate_set_verify_function" = x
""yes; then :
19003 cat >>confdefs.h
<<_ACEOF
19004 #define HAVE_GNUTLS_CERTIFICATE_SET_VERIFY_FUNCTION 1
19006 HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY
=yes
19011 if test "${HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY}" = "yes"; then
19013 $as_echo "#define HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY 1" >>confdefs.h
19023 if test x
"${USE_X_TOOLKIT}" = xmaybe ||
test x
"${USE_X_TOOLKIT}" = xLUCID
; then
19024 if test "$with_xaw3d" != no
; then
19025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
19026 $as_echo_n "checking for xaw3d... " >&6; }
19027 if test "${emacs_cv_xaw3d+set}" = set; then :
19028 $as_echo_n "(cached) " >&6
19030 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19031 /* end confdefs.h. */
19033 #include <X11/Intrinsic.h>
19034 #include <X11/Xaw3d/Simple.h>
19043 if ac_fn_c_try_link
"$LINENO"; then :
19044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XawScrollbarSetThumb in -lXaw3d" >&5
19045 $as_echo_n "checking for XawScrollbarSetThumb in -lXaw3d... " >&6; }
19046 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then :
19047 $as_echo_n "(cached) " >&6
19049 ac_check_lib_save_LIBS
=$LIBS
19050 LIBS
="-lXaw3d $LIBS"
19051 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19052 /* end confdefs.h. */
19054 /* Override any GCC internal prototype to avoid an error.
19055 Use char because int might match the return type of a GCC
19056 builtin and then its argument prototype would still apply. */
19060 char XawScrollbarSetThumb ();
19064 return XawScrollbarSetThumb ();
19069 if ac_fn_c_try_link
"$LINENO"; then :
19070 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=yes
19072 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=no
19074 rm -f core conftest.err conftest.
$ac_objext \
19075 conftest
$ac_exeext conftest.
$ac_ext
19076 LIBS
=$ac_check_lib_save_LIBS
19078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
19079 $as_echo "$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6; }
19080 if test "x$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" = x
""yes; then :
19089 rm -f core conftest.err conftest.
$ac_objext \
19090 conftest
$ac_exeext conftest.
$ac_ext
19096 if test $emacs_cv_xaw3d = yes; then
19097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
19098 $as_echo "yes; using Lucid toolkit" >&6; }
19099 USE_X_TOOLKIT
=LUCID
19103 $as_echo "#define HAVE_XAW3D 1" >>confdefs.h
19106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19107 $as_echo "no" >&6; }
19108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXaw" >&5
19109 $as_echo_n "checking for libXaw... " >&6; }
19110 if test "${emacs_cv_xaw+set}" = set; then :
19111 $as_echo_n "(cached) " >&6
19113 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19114 /* end confdefs.h. */
19116 #include <X11/Intrinsic.h>
19117 #include <X11/Xaw/Simple.h>
19126 if ac_fn_c_try_link
"$LINENO"; then :
19131 rm -f core conftest.err conftest.
$ac_objext \
19132 conftest
$ac_exeext conftest.
$ac_ext
19135 if test $emacs_cv_xaw = yes; then
19136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
19137 $as_echo "yes; using Lucid toolkit" >&6; }
19138 USE_X_TOOLKIT
=LUCID
19140 elif test x
"${USE_X_TOOLKIT}" = xLUCID
; then
19141 as_fn_error
"Lucid toolkit requires X11/Xaw include files" "$LINENO" 5
19143 as_fn_error
"No X toolkit could be found.
19144 If you are sure you want Emacs compiled without an X toolkit, pass
19145 --with-x-toolkit=no
19146 to configure. Otherwise, install the development libraries for the toolkit
19147 that you want to use (e.g. Gtk+) and re-run configure." "$LINENO" 5
19152 X_TOOLKIT_TYPE
=$USE_X_TOOLKIT
19155 if test "${USE_X_TOOLKIT}" != "none"; then
19156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 toolkit version" >&5
19157 $as_echo_n "checking X11 toolkit version... " >&6; }
19158 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then :
19159 $as_echo_n "(cached) " >&6
19161 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19162 /* end confdefs.h. */
19163 #include <X11/Intrinsic.h>
19167 #if XtSpecificationRelease < 6
19175 if ac_fn_c_try_link
"$LINENO"; then :
19176 emacs_cv_x11_toolkit_version_6
=yes
19178 emacs_cv_x11_toolkit_version_6
=no
19180 rm -f core conftest.err conftest.
$ac_objext \
19181 conftest
$ac_exeext conftest.
$ac_ext
19184 HAVE_X11XTR6
=$emacs_cv_x11_toolkit_version_6
19185 if test $emacs_cv_x11_toolkit_version_6 = yes; then
19186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
19187 $as_echo "6 or newer" >&6; }
19189 $as_echo "#define HAVE_X11XTR6 1" >>confdefs.h
19191 LIBXTR6
="-lSM -lICE"
19193 ## Use libw.a along with X11R6 Xt.
19194 unixware
) LIBXTR6
="$LIBXTR6 -lw" ;;
19197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
19198 $as_echo "before 6" >&6; }
19202 if test x
$HAVE_X11XTR6 = xyes
; then
19203 LIBS
="-lXt -lSM -lICE $LIBS"
19207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuConvertStandardSelection in -lXmu" >&5
19208 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
19209 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then :
19210 $as_echo_n "(cached) " >&6
19212 ac_check_lib_save_LIBS
=$LIBS
19214 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19215 /* end confdefs.h. */
19217 /* Override any GCC internal prototype to avoid an error.
19218 Use char because int might match the return type of a GCC
19219 builtin and then its argument prototype would still apply. */
19223 char XmuConvertStandardSelection ();
19227 return XmuConvertStandardSelection ();
19232 if ac_fn_c_try_link
"$LINENO"; then :
19233 ac_cv_lib_Xmu_XmuConvertStandardSelection
=yes
19235 ac_cv_lib_Xmu_XmuConvertStandardSelection
=no
19237 rm -f core conftest.err conftest.
$ac_objext \
19238 conftest
$ac_exeext conftest.
$ac_ext
19239 LIBS
=$ac_check_lib_save_LIBS
19241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
19242 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
19243 if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = x
""yes; then :
19244 cat >>confdefs.h
<<_ACEOF
19245 #define HAVE_LIBXMU 1
19252 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no
&& LIBS
="$OLDLIBS"
19258 ## These systems don't supply Xmu.
19260 test "X$ac_cv_lib_Xmu_XmuConvertStandardSelection" != "Xyes" && LIBXMU
=
19265 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
19266 if test "${HAVE_X11}" = "yes"; then
19267 if test "${USE_X_TOOLKIT}" != "none"; then
19268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
19269 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
19270 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then :
19271 $as_echo_n "(cached) " >&6
19273 ac_check_lib_save_LIBS
=$LIBS
19274 LIBS
="-lXext $LIBS"
19275 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19276 /* end confdefs.h. */
19278 /* Override any GCC internal prototype to avoid an error.
19279 Use char because int might match the return type of a GCC
19280 builtin and then its argument prototype would still apply. */
19284 char XShapeQueryExtension ();
19288 return XShapeQueryExtension ();
19293 if ac_fn_c_try_link
"$LINENO"; then :
19294 ac_cv_lib_Xext_XShapeQueryExtension
=yes
19296 ac_cv_lib_Xext_XShapeQueryExtension
=no
19298 rm -f core conftest.err conftest.
$ac_objext \
19299 conftest
$ac_exeext conftest.
$ac_ext
19300 LIBS
=$ac_check_lib_save_LIBS
19302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
19303 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
19304 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x
""yes; then :
19305 cat >>confdefs.h
<<_ACEOF
19306 #define HAVE_LIBXEXT 1
19309 LIBS
="-lXext $LIBS"
19317 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
19318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Motif version 2.1" >&5
19319 $as_echo_n "checking for Motif version 2.1... " >&6; }
19320 if test "${emacs_cv_motif_version_2_1+set}" = set; then :
19321 $as_echo_n "(cached) " >&6
19323 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19324 /* end confdefs.h. */
19329 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
19332 Motif version prior to 2.1.
19338 if ac_fn_c_try_compile
"$LINENO"; then :
19339 emacs_cv_motif_version_2_1
=yes
19341 emacs_cv_motif_version_2_1
=no
19343 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_motif_version_2_1" >&5
19346 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
19347 if test $emacs_cv_motif_version_2_1 = yes; then
19348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpCreateContext in -lXp" >&5
19349 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
19350 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then :
19351 $as_echo_n "(cached) " >&6
19353 ac_check_lib_save_LIBS
=$LIBS
19355 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19356 /* end confdefs.h. */
19358 /* Override any GCC internal prototype to avoid an error.
19359 Use char because int might match the return type of a GCC
19360 builtin and then its argument prototype would still apply. */
19364 char XpCreateContext ();
19368 return XpCreateContext ();
19373 if ac_fn_c_try_link
"$LINENO"; then :
19374 ac_cv_lib_Xp_XpCreateContext
=yes
19376 ac_cv_lib_Xp_XpCreateContext
=no
19378 rm -f core conftest.err conftest.
$ac_objext \
19379 conftest
$ac_exeext conftest.
$ac_ext
19380 LIBS
=$ac_check_lib_save_LIBS
19382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpCreateContext" >&5
19383 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
19384 if test "x$ac_cv_lib_Xp_XpCreateContext" = x
""yes; then :
19389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LessTif where some systems put it" >&5
19390 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
19391 if test "${emacs_cv_lesstif+set}" = set; then :
19392 $as_echo_n "(cached) " >&6
19394 # We put this in CFLAGS temporarily to precede other -I options
19395 # that might be in CFLAGS temporarily.
19396 # We put this in CPPFLAGS where it precedes the other -I options.
19397 OLD_CPPFLAGS
=$CPPFLAGS
19399 CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
19400 CFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
19401 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19402 /* end confdefs.h. */
19403 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
19412 if ac_fn_c_try_compile
"$LINENO"; then :
19413 emacs_cv_lesstif
=yes
19415 emacs_cv_lesstif
=no
19417 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_lesstif" >&5
19420 $as_echo "$emacs_cv_lesstif" >&6; }
19421 if test $emacs_cv_lesstif = yes; then
19422 # Make sure this -I option remains in CPPFLAGS after it is set
19423 # back to REAL_CPPFLAGS.
19424 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
19425 # have those other -I options anyway. Ultimately, having this
19426 # directory ultimately in CPPFLAGS will be enough.
19427 REAL_CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
19428 LDFLAGS
="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
19431 CPPFLAGS
=$OLD_CPPFLAGS
19434 ac_fn_c_check_header_mongrel
"$LINENO" "Xm/BulletinB.h" "ac_cv_header_Xm_BulletinB_h" "$ac_includes_default"
19435 if test "x$ac_cv_header_Xm_BulletinB_h" = x
""yes; then :
19438 as_fn_error
"Motif toolkit requested but requirements not found." "$LINENO" 5
19445 USE_TOOLKIT_SCROLL_BARS
=no
19446 if test "${with_toolkit_scroll_bars}" != "no"; then
19447 if test "${USE_X_TOOLKIT}" != "none"; then
19448 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
19449 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
19452 USE_TOOLKIT_SCROLL_BARS
=yes
19453 elif test "${HAVE_XAW3D}" = "yes" ||
test "${USE_X_TOOLKIT}" = "LUCID"; then
19454 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
19456 USE_TOOLKIT_SCROLL_BARS
=yes
19458 elif test "${HAVE_GTK}" = "yes"; then
19459 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
19461 USE_TOOLKIT_SCROLL_BARS
=yes
19462 elif test "${HAVE_NS}" = "yes"; then
19463 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
19465 USE_TOOLKIT_SCROLL_BARS
=yes
19469 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19470 /* end confdefs.h. */
19472 #include <X11/Xlib.h>
19473 #include <X11/Xresource.h>
19482 if ac_fn_c_try_compile
"$LINENO"; then :
19485 $as_echo "#define HAVE_XIM 1" >>confdefs.h
19490 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19493 if test "${with_xim}" != "no"; then
19495 $as_echo "#define USE_XIM 1" >>confdefs.h
19500 if test "${HAVE_XIM}" != "no"; then
19501 late_CFLAGS
=$CFLAGS
19502 if test "$GCC" = yes; then
19503 CFLAGS
="$CFLAGS --pedantic-errors"
19505 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19506 /* end confdefs.h. */
19508 #include <X11/Xlib.h>
19509 #include <X11/Xresource.h>
19518 XPointer *client_data;
19520 /* If we're not using GCC, it's probably not XFree86, and this is
19521 probably right, but we can't use something like --pedantic-errors. */
19522 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
19523 char*, XIMProc, XPointer*);
19525 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
19531 if ac_fn_c_try_compile
"$LINENO"; then :
19532 emacs_cv_arg6_star
=yes
19534 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19535 if test "$emacs_cv_arg6_star" = yes; then
19536 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer*" >>confdefs.h
19539 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer" >>confdefs.h
19542 CFLAGS
=$late_CFLAGS
19545 ### Start of font-backend (under any platform) section.
19546 # (nothing here yet -- this is a placeholder)
19547 ### End of font-backend (under any platform) section.
19549 ### Start of font-backend (under X11) section.
19550 if test "${HAVE_X11}" = "yes"; then
19554 if test "$PKG_CONFIG" = "no" ; then
19557 PKG_CONFIG_MIN_VERSION
=0.9.0
19558 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
19559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.2.0" >&5
19560 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
19562 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5 &&
19563 FONTCONFIG_CFLAGS
=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0" 2>&5` &&
19564 FONTCONFIG_LIBS
=`$PKG_CONFIG --libs "fontconfig >= 2.2.0" 2>&5`; then
19571 FONTCONFIG_CFLAGS
=`$as_echo "$FONTCONFIG_CFLAGS" | sed -e "$edit_cflags"`
19572 FONTCONFIG_LIBS
=`$as_echo "$FONTCONFIG_LIBS" | sed -e 's,///*,/,g'`
19573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$FONTCONFIG_CFLAGS' LIBS='$FONTCONFIG_LIBS'" >&5
19574 $as_echo "yes CFLAGS='$FONTCONFIG_CFLAGS' LIBS='$FONTCONFIG_LIBS'" >&6; }
19577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19578 $as_echo "no" >&6; }
19579 FONTCONFIG_CFLAGS
=""
19581 ## If we have a custom action on failure, don't print errors, but
19582 ## do set a variable so people can do so.
19583 FONTCONFIG_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2.0"`
19590 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
19591 echo "*** See http://www.freedesktop.org/software/pkgconfig"
19595 if test $succeeded = yes; then
19602 ## Use -lXft if available, unless `--with-xft=no'.
19604 if test "${HAVE_FC}" = "no" ||
test "x${with_x}" = "xno"; then
19607 if test "x${with_xft}" != "xno"; then
19612 if test "$PKG_CONFIG" = "no" ; then
19615 PKG_CONFIG_MIN_VERSION
=0.9.0
19616 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
19617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xft >= 0.13.0" >&5
19618 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
19620 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5 &&
19621 XFT_CFLAGS
=`$PKG_CONFIG --cflags "xft >= 0.13.0" 2>&5` &&
19622 XFT_LIBS
=`$PKG_CONFIG --libs "xft >= 0.13.0" 2>&5`; then
19629 XFT_CFLAGS
=`$as_echo "$XFT_CFLAGS" | sed -e "$edit_cflags"`
19630 XFT_LIBS
=`$as_echo "$XFT_LIBS" | sed -e 's,///*,/,g'`
19631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$XFT_CFLAGS' LIBS='$XFT_LIBS'" >&5
19632 $as_echo "yes CFLAGS='$XFT_CFLAGS' LIBS='$XFT_LIBS'" >&6; }
19635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19636 $as_echo "no" >&6; }
19639 ## If we have a custom action on failure, don't print errors, but
19640 ## do set a variable so people can do so.
19641 XFT_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
19648 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
19649 echo "*** See http://www.freedesktop.org/software/pkgconfig"
19653 if test $succeeded = yes; then
19659 ## Because xftfont.c uses XRenderQueryExtension, we also
19660 ## need to link to -lXrender.
19662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5
19663 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
19664 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then :
19665 $as_echo_n "(cached) " >&6
19667 ac_check_lib_save_LIBS
=$LIBS
19668 LIBS
="-lXrender $LIBS"
19669 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19670 /* end confdefs.h. */
19672 /* Override any GCC internal prototype to avoid an error.
19673 Use char because int might match the return type of a GCC
19674 builtin and then its argument prototype would still apply. */
19678 char XRenderQueryExtension ();
19682 return XRenderQueryExtension ();
19687 if ac_fn_c_try_link
"$LINENO"; then :
19688 ac_cv_lib_Xrender_XRenderQueryExtension
=yes
19690 ac_cv_lib_Xrender_XRenderQueryExtension
=no
19692 rm -f core conftest.err conftest.
$ac_objext \
19693 conftest
$ac_exeext conftest.
$ac_ext
19694 LIBS
=$ac_check_lib_save_LIBS
19696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
19697 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
19698 if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = x
""yes; then :
19702 if test "$HAVE_XFT" != no
&& test "$HAVE_XRENDER" != no
; then
19703 OLD_CPPFLAGS
="$CPPFLAGS"
19704 OLD_CFLAGS
="$CFLAGS"
19706 CPPFLAGS
="$CPPFLAGS $XFT_CFLAGS"
19707 CFLAGS
="$CFLAGS $XFT_CFLAGS"
19708 XFT_LIBS
="-lXrender $XFT_LIBS"
19709 LIBS
="$XFT_LIBS $LIBS"
19710 ac_fn_c_check_header_mongrel
"$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default"
19711 if test "x$ac_cv_header_X11_Xft_Xft_h" = x
""yes; then :
19712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5
19713 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
19714 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then :
19715 $as_echo_n "(cached) " >&6
19717 ac_check_lib_save_LIBS
=$LIBS
19718 LIBS
="-lXft $XFT_LIBS $LIBS"
19719 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19720 /* end confdefs.h. */
19722 /* Override any GCC internal prototype to avoid an error.
19723 Use char because int might match the return type of a GCC
19724 builtin and then its argument prototype would still apply. */
19728 char XftFontOpen ();
19732 return XftFontOpen ();
19737 if ac_fn_c_try_link
"$LINENO"; then :
19738 ac_cv_lib_Xft_XftFontOpen
=yes
19740 ac_cv_lib_Xft_XftFontOpen
=no
19742 rm -f core conftest.err conftest.
$ac_objext \
19743 conftest
$ac_exeext conftest.
$ac_ext
19744 LIBS
=$ac_check_lib_save_LIBS
19746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftFontOpen" >&5
19747 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
19748 if test "x$ac_cv_lib_Xft_XftFontOpen" = x
""yes; then :
19756 if test "${HAVE_XFT}" = "yes"; then
19758 $as_echo "#define HAVE_XFT 1" >>confdefs.h
19761 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $XFT_CFLAGS"
19763 CPPFLAGS
="$OLD_CPPFLAGS"
19764 CFLAGS
="$OLD_CFLAGS"
19766 fi # "${HAVE_XFT}" = "yes"
19767 fi # "$HAVE_XFT" != no
19768 fi # "x${with_xft}" != "xno"
19770 ## We used to allow building with FreeType and without Xft.
19771 ## However, the ftx font backend driver is not in good shape.
19772 if test "$HAVE_XFT" != "yes"; then
19779 if test "$PKG_CONFIG" = "no" ; then
19782 PKG_CONFIG_MIN_VERSION
=0.9.0
19783 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
19784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype2" >&5
19785 $as_echo_n "checking for freetype2... " >&6; }
19787 if $PKG_CONFIG --exists "freetype2" 2>&5 &&
19788 FREETYPE_CFLAGS
=`$PKG_CONFIG --cflags "freetype2" 2>&5` &&
19789 FREETYPE_LIBS
=`$PKG_CONFIG --libs "freetype2" 2>&5`; then
19796 FREETYPE_CFLAGS
=`$as_echo "$FREETYPE_CFLAGS" | sed -e "$edit_cflags"`
19797 FREETYPE_LIBS
=`$as_echo "$FREETYPE_LIBS" | sed -e 's,///*,/,g'`
19798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$FREETYPE_CFLAGS' LIBS='$FREETYPE_LIBS'" >&5
19799 $as_echo "yes CFLAGS='$FREETYPE_CFLAGS' LIBS='$FREETYPE_LIBS'" >&6; }
19802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19803 $as_echo "no" >&6; }
19806 ## If we have a custom action on failure, don't print errors, but
19807 ## do set a variable so people can do so.
19808 FREETYPE_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2"`
19815 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
19816 echo "*** See http://www.freedesktop.org/software/pkgconfig"
19820 if test $succeeded = yes; then
19827 test "$HAVE_FREETYPE" = "no" && as_fn_error
"libxft requires libfreetype" "$LINENO" 5
19831 if test "${HAVE_FREETYPE}" = "yes"; then
19833 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
19835 if test "${with_libotf}" != "no"; then
19839 if test "$PKG_CONFIG" = "no" ; then
19842 PKG_CONFIG_MIN_VERSION
=0.9.0
19843 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
19844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libotf" >&5
19845 $as_echo_n "checking for libotf... " >&6; }
19847 if $PKG_CONFIG --exists "libotf" 2>&5 &&
19848 LIBOTF_CFLAGS
=`$PKG_CONFIG --cflags "libotf" 2>&5` &&
19849 LIBOTF_LIBS
=`$PKG_CONFIG --libs "libotf" 2>&5`; then
19856 LIBOTF_CFLAGS
=`$as_echo "$LIBOTF_CFLAGS" | sed -e "$edit_cflags"`
19857 LIBOTF_LIBS
=`$as_echo "$LIBOTF_LIBS" | sed -e 's,///*,/,g'`
19858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBOTF_CFLAGS' LIBS='$LIBOTF_LIBS'" >&5
19859 $as_echo "yes CFLAGS='$LIBOTF_CFLAGS' LIBS='$LIBOTF_LIBS'" >&6; }
19862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19863 $as_echo "no" >&6; }
19866 ## If we have a custom action on failure, don't print errors, but
19867 ## do set a variable so people can do so.
19868 LIBOTF_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
19875 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
19876 echo "*** See http://www.freedesktop.org/software/pkgconfig"
19880 if test $succeeded = yes; then
19886 if test "$HAVE_LIBOTF" = "yes"; then
19888 $as_echo "#define HAVE_LIBOTF 1" >>confdefs.h
19890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTF_get_variation_glyphs in -lotf" >&5
19891 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
19892 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then :
19893 $as_echo_n "(cached) " >&6
19895 ac_check_lib_save_LIBS
=$LIBS
19897 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19898 /* end confdefs.h. */
19900 /* Override any GCC internal prototype to avoid an error.
19901 Use char because int might match the return type of a GCC
19902 builtin and then its argument prototype would still apply. */
19906 char OTF_get_variation_glyphs ();
19910 return OTF_get_variation_glyphs ();
19915 if ac_fn_c_try_link
"$LINENO"; then :
19916 ac_cv_lib_otf_OTF_get_variation_glyphs
=yes
19918 ac_cv_lib_otf_OTF_get_variation_glyphs
=no
19920 rm -f core conftest.err conftest.
$ac_objext \
19921 conftest
$ac_exeext conftest.
$ac_ext
19922 LIBS
=$ac_check_lib_save_LIBS
19924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
19925 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
19926 if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = x
""yes; then :
19927 HAVE_OTF_GET_VARIATION_GLYPHS
=yes
19929 HAVE_OTF_GET_VARIATION_GLYPHS
=no
19932 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
19934 $as_echo "#define HAVE_OTF_GET_VARIATION_GLYPHS 1" >>confdefs.h
19942 if test "${HAVE_LIBOTF}" = yes; then
19943 if test "${with_m17n_flt}" != "no"; then
19947 if test "$PKG_CONFIG" = "no" ; then
19950 PKG_CONFIG_MIN_VERSION
=0.9.0
19951 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
19952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m17n-flt" >&5
19953 $as_echo_n "checking for m17n-flt... " >&6; }
19955 if $PKG_CONFIG --exists "m17n-flt" 2>&5 &&
19956 M17N_FLT_CFLAGS
=`$PKG_CONFIG --cflags "m17n-flt" 2>&5` &&
19957 M17N_FLT_LIBS
=`$PKG_CONFIG --libs "m17n-flt" 2>&5`; then
19964 M17N_FLT_CFLAGS
=`$as_echo "$M17N_FLT_CFLAGS" | sed -e "$edit_cflags"`
19965 M17N_FLT_LIBS
=`$as_echo "$M17N_FLT_LIBS" | sed -e 's,///*,/,g'`
19966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$M17N_FLT_CFLAGS' LIBS='$M17N_FLT_LIBS'" >&5
19967 $as_echo "yes CFLAGS='$M17N_FLT_CFLAGS' LIBS='$M17N_FLT_LIBS'" >&6; }
19970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19971 $as_echo "no" >&6; }
19974 ## If we have a custom action on failure, don't print errors, but
19975 ## do set a variable so people can do so.
19976 M17N_FLT_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
19983 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
19984 echo "*** See http://www.freedesktop.org/software/pkgconfig"
19988 if test $succeeded = yes; then
19994 if test "$HAVE_M17N_FLT" = "yes"; then
19996 $as_echo "#define HAVE_M17N_FLT 1" >>confdefs.h
20008 ### End of font-backend (under X11) section.
20019 ### Use -lXpm if available, unless `--with-xpm=no'.
20022 if test "${HAVE_X11}" = "yes"; then
20023 if test "${with_xpm}" != "no"; then
20024 ac_fn_c_check_header_mongrel
"$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
20025 if test "x$ac_cv_header_X11_xpm_h" = x
""yes; then :
20026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToPixmap in -lXpm" >&5
20027 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
20028 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then :
20029 $as_echo_n "(cached) " >&6
20031 ac_check_lib_save_LIBS
=$LIBS
20032 LIBS
="-lXpm -lX11 $LIBS"
20033 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20034 /* end confdefs.h. */
20036 /* Override any GCC internal prototype to avoid an error.
20037 Use char because int might match the return type of a GCC
20038 builtin and then its argument prototype would still apply. */
20042 char XpmReadFileToPixmap ();
20046 return XpmReadFileToPixmap ();
20051 if ac_fn_c_try_link
"$LINENO"; then :
20052 ac_cv_lib_Xpm_XpmReadFileToPixmap
=yes
20054 ac_cv_lib_Xpm_XpmReadFileToPixmap
=no
20056 rm -f core conftest.err conftest.
$ac_objext \
20057 conftest
$ac_exeext conftest.
$ac_ext
20058 LIBS
=$ac_check_lib_save_LIBS
20060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
20061 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
20062 if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = x
""yes; then :
20069 if test "${HAVE_XPM}" = "yes"; then
20070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
20071 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
20072 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20073 /* end confdefs.h. */
20074 #include "X11/xpm.h"
20075 #ifndef XpmReturnAllocPixels
20076 no_return_alloc_pixels
20080 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20081 $EGREP "no_return_alloc_pixels" >/dev
/null
2>&1; then :
20089 if test "${HAVE_XPM}" = "yes"; then
20090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20091 $as_echo "yes" >&6; }
20093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20094 $as_echo "no" >&6; }
20099 if test "${HAVE_XPM}" = "yes"; then
20101 $as_echo "#define HAVE_XPM 1" >>confdefs.h
20108 ### Use -ljpeg if available, unless `--with-jpeg=no'.
20111 if test "${HAVE_X11}" = "yes"; then
20112 if test "${with_jpeg}" != "no"; then
20113 ac_fn_c_check_header_mongrel
"$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
20114 if test "x$ac_cv_header_jerror_h" = x
""yes; then :
20115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_compress in -ljpeg" >&5
20116 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
20117 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then :
20118 $as_echo_n "(cached) " >&6
20120 ac_check_lib_save_LIBS
=$LIBS
20121 LIBS
="-ljpeg $LIBS"
20122 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20123 /* end confdefs.h. */
20125 /* Override any GCC internal prototype to avoid an error.
20126 Use char because int might match the return type of a GCC
20127 builtin and then its argument prototype would still apply. */
20131 char jpeg_destroy_compress ();
20135 return jpeg_destroy_compress ();
20140 if ac_fn_c_try_link
"$LINENO"; then :
20141 ac_cv_lib_jpeg_jpeg_destroy_compress
=yes
20143 ac_cv_lib_jpeg_jpeg_destroy_compress
=no
20145 rm -f core conftest.err conftest.
$ac_objext \
20146 conftest
$ac_exeext conftest.
$ac_ext
20147 LIBS
=$ac_check_lib_save_LIBS
20149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
20150 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
20151 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = x
""yes; then :
20160 if test "${HAVE_JPEG}" = "yes"; then
20161 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
20163 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20164 /* end confdefs.h. */
20165 #include <jpeglib.h>
20166 version=JPEG_LIB_VERSION
20169 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20170 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev
/null
2>&1; then :
20171 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
20174 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5
20175 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
20181 if test "${HAVE_JPEG}" = "yes"; then
20187 ### Use -lpng if available, unless `--with-png=no'.
20190 if test "${HAVE_X11}" = "yes"; then
20191 if test "${with_png}" != "no"; then
20192 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
20193 # in /usr/include/libpng.
20194 for ac_header
in png.h libpng
/png.h
20196 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20197 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20198 eval as_val
=\$
$as_ac_Header
20199 if test "x$as_val" = x
""yes; then :
20200 cat >>confdefs.h
<<_ACEOF
20201 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20208 if test "$ac_cv_header_png_h" = yes ||
test "$ac_cv_header_libpng_png_h" = yes ; then
20209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_channels in -lpng" >&5
20210 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
20211 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then :
20212 $as_echo_n "(cached) " >&6
20214 ac_check_lib_save_LIBS
=$LIBS
20215 LIBS
="-lpng -lz -lm $LIBS"
20216 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20217 /* end confdefs.h. */
20219 /* Override any GCC internal prototype to avoid an error.
20220 Use char because int might match the return type of a GCC
20221 builtin and then its argument prototype would still apply. */
20225 char png_get_channels ();
20229 return png_get_channels ();
20234 if ac_fn_c_try_link
"$LINENO"; then :
20235 ac_cv_lib_png_png_get_channels
=yes
20237 ac_cv_lib_png_png_get_channels
=no
20239 rm -f core conftest.err conftest.
$ac_objext \
20240 conftest
$ac_exeext conftest.
$ac_ext
20241 LIBS
=$ac_check_lib_save_LIBS
20243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_channels" >&5
20244 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
20245 if test "x$ac_cv_lib_png_png_get_channels" = x
""yes; then :
20252 if test "${HAVE_PNG}" = "yes"; then
20254 $as_echo "#define HAVE_PNG 1" >>confdefs.h
20256 LIBPNG
="-lpng -lz -lm"
20258 ac_fn_c_check_decl
"$LINENO" "png_longjmp" "ac_cv_have_decl_png_longjmp" "#ifdef HAVE_LIBPNG_PNG_H
20259 # include <libpng/png.h>
20265 if test "x$ac_cv_have_decl_png_longjmp" = x
""yes; then :
20269 $as_echo "#define PNG_DEPRECATED /**/" >>confdefs.h
20277 ### Use -ltiff if available, unless `--with-tiff=no'.
20280 if test "${HAVE_X11}" = "yes"; then
20281 if test "${with_tiff}" != "no"; then
20282 ac_fn_c_check_header_mongrel
"$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
20283 if test "x$ac_cv_header_tiffio_h" = x
""yes; then :
20285 # At least one tiff package requires the jpeg library.
20286 if test "${HAVE_JPEG}" = yes; then tifflibs
="-ljpeg $tifflibs"; fi
20287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFGetVersion in -ltiff" >&5
20288 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
20289 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then :
20290 $as_echo_n "(cached) " >&6
20292 ac_check_lib_save_LIBS
=$LIBS
20293 LIBS
="-ltiff $tifflibs $LIBS"
20294 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20295 /* end confdefs.h. */
20297 /* Override any GCC internal prototype to avoid an error.
20298 Use char because int might match the return type of a GCC
20299 builtin and then its argument prototype would still apply. */
20303 char TIFFGetVersion ();
20307 return TIFFGetVersion ();
20312 if ac_fn_c_try_link
"$LINENO"; then :
20313 ac_cv_lib_tiff_TIFFGetVersion
=yes
20315 ac_cv_lib_tiff_TIFFGetVersion
=no
20317 rm -f core conftest.err conftest.
$ac_objext \
20318 conftest
$ac_exeext conftest.
$ac_ext
20319 LIBS
=$ac_check_lib_save_LIBS
20321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
20322 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
20323 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = x
""yes; then :
20332 if test "${HAVE_TIFF}" = "yes"; then
20334 $as_echo "#define HAVE_TIFF 1" >>confdefs.h
20341 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
20344 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
20345 ac_fn_c_check_header_mongrel
"$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
20346 if test "x$ac_cv_header_gif_lib_h" = x
""yes; then :
20347 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
20348 # Earlier versions can crash Emacs.
20349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lgif" >&5
20350 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
20351 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then :
20352 $as_echo_n "(cached) " >&6
20354 ac_check_lib_save_LIBS
=$LIBS
20356 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20357 /* end confdefs.h. */
20359 /* Override any GCC internal prototype to avoid an error.
20360 Use char because int might match the return type of a GCC
20361 builtin and then its argument prototype would still apply. */
20365 char EGifPutExtensionLast ();
20369 return EGifPutExtensionLast ();
20374 if ac_fn_c_try_link
"$LINENO"; then :
20375 ac_cv_lib_gif_EGifPutExtensionLast
=yes
20377 ac_cv_lib_gif_EGifPutExtensionLast
=no
20379 rm -f core conftest.err conftest.
$ac_objext \
20380 conftest
$ac_exeext conftest.
$ac_ext
20381 LIBS
=$ac_check_lib_save_LIBS
20383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
20384 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
20385 if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = x
""yes; then :
20395 if test "$HAVE_GIF" = yes; then
20397 elif test "$HAVE_GIF" = maybe
; then
20398 # If gif_lib.h but no libgif, try libungif.
20399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lungif" >&5
20400 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
20401 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then :
20402 $as_echo_n "(cached) " >&6
20404 ac_check_lib_save_LIBS
=$LIBS
20405 LIBS
="-lungif $LIBS"
20406 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20407 /* end confdefs.h. */
20409 /* Override any GCC internal prototype to avoid an error.
20410 Use char because int might match the return type of a GCC
20411 builtin and then its argument prototype would still apply. */
20415 char EGifPutExtensionLast ();
20419 return EGifPutExtensionLast ();
20424 if ac_fn_c_try_link
"$LINENO"; then :
20425 ac_cv_lib_ungif_EGifPutExtensionLast
=yes
20427 ac_cv_lib_ungif_EGifPutExtensionLast
=no
20429 rm -f core conftest.err conftest.
$ac_objext \
20430 conftest
$ac_exeext conftest.
$ac_ext
20431 LIBS
=$ac_check_lib_save_LIBS
20433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
20434 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
20435 if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = x
""yes; then :
20441 test "$HAVE_GIF" = yes && LIBGIF
=-lungif
20444 if test "${HAVE_GIF}" = "yes"; then
20446 $as_echo "#define HAVE_GIF 1" >>confdefs.h
20452 if test "${HAVE_X11}" = "yes"; then
20455 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
20456 MISSING
="libXpm" && WITH_NO
="--with-xpm=no"
20457 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
20458 MISSING
="$MISSING libjpeg" && WITH_NO
="$WITH_NO --with-jpeg=no"
20459 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
20460 MISSING
="$MISSING libpng" && WITH_NO
="$WITH_NO --with-png=no"
20461 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
20462 MISSING
="$MISSING libgif/libungif" && WITH_NO
="$WITH_NO --with-gif=no"
20463 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
20464 MISSING
="$MISSING libtiff" && WITH_NO
="$WITH_NO --with-tiff=no"
20466 if test "X${MISSING}" != X
; then
20467 as_fn_error
"The following required libraries were not found:
20469 Maybe some development libraries/packages are missing?
20470 If you don't want to link with them give
20472 as options to configure" "$LINENO" 5
20476 ### Use -lgpm if available, unless `--with-gpm=no'.
20479 if test "${with_gpm}" != "no"; then
20480 ac_fn_c_check_header_mongrel
"$LINENO" "gpm.h" "ac_cv_header_gpm_h" "$ac_includes_default"
20481 if test "x$ac_cv_header_gpm_h" = x
""yes; then :
20482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5
20483 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
20484 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then :
20485 $as_echo_n "(cached) " >&6
20487 ac_check_lib_save_LIBS
=$LIBS
20489 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20490 /* end confdefs.h. */
20492 /* Override any GCC internal prototype to avoid an error.
20493 Use char because int might match the return type of a GCC
20494 builtin and then its argument prototype would still apply. */
20502 return Gpm_Open ();
20507 if ac_fn_c_try_link
"$LINENO"; then :
20508 ac_cv_lib_gpm_Gpm_Open
=yes
20510 ac_cv_lib_gpm_Gpm_Open
=no
20512 rm -f core conftest.err conftest.
$ac_objext \
20513 conftest
$ac_exeext conftest.
$ac_ext
20514 LIBS
=$ac_check_lib_save_LIBS
20516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Open" >&5
20517 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
20518 if test "x$ac_cv_lib_gpm_Gpm_Open" = x
""yes; then :
20526 if test "${HAVE_GPM}" = "yes"; then
20528 $as_echo "#define HAVE_GPM 1" >>confdefs.h
20540 ### Use NeXTstep API to implement GUI.
20541 if test "${HAVE_NS}" = "yes"; then
20543 $as_echo "#define HAVE_NS 1" >>confdefs.h
20545 if test "${NS_IMPL_COCOA}" = "yes"; then
20547 $as_echo "#define NS_IMPL_COCOA 1" >>confdefs.h
20550 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
20552 $as_echo "#define NS_IMPL_GNUSTEP 1" >>confdefs.h
20554 # See also .m.o rule in Makefile.in */
20555 # FIXME: are all these flags really needed? Document here why. */
20556 GNUSTEP_CFLAGS
="-D_REENTRANT -fPIC -fno-strict-aliasing -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
20557 ## Extra CFLAGS applied to src/*.m files.
20558 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"
20560 # We also have mouse menus.
20566 ### Use session management (-lSM -lICE) if available
20569 if test "${HAVE_X11}" = "yes"; then
20570 ac_fn_c_check_header_mongrel
"$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
20571 if test "x$ac_cv_header_X11_SM_SMlib_h" = x
""yes; then :
20572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5
20573 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
20574 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then :
20575 $as_echo_n "(cached) " >&6
20577 ac_check_lib_save_LIBS
=$LIBS
20578 LIBS
="-lSM -lICE $LIBS"
20579 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20580 /* end confdefs.h. */
20582 /* Override any GCC internal prototype to avoid an error.
20583 Use char because int might match the return type of a GCC
20584 builtin and then its argument prototype would still apply. */
20588 char SmcOpenConnection ();
20592 return SmcOpenConnection ();
20597 if ac_fn_c_try_link
"$LINENO"; then :
20598 ac_cv_lib_SM_SmcOpenConnection
=yes
20600 ac_cv_lib_SM_SmcOpenConnection
=no
20602 rm -f core conftest.err conftest.
$ac_objext \
20603 conftest
$ac_exeext conftest.
$ac_ext
20604 LIBS
=$ac_check_lib_save_LIBS
20606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
20607 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
20608 if test "x$ac_cv_lib_SM_SmcOpenConnection" = x
""yes; then :
20616 if test "${HAVE_X_SM}" = "yes"; then
20618 $as_echo "#define HAVE_X_SM 1" >>confdefs.h
20620 LIBXSM
="-lSM -lICE"
20623 *) LIBS
="$LIBXSM $LIBS" ;;
20629 ### Use libxml (-lxml2) if available
20631 if test "${with_xml2}" != "no"; then
20632 ### I'm not sure what the version number should be, so I just guessed.
20636 if test "$PKG_CONFIG" = "no" ; then
20639 PKG_CONFIG_MIN_VERSION
=0.9.0
20640 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
20641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 > 2.6.17" >&5
20642 $as_echo_n "checking for libxml-2.0 > 2.6.17... " >&6; }
20644 if $PKG_CONFIG --exists "libxml-2.0 > 2.6.17" 2>&5 &&
20645 LIBXML2_CFLAGS
=`$PKG_CONFIG --cflags "libxml-2.0 > 2.6.17" 2>&5` &&
20646 LIBXML2_LIBS
=`$PKG_CONFIG --libs "libxml-2.0 > 2.6.17" 2>&5`; then
20653 LIBXML2_CFLAGS
=`$as_echo "$LIBXML2_CFLAGS" | sed -e "$edit_cflags"`
20654 LIBXML2_LIBS
=`$as_echo "$LIBXML2_LIBS" | sed -e 's,///*,/,g'`
20655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBXML2_CFLAGS' LIBS='$LIBXML2_LIBS'" >&5
20656 $as_echo "yes CFLAGS='$LIBXML2_CFLAGS' LIBS='$LIBXML2_LIBS'" >&6; }
20659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20660 $as_echo "no" >&6; }
20663 ## If we have a custom action on failure, don't print errors, but
20664 ## do set a variable so people can do so.
20665 LIBXML2_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "libxml-2.0 > 2.6.17"`
20672 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
20673 echo "*** See http://www.freedesktop.org/software/pkgconfig"
20677 if test $succeeded = yes; then
20683 if test "${HAVE_LIBXML2}" = "yes"; then
20684 LIBS
="$LIBXML2_LIBS $LIBS"
20685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htmlReadMemory in -lxml2" >&5
20686 $as_echo_n "checking for htmlReadMemory in -lxml2... " >&6; }
20687 if test "${ac_cv_lib_xml2_htmlReadMemory+set}" = set; then :
20688 $as_echo_n "(cached) " >&6
20690 ac_check_lib_save_LIBS
=$LIBS
20691 LIBS
="-lxml2 $LIBS"
20692 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20693 /* end confdefs.h. */
20695 /* Override any GCC internal prototype to avoid an error.
20696 Use char because int might match the return type of a GCC
20697 builtin and then its argument prototype would still apply. */
20701 char htmlReadMemory ();
20705 return htmlReadMemory ();
20710 if ac_fn_c_try_link
"$LINENO"; then :
20711 ac_cv_lib_xml2_htmlReadMemory
=yes
20713 ac_cv_lib_xml2_htmlReadMemory
=no
20715 rm -f core conftest.err conftest.
$ac_objext \
20716 conftest
$ac_exeext conftest.
$ac_ext
20717 LIBS
=$ac_check_lib_save_LIBS
20719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_htmlReadMemory" >&5
20720 $as_echo "$ac_cv_lib_xml2_htmlReadMemory" >&6; }
20721 if test "x$ac_cv_lib_xml2_htmlReadMemory" = x
""yes; then :
20727 if test "${HAVE_LIBXML2}" = "yes"; then
20729 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
20740 # If netdb.h doesn't declare h_errno, we must declare it by hand.
20741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netdb declares h_errno" >&5
20742 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
20743 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then :
20744 $as_echo_n "(cached) " >&6
20746 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20747 /* end confdefs.h. */
20757 if ac_fn_c_try_link
"$LINENO"; then :
20758 emacs_cv_netdb_declares_h_errno
=yes
20760 emacs_cv_netdb_declares_h_errno
=no
20762 rm -f core conftest.err conftest.
$ac_objext \
20763 conftest
$ac_exeext conftest.
$ac_ext
20765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_netdb_declares_h_errno" >&5
20766 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
20767 if test $emacs_cv_netdb_declares_h_errno = yes; then
20769 $as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h
20773 # fmod, logb, and frexp are found in -lm on most systems.
20774 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
20775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
20776 $as_echo_n "checking for sqrt in -lm... " >&6; }
20777 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
20778 $as_echo_n "(cached) " >&6
20780 ac_check_lib_save_LIBS
=$LIBS
20782 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20783 /* end confdefs.h. */
20785 /* Override any GCC internal prototype to avoid an error.
20786 Use char because int might match the return type of a GCC
20787 builtin and then its argument prototype would still apply. */
20800 if ac_fn_c_try_link
"$LINENO"; then :
20801 ac_cv_lib_m_sqrt
=yes
20803 ac_cv_lib_m_sqrt
=no
20805 rm -f core conftest.err conftest.
$ac_objext \
20806 conftest
$ac_exeext conftest.
$ac_ext
20807 LIBS
=$ac_check_lib_save_LIBS
20809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
20810 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
20811 if test "x$ac_cv_lib_m_sqrt" = x
""yes; then :
20812 cat >>confdefs.h
<<_ACEOF
20813 #define HAVE_LIBM 1
20821 # Check for mail-locking functions in a "mail" library. Probably this should
20822 # have the same check as for liblockfile below.
20823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -lmail" >&5
20824 $as_echo_n "checking for maillock in -lmail... " >&6; }
20825 if test "${ac_cv_lib_mail_maillock+set}" = set; then :
20826 $as_echo_n "(cached) " >&6
20828 ac_check_lib_save_LIBS
=$LIBS
20829 LIBS
="-lmail $LIBS"
20830 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20831 /* end confdefs.h. */
20833 /* Override any GCC internal prototype to avoid an error.
20834 Use char because int might match the return type of a GCC
20835 builtin and then its argument prototype would still apply. */
20843 return maillock ();
20848 if ac_fn_c_try_link
"$LINENO"; then :
20849 ac_cv_lib_mail_maillock
=yes
20851 ac_cv_lib_mail_maillock
=no
20853 rm -f core conftest.err conftest.
$ac_objext \
20854 conftest
$ac_exeext conftest.
$ac_ext
20855 LIBS
=$ac_check_lib_save_LIBS
20857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mail_maillock" >&5
20858 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
20859 if test "x$ac_cv_lib_mail_maillock" = x
""yes; then :
20865 if test $have_mail = yes; then
20867 LIBS
="$LIBS_MAIL $LIBS"
20869 $as_echo "#define HAVE_LIBMAIL 1" >>confdefs.h
20874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -llockfile" >&5
20875 $as_echo_n "checking for maillock in -llockfile... " >&6; }
20876 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then :
20877 $as_echo_n "(cached) " >&6
20879 ac_check_lib_save_LIBS
=$LIBS
20880 LIBS
="-llockfile $LIBS"
20881 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20882 /* end confdefs.h. */
20884 /* Override any GCC internal prototype to avoid an error.
20885 Use char because int might match the return type of a GCC
20886 builtin and then its argument prototype would still apply. */
20894 return maillock ();
20899 if ac_fn_c_try_link
"$LINENO"; then :
20900 ac_cv_lib_lockfile_maillock
=yes
20902 ac_cv_lib_lockfile_maillock
=no
20904 rm -f core conftest.err conftest.
$ac_objext \
20905 conftest
$ac_exeext conftest.
$ac_ext
20906 LIBS
=$ac_check_lib_save_LIBS
20908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lockfile_maillock" >&5
20909 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
20910 if test "x$ac_cv_lib_lockfile_maillock" = x
""yes; then :
20916 if test $have_lockfile = yes; then
20917 LIBS_MAIL
=-llockfile
20918 LIBS
="$LIBS_MAIL $LIBS"
20920 $as_echo "#define HAVE_LIBLOCKFILE 1" >>confdefs.h
20923 # If we have the shared liblockfile, assume we must use it for mail
20924 # locking (e.g. Debian). If we couldn't link against liblockfile
20925 # (no liblockfile.a installed), ensure that we don't need to.
20926 # Extract the first word of "liblockfile.so", so it can be a program name with args.
20927 set dummy liblockfile.so
; ac_word
=$2
20928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20929 $as_echo_n "checking for $ac_word... " >&6; }
20930 if test "${ac_cv_prog_liblockfile+set}" = set; then :
20931 $as_echo_n "(cached) " >&6
20933 if test -n "$liblockfile"; then
20934 ac_cv_prog_liblockfile
="$liblockfile" # Let the user override the test.
20936 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
20937 as_dummy
="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
20938 for as_dir
in $as_dummy
20941 test -z "$as_dir" && as_dir
=.
20942 for ac_exec_ext
in '' $ac_executable_extensions; do
20943 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20944 ac_cv_prog_liblockfile
="yes"
20945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20952 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile
="no"
20955 liblockfile
=$ac_cv_prog_liblockfile
20956 if test -n "$liblockfile"; then
20957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblockfile" >&5
20958 $as_echo "$liblockfile" >&6; }
20960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20961 $as_echo "no" >&6; }
20965 if test $ac_cv_prog_liblockfile = yes; then
20966 as_fn_error
"Shared liblockfile found but can't link against it.
20967 This probably means that movemail could lose mail.
20968 There may be a \`development' package to install containing liblockfile." "$LINENO" 5
20976 ## Define MAIL_USE_FLOCK (or LOCKF) if the mailer uses flock (or lockf) to
20977 ## interlock access to the mail spool. The alternative is a lock file named
20978 ## /usr/spool/mail/$USER.lock.
20981 aix4-2
) mail_lock
="lockf" ;;
20983 gnu|freebsd|netbsd|openbsd|darwin|irix6-5
) mail_lock
="flock" ;;
20985 ## On GNU/Linux systems, both methods are used by various mail programs.
20986 ## I assume most people are using newer mailers that have heard of flock.
20987 ## Change this if you need to.
20988 ## Debian contains a patch which says: ``On Debian/GNU/Linux systems,
20989 ## configure gets the right answers, and that means *NOT* using flock.
20990 ## Using flock is guaranteed to be the wrong thing. See Debian Policy
20991 ## for details.'' and then uses `#ifdef DEBIAN'. Unfortunately the
20992 ## Debian maintainer hasn't provided a clean fix for Emacs.
20993 ## movemail.c will use `maillock' when MAILDIR, HAVE_LIBMAIL and
20994 ## HAVE_MAILLOCK_H are defined, so the following appears to be the
20995 ## correct logic. -- fx
20996 ## We must check for HAVE_LIBLOCKFILE too, as movemail does.
20997 ## liblockfile is a Free Software replacement for libmail, used on
20998 ## Debian systems and elsewhere. -rfr.
21001 if test $have_mail = yes ||
test $have_lockfile = yes; then
21002 test $ac_cv_header_maillock_h = yes && mail_lock
=no
21008 case "$mail_lock" in
21010 $as_echo "#define MAIL_USE_FLOCK 1" >>confdefs.h
21014 $as_echo "#define MAIL_USE_LOCKF 1" >>confdefs.h
21017 *) BLESSMAIL_TARGET
="need-blessmail" ;;
21022 for ac_func
in gethostname \
21023 rename closedir mkdir
rmdir getrusage get_current_dir_name \
21024 lrand48 logb frexp fmod cbrt setsid \
21025 strerror fpathconf
select euidaccess getpagesize setlocale \
21026 utimes getrlimit setrlimit setpgid getcwd shutdown getaddrinfo \
21027 __fpending strsignal setitimer \
21028 sendto recvfrom getsockname getpeername getifaddrs freeifaddrs \
21029 gai_strerror mkstemp getline getdelim fsync sync \
21030 difftime posix_memalign \
21031 getpwent endpwent getgrent endgrent \
21033 cfmakeraw cfsetspeed copysign __executable_start
21035 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21036 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
21037 eval as_val
=\$
$as_ac_var
21038 if test "x$as_val" = x
""yes; then :
21039 cat >>confdefs.h
<<_ACEOF
21040 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21047 if test $opsys != unixware
; then
21048 for ac_func
in getwd
21050 ac_fn_c_check_func
"$LINENO" "getwd" "ac_cv_func_getwd"
21051 if test "x$ac_cv_func_getwd" = x
""yes; then :
21052 cat >>confdefs.h
<<_ACEOF
21053 #define HAVE_GETWD 1
21061 ## Eric Backus <ericb@lsid.hp.com> says, HP-UX 9.x on HP 700 machines
21062 ## has a broken `rint' in some library versions including math library
21063 ## version number A.09.05.
21064 ## You can fix the math library by installing patch number PHSS_4630.
21065 ## But we can fix it more reliably for Emacs by just not using rint.
21066 ## We also skip HAVE_RANDOM - see comments in src/s/hpux10-20.h.
21069 *) for ac_func
in random rint
21071 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21072 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
21073 eval as_val
=\$
$as_ac_var
21074 if test "x$as_val" = x
""yes; then :
21075 cat >>confdefs.h
<<_ACEOF
21076 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_unwind_init" >&5
21085 $as_echo_n "checking for __builtin_unwind_init... " >&6; }
21086 if test "${emacs_cv_func___builtin_unwind_init+set}" = set; then :
21087 $as_echo_n "(cached) " >&6
21089 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21090 /* end confdefs.h. */
21095 __builtin_unwind_init ();
21100 if ac_fn_c_try_link
"$LINENO"; then :
21101 emacs_cv_func___builtin_unwind_init
=yes
21103 emacs_cv_func___builtin_unwind_init
=no
21105 rm -f core conftest.err conftest.
$ac_objext \
21106 conftest
$ac_exeext conftest.
$ac_ext
21108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func___builtin_unwind_init" >&5
21109 $as_echo "$emacs_cv_func___builtin_unwind_init" >&6; }
21110 if test $emacs_cv_func___builtin_unwind_init = yes; then
21112 $as_echo "#define HAVE___BUILTIN_UNWIND_INIT 1" >>confdefs.h
21120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
21121 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
21122 if test "${ac_cv_sys_largefile_source+set}" = set; then :
21123 $as_echo_n "(cached) " >&6
21126 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21127 /* end confdefs.h. */
21128 #include <sys/types.h> /* for off_t */
21133 int (*fp) (FILE *, off_t, int) = fseeko;
21134 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
21139 if ac_fn_c_try_link
"$LINENO"; then :
21140 ac_cv_sys_largefile_source
=no
; break
21142 rm -f core conftest.err conftest.
$ac_objext \
21143 conftest
$ac_exeext conftest.
$ac_ext
21144 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21145 /* end confdefs.h. */
21146 #define _LARGEFILE_SOURCE 1
21147 #include <sys/types.h> /* for off_t */
21152 int (*fp) (FILE *, off_t, int) = fseeko;
21153 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
21158 if ac_fn_c_try_link
"$LINENO"; then :
21159 ac_cv_sys_largefile_source
=1; break
21161 rm -f core conftest.err conftest.
$ac_objext \
21162 conftest
$ac_exeext conftest.
$ac_ext
21163 ac_cv_sys_largefile_source
=unknown
21167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
21168 $as_echo "$ac_cv_sys_largefile_source" >&6; }
21169 case $ac_cv_sys_largefile_source in #(
21172 cat >>confdefs.h
<<_ACEOF
21173 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
21179 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
21180 # in glibc 2.1.3, but that breaks too many other things.
21181 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
21182 if test $ac_cv_sys_largefile_source != unknown
; then
21184 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
21189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5
21190 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
21191 if test "${ac_cv_func_getpgrp_void+set}" = set; then :
21192 $as_echo_n "(cached) " >&6
21194 # Use it with a single arg.
21195 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21196 /* end confdefs.h. */
21197 $ac_includes_default
21206 if ac_fn_c_try_compile
"$LINENO"; then :
21207 ac_cv_func_getpgrp_void
=no
21209 ac_cv_func_getpgrp_void
=yes
21211 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5
21215 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
21216 if test $ac_cv_func_getpgrp_void = yes; then
21218 $as_echo "#define GETPGRP_VOID 1" >>confdefs.h
21224 for ac_func
in grantpt
21226 ac_fn_c_check_func
"$LINENO" "grantpt" "ac_cv_func_grantpt"
21227 if test "x$ac_cv_func_grantpt" = x
""yes; then :
21228 cat >>confdefs.h
<<_ACEOF
21229 #define HAVE_GRANTPT 1
21236 # PTY-related GNU extensions.
21237 for ac_func
in getpt
21239 ac_fn_c_check_func
"$LINENO" "getpt" "ac_cv_func_getpt"
21240 if test "x$ac_cv_func_getpt" = x
""yes; then :
21241 cat >>confdefs.h
<<_ACEOF
21242 #define HAVE_GETPT 1
21249 # Check this now, so that we will NOT find the above functions in ncurses.
21250 # That is because we have not set up to link ncurses in lib-src.
21251 # It's better to believe a function is not available
21252 # than to expect to find it in ncurses.
21253 # Also we need tputs and friends to be able to build at all.
21254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tputs" >&5
21255 $as_echo_n "checking for library containing tputs... " >&6; }
21256 # Run a test program that contains a call to tputs, a call that is
21257 # never executed. This tests whether a pre-'main' dynamic linker
21258 # works with the library. It's too much trouble to actually call
21259 # tputs in the test program, due to portability hassles. When
21260 # cross-compiling, assume the test program will run if it links.
21262 # Maybe curses should be tried earlier?
21263 # See http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9736#35
21264 for tputs_library
in '' tinfo ncurses terminfo termcap curses
; do
21266 if test -z "$tputs_library"; then
21268 msg
='none required'
21270 LIBS_TERMCAP
=-l$tputs_library
21272 LIBS
="$LIBS_TERMCAP $LIBS"
21274 if test "$cross_compiling" = yes; then :
21275 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21276 /* end confdefs.h. */
21278 extern void tputs (const char *, int, int (*)(int));
21279 int main (int argc, char **argv)
21282 tputs (argv[0], 0, 0);
21287 if ac_fn_c_try_link
"$LINENO"; then :
21292 rm -f core conftest.err conftest.
$ac_objext \
21293 conftest
$ac_exeext conftest.
$ac_ext
21295 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21296 /* end confdefs.h. */
21298 extern void tputs (const char *, int, int (*)(int));
21299 int main (int argc, char **argv)
21302 tputs (argv[0], 0, 0);
21307 if ac_fn_c_try_run
"$LINENO"; then :
21312 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
21313 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21317 if test "X$msg" != Xno
; then
21321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg" >&5
21322 $as_echo "$msg" >&6; }
21323 if test "X$msg" = Xno
; then
21324 as_fn_error
"The required function \`tputs' was not found in any library.
21325 The following libraries were tried (in order):
21326 libtinfo, libncurses, libterminfo, libtermcap, libcurses
21327 Please try installing whichever of these libraries is most appropriate
21328 for your system, together with its header files.
21329 For example, a libncurses-dev(el) or similar package." "$LINENO" 5
21332 ## Use termcap instead of terminfo?
21333 ## Only true for: freebsd < 40000, ms-w32, msdos, netbsd < 599002500.
21335 ## FIXME? In the cases below where we unconditionally set
21336 ## LIBS_TERMCAP="-lncurses", this overrides LIBS_TERMCAP = -ltinfo,
21337 ## if that was found above to have tputs.
21338 ## Should we use the gnu* logic everywhere?
21340 ## darwin: Prevents crashes when running Emacs in Terminal.app under 10.2.
21341 ## The ncurses library has been moved out of the System framework in
21342 ## Mac OS X 10.2. So if configure detects it, set the command-line
21343 ## option to use it.
21344 darwin
) LIBS_TERMCAP
="-lncurses" ;;
21346 gnu
*) test -z "$LIBS_TERMCAP" && LIBS_TERMCAP
="-lncurses" ;;
21349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FreeBSD is new enough to use terminfo" >&5
21350 $as_echo_n "checking whether FreeBSD is new enough to use terminfo... " >&6; }
21351 if test "${emacs_cv_freebsd_terminfo+set}" = set; then :
21352 $as_echo_n "(cached) " >&6
21354 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21355 /* end confdefs.h. */
21356 #include <osreldate.h>
21360 #if __FreeBSD_version < 400000
21368 if ac_fn_c_try_link
"$LINENO"; then :
21369 emacs_cv_freebsd_terminfo
=yes
21371 emacs_cv_freebsd_terminfo
=no
21373 rm -f core conftest.err conftest.
$ac_objext \
21374 conftest
$ac_exeext conftest.
$ac_ext
21378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_freebsd_terminfo" >&5
21379 $as_echo "$emacs_cv_freebsd_terminfo" >&6; }
21381 if test $emacs_cv_freebsd_terminfo = yes; then
21382 LIBS_TERMCAP
="-lncurses"
21385 LIBS_TERMCAP
="-ltermcap"
21390 if test "x$LIBS_TERMCAP" != "x-lterminfo"; then
21392 LIBS_TERMCAP
="-ltermcap"
21396 openbsd
) LIBS_TERMCAP
="-lncurses" ;;
21398 ## hpux: Make sure we get select from libc rather than from libcurses
21399 ## because libcurses on HPUX 10.10 has a broken version of select.
21400 ## We used to use -lc -lcurses, but this may be cleaner.
21401 ## FIXME? But TERMINFO = yes on hpux (it used to be explicitly
21402 # set that way, now it uses the default). Isn't this a contradiction?
21403 hpux
*) LIBS_TERMCAP
="-ltermcap" ;;
21407 TERMCAP_OBJ
=tparam.o
21408 if test $TERMINFO = yes; then
21410 $as_echo "#define TERMINFO 1" >>confdefs.h
21412 TERMCAP_OBJ
=terminfo.o
21418 # Do we have res_init, for detecting changes in /etc/resolv.conf?
21419 # On Darwin, res_init appears not to be useful: see bug#562 and
21420 # http://lists.gnu.org/archive/html/emacs-devel/2007-11/msg01467.html
21423 if test $opsys != darwin
; then
21425 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21426 /* end confdefs.h. */
21427 #include <netinet/in.h>
21428 #include <arpa/nameser.h>
21429 #include <resolv.h>
21438 if ac_fn_c_try_link
"$LINENO"; then :
21443 rm -f core conftest.err conftest.
$ac_objext \
21444 conftest
$ac_exeext conftest.
$ac_ext
21445 if test "$have_res_init" = no
; then
21447 LIBS
="$LIBS -lresolv"
21448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5
21449 $as_echo_n "checking for res_init with -lresolv... " >&6; }
21450 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21451 /* end confdefs.h. */
21452 #include <netinet/in.h>
21453 #include <arpa/nameser.h>
21454 #include <resolv.h>
21463 if ac_fn_c_try_link
"$LINENO"; then :
21468 rm -f core conftest.err conftest.
$ac_objext \
21469 conftest
$ac_exeext conftest.
$ac_ext
21470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5
21471 $as_echo "$have_res_init" >&6; }
21472 if test "$have_res_init" = yes ; then
21478 if test "$have_res_init" = yes; then
21480 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
21484 # Do we need the Hesiod library to provide the support routines?
21486 if test "$with_hesiod" != no
; then
21487 # Don't set $LIBS here -- see comments above. FIXME which comments?
21488 ac_fn_c_check_func
"$LINENO" "res_send" "ac_cv_func_res_send"
21489 if test "x$ac_cv_func_res_send" = x
""yes; then :
21492 ac_fn_c_check_func
"$LINENO" "__res_send" "ac_cv_func___res_send"
21493 if test "x$ac_cv_func___res_send" = x
""yes; then :
21496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5
21497 $as_echo_n "checking for res_send in -lresolv... " >&6; }
21498 if test "${ac_cv_lib_resolv_res_send+set}" = set; then :
21499 $as_echo_n "(cached) " >&6
21501 ac_check_lib_save_LIBS
=$LIBS
21502 LIBS
="-lresolv $LIBS"
21503 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21504 /* end confdefs.h. */
21506 /* Override any GCC internal prototype to avoid an error.
21507 Use char because int might match the return type of a GCC
21508 builtin and then its argument prototype would still apply. */
21516 return res_send ();
21521 if ac_fn_c_try_link
"$LINENO"; then :
21522 ac_cv_lib_resolv_res_send
=yes
21524 ac_cv_lib_resolv_res_send
=no
21526 rm -f core conftest.err conftest.
$ac_objext \
21527 conftest
$ac_exeext conftest.
$ac_ext
21528 LIBS
=$ac_check_lib_save_LIBS
21530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5
21531 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
21532 if test "x$ac_cv_lib_resolv_res_send" = x
""yes; then :
21535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5
21536 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
21537 if test "${ac_cv_lib_resolv___res_send+set}" = set; then :
21538 $as_echo_n "(cached) " >&6
21540 ac_check_lib_save_LIBS
=$LIBS
21541 LIBS
="-lresolv $LIBS"
21542 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21543 /* end confdefs.h. */
21545 /* Override any GCC internal prototype to avoid an error.
21546 Use char because int might match the return type of a GCC
21547 builtin and then its argument prototype would still apply. */
21551 char __res_send ();
21555 return __res_send ();
21560 if ac_fn_c_try_link
"$LINENO"; then :
21561 ac_cv_lib_resolv___res_send
=yes
21563 ac_cv_lib_resolv___res_send
=no
21565 rm -f core conftest.err conftest.
$ac_objext \
21566 conftest
$ac_exeext conftest.
$ac_ext
21567 LIBS
=$ac_check_lib_save_LIBS
21569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5
21570 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
21571 if test "x$ac_cv_lib_resolv___res_send" = x
""yes; then :
21581 if test "$resolv" = yes ; then
21586 ac_fn_c_check_func
"$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost"
21587 if test "x$ac_cv_func_hes_getmailhost" = x
""yes; then :
21590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5
21591 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
21592 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then :
21593 $as_echo_n "(cached) " >&6
21595 ac_check_lib_save_LIBS
=$LIBS
21596 LIBS
="-lhesiod $RESOLVLIB $LIBS"
21597 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21598 /* end confdefs.h. */
21600 /* Override any GCC internal prototype to avoid an error.
21601 Use char because int might match the return type of a GCC
21602 builtin and then its argument prototype would still apply. */
21606 char hes_getmailhost ();
21610 return hes_getmailhost ();
21615 if ac_fn_c_try_link
"$LINENO"; then :
21616 ac_cv_lib_hesiod_hes_getmailhost
=yes
21618 ac_cv_lib_hesiod_hes_getmailhost
=no
21620 rm -f core conftest.err conftest.
$ac_objext \
21621 conftest
$ac_exeext conftest.
$ac_ext
21622 LIBS
=$ac_check_lib_save_LIBS
21624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
21625 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
21626 if test "x$ac_cv_lib_hesiod_hes_getmailhost" = x
""yes; then :
21635 if test x
"$hesiod" = xyes
; then
21637 $as_echo "#define HAVE_LIBHESIOD 1" >>confdefs.h
21644 # Do we need libresolv (due to res_init or Hesiod)?
21645 if test "$resolv" = yes && test $opsys != darwin
; then
21647 $as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
21655 # These tell us which Kerberos-related libraries to use.
21662 if test "${with_kerberos}" != no
; then
21663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
21664 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
21665 if test "${ac_cv_lib_com_err_com_err+set}" = set; then :
21666 $as_echo_n "(cached) " >&6
21668 ac_check_lib_save_LIBS
=$LIBS
21669 LIBS
="-lcom_err $LIBS"
21670 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21671 /* end confdefs.h. */
21673 /* Override any GCC internal prototype to avoid an error.
21674 Use char because int might match the return type of a GCC
21675 builtin and then its argument prototype would still apply. */
21688 if ac_fn_c_try_link
"$LINENO"; then :
21689 ac_cv_lib_com_err_com_err
=yes
21691 ac_cv_lib_com_err_com_err
=no
21693 rm -f core conftest.err conftest.
$ac_objext \
21694 conftest
$ac_exeext conftest.
$ac_ext
21695 LIBS
=$ac_check_lib_save_LIBS
21697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
21698 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
21699 if test "x$ac_cv_lib_com_err_com_err" = x
""yes; then :
21705 if test $have_com_err = yes; then
21706 COM_ERRLIB
=-lcom_err
21707 LIBS
="$COM_ERRLIB $LIBS"
21709 $as_echo "#define HAVE_LIBCOM_ERR 1" >>confdefs.h
21712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5
21713 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
21714 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then :
21715 $as_echo_n "(cached) " >&6
21717 ac_check_lib_save_LIBS
=$LIBS
21718 LIBS
="-lcrypto $LIBS"
21719 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21720 /* end confdefs.h. */
21722 /* Override any GCC internal prototype to avoid an error.
21723 Use char because int might match the return type of a GCC
21724 builtin and then its argument prototype would still apply. */
21728 char mit_des_cbc_encrypt ();
21732 return mit_des_cbc_encrypt ();
21737 if ac_fn_c_try_link
"$LINENO"; then :
21738 ac_cv_lib_crypto_mit_des_cbc_encrypt
=yes
21740 ac_cv_lib_crypto_mit_des_cbc_encrypt
=no
21742 rm -f core conftest.err conftest.
$ac_objext \
21743 conftest
$ac_exeext conftest.
$ac_ext
21744 LIBS
=$ac_check_lib_save_LIBS
21746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
21747 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
21748 if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = x
""yes; then :
21754 if test $have_crypto = yes; then
21756 LIBS
="$CRYPTOLIB $LIBS"
21758 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
21761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
21762 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
21763 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then :
21764 $as_echo_n "(cached) " >&6
21766 ac_check_lib_save_LIBS
=$LIBS
21767 LIBS
="-lk5crypto $LIBS"
21768 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21769 /* end confdefs.h. */
21771 /* Override any GCC internal prototype to avoid an error.
21772 Use char because int might match the return type of a GCC
21773 builtin and then its argument prototype would still apply. */
21777 char mit_des_cbc_encrypt ();
21781 return mit_des_cbc_encrypt ();
21786 if ac_fn_c_try_link
"$LINENO"; then :
21787 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=yes
21789 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=no
21791 rm -f core conftest.err conftest.
$ac_objext \
21792 conftest
$ac_exeext conftest.
$ac_ext
21793 LIBS
=$ac_check_lib_save_LIBS
21795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
21796 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
21797 if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = x
""yes; then :
21803 if test $have_k5crypto = yes; then
21804 CRYPTOLIB
=-lk5crypto
21805 LIBS
="$CRYPTOLIB $LIBS"
21807 $as_echo "#define HAVE_LIBK5CRYPTO 1" >>confdefs.h
21810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
21811 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
21812 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then :
21813 $as_echo_n "(cached) " >&6
21815 ac_check_lib_save_LIBS
=$LIBS
21816 LIBS
="-lkrb5 $LIBS"
21817 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21818 /* end confdefs.h. */
21820 /* Override any GCC internal prototype to avoid an error.
21821 Use char because int might match the return type of a GCC
21822 builtin and then its argument prototype would still apply. */
21826 char krb5_init_context ();
21830 return krb5_init_context ();
21835 if ac_fn_c_try_link
"$LINENO"; then :
21836 ac_cv_lib_krb5_krb5_init_context
=yes
21838 ac_cv_lib_krb5_krb5_init_context
=no
21840 rm -f core conftest.err conftest.
$ac_objext \
21841 conftest
$ac_exeext conftest.
$ac_ext
21842 LIBS
=$ac_check_lib_save_LIBS
21844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
21845 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
21846 if test "x$ac_cv_lib_krb5_krb5_init_context" = x
""yes; then :
21852 if test $have_krb5=yes; then
21854 LIBS
="$KRB5LIB $LIBS"
21856 $as_echo "#define HAVE_LIBKRB5 1" >>confdefs.h
21859 if test "${with_kerberos5}" = no
; then
21860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
21861 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
21862 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then :
21863 $as_echo_n "(cached) " >&6
21865 ac_check_lib_save_LIBS
=$LIBS
21866 LIBS
="-ldes425 $LIBS"
21867 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21868 /* end confdefs.h. */
21870 /* Override any GCC internal prototype to avoid an error.
21871 Use char because int might match the return type of a GCC
21872 builtin and then its argument prototype would still apply. */
21876 char des_cbc_encrypt ();
21880 return des_cbc_encrypt ();
21885 if ac_fn_c_try_link
"$LINENO"; then :
21886 ac_cv_lib_des425_des_cbc_encrypt
=yes
21888 ac_cv_lib_des425_des_cbc_encrypt
=no
21890 rm -f core conftest.err conftest.
$ac_objext \
21891 conftest
$ac_exeext conftest.
$ac_ext
21892 LIBS
=$ac_check_lib_save_LIBS
21894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
21895 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
21896 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = x
""yes; then :
21902 if test $have_des425 = yes; then
21904 LIBS
="$DESLIB $LIBS"
21906 $as_echo "#define HAVE_LIBDES425 1" >>confdefs.h
21909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
21910 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
21911 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then :
21912 $as_echo_n "(cached) " >&6
21914 ac_check_lib_save_LIBS
=$LIBS
21916 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21917 /* end confdefs.h. */
21919 /* Override any GCC internal prototype to avoid an error.
21920 Use char because int might match the return type of a GCC
21921 builtin and then its argument prototype would still apply. */
21925 char des_cbc_encrypt ();
21929 return des_cbc_encrypt ();
21934 if ac_fn_c_try_link
"$LINENO"; then :
21935 ac_cv_lib_des_des_cbc_encrypt
=yes
21937 ac_cv_lib_des_des_cbc_encrypt
=no
21939 rm -f core conftest.err conftest.
$ac_objext \
21940 conftest
$ac_exeext conftest.
$ac_ext
21941 LIBS
=$ac_check_lib_save_LIBS
21943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
21944 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
21945 if test "x$ac_cv_lib_des_des_cbc_encrypt" = x
""yes; then :
21951 if test $have_des = yes; then
21953 LIBS
="$DESLIB $LIBS"
21955 $as_echo "#define HAVE_LIBDES 1" >>confdefs.h
21959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5
21960 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
21961 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then :
21962 $as_echo_n "(cached) " >&6
21964 ac_check_lib_save_LIBS
=$LIBS
21965 LIBS
="-lkrb4 $LIBS"
21966 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21967 /* end confdefs.h. */
21969 /* Override any GCC internal prototype to avoid an error.
21970 Use char because int might match the return type of a GCC
21971 builtin and then its argument prototype would still apply. */
21975 char krb_get_cred ();
21979 return krb_get_cred ();
21984 if ac_fn_c_try_link
"$LINENO"; then :
21985 ac_cv_lib_krb4_krb_get_cred
=yes
21987 ac_cv_lib_krb4_krb_get_cred
=no
21989 rm -f core conftest.err conftest.
$ac_objext \
21990 conftest
$ac_exeext conftest.
$ac_ext
21991 LIBS
=$ac_check_lib_save_LIBS
21993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5
21994 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
21995 if test "x$ac_cv_lib_krb4_krb_get_cred" = x
""yes; then :
22001 if test $have_krb4 = yes; then
22003 LIBS
="$KRB4LIB $LIBS"
22005 $as_echo "#define HAVE_LIBKRB4 1" >>confdefs.h
22008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5
22009 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
22010 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then :
22011 $as_echo_n "(cached) " >&6
22013 ac_check_lib_save_LIBS
=$LIBS
22015 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22016 /* end confdefs.h. */
22018 /* Override any GCC internal prototype to avoid an error.
22019 Use char because int might match the return type of a GCC
22020 builtin and then its argument prototype would still apply. */
22024 char krb_get_cred ();
22028 return krb_get_cred ();
22033 if ac_fn_c_try_link
"$LINENO"; then :
22034 ac_cv_lib_krb_krb_get_cred
=yes
22036 ac_cv_lib_krb_krb_get_cred
=no
22038 rm -f core conftest.err conftest.
$ac_objext \
22039 conftest
$ac_exeext conftest.
$ac_ext
22040 LIBS
=$ac_check_lib_save_LIBS
22042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5
22043 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
22044 if test "x$ac_cv_lib_krb_krb_get_cred" = x
""yes; then :
22050 if test $have_krb = yes; then
22052 LIBS
="$KRB4LIB $LIBS"
22054 $as_echo "#define HAVE_LIBKRB 1" >>confdefs.h
22060 if test "${with_kerberos5}" != no
; then
22061 for ac_header
in krb5.h
22063 ac_fn_c_check_header_mongrel
"$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
22064 if test "x$ac_cv_header_krb5_h" = x
""yes; then :
22065 cat >>confdefs.h
<<_ACEOF
22066 #define HAVE_KRB5_H 1
22068 ac_fn_c_check_member
"$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h>
22070 if test "x$ac_cv_member_krb5_error_text" = x
""yes; then :
22072 cat >>confdefs.h
<<_ACEOF
22073 #define HAVE_KRB5_ERROR_TEXT 1
22078 ac_fn_c_check_member
"$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h>
22080 if test "x$ac_cv_member_krb5_error_e_text" = x
""yes; then :
22082 cat >>confdefs.h
<<_ACEOF
22083 #define HAVE_KRB5_ERROR_E_TEXT 1
22094 for ac_header
in des.h
22096 ac_fn_c_check_header_mongrel
"$LINENO" "des.h" "ac_cv_header_des_h" "$ac_includes_default"
22097 if test "x$ac_cv_header_des_h" = x
""yes; then :
22098 cat >>confdefs.h
<<_ACEOF
22099 #define HAVE_DES_H 1
22103 for ac_header
in kerberosIV
/des.h
22105 ac_fn_c_check_header_mongrel
"$LINENO" "kerberosIV/des.h" "ac_cv_header_kerberosIV_des_h" "$ac_includes_default"
22106 if test "x$ac_cv_header_kerberosIV_des_h" = x
""yes; then :
22107 cat >>confdefs.h
<<_ACEOF
22108 #define HAVE_KERBEROSIV_DES_H 1
22112 for ac_header
in kerberos
/des.h
22114 ac_fn_c_check_header_mongrel
"$LINENO" "kerberos/des.h" "ac_cv_header_kerberos_des_h" "$ac_includes_default"
22115 if test "x$ac_cv_header_kerberos_des_h" = x
""yes; then :
22116 cat >>confdefs.h
<<_ACEOF
22117 #define HAVE_KERBEROS_DES_H 1
22132 for ac_header
in krb.h
22134 ac_fn_c_check_header_mongrel
"$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
22135 if test "x$ac_cv_header_krb_h" = x
""yes; then :
22136 cat >>confdefs.h
<<_ACEOF
22137 #define HAVE_KRB_H 1
22141 for ac_header
in kerberosIV
/krb.h
22143 ac_fn_c_check_header_mongrel
"$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default"
22144 if test "x$ac_cv_header_kerberosIV_krb_h" = x
""yes; then :
22145 cat >>confdefs.h
<<_ACEOF
22146 #define HAVE_KERBEROSIV_KRB_H 1
22150 for ac_header
in kerberos
/krb.h
22152 ac_fn_c_check_header_mongrel
"$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default"
22153 if test "x$ac_cv_header_kerberos_krb_h" = x
""yes; then :
22154 cat >>confdefs.h
<<_ACEOF
22155 #define HAVE_KERBEROS_KRB_H 1
22171 for ac_header
in com_err.h
22173 ac_fn_c_check_header_mongrel
"$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default"
22174 if test "x$ac_cv_header_com_err_h" = x
""yes; then :
22175 cat >>confdefs.h
<<_ACEOF
22176 #define HAVE_COM_ERR_H 1
22191 for ac_func
in tzset
22193 ac_fn_c_check_func
"$LINENO" "tzset" "ac_cv_func_tzset"
22194 if test "x$ac_cv_func_tzset" = x
""yes; then :
22195 cat >>confdefs.h
<<_ACEOF
22196 #define HAVE_TZSET 1
22202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5
22203 $as_echo_n "checking whether localtime caches TZ... " >&6; }
22204 if test "${emacs_cv_localtime_cache+set}" = set; then :
22205 $as_echo_n "(cached) " >&6
22207 if test x
$ac_cv_func_tzset = xyes
; then
22208 if test "$cross_compiling" = yes; then :
22209 # If we have tzset, assume the worst when cross-compiling.
22210 emacs_cv_localtime_cache
=yes
22212 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22213 /* end confdefs.h. */
22215 char TZ_GMT0[] = "TZ=GMT0";
22216 char TZ_PST8[] = "TZ=PST8";
22219 time_t now = time ((time_t *) 0);
22220 int hour_GMT0, hour_unset;
22221 if (putenv (TZ_GMT0) != 0)
22223 hour_GMT0 = localtime (&now)->tm_hour;
22225 hour_unset = localtime (&now)->tm_hour;
22226 if (putenv (TZ_PST8) != 0)
22228 if (localtime (&now)->tm_hour == hour_GMT0)
22231 if (localtime (&now)->tm_hour != hour_unset)
22236 if ac_fn_c_try_run
"$LINENO"; then :
22237 emacs_cv_localtime_cache
=no
22239 emacs_cv_localtime_cache
=yes
22241 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22242 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22246 # If we lack tzset, report that localtime does not cache TZ,
22247 # since we can't invalidate the cache if we don't have tzset.
22248 emacs_cv_localtime_cache
=no
22251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5
22252 $as_echo "$emacs_cv_localtime_cache" >&6; }
22253 if test $emacs_cv_localtime_cache = yes; then
22255 $as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h
22260 ac_fn_c_check_func
"$LINENO" "socket" "ac_cv_func_socket"
22261 if test "x$ac_cv_func_socket" = x
""yes; then :
22267 if test $ok_so_far = yes; then
22268 ac_fn_c_check_header_mongrel
"$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
22269 if test "x$ac_cv_header_netinet_in_h" = x
""yes; then :
22277 if test $ok_so_far = yes; then
22278 ac_fn_c_check_header_mongrel
"$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
22279 if test "x$ac_cv_header_arpa_inet_h" = x
""yes; then :
22287 if test $ok_so_far = yes; then
22289 $as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h
22293 if test -f /usr
/lpp
/X11
/bin
/smt.exp
; then
22295 $as_echo "#define HAVE_AIX_SMT_EXP 1" >>confdefs.h
22299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports dynamic ptys" >&5
22300 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
22301 if test -d /dev
/pts
&& ls -d /dev
/ptmx
> /dev
/null
2>&1 ; then
22302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22303 $as_echo "yes" >&6; }
22305 $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
22308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22309 $as_echo "no" >&6; }
22312 for ac_header
in vfork.h
22314 ac_fn_c_check_header_mongrel
"$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
22315 if test "x$ac_cv_header_vfork_h" = x
""yes; then :
22316 cat >>confdefs.h
<<_ACEOF
22317 #define HAVE_VFORK_H 1
22324 for ac_func
in fork vfork
22326 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22327 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
22328 eval as_val
=\$
$as_ac_var
22329 if test "x$as_val" = x
""yes; then :
22330 cat >>confdefs.h
<<_ACEOF
22331 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22337 if test "x$ac_cv_func_fork" = xyes
; then
22338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
22339 $as_echo_n "checking for working fork... " >&6; }
22340 if test "${ac_cv_func_fork_works+set}" = set; then :
22341 $as_echo_n "(cached) " >&6
22343 if test "$cross_compiling" = yes; then :
22344 ac_cv_func_fork_works
=cross
22346 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22347 /* end confdefs.h. */
22348 $ac_includes_default
22353 /* By Ruediger Kuhlmann. */
22354 return fork () < 0;
22360 if ac_fn_c_try_run
"$LINENO"; then :
22361 ac_cv_func_fork_works
=yes
22363 ac_cv_func_fork_works
=no
22365 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22366 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
22371 $as_echo "$ac_cv_func_fork_works" >&6; }
22374 ac_cv_func_fork_works
=$ac_cv_func_fork
22376 if test "x$ac_cv_func_fork_works" = xcross
; then
22378 *-*-amigaos* |
*-*-msdosdjgpp*)
22379 # Override, as these systems have only a dummy fork() stub
22380 ac_cv_func_fork_works
=no
22383 ac_cv_func_fork_works
=yes
22386 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
22387 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
22389 ac_cv_func_vfork_works
=$ac_cv_func_vfork
22390 if test "x$ac_cv_func_vfork" = xyes
; then
22391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
22392 $as_echo_n "checking for working vfork... " >&6; }
22393 if test "${ac_cv_func_vfork_works+set}" = set; then :
22394 $as_echo_n "(cached) " >&6
22396 if test "$cross_compiling" = yes; then :
22397 ac_cv_func_vfork_works
=cross
22399 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22400 /* end confdefs.h. */
22401 /* Thanks to Paul Eggert for this test. */
22402 $ac_includes_default
22403 #include <sys/wait.h>
22404 #ifdef HAVE_VFORK_H
22405 # include <vfork.h>
22407 /* On some sparc systems, changes by the child to local and incoming
22408 argument registers are propagated back to the parent. The compiler
22409 is told about this with #include <vfork.h>, but some compilers
22410 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
22411 static variable whose address is put into a register that is
22412 clobbered by the vfork. */
22415 sparc_address_test (int arg)
22417 sparc_address_test (arg) int arg;
22420 static pid_t child;
22438 pid_t parent = getpid ();
22441 sparc_address_test (0);
22446 /* Here is another test for sparc vfork register problems. This
22447 test uses lots of local variables, at least as many local
22448 variables as main has allocated so far including compiler
22449 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
22450 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
22451 reuse the register of parent for one of the local variables,
22452 since it will think that parent can't possibly be used any more
22453 in this routine. Assigning to the local variable will thus
22454 munge parent in the parent process. */
22456 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
22457 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
22458 /* Convince the compiler that p..p7 are live; otherwise, it might
22459 use the same hardware register for all 8 local variables. */
22460 if (p != p1 || p != p2 || p != p3 || p != p4
22461 || p != p5 || p != p6 || p != p7)
22464 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
22465 from child file descriptors. If the child closes a descriptor
22466 before it execs or exits, this munges the parent's descriptor
22467 as well. Test for this by closing stdout in the child. */
22468 _exit(close(fileno(stdout)) != 0);
22473 while (wait(&status) != child)
22476 /* Was there some problem with vforking? */
22479 /* Did the child fail? (This shouldn't happen.) */
22482 /* Did the vfork/compiler bug occur? */
22483 || parent != getpid()
22485 /* Did the file descriptor bug occur? */
22486 || fstat(fileno(stdout), &st) != 0
22491 if ac_fn_c_try_run
"$LINENO"; then :
22492 ac_cv_func_vfork_works
=yes
22494 ac_cv_func_vfork_works
=no
22496 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22497 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
22502 $as_echo "$ac_cv_func_vfork_works" >&6; }
22505 if test "x$ac_cv_func_fork_works" = xcross
; then
22506 ac_cv_func_vfork_works
=$ac_cv_func_vfork
22507 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
22508 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
22511 if test "x$ac_cv_func_vfork_works" = xyes
; then
22513 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
22517 $as_echo "#define vfork fork" >>confdefs.h
22520 if test "x$ac_cv_func_fork_works" = xyes
; then
22522 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
22527 for ac_func
in snprintf
22529 ac_fn_c_check_func
"$LINENO" "snprintf" "ac_cv_func_snprintf"
22530 if test "x$ac_cv_func_snprintf" = x
""yes; then :
22531 cat >>confdefs.h
<<_ACEOF
22532 #define HAVE_SNPRINTF 1
22539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
22540 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
22541 if test "${emacs_cv_langinfo_codeset+set}" = set; then :
22542 $as_echo_n "(cached) " >&6
22544 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22545 /* end confdefs.h. */
22546 #include <langinfo.h>
22550 char* cs = nl_langinfo(CODESET);
22555 if ac_fn_c_try_link
"$LINENO"; then :
22556 emacs_cv_langinfo_codeset
=yes
22558 emacs_cv_langinfo_codeset
=no
22560 rm -f core conftest.err conftest.
$ac_objext \
22561 conftest
$ac_exeext conftest.
$ac_ext
22564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5
22565 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
22566 if test $emacs_cv_langinfo_codeset = yes; then
22568 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
22572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
22573 $as_echo_n "checking for mbstate_t... " >&6; }
22574 if test "${ac_cv_type_mbstate_t+set}" = set; then :
22575 $as_echo_n "(cached) " >&6
22577 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22578 /* end confdefs.h. */
22579 $ac_includes_default
22580 # include <wchar.h>
22584 mbstate_t x; return sizeof x;
22589 if ac_fn_c_try_compile
"$LINENO"; then :
22590 ac_cv_type_mbstate_t
=yes
22592 ac_cv_type_mbstate_t
=no
22594 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
22597 $as_echo "$ac_cv_type_mbstate_t" >&6; }
22598 if test $ac_cv_type_mbstate_t = yes; then
22600 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
22604 $as_echo "#define mbstate_t int" >>confdefs.h
22608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5
22609 $as_echo_n "checking for C restricted array declarations... " >&6; }
22610 if test "${emacs_cv_c_restrict_arr+set}" = set; then :
22611 $as_echo_n "(cached) " >&6
22613 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22614 /* end confdefs.h. */
22615 void fred (int x[__restrict]);
22624 if ac_fn_c_try_compile
"$LINENO"; then :
22625 emacs_cv_c_restrict_arr
=yes
22627 emacs_cv_c_restrict_arr
=no
22629 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5
22632 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
22633 if test "$emacs_cv_c_restrict_arr" = yes; then
22635 $as_echo "#define __restrict_arr __restrict" >>confdefs.h
22641 darwin | gnu | hpux
* |
*bsd
)
22643 $as_echo "#define NO_TERMIO 1" >>confdefs.h
22649 hpux
* | irix6-5 | openbsd | sol2
* | unixware
)
22651 $as_echo "#define BROKEN_SIGIO 1" >>confdefs.h
22659 $as_echo "#define HAVE_PROCFS 1" >>confdefs.h
22665 gnu-kfreebsd
) opsysfile
="s/gnu-linux.h" ;;
22669 $as_echo "#define BROKEN_SA_RESTART 1" >>confdefs.h
22672 $as_echo "#define USG_SUBTTY_WORKS 1" >>confdefs.h
22675 opsysfile
="s/hpux10-20.h"
22678 openbsd
) opsysfile
="s/netbsd.h" ;;
22682 $as_echo "#define _STRUCTURED_PROC 1" >>confdefs.h
22684 opsysfile
="s/sol2-6.h"
22688 # Set up the CFLAGS for real compilation, so we can substitute it.
22689 CFLAGS
="$REAL_CFLAGS"
22690 CPPFLAGS
="$REAL_CPPFLAGS"
22692 ## Hack to detect a buggy GCC version.
22693 if test "x$GCC" = xyes \
22694 && test x
"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
22695 && test x
"`echo $CFLAGS | grep '\-O[23]'`" != x \
22696 && test x
"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x
; then
22697 as_fn_error
"GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." "$LINENO" 5
22700 version
=$PACKAGE_VERSION
22702 ### Specify what sort of things we'll be editing into Makefile and config.h.
22703 ### Use configuration here uncanonicalized to avoid exceeding size limits.
22729 ## FIXME? Nothing uses @LD_SWITCH_X_SITE@.
22730 ## src/Makefile.in did add LD_SWITCH_X_SITE (as a cpp define) to the
22731 ## end of LIBX_BASE, but nothing ever set it.
22736 ## Used in lwlib/Makefile.in.
22738 if test -n "${opsysfile}"; then
22739 S_FILE
="\$(srcdir)/${opsysfile}"
22752 cat >>confdefs.h
<<_ACEOF
22753 #define EMACS_CONFIGURATION "${canonical}"
22757 cat >>confdefs.h
<<_ACEOF
22758 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
22761 if test -n "$opsysfile"; then
22763 cat >>confdefs.h
<<_ACEOF
22764 #define config_opsysfile "${opsysfile}"
22772 if test "${HAVE_X_WINDOWS}" = "yes" ; then
22774 $as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h
22777 XOBJ
="xterm.o xfns.o xselect.o xrdb.o fontset.o xsmfns.o fringe.o image.o xsettings.o xgselect.o"
22779 if test "$HAVE_XFT" = "yes"; then
22780 FONT_OBJ
="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
22781 elif test "$HAVE_FREETYPE" = "yes"; then
22782 FONT_OBJ
="$FONT_OBJ ftfont.o ftxfont.o"
22792 if test "${USE_X_TOOLKIT}" != "none" ; then
22793 WIDGET_OBJ
=widget.o
22795 $as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h
22797 if test "${USE_X_TOOLKIT}" = "LUCID"; then
22799 $as_echo "#define USE_LUCID 1" >>confdefs.h
22801 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
22803 $as_echo "#define USE_MOTIF 1" >>confdefs.h
22808 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
22809 MOTIF_LIBW
="$MOTIF_LIBW -lXpm"
22813 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
22814 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
22815 MOTIF_LIBW
="MOTIF_LIBW -lXimp"
22819 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
22820 MOTIF_LIBW
="$MOTIF_LIBW -li18n"
22823 MOTIF_LIBW
="$MOTIF_LIBW $LIBXP"
22829 case "$USE_X_TOOLKIT" in
22830 MOTIF
) TOOLKIT_LIBW
="$MOTIF_LIBW" ;;
22831 LUCID
) TOOLKIT_LIBW
="$LUCID_LIBW" ;;
22832 none
) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW
="$GTK_LIBS" ;;
22836 if test "$USE_X_TOOLKIT" = "none"; then
22837 LIBXT_OTHER
="\$(LIBXSM)"
22838 OLDXMENU_TARGET
="really-oldXMenu"
22840 LIBXT_OTHER
="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext"
22841 OLDXMENU_TARGET
="really-lwlib"
22845 ## The X Menu stuff is present in the X10 distribution, but missing
22846 ## from X11. If we have X10, just use the installed library;
22847 ## otherwise, use our own copy.
22848 if test "${HAVE_X11}" = "yes" ; then
22850 $as_echo "#define HAVE_X11 1" >>confdefs.h
22853 if test "$USE_X_TOOLKIT" = "none"; then
22854 OLDXMENU
="\${oldXMenudir}/libXMenu11.a"
22856 OLDXMENU
="\${lwlibdir}/liblw.a"
22858 LIBXMENU
="\$(OLDXMENU)"
22859 LIBX_OTHER
="\$(LIBXT) \$(LIBX_EXTRA)"
22860 OLDXMENU_DEPS
="\${OLDXMENU} ../src/\${OLDXMENU}"
22862 ## For a syntactically valid Makefile; not actually used for anything.
22863 ## See comments in src/Makefile.in.
22865 ## FIXME This case (!HAVE_X11 && HAVE_X_WINDOWS) is no longer possible(?).
22866 if test "${HAVE_X_WINDOWS}" = "yes"; then
22875 if test "$HAVE_GTK" = "yes" ||
test "$HAVE_MENUS" != "yes"; then
22888 if test "${HAVE_MENUS}" = "yes" ; then
22890 $as_echo "#define HAVE_MENUS 1" >>confdefs.h
22894 if test "${GNU_MALLOC}" = "yes" ; then
22896 $as_echo "#define GNU_MALLOC 1" >>confdefs.h
22901 if test "${REL_ALLOC}" = "yes" ; then
22903 $as_echo "#define REL_ALLOC 1" >>confdefs.h
22906 test "$system_malloc" != "yes" && RALLOC_OBJ
=ralloc.o
22910 if test "$opsys" = "cygwin"; then
22911 CYGWIN_OBJ
="sheap.o"
22912 ## Cygwin differs because of its unexec().
22914 POST_ALLOC_OBJ
=lastfile.o
22917 PRE_ALLOC_OBJ
=lastfile.o
22925 aix4-2
) LD_SWITCH_SYSTEM_TEMACS
="-Wl,-bnodelcsect" ;;
22928 ## The -headerpad option tells ld (see man page) to leave room at the
22929 ## end of the header for adding load commands. Needed for dumping.
22930 ## 0x690 is the total size of 30 segment load commands (at 56
22931 ## each); under Cocoa 31 commands are required.
22932 if test "$HAVE_NS" = "yes"; then
22933 libs_nsgui
="-framework AppKit"
22934 headerpad_extra
=6C8
22937 headerpad_extra
=690
22939 LD_SWITCH_SYSTEM_TEMACS
="-fno-pie -prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra"
22941 ## This is here because src/Makefile.in did some extra fiddling around
22942 ## with LD_SWITCH_SYSTEM. The cpp logic was:
22943 ## #ifndef LD_SWITCH_SYSTEM
22944 ## #if !defined (__GNUC__) && ((defined (BSD_SYSTEM) && !defined (COFF)))
22945 ## Since all the *bsds define LD_SWITCH_SYSTEM, this simplifies to:
22946 ## not using gcc, darwin.
22947 ## Because this was done in src/Makefile.in, the resulting part of
22948 ## LD_SWITCH_SYSTEM was not used in configure (ie, in ac_link).
22949 ## It therefore seems cleaner to put this in LD_SWITCH_SYSTEM_TEMACS,
22950 ## rather than LD_SWITCH_SYSTEM.
22951 test "x$LD_SWITCH_SYSTEM" = "x" && test "x$GCC" != "xyes" && \
22952 LD_SWITCH_SYSTEM_TEMACS
="-X $LD_SWITCH_SYSTEM_TEMACS"
22955 ## LD_SWITCH_X_SITE_RPATH is a -rpath option saying where to
22956 ## find X at run-time.
22957 ## When handled by cpp, this was in LD_SWITCH_SYSTEM. However, at the
22958 ## point where configure sourced the s/*.h file, LD_SWITCH_X_SITE_RPATH
22959 ## had not yet been defined and was expanded to null. Hence LD_SWITCH_SYSTEM
22960 ## had different values in configure (in ac_link) and src/Makefile.in.
22961 ## It seems clearer therefore to put this piece in LD_SWITCH_SYSTEM_TEMACS.
22962 gnu
*) LD_SWITCH_SYSTEM_TEMACS
="\$(LD_SWITCH_X_SITE_RPATH)" ;;
22964 *) LD_SWITCH_SYSTEM_TEMACS
= ;;
22967 if test "$NS_IMPL_GNUSTEP" = "yes"; then
22968 LD_SWITCH_SYSTEM_TEMACS
="${LD_SWITCH_SYSTEM_TEMACS} -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES} -lgnustep-gui -lgnustep-base -lobjc -lpthread"
22977 ## gnu: GNU needs its own crt0.
22978 aix4-2|cygwin|darwin|gnu|hpux
*|irix6-5|sol2
*|unixware
) ORDINARY_LINK
=yes ;;
22980 ## On post 1.3 releases of NetBSD, gcc -nostdlib also clears the
22981 ## library search parth, i.e. it won't search /usr/lib for libc and
22982 ## friends. Using -nostartfiles instead avoids this problem, and
22983 ## will also work on earlier NetBSD releases.
22984 netbsd|openbsd
) LD_FIRSTFLAG
="-nostartfiles" ;;
22986 ## powerpc*: NAKAJI Hiroyuki <nakaji@tutrp.tut.ac.jp> says
22987 ## MkLinux/LinuxPPC needs this.
22988 ## s390x-* only supports opsys = gnu-linux so it can be added here.
22990 case "$canonical" in
22991 powerpc
*|s390x-
*) LD_FIRSTFLAG
="-nostdlib" ;;
22997 if test "x$ORDINARY_LINK" = "xyes"; then
23001 $as_echo "#define ORDINARY_LINK 1" >>confdefs.h
23004 ## The system files defining neither ORDINARY_LINK nor LD_FIRSTFLAG are:
23005 ## freebsd, gnu-* not on powerpc*|s390x*.
23006 elif test "x$GCC" = "xyes" && test "x$LD_FIRSTFLAG" = "x"; then
23008 ## Versions of GCC >= 2.0 put their library, libgcc.a, in obscure
23009 ## places that are difficult to figure out at make time. Fortunately,
23010 ## these same versions allow you to pass arbitrary flags on to the
23011 ## linker, so there is no reason not to use it as a linker.
23013 ## Well, it is not quite perfect. The "-nostdlib" keeps GCC from
23014 ## searching for libraries in its internal directories, so we have to
23015 ## ask GCC explicitly where to find libgcc.a (LIB_GCC below).
23016 LD_FIRSTFLAG
="-nostdlib"
23019 ## FIXME? What setting of EDIT_LDFLAGS should this have?
23020 test "$NS_IMPL_GNUSTEP" = "yes" && LD_FIRSTFLAG
="-rdynamic"
23025 ## FIXME? The logic here is not precisely the same as that above.
23026 ## There is no check here for a pre-defined LD_FIRSTFLAG.
23027 ## Should we only be setting LIB_GCC if LD ~ -nostdlib?
23029 if test "x$GCC" = "xyes" && test "x$ORDINARY_LINK" != "xyes"; then
23032 freebsd|netbsd|openbsd
) LIB_GCC
= ;;
23035 ## armin76@gentoo.org reported that the lgcc_s flag is necessary to
23036 ## build on ARM EABI under GNU/Linux. (Bug#5518)
23042 ## FIXME? s/gnu-linux.h used to define LIB_GCC as below, then
23043 ## immediately undefine it again and redefine it to empty.
23044 ## Was the C_SWITCH_X_SITE part really necessary?
23045 ## LIB_GCC=`$CC $C_SWITCH_X_SITE -print-libgcc-file-name`
23051 ## Ask GCC where to find libgcc.a.
23052 *) LIB_GCC
=`$CC -print-libgcc-file-name 2> /dev/null` ;;
23057 ## If we're using X11/GNUstep, define some consequences.
23058 if test "$HAVE_X_WINDOWS" = "yes" ||
test "$HAVE_NS" = "yes"; then
23060 $as_echo "#define HAVE_WINDOW_SYSTEM 1" >>confdefs.h
23063 $as_echo "#define HAVE_MOUSE 1" >>confdefs.h
23070 #### Report on what we decided to do.
23071 #### Report GTK as a toolkit, even if it doesn't use Xt.
23072 #### It makes printing result more understandable as using GTK sets
23073 #### toolkit_scroll_bars to yes by default.
23074 if test "${HAVE_GTK}" = "yes"; then
23079 Configured for \`${canonical}'.
23081 Where should the build process find the source code? ${srcdir}
23082 What operating system file should Emacs use? ${opsysfile-none}
23083 What compiler should emacs be built with? ${CC} ${CFLAGS}
23084 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
23085 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
23086 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
23087 What window system should Emacs use? ${window_system}
23088 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
23090 if test -n "${x_includes}"; then
23091 echo " Where do we find X Windows header files? ${x_includes}"
23093 echo " Where do we find X Windows header files? Standard dirs"
23095 if test -n "${x_libraries}"; then
23096 echo " Where do we find X Windows libraries? ${x_libraries}"
23098 echo " Where do we find X Windows libraries? Standard dirs"
23101 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
23102 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
23103 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
23104 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
23105 echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
23106 echo " Does Emacs use -lpng? ${HAVE_PNG}"
23107 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
23108 echo " Does Emacs use imagemagick? ${HAVE_IMAGEMAGICK}"
23110 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
23111 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
23112 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
23113 echo " Does Emacs use GSettings? ${HAVE_GSETTINGS}"
23114 echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
23115 echo " Does Emacs use -lgnutls? ${HAVE_GNUTLS}"
23116 echo " Does Emacs use -lxml2? ${HAVE_LIBXML2}"
23118 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
23119 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
23120 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
23121 echo " Does Emacs use -lxft? ${HAVE_XFT}"
23123 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
23126 if test -n "${EMACSDATA}"; then
23127 echo " Environment variable EMACSDATA set to: $EMACSDATA"
23129 if test -n "${EMACSDOC}"; then
23130 echo " Environment variable EMACSDOC set to: $EMACSDOC"
23135 if test "$HAVE_NS" = "yes"; then
23137 echo "You must run \"${MAKE-make} install\" in order to test the built application.
23138 The installed application will go to nextstep/Emacs.app and can be
23139 run or moved from there."
23140 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
23141 echo "The application will be fully self-contained."
23143 echo "The lisp resources for the application will be installed under ${prefix}.
23144 You may need to run \"${MAKE-make} install\" with sudo. The application will fail
23145 to run if these resources are not installed."
23150 if test "${opsys}" = "cygwin"; then
23152 1.5.
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: building Emacs on Cygwin 1.5 is not supported." >&5
23153 $as_echo "$as_me: WARNING: building Emacs on Cygwin 1.5 is not supported." >&2;}
23159 # Remove any trailing slashes in these variables.
23160 test "${prefix}" != NONE
&&
23161 prefix
=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
23162 test "${exec_prefix}" != NONE
&&
23163 exec_prefix
=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
23165 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"
23167 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"
23170 opt_makefile
=test
/automated
/Makefile
23172 if test -f $srcdir/${opt_makefile}.
in; then
23173 SUBDIR_MAKEFILES
="$SUBDIR_MAKEFILES $opt_makefile"
23174 ac_config_files
="$ac_config_files test/automated/Makefile"
23179 opt_makefile
=admin
/unidata
/Makefile
23181 if test -f $srcdir/${opt_makefile}.
in; then
23182 SUBDIR_MAKEFILES
="$SUBDIR_MAKEFILES $opt_makefile"
23183 ac_config_files
="$ac_config_files admin/unidata/Makefile"
23188 SUBDIR_MAKEFILES_IN
=`echo " ${SUBDIR_MAKEFILES}" | sed -e 's| | $(srcdir)/|g' -e 's|Makefile|Makefile.in|g'`
23192 ac_config_commands
="$ac_config_commands mkdirs"
23195 ac_config_commands
="$ac_config_commands epaths"
23198 ac_config_commands
="$ac_config_commands gdbinit"
23201 cat >confcache
<<\_ACEOF
23202 # This file is a shell script that caches the results of configure
23203 # tests run on this system so they can be shared between configure
23204 # scripts and configure runs, see configure's option --config-cache.
23205 # It is not useful on other systems. If it contains results you don't
23206 # want to keep, you may remove or edit it.
23208 # config.status only pays attention to the cache file if you give it
23209 # the --recheck option to rerun configure.
23211 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23212 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23213 # following values.
23217 # The following way of writing the cache mishandles newlines in values,
23218 # but we know of no workaround that is simple, portable, and efficient.
23219 # So, we kill variables containing newlines.
23220 # Ultrix sh set writes to stderr and can't be redirected directly,
23221 # and sets the high bit in the cache file unless we assign to the vars.
23223 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
23224 eval ac_val
=\$
$ac_var
23228 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
23229 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
23232 _ | IFS | as_nl
) ;; #(
23233 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
23234 *) { eval $ac_var=; unset $ac_var;} ;;
23240 case $as_nl`(ac_space=' '; set) 2>&1` in #(
23241 *${as_nl}ac_space
=\
*)
23242 # `set' does not quote correctly, so add quotes: double-quote
23243 # substitution turns \\\\ into \\, and sed turns \\ into \.
23246 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23249 # `set' quotes correctly as required by POSIX, so do not add quotes.
23250 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
23259 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23261 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23263 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
23264 if test -w "$cache_file"; then
23265 test "x$cache_file" != "x/dev/null" &&
23266 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
23267 $as_echo "$as_me: updating cache $cache_file" >&6;}
23268 cat confcache
>$cache_file
23270 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
23271 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
23276 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
23277 # Let make expand exec_prefix.
23278 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
23280 DEFS
=-DHAVE_CONFIG_H
23284 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
23285 # 1. Remove the extension, and $U if already installed.
23286 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
23287 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
23288 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
23289 # will be set to the directory where LIBOBJS objects are built.
23290 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
23291 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
23293 LIBOBJS
=$ac_libobjs
23295 LTLIBOBJS
=$ac_ltlibobjs
23298 if test -n "$EXEEXT"; then
23300 am__EXEEXT_FALSE
='#'
23302 am__EXEEXT_TRUE
='#'
23306 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
23307 as_fn_error
"conditional \"AMDEP\" was never defined.
23308 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23310 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
23311 as_fn_error
"conditional \"am__fastdepCC\" was never defined.
23312 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23314 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
23315 as_fn_error
"conditional \"GL_COND_LIBTOOL\" was never defined.
23316 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23318 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
23319 as_fn_error
"conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
23320 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23323 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
23324 as_fn_error
"conditional \"GL_GENERATE_STDINT_H\" was never defined.
23325 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23327 if test -z "${GL_GENERATE_STDALIGN_H_TRUE}" && test -z "${GL_GENERATE_STDALIGN_H_FALSE}"; then
23328 as_fn_error
"conditional \"GL_GENERATE_STDALIGN_H\" was never defined.
23329 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23331 if test -z "${GL_GENERATE_STDARG_H_TRUE}" && test -z "${GL_GENERATE_STDARG_H_FALSE}"; then
23332 as_fn_error
"conditional \"GL_GENERATE_STDARG_H\" was never defined.
23333 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23335 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
23336 as_fn_error
"conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
23337 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23339 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
23340 as_fn_error
"conditional \"GL_GENERATE_STDDEF_H\" was never defined.
23341 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23343 if test -z "${gl_GNULIB_ENABLED_dosname_TRUE}" && test -z "${gl_GNULIB_ENABLED_dosname_FALSE}"; then
23344 as_fn_error
"conditional \"gl_GNULIB_ENABLED_dosname\" was never defined.
23345 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23347 if test -z "${gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE}" && test -z "${gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE}"; then
23348 as_fn_error
"conditional \"gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36\" was never defined.
23349 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23351 if test -z "${gl_GNULIB_ENABLED_pathmax_TRUE}" && test -z "${gl_GNULIB_ENABLED_pathmax_FALSE}"; then
23352 as_fn_error
"conditional \"gl_GNULIB_ENABLED_pathmax\" was never defined.
23353 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23355 if test -z "${gl_GNULIB_ENABLED_stat_TRUE}" && test -z "${gl_GNULIB_ENABLED_stat_FALSE}"; then
23356 as_fn_error
"conditional \"gl_GNULIB_ENABLED_stat\" was never defined.
23357 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23359 if test -z "${gl_GNULIB_ENABLED_strtoll_TRUE}" && test -z "${gl_GNULIB_ENABLED_strtoll_FALSE}"; then
23360 as_fn_error
"conditional \"gl_GNULIB_ENABLED_strtoll\" was never defined.
23361 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23363 if test -z "${gl_GNULIB_ENABLED_strtoull_TRUE}" && test -z "${gl_GNULIB_ENABLED_strtoull_FALSE}"; then
23364 as_fn_error
"conditional \"gl_GNULIB_ENABLED_strtoull\" was never defined.
23365 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23367 if test -z "${gl_GNULIB_ENABLED_verify_TRUE}" && test -z "${gl_GNULIB_ENABLED_verify_FALSE}"; then
23368 as_fn_error
"conditional \"gl_GNULIB_ENABLED_verify\" was never defined.
23369 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23374 if test -n "$gl_LIBOBJS"; then
23375 # Remove the extension.
23376 sed_drop_objext
='s/\.o$//;s/\.obj$//'
23377 for i
in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
23378 gl_libobjs
="$gl_libobjs $i.$ac_objext"
23379 gl_ltlibobjs
="$gl_ltlibobjs $i.lo"
23382 gl_LIBOBJS
=$gl_libobjs
23384 gl_LTLIBOBJS
=$gl_ltlibobjs
23390 if test -n "$gltests_LIBOBJS"; then
23391 # Remove the extension.
23392 sed_drop_objext
='s/\.o$//;s/\.obj$//'
23393 for i
in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
23394 gltests_libobjs
="$gltests_libobjs $i.$ac_objext"
23395 gltests_ltlibobjs
="$gltests_ltlibobjs $i.lo"
23398 gltests_LIBOBJS
=$gltests_libobjs
23400 gltests_LTLIBOBJS
=$gltests_ltlibobjs
23404 : ${CONFIG_STATUS=./config.status}
23406 ac_clean_files_save
=$ac_clean_files
23407 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
23408 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
23409 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
23411 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
23413 # Generated by $as_me.
23414 # Run this file to recreate the current configuration.
23415 # Compiler output produced by configure, useful for debugging
23416 # configure, is in config.log if it exists.
23419 ac_cs_recheck=false
23422 SHELL=\${CONFIG_SHELL-$SHELL}
23425 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
23426 ## -------------------- ##
23427 ## M4sh Initialization. ##
23428 ## -------------------- ##
23430 # Be more Bourne compatible
23431 DUALCASE
=1; export DUALCASE
# for MKS sh
23432 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
23435 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23436 # is contrary to our usage. Disable this feature.
23437 alias -g '${1+"$@"}'='"$@"'
23438 setopt NO_GLOB_SUBST
23440 case `(set -o) 2>/dev/null` in #(
23452 # Printing a long string crashes Solaris 7 /usr/bin/printf.
23453 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
23454 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
23455 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
23456 # Prefer a ksh shell builtin over an external printf program on Solaris,
23457 # but without wasting forks for bash or zsh.
23458 if test -z "$BASH_VERSION$ZSH_VERSION" \
23459 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
23460 as_echo='print
-r --'
23461 as_echo_n='print
-rn --'
23462 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
23463 as_echo='printf %s
\n'
23464 as_echo_n='printf %s
'
23466 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
23467 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
23468 as_echo_n='/usr
/ucb
/echo -n'
23470 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
23471 as_echo_n_body='eval
23475 expr "X$arg" : "X\\(.*\\)$as_nl";
23476 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
23478 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
23480 export as_echo_n_body
23481 as_echo_n='sh
-c $as_echo_n_body as_echo
'
23483 export as_echo_body
23484 as_echo='sh
-c $as_echo_body as_echo
'
23487 # The user is always right.
23488 if test "${PATH_SEPARATOR+set}" != set; then
23490 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
23491 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
23498 # We need space, tab and new line, in precisely that order. Quoting is
23499 # there to prevent editors from complaining about space-tab.
23500 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
23501 # splitting by setting IFS to empty value.)
23504 # Find who we are. Look in the path if we contain no directory separator.
23506 *[\\/]* ) as_myself=$0 ;;
23507 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23508 for as_dir in $PATH
23511 test -z "$as_dir" && as_dir=.
23512 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23518 # We did not find ourselves, most probably we were run as `sh COMMAND'
23519 # in which case we are not to be found in the path.
23520 if test "x$as_myself" = x
; then
23523 if test ! -f "$as_myself"; then
23524 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
23528 # Unset variables that we do not need and which cause bugs (e.g. in
23529 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
23530 # suppresses any "Segmentation fault" message there. '((' could
23531 # trigger a bug in pdksh 5.2.14.
23532 for as_var
in BASH_ENV ENV MAIL MAILPATH
23533 do eval test x\
${$as_var+set} = xset \
23534 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
23547 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
23550 # as_fn_error ERROR [LINENO LOG_FD]
23551 # ---------------------------------
23552 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
23553 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
23554 # script with status $?, using 1 if that was 0.
23557 as_status
=$?
; test $as_status -eq 0 && as_status
=1
23559 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
23560 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
23562 $as_echo "$as_me: error: $1" >&2
23563 as_fn_exit
$as_status
23567 # as_fn_set_status STATUS
23568 # -----------------------
23569 # Set $? to STATUS, without forking.
23570 as_fn_set_status
()
23573 } # as_fn_set_status
23575 # as_fn_exit STATUS
23576 # -----------------
23577 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
23581 as_fn_set_status
$1
23587 # Portably unset VAR.
23590 { eval $1=; unset $1;}
23592 as_unset
=as_fn_unset
23593 # as_fn_append VAR VALUE
23594 # ----------------------
23595 # Append the text in VALUE to the end of the definition contained in VAR. Take
23596 # advantage of any shell optimizations that allow amortized linear growth over
23597 # repeated appends, instead of the typical quadratic growth present in naive
23599 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
23600 eval 'as_fn_append ()
23611 # as_fn_arith ARG...
23612 # ------------------
23613 # Perform arithmetic evaluation on the ARGs, and store the result in the
23614 # global $as_val. Take advantage of shells that can avoid forks. The arguments
23615 # must be portable across $(()) and expr.
23616 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
23617 eval 'as_fn_arith ()
23624 as_val
=`expr "$@" || test $? -eq 1`
23629 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
23630 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
23636 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
23637 as_basename
=basename
23642 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
23648 as_me
=`$as_basename -- "$0" ||
23649 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23650 X"$0" : 'X\(//\)$' \| \
23651 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
23653 sed '/^.*\/\([^/][^/]*\)\/*$/{
23667 # Avoid depending upon Character Ranges.
23668 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
23669 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23670 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
23671 as_cr_digits
='0123456789'
23672 as_cr_alnum
=$as_cr_Letters$as_cr_digits
23674 ECHO_C
= ECHO_N
= ECHO_T
=
23675 case `echo -n x` in #(((((
23677 case `echo 'xy\c'` in
23678 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
23680 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
23687 rm -f conf$$ conf$$.exe conf$$.
file
23688 if test -d conf$$.dir
; then
23689 rm -f conf$$.dir
/conf$$.
file
23692 mkdir conf$$.dir
2>/dev
/null
23694 if (echo >conf$$.
file) 2>/dev
/null
; then
23695 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
23697 # ... but there are two gotchas:
23698 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23699 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23700 # In both cases, we have to default to `cp -p'.
23701 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
23703 elif ln conf$$.
file conf$$
2>/dev
/null
; then
23711 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
23712 rmdir conf$$.dir
2>/dev
/null
23717 # Create "$as_dir" as a directory, including parents if necessary.
23722 -*) as_dir
=.
/$as_dir;;
23724 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
23728 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
23729 *) as_qdir
=$as_dir;;
23731 as_dirs
="'$as_qdir' $as_dirs"
23732 as_dir
=`$as_dirname -- "$as_dir" ||
23733 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23734 X"$as_dir" : 'X\(//\)[^/]' \| \
23735 X"$as_dir" : 'X\(//\)$' \| \
23736 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23737 $as_echo X"$as_dir" |
23738 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23742 /^X\(\/\/\)[^/].*/{
23755 test -d "$as_dir" && break
23757 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
23758 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
23762 if mkdir
-p .
2>/dev
/null
; then
23763 as_mkdir_p
='mkdir -p "$as_dir"'
23765 test -d .
/-p && rmdir .
/-p
23769 if test -x / >/dev
/null
2>&1; then
23770 as_test_x
='test -x'
23772 if ls -dL / >/dev
/null
2>&1; then
23779 if test -d "$1"; then
23785 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
23786 ???[sx]*):;;*)false;;esac;fi
23790 as_executable_p
=$as_test_x
23792 # Sed expression to map a string onto a valid CPP name.
23793 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23795 # Sed expression to map a string onto a valid variable name.
23796 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23800 ## ----------------------------------- ##
23801 ## Main body of $CONFIG_STATUS script. ##
23802 ## ----------------------------------- ##
23804 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
23806 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
23807 # Save the log message, to keep $0 and so on meaningful, and to
23808 # report actual input values of CONFIG_FILES etc. instead of their
23809 # values after options handling.
23811 This file was extended by emacs $as_me 24.1.50, which was
23812 generated by GNU Autoconf 2.65. Invocation command line was
23814 CONFIG_FILES = $CONFIG_FILES
23815 CONFIG_HEADERS = $CONFIG_HEADERS
23816 CONFIG_LINKS = $CONFIG_LINKS
23817 CONFIG_COMMANDS = $CONFIG_COMMANDS
23820 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23825 case $ac_config_files in *"
23826 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
23829 case $ac_config_headers in *"
23830 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
23834 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23835 # Files that config.status was made for.
23836 config_files="$ac_config_files"
23837 config_headers="$ac_config_headers"
23838 config_commands="$ac_config_commands"
23842 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
23844 \`$as_me' instantiates files and other configuration actions
23845 from templates according to the current configuration. Unless the files
23846 and actions are specified as TAGs, all are instantiated by default.
23848 Usage: $0 [OPTION]... [TAG]...
23850 -h, --help print this help, then exit
23851 -V, --version print version number and configuration settings, then exit
23852 --config print configuration, then exit
23853 -q, --quiet, --silent
23854 do not print progress messages
23855 -d, --debug don't remove temporary files
23856 --recheck update $as_me by reconfiguring in the same conditions
23857 --file=FILE[:TEMPLATE]
23858 instantiate the configuration file FILE
23859 --header=FILE[:TEMPLATE]
23860 instantiate the configuration header FILE
23862 Configuration files:
23865 Configuration headers:
23868 Configuration commands:
23871 Report bugs to the package provider."
23874 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23875 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
23877 emacs config.status 24.1.50
23878 configured by $0, generated by GNU Autoconf 2.65,
23879 with options \\"\$ac_cs_config\\"
23881 Copyright (C) 2009 Free Software Foundation, Inc.
23882 This config.status script is free software; the Free Software Foundation
23883 gives unlimited permission to copy, distribute and modify it."
23890 test -n "\$AWK" || AWK=awk
23893 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
23894 # The default lists apply if the user does not specify any file.
23900 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
23901 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
23912 # Handling of the options.
23913 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
23915 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
23916 $as_echo "$ac_cs_version"; exit ;;
23917 --config |
--confi |
--conf |
--con |
--co |
--c )
23918 $as_echo "$ac_cs_config"; exit ;;
23919 --debug |
--debu |
--deb |
--de |
--d |
-d )
23921 --file |
--fil |
--fi |
--f )
23924 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
23926 as_fn_append CONFIG_FILES
" '$ac_optarg'"
23927 ac_need_defaults
=false
;;
23928 --header |
--heade |
--head |
--hea )
23931 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
23933 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
23934 ac_need_defaults
=false
;;
23936 # Conflict between --help and --header
23937 as_fn_error
"ambiguous option: \`$1'
23938 Try \`$0 --help' for more information.";;
23939 --help |
--hel |
-h )
23940 $as_echo "$ac_cs_usage"; exit ;;
23941 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
23942 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
23945 # This is an error.
23946 -*) as_fn_error
"unrecognized option: \`$1'
23947 Try \`$0 --help' for more information." ;;
23949 *) as_fn_append ac_config_targets
" $1"
23950 ac_need_defaults
=false
;;
23956 ac_configure_extra_args
=
23958 if $ac_cs_silent; then
23960 ac_configure_extra_args
="$ac_configure_extra_args --silent"
23964 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23965 if \$ac_cs_recheck; then
23966 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23968 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
23969 CONFIG_SHELL='$SHELL'
23970 export CONFIG_SHELL
23975 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
23979 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23980 ## Running $as_me. ##
23986 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23990 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
23991 GCC="$GCC" CPPFLAGS="$CPPFLAGS"
23995 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
23997 # Handling of arguments.
23998 for ac_config_target
in $ac_config_targets
24000 case $ac_config_target in
24001 "src/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
24002 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
24003 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
24004 "lib/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/Makefile" ;;
24005 "lib-src/Makefile") CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile" ;;
24006 "oldXMenu/Makefile") CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
24007 "doc/emacs/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/emacs/Makefile" ;;
24008 "doc/misc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/misc/Makefile" ;;
24009 "doc/lispintro/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispintro/Makefile" ;;
24010 "doc/lispref/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispref/Makefile" ;;
24011 "src/Makefile") CONFIG_FILES
="$CONFIG_FILES src/Makefile" ;;
24012 "lwlib/Makefile") CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
24013 "lisp/Makefile") CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
24014 "leim/Makefile") CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
24015 "test/automated/Makefile") CONFIG_FILES
="$CONFIG_FILES test/automated/Makefile" ;;
24016 "admin/unidata/Makefile") CONFIG_FILES
="$CONFIG_FILES admin/unidata/Makefile" ;;
24017 "mkdirs") CONFIG_COMMANDS
="$CONFIG_COMMANDS mkdirs" ;;
24018 "epaths") CONFIG_COMMANDS
="$CONFIG_COMMANDS epaths" ;;
24019 "gdbinit") CONFIG_COMMANDS
="$CONFIG_COMMANDS gdbinit" ;;
24021 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
24026 # If the user did not use the arguments to specify the items to instantiate,
24027 # then the envvar interface is used. Set only those that are not.
24028 # We use the long form for the default assignment because of an extremely
24029 # bizarre bug on SunOS 4.1.3.
24030 if $ac_need_defaults; then
24031 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
24032 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
24033 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
24036 # Have a temporary directory for convenience. Make it in the build tree
24037 # simply because there is no reason against having it here, and in addition,
24038 # creating and moving files from /tmp can sometimes cause problems.
24039 # Hook for its removal unless debugging.
24040 # Note that there is a small window in which the directory will not be cleaned:
24041 # after its creation but before its name has been assigned to `$tmp'.
24045 trap 'exit_status=$?
24046 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
24048 trap 'as_fn_exit 1' 1 2 13 15
24050 # Create a (secure) tmp directory for tmp files.
24053 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
24054 test -n "$tmp" && test -d "$tmp"
24057 tmp
=.
/conf$$
-$RANDOM
24058 (umask 077 && mkdir
"$tmp")
24059 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
24061 # Set up the scripts for CONFIG_FILES section.
24062 # No need to generate them if there are no CONFIG_FILES.
24063 # This happens for instance with `./config.status config.h'.
24064 if test -n "$CONFIG_FILES"; then
24066 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
24067 ac_cs_awk_getline
=:
24068 ac_cs_awk_pipe_init
=
24069 ac_cs_awk_read_file
='
24070 while ((getline aline < (F[key])) > 0)
24073 ac_cs_awk_pipe_fini
=
24075 ac_cs_awk_getline
=false
24076 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
24077 ac_cs_awk_read_file
='
24079 print "cat " F[key] " &&"
24080 '$ac_cs_awk_pipe_init
24081 # The final `:' finishes the AND list.
24082 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
24084 ac_cr
=`echo X | tr X '\015'`
24085 # On cygwin, bash can eat \r inside `` if the user requested igncr.
24086 # But we know of no other shell where ac_cr would be empty at this
24087 # point, so we can use a bashism as a fallback.
24088 if test "x$ac_cr" = x
; then
24089 eval ac_cr
=\$
\'\\r
\'
24091 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
24092 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
24095 ac_cs_awk_cr
=$ac_cr
24098 echo 'BEGIN {' >"$tmp/subs1.awk" &&
24101 # Create commands to substitute file output variables.
24103 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
24104 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
24105 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
24108 } >conf$
$files.sh
&&
24109 . .
/conf$
$files.sh ||
24110 as_fn_error
"could not make $CONFIG_STATUS" "$LINENO" 5
24111 rm -f conf$
$files.sh
24114 echo "cat >conf$$subs.awk <<_ACEOF" &&
24115 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
24117 } >conf$$subs.sh ||
24118 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
24119 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
24121 for ac_last_try in false false false false false :; do
24122 . ./conf$$subs.sh ||
24123 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
24125 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
24126 if test $ac_delim_n = $ac_delim_num; then
24128 elif $ac_last_try; then
24129 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
24131 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
24134 rm -f conf$$subs.sh
24136 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24137 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
24141 s/^/S["/; s
/!.
*/"]=/
24151 s/\(.\{148\}\)..*/\1/
24153 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
24158 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
24165 s/\(.\{148\}\)..*/\1/
24167 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
24171 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
24176 ' <conf$$subs.awk | sed '
24181 ' >>$CONFIG_STATUS || ac_write_fail=1
24182 rm -f conf$$subs.awk
24183 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24185 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
24186 for (key in S) S_is_set[key] = 1
24188 \$ac_cs_awk_pipe_init
24192 nfields = split(line, field, "@
")
24194 len = length(field[1])
24195 for (i = 2; i < nfields; i++) {
24197 keylen = length(key)
24198 if (S_is_set[key]) {
24200 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
24201 len += length(value) + length(field[++i])
24206 if (nfields == 3 && !substed) {
24208 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
24209 \$ac_cs_awk_read_file
24215 \$ac_cs_awk_pipe_fini
24218 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24219 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
24220 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
24223 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
24224 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
24227 # VPATH may cause trouble with some makes, so we remove $(srcdir),
24228 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
24229 # trailing colons and then remove the whole line if VPATH becomes empty
24230 # (actually we leave an empty line to preserve line numbers).
24231 if test "x
$srcdir" = x.; then
24232 ac_vpsub='/^[ ]*VPATH[ ]*=/{
24233 s/:*\$(srcdir):*/:/
24234 s/:*\${srcdir}:*/:/
24236 s/^\([^=]*=[ ]*\):*/\1/
24242 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24243 fi # test -n "$CONFIG_FILES"
24245 # Set up the scripts for CONFIG_HEADERS section.
24246 # No need to generate them if there are no CONFIG_HEADERS.
24247 # This happens for instance with `./config.status Makefile'.
24248 if test -n "$CONFIG_HEADERS"; then
24249 cat >"$tmp/defines.
awk" <<\_ACAWK ||
24253 # Transform confdefs.h into an awk script `defines.awk', embedded as
24254 # here-document in config.status, that substitutes the proper values into
24255 # config.h.in to produce config.h.
24257 # Create a delimiter string that does not exist in confdefs.h, to ease
24258 # handling of long lines.
24260 for ac_last_try in false false :; do
24261 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
24262 if test -z "$ac_t"; then
24264 elif $ac_last_try; then
24265 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
24267 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
24271 # For the awk script, D is an array of macro values keyed by name,
24272 # likewise P contains macro parameters if any. Preserve backslash
24273 # newline sequences.
24275 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
24277 s/.\{148\}/&'"$ac_delim"'/g
24280 s/^[ ]*#[ ]*define[ ][ ]*/ /
24287 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
24289 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
24293 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
24294 D["\
1"]=" \
3\\\\\\n
"\\/p
24296 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
24301 s/.\{148\}/&'"$ac_delim"'/g
24306 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
24309 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
24311 ' <confdefs.h | sed '
24312 s/'"$ac_delim"'/"\\\
24313 "/g' >>$CONFIG_STATUS || ac_write_fail=1
24315 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24316 for (key in D) D_is_set[key] = 1
24319 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
24321 split(line, arg, " ")
24322 if (arg[1] == "#") {
24326 defundef
= substr
(arg
[1], 2)
24329 split(mac1
, mac2
, "(") #)
24331 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
24332 if (D_is_set
[macro
]) {
24333 # Preserve the white space surrounding the "#".
24334 print prefix
"define", macro P
[macro
] D
[macro
]
24337 # Replace #undef with comments. This is necessary, for example,
24338 # in the case of _POSIX_SOURCE, which is predefined and required
24339 # on some systems where configure will not decide to define it.
24340 if (defundef
== "undef") {
24341 print
"/*", prefix defundef
, macro
, "*/"
24349 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
24350 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
24351 fi # test -n "$CONFIG_HEADERS"
24354 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
24359 :[FHLC
]) ac_mode
=$ac_tag; continue;;
24361 case $ac_mode$ac_tag in
24363 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
24364 :[FH
]-) ac_tag
=-:-;;
24365 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
24382 -) ac_f
="$tmp/stdin";;
24383 *) # Look for the file first in the build tree, then in the source tree
24384 # (if the path is not absolute). The absolute path cannot be DOS-style,
24385 # because $ac_f cannot contain `:'.
24389 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
24391 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
24393 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
24394 as_fn_append ac_file_inputs
" '$ac_f'"
24397 # Let's still pretend it is `configure' which instantiates (i.e., don't
24398 # use $as_me), people would be surprised to read:
24399 # /* config.h. Generated by config.status. */
24400 configure_input
='Generated from '`
24401 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
24403 if test x
"$ac_file" != x-
; then
24404 configure_input
="$ac_file. $configure_input"
24405 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
24406 $as_echo "$as_me: creating $ac_file" >&6;}
24408 # Neutralize special characters interpreted by sed in replacement strings.
24409 case $configure_input in #(
24410 *\
&* |
*\|
* |
*\\* )
24411 ac_sed_conf_input
=`$as_echo "$configure_input" |
24412 sed 's/[\\\\&|]/\\\\&/g'`;; #(
24413 *) ac_sed_conf_input
=$configure_input;;
24417 *:-:* |
*:-) cat >"$tmp/stdin" \
24418 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
24423 ac_dir
=`$as_dirname -- "$ac_file" ||
24424 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24425 X"$ac_file" : 'X\(//\)[^/]' \| \
24426 X"$ac_file" : 'X\(//\)$' \| \
24427 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24428 $as_echo X"$ac_file" |
24429 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24433 /^X\(\/\/\)[^/].*/{
24446 as_dir
="$ac_dir"; as_fn_mkdir_p
24450 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
24452 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
24453 # A ".." for each directory in $ac_dir_suffix.
24454 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
24455 case $ac_top_builddir_sub in
24456 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
24457 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
24460 ac_abs_top_builddir
=$ac_pwd
24461 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
24462 # for backward compatibility:
24463 ac_top_builddir
=$ac_top_build_prefix
24466 .
) # We are building in place.
24468 ac_top_srcdir
=$ac_top_builddir_sub
24469 ac_abs_top_srcdir
=$ac_pwd ;;
24470 [\\/]* | ?
:[\\/]* ) # Absolute name.
24471 ac_srcdir
=$srcdir$ac_dir_suffix;
24472 ac_top_srcdir
=$srcdir
24473 ac_abs_top_srcdir
=$srcdir ;;
24474 *) # Relative name.
24475 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
24476 ac_top_srcdir
=$ac_top_build_prefix$srcdir
24477 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
24479 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
24489 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
24490 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
24492 ac_MKDIR_P
=$MKDIR_P
24494 [\\/$
]* | ?
:[\\/]* ) ;;
24495 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
24499 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
24500 # If the template does not know about datarootdir, expand it.
24501 # FIXME: This hack should be removed a few years after 2.60.
24502 ac_datarootdir_hack
=; ac_datarootdir_seen
=
24513 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
24514 *datarootdir
*) ac_datarootdir_seen
=yes;;
24515 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
24516 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
24517 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
24519 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24520 ac_datarootdir_hack='
24521 s&@datadir@&$datadir&g
24522 s&@docdir@&$docdir&g
24523 s&@infodir@&$infodir&g
24524 s&@localedir@&$localedir&g
24525 s&@mandir@&$mandir&g
24526 s&\\\${datarootdir}&$datarootdir&g' ;;
24530 # Neutralize VPATH when `$srcdir' = `.'.
24531 # Shell code in configure.ac might set extrasub.
24532 # FIXME: do we really want to maintain this feature?
24533 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24534 ac_sed_extra="$ac_vpsub
24537 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
24539 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
24540 s|@configure_input@|
$ac_sed_conf_input|
;t t
24541 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
24542 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
24543 s
&@srcdir@
&$ac_srcdir&;t t
24544 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
24545 s
&@top_srcdir@
&$ac_top_srcdir&;t t
24546 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
24547 s
&@builddir@
&$ac_builddir&;t t
24548 s
&@abs_builddir@
&$ac_abs_builddir&;t t
24549 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
24550 s
&@INSTALL@
&$ac_INSTALL&;t t
24551 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
24552 $ac_datarootdir_hack
24554 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
24555 if $ac_cs_awk_getline; then
24556 $AWK -f "$tmp/subs.
awk"
24558 $AWK -f "$tmp/subs.
awk" | $SHELL
24560 || as_fn_error "could not create
$ac_file" "$LINENO" 5
24562 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
24563 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
24564 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
24565 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
24566 which seems to be undefined. Please make sure it is defined." >&5
24567 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
24568 which seems to be undefined. Please make sure it is defined." >&2;}
24572 -) cat "$tmp/out" && rm -f "$tmp/out";;
24573 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
24575 || as_fn_error "could not create $ac_file" "$LINENO" 5
24581 if test x"$ac_file" != x-; then
24583 $as_echo "/* $configure_input */" \
24584 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
24585 } >"$tmp/config.h" \
24586 || as_fn_error "could not create $ac_file" "$LINENO" 5
24587 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
24588 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
24589 $as_echo "$as_me: $ac_file is unchanged" >&6;}
24592 mv "$tmp/config.h" "$ac_file" \
24593 || as_fn_error "could not create $ac_file" "$LINENO" 5
24596 $as_echo "/* $configure_input */" \
24597 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
24598 || as_fn_error "could not create -" "$LINENO" 5
24600 # Compute "$ac_file"'s index
in $config_headers.
24603 for _am_header
in $config_headers :; do
24604 case $_am_header in
24605 $_am_arg |
$_am_arg:* )
24608 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
24611 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
24612 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24613 X"$_am_arg" : 'X\(//\)[^/]' \| \
24614 X"$_am_arg" : 'X\(//\)$' \| \
24615 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
24616 $as_echo X"$_am_arg" |
24617 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24621 /^X\(\/\/\)[^/].*/{
24633 s/.*/./; q'`/stamp-h
$_am_stamp_count
24636 :C
) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
24637 $as_echo "$as_me: executing $ac_file commands" >&6;}
24642 case $ac_file$ac_mode in
24643 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
{
24644 # Autoconf 2.62 quotes --file arguments for eval, but not when files
24645 # are listed without --file. Let's play safe and only enable the eval
24646 # if we detect the quoting.
24647 case $CONFIG_FILES in
24648 *\'*) eval set x
"$CONFIG_FILES" ;;
24649 *) set x
$CONFIG_FILES ;;
24654 # Strip MF so we end up with the name of the file.
24655 mf
=`echo "$mf" | sed -e 's/:.*$//'`
24656 # Check whether this is an Automake generated Makefile or not.
24657 # We used to match only the files named `Makefile.in', but
24658 # some people rename them; so instead we look at the file content.
24659 # Grep'ing the first line is not enough: some people post-process
24660 # each Makefile.in and add a new line on top of each file to say so.
24661 # Grep'ing the whole file is not good either: AIX grep has a line
24662 # limit of 2048, but all sed's we know have understand at least 4000.
24663 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
24664 dirpart
=`$as_dirname -- "$mf" ||
24665 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24666 X"$mf" : 'X\(//\)[^/]' \| \
24667 X"$mf" : 'X\(//\)$' \| \
24668 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
24670 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24674 /^X\(\/\/\)[^/].*/{
24690 # Extract the definition of DEPDIR, am__include, and am__quote
24691 # from the Makefile without running `make'.
24692 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
24693 test -z "$DEPDIR" && continue
24694 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
24695 test -z "am__include" && continue
24696 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
24697 # When using ansi2knr, U may be empty or an underscore; expand it
24698 U
=`sed -n 's/^U = //p' < "$mf"`
24699 # Find all dependency output files, they are included files with
24700 # $(DEPDIR) in their names. We invoke sed twice because it is the
24701 # simplest approach to changing $(DEPDIR) to its actual value in the
24703 for file in `sed -n "
24704 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
24705 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
24706 # Make sure the directory exists.
24707 test -f "$dirpart/$file" && continue
24708 fdir
=`$as_dirname -- "$file" ||
24709 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24710 X"$file" : 'X\(//\)[^/]' \| \
24711 X"$file" : 'X\(//\)$' \| \
24712 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
24713 $as_echo X"$file" |
24714 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24718 /^X\(\/\/\)[^/].*/{
24731 as_dir
=$dirpart/$fdir; as_fn_mkdir_p
24732 # echo "creating $dirpart/$file"
24733 echo '# dummy' > "$dirpart/$file"
24739 for dir
in etc lisp
; do
24740 test -d ${dir} || mkdir
${dir}
24744 echo creating src
/epaths.h
24745 ${MAKE-make} epaths-force
24748 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
24749 echo creating src
/.gdbinit
24750 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
24760 ac_clean_files
=$ac_clean_files_save
24762 test $ac_write_fail = 0 ||
24763 as_fn_error
"write failure creating $CONFIG_STATUS" "$LINENO" 5
24766 # configure is writing to config.log, and then calls config.status.
24767 # config.status does its own redirection, appending to config.log.
24768 # Unfortunately, on DOS this fails, as config.log is still kept open
24769 # by configure, so config.status won't be able to write to it; its
24770 # output is simply discarded. So we exec the FD to /dev/null,
24771 # effectively closing config.log, so it can be properly (re)opened and
24772 # appended to by config.status. When coming back to configure, we
24773 # need to make the FD available again.
24774 if test "$no_create" != yes; then
24776 ac_config_status_args
=
24777 test "$silent" = yes &&
24778 ac_config_status_args
="$ac_config_status_args --quiet"
24780 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
24782 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24783 # would make configure fail if this is the last instruction.
24784 $ac_cs_success || as_fn_exit $?
24786 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
24787 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
24788 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}