2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in #(
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 as_echo_n='sh -c $as_echo_n_body as_echo'
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
89 # Find who we are. Look in the path if we contain no directory separator.
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
147 *v*x* | *x*v* ) as_opts=-vx ;;
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 case \`(set -o) 2>/dev/null\` in #(
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1"
200 if (eval "$as_required") 2>/dev/null; then :
205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
210 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213 test -z "$as_dir" && as_dir=.
217 for as_base in sh bash ksh sh5; do
218 # Try only shells that exist, to save several forks.
219 as_shell=$as_dir/$as_base
220 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222 CONFIG_SHELL=$as_shell as_have_required=yes
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
231 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233 CONFIG_SHELL=$SHELL as_have_required=yes
238 if test "x$CONFIG_SHELL" != x; then :
240 # We cannot yet assume a decent shell, so we have to provide a
241 # neutralization value for shells without unset; and this also
242 # works around shells that cannot unset nonexistent variables.
243 # Preserve -v and -x to the replacement shell.
246 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
248 *v*x* | *x*v* ) as_opts=-vx ;;
253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254 # Admittedly, this is quite paranoid, since all the known shells bail
255 # out after a failed `exec'.
256 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
260 if test x$as_have_required = xno; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x${ZSH_VERSION+set} = xset ; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268 $0: including any error possibly output before this
269 $0: message. Then install a modern shell, or manually run
270 $0: the script under such a shell if you do have one."
276 SHELL=${CONFIG_SHELL-/bin/sh}
278 # Unset more variables known to interfere with behavior of common tools.
279 CLICOLOR_FORCE= GREP_OPTIONS=
280 unset CLICOLOR_FORCE GREP_OPTIONS
282 ## --------------------- ##
283 ## M4sh Shell Functions. ##
284 ## --------------------- ##
287 # Portably unset VAR.
290 { eval $1=; unset $1;}
294 # as_fn_set_status STATUS
295 # -----------------------
296 # Set $? to STATUS, without forking.
304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
314 # Create "$as_dir" as a directory, including parents if necessary.
319 -*) as_dir=./$as_dir;;
321 test -d "$as_dir" || eval $as_mkdir_p || {
325 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
328 as_dirs="'$as_qdir' $as_dirs"
329 as_dir=`$as_dirname -- "$as_dir" ||
330 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 X"$as_dir" : 'X\(//\)[^/]' \| \
332 X"$as_dir" : 'X\(//\)$' \| \
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334 $as_echo X"$as_dir" |
335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
352 test -d "$as_dir" && break
354 test -z "$as_dirs" || eval "mkdir $as_dirs"
355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
360 # as_fn_executable_p FILE
361 # -----------------------
362 # Test if FILE is an executable regular file.
363 as_fn_executable_p ()
365 test -f "$1" && test -x "$1"
366 } # as_fn_executable_p
367 # as_fn_append VAR VALUE
368 # ----------------------
369 # Append the text in VALUE to the end of the definition contained in VAR. Take
370 # advantage of any shell optimizations that allow amortized linear growth over
371 # repeated appends, instead of the typical quadratic growth present in naive
373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374 eval 'as_fn_append ()
387 # Perform arithmetic evaluation on the ARGs, and store the result in the
388 # global $as_val. Take advantage of shells that can avoid forks. The arguments
389 # must be portable across $(()) and expr.
390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
398 as_val=`expr "$@" || test $? -eq 1`
403 # as_fn_error STATUS ERROR [LINENO LOG_FD]
404 # ----------------------------------------
405 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407 # script with STATUS, using 1 if that was 0.
410 as_status=$1; test $as_status -eq 0 && as_status=1
412 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
415 $as_echo "$as_me: error: $2" >&2
416 as_fn_exit $as_status
419 if expr a : '\(a\)' >/dev/null 2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001; then
426 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
432 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
438 as_me=`$as_basename -- "$0" ||
439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
443 sed '/^.*\/\([^/][^/]*\)\/*$/{
457 # Avoid depending upon Character Ranges.
458 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461 as_cr_digits='0123456789'
462 as_cr_alnum=$as_cr_Letters$as_cr_digits
465 as_lineno_1=$LINENO as_lineno_1a=$LINENO
466 as_lineno_2=$LINENO as_lineno_2a=$LINENO
467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
485 chmod +x "$as_me.lineno" ||
486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec=no; export _as_can_reexec
492 # Don't try to exec as it changes $[0], causing all sort of problems
493 # (the dirname of $[0] is not the place where we might find the
494 # original and so on. Autoconf is especially sensitive to this).
496 # Exit status is that of the last command.
500 ECHO_C= ECHO_N= ECHO_T=
501 case `echo -n x` in #(((((
503 case `echo 'xy\c'` in
504 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
513 rm -f conf$$ conf$$.exe conf$$.file
514 if test -d conf$$.dir; then
515 rm -f conf$$.dir/conf$$.file
518 mkdir conf$$.dir 2>/dev/null
520 if (echo >conf$$.file) 2>/dev/null; then
521 if ln -s conf$$.file conf$$ 2>/dev/null; then
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526 # In both cases, we have to default to `cp -pR'.
527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
529 elif ln conf$$.file conf$$ 2>/dev/null; then
537 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538 rmdir conf$$.dir 2>/dev/null
540 if mkdir -p . 2>/dev/null; then
541 as_mkdir_p='mkdir -p "$as_dir"'
543 test -d ./-p && rmdir ./-p
548 as_executable_p=as_fn_executable_p
550 # Sed expression to map a string onto a valid CPP name.
551 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
553 # Sed expression to map a string onto a valid variable name.
554 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
557 test -n "$DJDIR" || exec 7<&0 </dev/null
561 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562 # so uname gets run too.
563 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
568 ac_default_prefix=/usr/local
570 ac_config_libobj_dir=.
577 # Identity of this package.
585 # Factoring default headers for most tests.
586 ac_includes_default="\
588 #ifdef HAVE_SYS_TYPES_H
589 # include <sys/types.h>
591 #ifdef HAVE_SYS_STAT_H
592 # include <sys/stat.h>
598 # ifdef HAVE_STDLIB_H
603 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
608 #ifdef HAVE_STRINGS_H
609 # include <strings.h>
611 #ifdef HAVE_INTTYPES_H
612 # include <inttypes.h>
621 ac_unique_file="gettext.c"
623 ac_subst_vars='LTLIBOBJS
641 INTL_LIBTOOL_SUFFIX_PREFIX
648 BUILD_INCLUDED_LIBINTL
710 program_transform_name
723 enable_option_checking
729 with_included_gettext
732 enable_maintainer_mode
735 ac_precious_vars='build_alias
746 # Initialize some variables set by options.
748 ac_init_version=false
749 ac_unrecognized_opts=
751 # The variables have the same names as the options, with
752 # dashes changed to underlines.
760 program_transform_name=s,x,x,
768 # Installation directory options.
769 # These are left unexpanded so users can "make install exec_prefix=/foo"
770 # and all the variables that are supposed to be based on exec_prefix
771 # by default will actually change.
772 # Use braces instead of parens because sh, perl, etc. also accept them.
773 # (The list follows the same order as the GNU Coding Standards.)
774 bindir='${exec_prefix}/bin'
775 sbindir='${exec_prefix}/sbin'
776 libexecdir='${exec_prefix}/libexec'
777 datarootdir='${prefix}/share'
778 datadir='${datarootdir}'
779 sysconfdir='${prefix}/etc'
780 sharedstatedir='${prefix}/com'
781 localstatedir='${prefix}/var'
782 includedir='${prefix}/include'
783 oldincludedir='/usr/include'
784 docdir='${datarootdir}/doc/${PACKAGE}'
785 infodir='${datarootdir}/info'
790 libdir='${exec_prefix}/lib'
791 localedir='${datarootdir}/locale'
792 mandir='${datarootdir}/man'
798 # If the previous option needs an argument, assign it.
799 if test -n "$ac_prev"; then
800 eval $ac_prev=\$ac_option
806 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
811 # Accept the important Cygnus configure options, so we can diagnose typos.
813 case $ac_dashdash$ac_option in
817 -bindir | --bindir | --bindi | --bind | --bin | --bi)
819 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
822 -build | --build | --buil | --bui | --bu)
823 ac_prev=build_alias ;;
824 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
825 build_alias=$ac_optarg ;;
827 -cache-file | --cache-file | --cache-fil | --cache-fi \
828 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
829 ac_prev=cache_file ;;
830 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
831 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
832 cache_file=$ac_optarg ;;
835 cache_file=config.cache ;;
837 -datadir | --datadir | --datadi | --datad)
839 -datadir=* | --datadir=* | --datadi=* | --datad=*)
840 datadir=$ac_optarg ;;
842 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
843 | --dataroo | --dataro | --datar)
844 ac_prev=datarootdir ;;
845 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
846 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
847 datarootdir=$ac_optarg ;;
849 -disable-* | --disable-*)
850 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
851 # Reject names that are not valid shell variable names.
852 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
853 as_fn_error $? "invalid feature name: $ac_useropt"
854 ac_useropt_orig=$ac_useropt
855 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
856 case $ac_user_opts in
860 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
861 ac_unrecognized_sep=', ';;
863 eval enable_$ac_useropt=no ;;
865 -docdir | --docdir | --docdi | --doc | --do)
867 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
870 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
872 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
875 -enable-* | --enable-*)
876 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
877 # Reject names that are not valid shell variable names.
878 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
879 as_fn_error $? "invalid feature name: $ac_useropt"
880 ac_useropt_orig=$ac_useropt
881 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
882 case $ac_user_opts in
886 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
887 ac_unrecognized_sep=', ';;
889 eval enable_$ac_useropt=\$ac_optarg ;;
891 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
892 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
893 | --exec | --exe | --ex)
894 ac_prev=exec_prefix ;;
895 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
896 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
897 | --exec=* | --exe=* | --ex=*)
898 exec_prefix=$ac_optarg ;;
900 -gas | --gas | --ga | --g)
901 # Obsolete; use --with-gas.
904 -help | --help | --hel | --he | -h)
906 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
907 ac_init_help=recursive ;;
908 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
909 ac_init_help=short ;;
911 -host | --host | --hos | --ho)
912 ac_prev=host_alias ;;
913 -host=* | --host=* | --hos=* | --ho=*)
914 host_alias=$ac_optarg ;;
916 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
918 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
920 htmldir=$ac_optarg ;;
922 -includedir | --includedir | --includedi | --included | --include \
923 | --includ | --inclu | --incl | --inc)
924 ac_prev=includedir ;;
925 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
926 | --includ=* | --inclu=* | --incl=* | --inc=*)
927 includedir=$ac_optarg ;;
929 -infodir | --infodir | --infodi | --infod | --info | --inf)
931 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
932 infodir=$ac_optarg ;;
934 -libdir | --libdir | --libdi | --libd)
936 -libdir=* | --libdir=* | --libdi=* | --libd=*)
939 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
940 | --libexe | --libex | --libe)
941 ac_prev=libexecdir ;;
942 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
943 | --libexe=* | --libex=* | --libe=*)
944 libexecdir=$ac_optarg ;;
946 -localedir | --localedir | --localedi | --localed | --locale)
948 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
949 localedir=$ac_optarg ;;
951 -localstatedir | --localstatedir | --localstatedi | --localstated \
952 | --localstate | --localstat | --localsta | --localst | --locals)
953 ac_prev=localstatedir ;;
954 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
955 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
956 localstatedir=$ac_optarg ;;
958 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
960 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
964 # Obsolete; use --without-fp.
967 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
968 | --no-cr | --no-c | -n)
971 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
972 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
975 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
976 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
977 | --oldin | --oldi | --old | --ol | --o)
978 ac_prev=oldincludedir ;;
979 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
980 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
981 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
982 oldincludedir=$ac_optarg ;;
984 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
986 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
989 -program-prefix | --program-prefix | --program-prefi | --program-pref \
990 | --program-pre | --program-pr | --program-p)
991 ac_prev=program_prefix ;;
992 -program-prefix=* | --program-prefix=* | --program-prefi=* \
993 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
994 program_prefix=$ac_optarg ;;
996 -program-suffix | --program-suffix | --program-suffi | --program-suff \
997 | --program-suf | --program-su | --program-s)
998 ac_prev=program_suffix ;;
999 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1000 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1001 program_suffix=$ac_optarg ;;
1003 -program-transform-name | --program-transform-name \
1004 | --program-transform-nam | --program-transform-na \
1005 | --program-transform-n | --program-transform- \
1006 | --program-transform | --program-transfor \
1007 | --program-transfo | --program-transf \
1008 | --program-trans | --program-tran \
1009 | --progr-tra | --program-tr | --program-t)
1010 ac_prev=program_transform_name ;;
1011 -program-transform-name=* | --program-transform-name=* \
1012 | --program-transform-nam=* | --program-transform-na=* \
1013 | --program-transform-n=* | --program-transform-=* \
1014 | --program-transform=* | --program-transfor=* \
1015 | --program-transfo=* | --program-transf=* \
1016 | --program-trans=* | --program-tran=* \
1017 | --progr-tra=* | --program-tr=* | --program-t=*)
1018 program_transform_name=$ac_optarg ;;
1020 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1022 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1023 pdfdir=$ac_optarg ;;
1025 -psdir | --psdir | --psdi | --psd | --ps)
1027 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1030 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1031 | -silent | --silent | --silen | --sile | --sil)
1034 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1036 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1038 sbindir=$ac_optarg ;;
1040 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1041 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1042 | --sharedst | --shareds | --shared | --share | --shar \
1044 ac_prev=sharedstatedir ;;
1045 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1046 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1047 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1049 sharedstatedir=$ac_optarg ;;
1051 -site | --site | --sit)
1053 -site=* | --site=* | --sit=*)
1056 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1058 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1059 srcdir=$ac_optarg ;;
1061 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1062 | --syscon | --sysco | --sysc | --sys | --sy)
1063 ac_prev=sysconfdir ;;
1064 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1065 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1066 sysconfdir=$ac_optarg ;;
1068 -target | --target | --targe | --targ | --tar | --ta | --t)
1069 ac_prev=target_alias ;;
1070 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1071 target_alias=$ac_optarg ;;
1073 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1076 -version | --version | --versio | --versi | --vers | -V)
1077 ac_init_version=: ;;
1080 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1081 # Reject names that are not valid shell variable names.
1082 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1083 as_fn_error $? "invalid package name: $ac_useropt"
1084 ac_useropt_orig=$ac_useropt
1085 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1086 case $ac_user_opts in
1090 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1091 ac_unrecognized_sep=', ';;
1093 eval with_$ac_useropt=\$ac_optarg ;;
1095 -without-* | --without-*)
1096 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1097 # Reject names that are not valid shell variable names.
1098 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1099 as_fn_error $? "invalid package name: $ac_useropt"
1100 ac_useropt_orig=$ac_useropt
1101 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1102 case $ac_user_opts in
1106 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1107 ac_unrecognized_sep=', ';;
1109 eval with_$ac_useropt=no ;;
1112 # Obsolete; use --with-x.
1115 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1116 | --x-incl | --x-inc | --x-in | --x-i)
1117 ac_prev=x_includes ;;
1118 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1119 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1120 x_includes=$ac_optarg ;;
1122 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1123 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1124 ac_prev=x_libraries ;;
1125 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1126 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1127 x_libraries=$ac_optarg ;;
1129 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1130 Try \`$0 --help' for more information"
1134 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1135 # Reject names that are not valid shell variable names.
1136 case $ac_envvar in #(
1137 '' | [0-9]* | *[!_$as_cr_alnum]* )
1138 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1140 eval $ac_envvar=\$ac_optarg
1141 export $ac_envvar ;;
1144 # FIXME: should be removed in autoconf 3.0.
1145 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1146 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1147 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1148 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1154 if test -n "$ac_prev"; then
1155 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1156 as_fn_error $? "missing argument to $ac_option"
1159 if test -n "$ac_unrecognized_opts"; then
1160 case $enable_option_checking in
1162 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1163 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1167 # Check all directory arguments for consistency.
1168 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1169 datadir sysconfdir sharedstatedir localstatedir includedir \
1170 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1171 libdir localedir mandir
1173 eval ac_val=\$$ac_var
1174 # Remove trailing slashes.
1177 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1178 eval $ac_var=\$ac_val;;
1180 # Be sure to have absolute directory names.
1182 [\\/$]* | ?:[\\/]* ) continue;;
1183 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1185 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1188 # There might be people who depend on the old broken behavior: `$host'
1189 # used to hold the argument of --host etc.
1190 # FIXME: To remove some day.
1193 target=$target_alias
1195 # FIXME: To remove some day.
1196 if test "x$host_alias" != x; then
1197 if test "x$build_alias" = x; then
1198 cross_compiling=maybe
1199 elif test "x$build_alias" != "x$host_alias"; then
1205 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1207 test "$silent" = yes && exec 6>/dev/null
1210 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1211 ac_ls_di=`ls -di .` &&
1212 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1213 as_fn_error $? "working directory cannot be determined"
1214 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1215 as_fn_error $? "pwd does not report name of working directory"
1218 # Find the source files, if location was not specified.
1219 if test -z "$srcdir"; then
1220 ac_srcdir_defaulted=yes
1221 # Try the directory containing this script, then the parent directory.
1222 ac_confdir=`$as_dirname -- "$as_myself" ||
1223 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1224 X"$as_myself" : 'X\(//\)[^/]' \| \
1225 X"$as_myself" : 'X\(//\)$' \| \
1226 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1227 $as_echo X"$as_myself" |
1228 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1246 if test ! -r "$srcdir/$ac_unique_file"; then
1250 ac_srcdir_defaulted=no
1252 if test ! -r "$srcdir/$ac_unique_file"; then
1253 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1254 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1256 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1258 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1260 # When building in place, set srcdir=.
1261 if test "$ac_abs_confdir" = "$ac_pwd"; then
1264 # Remove unnecessary trailing slashes from srcdir.
1265 # Double slashes in file names in object file debugging info
1266 # mess up M-x gdb in Emacs.
1268 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1270 for ac_var in $ac_precious_vars; do
1271 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1272 eval ac_env_${ac_var}_value=\$${ac_var}
1273 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1274 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1278 # Report the --help message.
1280 if test "$ac_init_help" = "long"; then
1281 # Omit some internal or obsolete options to make the list less imposing.
1282 # This message is too long to be a string in the A/UX 3.1 sh.
1284 \`configure' configures this package to adapt to many kinds of systems.
1286 Usage: $0 [OPTION]... [VAR=VALUE]...
1288 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1289 VAR=VALUE. See below for descriptions of some of the useful variables.
1291 Defaults for the options are specified in brackets.
1294 -h, --help display this help and exit
1295 --help=short display options specific to this package
1296 --help=recursive display the short help of all the included packages
1297 -V, --version display version information and exit
1298 -q, --quiet, --silent do not print \`checking ...' messages
1299 --cache-file=FILE cache test results in FILE [disabled]
1300 -C, --config-cache alias for \`--cache-file=config.cache'
1301 -n, --no-create do not create output files
1302 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1304 Installation directories:
1305 --prefix=PREFIX install architecture-independent files in PREFIX
1306 [$ac_default_prefix]
1307 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1310 By default, \`make install' will install all the files in
1311 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1312 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1313 for instance \`--prefix=\$HOME'.
1315 For better control, use the options below.
1317 Fine tuning of the installation directories:
1318 --bindir=DIR user executables [EPREFIX/bin]
1319 --sbindir=DIR system admin executables [EPREFIX/sbin]
1320 --libexecdir=DIR program executables [EPREFIX/libexec]
1321 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1322 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1323 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1324 --libdir=DIR object code libraries [EPREFIX/lib]
1325 --includedir=DIR C header files [PREFIX/include]
1326 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1327 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1328 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1329 --infodir=DIR info documentation [DATAROOTDIR/info]
1330 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1331 --mandir=DIR man documentation [DATAROOTDIR/man]
1332 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1333 --htmldir=DIR html documentation [DOCDIR]
1334 --dvidir=DIR dvi documentation [DOCDIR]
1335 --pdfdir=DIR pdf documentation [DOCDIR]
1336 --psdir=DIR ps documentation [DOCDIR]
1342 --build=BUILD configure for building on BUILD [guessed]
1343 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1347 if test -n "$ac_init_help"; then
1352 --disable-option-checking ignore unrecognized --enable/--with options
1353 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1354 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1355 --disable-nls do not use Native Language Support
1356 --disable-rpath do not hardcode runtime library paths
1357 --enable-maintainer-mode enable rules only needed by maintainers
1358 --enable-host-shared build host code as shared libraries
1361 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1362 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1363 --with-gnu-ld assume the C compiler uses GNU ld default=no
1364 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1365 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1366 --with-libiconv-type=TYPE type of library to search for (auto/static/shared)
1367 --with-included-gettext use the GNU gettext library included here
1368 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1369 --without-libintl-prefix don't search for libintl in includedir and libdir
1370 --with-libintl-type=TYPE type of library to search for (auto/static/shared)
1372 Some influential environment variables:
1373 CC C compiler command
1374 CFLAGS C compiler flags
1375 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1376 nonstandard directory <lib dir>
1377 LIBS libraries to pass to the linker, e.g. -l<library>
1378 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1379 you have headers in a nonstandard directory <include dir>
1382 Use these variables to override the choices made by `configure' or to help
1383 it to find libraries and programs with nonstandard names/locations.
1385 Report bugs to the package provider.
1390 if test "$ac_init_help" = "recursive"; then
1391 # If there are subdirs, report their specific --help.
1392 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1393 test -d "$ac_dir" ||
1394 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1399 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1401 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1402 # A ".." for each directory in $ac_dir_suffix.
1403 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1404 case $ac_top_builddir_sub in
1405 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1406 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1409 ac_abs_top_builddir=$ac_pwd
1410 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1411 # for backward compatibility:
1412 ac_top_builddir=$ac_top_build_prefix
1415 .) # We are building in place.
1417 ac_top_srcdir=$ac_top_builddir_sub
1418 ac_abs_top_srcdir=$ac_pwd ;;
1419 [\\/]* | ?:[\\/]* ) # Absolute name.
1420 ac_srcdir=$srcdir$ac_dir_suffix;
1421 ac_top_srcdir=$srcdir
1422 ac_abs_top_srcdir=$srcdir ;;
1424 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1425 ac_top_srcdir=$ac_top_build_prefix$srcdir
1426 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1428 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1430 cd "$ac_dir" || { ac_status=$?; continue; }
1431 # Check for guested configure.
1432 if test -f "$ac_srcdir/configure.gnu"; then
1434 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1435 elif test -f "$ac_srcdir/configure"; then
1437 $SHELL "$ac_srcdir/configure" --help=recursive
1439 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1441 cd "$ac_pwd" || { ac_status=$?; break; }
1445 test -n "$ac_init_help" && exit $ac_status
1446 if $ac_init_version; then
1449 generated by GNU Autoconf 2.69
1451 Copyright (C) 2012 Free Software Foundation, Inc.
1452 This configure script is free software; the Free Software Foundation
1453 gives unlimited permission to copy, distribute and modify it.
1458 ## ------------------------ ##
1459 ## Autoconf initialization. ##
1460 ## ------------------------ ##
1462 # ac_fn_c_try_compile LINENO
1463 # --------------------------
1464 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1465 ac_fn_c_try_compile ()
1467 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1468 rm -f conftest.$ac_objext
1469 if { { ac_try="$ac_compile"
1471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1472 *) ac_try_echo=$ac_try;;
1474 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1475 $as_echo "$ac_try_echo"; } >&5
1476 (eval "$ac_compile") 2>conftest.err
1478 if test -s conftest.err; then
1479 grep -v '^ *+' conftest.err >conftest.er1
1480 cat conftest.er1 >&5
1481 mv -f conftest.er1 conftest.err
1483 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1484 test $ac_status = 0; } && {
1485 test -z "$ac_c_werror_flag" ||
1486 test ! -s conftest.err
1487 } && test -s conftest.$ac_objext; then :
1490 $as_echo "$as_me: failed program was:" >&5
1491 sed 's/^/| /' conftest.$ac_ext >&5
1495 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1496 as_fn_set_status $ac_retval
1498 } # ac_fn_c_try_compile
1500 # ac_fn_c_try_cpp LINENO
1501 # ----------------------
1502 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1505 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1506 if { { ac_try="$ac_cpp conftest.$ac_ext"
1508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1509 *) ac_try_echo=$ac_try;;
1511 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1512 $as_echo "$ac_try_echo"; } >&5
1513 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1515 if test -s conftest.err; then
1516 grep -v '^ *+' conftest.err >conftest.er1
1517 cat conftest.er1 >&5
1518 mv -f conftest.er1 conftest.err
1520 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1521 test $ac_status = 0; } > conftest.i && {
1522 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1523 test ! -s conftest.err
1527 $as_echo "$as_me: failed program was:" >&5
1528 sed 's/^/| /' conftest.$ac_ext >&5
1532 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1533 as_fn_set_status $ac_retval
1537 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1538 # -------------------------------------------------------
1539 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1540 # the include files in INCLUDES and setting the cache variable VAR
1542 ac_fn_c_check_header_mongrel ()
1544 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1545 if eval \${$3+:} false; then :
1546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1547 $as_echo_n "checking for $2... " >&6; }
1548 if eval \${$3+:} false; then :
1549 $as_echo_n "(cached) " >&6
1552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1553 $as_echo "$ac_res" >&6; }
1555 # Is the header compilable?
1556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1557 $as_echo_n "checking $2 usability... " >&6; }
1558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1559 /* end confdefs.h. */
1563 if ac_fn_c_try_compile "$LINENO"; then :
1564 ac_header_compiler=yes
1566 ac_header_compiler=no
1568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1570 $as_echo "$ac_header_compiler" >&6; }
1572 # Is the header present?
1573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1574 $as_echo_n "checking $2 presence... " >&6; }
1575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1576 /* end confdefs.h. */
1579 if ac_fn_c_try_cpp "$LINENO"; then :
1580 ac_header_preproc=yes
1582 ac_header_preproc=no
1584 rm -f conftest.err conftest.i conftest.$ac_ext
1585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1586 $as_echo "$ac_header_preproc" >&6; }
1588 # So? What about this header?
1589 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1591 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1592 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1593 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1594 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1597 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1598 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1599 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1600 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1601 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1602 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1603 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1604 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1605 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1606 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1610 $as_echo_n "checking for $2... " >&6; }
1611 if eval \${$3+:} false; then :
1612 $as_echo_n "(cached) " >&6
1614 eval "$3=\$ac_header_compiler"
1617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1618 $as_echo "$ac_res" >&6; }
1620 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1622 } # ac_fn_c_check_header_mongrel
1624 # ac_fn_c_try_run LINENO
1625 # ----------------------
1626 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1627 # that executables *can* be run.
1630 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1631 if { { ac_try="$ac_link"
1633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1634 *) ac_try_echo=$ac_try;;
1636 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1637 $as_echo "$ac_try_echo"; } >&5
1638 (eval "$ac_link") 2>&5
1640 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1641 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1642 { { case "(($ac_try" in
1643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1644 *) ac_try_echo=$ac_try;;
1646 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1647 $as_echo "$ac_try_echo"; } >&5
1648 (eval "$ac_try") 2>&5
1650 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1651 test $ac_status = 0; }; }; then :
1654 $as_echo "$as_me: program exited with status $ac_status" >&5
1655 $as_echo "$as_me: failed program was:" >&5
1656 sed 's/^/| /' conftest.$ac_ext >&5
1658 ac_retval=$ac_status
1660 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1661 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1662 as_fn_set_status $ac_retval
1666 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1667 # -------------------------------------------------------
1668 # Tests whether HEADER exists and can be compiled using the include files in
1669 # INCLUDES, setting the cache variable VAR accordingly.
1670 ac_fn_c_check_header_compile ()
1672 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1674 $as_echo_n "checking for $2... " >&6; }
1675 if eval \${$3+:} false; then :
1676 $as_echo_n "(cached) " >&6
1678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1679 /* end confdefs.h. */
1683 if ac_fn_c_try_compile "$LINENO"; then :
1688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1692 $as_echo "$ac_res" >&6; }
1693 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1695 } # ac_fn_c_check_header_compile
1697 # ac_fn_c_try_link LINENO
1698 # -----------------------
1699 # Try to link conftest.$ac_ext, and return whether this succeeded.
1702 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1703 rm -f conftest.$ac_objext conftest$ac_exeext
1704 if { { ac_try="$ac_link"
1706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1707 *) ac_try_echo=$ac_try;;
1709 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1710 $as_echo "$ac_try_echo"; } >&5
1711 (eval "$ac_link") 2>conftest.err
1713 if test -s conftest.err; then
1714 grep -v '^ *+' conftest.err >conftest.er1
1715 cat conftest.er1 >&5
1716 mv -f conftest.er1 conftest.err
1718 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1719 test $ac_status = 0; } && {
1720 test -z "$ac_c_werror_flag" ||
1721 test ! -s conftest.err
1722 } && test -s conftest$ac_exeext && {
1723 test "$cross_compiling" = yes ||
1724 test -x conftest$ac_exeext
1728 $as_echo "$as_me: failed program was:" >&5
1729 sed 's/^/| /' conftest.$ac_ext >&5
1733 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1734 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1735 # interfere with the next link command; also delete a directory that is
1736 # left behind by Apple's compiler. We do this before executing the actions.
1737 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1738 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1739 as_fn_set_status $ac_retval
1741 } # ac_fn_c_try_link
1743 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1744 # -------------------------------------------
1745 # Tests whether TYPE exists after having included INCLUDES, setting cache
1746 # variable VAR accordingly.
1747 ac_fn_c_check_type ()
1749 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1751 $as_echo_n "checking for $2... " >&6; }
1752 if eval \${$3+:} false; then :
1753 $as_echo_n "(cached) " >&6
1756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1757 /* end confdefs.h. */
1768 if ac_fn_c_try_compile "$LINENO"; then :
1769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1770 /* end confdefs.h. */
1781 if ac_fn_c_try_compile "$LINENO"; then :
1786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1792 $as_echo "$ac_res" >&6; }
1793 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1795 } # ac_fn_c_check_type
1797 # ac_fn_c_check_func LINENO FUNC VAR
1798 # ----------------------------------
1799 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1800 ac_fn_c_check_func ()
1802 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1804 $as_echo_n "checking for $2... " >&6; }
1805 if eval \${$3+:} false; then :
1806 $as_echo_n "(cached) " >&6
1808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1809 /* end confdefs.h. */
1810 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1811 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1812 #define $2 innocuous_$2
1814 /* System header to define __stub macros and hopefully few prototypes,
1815 which can conflict with char $2 (); below.
1816 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1817 <limits.h> exists even on freestanding compilers. */
1820 # include <limits.h>
1822 # include <assert.h>
1827 /* Override any GCC internal prototype to avoid an error.
1828 Use char because int might match the return type of a GCC
1829 builtin and then its argument prototype would still apply. */
1834 /* The GNU C library defines this for functions which it implements
1835 to always fail with ENOSYS. Some functions are actually named
1836 something starting with __ and the normal name is an alias. */
1837 #if defined __stub_$2 || defined __stub___$2
1849 if ac_fn_c_try_link "$LINENO"; then :
1854 rm -f core conftest.err conftest.$ac_objext \
1855 conftest$ac_exeext conftest.$ac_ext
1858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1859 $as_echo "$ac_res" >&6; }
1860 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1862 } # ac_fn_c_check_func
1863 cat >config.log <<_ACEOF
1864 This file contains any messages produced by compilers while
1865 running configure, to aid debugging if configure makes a mistake.
1867 It was created by $as_me, which was
1868 generated by GNU Autoconf 2.69. Invocation command line was
1880 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1881 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1882 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1883 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1884 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1886 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1887 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1889 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1890 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1891 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1892 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1893 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1894 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1895 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1903 test -z "$as_dir" && as_dir=.
1904 $as_echo "PATH: $as_dir"
1920 # Keep a trace of the command line.
1921 # Strip out --no-create and --no-recursion so they do not pile up.
1922 # Strip out --silent because we don't want to record it for future runs.
1923 # Also quote any args containing shell meta-characters.
1924 # Make two passes to allow for proper duplicate-argument suppression.
1928 ac_must_keep_next=false
1934 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1935 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1936 | -silent | --silent | --silen | --sile | --sil)
1939 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1942 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1944 as_fn_append ac_configure_args1 " '$ac_arg'"
1945 if test $ac_must_keep_next = true; then
1946 ac_must_keep_next=false # Got value, back to normal.
1949 *=* | --config-cache | -C | -disable-* | --disable-* \
1950 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1951 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1952 | -with-* | --with-* | -without-* | --without-* | --x)
1953 case "$ac_configure_args0 " in
1954 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1957 -* ) ac_must_keep_next=true ;;
1960 as_fn_append ac_configure_args " '$ac_arg'"
1965 { ac_configure_args0=; unset ac_configure_args0;}
1966 { ac_configure_args1=; unset ac_configure_args1;}
1968 # When interrupted or exit'd, cleanup temporary files, and complete
1969 # config.log. We remove comments because anyway the quotes in there
1970 # would cause problems or look ugly.
1971 # WARNING: Use '\'' to represent an apostrophe within the trap.
1972 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1973 trap 'exit_status=$?
1974 # Save into config.log some information that might help in debugging.
1978 $as_echo "## ---------------- ##
1979 ## Cache variables. ##
1980 ## ---------------- ##"
1982 # The following way of writing the cache mishandles newlines in values,
1984 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1985 eval ac_val=\$$ac_var
1989 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1990 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1993 _ | IFS | as_nl) ;; #(
1994 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1995 *) { eval $ac_var=; unset $ac_var;} ;;
2000 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2001 *${as_nl}ac_space=\ *)
2003 "s/'\''/'\''\\\\'\'''\''/g;
2004 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2007 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2014 $as_echo "## ----------------- ##
2015 ## Output variables. ##
2016 ## ----------------- ##"
2018 for ac_var in $ac_subst_vars
2020 eval ac_val=\$$ac_var
2022 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2024 $as_echo "$ac_var='\''$ac_val'\''"
2028 if test -n "$ac_subst_files"; then
2029 $as_echo "## ------------------- ##
2030 ## File substitutions. ##
2031 ## ------------------- ##"
2033 for ac_var in $ac_subst_files
2035 eval ac_val=\$$ac_var
2037 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2039 $as_echo "$ac_var='\''$ac_val'\''"
2044 if test -s confdefs.h; then
2045 $as_echo "## ----------- ##
2052 test "$ac_signal" != 0 &&
2053 $as_echo "$as_me: caught signal $ac_signal"
2054 $as_echo "$as_me: exit $exit_status"
2056 rm -f core *.core core.conftest.* &&
2057 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2060 for ac_signal in 1 2 13 15; do
2061 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2065 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2066 rm -f -r conftest* confdefs.h
2068 $as_echo "/* confdefs.h */" > confdefs.h
2070 # Predefined preprocessor variables.
2072 cat >>confdefs.h <<_ACEOF
2073 #define PACKAGE_NAME "$PACKAGE_NAME"
2076 cat >>confdefs.h <<_ACEOF
2077 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2080 cat >>confdefs.h <<_ACEOF
2081 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2084 cat >>confdefs.h <<_ACEOF
2085 #define PACKAGE_STRING "$PACKAGE_STRING"
2088 cat >>confdefs.h <<_ACEOF
2089 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2092 cat >>confdefs.h <<_ACEOF
2093 #define PACKAGE_URL "$PACKAGE_URL"
2097 # Let the site file select an alternate cache file if it wants to.
2098 # Prefer an explicitly selected file to automatically selected ones.
2101 if test -n "$CONFIG_SITE"; then
2102 # We do not want a PATH search for config.site.
2103 case $CONFIG_SITE in #((
2104 -*) ac_site_file1=./$CONFIG_SITE;;
2105 */*) ac_site_file1=$CONFIG_SITE;;
2106 *) ac_site_file1=./$CONFIG_SITE;;
2108 elif test "x$prefix" != xNONE; then
2109 ac_site_file1=$prefix/share/config.site
2110 ac_site_file2=$prefix/etc/config.site
2112 ac_site_file1=$ac_default_prefix/share/config.site
2113 ac_site_file2=$ac_default_prefix/etc/config.site
2115 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2117 test "x$ac_site_file" = xNONE && continue
2118 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2119 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2120 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2121 sed 's/^/| /' "$ac_site_file" >&5
2123 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2124 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2125 as_fn_error $? "failed to load site script $ac_site_file
2126 See \`config.log' for more details" "$LINENO" 5; }
2130 if test -r "$cache_file"; then
2131 # Some versions of bash will fail to source /dev/null (special files
2132 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2133 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2134 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2135 $as_echo "$as_me: loading cache $cache_file" >&6;}
2137 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2138 *) . "./$cache_file";;
2142 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2143 $as_echo "$as_me: creating cache $cache_file" >&6;}
2147 as_fn_append ac_header_list " stdlib.h"
2148 as_fn_append ac_header_list " unistd.h"
2149 as_fn_append ac_header_list " sys/param.h"
2150 # Check that the precious variables saved in the cache have kept the same
2152 ac_cache_corrupted=false
2153 for ac_var in $ac_precious_vars; do
2154 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2155 eval ac_new_set=\$ac_env_${ac_var}_set
2156 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2157 eval ac_new_val=\$ac_env_${ac_var}_value
2158 case $ac_old_set,$ac_new_set in
2160 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2161 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2162 ac_cache_corrupted=: ;;
2164 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2165 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2166 ac_cache_corrupted=: ;;
2169 if test "x$ac_old_val" != "x$ac_new_val"; then
2170 # differences in whitespace do not lead to failure.
2171 ac_old_val_w=`echo x $ac_old_val`
2172 ac_new_val_w=`echo x $ac_new_val`
2173 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2174 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2175 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2176 ac_cache_corrupted=:
2178 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2179 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2180 eval $ac_var=\$ac_old_val
2182 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2183 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2184 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2185 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2188 # Pass precious variables to config.status.
2189 if test "$ac_new_set" = set; then
2191 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2192 *) ac_arg=$ac_var=$ac_new_val ;;
2194 case " $ac_configure_args " in
2195 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2196 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2200 if $ac_cache_corrupted; then
2201 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2202 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2203 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2204 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2205 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2207 ## -------------------- ##
2208 ## Main body of script. ##
2209 ## -------------------- ##
2212 ac_cpp='$CPP $CPPFLAGS'
2213 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2214 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2215 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2222 ac_cpp='$CPP $CPPFLAGS'
2223 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2224 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2225 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2226 if test -n "$ac_tool_prefix"; then
2227 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2228 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2230 $as_echo_n "checking for $ac_word... " >&6; }
2231 if ${ac_cv_prog_CC+:} false; then :
2232 $as_echo_n "(cached) " >&6
2234 if test -n "$CC"; then
2235 ac_cv_prog_CC="$CC" # Let the user override the test.
2237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2241 test -z "$as_dir" && as_dir=.
2242 for ac_exec_ext in '' $ac_executable_extensions; do
2243 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2244 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2245 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2255 if test -n "$CC"; then
2256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2257 $as_echo "$CC" >&6; }
2259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2260 $as_echo "no" >&6; }
2265 if test -z "$ac_cv_prog_CC"; then
2267 # Extract the first word of "gcc", so it can be a program name with args.
2268 set dummy gcc; ac_word=$2
2269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2270 $as_echo_n "checking for $ac_word... " >&6; }
2271 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2272 $as_echo_n "(cached) " >&6
2274 if test -n "$ac_ct_CC"; then
2275 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2281 test -z "$as_dir" && as_dir=.
2282 for ac_exec_ext in '' $ac_executable_extensions; do
2283 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2284 ac_cv_prog_ac_ct_CC="gcc"
2285 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2294 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2295 if test -n "$ac_ct_CC"; then
2296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2297 $as_echo "$ac_ct_CC" >&6; }
2299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2300 $as_echo "no" >&6; }
2303 if test "x$ac_ct_CC" = x; then
2306 case $cross_compiling:$ac_tool_warned in
2308 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2309 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2310 ac_tool_warned=yes ;;
2318 if test -z "$CC"; then
2319 if test -n "$ac_tool_prefix"; then
2320 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2321 set dummy ${ac_tool_prefix}cc; ac_word=$2
2322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2323 $as_echo_n "checking for $ac_word... " >&6; }
2324 if ${ac_cv_prog_CC+:} false; then :
2325 $as_echo_n "(cached) " >&6
2327 if test -n "$CC"; then
2328 ac_cv_prog_CC="$CC" # Let the user override the test.
2330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2334 test -z "$as_dir" && as_dir=.
2335 for ac_exec_ext in '' $ac_executable_extensions; do
2336 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2337 ac_cv_prog_CC="${ac_tool_prefix}cc"
2338 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2348 if test -n "$CC"; then
2349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2350 $as_echo "$CC" >&6; }
2352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2353 $as_echo "no" >&6; }
2359 if test -z "$CC"; then
2360 # Extract the first word of "cc", so it can be a program name with args.
2361 set dummy cc; ac_word=$2
2362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2363 $as_echo_n "checking for $ac_word... " >&6; }
2364 if ${ac_cv_prog_CC+:} false; then :
2365 $as_echo_n "(cached) " >&6
2367 if test -n "$CC"; then
2368 ac_cv_prog_CC="$CC" # Let the user override the test.
2371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2375 test -z "$as_dir" && as_dir=.
2376 for ac_exec_ext in '' $ac_executable_extensions; do
2377 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2378 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2379 ac_prog_rejected=yes
2383 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2390 if test $ac_prog_rejected = yes; then
2391 # We found a bogon in the path, so make sure we never use it.
2392 set dummy $ac_cv_prog_CC
2394 if test $# != 0; then
2395 # We chose a different compiler from the bogus one.
2396 # However, it has the same basename, so the bogon will be chosen
2397 # first if we set CC to just the basename; use the full file name.
2399 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2405 if test -n "$CC"; then
2406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2407 $as_echo "$CC" >&6; }
2409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2410 $as_echo "no" >&6; }
2415 if test -z "$CC"; then
2416 if test -n "$ac_tool_prefix"; then
2417 for ac_prog in cl.exe
2419 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2420 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2422 $as_echo_n "checking for $ac_word... " >&6; }
2423 if ${ac_cv_prog_CC+:} false; then :
2424 $as_echo_n "(cached) " >&6
2426 if test -n "$CC"; then
2427 ac_cv_prog_CC="$CC" # Let the user override the test.
2429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2433 test -z "$as_dir" && as_dir=.
2434 for ac_exec_ext in '' $ac_executable_extensions; do
2435 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2436 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2447 if test -n "$CC"; then
2448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2449 $as_echo "$CC" >&6; }
2451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2452 $as_echo "no" >&6; }
2456 test -n "$CC" && break
2459 if test -z "$CC"; then
2461 for ac_prog in cl.exe
2463 # Extract the first word of "$ac_prog", so it can be a program name with args.
2464 set dummy $ac_prog; ac_word=$2
2465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2466 $as_echo_n "checking for $ac_word... " >&6; }
2467 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2468 $as_echo_n "(cached) " >&6
2470 if test -n "$ac_ct_CC"; then
2471 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2477 test -z "$as_dir" && as_dir=.
2478 for ac_exec_ext in '' $ac_executable_extensions; do
2479 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2480 ac_cv_prog_ac_ct_CC="$ac_prog"
2481 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2490 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2491 if test -n "$ac_ct_CC"; then
2492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2493 $as_echo "$ac_ct_CC" >&6; }
2495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2496 $as_echo "no" >&6; }
2500 test -n "$ac_ct_CC" && break
2503 if test "x$ac_ct_CC" = x; then
2506 case $cross_compiling:$ac_tool_warned in
2508 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2509 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2510 ac_tool_warned=yes ;;
2519 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2520 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2521 as_fn_error $? "no acceptable C compiler found in \$PATH
2522 See \`config.log' for more details" "$LINENO" 5; }
2524 # Provide some information about the compiler.
2525 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2528 for ac_option in --version -v -V -qversion; do
2529 { { ac_try="$ac_compiler $ac_option >&5"
2531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2532 *) ac_try_echo=$ac_try;;
2534 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2535 $as_echo "$ac_try_echo"; } >&5
2536 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2538 if test -s conftest.err; then
2540 ... rest of stderr output deleted ...
2541 10q' conftest.err >conftest.er1
2542 cat conftest.er1 >&5
2544 rm -f conftest.er1 conftest.err
2545 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2546 test $ac_status = 0; }
2549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2550 /* end confdefs.h. */
2560 ac_clean_files_save=$ac_clean_files
2561 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2562 # Try to create an executable without -o first, disregard a.out.
2563 # It will help us diagnose broken compilers, and finding out an intuition
2565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2566 $as_echo_n "checking whether the C compiler works... " >&6; }
2567 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2569 # The possible output files:
2570 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2573 for ac_file in $ac_files
2576 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2577 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2582 if { { ac_try="$ac_link_default"
2584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2585 *) ac_try_echo=$ac_try;;
2587 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2588 $as_echo "$ac_try_echo"; } >&5
2589 (eval "$ac_link_default") 2>&5
2591 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2592 test $ac_status = 0; }; then :
2593 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2594 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2595 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2596 # so that the user can short-circuit this test for compilers unknown to
2598 for ac_file in $ac_files ''
2600 test -f "$ac_file" || continue
2602 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2605 # We found the default executable, but exeext='' is most
2609 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2611 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2613 # We set ac_cv_exeext here because the later test for it is not
2614 # safe: cross compilers may not add the suffix if given an `-o'
2615 # argument, so we may need to know it at that point already.
2616 # Even if this section looks crufty: it has the advantage of
2623 test "$ac_cv_exeext" = no && ac_cv_exeext=
2628 if test -z "$ac_file"; then :
2629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2630 $as_echo "no" >&6; }
2631 $as_echo "$as_me: failed program was:" >&5
2632 sed 's/^/| /' conftest.$ac_ext >&5
2634 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2635 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2636 as_fn_error 77 "C compiler cannot create executables
2637 See \`config.log' for more details" "$LINENO" 5; }
2639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2640 $as_echo "yes" >&6; }
2642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2643 $as_echo_n "checking for C compiler default output file name... " >&6; }
2644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2645 $as_echo "$ac_file" >&6; }
2646 ac_exeext=$ac_cv_exeext
2648 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2649 ac_clean_files=$ac_clean_files_save
2650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2651 $as_echo_n "checking for suffix of executables... " >&6; }
2652 if { { ac_try="$ac_link"
2654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2655 *) ac_try_echo=$ac_try;;
2657 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2658 $as_echo "$ac_try_echo"; } >&5
2659 (eval "$ac_link") 2>&5
2661 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2662 test $ac_status = 0; }; then :
2663 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2664 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2665 # work properly (i.e., refer to `conftest.exe'), while it won't with
2667 for ac_file in conftest.exe conftest conftest.*; do
2668 test -f "$ac_file" || continue
2670 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2671 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2677 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2678 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2679 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2680 See \`config.log' for more details" "$LINENO" 5; }
2682 rm -f conftest conftest$ac_cv_exeext
2683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2684 $as_echo "$ac_cv_exeext" >&6; }
2686 rm -f conftest.$ac_ext
2687 EXEEXT=$ac_cv_exeext
2689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2690 /* end confdefs.h. */
2695 FILE *f = fopen ("conftest.out", "w");
2696 return ferror (f) || fclose (f) != 0;
2702 ac_clean_files="$ac_clean_files conftest.out"
2703 # Check that the compiler produces executables we can run. If not, either
2704 # the compiler is broken, or we cross compile.
2705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2706 $as_echo_n "checking whether we are cross compiling... " >&6; }
2707 if test "$cross_compiling" != yes; then
2708 { { ac_try="$ac_link"
2710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2711 *) ac_try_echo=$ac_try;;
2713 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2714 $as_echo "$ac_try_echo"; } >&5
2715 (eval "$ac_link") 2>&5
2717 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2718 test $ac_status = 0; }
2719 if { ac_try='./conftest$ac_cv_exeext'
2720 { { case "(($ac_try" in
2721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2722 *) ac_try_echo=$ac_try;;
2724 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2725 $as_echo "$ac_try_echo"; } >&5
2726 (eval "$ac_try") 2>&5
2728 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2729 test $ac_status = 0; }; }; then
2732 if test "$cross_compiling" = maybe; then
2735 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2736 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2737 as_fn_error $? "cannot run C compiled programs.
2738 If you meant to cross compile, use \`--host'.
2739 See \`config.log' for more details" "$LINENO" 5; }
2743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2744 $as_echo "$cross_compiling" >&6; }
2746 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2747 ac_clean_files=$ac_clean_files_save
2748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2749 $as_echo_n "checking for suffix of object files... " >&6; }
2750 if ${ac_cv_objext+:} false; then :
2751 $as_echo_n "(cached) " >&6
2753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2754 /* end confdefs.h. */
2764 rm -f conftest.o conftest.obj
2765 if { { ac_try="$ac_compile"
2767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2768 *) ac_try_echo=$ac_try;;
2770 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2771 $as_echo "$ac_try_echo"; } >&5
2772 (eval "$ac_compile") 2>&5
2774 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2775 test $ac_status = 0; }; then :
2776 for ac_file in conftest.o conftest.obj conftest.*; do
2777 test -f "$ac_file" || continue;
2779 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2780 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2785 $as_echo "$as_me: failed program was:" >&5
2786 sed 's/^/| /' conftest.$ac_ext >&5
2788 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2789 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2790 as_fn_error $? "cannot compute suffix of object files: cannot compile
2791 See \`config.log' for more details" "$LINENO" 5; }
2793 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2796 $as_echo "$ac_cv_objext" >&6; }
2797 OBJEXT=$ac_cv_objext
2799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2800 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2801 if ${ac_cv_c_compiler_gnu+:} false; then :
2802 $as_echo_n "(cached) " >&6
2804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2805 /* end confdefs.h. */
2818 if ac_fn_c_try_compile "$LINENO"; then :
2823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2824 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2828 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2829 if test $ac_compiler_gnu = yes; then
2834 ac_test_CFLAGS=${CFLAGS+set}
2835 ac_save_CFLAGS=$CFLAGS
2836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2837 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2838 if ${ac_cv_prog_cc_g+:} false; then :
2839 $as_echo_n "(cached) " >&6
2841 ac_save_c_werror_flag=$ac_c_werror_flag
2842 ac_c_werror_flag=yes
2845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2846 /* end confdefs.h. */
2856 if ac_fn_c_try_compile "$LINENO"; then :
2860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2861 /* end confdefs.h. */
2871 if ac_fn_c_try_compile "$LINENO"; then :
2874 ac_c_werror_flag=$ac_save_c_werror_flag
2876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2877 /* end confdefs.h. */
2887 if ac_fn_c_try_compile "$LINENO"; then :
2890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2895 ac_c_werror_flag=$ac_save_c_werror_flag
2897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2898 $as_echo "$ac_cv_prog_cc_g" >&6; }
2899 if test "$ac_test_CFLAGS" = set; then
2900 CFLAGS=$ac_save_CFLAGS
2901 elif test $ac_cv_prog_cc_g = yes; then
2902 if test "$GCC" = yes; then
2908 if test "$GCC" = yes; then
2914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
2915 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2916 if ${ac_cv_prog_cc_c89+:} false; then :
2917 $as_echo_n "(cached) " >&6
2919 ac_cv_prog_cc_c89=no
2921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2922 /* end confdefs.h. */
2926 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2927 struct buf { int x; };
2928 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2929 static char *e (p, i)
2935 static char *f (char * (*g) (char **, int), char **p, ...)
2940 s = g (p, va_arg (v,int));
2945 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2946 function prototypes and stuff, but not '\xHH' hex character constants.
2947 These don't provoke an error unfortunately, instead are silently treated
2948 as 'x'. The following induces an error, until -std is added to get
2949 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2950 array size at least. It's necessary to write '\x00'==0 to get something
2951 that's true only with -std. */
2952 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2954 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2955 inside strings and character constants. */
2957 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2959 int test (int i, double x);
2960 struct s1 {int (*f) (int a);};
2961 struct s2 {int (*f) (double a);};
2962 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2968 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2973 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2974 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2976 CC="$ac_save_CC $ac_arg"
2977 if ac_fn_c_try_compile "$LINENO"; then :
2978 ac_cv_prog_cc_c89=$ac_arg
2980 rm -f core conftest.err conftest.$ac_objext
2981 test "x$ac_cv_prog_cc_c89" != "xno" && break
2983 rm -f conftest.$ac_ext
2988 case "x$ac_cv_prog_cc_c89" in
2990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
2991 $as_echo "none needed" >&6; } ;;
2993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
2994 $as_echo "unsupported" >&6; } ;;
2996 CC="$CC $ac_cv_prog_cc_c89"
2997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
2998 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3000 if test "x$ac_cv_prog_cc_c89" != xno; then :
3005 ac_cpp='$CPP $CPPFLAGS'
3006 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3007 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3008 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3012 ac_cpp='$CPP $CPPFLAGS'
3013 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3014 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3015 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3017 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3018 # On Suns, sometimes $CPP names a directory.
3019 if test -n "$CPP" && test -d "$CPP"; then
3022 if test -z "$CPP"; then
3023 if ${ac_cv_prog_CPP+:} false; then :
3024 $as_echo_n "(cached) " >&6
3026 # Double quotes because CPP needs to be expanded
3027 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3030 for ac_c_preproc_warn_flag in '' yes
3032 # Use a header file that comes with gcc, so configuring glibc
3033 # with a fresh cross-compiler works.
3034 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3035 # <limits.h> exists even on freestanding compilers.
3036 # On the NeXT, cc -E runs the code through the compiler's parser,
3037 # not just through cpp. "Syntax error" is here to catch this case.
3038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3039 /* end confdefs.h. */
3041 # include <limits.h>
3043 # include <assert.h>
3047 if ac_fn_c_try_cpp "$LINENO"; then :
3050 # Broken: fails on valid input.
3053 rm -f conftest.err conftest.i conftest.$ac_ext
3055 # OK, works on sane cases. Now check whether nonexistent headers
3056 # can be detected and how.
3057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3058 /* end confdefs.h. */
3059 #include <ac_nonexistent.h>
3061 if ac_fn_c_try_cpp "$LINENO"; then :
3062 # Broken: success on invalid input.
3065 # Passes both tests.
3069 rm -f conftest.err conftest.i conftest.$ac_ext
3072 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3073 rm -f conftest.i conftest.err conftest.$ac_ext
3074 if $ac_preproc_ok; then :
3086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3087 $as_echo "$CPP" >&6; }
3089 for ac_c_preproc_warn_flag in '' yes
3091 # Use a header file that comes with gcc, so configuring glibc
3092 # with a fresh cross-compiler works.
3093 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3094 # <limits.h> exists even on freestanding compilers.
3095 # On the NeXT, cc -E runs the code through the compiler's parser,
3096 # not just through cpp. "Syntax error" is here to catch this case.
3097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3098 /* end confdefs.h. */
3100 # include <limits.h>
3102 # include <assert.h>
3106 if ac_fn_c_try_cpp "$LINENO"; then :
3109 # Broken: fails on valid input.
3112 rm -f conftest.err conftest.i conftest.$ac_ext
3114 # OK, works on sane cases. Now check whether nonexistent headers
3115 # can be detected and how.
3116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3117 /* end confdefs.h. */
3118 #include <ac_nonexistent.h>
3120 if ac_fn_c_try_cpp "$LINENO"; then :
3121 # Broken: success on invalid input.
3124 # Passes both tests.
3128 rm -f conftest.err conftest.i conftest.$ac_ext
3131 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3132 rm -f conftest.i conftest.err conftest.$ac_ext
3133 if $ac_preproc_ok; then :
3136 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3137 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3138 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3139 See \`config.log' for more details" "$LINENO" 5; }
3143 ac_cpp='$CPP $CPPFLAGS'
3144 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3145 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3146 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3150 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3151 if ${ac_cv_path_GREP+:} false; then :
3152 $as_echo_n "(cached) " >&6
3154 if test -z "$GREP"; then
3155 ac_path_GREP_found=false
3156 # Loop through the user's path and test for each of PROGNAME-LIST
3157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3158 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3161 test -z "$as_dir" && as_dir=.
3162 for ac_prog in grep ggrep; do
3163 for ac_exec_ext in '' $ac_executable_extensions; do
3164 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3165 as_fn_executable_p "$ac_path_GREP" || continue
3166 # Check for GNU ac_path_GREP and select it if it is found.
3167 # Check for GNU $ac_path_GREP
3168 case `"$ac_path_GREP" --version 2>&1` in
3170 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3173 $as_echo_n 0123456789 >"conftest.in"
3176 cat "conftest.in" "conftest.in" >"conftest.tmp"
3177 mv "conftest.tmp" "conftest.in"
3178 cp "conftest.in" "conftest.nl"
3179 $as_echo 'GREP' >> "conftest.nl"
3180 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3181 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3182 as_fn_arith $ac_count + 1 && ac_count=$as_val
3183 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3184 # Best one so far, save it but keep looking for a better one
3185 ac_cv_path_GREP="$ac_path_GREP"
3186 ac_path_GREP_max=$ac_count
3188 # 10*(2^10) chars as input seems more than enough
3189 test $ac_count -gt 10 && break
3191 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3194 $ac_path_GREP_found && break 3
3199 if test -z "$ac_cv_path_GREP"; then
3200 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3203 ac_cv_path_GREP=$GREP
3207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3208 $as_echo "$ac_cv_path_GREP" >&6; }
3209 GREP="$ac_cv_path_GREP"
3212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3213 $as_echo_n "checking for egrep... " >&6; }
3214 if ${ac_cv_path_EGREP+:} false; then :
3215 $as_echo_n "(cached) " >&6
3217 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3218 then ac_cv_path_EGREP="$GREP -E"
3220 if test -z "$EGREP"; then
3221 ac_path_EGREP_found=false
3222 # Loop through the user's path and test for each of PROGNAME-LIST
3223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3224 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3227 test -z "$as_dir" && as_dir=.
3228 for ac_prog in egrep; do
3229 for ac_exec_ext in '' $ac_executable_extensions; do
3230 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3231 as_fn_executable_p "$ac_path_EGREP" || continue
3232 # Check for GNU ac_path_EGREP and select it if it is found.
3233 # Check for GNU $ac_path_EGREP
3234 case `"$ac_path_EGREP" --version 2>&1` in
3236 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3239 $as_echo_n 0123456789 >"conftest.in"
3242 cat "conftest.in" "conftest.in" >"conftest.tmp"
3243 mv "conftest.tmp" "conftest.in"
3244 cp "conftest.in" "conftest.nl"
3245 $as_echo 'EGREP' >> "conftest.nl"
3246 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3247 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3248 as_fn_arith $ac_count + 1 && ac_count=$as_val
3249 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3250 # Best one so far, save it but keep looking for a better one
3251 ac_cv_path_EGREP="$ac_path_EGREP"
3252 ac_path_EGREP_max=$ac_count
3254 # 10*(2^10) chars as input seems more than enough
3255 test $ac_count -gt 10 && break
3257 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3260 $ac_path_EGREP_found && break 3
3265 if test -z "$ac_cv_path_EGREP"; then
3266 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3269 ac_cv_path_EGREP=$EGREP
3274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3275 $as_echo "$ac_cv_path_EGREP" >&6; }
3276 EGREP="$ac_cv_path_EGREP"
3279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3280 $as_echo_n "checking for ANSI C header files... " >&6; }
3281 if ${ac_cv_header_stdc+:} false; then :
3282 $as_echo_n "(cached) " >&6
3284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3285 /* end confdefs.h. */
3299 if ac_fn_c_try_compile "$LINENO"; then :
3300 ac_cv_header_stdc=yes
3302 ac_cv_header_stdc=no
3304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3306 if test $ac_cv_header_stdc = yes; then
3307 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3309 /* end confdefs.h. */
3313 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3314 $EGREP "memchr" >/dev/null 2>&1; then :
3317 ac_cv_header_stdc=no
3323 if test $ac_cv_header_stdc = yes; then
3324 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3326 /* end confdefs.h. */
3330 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3331 $EGREP "free" >/dev/null 2>&1; then :
3334 ac_cv_header_stdc=no
3340 if test $ac_cv_header_stdc = yes; then
3341 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3342 if test "$cross_compiling" = yes; then :
3345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3346 /* end confdefs.h. */
3349 #if ((' ' & 0x0FF) == 0x020)
3350 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3351 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3353 # define ISLOWER(c) \
3354 (('a' <= (c) && (c) <= 'i') \
3355 || ('j' <= (c) && (c) <= 'r') \
3356 || ('s' <= (c) && (c) <= 'z'))
3357 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3360 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3365 for (i = 0; i < 256; i++)
3366 if (XOR (islower (i), ISLOWER (i))
3367 || toupper (i) != TOUPPER (i))
3372 if ac_fn_c_try_run "$LINENO"; then :
3375 ac_cv_header_stdc=no
3377 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3378 conftest.$ac_objext conftest.beam conftest.$ac_ext
3383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3384 $as_echo "$ac_cv_header_stdc" >&6; }
3385 if test $ac_cv_header_stdc = yes; then
3387 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3391 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3392 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3393 inttypes.h stdint.h unistd.h
3395 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3396 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3398 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3399 cat >>confdefs.h <<_ACEOF
3400 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3409 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3410 if test "x$ac_cv_header_minix_config_h" = xyes; then :
3417 if test "$MINIX" = yes; then
3419 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3422 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3425 $as_echo "#define _MINIX 1" >>confdefs.h
3430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3431 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3432 if ${ac_cv_safe_to_define___extensions__+:} false; then :
3433 $as_echo_n "(cached) " >&6
3435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3436 /* end confdefs.h. */
3438 # define __EXTENSIONS__ 1
3439 $ac_includes_default
3448 if ac_fn_c_try_compile "$LINENO"; then :
3449 ac_cv_safe_to_define___extensions__=yes
3451 ac_cv_safe_to_define___extensions__=no
3453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3456 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3457 test $ac_cv_safe_to_define___extensions__ = yes &&
3458 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3460 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3462 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3464 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3466 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3470 ac_config_headers="$ac_config_headers config.h"
3474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3475 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3477 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3478 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3479 $as_echo_n "(cached) " >&6
3481 cat >conftest.make <<\_ACEOF
3484 @echo '@@@%%%=$(MAKE)=@@@%%%'
3486 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3487 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3489 eval ac_cv_prog_make_${ac_make}_set=yes;;
3491 eval ac_cv_prog_make_${ac_make}_set=no;;
3495 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3497 $as_echo "yes" >&6; }
3500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3501 $as_echo "no" >&6; }
3502 SET_MAKE="MAKE=${MAKE-make}"
3506 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3507 if test -f "$ac_dir/install-sh"; then
3509 ac_install_sh="$ac_aux_dir/install-sh -c"
3511 elif test -f "$ac_dir/install.sh"; then
3513 ac_install_sh="$ac_aux_dir/install.sh -c"
3515 elif test -f "$ac_dir/shtool"; then
3517 ac_install_sh="$ac_aux_dir/shtool install -c"
3521 if test -z "$ac_aux_dir"; then
3522 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3525 # These three variables are undocumented and unsupported,
3526 # and are intended to be withdrawn in a future Autoconf release.
3527 # They can cause serious problems if a builder's source tree is in a directory
3528 # whose full name contains unusual characters.
3529 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3530 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3531 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3534 # Find a good install program. We prefer a C program (faster),
3535 # so one script is as good as another. But avoid the broken or
3536 # incompatible versions:
3537 # SysV /etc/install, /usr/sbin/install
3538 # SunOS /usr/etc/install
3539 # IRIX /sbin/install
3541 # AmigaOS /C/install, which installs bootblocks on floppy discs
3542 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3543 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3544 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3545 # OS/2's system install, which has a completely different semantic
3546 # ./install, which can be erroneously created by make from ./install.sh.
3547 # Reject install programs that cannot install multiple files.
3548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3549 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3550 if test -z "$INSTALL"; then
3551 if ${ac_cv_path_install+:} false; then :
3552 $as_echo_n "(cached) " >&6
3554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3558 test -z "$as_dir" && as_dir=.
3559 # Account for people who put trailing slashes in PATH elements.
3560 case $as_dir/ in #((
3561 ./ | .// | /[cC]/* | \
3562 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3563 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3566 # OSF1 and SCO ODT 3.0 have their own names for install.
3567 # Don't use installbsd from OSF since it installs stuff as root
3569 for ac_prog in ginstall scoinst install; do
3570 for ac_exec_ext in '' $ac_executable_extensions; do
3571 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3572 if test $ac_prog = install &&
3573 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3574 # AIX install. It has an incompatible calling convention.
3576 elif test $ac_prog = install &&
3577 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3578 # program-specific install script used by HP pwplus--don't use.
3581 rm -rf conftest.one conftest.two conftest.dir
3582 echo one > conftest.one
3583 echo two > conftest.two
3585 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3586 test -s conftest.one && test -s conftest.two &&
3587 test -s conftest.dir/conftest.one &&
3588 test -s conftest.dir/conftest.two
3590 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3603 rm -rf conftest.one conftest.two conftest.dir
3606 if test "${ac_cv_path_install+set}" = set; then
3607 INSTALL=$ac_cv_path_install
3609 # As a last resort, use the slow shell script. Don't cache a
3610 # value for INSTALL within a source directory, because that will
3611 # break other packages using the cache if that directory is
3612 # removed, or if the value is a relative name.
3613 INSTALL=$ac_install_sh
3616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3617 $as_echo "$INSTALL" >&6; }
3619 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3620 # It thinks the first close brace ends the variable substitution.
3621 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3623 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3625 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3629 if test -n "$ac_aux_dir"; then
3630 case "$ac_aux_dir" in
3631 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
3632 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
3635 if test -z "$MKINSTALLDIRS"; then
3636 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
3641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
3642 $as_echo_n "checking whether NLS is requested... " >&6; }
3643 # Check whether --enable-nls was given.
3644 if test "${enable_nls+set}" = set; then :
3645 enableval=$enable_nls; USE_NLS=$enableval
3650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
3651 $as_echo "$USE_NLS" >&6; }
3658 # Prepare PATH_SEPARATOR.
3659 # The user is always right.
3660 if test "${PATH_SEPARATOR+set}" != set; then
3661 echo "#! /bin/sh" >conf$$.sh
3662 echo "exit 0" >>conf$$.sh
3664 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
3672 # Find out how to test for executable files. Don't use a zero-byte file,
3673 # as systems may use methods other than mode bits to determine executability.
3674 cat >conf$$.file <<_ASEOF
3678 chmod +x conf$$.file
3679 if test -x conf$$.file >/dev/null 2>&1; then
3680 ac_executable_p="test -x"
3682 ac_executable_p="test -f"
3686 # Extract the first word of "msgfmt", so it can be a program name with args.
3687 set dummy msgfmt; ac_word=$2
3688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3689 $as_echo_n "checking for $ac_word... " >&6; }
3690 if ${ac_cv_path_MSGFMT+:} false; then :
3691 $as_echo_n "(cached) " >&6
3695 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
3698 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
3699 for ac_dir in $PATH; do
3701 test -z "$ac_dir" && ac_dir=.
3702 for ac_exec_ext in '' $ac_executable_extensions; do
3703 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
3704 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
3705 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
3706 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
3713 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
3717 MSGFMT="$ac_cv_path_MSGFMT"
3718 if test "$MSGFMT" != ":"; then
3719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
3720 $as_echo "$MSGFMT" >&6; }
3722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3723 $as_echo "no" >&6; }
3726 # Extract the first word of "gmsgfmt", so it can be a program name with args.
3727 set dummy gmsgfmt; ac_word=$2
3728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3729 $as_echo_n "checking for $ac_word... " >&6; }
3730 if ${ac_cv_path_GMSGFMT+:} false; then :
3731 $as_echo_n "(cached) " >&6
3735 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
3738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3742 test -z "$as_dir" && as_dir=.
3743 for ac_exec_ext in '' $ac_executable_extensions; do
3744 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3745 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
3746 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3753 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
3757 GMSGFMT=$ac_cv_path_GMSGFMT
3758 if test -n "$GMSGFMT"; then
3759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
3760 $as_echo "$GMSGFMT" >&6; }
3762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3763 $as_echo "no" >&6; }
3769 # Prepare PATH_SEPARATOR.
3770 # The user is always right.
3771 if test "${PATH_SEPARATOR+set}" != set; then
3772 echo "#! /bin/sh" >conf$$.sh
3773 echo "exit 0" >>conf$$.sh
3775 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
3783 # Find out how to test for executable files. Don't use a zero-byte file,
3784 # as systems may use methods other than mode bits to determine executability.
3785 cat >conf$$.file <<_ASEOF
3789 chmod +x conf$$.file
3790 if test -x conf$$.file >/dev/null 2>&1; then
3791 ac_executable_p="test -x"
3793 ac_executable_p="test -f"
3797 # Extract the first word of "xgettext", so it can be a program name with args.
3798 set dummy xgettext; ac_word=$2
3799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3800 $as_echo_n "checking for $ac_word... " >&6; }
3801 if ${ac_cv_path_XGETTEXT+:} false; then :
3802 $as_echo_n "(cached) " >&6
3806 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
3809 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
3810 for ac_dir in $PATH; do
3812 test -z "$ac_dir" && ac_dir=.
3813 for ac_exec_ext in '' $ac_executable_extensions; do
3814 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
3815 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
3816 (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
3817 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
3824 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
3828 XGETTEXT="$ac_cv_path_XGETTEXT"
3829 if test "$XGETTEXT" != ":"; then
3830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
3831 $as_echo "$XGETTEXT" >&6; }
3833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3834 $as_echo "no" >&6; }
3840 # Prepare PATH_SEPARATOR.
3841 # The user is always right.
3842 if test "${PATH_SEPARATOR+set}" != set; then
3843 echo "#! /bin/sh" >conf$$.sh
3844 echo "exit 0" >>conf$$.sh
3846 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
3854 # Find out how to test for executable files. Don't use a zero-byte file,
3855 # as systems may use methods other than mode bits to determine executability.
3856 cat >conf$$.file <<_ASEOF
3860 chmod +x conf$$.file
3861 if test -x conf$$.file >/dev/null 2>&1; then
3862 ac_executable_p="test -x"
3864 ac_executable_p="test -f"
3868 # Extract the first word of "msgmerge", so it can be a program name with args.
3869 set dummy msgmerge; ac_word=$2
3870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3871 $as_echo_n "checking for $ac_word... " >&6; }
3872 if ${ac_cv_path_MSGMERGE+:} false; then :
3873 $as_echo_n "(cached) " >&6
3877 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
3880 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
3881 for ac_dir in $PATH; do
3883 test -z "$ac_dir" && ac_dir=.
3884 for ac_exec_ext in '' $ac_executable_extensions; do
3885 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
3886 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
3887 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
3894 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
3898 MSGMERGE="$ac_cv_path_MSGMERGE"
3899 if test "$MSGMERGE" != ":"; then
3900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
3901 $as_echo "$MSGMERGE" >&6; }
3903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3904 $as_echo "no" >&6; }
3908 if test "$GMSGFMT" != ":"; then
3909 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
3910 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
3913 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
3914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
3915 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
3920 if test "$XGETTEXT" != ":"; then
3921 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
3922 (if $XGETTEXT --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
3925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
3926 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
3932 ac_config_commands="$ac_config_commands default-1"
3935 # Make sure we can run config.sub.
3936 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3937 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3940 $as_echo_n "checking build system type... " >&6; }
3941 if ${ac_cv_build+:} false; then :
3942 $as_echo_n "(cached) " >&6
3944 ac_build_alias=$build_alias
3945 test "x$ac_build_alias" = x &&
3946 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3947 test "x$ac_build_alias" = x &&
3948 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3949 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3950 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3954 $as_echo "$ac_cv_build" >&6; }
3955 case $ac_cv_build in
3957 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3960 ac_save_IFS=$IFS; IFS='-'
3966 # Remember, the first character of IFS is used to create $*,
3967 # except with old shells:
3970 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3974 $as_echo_n "checking host system type... " >&6; }
3975 if ${ac_cv_host+:} false; then :
3976 $as_echo_n "(cached) " >&6
3978 if test "x$host_alias" = x; then
3979 ac_cv_host=$ac_cv_build
3981 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3982 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3987 $as_echo "$ac_cv_host" >&6; }
3990 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3993 ac_save_IFS=$IFS; IFS='-'
3999 # Remember, the first character of IFS is used to create $*,
4000 # except with old shells:
4003 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4006 if test -n "$ac_tool_prefix"; then
4007 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4008 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4010 $as_echo_n "checking for $ac_word... " >&6; }
4011 if ${ac_cv_prog_RANLIB+:} false; then :
4012 $as_echo_n "(cached) " >&6
4014 if test -n "$RANLIB"; then
4015 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4021 test -z "$as_dir" && as_dir=.
4022 for ac_exec_ext in '' $ac_executable_extensions; do
4023 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4024 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4025 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4034 RANLIB=$ac_cv_prog_RANLIB
4035 if test -n "$RANLIB"; then
4036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4037 $as_echo "$RANLIB" >&6; }
4039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4040 $as_echo "no" >&6; }
4045 if test -z "$ac_cv_prog_RANLIB"; then
4046 ac_ct_RANLIB=$RANLIB
4047 # Extract the first word of "ranlib", so it can be a program name with args.
4048 set dummy ranlib; ac_word=$2
4049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4050 $as_echo_n "checking for $ac_word... " >&6; }
4051 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4052 $as_echo_n "(cached) " >&6
4054 if test -n "$ac_ct_RANLIB"; then
4055 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4061 test -z "$as_dir" && as_dir=.
4062 for ac_exec_ext in '' $ac_executable_extensions; do
4063 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4064 ac_cv_prog_ac_ct_RANLIB="ranlib"
4065 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4074 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4075 if test -n "$ac_ct_RANLIB"; then
4076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4077 $as_echo "$ac_ct_RANLIB" >&6; }
4079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4080 $as_echo "no" >&6; }
4083 if test "x$ac_ct_RANLIB" = x; then
4086 case $cross_compiling:$ac_tool_warned in
4088 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4089 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4090 ac_tool_warned=yes ;;
4092 RANLIB=$ac_ct_RANLIB
4095 RANLIB="$ac_cv_prog_RANLIB"
4098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
4099 $as_echo_n "checking for library containing strerror... " >&6; }
4100 if ${ac_cv_search_strerror+:} false; then :
4101 $as_echo_n "(cached) " >&6
4103 ac_func_search_save_LIBS=$LIBS
4104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4105 /* end confdefs.h. */
4107 /* Override any GCC internal prototype to avoid an error.
4108 Use char because int might match the return type of a GCC
4109 builtin and then its argument prototype would still apply. */
4122 for ac_lib in '' cposix; do
4123 if test -z "$ac_lib"; then
4124 ac_res="none required"
4127 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4129 if ac_fn_c_try_link "$LINENO"; then :
4130 ac_cv_search_strerror=$ac_res
4132 rm -f core conftest.err conftest.$ac_objext \
4134 if ${ac_cv_search_strerror+:} false; then :
4138 if ${ac_cv_search_strerror+:} false; then :
4141 ac_cv_search_strerror=no
4144 LIBS=$ac_func_search_save_LIBS
4146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
4147 $as_echo "$ac_cv_search_strerror" >&6; }
4148 ac_res=$ac_cv_search_strerror
4149 if test "$ac_res" != no; then :
4150 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
4155 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
4156 if ${ac_cv_c_const+:} false; then :
4157 $as_echo_n "(cached) " >&6
4159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4160 /* end confdefs.h. */
4167 /* Ultrix mips cc rejects this sort of thing. */
4168 typedef int charset[2];
4169 const charset cs = { 0, 0 };
4170 /* SunOS 4.1.1 cc rejects this. */
4171 char const *const *pcpcc;
4173 /* NEC SVR4.0.2 mips cc rejects this. */
4174 struct point {int x, y;};
4175 static struct point const zero = {0,0};
4176 /* AIX XL C 1.02.0.0 rejects this.
4177 It does not let you subtract one const X* pointer from another in
4178 an arm of an if-expression whose if-part is not a constant
4180 const char *g = "string";
4181 pcpcc = &g + (g ? g-g : 0);
4182 /* HPUX 7.0 cc rejects these. */
4184 ppc = (char**) pcpcc;
4185 pcpcc = (char const *const *) ppc;
4186 { /* SCO 3.2v4 cc rejects this sort of thing. */
4189 char const *s = 0 ? (char *) 0 : (char const *) 0;
4194 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4196 const int *foo = &x[0];
4199 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4200 typedef const int *iptr;
4204 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
4205 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4206 struct s { int j; const int *ap[3]; } bx;
4207 struct s *b = &bx; b->j = 5;
4209 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4213 return !cs[0] && !zero.x;
4220 if ac_fn_c_try_compile "$LINENO"; then :
4225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
4228 $as_echo "$ac_cv_c_const" >&6; }
4229 if test $ac_cv_c_const = no; then
4231 $as_echo "#define const /**/" >>confdefs.h
4235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
4236 $as_echo_n "checking for inline... " >&6; }
4237 if ${ac_cv_c_inline+:} false; then :
4238 $as_echo_n "(cached) " >&6
4241 for ac_kw in inline __inline__ __inline; do
4242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4243 /* end confdefs.h. */
4246 static $ac_kw foo_t static_foo () {return 0; }
4247 $ac_kw foo_t foo () {return 0; }
4251 if ac_fn_c_try_compile "$LINENO"; then :
4252 ac_cv_c_inline=$ac_kw
4254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4255 test "$ac_cv_c_inline" != no && break
4259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
4260 $as_echo "$ac_cv_c_inline" >&6; }
4262 case $ac_cv_c_inline in
4265 case $ac_cv_c_inline in
4267 *) ac_val=$ac_cv_c_inline;;
4269 cat >>confdefs.h <<_ACEOF
4271 #define inline $ac_val
4277 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
4278 if test "x$ac_cv_type_off_t" = xyes; then :
4282 cat >>confdefs.h <<_ACEOF
4283 #define off_t long int
4288 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
4289 if test "x$ac_cv_type_size_t" = xyes; then :
4293 cat >>confdefs.h <<_ACEOF
4294 #define size_t unsigned int
4299 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
4300 # for constant arguments. Useless!
4301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
4302 $as_echo_n "checking for working alloca.h... " >&6; }
4303 if ${ac_cv_working_alloca_h+:} false; then :
4304 $as_echo_n "(cached) " >&6
4306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4307 /* end confdefs.h. */
4312 char *p = (char *) alloca (2 * sizeof (int));
4318 if ac_fn_c_try_link "$LINENO"; then :
4319 ac_cv_working_alloca_h=yes
4321 ac_cv_working_alloca_h=no
4323 rm -f core conftest.err conftest.$ac_objext \
4324 conftest$ac_exeext conftest.$ac_ext
4326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
4327 $as_echo "$ac_cv_working_alloca_h" >&6; }
4328 if test $ac_cv_working_alloca_h = yes; then
4330 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
4334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
4335 $as_echo_n "checking for alloca... " >&6; }
4336 if ${ac_cv_func_alloca_works+:} false; then :
4337 $as_echo_n "(cached) " >&6
4339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4340 /* end confdefs.h. */
4342 # define alloca __builtin_alloca
4345 # include <malloc.h>
4346 # define alloca _alloca
4348 # ifdef HAVE_ALLOCA_H
4349 # include <alloca.h>
4354 # ifndef alloca /* predefined by HP cc +Olibcalls */
4355 void *alloca (size_t);
4365 char *p = (char *) alloca (1);
4371 if ac_fn_c_try_link "$LINENO"; then :
4372 ac_cv_func_alloca_works=yes
4374 ac_cv_func_alloca_works=no
4376 rm -f core conftest.err conftest.$ac_objext \
4377 conftest$ac_exeext conftest.$ac_ext
4379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
4380 $as_echo "$ac_cv_func_alloca_works" >&6; }
4382 if test $ac_cv_func_alloca_works = yes; then
4384 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
4387 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
4388 # that cause trouble. Some versions do not even contain alloca or
4389 # contain a buggy version. If you still want to use their alloca,
4390 # use ar to extract alloca.o from them instead of compiling alloca.c.
4392 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
4394 $as_echo "#define C_ALLOCA 1" >>confdefs.h
4397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
4398 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
4399 if ${ac_cv_os_cray+:} false; then :
4400 $as_echo_n "(cached) " >&6
4402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4403 /* end confdefs.h. */
4404 #if defined CRAY && ! defined CRAY2
4411 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4412 $EGREP "webecray" >/dev/null 2>&1; then :
4420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
4421 $as_echo "$ac_cv_os_cray" >&6; }
4422 if test $ac_cv_os_cray = yes; then
4423 for ac_func in _getb67 GETB67 getb67; do
4424 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4425 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4426 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
4428 cat >>confdefs.h <<_ACEOF
4429 #define CRAY_STACKSEG_END $ac_func
4438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
4439 $as_echo_n "checking stack direction for C alloca... " >&6; }
4440 if ${ac_cv_c_stack_direction+:} false; then :
4441 $as_echo_n "(cached) " >&6
4443 if test "$cross_compiling" = yes; then :
4444 ac_cv_c_stack_direction=0
4446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4447 /* end confdefs.h. */
4448 $ac_includes_default
4450 find_stack_direction (int *addr, int depth)
4455 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
4456 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
4461 main (int argc, char **argv)
4463 return find_stack_direction (0, argc + !argv + 20) < 0;
4466 if ac_fn_c_try_run "$LINENO"; then :
4467 ac_cv_c_stack_direction=1
4469 ac_cv_c_stack_direction=-1
4471 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4472 conftest.$ac_objext conftest.beam conftest.$ac_ext
4476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
4477 $as_echo "$ac_cv_c_stack_direction" >&6; }
4478 cat >>confdefs.h <<_ACEOF
4479 #define STACK_DIRECTION $ac_cv_c_stack_direction
4488 for ac_header in $ac_header_list
4490 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4491 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4493 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4494 cat >>confdefs.h <<_ACEOF
4495 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4509 for ac_func in getpagesize
4511 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
4512 if test "x$ac_cv_func_getpagesize" = xyes; then :
4513 cat >>confdefs.h <<_ACEOF
4514 #define HAVE_GETPAGESIZE 1
4520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
4521 $as_echo_n "checking for working mmap... " >&6; }
4522 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
4523 $as_echo_n "(cached) " >&6
4525 if test "$cross_compiling" = yes; then :
4526 ac_cv_func_mmap_fixed_mapped=no
4528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4529 /* end confdefs.h. */
4530 $ac_includes_default
4531 /* malloc might have been renamed as rpl_malloc. */
4534 /* Thanks to Mike Haertel and Jim Avera for this test.
4535 Here is a matrix of mmap possibilities:
4536 mmap private not fixed
4537 mmap private fixed at somewhere currently unmapped
4538 mmap private fixed at somewhere already mapped
4539 mmap shared not fixed
4540 mmap shared fixed at somewhere currently unmapped
4541 mmap shared fixed at somewhere already mapped
4542 For private mappings, we should verify that changes cannot be read()
4543 back from the file, nor mmap's back from the file at a different
4544 address. (There have been systems where private was not correctly
4545 implemented like the infamous i386 svr4.0, and systems where the
4546 VM page cache was not coherent with the file system buffer cache
4547 like early versions of FreeBSD and possibly contemporary NetBSD.)
4548 For shared mappings, we should conversely verify that changes get
4549 propagated back to all the places they're supposed to be.
4551 Grep wants private fixed already mapped.
4552 The main things grep needs to know about mmap are:
4553 * does it exist and is it safe to write into the mmap'd area
4554 * how to use it (BSD variants) */
4557 #include <sys/mman.h>
4559 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
4563 /* This mess was copied from the GNU getpagesize.h. */
4564 #ifndef HAVE_GETPAGESIZE
4565 # ifdef _SC_PAGESIZE
4566 # define getpagesize() sysconf(_SC_PAGESIZE)
4567 # else /* no _SC_PAGESIZE */
4568 # ifdef HAVE_SYS_PARAM_H
4569 # include <sys/param.h>
4570 # ifdef EXEC_PAGESIZE
4571 # define getpagesize() EXEC_PAGESIZE
4572 # else /* no EXEC_PAGESIZE */
4574 # define getpagesize() NBPG * CLSIZE
4577 # endif /* no CLSIZE */
4578 # else /* no NBPG */
4580 # define getpagesize() NBPC
4581 # else /* no NBPC */
4583 # define getpagesize() PAGESIZE
4584 # endif /* PAGESIZE */
4585 # endif /* no NBPC */
4586 # endif /* no NBPG */
4587 # endif /* no EXEC_PAGESIZE */
4588 # else /* no HAVE_SYS_PARAM_H */
4589 # define getpagesize() 8192 /* punt totally */
4590 # endif /* no HAVE_SYS_PARAM_H */
4591 # endif /* no _SC_PAGESIZE */
4593 #endif /* no HAVE_GETPAGESIZE */
4598 char *data, *data2, *data3;
4603 pagesize = getpagesize ();
4605 /* First, make a file with some known garbage in it. */
4606 data = (char *) malloc (pagesize);
4609 for (i = 0; i < pagesize; ++i)
4610 *(data + i) = rand ();
4612 fd = creat ("conftest.mmap", 0600);
4615 if (write (fd, data, pagesize) != pagesize)
4619 /* Next, check that the tail of a page is zero-filled. File must have
4620 non-zero length, otherwise we risk SIGBUS for entire page. */
4621 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
4625 if (write (fd2, cdata2, 1) != 1)
4627 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
4628 if (data2 == MAP_FAILED)
4630 for (i = 0; i < pagesize; ++i)
4634 if (munmap (data2, pagesize))
4637 /* Next, try to mmap the file at a fixed address which already has
4638 something else allocated at it. If we can, also make sure that
4639 we see the same garbage. */
4640 fd = open ("conftest.mmap", O_RDWR);
4643 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
4644 MAP_PRIVATE | MAP_FIXED, fd, 0L))
4646 for (i = 0; i < pagesize; ++i)
4647 if (*(data + i) != *(data2 + i))
4650 /* Finally, make sure that changes to the mapped area do not
4651 percolate back to the file as seen by read(). (This is a bug on
4652 some variants of i386 svr4.0.) */
4653 for (i = 0; i < pagesize; ++i)
4654 *(data2 + i) = *(data2 + i) + 1;
4655 data3 = (char *) malloc (pagesize);
4658 if (read (fd, data3, pagesize) != pagesize)
4660 for (i = 0; i < pagesize; ++i)
4661 if (*(data + i) != *(data3 + i))
4667 if ac_fn_c_try_run "$LINENO"; then :
4668 ac_cv_func_mmap_fixed_mapped=yes
4670 ac_cv_func_mmap_fixed_mapped=no
4672 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4673 conftest.$ac_objext conftest.beam conftest.$ac_ext
4677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
4678 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
4679 if test $ac_cv_func_mmap_fixed_mapped = yes; then
4681 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
4684 rm -f conftest.mmap conftest.txt
4687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
4688 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
4689 if ${ac_cv_gnu_library_2_1+:} false; then :
4690 $as_echo_n "(cached) " >&6
4692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4693 /* end confdefs.h. */
4695 #include <features.h>
4696 #ifdef __GNU_LIBRARY__
4697 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
4703 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4704 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
4705 ac_cv_gnu_library_2_1=yes
4707 ac_cv_gnu_library_2_1=no
4714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
4715 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
4717 GLIBC21="$ac_cv_gnu_library_2_1"
4722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
4723 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
4724 if ${gt_cv_int_divbyzero_sigfpe+:} false; then :
4725 $as_echo_n "(cached) " >&6
4728 if test "$cross_compiling" = yes; then :
4730 # Guess based on the CPU.
4732 alpha* | i3456786 | m68k | s390*)
4733 gt_cv_int_divbyzero_sigfpe="guessing yes";;
4735 gt_cv_int_divbyzero_sigfpe="guessing no";;
4739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4740 /* end confdefs.h. */
4747 sigfpe_handler (int sig)
4749 sigfpe_handler (sig) int sig;
4752 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
4753 exit (sig != SIGFPE);
4763 signal (SIGFPE, sigfpe_handler);
4764 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
4765 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
4766 signal (SIGTRAP, sigfpe_handler);
4768 /* Linux/SPARC yields signal SIGILL. */
4769 #if defined (__sparc__) && defined (__linux__)
4770 signal (SIGILL, sigfpe_handler);
4779 if ac_fn_c_try_run "$LINENO"; then :
4780 gt_cv_int_divbyzero_sigfpe=yes
4782 gt_cv_int_divbyzero_sigfpe=no
4784 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4785 conftest.$ac_objext conftest.beam conftest.$ac_ext
4790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
4791 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
4792 case "$gt_cv_int_divbyzero_sigfpe" in
4797 cat >>confdefs.h <<_ACEOF
4798 #define INTDIV0_RAISES_SIGFPE $value
4803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
4804 $as_echo_n "checking for inttypes.h... " >&6; }
4805 if ${jm_ac_cv_header_inttypes_h+:} false; then :
4806 $as_echo_n "(cached) " >&6
4808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4809 /* end confdefs.h. */
4810 #include <sys/types.h>
4811 #include <inttypes.h>
4815 uintmax_t i = (uintmax_t) -1;
4820 if ac_fn_c_try_compile "$LINENO"; then :
4821 jm_ac_cv_header_inttypes_h=yes
4823 jm_ac_cv_header_inttypes_h=no
4825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_inttypes_h" >&5
4828 $as_echo "$jm_ac_cv_header_inttypes_h" >&6; }
4829 if test $jm_ac_cv_header_inttypes_h = yes; then
4831 cat >>confdefs.h <<_ACEOF
4832 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
4838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
4839 $as_echo_n "checking for stdint.h... " >&6; }
4840 if ${jm_ac_cv_header_stdint_h+:} false; then :
4841 $as_echo_n "(cached) " >&6
4843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4844 /* end confdefs.h. */
4845 #include <sys/types.h>
4850 uintmax_t i = (uintmax_t) -1;
4855 if ac_fn_c_try_compile "$LINENO"; then :
4856 jm_ac_cv_header_stdint_h=yes
4858 jm_ac_cv_header_stdint_h=no
4860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_stdint_h" >&5
4863 $as_echo "$jm_ac_cv_header_stdint_h" >&6; }
4864 if test $jm_ac_cv_header_stdint_h = yes; then
4866 cat >>confdefs.h <<_ACEOF
4867 #define HAVE_STDINT_H_WITH_UINTMAX 1
4873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long" >&5
4874 $as_echo_n "checking for unsigned long long... " >&6; }
4875 if ${ac_cv_type_unsigned_long_long+:} false; then :
4876 $as_echo_n "(cached) " >&6
4878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4879 /* end confdefs.h. */
4880 unsigned long long ull = 1; int i = 63;
4884 unsigned long long ullmax = (unsigned long long) -1;
4885 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
4890 if ac_fn_c_try_link "$LINENO"; then :
4891 ac_cv_type_unsigned_long_long=yes
4893 ac_cv_type_unsigned_long_long=no
4895 rm -f core conftest.err conftest.$ac_objext \
4896 conftest$ac_exeext conftest.$ac_ext
4898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long" >&5
4899 $as_echo "$ac_cv_type_unsigned_long_long" >&6; }
4900 if test $ac_cv_type_unsigned_long_long = yes; then
4902 $as_echo "#define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h
4909 if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
4911 test $ac_cv_type_unsigned_long_long = yes \
4912 && ac_type='unsigned long long' \
4913 || ac_type='unsigned long'
4915 cat >>confdefs.h <<_ACEOF
4916 #define uintmax_t $ac_type
4921 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
4926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
4927 $as_echo_n "checking for inttypes.h... " >&6; }
4928 if ${gt_cv_header_inttypes_h+:} false; then :
4929 $as_echo_n "(cached) " >&6
4932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4933 /* end confdefs.h. */
4934 #include <sys/types.h>
4935 #include <inttypes.h>
4944 if ac_fn_c_try_compile "$LINENO"; then :
4945 gt_cv_header_inttypes_h=yes
4947 gt_cv_header_inttypes_h=no
4949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_header_inttypes_h" >&5
4953 $as_echo "$gt_cv_header_inttypes_h" >&6; }
4954 if test $gt_cv_header_inttypes_h = yes; then
4956 cat >>confdefs.h <<_ACEOF
4957 #define HAVE_INTTYPES_H 1
4964 if test $gt_cv_header_inttypes_h = yes; then
4965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
4966 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
4967 if ${gt_cv_inttypes_pri_broken+:} false; then :
4968 $as_echo_n "(cached) " >&6
4971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4972 /* end confdefs.h. */
4973 #include <inttypes.h>
4986 if ac_fn_c_try_compile "$LINENO"; then :
4987 gt_cv_inttypes_pri_broken=no
4989 gt_cv_inttypes_pri_broken=yes
4991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
4995 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
4997 if test "$gt_cv_inttypes_pri_broken" = yes; then
4999 cat >>confdefs.h <<_ACEOF
5000 #define PRI_MACROS_BROKEN 1
5006 if test "X$prefix" = "XNONE"; then
5007 acl_final_prefix="$ac_default_prefix"
5009 acl_final_prefix="$prefix"
5011 if test "X$exec_prefix" = "XNONE"; then
5012 acl_final_exec_prefix='${prefix}'
5014 acl_final_exec_prefix="$exec_prefix"
5016 acl_save_prefix="$prefix"
5017 prefix="$acl_final_prefix"
5018 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
5019 prefix="$acl_save_prefix"
5022 # Check whether --with-gnu-ld was given.
5023 if test "${with_gnu_ld+set}" = set; then :
5024 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5029 # Prepare PATH_SEPARATOR.
5030 # The user is always right.
5031 if test "${PATH_SEPARATOR+set}" != set; then
5032 echo "#! /bin/sh" >conf$$.sh
5033 echo "exit 0" >>conf$$.sh
5035 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5043 if test "$GCC" = yes; then
5044 # Check if gcc -print-prog-name=ld gives a path.
5045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
5046 $as_echo_n "checking for ld used by GCC... " >&6; }
5049 # gcc leaves a trailing carriage return which upsets mingw
5050 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5052 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5055 # Accept absolute paths.
5056 [\\/]* | [A-Za-z]:[\\/]*)
5057 re_direlt='/[^/][^/]*/\.\./'
5058 # Canonicalize the path of ld
5059 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
5060 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5061 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
5063 test -z "$LD" && LD="$ac_prog"
5066 # If it fails, then pretend we aren't using GCC.
5070 # If it is relative, then search for the first ld in PATH.
5074 elif test "$with_gnu_ld" = yes; then
5075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5076 $as_echo_n "checking for GNU ld... " >&6; }
5078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5079 $as_echo_n "checking for non-GNU ld... " >&6; }
5081 if ${acl_cv_path_LD+:} false; then :
5082 $as_echo_n "(cached) " >&6
5084 if test -z "$LD"; then
5085 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5086 for ac_dir in $PATH; do
5087 test -z "$ac_dir" && ac_dir=.
5088 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5089 acl_cv_path_LD="$ac_dir/$ac_prog"
5090 # Check to see if the program is GNU ld. I'd rather use --version,
5091 # but apparently some GNU ld's only accept -v.
5092 # Break only if it was the GNU/non-GNU ld that we prefer.
5093 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
5094 test "$with_gnu_ld" != no && break
5096 test "$with_gnu_ld" != yes && break
5102 acl_cv_path_LD="$LD" # Let the user override the test with a path.
5106 LD="$acl_cv_path_LD"
5107 if test -n "$LD"; then
5108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5109 $as_echo "$LD" >&6; }
5111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5112 $as_echo "no" >&6; }
5114 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5116 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5117 if ${acl_cv_prog_gnu_ld+:} false; then :
5118 $as_echo_n "(cached) " >&6
5120 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5121 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
5122 acl_cv_prog_gnu_ld=yes
5124 acl_cv_prog_gnu_ld=no
5127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
5128 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
5129 with_gnu_ld=$acl_cv_prog_gnu_ld
5133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
5134 $as_echo_n "checking for shared library run path origin... " >&6; }
5135 if ${acl_cv_rpath+:} false; then :
5136 $as_echo_n "(cached) " >&6
5139 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
5140 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
5146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
5147 $as_echo "$acl_cv_rpath" >&6; }
5149 libext="$acl_cv_libext"
5150 shlibext="$acl_cv_shlibext"
5151 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
5152 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
5153 hardcode_direct="$acl_cv_hardcode_direct"
5154 hardcode_minus_L="$acl_cv_hardcode_minus_L"
5155 # Check whether --enable-rpath was given.
5156 if test "${enable_rpath+set}" = set; then :
5157 enableval=$enable_rpath; :
5171 acl_save_prefix="$prefix"
5172 prefix="$acl_final_prefix"
5173 acl_save_exec_prefix="$exec_prefix"
5174 exec_prefix="$acl_final_exec_prefix"
5176 eval additional_includedir=\"$includedir\"
5177 eval additional_libdir=\"$libdir\"
5179 exec_prefix="$acl_save_exec_prefix"
5180 prefix="$acl_save_prefix"
5183 # Check whether --with-libiconv-prefix was given.
5184 if test "${with_libiconv_prefix+set}" = set; then :
5185 withval=$with_libiconv_prefix;
5186 if test "X$withval" = "Xno"; then
5189 if test "X$withval" = "X"; then
5191 acl_save_prefix="$prefix"
5192 prefix="$acl_final_prefix"
5193 acl_save_exec_prefix="$exec_prefix"
5194 exec_prefix="$acl_final_exec_prefix"
5196 eval additional_includedir=\"$includedir\"
5197 eval additional_libdir=\"$libdir\"
5199 exec_prefix="$acl_save_exec_prefix"
5200 prefix="$acl_save_prefix"
5203 additional_includedir="$withval/include"
5204 additional_libdir="$withval/lib"
5211 # Check whether --with-libiconv-type was given.
5212 if test "${with_libiconv_type+set}" = set; then :
5213 withval=$with_libiconv_type; with_libiconv_type=$withval
5215 with_libiconv_type=auto
5218 lib_type=`eval echo \$with_libiconv_type`
5225 names_already_handled=
5226 names_next_round='iconv '
5227 while test -n "$names_next_round"; do
5228 names_this_round="$names_next_round"
5230 for name in $names_this_round; do
5232 for n in $names_already_handled; do
5233 if test "$n" = "$name"; then
5238 if test -z "$already_handled"; then
5239 names_already_handled="$names_already_handled $name"
5240 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
5241 eval value=\"\$HAVE_LIB$uppername\"
5242 if test -n "$value"; then
5243 if test "$value" = yes; then
5244 eval value=\"\$LIB$uppername\"
5245 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
5246 eval value=\"\$LTLIB$uppername\"
5247 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
5256 if test $use_additional = yes; then
5257 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
5258 found_dir="$additional_libdir"
5259 found_so="$additional_libdir/lib$name.$shlibext"
5260 if test -f "$additional_libdir/lib$name.la"; then
5261 found_la="$additional_libdir/lib$name.la"
5263 elif test x$lib_type != xshared; then
5264 if test -f "$additional_libdir/lib$name.$libext"; then
5265 found_dir="$additional_libdir"
5266 found_a="$additional_libdir/lib$name.$libext"
5267 if test -f "$additional_libdir/lib$name.la"; then
5268 found_la="$additional_libdir/lib$name.la"
5273 if test "X$found_dir" = "X"; then
5274 for x in $LDFLAGS $LTLIBICONV; do
5276 acl_save_prefix="$prefix"
5277 prefix="$acl_final_prefix"
5278 acl_save_exec_prefix="$exec_prefix"
5279 exec_prefix="$acl_final_exec_prefix"
5281 exec_prefix="$acl_save_exec_prefix"
5282 prefix="$acl_save_prefix"
5286 dir=`echo "X$x" | sed -e 's/^X-L//'`
5287 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
5289 found_so="$dir/lib$name.$shlibext"
5290 if test -f "$dir/lib$name.la"; then
5291 found_la="$dir/lib$name.la"
5293 elif test x$lib_type != xshared; then
5294 if test -f "$dir/lib$name.$libext"; then
5296 found_a="$dir/lib$name.$libext"
5297 if test -f "$dir/lib$name.la"; then
5298 found_la="$dir/lib$name.la"
5304 if test "X$found_dir" != "X"; then
5309 if test "X$found_dir" != "X"; then
5310 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
5311 if test "X$found_so" != "X"; then
5312 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
5313 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5316 for x in $ltrpathdirs; do
5317 if test "X$x" = "X$found_dir"; then
5322 if test -z "$haveit"; then
5323 ltrpathdirs="$ltrpathdirs $found_dir"
5325 if test "$hardcode_direct" = yes; then
5326 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5328 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
5329 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5331 for x in $rpathdirs; do
5332 if test "X$x" = "X$found_dir"; then
5337 if test -z "$haveit"; then
5338 rpathdirs="$rpathdirs $found_dir"
5342 for x in $LDFLAGS $LIBICONV; do
5344 acl_save_prefix="$prefix"
5345 prefix="$acl_final_prefix"
5346 acl_save_exec_prefix="$exec_prefix"
5347 exec_prefix="$acl_final_exec_prefix"
5349 exec_prefix="$acl_save_exec_prefix"
5350 prefix="$acl_save_prefix"
5352 if test "X$x" = "X-L$found_dir"; then
5357 if test -z "$haveit"; then
5358 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
5360 if test "$hardcode_minus_L" != no; then
5361 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5363 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
5369 if test "X$found_a" != "X"; then
5370 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
5372 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
5375 additional_includedir=
5376 case "$found_dir" in
5378 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
5379 additional_includedir="$basedir/include"
5382 if test "X$additional_includedir" != "X"; then
5383 if test "X$additional_includedir" != "X/usr/include"; then
5385 if test "X$additional_includedir" = "X/usr/local/include"; then
5386 if test -n "$GCC"; then
5388 linux*) haveit=yes;;
5392 if test -z "$haveit"; then
5393 for x in $CPPFLAGS $INCICONV; do
5395 acl_save_prefix="$prefix"
5396 prefix="$acl_final_prefix"
5397 acl_save_exec_prefix="$exec_prefix"
5398 exec_prefix="$acl_final_exec_prefix"
5400 exec_prefix="$acl_save_exec_prefix"
5401 prefix="$acl_save_prefix"
5403 if test "X$x" = "X-I$additional_includedir"; then
5408 if test -z "$haveit"; then
5409 if test -d "$additional_includedir"; then
5410 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
5416 if test -n "$found_la"; then
5417 save_libdir="$libdir"
5419 */* | *\\*) . "$found_la" ;;
5420 *) . "./$found_la" ;;
5422 libdir="$save_libdir"
5423 for dep in $dependency_libs; do
5426 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
5427 if test "X$additional_libdir" != "X/usr/lib"; then
5429 if test "X$additional_libdir" = "X/usr/local/lib"; then
5430 if test -n "$GCC"; then
5432 linux*) haveit=yes;;
5436 if test -z "$haveit"; then
5438 for x in $LDFLAGS $LIBICONV; do
5440 acl_save_prefix="$prefix"
5441 prefix="$acl_final_prefix"
5442 acl_save_exec_prefix="$exec_prefix"
5443 exec_prefix="$acl_final_exec_prefix"
5445 exec_prefix="$acl_save_exec_prefix"
5446 prefix="$acl_save_prefix"
5448 if test "X$x" = "X-L$additional_libdir"; then
5453 if test -z "$haveit"; then
5454 if test -d "$additional_libdir"; then
5455 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
5459 for x in $LDFLAGS $LTLIBICONV; do
5461 acl_save_prefix="$prefix"
5462 prefix="$acl_final_prefix"
5463 acl_save_exec_prefix="$exec_prefix"
5464 exec_prefix="$acl_final_exec_prefix"
5466 exec_prefix="$acl_save_exec_prefix"
5467 prefix="$acl_save_prefix"
5469 if test "X$x" = "X-L$additional_libdir"; then
5474 if test -z "$haveit"; then
5475 if test -d "$additional_libdir"; then
5476 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
5483 dir=`echo "X$dep" | sed -e 's/^X-R//'`
5484 if test "$enable_rpath" != no; then
5486 for x in $rpathdirs; do
5487 if test "X$x" = "X$dir"; then
5492 if test -z "$haveit"; then
5493 rpathdirs="$rpathdirs $dir"
5496 for x in $ltrpathdirs; do
5497 if test "X$x" = "X$dir"; then
5502 if test -z "$haveit"; then
5503 ltrpathdirs="$ltrpathdirs $dir"
5508 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
5511 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
5514 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
5515 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
5521 if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
5522 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
5523 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
5525 LIBICONV="${LIBICONV}${LIBICONV:+ }-l:lib$name.$libext"
5526 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l:lib$name.$libext"
5533 if test "X$rpathdirs" != "X"; then
5534 if test -n "$hardcode_libdir_separator"; then
5536 for found_dir in $rpathdirs; do
5537 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
5539 acl_save_libdir="$libdir"
5541 eval flag=\"$hardcode_libdir_flag_spec\"
5542 libdir="$acl_save_libdir"
5543 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
5545 for found_dir in $rpathdirs; do
5546 acl_save_libdir="$libdir"
5548 eval flag=\"$hardcode_libdir_flag_spec\"
5549 libdir="$acl_save_libdir"
5550 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
5554 if test "X$ltrpathdirs" != "X"; then
5555 for found_dir in $ltrpathdirs; do
5556 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
5563 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
5564 stdlib.h string.h unistd.h sys/param.h
5566 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5567 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5568 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5569 cat >>confdefs.h <<_ACEOF
5570 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5577 for ac_func in feof_unlocked fgets_unlocked getc_unlocked getcwd getegid \
5578 geteuid getgid getuid mempcpy munmap putenv setenv setlocale stpcpy \
5579 strcasecmp strdup strtoul tsearch __argz_count __argz_stringify __argz_next \
5582 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5583 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5584 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5585 cat >>confdefs.h <<_ACEOF
5586 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
5599 $as_echo_n "checking for iconv... " >&6; }
5600 if ${am_cv_func_iconv+:} false; then :
5601 $as_echo_n "(cached) " >&6
5604 am_cv_func_iconv="no, consider installing GNU libiconv"
5606 am_save_CPPFLAGS="$CPPFLAGS"
5607 CPPFLAGS="$CPPFLAGS $INCICONV"
5608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5609 /* end confdefs.h. */
5615 iconv_t cd = iconv_open("","");
5616 iconv(cd,NULL,NULL,NULL,NULL);
5622 if ac_fn_c_try_link "$LINENO"; then :
5623 am_cv_func_iconv=yes
5625 rm -f core conftest.err conftest.$ac_objext \
5626 conftest$ac_exeext conftest.$ac_ext
5627 CPPFLAGS="$am_save_CPPFLAGS"
5629 if test "$am_cv_func_iconv" != yes && test -d ../libiconv; then
5630 for _libs in .libs _libs; do
5631 am_save_CPPFLAGS="$CPPFLAGS"
5632 am_save_LIBS="$LIBS"
5633 CPPFLAGS="$CPPFLAGS -I../libiconv/include"
5634 LIBS="$LIBS ../libiconv/lib/$_libs/libiconv.a"
5635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5636 /* end confdefs.h. */
5642 iconv_t cd = iconv_open("","");
5643 iconv(cd,NULL,NULL,NULL,NULL);
5649 if ac_fn_c_try_link "$LINENO"; then :
5650 INCICONV="-I../libiconv/include"
5651 LIBICONV='${top_builddir}'/../libiconv/lib/$_libs/libiconv.a
5652 LTLIBICONV='${top_builddir}'/../libiconv/lib/libiconv.la
5654 am_cv_func_iconv=yes
5656 rm -f core conftest.err conftest.$ac_objext \
5657 conftest$ac_exeext conftest.$ac_ext
5658 CPPFLAGS="$am_save_CPPFLAGS"
5659 LIBS="$am_save_LIBS"
5660 if test "$am_cv_func_iconv" = "yes"; then
5666 if test "$am_cv_func_iconv" != yes; then
5667 am_save_CPPFLAGS="$CPPFLAGS"
5668 am_save_LIBS="$LIBS"
5669 CPPFLAGS="$CPPFLAGS $INCICONV"
5670 LIBS="$LIBS $LIBICONV"
5671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5672 /* end confdefs.h. */
5678 iconv_t cd = iconv_open("","");
5679 iconv(cd,NULL,NULL,NULL,NULL);
5685 if ac_fn_c_try_link "$LINENO"; then :
5687 am_cv_func_iconv=yes
5689 rm -f core conftest.err conftest.$ac_objext \
5690 conftest$ac_exeext conftest.$ac_ext
5691 CPPFLAGS="$am_save_CPPFLAGS"
5692 LIBS="$am_save_LIBS"
5696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
5697 $as_echo "$am_cv_func_iconv" >&6; }
5698 if test "$am_cv_func_iconv" = yes; then
5700 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
5703 if test "$am_cv_lib_iconv" = yes; then
5705 for element in $INCICONV; do
5707 for x in $CPPFLAGS; do
5709 acl_save_prefix="$prefix"
5710 prefix="$acl_final_prefix"
5711 acl_save_exec_prefix="$exec_prefix"
5712 exec_prefix="$acl_final_exec_prefix"
5714 exec_prefix="$acl_save_exec_prefix"
5715 prefix="$acl_save_prefix"
5717 if test "X$x" = "X$element"; then
5722 if test -z "$haveit"; then
5723 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
5727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
5728 $as_echo_n "checking how to link with libiconv... " >&6; }
5729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
5730 $as_echo "$LIBICONV" >&6; }
5738 if test "$am_cv_func_iconv" = yes; then
5739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
5740 $as_echo_n "checking for iconv declaration... " >&6; }
5741 if ${am_cv_proto_iconv+:} false; then :
5742 $as_echo_n "(cached) " >&6
5745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5746 /* end confdefs.h. */
5754 #if defined(__STDC__) || defined(__cplusplus)
5755 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
5768 if ac_fn_c_try_compile "$LINENO"; then :
5769 am_cv_proto_iconv_arg1=""
5771 am_cv_proto_iconv_arg1="const"
5773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5774 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
5777 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
5778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
5779 }$am_cv_proto_iconv" >&5
5781 }$am_cv_proto_iconv" >&6; }
5783 cat >>confdefs.h <<_ACEOF
5784 #define ICONV_CONST $am_cv_proto_iconv_arg1
5790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
5791 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
5792 if ${am_cv_langinfo_codeset+:} false; then :
5793 $as_echo_n "(cached) " >&6
5795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5796 /* end confdefs.h. */
5797 #include <langinfo.h>
5801 char* cs = nl_langinfo(CODESET);
5806 if ac_fn_c_try_link "$LINENO"; then :
5807 am_cv_langinfo_codeset=yes
5809 am_cv_langinfo_codeset=no
5811 rm -f core conftest.err conftest.$ac_objext \
5812 conftest$ac_exeext conftest.$ac_ext
5815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
5816 $as_echo "$am_cv_langinfo_codeset" >&6; }
5817 if test $am_cv_langinfo_codeset = yes; then
5819 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
5823 if test $ac_cv_header_locale_h = yes; then
5825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
5826 $as_echo_n "checking for LC_MESSAGES... " >&6; }
5827 if ${am_cv_val_LC_MESSAGES+:} false; then :
5828 $as_echo_n "(cached) " >&6
5830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5831 /* end confdefs.h. */
5841 if ac_fn_c_try_link "$LINENO"; then :
5842 am_cv_val_LC_MESSAGES=yes
5844 am_cv_val_LC_MESSAGES=no
5846 rm -f core conftest.err conftest.$ac_objext \
5847 conftest$ac_exeext conftest.$ac_ext
5849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
5850 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
5851 if test $am_cv_val_LC_MESSAGES = yes; then
5853 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
5859 for ac_prog in bison
5861 # Extract the first word of "$ac_prog", so it can be a program name with args.
5862 set dummy $ac_prog; ac_word=$2
5863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5864 $as_echo_n "checking for $ac_word... " >&6; }
5865 if ${ac_cv_prog_INTLBISON+:} false; then :
5866 $as_echo_n "(cached) " >&6
5868 if test -n "$INTLBISON"; then
5869 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
5871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5875 test -z "$as_dir" && as_dir=.
5876 for ac_exec_ext in '' $ac_executable_extensions; do
5877 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5878 ac_cv_prog_INTLBISON="$ac_prog"
5879 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5888 INTLBISON=$ac_cv_prog_INTLBISON
5889 if test -n "$INTLBISON"; then
5890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
5891 $as_echo "$INTLBISON" >&6; }
5893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5894 $as_echo "no" >&6; }
5898 test -n "$INTLBISON" && break
5901 if test -z "$INTLBISON"; then
5904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
5905 $as_echo_n "checking version of bison... " >&6; }
5906 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
5907 case $ac_prog_version in
5908 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
5909 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
5910 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
5911 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
5913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
5914 $as_echo "$ac_prog_version" >&6; }
5916 if test $ac_verc_fail = yes; then
5935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
5936 $as_echo_n "checking whether NLS is requested... " >&6; }
5937 # Check whether --enable-nls was given.
5938 if test "${enable_nls+set}" = set; then :
5939 enableval=$enable_nls; USE_NLS=$enableval
5944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
5945 $as_echo "$USE_NLS" >&6; }
5950 BUILD_INCLUDED_LIBINTL=no
5951 USE_INCLUDED_LIBINTL=no
5957 if test "$USE_NLS" = "yes"; then
5958 gt_use_preinstalled_gnugettext=no
5960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
5961 $as_echo_n "checking whether included gettext is requested... " >&6; }
5963 # Check whether --with-included-gettext was given.
5964 if test "${with_included_gettext+set}" = set; then :
5965 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
5967 nls_cv_force_use_gnu_gettext=no
5970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
5971 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
5973 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
5974 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
5981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
5982 $as_echo_n "checking for GNU gettext in libc... " >&6; }
5983 if ${gt_cv_func_gnugettext2_libc+:} false; then :
5984 $as_echo_n "(cached) " >&6
5986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5987 /* end confdefs.h. */
5988 #include <libintl.h>
5989 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
5990 extern int _nl_msg_cat_cntr;
5991 extern int *_nl_domain_bindings;
5992 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_domain_bindings)
5994 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
6000 bindtextdomain ("", "");
6001 return (int) gettext ("") + (int) ngettext ("", "", 0) + __GNU_GETTEXT_SYMBOL_EXPRESSION
6006 if ac_fn_c_try_link "$LINENO"; then :
6007 gt_cv_func_gnugettext2_libc=yes
6009 gt_cv_func_gnugettext2_libc=no
6011 rm -f core conftest.err conftest.$ac_objext \
6012 conftest$ac_exeext conftest.$ac_ext
6014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext2_libc" >&5
6015 $as_echo "$gt_cv_func_gnugettext2_libc" >&6; }
6017 if test "$gt_cv_func_gnugettext2_libc" != "yes"; then
6023 acl_save_prefix="$prefix"
6024 prefix="$acl_final_prefix"
6025 acl_save_exec_prefix="$exec_prefix"
6026 exec_prefix="$acl_final_exec_prefix"
6028 eval additional_includedir=\"$includedir\"
6029 eval additional_libdir=\"$libdir\"
6031 exec_prefix="$acl_save_exec_prefix"
6032 prefix="$acl_save_prefix"
6035 # Check whether --with-libintl-prefix was given.
6036 if test "${with_libintl_prefix+set}" = set; then :
6037 withval=$with_libintl_prefix;
6038 if test "X$withval" = "Xno"; then
6041 if test "X$withval" = "X"; then
6043 acl_save_prefix="$prefix"
6044 prefix="$acl_final_prefix"
6045 acl_save_exec_prefix="$exec_prefix"
6046 exec_prefix="$acl_final_exec_prefix"
6048 eval additional_includedir=\"$includedir\"
6049 eval additional_libdir=\"$libdir\"
6051 exec_prefix="$acl_save_exec_prefix"
6052 prefix="$acl_save_prefix"
6055 additional_includedir="$withval/include"
6056 additional_libdir="$withval/lib"
6063 # Check whether --with-libintl-type was given.
6064 if test "${with_libintl_type+set}" = set; then :
6065 withval=$with_libintl_type; with_libintl_type=$withval
6067 with_libintl_type=auto
6070 lib_type=`eval echo \$with_libintl_type`
6077 names_already_handled=
6078 names_next_round='intl '
6079 while test -n "$names_next_round"; do
6080 names_this_round="$names_next_round"
6082 for name in $names_this_round; do
6084 for n in $names_already_handled; do
6085 if test "$n" = "$name"; then
6090 if test -z "$already_handled"; then
6091 names_already_handled="$names_already_handled $name"
6092 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
6093 eval value=\"\$HAVE_LIB$uppername\"
6094 if test -n "$value"; then
6095 if test "$value" = yes; then
6096 eval value=\"\$LIB$uppername\"
6097 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
6098 eval value=\"\$LTLIB$uppername\"
6099 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
6108 if test $use_additional = yes; then
6109 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
6110 found_dir="$additional_libdir"
6111 found_so="$additional_libdir/lib$name.$shlibext"
6112 if test -f "$additional_libdir/lib$name.la"; then
6113 found_la="$additional_libdir/lib$name.la"
6115 elif test x$lib_type != xshared; then
6116 if test -f "$additional_libdir/lib$name.$libext"; then
6117 found_dir="$additional_libdir"
6118 found_a="$additional_libdir/lib$name.$libext"
6119 if test -f "$additional_libdir/lib$name.la"; then
6120 found_la="$additional_libdir/lib$name.la"
6125 if test "X$found_dir" = "X"; then
6126 for x in $LDFLAGS $LTLIBINTL; do
6128 acl_save_prefix="$prefix"
6129 prefix="$acl_final_prefix"
6130 acl_save_exec_prefix="$exec_prefix"
6131 exec_prefix="$acl_final_exec_prefix"
6133 exec_prefix="$acl_save_exec_prefix"
6134 prefix="$acl_save_prefix"
6138 dir=`echo "X$x" | sed -e 's/^X-L//'`
6139 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
6141 found_so="$dir/lib$name.$shlibext"
6142 if test -f "$dir/lib$name.la"; then
6143 found_la="$dir/lib$name.la"
6145 elif test x$lib_type != xshared; then
6146 if test -f "$dir/lib$name.$libext"; then
6148 found_a="$dir/lib$name.$libext"
6149 if test -f "$dir/lib$name.la"; then
6150 found_la="$dir/lib$name.la"
6156 if test "X$found_dir" != "X"; then
6161 if test "X$found_dir" != "X"; then
6162 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
6163 if test "X$found_so" != "X"; then
6164 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
6165 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6168 for x in $ltrpathdirs; do
6169 if test "X$x" = "X$found_dir"; then
6174 if test -z "$haveit"; then
6175 ltrpathdirs="$ltrpathdirs $found_dir"
6177 if test "$hardcode_direct" = yes; then
6178 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6180 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
6181 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6183 for x in $rpathdirs; do
6184 if test "X$x" = "X$found_dir"; then
6189 if test -z "$haveit"; then
6190 rpathdirs="$rpathdirs $found_dir"
6194 for x in $LDFLAGS $LIBINTL; do
6196 acl_save_prefix="$prefix"
6197 prefix="$acl_final_prefix"
6198 acl_save_exec_prefix="$exec_prefix"
6199 exec_prefix="$acl_final_exec_prefix"
6201 exec_prefix="$acl_save_exec_prefix"
6202 prefix="$acl_save_prefix"
6204 if test "X$x" = "X-L$found_dir"; then
6209 if test -z "$haveit"; then
6210 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
6212 if test "$hardcode_minus_L" != no; then
6213 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6215 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
6221 if test "X$found_a" != "X"; then
6222 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
6224 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
6227 additional_includedir=
6228 case "$found_dir" in
6230 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
6231 additional_includedir="$basedir/include"
6234 if test "X$additional_includedir" != "X"; then
6235 if test "X$additional_includedir" != "X/usr/include"; then
6237 if test "X$additional_includedir" = "X/usr/local/include"; then
6238 if test -n "$GCC"; then
6240 linux*) haveit=yes;;
6244 if test -z "$haveit"; then
6245 for x in $CPPFLAGS $INCINTL; do
6247 acl_save_prefix="$prefix"
6248 prefix="$acl_final_prefix"
6249 acl_save_exec_prefix="$exec_prefix"
6250 exec_prefix="$acl_final_exec_prefix"
6252 exec_prefix="$acl_save_exec_prefix"
6253 prefix="$acl_save_prefix"
6255 if test "X$x" = "X-I$additional_includedir"; then
6260 if test -z "$haveit"; then
6261 if test -d "$additional_includedir"; then
6262 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
6268 if test -n "$found_la"; then
6269 save_libdir="$libdir"
6271 */* | *\\*) . "$found_la" ;;
6272 *) . "./$found_la" ;;
6274 libdir="$save_libdir"
6275 for dep in $dependency_libs; do
6278 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6279 if test "X$additional_libdir" != "X/usr/lib"; then
6281 if test "X$additional_libdir" = "X/usr/local/lib"; then
6282 if test -n "$GCC"; then
6284 linux*) haveit=yes;;
6288 if test -z "$haveit"; then
6290 for x in $LDFLAGS $LIBINTL; do
6292 acl_save_prefix="$prefix"
6293 prefix="$acl_final_prefix"
6294 acl_save_exec_prefix="$exec_prefix"
6295 exec_prefix="$acl_final_exec_prefix"
6297 exec_prefix="$acl_save_exec_prefix"
6298 prefix="$acl_save_prefix"
6300 if test "X$x" = "X-L$additional_libdir"; then
6305 if test -z "$haveit"; then
6306 if test -d "$additional_libdir"; then
6307 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
6311 for x in $LDFLAGS $LTLIBINTL; do
6313 acl_save_prefix="$prefix"
6314 prefix="$acl_final_prefix"
6315 acl_save_exec_prefix="$exec_prefix"
6316 exec_prefix="$acl_final_exec_prefix"
6318 exec_prefix="$acl_save_exec_prefix"
6319 prefix="$acl_save_prefix"
6321 if test "X$x" = "X-L$additional_libdir"; then
6326 if test -z "$haveit"; then
6327 if test -d "$additional_libdir"; then
6328 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
6335 dir=`echo "X$dep" | sed -e 's/^X-R//'`
6336 if test "$enable_rpath" != no; then
6338 for x in $rpathdirs; do
6339 if test "X$x" = "X$dir"; then
6344 if test -z "$haveit"; then
6345 rpathdirs="$rpathdirs $dir"
6348 for x in $ltrpathdirs; do
6349 if test "X$x" = "X$dir"; then
6354 if test -z "$haveit"; then
6355 ltrpathdirs="$ltrpathdirs $dir"
6360 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6363 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6366 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
6367 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
6373 if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
6374 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
6375 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
6377 LIBINTL="${LIBINTL}${LIBINTL:+ }-l:lib$name.$libext"
6378 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l:lib$name.$libext"
6385 if test "X$rpathdirs" != "X"; then
6386 if test -n "$hardcode_libdir_separator"; then
6388 for found_dir in $rpathdirs; do
6389 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
6391 acl_save_libdir="$libdir"
6393 eval flag=\"$hardcode_libdir_flag_spec\"
6394 libdir="$acl_save_libdir"
6395 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
6397 for found_dir in $rpathdirs; do
6398 acl_save_libdir="$libdir"
6400 eval flag=\"$hardcode_libdir_flag_spec\"
6401 libdir="$acl_save_libdir"
6402 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
6406 if test "X$ltrpathdirs" != "X"; then
6407 for found_dir in $ltrpathdirs; do
6408 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
6412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
6413 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
6414 if ${gt_cv_func_gnugettext2_libintl+:} false; then :
6415 $as_echo_n "(cached) " >&6
6417 gt_save_CPPFLAGS="$CPPFLAGS"
6418 CPPFLAGS="$CPPFLAGS $INCINTL"
6419 gt_save_LIBS="$LIBS"
6420 LIBS="$LIBS $LIBINTL"
6421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6422 /* end confdefs.h. */
6423 #include <libintl.h>
6424 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
6425 extern int _nl_msg_cat_cntr;
6430 const char *_nl_expand_alias ();
6431 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (0))
6433 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
6439 bindtextdomain ("", "");
6440 return (int) gettext ("") + (int) ngettext ("", "", 0) + __GNU_GETTEXT_SYMBOL_EXPRESSION
6445 if ac_fn_c_try_link "$LINENO"; then :
6446 gt_cv_func_gnugettext2_libintl=yes
6448 gt_cv_func_gnugettext2_libintl=no
6450 rm -f core conftest.err conftest.$ac_objext \
6451 conftest$ac_exeext conftest.$ac_ext
6452 if test "$gt_cv_func_gnugettext2_libintl" != yes && test -n "$LIBICONV"; then
6453 LIBS="$LIBS $LIBICONV"
6454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6455 /* end confdefs.h. */
6456 #include <libintl.h>
6457 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
6458 extern int _nl_msg_cat_cntr;
6463 const char *_nl_expand_alias ();
6464 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (0))
6466 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
6472 bindtextdomain ("", "");
6473 return (int) gettext ("") + (int) ngettext ("", "", 0) + __GNU_GETTEXT_SYMBOL_EXPRESSION
6478 if ac_fn_c_try_link "$LINENO"; then :
6479 LIBINTL="$LIBINTL $LIBICONV"
6480 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
6481 gt_cv_func_gnugettext2_libintl=yes
6484 rm -f core conftest.err conftest.$ac_objext \
6485 conftest$ac_exeext conftest.$ac_ext
6487 CPPFLAGS="$gt_save_CPPFLAGS"
6488 LIBS="$gt_save_LIBS"
6490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext2_libintl" >&5
6491 $as_echo "$gt_cv_func_gnugettext2_libintl" >&6; }
6494 if test "$gt_cv_func_gnugettext2_libc" = "yes" \
6495 || { test "$gt_cv_func_gnugettext2_libintl" = "yes" \
6496 && test "$PACKAGE" != gettext-runtime \
6497 && test "$PACKAGE" != gettext-tools; }; then
6498 gt_use_preinstalled_gnugettext=yes
6506 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
6507 nls_cv_use_gnu_gettext=yes
6511 if test "$nls_cv_use_gnu_gettext" = "yes"; then
6512 BUILD_INCLUDED_LIBINTL=yes
6513 USE_INCLUDED_LIBINTL=yes
6514 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
6515 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
6516 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
6519 if test "$gt_use_preinstalled_gnugettext" = "yes" \
6520 || test "$nls_cv_use_gnu_gettext" = "yes"; then
6525 if test "$gt_use_preinstalled_gnugettext" = "yes" \
6526 || test "$nls_cv_use_gnu_gettext" = "yes"; then
6528 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
6535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
6536 $as_echo_n "checking whether to use NLS... " >&6; }
6537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
6538 $as_echo "$USE_NLS" >&6; }
6539 if test "$USE_NLS" = "yes"; then
6540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
6541 $as_echo_n "checking where the gettext function comes from... " >&6; }
6542 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
6543 if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
6544 gt_source="external libintl"
6549 gt_source="included intl directory"
6551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
6552 $as_echo "$gt_source" >&6; }
6555 if test "$USE_NLS" = "yes"; then
6557 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
6558 if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
6559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
6560 $as_echo_n "checking how to link with libintl... " >&6; }
6561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
6562 $as_echo "$LIBINTL" >&6; }
6564 for element in $INCINTL; do
6566 for x in $CPPFLAGS; do
6568 acl_save_prefix="$prefix"
6569 prefix="$acl_final_prefix"
6570 acl_save_exec_prefix="$exec_prefix"
6571 exec_prefix="$acl_final_exec_prefix"
6573 exec_prefix="$acl_save_exec_prefix"
6574 prefix="$acl_save_prefix"
6576 if test "X$x" = "X$element"; then
6581 if test -z "$haveit"; then
6582 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6589 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
6592 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
6600 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
6601 BUILD_INCLUDED_LIBINTL=yes
6609 nls_cv_header_libgt=
6620 if test "$USE_INCLUDED_LIBINTL" = yes; then
6621 INTLOBJS="\$(GETTOBJS)"
6625 INTL_LIBTOOL_SUFFIX_PREFIX=
6637 # This replaces the extensive use of DEFS in the original Makefile.in.
6639 $as_echo "#define IN_LIBINTL 1" >>confdefs.h
6642 $as_echo "#define IN_LIBRARY 1" >>confdefs.h
6645 $as_echo "#define DEPENDS_ON_LIBICONV 1" >>confdefs.h
6648 $as_echo "#define ENABLE_RELOCATABLE 1" >>confdefs.h
6651 $as_echo "#define NO_XMALLOC 1" >>confdefs.h
6654 $as_echo "#define set_relocation_prefix libintl_set_relocation_prefix" >>confdefs.h
6657 $as_echo "#define relocate libintl_relocate" >>confdefs.h
6660 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
6661 for ac_prog in aclocal
6663 # Extract the first word of "$ac_prog", so it can be a program name with args.
6664 set dummy $ac_prog; ac_word=$2
6665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6666 $as_echo_n "checking for $ac_word... " >&6; }
6667 if ${ac_cv_prog_ACLOCAL+:} false; then :
6668 $as_echo_n "(cached) " >&6
6670 if test -n "$ACLOCAL"; then
6671 ac_cv_prog_ACLOCAL="$ACLOCAL" # Let the user override the test.
6673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6677 test -z "$as_dir" && as_dir=.
6678 for ac_exec_ext in '' $ac_executable_extensions; do
6679 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6680 ac_cv_prog_ACLOCAL="$ac_prog"
6681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6690 ACLOCAL=$ac_cv_prog_ACLOCAL
6691 if test -n "$ACLOCAL"; then
6692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ACLOCAL" >&5
6693 $as_echo "$ACLOCAL" >&6; }
6695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6696 $as_echo "no" >&6; }
6700 test -n "$ACLOCAL" && break
6702 test -n "$ACLOCAL" || ACLOCAL="$MISSING aclocal"
6704 for ac_prog in autoconf
6706 # Extract the first word of "$ac_prog", so it can be a program name with args.
6707 set dummy $ac_prog; ac_word=$2
6708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6709 $as_echo_n "checking for $ac_word... " >&6; }
6710 if ${ac_cv_prog_AUTOCONF+:} false; then :
6711 $as_echo_n "(cached) " >&6
6713 if test -n "$AUTOCONF"; then
6714 ac_cv_prog_AUTOCONF="$AUTOCONF" # Let the user override the test.
6716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6720 test -z "$as_dir" && as_dir=.
6721 for ac_exec_ext in '' $ac_executable_extensions; do
6722 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6723 ac_cv_prog_AUTOCONF="$ac_prog"
6724 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6733 AUTOCONF=$ac_cv_prog_AUTOCONF
6734 if test -n "$AUTOCONF"; then
6735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOCONF" >&5
6736 $as_echo "$AUTOCONF" >&6; }
6738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6739 $as_echo "no" >&6; }
6743 test -n "$AUTOCONF" && break
6745 test -n "$AUTOCONF" || AUTOCONF="$MISSING autoconf"
6747 for ac_prog in autoheader
6749 # Extract the first word of "$ac_prog", so it can be a program name with args.
6750 set dummy $ac_prog; ac_word=$2
6751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6752 $as_echo_n "checking for $ac_word... " >&6; }
6753 if ${ac_cv_prog_AUTOHEADER+:} false; then :
6754 $as_echo_n "(cached) " >&6
6756 if test -n "$AUTOHEADER"; then
6757 ac_cv_prog_AUTOHEADER="$AUTOHEADER" # Let the user override the test.
6759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6763 test -z "$as_dir" && as_dir=.
6764 for ac_exec_ext in '' $ac_executable_extensions; do
6765 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6766 ac_cv_prog_AUTOHEADER="$ac_prog"
6767 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6776 AUTOHEADER=$ac_cv_prog_AUTOHEADER
6777 if test -n "$AUTOHEADER"; then
6778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOHEADER" >&5
6779 $as_echo "$AUTOHEADER" >&6; }
6781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6782 $as_echo "no" >&6; }
6786 test -n "$AUTOHEADER" && break
6788 test -n "$AUTOHEADER" || AUTOHEADER="$MISSING autoheader"
6791 # Check whether --enable-maintainer-mode was given.
6792 if test "${enable_maintainer_mode+set}" = set; then :
6793 enableval=$enable_maintainer_mode;
6795 enable_maintainer_mode=no
6798 if test "x$enable_maintainer_mode" = xno; then
6805 if test -z "$CTAGS"; then
6809 if test -z "$ETAGS"; then
6813 if test -z "$MKID"; then
6818 # Additional info for config.intl.
6824 case $USE_INCLUDED_LIBINTL in
6826 LIBINTL=`echo $LIBINTL | sed 's,${top_builddir},&/..,' `
6827 LTLIBINTL=`echo $LTLIBINTL | sed 's,${top_builddir},&/..,' `
6828 LIBINTL_DEP='${top_builddir}/../intl/libintl.a'
6829 INCINTL='-I${top_builddir}/../intl'
6835 if test "$INTLBISON" != :; then
6837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking bison 3 or later" >&5
6838 $as_echo_n "checking bison 3 or later... " >&6; }
6839 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
6840 case $ac_prog_version in
6842 ac_prog_version="$ac_prog_version, bison3"; ac_bison3=yes;;
6843 *) ac_prog_version="$ac_prog_version, old";;
6845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
6846 $as_echo "$ac_prog_version" >&6; }
6847 if test $ac_bison3 = yes; then
6855 # Check whether --enable-host-shared was given.
6856 if test "${enable_host_shared+set}" = set; then :
6857 enableval=$enable_host_shared; PICFLAG=-fPIC
6864 ac_config_files="$ac_config_files Makefile config.intl"
6866 cat >confcache <<\_ACEOF
6867 # This file is a shell script that caches the results of configure
6868 # tests run on this system so they can be shared between configure
6869 # scripts and configure runs, see configure's option --config-cache.
6870 # It is not useful on other systems. If it contains results you don't
6871 # want to keep, you may remove or edit it.
6873 # config.status only pays attention to the cache file if you give it
6874 # the --recheck option to rerun configure.
6876 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6877 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6882 # The following way of writing the cache mishandles newlines in values,
6883 # but we know of no workaround that is simple, portable, and efficient.
6884 # So, we kill variables containing newlines.
6885 # Ultrix sh set writes to stderr and can't be redirected directly,
6886 # and sets the high bit in the cache file unless we assign to the vars.
6888 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
6889 eval ac_val=\$$ac_var
6893 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
6894 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
6897 _ | IFS | as_nl) ;; #(
6898 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
6899 *) { eval $ac_var=; unset $ac_var;} ;;
6905 case $as_nl`(ac_space=' '; set) 2>&1` in #(
6906 *${as_nl}ac_space=\ *)
6907 # `set' does not quote correctly, so add quotes: double-quote
6908 # substitution turns \\\\ into \\, and sed turns \\ into \.
6911 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6914 # `set' quotes correctly as required by POSIX, so do not add quotes.
6915 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
6924 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6926 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6928 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
6929 if test -w "$cache_file"; then
6930 if test "x$cache_file" != "x/dev/null"; then
6931 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
6932 $as_echo "$as_me: updating cache $cache_file" >&6;}
6933 if test ! -f "$cache_file" || test -h "$cache_file"; then
6934 cat confcache >"$cache_file"
6936 case $cache_file in #(
6938 mv -f confcache "$cache_file"$$ &&
6939 mv -f "$cache_file"$$ "$cache_file" ;; #(
6941 mv -f confcache "$cache_file" ;;
6946 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
6947 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
6952 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6953 # Let make expand exec_prefix.
6954 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6956 DEFS=-DHAVE_CONFIG_H
6961 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6962 # 1. Remove the extension, and $U if already installed.
6963 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
6964 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
6965 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
6966 # will be set to the directory where LIBOBJS objects are built.
6967 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
6968 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
6972 LTLIBOBJS=$ac_ltlibobjs
6976 : "${CONFIG_STATUS=./config.status}"
6978 ac_clean_files_save=$ac_clean_files
6979 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6980 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
6981 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
6983 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
6985 # Generated by $as_me.
6986 # Run this file to recreate the current configuration.
6987 # Compiler output produced by configure, useful for debugging
6988 # configure, is in config.log if it exists.
6994 SHELL=\${CONFIG_SHELL-$SHELL}
6997 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
6998 ## -------------------- ##
6999 ## M4sh Initialization. ##
7000 ## -------------------- ##
7002 # Be more Bourne compatible
7003 DUALCASE=1; export DUALCASE # for MKS sh
7004 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
7007 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
7008 # is contrary to our usage. Disable this feature.
7009 alias -g '${1+"$@"}'='"$@"'
7010 setopt NO_GLOB_SUBST
7012 case `(set -o) 2>/dev/null` in #(
7024 # Printing a long string crashes Solaris 7 /usr/bin/printf.
7025 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7026 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
7027 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
7028 # Prefer a ksh shell builtin over an external printf program on Solaris,
7029 # but without wasting forks for bash or zsh.
7030 if test -z "$BASH_VERSION$ZSH_VERSION" \
7031 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
7032 as_echo='print -r --'
7033 as_echo_n='print -rn --'
7034 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
7035 as_echo='printf %s\n'
7036 as_echo_n='printf %s'
7038 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
7039 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
7040 as_echo_n='/usr/ucb/echo -n'
7042 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
7043 as_echo_n_body='eval
7047 expr "X$arg" : "X\\(.*\\)$as_nl";
7048 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
7050 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
7052 export as_echo_n_body
7053 as_echo_n='sh -c $as_echo_n_body as_echo'
7056 as_echo='sh -c $as_echo_body as_echo'
7059 # The user is always right.
7060 if test "${PATH_SEPARATOR+set}" != set; then
7062 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
7063 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
7070 # We need space, tab and new line, in precisely that order. Quoting is
7071 # there to prevent editors from complaining about space-tab.
7072 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
7073 # splitting by setting IFS to empty value.)
7076 # Find who we are. Look in the path if we contain no directory separator.
7079 *[\\/]* ) as_myself=$0 ;;
7080 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7084 test -z "$as_dir" && as_dir=.
7085 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7091 # We did not find ourselves, most probably we were run as `sh COMMAND'
7092 # in which case we are not to be found in the path.
7093 if test "x$as_myself" = x; then
7096 if test ! -f "$as_myself"; then
7097 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7101 # Unset variables that we do not need and which cause bugs (e.g. in
7102 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
7103 # suppresses any "Segmentation fault" message there. '((' could
7104 # trigger a bug in pdksh 5.2.14.
7105 for as_var in BASH_ENV ENV MAIL MAILPATH
7106 do eval test x\${$as_var+set} = xset \
7107 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
7120 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
7123 # as_fn_error STATUS ERROR [LINENO LOG_FD]
7124 # ----------------------------------------
7125 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
7126 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
7127 # script with STATUS, using 1 if that was 0.
7130 as_status=$1; test $as_status -eq 0 && as_status=1
7132 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
7133 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
7135 $as_echo "$as_me: error: $2" >&2
7136 as_fn_exit $as_status
7140 # as_fn_set_status STATUS
7141 # -----------------------
7142 # Set $? to STATUS, without forking.
7146 } # as_fn_set_status
7150 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
7160 # Portably unset VAR.
7163 { eval $1=; unset $1;}
7165 as_unset=as_fn_unset
7166 # as_fn_append VAR VALUE
7167 # ----------------------
7168 # Append the text in VALUE to the end of the definition contained in VAR. Take
7169 # advantage of any shell optimizations that allow amortized linear growth over
7170 # repeated appends, instead of the typical quadratic growth present in naive
7172 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
7173 eval 'as_fn_append ()
7184 # as_fn_arith ARG...
7185 # ------------------
7186 # Perform arithmetic evaluation on the ARGs, and store the result in the
7187 # global $as_val. Take advantage of shells that can avoid forks. The arguments
7188 # must be portable across $(()) and expr.
7189 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
7190 eval 'as_fn_arith ()
7197 as_val=`expr "$@" || test $? -eq 1`
7202 if expr a : '\(a\)' >/dev/null 2>&1 &&
7203 test "X`expr 00001 : '.*\(...\)'`" = X001; then
7209 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
7210 as_basename=basename
7215 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
7221 as_me=`$as_basename -- "$0" ||
7222 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7223 X"$0" : 'X\(//\)$' \| \
7224 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
7226 sed '/^.*\/\([^/][^/]*\)\/*$/{
7240 # Avoid depending upon Character Ranges.
7241 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7242 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7243 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7244 as_cr_digits='0123456789'
7245 as_cr_alnum=$as_cr_Letters$as_cr_digits
7247 ECHO_C= ECHO_N= ECHO_T=
7248 case `echo -n x` in #(((((
7250 case `echo 'xy\c'` in
7251 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
7253 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
7260 rm -f conf$$ conf$$.exe conf$$.file
7261 if test -d conf$$.dir; then
7262 rm -f conf$$.dir/conf$$.file
7265 mkdir conf$$.dir 2>/dev/null
7267 if (echo >conf$$.file) 2>/dev/null; then
7268 if ln -s conf$$.file conf$$ 2>/dev/null; then
7270 # ... but there are two gotchas:
7271 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
7272 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
7273 # In both cases, we have to default to `cp -pR'.
7274 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
7276 elif ln conf$$.file conf$$ 2>/dev/null; then
7284 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
7285 rmdir conf$$.dir 2>/dev/null
7290 # Create "$as_dir" as a directory, including parents if necessary.
7295 -*) as_dir=./$as_dir;;
7297 test -d "$as_dir" || eval $as_mkdir_p || {
7301 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
7302 *) as_qdir=$as_dir;;
7304 as_dirs="'$as_qdir' $as_dirs"
7305 as_dir=`$as_dirname -- "$as_dir" ||
7306 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7307 X"$as_dir" : 'X\(//\)[^/]' \| \
7308 X"$as_dir" : 'X\(//\)$' \| \
7309 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
7310 $as_echo X"$as_dir" |
7311 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7328 test -d "$as_dir" && break
7330 test -z "$as_dirs" || eval "mkdir $as_dirs"
7331 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
7335 if mkdir -p . 2>/dev/null; then
7336 as_mkdir_p='mkdir -p "$as_dir"'
7338 test -d ./-p && rmdir ./-p
7343 # as_fn_executable_p FILE
7344 # -----------------------
7345 # Test if FILE is an executable regular file.
7346 as_fn_executable_p ()
7348 test -f "$1" && test -x "$1"
7349 } # as_fn_executable_p
7351 as_executable_p=as_fn_executable_p
7353 # Sed expression to map a string onto a valid CPP name.
7354 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7356 # Sed expression to map a string onto a valid variable name.
7357 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7361 ## ----------------------------------- ##
7362 ## Main body of $CONFIG_STATUS script. ##
7363 ## ----------------------------------- ##
7365 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
7367 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7368 # Save the log message, to keep $0 and so on meaningful, and to
7369 # report actual input values of CONFIG_FILES etc. instead of their
7370 # values after options handling.
7372 This file was extended by $as_me, which was
7373 generated by GNU Autoconf 2.69. Invocation command line was
7375 CONFIG_FILES = $CONFIG_FILES
7376 CONFIG_HEADERS = $CONFIG_HEADERS
7377 CONFIG_LINKS = $CONFIG_LINKS
7378 CONFIG_COMMANDS = $CONFIG_COMMANDS
7381 on `(hostname || uname -n) 2>/dev/null | sed 1q`
7386 case $ac_config_files in *"
7387 "*) set x $ac_config_files; shift; ac_config_files=$*;;
7390 case $ac_config_headers in *"
7391 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
7395 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7396 # Files that config.status was made for.
7397 config_files="$ac_config_files"
7398 config_headers="$ac_config_headers"
7399 config_commands="$ac_config_commands"
7403 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7405 \`$as_me' instantiates files and other configuration actions
7406 from templates according to the current configuration. Unless the files
7407 and actions are specified as TAGs, all are instantiated by default.
7409 Usage: $0 [OPTION]... [TAG]...
7411 -h, --help print this help, then exit
7412 -V, --version print version number and configuration settings, then exit
7413 --config print configuration, then exit
7414 -q, --quiet, --silent
7415 do not print progress messages
7416 -d, --debug don't remove temporary files
7417 --recheck update $as_me by reconfiguring in the same conditions
7418 --file=FILE[:TEMPLATE]
7419 instantiate the configuration file FILE
7420 --header=FILE[:TEMPLATE]
7421 instantiate the configuration header FILE
7423 Configuration files:
7426 Configuration headers:
7429 Configuration commands:
7432 Report bugs to the package provider."
7435 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7436 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
7439 configured by $0, generated by GNU Autoconf 2.69,
7440 with options \\"\$ac_cs_config\\"
7442 Copyright (C) 2012 Free Software Foundation, Inc.
7443 This config.status script is free software; the Free Software Foundation
7444 gives unlimited permission to copy, distribute and modify it."
7449 test -n "\$AWK" || AWK=awk
7452 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7453 # The default lists apply if the user does not specify any file.
7459 ac_option=`expr "X$1" : 'X\([^=]*\)='`
7460 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
7464 ac_option=`expr "X$1" : 'X\([^=]*\)='`
7476 # Handling of the options.
7477 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7479 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
7480 $as_echo "$ac_cs_version"; exit ;;
7481 --config | --confi | --conf | --con | --co | --c )
7482 $as_echo "$ac_cs_config"; exit ;;
7483 --debug | --debu | --deb | --de | --d | -d )
7485 --file | --fil | --fi | --f )
7488 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7489 '') as_fn_error $? "missing file argument" ;;
7491 as_fn_append CONFIG_FILES " '$ac_optarg'"
7492 ac_need_defaults=false;;
7493 --header | --heade | --head | --hea )
7496 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7498 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
7499 ac_need_defaults=false;;
7501 # Conflict between --help and --header
7502 as_fn_error $? "ambiguous option: \`$1'
7503 Try \`$0 --help' for more information.";;
7504 --help | --hel | -h )
7505 $as_echo "$ac_cs_usage"; exit ;;
7506 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7507 | -silent | --silent | --silen | --sile | --sil | --si | --s)
7511 -*) as_fn_error $? "unrecognized option: \`$1'
7512 Try \`$0 --help' for more information." ;;
7514 *) as_fn_append ac_config_targets " $1"
7515 ac_need_defaults=false ;;
7521 ac_configure_extra_args=
7523 if $ac_cs_silent; then
7525 ac_configure_extra_args="$ac_configure_extra_args --silent"
7529 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7530 if \$ac_cs_recheck; then
7531 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7533 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
7534 CONFIG_SHELL='$SHELL'
7540 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7544 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7545 ## Running $as_me. ##
7551 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7555 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
7556 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
7558 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
7559 # Capture the value of LINGUAS because we need it to compute CATALOGS.
7560 LINGUAS="${LINGUAS-%UNSET%}"
7565 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7567 # Handling of arguments.
7568 for ac_config_target in $ac_config_targets
7570 case $ac_config_target in
7571 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
7572 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
7573 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7574 "config.intl") CONFIG_FILES="$CONFIG_FILES config.intl" ;;
7576 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
7581 # If the user did not use the arguments to specify the items to instantiate,
7582 # then the envvar interface is used. Set only those that are not.
7583 # We use the long form for the default assignment because of an extremely
7584 # bizarre bug on SunOS 4.1.3.
7585 if $ac_need_defaults; then
7586 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7587 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7588 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
7591 # Have a temporary directory for convenience. Make it in the build tree
7592 # simply because there is no reason against having it here, and in addition,
7593 # creating and moving files from /tmp can sometimes cause problems.
7594 # Hook for its removal unless debugging.
7595 # Note that there is a small window in which the directory will not be cleaned:
7596 # after its creation but before its name has been assigned to `$tmp'.
7600 trap 'exit_status=$?
7602 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
7604 trap 'as_fn_exit 1' 1 2 13 15
7606 # Create a (secure) tmp directory for tmp files.
7609 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
7613 tmp=./conf$$-$RANDOM
7614 (umask 077 && mkdir "$tmp")
7615 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
7618 # Set up the scripts for CONFIG_FILES section.
7619 # No need to generate them if there are no CONFIG_FILES.
7620 # This happens for instance with `./config.status config.h'.
7621 if test -n "$CONFIG_FILES"; then
7624 ac_cr=`echo X | tr X '\015'`
7625 # On cygwin, bash can eat \r inside `` if the user requested igncr.
7626 # But we know of no other shell where ac_cr would be empty at this
7627 # point, so we can use a bashism as a fallback.
7628 if test "x$ac_cr" = x; then
7629 eval ac_cr=\$\'\\r\'
7631 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
7632 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
7638 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
7643 echo "cat >conf$$subs.awk <<_ACEOF" &&
7644 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
7647 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7648 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
7650 for ac_last_try in false false false false false :; do
7651 . ./conf$$subs.sh ||
7652 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7654 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
7655 if test $ac_delim_n = $ac_delim_num; then
7657 elif $ac_last_try; then
7658 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7660 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7665 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7666 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
7670 s/^/S["/; s/!.*/"]=/
7680 s/\(.\{148\}\)..*/\1/
7682 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
7687 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7694 s/\(.\{148\}\)..*/\1/
7696 s/["\\]/\\&/g; s/^/"/; s/$/"/
7700 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7705 ' <conf$$subs.awk | sed '
7710 ' >>$CONFIG_STATUS || ac_write_fail=1
7711 rm -f conf$$subs.awk
7712 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7714 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
7715 for (key in S) S_is_set[key] = 1
7721 nfields = split(line, field, "@")
7723 len = length(field[1])
7724 for (i = 2; i < nfields; i++) {
7726 keylen = length(key)
7727 if (S_is_set[key]) {
7729 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
7730 len += length(value) + length(field[++i])
7741 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7742 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
7743 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
7746 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
7747 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
7750 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
7751 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
7752 # trailing colons and then remove the whole line if VPATH becomes empty
7753 # (actually we leave an empty line to preserve line numbers).
7754 if test "x$srcdir" = x.; then
7755 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
7773 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7774 fi # test -n "$CONFIG_FILES"
7776 # Set up the scripts for CONFIG_HEADERS section.
7777 # No need to generate them if there are no CONFIG_HEADERS.
7778 # This happens for instance with `./config.status Makefile'.
7779 if test -n "$CONFIG_HEADERS"; then
7780 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
7784 # Transform confdefs.h into an awk script `defines.awk', embedded as
7785 # here-document in config.status, that substitutes the proper values into
7786 # config.h.in to produce config.h.
7788 # Create a delimiter string that does not exist in confdefs.h, to ease
7789 # handling of long lines.
7791 for ac_last_try in false false :; do
7792 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
7793 if test -z "$ac_tt"; then
7795 elif $ac_last_try; then
7796 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
7798 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7802 # For the awk script, D is an array of macro values keyed by name,
7803 # likewise P contains macro parameters if any. Preserve backslash
7804 # newline sequences.
7806 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
7808 s/.\{148\}/&'"$ac_delim"'/g
7811 s/^[ ]*#[ ]*define[ ][ ]*/ /
7818 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
7820 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
7824 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
7825 D["\1"]=" \3\\\\\\n"\\/p
7827 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
7832 s/.\{148\}/&'"$ac_delim"'/g
7837 s/["\\]/\\&/g; s/^/"/; s/$/"/p
7840 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
7842 ' <confdefs.h | sed '
7843 s/'"$ac_delim"'/"\\\
7844 "/g' >>$CONFIG_STATUS || ac_write_fail=1
7846 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7847 for (key in D) D_is_set[key] = 1
7850 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
7852 split(line, arg, " ")
7853 if (arg[1] == "#") {
7857 defundef = substr(arg[1], 2)
7860 split(mac1, mac2, "(") #)
7862 prefix = substr(line, 1, index(line, defundef) - 1)
7863 if (D_is_set[macro]) {
7864 # Preserve the white space surrounding the "#".
7865 print prefix "define", macro P[macro] D[macro]
7868 # Replace #undef with comments. This is necessary, for example,
7869 # in the case of _POSIX_SOURCE, which is predefined and required
7870 # on some systems where configure will not decide to define it.
7871 if (defundef == "undef") {
7872 print "/*", prefix defundef, macro, "*/"
7880 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7881 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
7882 fi # test -n "$CONFIG_HEADERS"
7885 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
7890 :[FHLC]) ac_mode=$ac_tag; continue;;
7892 case $ac_mode$ac_tag in
7894 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
7895 :[FH]-) ac_tag=-:-;;
7896 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
7913 -) ac_f="$ac_tmp/stdin";;
7914 *) # Look for the file first in the build tree, then in the source tree
7915 # (if the path is not absolute). The absolute path cannot be DOS-style,
7916 # because $ac_f cannot contain `:'.
7920 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
7922 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
7924 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
7925 as_fn_append ac_file_inputs " '$ac_f'"
7928 # Let's still pretend it is `configure' which instantiates (i.e., don't
7929 # use $as_me), people would be surprised to read:
7930 # /* config.h. Generated by config.status. */
7931 configure_input='Generated from '`
7932 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
7934 if test x"$ac_file" != x-; then
7935 configure_input="$ac_file. $configure_input"
7936 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
7937 $as_echo "$as_me: creating $ac_file" >&6;}
7939 # Neutralize special characters interpreted by sed in replacement strings.
7940 case $configure_input in #(
7941 *\&* | *\|* | *\\* )
7942 ac_sed_conf_input=`$as_echo "$configure_input" |
7943 sed 's/[\\\\&|]/\\\\&/g'`;; #(
7944 *) ac_sed_conf_input=$configure_input;;
7948 *:-:* | *:-) cat >"$ac_tmp/stdin" \
7949 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
7954 ac_dir=`$as_dirname -- "$ac_file" ||
7955 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7956 X"$ac_file" : 'X\(//\)[^/]' \| \
7957 X"$ac_file" : 'X\(//\)$' \| \
7958 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
7959 $as_echo X"$ac_file" |
7960 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7977 as_dir="$ac_dir"; as_fn_mkdir_p
7981 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
7983 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7984 # A ".." for each directory in $ac_dir_suffix.
7985 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7986 case $ac_top_builddir_sub in
7987 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
7988 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
7991 ac_abs_top_builddir=$ac_pwd
7992 ac_abs_builddir=$ac_pwd$ac_dir_suffix
7993 # for backward compatibility:
7994 ac_top_builddir=$ac_top_build_prefix
7997 .) # We are building in place.
7999 ac_top_srcdir=$ac_top_builddir_sub
8000 ac_abs_top_srcdir=$ac_pwd ;;
8001 [\\/]* | ?:[\\/]* ) # Absolute name.
8002 ac_srcdir=$srcdir$ac_dir_suffix;
8003 ac_top_srcdir=$srcdir
8004 ac_abs_top_srcdir=$srcdir ;;
8006 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
8007 ac_top_srcdir=$ac_top_build_prefix$srcdir
8008 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8010 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8020 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8021 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
8025 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8026 # If the template does not know about datarootdir, expand it.
8027 # FIXME: This hack should be removed a few years after 2.60.
8028 ac_datarootdir_hack=; ac_datarootdir_seen=
8039 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
8040 *datarootdir*) ac_datarootdir_seen=yes;;
8041 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
8042 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
8043 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
8045 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8046 ac_datarootdir_hack='
8047 s&@datadir@&$datadir&g
8048 s&@docdir@&$docdir&g
8049 s&@infodir@&$infodir&g
8050 s&@localedir@&$localedir&g
8051 s&@mandir@&$mandir&g
8052 s&\\\${datarootdir}&$datarootdir&g' ;;
8056 # Neutralize VPATH when `$srcdir' = `.'.
8057 # Shell code in configure.ac might set extrasub.
8058 # FIXME: do we really want to maintain this feature?
8059 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8060 ac_sed_extra="$ac_vpsub
8063 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8065 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8066 s|@configure_input@|$ac_sed_conf_input|;t t
8067 s&@top_builddir@&$ac_top_builddir_sub&;t t
8068 s&@top_build_prefix@&$ac_top_build_prefix&;t t
8069 s&@srcdir@&$ac_srcdir&;t t
8070 s&@abs_srcdir@&$ac_abs_srcdir&;t t
8071 s&@top_srcdir@&$ac_top_srcdir&;t t
8072 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
8073 s&@builddir@&$ac_builddir&;t t
8074 s&@abs_builddir@&$ac_abs_builddir&;t t
8075 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
8076 s&@INSTALL@&$ac_INSTALL&;t t
8077 $ac_datarootdir_hack
8079 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
8080 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8082 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
8083 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
8084 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
8085 "$ac_tmp/out"`; test -z "$ac_out"; } &&
8086 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8087 which seems to be undefined. Please make sure it is defined" >&5
8088 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8089 which seems to be undefined. Please make sure it is defined" >&2;}
8091 rm -f "$ac_tmp/stdin"
8093 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
8094 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
8096 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8102 if test x"$ac_file" != x-; then
8104 $as_echo "/* $configure_input */" \
8105 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
8106 } >"$ac_tmp/config.h" \
8107 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8108 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
8109 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
8110 $as_echo "$as_me: $ac_file is unchanged" >&6;}
8113 mv "$ac_tmp/config.h" "$ac_file" \
8114 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8117 $as_echo "/* $configure_input */" \
8118 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
8119 || as_fn_error $? "could not create -" "$LINENO" 5
8123 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
8124 $as_echo "$as_me: executing $ac_file commands" >&6;}
8129 case $ac_file$ac_mode in
8131 for ac_file in $CONFIG_FILES; do
8132 # Support "outfile[:infile[:infile...]]"
8134 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
8136 # PO directories have a Makefile.in generated from Makefile.in.in.
8137 case "$ac_file" in */Makefile.in)
8138 # Adjust a relative srcdir.
8139 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
8140 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
8141 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
8142 # In autoconf-2.13 it is called $ac_given_srcdir.
8143 # In autoconf-2.50 it is called $srcdir.
8144 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
8145 case "$ac_given_srcdir" in
8146 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
8147 /*) top_srcdir="$ac_given_srcdir" ;;
8148 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
8150 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
8151 rm -f "$ac_dir/POTFILES"
8152 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
8153 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
8154 POMAKEFILEDEPS="POTFILES.in"
8155 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
8156 # on $ac_dir but don't depend on user-specified configuration
8158 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
8159 # The LINGUAS file contains the set of available languages.
8160 if test -n "$OBSOLETE_ALL_LINGUAS"; then
8161 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.ac is obsolete" || echo "setting ALL_LINGUAS in configure.ac is obsolete"
8163 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
8164 # Hide the ALL_LINGUAS assigment from automake.
8165 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
8166 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
8168 # The set of available languages was given in configure.ac.
8169 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
8171 case "$ac_given_srcdir" in
8173 *) srcdirpre='$(srcdir)/' ;;
8179 for lang in $ALL_LINGUAS; do
8180 POFILES="$POFILES $srcdirpre$lang.po"
8181 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
8182 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
8183 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
8185 # CATALOGS depends on both $ac_dir and the user's LINGUAS
8186 # environment variable.
8188 if test -n "$ALL_LINGUAS"; then
8189 for presentlang in $ALL_LINGUAS; do
8191 if test "%UNSET%" != "$LINGUAS"; then
8192 desiredlanguages="$LINGUAS"
8194 desiredlanguages="$ALL_LINGUAS"
8196 for desiredlang in $desiredlanguages; do
8197 # Use the presentlang catalog if desiredlang is
8198 # a. equal to presentlang, or
8199 # b. a variant of presentlang (because in this case,
8200 # presentlang can be used as a fallback for messages
8201 # which are not translated in the desiredlang catalog).
8202 case "$desiredlang" in
8203 "$presentlang"*) useit=yes;;
8206 if test $useit = yes; then
8207 INST_LINGUAS="$INST_LINGUAS $presentlang"
8212 if test -n "$INST_LINGUAS"; then
8213 for lang in $INST_LINGUAS; do
8214 CATALOGS="$CATALOGS $lang.gmo"
8217 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
8218 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
8219 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
8220 if test -f "$f"; then
8222 *.orig | *.bak | *~) ;;
8223 *) cat "$f" >> "$ac_dir/Makefile" ;;
8238 ac_clean_files=$ac_clean_files_save
8240 test $ac_write_fail = 0 ||
8241 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
8244 # configure is writing to config.log, and then calls config.status.
8245 # config.status does its own redirection, appending to config.log.
8246 # Unfortunately, on DOS this fails, as config.log is still kept open
8247 # by configure, so config.status won't be able to write to it; its
8248 # output is simply discarded. So we exec the FD to /dev/null,
8249 # effectively closing config.log, so it can be properly (re)opened and
8250 # appended to by config.status. When coming back to configure, we
8251 # need to make the FD available again.
8252 if test "$no_create" != yes; then
8254 ac_config_status_args=
8255 test "$silent" = yes &&
8256 ac_config_status_args="$ac_config_status_args --quiet"
8258 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8260 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8261 # would make configure fail if this is the last instruction.
8262 $ac_cs_success || as_fn_exit 1
8264 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
8265 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
8266 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}