2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
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.
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134 if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 case \`(set -o) 2>/dev/null\` in #(
151 as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165 exitcode=1; echo positional parameters were not saved.
167 test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1"
173 if (eval "$as_required") 2>/dev/null; then :
178 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
183 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
186 test -z "$as_dir" && as_dir=.
190 for as_base in sh bash ksh sh5; do
191 # Try only shells that exist, to save several forks.
192 as_shell=$as_dir/$as_base
193 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
194 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
195 CONFIG_SHELL=$as_shell as_have_required=yes
196 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
204 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
205 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
206 CONFIG_SHELL=$SHELL as_have_required=yes
211 if test "x$CONFIG_SHELL" != x; then :
212 # We cannot yet assume a decent shell, so we have to provide a
213 # neutralization value for shells without unset; and this also
214 # works around shells that cannot unset nonexistent variables.
217 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
219 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
222 if test x$as_have_required = xno; then :
223 $as_echo "$0: This script requires a shell more modern than all"
224 $as_echo "$0: the shells that I found on your system."
225 if test x${ZSH_VERSION+set} = xset ; then
226 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
227 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
229 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
230 $0: including any error possibly output before this
231 $0: message. Then install a modern shell, or manually run
232 $0: the script under such a shell if you do have one."
238 SHELL=${CONFIG_SHELL-/bin/sh}
240 # Unset more variables known to interfere with behavior of common tools.
241 CLICOLOR_FORCE= GREP_OPTIONS=
242 unset CLICOLOR_FORCE GREP_OPTIONS
244 ## --------------------- ##
245 ## M4sh Shell Functions. ##
246 ## --------------------- ##
249 # Portably unset VAR.
252 { eval $1=; unset $1;}
256 # as_fn_set_status STATUS
257 # -----------------------
258 # Set $? to STATUS, without forking.
266 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
276 # Create "$as_dir" as a directory, including parents if necessary.
281 -*) as_dir=./$as_dir;;
283 test -d "$as_dir" || eval $as_mkdir_p || {
287 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
290 as_dirs="'$as_qdir' $as_dirs"
291 as_dir=`$as_dirname -- "$as_dir" ||
292 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
293 X"$as_dir" : 'X\(//\)[^/]' \| \
294 X"$as_dir" : 'X\(//\)$' \| \
295 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
296 $as_echo X"$as_dir" |
297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
314 test -d "$as_dir" && break
316 test -z "$as_dirs" || eval "mkdir $as_dirs"
317 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
321 # as_fn_append VAR VALUE
322 # ----------------------
323 # Append the text in VALUE to the end of the definition contained in VAR. Take
324 # advantage of any shell optimizations that allow amortized linear growth over
325 # repeated appends, instead of the typical quadratic growth present in naive
327 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
328 eval 'as_fn_append ()
341 # Perform arithmetic evaluation on the ARGs, and store the result in the
342 # global $as_val. Take advantage of shells that can avoid forks. The arguments
343 # must be portable across $(()) and expr.
344 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
352 as_val=`expr "$@" || test $? -eq 1`
357 # as_fn_error ERROR [LINENO LOG_FD]
358 # ---------------------------------
359 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
360 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
361 # script with status $?, using 1 if that was 0.
364 as_status=$?; test $as_status -eq 0 && as_status=1
366 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
367 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
369 $as_echo "$as_me: error: $1" >&2
370 as_fn_exit $as_status
373 if expr a : '\(a\)' >/dev/null 2>&1 &&
374 test "X`expr 00001 : '.*\(...\)'`" = X001; then
380 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
386 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
392 as_me=`$as_basename -- "$0" ||
393 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394 X"$0" : 'X\(//\)$' \| \
395 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
397 sed '/^.*\/\([^/][^/]*\)\/*$/{
411 # Avoid depending upon Character Ranges.
412 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
413 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
414 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
415 as_cr_digits='0123456789'
416 as_cr_alnum=$as_cr_Letters$as_cr_digits
419 as_lineno_1=$LINENO as_lineno_1a=$LINENO
420 as_lineno_2=$LINENO as_lineno_2a=$LINENO
421 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
422 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
423 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
435 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
439 chmod +x "$as_me.lineno" ||
440 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
442 # Don't try to exec as it changes $[0], causing all sort of problems
443 # (the dirname of $[0] is not the place where we might find the
444 # original and so on. Autoconf is especially sensitive to this).
446 # Exit status is that of the last command.
450 ECHO_C= ECHO_N= ECHO_T=
451 case `echo -n x` in #(((((
453 case `echo 'xy\c'` in
454 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
456 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
463 rm -f conf$$ conf$$.exe conf$$.file
464 if test -d conf$$.dir; then
465 rm -f conf$$.dir/conf$$.file
468 mkdir conf$$.dir 2>/dev/null
470 if (echo >conf$$.file) 2>/dev/null; then
471 if ln -s conf$$.file conf$$ 2>/dev/null; then
473 # ... but there are two gotchas:
474 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
475 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
476 # In both cases, we have to default to `cp -p'.
477 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
479 elif ln conf$$.file conf$$ 2>/dev/null; then
487 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
488 rmdir conf$$.dir 2>/dev/null
490 if mkdir -p . 2>/dev/null; then
491 as_mkdir_p='mkdir -p "$as_dir"'
493 test -d ./-p && rmdir ./-p
497 if test -x / >/dev/null 2>&1; then
500 if ls -dL / >/dev/null 2>&1; then
507 if test -d "$1"; then
513 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
514 ???[sx]*):;;*)false;;esac;fi
518 as_executable_p=$as_test_x
520 # Sed expression to map a string onto a valid CPP name.
521 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
523 # Sed expression to map a string onto a valid variable name.
524 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
527 exec 7<&0 </dev/null 6>&1
530 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
531 # so uname gets run too.
532 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
537 ac_default_prefix=/usr/local
539 ac_config_libobj_dir=.
546 # Identity of this package.
554 ac_unique_file="gettext.c"
555 # Factoring default headers for most tests.
556 ac_includes_default="\
558 #ifdef HAVE_SYS_TYPES_H
559 # include <sys/types.h>
561 #ifdef HAVE_SYS_STAT_H
562 # include <sys/stat.h>
568 # ifdef HAVE_STDLIB_H
573 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
578 #ifdef HAVE_STRINGS_H
579 # include <strings.h>
581 #ifdef HAVE_INTTYPES_H
582 # include <inttypes.h>
591 ac_subst_vars='LTLIBOBJS
603 INTL_LIBTOOL_SUFFIX_PREFIX
610 BUILD_INCLUDED_LIBINTL
670 program_transform_name
683 enable_option_checking
688 with_included_gettext
690 enable_maintainer_mode
692 ac_precious_vars='build_alias
703 # Initialize some variables set by options.
705 ac_init_version=false
706 ac_unrecognized_opts=
708 # The variables have the same names as the options, with
709 # dashes changed to underlines.
717 program_transform_name=s,x,x,
725 # Installation directory options.
726 # These are left unexpanded so users can "make install exec_prefix=/foo"
727 # and all the variables that are supposed to be based on exec_prefix
728 # by default will actually change.
729 # Use braces instead of parens because sh, perl, etc. also accept them.
730 # (The list follows the same order as the GNU Coding Standards.)
731 bindir='${exec_prefix}/bin'
732 sbindir='${exec_prefix}/sbin'
733 libexecdir='${exec_prefix}/libexec'
734 datarootdir='${prefix}/share'
735 datadir='${datarootdir}'
736 sysconfdir='${prefix}/etc'
737 sharedstatedir='${prefix}/com'
738 localstatedir='${prefix}/var'
739 includedir='${prefix}/include'
740 oldincludedir='/usr/include'
741 docdir='${datarootdir}/doc/${PACKAGE}'
742 infodir='${datarootdir}/info'
747 libdir='${exec_prefix}/lib'
748 localedir='${datarootdir}/locale'
749 mandir='${datarootdir}/man'
755 # If the previous option needs an argument, assign it.
756 if test -n "$ac_prev"; then
757 eval $ac_prev=\$ac_option
763 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
767 # Accept the important Cygnus configure options, so we can diagnose typos.
769 case $ac_dashdash$ac_option in
773 -bindir | --bindir | --bindi | --bind | --bin | --bi)
775 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
778 -build | --build | --buil | --bui | --bu)
779 ac_prev=build_alias ;;
780 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
781 build_alias=$ac_optarg ;;
783 -cache-file | --cache-file | --cache-fil | --cache-fi \
784 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
785 ac_prev=cache_file ;;
786 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
787 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
788 cache_file=$ac_optarg ;;
791 cache_file=config.cache ;;
793 -datadir | --datadir | --datadi | --datad)
795 -datadir=* | --datadir=* | --datadi=* | --datad=*)
796 datadir=$ac_optarg ;;
798 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
799 | --dataroo | --dataro | --datar)
800 ac_prev=datarootdir ;;
801 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
802 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
803 datarootdir=$ac_optarg ;;
805 -disable-* | --disable-*)
806 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
807 # Reject names that are not valid shell variable names.
808 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
809 as_fn_error "invalid feature name: $ac_useropt"
810 ac_useropt_orig=$ac_useropt
811 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
812 case $ac_user_opts in
816 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
817 ac_unrecognized_sep=', ';;
819 eval enable_$ac_useropt=no ;;
821 -docdir | --docdir | --docdi | --doc | --do)
823 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
826 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
828 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
831 -enable-* | --enable-*)
832 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
833 # Reject names that are not valid shell variable names.
834 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
835 as_fn_error "invalid feature name: $ac_useropt"
836 ac_useropt_orig=$ac_useropt
837 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
838 case $ac_user_opts in
842 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
843 ac_unrecognized_sep=', ';;
845 eval enable_$ac_useropt=\$ac_optarg ;;
847 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
848 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
849 | --exec | --exe | --ex)
850 ac_prev=exec_prefix ;;
851 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
852 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
853 | --exec=* | --exe=* | --ex=*)
854 exec_prefix=$ac_optarg ;;
856 -gas | --gas | --ga | --g)
857 # Obsolete; use --with-gas.
860 -help | --help | --hel | --he | -h)
862 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
863 ac_init_help=recursive ;;
864 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
865 ac_init_help=short ;;
867 -host | --host | --hos | --ho)
868 ac_prev=host_alias ;;
869 -host=* | --host=* | --hos=* | --ho=*)
870 host_alias=$ac_optarg ;;
872 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
874 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
876 htmldir=$ac_optarg ;;
878 -includedir | --includedir | --includedi | --included | --include \
879 | --includ | --inclu | --incl | --inc)
880 ac_prev=includedir ;;
881 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
882 | --includ=* | --inclu=* | --incl=* | --inc=*)
883 includedir=$ac_optarg ;;
885 -infodir | --infodir | --infodi | --infod | --info | --inf)
887 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
888 infodir=$ac_optarg ;;
890 -libdir | --libdir | --libdi | --libd)
892 -libdir=* | --libdir=* | --libdi=* | --libd=*)
895 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
896 | --libexe | --libex | --libe)
897 ac_prev=libexecdir ;;
898 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
899 | --libexe=* | --libex=* | --libe=*)
900 libexecdir=$ac_optarg ;;
902 -localedir | --localedir | --localedi | --localed | --locale)
904 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
905 localedir=$ac_optarg ;;
907 -localstatedir | --localstatedir | --localstatedi | --localstated \
908 | --localstate | --localstat | --localsta | --localst | --locals)
909 ac_prev=localstatedir ;;
910 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
911 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
912 localstatedir=$ac_optarg ;;
914 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
916 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
920 # Obsolete; use --without-fp.
923 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
924 | --no-cr | --no-c | -n)
927 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
928 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
931 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
932 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
933 | --oldin | --oldi | --old | --ol | --o)
934 ac_prev=oldincludedir ;;
935 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
936 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
937 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
938 oldincludedir=$ac_optarg ;;
940 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
942 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
945 -program-prefix | --program-prefix | --program-prefi | --program-pref \
946 | --program-pre | --program-pr | --program-p)
947 ac_prev=program_prefix ;;
948 -program-prefix=* | --program-prefix=* | --program-prefi=* \
949 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
950 program_prefix=$ac_optarg ;;
952 -program-suffix | --program-suffix | --program-suffi | --program-suff \
953 | --program-suf | --program-su | --program-s)
954 ac_prev=program_suffix ;;
955 -program-suffix=* | --program-suffix=* | --program-suffi=* \
956 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
957 program_suffix=$ac_optarg ;;
959 -program-transform-name | --program-transform-name \
960 | --program-transform-nam | --program-transform-na \
961 | --program-transform-n | --program-transform- \
962 | --program-transform | --program-transfor \
963 | --program-transfo | --program-transf \
964 | --program-trans | --program-tran \
965 | --progr-tra | --program-tr | --program-t)
966 ac_prev=program_transform_name ;;
967 -program-transform-name=* | --program-transform-name=* \
968 | --program-transform-nam=* | --program-transform-na=* \
969 | --program-transform-n=* | --program-transform-=* \
970 | --program-transform=* | --program-transfor=* \
971 | --program-transfo=* | --program-transf=* \
972 | --program-trans=* | --program-tran=* \
973 | --progr-tra=* | --program-tr=* | --program-t=*)
974 program_transform_name=$ac_optarg ;;
976 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
978 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
981 -psdir | --psdir | --psdi | --psd | --ps)
983 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
986 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
987 | -silent | --silent | --silen | --sile | --sil)
990 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
992 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
994 sbindir=$ac_optarg ;;
996 -sharedstatedir | --sharedstatedir | --sharedstatedi \
997 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
998 | --sharedst | --shareds | --shared | --share | --shar \
1000 ac_prev=sharedstatedir ;;
1001 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1002 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1003 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1005 sharedstatedir=$ac_optarg ;;
1007 -site | --site | --sit)
1009 -site=* | --site=* | --sit=*)
1012 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1014 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1015 srcdir=$ac_optarg ;;
1017 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1018 | --syscon | --sysco | --sysc | --sys | --sy)
1019 ac_prev=sysconfdir ;;
1020 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1021 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1022 sysconfdir=$ac_optarg ;;
1024 -target | --target | --targe | --targ | --tar | --ta | --t)
1025 ac_prev=target_alias ;;
1026 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1027 target_alias=$ac_optarg ;;
1029 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1032 -version | --version | --versio | --versi | --vers | -V)
1033 ac_init_version=: ;;
1036 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1037 # Reject names that are not valid shell variable names.
1038 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1039 as_fn_error "invalid package name: $ac_useropt"
1040 ac_useropt_orig=$ac_useropt
1041 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1042 case $ac_user_opts in
1046 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1047 ac_unrecognized_sep=', ';;
1049 eval with_$ac_useropt=\$ac_optarg ;;
1051 -without-* | --without-*)
1052 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1053 # Reject names that are not valid shell variable names.
1054 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1055 as_fn_error "invalid package name: $ac_useropt"
1056 ac_useropt_orig=$ac_useropt
1057 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1058 case $ac_user_opts in
1062 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1063 ac_unrecognized_sep=', ';;
1065 eval with_$ac_useropt=no ;;
1068 # Obsolete; use --with-x.
1071 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1072 | --x-incl | --x-inc | --x-in | --x-i)
1073 ac_prev=x_includes ;;
1074 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1075 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1076 x_includes=$ac_optarg ;;
1078 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1079 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1080 ac_prev=x_libraries ;;
1081 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1082 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1083 x_libraries=$ac_optarg ;;
1085 -*) as_fn_error "unrecognized option: \`$ac_option'
1086 Try \`$0 --help' for more information."
1090 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1091 # Reject names that are not valid shell variable names.
1092 case $ac_envvar in #(
1093 '' | [0-9]* | *[!_$as_cr_alnum]* )
1094 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1096 eval $ac_envvar=\$ac_optarg
1097 export $ac_envvar ;;
1100 # FIXME: should be removed in autoconf 3.0.
1101 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1102 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1103 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1104 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1110 if test -n "$ac_prev"; then
1111 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1112 as_fn_error "missing argument to $ac_option"
1115 if test -n "$ac_unrecognized_opts"; then
1116 case $enable_option_checking in
1118 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1119 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1123 # Check all directory arguments for consistency.
1124 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1125 datadir sysconfdir sharedstatedir localstatedir includedir \
1126 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1127 libdir localedir mandir
1129 eval ac_val=\$$ac_var
1130 # Remove trailing slashes.
1133 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1134 eval $ac_var=\$ac_val;;
1136 # Be sure to have absolute directory names.
1138 [\\/$]* | ?:[\\/]* ) continue;;
1139 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1141 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1144 # There might be people who depend on the old broken behavior: `$host'
1145 # used to hold the argument of --host etc.
1146 # FIXME: To remove some day.
1149 target=$target_alias
1151 # FIXME: To remove some day.
1152 if test "x$host_alias" != x; then
1153 if test "x$build_alias" = x; then
1154 cross_compiling=maybe
1155 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1156 If a cross compiler is detected then cross compile mode will be used." >&2
1157 elif test "x$build_alias" != "x$host_alias"; then
1163 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1165 test "$silent" = yes && exec 6>/dev/null
1168 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1169 ac_ls_di=`ls -di .` &&
1170 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1171 as_fn_error "working directory cannot be determined"
1172 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1173 as_fn_error "pwd does not report name of working directory"
1176 # Find the source files, if location was not specified.
1177 if test -z "$srcdir"; then
1178 ac_srcdir_defaulted=yes
1179 # Try the directory containing this script, then the parent directory.
1180 ac_confdir=`$as_dirname -- "$as_myself" ||
1181 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1182 X"$as_myself" : 'X\(//\)[^/]' \| \
1183 X"$as_myself" : 'X\(//\)$' \| \
1184 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1185 $as_echo X"$as_myself" |
1186 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1204 if test ! -r "$srcdir/$ac_unique_file"; then
1208 ac_srcdir_defaulted=no
1210 if test ! -r "$srcdir/$ac_unique_file"; then
1211 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1212 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1214 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1216 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1218 # When building in place, set srcdir=.
1219 if test "$ac_abs_confdir" = "$ac_pwd"; then
1222 # Remove unnecessary trailing slashes from srcdir.
1223 # Double slashes in file names in object file debugging info
1224 # mess up M-x gdb in Emacs.
1226 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1228 for ac_var in $ac_precious_vars; do
1229 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1230 eval ac_env_${ac_var}_value=\$${ac_var}
1231 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1232 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1236 # Report the --help message.
1238 if test "$ac_init_help" = "long"; then
1239 # Omit some internal or obsolete options to make the list less imposing.
1240 # This message is too long to be a string in the A/UX 3.1 sh.
1242 \`configure' configures this package to adapt to many kinds of systems.
1244 Usage: $0 [OPTION]... [VAR=VALUE]...
1246 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1247 VAR=VALUE. See below for descriptions of some of the useful variables.
1249 Defaults for the options are specified in brackets.
1252 -h, --help display this help and exit
1253 --help=short display options specific to this package
1254 --help=recursive display the short help of all the included packages
1255 -V, --version display version information and exit
1256 -q, --quiet, --silent do not print \`checking...' messages
1257 --cache-file=FILE cache test results in FILE [disabled]
1258 -C, --config-cache alias for \`--cache-file=config.cache'
1259 -n, --no-create do not create output files
1260 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1262 Installation directories:
1263 --prefix=PREFIX install architecture-independent files in PREFIX
1264 [$ac_default_prefix]
1265 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1268 By default, \`make install' will install all the files in
1269 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1270 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1271 for instance \`--prefix=\$HOME'.
1273 For better control, use the options below.
1275 Fine tuning of the installation directories:
1276 --bindir=DIR user executables [EPREFIX/bin]
1277 --sbindir=DIR system admin executables [EPREFIX/sbin]
1278 --libexecdir=DIR program executables [EPREFIX/libexec]
1279 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1280 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1281 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1282 --libdir=DIR object code libraries [EPREFIX/lib]
1283 --includedir=DIR C header files [PREFIX/include]
1284 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1285 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1286 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1287 --infodir=DIR info documentation [DATAROOTDIR/info]
1288 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1289 --mandir=DIR man documentation [DATAROOTDIR/man]
1290 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1291 --htmldir=DIR html documentation [DOCDIR]
1292 --dvidir=DIR dvi documentation [DOCDIR]
1293 --pdfdir=DIR pdf documentation [DOCDIR]
1294 --psdir=DIR ps documentation [DOCDIR]
1300 --build=BUILD configure for building on BUILD [guessed]
1301 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1305 if test -n "$ac_init_help"; then
1310 --disable-option-checking ignore unrecognized --enable/--with options
1311 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1312 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1313 --disable-nls do not use Native Language Support
1314 --disable-rpath do not hardcode runtime library paths
1315 --enable-maintainer-mode enable rules only needed by maintainers
1318 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1319 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1320 --with-libiconv-prefix=DIR
1321 search for libiconv in DIR/include and DIR/lib
1322 --with-gnu-ld assume the C compiler uses GNU ld default=no
1323 --with-included-gettext use the GNU gettext library included here
1324 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1325 --without-libintl-prefix don't search for libintl in includedir and libdir
1327 Some influential environment variables:
1328 CC C compiler command
1329 CFLAGS C compiler flags
1330 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1331 nonstandard directory <lib dir>
1332 LIBS libraries to pass to the linker, e.g. -l<library>
1333 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1334 you have headers in a nonstandard directory <include dir>
1337 Use these variables to override the choices made by `configure' or to help
1338 it to find libraries and programs with nonstandard names/locations.
1340 Report bugs to the package provider.
1345 if test "$ac_init_help" = "recursive"; then
1346 # If there are subdirs, report their specific --help.
1347 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1348 test -d "$ac_dir" ||
1349 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1354 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1356 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1357 # A ".." for each directory in $ac_dir_suffix.
1358 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1359 case $ac_top_builddir_sub in
1360 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1361 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1364 ac_abs_top_builddir=$ac_pwd
1365 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1366 # for backward compatibility:
1367 ac_top_builddir=$ac_top_build_prefix
1370 .) # We are building in place.
1372 ac_top_srcdir=$ac_top_builddir_sub
1373 ac_abs_top_srcdir=$ac_pwd ;;
1374 [\\/]* | ?:[\\/]* ) # Absolute name.
1375 ac_srcdir=$srcdir$ac_dir_suffix;
1376 ac_top_srcdir=$srcdir
1377 ac_abs_top_srcdir=$srcdir ;;
1379 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1380 ac_top_srcdir=$ac_top_build_prefix$srcdir
1381 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1383 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1385 cd "$ac_dir" || { ac_status=$?; continue; }
1386 # Check for guested configure.
1387 if test -f "$ac_srcdir/configure.gnu"; then
1389 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1390 elif test -f "$ac_srcdir/configure"; then
1392 $SHELL "$ac_srcdir/configure" --help=recursive
1394 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1396 cd "$ac_pwd" || { ac_status=$?; break; }
1400 test -n "$ac_init_help" && exit $ac_status
1401 if $ac_init_version; then
1404 generated by GNU Autoconf 2.64
1406 Copyright (C) 2009 Free Software Foundation, Inc.
1407 This configure script is free software; the Free Software Foundation
1408 gives unlimited permission to copy, distribute and modify it.
1413 ## ------------------------ ##
1414 ## Autoconf initialization. ##
1415 ## ------------------------ ##
1417 # ac_fn_c_try_compile LINENO
1418 # --------------------------
1419 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1420 ac_fn_c_try_compile ()
1422 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1423 rm -f conftest.$ac_objext
1424 if { { ac_try="$ac_compile"
1426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1427 *) ac_try_echo=$ac_try;;
1429 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1430 $as_echo "$ac_try_echo"; } >&5
1431 (eval "$ac_compile") 2>conftest.err
1433 if test -s conftest.err; then
1434 grep -v '^ *+' conftest.err >conftest.er1
1435 cat conftest.er1 >&5
1436 mv -f conftest.er1 conftest.err
1438 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1439 test $ac_status = 0; } && {
1440 test -z "$ac_c_werror_flag" ||
1441 test ! -s conftest.err
1442 } && test -s conftest.$ac_objext; then :
1445 $as_echo "$as_me: failed program was:" >&5
1446 sed 's/^/| /' conftest.$ac_ext >&5
1450 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1453 } # ac_fn_c_try_compile
1455 # ac_fn_c_try_link LINENO
1456 # -----------------------
1457 # Try to link conftest.$ac_ext, and return whether this succeeded.
1460 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1461 rm -f conftest.$ac_objext conftest$ac_exeext
1462 if { { ac_try="$ac_link"
1464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1465 *) ac_try_echo=$ac_try;;
1467 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1468 $as_echo "$ac_try_echo"; } >&5
1469 (eval "$ac_link") 2>conftest.err
1471 if test -s conftest.err; then
1472 grep -v '^ *+' conftest.err >conftest.er1
1473 cat conftest.er1 >&5
1474 mv -f conftest.er1 conftest.err
1476 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1477 test $ac_status = 0; } && {
1478 test -z "$ac_c_werror_flag" ||
1479 test ! -s conftest.err
1480 } && test -s conftest$ac_exeext && {
1481 test "$cross_compiling" = yes ||
1482 $as_test_x conftest$ac_exeext
1486 $as_echo "$as_me: failed program was:" >&5
1487 sed 's/^/| /' conftest.$ac_ext >&5
1491 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1492 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1493 # interfere with the next link command; also delete a directory that is
1494 # left behind by Apple's compiler. We do this before executing the actions.
1495 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1496 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1499 } # ac_fn_c_try_link
1501 # ac_fn_c_try_cpp LINENO
1502 # ----------------------
1503 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1506 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1507 if { { ac_try="$ac_cpp conftest.$ac_ext"
1509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1510 *) ac_try_echo=$ac_try;;
1512 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1513 $as_echo "$ac_try_echo"; } >&5
1514 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1516 if test -s conftest.err; then
1517 grep -v '^ *+' conftest.err >conftest.er1
1518 cat conftest.er1 >&5
1519 mv -f conftest.er1 conftest.err
1521 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1522 test $ac_status = 0; } >/dev/null && {
1523 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1524 test ! -s conftest.err
1528 $as_echo "$as_me: failed program was:" >&5
1529 sed 's/^/| /' conftest.$ac_ext >&5
1533 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1538 # ac_fn_c_try_run LINENO
1539 # ----------------------
1540 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1541 # that executables *can* be run.
1544 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1545 if { { ac_try="$ac_link"
1547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1548 *) ac_try_echo=$ac_try;;
1550 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1551 $as_echo "$ac_try_echo"; } >&5
1552 (eval "$ac_link") 2>&5
1554 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1555 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1556 { { case "(($ac_try" in
1557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1558 *) ac_try_echo=$ac_try;;
1560 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1561 $as_echo "$ac_try_echo"; } >&5
1562 (eval "$ac_try") 2>&5
1564 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1565 test $ac_status = 0; }; }; then :
1568 $as_echo "$as_me: program exited with status $ac_status" >&5
1569 $as_echo "$as_me: failed program was:" >&5
1570 sed 's/^/| /' conftest.$ac_ext >&5
1572 ac_retval=$ac_status
1574 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1575 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1580 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1581 # -------------------------------------------
1582 # Tests whether TYPE exists after having included INCLUDES, setting cache
1583 # variable VAR accordingly.
1584 ac_fn_c_check_type ()
1586 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1588 $as_echo_n "checking for $2... " >&6; }
1589 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1590 $as_echo_n "(cached) " >&6
1593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1594 /* end confdefs.h. */
1605 if ac_fn_c_try_compile "$LINENO"; then :
1606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1607 /* end confdefs.h. */
1618 if ac_fn_c_try_compile "$LINENO"; then :
1623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1629 $as_echo "$ac_res" >&6; }
1630 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1632 } # ac_fn_c_check_type
1634 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1635 # -------------------------------------------------------
1636 # Tests whether HEADER exists and can be compiled using the include files in
1637 # INCLUDES, setting the cache variable VAR accordingly.
1638 ac_fn_c_check_header_compile ()
1640 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1642 $as_echo_n "checking for $2... " >&6; }
1643 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1644 $as_echo_n "(cached) " >&6
1646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1647 /* end confdefs.h. */
1651 if ac_fn_c_try_compile "$LINENO"; then :
1656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1660 $as_echo "$ac_res" >&6; }
1661 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1663 } # ac_fn_c_check_header_compile
1665 # ac_fn_c_check_func LINENO FUNC VAR
1666 # ----------------------------------
1667 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1668 ac_fn_c_check_func ()
1670 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1672 $as_echo_n "checking for $2... " >&6; }
1673 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1674 $as_echo_n "(cached) " >&6
1676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1677 /* end confdefs.h. */
1678 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1679 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1680 #define $2 innocuous_$2
1682 /* System header to define __stub macros and hopefully few prototypes,
1683 which can conflict with char $2 (); below.
1684 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1685 <limits.h> exists even on freestanding compilers. */
1688 # include <limits.h>
1690 # include <assert.h>
1695 /* Override any GCC internal prototype to avoid an error.
1696 Use char because int might match the return type of a GCC
1697 builtin and then its argument prototype would still apply. */
1702 /* The GNU C library defines this for functions which it implements
1703 to always fail with ENOSYS. Some functions are actually named
1704 something starting with __ and the normal name is an alias. */
1705 #if defined __stub_$2 || defined __stub___$2
1717 if ac_fn_c_try_link "$LINENO"; then :
1722 rm -f core conftest.err conftest.$ac_objext \
1723 conftest$ac_exeext conftest.$ac_ext
1726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1727 $as_echo "$ac_res" >&6; }
1728 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1730 } # ac_fn_c_check_func
1732 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1733 # -------------------------------------------------------
1734 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1735 # the include files in INCLUDES and setting the cache variable VAR
1737 ac_fn_c_check_header_mongrel ()
1739 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1740 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1742 $as_echo_n "checking for $2... " >&6; }
1743 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1744 $as_echo_n "(cached) " >&6
1747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1748 $as_echo "$ac_res" >&6; }
1750 # Is the header compilable?
1751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1752 $as_echo_n "checking $2 usability... " >&6; }
1753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1754 /* end confdefs.h. */
1758 if ac_fn_c_try_compile "$LINENO"; then :
1759 ac_header_compiler=yes
1761 ac_header_compiler=no
1763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1765 $as_echo "$ac_header_compiler" >&6; }
1767 # Is the header present?
1768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1769 $as_echo_n "checking $2 presence... " >&6; }
1770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1771 /* end confdefs.h. */
1774 if ac_fn_c_try_cpp "$LINENO"; then :
1775 ac_header_preproc=yes
1777 ac_header_preproc=no
1779 rm -f conftest.err conftest.$ac_ext
1780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1781 $as_echo "$ac_header_preproc" >&6; }
1783 # So? What about this header?
1784 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1786 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1787 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1788 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1789 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1792 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1793 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1794 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1795 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1796 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1797 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1798 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1799 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1800 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1801 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1805 $as_echo_n "checking for $2... " >&6; }
1806 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1807 $as_echo_n "(cached) " >&6
1809 eval "$3=\$ac_header_compiler"
1812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1813 $as_echo "$ac_res" >&6; }
1815 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1817 } # ac_fn_c_check_header_mongrel
1818 cat >config.log <<_ACEOF
1819 This file contains any messages produced by compilers while
1820 running configure, to aid debugging if configure makes a mistake.
1822 It was created by $as_me, which was
1823 generated by GNU Autoconf 2.64. Invocation command line was
1835 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1836 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1837 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1838 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1839 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1841 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1842 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1844 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1845 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1846 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1847 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1848 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1849 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1850 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1858 test -z "$as_dir" && as_dir=.
1859 $as_echo "PATH: $as_dir"
1875 # Keep a trace of the command line.
1876 # Strip out --no-create and --no-recursion so they do not pile up.
1877 # Strip out --silent because we don't want to record it for future runs.
1878 # Also quote any args containing shell meta-characters.
1879 # Make two passes to allow for proper duplicate-argument suppression.
1883 ac_must_keep_next=false
1889 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1890 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1891 | -silent | --silent | --silen | --sile | --sil)
1894 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1897 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1899 as_fn_append ac_configure_args1 " '$ac_arg'"
1900 if test $ac_must_keep_next = true; then
1901 ac_must_keep_next=false # Got value, back to normal.
1904 *=* | --config-cache | -C | -disable-* | --disable-* \
1905 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1906 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1907 | -with-* | --with-* | -without-* | --without-* | --x)
1908 case "$ac_configure_args0 " in
1909 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1912 -* ) ac_must_keep_next=true ;;
1915 as_fn_append ac_configure_args " '$ac_arg'"
1920 { ac_configure_args0=; unset ac_configure_args0;}
1921 { ac_configure_args1=; unset ac_configure_args1;}
1923 # When interrupted or exit'd, cleanup temporary files, and complete
1924 # config.log. We remove comments because anyway the quotes in there
1925 # would cause problems or look ugly.
1926 # WARNING: Use '\'' to represent an apostrophe within the trap.
1927 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1928 trap 'exit_status=$?
1929 # Save into config.log some information that might help in debugging.
1934 ## ---------------- ##
1935 ## Cache variables. ##
1936 ## ---------------- ##
1939 # The following way of writing the cache mishandles newlines in values,
1941 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1942 eval ac_val=\$$ac_var
1946 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1947 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1950 _ | IFS | as_nl) ;; #(
1951 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1952 *) { eval $ac_var=; unset $ac_var;} ;;
1957 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1958 *${as_nl}ac_space=\ *)
1960 "s/'\''/'\''\\\\'\'''\''/g;
1961 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1964 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1972 ## ----------------- ##
1973 ## Output variables. ##
1974 ## ----------------- ##
1977 for ac_var in $ac_subst_vars
1979 eval ac_val=\$$ac_var
1981 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1983 $as_echo "$ac_var='\''$ac_val'\''"
1987 if test -n "$ac_subst_files"; then
1989 ## ------------------- ##
1990 ## File substitutions. ##
1991 ## ------------------- ##
1994 for ac_var in $ac_subst_files
1996 eval ac_val=\$$ac_var
1998 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2000 $as_echo "$ac_var='\''$ac_val'\''"
2005 if test -s confdefs.h; then
2015 test "$ac_signal" != 0 &&
2016 $as_echo "$as_me: caught signal $ac_signal"
2017 $as_echo "$as_me: exit $exit_status"
2019 rm -f core *.core core.conftest.* &&
2020 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2023 for ac_signal in 1 2 13 15; do
2024 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2028 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2029 rm -f -r conftest* confdefs.h
2031 $as_echo "/* confdefs.h */" > confdefs.h
2033 # Predefined preprocessor variables.
2035 cat >>confdefs.h <<_ACEOF
2036 #define PACKAGE_NAME "$PACKAGE_NAME"
2039 cat >>confdefs.h <<_ACEOF
2040 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2043 cat >>confdefs.h <<_ACEOF
2044 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2047 cat >>confdefs.h <<_ACEOF
2048 #define PACKAGE_STRING "$PACKAGE_STRING"
2051 cat >>confdefs.h <<_ACEOF
2052 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2055 cat >>confdefs.h <<_ACEOF
2056 #define PACKAGE_URL "$PACKAGE_URL"
2060 # Let the site file select an alternate cache file if it wants to.
2061 # Prefer an explicitly selected file to automatically selected ones.
2064 if test -n "$CONFIG_SITE"; then
2065 ac_site_file1=$CONFIG_SITE
2066 elif test "x$prefix" != xNONE; then
2067 ac_site_file1=$prefix/share/config.site
2068 ac_site_file2=$prefix/etc/config.site
2070 ac_site_file1=$ac_default_prefix/share/config.site
2071 ac_site_file2=$ac_default_prefix/etc/config.site
2073 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2075 test "x$ac_site_file" = xNONE && continue
2076 if test -r "$ac_site_file"; then
2077 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2078 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2079 sed 's/^/| /' "$ac_site_file" >&5
2084 if test -r "$cache_file"; then
2085 # Some versions of bash will fail to source /dev/null (special
2086 # files actually), so we avoid doing that.
2087 if test -f "$cache_file"; then
2088 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2089 $as_echo "$as_me: loading cache $cache_file" >&6;}
2091 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2092 *) . "./$cache_file";;
2096 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2097 $as_echo "$as_me: creating cache $cache_file" >&6;}
2101 # Check that the precious variables saved in the cache have kept the same
2103 ac_cache_corrupted=false
2104 for ac_var in $ac_precious_vars; do
2105 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2106 eval ac_new_set=\$ac_env_${ac_var}_set
2107 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2108 eval ac_new_val=\$ac_env_${ac_var}_value
2109 case $ac_old_set,$ac_new_set in
2111 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2112 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2113 ac_cache_corrupted=: ;;
2115 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2116 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2117 ac_cache_corrupted=: ;;
2120 if test "x$ac_old_val" != "x$ac_new_val"; then
2121 # differences in whitespace do not lead to failure.
2122 ac_old_val_w=`echo x $ac_old_val`
2123 ac_new_val_w=`echo x $ac_new_val`
2124 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2125 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2126 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2127 ac_cache_corrupted=:
2129 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2130 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2131 eval $ac_var=\$ac_old_val
2133 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2134 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2135 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2136 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2139 # Pass precious variables to config.status.
2140 if test "$ac_new_set" = set; then
2142 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2143 *) ac_arg=$ac_var=$ac_new_val ;;
2145 case " $ac_configure_args " in
2146 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2147 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2151 if $ac_cache_corrupted; then
2152 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2153 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2154 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2155 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2156 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2158 ## -------------------- ##
2159 ## Main body of script. ##
2160 ## -------------------- ##
2163 ac_cpp='$CPP $CPPFLAGS'
2164 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2165 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2166 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2173 ac_config_headers="$ac_config_headers config.h"
2177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2178 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2180 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2181 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2182 $as_echo_n "(cached) " >&6
2184 cat >conftest.make <<\_ACEOF
2187 @echo '@@@%%%=$(MAKE)=@@@%%%'
2189 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2190 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2192 eval ac_cv_prog_make_${ac_make}_set=yes;;
2194 eval ac_cv_prog_make_${ac_make}_set=no;;
2198 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2200 $as_echo "yes" >&6; }
2203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2204 $as_echo "no" >&6; }
2205 SET_MAKE="MAKE=${MAKE-make}"
2209 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2210 for ac_t in install-sh install.sh shtool; do
2211 if test -f "$ac_dir/$ac_t"; then
2213 ac_install_sh="$ac_aux_dir/$ac_t -c"
2218 if test -z "$ac_aux_dir"; then
2219 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2222 # These three variables are undocumented and unsupported,
2223 # and are intended to be withdrawn in a future Autoconf release.
2224 # They can cause serious problems if a builder's source tree is in a directory
2225 # whose full name contains unusual characters.
2226 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2227 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2228 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2231 # Find a good install program. We prefer a C program (faster),
2232 # so one script is as good as another. But avoid the broken or
2233 # incompatible versions:
2234 # SysV /etc/install, /usr/sbin/install
2235 # SunOS /usr/etc/install
2236 # IRIX /sbin/install
2238 # AmigaOS /C/install, which installs bootblocks on floppy discs
2239 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2240 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2241 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2242 # OS/2's system install, which has a completely different semantic
2243 # ./install, which can be erroneously created by make from ./install.sh.
2244 # Reject install programs that cannot install multiple files.
2245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2246 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2247 if test -z "$INSTALL"; then
2248 if test "${ac_cv_path_install+set}" = set; then :
2249 $as_echo_n "(cached) " >&6
2251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2255 test -z "$as_dir" && as_dir=.
2256 # Account for people who put trailing slashes in PATH elements.
2257 case $as_dir/ in #((
2258 ./ | .// | /[cC]/* | \
2259 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2260 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2263 # OSF1 and SCO ODT 3.0 have their own names for install.
2264 # Don't use installbsd from OSF since it installs stuff as root
2266 for ac_prog in ginstall scoinst install; do
2267 for ac_exec_ext in '' $ac_executable_extensions; do
2268 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2269 if test $ac_prog = install &&
2270 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2271 # AIX install. It has an incompatible calling convention.
2273 elif test $ac_prog = install &&
2274 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2275 # program-specific install script used by HP pwplus--don't use.
2278 rm -rf conftest.one conftest.two conftest.dir
2279 echo one > conftest.one
2280 echo two > conftest.two
2282 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2283 test -s conftest.one && test -s conftest.two &&
2284 test -s conftest.dir/conftest.one &&
2285 test -s conftest.dir/conftest.two
2287 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2300 rm -rf conftest.one conftest.two conftest.dir
2303 if test "${ac_cv_path_install+set}" = set; then
2304 INSTALL=$ac_cv_path_install
2306 # As a last resort, use the slow shell script. Don't cache a
2307 # value for INSTALL within a source directory, because that will
2308 # break other packages using the cache if that directory is
2309 # removed, or if the value is a relative name.
2310 INSTALL=$ac_install_sh
2313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2314 $as_echo "$INSTALL" >&6; }
2316 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2317 # It thinks the first close brace ends the variable substitution.
2318 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2320 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2322 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2326 if test -n "$ac_aux_dir"; then
2327 case "$ac_aux_dir" in
2328 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
2329 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
2332 if test -z "$MKINSTALLDIRS"; then
2333 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
2338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
2339 $as_echo_n "checking whether NLS is requested... " >&6; }
2340 # Check whether --enable-nls was given.
2341 if test "${enable_nls+set}" = set; then :
2342 enableval=$enable_nls; USE_NLS=$enableval
2347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
2348 $as_echo "$USE_NLS" >&6; }
2355 # Prepare PATH_SEPARATOR.
2356 # The user is always right.
2357 if test "${PATH_SEPARATOR+set}" != set; then
2358 echo "#! /bin/sh" >conf$$.sh
2359 echo "exit 0" >>conf$$.sh
2361 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
2369 # Find out how to test for executable files. Don't use a zero-byte file,
2370 # as systems may use methods other than mode bits to determine executability.
2371 cat >conf$$.file <<_ASEOF
2375 chmod +x conf$$.file
2376 if test -x conf$$.file >/dev/null 2>&1; then
2377 ac_executable_p="test -x"
2379 ac_executable_p="test -f"
2383 # Extract the first word of "msgfmt", so it can be a program name with args.
2384 set dummy msgfmt; ac_word=$2
2385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2386 $as_echo_n "checking for $ac_word... " >&6; }
2387 if test "${ac_cv_path_MSGFMT+set}" = set; then :
2388 $as_echo_n "(cached) " >&6
2392 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2395 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
2396 for ac_dir in $PATH; do
2398 test -z "$ac_dir" && ac_dir=.
2399 for ac_exec_ext in '' $ac_executable_extensions; do
2400 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
2401 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
2402 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
2403 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
2410 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
2414 MSGFMT="$ac_cv_path_MSGFMT"
2415 if test "$MSGFMT" != ":"; then
2416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
2417 $as_echo "$MSGFMT" >&6; }
2419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2420 $as_echo "no" >&6; }
2423 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2424 set dummy gmsgfmt; ac_word=$2
2425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2426 $as_echo_n "checking for $ac_word... " >&6; }
2427 if test "${ac_cv_path_GMSGFMT+set}" = set; then :
2428 $as_echo_n "(cached) " >&6
2432 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2439 test -z "$as_dir" && as_dir=.
2440 for ac_exec_ext in '' $ac_executable_extensions; do
2441 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2442 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
2443 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2450 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2454 GMSGFMT=$ac_cv_path_GMSGFMT
2455 if test -n "$GMSGFMT"; then
2456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
2457 $as_echo "$GMSGFMT" >&6; }
2459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2460 $as_echo "no" >&6; }
2466 # Prepare PATH_SEPARATOR.
2467 # The user is always right.
2468 if test "${PATH_SEPARATOR+set}" != set; then
2469 echo "#! /bin/sh" >conf$$.sh
2470 echo "exit 0" >>conf$$.sh
2472 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
2480 # Find out how to test for executable files. Don't use a zero-byte file,
2481 # as systems may use methods other than mode bits to determine executability.
2482 cat >conf$$.file <<_ASEOF
2486 chmod +x conf$$.file
2487 if test -x conf$$.file >/dev/null 2>&1; then
2488 ac_executable_p="test -x"
2490 ac_executable_p="test -f"
2494 # Extract the first word of "xgettext", so it can be a program name with args.
2495 set dummy xgettext; ac_word=$2
2496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2497 $as_echo_n "checking for $ac_word... " >&6; }
2498 if test "${ac_cv_path_XGETTEXT+set}" = set; then :
2499 $as_echo_n "(cached) " >&6
2503 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2506 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
2507 for ac_dir in $PATH; do
2509 test -z "$ac_dir" && ac_dir=.
2510 for ac_exec_ext in '' $ac_executable_extensions; do
2511 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
2512 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
2513 (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
2514 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
2521 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2525 XGETTEXT="$ac_cv_path_XGETTEXT"
2526 if test "$XGETTEXT" != ":"; then
2527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
2528 $as_echo "$XGETTEXT" >&6; }
2530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2531 $as_echo "no" >&6; }
2537 # Prepare PATH_SEPARATOR.
2538 # The user is always right.
2539 if test "${PATH_SEPARATOR+set}" != set; then
2540 echo "#! /bin/sh" >conf$$.sh
2541 echo "exit 0" >>conf$$.sh
2543 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
2551 # Find out how to test for executable files. Don't use a zero-byte file,
2552 # as systems may use methods other than mode bits to determine executability.
2553 cat >conf$$.file <<_ASEOF
2557 chmod +x conf$$.file
2558 if test -x conf$$.file >/dev/null 2>&1; then
2559 ac_executable_p="test -x"
2561 ac_executable_p="test -f"
2565 # Extract the first word of "msgmerge", so it can be a program name with args.
2566 set dummy msgmerge; ac_word=$2
2567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2568 $as_echo_n "checking for $ac_word... " >&6; }
2569 if test "${ac_cv_path_MSGMERGE+set}" = set; then :
2570 $as_echo_n "(cached) " >&6
2574 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
2577 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
2578 for ac_dir in $PATH; do
2580 test -z "$ac_dir" && ac_dir=.
2581 for ac_exec_ext in '' $ac_executable_extensions; do
2582 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
2583 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
2584 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
2591 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
2595 MSGMERGE="$ac_cv_path_MSGMERGE"
2596 if test "$MSGMERGE" != ":"; then
2597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
2598 $as_echo "$MSGMERGE" >&6; }
2600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2601 $as_echo "no" >&6; }
2605 if test "$GMSGFMT" != ":"; then
2606 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
2607 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
2610 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
2611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
2612 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
2617 if test "$XGETTEXT" != ":"; then
2618 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
2619 (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
2622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
2623 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
2629 ac_config_commands="$ac_config_commands default-1"
2633 ac_cpp='$CPP $CPPFLAGS'
2634 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2635 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2636 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2637 if test -n "$ac_tool_prefix"; then
2638 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2639 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2641 $as_echo_n "checking for $ac_word... " >&6; }
2642 if test "${ac_cv_prog_CC+set}" = set; then :
2643 $as_echo_n "(cached) " >&6
2645 if test -n "$CC"; then
2646 ac_cv_prog_CC="$CC" # Let the user override the test.
2648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2652 test -z "$as_dir" && as_dir=.
2653 for ac_exec_ext in '' $ac_executable_extensions; do
2654 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2655 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2666 if test -n "$CC"; then
2667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2668 $as_echo "$CC" >&6; }
2670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2671 $as_echo "no" >&6; }
2676 if test -z "$ac_cv_prog_CC"; then
2678 # Extract the first word of "gcc", so it can be a program name with args.
2679 set dummy gcc; ac_word=$2
2680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2681 $as_echo_n "checking for $ac_word... " >&6; }
2682 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2683 $as_echo_n "(cached) " >&6
2685 if test -n "$ac_ct_CC"; then
2686 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2692 test -z "$as_dir" && as_dir=.
2693 for ac_exec_ext in '' $ac_executable_extensions; do
2694 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2695 ac_cv_prog_ac_ct_CC="gcc"
2696 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2705 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2706 if test -n "$ac_ct_CC"; then
2707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2708 $as_echo "$ac_ct_CC" >&6; }
2710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2711 $as_echo "no" >&6; }
2714 if test "x$ac_ct_CC" = x; then
2717 case $cross_compiling:$ac_tool_warned in
2719 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2720 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2721 ac_tool_warned=yes ;;
2729 if test -z "$CC"; then
2730 if test -n "$ac_tool_prefix"; then
2731 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2732 set dummy ${ac_tool_prefix}cc; ac_word=$2
2733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2734 $as_echo_n "checking for $ac_word... " >&6; }
2735 if test "${ac_cv_prog_CC+set}" = set; then :
2736 $as_echo_n "(cached) " >&6
2738 if test -n "$CC"; then
2739 ac_cv_prog_CC="$CC" # Let the user override the test.
2741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2745 test -z "$as_dir" && as_dir=.
2746 for ac_exec_ext in '' $ac_executable_extensions; do
2747 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2748 ac_cv_prog_CC="${ac_tool_prefix}cc"
2749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2759 if test -n "$CC"; then
2760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2761 $as_echo "$CC" >&6; }
2763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2764 $as_echo "no" >&6; }
2770 if test -z "$CC"; then
2771 # Extract the first word of "cc", so it can be a program name with args.
2772 set dummy cc; ac_word=$2
2773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2774 $as_echo_n "checking for $ac_word... " >&6; }
2775 if test "${ac_cv_prog_CC+set}" = set; then :
2776 $as_echo_n "(cached) " >&6
2778 if test -n "$CC"; then
2779 ac_cv_prog_CC="$CC" # Let the user override the test.
2782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2786 test -z "$as_dir" && as_dir=.
2787 for ac_exec_ext in '' $ac_executable_extensions; do
2788 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2789 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2790 ac_prog_rejected=yes
2794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2801 if test $ac_prog_rejected = yes; then
2802 # We found a bogon in the path, so make sure we never use it.
2803 set dummy $ac_cv_prog_CC
2805 if test $# != 0; then
2806 # We chose a different compiler from the bogus one.
2807 # However, it has the same basename, so the bogon will be chosen
2808 # first if we set CC to just the basename; use the full file name.
2810 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2816 if test -n "$CC"; then
2817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2818 $as_echo "$CC" >&6; }
2820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2821 $as_echo "no" >&6; }
2826 if test -z "$CC"; then
2827 if test -n "$ac_tool_prefix"; then
2828 for ac_prog in cl.exe
2830 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2831 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2833 $as_echo_n "checking for $ac_word... " >&6; }
2834 if test "${ac_cv_prog_CC+set}" = set; then :
2835 $as_echo_n "(cached) " >&6
2837 if test -n "$CC"; then
2838 ac_cv_prog_CC="$CC" # Let the user override the test.
2840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2844 test -z "$as_dir" && as_dir=.
2845 for ac_exec_ext in '' $ac_executable_extensions; do
2846 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2847 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2848 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2858 if test -n "$CC"; then
2859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2860 $as_echo "$CC" >&6; }
2862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2863 $as_echo "no" >&6; }
2867 test -n "$CC" && break
2870 if test -z "$CC"; then
2872 for ac_prog in cl.exe
2874 # Extract the first word of "$ac_prog", so it can be a program name with args.
2875 set dummy $ac_prog; ac_word=$2
2876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2877 $as_echo_n "checking for $ac_word... " >&6; }
2878 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2879 $as_echo_n "(cached) " >&6
2881 if test -n "$ac_ct_CC"; then
2882 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2888 test -z "$as_dir" && as_dir=.
2889 for ac_exec_ext in '' $ac_executable_extensions; do
2890 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2891 ac_cv_prog_ac_ct_CC="$ac_prog"
2892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2901 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2902 if test -n "$ac_ct_CC"; then
2903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2904 $as_echo "$ac_ct_CC" >&6; }
2906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2907 $as_echo "no" >&6; }
2911 test -n "$ac_ct_CC" && break
2914 if test "x$ac_ct_CC" = x; then
2917 case $cross_compiling:$ac_tool_warned in
2919 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2920 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2921 ac_tool_warned=yes ;;
2930 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2931 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2932 as_fn_error "no acceptable C compiler found in \$PATH
2933 See \`config.log' for more details." "$LINENO" 5; }
2935 # Provide some information about the compiler.
2936 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2939 for ac_option in --version -v -V -qversion; do
2940 { { ac_try="$ac_compiler $ac_option >&5"
2942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2943 *) ac_try_echo=$ac_try;;
2945 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2946 $as_echo "$ac_try_echo"; } >&5
2947 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2949 if test -s conftest.err; then
2951 ... rest of stderr output deleted ...
2952 10q' conftest.err >conftest.er1
2953 cat conftest.er1 >&5
2954 rm -f conftest.er1 conftest.err
2956 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2957 test $ac_status = 0; }
2960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2961 /* end confdefs.h. */
2971 ac_clean_files_save=$ac_clean_files
2972 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
2973 # Try to create an executable without -o first, disregard a.out.
2974 # It will help us diagnose broken compilers, and finding out an intuition
2976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2977 $as_echo_n "checking for C compiler default output file name... " >&6; }
2978 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2980 # The possible output files:
2981 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2984 for ac_file in $ac_files
2987 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2988 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2993 if { { ac_try="$ac_link_default"
2995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2996 *) ac_try_echo=$ac_try;;
2998 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2999 $as_echo "$ac_try_echo"; } >&5
3000 (eval "$ac_link_default") 2>&5
3002 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3003 test $ac_status = 0; }; then :
3004 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3005 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3006 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3007 # so that the user can short-circuit this test for compilers unknown to
3009 for ac_file in $ac_files ''
3011 test -f "$ac_file" || continue
3013 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3016 # We found the default executable, but exeext='' is most
3020 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3022 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3024 # We set ac_cv_exeext here because the later test for it is not
3025 # safe: cross compilers may not add the suffix if given an `-o'
3026 # argument, so we may need to know it at that point already.
3027 # Even if this section looks crufty: it has the advantage of
3034 test "$ac_cv_exeext" = no && ac_cv_exeext=
3039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3040 $as_echo "$ac_file" >&6; }
3041 if test -z "$ac_file"; then :
3042 $as_echo "$as_me: failed program was:" >&5
3043 sed 's/^/| /' conftest.$ac_ext >&5
3045 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3046 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3047 { as_fn_set_status 77
3048 as_fn_error "C compiler cannot create executables
3049 See \`config.log' for more details." "$LINENO" 5; }; }
3051 ac_exeext=$ac_cv_exeext
3053 # Check that the compiler produces executables we can run. If not, either
3054 # the compiler is broken, or we cross compile.
3055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3056 $as_echo_n "checking whether the C compiler works... " >&6; }
3057 # If not cross compiling, check that we can run a simple program.
3058 if test "$cross_compiling" != yes; then
3059 if { ac_try='./$ac_file'
3060 { { case "(($ac_try" in
3061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3062 *) ac_try_echo=$ac_try;;
3064 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3065 $as_echo "$ac_try_echo"; } >&5
3066 (eval "$ac_try") 2>&5
3068 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3069 test $ac_status = 0; }; }; then
3072 if test "$cross_compiling" = maybe; then
3075 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3076 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3077 as_fn_error "cannot run C compiled programs.
3078 If you meant to cross compile, use \`--host'.
3079 See \`config.log' for more details." "$LINENO" 5; }
3083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3084 $as_echo "yes" >&6; }
3086 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3087 ac_clean_files=$ac_clean_files_save
3088 # Check that the compiler produces executables we can run. If not, either
3089 # the compiler is broken, or we cross compile.
3090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3091 $as_echo_n "checking whether we are cross compiling... " >&6; }
3092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3093 $as_echo "$cross_compiling" >&6; }
3095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3096 $as_echo_n "checking for suffix of executables... " >&6; }
3097 if { { ac_try="$ac_link"
3099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3100 *) ac_try_echo=$ac_try;;
3102 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3103 $as_echo "$ac_try_echo"; } >&5
3104 (eval "$ac_link") 2>&5
3106 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3107 test $ac_status = 0; }; then :
3108 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3109 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3110 # work properly (i.e., refer to `conftest.exe'), while it won't with
3112 for ac_file in conftest.exe conftest conftest.*; do
3113 test -f "$ac_file" || continue
3115 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3116 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3122 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3123 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3124 as_fn_error "cannot compute suffix of executables: cannot compile and link
3125 See \`config.log' for more details." "$LINENO" 5; }
3127 rm -f conftest$ac_cv_exeext
3128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3129 $as_echo "$ac_cv_exeext" >&6; }
3131 rm -f conftest.$ac_ext
3132 EXEEXT=$ac_cv_exeext
3134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3135 $as_echo_n "checking for suffix of object files... " >&6; }
3136 if test "${ac_cv_objext+set}" = set; then :
3137 $as_echo_n "(cached) " >&6
3139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3140 /* end confdefs.h. */
3150 rm -f conftest.o conftest.obj
3151 if { { ac_try="$ac_compile"
3153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3154 *) ac_try_echo=$ac_try;;
3156 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3157 $as_echo "$ac_try_echo"; } >&5
3158 (eval "$ac_compile") 2>&5
3160 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3161 test $ac_status = 0; }; then :
3162 for ac_file in conftest.o conftest.obj conftest.*; do
3163 test -f "$ac_file" || continue;
3165 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3166 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3171 $as_echo "$as_me: failed program was:" >&5
3172 sed 's/^/| /' conftest.$ac_ext >&5
3174 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3175 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3176 as_fn_error "cannot compute suffix of object files: cannot compile
3177 See \`config.log' for more details." "$LINENO" 5; }
3179 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3182 $as_echo "$ac_cv_objext" >&6; }
3183 OBJEXT=$ac_cv_objext
3185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3186 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3187 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3188 $as_echo_n "(cached) " >&6
3190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3191 /* end confdefs.h. */
3204 if ac_fn_c_try_compile "$LINENO"; then :
3209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3210 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3214 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3215 if test $ac_compiler_gnu = yes; then
3220 ac_test_CFLAGS=${CFLAGS+set}
3221 ac_save_CFLAGS=$CFLAGS
3222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3223 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3224 if test "${ac_cv_prog_cc_g+set}" = set; then :
3225 $as_echo_n "(cached) " >&6
3227 ac_save_c_werror_flag=$ac_c_werror_flag
3228 ac_c_werror_flag=yes
3231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3232 /* end confdefs.h. */
3242 if ac_fn_c_try_compile "$LINENO"; then :
3246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3247 /* end confdefs.h. */
3257 if ac_fn_c_try_compile "$LINENO"; then :
3260 ac_c_werror_flag=$ac_save_c_werror_flag
3262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3263 /* end confdefs.h. */
3273 if ac_fn_c_try_compile "$LINENO"; then :
3276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3281 ac_c_werror_flag=$ac_save_c_werror_flag
3283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3284 $as_echo "$ac_cv_prog_cc_g" >&6; }
3285 if test "$ac_test_CFLAGS" = set; then
3286 CFLAGS=$ac_save_CFLAGS
3287 elif test $ac_cv_prog_cc_g = yes; then
3288 if test "$GCC" = yes; then
3294 if test "$GCC" = yes; then
3300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3301 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3302 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3303 $as_echo_n "(cached) " >&6
3305 ac_cv_prog_cc_c89=no
3307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3308 /* end confdefs.h. */
3311 #include <sys/types.h>
3312 #include <sys/stat.h>
3313 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3314 struct buf { int x; };
3315 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3316 static char *e (p, i)
3322 static char *f (char * (*g) (char **, int), char **p, ...)
3327 s = g (p, va_arg (v,int));
3332 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3333 function prototypes and stuff, but not '\xHH' hex character constants.
3334 These don't provoke an error unfortunately, instead are silently treated
3335 as 'x'. The following induces an error, until -std is added to get
3336 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3337 array size at least. It's necessary to write '\x00'==0 to get something
3338 that's true only with -std. */
3339 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3341 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3342 inside strings and character constants. */
3344 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3346 int test (int i, double x);
3347 struct s1 {int (*f) (int a);};
3348 struct s2 {int (*f) (double a);};
3349 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3355 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3360 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3361 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3363 CC="$ac_save_CC $ac_arg"
3364 if ac_fn_c_try_compile "$LINENO"; then :
3365 ac_cv_prog_cc_c89=$ac_arg
3367 rm -f core conftest.err conftest.$ac_objext
3368 test "x$ac_cv_prog_cc_c89" != "xno" && break
3370 rm -f conftest.$ac_ext
3375 case "x$ac_cv_prog_cc_c89" in
3377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3378 $as_echo "none needed" >&6; } ;;
3380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3381 $as_echo "unsupported" >&6; } ;;
3383 CC="$CC $ac_cv_prog_cc_c89"
3384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3385 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3387 if test "x$ac_cv_prog_cc_c89" != xno; then :
3392 ac_cpp='$CPP $CPPFLAGS'
3393 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3394 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3395 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3397 # Make sure we can run config.sub.
3398 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3399 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3402 $as_echo_n "checking build system type... " >&6; }
3403 if test "${ac_cv_build+set}" = set; then :
3404 $as_echo_n "(cached) " >&6
3406 ac_build_alias=$build_alias
3407 test "x$ac_build_alias" = x &&
3408 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3409 test "x$ac_build_alias" = x &&
3410 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3411 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3412 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3416 $as_echo "$ac_cv_build" >&6; }
3417 case $ac_cv_build in
3419 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3422 ac_save_IFS=$IFS; IFS='-'
3428 # Remember, the first character of IFS is used to create $*,
3429 # except with old shells:
3432 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3436 $as_echo_n "checking host system type... " >&6; }
3437 if test "${ac_cv_host+set}" = set; then :
3438 $as_echo_n "(cached) " >&6
3440 if test "x$host_alias" = x; then
3441 ac_cv_host=$ac_cv_build
3443 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3444 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3449 $as_echo "$ac_cv_host" >&6; }
3452 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3455 ac_save_IFS=$IFS; IFS='-'
3461 # Remember, the first character of IFS is used to create $*,
3462 # except with old shells:
3465 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3468 if test -n "$ac_tool_prefix"; then
3469 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3470 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3472 $as_echo_n "checking for $ac_word... " >&6; }
3473 if test "${ac_cv_prog_RANLIB+set}" = set; then :
3474 $as_echo_n "(cached) " >&6
3476 if test -n "$RANLIB"; then
3477 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3483 test -z "$as_dir" && as_dir=.
3484 for ac_exec_ext in '' $ac_executable_extensions; do
3485 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3486 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3496 RANLIB=$ac_cv_prog_RANLIB
3497 if test -n "$RANLIB"; then
3498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
3499 $as_echo "$RANLIB" >&6; }
3501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3502 $as_echo "no" >&6; }
3507 if test -z "$ac_cv_prog_RANLIB"; then
3508 ac_ct_RANLIB=$RANLIB
3509 # Extract the first word of "ranlib", so it can be a program name with args.
3510 set dummy ranlib; ac_word=$2
3511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3512 $as_echo_n "checking for $ac_word... " >&6; }
3513 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
3514 $as_echo_n "(cached) " >&6
3516 if test -n "$ac_ct_RANLIB"; then
3517 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3523 test -z "$as_dir" && as_dir=.
3524 for ac_exec_ext in '' $ac_executable_extensions; do
3525 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3526 ac_cv_prog_ac_ct_RANLIB="ranlib"
3527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3536 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3537 if test -n "$ac_ct_RANLIB"; then
3538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
3539 $as_echo "$ac_ct_RANLIB" >&6; }
3541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3542 $as_echo "no" >&6; }
3545 if test "x$ac_ct_RANLIB" = x; then
3548 case $cross_compiling:$ac_tool_warned in
3550 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3551 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3552 ac_tool_warned=yes ;;
3554 RANLIB=$ac_ct_RANLIB
3557 RANLIB="$ac_cv_prog_RANLIB"
3561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
3562 $as_echo_n "checking for library containing strerror... " >&6; }
3563 if test "${ac_cv_search_strerror+set}" = set; then :
3564 $as_echo_n "(cached) " >&6
3566 ac_func_search_save_LIBS=$LIBS
3567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3568 /* end confdefs.h. */
3570 /* Override any GCC internal prototype to avoid an error.
3571 Use char because int might match the return type of a GCC
3572 builtin and then its argument prototype would still apply. */
3585 for ac_lib in '' cposix; do
3586 if test -z "$ac_lib"; then
3587 ac_res="none required"
3590 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3592 if ac_fn_c_try_link "$LINENO"; then :
3593 ac_cv_search_strerror=$ac_res
3595 rm -f core conftest.err conftest.$ac_objext \
3597 if test "${ac_cv_search_strerror+set}" = set; then :
3601 if test "${ac_cv_search_strerror+set}" = set; then :
3604 ac_cv_search_strerror=no
3607 LIBS=$ac_func_search_save_LIBS
3609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
3610 $as_echo "$ac_cv_search_strerror" >&6; }
3611 ac_res=$ac_cv_search_strerror
3612 if test "$ac_res" != no; then :
3613 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3618 ac_cpp='$CPP $CPPFLAGS'
3619 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3620 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3621 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3623 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3624 # On Suns, sometimes $CPP names a directory.
3625 if test -n "$CPP" && test -d "$CPP"; then
3628 if test -z "$CPP"; then
3629 if test "${ac_cv_prog_CPP+set}" = set; then :
3630 $as_echo_n "(cached) " >&6
3632 # Double quotes because CPP needs to be expanded
3633 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3636 for ac_c_preproc_warn_flag in '' yes
3638 # Use a header file that comes with gcc, so configuring glibc
3639 # with a fresh cross-compiler works.
3640 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3641 # <limits.h> exists even on freestanding compilers.
3642 # On the NeXT, cc -E runs the code through the compiler's parser,
3643 # not just through cpp. "Syntax error" is here to catch this case.
3644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3645 /* end confdefs.h. */
3647 # include <limits.h>
3649 # include <assert.h>
3653 if ac_fn_c_try_cpp "$LINENO"; then :
3656 # Broken: fails on valid input.
3659 rm -f conftest.err conftest.$ac_ext
3661 # OK, works on sane cases. Now check whether nonexistent headers
3662 # can be detected and how.
3663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3664 /* end confdefs.h. */
3665 #include <ac_nonexistent.h>
3667 if ac_fn_c_try_cpp "$LINENO"; then :
3668 # Broken: success on invalid input.
3671 # Passes both tests.
3675 rm -f conftest.err conftest.$ac_ext
3678 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3679 rm -f conftest.err conftest.$ac_ext
3680 if $ac_preproc_ok; then :
3692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3693 $as_echo "$CPP" >&6; }
3695 for ac_c_preproc_warn_flag in '' yes
3697 # Use a header file that comes with gcc, so configuring glibc
3698 # with a fresh cross-compiler works.
3699 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3700 # <limits.h> exists even on freestanding compilers.
3701 # On the NeXT, cc -E runs the code through the compiler's parser,
3702 # not just through cpp. "Syntax error" is here to catch this case.
3703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3704 /* end confdefs.h. */
3706 # include <limits.h>
3708 # include <assert.h>
3712 if ac_fn_c_try_cpp "$LINENO"; then :
3715 # Broken: fails on valid input.
3718 rm -f conftest.err conftest.$ac_ext
3720 # OK, works on sane cases. Now check whether nonexistent headers
3721 # can be detected and how.
3722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3723 /* end confdefs.h. */
3724 #include <ac_nonexistent.h>
3726 if ac_fn_c_try_cpp "$LINENO"; then :
3727 # Broken: success on invalid input.
3730 # Passes both tests.
3734 rm -f conftest.err conftest.$ac_ext
3737 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3738 rm -f conftest.err conftest.$ac_ext
3739 if $ac_preproc_ok; then :
3742 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3743 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3744 as_fn_error "C preprocessor \"$CPP\" fails sanity check
3745 See \`config.log' for more details." "$LINENO" 5; }
3749 ac_cpp='$CPP $CPPFLAGS'
3750 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3751 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3752 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3756 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3757 if test "${ac_cv_path_GREP+set}" = set; then :
3758 $as_echo_n "(cached) " >&6
3760 if test -z "$GREP"; then
3761 ac_path_GREP_found=false
3762 # Loop through the user's path and test for each of PROGNAME-LIST
3763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3764 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3767 test -z "$as_dir" && as_dir=.
3768 for ac_prog in grep ggrep; do
3769 for ac_exec_ext in '' $ac_executable_extensions; do
3770 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3771 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3772 # Check for GNU ac_path_GREP and select it if it is found.
3773 # Check for GNU $ac_path_GREP
3774 case `"$ac_path_GREP" --version 2>&1` in
3776 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3779 $as_echo_n 0123456789 >"conftest.in"
3782 cat "conftest.in" "conftest.in" >"conftest.tmp"
3783 mv "conftest.tmp" "conftest.in"
3784 cp "conftest.in" "conftest.nl"
3785 $as_echo 'GREP' >> "conftest.nl"
3786 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3787 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3788 as_fn_arith $ac_count + 1 && ac_count=$as_val
3789 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3790 # Best one so far, save it but keep looking for a better one
3791 ac_cv_path_GREP="$ac_path_GREP"
3792 ac_path_GREP_max=$ac_count
3794 # 10*(2^10) chars as input seems more than enough
3795 test $ac_count -gt 10 && break
3797 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3800 $ac_path_GREP_found && break 3
3805 if test -z "$ac_cv_path_GREP"; then
3806 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3809 ac_cv_path_GREP=$GREP
3813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3814 $as_echo "$ac_cv_path_GREP" >&6; }
3815 GREP="$ac_cv_path_GREP"
3818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3819 $as_echo_n "checking for egrep... " >&6; }
3820 if test "${ac_cv_path_EGREP+set}" = set; then :
3821 $as_echo_n "(cached) " >&6
3823 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3824 then ac_cv_path_EGREP="$GREP -E"
3826 if test -z "$EGREP"; then
3827 ac_path_EGREP_found=false
3828 # Loop through the user's path and test for each of PROGNAME-LIST
3829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3830 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3833 test -z "$as_dir" && as_dir=.
3834 for ac_prog in egrep; do
3835 for ac_exec_ext in '' $ac_executable_extensions; do
3836 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3837 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3838 # Check for GNU ac_path_EGREP and select it if it is found.
3839 # Check for GNU $ac_path_EGREP
3840 case `"$ac_path_EGREP" --version 2>&1` in
3842 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3845 $as_echo_n 0123456789 >"conftest.in"
3848 cat "conftest.in" "conftest.in" >"conftest.tmp"
3849 mv "conftest.tmp" "conftest.in"
3850 cp "conftest.in" "conftest.nl"
3851 $as_echo 'EGREP' >> "conftest.nl"
3852 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3853 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3854 as_fn_arith $ac_count + 1 && ac_count=$as_val
3855 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3856 # Best one so far, save it but keep looking for a better one
3857 ac_cv_path_EGREP="$ac_path_EGREP"
3858 ac_path_EGREP_max=$ac_count
3860 # 10*(2^10) chars as input seems more than enough
3861 test $ac_count -gt 10 && break
3863 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3866 $ac_path_EGREP_found && break 3
3871 if test -z "$ac_cv_path_EGREP"; then
3872 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3875 ac_cv_path_EGREP=$EGREP
3880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3881 $as_echo "$ac_cv_path_EGREP" >&6; }
3882 EGREP="$ac_cv_path_EGREP"
3885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3886 $as_echo_n "checking for ANSI C header files... " >&6; }
3887 if test "${ac_cv_header_stdc+set}" = set; then :
3888 $as_echo_n "(cached) " >&6
3890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3891 /* end confdefs.h. */
3905 if ac_fn_c_try_compile "$LINENO"; then :
3906 ac_cv_header_stdc=yes
3908 ac_cv_header_stdc=no
3910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3912 if test $ac_cv_header_stdc = yes; then
3913 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3915 /* end confdefs.h. */
3919 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3920 $EGREP "memchr" >/dev/null 2>&1; then :
3923 ac_cv_header_stdc=no
3929 if test $ac_cv_header_stdc = yes; then
3930 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3932 /* end confdefs.h. */
3936 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3937 $EGREP "free" >/dev/null 2>&1; then :
3940 ac_cv_header_stdc=no
3946 if test $ac_cv_header_stdc = yes; then
3947 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3948 if test "$cross_compiling" = yes; then :
3951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3952 /* end confdefs.h. */
3955 #if ((' ' & 0x0FF) == 0x020)
3956 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3957 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3959 # define ISLOWER(c) \
3960 (('a' <= (c) && (c) <= 'i') \
3961 || ('j' <= (c) && (c) <= 'r') \
3962 || ('s' <= (c) && (c) <= 'z'))
3963 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3966 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3971 for (i = 0; i < 256; i++)
3972 if (XOR (islower (i), ISLOWER (i))
3973 || toupper (i) != TOUPPER (i))
3978 if ac_fn_c_try_run "$LINENO"; then :
3981 ac_cv_header_stdc=no
3983 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3984 conftest.$ac_objext conftest.beam conftest.$ac_ext
3989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3990 $as_echo "$ac_cv_header_stdc" >&6; }
3991 if test $ac_cv_header_stdc = yes; then
3993 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
3998 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
3999 if test "${ac_cv_c_const+set}" = set; then :
4000 $as_echo_n "(cached) " >&6
4002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4003 /* end confdefs.h. */
4008 /* FIXME: Include the comments suggested by Paul. */
4010 /* Ultrix mips cc rejects this. */
4011 typedef int charset[2];
4013 /* SunOS 4.1.1 cc rejects this. */
4014 char const *const *pcpcc;
4016 /* NEC SVR4.0.2 mips cc rejects this. */
4017 struct point {int x, y;};
4018 static struct point const zero = {0,0};
4019 /* AIX XL C 1.02.0.0 rejects this.
4020 It does not let you subtract one const X* pointer from another in
4021 an arm of an if-expression whose if-part is not a constant
4023 const char *g = "string";
4024 pcpcc = &g + (g ? g-g : 0);
4025 /* HPUX 7.0 cc rejects these. */
4027 ppc = (char**) pcpcc;
4028 pcpcc = (char const *const *) ppc;
4029 { /* SCO 3.2v4 cc rejects this. */
4031 char const *s = 0 ? (char *) 0 : (char const *) 0;
4036 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4038 const int *foo = &x[0];
4041 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4042 typedef const int *iptr;
4046 { /* AIX XL C 1.02.0.0 rejects this saying
4047 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4048 struct s { int j; const int *ap[3]; };
4049 struct s *b; b->j = 5;
4051 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4055 return !cs[0] && !zero.x;
4062 if ac_fn_c_try_compile "$LINENO"; then :
4067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
4070 $as_echo "$ac_cv_c_const" >&6; }
4071 if test $ac_cv_c_const = no; then
4073 $as_echo "#define const /**/" >>confdefs.h
4077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
4078 $as_echo_n "checking for inline... " >&6; }
4079 if test "${ac_cv_c_inline+set}" = set; then :
4080 $as_echo_n "(cached) " >&6
4083 for ac_kw in inline __inline__ __inline; do
4084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4085 /* end confdefs.h. */
4088 static $ac_kw foo_t static_foo () {return 0; }
4089 $ac_kw foo_t foo () {return 0; }
4093 if ac_fn_c_try_compile "$LINENO"; then :
4094 ac_cv_c_inline=$ac_kw
4096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4097 test "$ac_cv_c_inline" != no && break
4101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
4102 $as_echo "$ac_cv_c_inline" >&6; }
4104 case $ac_cv_c_inline in
4107 case $ac_cv_c_inline in
4109 *) ac_val=$ac_cv_c_inline;;
4111 cat >>confdefs.h <<_ACEOF
4113 #define inline $ac_val
4119 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4120 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4121 inttypes.h stdint.h unistd.h
4123 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4124 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4126 eval as_val=\$$as_ac_Header
4127 if test "x$as_val" = x""yes; then :
4128 cat >>confdefs.h <<_ACEOF
4129 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4137 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
4138 if test "x$ac_cv_type_off_t" = x""yes; then :
4142 cat >>confdefs.h <<_ACEOF
4143 #define off_t long int
4148 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
4149 if test "x$ac_cv_type_size_t" = x""yes; then :
4153 cat >>confdefs.h <<_ACEOF
4154 #define size_t unsigned int
4159 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
4160 # for constant arguments. Useless!
4161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
4162 $as_echo_n "checking for working alloca.h... " >&6; }
4163 if test "${ac_cv_working_alloca_h+set}" = set; then :
4164 $as_echo_n "(cached) " >&6
4166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4167 /* end confdefs.h. */
4172 char *p = (char *) alloca (2 * sizeof (int));
4178 if ac_fn_c_try_link "$LINENO"; then :
4179 ac_cv_working_alloca_h=yes
4181 ac_cv_working_alloca_h=no
4183 rm -f core conftest.err conftest.$ac_objext \
4184 conftest$ac_exeext conftest.$ac_ext
4186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
4187 $as_echo "$ac_cv_working_alloca_h" >&6; }
4188 if test $ac_cv_working_alloca_h = yes; then
4190 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
4194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
4195 $as_echo_n "checking for alloca... " >&6; }
4196 if test "${ac_cv_func_alloca_works+set}" = set; then :
4197 $as_echo_n "(cached) " >&6
4199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4200 /* end confdefs.h. */
4202 # define alloca __builtin_alloca
4205 # include <malloc.h>
4206 # define alloca _alloca
4208 # ifdef HAVE_ALLOCA_H
4209 # include <alloca.h>
4214 # ifndef alloca /* predefined by HP cc +Olibcalls */
4225 char *p = (char *) alloca (1);
4231 if ac_fn_c_try_link "$LINENO"; then :
4232 ac_cv_func_alloca_works=yes
4234 ac_cv_func_alloca_works=no
4236 rm -f core conftest.err conftest.$ac_objext \
4237 conftest$ac_exeext conftest.$ac_ext
4239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
4240 $as_echo "$ac_cv_func_alloca_works" >&6; }
4242 if test $ac_cv_func_alloca_works = yes; then
4244 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
4247 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
4248 # that cause trouble. Some versions do not even contain alloca or
4249 # contain a buggy version. If you still want to use their alloca,
4250 # use ar to extract alloca.o from them instead of compiling alloca.c.
4252 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
4254 $as_echo "#define C_ALLOCA 1" >>confdefs.h
4257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
4258 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
4259 if test "${ac_cv_os_cray+set}" = set; then :
4260 $as_echo_n "(cached) " >&6
4262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4263 /* end confdefs.h. */
4264 #if defined CRAY && ! defined CRAY2
4271 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4272 $EGREP "webecray" >/dev/null 2>&1; then :
4280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
4281 $as_echo "$ac_cv_os_cray" >&6; }
4282 if test $ac_cv_os_cray = yes; then
4283 for ac_func in _getb67 GETB67 getb67; do
4284 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4285 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4286 eval as_val=\$$as_ac_var
4287 if test "x$as_val" = x""yes; then :
4289 cat >>confdefs.h <<_ACEOF
4290 #define CRAY_STACKSEG_END $ac_func
4299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
4300 $as_echo_n "checking stack direction for C alloca... " >&6; }
4301 if test "${ac_cv_c_stack_direction+set}" = set; then :
4302 $as_echo_n "(cached) " >&6
4304 if test "$cross_compiling" = yes; then :
4305 ac_cv_c_stack_direction=0
4307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4308 /* end confdefs.h. */
4309 $ac_includes_default
4311 find_stack_direction ()
4313 static char *addr = 0;
4318 return find_stack_direction ();
4321 return (&dummy > addr) ? 1 : -1;
4327 return find_stack_direction () < 0;
4330 if ac_fn_c_try_run "$LINENO"; then :
4331 ac_cv_c_stack_direction=1
4333 ac_cv_c_stack_direction=-1
4335 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4336 conftest.$ac_objext conftest.beam conftest.$ac_ext
4340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
4341 $as_echo "$ac_cv_c_stack_direction" >&6; }
4342 cat >>confdefs.h <<_ACEOF
4343 #define STACK_DIRECTION $ac_cv_c_stack_direction
4349 for ac_header in stdlib.h unistd.h
4351 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4352 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4353 eval as_val=\$$as_ac_Header
4354 if test "x$as_val" = x""yes; then :
4355 cat >>confdefs.h <<_ACEOF
4356 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4363 for ac_func in getpagesize
4365 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
4366 if test "x$ac_cv_func_getpagesize" = x""yes; then :
4367 cat >>confdefs.h <<_ACEOF
4368 #define HAVE_GETPAGESIZE 1
4374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
4375 $as_echo_n "checking for working mmap... " >&6; }
4376 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
4377 $as_echo_n "(cached) " >&6
4379 if test "$cross_compiling" = yes; then :
4380 ac_cv_func_mmap_fixed_mapped=no
4382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4383 /* end confdefs.h. */
4384 $ac_includes_default
4385 /* malloc might have been renamed as rpl_malloc. */
4388 /* Thanks to Mike Haertel and Jim Avera for this test.
4389 Here is a matrix of mmap possibilities:
4390 mmap private not fixed
4391 mmap private fixed at somewhere currently unmapped
4392 mmap private fixed at somewhere already mapped
4393 mmap shared not fixed
4394 mmap shared fixed at somewhere currently unmapped
4395 mmap shared fixed at somewhere already mapped
4396 For private mappings, we should verify that changes cannot be read()
4397 back from the file, nor mmap's back from the file at a different
4398 address. (There have been systems where private was not correctly
4399 implemented like the infamous i386 svr4.0, and systems where the
4400 VM page cache was not coherent with the file system buffer cache
4401 like early versions of FreeBSD and possibly contemporary NetBSD.)
4402 For shared mappings, we should conversely verify that changes get
4403 propagated back to all the places they're supposed to be.
4405 Grep wants private fixed already mapped.
4406 The main things grep needs to know about mmap are:
4407 * does it exist and is it safe to write into the mmap'd area
4408 * how to use it (BSD variants) */
4411 #include <sys/mman.h>
4413 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
4417 /* This mess was copied from the GNU getpagesize.h. */
4418 #ifndef HAVE_GETPAGESIZE
4419 /* Assume that all systems that can run configure have sys/param.h. */
4420 # ifndef HAVE_SYS_PARAM_H
4421 # define HAVE_SYS_PARAM_H 1
4424 # ifdef _SC_PAGESIZE
4425 # define getpagesize() sysconf(_SC_PAGESIZE)
4426 # else /* no _SC_PAGESIZE */
4427 # ifdef HAVE_SYS_PARAM_H
4428 # include <sys/param.h>
4429 # ifdef EXEC_PAGESIZE
4430 # define getpagesize() EXEC_PAGESIZE
4431 # else /* no EXEC_PAGESIZE */
4433 # define getpagesize() NBPG * CLSIZE
4436 # endif /* no CLSIZE */
4437 # else /* no NBPG */
4439 # define getpagesize() NBPC
4440 # else /* no NBPC */
4442 # define getpagesize() PAGESIZE
4443 # endif /* PAGESIZE */
4444 # endif /* no NBPC */
4445 # endif /* no NBPG */
4446 # endif /* no EXEC_PAGESIZE */
4447 # else /* no HAVE_SYS_PARAM_H */
4448 # define getpagesize() 8192 /* punt totally */
4449 # endif /* no HAVE_SYS_PARAM_H */
4450 # endif /* no _SC_PAGESIZE */
4452 #endif /* no HAVE_GETPAGESIZE */
4457 char *data, *data2, *data3;
4461 pagesize = getpagesize ();
4463 /* First, make a file with some known garbage in it. */
4464 data = (char *) malloc (pagesize);
4467 for (i = 0; i < pagesize; ++i)
4468 *(data + i) = rand ();
4470 fd = creat ("conftest.mmap", 0600);
4473 if (write (fd, data, pagesize) != pagesize)
4477 /* Next, try to mmap the file at a fixed address which already has
4478 something else allocated at it. If we can, also make sure that
4479 we see the same garbage. */
4480 fd = open ("conftest.mmap", O_RDWR);
4483 data2 = (char *) malloc (2 * pagesize);
4486 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
4487 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
4488 MAP_PRIVATE | MAP_FIXED, fd, 0L))
4490 for (i = 0; i < pagesize; ++i)
4491 if (*(data + i) != *(data2 + i))
4494 /* Finally, make sure that changes to the mapped area do not
4495 percolate back to the file as seen by read(). (This is a bug on
4496 some variants of i386 svr4.0.) */
4497 for (i = 0; i < pagesize; ++i)
4498 *(data2 + i) = *(data2 + i) + 1;
4499 data3 = (char *) malloc (pagesize);
4502 if (read (fd, data3, pagesize) != pagesize)
4504 for (i = 0; i < pagesize; ++i)
4505 if (*(data + i) != *(data3 + i))
4511 if ac_fn_c_try_run "$LINENO"; then :
4512 ac_cv_func_mmap_fixed_mapped=yes
4514 ac_cv_func_mmap_fixed_mapped=no
4516 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4517 conftest.$ac_objext conftest.beam conftest.$ac_ext
4521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
4522 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
4523 if test $ac_cv_func_mmap_fixed_mapped = yes; then
4525 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
4531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
4532 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
4533 if test "${ac_cv_gnu_library_2_1+set}" = set; then :
4534 $as_echo_n "(cached) " >&6
4536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4537 /* end confdefs.h. */
4539 #include <features.h>
4540 #ifdef __GNU_LIBRARY__
4541 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
4547 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4548 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
4549 ac_cv_gnu_library_2_1=yes
4551 ac_cv_gnu_library_2_1=no
4558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
4559 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
4561 GLIBC21="$ac_cv_gnu_library_2_1"
4566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
4567 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
4568 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then :
4569 $as_echo_n "(cached) " >&6
4572 if test "$cross_compiling" = yes; then :
4574 # Guess based on the CPU.
4576 alpha* | i3456786 | m68k | s390*)
4577 gt_cv_int_divbyzero_sigfpe="guessing yes";;
4579 gt_cv_int_divbyzero_sigfpe="guessing no";;
4583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4584 /* end confdefs.h. */
4591 sigfpe_handler (int sig)
4593 sigfpe_handler (sig) int sig;
4596 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
4597 exit (sig != SIGFPE);
4607 signal (SIGFPE, sigfpe_handler);
4608 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
4609 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
4610 signal (SIGTRAP, sigfpe_handler);
4612 /* Linux/SPARC yields signal SIGILL. */
4613 #if defined (__sparc__) && defined (__linux__)
4614 signal (SIGILL, sigfpe_handler);
4623 if ac_fn_c_try_run "$LINENO"; then :
4624 gt_cv_int_divbyzero_sigfpe=yes
4626 gt_cv_int_divbyzero_sigfpe=no
4628 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4629 conftest.$ac_objext conftest.beam conftest.$ac_ext
4634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
4635 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
4636 case "$gt_cv_int_divbyzero_sigfpe" in
4641 cat >>confdefs.h <<_ACEOF
4642 #define INTDIV0_RAISES_SIGFPE $value
4647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
4648 $as_echo_n "checking for inttypes.h... " >&6; }
4649 if test "${jm_ac_cv_header_inttypes_h+set}" = set; then :
4650 $as_echo_n "(cached) " >&6
4652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4653 /* end confdefs.h. */
4654 #include <sys/types.h>
4655 #include <inttypes.h>
4659 uintmax_t i = (uintmax_t) -1;
4664 if ac_fn_c_try_compile "$LINENO"; then :
4665 jm_ac_cv_header_inttypes_h=yes
4667 jm_ac_cv_header_inttypes_h=no
4669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_inttypes_h" >&5
4672 $as_echo "$jm_ac_cv_header_inttypes_h" >&6; }
4673 if test $jm_ac_cv_header_inttypes_h = yes; then
4675 cat >>confdefs.h <<_ACEOF
4676 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
4682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
4683 $as_echo_n "checking for stdint.h... " >&6; }
4684 if test "${jm_ac_cv_header_stdint_h+set}" = set; then :
4685 $as_echo_n "(cached) " >&6
4687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4688 /* end confdefs.h. */
4689 #include <sys/types.h>
4694 uintmax_t i = (uintmax_t) -1;
4699 if ac_fn_c_try_compile "$LINENO"; then :
4700 jm_ac_cv_header_stdint_h=yes
4702 jm_ac_cv_header_stdint_h=no
4704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_stdint_h" >&5
4707 $as_echo "$jm_ac_cv_header_stdint_h" >&6; }
4708 if test $jm_ac_cv_header_stdint_h = yes; then
4710 cat >>confdefs.h <<_ACEOF
4711 #define HAVE_STDINT_H_WITH_UINTMAX 1
4717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long" >&5
4718 $as_echo_n "checking for unsigned long long... " >&6; }
4719 if test "${ac_cv_type_unsigned_long_long+set}" = set; then :
4720 $as_echo_n "(cached) " >&6
4722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4723 /* end confdefs.h. */
4724 unsigned long long ull = 1; int i = 63;
4728 unsigned long long ullmax = (unsigned long long) -1;
4729 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
4734 if ac_fn_c_try_link "$LINENO"; then :
4735 ac_cv_type_unsigned_long_long=yes
4737 ac_cv_type_unsigned_long_long=no
4739 rm -f core conftest.err conftest.$ac_objext \
4740 conftest$ac_exeext conftest.$ac_ext
4742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long" >&5
4743 $as_echo "$ac_cv_type_unsigned_long_long" >&6; }
4744 if test $ac_cv_type_unsigned_long_long = yes; then
4746 $as_echo "#define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h
4753 if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
4755 test $ac_cv_type_unsigned_long_long = yes \
4756 && ac_type='unsigned long long' \
4757 || ac_type='unsigned long'
4759 cat >>confdefs.h <<_ACEOF
4760 #define uintmax_t $ac_type
4765 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
4770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
4771 $as_echo_n "checking for inttypes.h... " >&6; }
4772 if test "${gt_cv_header_inttypes_h+set}" = set; then :
4773 $as_echo_n "(cached) " >&6
4776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4777 /* end confdefs.h. */
4778 #include <sys/types.h>
4779 #include <inttypes.h>
4788 if ac_fn_c_try_compile "$LINENO"; then :
4789 gt_cv_header_inttypes_h=yes
4791 gt_cv_header_inttypes_h=no
4793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_header_inttypes_h" >&5
4797 $as_echo "$gt_cv_header_inttypes_h" >&6; }
4798 if test $gt_cv_header_inttypes_h = yes; then
4800 cat >>confdefs.h <<_ACEOF
4801 #define HAVE_INTTYPES_H 1
4808 if test $gt_cv_header_inttypes_h = yes; then
4809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
4810 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
4811 if test "${gt_cv_inttypes_pri_broken+set}" = set; then :
4812 $as_echo_n "(cached) " >&6
4815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4816 /* end confdefs.h. */
4817 #include <inttypes.h>
4830 if ac_fn_c_try_compile "$LINENO"; then :
4831 gt_cv_inttypes_pri_broken=no
4833 gt_cv_inttypes_pri_broken=yes
4835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
4839 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
4841 if test "$gt_cv_inttypes_pri_broken" = yes; then
4843 cat >>confdefs.h <<_ACEOF
4844 #define PRI_MACROS_BROKEN 1
4851 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
4852 stdlib.h string.h unistd.h sys/param.h
4854 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4855 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4856 eval as_val=\$$as_ac_Header
4857 if test "x$as_val" = x""yes; then :
4858 cat >>confdefs.h <<_ACEOF
4859 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4866 for ac_func in feof_unlocked fgets_unlocked getc_unlocked getcwd getegid \
4867 geteuid getgid getuid mempcpy munmap putenv setenv setlocale stpcpy \
4868 strcasecmp strdup strtoul tsearch __argz_count __argz_stringify __argz_next \
4871 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4872 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4873 eval as_val=\$$as_ac_var
4874 if test "x$as_val" = x""yes; then :
4875 cat >>confdefs.h <<_ACEOF
4876 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4886 # Check whether --with-libiconv-prefix was given.
4887 if test "${with_libiconv_prefix+set}" = set; then :
4888 withval=$with_libiconv_prefix;
4889 for dir in `echo "$withval" | tr : ' '`; do
4890 if test -d $dir/include; then LIBICONV_INCLUDE="-I$dir/include"; fi
4891 if test -d $dir/lib; then LIBICONV_LIBDIR="-L$dir/lib"; fi
4897 BUILD_LIBICONV_LIBDIRS="../libiconv/lib/.libs ../libiconv/lib/_libs"
4898 BUILD_LIBICONV_INCLUDE="-I../libiconv/include"
4900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
4901 $as_echo_n "checking for iconv... " >&6; }
4902 if test "${am_cv_func_iconv+set}" = set; then :
4903 $as_echo_n "(cached) " >&6
4906 am_cv_func_iconv="no, consider installing GNU libiconv"
4908 am_cv_use_build_libiconv=no
4909 am_cv_build_libiconv_path=
4911 # First, try to find iconv in libc.
4912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4913 /* end confdefs.h. */
4919 iconv_t cd = iconv_open("","");
4920 iconv(cd,NULL,NULL,NULL,NULL);
4926 if ac_fn_c_try_link "$LINENO"; then :
4927 am_cv_func_iconv=yes
4929 rm -f core conftest.err conftest.$ac_objext \
4930 conftest$ac_exeext conftest.$ac_ext
4932 # If libiconv is part of the build tree, then try using it over
4933 # any system libiconv.
4934 if test "$am_cv_func_iconv" != yes && test -d ../libiconv; then
4935 for lib_dir in $BUILD_LIBICONV_LIBDIRS; do
4936 am_save_LIBS="$LIBS"
4937 am_save_CPPFLAGS="$CPPFLAGS"
4938 LIBS="$LIBS $lib_dir/libiconv.a"
4939 CPPFLAGS="$CPPFLAGS $BUILD_LIBICONV_INCLUDE"
4940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4941 /* end confdefs.h. */
4947 iconv_t cd = iconv_open("","");
4948 iconv(cd,NULL,NULL,NULL,NULL);
4954 if ac_fn_c_try_link "$LINENO"; then :
4955 am_cv_use_build_libiconv=yes
4956 am_cv_build_libiconv_path=$lib_dir/libiconv.a
4958 am_cv_func_iconv=yes
4960 rm -f core conftest.err conftest.$ac_objext \
4961 conftest$ac_exeext conftest.$ac_ext
4962 LIBS="$am_save_LIBS"
4963 CPPFLAGS="$am_save_CPPFLAGS"
4964 if test "$am_cv_use_build_libiconv" = "yes"; then
4970 # If iconv was not in libc, try -liconv. In this case, arrange to
4971 # look in the libiconv prefix, if it was specified by the user.
4972 if test "$am_cv_func_iconv" != yes; then
4973 am_save_CPPFLAGS="$CPPFLAGS"
4974 am_save_LIBS="$LIBS"
4975 if test -n "$LIBICONV_INCLUDE"; then
4976 CPPFLAGS="$CPPFLAGS $LIBICONV_INCLUDE"
4977 LIBS="$LIBS $LIBICONV_LIBDIR"
4979 LIBS="$LIBS -liconv"
4980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4981 /* end confdefs.h. */
4987 iconv_t cd = iconv_open("","");
4988 iconv(cd,NULL,NULL,NULL,NULL);
4994 if ac_fn_c_try_link "$LINENO"; then :
4996 am_cv_func_iconv=yes
4998 rm -f core conftest.err conftest.$ac_objext \
4999 conftest$ac_exeext conftest.$ac_ext
5000 LIBS="$am_save_LIBS"
5001 CPPFLAGS="$am_save_CPPFLAGS"
5005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
5006 $as_echo "$am_cv_func_iconv" >&6; }
5008 # Set the various flags based on the cache variables. We can't rely
5009 # on the flags to remain set from the above code, due to caching.
5011 if test "$am_cv_lib_iconv" = yes; then
5017 if test "$am_cv_use_build_libiconv" = yes; then
5018 LIBICONV="$am_cv_build_libiconv_path"
5020 LIBICONV_INCLUDE="$BUILD_LIBICONV_INCLUDE"
5022 CPPFLAGS="$CPPFLAGS $LIBICONV_INCLUDE"
5023 LIBS="$LIBS $LIBICONV_LIBDIR $LIBICONV"
5025 if test "$am_cv_func_iconv" = yes; then
5027 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
5029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
5030 $as_echo_n "checking for iconv declaration... " >&6; }
5031 if test "${am_cv_proto_iconv+set}" = set; then :
5032 $as_echo_n "(cached) " >&6
5035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5036 /* end confdefs.h. */
5044 #if defined(__STDC__) || defined(__cplusplus)
5045 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
5058 if ac_fn_c_try_compile "$LINENO"; then :
5059 am_cv_proto_iconv_arg1=""
5061 am_cv_proto_iconv_arg1="const"
5063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5064 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);"
5067 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
5068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
5069 }$am_cv_proto_iconv" >&5
5071 }$am_cv_proto_iconv" >&6; }
5073 cat >>confdefs.h <<_ACEOF
5074 #define ICONV_CONST $am_cv_proto_iconv_arg1
5080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
5081 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
5082 if test "${am_cv_langinfo_codeset+set}" = set; then :
5083 $as_echo_n "(cached) " >&6
5085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5086 /* end confdefs.h. */
5087 #include <langinfo.h>
5091 char* cs = nl_langinfo(CODESET);
5096 if ac_fn_c_try_link "$LINENO"; then :
5097 am_cv_langinfo_codeset=yes
5099 am_cv_langinfo_codeset=no
5101 rm -f core conftest.err conftest.$ac_objext \
5102 conftest$ac_exeext conftest.$ac_ext
5105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
5106 $as_echo "$am_cv_langinfo_codeset" >&6; }
5107 if test $am_cv_langinfo_codeset = yes; then
5109 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
5113 if test $ac_cv_header_locale_h = yes; then
5115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
5116 $as_echo_n "checking for LC_MESSAGES... " >&6; }
5117 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
5118 $as_echo_n "(cached) " >&6
5120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5121 /* end confdefs.h. */
5131 if ac_fn_c_try_link "$LINENO"; then :
5132 am_cv_val_LC_MESSAGES=yes
5134 am_cv_val_LC_MESSAGES=no
5136 rm -f core conftest.err conftest.$ac_objext \
5137 conftest$ac_exeext conftest.$ac_ext
5139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
5140 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
5141 if test $am_cv_val_LC_MESSAGES = yes; then
5143 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
5149 for ac_prog in bison
5151 # Extract the first word of "$ac_prog", so it can be a program name with args.
5152 set dummy $ac_prog; ac_word=$2
5153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5154 $as_echo_n "checking for $ac_word... " >&6; }
5155 if test "${ac_cv_prog_INTLBISON+set}" = set; then :
5156 $as_echo_n "(cached) " >&6
5158 if test -n "$INTLBISON"; then
5159 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
5161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5165 test -z "$as_dir" && as_dir=.
5166 for ac_exec_ext in '' $ac_executable_extensions; do
5167 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5168 ac_cv_prog_INTLBISON="$ac_prog"
5169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5178 INTLBISON=$ac_cv_prog_INTLBISON
5179 if test -n "$INTLBISON"; then
5180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
5181 $as_echo "$INTLBISON" >&6; }
5183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5184 $as_echo "no" >&6; }
5188 test -n "$INTLBISON" && break
5191 if test -z "$INTLBISON"; then
5194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
5195 $as_echo_n "checking version of bison... " >&6; }
5196 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
5197 case $ac_prog_version in
5198 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
5199 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
5200 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
5201 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
5203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
5204 $as_echo "$ac_prog_version" >&6; }
5206 if test $ac_verc_fail = yes; then
5211 if test "X$prefix" = "XNONE"; then
5212 acl_final_prefix="$ac_default_prefix"
5214 acl_final_prefix="$prefix"
5216 if test "X$exec_prefix" = "XNONE"; then
5217 acl_final_exec_prefix='${prefix}'
5219 acl_final_exec_prefix="$exec_prefix"
5221 acl_save_prefix="$prefix"
5222 prefix="$acl_final_prefix"
5223 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
5224 prefix="$acl_save_prefix"
5227 # Check whether --with-gnu-ld was given.
5228 if test "${with_gnu_ld+set}" = set; then :
5229 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5234 # Prepare PATH_SEPARATOR.
5235 # The user is always right.
5236 if test "${PATH_SEPARATOR+set}" != set; then
5237 echo "#! /bin/sh" >conf$$.sh
5238 echo "exit 0" >>conf$$.sh
5240 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5248 if test "$GCC" = yes; then
5249 # Check if gcc -print-prog-name=ld gives a path.
5250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
5251 $as_echo_n "checking for ld used by GCC... " >&6; }
5254 # gcc leaves a trailing carriage return which upsets mingw
5255 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5257 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5260 # Accept absolute paths.
5261 [\\/]* | [A-Za-z]:[\\/]*)
5262 re_direlt='/[^/][^/]*/\.\./'
5263 # Canonicalize the path of ld
5264 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
5265 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5266 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
5268 test -z "$LD" && LD="$ac_prog"
5271 # If it fails, then pretend we aren't using GCC.
5275 # If it is relative, then search for the first ld in PATH.
5279 elif test "$with_gnu_ld" = yes; then
5280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5281 $as_echo_n "checking for GNU ld... " >&6; }
5283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5284 $as_echo_n "checking for non-GNU ld... " >&6; }
5286 if test "${acl_cv_path_LD+set}" = set; then :
5287 $as_echo_n "(cached) " >&6
5289 if test -z "$LD"; then
5290 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5291 for ac_dir in $PATH; do
5292 test -z "$ac_dir" && ac_dir=.
5293 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5294 acl_cv_path_LD="$ac_dir/$ac_prog"
5295 # Check to see if the program is GNU ld. I'd rather use --version,
5296 # but apparently some GNU ld's only accept -v.
5297 # Break only if it was the GNU/non-GNU ld that we prefer.
5298 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
5299 test "$with_gnu_ld" != no && break
5301 test "$with_gnu_ld" != yes && break
5307 acl_cv_path_LD="$LD" # Let the user override the test with a path.
5311 LD="$acl_cv_path_LD"
5312 if test -n "$LD"; then
5313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5314 $as_echo "$LD" >&6; }
5316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5317 $as_echo "no" >&6; }
5319 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5321 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5322 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
5323 $as_echo_n "(cached) " >&6
5325 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5326 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
5327 acl_cv_prog_gnu_ld=yes
5329 acl_cv_prog_gnu_ld=no
5332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
5333 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
5334 with_gnu_ld=$acl_cv_prog_gnu_ld
5338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
5339 $as_echo_n "checking for shared library run path origin... " >&6; }
5340 if test "${acl_cv_rpath+set}" = set; then :
5341 $as_echo_n "(cached) " >&6
5344 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
5345 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
5351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
5352 $as_echo "$acl_cv_rpath" >&6; }
5354 libext="$acl_cv_libext"
5355 shlibext="$acl_cv_shlibext"
5356 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
5357 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
5358 hardcode_direct="$acl_cv_hardcode_direct"
5359 hardcode_minus_L="$acl_cv_hardcode_minus_L"
5360 # Check whether --enable-rpath was given.
5361 if test "${enable_rpath+set}" = set; then :
5362 enableval=$enable_rpath; :
5383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
5384 $as_echo_n "checking whether NLS is requested... " >&6; }
5385 # Check whether --enable-nls was given.
5386 if test "${enable_nls+set}" = set; then :
5387 enableval=$enable_nls; USE_NLS=$enableval
5392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
5393 $as_echo "$USE_NLS" >&6; }
5398 BUILD_INCLUDED_LIBINTL=no
5399 USE_INCLUDED_LIBINTL=no
5405 if test "$USE_NLS" = "yes"; then
5406 gt_use_preinstalled_gnugettext=no
5408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
5409 $as_echo_n "checking whether included gettext is requested... " >&6; }
5411 # Check whether --with-included-gettext was given.
5412 if test "${with_included_gettext+set}" = set; then :
5413 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
5415 nls_cv_force_use_gnu_gettext=no
5418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
5419 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
5421 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
5422 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
5429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
5430 $as_echo_n "checking for GNU gettext in libc... " >&6; }
5431 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then :
5432 $as_echo_n "(cached) " >&6
5434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5435 /* end confdefs.h. */
5436 #include <libintl.h>
5437 extern int _nl_msg_cat_cntr;
5438 extern int *_nl_domain_bindings;
5442 bindtextdomain ("", "");
5443 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
5448 if ac_fn_c_try_link "$LINENO"; then :
5449 gt_cv_func_gnugettext1_libc=yes
5451 gt_cv_func_gnugettext1_libc=no
5453 rm -f core conftest.err conftest.$ac_objext \
5454 conftest$ac_exeext conftest.$ac_ext
5456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
5457 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
5459 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
5465 acl_save_prefix="$prefix"
5466 prefix="$acl_final_prefix"
5467 acl_save_exec_prefix="$exec_prefix"
5468 exec_prefix="$acl_final_exec_prefix"
5470 eval additional_includedir=\"$includedir\"
5471 eval additional_libdir=\"$libdir\"
5473 exec_prefix="$acl_save_exec_prefix"
5474 prefix="$acl_save_prefix"
5477 # Check whether --with-libintl-prefix was given.
5478 if test "${with_libintl_prefix+set}" = set; then :
5479 withval=$with_libintl_prefix;
5480 if test "X$withval" = "Xno"; then
5483 if test "X$withval" = "X"; then
5485 acl_save_prefix="$prefix"
5486 prefix="$acl_final_prefix"
5487 acl_save_exec_prefix="$exec_prefix"
5488 exec_prefix="$acl_final_exec_prefix"
5490 eval additional_includedir=\"$includedir\"
5491 eval additional_libdir=\"$libdir\"
5493 exec_prefix="$acl_save_exec_prefix"
5494 prefix="$acl_save_prefix"
5497 additional_includedir="$withval/include"
5498 additional_libdir="$withval/lib"
5509 names_already_handled=
5510 names_next_round='intl '
5511 while test -n "$names_next_round"; do
5512 names_this_round="$names_next_round"
5514 for name in $names_this_round; do
5516 for n in $names_already_handled; do
5517 if test "$n" = "$name"; then
5522 if test -z "$already_handled"; then
5523 names_already_handled="$names_already_handled $name"
5524 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
5525 eval value=\"\$HAVE_LIB$uppername\"
5526 if test -n "$value"; then
5527 if test "$value" = yes; then
5528 eval value=\"\$LIB$uppername\"
5529 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
5530 eval value=\"\$LTLIB$uppername\"
5531 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
5540 if test $use_additional = yes; then
5541 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
5542 found_dir="$additional_libdir"
5543 found_so="$additional_libdir/lib$name.$shlibext"
5544 if test -f "$additional_libdir/lib$name.la"; then
5545 found_la="$additional_libdir/lib$name.la"
5548 if test -f "$additional_libdir/lib$name.$libext"; then
5549 found_dir="$additional_libdir"
5550 found_a="$additional_libdir/lib$name.$libext"
5551 if test -f "$additional_libdir/lib$name.la"; then
5552 found_la="$additional_libdir/lib$name.la"
5557 if test "X$found_dir" = "X"; then
5558 for x in $LDFLAGS $LTLIBINTL; do
5560 acl_save_prefix="$prefix"
5561 prefix="$acl_final_prefix"
5562 acl_save_exec_prefix="$exec_prefix"
5563 exec_prefix="$acl_final_exec_prefix"
5565 exec_prefix="$acl_save_exec_prefix"
5566 prefix="$acl_save_prefix"
5570 dir=`echo "X$x" | sed -e 's/^X-L//'`
5571 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
5573 found_so="$dir/lib$name.$shlibext"
5574 if test -f "$dir/lib$name.la"; then
5575 found_la="$dir/lib$name.la"
5578 if test -f "$dir/lib$name.$libext"; then
5580 found_a="$dir/lib$name.$libext"
5581 if test -f "$dir/lib$name.la"; then
5582 found_la="$dir/lib$name.la"
5588 if test "X$found_dir" != "X"; then
5593 if test "X$found_dir" != "X"; then
5594 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
5595 if test "X$found_so" != "X"; then
5596 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
5597 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
5600 for x in $ltrpathdirs; do
5601 if test "X$x" = "X$found_dir"; then
5606 if test -z "$haveit"; then
5607 ltrpathdirs="$ltrpathdirs $found_dir"
5609 if test "$hardcode_direct" = yes; then
5610 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
5612 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
5613 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
5615 for x in $rpathdirs; do
5616 if test "X$x" = "X$found_dir"; then
5621 if test -z "$haveit"; then
5622 rpathdirs="$rpathdirs $found_dir"
5626 for x in $LDFLAGS $LIBINTL; do
5628 acl_save_prefix="$prefix"
5629 prefix="$acl_final_prefix"
5630 acl_save_exec_prefix="$exec_prefix"
5631 exec_prefix="$acl_final_exec_prefix"
5633 exec_prefix="$acl_save_exec_prefix"
5634 prefix="$acl_save_prefix"
5636 if test "X$x" = "X-L$found_dir"; then
5641 if test -z "$haveit"; then
5642 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
5644 if test "$hardcode_minus_L" != no; then
5645 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
5647 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
5653 if test "X$found_a" != "X"; then
5654 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
5656 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
5659 additional_includedir=
5660 case "$found_dir" in
5662 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
5663 additional_includedir="$basedir/include"
5666 if test "X$additional_includedir" != "X"; then
5667 if test "X$additional_includedir" != "X/usr/include"; then
5669 if test "X$additional_includedir" = "X/usr/local/include"; then
5670 if test -n "$GCC"; then
5672 linux*) haveit=yes;;
5676 if test -z "$haveit"; then
5677 for x in $CPPFLAGS $INCINTL; do
5679 acl_save_prefix="$prefix"
5680 prefix="$acl_final_prefix"
5681 acl_save_exec_prefix="$exec_prefix"
5682 exec_prefix="$acl_final_exec_prefix"
5684 exec_prefix="$acl_save_exec_prefix"
5685 prefix="$acl_save_prefix"
5687 if test "X$x" = "X-I$additional_includedir"; then
5692 if test -z "$haveit"; then
5693 if test -d "$additional_includedir"; then
5694 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
5700 if test -n "$found_la"; then
5701 save_libdir="$libdir"
5703 */* | *\\*) . "$found_la" ;;
5704 *) . "./$found_la" ;;
5706 libdir="$save_libdir"
5707 for dep in $dependency_libs; do
5710 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
5711 if test "X$additional_libdir" != "X/usr/lib"; then
5713 if test "X$additional_libdir" = "X/usr/local/lib"; then
5714 if test -n "$GCC"; then
5716 linux*) haveit=yes;;
5720 if test -z "$haveit"; then
5722 for x in $LDFLAGS $LIBINTL; do
5724 acl_save_prefix="$prefix"
5725 prefix="$acl_final_prefix"
5726 acl_save_exec_prefix="$exec_prefix"
5727 exec_prefix="$acl_final_exec_prefix"
5729 exec_prefix="$acl_save_exec_prefix"
5730 prefix="$acl_save_prefix"
5732 if test "X$x" = "X-L$additional_libdir"; then
5737 if test -z "$haveit"; then
5738 if test -d "$additional_libdir"; then
5739 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
5743 for x in $LDFLAGS $LTLIBINTL; do
5745 acl_save_prefix="$prefix"
5746 prefix="$acl_final_prefix"
5747 acl_save_exec_prefix="$exec_prefix"
5748 exec_prefix="$acl_final_exec_prefix"
5750 exec_prefix="$acl_save_exec_prefix"
5751 prefix="$acl_save_prefix"
5753 if test "X$x" = "X-L$additional_libdir"; then
5758 if test -z "$haveit"; then
5759 if test -d "$additional_libdir"; then
5760 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
5767 dir=`echo "X$dep" | sed -e 's/^X-R//'`
5768 if test "$enable_rpath" != no; then
5770 for x in $rpathdirs; do
5771 if test "X$x" = "X$dir"; then
5776 if test -z "$haveit"; then
5777 rpathdirs="$rpathdirs $dir"
5780 for x in $ltrpathdirs; do
5781 if test "X$x" = "X$dir"; then
5786 if test -z "$haveit"; then
5787 ltrpathdirs="$ltrpathdirs $dir"
5792 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
5795 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
5798 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
5799 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
5805 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
5806 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
5812 if test "X$rpathdirs" != "X"; then
5813 if test -n "$hardcode_libdir_separator"; then
5815 for found_dir in $rpathdirs; do
5816 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
5818 acl_save_libdir="$libdir"
5820 eval flag=\"$hardcode_libdir_flag_spec\"
5821 libdir="$acl_save_libdir"
5822 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
5824 for found_dir in $rpathdirs; do
5825 acl_save_libdir="$libdir"
5827 eval flag=\"$hardcode_libdir_flag_spec\"
5828 libdir="$acl_save_libdir"
5829 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
5833 if test "X$ltrpathdirs" != "X"; then
5834 for found_dir in $ltrpathdirs; do
5835 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
5839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
5840 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
5841 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then :
5842 $as_echo_n "(cached) " >&6
5844 gt_save_CPPFLAGS="$CPPFLAGS"
5845 CPPFLAGS="$CPPFLAGS $INCINTL"
5846 gt_save_LIBS="$LIBS"
5847 LIBS="$LIBS $LIBINTL"
5848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5849 /* end confdefs.h. */
5850 #include <libintl.h>
5851 extern int _nl_msg_cat_cntr;
5856 const char *_nl_expand_alias ();
5860 bindtextdomain ("", "");
5861 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
5866 if ac_fn_c_try_link "$LINENO"; then :
5867 gt_cv_func_gnugettext1_libintl=yes
5869 gt_cv_func_gnugettext1_libintl=no
5871 rm -f core conftest.err conftest.$ac_objext \
5872 conftest$ac_exeext conftest.$ac_ext
5873 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
5874 LIBS="$LIBS $LIBICONV"
5875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5876 /* end confdefs.h. */
5877 #include <libintl.h>
5878 extern int _nl_msg_cat_cntr;
5883 const char *_nl_expand_alias ();
5887 bindtextdomain ("", "");
5888 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
5893 if ac_fn_c_try_link "$LINENO"; then :
5894 LIBINTL="$LIBINTL $LIBICONV"
5895 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
5896 gt_cv_func_gnugettext1_libintl=yes
5899 rm -f core conftest.err conftest.$ac_objext \
5900 conftest$ac_exeext conftest.$ac_ext
5902 CPPFLAGS="$gt_save_CPPFLAGS"
5903 LIBS="$gt_save_LIBS"
5905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
5906 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
5909 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
5910 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
5911 && test "$PACKAGE" != gettext-runtime \
5912 && test "$PACKAGE" != gettext-tools; }; then
5913 gt_use_preinstalled_gnugettext=yes
5921 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
5922 nls_cv_use_gnu_gettext=yes
5926 if test "$nls_cv_use_gnu_gettext" = "yes"; then
5927 BUILD_INCLUDED_LIBINTL=yes
5928 USE_INCLUDED_LIBINTL=yes
5929 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
5930 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
5931 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
5934 if test "$gt_use_preinstalled_gnugettext" = "yes" \
5935 || test "$nls_cv_use_gnu_gettext" = "yes"; then
5940 if test "$gt_use_preinstalled_gnugettext" = "yes" \
5941 || test "$nls_cv_use_gnu_gettext" = "yes"; then
5943 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
5950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
5951 $as_echo_n "checking whether to use NLS... " >&6; }
5952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
5953 $as_echo "$USE_NLS" >&6; }
5954 if test "$USE_NLS" = "yes"; then
5955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
5956 $as_echo_n "checking where the gettext function comes from... " >&6; }
5957 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
5958 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
5959 gt_source="external libintl"
5964 gt_source="included intl directory"
5966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
5967 $as_echo "$gt_source" >&6; }
5970 if test "$USE_NLS" = "yes"; then
5972 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
5973 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
5974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
5975 $as_echo_n "checking how to link with libintl... " >&6; }
5976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
5977 $as_echo "$LIBINTL" >&6; }
5979 for element in $INCINTL; do
5981 for x in $CPPFLAGS; do
5983 acl_save_prefix="$prefix"
5984 prefix="$acl_final_prefix"
5985 acl_save_exec_prefix="$exec_prefix"
5986 exec_prefix="$acl_final_exec_prefix"
5988 exec_prefix="$acl_save_exec_prefix"
5989 prefix="$acl_save_prefix"
5991 if test "X$x" = "X$element"; then
5996 if test -z "$haveit"; then
5997 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6004 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
6007 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
6015 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
6016 BUILD_INCLUDED_LIBINTL=yes
6024 nls_cv_header_libgt=
6035 if test "$USE_INCLUDED_LIBINTL" = yes; then
6036 INTLOBJS="\$(GETTOBJS)"
6040 INTL_LIBTOOL_SUFFIX_PREFIX=
6052 # This replaces the extensive use of DEFS in the original Makefile.in.
6054 $as_echo "#define IN_LIBINTL 1" >>confdefs.h
6057 $as_echo "#define IN_LIBRARY 1" >>confdefs.h
6060 $as_echo "#define DEPENDS_ON_LIBICONV 1" >>confdefs.h
6063 $as_echo "#define ENABLE_RELOCATABLE 1" >>confdefs.h
6066 $as_echo "#define NO_XMALLOC 1" >>confdefs.h
6069 $as_echo "#define set_relocation_prefix libintl_set_relocation_prefix" >>confdefs.h
6072 $as_echo "#define relocate libintl_relocate" >>confdefs.h
6075 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
6076 for ac_prog in aclocal
6078 # Extract the first word of "$ac_prog", so it can be a program name with args.
6079 set dummy $ac_prog; ac_word=$2
6080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6081 $as_echo_n "checking for $ac_word... " >&6; }
6082 if test "${ac_cv_prog_ACLOCAL+set}" = set; then :
6083 $as_echo_n "(cached) " >&6
6085 if test -n "$ACLOCAL"; then
6086 ac_cv_prog_ACLOCAL="$ACLOCAL" # Let the user override the test.
6088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6092 test -z "$as_dir" && as_dir=.
6093 for ac_exec_ext in '' $ac_executable_extensions; do
6094 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6095 ac_cv_prog_ACLOCAL="$ac_prog"
6096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6105 ACLOCAL=$ac_cv_prog_ACLOCAL
6106 if test -n "$ACLOCAL"; then
6107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ACLOCAL" >&5
6108 $as_echo "$ACLOCAL" >&6; }
6110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6111 $as_echo "no" >&6; }
6115 test -n "$ACLOCAL" && break
6117 test -n "$ACLOCAL" || ACLOCAL="$MISSING aclocal"
6119 for ac_prog in autoconf
6121 # Extract the first word of "$ac_prog", so it can be a program name with args.
6122 set dummy $ac_prog; ac_word=$2
6123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6124 $as_echo_n "checking for $ac_word... " >&6; }
6125 if test "${ac_cv_prog_AUTOCONF+set}" = set; then :
6126 $as_echo_n "(cached) " >&6
6128 if test -n "$AUTOCONF"; then
6129 ac_cv_prog_AUTOCONF="$AUTOCONF" # Let the user override the test.
6131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6135 test -z "$as_dir" && as_dir=.
6136 for ac_exec_ext in '' $ac_executable_extensions; do
6137 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6138 ac_cv_prog_AUTOCONF="$ac_prog"
6139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6148 AUTOCONF=$ac_cv_prog_AUTOCONF
6149 if test -n "$AUTOCONF"; then
6150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOCONF" >&5
6151 $as_echo "$AUTOCONF" >&6; }
6153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6154 $as_echo "no" >&6; }
6158 test -n "$AUTOCONF" && break
6160 test -n "$AUTOCONF" || AUTOCONF="$MISSING autoconf"
6162 for ac_prog in autoheader
6164 # Extract the first word of "$ac_prog", so it can be a program name with args.
6165 set dummy $ac_prog; ac_word=$2
6166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6167 $as_echo_n "checking for $ac_word... " >&6; }
6168 if test "${ac_cv_prog_AUTOHEADER+set}" = set; then :
6169 $as_echo_n "(cached) " >&6
6171 if test -n "$AUTOHEADER"; then
6172 ac_cv_prog_AUTOHEADER="$AUTOHEADER" # Let the user override the test.
6174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6178 test -z "$as_dir" && as_dir=.
6179 for ac_exec_ext in '' $ac_executable_extensions; do
6180 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6181 ac_cv_prog_AUTOHEADER="$ac_prog"
6182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6191 AUTOHEADER=$ac_cv_prog_AUTOHEADER
6192 if test -n "$AUTOHEADER"; then
6193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOHEADER" >&5
6194 $as_echo "$AUTOHEADER" >&6; }
6196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6197 $as_echo "no" >&6; }
6201 test -n "$AUTOHEADER" && break
6203 test -n "$AUTOHEADER" || AUTOHEADER="$MISSING autoheader"
6206 # Check whether --enable-maintainer-mode was given.
6207 if test "${enable_maintainer_mode+set}" = set; then :
6208 enableval=$enable_maintainer_mode;
6210 enable_maintainer_mode=no
6213 if test "x$enable_maintainer_mode" = xno; then
6220 # Additional info for config.intl.
6226 case $USE_INCLUDED_LIBINTL in
6228 LIBINTL=`echo $LIBINTL | sed 's,${top_builddir},&/..,' `
6229 LTLIBINTL=`echo $LTLIBINTL | sed 's,${top_builddir},&/..,' `
6230 LIBINTL_DEP='${top_builddir}/../intl/libintl.a'
6231 INCINTL='-I${top_builddir}/../intl'
6235 ac_config_files="$ac_config_files Makefile config.intl"
6237 cat >confcache <<\_ACEOF
6238 # This file is a shell script that caches the results of configure
6239 # tests run on this system so they can be shared between configure
6240 # scripts and configure runs, see configure's option --config-cache.
6241 # It is not useful on other systems. If it contains results you don't
6242 # want to keep, you may remove or edit it.
6244 # config.status only pays attention to the cache file if you give it
6245 # the --recheck option to rerun configure.
6247 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6248 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6253 # The following way of writing the cache mishandles newlines in values,
6254 # but we know of no workaround that is simple, portable, and efficient.
6255 # So, we kill variables containing newlines.
6256 # Ultrix sh set writes to stderr and can't be redirected directly,
6257 # and sets the high bit in the cache file unless we assign to the vars.
6259 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
6260 eval ac_val=\$$ac_var
6264 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
6265 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
6268 _ | IFS | as_nl) ;; #(
6269 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
6270 *) { eval $ac_var=; unset $ac_var;} ;;
6276 case $as_nl`(ac_space=' '; set) 2>&1` in #(
6277 *${as_nl}ac_space=\ *)
6278 # `set' does not quote correctly, so add quotes: double-quote
6279 # substitution turns \\\\ into \\, and sed turns \\ into \.
6282 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6285 # `set' quotes correctly as required by POSIX, so do not add quotes.
6286 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
6295 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6297 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6299 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
6300 if test -w "$cache_file"; then
6301 test "x$cache_file" != "x/dev/null" &&
6302 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
6303 $as_echo "$as_me: updating cache $cache_file" >&6;}
6304 cat confcache >$cache_file
6306 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
6307 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
6312 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6313 # Let make expand exec_prefix.
6314 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6316 DEFS=-DHAVE_CONFIG_H
6320 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6321 # 1. Remove the extension, and $U if already installed.
6322 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
6323 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
6324 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
6325 # will be set to the directory where LIBOBJS objects are built.
6326 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
6327 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
6331 LTLIBOBJS=$ac_ltlibobjs
6335 : ${CONFIG_STATUS=./config.status}
6337 ac_clean_files_save=$ac_clean_files
6338 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6339 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
6340 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
6342 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
6344 # Generated by $as_me.
6345 # Run this file to recreate the current configuration.
6346 # Compiler output produced by configure, useful for debugging
6347 # configure, is in config.log if it exists.
6353 SHELL=\${CONFIG_SHELL-$SHELL}
6356 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
6357 ## -------------------- ##
6358 ## M4sh Initialization. ##
6359 ## -------------------- ##
6361 # Be more Bourne compatible
6362 DUALCASE=1; export DUALCASE # for MKS sh
6363 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
6366 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
6367 # is contrary to our usage. Disable this feature.
6368 alias -g '${1+"$@"}'='"$@"'
6369 setopt NO_GLOB_SUBST
6371 case `(set -o) 2>/dev/null` in #(
6383 # Printing a long string crashes Solaris 7 /usr/bin/printf.
6384 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6385 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
6386 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
6387 # Prefer a ksh shell builtin over an external printf program on Solaris,
6388 # but without wasting forks for bash or zsh.
6389 if test -z "$BASH_VERSION$ZSH_VERSION" \
6390 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
6391 as_echo='print -r --'
6392 as_echo_n='print -rn --'
6393 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
6394 as_echo='printf %s\n'
6395 as_echo_n='printf %s'
6397 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
6398 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
6399 as_echo_n='/usr/ucb/echo -n'
6401 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
6402 as_echo_n_body='eval
6406 expr "X$arg" : "X\\(.*\\)$as_nl";
6407 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
6409 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
6411 export as_echo_n_body
6412 as_echo_n='sh -c $as_echo_n_body as_echo'
6415 as_echo='sh -c $as_echo_body as_echo'
6418 # The user is always right.
6419 if test "${PATH_SEPARATOR+set}" != set; then
6421 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
6422 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
6429 # We need space, tab and new line, in precisely that order. Quoting is
6430 # there to prevent editors from complaining about space-tab.
6431 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
6432 # splitting by setting IFS to empty value.)
6435 # Find who we are. Look in the path if we contain no directory separator.
6437 *[\\/]* ) as_myself=$0 ;;
6438 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6442 test -z "$as_dir" && as_dir=.
6443 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6449 # We did not find ourselves, most probably we were run as `sh COMMAND'
6450 # in which case we are not to be found in the path.
6451 if test "x$as_myself" = x; then
6454 if test ! -f "$as_myself"; then
6455 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
6459 # Unset variables that we do not need and which cause bugs (e.g. in
6460 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
6461 # suppresses any "Segmentation fault" message there. '((' could
6462 # trigger a bug in pdksh 5.2.14.
6463 for as_var in BASH_ENV ENV MAIL MAILPATH
6464 do eval test x\${$as_var+set} = xset \
6465 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
6478 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
6481 # as_fn_error ERROR [LINENO LOG_FD]
6482 # ---------------------------------
6483 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
6484 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
6485 # script with status $?, using 1 if that was 0.
6488 as_status=$?; test $as_status -eq 0 && as_status=1
6490 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
6491 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
6493 $as_echo "$as_me: error: $1" >&2
6494 as_fn_exit $as_status
6498 # as_fn_set_status STATUS
6499 # -----------------------
6500 # Set $? to STATUS, without forking.
6504 } # as_fn_set_status
6508 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
6518 # Portably unset VAR.
6521 { eval $1=; unset $1;}
6523 as_unset=as_fn_unset
6524 # as_fn_append VAR VALUE
6525 # ----------------------
6526 # Append the text in VALUE to the end of the definition contained in VAR. Take
6527 # advantage of any shell optimizations that allow amortized linear growth over
6528 # repeated appends, instead of the typical quadratic growth present in naive
6530 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
6531 eval 'as_fn_append ()
6542 # as_fn_arith ARG...
6543 # ------------------
6544 # Perform arithmetic evaluation on the ARGs, and store the result in the
6545 # global $as_val. Take advantage of shells that can avoid forks. The arguments
6546 # must be portable across $(()) and expr.
6547 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
6548 eval 'as_fn_arith ()
6555 as_val=`expr "$@" || test $? -eq 1`
6560 if expr a : '\(a\)' >/dev/null 2>&1 &&
6561 test "X`expr 00001 : '.*\(...\)'`" = X001; then
6567 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
6568 as_basename=basename
6573 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
6579 as_me=`$as_basename -- "$0" ||
6580 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6581 X"$0" : 'X\(//\)$' \| \
6582 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
6584 sed '/^.*\/\([^/][^/]*\)\/*$/{
6598 # Avoid depending upon Character Ranges.
6599 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6600 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6601 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6602 as_cr_digits='0123456789'
6603 as_cr_alnum=$as_cr_Letters$as_cr_digits
6605 ECHO_C= ECHO_N= ECHO_T=
6606 case `echo -n x` in #(((((
6608 case `echo 'xy\c'` in
6609 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
6611 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
6618 rm -f conf$$ conf$$.exe conf$$.file
6619 if test -d conf$$.dir; then
6620 rm -f conf$$.dir/conf$$.file
6623 mkdir conf$$.dir 2>/dev/null
6625 if (echo >conf$$.file) 2>/dev/null; then
6626 if ln -s conf$$.file conf$$ 2>/dev/null; then
6628 # ... but there are two gotchas:
6629 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
6630 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
6631 # In both cases, we have to default to `cp -p'.
6632 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
6634 elif ln conf$$.file conf$$ 2>/dev/null; then
6642 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
6643 rmdir conf$$.dir 2>/dev/null
6648 # Create "$as_dir" as a directory, including parents if necessary.
6653 -*) as_dir=./$as_dir;;
6655 test -d "$as_dir" || eval $as_mkdir_p || {
6659 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
6660 *) as_qdir=$as_dir;;
6662 as_dirs="'$as_qdir' $as_dirs"
6663 as_dir=`$as_dirname -- "$as_dir" ||
6664 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6665 X"$as_dir" : 'X\(//\)[^/]' \| \
6666 X"$as_dir" : 'X\(//\)$' \| \
6667 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
6668 $as_echo X"$as_dir" |
6669 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6686 test -d "$as_dir" && break
6688 test -z "$as_dirs" || eval "mkdir $as_dirs"
6689 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
6693 if mkdir -p . 2>/dev/null; then
6694 as_mkdir_p='mkdir -p "$as_dir"'
6696 test -d ./-p && rmdir ./-p
6700 if test -x / >/dev/null 2>&1; then
6703 if ls -dL / >/dev/null 2>&1; then
6710 if test -d "$1"; then
6716 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
6717 ???[sx]*):;;*)false;;esac;fi
6721 as_executable_p=$as_test_x
6723 # Sed expression to map a string onto a valid CPP name.
6724 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6726 # Sed expression to map a string onto a valid variable name.
6727 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6731 ## ----------------------------------- ##
6732 ## Main body of $CONFIG_STATUS script. ##
6733 ## ----------------------------------- ##
6735 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
6737 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6738 # Save the log message, to keep $0 and so on meaningful, and to
6739 # report actual input values of CONFIG_FILES etc. instead of their
6740 # values after options handling.
6742 This file was extended by $as_me, which was
6743 generated by GNU Autoconf 2.64. Invocation command line was
6745 CONFIG_FILES = $CONFIG_FILES
6746 CONFIG_HEADERS = $CONFIG_HEADERS
6747 CONFIG_LINKS = $CONFIG_LINKS
6748 CONFIG_COMMANDS = $CONFIG_COMMANDS
6751 on `(hostname || uname -n) 2>/dev/null | sed 1q`
6756 case $ac_config_files in *"
6757 "*) set x $ac_config_files; shift; ac_config_files=$*;;
6760 case $ac_config_headers in *"
6761 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
6765 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6766 # Files that config.status was made for.
6767 config_files="$ac_config_files"
6768 config_headers="$ac_config_headers"
6769 config_commands="$ac_config_commands"
6773 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6775 \`$as_me' instantiates files and other configuration actions
6776 from templates according to the current configuration. Unless the files
6777 and actions are specified as TAGs, all are instantiated by default.
6779 Usage: $0 [OPTION]... [TAG]...
6781 -h, --help print this help, then exit
6782 -V, --version print version number and configuration settings, then exit
6783 -q, --quiet, --silent
6784 do not print progress messages
6785 -d, --debug don't remove temporary files
6786 --recheck update $as_me by reconfiguring in the same conditions
6787 --file=FILE[:TEMPLATE]
6788 instantiate the configuration file FILE
6789 --header=FILE[:TEMPLATE]
6790 instantiate the configuration header FILE
6792 Configuration files:
6795 Configuration headers:
6798 Configuration commands:
6801 Report bugs to the package provider."
6804 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6807 configured by $0, generated by GNU Autoconf 2.64,
6808 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
6810 Copyright (C) 2009 Free Software Foundation, Inc.
6811 This config.status script is free software; the Free Software Foundation
6812 gives unlimited permission to copy, distribute and modify it."
6817 test -n "\$AWK" || AWK=awk
6820 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6821 # The default lists apply if the user does not specify any file.
6827 ac_option=`expr "X$1" : 'X\([^=]*\)='`
6828 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
6839 # Handling of the options.
6840 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6842 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
6843 $as_echo "$ac_cs_version"; exit ;;
6844 --debug | --debu | --deb | --de | --d | -d )
6846 --file | --fil | --fi | --f )
6849 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6851 as_fn_append CONFIG_FILES " '$ac_optarg'"
6852 ac_need_defaults=false;;
6853 --header | --heade | --head | --hea )
6856 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6858 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
6859 ac_need_defaults=false;;
6861 # Conflict between --help and --header
6862 as_fn_error "ambiguous option: \`$1'
6863 Try \`$0 --help' for more information.";;
6864 --help | --hel | -h )
6865 $as_echo "$ac_cs_usage"; exit ;;
6866 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6867 | -silent | --silent | --silen | --sile | --sil | --si | --s)
6871 -*) as_fn_error "unrecognized option: \`$1'
6872 Try \`$0 --help' for more information." ;;
6874 *) as_fn_append ac_config_targets " $1"
6875 ac_need_defaults=false ;;
6881 ac_configure_extra_args=
6883 if $ac_cs_silent; then
6885 ac_configure_extra_args="$ac_configure_extra_args --silent"
6889 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6890 if \$ac_cs_recheck; then
6891 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6893 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
6894 CONFIG_SHELL='$SHELL'
6900 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6904 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6905 ## Running $as_me. ##
6911 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6915 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
6916 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
6918 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
6919 # Capture the value of LINGUAS because we need it to compute CATALOGS.
6920 LINGUAS="${LINGUAS-%UNSET%}"
6925 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6927 # Handling of arguments.
6928 for ac_config_target in $ac_config_targets
6930 case $ac_config_target in
6931 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
6932 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
6933 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6934 "config.intl") CONFIG_FILES="$CONFIG_FILES config.intl" ;;
6936 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
6941 # If the user did not use the arguments to specify the items to instantiate,
6942 # then the envvar interface is used. Set only those that are not.
6943 # We use the long form for the default assignment because of an extremely
6944 # bizarre bug on SunOS 4.1.3.
6945 if $ac_need_defaults; then
6946 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6947 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6948 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
6951 # Have a temporary directory for convenience. Make it in the build tree
6952 # simply because there is no reason against having it here, and in addition,
6953 # creating and moving files from /tmp can sometimes cause problems.
6954 # Hook for its removal unless debugging.
6955 # Note that there is a small window in which the directory will not be cleaned:
6956 # after its creation but before its name has been assigned to `$tmp'.
6960 trap 'exit_status=$?
6961 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
6963 trap 'as_fn_exit 1' 1 2 13 15
6965 # Create a (secure) tmp directory for tmp files.
6968 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
6969 test -n "$tmp" && test -d "$tmp"
6972 tmp=./conf$$-$RANDOM
6973 (umask 077 && mkdir "$tmp")
6974 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
6976 # Set up the scripts for CONFIG_FILES section.
6977 # No need to generate them if there are no CONFIG_FILES.
6978 # This happens for instance with `./config.status config.h'.
6979 if test -n "$CONFIG_FILES"; then
6982 ac_cr=`echo X | tr X '\015'`
6983 # On cygwin, bash can eat \r inside `` if the user requested igncr.
6984 # But we know of no other shell where ac_cr would be empty at this
6985 # point, so we can use a bashism as a fallback.
6986 if test "x$ac_cr" = x; then
6987 eval ac_cr=\$\'\\r\'
6989 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
6990 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
6996 echo 'BEGIN {' >"$tmp/subs1.awk" &&
7001 echo "cat >conf$$subs.awk <<_ACEOF" &&
7002 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
7005 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
7006 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
7008 for ac_last_try in false false false false false :; do
7009 . ./conf$$subs.sh ||
7010 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
7012 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
7013 if test $ac_delim_n = $ac_delim_num; then
7015 elif $ac_last_try; then
7016 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
7018 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7023 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7024 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
7028 s/^/S["/; s/!.*/"]=/
7038 s/\(.\{148\}\).*/\1/
7040 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
7045 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7052 s/\(.\{148\}\).*/\1/
7054 s/["\\]/\\&/g; s/^/"/; s/$/"/
7058 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7063 ' <conf$$subs.awk | sed '
7068 ' >>$CONFIG_STATUS || ac_write_fail=1
7069 rm -f conf$$subs.awk
7070 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7072 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
7073 for (key in S) S_is_set[key] = 1
7079 nfields = split(line, field, "@")
7081 len = length(field[1])
7082 for (i = 2; i < nfields; i++) {
7084 keylen = length(key)
7085 if (S_is_set[key]) {
7087 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
7088 len += length(value) + length(field[++i])
7099 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7100 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
7101 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
7104 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
7105 || as_fn_error "could not setup config files machinery" "$LINENO" 5
7108 # VPATH may cause trouble with some makes, so we remove $(srcdir),
7109 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
7110 # trailing colons and then remove the whole line if VPATH becomes empty
7111 # (actually we leave an empty line to preserve line numbers).
7112 if test "x$srcdir" = x.; then
7113 ac_vpsub='/^[ ]*VPATH[ ]*=/{
7117 s/^\([^=]*=[ ]*\):*/\1/
7123 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7124 fi # test -n "$CONFIG_FILES"
7126 # Set up the scripts for CONFIG_HEADERS section.
7127 # No need to generate them if there are no CONFIG_HEADERS.
7128 # This happens for instance with `./config.status Makefile'.
7129 if test -n "$CONFIG_HEADERS"; then
7130 cat >"$tmp/defines.awk" <<\_ACAWK ||
7134 # Transform confdefs.h into an awk script `defines.awk', embedded as
7135 # here-document in config.status, that substitutes the proper values into
7136 # config.h.in to produce config.h.
7138 # Create a delimiter string that does not exist in confdefs.h, to ease
7139 # handling of long lines.
7141 for ac_last_try in false false :; do
7142 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
7143 if test -z "$ac_t"; then
7145 elif $ac_last_try; then
7146 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
7148 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7152 # For the awk script, D is an array of macro values keyed by name,
7153 # likewise P contains macro parameters if any. Preserve backslash
7154 # newline sequences.
7156 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
7158 s/.\{148\}/&'"$ac_delim"'/g
7161 s/^[ ]*#[ ]*define[ ][ ]*/ /
7168 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
7170 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
7174 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
7175 D["\1"]=" \3\\\\\\n"\\/p
7177 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
7182 s/.\{148\}/&'"$ac_delim"'/g
7187 s/["\\]/\\&/g; s/^/"/; s/$/"/p
7190 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
7192 ' <confdefs.h | sed '
7193 s/'"$ac_delim"'/"\\\
7194 "/g' >>$CONFIG_STATUS || ac_write_fail=1
7196 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7197 for (key in D) D_is_set[key] = 1
7200 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
7202 split(line, arg, " ")
7203 if (arg[1] == "#") {
7207 defundef = substr(arg[1], 2)
7210 split(mac1, mac2, "(") #)
7212 prefix = substr(line, 1, index(line, defundef) - 1)
7213 if (D_is_set[macro]) {
7214 # Preserve the white space surrounding the "#".
7215 print prefix "define", macro P[macro] D[macro]
7218 # Replace #undef with comments. This is necessary, for example,
7219 # in the case of _POSIX_SOURCE, which is predefined and required
7220 # on some systems where configure will not decide to define it.
7221 if (defundef == "undef") {
7222 print "/*", prefix defundef, macro, "*/"
7230 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7231 as_fn_error "could not setup config headers machinery" "$LINENO" 5
7232 fi # test -n "$CONFIG_HEADERS"
7235 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
7240 :[FHLC]) ac_mode=$ac_tag; continue;;
7242 case $ac_mode$ac_tag in
7244 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
7245 :[FH]-) ac_tag=-:-;;
7246 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
7263 -) ac_f="$tmp/stdin";;
7264 *) # Look for the file first in the build tree, then in the source tree
7265 # (if the path is not absolute). The absolute path cannot be DOS-style,
7266 # because $ac_f cannot contain `:'.
7270 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
7272 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
7274 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
7275 as_fn_append ac_file_inputs " '$ac_f'"
7278 # Let's still pretend it is `configure' which instantiates (i.e., don't
7279 # use $as_me), people would be surprised to read:
7280 # /* config.h. Generated by config.status. */
7281 configure_input='Generated from '`
7282 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
7284 if test x"$ac_file" != x-; then
7285 configure_input="$ac_file. $configure_input"
7286 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
7287 $as_echo "$as_me: creating $ac_file" >&6;}
7289 # Neutralize special characters interpreted by sed in replacement strings.
7290 case $configure_input in #(
7291 *\&* | *\|* | *\\* )
7292 ac_sed_conf_input=`$as_echo "$configure_input" |
7293 sed 's/[\\\\&|]/\\\\&/g'`;; #(
7294 *) ac_sed_conf_input=$configure_input;;
7298 *:-:* | *:-) cat >"$tmp/stdin" \
7299 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
7304 ac_dir=`$as_dirname -- "$ac_file" ||
7305 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7306 X"$ac_file" : 'X\(//\)[^/]' \| \
7307 X"$ac_file" : 'X\(//\)$' \| \
7308 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
7309 $as_echo X"$ac_file" |
7310 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7327 as_dir="$ac_dir"; as_fn_mkdir_p
7331 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
7333 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7334 # A ".." for each directory in $ac_dir_suffix.
7335 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7336 case $ac_top_builddir_sub in
7337 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
7338 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
7341 ac_abs_top_builddir=$ac_pwd
7342 ac_abs_builddir=$ac_pwd$ac_dir_suffix
7343 # for backward compatibility:
7344 ac_top_builddir=$ac_top_build_prefix
7347 .) # We are building in place.
7349 ac_top_srcdir=$ac_top_builddir_sub
7350 ac_abs_top_srcdir=$ac_pwd ;;
7351 [\\/]* | ?:[\\/]* ) # Absolute name.
7352 ac_srcdir=$srcdir$ac_dir_suffix;
7353 ac_top_srcdir=$srcdir
7354 ac_abs_top_srcdir=$srcdir ;;
7356 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
7357 ac_top_srcdir=$ac_top_build_prefix$srcdir
7358 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
7360 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
7370 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7371 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
7375 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7376 # If the template does not know about datarootdir, expand it.
7377 # FIXME: This hack should be removed a few years after 2.60.
7378 ac_datarootdir_hack=; ac_datarootdir_seen=
7389 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
7390 *datarootdir*) ac_datarootdir_seen=yes;;
7391 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
7392 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
7393 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
7395 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7396 ac_datarootdir_hack='
7397 s&@datadir@&$datadir&g
7398 s&@docdir@&$docdir&g
7399 s&@infodir@&$infodir&g
7400 s&@localedir@&$localedir&g
7401 s&@mandir@&$mandir&g
7402 s&\\\${datarootdir}&$datarootdir&g' ;;
7406 # Neutralize VPATH when `$srcdir' = `.'.
7407 # Shell code in configure.ac might set extrasub.
7408 # FIXME: do we really want to maintain this feature?
7409 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7410 ac_sed_extra="$ac_vpsub
7413 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7415 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7416 s|@configure_input@|$ac_sed_conf_input|;t t
7417 s&@top_builddir@&$ac_top_builddir_sub&;t t
7418 s&@top_build_prefix@&$ac_top_build_prefix&;t t
7419 s&@srcdir@&$ac_srcdir&;t t
7420 s&@abs_srcdir@&$ac_abs_srcdir&;t t
7421 s&@top_srcdir@&$ac_top_srcdir&;t t
7422 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
7423 s&@builddir@&$ac_builddir&;t t
7424 s&@abs_builddir@&$ac_abs_builddir&;t t
7425 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
7426 s&@INSTALL@&$ac_INSTALL&;t t
7427 $ac_datarootdir_hack
7429 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
7430 || as_fn_error "could not create $ac_file" "$LINENO" 5
7432 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
7433 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
7434 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
7435 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7436 which seems to be undefined. Please make sure it is defined." >&5
7437 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7438 which seems to be undefined. Please make sure it is defined." >&2;}
7442 -) cat "$tmp/out" && rm -f "$tmp/out";;
7443 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
7445 || as_fn_error "could not create $ac_file" "$LINENO" 5
7451 if test x"$ac_file" != x-; then
7453 $as_echo "/* $configure_input */" \
7454 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
7455 } >"$tmp/config.h" \
7456 || as_fn_error "could not create $ac_file" "$LINENO" 5
7457 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
7458 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
7459 $as_echo "$as_me: $ac_file is unchanged" >&6;}
7462 mv "$tmp/config.h" "$ac_file" \
7463 || as_fn_error "could not create $ac_file" "$LINENO" 5
7466 $as_echo "/* $configure_input */" \
7467 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
7468 || as_fn_error "could not create -" "$LINENO" 5
7472 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
7473 $as_echo "$as_me: executing $ac_file commands" >&6;}
7478 case $ac_file$ac_mode in
7480 for ac_file in $CONFIG_FILES; do
7481 # Support "outfile[:infile[:infile...]]"
7483 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
7485 # PO directories have a Makefile.in generated from Makefile.in.in.
7486 case "$ac_file" in */Makefile.in)
7487 # Adjust a relative srcdir.
7488 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
7489 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
7490 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
7491 # In autoconf-2.13 it is called $ac_given_srcdir.
7492 # In autoconf-2.50 it is called $srcdir.
7493 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
7494 case "$ac_given_srcdir" in
7495 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
7496 /*) top_srcdir="$ac_given_srcdir" ;;
7497 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
7499 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
7500 rm -f "$ac_dir/POTFILES"
7501 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
7502 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
7503 POMAKEFILEDEPS="POTFILES.in"
7504 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
7505 # on $ac_dir but don't depend on user-specified configuration
7507 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
7508 # The LINGUAS file contains the set of available languages.
7509 if test -n "$OBSOLETE_ALL_LINGUAS"; then
7510 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
7512 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
7513 # Hide the ALL_LINGUAS assigment from automake.
7514 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
7515 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
7517 # The set of available languages was given in configure.in.
7518 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
7520 case "$ac_given_srcdir" in
7522 *) srcdirpre='$(srcdir)/' ;;
7528 for lang in $ALL_LINGUAS; do
7529 POFILES="$POFILES $srcdirpre$lang.po"
7530 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
7531 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
7532 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
7534 # CATALOGS depends on both $ac_dir and the user's LINGUAS
7535 # environment variable.
7537 if test -n "$ALL_LINGUAS"; then
7538 for presentlang in $ALL_LINGUAS; do
7540 if test "%UNSET%" != "$LINGUAS"; then
7541 desiredlanguages="$LINGUAS"
7543 desiredlanguages="$ALL_LINGUAS"
7545 for desiredlang in $desiredlanguages; do
7546 # Use the presentlang catalog if desiredlang is
7547 # a. equal to presentlang, or
7548 # b. a variant of presentlang (because in this case,
7549 # presentlang can be used as a fallback for messages
7550 # which are not translated in the desiredlang catalog).
7551 case "$desiredlang" in
7552 "$presentlang"*) useit=yes;;
7555 if test $useit = yes; then
7556 INST_LINGUAS="$INST_LINGUAS $presentlang"
7561 if test -n "$INST_LINGUAS"; then
7562 for lang in $INST_LINGUAS; do
7563 CATALOGS="$CATALOGS $lang.gmo"
7566 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
7567 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"
7568 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
7569 if test -f "$f"; then
7571 *.orig | *.bak | *~) ;;
7572 *) cat "$f" >> "$ac_dir/Makefile" ;;
7587 ac_clean_files=$ac_clean_files_save
7589 test $ac_write_fail = 0 ||
7590 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
7593 # configure is writing to config.log, and then calls config.status.
7594 # config.status does its own redirection, appending to config.log.
7595 # Unfortunately, on DOS this fails, as config.log is still kept open
7596 # by configure, so config.status won't be able to write to it; its
7597 # output is simply discarded. So we exec the FD to /dev/null,
7598 # effectively closing config.log, so it can be properly (re)opened and
7599 # appended to by config.status. When coming back to configure, we
7600 # need to make the FD available again.
7601 if test "$no_create" != yes; then
7603 ac_config_status_args=
7604 test "$silent" = yes &&
7605 ac_config_status_args="$ac_config_status_args --quiet"
7607 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7609 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7610 # would make configure fail if this is the last instruction.
7611 $ac_cs_success || as_fn_exit $?
7613 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
7614 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
7615 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}