2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for GNU make 4.2.1.
5 # Report bugs to <bug-make@gnu.org>.
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
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.
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
149 *v*x* | *x*v* ) as_opts=-vx ;;
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
171 case \`(set -o) 2>/dev/null\` in #(
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
193 exitcode=1; echo positional parameters were not saved.
195 test x\$exitcode = x0 || exit 1
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1"
202 if (eval "$as_required") 2>/dev/null; then :
207 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
212 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
215 test -z "$as_dir" && as_dir=.
219 for as_base in sh bash ksh sh5; do
220 # Try only shells that exist, to save several forks.
221 as_shell=$as_dir/$as_base
222 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
223 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 CONFIG_SHELL=$as_shell as_have_required=yes
225 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
233 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
235 CONFIG_SHELL=$SHELL as_have_required=yes
240 if test "x$CONFIG_SHELL" != x; then :
242 # We cannot yet assume a decent shell, so we have to provide a
243 # neutralization value for shells without unset; and this also
244 # works around shells that cannot unset nonexistent variables.
245 # Preserve -v and -x to the replacement shell.
248 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
250 *v*x* | *x*v* ) as_opts=-vx ;;
255 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256 # Admittedly, this is quite paranoid, since all the known shells bail
257 # out after a failed `exec'.
258 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
262 if test x$as_have_required = xno; then :
263 $as_echo "$0: This script requires a shell more modern than all"
264 $as_echo "$0: the shells that I found on your system."
265 if test x${ZSH_VERSION+set} = xset ; then
266 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
269 $as_echo "$0: Please tell bug-autoconf@gnu.org and bug-make@gnu.org
270 $0: about your system, including any error possibly output
271 $0: before this message. Then install a modern shell, or
272 $0: manually run the script under such a shell if you do
279 SHELL=${CONFIG_SHELL-/bin/sh}
281 # Unset more variables known to interfere with behavior of common tools.
282 CLICOLOR_FORCE= GREP_OPTIONS=
283 unset CLICOLOR_FORCE GREP_OPTIONS
285 ## --------------------- ##
286 ## M4sh Shell Functions. ##
287 ## --------------------- ##
290 # Portably unset VAR.
293 { eval $1=; unset $1;}
297 # as_fn_set_status STATUS
298 # -----------------------
299 # Set $? to STATUS, without forking.
307 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
317 # Create "$as_dir" as a directory, including parents if necessary.
322 -*) as_dir=./$as_dir;;
324 test -d "$as_dir" || eval $as_mkdir_p || {
328 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
331 as_dirs="'$as_qdir' $as_dirs"
332 as_dir=`$as_dirname -- "$as_dir" ||
333 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
334 X"$as_dir" : 'X\(//\)[^/]' \| \
335 X"$as_dir" : 'X\(//\)$' \| \
336 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
337 $as_echo X"$as_dir" |
338 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
355 test -d "$as_dir" && break
357 test -z "$as_dirs" || eval "mkdir $as_dirs"
358 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
363 # as_fn_executable_p FILE
364 # -----------------------
365 # Test if FILE is an executable regular file.
366 as_fn_executable_p ()
368 test -f "$1" && test -x "$1"
369 } # as_fn_executable_p
370 # as_fn_append VAR VALUE
371 # ----------------------
372 # Append the text in VALUE to the end of the definition contained in VAR. Take
373 # advantage of any shell optimizations that allow amortized linear growth over
374 # repeated appends, instead of the typical quadratic growth present in naive
376 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
377 eval 'as_fn_append ()
390 # Perform arithmetic evaluation on the ARGs, and store the result in the
391 # global $as_val. Take advantage of shells that can avoid forks. The arguments
392 # must be portable across $(()) and expr.
393 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
401 as_val=`expr "$@" || test $? -eq 1`
406 # as_fn_error STATUS ERROR [LINENO LOG_FD]
407 # ----------------------------------------
408 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
409 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
410 # script with STATUS, using 1 if that was 0.
413 as_status=$1; test $as_status -eq 0 && as_status=1
415 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
416 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
418 $as_echo "$as_me: error: $2" >&2
419 as_fn_exit $as_status
422 if expr a : '\(a\)' >/dev/null 2>&1 &&
423 test "X`expr 00001 : '.*\(...\)'`" = X001; then
429 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441 as_me=`$as_basename -- "$0" ||
442 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
443 X"$0" : 'X\(//\)$' \| \
444 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
446 sed '/^.*\/\([^/][^/]*\)\/*$/{
460 # Avoid depending upon Character Ranges.
461 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
462 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
463 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
464 as_cr_digits='0123456789'
465 as_cr_alnum=$as_cr_Letters$as_cr_digits
468 as_lineno_1=$LINENO as_lineno_1a=$LINENO
469 as_lineno_2=$LINENO as_lineno_2a=$LINENO
470 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
471 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
472 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
484 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
488 chmod +x "$as_me.lineno" ||
489 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
491 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
492 # already done that, so ensure we don't try to do so again and fall
493 # in an infinite loop. This has already happened in practice.
494 _as_can_reexec=no; export _as_can_reexec
495 # Don't try to exec as it changes $[0], causing all sort of problems
496 # (the dirname of $[0] is not the place where we might find the
497 # original and so on. Autoconf is especially sensitive to this).
499 # Exit status is that of the last command.
503 ECHO_C= ECHO_N= ECHO_T=
504 case `echo -n x` in #(((((
506 case `echo 'xy\c'` in
507 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
509 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
516 rm -f conf$$ conf$$.exe conf$$.file
517 if test -d conf$$.dir; then
518 rm -f conf$$.dir/conf$$.file
521 mkdir conf$$.dir 2>/dev/null
523 if (echo >conf$$.file) 2>/dev/null; then
524 if ln -s conf$$.file conf$$ 2>/dev/null; then
526 # ... but there are two gotchas:
527 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
528 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
529 # In both cases, we have to default to `cp -pR'.
530 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
532 elif ln conf$$.file conf$$ 2>/dev/null; then
540 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
541 rmdir conf$$.dir 2>/dev/null
543 if mkdir -p . 2>/dev/null; then
544 as_mkdir_p='mkdir -p "$as_dir"'
546 test -d ./-p && rmdir ./-p
551 as_executable_p=as_fn_executable_p
553 # Sed expression to map a string onto a valid CPP name.
554 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
556 # Sed expression to map a string onto a valid variable name.
557 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
560 test -n "$DJDIR" || exec 7<&0 </dev/null
564 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
565 # so uname gets run too.
566 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
571 ac_default_prefix=/usr/local
573 ac_config_libobj_dir=.
580 # Identity of this package.
581 PACKAGE_NAME='GNU make'
582 PACKAGE_TARNAME='make'
583 PACKAGE_VERSION='4.2.1'
584 PACKAGE_STRING='GNU make 4.2.1'
585 PACKAGE_BUGREPORT='bug-make@gnu.org'
586 PACKAGE_URL='http://www.gnu.org/software/make/'
588 ac_unique_file="vpath.c"
589 # Factoring default headers for most tests.
590 ac_includes_default="\
592 #ifdef HAVE_SYS_TYPES_H
593 # include <sys/types.h>
595 #ifdef HAVE_SYS_STAT_H
596 # include <sys/stat.h>
602 # ifdef HAVE_STDLIB_H
607 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
612 #ifdef HAVE_STRINGS_H
613 # include <strings.h>
615 #ifdef HAVE_INTTYPES_H
616 # include <inttypes.h>
626 ac_subst_vars='am__EXEEXT_FALSE
659 XGETTEXT_EXTRA_OPTIONS
667 GETTEXT_MACRO_VERSION
714 INSTALL_STRIP_PROGRAM
757 program_transform_name
768 ac_subst_files='MAINT_MAKEFILE'
770 enable_option_checking
772 enable_dependency_tracking
781 enable_case_insensitive_file_system
786 ac_precious_vars='build_alias
802 # Initialize some variables set by options.
804 ac_init_version=false
805 ac_unrecognized_opts=
807 # The variables have the same names as the options, with
808 # dashes changed to underlines.
816 program_transform_name=s,x,x,
824 # Installation directory options.
825 # These are left unexpanded so users can "make install exec_prefix=/foo"
826 # and all the variables that are supposed to be based on exec_prefix
827 # by default will actually change.
828 # Use braces instead of parens because sh, perl, etc. also accept them.
829 # (The list follows the same order as the GNU Coding Standards.)
830 bindir='${exec_prefix}/bin'
831 sbindir='${exec_prefix}/sbin'
832 libexecdir='${exec_prefix}/libexec'
833 datarootdir='${prefix}/share'
834 datadir='${datarootdir}'
835 sysconfdir='${prefix}/etc'
836 sharedstatedir='${prefix}/com'
837 localstatedir='${prefix}/var'
838 runstatedir='${localstatedir}/run'
839 includedir='${prefix}/include'
840 oldincludedir='/usr/include'
841 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
842 infodir='${datarootdir}/info'
847 libdir='${exec_prefix}/lib'
848 localedir='${datarootdir}/locale'
849 mandir='${datarootdir}/man'
855 # If the previous option needs an argument, assign it.
856 if test -n "$ac_prev"; then
857 eval $ac_prev=\$ac_option
863 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
868 # Accept the important Cygnus configure options, so we can diagnose typos.
870 case $ac_dashdash$ac_option in
874 -bindir | --bindir | --bindi | --bind | --bin | --bi)
876 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
879 -build | --build | --buil | --bui | --bu)
880 ac_prev=build_alias ;;
881 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
882 build_alias=$ac_optarg ;;
884 -cache-file | --cache-file | --cache-fil | --cache-fi \
885 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
886 ac_prev=cache_file ;;
887 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
888 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
889 cache_file=$ac_optarg ;;
892 cache_file=config.cache ;;
894 -datadir | --datadir | --datadi | --datad)
896 -datadir=* | --datadir=* | --datadi=* | --datad=*)
897 datadir=$ac_optarg ;;
899 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
900 | --dataroo | --dataro | --datar)
901 ac_prev=datarootdir ;;
902 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
903 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
904 datarootdir=$ac_optarg ;;
906 -disable-* | --disable-*)
907 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
908 # Reject names that are not valid shell variable names.
909 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
910 as_fn_error $? "invalid feature name: $ac_useropt"
911 ac_useropt_orig=$ac_useropt
912 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
913 case $ac_user_opts in
917 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
918 ac_unrecognized_sep=', ';;
920 eval enable_$ac_useropt=no ;;
922 -docdir | --docdir | --docdi | --doc | --do)
924 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
927 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
929 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
932 -enable-* | --enable-*)
933 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
934 # Reject names that are not valid shell variable names.
935 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
936 as_fn_error $? "invalid feature name: $ac_useropt"
937 ac_useropt_orig=$ac_useropt
938 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
939 case $ac_user_opts in
943 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
944 ac_unrecognized_sep=', ';;
946 eval enable_$ac_useropt=\$ac_optarg ;;
948 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
949 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
950 | --exec | --exe | --ex)
951 ac_prev=exec_prefix ;;
952 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
953 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
954 | --exec=* | --exe=* | --ex=*)
955 exec_prefix=$ac_optarg ;;
957 -gas | --gas | --ga | --g)
958 # Obsolete; use --with-gas.
961 -help | --help | --hel | --he | -h)
963 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
964 ac_init_help=recursive ;;
965 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
966 ac_init_help=short ;;
968 -host | --host | --hos | --ho)
969 ac_prev=host_alias ;;
970 -host=* | --host=* | --hos=* | --ho=*)
971 host_alias=$ac_optarg ;;
973 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
975 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
977 htmldir=$ac_optarg ;;
979 -includedir | --includedir | --includedi | --included | --include \
980 | --includ | --inclu | --incl | --inc)
981 ac_prev=includedir ;;
982 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
983 | --includ=* | --inclu=* | --incl=* | --inc=*)
984 includedir=$ac_optarg ;;
986 -infodir | --infodir | --infodi | --infod | --info | --inf)
988 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
989 infodir=$ac_optarg ;;
991 -libdir | --libdir | --libdi | --libd)
993 -libdir=* | --libdir=* | --libdi=* | --libd=*)
996 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
997 | --libexe | --libex | --libe)
998 ac_prev=libexecdir ;;
999 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1000 | --libexe=* | --libex=* | --libe=*)
1001 libexecdir=$ac_optarg ;;
1003 -localedir | --localedir | --localedi | --localed | --locale)
1004 ac_prev=localedir ;;
1005 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1006 localedir=$ac_optarg ;;
1008 -localstatedir | --localstatedir | --localstatedi | --localstated \
1009 | --localstate | --localstat | --localsta | --localst | --locals)
1010 ac_prev=localstatedir ;;
1011 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1012 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1013 localstatedir=$ac_optarg ;;
1015 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1017 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1018 mandir=$ac_optarg ;;
1020 -nfp | --nfp | --nf)
1021 # Obsolete; use --without-fp.
1024 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1025 | --no-cr | --no-c | -n)
1028 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1029 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1032 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1033 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1034 | --oldin | --oldi | --old | --ol | --o)
1035 ac_prev=oldincludedir ;;
1036 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1037 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1038 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1039 oldincludedir=$ac_optarg ;;
1041 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1043 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1044 prefix=$ac_optarg ;;
1046 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1047 | --program-pre | --program-pr | --program-p)
1048 ac_prev=program_prefix ;;
1049 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1050 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1051 program_prefix=$ac_optarg ;;
1053 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1054 | --program-suf | --program-su | --program-s)
1055 ac_prev=program_suffix ;;
1056 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1057 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1058 program_suffix=$ac_optarg ;;
1060 -program-transform-name | --program-transform-name \
1061 | --program-transform-nam | --program-transform-na \
1062 | --program-transform-n | --program-transform- \
1063 | --program-transform | --program-transfor \
1064 | --program-transfo | --program-transf \
1065 | --program-trans | --program-tran \
1066 | --progr-tra | --program-tr | --program-t)
1067 ac_prev=program_transform_name ;;
1068 -program-transform-name=* | --program-transform-name=* \
1069 | --program-transform-nam=* | --program-transform-na=* \
1070 | --program-transform-n=* | --program-transform-=* \
1071 | --program-transform=* | --program-transfor=* \
1072 | --program-transfo=* | --program-transf=* \
1073 | --program-trans=* | --program-tran=* \
1074 | --progr-tra=* | --program-tr=* | --program-t=*)
1075 program_transform_name=$ac_optarg ;;
1077 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1079 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1080 pdfdir=$ac_optarg ;;
1082 -psdir | --psdir | --psdi | --psd | --ps)
1084 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1087 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1088 | -silent | --silent | --silen | --sile | --sil)
1091 -runstatedir | --runstatedir | --runstatedi | --runstated \
1092 | --runstate | --runstat | --runsta | --runst | --runs \
1093 | --run | --ru | --r)
1094 ac_prev=runstatedir ;;
1095 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1096 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1097 | --run=* | --ru=* | --r=*)
1098 runstatedir=$ac_optarg ;;
1100 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1102 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1104 sbindir=$ac_optarg ;;
1106 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1107 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1108 | --sharedst | --shareds | --shared | --share | --shar \
1110 ac_prev=sharedstatedir ;;
1111 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1112 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1113 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1115 sharedstatedir=$ac_optarg ;;
1117 -site | --site | --sit)
1119 -site=* | --site=* | --sit=*)
1122 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1124 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1125 srcdir=$ac_optarg ;;
1127 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1128 | --syscon | --sysco | --sysc | --sys | --sy)
1129 ac_prev=sysconfdir ;;
1130 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1131 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1132 sysconfdir=$ac_optarg ;;
1134 -target | --target | --targe | --targ | --tar | --ta | --t)
1135 ac_prev=target_alias ;;
1136 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1137 target_alias=$ac_optarg ;;
1139 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1142 -version | --version | --versio | --versi | --vers | -V)
1143 ac_init_version=: ;;
1146 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1147 # Reject names that are not valid shell variable names.
1148 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1149 as_fn_error $? "invalid package name: $ac_useropt"
1150 ac_useropt_orig=$ac_useropt
1151 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1152 case $ac_user_opts in
1156 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1157 ac_unrecognized_sep=', ';;
1159 eval with_$ac_useropt=\$ac_optarg ;;
1161 -without-* | --without-*)
1162 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1163 # Reject names that are not valid shell variable names.
1164 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1165 as_fn_error $? "invalid package name: $ac_useropt"
1166 ac_useropt_orig=$ac_useropt
1167 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1168 case $ac_user_opts in
1172 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1173 ac_unrecognized_sep=', ';;
1175 eval with_$ac_useropt=no ;;
1178 # Obsolete; use --with-x.
1181 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1182 | --x-incl | --x-inc | --x-in | --x-i)
1183 ac_prev=x_includes ;;
1184 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1185 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1186 x_includes=$ac_optarg ;;
1188 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1189 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1190 ac_prev=x_libraries ;;
1191 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1192 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1193 x_libraries=$ac_optarg ;;
1195 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1196 Try \`$0 --help' for more information"
1200 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1201 # Reject names that are not valid shell variable names.
1202 case $ac_envvar in #(
1203 '' | [0-9]* | *[!_$as_cr_alnum]* )
1204 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1206 eval $ac_envvar=\$ac_optarg
1207 export $ac_envvar ;;
1210 # FIXME: should be removed in autoconf 3.0.
1211 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1212 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1213 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1214 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1220 if test -n "$ac_prev"; then
1221 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1222 as_fn_error $? "missing argument to $ac_option"
1225 if test -n "$ac_unrecognized_opts"; then
1226 case $enable_option_checking in
1228 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1229 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1233 # Check all directory arguments for consistency.
1234 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1235 datadir sysconfdir sharedstatedir localstatedir includedir \
1236 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1237 libdir localedir mandir runstatedir
1239 eval ac_val=\$$ac_var
1240 # Remove trailing slashes.
1243 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1244 eval $ac_var=\$ac_val;;
1246 # Be sure to have absolute directory names.
1248 [\\/$]* | ?:[\\/]* ) continue;;
1249 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1251 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1254 # There might be people who depend on the old broken behavior: `$host'
1255 # used to hold the argument of --host etc.
1256 # FIXME: To remove some day.
1259 target=$target_alias
1261 # FIXME: To remove some day.
1262 if test "x$host_alias" != x; then
1263 if test "x$build_alias" = x; then
1264 cross_compiling=maybe
1265 elif test "x$build_alias" != "x$host_alias"; then
1271 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1273 test "$silent" = yes && exec 6>/dev/null
1276 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1277 ac_ls_di=`ls -di .` &&
1278 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1279 as_fn_error $? "working directory cannot be determined"
1280 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1281 as_fn_error $? "pwd does not report name of working directory"
1284 # Find the source files, if location was not specified.
1285 if test -z "$srcdir"; then
1286 ac_srcdir_defaulted=yes
1287 # Try the directory containing this script, then the parent directory.
1288 ac_confdir=`$as_dirname -- "$as_myself" ||
1289 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1290 X"$as_myself" : 'X\(//\)[^/]' \| \
1291 X"$as_myself" : 'X\(//\)$' \| \
1292 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1293 $as_echo X"$as_myself" |
1294 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1312 if test ! -r "$srcdir/$ac_unique_file"; then
1316 ac_srcdir_defaulted=no
1318 if test ! -r "$srcdir/$ac_unique_file"; then
1319 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1320 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1322 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1324 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1326 # When building in place, set srcdir=.
1327 if test "$ac_abs_confdir" = "$ac_pwd"; then
1330 # Remove unnecessary trailing slashes from srcdir.
1331 # Double slashes in file names in object file debugging info
1332 # mess up M-x gdb in Emacs.
1334 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1336 for ac_var in $ac_precious_vars; do
1337 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1338 eval ac_env_${ac_var}_value=\$${ac_var}
1339 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1340 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1344 # Report the --help message.
1346 if test "$ac_init_help" = "long"; then
1347 # Omit some internal or obsolete options to make the list less imposing.
1348 # This message is too long to be a string in the A/UX 3.1 sh.
1350 \`configure' configures GNU make 4.2.1 to adapt to many kinds of systems.
1352 Usage: $0 [OPTION]... [VAR=VALUE]...
1354 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1355 VAR=VALUE. See below for descriptions of some of the useful variables.
1357 Defaults for the options are specified in brackets.
1360 -h, --help display this help and exit
1361 --help=short display options specific to this package
1362 --help=recursive display the short help of all the included packages
1363 -V, --version display version information and exit
1364 -q, --quiet, --silent do not print \`checking ...' messages
1365 --cache-file=FILE cache test results in FILE [disabled]
1366 -C, --config-cache alias for \`--cache-file=config.cache'
1367 -n, --no-create do not create output files
1368 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1370 Installation directories:
1371 --prefix=PREFIX install architecture-independent files in PREFIX
1372 [$ac_default_prefix]
1373 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1376 By default, \`make install' will install all the files in
1377 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1378 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1379 for instance \`--prefix=\$HOME'.
1381 For better control, use the options below.
1383 Fine tuning of the installation directories:
1384 --bindir=DIR user executables [EPREFIX/bin]
1385 --sbindir=DIR system admin executables [EPREFIX/sbin]
1386 --libexecdir=DIR program executables [EPREFIX/libexec]
1387 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1388 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1389 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1390 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1391 --libdir=DIR object code libraries [EPREFIX/lib]
1392 --includedir=DIR C header files [PREFIX/include]
1393 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1394 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1395 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1396 --infodir=DIR info documentation [DATAROOTDIR/info]
1397 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1398 --mandir=DIR man documentation [DATAROOTDIR/man]
1399 --docdir=DIR documentation root [DATAROOTDIR/doc/make]
1400 --htmldir=DIR html documentation [DOCDIR]
1401 --dvidir=DIR dvi documentation [DOCDIR]
1402 --pdfdir=DIR pdf documentation [DOCDIR]
1403 --psdir=DIR ps documentation [DOCDIR]
1409 --program-prefix=PREFIX prepend PREFIX to installed program names
1410 --program-suffix=SUFFIX append SUFFIX to installed program names
1411 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1414 --build=BUILD configure for building on BUILD [guessed]
1415 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1419 if test -n "$ac_init_help"; then
1420 case $ac_init_help in
1421 short | recursive ) echo "Configuration of GNU make 4.2.1:";;
1426 --disable-option-checking ignore unrecognized --enable/--with options
1427 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1428 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1429 --enable-silent-rules less verbose build output (undo: "make V=1")
1430 --disable-silent-rules verbose build output (undo: "make V=0")
1431 --enable-dependency-tracking
1432 do not reject slow dependency extractors
1433 --disable-dependency-tracking
1434 speeds up one-time build
1435 --disable-nls do not use Native Language Support
1436 --disable-rpath do not hardcode runtime library paths
1437 --disable-largefile omit support for large files
1438 --enable-case-insensitive-file-system
1439 assume file systems are case insensitive
1440 --disable-job-server disallow recursive make communication during -jN
1441 --disable-load disable support for the 'load' operation
1444 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1445 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1446 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1447 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1448 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1449 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1450 --without-libintl-prefix don't search for libintl in includedir and libdir
1451 --with-guile Support GNU Guile for embedded scripting
1452 --with-customs=DIR enable remote jobs via Customs--see README.customs
1453 --with-dmalloc use dmalloc, as in http://www.dmalloc.com
1455 Some influential environment variables:
1456 CC C compiler command
1457 CFLAGS C compiler flags
1458 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1459 nonstandard directory <lib dir>
1460 LIBS libraries to pass to the linker, e.g. -l<library>
1461 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1462 you have headers in a nonstandard directory <include dir>
1464 PKG_CONFIG path to pkg-config utility
1466 directories to add to pkg-config's search path
1468 path overriding pkg-config's built-in search path
1470 C compiler flags for GUILE, overriding pkg-config
1471 GUILE_LIBS linker flags for GUILE, overriding pkg-config
1473 Use these variables to override the choices made by `configure' or to help
1474 it to find libraries and programs with nonstandard names/locations.
1476 Report bugs to <bug-make@gnu.org>.
1477 GNU make home page: <http://www.gnu.org/software/make/>.
1478 General help using GNU software: <http://www.gnu.org/gethelp/>.
1483 if test "$ac_init_help" = "recursive"; then
1484 # If there are subdirs, report their specific --help.
1485 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1486 test -d "$ac_dir" ||
1487 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1492 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1494 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1495 # A ".." for each directory in $ac_dir_suffix.
1496 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1497 case $ac_top_builddir_sub in
1498 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1499 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1502 ac_abs_top_builddir=$ac_pwd
1503 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1504 # for backward compatibility:
1505 ac_top_builddir=$ac_top_build_prefix
1508 .) # We are building in place.
1510 ac_top_srcdir=$ac_top_builddir_sub
1511 ac_abs_top_srcdir=$ac_pwd ;;
1512 [\\/]* | ?:[\\/]* ) # Absolute name.
1513 ac_srcdir=$srcdir$ac_dir_suffix;
1514 ac_top_srcdir=$srcdir
1515 ac_abs_top_srcdir=$srcdir ;;
1517 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1518 ac_top_srcdir=$ac_top_build_prefix$srcdir
1519 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1521 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1523 cd "$ac_dir" || { ac_status=$?; continue; }
1524 # Check for guested configure.
1525 if test -f "$ac_srcdir/configure.gnu"; then
1527 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1528 elif test -f "$ac_srcdir/configure"; then
1530 $SHELL "$ac_srcdir/configure" --help=recursive
1532 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1534 cd "$ac_pwd" || { ac_status=$?; break; }
1538 test -n "$ac_init_help" && exit $ac_status
1539 if $ac_init_version; then
1541 GNU make configure 4.2.1
1542 generated by GNU Autoconf 2.69
1544 Copyright (C) 2012 Free Software Foundation, Inc.
1545 This configure script is free software; the Free Software Foundation
1546 gives unlimited permission to copy, distribute and modify it.
1551 ## ------------------------ ##
1552 ## Autoconf initialization. ##
1553 ## ------------------------ ##
1555 # ac_fn_c_try_compile LINENO
1556 # --------------------------
1557 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1558 ac_fn_c_try_compile ()
1560 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1561 rm -f conftest.$ac_objext
1562 if { { ac_try="$ac_compile"
1564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1565 *) ac_try_echo=$ac_try;;
1567 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1568 $as_echo "$ac_try_echo"; } >&5
1569 (eval "$ac_compile") 2>conftest.err
1571 if test -s conftest.err; then
1572 grep -v '^ *+' conftest.err >conftest.er1
1573 cat conftest.er1 >&5
1574 mv -f conftest.er1 conftest.err
1576 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1577 test $ac_status = 0; } && {
1578 test -z "$ac_c_werror_flag" ||
1579 test ! -s conftest.err
1580 } && test -s conftest.$ac_objext; then :
1583 $as_echo "$as_me: failed program was:" >&5
1584 sed 's/^/| /' conftest.$ac_ext >&5
1588 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1589 as_fn_set_status $ac_retval
1591 } # ac_fn_c_try_compile
1593 # ac_fn_c_try_cpp LINENO
1594 # ----------------------
1595 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1598 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1599 if { { ac_try="$ac_cpp conftest.$ac_ext"
1601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1602 *) ac_try_echo=$ac_try;;
1604 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1605 $as_echo "$ac_try_echo"; } >&5
1606 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1608 if test -s conftest.err; then
1609 grep -v '^ *+' conftest.err >conftest.er1
1610 cat conftest.er1 >&5
1611 mv -f conftest.er1 conftest.err
1613 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1614 test $ac_status = 0; } > conftest.i && {
1615 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1616 test ! -s conftest.err
1620 $as_echo "$as_me: failed program was:" >&5
1621 sed 's/^/| /' conftest.$ac_ext >&5
1625 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1626 as_fn_set_status $ac_retval
1630 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1631 # -------------------------------------------------------
1632 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1633 # the include files in INCLUDES and setting the cache variable VAR
1635 ac_fn_c_check_header_mongrel ()
1637 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1638 if eval \${$3+:} false; then :
1639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1640 $as_echo_n "checking for $2... " >&6; }
1641 if eval \${$3+:} false; then :
1642 $as_echo_n "(cached) " >&6
1645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1646 $as_echo "$ac_res" >&6; }
1648 # Is the header compilable?
1649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1650 $as_echo_n "checking $2 usability... " >&6; }
1651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1652 /* end confdefs.h. */
1656 if ac_fn_c_try_compile "$LINENO"; then :
1657 ac_header_compiler=yes
1659 ac_header_compiler=no
1661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1663 $as_echo "$ac_header_compiler" >&6; }
1665 # Is the header present?
1666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1667 $as_echo_n "checking $2 presence... " >&6; }
1668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1669 /* end confdefs.h. */
1672 if ac_fn_c_try_cpp "$LINENO"; then :
1673 ac_header_preproc=yes
1675 ac_header_preproc=no
1677 rm -f conftest.err conftest.i conftest.$ac_ext
1678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1679 $as_echo "$ac_header_preproc" >&6; }
1681 # So? What about this header?
1682 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1684 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1685 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1686 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1687 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1690 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1691 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1692 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1693 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1694 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1695 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1696 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1697 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1698 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1699 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1700 ( $as_echo "## ------------------------------- ##
1701 ## Report this to bug-make@gnu.org ##
1702 ## ------------------------------- ##"
1703 ) | sed "s/^/$as_me: WARNING: /" >&2
1706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1707 $as_echo_n "checking for $2... " >&6; }
1708 if eval \${$3+:} false; then :
1709 $as_echo_n "(cached) " >&6
1711 eval "$3=\$ac_header_compiler"
1714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1715 $as_echo "$ac_res" >&6; }
1717 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1719 } # ac_fn_c_check_header_mongrel
1721 # ac_fn_c_try_run LINENO
1722 # ----------------------
1723 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1724 # that executables *can* be run.
1727 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1728 if { { ac_try="$ac_link"
1730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1731 *) ac_try_echo=$ac_try;;
1733 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1734 $as_echo "$ac_try_echo"; } >&5
1735 (eval "$ac_link") 2>&5
1737 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1738 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1739 { { case "(($ac_try" in
1740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1741 *) ac_try_echo=$ac_try;;
1743 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1744 $as_echo "$ac_try_echo"; } >&5
1745 (eval "$ac_try") 2>&5
1747 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1748 test $ac_status = 0; }; }; then :
1751 $as_echo "$as_me: program exited with status $ac_status" >&5
1752 $as_echo "$as_me: failed program was:" >&5
1753 sed 's/^/| /' conftest.$ac_ext >&5
1755 ac_retval=$ac_status
1757 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1758 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1759 as_fn_set_status $ac_retval
1763 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1764 # -------------------------------------------------------
1765 # Tests whether HEADER exists and can be compiled using the include files in
1766 # INCLUDES, setting the cache variable VAR accordingly.
1767 ac_fn_c_check_header_compile ()
1769 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1771 $as_echo_n "checking for $2... " >&6; }
1772 if eval \${$3+:} false; then :
1773 $as_echo_n "(cached) " >&6
1775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1776 /* end confdefs.h. */
1780 if ac_fn_c_try_compile "$LINENO"; then :
1785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1789 $as_echo "$ac_res" >&6; }
1790 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1792 } # ac_fn_c_check_header_compile
1794 # ac_fn_c_try_link LINENO
1795 # -----------------------
1796 # Try to link conftest.$ac_ext, and return whether this succeeded.
1799 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1800 rm -f conftest.$ac_objext conftest$ac_exeext
1801 if { { ac_try="$ac_link"
1803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1804 *) ac_try_echo=$ac_try;;
1806 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1807 $as_echo "$ac_try_echo"; } >&5
1808 (eval "$ac_link") 2>conftest.err
1810 if test -s conftest.err; then
1811 grep -v '^ *+' conftest.err >conftest.er1
1812 cat conftest.er1 >&5
1813 mv -f conftest.er1 conftest.err
1815 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1816 test $ac_status = 0; } && {
1817 test -z "$ac_c_werror_flag" ||
1818 test ! -s conftest.err
1819 } && test -s conftest$ac_exeext && {
1820 test "$cross_compiling" = yes ||
1821 test -x conftest$ac_exeext
1825 $as_echo "$as_me: failed program was:" >&5
1826 sed 's/^/| /' conftest.$ac_ext >&5
1830 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1831 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1832 # interfere with the next link command; also delete a directory that is
1833 # left behind by Apple's compiler. We do this before executing the actions.
1834 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1835 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1836 as_fn_set_status $ac_retval
1838 } # ac_fn_c_try_link
1840 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1841 # -------------------------------------------
1842 # Tests whether TYPE exists after having included INCLUDES, setting cache
1843 # variable VAR accordingly.
1844 ac_fn_c_check_type ()
1846 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1848 $as_echo_n "checking for $2... " >&6; }
1849 if eval \${$3+:} false; then :
1850 $as_echo_n "(cached) " >&6
1853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1854 /* end confdefs.h. */
1865 if ac_fn_c_try_compile "$LINENO"; then :
1866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1867 /* end confdefs.h. */
1878 if ac_fn_c_try_compile "$LINENO"; then :
1883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1889 $as_echo "$ac_res" >&6; }
1890 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1892 } # ac_fn_c_check_type
1894 # ac_fn_c_check_func LINENO FUNC VAR
1895 # ----------------------------------
1896 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1897 ac_fn_c_check_func ()
1899 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1901 $as_echo_n "checking for $2... " >&6; }
1902 if eval \${$3+:} false; then :
1903 $as_echo_n "(cached) " >&6
1905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1906 /* end confdefs.h. */
1907 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1908 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1909 #define $2 innocuous_$2
1911 /* System header to define __stub macros and hopefully few prototypes,
1912 which can conflict with char $2 (); below.
1913 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1914 <limits.h> exists even on freestanding compilers. */
1917 # include <limits.h>
1919 # include <assert.h>
1924 /* Override any GCC internal prototype to avoid an error.
1925 Use char because int might match the return type of a GCC
1926 builtin and then its argument prototype would still apply. */
1931 /* The GNU C library defines this for functions which it implements
1932 to always fail with ENOSYS. Some functions are actually named
1933 something starting with __ and the normal name is an alias. */
1934 #if defined __stub_$2 || defined __stub___$2
1946 if ac_fn_c_try_link "$LINENO"; then :
1951 rm -f core conftest.err conftest.$ac_objext \
1952 conftest$ac_exeext conftest.$ac_ext
1955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1956 $as_echo "$ac_res" >&6; }
1957 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1959 } # ac_fn_c_check_func
1961 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1962 # ---------------------------------------------
1963 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1965 ac_fn_c_check_decl ()
1967 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1968 as_decl_name=`echo $2|sed 's/ *(.*//'`
1969 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1971 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1972 if eval \${$3+:} false; then :
1973 $as_echo_n "(cached) " >&6
1975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1976 /* end confdefs.h. */
1981 #ifndef $as_decl_name
1983 (void) $as_decl_use;
1985 (void) $as_decl_name;
1993 if ac_fn_c_try_compile "$LINENO"; then :
1998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2002 $as_echo "$ac_res" >&6; }
2003 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2005 } # ac_fn_c_check_decl
2007 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2008 # ----------------------------------------------------
2009 # Tries to find if the field MEMBER exists in type AGGR, after including
2010 # INCLUDES, setting cache variable VAR accordingly.
2011 ac_fn_c_check_member ()
2013 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2015 $as_echo_n "checking for $2.$3... " >&6; }
2016 if eval \${$4+:} false; then :
2017 $as_echo_n "(cached) " >&6
2019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2020 /* end confdefs.h. */
2032 if ac_fn_c_try_compile "$LINENO"; then :
2035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2036 /* end confdefs.h. */
2042 if (sizeof ac_aggr.$3)
2048 if ac_fn_c_try_compile "$LINENO"; then :
2053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2059 $as_echo "$ac_res" >&6; }
2060 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2062 } # ac_fn_c_check_member
2063 cat >config.log <<_ACEOF
2064 This file contains any messages produced by compilers while
2065 running configure, to aid debugging if configure makes a mistake.
2067 It was created by GNU make $as_me 4.2.1, which was
2068 generated by GNU Autoconf 2.69. Invocation command line was
2080 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2081 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2082 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2083 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2084 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2086 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2087 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2089 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2090 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2091 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2092 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2093 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2094 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2095 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2103 test -z "$as_dir" && as_dir=.
2104 $as_echo "PATH: $as_dir"
2120 # Keep a trace of the command line.
2121 # Strip out --no-create and --no-recursion so they do not pile up.
2122 # Strip out --silent because we don't want to record it for future runs.
2123 # Also quote any args containing shell meta-characters.
2124 # Make two passes to allow for proper duplicate-argument suppression.
2128 ac_must_keep_next=false
2134 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2135 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2136 | -silent | --silent | --silen | --sile | --sil)
2139 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2142 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2144 as_fn_append ac_configure_args1 " '$ac_arg'"
2145 if test $ac_must_keep_next = true; then
2146 ac_must_keep_next=false # Got value, back to normal.
2149 *=* | --config-cache | -C | -disable-* | --disable-* \
2150 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2151 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2152 | -with-* | --with-* | -without-* | --without-* | --x)
2153 case "$ac_configure_args0 " in
2154 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2157 -* ) ac_must_keep_next=true ;;
2160 as_fn_append ac_configure_args " '$ac_arg'"
2165 { ac_configure_args0=; unset ac_configure_args0;}
2166 { ac_configure_args1=; unset ac_configure_args1;}
2168 # When interrupted or exit'd, cleanup temporary files, and complete
2169 # config.log. We remove comments because anyway the quotes in there
2170 # would cause problems or look ugly.
2171 # WARNING: Use '\'' to represent an apostrophe within the trap.
2172 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2173 trap 'exit_status=$?
2174 # Save into config.log some information that might help in debugging.
2178 $as_echo "## ---------------- ##
2179 ## Cache variables. ##
2180 ## ---------------- ##"
2182 # The following way of writing the cache mishandles newlines in values,
2184 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2185 eval ac_val=\$$ac_var
2189 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2190 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2193 _ | IFS | as_nl) ;; #(
2194 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2195 *) { eval $ac_var=; unset $ac_var;} ;;
2200 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2201 *${as_nl}ac_space=\ *)
2203 "s/'\''/'\''\\\\'\'''\''/g;
2204 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2207 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2214 $as_echo "## ----------------- ##
2215 ## Output variables. ##
2216 ## ----------------- ##"
2218 for ac_var in $ac_subst_vars
2220 eval ac_val=\$$ac_var
2222 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2224 $as_echo "$ac_var='\''$ac_val'\''"
2228 if test -n "$ac_subst_files"; then
2229 $as_echo "## ------------------- ##
2230 ## File substitutions. ##
2231 ## ------------------- ##"
2233 for ac_var in $ac_subst_files
2235 eval ac_val=\$$ac_var
2237 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2239 $as_echo "$ac_var='\''$ac_val'\''"
2244 if test -s confdefs.h; then
2245 $as_echo "## ----------- ##
2252 test "$ac_signal" != 0 &&
2253 $as_echo "$as_me: caught signal $ac_signal"
2254 $as_echo "$as_me: exit $exit_status"
2256 rm -f core *.core core.conftest.* &&
2257 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2260 for ac_signal in 1 2 13 15; do
2261 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2265 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2266 rm -f -r conftest* confdefs.h
2268 $as_echo "/* confdefs.h */" > confdefs.h
2270 # Predefined preprocessor variables.
2272 cat >>confdefs.h <<_ACEOF
2273 #define PACKAGE_NAME "$PACKAGE_NAME"
2276 cat >>confdefs.h <<_ACEOF
2277 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2280 cat >>confdefs.h <<_ACEOF
2281 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2284 cat >>confdefs.h <<_ACEOF
2285 #define PACKAGE_STRING "$PACKAGE_STRING"
2288 cat >>confdefs.h <<_ACEOF
2289 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2292 cat >>confdefs.h <<_ACEOF
2293 #define PACKAGE_URL "$PACKAGE_URL"
2297 # Let the site file select an alternate cache file if it wants to.
2298 # Prefer an explicitly selected file to automatically selected ones.
2301 if test -n "$CONFIG_SITE"; then
2302 # We do not want a PATH search for config.site.
2303 case $CONFIG_SITE in #((
2304 -*) ac_site_file1=./$CONFIG_SITE;;
2305 */*) ac_site_file1=$CONFIG_SITE;;
2306 *) ac_site_file1=./$CONFIG_SITE;;
2308 elif test "x$prefix" != xNONE; then
2309 ac_site_file1=$prefix/share/config.site
2310 ac_site_file2=$prefix/etc/config.site
2312 ac_site_file1=$ac_default_prefix/share/config.site
2313 ac_site_file2=$ac_default_prefix/etc/config.site
2315 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2317 test "x$ac_site_file" = xNONE && continue
2318 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2319 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2320 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2321 sed 's/^/| /' "$ac_site_file" >&5
2323 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2324 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2325 as_fn_error $? "failed to load site script $ac_site_file
2326 See \`config.log' for more details" "$LINENO" 5; }
2330 if test -r "$cache_file"; then
2331 # Some versions of bash will fail to source /dev/null (special files
2332 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2333 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2334 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2335 $as_echo "$as_me: loading cache $cache_file" >&6;}
2337 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2338 *) . "./$cache_file";;
2342 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2343 $as_echo "$as_me: creating cache $cache_file" >&6;}
2347 gt_needs="$gt_needs "
2348 # Check that the precious variables saved in the cache have kept the same
2350 ac_cache_corrupted=false
2351 for ac_var in $ac_precious_vars; do
2352 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2353 eval ac_new_set=\$ac_env_${ac_var}_set
2354 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2355 eval ac_new_val=\$ac_env_${ac_var}_value
2356 case $ac_old_set,$ac_new_set in
2358 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2359 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2360 ac_cache_corrupted=: ;;
2362 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2363 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2364 ac_cache_corrupted=: ;;
2367 if test "x$ac_old_val" != "x$ac_new_val"; then
2368 # differences in whitespace do not lead to failure.
2369 ac_old_val_w=`echo x $ac_old_val`
2370 ac_new_val_w=`echo x $ac_new_val`
2371 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2372 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2373 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2374 ac_cache_corrupted=:
2376 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2377 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2378 eval $ac_var=\$ac_old_val
2380 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2381 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2382 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2383 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2386 # Pass precious variables to config.status.
2387 if test "$ac_new_set" = set; then
2389 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2390 *) ac_arg=$ac_var=$ac_new_val ;;
2392 case " $ac_configure_args " in
2393 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2394 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2398 if $ac_cache_corrupted; then
2399 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2400 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2401 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2402 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2403 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2405 ## -------------------- ##
2406 ## Main body of script. ##
2407 ## -------------------- ##
2410 ac_cpp='$CPP $CPPFLAGS'
2411 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2412 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2413 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2421 for ac_dir in config "$srcdir"/config; do
2422 if test -f "$ac_dir/install-sh"; then
2424 ac_install_sh="$ac_aux_dir/install-sh -c"
2426 elif test -f "$ac_dir/install.sh"; then
2428 ac_install_sh="$ac_aux_dir/install.sh -c"
2430 elif test -f "$ac_dir/shtool"; then
2432 ac_install_sh="$ac_aux_dir/shtool install -c"
2436 if test -z "$ac_aux_dir"; then
2437 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2440 # These three variables are undocumented and unsupported,
2441 # and are intended to be withdrawn in a future Autoconf release.
2442 # They can cause serious problems if a builder's source tree is in a directory
2443 # whose full name contains unusual characters.
2444 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2445 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2446 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2450 ac_config_headers="$ac_config_headers config.h"
2454 # We have to enable "foreign" because ChangeLog is auto-generated
2455 # We cannot enable -Werror because gettext 0.18.1 has invalid content
2456 # When we update gettext to 0.18.3 or better we can add it again.
2457 am__api_version='1.15'
2459 # Find a good install program. We prefer a C program (faster),
2460 # so one script is as good as another. But avoid the broken or
2461 # incompatible versions:
2462 # SysV /etc/install, /usr/sbin/install
2463 # SunOS /usr/etc/install
2464 # IRIX /sbin/install
2466 # AmigaOS /C/install, which installs bootblocks on floppy discs
2467 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2468 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2469 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2470 # OS/2's system install, which has a completely different semantic
2471 # ./install, which can be erroneously created by make from ./install.sh.
2472 # Reject install programs that cannot install multiple files.
2473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2474 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2475 if test -z "$INSTALL"; then
2476 if ${ac_cv_path_install+:} false; then :
2477 $as_echo_n "(cached) " >&6
2479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2483 test -z "$as_dir" && as_dir=.
2484 # Account for people who put trailing slashes in PATH elements.
2485 case $as_dir/ in #((
2486 ./ | .// | /[cC]/* | \
2487 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2488 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2491 # OSF1 and SCO ODT 3.0 have their own names for install.
2492 # Don't use installbsd from OSF since it installs stuff as root
2494 for ac_prog in ginstall scoinst install; do
2495 for ac_exec_ext in '' $ac_executable_extensions; do
2496 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2497 if test $ac_prog = install &&
2498 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2499 # AIX install. It has an incompatible calling convention.
2501 elif test $ac_prog = install &&
2502 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2503 # program-specific install script used by HP pwplus--don't use.
2506 rm -rf conftest.one conftest.two conftest.dir
2507 echo one > conftest.one
2508 echo two > conftest.two
2510 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2511 test -s conftest.one && test -s conftest.two &&
2512 test -s conftest.dir/conftest.one &&
2513 test -s conftest.dir/conftest.two
2515 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2528 rm -rf conftest.one conftest.two conftest.dir
2531 if test "${ac_cv_path_install+set}" = set; then
2532 INSTALL=$ac_cv_path_install
2534 # As a last resort, use the slow shell script. Don't cache a
2535 # value for INSTALL within a source directory, because that will
2536 # break other packages using the cache if that directory is
2537 # removed, or if the value is a relative name.
2538 INSTALL=$ac_install_sh
2541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2542 $as_echo "$INSTALL" >&6; }
2544 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2545 # It thinks the first close brace ends the variable substitution.
2546 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2548 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2550 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2553 $as_echo_n "checking whether build environment is sane... " >&6; }
2554 # Reject unsafe characters in $srcdir or the absolute working directory
2555 # name. Accept space and tab only in the latter.
2559 *[\\\"\#\$\&\'\`$am_lf]*)
2560 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2563 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2564 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2567 # Do 'set' in a subshell so we don't clobber the current shell's
2568 # arguments. Must try -L first in case configure is actually a
2569 # symlink; some systems play weird games with the mod time of symlinks
2570 # (eg FreeBSD returns the mod time of the symlink's containing
2574 for am_try in 1 2; do
2575 echo "timestamp, slept: $am_has_slept" > conftest.file
2576 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2577 if test "$*" = "X"; then
2579 set X `ls -t "$srcdir/configure" conftest.file`
2581 if test "$*" != "X $srcdir/configure conftest.file" \
2582 && test "$*" != "X conftest.file $srcdir/configure"; then
2584 # If neither matched, then we have a broken ls. This can happen
2585 # if, for instance, CONFIG_SHELL is bash and it inherits a
2586 # broken ls alias from the environment. This has actually
2587 # happened. Such a system could not be considered "sane".
2588 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2589 alias in your environment" "$LINENO" 5
2591 if test "$2" = conftest.file || test $am_try -eq 2; then
2598 test "$2" = conftest.file
2604 as_fn_error $? "newly created file is older than distributed files!
2605 Check your system clock" "$LINENO" 5
2607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2608 $as_echo "yes" >&6; }
2609 # If we didn't sleep, we still need to ensure time stamps of config.status and
2610 # generated files are strictly newer.
2612 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2619 test "$program_prefix" != NONE &&
2620 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2621 # Use a double $ so make ignores it.
2622 test "$program_suffix" != NONE &&
2623 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2624 # Double any \ or $.
2625 # By default was `s,x,x', remove it if useless.
2626 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2627 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2629 # Expand $ac_aux_dir to an absolute path.
2630 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2632 if test x"${MISSING+set}" != xset; then
2635 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2637 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2640 # Use eval to expand $SHELL
2641 if eval "$MISSING --is-lightweight"; then
2642 am_missing_run="$MISSING "
2645 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2646 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2649 if test x"${install_sh+set}" != xset; then
2652 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2654 install_sh="\${SHELL} $am_aux_dir/install-sh"
2658 # Installed binaries are usually stripped using 'strip' when the user
2659 # run "make install-strip". However 'strip' might not be the right
2660 # tool to use in cross-compilation environments, therefore Automake
2661 # will honor the 'STRIP' environment variable to overrule this program.
2662 if test "$cross_compiling" != no; then
2663 if test -n "$ac_tool_prefix"; then
2664 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2665 set dummy ${ac_tool_prefix}strip; ac_word=$2
2666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2667 $as_echo_n "checking for $ac_word... " >&6; }
2668 if ${ac_cv_prog_STRIP+:} false; then :
2669 $as_echo_n "(cached) " >&6
2671 if test -n "$STRIP"; then
2672 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2678 test -z "$as_dir" && as_dir=.
2679 for ac_exec_ext in '' $ac_executable_extensions; do
2680 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2681 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2682 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2691 STRIP=$ac_cv_prog_STRIP
2692 if test -n "$STRIP"; then
2693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2694 $as_echo "$STRIP" >&6; }
2696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2697 $as_echo "no" >&6; }
2702 if test -z "$ac_cv_prog_STRIP"; then
2704 # Extract the first word of "strip", so it can be a program name with args.
2705 set dummy strip; ac_word=$2
2706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2707 $as_echo_n "checking for $ac_word... " >&6; }
2708 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2709 $as_echo_n "(cached) " >&6
2711 if test -n "$ac_ct_STRIP"; then
2712 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2718 test -z "$as_dir" && as_dir=.
2719 for ac_exec_ext in '' $ac_executable_extensions; do
2720 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2721 ac_cv_prog_ac_ct_STRIP="strip"
2722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2731 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2732 if test -n "$ac_ct_STRIP"; then
2733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2734 $as_echo "$ac_ct_STRIP" >&6; }
2736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2737 $as_echo "no" >&6; }
2740 if test "x$ac_ct_STRIP" = x; then
2743 case $cross_compiling:$ac_tool_warned in
2745 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2746 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2747 ac_tool_warned=yes ;;
2752 STRIP="$ac_cv_prog_STRIP"
2756 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2759 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2760 if test -z "$MKDIR_P"; then
2761 if ${ac_cv_path_mkdir+:} false; then :
2762 $as_echo_n "(cached) " >&6
2764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2765 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2768 test -z "$as_dir" && as_dir=.
2769 for ac_prog in mkdir gmkdir; do
2770 for ac_exec_ext in '' $ac_executable_extensions; do
2771 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2772 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2773 'mkdir (GNU coreutils) '* | \
2774 'mkdir (coreutils) '* | \
2775 'mkdir (fileutils) '4.1*)
2776 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2786 test -d ./--version && rmdir ./--version
2787 if test "${ac_cv_path_mkdir+set}" = set; then
2788 MKDIR_P="$ac_cv_path_mkdir -p"
2790 # As a last resort, use the slow shell script. Don't cache a
2791 # value for MKDIR_P within a source directory, because that will
2792 # break other packages using the cache if that directory is
2793 # removed, or if the value is a relative name.
2794 MKDIR_P="$ac_install_sh -d"
2797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2798 $as_echo "$MKDIR_P" >&6; }
2800 for ac_prog in gawk mawk nawk awk
2802 # Extract the first word of "$ac_prog", so it can be a program name with args.
2803 set dummy $ac_prog; ac_word=$2
2804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2805 $as_echo_n "checking for $ac_word... " >&6; }
2806 if ${ac_cv_prog_AWK+:} false; then :
2807 $as_echo_n "(cached) " >&6
2809 if test -n "$AWK"; then
2810 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2816 test -z "$as_dir" && as_dir=.
2817 for ac_exec_ext in '' $ac_executable_extensions; do
2818 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2819 ac_cv_prog_AWK="$ac_prog"
2820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2830 if test -n "$AWK"; then
2831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2832 $as_echo "$AWK" >&6; }
2834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2835 $as_echo "no" >&6; }
2839 test -n "$AWK" && break
2842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2843 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2845 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2846 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2847 $as_echo_n "(cached) " >&6
2849 cat >conftest.make <<\_ACEOF
2852 @echo '@@@%%%=$(MAKE)=@@@%%%'
2854 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2855 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2857 eval ac_cv_prog_make_${ac_make}_set=yes;;
2859 eval ac_cv_prog_make_${ac_make}_set=no;;
2863 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2865 $as_echo "yes" >&6; }
2868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2869 $as_echo "no" >&6; }
2870 SET_MAKE="MAKE=${MAKE-make}"
2873 rm -rf .tst 2>/dev/null
2874 mkdir .tst 2>/dev/null
2875 if test -d .tst; then
2880 rmdir .tst 2>/dev/null
2882 # Check whether --enable-silent-rules was given.
2883 if test "${enable_silent_rules+set}" = set; then :
2884 enableval=$enable_silent_rules;
2887 case $enable_silent_rules in # (((
2888 yes) AM_DEFAULT_VERBOSITY=0;;
2889 no) AM_DEFAULT_VERBOSITY=1;;
2890 *) AM_DEFAULT_VERBOSITY=1;;
2892 am_make=${MAKE-make}
2893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2894 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2895 if ${am_cv_make_support_nested_variables+:} false; then :
2896 $as_echo_n "(cached) " >&6
2898 if $as_echo 'TRUE=$(BAR$(V))
2904 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2905 am_cv_make_support_nested_variables=yes
2907 am_cv_make_support_nested_variables=no
2910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2911 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2912 if test $am_cv_make_support_nested_variables = yes; then
2914 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2916 AM_V=$AM_DEFAULT_VERBOSITY
2917 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2921 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2922 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2923 # is not polluted with repeated "-I."
2924 am__isrc=' -I$(srcdir)'
2925 # test to see if srcdir already configured
2926 if test -f $srcdir/config.status; then
2927 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2931 # test whether we have cygpath
2932 if test -z "$CYGPATH_W"; then
2933 if (cygpath --version) >/dev/null 2>/dev/null; then
2934 CYGPATH_W='cygpath -w'
2941 # Define the identity of the package.
2946 cat >>confdefs.h <<_ACEOF
2947 #define PACKAGE "$PACKAGE"
2951 cat >>confdefs.h <<_ACEOF
2952 #define VERSION "$VERSION"
2955 # Some tools Automake needs.
2957 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2960 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2963 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2966 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2969 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2971 # For better backward compatibility. To be removed once Automake 1.9.x
2972 # dies out for good. For more background, see:
2973 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2974 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2975 mkdir_p='$(MKDIR_P)'
2977 # We need awk for the "check" target (and possibly the TAP driver). The
2978 # system "awk" is bad on some platforms.
2979 # Always define AMTAR for backward compatibility. Yes, it's still used
2980 # in the wild :-( We should find a proper way to deprecate it ...
2984 # We'll loop over all known methods to create a tar archive until one works.
2985 _am_tools='gnutar pax cpio none'
2987 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2994 # POSIX will say in a future version that running "rm -f" with no argument
2995 # is OK; and we want to be able to make that assumption in our Makefile
2996 # recipes. So use an aggressive probe to check that the usage we want is
2997 # actually supported "in the wild" to an acceptable degree.
2998 # See automake bug#10828.
2999 # To make any issue more visible, cause the running configure to be aborted
3000 # by default if the 'rm' program in use doesn't match our expectations; the
3001 # user can still override this though.
3002 if rm -f && rm -fr && rm -rf; then : OK; else
3006 Your 'rm' program seems unable to run without file operands specified
3007 on the command line, even when the '-f' option is present. This is contrary
3008 to the behaviour of most rm programs out there, and not conforming with
3009 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3011 Please tell bug-automake@gnu.org about your system, including the value
3012 of your $PATH and any error possibly output before this message. This
3013 can help us improve future automake versions.
3016 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3017 echo 'Configuration will proceed anyway, since you have set the' >&2
3018 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3022 Aborting the configuration process, to ensure you take notice of the issue.
3024 You can download and install GNU coreutils to get an 'rm' implementation
3025 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3027 If you want to complete the configuration process using your problematic
3028 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3029 to "yes", and re-run configure.
3032 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3037 # Checks for programs.
3038 DEPDIR="${am__leading_dot}deps"
3040 ac_config_commands="$ac_config_commands depfiles"
3043 am_make=${MAKE-make}
3044 cat > confinc << 'END'
3046 @echo this is the am__doit target
3049 # If we don't find an include directive, just comment out the code.
3050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3051 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3055 # First try GNU make style include.
3056 echo "include confinc" > confmf
3057 # Ignore all kinds of additional output from 'make'.
3058 case `$am_make -s -f confmf 2> /dev/null` in #(
3059 *the\ am__doit\ target*)
3065 # Now try BSD make style include.
3066 if test "$am__include" = "#"; then
3067 echo '.include "confinc"' > confmf
3068 case `$am_make -s -f confmf 2> /dev/null` in #(
3069 *the\ am__doit\ target*)
3070 am__include=.include
3078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3079 $as_echo "$_am_result" >&6; }
3080 rm -f confinc confmf
3082 # Check whether --enable-dependency-tracking was given.
3083 if test "${enable_dependency_tracking+set}" = set; then :
3084 enableval=$enable_dependency_tracking;
3087 if test "x$enable_dependency_tracking" != xno; then
3088 am_depcomp="$ac_aux_dir/depcomp"
3092 if test "x$enable_dependency_tracking" != xno; then
3102 ac_cpp='$CPP $CPPFLAGS'
3103 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3104 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3105 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3106 if test -n "$ac_tool_prefix"; then
3107 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3108 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3110 $as_echo_n "checking for $ac_word... " >&6; }
3111 if ${ac_cv_prog_CC+:} false; then :
3112 $as_echo_n "(cached) " >&6
3114 if test -n "$CC"; then
3115 ac_cv_prog_CC="$CC" # Let the user override the test.
3117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3121 test -z "$as_dir" && as_dir=.
3122 for ac_exec_ext in '' $ac_executable_extensions; do
3123 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3124 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3125 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3135 if test -n "$CC"; then
3136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3137 $as_echo "$CC" >&6; }
3139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3140 $as_echo "no" >&6; }
3145 if test -z "$ac_cv_prog_CC"; then
3147 # Extract the first word of "gcc", so it can be a program name with args.
3148 set dummy gcc; ac_word=$2
3149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3150 $as_echo_n "checking for $ac_word... " >&6; }
3151 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3152 $as_echo_n "(cached) " >&6
3154 if test -n "$ac_ct_CC"; then
3155 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3161 test -z "$as_dir" && as_dir=.
3162 for ac_exec_ext in '' $ac_executable_extensions; do
3163 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3164 ac_cv_prog_ac_ct_CC="gcc"
3165 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3174 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3175 if test -n "$ac_ct_CC"; then
3176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3177 $as_echo "$ac_ct_CC" >&6; }
3179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3180 $as_echo "no" >&6; }
3183 if test "x$ac_ct_CC" = x; then
3186 case $cross_compiling:$ac_tool_warned in
3188 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3189 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3190 ac_tool_warned=yes ;;
3198 if test -z "$CC"; then
3199 if test -n "$ac_tool_prefix"; then
3200 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3201 set dummy ${ac_tool_prefix}cc; ac_word=$2
3202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3203 $as_echo_n "checking for $ac_word... " >&6; }
3204 if ${ac_cv_prog_CC+:} false; then :
3205 $as_echo_n "(cached) " >&6
3207 if test -n "$CC"; then
3208 ac_cv_prog_CC="$CC" # Let the user override the test.
3210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3214 test -z "$as_dir" && as_dir=.
3215 for ac_exec_ext in '' $ac_executable_extensions; do
3216 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3217 ac_cv_prog_CC="${ac_tool_prefix}cc"
3218 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3228 if test -n "$CC"; then
3229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3230 $as_echo "$CC" >&6; }
3232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3233 $as_echo "no" >&6; }
3239 if test -z "$CC"; then
3240 # Extract the first word of "cc", so it can be a program name with args.
3241 set dummy cc; ac_word=$2
3242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3243 $as_echo_n "checking for $ac_word... " >&6; }
3244 if ${ac_cv_prog_CC+:} false; then :
3245 $as_echo_n "(cached) " >&6
3247 if test -n "$CC"; then
3248 ac_cv_prog_CC="$CC" # Let the user override the test.
3251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3255 test -z "$as_dir" && as_dir=.
3256 for ac_exec_ext in '' $ac_executable_extensions; do
3257 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3258 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3259 ac_prog_rejected=yes
3263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3270 if test $ac_prog_rejected = yes; then
3271 # We found a bogon in the path, so make sure we never use it.
3272 set dummy $ac_cv_prog_CC
3274 if test $# != 0; then
3275 # We chose a different compiler from the bogus one.
3276 # However, it has the same basename, so the bogon will be chosen
3277 # first if we set CC to just the basename; use the full file name.
3279 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3285 if test -n "$CC"; then
3286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3287 $as_echo "$CC" >&6; }
3289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3290 $as_echo "no" >&6; }
3295 if test -z "$CC"; then
3296 if test -n "$ac_tool_prefix"; then
3297 for ac_prog in cl.exe
3299 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3300 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3302 $as_echo_n "checking for $ac_word... " >&6; }
3303 if ${ac_cv_prog_CC+:} false; then :
3304 $as_echo_n "(cached) " >&6
3306 if test -n "$CC"; then
3307 ac_cv_prog_CC="$CC" # Let the user override the test.
3309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3313 test -z "$as_dir" && as_dir=.
3314 for ac_exec_ext in '' $ac_executable_extensions; do
3315 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3316 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3317 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3327 if test -n "$CC"; then
3328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3329 $as_echo "$CC" >&6; }
3331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3332 $as_echo "no" >&6; }
3336 test -n "$CC" && break
3339 if test -z "$CC"; then
3341 for ac_prog in cl.exe
3343 # Extract the first word of "$ac_prog", so it can be a program name with args.
3344 set dummy $ac_prog; ac_word=$2
3345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3346 $as_echo_n "checking for $ac_word... " >&6; }
3347 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3348 $as_echo_n "(cached) " >&6
3350 if test -n "$ac_ct_CC"; then
3351 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3357 test -z "$as_dir" && as_dir=.
3358 for ac_exec_ext in '' $ac_executable_extensions; do
3359 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3360 ac_cv_prog_ac_ct_CC="$ac_prog"
3361 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3370 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3371 if test -n "$ac_ct_CC"; then
3372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3373 $as_echo "$ac_ct_CC" >&6; }
3375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3376 $as_echo "no" >&6; }
3380 test -n "$ac_ct_CC" && break
3383 if test "x$ac_ct_CC" = x; then
3386 case $cross_compiling:$ac_tool_warned in
3388 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3389 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3390 ac_tool_warned=yes ;;
3399 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3400 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3401 as_fn_error $? "no acceptable C compiler found in \$PATH
3402 See \`config.log' for more details" "$LINENO" 5; }
3404 # Provide some information about the compiler.
3405 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3408 for ac_option in --version -v -V -qversion; do
3409 { { ac_try="$ac_compiler $ac_option >&5"
3411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3412 *) ac_try_echo=$ac_try;;
3414 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3415 $as_echo "$ac_try_echo"; } >&5
3416 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3418 if test -s conftest.err; then
3420 ... rest of stderr output deleted ...
3421 10q' conftest.err >conftest.er1
3422 cat conftest.er1 >&5
3424 rm -f conftest.er1 conftest.err
3425 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3426 test $ac_status = 0; }
3429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3430 /* end confdefs.h. */
3440 ac_clean_files_save=$ac_clean_files
3441 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3442 # Try to create an executable without -o first, disregard a.out.
3443 # It will help us diagnose broken compilers, and finding out an intuition
3445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3446 $as_echo_n "checking whether the C compiler works... " >&6; }
3447 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3449 # The possible output files:
3450 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3453 for ac_file in $ac_files
3456 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3457 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3462 if { { ac_try="$ac_link_default"
3464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3465 *) ac_try_echo=$ac_try;;
3467 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3468 $as_echo "$ac_try_echo"; } >&5
3469 (eval "$ac_link_default") 2>&5
3471 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3472 test $ac_status = 0; }; then :
3473 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3474 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3475 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3476 # so that the user can short-circuit this test for compilers unknown to
3478 for ac_file in $ac_files ''
3480 test -f "$ac_file" || continue
3482 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3485 # We found the default executable, but exeext='' is most
3489 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3491 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3493 # We set ac_cv_exeext here because the later test for it is not
3494 # safe: cross compilers may not add the suffix if given an `-o'
3495 # argument, so we may need to know it at that point already.
3496 # Even if this section looks crufty: it has the advantage of
3503 test "$ac_cv_exeext" = no && ac_cv_exeext=
3508 if test -z "$ac_file"; then :
3509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3510 $as_echo "no" >&6; }
3511 $as_echo "$as_me: failed program was:" >&5
3512 sed 's/^/| /' conftest.$ac_ext >&5
3514 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3515 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3516 as_fn_error 77 "C compiler cannot create executables
3517 See \`config.log' for more details" "$LINENO" 5; }
3519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3520 $as_echo "yes" >&6; }
3522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3523 $as_echo_n "checking for C compiler default output file name... " >&6; }
3524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3525 $as_echo "$ac_file" >&6; }
3526 ac_exeext=$ac_cv_exeext
3528 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3529 ac_clean_files=$ac_clean_files_save
3530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3531 $as_echo_n "checking for suffix of executables... " >&6; }
3532 if { { ac_try="$ac_link"
3534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3535 *) ac_try_echo=$ac_try;;
3537 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3538 $as_echo "$ac_try_echo"; } >&5
3539 (eval "$ac_link") 2>&5
3541 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3542 test $ac_status = 0; }; then :
3543 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3544 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3545 # work properly (i.e., refer to `conftest.exe'), while it won't with
3547 for ac_file in conftest.exe conftest conftest.*; do
3548 test -f "$ac_file" || continue
3550 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3551 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3557 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3558 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3559 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3560 See \`config.log' for more details" "$LINENO" 5; }
3562 rm -f conftest conftest$ac_cv_exeext
3563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3564 $as_echo "$ac_cv_exeext" >&6; }
3566 rm -f conftest.$ac_ext
3567 EXEEXT=$ac_cv_exeext
3569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3570 /* end confdefs.h. */
3575 FILE *f = fopen ("conftest.out", "w");
3576 return ferror (f) || fclose (f) != 0;
3582 ac_clean_files="$ac_clean_files conftest.out"
3583 # Check that the compiler produces executables we can run. If not, either
3584 # the compiler is broken, or we cross compile.
3585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3586 $as_echo_n "checking whether we are cross compiling... " >&6; }
3587 if test "$cross_compiling" != yes; then
3588 { { ac_try="$ac_link"
3590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3591 *) ac_try_echo=$ac_try;;
3593 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3594 $as_echo "$ac_try_echo"; } >&5
3595 (eval "$ac_link") 2>&5
3597 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3598 test $ac_status = 0; }
3599 if { ac_try='./conftest$ac_cv_exeext'
3600 { { case "(($ac_try" in
3601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3602 *) ac_try_echo=$ac_try;;
3604 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3605 $as_echo "$ac_try_echo"; } >&5
3606 (eval "$ac_try") 2>&5
3608 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3609 test $ac_status = 0; }; }; then
3612 if test "$cross_compiling" = maybe; then
3615 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3616 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3617 as_fn_error $? "cannot run C compiled programs.
3618 If you meant to cross compile, use \`--host'.
3619 See \`config.log' for more details" "$LINENO" 5; }
3623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3624 $as_echo "$cross_compiling" >&6; }
3626 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3627 ac_clean_files=$ac_clean_files_save
3628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3629 $as_echo_n "checking for suffix of object files... " >&6; }
3630 if ${ac_cv_objext+:} false; then :
3631 $as_echo_n "(cached) " >&6
3633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3634 /* end confdefs.h. */
3644 rm -f conftest.o conftest.obj
3645 if { { ac_try="$ac_compile"
3647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3648 *) ac_try_echo=$ac_try;;
3650 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3651 $as_echo "$ac_try_echo"; } >&5
3652 (eval "$ac_compile") 2>&5
3654 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3655 test $ac_status = 0; }; then :
3656 for ac_file in conftest.o conftest.obj conftest.*; do
3657 test -f "$ac_file" || continue;
3659 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3660 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3665 $as_echo "$as_me: failed program was:" >&5
3666 sed 's/^/| /' conftest.$ac_ext >&5
3668 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3669 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3670 as_fn_error $? "cannot compute suffix of object files: cannot compile
3671 See \`config.log' for more details" "$LINENO" 5; }
3673 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3676 $as_echo "$ac_cv_objext" >&6; }
3677 OBJEXT=$ac_cv_objext
3679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3680 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3681 if ${ac_cv_c_compiler_gnu+:} false; then :
3682 $as_echo_n "(cached) " >&6
3684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3685 /* end confdefs.h. */
3698 if ac_fn_c_try_compile "$LINENO"; then :
3703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3704 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3708 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3709 if test $ac_compiler_gnu = yes; then
3714 ac_test_CFLAGS=${CFLAGS+set}
3715 ac_save_CFLAGS=$CFLAGS
3716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3717 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3718 if ${ac_cv_prog_cc_g+:} false; then :
3719 $as_echo_n "(cached) " >&6
3721 ac_save_c_werror_flag=$ac_c_werror_flag
3722 ac_c_werror_flag=yes
3725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3726 /* end confdefs.h. */
3736 if ac_fn_c_try_compile "$LINENO"; then :
3740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3741 /* end confdefs.h. */
3751 if ac_fn_c_try_compile "$LINENO"; then :
3754 ac_c_werror_flag=$ac_save_c_werror_flag
3756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3757 /* end confdefs.h. */
3767 if ac_fn_c_try_compile "$LINENO"; then :
3770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3775 ac_c_werror_flag=$ac_save_c_werror_flag
3777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3778 $as_echo "$ac_cv_prog_cc_g" >&6; }
3779 if test "$ac_test_CFLAGS" = set; then
3780 CFLAGS=$ac_save_CFLAGS
3781 elif test $ac_cv_prog_cc_g = yes; then
3782 if test "$GCC" = yes; then
3788 if test "$GCC" = yes; then
3794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3795 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3796 if ${ac_cv_prog_cc_c89+:} false; then :
3797 $as_echo_n "(cached) " >&6
3799 ac_cv_prog_cc_c89=no
3801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3802 /* end confdefs.h. */
3806 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3807 struct buf { int x; };
3808 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3809 static char *e (p, i)
3815 static char *f (char * (*g) (char **, int), char **p, ...)
3820 s = g (p, va_arg (v,int));
3825 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3826 function prototypes and stuff, but not '\xHH' hex character constants.
3827 These don't provoke an error unfortunately, instead are silently treated
3828 as 'x'. The following induces an error, until -std is added to get
3829 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3830 array size at least. It's necessary to write '\x00'==0 to get something
3831 that's true only with -std. */
3832 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3834 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3835 inside strings and character constants. */
3837 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3839 int test (int i, double x);
3840 struct s1 {int (*f) (int a);};
3841 struct s2 {int (*f) (double a);};
3842 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3848 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3853 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3854 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3856 CC="$ac_save_CC $ac_arg"
3857 if ac_fn_c_try_compile "$LINENO"; then :
3858 ac_cv_prog_cc_c89=$ac_arg
3860 rm -f core conftest.err conftest.$ac_objext
3861 test "x$ac_cv_prog_cc_c89" != "xno" && break
3863 rm -f conftest.$ac_ext
3868 case "x$ac_cv_prog_cc_c89" in
3870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3871 $as_echo "none needed" >&6; } ;;
3873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3874 $as_echo "unsupported" >&6; } ;;
3876 CC="$CC $ac_cv_prog_cc_c89"
3877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3878 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3880 if test "x$ac_cv_prog_cc_c89" != xno; then :
3885 ac_cpp='$CPP $CPPFLAGS'
3886 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3887 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3888 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3891 ac_cpp='$CPP $CPPFLAGS'
3892 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3893 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3894 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3896 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3897 if ${am_cv_prog_cc_c_o+:} false; then :
3898 $as_echo_n "(cached) " >&6
3900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3901 /* end confdefs.h. */
3911 # Make sure it works both with $CC and with simple cc.
3912 # Following AC_PROG_CC_C_O, we do the test twice because some
3913 # compilers refuse to overwrite an existing .o file with -o,
3914 # though they will create one.
3915 am_cv_prog_cc_c_o=yes
3917 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3918 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3921 (exit $ac_status); } \
3922 && test -f conftest2.$ac_objext; then
3925 am_cv_prog_cc_c_o=no
3929 rm -f core conftest*
3932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3933 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3934 if test "$am_cv_prog_cc_c_o" != yes; then
3935 # Losing compiler, so override with the script.
3936 # FIXME: It is wrong to rewrite CC.
3937 # But if we don't then we get into trouble of one sort or another.
3938 # A longer-term fix would be to have automake use am__CC in this case,
3939 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3940 CC="$am_aux_dir/compile $CC"
3943 ac_cpp='$CPP $CPPFLAGS'
3944 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3945 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3946 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3949 depcc="$CC" am_compiler_list=
3951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3952 $as_echo_n "checking dependency style of $depcc... " >&6; }
3953 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3954 $as_echo_n "(cached) " >&6
3956 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3957 # We make a subdir and do the tests there. Otherwise we can end up
3958 # making bogus files that we don't know about and never remove. For
3959 # instance it was reported that on HP-UX the gcc test will end up
3960 # making a dummy file named 'D' -- because '-MD' means "put the output
3964 # Copy depcomp to subdir because otherwise we won't find it if we're
3965 # using a relative directory.
3966 cp "$am_depcomp" conftest.dir
3968 # We will build objects and dependencies in a subdirectory because
3969 # it helps to detect inapplicable dependency modes. For instance
3970 # both Tru64's cc and ICC support -MD to output dependencies as a
3971 # side effect of compilation, but ICC will put the dependencies in
3972 # the current directory while Tru64 will put them in the object
3976 am_cv_CC_dependencies_compiler_type=none
3977 if test "$am_compiler_list" = ""; then
3978 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3981 case " $depcc " in #(
3982 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3985 for depmode in $am_compiler_list; do
3986 # Setup a source with many dependencies, because some compilers
3987 # like to wrap large dependency lists on column 80 (with \), and
3988 # we should not choose a depcomp mode which is confused by this.
3990 # We need to recreate these files for each test, as the compiler may
3991 # overwrite some of them when testing with obscure command lines.
3992 # This happens at least with the AIX C compiler.
3994 for i in 1 2 3 4 5 6; do
3995 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3996 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3997 # Solaris 10 /bin/sh.
3998 echo '/* dummy */' > sub/conftst$i.h
4000 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4002 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4003 # mode. It turns out that the SunPro C++ compiler does not properly
4004 # handle '-M -o', and we need to detect this. Also, some Intel
4005 # versions had trouble with output in subdirs.
4006 am__obj=sub/conftest.${OBJEXT-o}
4007 am__minus_obj="-o $am__obj"
4010 # This depmode causes a compiler race in universal mode.
4011 test "$am__universal" = false || continue
4014 # After this tag, mechanisms are not by side-effect, so they'll
4015 # only be used when explicitly requested.
4016 if test "x$enable_dependency_tracking" = xyes; then
4022 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4023 # This compiler won't grok '-c -o', but also, the minuso test has
4024 # not run yet. These depmodes are late enough in the game, and
4025 # so weak that their functioning should not be impacted.
4026 am__obj=conftest.${OBJEXT-o}
4031 if depmode=$depmode \
4032 source=sub/conftest.c object=$am__obj \
4033 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4034 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4035 >/dev/null 2>conftest.err &&
4036 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4037 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4038 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4039 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4040 # icc doesn't choke on unknown options, it will just issue warnings
4041 # or remarks (even with -Werror). So we grep stderr for any message
4042 # that says an option was ignored or not supported.
4043 # When given -MP, icc 7.0 and 7.1 complain thusly:
4044 # icc: Command line warning: ignoring option '-M'; no argument required
4045 # The diagnosis changed in icc 8.0:
4046 # icc: Command line remark: option '-MP' not supported
4047 if (grep 'ignoring option' conftest.err ||
4048 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4049 am_cv_CC_dependencies_compiler_type=$depmode
4058 am_cv_CC_dependencies_compiler_type=none
4062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4063 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4064 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4067 test "x$enable_dependency_tracking" != xno \
4068 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4070 am__fastdepCC_FALSE='#'
4072 am__fastdepCC_TRUE='#'
4073 am__fastdepCC_FALSE=
4079 ac_cpp='$CPP $CPPFLAGS'
4080 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4081 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4082 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4084 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4085 # On Suns, sometimes $CPP names a directory.
4086 if test -n "$CPP" && test -d "$CPP"; then
4089 if test -z "$CPP"; then
4090 if ${ac_cv_prog_CPP+:} false; then :
4091 $as_echo_n "(cached) " >&6
4093 # Double quotes because CPP needs to be expanded
4094 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4097 for ac_c_preproc_warn_flag in '' yes
4099 # Use a header file that comes with gcc, so configuring glibc
4100 # with a fresh cross-compiler works.
4101 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4102 # <limits.h> exists even on freestanding compilers.
4103 # On the NeXT, cc -E runs the code through the compiler's parser,
4104 # not just through cpp. "Syntax error" is here to catch this case.
4105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4106 /* end confdefs.h. */
4108 # include <limits.h>
4110 # include <assert.h>
4114 if ac_fn_c_try_cpp "$LINENO"; then :
4117 # Broken: fails on valid input.
4120 rm -f conftest.err conftest.i conftest.$ac_ext
4122 # OK, works on sane cases. Now check whether nonexistent headers
4123 # can be detected and how.
4124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4125 /* end confdefs.h. */
4126 #include <ac_nonexistent.h>
4128 if ac_fn_c_try_cpp "$LINENO"; then :
4129 # Broken: success on invalid input.
4132 # Passes both tests.
4136 rm -f conftest.err conftest.i conftest.$ac_ext
4139 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4140 rm -f conftest.i conftest.err conftest.$ac_ext
4141 if $ac_preproc_ok; then :
4153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4154 $as_echo "$CPP" >&6; }
4156 for ac_c_preproc_warn_flag in '' yes
4158 # Use a header file that comes with gcc, so configuring glibc
4159 # with a fresh cross-compiler works.
4160 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4161 # <limits.h> exists even on freestanding compilers.
4162 # On the NeXT, cc -E runs the code through the compiler's parser,
4163 # not just through cpp. "Syntax error" is here to catch this case.
4164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4165 /* end confdefs.h. */
4167 # include <limits.h>
4169 # include <assert.h>
4173 if ac_fn_c_try_cpp "$LINENO"; then :
4176 # Broken: fails on valid input.
4179 rm -f conftest.err conftest.i conftest.$ac_ext
4181 # OK, works on sane cases. Now check whether nonexistent headers
4182 # can be detected and how.
4183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4184 /* end confdefs.h. */
4185 #include <ac_nonexistent.h>
4187 if ac_fn_c_try_cpp "$LINENO"; then :
4188 # Broken: success on invalid input.
4191 # Passes both tests.
4195 rm -f conftest.err conftest.i conftest.$ac_ext
4198 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4199 rm -f conftest.i conftest.err conftest.$ac_ext
4200 if $ac_preproc_ok; then :
4203 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4204 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4205 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4206 See \`config.log' for more details" "$LINENO" 5; }
4210 ac_cpp='$CPP $CPPFLAGS'
4211 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4212 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4213 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4217 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4218 if ${ac_cv_path_GREP+:} false; then :
4219 $as_echo_n "(cached) " >&6
4221 if test -z "$GREP"; then
4222 ac_path_GREP_found=false
4223 # Loop through the user's path and test for each of PROGNAME-LIST
4224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4225 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4228 test -z "$as_dir" && as_dir=.
4229 for ac_prog in grep ggrep; do
4230 for ac_exec_ext in '' $ac_executable_extensions; do
4231 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4232 as_fn_executable_p "$ac_path_GREP" || continue
4233 # Check for GNU ac_path_GREP and select it if it is found.
4234 # Check for GNU $ac_path_GREP
4235 case `"$ac_path_GREP" --version 2>&1` in
4237 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4240 $as_echo_n 0123456789 >"conftest.in"
4243 cat "conftest.in" "conftest.in" >"conftest.tmp"
4244 mv "conftest.tmp" "conftest.in"
4245 cp "conftest.in" "conftest.nl"
4246 $as_echo 'GREP' >> "conftest.nl"
4247 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4248 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4249 as_fn_arith $ac_count + 1 && ac_count=$as_val
4250 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4251 # Best one so far, save it but keep looking for a better one
4252 ac_cv_path_GREP="$ac_path_GREP"
4253 ac_path_GREP_max=$ac_count
4255 # 10*(2^10) chars as input seems more than enough
4256 test $ac_count -gt 10 && break
4258 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4261 $ac_path_GREP_found && break 3
4266 if test -z "$ac_cv_path_GREP"; then
4267 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4270 ac_cv_path_GREP=$GREP
4274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4275 $as_echo "$ac_cv_path_GREP" >&6; }
4276 GREP="$ac_cv_path_GREP"
4279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4280 $as_echo_n "checking for egrep... " >&6; }
4281 if ${ac_cv_path_EGREP+:} false; then :
4282 $as_echo_n "(cached) " >&6
4284 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4285 then ac_cv_path_EGREP="$GREP -E"
4287 if test -z "$EGREP"; then
4288 ac_path_EGREP_found=false
4289 # Loop through the user's path and test for each of PROGNAME-LIST
4290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4291 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4294 test -z "$as_dir" && as_dir=.
4295 for ac_prog in egrep; do
4296 for ac_exec_ext in '' $ac_executable_extensions; do
4297 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4298 as_fn_executable_p "$ac_path_EGREP" || continue
4299 # Check for GNU ac_path_EGREP and select it if it is found.
4300 # Check for GNU $ac_path_EGREP
4301 case `"$ac_path_EGREP" --version 2>&1` in
4303 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4306 $as_echo_n 0123456789 >"conftest.in"
4309 cat "conftest.in" "conftest.in" >"conftest.tmp"
4310 mv "conftest.tmp" "conftest.in"
4311 cp "conftest.in" "conftest.nl"
4312 $as_echo 'EGREP' >> "conftest.nl"
4313 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4314 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4315 as_fn_arith $ac_count + 1 && ac_count=$as_val
4316 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4317 # Best one so far, save it but keep looking for a better one
4318 ac_cv_path_EGREP="$ac_path_EGREP"
4319 ac_path_EGREP_max=$ac_count
4321 # 10*(2^10) chars as input seems more than enough
4322 test $ac_count -gt 10 && break
4324 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4327 $ac_path_EGREP_found && break 3
4332 if test -z "$ac_cv_path_EGREP"; then
4333 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4336 ac_cv_path_EGREP=$EGREP
4341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4342 $as_echo "$ac_cv_path_EGREP" >&6; }
4343 EGREP="$ac_cv_path_EGREP"
4346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4347 $as_echo_n "checking for ANSI C header files... " >&6; }
4348 if ${ac_cv_header_stdc+:} false; then :
4349 $as_echo_n "(cached) " >&6
4351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4352 /* end confdefs.h. */
4366 if ac_fn_c_try_compile "$LINENO"; then :
4367 ac_cv_header_stdc=yes
4369 ac_cv_header_stdc=no
4371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4373 if test $ac_cv_header_stdc = yes; then
4374 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4376 /* end confdefs.h. */
4380 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4381 $EGREP "memchr" >/dev/null 2>&1; then :
4384 ac_cv_header_stdc=no
4390 if test $ac_cv_header_stdc = yes; then
4391 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4393 /* end confdefs.h. */
4397 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4398 $EGREP "free" >/dev/null 2>&1; then :
4401 ac_cv_header_stdc=no
4407 if test $ac_cv_header_stdc = yes; then
4408 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4409 if test "$cross_compiling" = yes; then :
4412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4413 /* end confdefs.h. */
4416 #if ((' ' & 0x0FF) == 0x020)
4417 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4418 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4420 # define ISLOWER(c) \
4421 (('a' <= (c) && (c) <= 'i') \
4422 || ('j' <= (c) && (c) <= 'r') \
4423 || ('s' <= (c) && (c) <= 'z'))
4424 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4427 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4432 for (i = 0; i < 256; i++)
4433 if (XOR (islower (i), ISLOWER (i))
4434 || toupper (i) != TOUPPER (i))
4439 if ac_fn_c_try_run "$LINENO"; then :
4442 ac_cv_header_stdc=no
4444 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4445 conftest.$ac_objext conftest.beam conftest.$ac_ext
4450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4451 $as_echo "$ac_cv_header_stdc" >&6; }
4452 if test $ac_cv_header_stdc = yes; then
4454 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4458 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4459 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4460 inttypes.h stdint.h unistd.h
4462 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4463 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4465 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4466 cat >>confdefs.h <<_ACEOF
4467 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4476 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4477 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4484 if test "$MINIX" = yes; then
4486 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4489 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4492 $as_echo "#define _MINIX 1" >>confdefs.h
4497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4498 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4499 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4500 $as_echo_n "(cached) " >&6
4502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4503 /* end confdefs.h. */
4505 # define __EXTENSIONS__ 1
4506 $ac_includes_default
4515 if ac_fn_c_try_compile "$LINENO"; then :
4516 ac_cv_safe_to_define___extensions__=yes
4518 ac_cv_safe_to_define___extensions__=no
4520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4523 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4524 test $ac_cv_safe_to_define___extensions__ = yes &&
4525 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4527 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4529 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4531 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4533 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4537 ac_cpp='$CPP $CPPFLAGS'
4538 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4539 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4540 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4541 if test -n "$ac_tool_prefix"; then
4542 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4543 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4545 $as_echo_n "checking for $ac_word... " >&6; }
4546 if ${ac_cv_prog_CC+:} false; then :
4547 $as_echo_n "(cached) " >&6
4549 if test -n "$CC"; then
4550 ac_cv_prog_CC="$CC" # Let the user override the test.
4552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4556 test -z "$as_dir" && as_dir=.
4557 for ac_exec_ext in '' $ac_executable_extensions; do
4558 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4559 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4560 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4570 if test -n "$CC"; then
4571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4572 $as_echo "$CC" >&6; }
4574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4575 $as_echo "no" >&6; }
4580 if test -z "$ac_cv_prog_CC"; then
4582 # Extract the first word of "gcc", so it can be a program name with args.
4583 set dummy gcc; ac_word=$2
4584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4585 $as_echo_n "checking for $ac_word... " >&6; }
4586 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4587 $as_echo_n "(cached) " >&6
4589 if test -n "$ac_ct_CC"; then
4590 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4596 test -z "$as_dir" && as_dir=.
4597 for ac_exec_ext in '' $ac_executable_extensions; do
4598 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4599 ac_cv_prog_ac_ct_CC="gcc"
4600 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4609 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4610 if test -n "$ac_ct_CC"; then
4611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4612 $as_echo "$ac_ct_CC" >&6; }
4614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4615 $as_echo "no" >&6; }
4618 if test "x$ac_ct_CC" = x; then
4621 case $cross_compiling:$ac_tool_warned in
4623 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4624 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4625 ac_tool_warned=yes ;;
4633 if test -z "$CC"; then
4634 if test -n "$ac_tool_prefix"; then
4635 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4636 set dummy ${ac_tool_prefix}cc; ac_word=$2
4637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4638 $as_echo_n "checking for $ac_word... " >&6; }
4639 if ${ac_cv_prog_CC+:} false; then :
4640 $as_echo_n "(cached) " >&6
4642 if test -n "$CC"; then
4643 ac_cv_prog_CC="$CC" # Let the user override the test.
4645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4649 test -z "$as_dir" && as_dir=.
4650 for ac_exec_ext in '' $ac_executable_extensions; do
4651 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4652 ac_cv_prog_CC="${ac_tool_prefix}cc"
4653 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4663 if test -n "$CC"; then
4664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4665 $as_echo "$CC" >&6; }
4667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4668 $as_echo "no" >&6; }
4674 if test -z "$CC"; then
4675 # Extract the first word of "cc", so it can be a program name with args.
4676 set dummy cc; ac_word=$2
4677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4678 $as_echo_n "checking for $ac_word... " >&6; }
4679 if ${ac_cv_prog_CC+:} false; then :
4680 $as_echo_n "(cached) " >&6
4682 if test -n "$CC"; then
4683 ac_cv_prog_CC="$CC" # Let the user override the test.
4686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4690 test -z "$as_dir" && as_dir=.
4691 for ac_exec_ext in '' $ac_executable_extensions; do
4692 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4693 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4694 ac_prog_rejected=yes
4698 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4705 if test $ac_prog_rejected = yes; then
4706 # We found a bogon in the path, so make sure we never use it.
4707 set dummy $ac_cv_prog_CC
4709 if test $# != 0; then
4710 # We chose a different compiler from the bogus one.
4711 # However, it has the same basename, so the bogon will be chosen
4712 # first if we set CC to just the basename; use the full file name.
4714 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4720 if test -n "$CC"; then
4721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4722 $as_echo "$CC" >&6; }
4724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4725 $as_echo "no" >&6; }
4730 if test -z "$CC"; then
4731 if test -n "$ac_tool_prefix"; then
4732 for ac_prog in cl.exe
4734 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4735 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4737 $as_echo_n "checking for $ac_word... " >&6; }
4738 if ${ac_cv_prog_CC+:} false; then :
4739 $as_echo_n "(cached) " >&6
4741 if test -n "$CC"; then
4742 ac_cv_prog_CC="$CC" # Let the user override the test.
4744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4748 test -z "$as_dir" && as_dir=.
4749 for ac_exec_ext in '' $ac_executable_extensions; do
4750 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4751 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4752 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4762 if test -n "$CC"; then
4763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4764 $as_echo "$CC" >&6; }
4766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4767 $as_echo "no" >&6; }
4771 test -n "$CC" && break
4774 if test -z "$CC"; then
4776 for ac_prog in cl.exe
4778 # Extract the first word of "$ac_prog", so it can be a program name with args.
4779 set dummy $ac_prog; ac_word=$2
4780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4781 $as_echo_n "checking for $ac_word... " >&6; }
4782 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4783 $as_echo_n "(cached) " >&6
4785 if test -n "$ac_ct_CC"; then
4786 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4792 test -z "$as_dir" && as_dir=.
4793 for ac_exec_ext in '' $ac_executable_extensions; do
4794 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4795 ac_cv_prog_ac_ct_CC="$ac_prog"
4796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4805 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4806 if test -n "$ac_ct_CC"; then
4807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4808 $as_echo "$ac_ct_CC" >&6; }
4810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4811 $as_echo "no" >&6; }
4815 test -n "$ac_ct_CC" && break
4818 if test "x$ac_ct_CC" = x; then
4821 case $cross_compiling:$ac_tool_warned in
4823 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4824 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4825 ac_tool_warned=yes ;;
4834 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4835 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4836 as_fn_error $? "no acceptable C compiler found in \$PATH
4837 See \`config.log' for more details" "$LINENO" 5; }
4839 # Provide some information about the compiler.
4840 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4843 for ac_option in --version -v -V -qversion; do
4844 { { ac_try="$ac_compiler $ac_option >&5"
4846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4847 *) ac_try_echo=$ac_try;;
4849 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4850 $as_echo "$ac_try_echo"; } >&5
4851 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4853 if test -s conftest.err; then
4855 ... rest of stderr output deleted ...
4856 10q' conftest.err >conftest.er1
4857 cat conftest.er1 >&5
4859 rm -f conftest.er1 conftest.err
4860 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4861 test $ac_status = 0; }
4864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4865 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4866 if ${ac_cv_c_compiler_gnu+:} false; then :
4867 $as_echo_n "(cached) " >&6
4869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4870 /* end confdefs.h. */
4883 if ac_fn_c_try_compile "$LINENO"; then :
4888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4889 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4893 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4894 if test $ac_compiler_gnu = yes; then
4899 ac_test_CFLAGS=${CFLAGS+set}
4900 ac_save_CFLAGS=$CFLAGS
4901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4902 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4903 if ${ac_cv_prog_cc_g+:} false; then :
4904 $as_echo_n "(cached) " >&6
4906 ac_save_c_werror_flag=$ac_c_werror_flag
4907 ac_c_werror_flag=yes
4910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4911 /* end confdefs.h. */
4921 if ac_fn_c_try_compile "$LINENO"; then :
4925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4926 /* end confdefs.h. */
4936 if ac_fn_c_try_compile "$LINENO"; then :
4939 ac_c_werror_flag=$ac_save_c_werror_flag
4941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4942 /* end confdefs.h. */
4952 if ac_fn_c_try_compile "$LINENO"; then :
4955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4960 ac_c_werror_flag=$ac_save_c_werror_flag
4962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4963 $as_echo "$ac_cv_prog_cc_g" >&6; }
4964 if test "$ac_test_CFLAGS" = set; then
4965 CFLAGS=$ac_save_CFLAGS
4966 elif test $ac_cv_prog_cc_g = yes; then
4967 if test "$GCC" = yes; then
4973 if test "$GCC" = yes; then
4979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4980 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4981 if ${ac_cv_prog_cc_c89+:} false; then :
4982 $as_echo_n "(cached) " >&6
4984 ac_cv_prog_cc_c89=no
4986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4987 /* end confdefs.h. */
4991 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4992 struct buf { int x; };
4993 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4994 static char *e (p, i)
5000 static char *f (char * (*g) (char **, int), char **p, ...)
5005 s = g (p, va_arg (v,int));
5010 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5011 function prototypes and stuff, but not '\xHH' hex character constants.
5012 These don't provoke an error unfortunately, instead are silently treated
5013 as 'x'. The following induces an error, until -std is added to get
5014 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5015 array size at least. It's necessary to write '\x00'==0 to get something
5016 that's true only with -std. */
5017 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5019 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5020 inside strings and character constants. */
5022 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5024 int test (int i, double x);
5025 struct s1 {int (*f) (int a);};
5026 struct s2 {int (*f) (double a);};
5027 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5033 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5038 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5039 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5041 CC="$ac_save_CC $ac_arg"
5042 if ac_fn_c_try_compile "$LINENO"; then :
5043 ac_cv_prog_cc_c89=$ac_arg
5045 rm -f core conftest.err conftest.$ac_objext
5046 test "x$ac_cv_prog_cc_c89" != "xno" && break
5048 rm -f conftest.$ac_ext
5053 case "x$ac_cv_prog_cc_c89" in
5055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5056 $as_echo "none needed" >&6; } ;;
5058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5059 $as_echo "unsupported" >&6; } ;;
5061 CC="$CC $ac_cv_prog_cc_c89"
5062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5063 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5065 if test "x$ac_cv_prog_cc_c89" != xno; then :
5070 ac_cpp='$CPP $CPPFLAGS'
5071 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5072 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5073 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5076 ac_cpp='$CPP $CPPFLAGS'
5077 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5078 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5079 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5081 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5082 if ${am_cv_prog_cc_c_o+:} false; then :
5083 $as_echo_n "(cached) " >&6
5085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5086 /* end confdefs.h. */
5096 # Make sure it works both with $CC and with simple cc.
5097 # Following AC_PROG_CC_C_O, we do the test twice because some
5098 # compilers refuse to overwrite an existing .o file with -o,
5099 # though they will create one.
5100 am_cv_prog_cc_c_o=yes
5102 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5103 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5106 (exit $ac_status); } \
5107 && test -f conftest2.$ac_objext; then
5110 am_cv_prog_cc_c_o=no
5114 rm -f core conftest*
5117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5118 $as_echo "$am_cv_prog_cc_c_o" >&6; }
5119 if test "$am_cv_prog_cc_c_o" != yes; then
5120 # Losing compiler, so override with the script.
5121 # FIXME: It is wrong to rewrite CC.
5122 # But if we don't then we get into trouble of one sort or another.
5123 # A longer-term fix would be to have automake use am__CC in this case,
5124 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5125 CC="$am_aux_dir/compile $CC"
5128 ac_cpp='$CPP $CPPFLAGS'
5129 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5130 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5131 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5134 depcc="$CC" am_compiler_list=
5136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5137 $as_echo_n "checking dependency style of $depcc... " >&6; }
5138 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5139 $as_echo_n "(cached) " >&6
5141 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5142 # We make a subdir and do the tests there. Otherwise we can end up
5143 # making bogus files that we don't know about and never remove. For
5144 # instance it was reported that on HP-UX the gcc test will end up
5145 # making a dummy file named 'D' -- because '-MD' means "put the output
5149 # Copy depcomp to subdir because otherwise we won't find it if we're
5150 # using a relative directory.
5151 cp "$am_depcomp" conftest.dir
5153 # We will build objects and dependencies in a subdirectory because
5154 # it helps to detect inapplicable dependency modes. For instance
5155 # both Tru64's cc and ICC support -MD to output dependencies as a
5156 # side effect of compilation, but ICC will put the dependencies in
5157 # the current directory while Tru64 will put them in the object
5161 am_cv_CC_dependencies_compiler_type=none
5162 if test "$am_compiler_list" = ""; then
5163 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5166 case " $depcc " in #(
5167 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5170 for depmode in $am_compiler_list; do
5171 # Setup a source with many dependencies, because some compilers
5172 # like to wrap large dependency lists on column 80 (with \), and
5173 # we should not choose a depcomp mode which is confused by this.
5175 # We need to recreate these files for each test, as the compiler may
5176 # overwrite some of them when testing with obscure command lines.
5177 # This happens at least with the AIX C compiler.
5179 for i in 1 2 3 4 5 6; do
5180 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5181 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5182 # Solaris 10 /bin/sh.
5183 echo '/* dummy */' > sub/conftst$i.h
5185 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5187 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5188 # mode. It turns out that the SunPro C++ compiler does not properly
5189 # handle '-M -o', and we need to detect this. Also, some Intel
5190 # versions had trouble with output in subdirs.
5191 am__obj=sub/conftest.${OBJEXT-o}
5192 am__minus_obj="-o $am__obj"
5195 # This depmode causes a compiler race in universal mode.
5196 test "$am__universal" = false || continue
5199 # After this tag, mechanisms are not by side-effect, so they'll
5200 # only be used when explicitly requested.
5201 if test "x$enable_dependency_tracking" = xyes; then
5207 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5208 # This compiler won't grok '-c -o', but also, the minuso test has
5209 # not run yet. These depmodes are late enough in the game, and
5210 # so weak that their functioning should not be impacted.
5211 am__obj=conftest.${OBJEXT-o}
5216 if depmode=$depmode \
5217 source=sub/conftest.c object=$am__obj \
5218 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5219 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5220 >/dev/null 2>conftest.err &&
5221 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5222 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5223 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5224 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5225 # icc doesn't choke on unknown options, it will just issue warnings
5226 # or remarks (even with -Werror). So we grep stderr for any message
5227 # that says an option was ignored or not supported.
5228 # When given -MP, icc 7.0 and 7.1 complain thusly:
5229 # icc: Command line warning: ignoring option '-M'; no argument required
5230 # The diagnosis changed in icc 8.0:
5231 # icc: Command line remark: option '-MP' not supported
5232 if (grep 'ignoring option' conftest.err ||
5233 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5234 am_cv_CC_dependencies_compiler_type=$depmode
5243 am_cv_CC_dependencies_compiler_type=none
5247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5248 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5249 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5252 test "x$enable_dependency_tracking" != xno \
5253 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5255 am__fastdepCC_FALSE='#'
5257 am__fastdepCC_TRUE='#'
5258 am__fastdepCC_FALSE=
5263 if test -n "$ac_tool_prefix"; then
5264 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5265 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5267 $as_echo_n "checking for $ac_word... " >&6; }
5268 if ${ac_cv_prog_RANLIB+:} false; then :
5269 $as_echo_n "(cached) " >&6
5271 if test -n "$RANLIB"; then
5272 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5278 test -z "$as_dir" && as_dir=.
5279 for ac_exec_ext in '' $ac_executable_extensions; do
5280 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5281 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5282 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5291 RANLIB=$ac_cv_prog_RANLIB
5292 if test -n "$RANLIB"; then
5293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5294 $as_echo "$RANLIB" >&6; }
5296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5297 $as_echo "no" >&6; }
5302 if test -z "$ac_cv_prog_RANLIB"; then
5303 ac_ct_RANLIB=$RANLIB
5304 # Extract the first word of "ranlib", so it can be a program name with args.
5305 set dummy ranlib; ac_word=$2
5306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5307 $as_echo_n "checking for $ac_word... " >&6; }
5308 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5309 $as_echo_n "(cached) " >&6
5311 if test -n "$ac_ct_RANLIB"; then
5312 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5318 test -z "$as_dir" && as_dir=.
5319 for ac_exec_ext in '' $ac_executable_extensions; do
5320 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5321 ac_cv_prog_ac_ct_RANLIB="ranlib"
5322 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5331 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5332 if test -n "$ac_ct_RANLIB"; then
5333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5334 $as_echo "$ac_ct_RANLIB" >&6; }
5336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5337 $as_echo "no" >&6; }
5340 if test "x$ac_ct_RANLIB" = x; then
5343 case $cross_compiling:$ac_tool_warned in
5345 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5346 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5347 ac_tool_warned=yes ;;
5349 RANLIB=$ac_ct_RANLIB
5352 RANLIB="$ac_cv_prog_RANLIB"
5356 ac_cpp='$CPP $CPPFLAGS'
5357 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5358 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5359 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5361 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5362 # On Suns, sometimes $CPP names a directory.
5363 if test -n "$CPP" && test -d "$CPP"; then
5366 if test -z "$CPP"; then
5367 if ${ac_cv_prog_CPP+:} false; then :
5368 $as_echo_n "(cached) " >&6
5370 # Double quotes because CPP needs to be expanded
5371 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5374 for ac_c_preproc_warn_flag in '' yes
5376 # Use a header file that comes with gcc, so configuring glibc
5377 # with a fresh cross-compiler works.
5378 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5379 # <limits.h> exists even on freestanding compilers.
5380 # On the NeXT, cc -E runs the code through the compiler's parser,
5381 # not just through cpp. "Syntax error" is here to catch this case.
5382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5383 /* end confdefs.h. */
5385 # include <limits.h>
5387 # include <assert.h>
5391 if ac_fn_c_try_cpp "$LINENO"; then :
5394 # Broken: fails on valid input.
5397 rm -f conftest.err conftest.i conftest.$ac_ext
5399 # OK, works on sane cases. Now check whether nonexistent headers
5400 # can be detected and how.
5401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5402 /* end confdefs.h. */
5403 #include <ac_nonexistent.h>
5405 if ac_fn_c_try_cpp "$LINENO"; then :
5406 # Broken: success on invalid input.
5409 # Passes both tests.
5413 rm -f conftest.err conftest.i conftest.$ac_ext
5416 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5417 rm -f conftest.i conftest.err conftest.$ac_ext
5418 if $ac_preproc_ok; then :
5430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5431 $as_echo "$CPP" >&6; }
5433 for ac_c_preproc_warn_flag in '' yes
5435 # Use a header file that comes with gcc, so configuring glibc
5436 # with a fresh cross-compiler works.
5437 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5438 # <limits.h> exists even on freestanding compilers.
5439 # On the NeXT, cc -E runs the code through the compiler's parser,
5440 # not just through cpp. "Syntax error" is here to catch this case.
5441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5442 /* end confdefs.h. */
5444 # include <limits.h>
5446 # include <assert.h>
5450 if ac_fn_c_try_cpp "$LINENO"; then :
5453 # Broken: fails on valid input.
5456 rm -f conftest.err conftest.i conftest.$ac_ext
5458 # OK, works on sane cases. Now check whether nonexistent headers
5459 # can be detected and how.
5460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5461 /* end confdefs.h. */
5462 #include <ac_nonexistent.h>
5464 if ac_fn_c_try_cpp "$LINENO"; then :
5465 # Broken: success on invalid input.
5468 # Passes both tests.
5472 rm -f conftest.err conftest.i conftest.$ac_ext
5475 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5476 rm -f conftest.i conftest.err conftest.$ac_ext
5477 if $ac_preproc_ok; then :
5480 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5481 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5482 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5483 See \`config.log' for more details" "$LINENO" 5; }
5487 ac_cpp='$CPP $CPPFLAGS'
5488 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5489 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5490 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5492 # Extract the first word of "ar", so it can be a program name with args.
5493 set dummy ar; ac_word=$2
5494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5495 $as_echo_n "checking for $ac_word... " >&6; }
5496 if ${ac_cv_prog_AR+:} false; then :
5497 $as_echo_n "(cached) " >&6
5499 if test -n "$AR"; then
5500 ac_cv_prog_AR="$AR" # Let the user override the test.
5502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5506 test -z "$as_dir" && as_dir=.
5507 for ac_exec_ext in '' $ac_executable_extensions; do
5508 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5517 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
5521 if test -n "$AR"; then
5522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5523 $as_echo "$AR" >&6; }
5525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5526 $as_echo "no" >&6; }
5530 # Perl is needed for the test suite (only)
5531 # Extract the first word of "perl", so it can be a program name with args.
5532 set dummy perl; ac_word=$2
5533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5534 $as_echo_n "checking for $ac_word... " >&6; }
5535 if ${ac_cv_prog_PERL+:} false; then :
5536 $as_echo_n "(cached) " >&6
5538 if test -n "$PERL"; then
5539 ac_cv_prog_PERL="$PERL" # Let the user override the test.
5541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5545 test -z "$as_dir" && as_dir=.
5546 for ac_exec_ext in '' $ac_executable_extensions; do
5547 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5548 ac_cv_prog_PERL="perl"
5549 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5556 test -z "$ac_cv_prog_PERL" && ac_cv_prog_PERL="perl"
5559 PERL=$ac_cv_prog_PERL
5560 if test -n "$PERL"; then
5561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
5562 $as_echo "$PERL" >&6; }
5564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5565 $as_echo "no" >&6; }
5570 # Needed for w32/Makefile.am
5571 if test -n "$ac_tool_prefix"; then
5572 for ac_prog in ar lib "link -lib"
5574 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5575 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5577 $as_echo_n "checking for $ac_word... " >&6; }
5578 if ${ac_cv_prog_AR+:} false; then :
5579 $as_echo_n "(cached) " >&6
5581 if test -n "$AR"; then
5582 ac_cv_prog_AR="$AR" # Let the user override the test.
5584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5588 test -z "$as_dir" && as_dir=.
5589 for ac_exec_ext in '' $ac_executable_extensions; do
5590 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5591 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5592 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5602 if test -n "$AR"; then
5603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5604 $as_echo "$AR" >&6; }
5606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5607 $as_echo "no" >&6; }
5611 test -n "$AR" && break
5614 if test -z "$AR"; then
5616 for ac_prog in ar lib "link -lib"
5618 # Extract the first word of "$ac_prog", so it can be a program name with args.
5619 set dummy $ac_prog; ac_word=$2
5620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5621 $as_echo_n "checking for $ac_word... " >&6; }
5622 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5623 $as_echo_n "(cached) " >&6
5625 if test -n "$ac_ct_AR"; then
5626 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5632 test -z "$as_dir" && as_dir=.
5633 for ac_exec_ext in '' $ac_executable_extensions; do
5634 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5635 ac_cv_prog_ac_ct_AR="$ac_prog"
5636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5645 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5646 if test -n "$ac_ct_AR"; then
5647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5648 $as_echo "$ac_ct_AR" >&6; }
5650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5651 $as_echo "no" >&6; }
5655 test -n "$ac_ct_AR" && break
5658 if test "x$ac_ct_AR" = x; then
5661 case $cross_compiling:$ac_tool_warned in
5663 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5664 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5665 ac_tool_warned=yes ;;
5673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
5674 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
5675 if ${am_cv_ar_interface+:} false; then :
5676 $as_echo_n "(cached) " >&6
5679 ac_cpp='$CPP $CPPFLAGS'
5680 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5681 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5682 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5684 am_cv_ar_interface=ar
5685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5686 /* end confdefs.h. */
5687 int some_variable = 0;
5689 if ac_fn_c_try_compile "$LINENO"; then :
5690 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
5691 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5692 (eval $am_ar_try) 2>&5
5694 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5695 test $ac_status = 0; }
5696 if test "$ac_status" -eq 0; then
5697 am_cv_ar_interface=ar
5699 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
5700 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5701 (eval $am_ar_try) 2>&5
5703 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5704 test $ac_status = 0; }
5705 if test "$ac_status" -eq 0; then
5706 am_cv_ar_interface=lib
5708 am_cv_ar_interface=unknown
5711 rm -f conftest.lib libconftest.a
5714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5716 ac_cpp='$CPP $CPPFLAGS'
5717 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5718 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5719 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
5723 $as_echo "$am_cv_ar_interface" >&6; }
5725 case $am_cv_ar_interface in
5729 # Microsoft lib, so override with the ar-lib wrapper script.
5730 # FIXME: It is wrong to rewrite AR.
5731 # But if we don't then we get into trouble of one sort or another.
5732 # A longer-term fix would be to have automake use am__AR in this case,
5733 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
5735 AR="$am_aux_dir/ar-lib $AR"
5738 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
5743 # Specialized system macros
5744 # Make sure we can run config.sub.
5745 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5746 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5749 $as_echo_n "checking build system type... " >&6; }
5750 if ${ac_cv_build+:} false; then :
5751 $as_echo_n "(cached) " >&6
5753 ac_build_alias=$build_alias
5754 test "x$ac_build_alias" = x &&
5755 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5756 test "x$ac_build_alias" = x &&
5757 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5758 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5759 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5763 $as_echo "$ac_cv_build" >&6; }
5764 case $ac_cv_build in
5766 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5769 ac_save_IFS=$IFS; IFS='-'
5775 # Remember, the first character of IFS is used to create $*,
5776 # except with old shells:
5779 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5783 $as_echo_n "checking host system type... " >&6; }
5784 if ${ac_cv_host+:} false; then :
5785 $as_echo_n "(cached) " >&6
5787 if test "x$host_alias" = x; then
5788 ac_cv_host=$ac_cv_build
5790 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5791 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5796 $as_echo "$ac_cv_host" >&6; }
5799 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5802 ac_save_IFS=$IFS; IFS='-'
5808 # Remember, the first character of IFS is used to create $*,
5809 # except with old shells:
5812 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
5817 $as_echo_n "checking for library containing strerror... " >&6; }
5818 if ${ac_cv_search_strerror+:} false; then :
5819 $as_echo_n "(cached) " >&6
5821 ac_func_search_save_LIBS=$LIBS
5822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5823 /* end confdefs.h. */
5825 /* Override any GCC internal prototype to avoid an error.
5826 Use char because int might match the return type of a GCC
5827 builtin and then its argument prototype would still apply. */
5840 for ac_lib in '' cposix; do
5841 if test -z "$ac_lib"; then
5842 ac_res="none required"
5845 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5847 if ac_fn_c_try_link "$LINENO"; then :
5848 ac_cv_search_strerror=$ac_res
5850 rm -f core conftest.err conftest.$ac_objext \
5852 if ${ac_cv_search_strerror+:} false; then :
5856 if ${ac_cv_search_strerror+:} false; then :
5859 ac_cv_search_strerror=no
5862 LIBS=$ac_func_search_save_LIBS
5864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
5865 $as_echo "$ac_cv_search_strerror" >&6; }
5866 ac_res=$ac_cv_search_strerror
5867 if test "$ac_res" != no; then :
5868 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5874 # Enable gettext, in "external" mode.
5876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5877 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5878 if ${ac_cv_path_SED+:} false; then :
5879 $as_echo_n "(cached) " >&6
5881 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5882 for ac_i in 1 2 3 4 5 6 7; do
5883 ac_script="$ac_script$as_nl$ac_script"
5885 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5886 { ac_script=; unset ac_script;}
5887 if test -z "$SED"; then
5888 ac_path_SED_found=false
5889 # Loop through the user's path and test for each of PROGNAME-LIST
5890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5894 test -z "$as_dir" && as_dir=.
5895 for ac_prog in sed gsed; do
5896 for ac_exec_ext in '' $ac_executable_extensions; do
5897 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5898 as_fn_executable_p "$ac_path_SED" || continue
5899 # Check for GNU ac_path_SED and select it if it is found.
5900 # Check for GNU $ac_path_SED
5901 case `"$ac_path_SED" --version 2>&1` in
5903 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5906 $as_echo_n 0123456789 >"conftest.in"
5909 cat "conftest.in" "conftest.in" >"conftest.tmp"
5910 mv "conftest.tmp" "conftest.in"
5911 cp "conftest.in" "conftest.nl"
5912 $as_echo '' >> "conftest.nl"
5913 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5914 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5915 as_fn_arith $ac_count + 1 && ac_count=$as_val
5916 if test $ac_count -gt ${ac_path_SED_max-0}; then
5917 # Best one so far, save it but keep looking for a better one
5918 ac_cv_path_SED="$ac_path_SED"
5919 ac_path_SED_max=$ac_count
5921 # 10*(2^10) chars as input seems more than enough
5922 test $ac_count -gt 10 && break
5924 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5927 $ac_path_SED_found && break 3
5932 if test -z "$ac_cv_path_SED"; then
5933 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5941 $as_echo "$ac_cv_path_SED" >&6; }
5942 SED="$ac_cv_path_SED"
5946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
5947 $as_echo_n "checking whether NLS is requested... " >&6; }
5948 # Check whether --enable-nls was given.
5949 if test "${enable_nls+set}" = set; then :
5950 enableval=$enable_nls; USE_NLS=$enableval
5955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
5956 $as_echo "$USE_NLS" >&6; }
5961 GETTEXT_MACRO_VERSION=0.19
5966 # Prepare PATH_SEPARATOR.
5967 # The user is always right.
5968 if test "${PATH_SEPARATOR+set}" != set; then
5969 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
5970 # contains only /bin. Note that ksh looks also at the FPATH variable,
5971 # so we have to set that as well for the test.
5973 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
5974 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
5975 || PATH_SEPARATOR=';'
5979 # Find out how to test for executable files. Don't use a zero-byte file,
5980 # as systems may use methods other than mode bits to determine executability.
5981 cat >conf$$.file <<_ASEOF
5985 chmod +x conf$$.file
5986 if test -x conf$$.file >/dev/null 2>&1; then
5987 ac_executable_p="test -x"
5989 ac_executable_p="test -f"
5993 # Extract the first word of "msgfmt", so it can be a program name with args.
5994 set dummy msgfmt; ac_word=$2
5995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5996 $as_echo_n "checking for $ac_word... " >&6; }
5997 if ${ac_cv_path_MSGFMT+:} false; then :
5998 $as_echo_n "(cached) " >&6
6002 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
6005 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6006 for ac_dir in $PATH; do
6008 test -z "$ac_dir" && ac_dir=.
6009 for ac_exec_ext in '' $ac_executable_extensions; do
6010 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6011 echo "$as_me: trying $ac_dir/$ac_word..." >&5
6012 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
6013 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6014 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
6021 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
6025 MSGFMT="$ac_cv_path_MSGFMT"
6026 if test "$MSGFMT" != ":"; then
6027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
6028 $as_echo "$MSGFMT" >&6; }
6030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6031 $as_echo "no" >&6; }
6034 # Extract the first word of "gmsgfmt", so it can be a program name with args.
6035 set dummy gmsgfmt; ac_word=$2
6036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6037 $as_echo_n "checking for $ac_word... " >&6; }
6038 if ${ac_cv_path_GMSGFMT+:} false; then :
6039 $as_echo_n "(cached) " >&6
6043 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
6046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6050 test -z "$as_dir" && as_dir=.
6051 for ac_exec_ext in '' $ac_executable_extensions; do
6052 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6053 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
6054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6061 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
6065 GMSGFMT=$ac_cv_path_GMSGFMT
6066 if test -n "$GMSGFMT"; then
6067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
6068 $as_echo "$GMSGFMT" >&6; }
6070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6071 $as_echo "no" >&6; }
6076 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6077 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
6078 *) MSGFMT_015=$MSGFMT ;;
6081 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6082 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
6083 *) GMSGFMT_015=$GMSGFMT ;;
6088 # Prepare PATH_SEPARATOR.
6089 # The user is always right.
6090 if test "${PATH_SEPARATOR+set}" != set; then
6091 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
6092 # contains only /bin. Note that ksh looks also at the FPATH variable,
6093 # so we have to set that as well for the test.
6095 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6096 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6097 || PATH_SEPARATOR=';'
6101 # Find out how to test for executable files. Don't use a zero-byte file,
6102 # as systems may use methods other than mode bits to determine executability.
6103 cat >conf$$.file <<_ASEOF
6107 chmod +x conf$$.file
6108 if test -x conf$$.file >/dev/null 2>&1; then
6109 ac_executable_p="test -x"
6111 ac_executable_p="test -f"
6115 # Extract the first word of "xgettext", so it can be a program name with args.
6116 set dummy xgettext; ac_word=$2
6117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6118 $as_echo_n "checking for $ac_word... " >&6; }
6119 if ${ac_cv_path_XGETTEXT+:} false; then :
6120 $as_echo_n "(cached) " >&6
6124 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
6127 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6128 for ac_dir in $PATH; do
6130 test -z "$ac_dir" && ac_dir=.
6131 for ac_exec_ext in '' $ac_executable_extensions; do
6132 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6133 echo "$as_me: trying $ac_dir/$ac_word..." >&5
6134 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
6135 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6136 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
6143 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
6147 XGETTEXT="$ac_cv_path_XGETTEXT"
6148 if test "$XGETTEXT" != ":"; then
6149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
6150 $as_echo "$XGETTEXT" >&6; }
6152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6153 $as_echo "no" >&6; }
6158 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6159 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
6160 *) XGETTEXT_015=$XGETTEXT ;;
6165 # Prepare PATH_SEPARATOR.
6166 # The user is always right.
6167 if test "${PATH_SEPARATOR+set}" != set; then
6168 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
6169 # contains only /bin. Note that ksh looks also at the FPATH variable,
6170 # so we have to set that as well for the test.
6172 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6173 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6174 || PATH_SEPARATOR=';'
6178 # Find out how to test for executable files. Don't use a zero-byte file,
6179 # as systems may use methods other than mode bits to determine executability.
6180 cat >conf$$.file <<_ASEOF
6184 chmod +x conf$$.file
6185 if test -x conf$$.file >/dev/null 2>&1; then
6186 ac_executable_p="test -x"
6188 ac_executable_p="test -f"
6192 # Extract the first word of "msgmerge", so it can be a program name with args.
6193 set dummy msgmerge; ac_word=$2
6194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6195 $as_echo_n "checking for $ac_word... " >&6; }
6196 if ${ac_cv_path_MSGMERGE+:} false; then :
6197 $as_echo_n "(cached) " >&6
6201 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
6204 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6205 for ac_dir in $PATH; do
6207 test -z "$ac_dir" && ac_dir=.
6208 for ac_exec_ext in '' $ac_executable_extensions; do
6209 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6210 echo "$as_me: trying $ac_dir/$ac_word..." >&5
6211 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
6212 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
6219 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
6223 MSGMERGE="$ac_cv_path_MSGMERGE"
6224 if test "$MSGMERGE" != ":"; then
6225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
6226 $as_echo "$MSGMERGE" >&6; }
6228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6229 $as_echo "no" >&6; }
6233 test -n "$localedir" || localedir='${datadir}/locale'
6236 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
6239 ac_config_commands="$ac_config_commands po-directories"
6243 if test "X$prefix" = "XNONE"; then
6244 acl_final_prefix="$ac_default_prefix"
6246 acl_final_prefix="$prefix"
6248 if test "X$exec_prefix" = "XNONE"; then
6249 acl_final_exec_prefix='${prefix}'
6251 acl_final_exec_prefix="$exec_prefix"
6253 acl_save_prefix="$prefix"
6254 prefix="$acl_final_prefix"
6255 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
6256 prefix="$acl_save_prefix"
6260 # Check whether --with-gnu-ld was given.
6261 if test "${with_gnu_ld+set}" = set; then :
6262 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6267 # Prepare PATH_SEPARATOR.
6268 # The user is always right.
6269 if test "${PATH_SEPARATOR+set}" != set; then
6270 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
6271 # contains only /bin. Note that ksh looks also at the FPATH variable,
6272 # so we have to set that as well for the test.
6274 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6275 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6276 || PATH_SEPARATOR=';'
6281 if test "$GCC" = yes; then
6282 # Check if gcc -print-prog-name=ld gives a path.
6283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6284 $as_echo_n "checking for ld used by $CC... " >&6; }
6287 # gcc leaves a trailing carriage return which upsets mingw
6288 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6290 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6293 # Accept absolute paths.
6295 re_direlt='/[^/][^/]*/\.\./'
6296 # Canonicalize the pathname of ld
6297 ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'`
6298 while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do
6299 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
6301 test -z "$LD" && LD="$ac_prog"
6304 # If it fails, then pretend we aren't using GCC.
6308 # If it is relative, then search for the first ld in PATH.
6312 elif test "$with_gnu_ld" = yes; then
6313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6314 $as_echo_n "checking for GNU ld... " >&6; }
6316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6317 $as_echo_n "checking for non-GNU ld... " >&6; }
6319 if ${acl_cv_path_LD+:} false; then :
6320 $as_echo_n "(cached) " >&6
6322 if test -z "$LD"; then
6323 acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6324 for ac_dir in $PATH; do
6326 test -z "$ac_dir" && ac_dir=.
6327 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6328 acl_cv_path_LD="$ac_dir/$ac_prog"
6329 # Check to see if the program is GNU ld. I'd rather use --version,
6330 # but apparently some variants of GNU ld only accept -v.
6331 # Break only if it was the GNU/non-GNU ld that we prefer.
6332 case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
6333 *GNU* | *'with BFD'*)
6334 test "$with_gnu_ld" != no && break
6337 test "$with_gnu_ld" != yes && break
6344 acl_cv_path_LD="$LD" # Let the user override the test with a path.
6348 LD="$acl_cv_path_LD"
6349 if test -n "$LD"; then
6350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6351 $as_echo "$LD" >&6; }
6353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6354 $as_echo "no" >&6; }
6356 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6358 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6359 if ${acl_cv_prog_gnu_ld+:} false; then :
6360 $as_echo_n "(cached) " >&6
6362 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6363 case `$LD -v 2>&1 </dev/null` in
6364 *GNU* | *'with BFD'*)
6365 acl_cv_prog_gnu_ld=yes
6368 acl_cv_prog_gnu_ld=no
6372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
6373 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
6374 with_gnu_ld=$acl_cv_prog_gnu_ld
6379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
6380 $as_echo_n "checking for shared library run path origin... " >&6; }
6381 if ${acl_cv_rpath+:} false; then :
6382 $as_echo_n "(cached) " >&6
6385 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
6386 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
6392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
6393 $as_echo "$acl_cv_rpath" >&6; }
6395 acl_libext="$acl_cv_libext"
6396 acl_shlibext="$acl_cv_shlibext"
6397 acl_libname_spec="$acl_cv_libname_spec"
6398 acl_library_names_spec="$acl_cv_library_names_spec"
6399 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
6400 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
6401 acl_hardcode_direct="$acl_cv_hardcode_direct"
6402 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
6403 # Check whether --enable-rpath was given.
6404 if test "${enable_rpath+set}" = set; then :
6405 enableval=$enable_rpath; :
6417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
6418 $as_echo_n "checking for 64-bit host... " >&6; }
6419 if ${gl_cv_solaris_64bit+:} false; then :
6420 $as_echo_n "(cached) " >&6
6422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6423 /* end confdefs.h. */
6430 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6431 $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
6432 gl_cv_solaris_64bit=yes
6434 gl_cv_solaris_64bit=no
6440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
6441 $as_echo "$gl_cv_solaris_64bit" >&6; }
6442 if test $gl_cv_solaris_64bit = yes; then
6443 acl_libdirstem=lib/64
6445 sparc*) acl_libdirstem2=lib/sparcv9 ;;
6446 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
6451 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
6452 if test -n "$searchpath"; then
6453 acl_save_IFS="${IFS= }"; IFS=":"
6454 for searchdir in $searchpath; do
6455 if test -d "$searchdir"; then
6456 case "$searchdir" in
6457 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
6459 # Better ignore directories of this form. They are misleading.
6461 *) searchdir=`cd "$searchdir" && pwd`
6462 case "$searchdir" in
6463 */lib64 ) acl_libdirstem=lib64 ;;
6472 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
6487 acl_save_prefix="$prefix"
6488 prefix="$acl_final_prefix"
6489 acl_save_exec_prefix="$exec_prefix"
6490 exec_prefix="$acl_final_exec_prefix"
6492 eval additional_includedir=\"$includedir\"
6493 eval additional_libdir=\"$libdir\"
6495 exec_prefix="$acl_save_exec_prefix"
6496 prefix="$acl_save_prefix"
6499 # Check whether --with-libiconv-prefix was given.
6500 if test "${with_libiconv_prefix+set}" = set; then :
6501 withval=$with_libiconv_prefix;
6502 if test "X$withval" = "Xno"; then
6505 if test "X$withval" = "X"; then
6507 acl_save_prefix="$prefix"
6508 prefix="$acl_final_prefix"
6509 acl_save_exec_prefix="$exec_prefix"
6510 exec_prefix="$acl_final_exec_prefix"
6512 eval additional_includedir=\"$includedir\"
6513 eval additional_libdir=\"$libdir\"
6515 exec_prefix="$acl_save_exec_prefix"
6516 prefix="$acl_save_prefix"
6519 additional_includedir="$withval/include"
6520 additional_libdir="$withval/$acl_libdirstem"
6521 if test "$acl_libdirstem2" != "$acl_libdirstem" \
6522 && ! test -d "$withval/$acl_libdirstem"; then
6523 additional_libdir="$withval/$acl_libdirstem2"
6537 names_already_handled=
6538 names_next_round='iconv '
6539 while test -n "$names_next_round"; do
6540 names_this_round="$names_next_round"
6542 for name in $names_this_round; do
6544 for n in $names_already_handled; do
6545 if test "$n" = "$name"; then
6550 if test -z "$already_handled"; then
6551 names_already_handled="$names_already_handled $name"
6552 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
6553 eval value=\"\$HAVE_LIB$uppername\"
6554 if test -n "$value"; then
6555 if test "$value" = yes; then
6556 eval value=\"\$LIB$uppername\"
6557 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
6558 eval value=\"\$LTLIB$uppername\"
6559 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
6568 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
6569 if test -n "$acl_shlibext"; then
6570 shrext=".$acl_shlibext" # typically: shrext=.so
6574 if test $use_additional = yes; then
6575 dir="$additional_libdir"
6576 if test -n "$acl_shlibext"; then
6577 if test -f "$dir/$libname$shrext"; then
6579 found_so="$dir/$libname$shrext"
6581 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
6582 ver=`(cd "$dir" && \
6583 for f in "$libname$shrext".*; do echo "$f"; done \
6584 | sed -e "s,^$libname$shrext\\\\.,," \
6585 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
6586 | sed 1q ) 2>/dev/null`
6587 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
6589 found_so="$dir/$libname$shrext.$ver"
6592 eval library_names=\"$acl_library_names_spec\"
6593 for f in $library_names; do
6594 if test -f "$dir/$f"; then
6603 if test "X$found_dir" = "X"; then
6604 if test -f "$dir/$libname.$acl_libext"; then
6606 found_a="$dir/$libname.$acl_libext"
6609 if test "X$found_dir" != "X"; then
6610 if test -f "$dir/$libname.la"; then
6611 found_la="$dir/$libname.la"
6615 if test "X$found_dir" = "X"; then
6616 for x in $LDFLAGS $LTLIBICONV; do
6618 acl_save_prefix="$prefix"
6619 prefix="$acl_final_prefix"
6620 acl_save_exec_prefix="$exec_prefix"
6621 exec_prefix="$acl_final_exec_prefix"
6623 exec_prefix="$acl_save_exec_prefix"
6624 prefix="$acl_save_prefix"
6628 dir=`echo "X$x" | sed -e 's/^X-L//'`
6629 if test -n "$acl_shlibext"; then
6630 if test -f "$dir/$libname$shrext"; then
6632 found_so="$dir/$libname$shrext"
6634 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
6635 ver=`(cd "$dir" && \
6636 for f in "$libname$shrext".*; do echo "$f"; done \
6637 | sed -e "s,^$libname$shrext\\\\.,," \
6638 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
6639 | sed 1q ) 2>/dev/null`
6640 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
6642 found_so="$dir/$libname$shrext.$ver"
6645 eval library_names=\"$acl_library_names_spec\"
6646 for f in $library_names; do
6647 if test -f "$dir/$f"; then
6656 if test "X$found_dir" = "X"; then
6657 if test -f "$dir/$libname.$acl_libext"; then
6659 found_a="$dir/$libname.$acl_libext"
6662 if test "X$found_dir" != "X"; then
6663 if test -f "$dir/$libname.la"; then
6664 found_la="$dir/$libname.la"
6669 if test "X$found_dir" != "X"; then
6674 if test "X$found_dir" != "X"; then
6675 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
6676 if test "X$found_so" != "X"; then
6677 if test "$enable_rpath" = no \
6678 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
6679 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
6680 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6683 for x in $ltrpathdirs; do
6684 if test "X$x" = "X$found_dir"; then
6689 if test -z "$haveit"; then
6690 ltrpathdirs="$ltrpathdirs $found_dir"
6692 if test "$acl_hardcode_direct" = yes; then
6693 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6695 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
6696 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6698 for x in $rpathdirs; do
6699 if test "X$x" = "X$found_dir"; then
6704 if test -z "$haveit"; then
6705 rpathdirs="$rpathdirs $found_dir"
6709 for x in $LDFLAGS $LIBICONV; do
6711 acl_save_prefix="$prefix"
6712 prefix="$acl_final_prefix"
6713 acl_save_exec_prefix="$exec_prefix"
6714 exec_prefix="$acl_final_exec_prefix"
6716 exec_prefix="$acl_save_exec_prefix"
6717 prefix="$acl_save_prefix"
6719 if test "X$x" = "X-L$found_dir"; then
6724 if test -z "$haveit"; then
6725 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
6727 if test "$acl_hardcode_minus_L" != no; then
6728 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6730 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
6736 if test "X$found_a" != "X"; then
6737 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
6739 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
6742 additional_includedir=
6743 case "$found_dir" in
6744 */$acl_libdirstem | */$acl_libdirstem/)
6745 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
6746 if test "$name" = 'iconv'; then
6747 LIBICONV_PREFIX="$basedir"
6749 additional_includedir="$basedir/include"
6751 */$acl_libdirstem2 | */$acl_libdirstem2/)
6752 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
6753 if test "$name" = 'iconv'; then
6754 LIBICONV_PREFIX="$basedir"
6756 additional_includedir="$basedir/include"
6759 if test "X$additional_includedir" != "X"; then
6760 if test "X$additional_includedir" != "X/usr/include"; then
6762 if test "X$additional_includedir" = "X/usr/local/include"; then
6763 if test -n "$GCC"; then
6765 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6769 if test -z "$haveit"; then
6770 for x in $CPPFLAGS $INCICONV; do
6772 acl_save_prefix="$prefix"
6773 prefix="$acl_final_prefix"
6774 acl_save_exec_prefix="$exec_prefix"
6775 exec_prefix="$acl_final_exec_prefix"
6777 exec_prefix="$acl_save_exec_prefix"
6778 prefix="$acl_save_prefix"
6780 if test "X$x" = "X-I$additional_includedir"; then
6785 if test -z "$haveit"; then
6786 if test -d "$additional_includedir"; then
6787 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
6793 if test -n "$found_la"; then
6794 save_libdir="$libdir"
6796 */* | *\\*) . "$found_la" ;;
6797 *) . "./$found_la" ;;
6799 libdir="$save_libdir"
6800 for dep in $dependency_libs; do
6803 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6804 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
6805 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
6807 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
6808 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
6809 if test -n "$GCC"; then
6811 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6815 if test -z "$haveit"; then
6817 for x in $LDFLAGS $LIBICONV; do
6819 acl_save_prefix="$prefix"
6820 prefix="$acl_final_prefix"
6821 acl_save_exec_prefix="$exec_prefix"
6822 exec_prefix="$acl_final_exec_prefix"
6824 exec_prefix="$acl_save_exec_prefix"
6825 prefix="$acl_save_prefix"
6827 if test "X$x" = "X-L$additional_libdir"; then
6832 if test -z "$haveit"; then
6833 if test -d "$additional_libdir"; then
6834 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
6838 for x in $LDFLAGS $LTLIBICONV; do
6840 acl_save_prefix="$prefix"
6841 prefix="$acl_final_prefix"
6842 acl_save_exec_prefix="$exec_prefix"
6843 exec_prefix="$acl_final_exec_prefix"
6845 exec_prefix="$acl_save_exec_prefix"
6846 prefix="$acl_save_prefix"
6848 if test "X$x" = "X-L$additional_libdir"; then
6853 if test -z "$haveit"; then
6854 if test -d "$additional_libdir"; then
6855 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
6862 dir=`echo "X$dep" | sed -e 's/^X-R//'`
6863 if test "$enable_rpath" != no; then
6865 for x in $rpathdirs; do
6866 if test "X$x" = "X$dir"; then
6871 if test -z "$haveit"; then
6872 rpathdirs="$rpathdirs $dir"
6875 for x in $ltrpathdirs; do
6876 if test "X$x" = "X$dir"; then
6881 if test -z "$haveit"; then
6882 ltrpathdirs="$ltrpathdirs $dir"
6887 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6890 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6893 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
6894 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
6900 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
6901 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
6907 if test "X$rpathdirs" != "X"; then
6908 if test -n "$acl_hardcode_libdir_separator"; then
6910 for found_dir in $rpathdirs; do
6911 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
6913 acl_save_libdir="$libdir"
6915 eval flag=\"$acl_hardcode_libdir_flag_spec\"
6916 libdir="$acl_save_libdir"
6917 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
6919 for found_dir in $rpathdirs; do
6920 acl_save_libdir="$libdir"
6922 eval flag=\"$acl_hardcode_libdir_flag_spec\"
6923 libdir="$acl_save_libdir"
6924 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
6928 if test "X$ltrpathdirs" != "X"; then
6929 for found_dir in $ltrpathdirs; do
6930 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
6964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
6965 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
6966 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
6967 $as_echo_n "(cached) " >&6
6969 gt_save_LIBS="$LIBS"
6970 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
6971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6972 /* end confdefs.h. */
6973 #include <CoreFoundation/CFPreferences.h>
6977 CFPreferencesCopyAppValue(NULL, NULL)
6982 if ac_fn_c_try_link "$LINENO"; then :
6983 gt_cv_func_CFPreferencesCopyAppValue=yes
6985 gt_cv_func_CFPreferencesCopyAppValue=no
6987 rm -f core conftest.err conftest.$ac_objext \
6988 conftest$ac_exeext conftest.$ac_ext
6989 LIBS="$gt_save_LIBS"
6991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
6992 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
6993 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
6995 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
6998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
6999 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
7000 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
7001 $as_echo_n "(cached) " >&6
7003 gt_save_LIBS="$LIBS"
7004 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
7005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7006 /* end confdefs.h. */
7007 #include <CoreFoundation/CFLocale.h>
7011 CFLocaleCopyCurrent();
7016 if ac_fn_c_try_link "$LINENO"; then :
7017 gt_cv_func_CFLocaleCopyCurrent=yes
7019 gt_cv_func_CFLocaleCopyCurrent=no
7021 rm -f core conftest.err conftest.$ac_objext \
7022 conftest$ac_exeext conftest.$ac_ext
7023 LIBS="$gt_save_LIBS"
7025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
7026 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
7027 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
7029 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
7033 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
7034 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
7046 case " $gt_needs " in
7047 *" need-formatstring-macros "*) gt_api_version=3 ;;
7048 *" need-ngettext "*) gt_api_version=2 ;;
7049 *) gt_api_version=1 ;;
7051 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
7052 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
7054 if test "$USE_NLS" = "yes"; then
7055 gt_use_preinstalled_gnugettext=no
7058 if test $gt_api_version -ge 3; then
7059 gt_revision_test_code='
7060 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
7061 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
7063 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
7066 gt_revision_test_code=
7068 if test $gt_api_version -ge 2; then
7069 gt_expression_test_code=' + * ngettext ("", "", 0)'
7071 gt_expression_test_code=
7074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
7075 $as_echo_n "checking for GNU gettext in libc... " >&6; }
7076 if eval \${$gt_func_gnugettext_libc+:} false; then :
7077 $as_echo_n "(cached) " >&6
7079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7080 /* end confdefs.h. */
7082 #include <libintl.h>
7083 $gt_revision_test_code
7084 extern int _nl_msg_cat_cntr;
7085 extern int *_nl_domain_bindings;
7091 bindtextdomain ("", "");
7092 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
7098 if ac_fn_c_try_link "$LINENO"; then :
7099 eval "$gt_func_gnugettext_libc=yes"
7101 eval "$gt_func_gnugettext_libc=no"
7103 rm -f core conftest.err conftest.$ac_objext \
7104 conftest$ac_exeext conftest.$ac_ext
7106 eval ac_res=\$$gt_func_gnugettext_libc
7107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7108 $as_echo "$ac_res" >&6; }
7110 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
7116 am_save_CPPFLAGS="$CPPFLAGS"
7118 for element in $INCICONV; do
7120 for x in $CPPFLAGS; do
7122 acl_save_prefix="$prefix"
7123 prefix="$acl_final_prefix"
7124 acl_save_exec_prefix="$exec_prefix"
7125 exec_prefix="$acl_final_exec_prefix"
7127 exec_prefix="$acl_save_exec_prefix"
7128 prefix="$acl_save_prefix"
7130 if test "X$x" = "X$element"; then
7135 if test -z "$haveit"; then
7136 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
7142 $as_echo_n "checking for iconv... " >&6; }
7143 if ${am_cv_func_iconv+:} false; then :
7144 $as_echo_n "(cached) " >&6
7147 am_cv_func_iconv="no, consider installing GNU libiconv"
7149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7150 /* end confdefs.h. */
7158 iconv_t cd = iconv_open("","");
7159 iconv(cd,NULL,NULL,NULL,NULL);
7165 if ac_fn_c_try_link "$LINENO"; then :
7166 am_cv_func_iconv=yes
7168 rm -f core conftest.err conftest.$ac_objext \
7169 conftest$ac_exeext conftest.$ac_ext
7170 if test "$am_cv_func_iconv" != yes; then
7171 am_save_LIBS="$LIBS"
7172 LIBS="$LIBS $LIBICONV"
7173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7174 /* end confdefs.h. */
7182 iconv_t cd = iconv_open("","");
7183 iconv(cd,NULL,NULL,NULL,NULL);
7189 if ac_fn_c_try_link "$LINENO"; then :
7191 am_cv_func_iconv=yes
7193 rm -f core conftest.err conftest.$ac_objext \
7194 conftest$ac_exeext conftest.$ac_ext
7195 LIBS="$am_save_LIBS"
7199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
7200 $as_echo "$am_cv_func_iconv" >&6; }
7201 if test "$am_cv_func_iconv" = yes; then
7202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
7203 $as_echo_n "checking for working iconv... " >&6; }
7204 if ${am_cv_func_iconv_works+:} false; then :
7205 $as_echo_n "(cached) " >&6
7208 am_save_LIBS="$LIBS"
7209 if test $am_cv_lib_iconv = yes; then
7210 LIBS="$LIBS $LIBICONV"
7212 am_cv_func_iconv_works=no
7213 for ac_iconv_const in '' 'const'; do
7214 if test "$cross_compiling" = yes; then :
7216 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
7217 *) am_cv_func_iconv_works="guessing yes" ;;
7220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7221 /* end confdefs.h. */
7227 # define ICONV_CONST $ac_iconv_const
7234 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
7237 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
7238 if (cd_utf8_to_88591 != (iconv_t)(-1))
7240 static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
7242 ICONV_CONST char *inptr = input;
7243 size_t inbytesleft = strlen (input);
7245 size_t outbytesleft = sizeof (buf);
7246 size_t res = iconv (cd_utf8_to_88591,
7247 &inptr, &inbytesleft,
7248 &outptr, &outbytesleft);
7251 iconv_close (cd_utf8_to_88591);
7254 /* Test against Solaris 10 bug: Failures are not distinguishable from
7255 successful returns. */
7257 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
7258 if (cd_ascii_to_88591 != (iconv_t)(-1))
7260 static ICONV_CONST char input[] = "\263";
7262 ICONV_CONST char *inptr = input;
7263 size_t inbytesleft = strlen (input);
7265 size_t outbytesleft = sizeof (buf);
7266 size_t res = iconv (cd_ascii_to_88591,
7267 &inptr, &inbytesleft,
7268 &outptr, &outbytesleft);
7271 iconv_close (cd_ascii_to_88591);
7274 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
7276 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
7277 if (cd_88591_to_utf8 != (iconv_t)(-1))
7279 static ICONV_CONST char input[] = "\304";
7280 static char buf[2] = { (char)0xDE, (char)0xAD };
7281 ICONV_CONST char *inptr = input;
7282 size_t inbytesleft = 1;
7284 size_t outbytesleft = 1;
7285 size_t res = iconv (cd_88591_to_utf8,
7286 &inptr, &inbytesleft,
7287 &outptr, &outbytesleft);
7288 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
7290 iconv_close (cd_88591_to_utf8);
7293 #if 0 /* This bug could be worked around by the caller. */
7294 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
7296 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
7297 if (cd_88591_to_utf8 != (iconv_t)(-1))
7299 static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
7301 ICONV_CONST char *inptr = input;
7302 size_t inbytesleft = strlen (input);
7304 size_t outbytesleft = sizeof (buf);
7305 size_t res = iconv (cd_88591_to_utf8,
7306 &inptr, &inbytesleft,
7307 &outptr, &outbytesleft);
7310 iconv_close (cd_88591_to_utf8);
7314 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
7316 if (/* Try standardized names. */
7317 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
7318 /* Try IRIX, OSF/1 names. */
7319 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
7320 /* Try AIX names. */
7321 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
7322 /* Try HP-UX names. */
7323 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
7331 if ac_fn_c_try_run "$LINENO"; then :
7332 am_cv_func_iconv_works=yes
7334 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7335 conftest.$ac_objext conftest.beam conftest.$ac_ext
7338 test "$am_cv_func_iconv_works" = no || break
7340 LIBS="$am_save_LIBS"
7343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
7344 $as_echo "$am_cv_func_iconv_works" >&6; }
7345 case "$am_cv_func_iconv_works" in
7346 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
7347 *) am_func_iconv=yes ;;
7350 am_func_iconv=no am_cv_lib_iconv=no
7352 if test "$am_func_iconv" = yes; then
7354 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
7357 if test "$am_cv_lib_iconv" = yes; then
7358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
7359 $as_echo_n "checking how to link with libiconv... " >&6; }
7360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
7361 $as_echo "$LIBICONV" >&6; }
7363 CPPFLAGS="$am_save_CPPFLAGS"
7380 acl_save_prefix="$prefix"
7381 prefix="$acl_final_prefix"
7382 acl_save_exec_prefix="$exec_prefix"
7383 exec_prefix="$acl_final_exec_prefix"
7385 eval additional_includedir=\"$includedir\"
7386 eval additional_libdir=\"$libdir\"
7388 exec_prefix="$acl_save_exec_prefix"
7389 prefix="$acl_save_prefix"
7392 # Check whether --with-libintl-prefix was given.
7393 if test "${with_libintl_prefix+set}" = set; then :
7394 withval=$with_libintl_prefix;
7395 if test "X$withval" = "Xno"; then
7398 if test "X$withval" = "X"; then
7400 acl_save_prefix="$prefix"
7401 prefix="$acl_final_prefix"
7402 acl_save_exec_prefix="$exec_prefix"
7403 exec_prefix="$acl_final_exec_prefix"
7405 eval additional_includedir=\"$includedir\"
7406 eval additional_libdir=\"$libdir\"
7408 exec_prefix="$acl_save_exec_prefix"
7409 prefix="$acl_save_prefix"
7412 additional_includedir="$withval/include"
7413 additional_libdir="$withval/$acl_libdirstem"
7414 if test "$acl_libdirstem2" != "$acl_libdirstem" \
7415 && ! test -d "$withval/$acl_libdirstem"; then
7416 additional_libdir="$withval/$acl_libdirstem2"
7430 names_already_handled=
7431 names_next_round='intl '
7432 while test -n "$names_next_round"; do
7433 names_this_round="$names_next_round"
7435 for name in $names_this_round; do
7437 for n in $names_already_handled; do
7438 if test "$n" = "$name"; then
7443 if test -z "$already_handled"; then
7444 names_already_handled="$names_already_handled $name"
7445 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
7446 eval value=\"\$HAVE_LIB$uppername\"
7447 if test -n "$value"; then
7448 if test "$value" = yes; then
7449 eval value=\"\$LIB$uppername\"
7450 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
7451 eval value=\"\$LTLIB$uppername\"
7452 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
7461 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
7462 if test -n "$acl_shlibext"; then
7463 shrext=".$acl_shlibext" # typically: shrext=.so
7467 if test $use_additional = yes; then
7468 dir="$additional_libdir"
7469 if test -n "$acl_shlibext"; then
7470 if test -f "$dir/$libname$shrext"; then
7472 found_so="$dir/$libname$shrext"
7474 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
7475 ver=`(cd "$dir" && \
7476 for f in "$libname$shrext".*; do echo "$f"; done \
7477 | sed -e "s,^$libname$shrext\\\\.,," \
7478 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
7479 | sed 1q ) 2>/dev/null`
7480 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
7482 found_so="$dir/$libname$shrext.$ver"
7485 eval library_names=\"$acl_library_names_spec\"
7486 for f in $library_names; do
7487 if test -f "$dir/$f"; then
7496 if test "X$found_dir" = "X"; then
7497 if test -f "$dir/$libname.$acl_libext"; then
7499 found_a="$dir/$libname.$acl_libext"
7502 if test "X$found_dir" != "X"; then
7503 if test -f "$dir/$libname.la"; then
7504 found_la="$dir/$libname.la"
7508 if test "X$found_dir" = "X"; then
7509 for x in $LDFLAGS $LTLIBINTL; do
7511 acl_save_prefix="$prefix"
7512 prefix="$acl_final_prefix"
7513 acl_save_exec_prefix="$exec_prefix"
7514 exec_prefix="$acl_final_exec_prefix"
7516 exec_prefix="$acl_save_exec_prefix"
7517 prefix="$acl_save_prefix"
7521 dir=`echo "X$x" | sed -e 's/^X-L//'`
7522 if test -n "$acl_shlibext"; then
7523 if test -f "$dir/$libname$shrext"; then
7525 found_so="$dir/$libname$shrext"
7527 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
7528 ver=`(cd "$dir" && \
7529 for f in "$libname$shrext".*; do echo "$f"; done \
7530 | sed -e "s,^$libname$shrext\\\\.,," \
7531 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
7532 | sed 1q ) 2>/dev/null`
7533 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
7535 found_so="$dir/$libname$shrext.$ver"
7538 eval library_names=\"$acl_library_names_spec\"
7539 for f in $library_names; do
7540 if test -f "$dir/$f"; then
7549 if test "X$found_dir" = "X"; then
7550 if test -f "$dir/$libname.$acl_libext"; then
7552 found_a="$dir/$libname.$acl_libext"
7555 if test "X$found_dir" != "X"; then
7556 if test -f "$dir/$libname.la"; then
7557 found_la="$dir/$libname.la"
7562 if test "X$found_dir" != "X"; then
7567 if test "X$found_dir" != "X"; then
7568 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
7569 if test "X$found_so" != "X"; then
7570 if test "$enable_rpath" = no \
7571 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
7572 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
7573 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7576 for x in $ltrpathdirs; do
7577 if test "X$x" = "X$found_dir"; then
7582 if test -z "$haveit"; then
7583 ltrpathdirs="$ltrpathdirs $found_dir"
7585 if test "$acl_hardcode_direct" = yes; then
7586 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7588 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
7589 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7591 for x in $rpathdirs; do
7592 if test "X$x" = "X$found_dir"; then
7597 if test -z "$haveit"; then
7598 rpathdirs="$rpathdirs $found_dir"
7602 for x in $LDFLAGS $LIBINTL; do
7604 acl_save_prefix="$prefix"
7605 prefix="$acl_final_prefix"
7606 acl_save_exec_prefix="$exec_prefix"
7607 exec_prefix="$acl_final_exec_prefix"
7609 exec_prefix="$acl_save_exec_prefix"
7610 prefix="$acl_save_prefix"
7612 if test "X$x" = "X-L$found_dir"; then
7617 if test -z "$haveit"; then
7618 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
7620 if test "$acl_hardcode_minus_L" != no; then
7621 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7623 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
7629 if test "X$found_a" != "X"; then
7630 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
7632 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
7635 additional_includedir=
7636 case "$found_dir" in
7637 */$acl_libdirstem | */$acl_libdirstem/)
7638 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
7639 if test "$name" = 'intl'; then
7640 LIBINTL_PREFIX="$basedir"
7642 additional_includedir="$basedir/include"
7644 */$acl_libdirstem2 | */$acl_libdirstem2/)
7645 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
7646 if test "$name" = 'intl'; then
7647 LIBINTL_PREFIX="$basedir"
7649 additional_includedir="$basedir/include"
7652 if test "X$additional_includedir" != "X"; then
7653 if test "X$additional_includedir" != "X/usr/include"; then
7655 if test "X$additional_includedir" = "X/usr/local/include"; then
7656 if test -n "$GCC"; then
7658 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7662 if test -z "$haveit"; then
7663 for x in $CPPFLAGS $INCINTL; do
7665 acl_save_prefix="$prefix"
7666 prefix="$acl_final_prefix"
7667 acl_save_exec_prefix="$exec_prefix"
7668 exec_prefix="$acl_final_exec_prefix"
7670 exec_prefix="$acl_save_exec_prefix"
7671 prefix="$acl_save_prefix"
7673 if test "X$x" = "X-I$additional_includedir"; then
7678 if test -z "$haveit"; then
7679 if test -d "$additional_includedir"; then
7680 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
7686 if test -n "$found_la"; then
7687 save_libdir="$libdir"
7689 */* | *\\*) . "$found_la" ;;
7690 *) . "./$found_la" ;;
7692 libdir="$save_libdir"
7693 for dep in $dependency_libs; do
7696 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
7697 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
7698 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
7700 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
7701 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
7702 if test -n "$GCC"; then
7704 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7708 if test -z "$haveit"; then
7710 for x in $LDFLAGS $LIBINTL; do
7712 acl_save_prefix="$prefix"
7713 prefix="$acl_final_prefix"
7714 acl_save_exec_prefix="$exec_prefix"
7715 exec_prefix="$acl_final_exec_prefix"
7717 exec_prefix="$acl_save_exec_prefix"
7718 prefix="$acl_save_prefix"
7720 if test "X$x" = "X-L$additional_libdir"; then
7725 if test -z "$haveit"; then
7726 if test -d "$additional_libdir"; then
7727 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
7731 for x in $LDFLAGS $LTLIBINTL; do
7733 acl_save_prefix="$prefix"
7734 prefix="$acl_final_prefix"
7735 acl_save_exec_prefix="$exec_prefix"
7736 exec_prefix="$acl_final_exec_prefix"
7738 exec_prefix="$acl_save_exec_prefix"
7739 prefix="$acl_save_prefix"
7741 if test "X$x" = "X-L$additional_libdir"; then
7746 if test -z "$haveit"; then
7747 if test -d "$additional_libdir"; then
7748 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
7755 dir=`echo "X$dep" | sed -e 's/^X-R//'`
7756 if test "$enable_rpath" != no; then
7758 for x in $rpathdirs; do
7759 if test "X$x" = "X$dir"; then
7764 if test -z "$haveit"; then
7765 rpathdirs="$rpathdirs $dir"
7768 for x in $ltrpathdirs; do
7769 if test "X$x" = "X$dir"; then
7774 if test -z "$haveit"; then
7775 ltrpathdirs="$ltrpathdirs $dir"
7780 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
7783 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7786 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
7787 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
7793 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
7794 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
7800 if test "X$rpathdirs" != "X"; then
7801 if test -n "$acl_hardcode_libdir_separator"; then
7803 for found_dir in $rpathdirs; do
7804 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
7806 acl_save_libdir="$libdir"
7808 eval flag=\"$acl_hardcode_libdir_flag_spec\"
7809 libdir="$acl_save_libdir"
7810 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
7812 for found_dir in $rpathdirs; do
7813 acl_save_libdir="$libdir"
7815 eval flag=\"$acl_hardcode_libdir_flag_spec\"
7816 libdir="$acl_save_libdir"
7817 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
7821 if test "X$ltrpathdirs" != "X"; then
7822 for found_dir in $ltrpathdirs; do
7823 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
7832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
7833 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
7834 if eval \${$gt_func_gnugettext_libintl+:} false; then :
7835 $as_echo_n "(cached) " >&6
7837 gt_save_CPPFLAGS="$CPPFLAGS"
7838 CPPFLAGS="$CPPFLAGS $INCINTL"
7839 gt_save_LIBS="$LIBS"
7840 LIBS="$LIBS $LIBINTL"
7841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7842 /* end confdefs.h. */
7844 #include <libintl.h>
7845 $gt_revision_test_code
7846 extern int _nl_msg_cat_cntr;
7851 const char *_nl_expand_alias (const char *);
7857 bindtextdomain ("", "");
7858 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
7864 if ac_fn_c_try_link "$LINENO"; then :
7865 eval "$gt_func_gnugettext_libintl=yes"
7867 eval "$gt_func_gnugettext_libintl=no"
7869 rm -f core conftest.err conftest.$ac_objext \
7870 conftest$ac_exeext conftest.$ac_ext
7871 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
7872 LIBS="$LIBS $LIBICONV"
7873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7874 /* end confdefs.h. */
7876 #include <libintl.h>
7877 $gt_revision_test_code
7878 extern int _nl_msg_cat_cntr;
7883 const char *_nl_expand_alias (const char *);
7889 bindtextdomain ("", "");
7890 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
7896 if ac_fn_c_try_link "$LINENO"; then :
7897 LIBINTL="$LIBINTL $LIBICONV"
7898 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
7899 eval "$gt_func_gnugettext_libintl=yes"
7902 rm -f core conftest.err conftest.$ac_objext \
7903 conftest$ac_exeext conftest.$ac_ext
7905 CPPFLAGS="$gt_save_CPPFLAGS"
7906 LIBS="$gt_save_LIBS"
7908 eval ac_res=\$$gt_func_gnugettext_libintl
7909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7910 $as_echo "$ac_res" >&6; }
7913 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
7914 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
7915 && test "$PACKAGE" != gettext-runtime \
7916 && test "$PACKAGE" != gettext-tools; }; then
7917 gt_use_preinstalled_gnugettext=yes
7926 if test -n "$INTL_MACOSX_LIBS"; then
7927 if test "$gt_use_preinstalled_gnugettext" = "yes" \
7928 || test "$nls_cv_use_gnu_gettext" = "yes"; then
7929 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
7930 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
7934 if test "$gt_use_preinstalled_gnugettext" = "yes" \
7935 || test "$nls_cv_use_gnu_gettext" = "yes"; then
7937 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
7944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
7945 $as_echo_n "checking whether to use NLS... " >&6; }
7946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
7947 $as_echo "$USE_NLS" >&6; }
7948 if test "$USE_NLS" = "yes"; then
7949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
7950 $as_echo_n "checking where the gettext function comes from... " >&6; }
7951 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
7952 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
7953 gt_source="external libintl"
7958 gt_source="included intl directory"
7960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
7961 $as_echo "$gt_source" >&6; }
7964 if test "$USE_NLS" = "yes"; then
7966 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
7967 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
7968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
7969 $as_echo_n "checking how to link with libintl... " >&6; }
7970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
7971 $as_echo "$LIBINTL" >&6; }
7973 for element in $INCINTL; do
7975 for x in $CPPFLAGS; do
7977 acl_save_prefix="$prefix"
7978 prefix="$acl_final_prefix"
7979 acl_save_exec_prefix="$exec_prefix"
7980 exec_prefix="$acl_final_exec_prefix"
7982 exec_prefix="$acl_save_exec_prefix"
7983 prefix="$acl_save_prefix"
7985 if test "X$x" = "X$element"; then
7990 if test -z "$haveit"; then
7991 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7998 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
8001 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
8018 # This test must come as early as possible after the compiler configuration
8019 # tests, because the choice of the file model can (in principle) affect
8020 # whether functions and headers are available, whether they work, etc.
8021 # Check whether --enable-largefile was given.
8022 if test "${enable_largefile+set}" = set; then :
8023 enableval=$enable_largefile;
8026 if test "$enable_largefile" != no; then
8028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
8029 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
8030 if ${ac_cv_sys_largefile_CC+:} false; then :
8031 $as_echo_n "(cached) " >&6
8033 ac_cv_sys_largefile_CC=no
8034 if test "$GCC" != yes; then
8037 # IRIX 6.2 and later do not support large files by default,
8038 # so use the C compiler's -n32 option if that helps.
8039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8040 /* end confdefs.h. */
8041 #include <sys/types.h>
8042 /* Check that off_t can represent 2**63 - 1 correctly.
8043 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8044 since some C++ compilers masquerading as C compilers
8045 incorrectly reject 9223372036854775807. */
8046 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
8047 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8048 && LARGE_OFF_T % 2147483647 == 1)
8058 if ac_fn_c_try_compile "$LINENO"; then :
8061 rm -f core conftest.err conftest.$ac_objext
8063 if ac_fn_c_try_compile "$LINENO"; then :
8064 ac_cv_sys_largefile_CC=' -n32'; break
8066 rm -f core conftest.err conftest.$ac_objext
8070 rm -f conftest.$ac_ext
8073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
8074 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
8075 if test "$ac_cv_sys_largefile_CC" != no; then
8076 CC=$CC$ac_cv_sys_largefile_CC
8079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
8080 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
8081 if ${ac_cv_sys_file_offset_bits+:} false; then :
8082 $as_echo_n "(cached) " >&6
8085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8086 /* end confdefs.h. */
8087 #include <sys/types.h>
8088 /* Check that off_t can represent 2**63 - 1 correctly.
8089 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8090 since some C++ compilers masquerading as C compilers
8091 incorrectly reject 9223372036854775807. */
8092 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
8093 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8094 && LARGE_OFF_T % 2147483647 == 1)
8104 if ac_fn_c_try_compile "$LINENO"; then :
8105 ac_cv_sys_file_offset_bits=no; break
8107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8109 /* end confdefs.h. */
8110 #define _FILE_OFFSET_BITS 64
8111 #include <sys/types.h>
8112 /* Check that off_t can represent 2**63 - 1 correctly.
8113 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8114 since some C++ compilers masquerading as C compilers
8115 incorrectly reject 9223372036854775807. */
8116 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
8117 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8118 && LARGE_OFF_T % 2147483647 == 1)
8128 if ac_fn_c_try_compile "$LINENO"; then :
8129 ac_cv_sys_file_offset_bits=64; break
8131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8132 ac_cv_sys_file_offset_bits=unknown
8136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
8137 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
8138 case $ac_cv_sys_file_offset_bits in #(
8141 cat >>confdefs.h <<_ACEOF
8142 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
8147 if test $ac_cv_sys_file_offset_bits = unknown; then
8148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
8149 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
8150 if ${ac_cv_sys_large_files+:} false; then :
8151 $as_echo_n "(cached) " >&6
8154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8155 /* end confdefs.h. */
8156 #include <sys/types.h>
8157 /* Check that off_t can represent 2**63 - 1 correctly.
8158 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8159 since some C++ compilers masquerading as C compilers
8160 incorrectly reject 9223372036854775807. */
8161 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
8162 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8163 && LARGE_OFF_T % 2147483647 == 1)
8173 if ac_fn_c_try_compile "$LINENO"; then :
8174 ac_cv_sys_large_files=no; break
8176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8178 /* end confdefs.h. */
8179 #define _LARGE_FILES 1
8180 #include <sys/types.h>
8181 /* Check that off_t can represent 2**63 - 1 correctly.
8182 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8183 since some C++ compilers masquerading as C compilers
8184 incorrectly reject 9223372036854775807. */
8185 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
8186 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8187 && LARGE_OFF_T % 2147483647 == 1)
8197 if ac_fn_c_try_compile "$LINENO"; then :
8198 ac_cv_sys_large_files=1; break
8200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8201 ac_cv_sys_large_files=unknown
8205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
8206 $as_echo "$ac_cv_sys_large_files" >&6; }
8207 case $ac_cv_sys_large_files in #(
8210 cat >>confdefs.h <<_ACEOF
8211 #define _LARGE_FILES $ac_cv_sys_large_files
8222 # Checks for libraries.
8223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getpwnam" >&5
8224 $as_echo_n "checking for library containing getpwnam... " >&6; }
8225 if ${ac_cv_search_getpwnam+:} false; then :
8226 $as_echo_n "(cached) " >&6
8228 ac_func_search_save_LIBS=$LIBS
8229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8230 /* end confdefs.h. */
8232 /* Override any GCC internal prototype to avoid an error.
8233 Use char because int might match the return type of a GCC
8234 builtin and then its argument prototype would still apply. */
8247 for ac_lib in '' sun; do
8248 if test -z "$ac_lib"; then
8249 ac_res="none required"
8252 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8254 if ac_fn_c_try_link "$LINENO"; then :
8255 ac_cv_search_getpwnam=$ac_res
8257 rm -f core conftest.err conftest.$ac_objext \
8259 if ${ac_cv_search_getpwnam+:} false; then :
8263 if ${ac_cv_search_getpwnam+:} false; then :
8266 ac_cv_search_getpwnam=no
8269 LIBS=$ac_func_search_save_LIBS
8271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getpwnam" >&5
8272 $as_echo "$ac_cv_search_getpwnam" >&6; }
8273 ac_res=$ac_cv_search_getpwnam
8274 if test "$ac_res" != no; then :
8275 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8280 # Checks for header files.
8281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8282 $as_echo_n "checking for ANSI C header files... " >&6; }
8283 if ${ac_cv_header_stdc+:} false; then :
8284 $as_echo_n "(cached) " >&6
8286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8287 /* end confdefs.h. */
8301 if ac_fn_c_try_compile "$LINENO"; then :
8302 ac_cv_header_stdc=yes
8304 ac_cv_header_stdc=no
8306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8308 if test $ac_cv_header_stdc = yes; then
8309 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8311 /* end confdefs.h. */
8315 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8316 $EGREP "memchr" >/dev/null 2>&1; then :
8319 ac_cv_header_stdc=no
8325 if test $ac_cv_header_stdc = yes; then
8326 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8328 /* end confdefs.h. */
8332 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8333 $EGREP "free" >/dev/null 2>&1; then :
8336 ac_cv_header_stdc=no
8342 if test $ac_cv_header_stdc = yes; then
8343 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8344 if test "$cross_compiling" = yes; then :
8347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8348 /* end confdefs.h. */
8351 #if ((' ' & 0x0FF) == 0x020)
8352 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8353 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8355 # define ISLOWER(c) \
8356 (('a' <= (c) && (c) <= 'i') \
8357 || ('j' <= (c) && (c) <= 'r') \
8358 || ('s' <= (c) && (c) <= 'z'))
8359 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8362 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8367 for (i = 0; i < 256; i++)
8368 if (XOR (islower (i), ISLOWER (i))
8369 || toupper (i) != TOUPPER (i))
8374 if ac_fn_c_try_run "$LINENO"; then :
8377 ac_cv_header_stdc=no
8379 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8380 conftest.$ac_objext conftest.beam conftest.$ac_ext
8385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8386 $as_echo "$ac_cv_header_stdc" >&6; }
8387 if test $ac_cv_header_stdc = yes; then
8389 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8394 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8395 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
8397 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
8398 if eval \${$as_ac_Header+:} false; then :
8399 $as_echo_n "(cached) " >&6
8401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8402 /* end confdefs.h. */
8403 #include <sys/types.h>
8415 if ac_fn_c_try_compile "$LINENO"; then :
8416 eval "$as_ac_Header=yes"
8418 eval "$as_ac_Header=no"
8420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8422 eval ac_res=\$$as_ac_Header
8423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8424 $as_echo "$ac_res" >&6; }
8425 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8426 cat >>confdefs.h <<_ACEOF
8427 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8430 ac_header_dirent=$ac_hdr; break
8434 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8435 if test $ac_header_dirent = dirent.h; then
8436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
8437 $as_echo_n "checking for library containing opendir... " >&6; }
8438 if ${ac_cv_search_opendir+:} false; then :
8439 $as_echo_n "(cached) " >&6
8441 ac_func_search_save_LIBS=$LIBS
8442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8443 /* end confdefs.h. */
8445 /* Override any GCC internal prototype to avoid an error.
8446 Use char because int might match the return type of a GCC
8447 builtin and then its argument prototype would still apply. */
8460 for ac_lib in '' dir; do
8461 if test -z "$ac_lib"; then
8462 ac_res="none required"
8465 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8467 if ac_fn_c_try_link "$LINENO"; then :
8468 ac_cv_search_opendir=$ac_res
8470 rm -f core conftest.err conftest.$ac_objext \
8472 if ${ac_cv_search_opendir+:} false; then :
8476 if ${ac_cv_search_opendir+:} false; then :
8479 ac_cv_search_opendir=no
8482 LIBS=$ac_func_search_save_LIBS
8484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
8485 $as_echo "$ac_cv_search_opendir" >&6; }
8486 ac_res=$ac_cv_search_opendir
8487 if test "$ac_res" != no; then :
8488 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
8494 $as_echo_n "checking for library containing opendir... " >&6; }
8495 if ${ac_cv_search_opendir+:} false; then :
8496 $as_echo_n "(cached) " >&6
8498 ac_func_search_save_LIBS=$LIBS
8499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8500 /* end confdefs.h. */
8502 /* Override any GCC internal prototype to avoid an error.
8503 Use char because int might match the return type of a GCC
8504 builtin and then its argument prototype would still apply. */
8517 for ac_lib in '' x; do
8518 if test -z "$ac_lib"; then
8519 ac_res="none required"
8522 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8524 if ac_fn_c_try_link "$LINENO"; then :
8525 ac_cv_search_opendir=$ac_res
8527 rm -f core conftest.err conftest.$ac_objext \
8529 if ${ac_cv_search_opendir+:} false; then :
8533 if ${ac_cv_search_opendir+:} false; then :
8536 ac_cv_search_opendir=no
8539 LIBS=$ac_func_search_save_LIBS
8541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
8542 $as_echo "$ac_cv_search_opendir" >&6; }
8543 ac_res=$ac_cv_search_opendir
8544 if test "$ac_res" != no; then :
8545 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
8552 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
8553 if ${ac_cv_header_stat_broken+:} false; then :
8554 $as_echo_n "(cached) " >&6
8556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8557 /* end confdefs.h. */
8558 #include <sys/types.h>
8559 #include <sys/stat.h>
8561 #if defined S_ISBLK && defined S_IFDIR
8562 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
8565 #if defined S_ISBLK && defined S_IFCHR
8566 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
8569 #if defined S_ISLNK && defined S_IFREG
8570 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
8573 #if defined S_ISSOCK && defined S_IFREG
8574 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
8578 if ac_fn_c_try_compile "$LINENO"; then :
8579 ac_cv_header_stat_broken=no
8581 ac_cv_header_stat_broken=yes
8583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
8586 $as_echo "$ac_cv_header_stat_broken" >&6; }
8587 if test $ac_cv_header_stat_broken = yes; then
8589 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
8593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8594 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8595 if ${ac_cv_header_time+:} false; then :
8596 $as_echo_n "(cached) " >&6
8598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8599 /* end confdefs.h. */
8600 #include <sys/types.h>
8601 #include <sys/time.h>
8607 if ((struct tm *) 0)
8613 if ac_fn_c_try_compile "$LINENO"; then :
8614 ac_cv_header_time=yes
8616 ac_cv_header_time=no
8618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8621 $as_echo "$ac_cv_header_time" >&6; }
8622 if test $ac_cv_header_time = yes; then
8624 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8628 for ac_header in stdlib.h locale.h unistd.h limits.h fcntl.h string.h \
8629 memory.h sys/param.h sys/resource.h sys/time.h sys/timeb.h \
8632 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8633 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8634 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8635 cat >>confdefs.h <<_ACEOF
8636 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
8646 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
8647 if ${ac_cv_c_const+:} false; then :
8648 $as_echo_n "(cached) " >&6
8650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8651 /* end confdefs.h. */
8658 /* Ultrix mips cc rejects this sort of thing. */
8659 typedef int charset[2];
8660 const charset cs = { 0, 0 };
8661 /* SunOS 4.1.1 cc rejects this. */
8662 char const *const *pcpcc;
8664 /* NEC SVR4.0.2 mips cc rejects this. */
8665 struct point {int x, y;};
8666 static struct point const zero = {0,0};
8667 /* AIX XL C 1.02.0.0 rejects this.
8668 It does not let you subtract one const X* pointer from another in
8669 an arm of an if-expression whose if-part is not a constant
8671 const char *g = "string";
8672 pcpcc = &g + (g ? g-g : 0);
8673 /* HPUX 7.0 cc rejects these. */
8675 ppc = (char**) pcpcc;
8676 pcpcc = (char const *const *) ppc;
8677 { /* SCO 3.2v4 cc rejects this sort of thing. */
8680 char const *s = 0 ? (char *) 0 : (char const *) 0;
8685 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8687 const int *foo = &x[0];
8690 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8691 typedef const int *iptr;
8695 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
8696 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8697 struct s { int j; const int *ap[3]; } bx;
8698 struct s *b = &bx; b->j = 5;
8700 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8704 return !cs[0] && !zero.x;
8711 if ac_fn_c_try_compile "$LINENO"; then :
8716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
8719 $as_echo "$ac_cv_c_const" >&6; }
8720 if test $ac_cv_c_const = no; then
8722 $as_echo "#define const /**/" >>confdefs.h
8726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
8727 $as_echo_n "checking return type of signal handlers... " >&6; }
8728 if ${ac_cv_type_signal+:} false; then :
8729 $as_echo_n "(cached) " >&6
8731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8732 /* end confdefs.h. */
8733 #include <sys/types.h>
8739 return *(signal (0, 0)) (0) == 1;
8744 if ac_fn_c_try_compile "$LINENO"; then :
8745 ac_cv_type_signal=int
8747 ac_cv_type_signal=void
8749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
8752 $as_echo "$ac_cv_type_signal" >&6; }
8754 cat >>confdefs.h <<_ACEOF
8755 #define RETSIGTYPE $ac_cv_type_signal
8759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
8760 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
8761 if ${ac_cv_type_uid_t+:} false; then :
8762 $as_echo_n "(cached) " >&6
8764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8765 /* end confdefs.h. */
8766 #include <sys/types.h>
8769 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8770 $EGREP "uid_t" >/dev/null 2>&1; then :
8771 ac_cv_type_uid_t=yes
8778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
8779 $as_echo "$ac_cv_type_uid_t" >&6; }
8780 if test $ac_cv_type_uid_t = no; then
8782 $as_echo "#define uid_t int" >>confdefs.h
8785 $as_echo "#define gid_t int" >>confdefs.h
8789 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
8790 if test "x$ac_cv_type_pid_t" = xyes; then :
8794 cat >>confdefs.h <<_ACEOF
8800 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
8801 if test "x$ac_cv_type_off_t" = xyes; then :
8805 cat >>confdefs.h <<_ACEOF
8806 #define off_t long int
8811 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
8812 if test "x$ac_cv_type_size_t" = xyes; then :
8816 cat >>confdefs.h <<_ACEOF
8817 #define size_t unsigned int
8822 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
8823 if test "x$ac_cv_type_ssize_t" = xyes; then :
8827 cat >>confdefs.h <<_ACEOF
8834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
8835 $as_echo_n "checking for unsigned long long int... " >&6; }
8836 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
8837 $as_echo_n "(cached) " >&6
8839 ac_cv_type_unsigned_long_long_int=yes
8840 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
8841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8842 /* end confdefs.h. */
8844 /* For now, do not test the preprocessor; as of 2007 there are too many
8845 implementations with broken preprocessors. Perhaps this can
8846 be revisited in 2012. In the meantime, code should not expect
8847 #if to work with literals wider than 32 bits. */
8848 /* Test literals. */
8849 long long int ll = 9223372036854775807ll;
8850 long long int nll = -9223372036854775807LL;
8851 unsigned long long int ull = 18446744073709551615ULL;
8852 /* Test constant expressions. */
8853 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
8855 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
8861 /* Test availability of runtime routines for shift and division. */
8862 long long int llmax = 9223372036854775807ll;
8863 unsigned long long int ullmax = 18446744073709551615ull;
8864 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
8865 | (llmax / ll) | (llmax % ll)
8866 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
8867 | (ullmax / ull) | (ullmax % ull));
8873 if ac_fn_c_try_link "$LINENO"; then :
8876 ac_cv_type_unsigned_long_long_int=no
8878 rm -f core conftest.err conftest.$ac_objext \
8879 conftest$ac_exeext conftest.$ac_ext
8882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
8883 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
8884 if test $ac_cv_type_unsigned_long_long_int = yes; then
8886 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
8892 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
8893 if test "x$ac_cv_type_uintmax_t" = xyes; then :
8895 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
8898 test $ac_cv_type_unsigned_long_long_int = yes \
8899 && ac_type='unsigned long long int' \
8900 || ac_type='unsigned long int'
8902 cat >>confdefs.h <<_ACEOF
8903 #define uintmax_t $ac_type
8910 # Find out whether our struct stat returns nanosecond resolution timestamps.
8912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanoseconds field of struct stat" >&5
8913 $as_echo_n "checking for nanoseconds field of struct stat... " >&6; }
8914 if ${ac_cv_struct_st_mtim_nsec+:} false; then :
8915 $as_echo_n "(cached) " >&6
8917 ac_save_CPPFLAGS="$CPPFLAGS"
8918 ac_cv_struct_st_mtim_nsec=no
8919 # st_mtim.tv_nsec -- the usual case
8920 # st_mtim._tv_nsec -- Solaris 2.6, if
8921 # (defined _XOPEN_SOURCE && _XOPEN_SOURCE_EXTENDED == 1
8922 # && !defined __EXTENSIONS__)
8923 # st_mtim.st__tim.tv_nsec -- UnixWare 2.1.2
8924 # st_mtime_n -- AIX 5.2 and above
8925 # st_mtimespec.tv_nsec -- Darwin (Mac OSX)
8926 for ac_val in st_mtim.tv_nsec st_mtim._tv_nsec st_mtim.st__tim.tv_nsec st_mtime_n st_mtimespec.tv_nsec; do
8927 CPPFLAGS="$ac_save_CPPFLAGS -DST_MTIM_NSEC=$ac_val"
8928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8929 /* end confdefs.h. */
8930 #include <sys/types.h>
8931 #include <sys/stat.h>
8936 struct stat s; s.ST_MTIM_NSEC;
8941 if ac_fn_c_try_compile "$LINENO"; then :
8942 ac_cv_struct_st_mtim_nsec=$ac_val; break
8944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8946 CPPFLAGS="$ac_save_CPPFLAGS"
8949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_st_mtim_nsec" >&5
8950 $as_echo "$ac_cv_struct_st_mtim_nsec" >&6; }
8952 if test $ac_cv_struct_st_mtim_nsec != no; then
8954 cat >>confdefs.h <<_ACEOF
8955 #define ST_MTIM_NSEC $ac_cv_struct_st_mtim_nsec
8961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use high resolution file timestamps" >&5
8962 $as_echo_n "checking whether to use high resolution file timestamps... " >&6; }
8963 if ${make_cv_file_timestamp_hi_res+:} false; then :
8964 $as_echo_n "(cached) " >&6
8966 make_cv_file_timestamp_hi_res=no
8967 if test "$ac_cv_struct_st_mtim_nsec" != no; then :
8968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8969 /* end confdefs.h. */
8972 # include <inttypes.h>
8977 char a[0x7fffffff < (uintmax_t)-1 >> 30 ? 1 : -1];
8982 if ac_fn_c_try_compile "$LINENO"; then :
8983 make_cv_file_timestamp_hi_res=yes
8985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $make_cv_file_timestamp_hi_res" >&5
8990 $as_echo "$make_cv_file_timestamp_hi_res" >&6; }
8991 if test "$make_cv_file_timestamp_hi_res" = yes; then :
8997 cat >>confdefs.h <<_ACEOF
8998 #define FILE_TIMESTAMP_HI_RES $val
9002 if test "$make_cv_file_timestamp_hi_res" = yes; then :
9003 # Solaris 2.5.1 needs -lposix4 to get the clock_gettime function.
9004 # Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4.
9005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
9006 $as_echo_n "checking for library containing clock_gettime... " >&6; }
9007 if ${ac_cv_search_clock_gettime+:} false; then :
9008 $as_echo_n "(cached) " >&6
9010 ac_func_search_save_LIBS=$LIBS
9011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9012 /* end confdefs.h. */
9014 /* Override any GCC internal prototype to avoid an error.
9015 Use char because int might match the return type of a GCC
9016 builtin and then its argument prototype would still apply. */
9020 char clock_gettime ();
9024 return clock_gettime ();
9029 for ac_lib in '' rt posix4; do
9030 if test -z "$ac_lib"; then
9031 ac_res="none required"
9034 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9036 if ac_fn_c_try_link "$LINENO"; then :
9037 ac_cv_search_clock_gettime=$ac_res
9039 rm -f core conftest.err conftest.$ac_objext \
9041 if ${ac_cv_search_clock_gettime+:} false; then :
9045 if ${ac_cv_search_clock_gettime+:} false; then :
9048 ac_cv_search_clock_gettime=no
9051 LIBS=$ac_func_search_save_LIBS
9053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
9054 $as_echo "$ac_cv_search_clock_gettime" >&6; }
9055 ac_res=$ac_cv_search_clock_gettime
9056 if test "$ac_res" != no; then :
9057 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9061 if test "$ac_cv_search_clock_gettime" != no; then :
9063 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
9070 # Check for DOS-style pathnames.
9072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system uses MSDOS-style paths" >&5
9073 $as_echo_n "checking whether system uses MSDOS-style paths... " >&6; }
9074 if ${ac_cv_dos_paths+:} false; then :
9075 $as_echo_n "(cached) " >&6
9078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9079 /* end confdefs.h. */
9081 #if !defined _WIN32 && !defined __WIN32__ && !defined __MSDOS__ && !defined __EMX__ && !defined __MSYS__ && !defined __CYGWIN__
9082 neither MSDOS nor Windows nor OS2
9093 if ac_fn_c_try_compile "$LINENO"; then :
9098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_dos_paths" >&5
9101 $as_echo "$ac_cv_dos_paths" >&6; }
9103 if test x"$ac_cv_dos_paths" = xyes; then :
9105 cat >>confdefs.h <<_ACEOF
9106 #define HAVE_DOS_PATHS 1
9112 # See if we have a standard version of gettimeofday(). Since actual
9113 # implementations can differ, just make sure we have the most common
9115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for standard gettimeofday" >&5
9116 $as_echo_n "checking for standard gettimeofday... " >&6; }
9117 if ${ac_cv_func_gettimeofday+:} false; then :
9118 $as_echo_n "(cached) " >&6
9120 ac_cv_func_gettimeofday=no
9121 if test "$cross_compiling" = yes; then :
9122 ac_cv_func_gettimeofday="no (cross-compiling)"
9124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9125 /* end confdefs.h. */
9126 #include <sys/time.h>
9129 struct timeval t; t.tv_sec = -1; t.tv_usec = -1;
9130 exit (gettimeofday (&t, 0) != 0
9131 || t.tv_sec < 0 || t.tv_usec < 0);
9134 if ac_fn_c_try_run "$LINENO"; then :
9135 ac_cv_func_gettimeofday=yes
9137 ac_cv_func_gettimeofday=no
9139 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9140 conftest.$ac_objext conftest.beam conftest.$ac_ext
9144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_gettimeofday" >&5
9145 $as_echo "$ac_cv_func_gettimeofday" >&6; }
9146 if test "$ac_cv_func_gettimeofday" = yes; then :
9148 $as_echo "#define HAVE_GETTIMEOFDAY 1" >>confdefs.h
9153 for ac_func in strdup strndup mkstemp mktemp fdopen fileno \
9154 dup dup2 getcwd realpath sigsetmask sigaction \
9155 getgroups seteuid setegid setlinebuf setreuid setregid \
9156 getrlimit setrlimit setvbuf pipe strerror strsignal \
9157 lstat readlink atexit isatty ttyname pselect
9159 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9160 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9161 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9162 cat >>confdefs.h <<_ACEOF
9163 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9170 # We need to check declarations, not just existence, because on Tru64 this
9171 # function is not declared without special flags, which themselves cause
9172 # other problems. We'll just use our own.
9173 ac_fn_c_check_decl "$LINENO" "bsd_signal" "ac_cv_have_decl_bsd_signal" "#define _GNU_SOURCE 1
9176 if test "x$ac_cv_have_decl_bsd_signal" = xyes; then :
9182 cat >>confdefs.h <<_ACEOF
9183 #define HAVE_DECL_BSD_SIGNAL $ac_have_decl
9187 for ac_header in vfork.h
9189 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
9190 if test "x$ac_cv_header_vfork_h" = xyes; then :
9191 cat >>confdefs.h <<_ACEOF
9192 #define HAVE_VFORK_H 1
9199 for ac_func in fork vfork
9201 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9202 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9203 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9204 cat >>confdefs.h <<_ACEOF
9205 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9211 if test "x$ac_cv_func_fork" = xyes; then
9212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
9213 $as_echo_n "checking for working fork... " >&6; }
9214 if ${ac_cv_func_fork_works+:} false; then :
9215 $as_echo_n "(cached) " >&6
9217 if test "$cross_compiling" = yes; then :
9218 ac_cv_func_fork_works=cross
9220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9221 /* end confdefs.h. */
9222 $ac_includes_default
9227 /* By Ruediger Kuhlmann. */
9234 if ac_fn_c_try_run "$LINENO"; then :
9235 ac_cv_func_fork_works=yes
9237 ac_cv_func_fork_works=no
9239 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9240 conftest.$ac_objext conftest.beam conftest.$ac_ext
9244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
9245 $as_echo "$ac_cv_func_fork_works" >&6; }
9248 ac_cv_func_fork_works=$ac_cv_func_fork
9250 if test "x$ac_cv_func_fork_works" = xcross; then
9252 *-*-amigaos* | *-*-msdosdjgpp*)
9253 # Override, as these systems have only a dummy fork() stub
9254 ac_cv_func_fork_works=no
9257 ac_cv_func_fork_works=yes
9260 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9261 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9263 ac_cv_func_vfork_works=$ac_cv_func_vfork
9264 if test "x$ac_cv_func_vfork" = xyes; then
9265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
9266 $as_echo_n "checking for working vfork... " >&6; }
9267 if ${ac_cv_func_vfork_works+:} false; then :
9268 $as_echo_n "(cached) " >&6
9270 if test "$cross_compiling" = yes; then :
9271 ac_cv_func_vfork_works=cross
9273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9274 /* end confdefs.h. */
9275 /* Thanks to Paul Eggert for this test. */
9276 $ac_includes_default
9277 #include <sys/wait.h>
9281 /* On some sparc systems, changes by the child to local and incoming
9282 argument registers are propagated back to the parent. The compiler
9283 is told about this with #include <vfork.h>, but some compilers
9284 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
9285 static variable whose address is put into a register that is
9286 clobbered by the vfork. */
9289 sparc_address_test (int arg)
9291 sparc_address_test (arg) int arg;
9312 pid_t parent = getpid ();
9315 sparc_address_test (0);
9320 /* Here is another test for sparc vfork register problems. This
9321 test uses lots of local variables, at least as many local
9322 variables as main has allocated so far including compiler
9323 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
9324 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
9325 reuse the register of parent for one of the local variables,
9326 since it will think that parent can't possibly be used any more
9327 in this routine. Assigning to the local variable will thus
9328 munge parent in the parent process. */
9330 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
9331 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
9332 /* Convince the compiler that p..p7 are live; otherwise, it might
9333 use the same hardware register for all 8 local variables. */
9334 if (p != p1 || p != p2 || p != p3 || p != p4
9335 || p != p5 || p != p6 || p != p7)
9338 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
9339 from child file descriptors. If the child closes a descriptor
9340 before it execs or exits, this munges the parent's descriptor
9341 as well. Test for this by closing stdout in the child. */
9342 _exit(close(fileno(stdout)) != 0);
9347 while (wait(&status) != child)
9350 /* Was there some problem with vforking? */
9353 /* Did the child fail? (This shouldn't happen.) */
9356 /* Did the vfork/compiler bug occur? */
9357 || parent != getpid()
9359 /* Did the file descriptor bug occur? */
9360 || fstat(fileno(stdout), &st) != 0
9365 if ac_fn_c_try_run "$LINENO"; then :
9366 ac_cv_func_vfork_works=yes
9368 ac_cv_func_vfork_works=no
9370 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9371 conftest.$ac_objext conftest.beam conftest.$ac_ext
9375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
9376 $as_echo "$ac_cv_func_vfork_works" >&6; }
9379 if test "x$ac_cv_func_fork_works" = xcross; then
9380 ac_cv_func_vfork_works=$ac_cv_func_vfork
9381 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
9382 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
9385 if test "x$ac_cv_func_vfork_works" = xyes; then
9387 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
9391 $as_echo "#define vfork fork" >>confdefs.h
9394 if test "x$ac_cv_func_fork_works" = xyes; then
9396 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
9401 if ${ac_cv_func_setvbuf_reversed+:} false; then :
9402 $as_echo_n "(cached) " >&6
9404 ac_cv_func_setvbuf_reversed=no
9409 # Rumor has it that strcasecmp lives in -lresolv on some odd systems.
9410 # It doesn't hurt much to use our own if we can't find it so I don't
9411 # make the effort here.
9412 for ac_func in strcasecmp strncasecmp strcmpi strncmpi stricmp strnicmp
9414 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9415 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9416 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9417 cat >>confdefs.h <<_ACEOF
9418 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9425 # strcoll() is used by the GNU glob library
9426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strcoll" >&5
9427 $as_echo_n "checking for working strcoll... " >&6; }
9428 if ${ac_cv_func_strcoll_works+:} false; then :
9429 $as_echo_n "(cached) " >&6
9431 if test "$cross_compiling" = yes; then :
9432 ac_cv_func_strcoll_works=no
9434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9435 /* end confdefs.h. */
9436 $ac_includes_default
9440 return (strcoll ("abc", "def") >= 0 ||
9441 strcoll ("ABC", "DEF") >= 0 ||
9442 strcoll ("123", "456") >= 0)
9447 if ac_fn_c_try_run "$LINENO"; then :
9448 ac_cv_func_strcoll_works=yes
9450 ac_cv_func_strcoll_works=no
9452 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9453 conftest.$ac_objext conftest.beam conftest.$ac_ext
9457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strcoll_works" >&5
9458 $as_echo "$ac_cv_func_strcoll_works" >&6; }
9459 if test $ac_cv_func_strcoll_works = yes; then
9461 $as_echo "#define HAVE_STRCOLL 1" >>confdefs.h
9466 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
9467 # for constant arguments. Useless!
9468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
9469 $as_echo_n "checking for working alloca.h... " >&6; }
9470 if ${ac_cv_working_alloca_h+:} false; then :
9471 $as_echo_n "(cached) " >&6
9473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9474 /* end confdefs.h. */
9479 char *p = (char *) alloca (2 * sizeof (int));
9485 if ac_fn_c_try_link "$LINENO"; then :
9486 ac_cv_working_alloca_h=yes
9488 ac_cv_working_alloca_h=no
9490 rm -f core conftest.err conftest.$ac_objext \
9491 conftest$ac_exeext conftest.$ac_ext
9493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
9494 $as_echo "$ac_cv_working_alloca_h" >&6; }
9495 if test $ac_cv_working_alloca_h = yes; then
9497 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
9501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
9502 $as_echo_n "checking for alloca... " >&6; }
9503 if ${ac_cv_func_alloca_works+:} false; then :
9504 $as_echo_n "(cached) " >&6
9506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9507 /* end confdefs.h. */
9509 # define alloca __builtin_alloca
9512 # include <malloc.h>
9513 # define alloca _alloca
9515 # ifdef HAVE_ALLOCA_H
9516 # include <alloca.h>
9521 # ifndef alloca /* predefined by HP cc +Olibcalls */
9522 void *alloca (size_t);
9532 char *p = (char *) alloca (1);
9538 if ac_fn_c_try_link "$LINENO"; then :
9539 ac_cv_func_alloca_works=yes
9541 ac_cv_func_alloca_works=no
9543 rm -f core conftest.err conftest.$ac_objext \
9544 conftest$ac_exeext conftest.$ac_ext
9546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
9547 $as_echo "$ac_cv_func_alloca_works" >&6; }
9549 if test $ac_cv_func_alloca_works = yes; then
9551 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
9554 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
9555 # that cause trouble. Some versions do not even contain alloca or
9556 # contain a buggy version. If you still want to use their alloca,
9557 # use ar to extract alloca.o from them instead of compiling alloca.c.
9559 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
9561 $as_echo "#define C_ALLOCA 1" >>confdefs.h
9564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
9565 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
9566 if ${ac_cv_os_cray+:} false; then :
9567 $as_echo_n "(cached) " >&6
9569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9570 /* end confdefs.h. */
9571 #if defined CRAY && ! defined CRAY2
9578 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9579 $EGREP "webecray" >/dev/null 2>&1; then :
9587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
9588 $as_echo "$ac_cv_os_cray" >&6; }
9589 if test $ac_cv_os_cray = yes; then
9590 for ac_func in _getb67 GETB67 getb67; do
9591 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9592 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9593 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9595 cat >>confdefs.h <<_ACEOF
9596 #define CRAY_STACKSEG_END $ac_func
9605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
9606 $as_echo_n "checking stack direction for C alloca... " >&6; }
9607 if ${ac_cv_c_stack_direction+:} false; then :
9608 $as_echo_n "(cached) " >&6
9610 if test "$cross_compiling" = yes; then :
9611 ac_cv_c_stack_direction=0
9613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9614 /* end confdefs.h. */
9615 $ac_includes_default
9617 find_stack_direction (int *addr, int depth)
9622 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
9623 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
9628 main (int argc, char **argv)
9630 return find_stack_direction (0, argc + !argv + 20) < 0;
9633 if ac_fn_c_try_run "$LINENO"; then :
9634 ac_cv_c_stack_direction=1
9636 ac_cv_c_stack_direction=-1
9638 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9639 conftest.$ac_objext conftest.beam conftest.$ac_ext
9643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
9644 $as_echo "$ac_cv_c_stack_direction" >&6; }
9645 cat >>confdefs.h <<_ACEOF
9646 #define STACK_DIRECTION $ac_cv_c_stack_direction
9652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
9653 $as_echo_n "checking whether closedir returns void... " >&6; }
9654 if ${ac_cv_func_closedir_void+:} false; then :
9655 $as_echo_n "(cached) " >&6
9657 if test "$cross_compiling" = yes; then :
9658 ac_cv_func_closedir_void=yes
9660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9661 /* end confdefs.h. */
9662 $ac_includes_default
9663 #include <$ac_header_dirent>
9671 return closedir (opendir (".")) != 0;
9676 if ac_fn_c_try_run "$LINENO"; then :
9677 ac_cv_func_closedir_void=no
9679 ac_cv_func_closedir_void=yes
9681 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9682 conftest.$ac_objext conftest.beam conftest.$ac_ext
9686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
9687 $as_echo "$ac_cv_func_closedir_void" >&6; }
9688 if test $ac_cv_func_closedir_void = yes; then
9690 $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
9695 # See if the user wants to add (or not) GNU Guile support
9703 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
9704 if test -n "$ac_tool_prefix"; then
9705 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
9706 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
9707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9708 $as_echo_n "checking for $ac_word... " >&6; }
9709 if ${ac_cv_path_PKG_CONFIG+:} false; then :
9710 $as_echo_n "(cached) " >&6
9714 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9721 test -z "$as_dir" && as_dir=.
9722 for ac_exec_ext in '' $ac_executable_extensions; do
9723 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9724 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9725 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9735 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9736 if test -n "$PKG_CONFIG"; then
9737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9738 $as_echo "$PKG_CONFIG" >&6; }
9740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9741 $as_echo "no" >&6; }
9746 if test -z "$ac_cv_path_PKG_CONFIG"; then
9747 ac_pt_PKG_CONFIG=$PKG_CONFIG
9748 # Extract the first word of "pkg-config", so it can be a program name with args.
9749 set dummy pkg-config; ac_word=$2
9750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9751 $as_echo_n "checking for $ac_word... " >&6; }
9752 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
9753 $as_echo_n "(cached) " >&6
9755 case $ac_pt_PKG_CONFIG in
9757 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
9760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9764 test -z "$as_dir" && as_dir=.
9765 for ac_exec_ext in '' $ac_executable_extensions; do
9766 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9767 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9778 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
9779 if test -n "$ac_pt_PKG_CONFIG"; then
9780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
9781 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
9783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9784 $as_echo "no" >&6; }
9787 if test "x$ac_pt_PKG_CONFIG" = x; then
9790 case $cross_compiling:$ac_tool_warned in
9792 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9793 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9794 ac_tool_warned=yes ;;
9796 PKG_CONFIG=$ac_pt_PKG_CONFIG
9799 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
9803 if test -n "$PKG_CONFIG"; then
9804 _pkg_min_version=0.9.0
9805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
9806 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
9807 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
9808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9809 $as_echo "yes" >&6; }
9811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9812 $as_echo "no" >&6; }
9817 # Check whether --with-guile was given.
9818 if test "${with_guile+set}" = set; then :
9819 withval=$with_guile;
9823 # For some strange reason, at least on Ubuntu, each version of Guile
9824 # comes with it's own PC file so we have to specify them as individual
9826 if test "x$with_guile" != xno; then :
9829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GUILE" >&5
9830 $as_echo_n "checking for GUILE... " >&6; }
9832 if test -n "$GUILE_CFLAGS"; then
9833 pkg_cv_GUILE_CFLAGS="$GUILE_CFLAGS"
9834 elif test -n "$PKG_CONFIG"; then
9835 if test -n "$PKG_CONFIG" && \
9836 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"guile-2.0\""; } >&5
9837 ($PKG_CONFIG --exists --print-errors "guile-2.0") 2>&5
9839 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9840 test $ac_status = 0; }; then
9841 pkg_cv_GUILE_CFLAGS=`$PKG_CONFIG --cflags "guile-2.0" 2>/dev/null`
9842 test "x$?" != "x0" && pkg_failed=yes
9849 if test -n "$GUILE_LIBS"; then
9850 pkg_cv_GUILE_LIBS="$GUILE_LIBS"
9851 elif test -n "$PKG_CONFIG"; then
9852 if test -n "$PKG_CONFIG" && \
9853 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"guile-2.0\""; } >&5
9854 ($PKG_CONFIG --exists --print-errors "guile-2.0") 2>&5
9856 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9857 test $ac_status = 0; }; then
9858 pkg_cv_GUILE_LIBS=`$PKG_CONFIG --libs "guile-2.0" 2>/dev/null`
9859 test "x$?" != "x0" && pkg_failed=yes
9869 if test $pkg_failed = yes; then
9870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9871 $as_echo "no" >&6; }
9873 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9874 _pkg_short_errors_supported=yes
9876 _pkg_short_errors_supported=no
9878 if test $_pkg_short_errors_supported = yes; then
9879 GUILE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "guile-2.0" 2>&1`
9881 GUILE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "guile-2.0" 2>&1`
9883 # Put the nasty error message in config.log where it belongs
9884 echo "$GUILE_PKG_ERRORS" >&5
9888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GUILE" >&5
9889 $as_echo_n "checking for GUILE... " >&6; }
9891 if test -n "$GUILE_CFLAGS"; then
9892 pkg_cv_GUILE_CFLAGS="$GUILE_CFLAGS"
9893 elif test -n "$PKG_CONFIG"; then
9894 if test -n "$PKG_CONFIG" && \
9895 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"guile-1.8\""; } >&5
9896 ($PKG_CONFIG --exists --print-errors "guile-1.8") 2>&5
9898 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9899 test $ac_status = 0; }; then
9900 pkg_cv_GUILE_CFLAGS=`$PKG_CONFIG --cflags "guile-1.8" 2>/dev/null`
9901 test "x$?" != "x0" && pkg_failed=yes
9908 if test -n "$GUILE_LIBS"; then
9909 pkg_cv_GUILE_LIBS="$GUILE_LIBS"
9910 elif test -n "$PKG_CONFIG"; then
9911 if test -n "$PKG_CONFIG" && \
9912 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"guile-1.8\""; } >&5
9913 ($PKG_CONFIG --exists --print-errors "guile-1.8") 2>&5
9915 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9916 test $ac_status = 0; }; then
9917 pkg_cv_GUILE_LIBS=`$PKG_CONFIG --libs "guile-1.8" 2>/dev/null`
9918 test "x$?" != "x0" && pkg_failed=yes
9928 if test $pkg_failed = yes; then
9929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9930 $as_echo "no" >&6; }
9932 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9933 _pkg_short_errors_supported=yes
9935 _pkg_short_errors_supported=no
9937 if test $_pkg_short_errors_supported = yes; then
9938 GUILE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "guile-1.8" 2>&1`
9940 GUILE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "guile-1.8" 2>&1`
9942 # Put the nasty error message in config.log where it belongs
9943 echo "$GUILE_PKG_ERRORS" >&5
9946 elif test $pkg_failed = untried; then
9947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9948 $as_echo "no" >&6; }
9951 GUILE_CFLAGS=$pkg_cv_GUILE_CFLAGS
9952 GUILE_LIBS=$pkg_cv_GUILE_LIBS
9953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9954 $as_echo "yes" >&6; }
9957 elif test $pkg_failed = untried; then
9958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9959 $as_echo "no" >&6; }
9962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GUILE" >&5
9963 $as_echo_n "checking for GUILE... " >&6; }
9965 if test -n "$GUILE_CFLAGS"; then
9966 pkg_cv_GUILE_CFLAGS="$GUILE_CFLAGS"
9967 elif test -n "$PKG_CONFIG"; then
9968 if test -n "$PKG_CONFIG" && \
9969 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"guile-1.8\""; } >&5
9970 ($PKG_CONFIG --exists --print-errors "guile-1.8") 2>&5
9972 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9973 test $ac_status = 0; }; then
9974 pkg_cv_GUILE_CFLAGS=`$PKG_CONFIG --cflags "guile-1.8" 2>/dev/null`
9975 test "x$?" != "x0" && pkg_failed=yes
9982 if test -n "$GUILE_LIBS"; then
9983 pkg_cv_GUILE_LIBS="$GUILE_LIBS"
9984 elif test -n "$PKG_CONFIG"; then
9985 if test -n "$PKG_CONFIG" && \
9986 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"guile-1.8\""; } >&5
9987 ($PKG_CONFIG --exists --print-errors "guile-1.8") 2>&5
9989 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9990 test $ac_status = 0; }; then
9991 pkg_cv_GUILE_LIBS=`$PKG_CONFIG --libs "guile-1.8" 2>/dev/null`
9992 test "x$?" != "x0" && pkg_failed=yes
10002 if test $pkg_failed = yes; then
10003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10004 $as_echo "no" >&6; }
10006 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10007 _pkg_short_errors_supported=yes
10009 _pkg_short_errors_supported=no
10011 if test $_pkg_short_errors_supported = yes; then
10012 GUILE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "guile-1.8" 2>&1`
10014 GUILE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "guile-1.8" 2>&1`
10016 # Put the nasty error message in config.log where it belongs
10017 echo "$GUILE_PKG_ERRORS" >&5
10020 elif test $pkg_failed = untried; then
10021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10022 $as_echo "no" >&6; }
10025 GUILE_CFLAGS=$pkg_cv_GUILE_CFLAGS
10026 GUILE_LIBS=$pkg_cv_GUILE_LIBS
10027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10028 $as_echo "yes" >&6; }
10032 GUILE_CFLAGS=$pkg_cv_GUILE_CFLAGS
10033 GUILE_LIBS=$pkg_cv_GUILE_LIBS
10034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10035 $as_echo "yes" >&6; }
10041 if test "$have_guile" = yes; then :
10043 $as_echo "#define HAVE_GUILE 1" >>confdefs.h
10047 if test "$have_guile" = yes; then
10049 HAVE_GUILE_FALSE='#'
10051 HAVE_GUILE_TRUE='#'
10056 ac_have_func=no # yes means we've found a way to get the load average.
10058 # Make sure getloadavg.c is where it belongs, at configure-time.
10059 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
10060 as_fn_error $? "$srcdir/$ac_config_libobj_dir/getloadavg.c is missing" "$LINENO" 5
10064 # Check for getloadavg, but be sure not to touch the cache variable.
10065 (ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
10066 if test "x$ac_cv_func_getloadavg" = xyes; then :
10071 ) && ac_have_func=yes
10073 # On HPUX9, an unprivileged user can get load averages through this function.
10074 for ac_func in pstat_getdynamic
10076 ac_fn_c_check_func "$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic"
10077 if test "x$ac_cv_func_pstat_getdynamic" = xyes; then :
10078 cat >>confdefs.h <<_ACEOF
10079 #define HAVE_PSTAT_GETDYNAMIC 1
10086 # Solaris has libkstat which does not require root.
10087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
10088 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
10089 if ${ac_cv_lib_kstat_kstat_open+:} false; then :
10090 $as_echo_n "(cached) " >&6
10092 ac_check_lib_save_LIBS=$LIBS
10093 LIBS="-lkstat $LIBS"
10094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10095 /* end confdefs.h. */
10097 /* Override any GCC internal prototype to avoid an error.
10098 Use char because int might match the return type of a GCC
10099 builtin and then its argument prototype would still apply. */
10103 char kstat_open ();
10107 return kstat_open ();
10112 if ac_fn_c_try_link "$LINENO"; then :
10113 ac_cv_lib_kstat_kstat_open=yes
10115 ac_cv_lib_kstat_kstat_open=no
10117 rm -f core conftest.err conftest.$ac_objext \
10118 conftest$ac_exeext conftest.$ac_ext
10119 LIBS=$ac_check_lib_save_LIBS
10121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
10122 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
10123 if test "x$ac_cv_lib_kstat_kstat_open" = xyes; then :
10124 cat >>confdefs.h <<_ACEOF
10125 #define HAVE_LIBKSTAT 1
10128 LIBS="-lkstat $LIBS"
10132 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
10134 # Some systems with -lutil have (and need) -lkvm as well, some do not.
10135 # On Solaris, -lkvm requires nlist from -lelf, so check that first
10136 # to get the right answer into the cache.
10137 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
10138 if test $ac_have_func = no; then
10139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
10140 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
10141 if ${ac_cv_lib_elf_elf_begin+:} false; then :
10142 $as_echo_n "(cached) " >&6
10144 ac_check_lib_save_LIBS=$LIBS
10146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10147 /* end confdefs.h. */
10149 /* Override any GCC internal prototype to avoid an error.
10150 Use char because int might match the return type of a GCC
10151 builtin and then its argument prototype would still apply. */
10159 return elf_begin ();
10164 if ac_fn_c_try_link "$LINENO"; then :
10165 ac_cv_lib_elf_elf_begin=yes
10167 ac_cv_lib_elf_elf_begin=no
10169 rm -f core conftest.err conftest.$ac_objext \
10170 conftest$ac_exeext conftest.$ac_ext
10171 LIBS=$ac_check_lib_save_LIBS
10173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
10174 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
10175 if test "x$ac_cv_lib_elf_elf_begin" = xyes; then :
10180 if test $ac_have_func = no; then
10181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
10182 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
10183 if ${ac_cv_lib_kvm_kvm_open+:} false; then :
10184 $as_echo_n "(cached) " >&6
10186 ac_check_lib_save_LIBS=$LIBS
10188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10189 /* end confdefs.h. */
10191 /* Override any GCC internal prototype to avoid an error.
10192 Use char because int might match the return type of a GCC
10193 builtin and then its argument prototype would still apply. */
10201 return kvm_open ();
10206 if ac_fn_c_try_link "$LINENO"; then :
10207 ac_cv_lib_kvm_kvm_open=yes
10209 ac_cv_lib_kvm_kvm_open=no
10211 rm -f core conftest.err conftest.$ac_objext \
10212 conftest$ac_exeext conftest.$ac_ext
10213 LIBS=$ac_check_lib_save_LIBS
10215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
10216 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
10217 if test "x$ac_cv_lib_kvm_kvm_open" = xyes; then :
10221 # Check for the 4.4BSD definition of getloadavg.
10222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5
10223 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
10224 if ${ac_cv_lib_util_getloadavg+:} false; then :
10225 $as_echo_n "(cached) " >&6
10227 ac_check_lib_save_LIBS=$LIBS
10228 LIBS="-lutil $LIBS"
10229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10230 /* end confdefs.h. */
10232 /* Override any GCC internal prototype to avoid an error.
10233 Use char because int might match the return type of a GCC
10234 builtin and then its argument prototype would still apply. */
10238 char getloadavg ();
10242 return getloadavg ();
10247 if ac_fn_c_try_link "$LINENO"; then :
10248 ac_cv_lib_util_getloadavg=yes
10250 ac_cv_lib_util_getloadavg=no
10252 rm -f core conftest.err conftest.$ac_objext \
10253 conftest$ac_exeext conftest.$ac_ext
10254 LIBS=$ac_check_lib_save_LIBS
10256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5
10257 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
10258 if test "x$ac_cv_lib_util_getloadavg" = xyes; then :
10259 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
10264 if test $ac_have_func = no; then
10265 # There is a commonly available library for RS/6000 AIX.
10266 # Since it is not a standard part of AIX, it might be installed locally.
10267 ac_getloadavg_LIBS=$LIBS
10268 LIBS="-L/usr/local/lib $LIBS"
10269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5
10270 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
10271 if ${ac_cv_lib_getloadavg_getloadavg+:} false; then :
10272 $as_echo_n "(cached) " >&6
10274 ac_check_lib_save_LIBS=$LIBS
10275 LIBS="-lgetloadavg $LIBS"
10276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10277 /* end confdefs.h. */
10279 /* Override any GCC internal prototype to avoid an error.
10280 Use char because int might match the return type of a GCC
10281 builtin and then its argument prototype would still apply. */
10285 char getloadavg ();
10289 return getloadavg ();
10294 if ac_fn_c_try_link "$LINENO"; then :
10295 ac_cv_lib_getloadavg_getloadavg=yes
10297 ac_cv_lib_getloadavg_getloadavg=no
10299 rm -f core conftest.err conftest.$ac_objext \
10300 conftest$ac_exeext conftest.$ac_ext
10301 LIBS=$ac_check_lib_save_LIBS
10303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5
10304 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
10305 if test "x$ac_cv_lib_getloadavg_getloadavg" = xyes; then :
10306 LIBS="-lgetloadavg $LIBS"
10308 LIBS=$ac_getloadavg_LIBS
10313 # Make sure it is really in the library, if we think we found it,
10314 # otherwise set up the replacement function.
10315 for ac_func in getloadavg
10317 ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
10318 if test "x$ac_cv_func_getloadavg" = xyes; then :
10319 cat >>confdefs.h <<_ACEOF
10320 #define HAVE_GETLOADAVG 1
10324 case " $LIBOBJS " in
10325 *" getloadavg.$ac_objext "* ) ;;
10326 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
10331 $as_echo "#define C_GETLOADAVG 1" >>confdefs.h
10333 # Figure out what our getloadavg.c needs.
10335 ac_fn_c_check_header_mongrel "$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
10336 if test "x$ac_cv_header_sys_dg_sys_info_h" = xyes; then :
10339 $as_echo "#define DGUX 1" >>confdefs.h
10341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5
10342 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
10343 if ${ac_cv_lib_dgc_dg_sys_info+:} false; then :
10344 $as_echo_n "(cached) " >&6
10346 ac_check_lib_save_LIBS=$LIBS
10348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10349 /* end confdefs.h. */
10351 /* Override any GCC internal prototype to avoid an error.
10352 Use char because int might match the return type of a GCC
10353 builtin and then its argument prototype would still apply. */
10357 char dg_sys_info ();
10361 return dg_sys_info ();
10366 if ac_fn_c_try_link "$LINENO"; then :
10367 ac_cv_lib_dgc_dg_sys_info=yes
10369 ac_cv_lib_dgc_dg_sys_info=no
10371 rm -f core conftest.err conftest.$ac_objext \
10372 conftest$ac_exeext conftest.$ac_ext
10373 LIBS=$ac_check_lib_save_LIBS
10375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5
10376 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
10377 if test "x$ac_cv_lib_dgc_dg_sys_info" = xyes; then :
10378 cat >>confdefs.h <<_ACEOF
10379 #define HAVE_LIBDGC 1
10390 ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
10391 if test "x$ac_cv_header_locale_h" = xyes; then :
10396 for ac_func in setlocale
10398 ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale"
10399 if test "x$ac_cv_func_setlocale" = xyes; then :
10400 cat >>confdefs.h <<_ACEOF
10401 #define HAVE_SETLOCALE 1
10408 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
10409 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
10410 # Irix 4.0.5F has the header but not the library.
10411 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes \
10412 && test "$ac_cv_lib_kvm_kvm_open" = yes; then
10415 $as_echo "#define SVR4 1" >>confdefs.h
10419 if test $ac_have_func = no; then
10420 ac_fn_c_check_header_mongrel "$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default"
10421 if test "x$ac_cv_header_inq_stats_cpustats_h" = xyes; then :
10424 $as_echo "#define UMAX 1" >>confdefs.h
10427 $as_echo "#define UMAX4_3 1" >>confdefs.h
10434 if test $ac_have_func = no; then
10435 ac_fn_c_check_header_mongrel "$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default"
10436 if test "x$ac_cv_header_sys_cpustats_h" = xyes; then :
10437 ac_have_func=yes; $as_echo "#define UMAX 1" >>confdefs.h
10444 if test $ac_have_func = no; then
10445 for ac_header in mach/mach.h
10447 ac_fn_c_check_header_mongrel "$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
10448 if test "x$ac_cv_header_mach_mach_h" = xyes; then :
10449 cat >>confdefs.h <<_ACEOF
10450 #define HAVE_MACH_MACH_H 1
10459 for ac_header in nlist.h
10461 ac_fn_c_check_header_mongrel "$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
10462 if test "x$ac_cv_header_nlist_h" = xyes; then :
10463 cat >>confdefs.h <<_ACEOF
10464 #define HAVE_NLIST_H 1
10466 ac_fn_c_check_member "$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h>
10468 if test "x$ac_cv_member_struct_nlist_n_un_n_name" = xyes; then :
10470 cat >>confdefs.h <<_ACEOF
10471 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
10475 $as_echo "#define NLIST_NAME_UNION 1" >>confdefs.h
10488 # Some definitions of getloadavg require that the program be installed setgid.
10489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getloadavg requires setgid" >&5
10490 $as_echo_n "checking whether getloadavg requires setgid... " >&6; }
10491 if ${ac_cv_func_getloadavg_setgid+:} false; then :
10492 $as_echo_n "(cached) " >&6
10494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10495 /* end confdefs.h. */
10496 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
10497 #ifdef LDAV_PRIVILEGED
10498 Yowza Am I SETGID yet
10501 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10502 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then :
10503 ac_cv_func_getloadavg_setgid=yes
10505 ac_cv_func_getloadavg_setgid=no
10510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getloadavg_setgid" >&5
10511 $as_echo "$ac_cv_func_getloadavg_setgid" >&6; }
10512 if test $ac_cv_func_getloadavg_setgid = yes; then
10515 $as_echo "#define GETLOADAVG_PRIVILEGED 1" >>confdefs.h
10521 if test $ac_cv_func_getloadavg_setgid = yes; then
10522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking group of /dev/kmem" >&5
10523 $as_echo_n "checking group of /dev/kmem... " >&6; }
10524 if ${ac_cv_group_kmem+:} false; then :
10525 $as_echo_n "(cached) " >&6
10527 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
10528 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
10529 # If we got an error (system does not support symlinks), try without -L.
10530 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
10531 ac_cv_group_kmem=`$as_echo "$ac_ls_output" \
10532 | sed -ne 's/[ ][ ]*/ /g;
10533 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
10537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_group_kmem" >&5
10538 $as_echo "$ac_cv_group_kmem" >&6; }
10539 KMEM_GROUP=$ac_cv_group_kmem
10541 if test "x$ac_save_LIBS" = x; then
10542 GETLOADAVG_LIBS=$LIBS
10544 GETLOADAVG_LIBS=`$as_echo "$LIBS" | sed "s|$ac_save_LIBS||"`
10550 # AC_FUNC_GETLOADAVG is documented to set the NLIST_STRUCT value, but it
10551 # doesn't. So, we will.
10553 if test "$ac_cv_header_nlist_h" = yes; then :
10554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10555 /* end confdefs.h. */
10561 nl.n_name = "string";
10567 if ac_fn_c_try_compile "$LINENO"; then :
10568 make_cv_nlist_struct=yes
10570 make_cv_nlist_struct=no
10572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10573 if test "$make_cv_nlist_struct" = yes; then :
10575 $as_echo "#define NLIST_STRUCT 1" >>confdefs.h
10582 ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "$ac_includes_default
10583 #include <signal.h>
10584 /* NetBSD declares sys_siglist in unistd.h. */
10586 # include <unistd.h>
10590 if test "x$ac_cv_have_decl_sys_siglist" = xyes; then :
10596 cat >>confdefs.h <<_ACEOF
10597 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
10599 ac_fn_c_check_decl "$LINENO" "_sys_siglist" "ac_cv_have_decl__sys_siglist" "$ac_includes_default
10600 #include <signal.h>
10601 /* NetBSD declares sys_siglist in unistd.h. */
10603 # include <unistd.h>
10607 if test "x$ac_cv_have_decl__sys_siglist" = xyes; then :
10613 cat >>confdefs.h <<_ACEOF
10614 #define HAVE_DECL__SYS_SIGLIST $ac_have_decl
10616 ac_fn_c_check_decl "$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "$ac_includes_default
10617 #include <signal.h>
10618 /* NetBSD declares sys_siglist in unistd.h. */
10620 # include <unistd.h>
10624 if test "x$ac_cv_have_decl___sys_siglist" = xyes; then :
10630 cat >>confdefs.h <<_ACEOF
10631 #define HAVE_DECL___SYS_SIGLIST $ac_have_decl
10636 # Check out the wait reality.
10637 for ac_header in sys/wait.h
10639 ac_fn_c_check_header_compile "$LINENO" "sys/wait.h" "ac_cv_header_sys_wait_h" "#include <sys/types.h>
10641 if test "x$ac_cv_header_sys_wait_h" = xyes; then :
10642 cat >>confdefs.h <<_ACEOF
10643 #define HAVE_SYS_WAIT_H 1
10650 for ac_func in waitpid wait3
10652 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10653 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10654 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10655 cat >>confdefs.h <<_ACEOF
10656 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for union wait" >&5
10663 $as_echo_n "checking for union wait... " >&6; }
10664 if ${make_cv_union_wait+:} false; then :
10665 $as_echo_n "(cached) " >&6
10667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10668 /* end confdefs.h. */
10669 #include <sys/types.h>
10670 #include <sys/wait.h>
10674 union wait status; int pid; pid = wait (&status);
10676 /* Some POSIXoid systems have both the new-style macros and the old
10677 union wait type, and they do not work together. If union wait
10678 conflicts with WEXITSTATUS et al, we don't want to use it at all. */
10679 if (WEXITSTATUS (status) != 0) pid = -1;
10681 /* If we have WEXITSTATUS and WTERMSIG, just use them on ints. */
10682 -- blow chunks here --
10685 #ifdef HAVE_WAITPID
10686 /* Make sure union wait works with waitpid. */
10687 pid = waitpid (-1, &status, 0);
10694 if ac_fn_c_try_link "$LINENO"; then :
10695 make_cv_union_wait=yes
10697 make_cv_union_wait=no
10699 rm -f core conftest.err conftest.$ac_objext \
10700 conftest$ac_exeext conftest.$ac_ext
10703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $make_cv_union_wait" >&5
10704 $as_echo "$make_cv_union_wait" >&6; }
10705 if test "$make_cv_union_wait" = yes; then :
10707 $as_echo "#define HAVE_UNION_WAIT 1" >>confdefs.h
10713 # If we're building on Windows/DOS/OS/2, add some support for DOS drive specs.
10714 if test "$PATH_SEPARATOR" = ';'; then :
10716 $as_echo "#define HAVE_DOS_PATHS 1" >>confdefs.h
10721 # See if the user wants to use pmake's "customs" distributed build capability
10725 # Check whether --with-customs was given.
10726 if test "${with_customs+set}" = set; then :
10727 withval=$with_customs; case $withval in #(
10731 make_cppflags="$CPPFLAGS"
10732 case $withval in #(
10736 CPPFLAGS="$CPPFLAGS -I$with_customs/include/customs"
10737 make_ldflags="$LDFLAGS -L$with_customs/lib" ;;
10741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for network libraries" >&5
10742 $as_echo_n "checking for network libraries... " >&6; }
10743 if ${cf_cv_netlibs+:} false; then :
10744 $as_echo_n "(cached) " >&6
10747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: working..." >&5
10748 $as_echo "working..." >&6; }
10750 cf_test_netlibs=yes
10751 for ac_func in gethostname
10753 ac_fn_c_check_func "$LINENO" "gethostname" "ac_cv_func_gethostname"
10754 if test "x$ac_cv_func_gethostname" = xyes; then :
10755 cat >>confdefs.h <<_ACEOF
10756 #define HAVE_GETHOSTNAME 1
10762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostname in -lnsl" >&5
10763 $as_echo_n "checking for gethostname in -lnsl... " >&6; }
10764 if ${ac_cv_lib_nsl_gethostname+:} false; then :
10765 $as_echo_n "(cached) " >&6
10767 ac_check_lib_save_LIBS=$LIBS
10768 LIBS="-lnsl $cf_cv_netlibs $LIBS"
10769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10770 /* end confdefs.h. */
10772 /* Override any GCC internal prototype to avoid an error.
10773 Use char because int might match the return type of a GCC
10774 builtin and then its argument prototype would still apply. */
10778 char gethostname ();
10782 return gethostname ();
10787 if ac_fn_c_try_link "$LINENO"; then :
10788 ac_cv_lib_nsl_gethostname=yes
10790 ac_cv_lib_nsl_gethostname=no
10792 rm -f core conftest.err conftest.$ac_objext \
10793 conftest$ac_exeext conftest.$ac_ext
10794 LIBS=$ac_check_lib_save_LIBS
10796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostname" >&5
10797 $as_echo "$ac_cv_lib_nsl_gethostname" >&6; }
10798 if test "x$ac_cv_lib_nsl_gethostname" = xyes; then :
10801 cf_tr_func=`echo gethostname | tr '[a-z]' '[A-Z]'`
10804 cat >>confdefs.h <<_ACEOF
10805 #define HAVE_$cf_tr_func 1
10808 ac_cv_func_gethostname=yes
10809 cf_cv_netlibs="-lnsl $cf_cv_netlibs"
10812 ac_cv_func_gethostname=unknown
10813 unset ac_cv_func_gethostname 2>/dev/null
10816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostname in -lsocket" >&5
10817 $as_echo_n "checking for gethostname in -lsocket... " >&6; }
10818 if ${ac_cv_lib_socket_gethostname+:} false; then :
10819 $as_echo_n "(cached) " >&6
10821 ac_check_lib_save_LIBS=$LIBS
10822 LIBS="-lsocket $cf_cv_netlibs $LIBS"
10823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10824 /* end confdefs.h. */
10826 /* Override any GCC internal prototype to avoid an error.
10827 Use char because int might match the return type of a GCC
10828 builtin and then its argument prototype would still apply. */
10832 char gethostname ();
10836 return gethostname ();
10841 if ac_fn_c_try_link "$LINENO"; then :
10842 ac_cv_lib_socket_gethostname=yes
10844 ac_cv_lib_socket_gethostname=no
10846 rm -f core conftest.err conftest.$ac_objext \
10847 conftest$ac_exeext conftest.$ac_ext
10848 LIBS=$ac_check_lib_save_LIBS
10850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_gethostname" >&5
10851 $as_echo "$ac_cv_lib_socket_gethostname" >&6; }
10852 if test "x$ac_cv_lib_socket_gethostname" = xyes; then :
10855 cf_tr_func=`echo gethostname | tr '[a-z]' '[A-Z]'`
10858 cat >>confdefs.h <<_ACEOF
10859 #define HAVE_$cf_tr_func 1
10862 ac_cv_func_gethostname=yes
10863 cf_cv_netlibs="-lsocket $cf_cv_netlibs"
10866 ac_cv_func_gethostname=unknown
10867 unset ac_cv_func_gethostname 2>/dev/null
10879 # FIXME: sequent needs this library (i.e., -lsocket -linet -lnsl), but
10880 # I don't know the entrypoints - 97/7/22 TD
10881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -linet" >&5
10882 $as_echo_n "checking for main in -linet... " >&6; }
10883 if ${ac_cv_lib_inet_main+:} false; then :
10884 $as_echo_n "(cached) " >&6
10886 ac_check_lib_save_LIBS=$LIBS
10887 LIBS="-linet $LIBS"
10888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10889 /* end confdefs.h. */
10900 if ac_fn_c_try_link "$LINENO"; then :
10901 ac_cv_lib_inet_main=yes
10903 ac_cv_lib_inet_main=no
10905 rm -f core conftest.err conftest.$ac_objext \
10906 conftest$ac_exeext conftest.$ac_ext
10907 LIBS=$ac_check_lib_save_LIBS
10909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_inet_main" >&5
10910 $as_echo "$ac_cv_lib_inet_main" >&6; }
10911 if test "x$ac_cv_lib_inet_main" = xyes; then :
10912 cf_cv_netlibs="-linet $cf_cv_netlibs"
10916 if test "$ac_cv_func_lsocket" != no ; then
10917 for ac_func in socket
10919 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
10920 if test "x$ac_cv_func_socket" = xyes; then :
10921 cat >>confdefs.h <<_ACEOF
10922 #define HAVE_SOCKET 1
10928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
10929 $as_echo_n "checking for socket in -lsocket... " >&6; }
10930 if ${ac_cv_lib_socket_socket+:} false; then :
10931 $as_echo_n "(cached) " >&6
10933 ac_check_lib_save_LIBS=$LIBS
10934 LIBS="-lsocket $cf_cv_netlibs $LIBS"
10935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10936 /* end confdefs.h. */
10938 /* Override any GCC internal prototype to avoid an error.
10939 Use char because int might match the return type of a GCC
10940 builtin and then its argument prototype would still apply. */
10953 if ac_fn_c_try_link "$LINENO"; then :
10954 ac_cv_lib_socket_socket=yes
10956 ac_cv_lib_socket_socket=no
10958 rm -f core conftest.err conftest.$ac_objext \
10959 conftest$ac_exeext conftest.$ac_ext
10960 LIBS=$ac_check_lib_save_LIBS
10962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
10963 $as_echo "$ac_cv_lib_socket_socket" >&6; }
10964 if test "x$ac_cv_lib_socket_socket" = xyes; then :
10967 cf_tr_func=`echo socket | tr '[a-z]' '[A-Z]'`
10970 cat >>confdefs.h <<_ACEOF
10971 #define HAVE_$cf_tr_func 1
10974 ac_cv_func_socket=yes
10975 cf_cv_netlibs="-lsocket $cf_cv_netlibs"
10978 ac_cv_func_socket=unknown
10979 unset ac_cv_func_socket 2>/dev/null
10982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lbsd" >&5
10983 $as_echo_n "checking for socket in -lbsd... " >&6; }
10984 if ${ac_cv_lib_bsd_socket+:} false; then :
10985 $as_echo_n "(cached) " >&6
10987 ac_check_lib_save_LIBS=$LIBS
10988 LIBS="-lbsd $cf_cv_netlibs $LIBS"
10989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10990 /* end confdefs.h. */
10992 /* Override any GCC internal prototype to avoid an error.
10993 Use char because int might match the return type of a GCC
10994 builtin and then its argument prototype would still apply. */
11007 if ac_fn_c_try_link "$LINENO"; then :
11008 ac_cv_lib_bsd_socket=yes
11010 ac_cv_lib_bsd_socket=no
11012 rm -f core conftest.err conftest.$ac_objext \
11013 conftest$ac_exeext conftest.$ac_ext
11014 LIBS=$ac_check_lib_save_LIBS
11016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_socket" >&5
11017 $as_echo "$ac_cv_lib_bsd_socket" >&6; }
11018 if test "x$ac_cv_lib_bsd_socket" = xyes; then :
11021 cf_tr_func=`echo socket | tr '[a-z]' '[A-Z]'`
11024 cat >>confdefs.h <<_ACEOF
11025 #define HAVE_$cf_tr_func 1
11028 ac_cv_func_socket=yes
11029 cf_cv_netlibs="-lbsd $cf_cv_netlibs"
11032 ac_cv_func_socket=unknown
11033 unset ac_cv_func_socket 2>/dev/null
11046 for ac_func in gethostbyname
11048 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
11049 if test "x$ac_cv_func_gethostbyname" = xyes; then :
11050 cat >>confdefs.h <<_ACEOF
11051 #define HAVE_GETHOSTBYNAME 1
11057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
11058 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
11059 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
11060 $as_echo_n "(cached) " >&6
11062 ac_check_lib_save_LIBS=$LIBS
11063 LIBS="-lnsl $cf_cv_netlibs $LIBS"
11064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11065 /* end confdefs.h. */
11067 /* Override any GCC internal prototype to avoid an error.
11068 Use char because int might match the return type of a GCC
11069 builtin and then its argument prototype would still apply. */
11073 char gethostbyname ();
11077 return gethostbyname ();
11082 if ac_fn_c_try_link "$LINENO"; then :
11083 ac_cv_lib_nsl_gethostbyname=yes
11085 ac_cv_lib_nsl_gethostbyname=no
11087 rm -f core conftest.err conftest.$ac_objext \
11088 conftest$ac_exeext conftest.$ac_ext
11089 LIBS=$ac_check_lib_save_LIBS
11091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
11092 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
11093 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
11096 cf_tr_func=`echo gethostbyname | tr '[a-z]' '[A-Z]'`
11099 cat >>confdefs.h <<_ACEOF
11100 #define HAVE_$cf_tr_func 1
11103 ac_cv_func_gethostbyname=yes
11104 cf_cv_netlibs="-lnsl $cf_cv_netlibs"
11107 ac_cv_func_gethostbyname=unknown
11108 unset ac_cv_func_gethostbyname 2>/dev/null
11119 LIBS="$LIBS $cf_cv_netlibs"
11120 test $cf_test_netlibs = no && echo "$cf_cv_netlibs" >&6
11122 ac_fn_c_check_header_mongrel "$LINENO" "customs.h" "ac_cv_header_customs_h" "$ac_includes_default"
11123 if test "x$ac_cv_header_customs_h" = xyes; then :
11126 LIBS="$LIBS -lcustoms" LDFLAGS="$make_ldflags"
11129 CPPFLAGS="$make_cppflags" make_badcust=yes
11139 # Tell automake about this, so it can include the right .c files.
11140 if test "$use_customs" = true; then
11142 USE_CUSTOMS_FALSE='#'
11144 USE_CUSTOMS_TRUE='#'
11149 # See if the user asked to handle case insensitive file systems.
11151 # Check whether --enable-case-insensitive-file-system was given.
11152 if test "${enable_case_insensitive_file_system+set}" = set; then :
11153 enableval=$enable_case_insensitive_file_system; if test "$enableval" = yes; then :
11154 $as_echo "#define HAVE_CASE_INSENSITIVE_FS 1" >>confdefs.h
11160 # See if we can handle the job server feature, and if the user wants it.
11161 # Check whether --enable-job-server was given.
11162 if test "${enable_job_server+set}" = set; then :
11163 enableval=$enable_job_server; make_cv_job_server="$enableval" user_job_server="$enableval"
11165 make_cv_job_server="yes"
11169 if test "$ac_cv_func_waitpid" = no && test "$ac_cv_func_wait3" = no; then :
11172 has_wait_nohang=yes
11175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SA_RESTART" >&5
11176 $as_echo_n "checking for SA_RESTART... " >&6; }
11177 if ${make_cv_sa_restart+:} false; then :
11178 $as_echo_n "(cached) " >&6
11181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11182 /* end confdefs.h. */
11183 #include <signal.h>
11192 if ac_fn_c_try_compile "$LINENO"; then :
11193 make_cv_sa_restart=yes
11195 make_cv_sa_restart=no
11197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $make_cv_sa_restart" >&5
11200 $as_echo "$make_cv_sa_restart" >&6; }
11202 if test "$make_cv_sa_restart" != no; then :
11204 $as_echo "#define HAVE_SA_RESTART 1" >>confdefs.h
11209 # Only allow jobserver on systems that support it
11210 case /$ac_cv_func_pipe/$ac_cv_func_sigaction/$make_cv_sa_restart/$has_wait_nohang/ in #(
11212 make_cv_job_server=no ;; #(
11217 # Also supported on OS2 and MinGW
11218 case $host_os in #(
11220 make_cv_job_server=yes ;; #(
11225 # If we support it and the user didn't disable it, build with jobserver
11226 case /$make_cv_job_server/$user_job_server/ in #(
11228 : no jobserver ;; #(
11231 $as_echo "#define MAKE_JOBSERVER 1" >>confdefs.h
11236 # If dl*() functions are supported we can enable the load operation
11237 ac_fn_c_check_decl "$LINENO" "dlopen" "ac_cv_have_decl_dlopen" "#include <dlfcn.h>
11239 if test "x$ac_cv_have_decl_dlopen" = xyes; then :
11245 cat >>confdefs.h <<_ACEOF
11246 #define HAVE_DECL_DLOPEN $ac_have_decl
11248 ac_fn_c_check_decl "$LINENO" "dlsym" "ac_cv_have_decl_dlsym" "#include <dlfcn.h>
11250 if test "x$ac_cv_have_decl_dlsym" = xyes; then :
11256 cat >>confdefs.h <<_ACEOF
11257 #define HAVE_DECL_DLSYM $ac_have_decl
11259 ac_fn_c_check_decl "$LINENO" "dlerror" "ac_cv_have_decl_dlerror" "#include <dlfcn.h>
11261 if test "x$ac_cv_have_decl_dlerror" = xyes; then :
11267 cat >>confdefs.h <<_ACEOF
11268 #define HAVE_DECL_DLERROR $ac_have_decl
11272 # Check whether --enable-load was given.
11273 if test "${enable_load+set}" = set; then :
11274 enableval=$enable_load; make_cv_load="$enableval" user_load="$enableval"
11280 case /$ac_cv_have_decl_dlopen/$ac_cv_have_decl_dlsym/$ac_cv_have_decl_dlerror/ in #(
11282 make_cv_load=no ;; #(
11287 # We might need -ldl
11288 if test "$make_cv_load" = yes; then :
11290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
11291 $as_echo_n "checking for library containing dlopen... " >&6; }
11292 if ${ac_cv_search_dlopen+:} false; then :
11293 $as_echo_n "(cached) " >&6
11295 ac_func_search_save_LIBS=$LIBS
11296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11297 /* end confdefs.h. */
11299 /* Override any GCC internal prototype to avoid an error.
11300 Use char because int might match the return type of a GCC
11301 builtin and then its argument prototype would still apply. */
11314 for ac_lib in '' dl; do
11315 if test -z "$ac_lib"; then
11316 ac_res="none required"
11319 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11321 if ac_fn_c_try_link "$LINENO"; then :
11322 ac_cv_search_dlopen=$ac_res
11324 rm -f core conftest.err conftest.$ac_objext \
11326 if ${ac_cv_search_dlopen+:} false; then :
11330 if ${ac_cv_search_dlopen+:} false; then :
11333 ac_cv_search_dlopen=no
11335 rm conftest.$ac_ext
11336 LIBS=$ac_func_search_save_LIBS
11338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
11339 $as_echo "$ac_cv_search_dlopen" >&6; }
11340 ac_res=$ac_cv_search_dlopen
11341 if test "$ac_res" != no; then :
11342 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11351 case /$make_cv_load/$user_load/ in #(
11353 make_cv_load=no ;; #(
11356 $as_echo "#define MAKE_LOAD 1" >>confdefs.h
11361 # If we want load support, we might need to link with export-dynamic.
11362 # See if we can figure it out. Unfortunately this is very difficult.
11363 # For example passing -rdynamic to the SunPRO linker gives a warning
11364 # but succeeds and creates a shared object, not an executable!
11365 if test "$make_cv_load" = yes; then :
11367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking If the linker accepts -Wl,--export-dynamic" >&5
11368 $as_echo_n "checking If the linker accepts -Wl,--export-dynamic... " >&6; }
11369 old_LDFLAGS="$LDFLAGS"
11370 LDFLAGS="$LDFLAGS -Wl,--export-dynamic"
11371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11372 /* end confdefs.h. */
11375 if ac_fn_c_try_link "$LINENO"; then :
11376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11377 $as_echo "yes" >&6; }
11378 AM_LDFLAGS=-Wl,--export-dynamic
11381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11382 $as_echo "no" >&6; }
11383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking If the linker accepts -rdynamic" >&5
11384 $as_echo_n "checking If the linker accepts -rdynamic... " >&6; }
11385 LDFLAGS="$old_LDFLAGS -rdynamic"
11386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11387 /* end confdefs.h. */
11390 if ac_fn_c_try_link "$LINENO"; then :
11391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11392 $as_echo "yes" >&6; }
11393 AM_LDFLAGS=-rdynamic
11396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11397 $as_echo "no" >&6; }
11399 rm -f core conftest.err conftest.$ac_objext \
11400 conftest$ac_exeext conftest.$ac_ext
11403 rm -f core conftest.err conftest.$ac_objext \
11404 conftest$ac_exeext conftest.$ac_ext
11405 LDFLAGS="$old_LDFLAGS"
11409 # if we have both lstat() and readlink() then we can support symlink
11411 if test "$ac_cv_func_lstat" = yes && test "$ac_cv_func_readlink" = yes; then :
11413 $as_echo "#define MAKE_SYMLINKS 1" >>confdefs.h
11418 # Find the SCCS commands, so we can include them in our default rules.
11420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of SCCS get command" >&5
11421 $as_echo_n "checking for location of SCCS get command... " >&6; }
11422 if ${make_cv_path_sccs_get+:} false; then :
11423 $as_echo_n "(cached) " >&6
11426 if test -f /usr/sccs/get; then :
11427 make_cv_path_sccs_get=/usr/sccs/get
11429 make_cv_path_sccs_get=get
11433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $make_cv_path_sccs_get" >&5
11434 $as_echo "$make_cv_path_sccs_get" >&6; }
11436 cat >>confdefs.h <<_ACEOF
11437 #define SCCS_GET "$make_cv_path_sccs_get"
11441 ac_clean_files="$ac_clean_files s.conftest conftoast" # Remove these later.
11442 if (/usr/sccs/admin -n s.conftest || admin -n s.conftest) >/dev/null 2>&1 &&
11443 test -f s.conftest; then :
11444 # We successfully created an SCCS file.
11445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if SCCS get command understands -G" >&5
11446 $as_echo_n "checking if SCCS get command understands -G... " >&6; }
11447 if ${make_cv_sys_get_minus_G+:} false; then :
11448 $as_echo_n "(cached) " >&6
11450 if $make_cv_path_sccs_get -Gconftoast s.conftest >/dev/null 2>&1 &&
11451 test -f conftoast; then :
11452 make_cv_sys_get_minus_G=yes
11454 make_cv_sys_get_minus_G=no
11458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $make_cv_sys_get_minus_G" >&5
11459 $as_echo "$make_cv_sys_get_minus_G" >&6; }
11460 if test "$make_cv_sys_get_minus_G" = yes; then :
11462 $as_echo "#define SCCS_GET_MINUS_G 1" >>confdefs.h
11468 rm -f s.conftest conftoast
11470 # Check the system to see if it provides GNU glob. If not, use our
11472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if system libc has GNU glob" >&5
11473 $as_echo_n "checking if system libc has GNU glob... " >&6; }
11474 if ${make_cv_sys_gnu_glob+:} false; then :
11475 $as_echo_n "(cached) " >&6
11477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11478 /* end confdefs.h. */
11480 #include <features.h>
11482 #include <fnmatch.h>
11484 #define GLOB_INTERFACE_VERSION 1
11485 #if !defined _LIBC && defined __GNU_LIBRARY__ && __GNU_LIBRARY__ > 1
11486 # include <gnu-versions.h>
11487 # if _GNU_GLOB_INTERFACE_VERSION == GLOB_INTERFACE_VERSION
11492 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11493 $EGREP "gnu glob" >/dev/null 2>&1; then :
11494 make_cv_sys_gnu_glob=yes
11496 make_cv_sys_gnu_glob=no
11501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $make_cv_sys_gnu_glob" >&5
11502 $as_echo "$make_cv_sys_gnu_glob" >&6; }
11503 if test "$make_cv_sys_gnu_glob" = no; then :
11504 GLOBINC='-I$(srcdir)/glob'
11505 GLOBLIB=glob/libglob.a
11511 # Tell automake about this, so it can build the right .c files.
11512 if test "$make_cv_sys_gnu_glob" = no; then
11513 USE_LOCAL_GLOB_TRUE=
11514 USE_LOCAL_GLOB_FALSE='#'
11516 USE_LOCAL_GLOB_TRUE='#'
11517 USE_LOCAL_GLOB_FALSE=
11521 # Let the makefile know what our build host is
11524 cat >>confdefs.h <<_ACEOF
11525 #define MAKE_HOST "$host"
11534 WINDOWSENV_FALSE='#'
11536 WINDOWSENV_TRUE='#'
11545 WINDOWSENV_FALSE='#'
11547 WINDOWSENV_TRUE='#'
11553 $as_echo "#define WINDOWS32 1" >>confdefs.h
11556 $as_echo "#define HAVE_DOS_PATHS 1" >>confdefs.h
11564 cat >>confdefs.h <<_ACEOF
11565 #define PATH_SEPARATOR_CHAR '$PATH_SEPARATOR'
11569 # Include the Maintainer's Makefile section, if it's here.
11571 MAINT_MAKEFILE=/dev/null
11572 if test -r "$srcdir/maintMakefile"; then :
11573 MAINT_MAKEFILE="$srcdir/maintMakefile"
11578 # Allow building with dmalloc
11579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
11580 $as_echo_n "checking if malloc debugging is wanted... " >&6; }
11582 # Check whether --with-dmalloc was given.
11583 if test "${with_dmalloc+set}" = set; then :
11584 withval=$with_dmalloc; if test "$withval" = yes; then
11585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11586 $as_echo "yes" >&6; }
11588 $as_echo "#define WITH_DMALLOC 1" >>confdefs.h
11590 LIBS="$LIBS -ldmalloc"
11591 LDFLAGS="$LDFLAGS -g"
11593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11594 $as_echo "no" >&6; }
11597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11598 $as_echo "no" >&6; }
11603 # Forcibly disable SET_MAKE. If it's set it breaks things like the test
11607 # Sanity check and inform the user of what we found
11609 if test "x$make_badcust" = xyes; then :
11612 echo "WARNING: --with-customs specified but no customs.h could be found;"
11613 echo " disabling Customs support."
11618 case $with_customs in #(
11619 ""|n|no|y|ye|yes) :
11622 if test -f "$with_customs/lib/libcustoms.a"; then :
11626 echo "WARNING: '$with_customs/lib' does not appear to contain the"
11627 echo " Customs library. You must build and install Customs"
11628 echo " before compiling GNU make."
11634 if test "x$has_wait_nohang" = xno; then :
11636 echo "WARNING: Your system has neither waitpid() nor wait3()."
11637 echo " Without one of these, signal handling is unreliable."
11638 echo " You should be aware that running GNU make with -j"
11639 echo " could result in erratic behavior."
11644 if test "x$make_cv_job_server" = xno && test "x$user_job_server" = xyes; then :
11646 echo "WARNING: Make job server requires a POSIX-ish system that"
11647 echo " supports the pipe(), sigaction(), and either"
11648 echo " waitpid() or wait3() functions. Your system doesn't"
11649 echo " appear to provide one or more of those."
11650 echo " Disabling job server support."
11655 if test "x$make_cv_load" = xno && test "x$user_load" = xyes; then :
11657 echo "WARNING: 'load' support requires a POSIX-ish system that"
11658 echo " supports the dlopen(), dlsym(), and dlerror() functions."
11659 echo " Your system doesn't appear to provide one or more of these."
11660 echo " Disabling 'load' support."
11665 # Specify what files are to be created.
11666 ac_config_files="$ac_config_files Makefile glob/Makefile po/Makefile.in config/Makefile doc/Makefile w32/Makefile tests/config-flags.pm"
11671 cat >confcache <<\_ACEOF
11672 # This file is a shell script that caches the results of configure
11673 # tests run on this system so they can be shared between configure
11674 # scripts and configure runs, see configure's option --config-cache.
11675 # It is not useful on other systems. If it contains results you don't
11676 # want to keep, you may remove or edit it.
11678 # config.status only pays attention to the cache file if you give it
11679 # the --recheck option to rerun configure.
11681 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11682 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11683 # following values.
11687 # The following way of writing the cache mishandles newlines in values,
11688 # but we know of no workaround that is simple, portable, and efficient.
11689 # So, we kill variables containing newlines.
11690 # Ultrix sh set writes to stderr and can't be redirected directly,
11691 # and sets the high bit in the cache file unless we assign to the vars.
11693 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11694 eval ac_val=\$$ac_var
11698 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11699 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11702 _ | IFS | as_nl) ;; #(
11703 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11704 *) { eval $ac_var=; unset $ac_var;} ;;
11710 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11711 *${as_nl}ac_space=\ *)
11712 # `set' does not quote correctly, so add quotes: double-quote
11713 # substitution turns \\\\ into \\, and sed turns \\ into \.
11716 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11719 # `set' quotes correctly as required by POSIX, so do not add quotes.
11720 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11729 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11731 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11733 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11734 if test -w "$cache_file"; then
11735 if test "x$cache_file" != "x/dev/null"; then
11736 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11737 $as_echo "$as_me: updating cache $cache_file" >&6;}
11738 if test ! -f "$cache_file" || test -h "$cache_file"; then
11739 cat confcache >"$cache_file"
11741 case $cache_file in #(
11743 mv -f confcache "$cache_file"$$ &&
11744 mv -f "$cache_file"$$ "$cache_file" ;; #(
11746 mv -f confcache "$cache_file" ;;
11751 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11752 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11757 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11758 # Let make expand exec_prefix.
11759 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11761 DEFS=-DHAVE_CONFIG_H
11766 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11767 # 1. Remove the extension, and $U if already installed.
11768 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11769 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11770 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11771 # will be set to the directory where LIBOBJS objects are built.
11772 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11773 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11775 LIBOBJS=$ac_libobjs
11777 LTLIBOBJS=$ac_ltlibobjs
11780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
11781 $as_echo_n "checking that generated files are newer than configure... " >&6; }
11782 if test -n "$am_sleep_pid"; then
11783 # Hide warnings about reused PIDs.
11784 wait $am_sleep_pid 2>/dev/null
11786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
11787 $as_echo "done" >&6; }
11788 if test -n "$EXEEXT"; then
11790 am__EXEEXT_FALSE='#'
11792 am__EXEEXT_TRUE='#'
11796 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11797 as_fn_error $? "conditional \"AMDEP\" was never defined.
11798 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11800 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11801 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11802 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11804 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11805 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11806 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11808 if test -z "${HAVE_GUILE_TRUE}" && test -z "${HAVE_GUILE_FALSE}"; then
11809 as_fn_error $? "conditional \"HAVE_GUILE\" was never defined.
11810 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11812 if test -z "${USE_CUSTOMS_TRUE}" && test -z "${USE_CUSTOMS_FALSE}"; then
11813 as_fn_error $? "conditional \"USE_CUSTOMS\" was never defined.
11814 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11816 if test -z "${USE_LOCAL_GLOB_TRUE}" && test -z "${USE_LOCAL_GLOB_FALSE}"; then
11817 as_fn_error $? "conditional \"USE_LOCAL_GLOB\" was never defined.
11818 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11820 if test -z "${WINDOWSENV_TRUE}" && test -z "${WINDOWSENV_FALSE}"; then
11821 as_fn_error $? "conditional \"WINDOWSENV\" was never defined.
11822 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11824 if test -z "${WINDOWSENV_TRUE}" && test -z "${WINDOWSENV_FALSE}"; then
11825 as_fn_error $? "conditional \"WINDOWSENV\" was never defined.
11826 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11829 : "${CONFIG_STATUS=./config.status}"
11831 ac_clean_files_save=$ac_clean_files
11832 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11833 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11834 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11836 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11838 # Generated by $as_me.
11839 # Run this file to recreate the current configuration.
11840 # Compiler output produced by configure, useful for debugging
11841 # configure, is in config.log if it exists.
11844 ac_cs_recheck=false
11847 SHELL=\${CONFIG_SHELL-$SHELL}
11850 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11851 ## -------------------- ##
11852 ## M4sh Initialization. ##
11853 ## -------------------- ##
11855 # Be more Bourne compatible
11856 DUALCASE=1; export DUALCASE # for MKS sh
11857 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11860 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11861 # is contrary to our usage. Disable this feature.
11862 alias -g '${1+"$@"}'='"$@"'
11863 setopt NO_GLOB_SUBST
11865 case `(set -o) 2>/dev/null` in #(
11877 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11878 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11879 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11880 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11881 # Prefer a ksh shell builtin over an external printf program on Solaris,
11882 # but without wasting forks for bash or zsh.
11883 if test -z "$BASH_VERSION$ZSH_VERSION" \
11884 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11885 as_echo='print -r --'
11886 as_echo_n='print -rn --'
11887 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11888 as_echo='printf %s\n'
11889 as_echo_n='printf %s'
11891 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11892 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11893 as_echo_n='/usr/ucb/echo -n'
11895 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11896 as_echo_n_body='eval
11900 expr "X$arg" : "X\\(.*\\)$as_nl";
11901 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11903 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11905 export as_echo_n_body
11906 as_echo_n='sh -c $as_echo_n_body as_echo'
11908 export as_echo_body
11909 as_echo='sh -c $as_echo_body as_echo'
11912 # The user is always right.
11913 if test "${PATH_SEPARATOR+set}" != set; then
11915 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11916 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11923 # We need space, tab and new line, in precisely that order. Quoting is
11924 # there to prevent editors from complaining about space-tab.
11925 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11926 # splitting by setting IFS to empty value.)
11929 # Find who we are. Look in the path if we contain no directory separator.
11932 *[\\/]* ) as_myself=$0 ;;
11933 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11934 for as_dir in $PATH
11937 test -z "$as_dir" && as_dir=.
11938 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11944 # We did not find ourselves, most probably we were run as `sh COMMAND'
11945 # in which case we are not to be found in the path.
11946 if test "x$as_myself" = x; then
11949 if test ! -f "$as_myself"; then
11950 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11954 # Unset variables that we do not need and which cause bugs (e.g. in
11955 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11956 # suppresses any "Segmentation fault" message there. '((' could
11957 # trigger a bug in pdksh 5.2.14.
11958 for as_var in BASH_ENV ENV MAIL MAILPATH
11959 do eval test x\${$as_var+set} = xset \
11960 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11973 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11976 # as_fn_error STATUS ERROR [LINENO LOG_FD]
11977 # ----------------------------------------
11978 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11979 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11980 # script with STATUS, using 1 if that was 0.
11983 as_status=$1; test $as_status -eq 0 && as_status=1
11985 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11986 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11988 $as_echo "$as_me: error: $2" >&2
11989 as_fn_exit $as_status
11993 # as_fn_set_status STATUS
11994 # -----------------------
11995 # Set $? to STATUS, without forking.
11996 as_fn_set_status ()
11999 } # as_fn_set_status
12001 # as_fn_exit STATUS
12002 # -----------------
12003 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12007 as_fn_set_status $1
12013 # Portably unset VAR.
12016 { eval $1=; unset $1;}
12018 as_unset=as_fn_unset
12019 # as_fn_append VAR VALUE
12020 # ----------------------
12021 # Append the text in VALUE to the end of the definition contained in VAR. Take
12022 # advantage of any shell optimizations that allow amortized linear growth over
12023 # repeated appends, instead of the typical quadratic growth present in naive
12025 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12026 eval 'as_fn_append ()
12037 # as_fn_arith ARG...
12038 # ------------------
12039 # Perform arithmetic evaluation on the ARGs, and store the result in the
12040 # global $as_val. Take advantage of shells that can avoid forks. The arguments
12041 # must be portable across $(()) and expr.
12042 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12043 eval 'as_fn_arith ()
12050 as_val=`expr "$@" || test $? -eq 1`
12055 if expr a : '\(a\)' >/dev/null 2>&1 &&
12056 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12062 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12063 as_basename=basename
12068 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12074 as_me=`$as_basename -- "$0" ||
12075 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12076 X"$0" : 'X\(//\)$' \| \
12077 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12079 sed '/^.*\/\([^/][^/]*\)\/*$/{
12093 # Avoid depending upon Character Ranges.
12094 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12095 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12096 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12097 as_cr_digits='0123456789'
12098 as_cr_alnum=$as_cr_Letters$as_cr_digits
12100 ECHO_C= ECHO_N= ECHO_T=
12101 case `echo -n x` in #(((((
12103 case `echo 'xy\c'` in
12104 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12106 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
12113 rm -f conf$$ conf$$.exe conf$$.file
12114 if test -d conf$$.dir; then
12115 rm -f conf$$.dir/conf$$.file
12118 mkdir conf$$.dir 2>/dev/null
12120 if (echo >conf$$.file) 2>/dev/null; then
12121 if ln -s conf$$.file conf$$ 2>/dev/null; then
12123 # ... but there are two gotchas:
12124 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12125 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12126 # In both cases, we have to default to `cp -pR'.
12127 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12129 elif ln conf$$.file conf$$ 2>/dev/null; then
12137 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12138 rmdir conf$$.dir 2>/dev/null
12143 # Create "$as_dir" as a directory, including parents if necessary.
12148 -*) as_dir=./$as_dir;;
12150 test -d "$as_dir" || eval $as_mkdir_p || {
12154 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12155 *) as_qdir=$as_dir;;
12157 as_dirs="'$as_qdir' $as_dirs"
12158 as_dir=`$as_dirname -- "$as_dir" ||
12159 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12160 X"$as_dir" : 'X\(//\)[^/]' \| \
12161 X"$as_dir" : 'X\(//\)$' \| \
12162 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12163 $as_echo X"$as_dir" |
12164 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12168 /^X\(\/\/\)[^/].*/{
12181 test -d "$as_dir" && break
12183 test -z "$as_dirs" || eval "mkdir $as_dirs"
12184 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12188 if mkdir -p . 2>/dev/null; then
12189 as_mkdir_p='mkdir -p "$as_dir"'
12191 test -d ./-p && rmdir ./-p
12196 # as_fn_executable_p FILE
12197 # -----------------------
12198 # Test if FILE is an executable regular file.
12199 as_fn_executable_p ()
12201 test -f "$1" && test -x "$1"
12202 } # as_fn_executable_p
12203 as_test_x='test -x'
12204 as_executable_p=as_fn_executable_p
12206 # Sed expression to map a string onto a valid CPP name.
12207 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12209 # Sed expression to map a string onto a valid variable name.
12210 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12214 ## ----------------------------------- ##
12215 ## Main body of $CONFIG_STATUS script. ##
12216 ## ----------------------------------- ##
12218 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12220 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12221 # Save the log message, to keep $0 and so on meaningful, and to
12222 # report actual input values of CONFIG_FILES etc. instead of their
12223 # values after options handling.
12225 This file was extended by GNU make $as_me 4.2.1, which was
12226 generated by GNU Autoconf 2.69. Invocation command line was
12228 CONFIG_FILES = $CONFIG_FILES
12229 CONFIG_HEADERS = $CONFIG_HEADERS
12230 CONFIG_LINKS = $CONFIG_LINKS
12231 CONFIG_COMMANDS = $CONFIG_COMMANDS
12234 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12239 case $ac_config_files in *"
12240 "*) set x $ac_config_files; shift; ac_config_files=$*;;
12243 case $ac_config_headers in *"
12244 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12248 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12249 # Files that config.status was made for.
12250 config_files="$ac_config_files"
12251 config_headers="$ac_config_headers"
12252 config_commands="$ac_config_commands"
12256 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12258 \`$as_me' instantiates files and other configuration actions
12259 from templates according to the current configuration. Unless the files
12260 and actions are specified as TAGs, all are instantiated by default.
12262 Usage: $0 [OPTION]... [TAG]...
12264 -h, --help print this help, then exit
12265 -V, --version print version number and configuration settings, then exit
12266 --config print configuration, then exit
12267 -q, --quiet, --silent
12268 do not print progress messages
12269 -d, --debug don't remove temporary files
12270 --recheck update $as_me by reconfiguring in the same conditions
12271 --file=FILE[:TEMPLATE]
12272 instantiate the configuration file FILE
12273 --header=FILE[:TEMPLATE]
12274 instantiate the configuration header FILE
12276 Configuration files:
12279 Configuration headers:
12282 Configuration commands:
12285 Report bugs to <bug-make@gnu.org>.
12286 GNU make home page: <http://www.gnu.org/software/make/>.
12287 General help using GNU software: <http://www.gnu.org/gethelp/>."
12290 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12291 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12293 GNU make config.status 4.2.1
12294 configured by $0, generated by GNU Autoconf 2.69,
12295 with options \\"\$ac_cs_config\\"
12297 Copyright (C) 2012 Free Software Foundation, Inc.
12298 This config.status script is free software; the Free Software Foundation
12299 gives unlimited permission to copy, distribute and modify it."
12306 test -n "\$AWK" || AWK=awk
12309 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12310 # The default lists apply if the user does not specify any file.
12316 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12317 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12321 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12333 # Handling of the options.
12334 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12336 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12337 $as_echo "$ac_cs_version"; exit ;;
12338 --config | --confi | --conf | --con | --co | --c )
12339 $as_echo "$ac_cs_config"; exit ;;
12340 --debug | --debu | --deb | --de | --d | -d )
12342 --file | --fil | --fi | --f )
12345 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12346 '') as_fn_error $? "missing file argument" ;;
12348 as_fn_append CONFIG_FILES " '$ac_optarg'"
12349 ac_need_defaults=false;;
12350 --header | --heade | --head | --hea )
12353 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12355 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12356 ac_need_defaults=false;;
12358 # Conflict between --help and --header
12359 as_fn_error $? "ambiguous option: \`$1'
12360 Try \`$0 --help' for more information.";;
12361 --help | --hel | -h )
12362 $as_echo "$ac_cs_usage"; exit ;;
12363 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12364 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12367 # This is an error.
12368 -*) as_fn_error $? "unrecognized option: \`$1'
12369 Try \`$0 --help' for more information." ;;
12371 *) as_fn_append ac_config_targets " $1"
12372 ac_need_defaults=false ;;
12378 ac_configure_extra_args=
12380 if $ac_cs_silent; then
12382 ac_configure_extra_args="$ac_configure_extra_args --silent"
12386 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12387 if \$ac_cs_recheck; then
12388 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12390 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12391 CONFIG_SHELL='$SHELL'
12392 export CONFIG_SHELL
12397 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12401 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12402 ## Running $as_me. ##
12408 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12412 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12413 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
12414 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
12415 # from automake < 1.5.
12416 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
12417 # Capture the value of LINGUAS because we need it to compute CATALOGS.
12418 LINGUAS="${LINGUAS-%UNSET%}"
12423 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12425 # Handling of arguments.
12426 for ac_config_target in $ac_config_targets
12428 case $ac_config_target in
12429 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12430 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12431 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
12432 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12433 "glob/Makefile") CONFIG_FILES="$CONFIG_FILES glob/Makefile" ;;
12434 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
12435 "config/Makefile") CONFIG_FILES="$CONFIG_FILES config/Makefile" ;;
12436 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
12437 "w32/Makefile") CONFIG_FILES="$CONFIG_FILES w32/Makefile" ;;
12438 "tests/config-flags.pm") CONFIG_FILES="$CONFIG_FILES tests/config-flags.pm" ;;
12440 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12445 # If the user did not use the arguments to specify the items to instantiate,
12446 # then the envvar interface is used. Set only those that are not.
12447 # We use the long form for the default assignment because of an extremely
12448 # bizarre bug on SunOS 4.1.3.
12449 if $ac_need_defaults; then
12450 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12451 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12452 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12455 # Have a temporary directory for convenience. Make it in the build tree
12456 # simply because there is no reason against having it here, and in addition,
12457 # creating and moving files from /tmp can sometimes cause problems.
12458 # Hook for its removal unless debugging.
12459 # Note that there is a small window in which the directory will not be cleaned:
12460 # after its creation but before its name has been assigned to `$tmp'.
12464 trap 'exit_status=$?
12465 : "${ac_tmp:=$tmp}"
12466 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12468 trap 'as_fn_exit 1' 1 2 13 15
12470 # Create a (secure) tmp directory for tmp files.
12473 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12477 tmp=./conf$$-$RANDOM
12478 (umask 077 && mkdir "$tmp")
12479 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12482 # Set up the scripts for CONFIG_FILES section.
12483 # No need to generate them if there are no CONFIG_FILES.
12484 # This happens for instance with `./config.status config.h'.
12485 if test -n "$CONFIG_FILES"; then
12487 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
12488 ac_cs_awk_getline=:
12489 ac_cs_awk_pipe_init=
12490 ac_cs_awk_read_file='
12491 while ((getline aline < (F[key])) > 0)
12494 ac_cs_awk_pipe_fini=
12496 ac_cs_awk_getline=false
12497 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
12498 ac_cs_awk_read_file='
12500 print "cat " F[key] " &&"
12501 '$ac_cs_awk_pipe_init
12502 # The final `:' finishes the AND list.
12503 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
12505 ac_cr=`echo X | tr X '\015'`
12506 # On cygwin, bash can eat \r inside `` if the user requested igncr.
12507 # But we know of no other shell where ac_cr would be empty at this
12508 # point, so we can use a bashism as a fallback.
12509 if test "x$ac_cr" = x; then
12510 eval ac_cr=\$\'\\r\'
12512 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12513 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12516 ac_cs_awk_cr=$ac_cr
12519 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12522 # Create commands to substitute file output variables.
12524 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
12525 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
12526 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
12529 } >conf$$files.sh &&
12530 . ./conf$$files.sh ||
12531 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12532 rm -f conf$$files.sh
12535 echo "cat >conf$$subs.awk <<_ACEOF" &&
12536 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12538 } >conf$$subs.sh ||
12539 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12540 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12542 for ac_last_try in false false false false false :; do
12543 . ./conf$$subs.sh ||
12544 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12546 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12547 if test $ac_delim_n = $ac_delim_num; then
12549 elif $ac_last_try; then
12550 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12552 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12555 rm -f conf$$subs.sh
12557 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12558 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12562 s/^/S["/; s/!.*/"]=/
12572 s/\(.\{148\}\)..*/\1/
12574 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12579 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12586 s/\(.\{148\}\)..*/\1/
12588 s/["\\]/\\&/g; s/^/"/; s/$/"/
12592 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12597 ' <conf$$subs.awk | sed '
12602 ' >>$CONFIG_STATUS || ac_write_fail=1
12603 rm -f conf$$subs.awk
12604 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12606 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12607 for (key in S) S_is_set[key] = 1
12609 \$ac_cs_awk_pipe_init
12613 nfields = split(line, field, "@")
12615 len = length(field[1])
12616 for (i = 2; i < nfields; i++) {
12618 keylen = length(key)
12619 if (S_is_set[key]) {
12621 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12622 len += length(value) + length(field[++i])
12627 if (nfields == 3 && !substed) {
12629 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
12630 \$ac_cs_awk_read_file
12636 \$ac_cs_awk_pipe_fini
12639 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12640 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12641 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12644 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12645 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12648 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12649 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12650 # trailing colons and then remove the whole line if VPATH becomes empty
12651 # (actually we leave an empty line to preserve line numbers).
12652 if test "x$srcdir" = x.; then
12653 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
12671 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12672 fi # test -n "$CONFIG_FILES"
12674 # Set up the scripts for CONFIG_HEADERS section.
12675 # No need to generate them if there are no CONFIG_HEADERS.
12676 # This happens for instance with `./config.status Makefile'.
12677 if test -n "$CONFIG_HEADERS"; then
12678 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
12682 # Transform confdefs.h into an awk script `defines.awk', embedded as
12683 # here-document in config.status, that substitutes the proper values into
12684 # config.h.in to produce config.h.
12686 # Create a delimiter string that does not exist in confdefs.h, to ease
12687 # handling of long lines.
12689 for ac_last_try in false false :; do
12690 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12691 if test -z "$ac_tt"; then
12693 elif $ac_last_try; then
12694 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12696 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12700 # For the awk script, D is an array of macro values keyed by name,
12701 # likewise P contains macro parameters if any. Preserve backslash
12702 # newline sequences.
12704 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12706 s/.\{148\}/&'"$ac_delim"'/g
12709 s/^[ ]*#[ ]*define[ ][ ]*/ /
12716 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12718 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
12722 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12723 D["\1"]=" \3\\\\\\n"\\/p
12725 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12730 s/.\{148\}/&'"$ac_delim"'/g
12735 s/["\\]/\\&/g; s/^/"/; s/$/"/p
12738 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12740 ' <confdefs.h | sed '
12741 s/'"$ac_delim"'/"\\\
12742 "/g' >>$CONFIG_STATUS || ac_write_fail=1
12744 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12745 for (key in D) D_is_set[key] = 1
12748 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12750 split(line, arg, " ")
12751 if (arg[1] == "#") {
12755 defundef = substr(arg[1], 2)
12758 split(mac1, mac2, "(") #)
12760 prefix = substr(line, 1, index(line, defundef) - 1)
12761 if (D_is_set[macro]) {
12762 # Preserve the white space surrounding the "#".
12763 print prefix "define", macro P[macro] D[macro]
12766 # Replace #undef with comments. This is necessary, for example,
12767 # in the case of _POSIX_SOURCE, which is predefined and required
12768 # on some systems where configure will not decide to define it.
12769 if (defundef == "undef") {
12770 print "/*", prefix defundef, macro, "*/"
12778 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12779 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12780 fi # test -n "$CONFIG_HEADERS"
12783 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
12788 :[FHLC]) ac_mode=$ac_tag; continue;;
12790 case $ac_mode$ac_tag in
12792 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
12793 :[FH]-) ac_tag=-:-;;
12794 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12811 -) ac_f="$ac_tmp/stdin";;
12812 *) # Look for the file first in the build tree, then in the source tree
12813 # (if the path is not absolute). The absolute path cannot be DOS-style,
12814 # because $ac_f cannot contain `:'.
12818 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12820 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12822 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12823 as_fn_append ac_file_inputs " '$ac_f'"
12826 # Let's still pretend it is `configure' which instantiates (i.e., don't
12827 # use $as_me), people would be surprised to read:
12828 # /* config.h. Generated by config.status. */
12829 configure_input='Generated from '`
12830 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12832 if test x"$ac_file" != x-; then
12833 configure_input="$ac_file. $configure_input"
12834 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12835 $as_echo "$as_me: creating $ac_file" >&6;}
12837 # Neutralize special characters interpreted by sed in replacement strings.
12838 case $configure_input in #(
12839 *\&* | *\|* | *\\* )
12840 ac_sed_conf_input=`$as_echo "$configure_input" |
12841 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12842 *) ac_sed_conf_input=$configure_input;;
12846 *:-:* | *:-) cat >"$ac_tmp/stdin" \
12847 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12852 ac_dir=`$as_dirname -- "$ac_file" ||
12853 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12854 X"$ac_file" : 'X\(//\)[^/]' \| \
12855 X"$ac_file" : 'X\(//\)$' \| \
12856 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12857 $as_echo X"$ac_file" |
12858 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12862 /^X\(\/\/\)[^/].*/{
12875 as_dir="$ac_dir"; as_fn_mkdir_p
12879 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12881 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12882 # A ".." for each directory in $ac_dir_suffix.
12883 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12884 case $ac_top_builddir_sub in
12885 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12886 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12889 ac_abs_top_builddir=$ac_pwd
12890 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12891 # for backward compatibility:
12892 ac_top_builddir=$ac_top_build_prefix
12895 .) # We are building in place.
12897 ac_top_srcdir=$ac_top_builddir_sub
12898 ac_abs_top_srcdir=$ac_pwd ;;
12899 [\\/]* | ?:[\\/]* ) # Absolute name.
12900 ac_srcdir=$srcdir$ac_dir_suffix;
12901 ac_top_srcdir=$srcdir
12902 ac_abs_top_srcdir=$srcdir ;;
12903 *) # Relative name.
12904 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12905 ac_top_srcdir=$ac_top_build_prefix$srcdir
12906 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12908 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12918 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12919 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12921 ac_MKDIR_P=$MKDIR_P
12923 [\\/$]* | ?:[\\/]* ) ;;
12924 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12928 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12929 # If the template does not know about datarootdir, expand it.
12930 # FIXME: This hack should be removed a few years after 2.60.
12931 ac_datarootdir_hack=; ac_datarootdir_seen=
12942 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12943 *datarootdir*) ac_datarootdir_seen=yes;;
12944 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12945 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12946 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12948 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12949 ac_datarootdir_hack='
12950 s&@datadir@&$datadir&g
12951 s&@docdir@&$docdir&g
12952 s&@infodir@&$infodir&g
12953 s&@localedir@&$localedir&g
12954 s&@mandir@&$mandir&g
12955 s&\\\${datarootdir}&$datarootdir&g' ;;
12959 # Neutralize VPATH when `$srcdir' = `.'.
12960 # Shell code in configure.ac might set extrasub.
12961 # FIXME: do we really want to maintain this feature?
12962 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12963 ac_sed_extra="$ac_vpsub
12966 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12968 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12969 s|@configure_input@|$ac_sed_conf_input|;t t
12970 s&@top_builddir@&$ac_top_builddir_sub&;t t
12971 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12972 s&@srcdir@&$ac_srcdir&;t t
12973 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12974 s&@top_srcdir@&$ac_top_srcdir&;t t
12975 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12976 s&@builddir@&$ac_builddir&;t t
12977 s&@abs_builddir@&$ac_abs_builddir&;t t
12978 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12979 s&@INSTALL@&$ac_INSTALL&;t t
12980 s&@MKDIR_P@&$ac_MKDIR_P&;t t
12981 $ac_datarootdir_hack
12983 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
12984 if $ac_cs_awk_getline; then
12985 $AWK -f "$ac_tmp/subs.awk"
12987 $AWK -f "$ac_tmp/subs.awk" | $SHELL
12989 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12991 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12992 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12993 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
12994 "$ac_tmp/out"`; test -z "$ac_out"; } &&
12995 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12996 which seems to be undefined. Please make sure it is defined" >&5
12997 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12998 which seems to be undefined. Please make sure it is defined" >&2;}
13000 rm -f "$ac_tmp/stdin"
13002 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13003 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
13005 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13011 if test x"$ac_file" != x-; then
13013 $as_echo "/* $configure_input */" \
13014 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13015 } >"$ac_tmp/config.h" \
13016 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13017 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
13018 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13019 $as_echo "$as_me: $ac_file is unchanged" >&6;}
13022 mv "$ac_tmp/config.h" "$ac_file" \
13023 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13026 $as_echo "/* $configure_input */" \
13027 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13028 || as_fn_error $? "could not create -" "$LINENO" 5
13030 # Compute "$ac_file"'s index in $config_headers.
13033 for _am_header in $config_headers :; do
13034 case $_am_header in
13035 $_am_arg | $_am_arg:* )
13038 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13041 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13042 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13043 X"$_am_arg" : 'X\(//\)[^/]' \| \
13044 X"$_am_arg" : 'X\(//\)$' \| \
13045 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13046 $as_echo X"$_am_arg" |
13047 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13051 /^X\(\/\/\)[^/].*/{
13063 s/.*/./; q'`/stamp-h$_am_stamp_count
13066 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13067 $as_echo "$as_me: executing $ac_file commands" >&6;}
13072 case $ac_file$ac_mode in
13073 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13074 # Older Autoconf quotes --file arguments for eval, but not when files
13075 # are listed without --file. Let's play safe and only enable the eval
13076 # if we detect the quoting.
13077 case $CONFIG_FILES in
13078 *\'*) eval set x "$CONFIG_FILES" ;;
13079 *) set x $CONFIG_FILES ;;
13084 # Strip MF so we end up with the name of the file.
13085 mf=`echo "$mf" | sed -e 's/:.*$//'`
13086 # Check whether this is an Automake generated Makefile or not.
13087 # We used to match only the files named 'Makefile.in', but
13088 # some people rename them; so instead we look at the file content.
13089 # Grep'ing the first line is not enough: some people post-process
13090 # each Makefile.in and add a new line on top of each file to say so.
13091 # Grep'ing the whole file is not good either: AIX grep has a line
13092 # limit of 2048, but all sed's we know have understand at least 4000.
13093 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
13094 dirpart=`$as_dirname -- "$mf" ||
13095 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13096 X"$mf" : 'X\(//\)[^/]' \| \
13097 X"$mf" : 'X\(//\)$' \| \
13098 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
13100 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13104 /^X\(\/\/\)[^/].*/{
13120 # Extract the definition of DEPDIR, am__include, and am__quote
13121 # from the Makefile without running 'make'.
13122 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13123 test -z "$DEPDIR" && continue
13124 am__include=`sed -n 's/^am__include = //p' < "$mf"`
13125 test -z "$am__include" && continue
13126 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13127 # Find all dependency output files, they are included files with
13128 # $(DEPDIR) in their names. We invoke sed twice because it is the
13129 # simplest approach to changing $(DEPDIR) to its actual value in the
13131 for file in `sed -n "
13132 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13133 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
13134 # Make sure the directory exists.
13135 test -f "$dirpart/$file" && continue
13136 fdir=`$as_dirname -- "$file" ||
13137 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13138 X"$file" : 'X\(//\)[^/]' \| \
13139 X"$file" : 'X\(//\)$' \| \
13140 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
13141 $as_echo X"$file" |
13142 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13146 /^X\(\/\/\)[^/].*/{
13159 as_dir=$dirpart/$fdir; as_fn_mkdir_p
13160 # echo "creating $dirpart/$file"
13161 echo '# dummy' > "$dirpart/$file"
13166 "po-directories":C)
13167 for ac_file in $CONFIG_FILES; do
13168 # Support "outfile[:infile[:infile...]]"
13170 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
13172 # PO directories have a Makefile.in generated from Makefile.in.in.
13173 case "$ac_file" in */Makefile.in)
13174 # Adjust a relative srcdir.
13175 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
13176 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
13177 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
13178 # In autoconf-2.13 it is called $ac_given_srcdir.
13179 # In autoconf-2.50 it is called $srcdir.
13180 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
13181 case "$ac_given_srcdir" in
13182 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
13183 /*) top_srcdir="$ac_given_srcdir" ;;
13184 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
13186 # Treat a directory as a PO directory if and only if it has a
13187 # POTFILES.in file. This allows packages to have multiple PO
13188 # directories under different names or in different locations.
13189 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
13190 rm -f "$ac_dir/POTFILES"
13191 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
13192 gt_tab=`printf '\t'`
13193 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ${gt_tab}]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
13194 POMAKEFILEDEPS="POTFILES.in"
13195 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
13196 # on $ac_dir but don't depend on user-specified configuration
13198 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
13199 # The LINGUAS file contains the set of available languages.
13200 if test -n "$OBSOLETE_ALL_LINGUAS"; then
13201 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
13203 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
13204 # Hide the ALL_LINGUAS assignment from automake < 1.5.
13205 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
13206 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
13208 # The set of available languages was given in configure.in.
13209 # Hide the ALL_LINGUAS assignment from automake < 1.5.
13210 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
13213 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
13214 # Compute UPDATEPOFILES
13215 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
13216 # Compute DUMMYPOFILES
13217 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
13219 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
13220 case "$ac_given_srcdir" in
13222 *) srcdirpre='$(srcdir)/' ;;
13228 for lang in $ALL_LINGUAS; do
13229 POFILES="$POFILES $srcdirpre$lang.po"
13230 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
13231 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
13232 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
13234 # CATALOGS depends on both $ac_dir and the user's LINGUAS
13235 # environment variable.
13237 if test -n "$ALL_LINGUAS"; then
13238 for presentlang in $ALL_LINGUAS; do
13240 if test "%UNSET%" != "$LINGUAS"; then
13241 desiredlanguages="$LINGUAS"
13243 desiredlanguages="$ALL_LINGUAS"
13245 for desiredlang in $desiredlanguages; do
13246 # Use the presentlang catalog if desiredlang is
13247 # a. equal to presentlang, or
13248 # b. a variant of presentlang (because in this case,
13249 # presentlang can be used as a fallback for messages
13250 # which are not translated in the desiredlang catalog).
13251 case "$desiredlang" in
13252 "$presentlang"*) useit=yes;;
13255 if test $useit = yes; then
13256 INST_LINGUAS="$INST_LINGUAS $presentlang"
13261 if test -n "$INST_LINGUAS"; then
13262 for lang in $INST_LINGUAS; do
13263 CATALOGS="$CATALOGS $lang.gmo"
13266 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
13267 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
13268 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
13269 if test -f "$f"; then
13271 *.orig | *.bak | *~) ;;
13272 *) cat "$f" >> "$ac_dir/Makefile" ;;
13287 ac_clean_files=$ac_clean_files_save
13289 test $ac_write_fail = 0 ||
13290 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
13293 # configure is writing to config.log, and then calls config.status.
13294 # config.status does its own redirection, appending to config.log.
13295 # Unfortunately, on DOS this fails, as config.log is still kept open
13296 # by configure, so config.status won't be able to write to it; its
13297 # output is simply discarded. So we exec the FD to /dev/null,
13298 # effectively closing config.log, so it can be properly (re)opened and
13299 # appended to by config.status. When coming back to configure, we
13300 # need to make the FD available again.
13301 if test "$no_create" != yes; then
13303 ac_config_status_args=
13304 test "$silent" = yes &&
13305 ac_config_status_args="$ac_config_status_args --quiet"
13307 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13309 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13310 # would make configure fail if this is the last instruction.
13311 $ac_cs_success || as_fn_exit 1
13313 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13314 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13315 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13319 # We only generate the build.sh if we have a build.sh.in; we won't have
13320 # one before we've created a distribution.
13321 if test -f "$srcdir/build.sh.in"; then :
13322 ./config.status --file build.sh