2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68.
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 as_echo_n='sh -c $as_echo_n_body as_echo'
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
91 # Find who we are. Look in the path if we contain no directory separator.
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137 if test "x$CONFIG_SHELL" = x; then
138 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
142 # is contrary to our usage. Disable this feature.
143 alias -g '\${1+\"\$@\"}'='\"\$@\"'
146 case \`(set -o) 2>/dev/null\` in #(
154 as_required="as_fn_return () { (exit \$1); }
155 as_fn_success () { as_fn_return 0; }
156 as_fn_failure () { as_fn_return 1; }
157 as_fn_ret_success () { return 0; }
158 as_fn_ret_failure () { return 1; }
161 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
162 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
163 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
164 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
165 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168 exitcode=1; echo positional parameters were not saved.
170 test x\$exitcode = x0 || exit 1"
171 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
172 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
173 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
174 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
176 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
177 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
178 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
179 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
180 PATH=/empty FPATH=/empty; export PATH FPATH
181 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
182 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
183 test \$(( 1 + 1 )) = 2 || exit 1"
184 if (eval "$as_required") 2>/dev/null; then :
189 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
194 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
197 test -z "$as_dir" && as_dir=.
201 for as_base in sh bash ksh sh5; do
202 # Try only shells that exist, to save several forks.
203 as_shell=$as_dir/$as_base
204 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
205 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
206 CONFIG_SHELL=$as_shell as_have_required=yes
207 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
215 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
216 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
217 CONFIG_SHELL=$SHELL as_have_required=yes
222 if test "x$CONFIG_SHELL" != x; then :
223 # We cannot yet assume a decent shell, so we have to provide a
224 # neutralization value for shells without unset; and this also
225 # works around shells that cannot unset nonexistent variables.
226 # Preserve -v and -x to the replacement shell.
229 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
232 *v*x* | *x*v* ) as_opts=-vx ;;
237 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
240 if test x$as_have_required = xno; then :
241 $as_echo "$0: This script requires a shell more modern than all"
242 $as_echo "$0: the shells that I found on your system."
243 if test x${ZSH_VERSION+set} = xset ; then
244 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
245 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
247 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
248 $0: including any error possibly output before this
249 $0: message. Then install a modern shell, or manually run
250 $0: the script under such a shell if you do have one."
256 SHELL=${CONFIG_SHELL-/bin/sh}
258 # Unset more variables known to interfere with behavior of common tools.
259 CLICOLOR_FORCE= GREP_OPTIONS=
260 unset CLICOLOR_FORCE GREP_OPTIONS
262 ## --------------------- ##
263 ## M4sh Shell Functions. ##
264 ## --------------------- ##
267 # Portably unset VAR.
270 { eval $1=; unset $1;}
274 # as_fn_set_status STATUS
275 # -----------------------
276 # Set $? to STATUS, without forking.
284 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
294 # Create "$as_dir" as a directory, including parents if necessary.
299 -*) as_dir=./$as_dir;;
301 test -d "$as_dir" || eval $as_mkdir_p || {
305 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
308 as_dirs="'$as_qdir' $as_dirs"
309 as_dir=`$as_dirname -- "$as_dir" ||
310 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
311 X"$as_dir" : 'X\(//\)[^/]' \| \
312 X"$as_dir" : 'X\(//\)$' \| \
313 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
314 $as_echo X"$as_dir" |
315 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
332 test -d "$as_dir" && break
334 test -z "$as_dirs" || eval "mkdir $as_dirs"
335 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
339 # as_fn_append VAR VALUE
340 # ----------------------
341 # Append the text in VALUE to the end of the definition contained in VAR. Take
342 # advantage of any shell optimizations that allow amortized linear growth over
343 # repeated appends, instead of the typical quadratic growth present in naive
345 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
346 eval 'as_fn_append ()
359 # Perform arithmetic evaluation on the ARGs, and store the result in the
360 # global $as_val. Take advantage of shells that can avoid forks. The arguments
361 # must be portable across $(()) and expr.
362 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
370 as_val=`expr "$@" || test $? -eq 1`
375 # as_fn_error STATUS ERROR [LINENO LOG_FD]
376 # ----------------------------------------
377 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
378 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
379 # script with STATUS, using 1 if that was 0.
382 as_status=$1; test $as_status -eq 0 && as_status=1
384 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
385 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
387 $as_echo "$as_me: error: $2" >&2
388 as_fn_exit $as_status
391 if expr a : '\(a\)' >/dev/null 2>&1 &&
392 test "X`expr 00001 : '.*\(...\)'`" = X001; then
398 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
404 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
410 as_me=`$as_basename -- "$0" ||
411 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
412 X"$0" : 'X\(//\)$' \| \
413 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
415 sed '/^.*\/\([^/][^/]*\)\/*$/{
429 # Avoid depending upon Character Ranges.
430 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
431 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
432 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
433 as_cr_digits='0123456789'
434 as_cr_alnum=$as_cr_Letters$as_cr_digits
437 as_lineno_1=$LINENO as_lineno_1a=$LINENO
438 as_lineno_2=$LINENO as_lineno_2a=$LINENO
439 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
440 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
441 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
453 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
457 chmod +x "$as_me.lineno" ||
458 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
460 # Don't try to exec as it changes $[0], causing all sort of problems
461 # (the dirname of $[0] is not the place where we might find the
462 # original and so on. Autoconf is especially sensitive to this).
464 # Exit status is that of the last command.
468 ECHO_C= ECHO_N= ECHO_T=
469 case `echo -n x` in #(((((
471 case `echo 'xy\c'` in
472 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
474 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
481 rm -f conf$$ conf$$.exe conf$$.file
482 if test -d conf$$.dir; then
483 rm -f conf$$.dir/conf$$.file
486 mkdir conf$$.dir 2>/dev/null
488 if (echo >conf$$.file) 2>/dev/null; then
489 if ln -s conf$$.file conf$$ 2>/dev/null; then
491 # ... but there are two gotchas:
492 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
493 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
494 # In both cases, we have to default to `cp -p'.
495 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
497 elif ln conf$$.file conf$$ 2>/dev/null; then
505 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
506 rmdir conf$$.dir 2>/dev/null
508 if mkdir -p . 2>/dev/null; then
509 as_mkdir_p='mkdir -p "$as_dir"'
511 test -d ./-p && rmdir ./-p
515 if test -x / >/dev/null 2>&1; then
518 if ls -dL / >/dev/null 2>&1; then
525 if test -d "$1"; then
531 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
532 ???[sx]*):;;*)false;;esac;fi
536 as_executable_p=$as_test_x
538 # Sed expression to map a string onto a valid CPP name.
539 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
541 # Sed expression to map a string onto a valid variable name.
542 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
544 SHELL=${CONFIG_SHELL-/bin/sh}
547 test -n "$DJDIR" || exec 7<&0 </dev/null
551 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
552 # so uname gets run too.
553 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
558 ac_default_prefix=/usr/local
560 ac_config_libobj_dir=.
567 # Identity of this package.
575 ac_unique_file="fonts.dtd"
576 # Factoring default headers for most tests.
577 ac_includes_default="\
579 #ifdef HAVE_SYS_TYPES_H
580 # include <sys/types.h>
582 #ifdef HAVE_SYS_STAT_H
583 # include <sys/stat.h>
589 # ifdef HAVE_STDLIB_H
594 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
599 #ifdef HAVE_STRINGS_H
600 # include <strings.h>
602 #ifdef HAVE_INTTYPES_H
603 # include <inttypes.h>
613 ac_subst_vars='am__EXEEXT_FALSE
645 CROSS_COMPILING_FALSE
648 MS_LIB_AVAILABLE_FALSE
649 MS_LIB_AVAILABLE_TRUE
700 LIBT_CURRENT_MINUS_AGE
714 INSTALL_STRIP_PROGRAM
756 program_transform_name
769 enable_option_checking
771 enable_dependency_tracking
791 ac_precious_vars='build_alias
807 # Initialize some variables set by options.
809 ac_init_version=false
810 ac_unrecognized_opts=
812 # The variables have the same names as the options, with
813 # dashes changed to underlines.
821 program_transform_name=s,x,x,
829 # Installation directory options.
830 # These are left unexpanded so users can "make install exec_prefix=/foo"
831 # and all the variables that are supposed to be based on exec_prefix
832 # by default will actually change.
833 # Use braces instead of parens because sh, perl, etc. also accept them.
834 # (The list follows the same order as the GNU Coding Standards.)
835 bindir='${exec_prefix}/bin'
836 sbindir='${exec_prefix}/sbin'
837 libexecdir='${exec_prefix}/libexec'
838 datarootdir='${prefix}/share'
839 datadir='${datarootdir}'
840 sysconfdir='${prefix}/etc'
841 sharedstatedir='${prefix}/com'
842 localstatedir='${prefix}/var'
843 includedir='${prefix}/include'
844 oldincludedir='/usr/include'
845 docdir='${datarootdir}/doc/${PACKAGE}'
846 infodir='${datarootdir}/info'
851 libdir='${exec_prefix}/lib'
852 localedir='${datarootdir}/locale'
853 mandir='${datarootdir}/man'
859 # If the previous option needs an argument, assign it.
860 if test -n "$ac_prev"; then
861 eval $ac_prev=\$ac_option
867 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
872 # Accept the important Cygnus configure options, so we can diagnose typos.
874 case $ac_dashdash$ac_option in
878 -bindir | --bindir | --bindi | --bind | --bin | --bi)
880 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
883 -build | --build | --buil | --bui | --bu)
884 ac_prev=build_alias ;;
885 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
886 build_alias=$ac_optarg ;;
888 -cache-file | --cache-file | --cache-fil | --cache-fi \
889 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
890 ac_prev=cache_file ;;
891 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
892 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
893 cache_file=$ac_optarg ;;
896 cache_file=config.cache ;;
898 -datadir | --datadir | --datadi | --datad)
900 -datadir=* | --datadir=* | --datadi=* | --datad=*)
901 datadir=$ac_optarg ;;
903 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
904 | --dataroo | --dataro | --datar)
905 ac_prev=datarootdir ;;
906 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
907 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
908 datarootdir=$ac_optarg ;;
910 -disable-* | --disable-*)
911 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
912 # Reject names that are not valid shell variable names.
913 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
914 as_fn_error $? "invalid feature name: $ac_useropt"
915 ac_useropt_orig=$ac_useropt
916 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
917 case $ac_user_opts in
921 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
922 ac_unrecognized_sep=', ';;
924 eval enable_$ac_useropt=no ;;
926 -docdir | --docdir | --docdi | --doc | --do)
928 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
931 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
933 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
936 -enable-* | --enable-*)
937 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
938 # Reject names that are not valid shell variable names.
939 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
940 as_fn_error $? "invalid feature name: $ac_useropt"
941 ac_useropt_orig=$ac_useropt
942 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
943 case $ac_user_opts in
947 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
948 ac_unrecognized_sep=', ';;
950 eval enable_$ac_useropt=\$ac_optarg ;;
952 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
953 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
954 | --exec | --exe | --ex)
955 ac_prev=exec_prefix ;;
956 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
957 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
958 | --exec=* | --exe=* | --ex=*)
959 exec_prefix=$ac_optarg ;;
961 -gas | --gas | --ga | --g)
962 # Obsolete; use --with-gas.
965 -help | --help | --hel | --he | -h)
967 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
968 ac_init_help=recursive ;;
969 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
970 ac_init_help=short ;;
972 -host | --host | --hos | --ho)
973 ac_prev=host_alias ;;
974 -host=* | --host=* | --hos=* | --ho=*)
975 host_alias=$ac_optarg ;;
977 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
979 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
981 htmldir=$ac_optarg ;;
983 -includedir | --includedir | --includedi | --included | --include \
984 | --includ | --inclu | --incl | --inc)
985 ac_prev=includedir ;;
986 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
987 | --includ=* | --inclu=* | --incl=* | --inc=*)
988 includedir=$ac_optarg ;;
990 -infodir | --infodir | --infodi | --infod | --info | --inf)
992 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
993 infodir=$ac_optarg ;;
995 -libdir | --libdir | --libdi | --libd)
997 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1000 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1001 | --libexe | --libex | --libe)
1002 ac_prev=libexecdir ;;
1003 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1004 | --libexe=* | --libex=* | --libe=*)
1005 libexecdir=$ac_optarg ;;
1007 -localedir | --localedir | --localedi | --localed | --locale)
1008 ac_prev=localedir ;;
1009 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1010 localedir=$ac_optarg ;;
1012 -localstatedir | --localstatedir | --localstatedi | --localstated \
1013 | --localstate | --localstat | --localsta | --localst | --locals)
1014 ac_prev=localstatedir ;;
1015 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1016 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1017 localstatedir=$ac_optarg ;;
1019 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1021 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1022 mandir=$ac_optarg ;;
1024 -nfp | --nfp | --nf)
1025 # Obsolete; use --without-fp.
1028 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1029 | --no-cr | --no-c | -n)
1032 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1033 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1036 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1037 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1038 | --oldin | --oldi | --old | --ol | --o)
1039 ac_prev=oldincludedir ;;
1040 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1041 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1042 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1043 oldincludedir=$ac_optarg ;;
1045 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1047 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1048 prefix=$ac_optarg ;;
1050 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1051 | --program-pre | --program-pr | --program-p)
1052 ac_prev=program_prefix ;;
1053 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1054 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1055 program_prefix=$ac_optarg ;;
1057 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1058 | --program-suf | --program-su | --program-s)
1059 ac_prev=program_suffix ;;
1060 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1061 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1062 program_suffix=$ac_optarg ;;
1064 -program-transform-name | --program-transform-name \
1065 | --program-transform-nam | --program-transform-na \
1066 | --program-transform-n | --program-transform- \
1067 | --program-transform | --program-transfor \
1068 | --program-transfo | --program-transf \
1069 | --program-trans | --program-tran \
1070 | --progr-tra | --program-tr | --program-t)
1071 ac_prev=program_transform_name ;;
1072 -program-transform-name=* | --program-transform-name=* \
1073 | --program-transform-nam=* | --program-transform-na=* \
1074 | --program-transform-n=* | --program-transform-=* \
1075 | --program-transform=* | --program-transfor=* \
1076 | --program-transfo=* | --program-transf=* \
1077 | --program-trans=* | --program-tran=* \
1078 | --progr-tra=* | --program-tr=* | --program-t=*)
1079 program_transform_name=$ac_optarg ;;
1081 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1083 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1084 pdfdir=$ac_optarg ;;
1086 -psdir | --psdir | --psdi | --psd | --ps)
1088 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1091 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1092 | -silent | --silent | --silen | --sile | --sil)
1095 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1097 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1099 sbindir=$ac_optarg ;;
1101 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1102 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1103 | --sharedst | --shareds | --shared | --share | --shar \
1105 ac_prev=sharedstatedir ;;
1106 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1107 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1108 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1110 sharedstatedir=$ac_optarg ;;
1112 -site | --site | --sit)
1114 -site=* | --site=* | --sit=*)
1117 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1119 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1120 srcdir=$ac_optarg ;;
1122 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1123 | --syscon | --sysco | --sysc | --sys | --sy)
1124 ac_prev=sysconfdir ;;
1125 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1126 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1127 sysconfdir=$ac_optarg ;;
1129 -target | --target | --targe | --targ | --tar | --ta | --t)
1130 ac_prev=target_alias ;;
1131 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1132 target_alias=$ac_optarg ;;
1134 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1137 -version | --version | --versio | --versi | --vers | -V)
1138 ac_init_version=: ;;
1141 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1142 # Reject names that are not valid shell variable names.
1143 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1144 as_fn_error $? "invalid package name: $ac_useropt"
1145 ac_useropt_orig=$ac_useropt
1146 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1147 case $ac_user_opts in
1151 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1152 ac_unrecognized_sep=', ';;
1154 eval with_$ac_useropt=\$ac_optarg ;;
1156 -without-* | --without-*)
1157 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1158 # Reject names that are not valid shell variable names.
1159 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1160 as_fn_error $? "invalid package name: $ac_useropt"
1161 ac_useropt_orig=$ac_useropt
1162 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1163 case $ac_user_opts in
1167 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1168 ac_unrecognized_sep=', ';;
1170 eval with_$ac_useropt=no ;;
1173 # Obsolete; use --with-x.
1176 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1177 | --x-incl | --x-inc | --x-in | --x-i)
1178 ac_prev=x_includes ;;
1179 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1180 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1181 x_includes=$ac_optarg ;;
1183 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1184 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1185 ac_prev=x_libraries ;;
1186 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1187 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1188 x_libraries=$ac_optarg ;;
1190 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1191 Try \`$0 --help' for more information"
1195 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1196 # Reject names that are not valid shell variable names.
1197 case $ac_envvar in #(
1198 '' | [0-9]* | *[!_$as_cr_alnum]* )
1199 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1201 eval $ac_envvar=\$ac_optarg
1202 export $ac_envvar ;;
1205 # FIXME: should be removed in autoconf 3.0.
1206 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1207 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1208 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1209 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1215 if test -n "$ac_prev"; then
1216 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1217 as_fn_error $? "missing argument to $ac_option"
1220 if test -n "$ac_unrecognized_opts"; then
1221 case $enable_option_checking in
1223 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1224 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1228 # Check all directory arguments for consistency.
1229 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1230 datadir sysconfdir sharedstatedir localstatedir includedir \
1231 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1232 libdir localedir mandir
1234 eval ac_val=\$$ac_var
1235 # Remove trailing slashes.
1238 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1239 eval $ac_var=\$ac_val;;
1241 # Be sure to have absolute directory names.
1243 [\\/$]* | ?:[\\/]* ) continue;;
1244 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1246 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1249 # There might be people who depend on the old broken behavior: `$host'
1250 # used to hold the argument of --host etc.
1251 # FIXME: To remove some day.
1254 target=$target_alias
1256 # FIXME: To remove some day.
1257 if test "x$host_alias" != x; then
1258 if test "x$build_alias" = x; then
1259 cross_compiling=maybe
1260 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1261 If a cross compiler is detected then cross compile mode will be used" >&2
1262 elif test "x$build_alias" != "x$host_alias"; then
1268 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1270 test "$silent" = yes && exec 6>/dev/null
1273 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1274 ac_ls_di=`ls -di .` &&
1275 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1276 as_fn_error $? "working directory cannot be determined"
1277 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1278 as_fn_error $? "pwd does not report name of working directory"
1281 # Find the source files, if location was not specified.
1282 if test -z "$srcdir"; then
1283 ac_srcdir_defaulted=yes
1284 # Try the directory containing this script, then the parent directory.
1285 ac_confdir=`$as_dirname -- "$as_myself" ||
1286 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1287 X"$as_myself" : 'X\(//\)[^/]' \| \
1288 X"$as_myself" : 'X\(//\)$' \| \
1289 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1290 $as_echo X"$as_myself" |
1291 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1309 if test ! -r "$srcdir/$ac_unique_file"; then
1313 ac_srcdir_defaulted=no
1315 if test ! -r "$srcdir/$ac_unique_file"; then
1316 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1317 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1319 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1321 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1323 # When building in place, set srcdir=.
1324 if test "$ac_abs_confdir" = "$ac_pwd"; then
1327 # Remove unnecessary trailing slashes from srcdir.
1328 # Double slashes in file names in object file debugging info
1329 # mess up M-x gdb in Emacs.
1331 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1333 for ac_var in $ac_precious_vars; do
1334 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1335 eval ac_env_${ac_var}_value=\$${ac_var}
1336 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1337 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1341 # Report the --help message.
1343 if test "$ac_init_help" = "long"; then
1344 # Omit some internal or obsolete options to make the list less imposing.
1345 # This message is too long to be a string in the A/UX 3.1 sh.
1347 \`configure' configures this package to adapt to many kinds of systems.
1349 Usage: $0 [OPTION]... [VAR=VALUE]...
1351 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1352 VAR=VALUE. See below for descriptions of some of the useful variables.
1354 Defaults for the options are specified in brackets.
1357 -h, --help display this help and exit
1358 --help=short display options specific to this package
1359 --help=recursive display the short help of all the included packages
1360 -V, --version display version information and exit
1361 -q, --quiet, --silent do not print \`checking ...' messages
1362 --cache-file=FILE cache test results in FILE [disabled]
1363 -C, --config-cache alias for \`--cache-file=config.cache'
1364 -n, --no-create do not create output files
1365 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1367 Installation directories:
1368 --prefix=PREFIX install architecture-independent files in PREFIX
1369 [$ac_default_prefix]
1370 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1373 By default, \`make install' will install all the files in
1374 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1375 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1376 for instance \`--prefix=\$HOME'.
1378 For better control, use the options below.
1380 Fine tuning of the installation directories:
1381 --bindir=DIR user executables [EPREFIX/bin]
1382 --sbindir=DIR system admin executables [EPREFIX/sbin]
1383 --libexecdir=DIR program executables [EPREFIX/libexec]
1384 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1385 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1386 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1387 --libdir=DIR object code libraries [EPREFIX/lib]
1388 --includedir=DIR C header files [PREFIX/include]
1389 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1390 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1391 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1392 --infodir=DIR info documentation [DATAROOTDIR/info]
1393 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1394 --mandir=DIR man documentation [DATAROOTDIR/man]
1395 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1396 --htmldir=DIR html documentation [DOCDIR]
1397 --dvidir=DIR dvi documentation [DOCDIR]
1398 --pdfdir=DIR pdf documentation [DOCDIR]
1399 --psdir=DIR ps documentation [DOCDIR]
1405 --program-prefix=PREFIX prepend PREFIX to installed program names
1406 --program-suffix=SUFFIX append SUFFIX to installed program names
1407 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1410 --build=BUILD configure for building on BUILD [guessed]
1411 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1415 if test -n "$ac_init_help"; then
1420 --disable-option-checking ignore unrecognized --enable/--with options
1421 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1422 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1423 --enable-silent-rules less verbose build output (undo: `make V=1')
1424 --disable-silent-rules verbose build output (undo: `make V=0')
1425 --disable-dependency-tracking speeds up one-time build
1426 --enable-dependency-tracking do not reject slow dependency extractors
1427 --enable-shared[=PKGS] build shared libraries [default=yes]
1428 --enable-static[=PKGS] build static libraries [default=yes]
1429 --enable-fast-install[=PKGS]
1430 optimize for fast installation [default=yes]
1431 --disable-libtool-lock avoid locking (might break parallel builds)
1432 --enable-libxml2 Use libxml2 instead of Expat
1433 --disable-docs Don't build and install documentation
1436 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1437 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1438 --with-pic try to use only PIC/non-PIC objects [default=use
1440 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1441 --with-sysroot=DIR Search for dependent libraries within DIR
1442 (or the compiler's sysroot if not specified).
1443 --with-arch=ARCH Force architecture to ARCH
1444 --with-freetype-config=PROG Use FreeType configuration program PROG
1445 --with-expat=DIR Use Expat in DIR
1446 --with-expat-includes=DIR Use Expat includes in DIR
1447 --with-expat-lib=DIR Use Expat library in DIR
1448 --with-default-fonts=DIR Use fonts from DIR when config is busted
1449 --with-add-fonts=DIR1,DIR2,...Find additional fonts in DIR1,DIR2,...
1450 --with-cache-dir=DIR Use DIR to store cache files (default LOCALSTATEDIR/cache/fontconfig)
1451 --with-confdir=DIR Use DIR to store configuration files (default SYSCONFDIR/fonts)
1453 Some influential environment variables:
1454 CC C compiler command
1455 CFLAGS C compiler flags
1456 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1457 nonstandard directory <lib dir>
1458 LIBS libraries to pass to the linker, e.g. -l<library>
1459 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1460 you have headers in a nonstandard directory <include dir>
1462 PKG_CONFIG path to pkg-config utility
1464 directories to add to pkg-config's search path
1466 path overriding pkg-config's built-in search path
1468 C compiler flags for LIBXML2, overriding pkg-config
1470 linker flags for LIBXML2, overriding pkg-config
1472 Use these variables to override the choices made by `configure' or to help
1473 it to find libraries and programs with nonstandard names/locations.
1475 Report bugs to the package provider.
1480 if test "$ac_init_help" = "recursive"; then
1481 # If there are subdirs, report their specific --help.
1482 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1483 test -d "$ac_dir" ||
1484 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1489 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1491 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1492 # A ".." for each directory in $ac_dir_suffix.
1493 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1494 case $ac_top_builddir_sub in
1495 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1496 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1499 ac_abs_top_builddir=$ac_pwd
1500 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1501 # for backward compatibility:
1502 ac_top_builddir=$ac_top_build_prefix
1505 .) # We are building in place.
1507 ac_top_srcdir=$ac_top_builddir_sub
1508 ac_abs_top_srcdir=$ac_pwd ;;
1509 [\\/]* | ?:[\\/]* ) # Absolute name.
1510 ac_srcdir=$srcdir$ac_dir_suffix;
1511 ac_top_srcdir=$srcdir
1512 ac_abs_top_srcdir=$srcdir ;;
1514 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1515 ac_top_srcdir=$ac_top_build_prefix$srcdir
1516 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1518 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1520 cd "$ac_dir" || { ac_status=$?; continue; }
1521 # Check for guested configure.
1522 if test -f "$ac_srcdir/configure.gnu"; then
1524 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1525 elif test -f "$ac_srcdir/configure"; then
1527 $SHELL "$ac_srcdir/configure" --help=recursive
1529 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1531 cd "$ac_pwd" || { ac_status=$?; break; }
1535 test -n "$ac_init_help" && exit $ac_status
1536 if $ac_init_version; then
1539 generated by GNU Autoconf 2.68
1541 Copyright (C) 2010 Free Software Foundation, Inc.
1542 This configure script is free software; the Free Software Foundation
1543 gives unlimited permission to copy, distribute and modify it.
1548 ## ------------------------ ##
1549 ## Autoconf initialization. ##
1550 ## ------------------------ ##
1552 # ac_fn_c_try_compile LINENO
1553 # --------------------------
1554 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1555 ac_fn_c_try_compile ()
1557 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1558 rm -f conftest.$ac_objext
1559 if { { ac_try="$ac_compile"
1561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1562 *) ac_try_echo=$ac_try;;
1564 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1565 $as_echo "$ac_try_echo"; } >&5
1566 (eval "$ac_compile") 2>conftest.err
1568 if test -s conftest.err; then
1569 grep -v '^ *+' conftest.err >conftest.er1
1570 cat conftest.er1 >&5
1571 mv -f conftest.er1 conftest.err
1573 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1574 test $ac_status = 0; } && {
1575 test -z "$ac_c_werror_flag" ||
1576 test ! -s conftest.err
1577 } && test -s conftest.$ac_objext; then :
1580 $as_echo "$as_me: failed program was:" >&5
1581 sed 's/^/| /' conftest.$ac_ext >&5
1585 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1586 as_fn_set_status $ac_retval
1588 } # ac_fn_c_try_compile
1590 # ac_fn_c_try_link LINENO
1591 # -----------------------
1592 # Try to link conftest.$ac_ext, and return whether this succeeded.
1595 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1596 rm -f conftest.$ac_objext conftest$ac_exeext
1597 if { { ac_try="$ac_link"
1599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1600 *) ac_try_echo=$ac_try;;
1602 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1603 $as_echo "$ac_try_echo"; } >&5
1604 (eval "$ac_link") 2>conftest.err
1606 if test -s conftest.err; then
1607 grep -v '^ *+' conftest.err >conftest.er1
1608 cat conftest.er1 >&5
1609 mv -f conftest.er1 conftest.err
1611 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1612 test $ac_status = 0; } && {
1613 test -z "$ac_c_werror_flag" ||
1614 test ! -s conftest.err
1615 } && test -s conftest$ac_exeext && {
1616 test "$cross_compiling" = yes ||
1617 $as_test_x conftest$ac_exeext
1621 $as_echo "$as_me: failed program was:" >&5
1622 sed 's/^/| /' conftest.$ac_ext >&5
1626 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1627 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1628 # interfere with the next link command; also delete a directory that is
1629 # left behind by Apple's compiler. We do this before executing the actions.
1630 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1631 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1632 as_fn_set_status $ac_retval
1634 } # ac_fn_c_try_link
1636 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1637 # -------------------------------------------------------
1638 # Tests whether HEADER exists and can be compiled using the include files in
1639 # INCLUDES, setting the cache variable VAR accordingly.
1640 ac_fn_c_check_header_compile ()
1642 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1644 $as_echo_n "checking for $2... " >&6; }
1645 if eval \${$3+:} false; then :
1646 $as_echo_n "(cached) " >&6
1648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1649 /* end confdefs.h. */
1653 if ac_fn_c_try_compile "$LINENO"; then :
1658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1662 $as_echo "$ac_res" >&6; }
1663 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1665 } # ac_fn_c_check_header_compile
1667 # ac_fn_c_try_cpp LINENO
1668 # ----------------------
1669 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1672 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1673 if { { ac_try="$ac_cpp conftest.$ac_ext"
1675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1676 *) ac_try_echo=$ac_try;;
1678 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1679 $as_echo "$ac_try_echo"; } >&5
1680 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1682 if test -s conftest.err; then
1683 grep -v '^ *+' conftest.err >conftest.er1
1684 cat conftest.er1 >&5
1685 mv -f conftest.er1 conftest.err
1687 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1688 test $ac_status = 0; } > conftest.i && {
1689 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1690 test ! -s conftest.err
1694 $as_echo "$as_me: failed program was:" >&5
1695 sed 's/^/| /' conftest.$ac_ext >&5
1699 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1700 as_fn_set_status $ac_retval
1704 # ac_fn_c_try_run LINENO
1705 # ----------------------
1706 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1707 # that executables *can* be run.
1710 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1711 if { { ac_try="$ac_link"
1713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1714 *) ac_try_echo=$ac_try;;
1716 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1717 $as_echo "$ac_try_echo"; } >&5
1718 (eval "$ac_link") 2>&5
1720 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1721 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1722 { { case "(($ac_try" in
1723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1724 *) ac_try_echo=$ac_try;;
1726 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1727 $as_echo "$ac_try_echo"; } >&5
1728 (eval "$ac_try") 2>&5
1730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1731 test $ac_status = 0; }; }; then :
1734 $as_echo "$as_me: program exited with status $ac_status" >&5
1735 $as_echo "$as_me: failed program was:" >&5
1736 sed 's/^/| /' conftest.$ac_ext >&5
1738 ac_retval=$ac_status
1740 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1741 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1742 as_fn_set_status $ac_retval
1746 # ac_fn_c_check_func LINENO FUNC VAR
1747 # ----------------------------------
1748 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1749 ac_fn_c_check_func ()
1751 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1753 $as_echo_n "checking for $2... " >&6; }
1754 if eval \${$3+:} false; then :
1755 $as_echo_n "(cached) " >&6
1757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1758 /* end confdefs.h. */
1759 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1760 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1761 #define $2 innocuous_$2
1763 /* System header to define __stub macros and hopefully few prototypes,
1764 which can conflict with char $2 (); below.
1765 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1766 <limits.h> exists even on freestanding compilers. */
1769 # include <limits.h>
1771 # include <assert.h>
1776 /* Override any GCC internal prototype to avoid an error.
1777 Use char because int might match the return type of a GCC
1778 builtin and then its argument prototype would still apply. */
1783 /* The GNU C library defines this for functions which it implements
1784 to always fail with ENOSYS. Some functions are actually named
1785 something starting with __ and the normal name is an alias. */
1786 #if defined __stub_$2 || defined __stub___$2
1798 if ac_fn_c_try_link "$LINENO"; then :
1803 rm -f core conftest.err conftest.$ac_objext \
1804 conftest$ac_exeext conftest.$ac_ext
1807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1808 $as_echo "$ac_res" >&6; }
1809 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1811 } # ac_fn_c_check_func
1813 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1814 # -------------------------------------------------------
1815 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1816 # the include files in INCLUDES and setting the cache variable VAR
1818 ac_fn_c_check_header_mongrel ()
1820 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1821 if eval \${$3+:} false; then :
1822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1823 $as_echo_n "checking for $2... " >&6; }
1824 if eval \${$3+:} false; then :
1825 $as_echo_n "(cached) " >&6
1828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1829 $as_echo "$ac_res" >&6; }
1831 # Is the header compilable?
1832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1833 $as_echo_n "checking $2 usability... " >&6; }
1834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1835 /* end confdefs.h. */
1839 if ac_fn_c_try_compile "$LINENO"; then :
1840 ac_header_compiler=yes
1842 ac_header_compiler=no
1844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1846 $as_echo "$ac_header_compiler" >&6; }
1848 # Is the header present?
1849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1850 $as_echo_n "checking $2 presence... " >&6; }
1851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1852 /* end confdefs.h. */
1855 if ac_fn_c_try_cpp "$LINENO"; then :
1856 ac_header_preproc=yes
1858 ac_header_preproc=no
1860 rm -f conftest.err conftest.i conftest.$ac_ext
1861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1862 $as_echo "$ac_header_preproc" >&6; }
1864 # So? What about this header?
1865 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1867 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1868 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1869 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1870 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1873 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1874 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1875 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1876 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1877 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1878 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1879 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1880 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1881 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1882 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1886 $as_echo_n "checking for $2... " >&6; }
1887 if eval \${$3+:} false; then :
1888 $as_echo_n "(cached) " >&6
1890 eval "$3=\$ac_header_compiler"
1893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1894 $as_echo "$ac_res" >&6; }
1896 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1898 } # ac_fn_c_check_header_mongrel
1900 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1901 # -------------------------------------------
1902 # Tests whether TYPE exists after having included INCLUDES, setting cache
1903 # variable VAR accordingly.
1904 ac_fn_c_check_type ()
1906 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1908 $as_echo_n "checking for $2... " >&6; }
1909 if eval \${$3+:} false; then :
1910 $as_echo_n "(cached) " >&6
1913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1914 /* end confdefs.h. */
1925 if ac_fn_c_try_compile "$LINENO"; then :
1926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1927 /* end confdefs.h. */
1938 if ac_fn_c_try_compile "$LINENO"; then :
1943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1949 $as_echo "$ac_res" >&6; }
1950 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1952 } # ac_fn_c_check_type
1954 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1955 # ----------------------------------------------------
1956 # Tries to find if the field MEMBER exists in type AGGR, after including
1957 # INCLUDES, setting cache variable VAR accordingly.
1958 ac_fn_c_check_member ()
1960 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1962 $as_echo_n "checking for $2.$3... " >&6; }
1963 if eval \${$4+:} false; then :
1964 $as_echo_n "(cached) " >&6
1966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1967 /* end confdefs.h. */
1979 if ac_fn_c_try_compile "$LINENO"; then :
1982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1983 /* end confdefs.h. */
1989 if (sizeof ac_aggr.$3)
1995 if ac_fn_c_try_compile "$LINENO"; then :
2000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2006 $as_echo "$ac_res" >&6; }
2007 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2009 } # ac_fn_c_check_member
2011 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2012 # --------------------------------------------
2013 # Tries to find the compile-time value of EXPR in a program that includes
2014 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2016 ac_fn_c_compute_int ()
2018 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2019 if test "$cross_compiling" = yes; then
2020 # Depending upon the size, compute the lo and hi bounds.
2021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2022 /* end confdefs.h. */
2027 static int test_array [1 - 2 * !(($2) >= 0)];
2034 if ac_fn_c_try_compile "$LINENO"; then :
2037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2038 /* end confdefs.h. */
2043 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2050 if ac_fn_c_try_compile "$LINENO"; then :
2051 ac_hi=$ac_mid; break
2053 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2054 if test $ac_lo -le $ac_mid; then
2058 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2064 /* end confdefs.h. */
2069 static int test_array [1 - 2 * !(($2) < 0)];
2076 if ac_fn_c_try_compile "$LINENO"; then :
2079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2080 /* end confdefs.h. */
2085 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2092 if ac_fn_c_try_compile "$LINENO"; then :
2093 ac_lo=$ac_mid; break
2095 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2096 if test $ac_mid -le $ac_hi; then
2100 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2110 # Binary search between lo and hi bounds.
2111 while test "x$ac_lo" != "x$ac_hi"; do
2112 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2114 /* end confdefs.h. */
2119 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2126 if ac_fn_c_try_compile "$LINENO"; then :
2129 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2134 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2139 /* end confdefs.h. */
2141 static long int longval () { return $2; }
2142 static unsigned long int ulongval () { return $2; }
2149 FILE *f = fopen ("conftest.val", "w");
2154 long int i = longval ();
2157 fprintf (f, "%ld", i);
2161 unsigned long int i = ulongval ();
2164 fprintf (f, "%lu", i);
2166 /* Do not output a trailing newline, as this causes \r\n confusion
2167 on some platforms. */
2168 return ferror (f) || fclose (f) != 0;
2174 if ac_fn_c_try_run "$LINENO"; then :
2175 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2179 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2180 conftest.$ac_objext conftest.beam conftest.$ac_ext
2184 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2185 as_fn_set_status $ac_retval
2187 } # ac_fn_c_compute_int
2188 cat >config.log <<_ACEOF
2189 This file contains any messages produced by compilers while
2190 running configure, to aid debugging if configure makes a mistake.
2192 It was created by $as_me, which was
2193 generated by GNU Autoconf 2.68. Invocation command line was
2205 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2206 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2207 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2208 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2209 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2211 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2212 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2214 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2215 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2216 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2217 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2218 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2219 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2220 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2228 test -z "$as_dir" && as_dir=.
2229 $as_echo "PATH: $as_dir"
2245 # Keep a trace of the command line.
2246 # Strip out --no-create and --no-recursion so they do not pile up.
2247 # Strip out --silent because we don't want to record it for future runs.
2248 # Also quote any args containing shell meta-characters.
2249 # Make two passes to allow for proper duplicate-argument suppression.
2253 ac_must_keep_next=false
2259 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2260 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2261 | -silent | --silent | --silen | --sile | --sil)
2264 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2267 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2269 as_fn_append ac_configure_args1 " '$ac_arg'"
2270 if test $ac_must_keep_next = true; then
2271 ac_must_keep_next=false # Got value, back to normal.
2274 *=* | --config-cache | -C | -disable-* | --disable-* \
2275 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2276 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2277 | -with-* | --with-* | -without-* | --without-* | --x)
2278 case "$ac_configure_args0 " in
2279 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2282 -* ) ac_must_keep_next=true ;;
2285 as_fn_append ac_configure_args " '$ac_arg'"
2290 { ac_configure_args0=; unset ac_configure_args0;}
2291 { ac_configure_args1=; unset ac_configure_args1;}
2293 # When interrupted or exit'd, cleanup temporary files, and complete
2294 # config.log. We remove comments because anyway the quotes in there
2295 # would cause problems or look ugly.
2296 # WARNING: Use '\'' to represent an apostrophe within the trap.
2297 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2298 trap 'exit_status=$?
2299 # Save into config.log some information that might help in debugging.
2303 $as_echo "## ---------------- ##
2304 ## Cache variables. ##
2305 ## ---------------- ##"
2307 # The following way of writing the cache mishandles newlines in values,
2309 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2310 eval ac_val=\$$ac_var
2314 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2315 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2318 _ | IFS | as_nl) ;; #(
2319 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2320 *) { eval $ac_var=; unset $ac_var;} ;;
2325 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2326 *${as_nl}ac_space=\ *)
2328 "s/'\''/'\''\\\\'\'''\''/g;
2329 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2332 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2339 $as_echo "## ----------------- ##
2340 ## Output variables. ##
2341 ## ----------------- ##"
2343 for ac_var in $ac_subst_vars
2345 eval ac_val=\$$ac_var
2347 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2349 $as_echo "$ac_var='\''$ac_val'\''"
2353 if test -n "$ac_subst_files"; then
2354 $as_echo "## ------------------- ##
2355 ## File substitutions. ##
2356 ## ------------------- ##"
2358 for ac_var in $ac_subst_files
2360 eval ac_val=\$$ac_var
2362 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2364 $as_echo "$ac_var='\''$ac_val'\''"
2369 if test -s confdefs.h; then
2370 $as_echo "## ----------- ##
2377 test "$ac_signal" != 0 &&
2378 $as_echo "$as_me: caught signal $ac_signal"
2379 $as_echo "$as_me: exit $exit_status"
2381 rm -f core *.core core.conftest.* &&
2382 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2385 for ac_signal in 1 2 13 15; do
2386 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2390 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2391 rm -f -r conftest* confdefs.h
2393 $as_echo "/* confdefs.h */" > confdefs.h
2395 # Predefined preprocessor variables.
2397 cat >>confdefs.h <<_ACEOF
2398 #define PACKAGE_NAME "$PACKAGE_NAME"
2401 cat >>confdefs.h <<_ACEOF
2402 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2405 cat >>confdefs.h <<_ACEOF
2406 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2409 cat >>confdefs.h <<_ACEOF
2410 #define PACKAGE_STRING "$PACKAGE_STRING"
2413 cat >>confdefs.h <<_ACEOF
2414 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2417 cat >>confdefs.h <<_ACEOF
2418 #define PACKAGE_URL "$PACKAGE_URL"
2422 # Let the site file select an alternate cache file if it wants to.
2423 # Prefer an explicitly selected file to automatically selected ones.
2426 if test -n "$CONFIG_SITE"; then
2427 # We do not want a PATH search for config.site.
2428 case $CONFIG_SITE in #((
2429 -*) ac_site_file1=./$CONFIG_SITE;;
2430 */*) ac_site_file1=$CONFIG_SITE;;
2431 *) ac_site_file1=./$CONFIG_SITE;;
2433 elif test "x$prefix" != xNONE; then
2434 ac_site_file1=$prefix/share/config.site
2435 ac_site_file2=$prefix/etc/config.site
2437 ac_site_file1=$ac_default_prefix/share/config.site
2438 ac_site_file2=$ac_default_prefix/etc/config.site
2440 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2442 test "x$ac_site_file" = xNONE && continue
2443 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2444 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2445 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2446 sed 's/^/| /' "$ac_site_file" >&5
2448 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2449 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2450 as_fn_error $? "failed to load site script $ac_site_file
2451 See \`config.log' for more details" "$LINENO" 5; }
2455 if test -r "$cache_file"; then
2456 # Some versions of bash will fail to source /dev/null (special files
2457 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2458 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2459 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2460 $as_echo "$as_me: loading cache $cache_file" >&6;}
2462 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2463 *) . "./$cache_file";;
2467 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2468 $as_echo "$as_me: creating cache $cache_file" >&6;}
2472 as_fn_append ac_header_list " stdlib.h"
2473 as_fn_append ac_header_list " unistd.h"
2474 as_fn_append ac_header_list " sys/param.h"
2475 # Check that the precious variables saved in the cache have kept the same
2477 ac_cache_corrupted=false
2478 for ac_var in $ac_precious_vars; do
2479 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2480 eval ac_new_set=\$ac_env_${ac_var}_set
2481 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2482 eval ac_new_val=\$ac_env_${ac_var}_value
2483 case $ac_old_set,$ac_new_set in
2485 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2486 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2487 ac_cache_corrupted=: ;;
2489 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2490 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2491 ac_cache_corrupted=: ;;
2494 if test "x$ac_old_val" != "x$ac_new_val"; then
2495 # differences in whitespace do not lead to failure.
2496 ac_old_val_w=`echo x $ac_old_val`
2497 ac_new_val_w=`echo x $ac_new_val`
2498 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2499 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2500 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2501 ac_cache_corrupted=:
2503 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2504 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2505 eval $ac_var=\$ac_old_val
2507 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2508 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2509 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2510 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2513 # Pass precious variables to config.status.
2514 if test "$ac_new_set" = set; then
2516 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2517 *) ac_arg=$ac_var=$ac_new_val ;;
2519 case " $ac_configure_args " in
2520 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2521 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2525 if $ac_cache_corrupted; then
2526 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2527 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2528 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2529 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2530 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2532 ## -------------------- ##
2533 ## Main body of script. ##
2534 ## -------------------- ##
2537 ac_cpp='$CPP $CPPFLAGS'
2538 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2539 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2540 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2545 am__api_version='1.11'
2548 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2549 if test -f "$ac_dir/install-sh"; then
2551 ac_install_sh="$ac_aux_dir/install-sh -c"
2553 elif test -f "$ac_dir/install.sh"; then
2555 ac_install_sh="$ac_aux_dir/install.sh -c"
2557 elif test -f "$ac_dir/shtool"; then
2559 ac_install_sh="$ac_aux_dir/shtool install -c"
2563 if test -z "$ac_aux_dir"; then
2564 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2567 # These three variables are undocumented and unsupported,
2568 # and are intended to be withdrawn in a future Autoconf release.
2569 # They can cause serious problems if a builder's source tree is in a directory
2570 # whose full name contains unusual characters.
2571 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2572 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2573 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2576 # Find a good install program. We prefer a C program (faster),
2577 # so one script is as good as another. But avoid the broken or
2578 # incompatible versions:
2579 # SysV /etc/install, /usr/sbin/install
2580 # SunOS /usr/etc/install
2581 # IRIX /sbin/install
2583 # AmigaOS /C/install, which installs bootblocks on floppy discs
2584 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2585 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2586 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2587 # OS/2's system install, which has a completely different semantic
2588 # ./install, which can be erroneously created by make from ./install.sh.
2589 # Reject install programs that cannot install multiple files.
2590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2591 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2592 if test -z "$INSTALL"; then
2593 if ${ac_cv_path_install+:} false; then :
2594 $as_echo_n "(cached) " >&6
2596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2600 test -z "$as_dir" && as_dir=.
2601 # Account for people who put trailing slashes in PATH elements.
2602 case $as_dir/ in #((
2603 ./ | .// | /[cC]/* | \
2604 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2605 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2608 # OSF1 and SCO ODT 3.0 have their own names for install.
2609 # Don't use installbsd from OSF since it installs stuff as root
2611 for ac_prog in ginstall scoinst install; do
2612 for ac_exec_ext in '' $ac_executable_extensions; do
2613 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2614 if test $ac_prog = install &&
2615 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2616 # AIX install. It has an incompatible calling convention.
2618 elif test $ac_prog = install &&
2619 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2620 # program-specific install script used by HP pwplus--don't use.
2623 rm -rf conftest.one conftest.two conftest.dir
2624 echo one > conftest.one
2625 echo two > conftest.two
2627 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2628 test -s conftest.one && test -s conftest.two &&
2629 test -s conftest.dir/conftest.one &&
2630 test -s conftest.dir/conftest.two
2632 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2645 rm -rf conftest.one conftest.two conftest.dir
2648 if test "${ac_cv_path_install+set}" = set; then
2649 INSTALL=$ac_cv_path_install
2651 # As a last resort, use the slow shell script. Don't cache a
2652 # value for INSTALL within a source directory, because that will
2653 # break other packages using the cache if that directory is
2654 # removed, or if the value is a relative name.
2655 INSTALL=$ac_install_sh
2658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2659 $as_echo "$INSTALL" >&6; }
2661 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2662 # It thinks the first close brace ends the variable substitution.
2663 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2665 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2667 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2670 $as_echo_n "checking whether build environment is sane... " >&6; }
2673 echo timestamp > conftest.file
2674 # Reject unsafe characters in $srcdir or the absolute working directory
2675 # name. Accept space and tab only in the latter.
2679 *[\\\"\#\$\&\'\`$am_lf]*)
2680 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2683 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2684 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2687 # Do `set' in a subshell so we don't clobber the current shell's
2688 # arguments. Must try -L first in case configure is actually a
2689 # symlink; some systems play weird games with the mod time of symlinks
2690 # (eg FreeBSD returns the mod time of the symlink's containing
2693 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2694 if test "$*" = "X"; then
2696 set X `ls -t "$srcdir/configure" conftest.file`
2699 if test "$*" != "X $srcdir/configure conftest.file" \
2700 && test "$*" != "X conftest.file $srcdir/configure"; then
2702 # If neither matched, then we have a broken ls. This can happen
2703 # if, for instance, CONFIG_SHELL is bash and it inherits a
2704 # broken ls alias from the environment. This has actually
2705 # happened. Such a system could not be considered "sane".
2706 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2707 alias in your environment" "$LINENO" 5
2710 test "$2" = conftest.file
2716 as_fn_error $? "newly created file is older than distributed files!
2717 Check your system clock" "$LINENO" 5
2719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2720 $as_echo "yes" >&6; }
2721 test "$program_prefix" != NONE &&
2722 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2723 # Use a double $ so make ignores it.
2724 test "$program_suffix" != NONE &&
2725 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2726 # Double any \ or $.
2727 # By default was `s,x,x', remove it if useless.
2728 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2729 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2731 # expand $ac_aux_dir to an absolute path
2732 am_aux_dir=`cd $ac_aux_dir && pwd`
2734 if test x"${MISSING+set}" != xset; then
2737 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2739 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2742 # Use eval to expand $SHELL
2743 if eval "$MISSING --run true"; then
2744 am_missing_run="$MISSING --run "
2747 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2748 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2751 if test x"${install_sh}" != xset; then
2754 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2756 install_sh="\${SHELL} $am_aux_dir/install-sh"
2760 # Installed binaries are usually stripped using `strip' when the user
2761 # run `make install-strip'. However `strip' might not be the right
2762 # tool to use in cross-compilation environments, therefore Automake
2763 # will honor the `STRIP' environment variable to overrule this program.
2764 if test "$cross_compiling" != no; then
2765 if test -n "$ac_tool_prefix"; then
2766 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2767 set dummy ${ac_tool_prefix}strip; ac_word=$2
2768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2769 $as_echo_n "checking for $ac_word... " >&6; }
2770 if ${ac_cv_prog_STRIP+:} false; then :
2771 $as_echo_n "(cached) " >&6
2773 if test -n "$STRIP"; then
2774 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2780 test -z "$as_dir" && as_dir=.
2781 for ac_exec_ext in '' $ac_executable_extensions; do
2782 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2783 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2793 STRIP=$ac_cv_prog_STRIP
2794 if test -n "$STRIP"; then
2795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2796 $as_echo "$STRIP" >&6; }
2798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2799 $as_echo "no" >&6; }
2804 if test -z "$ac_cv_prog_STRIP"; then
2806 # Extract the first word of "strip", so it can be a program name with args.
2807 set dummy strip; ac_word=$2
2808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2809 $as_echo_n "checking for $ac_word... " >&6; }
2810 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2811 $as_echo_n "(cached) " >&6
2813 if test -n "$ac_ct_STRIP"; then
2814 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2820 test -z "$as_dir" && as_dir=.
2821 for ac_exec_ext in '' $ac_executable_extensions; do
2822 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2823 ac_cv_prog_ac_ct_STRIP="strip"
2824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2833 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2834 if test -n "$ac_ct_STRIP"; then
2835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2836 $as_echo "$ac_ct_STRIP" >&6; }
2838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2839 $as_echo "no" >&6; }
2842 if test "x$ac_ct_STRIP" = x; then
2845 case $cross_compiling:$ac_tool_warned in
2847 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2848 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2849 ac_tool_warned=yes ;;
2854 STRIP="$ac_cv_prog_STRIP"
2858 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2861 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2862 if test -z "$MKDIR_P"; then
2863 if ${ac_cv_path_mkdir+:} false; then :
2864 $as_echo_n "(cached) " >&6
2866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2867 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2870 test -z "$as_dir" && as_dir=.
2871 for ac_prog in mkdir gmkdir; do
2872 for ac_exec_ext in '' $ac_executable_extensions; do
2873 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2874 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2875 'mkdir (GNU coreutils) '* | \
2876 'mkdir (coreutils) '* | \
2877 'mkdir (fileutils) '4.1*)
2878 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2888 test -d ./--version && rmdir ./--version
2889 if test "${ac_cv_path_mkdir+set}" = set; then
2890 MKDIR_P="$ac_cv_path_mkdir -p"
2892 # As a last resort, use the slow shell script. Don't cache a
2893 # value for MKDIR_P within a source directory, because that will
2894 # break other packages using the cache if that directory is
2895 # removed, or if the value is a relative name.
2896 MKDIR_P="$ac_install_sh -d"
2899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2900 $as_echo "$MKDIR_P" >&6; }
2904 [\\/$]* | ?:[\\/]*) ;;
2905 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2908 for ac_prog in gawk mawk nawk awk
2910 # Extract the first word of "$ac_prog", so it can be a program name with args.
2911 set dummy $ac_prog; ac_word=$2
2912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2913 $as_echo_n "checking for $ac_word... " >&6; }
2914 if ${ac_cv_prog_AWK+:} false; then :
2915 $as_echo_n "(cached) " >&6
2917 if test -n "$AWK"; then
2918 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2924 test -z "$as_dir" && as_dir=.
2925 for ac_exec_ext in '' $ac_executable_extensions; do
2926 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2927 ac_cv_prog_AWK="$ac_prog"
2928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2938 if test -n "$AWK"; then
2939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2940 $as_echo "$AWK" >&6; }
2942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2943 $as_echo "no" >&6; }
2947 test -n "$AWK" && break
2950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2951 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2953 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2954 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2955 $as_echo_n "(cached) " >&6
2957 cat >conftest.make <<\_ACEOF
2960 @echo '@@@%%%=$(MAKE)=@@@%%%'
2962 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2963 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2965 eval ac_cv_prog_make_${ac_make}_set=yes;;
2967 eval ac_cv_prog_make_${ac_make}_set=no;;
2971 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2973 $as_echo "yes" >&6; }
2976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2977 $as_echo "no" >&6; }
2978 SET_MAKE="MAKE=${MAKE-make}"
2981 rm -rf .tst 2>/dev/null
2982 mkdir .tst 2>/dev/null
2983 if test -d .tst; then
2988 rmdir .tst 2>/dev/null
2990 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2991 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2992 # is not polluted with repeated "-I."
2993 am__isrc=' -I$(srcdir)'
2994 # test to see if srcdir already configured
2995 if test -f $srcdir/config.status; then
2996 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3000 # test whether we have cygpath
3001 if test -z "$CYGPATH_W"; then
3002 if (cygpath --version) >/dev/null 2>/dev/null; then
3003 CYGPATH_W='cygpath -w'
3010 # Define the identity of the package.
3015 cat >>confdefs.h <<_ACEOF
3016 #define PACKAGE "$PACKAGE"
3020 cat >>confdefs.h <<_ACEOF
3021 #define VERSION "$VERSION"
3024 # Some tools Automake needs.
3026 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3029 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3032 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3035 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3038 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3040 # We need awk for the "check" target. The system "awk" is bad on
3042 # Always define AMTAR for backward compatibility.
3044 AMTAR=${AMTAR-"${am_missing_run}tar"}
3046 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3052 # Check whether --enable-silent-rules was given.
3053 if test "${enable_silent_rules+set}" = set; then :
3054 enableval=$enable_silent_rules;
3057 case $enable_silent_rules in
3058 yes) AM_DEFAULT_VERBOSITY=0;;
3059 no) AM_DEFAULT_VERBOSITY=1;;
3060 *) AM_DEFAULT_VERBOSITY=0;;
3072 LIBT_VERSION_INFO="$LIBT_CURRENT:$LIBT_REVISION:$LIBT_AGE"
3075 LIBT_CURRENT_MINUS_AGE=`expr $LIBT_CURRENT - $LIBT_AGE`
3079 ac_config_headers="$ac_config_headers config.h"
3083 ac_cpp='$CPP $CPPFLAGS'
3084 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3085 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3086 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3087 if test -n "$ac_tool_prefix"; then
3088 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3089 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3091 $as_echo_n "checking for $ac_word... " >&6; }
3092 if ${ac_cv_prog_CC+:} false; then :
3093 $as_echo_n "(cached) " >&6
3095 if test -n "$CC"; then
3096 ac_cv_prog_CC="$CC" # Let the user override the test.
3098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3102 test -z "$as_dir" && as_dir=.
3103 for ac_exec_ext in '' $ac_executable_extensions; do
3104 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3105 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3116 if test -n "$CC"; then
3117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3118 $as_echo "$CC" >&6; }
3120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3121 $as_echo "no" >&6; }
3126 if test -z "$ac_cv_prog_CC"; then
3128 # Extract the first word of "gcc", so it can be a program name with args.
3129 set dummy gcc; ac_word=$2
3130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3131 $as_echo_n "checking for $ac_word... " >&6; }
3132 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3133 $as_echo_n "(cached) " >&6
3135 if test -n "$ac_ct_CC"; then
3136 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3142 test -z "$as_dir" && as_dir=.
3143 for ac_exec_ext in '' $ac_executable_extensions; do
3144 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3145 ac_cv_prog_ac_ct_CC="gcc"
3146 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3155 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3156 if test -n "$ac_ct_CC"; then
3157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3158 $as_echo "$ac_ct_CC" >&6; }
3160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3161 $as_echo "no" >&6; }
3164 if test "x$ac_ct_CC" = x; then
3167 case $cross_compiling:$ac_tool_warned in
3169 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3170 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3171 ac_tool_warned=yes ;;
3179 if test -z "$CC"; then
3180 if test -n "$ac_tool_prefix"; then
3181 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3182 set dummy ${ac_tool_prefix}cc; ac_word=$2
3183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3184 $as_echo_n "checking for $ac_word... " >&6; }
3185 if ${ac_cv_prog_CC+:} false; then :
3186 $as_echo_n "(cached) " >&6
3188 if test -n "$CC"; then
3189 ac_cv_prog_CC="$CC" # Let the user override the test.
3191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3195 test -z "$as_dir" && as_dir=.
3196 for ac_exec_ext in '' $ac_executable_extensions; do
3197 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3198 ac_cv_prog_CC="${ac_tool_prefix}cc"
3199 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3209 if test -n "$CC"; then
3210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3211 $as_echo "$CC" >&6; }
3213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3214 $as_echo "no" >&6; }
3220 if test -z "$CC"; then
3221 # Extract the first word of "cc", so it can be a program name with args.
3222 set dummy cc; ac_word=$2
3223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3224 $as_echo_n "checking for $ac_word... " >&6; }
3225 if ${ac_cv_prog_CC+:} false; then :
3226 $as_echo_n "(cached) " >&6
3228 if test -n "$CC"; then
3229 ac_cv_prog_CC="$CC" # Let the user override the test.
3232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3236 test -z "$as_dir" && as_dir=.
3237 for ac_exec_ext in '' $ac_executable_extensions; do
3238 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3239 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3240 ac_prog_rejected=yes
3244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3251 if test $ac_prog_rejected = yes; then
3252 # We found a bogon in the path, so make sure we never use it.
3253 set dummy $ac_cv_prog_CC
3255 if test $# != 0; then
3256 # We chose a different compiler from the bogus one.
3257 # However, it has the same basename, so the bogon will be chosen
3258 # first if we set CC to just the basename; use the full file name.
3260 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3266 if test -n "$CC"; then
3267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3268 $as_echo "$CC" >&6; }
3270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3271 $as_echo "no" >&6; }
3276 if test -z "$CC"; then
3277 if test -n "$ac_tool_prefix"; then
3278 for ac_prog in cl.exe
3280 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3281 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3283 $as_echo_n "checking for $ac_word... " >&6; }
3284 if ${ac_cv_prog_CC+:} false; then :
3285 $as_echo_n "(cached) " >&6
3287 if test -n "$CC"; then
3288 ac_cv_prog_CC="$CC" # Let the user override the test.
3290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3294 test -z "$as_dir" && as_dir=.
3295 for ac_exec_ext in '' $ac_executable_extensions; do
3296 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3297 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3308 if test -n "$CC"; then
3309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3310 $as_echo "$CC" >&6; }
3312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3313 $as_echo "no" >&6; }
3317 test -n "$CC" && break
3320 if test -z "$CC"; then
3322 for ac_prog in cl.exe
3324 # Extract the first word of "$ac_prog", so it can be a program name with args.
3325 set dummy $ac_prog; ac_word=$2
3326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3327 $as_echo_n "checking for $ac_word... " >&6; }
3328 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3329 $as_echo_n "(cached) " >&6
3331 if test -n "$ac_ct_CC"; then
3332 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3338 test -z "$as_dir" && as_dir=.
3339 for ac_exec_ext in '' $ac_executable_extensions; do
3340 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3341 ac_cv_prog_ac_ct_CC="$ac_prog"
3342 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3351 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3352 if test -n "$ac_ct_CC"; then
3353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3354 $as_echo "$ac_ct_CC" >&6; }
3356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3357 $as_echo "no" >&6; }
3361 test -n "$ac_ct_CC" && break
3364 if test "x$ac_ct_CC" = x; then
3367 case $cross_compiling:$ac_tool_warned in
3369 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3370 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3371 ac_tool_warned=yes ;;
3380 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3381 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3382 as_fn_error $? "no acceptable C compiler found in \$PATH
3383 See \`config.log' for more details" "$LINENO" 5; }
3385 # Provide some information about the compiler.
3386 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3389 for ac_option in --version -v -V -qversion; do
3390 { { ac_try="$ac_compiler $ac_option >&5"
3392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3393 *) ac_try_echo=$ac_try;;
3395 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3396 $as_echo "$ac_try_echo"; } >&5
3397 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3399 if test -s conftest.err; then
3401 ... rest of stderr output deleted ...
3402 10q' conftest.err >conftest.er1
3403 cat conftest.er1 >&5
3405 rm -f conftest.er1 conftest.err
3406 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3407 test $ac_status = 0; }
3410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3411 /* end confdefs.h. */
3421 ac_clean_files_save=$ac_clean_files
3422 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3423 # Try to create an executable without -o first, disregard a.out.
3424 # It will help us diagnose broken compilers, and finding out an intuition
3426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3427 $as_echo_n "checking whether the C compiler works... " >&6; }
3428 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3430 # The possible output files:
3431 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3434 for ac_file in $ac_files
3437 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3438 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3443 if { { ac_try="$ac_link_default"
3445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3446 *) ac_try_echo=$ac_try;;
3448 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3449 $as_echo "$ac_try_echo"; } >&5
3450 (eval "$ac_link_default") 2>&5
3452 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3453 test $ac_status = 0; }; then :
3454 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3455 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3456 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3457 # so that the user can short-circuit this test for compilers unknown to
3459 for ac_file in $ac_files ''
3461 test -f "$ac_file" || continue
3463 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3466 # We found the default executable, but exeext='' is most
3470 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3472 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3474 # We set ac_cv_exeext here because the later test for it is not
3475 # safe: cross compilers may not add the suffix if given an `-o'
3476 # argument, so we may need to know it at that point already.
3477 # Even if this section looks crufty: it has the advantage of
3484 test "$ac_cv_exeext" = no && ac_cv_exeext=
3489 if test -z "$ac_file"; then :
3490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3491 $as_echo "no" >&6; }
3492 $as_echo "$as_me: failed program was:" >&5
3493 sed 's/^/| /' conftest.$ac_ext >&5
3495 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3496 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3497 as_fn_error 77 "C compiler cannot create executables
3498 See \`config.log' for more details" "$LINENO" 5; }
3500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3501 $as_echo "yes" >&6; }
3503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3504 $as_echo_n "checking for C compiler default output file name... " >&6; }
3505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3506 $as_echo "$ac_file" >&6; }
3507 ac_exeext=$ac_cv_exeext
3509 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3510 ac_clean_files=$ac_clean_files_save
3511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3512 $as_echo_n "checking for suffix of executables... " >&6; }
3513 if { { ac_try="$ac_link"
3515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3516 *) ac_try_echo=$ac_try;;
3518 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3519 $as_echo "$ac_try_echo"; } >&5
3520 (eval "$ac_link") 2>&5
3522 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3523 test $ac_status = 0; }; then :
3524 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3525 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3526 # work properly (i.e., refer to `conftest.exe'), while it won't with
3528 for ac_file in conftest.exe conftest conftest.*; do
3529 test -f "$ac_file" || continue
3531 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3532 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3538 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3539 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3540 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3541 See \`config.log' for more details" "$LINENO" 5; }
3543 rm -f conftest conftest$ac_cv_exeext
3544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3545 $as_echo "$ac_cv_exeext" >&6; }
3547 rm -f conftest.$ac_ext
3548 EXEEXT=$ac_cv_exeext
3550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3551 /* end confdefs.h. */
3556 FILE *f = fopen ("conftest.out", "w");
3557 return ferror (f) || fclose (f) != 0;
3563 ac_clean_files="$ac_clean_files conftest.out"
3564 # Check that the compiler produces executables we can run. If not, either
3565 # the compiler is broken, or we cross compile.
3566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3567 $as_echo_n "checking whether we are cross compiling... " >&6; }
3568 if test "$cross_compiling" != yes; then
3569 { { ac_try="$ac_link"
3571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3572 *) ac_try_echo=$ac_try;;
3574 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3575 $as_echo "$ac_try_echo"; } >&5
3576 (eval "$ac_link") 2>&5
3578 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3579 test $ac_status = 0; }
3580 if { ac_try='./conftest$ac_cv_exeext'
3581 { { case "(($ac_try" in
3582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3583 *) ac_try_echo=$ac_try;;
3585 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3586 $as_echo "$ac_try_echo"; } >&5
3587 (eval "$ac_try") 2>&5
3589 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3590 test $ac_status = 0; }; }; then
3593 if test "$cross_compiling" = maybe; then
3596 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3597 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3598 as_fn_error $? "cannot run C compiled programs.
3599 If you meant to cross compile, use \`--host'.
3600 See \`config.log' for more details" "$LINENO" 5; }
3604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3605 $as_echo "$cross_compiling" >&6; }
3607 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3608 ac_clean_files=$ac_clean_files_save
3609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3610 $as_echo_n "checking for suffix of object files... " >&6; }
3611 if ${ac_cv_objext+:} false; then :
3612 $as_echo_n "(cached) " >&6
3614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3615 /* end confdefs.h. */
3625 rm -f conftest.o conftest.obj
3626 if { { ac_try="$ac_compile"
3628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3629 *) ac_try_echo=$ac_try;;
3631 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3632 $as_echo "$ac_try_echo"; } >&5
3633 (eval "$ac_compile") 2>&5
3635 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3636 test $ac_status = 0; }; then :
3637 for ac_file in conftest.o conftest.obj conftest.*; do
3638 test -f "$ac_file" || continue;
3640 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3641 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3646 $as_echo "$as_me: failed program was:" >&5
3647 sed 's/^/| /' conftest.$ac_ext >&5
3649 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3650 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3651 as_fn_error $? "cannot compute suffix of object files: cannot compile
3652 See \`config.log' for more details" "$LINENO" 5; }
3654 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3657 $as_echo "$ac_cv_objext" >&6; }
3658 OBJEXT=$ac_cv_objext
3660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3661 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3662 if ${ac_cv_c_compiler_gnu+:} false; then :
3663 $as_echo_n "(cached) " >&6
3665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3666 /* end confdefs.h. */
3679 if ac_fn_c_try_compile "$LINENO"; then :
3684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3685 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3689 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3690 if test $ac_compiler_gnu = yes; then
3695 ac_test_CFLAGS=${CFLAGS+set}
3696 ac_save_CFLAGS=$CFLAGS
3697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3698 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3699 if ${ac_cv_prog_cc_g+:} false; then :
3700 $as_echo_n "(cached) " >&6
3702 ac_save_c_werror_flag=$ac_c_werror_flag
3703 ac_c_werror_flag=yes
3706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3707 /* end confdefs.h. */
3717 if ac_fn_c_try_compile "$LINENO"; then :
3721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3722 /* end confdefs.h. */
3732 if ac_fn_c_try_compile "$LINENO"; then :
3735 ac_c_werror_flag=$ac_save_c_werror_flag
3737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3738 /* end confdefs.h. */
3748 if ac_fn_c_try_compile "$LINENO"; then :
3751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3756 ac_c_werror_flag=$ac_save_c_werror_flag
3758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3759 $as_echo "$ac_cv_prog_cc_g" >&6; }
3760 if test "$ac_test_CFLAGS" = set; then
3761 CFLAGS=$ac_save_CFLAGS
3762 elif test $ac_cv_prog_cc_g = yes; then
3763 if test "$GCC" = yes; then
3769 if test "$GCC" = yes; then
3775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3776 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3777 if ${ac_cv_prog_cc_c89+:} false; then :
3778 $as_echo_n "(cached) " >&6
3780 ac_cv_prog_cc_c89=no
3782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3783 /* end confdefs.h. */
3786 #include <sys/types.h>
3787 #include <sys/stat.h>
3788 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3789 struct buf { int x; };
3790 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3791 static char *e (p, i)
3797 static char *f (char * (*g) (char **, int), char **p, ...)
3802 s = g (p, va_arg (v,int));
3807 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3808 function prototypes and stuff, but not '\xHH' hex character constants.
3809 These don't provoke an error unfortunately, instead are silently treated
3810 as 'x'. The following induces an error, until -std is added to get
3811 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3812 array size at least. It's necessary to write '\x00'==0 to get something
3813 that's true only with -std. */
3814 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3816 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3817 inside strings and character constants. */
3819 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3821 int test (int i, double x);
3822 struct s1 {int (*f) (int a);};
3823 struct s2 {int (*f) (double a);};
3824 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3830 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3835 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3836 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3838 CC="$ac_save_CC $ac_arg"
3839 if ac_fn_c_try_compile "$LINENO"; then :
3840 ac_cv_prog_cc_c89=$ac_arg
3842 rm -f core conftest.err conftest.$ac_objext
3843 test "x$ac_cv_prog_cc_c89" != "xno" && break
3845 rm -f conftest.$ac_ext
3850 case "x$ac_cv_prog_cc_c89" in
3852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3853 $as_echo "none needed" >&6; } ;;
3855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3856 $as_echo "unsupported" >&6; } ;;
3858 CC="$CC $ac_cv_prog_cc_c89"
3859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3860 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3862 if test "x$ac_cv_prog_cc_c89" != xno; then :
3867 ac_cpp='$CPP $CPPFLAGS'
3868 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3869 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3870 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3871 DEPDIR="${am__leading_dot}deps"
3873 ac_config_commands="$ac_config_commands depfiles"
3876 am_make=${MAKE-make}
3877 cat > confinc << 'END'
3879 @echo this is the am__doit target
3882 # If we don't find an include directive, just comment out the code.
3883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3884 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3888 # First try GNU make style include.
3889 echo "include confinc" > confmf
3890 # Ignore all kinds of additional output from `make'.
3891 case `$am_make -s -f confmf 2> /dev/null` in #(
3892 *the\ am__doit\ target*)
3898 # Now try BSD make style include.
3899 if test "$am__include" = "#"; then
3900 echo '.include "confinc"' > confmf
3901 case `$am_make -s -f confmf 2> /dev/null` in #(
3902 *the\ am__doit\ target*)
3903 am__include=.include
3911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3912 $as_echo "$_am_result" >&6; }
3913 rm -f confinc confmf
3915 # Check whether --enable-dependency-tracking was given.
3916 if test "${enable_dependency_tracking+set}" = set; then :
3917 enableval=$enable_dependency_tracking;
3920 if test "x$enable_dependency_tracking" != xno; then
3921 am_depcomp="$ac_aux_dir/depcomp"
3924 if test "x$enable_dependency_tracking" != xno; then
3934 depcc="$CC" am_compiler_list=
3936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3937 $as_echo_n "checking dependency style of $depcc... " >&6; }
3938 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3939 $as_echo_n "(cached) " >&6
3941 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3942 # We make a subdir and do the tests there. Otherwise we can end up
3943 # making bogus files that we don't know about and never remove. For
3944 # instance it was reported that on HP-UX the gcc test will end up
3945 # making a dummy file named `D' -- because `-MD' means `put the output
3948 # Copy depcomp to subdir because otherwise we won't find it if we're
3949 # using a relative directory.
3950 cp "$am_depcomp" conftest.dir
3952 # We will build objects and dependencies in a subdirectory because
3953 # it helps to detect inapplicable dependency modes. For instance
3954 # both Tru64's cc and ICC support -MD to output dependencies as a
3955 # side effect of compilation, but ICC will put the dependencies in
3956 # the current directory while Tru64 will put them in the object
3960 am_cv_CC_dependencies_compiler_type=none
3961 if test "$am_compiler_list" = ""; then
3962 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3965 case " $depcc " in #(
3966 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3969 for depmode in $am_compiler_list; do
3970 # Setup a source with many dependencies, because some compilers
3971 # like to wrap large dependency lists on column 80 (with \), and
3972 # we should not choose a depcomp mode which is confused by this.
3974 # We need to recreate these files for each test, as the compiler may
3975 # overwrite some of them when testing with obscure command lines.
3976 # This happens at least with the AIX C compiler.
3978 for i in 1 2 3 4 5 6; do
3979 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3980 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3981 # Solaris 8's {/usr,}/bin/sh.
3982 touch sub/conftst$i.h
3984 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3986 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3987 # mode. It turns out that the SunPro C++ compiler does not properly
3988 # handle `-M -o', and we need to detect this. Also, some Intel
3989 # versions had trouble with output in subdirs
3990 am__obj=sub/conftest.${OBJEXT-o}
3991 am__minus_obj="-o $am__obj"
3994 # This depmode causes a compiler race in universal mode.
3995 test "$am__universal" = false || continue
3998 # after this tag, mechanisms are not by side-effect, so they'll
3999 # only be used when explicitly requested
4000 if test "x$enable_dependency_tracking" = xyes; then
4006 msvisualcpp | msvcmsys)
4007 # This compiler won't grok `-c -o', but also, the minuso test has
4008 # not run yet. These depmodes are late enough in the game, and
4009 # so weak that their functioning should not be impacted.
4010 am__obj=conftest.${OBJEXT-o}
4015 if depmode=$depmode \
4016 source=sub/conftest.c object=$am__obj \
4017 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4018 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4019 >/dev/null 2>conftest.err &&
4020 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4021 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4022 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4023 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4024 # icc doesn't choke on unknown options, it will just issue warnings
4025 # or remarks (even with -Werror). So we grep stderr for any message
4026 # that says an option was ignored or not supported.
4027 # When given -MP, icc 7.0 and 7.1 complain thusly:
4028 # icc: Command line warning: ignoring option '-M'; no argument required
4029 # The diagnosis changed in icc 8.0:
4030 # icc: Command line remark: option '-MP' not supported
4031 if (grep 'ignoring option' conftest.err ||
4032 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4033 am_cv_CC_dependencies_compiler_type=$depmode
4042 am_cv_CC_dependencies_compiler_type=none
4046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4047 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4048 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4051 test "x$enable_dependency_tracking" != xno \
4052 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4054 am__fastdepCC_FALSE='#'
4056 am__fastdepCC_TRUE='#'
4057 am__fastdepCC_FALSE=
4062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4063 $as_echo_n "checking whether ln -s works... " >&6; }
4065 if test "$LN_S" = "ln -s"; then
4066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4067 $as_echo "yes" >&6; }
4069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4070 $as_echo "no, using $LN_S" >&6; }
4073 # Make sure we can run config.sub.
4074 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4075 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4078 $as_echo_n "checking build system type... " >&6; }
4079 if ${ac_cv_build+:} false; then :
4080 $as_echo_n "(cached) " >&6
4082 ac_build_alias=$build_alias
4083 test "x$ac_build_alias" = x &&
4084 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4085 test "x$ac_build_alias" = x &&
4086 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4087 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4088 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4092 $as_echo "$ac_cv_build" >&6; }
4093 case $ac_cv_build in
4095 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4098 ac_save_IFS=$IFS; IFS='-'
4104 # Remember, the first character of IFS is used to create $*,
4105 # except with old shells:
4108 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4112 $as_echo_n "checking host system type... " >&6; }
4113 if ${ac_cv_host+:} false; then :
4114 $as_echo_n "(cached) " >&6
4116 if test "x$host_alias" = x; then
4117 ac_cv_host=$ac_cv_build
4119 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4120 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4125 $as_echo "$ac_cv_host" >&6; }
4128 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4131 ac_save_IFS=$IFS; IFS='-'
4137 # Remember, the first character of IFS is used to create $*,
4138 # except with old shells:
4141 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4144 enable_win32_dll=yes
4147 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
4148 if test -n "$ac_tool_prefix"; then
4149 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4150 set dummy ${ac_tool_prefix}as; ac_word=$2
4151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4152 $as_echo_n "checking for $ac_word... " >&6; }
4153 if ${ac_cv_prog_AS+:} false; then :
4154 $as_echo_n "(cached) " >&6
4156 if test -n "$AS"; then
4157 ac_cv_prog_AS="$AS" # Let the user override the test.
4159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4163 test -z "$as_dir" && as_dir=.
4164 for ac_exec_ext in '' $ac_executable_extensions; do
4165 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4166 ac_cv_prog_AS="${ac_tool_prefix}as"
4167 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4177 if test -n "$AS"; then
4178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
4179 $as_echo "$AS" >&6; }
4181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4182 $as_echo "no" >&6; }
4187 if test -z "$ac_cv_prog_AS"; then
4189 # Extract the first word of "as", so it can be a program name with args.
4190 set dummy as; ac_word=$2
4191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4192 $as_echo_n "checking for $ac_word... " >&6; }
4193 if ${ac_cv_prog_ac_ct_AS+:} false; then :
4194 $as_echo_n "(cached) " >&6
4196 if test -n "$ac_ct_AS"; then
4197 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4203 test -z "$as_dir" && as_dir=.
4204 for ac_exec_ext in '' $ac_executable_extensions; do
4205 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4206 ac_cv_prog_ac_ct_AS="as"
4207 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4216 ac_ct_AS=$ac_cv_prog_ac_ct_AS
4217 if test -n "$ac_ct_AS"; then
4218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
4219 $as_echo "$ac_ct_AS" >&6; }
4221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4222 $as_echo "no" >&6; }
4225 if test "x$ac_ct_AS" = x; then
4228 case $cross_compiling:$ac_tool_warned in
4230 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4231 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4232 ac_tool_warned=yes ;;
4240 if test -n "$ac_tool_prefix"; then
4241 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4242 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4244 $as_echo_n "checking for $ac_word... " >&6; }
4245 if ${ac_cv_prog_DLLTOOL+:} false; then :
4246 $as_echo_n "(cached) " >&6
4248 if test -n "$DLLTOOL"; then
4249 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4255 test -z "$as_dir" && as_dir=.
4256 for ac_exec_ext in '' $ac_executable_extensions; do
4257 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4258 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4259 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4268 DLLTOOL=$ac_cv_prog_DLLTOOL
4269 if test -n "$DLLTOOL"; then
4270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
4271 $as_echo "$DLLTOOL" >&6; }
4273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4274 $as_echo "no" >&6; }
4279 if test -z "$ac_cv_prog_DLLTOOL"; then
4280 ac_ct_DLLTOOL=$DLLTOOL
4281 # Extract the first word of "dlltool", so it can be a program name with args.
4282 set dummy dlltool; ac_word=$2
4283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4284 $as_echo_n "checking for $ac_word... " >&6; }
4285 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
4286 $as_echo_n "(cached) " >&6
4288 if test -n "$ac_ct_DLLTOOL"; then
4289 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4295 test -z "$as_dir" && as_dir=.
4296 for ac_exec_ext in '' $ac_executable_extensions; do
4297 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4298 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4308 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4309 if test -n "$ac_ct_DLLTOOL"; then
4310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
4311 $as_echo "$ac_ct_DLLTOOL" >&6; }
4313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4314 $as_echo "no" >&6; }
4317 if test "x$ac_ct_DLLTOOL" = x; then
4320 case $cross_compiling:$ac_tool_warned in
4322 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4323 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4324 ac_tool_warned=yes ;;
4326 DLLTOOL=$ac_ct_DLLTOOL
4329 DLLTOOL="$ac_cv_prog_DLLTOOL"
4332 if test -n "$ac_tool_prefix"; then
4333 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4334 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4336 $as_echo_n "checking for $ac_word... " >&6; }
4337 if ${ac_cv_prog_OBJDUMP+:} false; then :
4338 $as_echo_n "(cached) " >&6
4340 if test -n "$OBJDUMP"; then
4341 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4347 test -z "$as_dir" && as_dir=.
4348 for ac_exec_ext in '' $ac_executable_extensions; do
4349 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4350 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4351 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4360 OBJDUMP=$ac_cv_prog_OBJDUMP
4361 if test -n "$OBJDUMP"; then
4362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4363 $as_echo "$OBJDUMP" >&6; }
4365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4366 $as_echo "no" >&6; }
4371 if test -z "$ac_cv_prog_OBJDUMP"; then
4372 ac_ct_OBJDUMP=$OBJDUMP
4373 # Extract the first word of "objdump", so it can be a program name with args.
4374 set dummy objdump; ac_word=$2
4375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4376 $as_echo_n "checking for $ac_word... " >&6; }
4377 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4378 $as_echo_n "(cached) " >&6
4380 if test -n "$ac_ct_OBJDUMP"; then
4381 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4387 test -z "$as_dir" && as_dir=.
4388 for ac_exec_ext in '' $ac_executable_extensions; do
4389 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4390 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4391 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4400 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4401 if test -n "$ac_ct_OBJDUMP"; then
4402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4403 $as_echo "$ac_ct_OBJDUMP" >&6; }
4405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4406 $as_echo "no" >&6; }
4409 if test "x$ac_ct_OBJDUMP" = x; then
4412 case $cross_compiling:$ac_tool_warned in
4414 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4415 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4416 ac_tool_warned=yes ;;
4418 OBJDUMP=$ac_ct_OBJDUMP
4421 OBJDUMP="$ac_cv_prog_OBJDUMP"
4427 test -z "$AS" && AS=as
4433 test -z "$DLLTOOL" && DLLTOOL=dlltool
4439 test -z "$OBJDUMP" && OBJDUMP=objdump
4449 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4450 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4456 macro_revision='1.3293'
4470 ltmain="$ac_aux_dir/ltmain.sh"
4472 # Backslashify metacharacters that are still active within
4473 # double-quoted strings.
4474 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4476 # Same as above, but do not quote variable references.
4477 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4479 # Sed substitution to delay expansion of an escaped shell variable in a
4480 # double_quote_subst'ed string.
4481 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4483 # Sed substitution to delay expansion of an escaped single quote.
4484 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4486 # Sed substitution to avoid accidental globbing in evaled expressions
4487 no_glob_subst='s/\*/\\\*/g'
4489 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4490 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4491 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4494 $as_echo_n "checking how to print strings... " >&6; }
4495 # Test print first, because it will be a builtin if present.
4496 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4497 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4499 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4502 # Use this function as a fallback that always works.
4503 func_fallback_echo ()
4505 eval 'cat <<_LTECHO_EOF
4509 ECHO='func_fallback_echo'
4512 # func_echo_all arg...
4513 # Invoke $ECHO with all args, space-separated.
4520 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4521 $as_echo "printf" >&6; } ;;
4522 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4523 $as_echo "print -r" >&6; } ;;
4524 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4525 $as_echo "cat" >&6; } ;;
4541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4542 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4543 if ${ac_cv_path_SED+:} false; then :
4544 $as_echo_n "(cached) " >&6
4546 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4547 for ac_i in 1 2 3 4 5 6 7; do
4548 ac_script="$ac_script$as_nl$ac_script"
4550 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4551 { ac_script=; unset ac_script;}
4552 if test -z "$SED"; then
4553 ac_path_SED_found=false
4554 # Loop through the user's path and test for each of PROGNAME-LIST
4555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4559 test -z "$as_dir" && as_dir=.
4560 for ac_prog in sed gsed; do
4561 for ac_exec_ext in '' $ac_executable_extensions; do
4562 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4563 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4564 # Check for GNU ac_path_SED and select it if it is found.
4565 # Check for GNU $ac_path_SED
4566 case `"$ac_path_SED" --version 2>&1` in
4568 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4571 $as_echo_n 0123456789 >"conftest.in"
4574 cat "conftest.in" "conftest.in" >"conftest.tmp"
4575 mv "conftest.tmp" "conftest.in"
4576 cp "conftest.in" "conftest.nl"
4577 $as_echo '' >> "conftest.nl"
4578 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4579 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4580 as_fn_arith $ac_count + 1 && ac_count=$as_val
4581 if test $ac_count -gt ${ac_path_SED_max-0}; then
4582 # Best one so far, save it but keep looking for a better one
4583 ac_cv_path_SED="$ac_path_SED"
4584 ac_path_SED_max=$ac_count
4586 # 10*(2^10) chars as input seems more than enough
4587 test $ac_count -gt 10 && break
4589 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4592 $ac_path_SED_found && break 3
4597 if test -z "$ac_cv_path_SED"; then
4598 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4606 $as_echo "$ac_cv_path_SED" >&6; }
4607 SED="$ac_cv_path_SED"
4610 test -z "$SED" && SED=sed
4611 Xsed="$SED -e 1s/^X//"
4623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4624 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4625 if ${ac_cv_path_GREP+:} false; then :
4626 $as_echo_n "(cached) " >&6
4628 if test -z "$GREP"; then
4629 ac_path_GREP_found=false
4630 # Loop through the user's path and test for each of PROGNAME-LIST
4631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4632 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4635 test -z "$as_dir" && as_dir=.
4636 for ac_prog in grep ggrep; do
4637 for ac_exec_ext in '' $ac_executable_extensions; do
4638 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4639 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4640 # Check for GNU ac_path_GREP and select it if it is found.
4641 # Check for GNU $ac_path_GREP
4642 case `"$ac_path_GREP" --version 2>&1` in
4644 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4647 $as_echo_n 0123456789 >"conftest.in"
4650 cat "conftest.in" "conftest.in" >"conftest.tmp"
4651 mv "conftest.tmp" "conftest.in"
4652 cp "conftest.in" "conftest.nl"
4653 $as_echo 'GREP' >> "conftest.nl"
4654 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4655 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4656 as_fn_arith $ac_count + 1 && ac_count=$as_val
4657 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4658 # Best one so far, save it but keep looking for a better one
4659 ac_cv_path_GREP="$ac_path_GREP"
4660 ac_path_GREP_max=$ac_count
4662 # 10*(2^10) chars as input seems more than enough
4663 test $ac_count -gt 10 && break
4665 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4668 $ac_path_GREP_found && break 3
4673 if test -z "$ac_cv_path_GREP"; then
4674 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4677 ac_cv_path_GREP=$GREP
4681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4682 $as_echo "$ac_cv_path_GREP" >&6; }
4683 GREP="$ac_cv_path_GREP"
4686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4687 $as_echo_n "checking for egrep... " >&6; }
4688 if ${ac_cv_path_EGREP+:} false; then :
4689 $as_echo_n "(cached) " >&6
4691 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4692 then ac_cv_path_EGREP="$GREP -E"
4694 if test -z "$EGREP"; then
4695 ac_path_EGREP_found=false
4696 # Loop through the user's path and test for each of PROGNAME-LIST
4697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4698 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4701 test -z "$as_dir" && as_dir=.
4702 for ac_prog in egrep; do
4703 for ac_exec_ext in '' $ac_executable_extensions; do
4704 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4705 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4706 # Check for GNU ac_path_EGREP and select it if it is found.
4707 # Check for GNU $ac_path_EGREP
4708 case `"$ac_path_EGREP" --version 2>&1` in
4710 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4713 $as_echo_n 0123456789 >"conftest.in"
4716 cat "conftest.in" "conftest.in" >"conftest.tmp"
4717 mv "conftest.tmp" "conftest.in"
4718 cp "conftest.in" "conftest.nl"
4719 $as_echo 'EGREP' >> "conftest.nl"
4720 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4721 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4722 as_fn_arith $ac_count + 1 && ac_count=$as_val
4723 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4724 # Best one so far, save it but keep looking for a better one
4725 ac_cv_path_EGREP="$ac_path_EGREP"
4726 ac_path_EGREP_max=$ac_count
4728 # 10*(2^10) chars as input seems more than enough
4729 test $ac_count -gt 10 && break
4731 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4734 $ac_path_EGREP_found && break 3
4739 if test -z "$ac_cv_path_EGREP"; then
4740 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4743 ac_cv_path_EGREP=$EGREP
4748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4749 $as_echo "$ac_cv_path_EGREP" >&6; }
4750 EGREP="$ac_cv_path_EGREP"
4753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4754 $as_echo_n "checking for fgrep... " >&6; }
4755 if ${ac_cv_path_FGREP+:} false; then :
4756 $as_echo_n "(cached) " >&6
4758 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4759 then ac_cv_path_FGREP="$GREP -F"
4761 if test -z "$FGREP"; then
4762 ac_path_FGREP_found=false
4763 # Loop through the user's path and test for each of PROGNAME-LIST
4764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4765 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4768 test -z "$as_dir" && as_dir=.
4769 for ac_prog in fgrep; do
4770 for ac_exec_ext in '' $ac_executable_extensions; do
4771 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4772 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4773 # Check for GNU ac_path_FGREP and select it if it is found.
4774 # Check for GNU $ac_path_FGREP
4775 case `"$ac_path_FGREP" --version 2>&1` in
4777 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4780 $as_echo_n 0123456789 >"conftest.in"
4783 cat "conftest.in" "conftest.in" >"conftest.tmp"
4784 mv "conftest.tmp" "conftest.in"
4785 cp "conftest.in" "conftest.nl"
4786 $as_echo 'FGREP' >> "conftest.nl"
4787 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4788 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4789 as_fn_arith $ac_count + 1 && ac_count=$as_val
4790 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4791 # Best one so far, save it but keep looking for a better one
4792 ac_cv_path_FGREP="$ac_path_FGREP"
4793 ac_path_FGREP_max=$ac_count
4795 # 10*(2^10) chars as input seems more than enough
4796 test $ac_count -gt 10 && break
4798 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4801 $ac_path_FGREP_found && break 3
4806 if test -z "$ac_cv_path_FGREP"; then
4807 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4810 ac_cv_path_FGREP=$FGREP
4815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4816 $as_echo "$ac_cv_path_FGREP" >&6; }
4817 FGREP="$ac_cv_path_FGREP"
4820 test -z "$GREP" && GREP=grep
4840 # Check whether --with-gnu-ld was given.
4841 if test "${with_gnu_ld+set}" = set; then :
4842 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4848 if test "$GCC" = yes; then
4849 # Check if gcc -print-prog-name=ld gives a path.
4850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4851 $as_echo_n "checking for ld used by $CC... " >&6; }
4854 # gcc leaves a trailing carriage return which upsets mingw
4855 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4857 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4860 # Accept absolute paths.
4862 re_direlt='/[^/][^/]*/\.\./'
4863 # Canonicalize the pathname of ld
4864 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4865 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4866 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4868 test -z "$LD" && LD="$ac_prog"
4871 # If it fails, then pretend we aren't using GCC.
4875 # If it is relative, then search for the first ld in PATH.
4879 elif test "$with_gnu_ld" = yes; then
4880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4881 $as_echo_n "checking for GNU ld... " >&6; }
4883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4884 $as_echo_n "checking for non-GNU ld... " >&6; }
4886 if ${lt_cv_path_LD+:} false; then :
4887 $as_echo_n "(cached) " >&6
4889 if test -z "$LD"; then
4890 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4891 for ac_dir in $PATH; do
4893 test -z "$ac_dir" && ac_dir=.
4894 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4895 lt_cv_path_LD="$ac_dir/$ac_prog"
4896 # Check to see if the program is GNU ld. I'd rather use --version,
4897 # but apparently some variants of GNU ld only accept -v.
4898 # Break only if it was the GNU/non-GNU ld that we prefer.
4899 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4900 *GNU* | *'with BFD'*)
4901 test "$with_gnu_ld" != no && break
4904 test "$with_gnu_ld" != yes && break
4911 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4916 if test -n "$LD"; then
4917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4918 $as_echo "$LD" >&6; }
4920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4921 $as_echo "no" >&6; }
4923 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4925 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4926 if ${lt_cv_prog_gnu_ld+:} false; then :
4927 $as_echo_n "(cached) " >&6
4929 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4930 case `$LD -v 2>&1 </dev/null` in
4931 *GNU* | *'with BFD'*)
4932 lt_cv_prog_gnu_ld=yes
4935 lt_cv_prog_gnu_ld=no
4939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4940 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4941 with_gnu_ld=$lt_cv_prog_gnu_ld
4951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4952 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4953 if ${lt_cv_path_NM+:} false; then :
4954 $as_echo_n "(cached) " >&6
4956 if test -n "$NM"; then
4957 # Let the user override the test.
4960 lt_nm_to_check="${ac_tool_prefix}nm"
4961 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4962 lt_nm_to_check="$lt_nm_to_check nm"
4964 for lt_tmp_nm in $lt_nm_to_check; do
4965 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4966 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4968 test -z "$ac_dir" && ac_dir=.
4969 tmp_nm="$ac_dir/$lt_tmp_nm"
4970 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4971 # Check to see if the nm accepts a BSD-compat flag.
4972 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4973 # nm: unknown option "B" ignored
4974 # Tru64's nm complains that /dev/null is an invalid object file
4975 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4976 */dev/null* | *'Invalid file or object type'*)
4977 lt_cv_path_NM="$tmp_nm -B"
4981 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4983 lt_cv_path_NM="$tmp_nm -p"
4987 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4988 continue # so that we can try to find one that supports BSD flags
4997 : ${lt_cv_path_NM=no}
5000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5001 $as_echo "$lt_cv_path_NM" >&6; }
5002 if test "$lt_cv_path_NM" != "no"; then
5005 # Didn't find any BSD compatible name lister, look for dumpbin.
5006 if test -n "$DUMPBIN"; then :
5007 # Let the user override the test.
5009 if test -n "$ac_tool_prefix"; then
5010 for ac_prog in dumpbin "link -dump"
5012 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5013 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5015 $as_echo_n "checking for $ac_word... " >&6; }
5016 if ${ac_cv_prog_DUMPBIN+:} false; then :
5017 $as_echo_n "(cached) " >&6
5019 if test -n "$DUMPBIN"; then
5020 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5026 test -z "$as_dir" && as_dir=.
5027 for ac_exec_ext in '' $ac_executable_extensions; do
5028 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5029 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5030 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5039 DUMPBIN=$ac_cv_prog_DUMPBIN
5040 if test -n "$DUMPBIN"; then
5041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5042 $as_echo "$DUMPBIN" >&6; }
5044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5045 $as_echo "no" >&6; }
5049 test -n "$DUMPBIN" && break
5052 if test -z "$DUMPBIN"; then
5053 ac_ct_DUMPBIN=$DUMPBIN
5054 for ac_prog in dumpbin "link -dump"
5056 # Extract the first word of "$ac_prog", so it can be a program name with args.
5057 set dummy $ac_prog; ac_word=$2
5058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5059 $as_echo_n "checking for $ac_word... " >&6; }
5060 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5061 $as_echo_n "(cached) " >&6
5063 if test -n "$ac_ct_DUMPBIN"; then
5064 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5070 test -z "$as_dir" && as_dir=.
5071 for ac_exec_ext in '' $ac_executable_extensions; do
5072 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5073 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5074 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5083 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5084 if test -n "$ac_ct_DUMPBIN"; then
5085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5086 $as_echo "$ac_ct_DUMPBIN" >&6; }
5088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5089 $as_echo "no" >&6; }
5093 test -n "$ac_ct_DUMPBIN" && break
5096 if test "x$ac_ct_DUMPBIN" = x; then
5099 case $cross_compiling:$ac_tool_warned in
5101 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5102 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5103 ac_tool_warned=yes ;;
5105 DUMPBIN=$ac_ct_DUMPBIN
5109 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5111 DUMPBIN="$DUMPBIN -symbols"
5119 if test "$DUMPBIN" != ":"; then
5123 test -z "$NM" && NM=nm
5130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5131 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5132 if ${lt_cv_nm_interface+:} false; then :
5133 $as_echo_n "(cached) " >&6
5135 lt_cv_nm_interface="BSD nm"
5136 echo "int some_variable = 0;" > conftest.$ac_ext
5137 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5138 (eval "$ac_compile" 2>conftest.err)
5139 cat conftest.err >&5
5140 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5141 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5142 cat conftest.err >&5
5143 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5144 cat conftest.out >&5
5145 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5146 lt_cv_nm_interface="MS dumpbin"
5150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5151 $as_echo "$lt_cv_nm_interface" >&6; }
5153 # find the maximum length of command line arguments
5154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5155 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5156 if ${lt_cv_sys_max_cmd_len+:} false; then :
5157 $as_echo_n "(cached) " >&6
5164 # On DJGPP, this test can blow up pretty badly due to problems in libc
5165 # (any single argument exceeding 2000 bytes causes a buffer overrun
5166 # during glob expansion). Even if it were fixed, the result of this
5167 # check would be larger than it should be.
5168 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5172 # Under GNU Hurd, this test is not required because there is
5173 # no limit to the length of command line arguments.
5174 # Libtool will interpret -1 as no limit whatsoever
5175 lt_cv_sys_max_cmd_len=-1;
5178 cygwin* | mingw* | cegcc*)
5179 # On Win9x/ME, this test blows up -- it succeeds, but takes
5180 # about 5 minutes as the teststring grows exponentially.
5181 # Worse, since 9x/ME are not pre-emptively multitasking,
5182 # you end up with a "frozen" computer, even though with patience
5183 # the test eventually succeeds (with a max line length of 256k).
5184 # Instead, let's just punt: use the minimum linelength reported by
5185 # all of the supported platforms: 8192 (on NT/2K/XP).
5186 lt_cv_sys_max_cmd_len=8192;
5190 # On MiNT this can take a long time and run out of memory.
5191 lt_cv_sys_max_cmd_len=8192;
5195 # On AmigaOS with pdksh, this test takes hours, literally.
5196 # So we just punt and use a minimum line length of 8192.
5197 lt_cv_sys_max_cmd_len=8192;
5200 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5201 # This has been around since 386BSD, at least. Likely further.
5202 if test -x /sbin/sysctl; then
5203 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5204 elif test -x /usr/sbin/sysctl; then
5205 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5207 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5209 # And add a safety zone
5210 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5211 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5215 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5216 lt_cv_sys_max_cmd_len=196608
5220 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5221 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5222 # nice to cause kernel panics so lets avoid the loop below.
5223 # First set a reasonable default.
5224 lt_cv_sys_max_cmd_len=16384
5226 if test -x /sbin/sysconfig; then
5227 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5228 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5233 lt_cv_sys_max_cmd_len=102400
5235 sysv5* | sco5v6* | sysv4.2uw2*)
5236 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5237 if test -n "$kargmax"; then
5238 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5240 lt_cv_sys_max_cmd_len=32768
5244 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5245 if test -n "$lt_cv_sys_max_cmd_len"; then
5246 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5247 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5249 # Make teststring a little bigger before we do anything with it.
5250 # a 1K string should be a reasonable start.
5251 for i in 1 2 3 4 5 6 7 8 ; do
5252 teststring=$teststring$teststring
5254 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5255 # If test is not a shell built-in, we'll probably end up computing a
5256 # maximum length that is only half of the actual maximum length, but
5258 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5259 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5260 test $i != 17 # 1/2 MB should be enough
5263 teststring=$teststring$teststring
5265 # Only check the string length outside the loop.
5266 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5268 # Add a significant safety factor because C++ compilers can tack on
5269 # massive amounts of additional arguments before passing them to the
5270 # linker. It appears as though 1/2 is a usable value.
5271 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5278 if test -n $lt_cv_sys_max_cmd_len ; then
5279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5280 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5283 $as_echo "none" >&6; }
5285 max_cmd_len=$lt_cv_sys_max_cmd_len
5296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5297 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5298 # Try some XSI features
5301 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5303 && eval 'test $(( 1 + 1 )) -eq 2 \
5304 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5307 $as_echo "$xsi_shell" >&6; }
5310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5311 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5313 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5315 && lt_shell_append=yes
5316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5317 $as_echo "$lt_shell_append" >&6; }
5320 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5330 # test EBCDIC or ASCII
5331 case `echo X|tr X '\101'` in
5332 A) # ASCII based system
5333 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5334 lt_SP2NL='tr \040 \012'
5335 lt_NL2SP='tr \015\012 \040\040'
5337 *) # EBCDIC based system
5338 lt_SP2NL='tr \100 \n'
5339 lt_NL2SP='tr \r\n \100\100'
5351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5352 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5353 if ${lt_cv_to_host_file_cmd+:} false; then :
5354 $as_echo_n "(cached) " >&6
5359 *-*-mingw* ) # actually msys
5360 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5363 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5365 * ) # otherwise, assume *nix
5366 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5372 *-*-mingw* ) # actually msys
5373 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5376 lt_cv_to_host_file_cmd=func_convert_file_noop
5378 * ) # otherwise, assume *nix
5379 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5383 * ) # unhandled hosts (and "normal" native builds)
5384 lt_cv_to_host_file_cmd=func_convert_file_noop
5390 to_host_file_cmd=$lt_cv_to_host_file_cmd
5391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5392 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5399 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5400 if ${lt_cv_to_tool_file_cmd+:} false; then :
5401 $as_echo_n "(cached) " >&6
5403 #assume ordinary cross tools, or native build.
5404 lt_cv_to_tool_file_cmd=func_convert_file_noop
5408 *-*-mingw* ) # actually msys
5409 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5417 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5419 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5426 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5427 if ${lt_cv_ld_reload_flag+:} false; then :
5428 $as_echo_n "(cached) " >&6
5430 lt_cv_ld_reload_flag='-r'
5432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5433 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5434 reload_flag=$lt_cv_ld_reload_flag
5435 case $reload_flag in
5437 *) reload_flag=" $reload_flag" ;;
5439 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5441 cygwin* | mingw* | pw32* | cegcc*)
5442 if test "$GCC" != yes; then
5447 if test "$GCC" = yes; then
5448 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5450 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5463 if test -n "$ac_tool_prefix"; then
5464 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5465 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5467 $as_echo_n "checking for $ac_word... " >&6; }
5468 if ${ac_cv_prog_OBJDUMP+:} false; then :
5469 $as_echo_n "(cached) " >&6
5471 if test -n "$OBJDUMP"; then
5472 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5478 test -z "$as_dir" && as_dir=.
5479 for ac_exec_ext in '' $ac_executable_extensions; do
5480 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5481 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5482 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5491 OBJDUMP=$ac_cv_prog_OBJDUMP
5492 if test -n "$OBJDUMP"; then
5493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5494 $as_echo "$OBJDUMP" >&6; }
5496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5497 $as_echo "no" >&6; }
5502 if test -z "$ac_cv_prog_OBJDUMP"; then
5503 ac_ct_OBJDUMP=$OBJDUMP
5504 # Extract the first word of "objdump", so it can be a program name with args.
5505 set dummy objdump; ac_word=$2
5506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5507 $as_echo_n "checking for $ac_word... " >&6; }
5508 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5509 $as_echo_n "(cached) " >&6
5511 if test -n "$ac_ct_OBJDUMP"; then
5512 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5518 test -z "$as_dir" && as_dir=.
5519 for ac_exec_ext in '' $ac_executable_extensions; do
5520 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5521 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5531 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5532 if test -n "$ac_ct_OBJDUMP"; then
5533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5534 $as_echo "$ac_ct_OBJDUMP" >&6; }
5536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5537 $as_echo "no" >&6; }
5540 if test "x$ac_ct_OBJDUMP" = x; then
5543 case $cross_compiling:$ac_tool_warned in
5545 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5546 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5547 ac_tool_warned=yes ;;
5549 OBJDUMP=$ac_ct_OBJDUMP
5552 OBJDUMP="$ac_cv_prog_OBJDUMP"
5555 test -z "$OBJDUMP" && OBJDUMP=objdump
5562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5563 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5564 if ${lt_cv_deplibs_check_method+:} false; then :
5565 $as_echo_n "(cached) " >&6
5567 lt_cv_file_magic_cmd='$MAGIC_CMD'
5568 lt_cv_file_magic_test_file=
5569 lt_cv_deplibs_check_method='unknown'
5570 # Need to set the preceding variable on all platforms that support
5571 # interlibrary dependencies.
5572 # 'none' -- dependencies not supported.
5573 # `unknown' -- same as none, but documents that we really don't know.
5574 # 'pass_all' -- all dependencies passed with no checks.
5575 # 'test_compile' -- check by making test program.
5576 # 'file_magic [[regex]]' -- check by looking for files in library path
5577 # which responds to the $file_magic_cmd with a given extended regex.
5578 # If you have `file' or equivalent on your system and you're not sure
5579 # whether `pass_all' will *always* work, you probably want this one.
5583 lt_cv_deplibs_check_method=pass_all
5587 lt_cv_deplibs_check_method=pass_all
5591 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5592 lt_cv_file_magic_cmd='/usr/bin/file -L'
5593 lt_cv_file_magic_test_file=/shlib/libc.so
5597 # func_win32_libid is a shell function defined in ltmain.sh
5598 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5599 lt_cv_file_magic_cmd='func_win32_libid'
5603 # Base MSYS/MinGW do not provide the 'file' command needed by
5604 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5605 # unless we find 'file', for example because we are cross-compiling.
5606 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5607 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5608 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5609 lt_cv_file_magic_cmd='func_win32_libid'
5611 # Keep this pattern in sync with the one in func_win32_libid.
5612 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5613 lt_cv_file_magic_cmd='$OBJDUMP -f'
5618 # use the weaker test based on 'objdump'. See mingw*.
5619 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5620 lt_cv_file_magic_cmd='$OBJDUMP -f'
5623 darwin* | rhapsody*)
5624 lt_cv_deplibs_check_method=pass_all
5627 freebsd* | dragonfly*)
5628 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5631 # Not sure whether the presence of OpenBSD here was a mistake.
5632 # Let's accept both of them until this is cleared up.
5633 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5634 lt_cv_file_magic_cmd=/usr/bin/file
5635 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5639 lt_cv_deplibs_check_method=pass_all
5644 lt_cv_deplibs_check_method=pass_all
5648 lt_cv_deplibs_check_method=pass_all
5651 hpux10.20* | hpux11*)
5652 lt_cv_file_magic_cmd=/usr/bin/file
5655 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5656 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5659 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
5660 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5663 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5664 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5670 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5671 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5674 irix5* | irix6* | nonstopux*)
5676 *-32|*"-32 ") libmagic=32-bit;;
5677 *-n32|*"-n32 ") libmagic=N32;;
5678 *-64|*"-64 ") libmagic=64-bit;;
5679 *) libmagic=never-match;;
5681 lt_cv_deplibs_check_method=pass_all
5684 # This must be Linux ELF.
5685 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5686 lt_cv_deplibs_check_method=pass_all
5689 netbsd* | netbsdelf*-gnu)
5690 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5691 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5693 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5698 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5699 lt_cv_file_magic_cmd=/usr/bin/file
5700 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5704 lt_cv_deplibs_check_method=pass_all
5708 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5709 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5711 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5715 osf3* | osf4* | osf5*)
5716 lt_cv_deplibs_check_method=pass_all
5720 lt_cv_deplibs_check_method=pass_all
5724 lt_cv_deplibs_check_method=pass_all
5727 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5728 lt_cv_deplibs_check_method=pass_all
5732 case $host_vendor in
5734 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
5735 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5738 lt_cv_deplibs_check_method=pass_all
5741 lt_cv_file_magic_cmd='/bin/file'
5742 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5745 lt_cv_file_magic_cmd='/bin/file'
5746 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5747 lt_cv_file_magic_test_file=/lib/libc.so
5750 lt_cv_deplibs_check_method=pass_all
5753 lt_cv_deplibs_check_method=pass_all
5759 lt_cv_deplibs_check_method=pass_all
5764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5765 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5769 if test "$build" = "$host"; then
5772 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5775 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5781 file_magic_cmd=$lt_cv_file_magic_cmd
5782 deplibs_check_method=$lt_cv_deplibs_check_method
5783 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5806 if test -n "$ac_tool_prefix"; then
5807 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5808 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5810 $as_echo_n "checking for $ac_word... " >&6; }
5811 if ${ac_cv_prog_DLLTOOL+:} false; then :
5812 $as_echo_n "(cached) " >&6
5814 if test -n "$DLLTOOL"; then
5815 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5821 test -z "$as_dir" && as_dir=.
5822 for ac_exec_ext in '' $ac_executable_extensions; do
5823 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5824 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5834 DLLTOOL=$ac_cv_prog_DLLTOOL
5835 if test -n "$DLLTOOL"; then
5836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5837 $as_echo "$DLLTOOL" >&6; }
5839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5840 $as_echo "no" >&6; }
5845 if test -z "$ac_cv_prog_DLLTOOL"; then
5846 ac_ct_DLLTOOL=$DLLTOOL
5847 # Extract the first word of "dlltool", so it can be a program name with args.
5848 set dummy dlltool; ac_word=$2
5849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5850 $as_echo_n "checking for $ac_word... " >&6; }
5851 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5852 $as_echo_n "(cached) " >&6
5854 if test -n "$ac_ct_DLLTOOL"; then
5855 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5861 test -z "$as_dir" && as_dir=.
5862 for ac_exec_ext in '' $ac_executable_extensions; do
5863 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5864 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5865 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5874 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5875 if test -n "$ac_ct_DLLTOOL"; then
5876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5877 $as_echo "$ac_ct_DLLTOOL" >&6; }
5879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5880 $as_echo "no" >&6; }
5883 if test "x$ac_ct_DLLTOOL" = x; then
5886 case $cross_compiling:$ac_tool_warned in
5888 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5889 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5890 ac_tool_warned=yes ;;
5892 DLLTOOL=$ac_ct_DLLTOOL
5895 DLLTOOL="$ac_cv_prog_DLLTOOL"
5898 test -z "$DLLTOOL" && DLLTOOL=dlltool
5906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5907 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5908 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5909 $as_echo_n "(cached) " >&6
5911 lt_cv_sharedlib_from_linklib_cmd='unknown'
5914 cygwin* | mingw* | pw32* | cegcc*)
5915 # two different shell functions defined in ltmain.sh
5916 # decide which to use based on capabilities of $DLLTOOL
5917 case `$DLLTOOL --help 2>&1` in
5918 *--identify-strict*)
5919 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5922 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5927 # fallback: assume linklib IS sharedlib
5928 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5934 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5935 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5936 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5945 if test -n "$ac_tool_prefix"; then
5948 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5949 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5951 $as_echo_n "checking for $ac_word... " >&6; }
5952 if ${ac_cv_prog_AR+:} false; then :
5953 $as_echo_n "(cached) " >&6
5955 if test -n "$AR"; then
5956 ac_cv_prog_AR="$AR" # Let the user override the test.
5958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5962 test -z "$as_dir" && as_dir=.
5963 for ac_exec_ext in '' $ac_executable_extensions; do
5964 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5965 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5966 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5976 if test -n "$AR"; then
5977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5978 $as_echo "$AR" >&6; }
5980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5981 $as_echo "no" >&6; }
5985 test -n "$AR" && break
5988 if test -z "$AR"; then
5992 # Extract the first word of "$ac_prog", so it can be a program name with args.
5993 set dummy $ac_prog; ac_word=$2
5994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5995 $as_echo_n "checking for $ac_word... " >&6; }
5996 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5997 $as_echo_n "(cached) " >&6
5999 if test -n "$ac_ct_AR"; then
6000 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6006 test -z "$as_dir" && as_dir=.
6007 for ac_exec_ext in '' $ac_executable_extensions; do
6008 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6009 ac_cv_prog_ac_ct_AR="$ac_prog"
6010 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6019 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6020 if test -n "$ac_ct_AR"; then
6021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6022 $as_echo "$ac_ct_AR" >&6; }
6024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6025 $as_echo "no" >&6; }
6029 test -n "$ac_ct_AR" && break
6032 if test "x$ac_ct_AR" = x; then
6035 case $cross_compiling:$ac_tool_warned in
6037 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6038 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6039 ac_tool_warned=yes ;;
6058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6059 $as_echo_n "checking for archiver @FILE support... " >&6; }
6060 if ${lt_cv_ar_at_file+:} false; then :
6061 $as_echo_n "(cached) " >&6
6064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6065 /* end confdefs.h. */
6075 if ac_fn_c_try_compile "$LINENO"; then :
6076 echo conftest.$ac_objext > conftest.lst
6077 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6078 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6079 (eval $lt_ar_try) 2>&5
6081 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6082 test $ac_status = 0; }
6083 if test "$ac_status" -eq 0; then
6084 # Ensure the archiver fails upon bogus file names.
6085 rm -f conftest.$ac_objext libconftest.a
6086 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6087 (eval $lt_ar_try) 2>&5
6089 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6090 test $ac_status = 0; }
6091 if test "$ac_status" -ne 0; then
6095 rm -f conftest.* libconftest.a
6098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6102 $as_echo "$lt_cv_ar_at_file" >&6; }
6104 if test "x$lt_cv_ar_at_file" = xno; then
6107 archiver_list_spec=$lt_cv_ar_at_file
6116 if test -n "$ac_tool_prefix"; then
6117 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6118 set dummy ${ac_tool_prefix}strip; ac_word=$2
6119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6120 $as_echo_n "checking for $ac_word... " >&6; }
6121 if ${ac_cv_prog_STRIP+:} false; then :
6122 $as_echo_n "(cached) " >&6
6124 if test -n "$STRIP"; then
6125 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6131 test -z "$as_dir" && as_dir=.
6132 for ac_exec_ext in '' $ac_executable_extensions; do
6133 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6134 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6144 STRIP=$ac_cv_prog_STRIP
6145 if test -n "$STRIP"; then
6146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6147 $as_echo "$STRIP" >&6; }
6149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6150 $as_echo "no" >&6; }
6155 if test -z "$ac_cv_prog_STRIP"; then
6157 # Extract the first word of "strip", so it can be a program name with args.
6158 set dummy strip; ac_word=$2
6159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6160 $as_echo_n "checking for $ac_word... " >&6; }
6161 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6162 $as_echo_n "(cached) " >&6
6164 if test -n "$ac_ct_STRIP"; then
6165 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6171 test -z "$as_dir" && as_dir=.
6172 for ac_exec_ext in '' $ac_executable_extensions; do
6173 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6174 ac_cv_prog_ac_ct_STRIP="strip"
6175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6184 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6185 if test -n "$ac_ct_STRIP"; then
6186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6187 $as_echo "$ac_ct_STRIP" >&6; }
6189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6190 $as_echo "no" >&6; }
6193 if test "x$ac_ct_STRIP" = x; then
6196 case $cross_compiling:$ac_tool_warned in
6198 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6199 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6200 ac_tool_warned=yes ;;
6205 STRIP="$ac_cv_prog_STRIP"
6208 test -z "$STRIP" && STRIP=:
6215 if test -n "$ac_tool_prefix"; then
6216 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6217 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6219 $as_echo_n "checking for $ac_word... " >&6; }
6220 if ${ac_cv_prog_RANLIB+:} false; then :
6221 $as_echo_n "(cached) " >&6
6223 if test -n "$RANLIB"; then
6224 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6230 test -z "$as_dir" && as_dir=.
6231 for ac_exec_ext in '' $ac_executable_extensions; do
6232 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6233 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6234 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6243 RANLIB=$ac_cv_prog_RANLIB
6244 if test -n "$RANLIB"; then
6245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6246 $as_echo "$RANLIB" >&6; }
6248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6249 $as_echo "no" >&6; }
6254 if test -z "$ac_cv_prog_RANLIB"; then
6255 ac_ct_RANLIB=$RANLIB
6256 # Extract the first word of "ranlib", so it can be a program name with args.
6257 set dummy ranlib; ac_word=$2
6258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6259 $as_echo_n "checking for $ac_word... " >&6; }
6260 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6261 $as_echo_n "(cached) " >&6
6263 if test -n "$ac_ct_RANLIB"; then
6264 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6270 test -z "$as_dir" && as_dir=.
6271 for ac_exec_ext in '' $ac_executable_extensions; do
6272 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6273 ac_cv_prog_ac_ct_RANLIB="ranlib"
6274 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6283 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6284 if test -n "$ac_ct_RANLIB"; then
6285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6286 $as_echo "$ac_ct_RANLIB" >&6; }
6288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6289 $as_echo "no" >&6; }
6292 if test "x$ac_ct_RANLIB" = x; then
6295 case $cross_compiling:$ac_tool_warned in
6297 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6298 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6299 ac_tool_warned=yes ;;
6301 RANLIB=$ac_ct_RANLIB
6304 RANLIB="$ac_cv_prog_RANLIB"
6307 test -z "$RANLIB" && RANLIB=:
6314 # Determine commands to create old-style static archives.
6315 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6316 old_postinstall_cmds='chmod 644 $oldlib'
6317 old_postuninstall_cmds=
6319 if test -n "$RANLIB"; then
6322 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6325 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6328 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6333 lock_old_archive_extraction=yes ;;
6335 lock_old_archive_extraction=no ;;
6376 # If no C compiler was specified, use CC.
6379 # If no C compiler flags were specified, use CFLAGS.
6380 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6382 # Allow CC to be a program name with arguments.
6386 # Check for command to grab the raw symbol name followed by C symbol from nm.
6387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6388 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6389 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6390 $as_echo_n "(cached) " >&6
6393 # These are sane defaults that work on at least a few old systems.
6394 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6396 # Character class describing NM global symbol codes.
6397 symcode='[BCDEGRST]'
6399 # Regexp to match symbols that can be accessed directly from C.
6400 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6402 # Define system-specific variables.
6407 cygwin* | mingw* | pw32* | cegcc*)
6408 symcode='[ABCDGISTW]'
6411 if test "$host_cpu" = ia64; then
6412 symcode='[ABCDEGRST]'
6416 symcode='[BCDEGRST]'
6419 symcode='[BCDEGQRST]'
6430 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6438 # If we're using GNU nm, then use its standard symbol codes.
6439 case `$NM -V 2>&1` in
6440 *GNU* | *'with BFD'*)
6441 symcode='[ABCDGIRSTW]' ;;
6444 # Transform an extracted symbol line into a proper C declaration.
6445 # Some systems (esp. on ia64) link data and code symbols differently,
6446 # so use this general approach.
6447 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6449 # Transform an extracted symbol line into symbol name and symbol address
6450 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6451 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
6453 # Handle CRLF in mingw tool chain
6457 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6461 # Try without a prefix underscore, then with it.
6462 for ac_symprfx in "" "_"; do
6464 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6465 symxfrm="\\1 $ac_symprfx\\2 \\2"
6467 # Write the raw and C identifiers.
6468 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6469 # Fake it for dumpbin and say T for any non-static function
6470 # and D for any global variable.
6471 # Also find C++ and __fastcall symbols from MSVC++,
6472 # which start with @ or ?.
6473 lt_cv_sys_global_symbol_pipe="$AWK '"\
6474 " {last_section=section; section=\$ 3};"\
6475 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6476 " \$ 0!~/External *\|/{next};"\
6477 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6478 " {if(hide[section]) next};"\
6479 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6480 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6481 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6482 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6483 " ' prfx=^$ac_symprfx"
6485 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6487 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6489 # Check to see that the pipe works correctly.
6493 cat > conftest.$ac_ext <<_LT_EOF
6498 void nm_test_func(void);
6499 void nm_test_func(void){}
6503 int main(){nm_test_var='a';nm_test_func();return(0);}
6506 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6507 (eval $ac_compile) 2>&5
6509 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6510 test $ac_status = 0; }; then
6511 # Now try to grab the symbols.
6513 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6514 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6516 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6517 test $ac_status = 0; } && test -s "$nlist"; then
6518 # Try sorting and uniquifying the output.
6519 if sort "$nlist" | uniq > "$nlist"T; then
6520 mv -f "$nlist"T "$nlist"
6525 # Make sure that we snagged all the symbols we need.
6526 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6527 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6528 cat <<_LT_EOF > conftest.$ac_ext
6529 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6530 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6531 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6532 relocations are performed -- see ld's documentation on pseudo-relocs. */
6533 # define LT_DLSYM_CONST
6534 #elif defined(__osf__)
6535 /* This system does not cope well with relocations in const data. */
6536 # define LT_DLSYM_CONST
6538 # define LT_DLSYM_CONST const
6546 # Now generate the symbol file.
6547 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6549 cat <<_LT_EOF >> conftest.$ac_ext
6551 /* The mapping between symbol names and symbols. */
6552 LT_DLSYM_CONST struct {
6556 lt__PROGRAM__LTX_preloaded_symbols[] =
6558 { "@PROGRAM@", (void *) 0 },
6560 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6561 cat <<\_LT_EOF >> conftest.$ac_ext
6565 /* This works around a problem in FreeBSD linker */
6566 #ifdef FREEBSD_WORKAROUND
6567 static const void *lt_preloaded_setup() {
6568 return lt__PROGRAM__LTX_preloaded_symbols;
6576 # Now try linking the two files.
6577 mv conftest.$ac_objext conftstm.$ac_objext
6578 lt_globsym_save_LIBS=$LIBS
6579 lt_globsym_save_CFLAGS=$CFLAGS
6580 LIBS="conftstm.$ac_objext"
6581 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6582 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6583 (eval $ac_link) 2>&5
6585 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6586 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6589 LIBS=$lt_globsym_save_LIBS
6590 CFLAGS=$lt_globsym_save_CFLAGS
6592 echo "cannot find nm_test_func in $nlist" >&5
6595 echo "cannot find nm_test_var in $nlist" >&5
6598 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6601 echo "$progname: failed program was:" >&5
6602 cat conftest.$ac_ext >&5
6604 rm -rf conftest* conftst*
6606 # Do not use the global_symbol_pipe unless it works.
6607 if test "$pipe_works" = yes; then
6610 lt_cv_sys_global_symbol_pipe=
6616 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6617 lt_cv_sys_global_symbol_to_cdecl=
6619 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6621 $as_echo "failed" >&6; }
6623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6624 $as_echo "ok" >&6; }
6627 # Response file support.
6628 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6629 nm_file_list_spec='@'
6630 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6631 nm_file_list_spec='@'
6660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6661 $as_echo_n "checking for sysroot... " >&6; }
6663 # Check whether --with-sysroot was given.
6664 if test "${with_sysroot+set}" = set; then :
6665 withval=$with_sysroot;
6672 case ${with_sysroot} in #(
6674 if test "$GCC" = yes; then
6675 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6679 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6685 $as_echo "${with_sysroot}" >&6; }
6686 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6691 $as_echo "${lt_sysroot:-no}" >&6; }
6697 # Check whether --enable-libtool-lock was given.
6698 if test "${enable_libtool_lock+set}" = set; then :
6699 enableval=$enable_libtool_lock;
6702 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6704 # Some flags need to be propagated to the compiler or linker for good
6708 # Find out which ABI we are using.
6709 echo 'int i;' > conftest.$ac_ext
6710 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6711 (eval $ac_compile) 2>&5
6713 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6714 test $ac_status = 0; }; then
6715 case `/usr/bin/file conftest.$ac_objext` in
6727 # Find out which ABI we are using.
6728 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6729 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6730 (eval $ac_compile) 2>&5
6732 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6733 test $ac_status = 0; }; then
6734 if test "$lt_cv_prog_gnu_ld" = yes; then
6735 case `/usr/bin/file conftest.$ac_objext` in
6737 LD="${LD-ld} -melf32bsmip"
6740 LD="${LD-ld} -melf32bmipn32"
6743 LD="${LD-ld} -melf64bmip"
6747 case `/usr/bin/file conftest.$ac_objext` in
6763 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6764 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6765 # Find out which ABI we are using.
6766 echo 'int i;' > conftest.$ac_ext
6767 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6768 (eval $ac_compile) 2>&5
6770 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6771 test $ac_status = 0; }; then
6772 case `/usr/bin/file conftest.o` in
6775 x86_64-*kfreebsd*-gnu)
6776 LD="${LD-ld} -m elf_i386_fbsd"
6779 LD="${LD-ld} -m elf_i386"
6781 ppc64-*linux*|powerpc64-*linux*)
6782 LD="${LD-ld} -m elf32ppclinux"
6785 LD="${LD-ld} -m elf_s390"
6788 LD="${LD-ld} -m elf32_sparc"
6794 x86_64-*kfreebsd*-gnu)
6795 LD="${LD-ld} -m elf_x86_64_fbsd"
6798 LD="${LD-ld} -m elf_x86_64"
6800 ppc*-*linux*|powerpc*-*linux*)
6801 LD="${LD-ld} -m elf64ppc"
6803 s390*-*linux*|s390*-*tpf*)
6804 LD="${LD-ld} -m elf64_s390"
6807 LD="${LD-ld} -m elf64_sparc"
6817 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6818 SAVE_CFLAGS="$CFLAGS"
6819 CFLAGS="$CFLAGS -belf"
6820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6821 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6822 if ${lt_cv_cc_needs_belf+:} false; then :
6823 $as_echo_n "(cached) " >&6
6826 ac_cpp='$CPP $CPPFLAGS'
6827 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6828 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6829 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6832 /* end confdefs.h. */
6842 if ac_fn_c_try_link "$LINENO"; then :
6843 lt_cv_cc_needs_belf=yes
6845 lt_cv_cc_needs_belf=no
6847 rm -f core conftest.err conftest.$ac_objext \
6848 conftest$ac_exeext conftest.$ac_ext
6850 ac_cpp='$CPP $CPPFLAGS'
6851 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6852 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6853 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6857 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6858 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6859 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6860 CFLAGS="$SAVE_CFLAGS"
6864 # Find out which ABI we are using.
6865 echo 'int i;' > conftest.$ac_ext
6866 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6867 (eval $ac_compile) 2>&5
6869 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6870 test $ac_status = 0; }; then
6871 case `/usr/bin/file conftest.o` in
6873 case $lt_cv_prog_gnu_ld in
6874 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6876 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6888 need_locks="$enable_libtool_lock"
6890 if test -n "$ac_tool_prefix"; then
6891 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6892 set dummy ${ac_tool_prefix}mt; ac_word=$2
6893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6894 $as_echo_n "checking for $ac_word... " >&6; }
6895 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6896 $as_echo_n "(cached) " >&6
6898 if test -n "$MANIFEST_TOOL"; then
6899 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6905 test -z "$as_dir" && as_dir=.
6906 for ac_exec_ext in '' $ac_executable_extensions; do
6907 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6908 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6918 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6919 if test -n "$MANIFEST_TOOL"; then
6920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6921 $as_echo "$MANIFEST_TOOL" >&6; }
6923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6924 $as_echo "no" >&6; }
6929 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6930 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6931 # Extract the first word of "mt", so it can be a program name with args.
6932 set dummy mt; ac_word=$2
6933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6934 $as_echo_n "checking for $ac_word... " >&6; }
6935 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6936 $as_echo_n "(cached) " >&6
6938 if test -n "$ac_ct_MANIFEST_TOOL"; then
6939 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6945 test -z "$as_dir" && as_dir=.
6946 for ac_exec_ext in '' $ac_executable_extensions; do
6947 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6948 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6958 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6959 if test -n "$ac_ct_MANIFEST_TOOL"; then
6960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6961 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6964 $as_echo "no" >&6; }
6967 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6970 case $cross_compiling:$ac_tool_warned in
6972 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6973 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6974 ac_tool_warned=yes ;;
6976 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6979 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6982 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6984 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6985 if ${lt_cv_path_mainfest_tool+:} false; then :
6986 $as_echo_n "(cached) " >&6
6988 lt_cv_path_mainfest_tool=no
6989 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6990 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6991 cat conftest.err >&5
6992 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6993 lt_cv_path_mainfest_tool=yes
6997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6998 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6999 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7009 rhapsody* | darwin*)
7010 if test -n "$ac_tool_prefix"; then
7011 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7012 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7014 $as_echo_n "checking for $ac_word... " >&6; }
7015 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7016 $as_echo_n "(cached) " >&6
7018 if test -n "$DSYMUTIL"; then
7019 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7025 test -z "$as_dir" && as_dir=.
7026 for ac_exec_ext in '' $ac_executable_extensions; do
7027 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7028 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7029 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7038 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7039 if test -n "$DSYMUTIL"; then
7040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7041 $as_echo "$DSYMUTIL" >&6; }
7043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7044 $as_echo "no" >&6; }
7049 if test -z "$ac_cv_prog_DSYMUTIL"; then
7050 ac_ct_DSYMUTIL=$DSYMUTIL
7051 # Extract the first word of "dsymutil", so it can be a program name with args.
7052 set dummy dsymutil; ac_word=$2
7053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7054 $as_echo_n "checking for $ac_word... " >&6; }
7055 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7056 $as_echo_n "(cached) " >&6
7058 if test -n "$ac_ct_DSYMUTIL"; then
7059 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7065 test -z "$as_dir" && as_dir=.
7066 for ac_exec_ext in '' $ac_executable_extensions; do
7067 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7068 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7069 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7078 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7079 if test -n "$ac_ct_DSYMUTIL"; then
7080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7081 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7084 $as_echo "no" >&6; }
7087 if test "x$ac_ct_DSYMUTIL" = x; then
7090 case $cross_compiling:$ac_tool_warned in
7092 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7093 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7094 ac_tool_warned=yes ;;
7096 DSYMUTIL=$ac_ct_DSYMUTIL
7099 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7102 if test -n "$ac_tool_prefix"; then
7103 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7104 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7106 $as_echo_n "checking for $ac_word... " >&6; }
7107 if ${ac_cv_prog_NMEDIT+:} false; then :
7108 $as_echo_n "(cached) " >&6
7110 if test -n "$NMEDIT"; then
7111 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7117 test -z "$as_dir" && as_dir=.
7118 for ac_exec_ext in '' $ac_executable_extensions; do
7119 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7120 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7130 NMEDIT=$ac_cv_prog_NMEDIT
7131 if test -n "$NMEDIT"; then
7132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7133 $as_echo "$NMEDIT" >&6; }
7135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7136 $as_echo "no" >&6; }
7141 if test -z "$ac_cv_prog_NMEDIT"; then
7142 ac_ct_NMEDIT=$NMEDIT
7143 # Extract the first word of "nmedit", so it can be a program name with args.
7144 set dummy nmedit; ac_word=$2
7145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7146 $as_echo_n "checking for $ac_word... " >&6; }
7147 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7148 $as_echo_n "(cached) " >&6
7150 if test -n "$ac_ct_NMEDIT"; then
7151 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7157 test -z "$as_dir" && as_dir=.
7158 for ac_exec_ext in '' $ac_executable_extensions; do
7159 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7160 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7161 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7170 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7171 if test -n "$ac_ct_NMEDIT"; then
7172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7173 $as_echo "$ac_ct_NMEDIT" >&6; }
7175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7176 $as_echo "no" >&6; }
7179 if test "x$ac_ct_NMEDIT" = x; then
7182 case $cross_compiling:$ac_tool_warned in
7184 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7185 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7186 ac_tool_warned=yes ;;
7188 NMEDIT=$ac_ct_NMEDIT
7191 NMEDIT="$ac_cv_prog_NMEDIT"
7194 if test -n "$ac_tool_prefix"; then
7195 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7196 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7198 $as_echo_n "checking for $ac_word... " >&6; }
7199 if ${ac_cv_prog_LIPO+:} false; then :
7200 $as_echo_n "(cached) " >&6
7202 if test -n "$LIPO"; then
7203 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7209 test -z "$as_dir" && as_dir=.
7210 for ac_exec_ext in '' $ac_executable_extensions; do
7211 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7212 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7222 LIPO=$ac_cv_prog_LIPO
7223 if test -n "$LIPO"; then
7224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7225 $as_echo "$LIPO" >&6; }
7227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7228 $as_echo "no" >&6; }
7233 if test -z "$ac_cv_prog_LIPO"; then
7235 # Extract the first word of "lipo", so it can be a program name with args.
7236 set dummy lipo; ac_word=$2
7237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7238 $as_echo_n "checking for $ac_word... " >&6; }
7239 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7240 $as_echo_n "(cached) " >&6
7242 if test -n "$ac_ct_LIPO"; then
7243 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7249 test -z "$as_dir" && as_dir=.
7250 for ac_exec_ext in '' $ac_executable_extensions; do
7251 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7252 ac_cv_prog_ac_ct_LIPO="lipo"
7253 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7262 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7263 if test -n "$ac_ct_LIPO"; then
7264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7265 $as_echo "$ac_ct_LIPO" >&6; }
7267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7268 $as_echo "no" >&6; }
7271 if test "x$ac_ct_LIPO" = x; then
7274 case $cross_compiling:$ac_tool_warned in
7276 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7277 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7278 ac_tool_warned=yes ;;
7283 LIPO="$ac_cv_prog_LIPO"
7286 if test -n "$ac_tool_prefix"; then
7287 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7288 set dummy ${ac_tool_prefix}otool; ac_word=$2
7289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7290 $as_echo_n "checking for $ac_word... " >&6; }
7291 if ${ac_cv_prog_OTOOL+:} false; then :
7292 $as_echo_n "(cached) " >&6
7294 if test -n "$OTOOL"; then
7295 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7301 test -z "$as_dir" && as_dir=.
7302 for ac_exec_ext in '' $ac_executable_extensions; do
7303 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7304 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7305 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7314 OTOOL=$ac_cv_prog_OTOOL
7315 if test -n "$OTOOL"; then
7316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7317 $as_echo "$OTOOL" >&6; }
7319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7320 $as_echo "no" >&6; }
7325 if test -z "$ac_cv_prog_OTOOL"; then
7327 # Extract the first word of "otool", so it can be a program name with args.
7328 set dummy otool; ac_word=$2
7329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7330 $as_echo_n "checking for $ac_word... " >&6; }
7331 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7332 $as_echo_n "(cached) " >&6
7334 if test -n "$ac_ct_OTOOL"; then
7335 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7341 test -z "$as_dir" && as_dir=.
7342 for ac_exec_ext in '' $ac_executable_extensions; do
7343 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7344 ac_cv_prog_ac_ct_OTOOL="otool"
7345 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7354 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7355 if test -n "$ac_ct_OTOOL"; then
7356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7357 $as_echo "$ac_ct_OTOOL" >&6; }
7359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7360 $as_echo "no" >&6; }
7363 if test "x$ac_ct_OTOOL" = x; then
7366 case $cross_compiling:$ac_tool_warned in
7368 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7369 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7370 ac_tool_warned=yes ;;
7375 OTOOL="$ac_cv_prog_OTOOL"
7378 if test -n "$ac_tool_prefix"; then
7379 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7380 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7382 $as_echo_n "checking for $ac_word... " >&6; }
7383 if ${ac_cv_prog_OTOOL64+:} false; then :
7384 $as_echo_n "(cached) " >&6
7386 if test -n "$OTOOL64"; then
7387 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7393 test -z "$as_dir" && as_dir=.
7394 for ac_exec_ext in '' $ac_executable_extensions; do
7395 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7396 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7397 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7406 OTOOL64=$ac_cv_prog_OTOOL64
7407 if test -n "$OTOOL64"; then
7408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7409 $as_echo "$OTOOL64" >&6; }
7411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7412 $as_echo "no" >&6; }
7417 if test -z "$ac_cv_prog_OTOOL64"; then
7418 ac_ct_OTOOL64=$OTOOL64
7419 # Extract the first word of "otool64", so it can be a program name with args.
7420 set dummy otool64; ac_word=$2
7421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7422 $as_echo_n "checking for $ac_word... " >&6; }
7423 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7424 $as_echo_n "(cached) " >&6
7426 if test -n "$ac_ct_OTOOL64"; then
7427 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7433 test -z "$as_dir" && as_dir=.
7434 for ac_exec_ext in '' $ac_executable_extensions; do
7435 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7436 ac_cv_prog_ac_ct_OTOOL64="otool64"
7437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7446 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7447 if test -n "$ac_ct_OTOOL64"; then
7448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7449 $as_echo "$ac_ct_OTOOL64" >&6; }
7451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7452 $as_echo "no" >&6; }
7455 if test "x$ac_ct_OTOOL64" = x; then
7458 case $cross_compiling:$ac_tool_warned in
7460 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7461 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7462 ac_tool_warned=yes ;;
7464 OTOOL64=$ac_ct_OTOOL64
7467 OTOOL64="$ac_cv_prog_OTOOL64"
7496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7497 $as_echo_n "checking for -single_module linker flag... " >&6; }
7498 if ${lt_cv_apple_cc_single_mod+:} false; then :
7499 $as_echo_n "(cached) " >&6
7501 lt_cv_apple_cc_single_mod=no
7502 if test -z "${LT_MULTI_MODULE}"; then
7503 # By default we will add the -single_module flag. You can override
7504 # by either setting the environment variable LT_MULTI_MODULE
7505 # non-empty at configure time, or by adding -multi_module to the
7507 rm -rf libconftest.dylib*
7508 echo "int foo(void){return 1;}" > conftest.c
7509 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7510 -dynamiclib -Wl,-single_module conftest.c" >&5
7511 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7512 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7514 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7515 lt_cv_apple_cc_single_mod=yes
7517 cat conftest.err >&5
7519 rm -rf libconftest.dylib*
7523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7524 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7526 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7527 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7528 $as_echo_n "(cached) " >&6
7530 lt_cv_ld_exported_symbols_list=no
7531 save_LDFLAGS=$LDFLAGS
7532 echo "_main" > conftest.sym
7533 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7535 /* end confdefs.h. */
7545 if ac_fn_c_try_link "$LINENO"; then :
7546 lt_cv_ld_exported_symbols_list=yes
7548 lt_cv_ld_exported_symbols_list=no
7550 rm -f core conftest.err conftest.$ac_objext \
7551 conftest$ac_exeext conftest.$ac_ext
7552 LDFLAGS="$save_LDFLAGS"
7555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7556 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7558 $as_echo_n "checking for -force_load linker flag... " >&6; }
7559 if ${lt_cv_ld_force_load+:} false; then :
7560 $as_echo_n "(cached) " >&6
7562 lt_cv_ld_force_load=no
7563 cat > conftest.c << _LT_EOF
7564 int forced_loaded() { return 2;}
7566 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7567 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7568 echo "$AR cru libconftest.a conftest.o" >&5
7569 $AR cru libconftest.a conftest.o 2>&5
7570 echo "$RANLIB libconftest.a" >&5
7571 $RANLIB libconftest.a 2>&5
7572 cat > conftest.c << _LT_EOF
7573 int main() { return 0;}
7575 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7576 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7578 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7579 lt_cv_ld_force_load=yes
7581 cat conftest.err >&5
7583 rm -f conftest.err libconftest.a conftest conftest.c
7584 rm -rf conftest.dSYM
7587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7588 $as_echo "$lt_cv_ld_force_load" >&6; }
7590 rhapsody* | darwin1.[012])
7591 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7593 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7594 darwin*) # darwin 5.x on
7595 # if running on 10.5 or later, the deployment target defaults
7596 # to the OS version, if on x86, and 10.4, the deployment
7597 # target defaults to 10.4. Don't you love it?
7598 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7599 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7600 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7602 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7604 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7608 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7609 _lt_dar_single_mod='$single_module'
7611 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7612 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7614 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7616 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7617 _lt_dsymutil='~$DSYMUTIL $lib || :'
7625 ac_cpp='$CPP $CPPFLAGS'
7626 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7627 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7628 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7630 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7631 # On Suns, sometimes $CPP names a directory.
7632 if test -n "$CPP" && test -d "$CPP"; then
7635 if test -z "$CPP"; then
7636 if ${ac_cv_prog_CPP+:} false; then :
7637 $as_echo_n "(cached) " >&6
7639 # Double quotes because CPP needs to be expanded
7640 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7643 for ac_c_preproc_warn_flag in '' yes
7645 # Use a header file that comes with gcc, so configuring glibc
7646 # with a fresh cross-compiler works.
7647 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7648 # <limits.h> exists even on freestanding compilers.
7649 # On the NeXT, cc -E runs the code through the compiler's parser,
7650 # not just through cpp. "Syntax error" is here to catch this case.
7651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7652 /* end confdefs.h. */
7654 # include <limits.h>
7656 # include <assert.h>
7660 if ac_fn_c_try_cpp "$LINENO"; then :
7663 # Broken: fails on valid input.
7666 rm -f conftest.err conftest.i conftest.$ac_ext
7668 # OK, works on sane cases. Now check whether nonexistent headers
7669 # can be detected and how.
7670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7671 /* end confdefs.h. */
7672 #include <ac_nonexistent.h>
7674 if ac_fn_c_try_cpp "$LINENO"; then :
7675 # Broken: success on invalid input.
7678 # Passes both tests.
7682 rm -f conftest.err conftest.i conftest.$ac_ext
7685 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7686 rm -f conftest.i conftest.err conftest.$ac_ext
7687 if $ac_preproc_ok; then :
7699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7700 $as_echo "$CPP" >&6; }
7702 for ac_c_preproc_warn_flag in '' yes
7704 # Use a header file that comes with gcc, so configuring glibc
7705 # with a fresh cross-compiler works.
7706 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7707 # <limits.h> exists even on freestanding compilers.
7708 # On the NeXT, cc -E runs the code through the compiler's parser,
7709 # not just through cpp. "Syntax error" is here to catch this case.
7710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7711 /* end confdefs.h. */
7713 # include <limits.h>
7715 # include <assert.h>
7719 if ac_fn_c_try_cpp "$LINENO"; then :
7722 # Broken: fails on valid input.
7725 rm -f conftest.err conftest.i conftest.$ac_ext
7727 # OK, works on sane cases. Now check whether nonexistent headers
7728 # can be detected and how.
7729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7730 /* end confdefs.h. */
7731 #include <ac_nonexistent.h>
7733 if ac_fn_c_try_cpp "$LINENO"; then :
7734 # Broken: success on invalid input.
7737 # Passes both tests.
7741 rm -f conftest.err conftest.i conftest.$ac_ext
7744 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7745 rm -f conftest.i conftest.err conftest.$ac_ext
7746 if $ac_preproc_ok; then :
7749 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7750 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7751 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7752 See \`config.log' for more details" "$LINENO" 5; }
7756 ac_cpp='$CPP $CPPFLAGS'
7757 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7758 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7759 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7763 $as_echo_n "checking for ANSI C header files... " >&6; }
7764 if ${ac_cv_header_stdc+:} false; then :
7765 $as_echo_n "(cached) " >&6
7767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7768 /* end confdefs.h. */
7782 if ac_fn_c_try_compile "$LINENO"; then :
7783 ac_cv_header_stdc=yes
7785 ac_cv_header_stdc=no
7787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7789 if test $ac_cv_header_stdc = yes; then
7790 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7792 /* end confdefs.h. */
7796 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7797 $EGREP "memchr" >/dev/null 2>&1; then :
7800 ac_cv_header_stdc=no
7806 if test $ac_cv_header_stdc = yes; then
7807 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7809 /* end confdefs.h. */
7813 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7814 $EGREP "free" >/dev/null 2>&1; then :
7817 ac_cv_header_stdc=no
7823 if test $ac_cv_header_stdc = yes; then
7824 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7825 if test "$cross_compiling" = yes; then :
7828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7829 /* end confdefs.h. */
7832 #if ((' ' & 0x0FF) == 0x020)
7833 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7834 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7836 # define ISLOWER(c) \
7837 (('a' <= (c) && (c) <= 'i') \
7838 || ('j' <= (c) && (c) <= 'r') \
7839 || ('s' <= (c) && (c) <= 'z'))
7840 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7843 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7848 for (i = 0; i < 256; i++)
7849 if (XOR (islower (i), ISLOWER (i))
7850 || toupper (i) != TOUPPER (i))
7855 if ac_fn_c_try_run "$LINENO"; then :
7858 ac_cv_header_stdc=no
7860 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7861 conftest.$ac_objext conftest.beam conftest.$ac_ext
7866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7867 $as_echo "$ac_cv_header_stdc" >&6; }
7868 if test $ac_cv_header_stdc = yes; then
7870 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7874 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7875 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7876 inttypes.h stdint.h unistd.h
7878 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7879 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7881 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7882 cat >>confdefs.h <<_ACEOF
7883 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7891 for ac_header in dlfcn.h
7893 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7895 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7896 cat >>confdefs.h <<_ACEOF
7897 #define HAVE_DLFCN_H 1
7916 # Check whether --enable-shared was given.
7917 if test "${enable_shared+set}" = set; then :
7918 enableval=$enable_shared; p=${PACKAGE-default}
7920 yes) enable_shared=yes ;;
7921 no) enable_shared=no ;;
7924 # Look at the argument we got. We use all the common list separators.
7925 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7926 for pkg in $enableval; do
7928 if test "X$pkg" = "X$p"; then
7947 # Check whether --enable-static was given.
7948 if test "${enable_static+set}" = set; then :
7949 enableval=$enable_static; p=${PACKAGE-default}
7951 yes) enable_static=yes ;;
7952 no) enable_static=no ;;
7955 # Look at the argument we got. We use all the common list separators.
7956 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7957 for pkg in $enableval; do
7959 if test "X$pkg" = "X$p"; then
7979 # Check whether --with-pic was given.
7980 if test "${with_pic+set}" = set; then :
7981 withval=$with_pic; pic_mode="$withval"
7987 test -z "$pic_mode" && pic_mode=default
7995 # Check whether --enable-fast-install was given.
7996 if test "${enable_fast_install+set}" = set; then :
7997 enableval=$enable_fast_install; p=${PACKAGE-default}
7999 yes) enable_fast_install=yes ;;
8000 no) enable_fast_install=no ;;
8002 enable_fast_install=no
8003 # Look at the argument we got. We use all the common list separators.
8004 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8005 for pkg in $enableval; do
8007 if test "X$pkg" = "X$p"; then
8008 enable_fast_install=yes
8015 enable_fast_install=yes
8028 # This can be used to rebuild libtool when needed
8029 LIBTOOL_DEPS="$ltmain"
8031 # Always use our own libtool.
8032 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8059 test -z "$LN_S" && LN_S="ln -s"
8074 if test -n "${ZSH_VERSION+set}" ; then
8075 setopt NO_GLOB_SUBST
8078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8079 $as_echo_n "checking for objdir... " >&6; }
8080 if ${lt_cv_objdir+:} false; then :
8081 $as_echo_n "(cached) " >&6
8083 rm -f .libs 2>/dev/null
8084 mkdir .libs 2>/dev/null
8085 if test -d .libs; then
8088 # MS-DOS does not allow filenames that begin with a dot.
8091 rmdir .libs 2>/dev/null
8093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8094 $as_echo "$lt_cv_objdir" >&6; }
8095 objdir=$lt_cv_objdir
8101 cat >>confdefs.h <<_ACEOF
8102 #define LT_OBJDIR "$lt_cv_objdir/"
8110 # AIX sometimes has problems with the GCC collect2 program. For some
8111 # reason, if we set the COLLECT_NAMES environment variable, the problems
8112 # vanish in a puff of smoke.
8113 if test "X${COLLECT_NAMES+set}" != Xset; then
8115 export COLLECT_NAMES
8122 can_build_shared=yes
8124 # All known linkers require a `.a' archive for static linking (except MSVC,
8125 # which needs '.lib').
8128 with_gnu_ld="$lt_cv_prog_gnu_ld"
8131 old_CFLAGS="$CFLAGS"
8133 # Set sane defaults for various variables
8134 test -z "$CC" && CC=cc
8135 test -z "$LTCC" && LTCC=$CC
8136 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8137 test -z "$LD" && LD=ld
8138 test -z "$ac_objext" && ac_objext=o
8140 for cc_temp in $compiler""; do
8142 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8143 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8148 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8151 # Only perform the check for file, if the check method requires it
8152 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8153 case $deplibs_check_method in
8155 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8157 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8158 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8159 $as_echo_n "(cached) " >&6
8163 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8166 lt_save_MAGIC_CMD="$MAGIC_CMD"
8167 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8168 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8169 for ac_dir in $ac_dummy; do
8171 test -z "$ac_dir" && ac_dir=.
8172 if test -f $ac_dir/${ac_tool_prefix}file; then
8173 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8174 if test -n "$file_magic_test_file"; then
8175 case $deplibs_check_method in
8177 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8178 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8179 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8180 $EGREP "$file_magic_regex" > /dev/null; then
8185 *** Warning: the command libtool uses to detect shared libraries,
8186 *** $file_magic_cmd, produces output that libtool cannot recognize.
8187 *** The result is that libtool may fail to recognize shared libraries
8188 *** as such. This will affect the creation of libtool libraries that
8189 *** depend on shared libraries, but programs linked with such libtool
8190 *** libraries will work regardless of this problem. Nevertheless, you
8191 *** may want to report the problem to your system manager and/or to
8192 *** bug-libtool@gnu.org
8202 MAGIC_CMD="$lt_save_MAGIC_CMD"
8207 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8208 if test -n "$MAGIC_CMD"; then
8209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8210 $as_echo "$MAGIC_CMD" >&6; }
8212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8213 $as_echo "no" >&6; }
8220 if test -z "$lt_cv_path_MAGIC_CMD"; then
8221 if test -n "$ac_tool_prefix"; then
8222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8223 $as_echo_n "checking for file... " >&6; }
8224 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8225 $as_echo_n "(cached) " >&6
8229 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8232 lt_save_MAGIC_CMD="$MAGIC_CMD"
8233 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8234 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8235 for ac_dir in $ac_dummy; do
8237 test -z "$ac_dir" && ac_dir=.
8238 if test -f $ac_dir/file; then
8239 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8240 if test -n "$file_magic_test_file"; then
8241 case $deplibs_check_method in
8243 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8244 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8245 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8246 $EGREP "$file_magic_regex" > /dev/null; then
8251 *** Warning: the command libtool uses to detect shared libraries,
8252 *** $file_magic_cmd, produces output that libtool cannot recognize.
8253 *** The result is that libtool may fail to recognize shared libraries
8254 *** as such. This will affect the creation of libtool libraries that
8255 *** depend on shared libraries, but programs linked with such libtool
8256 *** libraries will work regardless of this problem. Nevertheless, you
8257 *** may want to report the problem to your system manager and/or to
8258 *** bug-libtool@gnu.org
8268 MAGIC_CMD="$lt_save_MAGIC_CMD"
8273 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8274 if test -n "$MAGIC_CMD"; then
8275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8276 $as_echo "$MAGIC_CMD" >&6; }
8278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8279 $as_echo "no" >&6; }
8292 # Use C for the default configuration in the libtool script
8296 ac_cpp='$CPP $CPPFLAGS'
8297 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8298 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8299 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8302 # Source file extension for C test sources.
8305 # Object file extension for compiled C test sources.
8309 # Code to be used in simple compile tests
8310 lt_simple_compile_test_code="int some_variable = 0;"
8312 # Code to be used in simple link tests
8313 lt_simple_link_test_code='int main(){return(0);}'
8321 # If no C compiler was specified, use CC.
8324 # If no C compiler flags were specified, use CFLAGS.
8325 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8327 # Allow CC to be a program name with arguments.
8330 # Save the default compiler, since it gets overwritten when the other
8331 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8332 compiler_DEFAULT=$CC
8334 # save warnings/boilerplate of simple test code
8335 ac_outfile=conftest.$ac_objext
8336 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8337 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8338 _lt_compiler_boilerplate=`cat conftest.err`
8341 ac_outfile=conftest.$ac_objext
8342 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8343 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8344 _lt_linker_boilerplate=`cat conftest.err`
8348 if test -n "$compiler"; then
8350 lt_prog_compiler_no_builtin_flag=
8352 if test "$GCC" = yes; then
8353 case $cc_basename in
8355 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8357 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8361 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8362 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8363 $as_echo_n "(cached) " >&6
8365 lt_cv_prog_compiler_rtti_exceptions=no
8366 ac_outfile=conftest.$ac_objext
8367 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8368 lt_compiler_flag="-fno-rtti -fno-exceptions"
8369 # Insert the option either (1) after the last *FLAGS variable, or
8370 # (2) before a word containing "conftest.", or (3) at the end.
8371 # Note that $ac_compile itself does not contain backslashes and begins
8372 # with a dollar sign (not a hyphen), so the echo should work correctly.
8373 # The option is referenced via a variable to avoid confusing sed.
8374 lt_compile=`echo "$ac_compile" | $SED \
8375 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8376 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8377 -e 's:$: $lt_compiler_flag:'`
8378 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8379 (eval "$lt_compile" 2>conftest.err)
8381 cat conftest.err >&5
8382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8383 if (exit $ac_status) && test -s "$ac_outfile"; then
8384 # The compiler can only warn and ignore the option if not recognized
8385 # So say no if there are warnings other than the usual output.
8386 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8387 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8388 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8389 lt_cv_prog_compiler_rtti_exceptions=yes
8395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8396 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8398 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8399 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8411 lt_prog_compiler_wl=
8412 lt_prog_compiler_pic=
8413 lt_prog_compiler_static=
8416 if test "$GCC" = yes; then
8417 lt_prog_compiler_wl='-Wl,'
8418 lt_prog_compiler_static='-static'
8422 # All AIX code is PIC.
8423 if test "$host_cpu" = ia64; then
8424 # AIX 5 now supports IA64 processor
8425 lt_prog_compiler_static='-Bstatic'
8432 # see comment about AmigaOS4 .so support
8433 lt_prog_compiler_pic='-fPIC'
8436 # FIXME: we need at least 68020 code to build shared libraries, but
8437 # adding the `-m68020' flag to GCC prevents building anything better,
8439 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8444 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8445 # PIC is the default for these OSes.
8448 mingw* | cygwin* | pw32* | os2* | cegcc*)
8449 # This hack is so that the source file can tell whether it is being
8450 # built for inclusion in a dll (and should export symbols for example).
8451 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8452 # (--disable-auto-import) libraries
8453 lt_prog_compiler_pic='-DDLL_EXPORT'
8456 darwin* | rhapsody*)
8457 # PIC is the default on this platform
8458 # Common symbols not allowed in MH_DYLIB files
8459 lt_prog_compiler_pic='-fno-common'
8463 # PIC is the default for Haiku.
8464 # The "-static" flag exists, but is broken.
8465 lt_prog_compiler_static=
8469 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8470 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8471 # sets the default TLS model and affects inlining.
8477 lt_prog_compiler_pic='-fPIC'
8483 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8484 # Instead, we relocate shared libraries at runtime.
8488 # Just because we use GCC doesn't mean we suddenly get shared libraries
8489 # on systems that don't support them.
8490 lt_prog_compiler_can_build_shared=no
8495 # QNX uses GNU C++, but need to define -shared option too, otherwise
8497 lt_prog_compiler_pic='-fPIC -shared'
8501 if test -d /usr/nec; then
8502 lt_prog_compiler_pic=-Kconform_pic
8507 lt_prog_compiler_pic='-fPIC'
8511 case $cc_basename in
8512 nvcc*) # Cuda Compiler Driver 2.2
8513 lt_prog_compiler_wl='-Xlinker '
8514 lt_prog_compiler_pic='-Xcompiler -fPIC'
8518 # PORTME Check for flag to pass linker flags through the system compiler.
8521 lt_prog_compiler_wl='-Wl,'
8522 if test "$host_cpu" = ia64; then
8523 # AIX 5 now supports IA64 processor
8524 lt_prog_compiler_static='-Bstatic'
8526 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8530 mingw* | cygwin* | pw32* | os2* | cegcc*)
8531 # This hack is so that the source file can tell whether it is being
8532 # built for inclusion in a dll (and should export symbols for example).
8533 lt_prog_compiler_pic='-DDLL_EXPORT'
8536 hpux9* | hpux10* | hpux11*)
8537 lt_prog_compiler_wl='-Wl,'
8538 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8545 lt_prog_compiler_pic='+Z'
8548 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8549 lt_prog_compiler_static='${wl}-a ${wl}archive'
8552 irix5* | irix6* | nonstopux*)
8553 lt_prog_compiler_wl='-Wl,'
8554 # PIC (with -KPIC) is the default.
8555 lt_prog_compiler_static='-non_shared'
8558 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8559 case $cc_basename in
8560 # old Intel for x86_64 which still supported -KPIC.
8562 lt_prog_compiler_wl='-Wl,'
8563 lt_prog_compiler_pic='-KPIC'
8564 lt_prog_compiler_static='-static'
8566 # icc used to be incompatible with GCC.
8567 # ICC 10 doesn't accept -KPIC any more.
8569 lt_prog_compiler_wl='-Wl,'
8570 lt_prog_compiler_pic='-fPIC'
8571 lt_prog_compiler_static='-static'
8573 # Lahey Fortran 8.1.
8575 lt_prog_compiler_wl='-Wl,'
8576 lt_prog_compiler_pic='--shared'
8577 lt_prog_compiler_static='--static'
8580 # NAG Fortran compiler
8581 lt_prog_compiler_wl='-Wl,-Wl,,'
8582 lt_prog_compiler_pic='-PIC'
8583 lt_prog_compiler_static='-Bstatic'
8585 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8586 # Portland Group compilers (*not* the Pentium gcc compiler,
8587 # which looks to be a dead project)
8588 lt_prog_compiler_wl='-Wl,'
8589 lt_prog_compiler_pic='-fpic'
8590 lt_prog_compiler_static='-Bstatic'
8593 lt_prog_compiler_wl='-Wl,'
8594 # All Alpha code is PIC.
8595 lt_prog_compiler_static='-non_shared'
8597 xl* | bgxl* | bgf* | mpixl*)
8598 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8599 lt_prog_compiler_wl='-Wl,'
8600 lt_prog_compiler_pic='-qpic'
8601 lt_prog_compiler_static='-qstaticlink'
8604 case `$CC -V 2>&1 | sed 5q` in
8605 *Sun\ F* | *Sun*Fortran*)
8606 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8607 lt_prog_compiler_pic='-KPIC'
8608 lt_prog_compiler_static='-Bstatic'
8609 lt_prog_compiler_wl=''
8613 lt_prog_compiler_pic='-KPIC'
8614 lt_prog_compiler_static='-Bstatic'
8615 lt_prog_compiler_wl='-Wl,'
8623 lt_prog_compiler_pic='-KPIC'
8624 lt_prog_compiler_static='-Bstatic'
8628 # QNX uses GNU C++, but need to define -shared option too, otherwise
8630 lt_prog_compiler_pic='-fPIC -shared'
8633 osf3* | osf4* | osf5*)
8634 lt_prog_compiler_wl='-Wl,'
8635 # All OSF/1 code is PIC.
8636 lt_prog_compiler_static='-non_shared'
8640 lt_prog_compiler_static='-non_shared'
8644 lt_prog_compiler_pic='-KPIC'
8645 lt_prog_compiler_static='-Bstatic'
8646 case $cc_basename in
8647 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8648 lt_prog_compiler_wl='-Qoption ld ';;
8650 lt_prog_compiler_wl='-Wl,';;
8655 lt_prog_compiler_wl='-Qoption ld '
8656 lt_prog_compiler_pic='-PIC'
8657 lt_prog_compiler_static='-Bstatic'
8660 sysv4 | sysv4.2uw2* | sysv4.3*)
8661 lt_prog_compiler_wl='-Wl,'
8662 lt_prog_compiler_pic='-KPIC'
8663 lt_prog_compiler_static='-Bstatic'
8667 if test -d /usr/nec ;then
8668 lt_prog_compiler_pic='-Kconform_pic'
8669 lt_prog_compiler_static='-Bstatic'
8673 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8674 lt_prog_compiler_wl='-Wl,'
8675 lt_prog_compiler_pic='-KPIC'
8676 lt_prog_compiler_static='-Bstatic'
8680 lt_prog_compiler_wl='-Wl,'
8681 lt_prog_compiler_can_build_shared=no
8685 lt_prog_compiler_pic='-pic'
8686 lt_prog_compiler_static='-Bstatic'
8690 lt_prog_compiler_can_build_shared=no
8696 # For platforms which do not support PIC, -DPIC is meaningless:
8698 lt_prog_compiler_pic=
8701 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8706 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8707 if ${lt_cv_prog_compiler_pic+:} false; then :
8708 $as_echo_n "(cached) " >&6
8710 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8713 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8714 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8717 # Check to make sure the PIC flag actually works.
8719 if test -n "$lt_prog_compiler_pic"; then
8720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8721 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8722 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8723 $as_echo_n "(cached) " >&6
8725 lt_cv_prog_compiler_pic_works=no
8726 ac_outfile=conftest.$ac_objext
8727 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8728 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8729 # Insert the option either (1) after the last *FLAGS variable, or
8730 # (2) before a word containing "conftest.", or (3) at the end.
8731 # Note that $ac_compile itself does not contain backslashes and begins
8732 # with a dollar sign (not a hyphen), so the echo should work correctly.
8733 # The option is referenced via a variable to avoid confusing sed.
8734 lt_compile=`echo "$ac_compile" | $SED \
8735 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8736 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8737 -e 's:$: $lt_compiler_flag:'`
8738 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8739 (eval "$lt_compile" 2>conftest.err)
8741 cat conftest.err >&5
8742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8743 if (exit $ac_status) && test -s "$ac_outfile"; then
8744 # The compiler can only warn and ignore the option if not recognized
8745 # So say no if there are warnings other than the usual output.
8746 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8747 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8748 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8749 lt_cv_prog_compiler_pic_works=yes
8755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8756 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8758 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8759 case $lt_prog_compiler_pic in
8761 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8764 lt_prog_compiler_pic=
8765 lt_prog_compiler_can_build_shared=no
8781 # Check to make sure the static flag actually works.
8783 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8785 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8786 if ${lt_cv_prog_compiler_static_works+:} false; then :
8787 $as_echo_n "(cached) " >&6
8789 lt_cv_prog_compiler_static_works=no
8790 save_LDFLAGS="$LDFLAGS"
8791 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8792 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8793 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8794 # The linker can only warn and ignore the option if not recognized
8795 # So say no if there are warnings
8796 if test -s conftest.err; then
8797 # Append any errors to the config.log.
8798 cat conftest.err 1>&5
8799 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8800 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8801 if diff conftest.exp conftest.er2 >/dev/null; then
8802 lt_cv_prog_compiler_static_works=yes
8805 lt_cv_prog_compiler_static_works=yes
8809 LDFLAGS="$save_LDFLAGS"
8812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8813 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8815 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8818 lt_prog_compiler_static=
8827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8828 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8829 if ${lt_cv_prog_compiler_c_o+:} false; then :
8830 $as_echo_n "(cached) " >&6
8832 lt_cv_prog_compiler_c_o=no
8833 $RM -r conftest 2>/dev/null
8837 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8839 lt_compiler_flag="-o out/conftest2.$ac_objext"
8840 # Insert the option either (1) after the last *FLAGS variable, or
8841 # (2) before a word containing "conftest.", or (3) at the end.
8842 # Note that $ac_compile itself does not contain backslashes and begins
8843 # with a dollar sign (not a hyphen), so the echo should work correctly.
8844 lt_compile=`echo "$ac_compile" | $SED \
8845 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8846 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8847 -e 's:$: $lt_compiler_flag:'`
8848 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8849 (eval "$lt_compile" 2>out/conftest.err)
8851 cat out/conftest.err >&5
8852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8853 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8855 # The compiler can only warn and ignore the option if not recognized
8856 # So say no if there are warnings
8857 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8858 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8859 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8860 lt_cv_prog_compiler_c_o=yes
8865 # SGI C++ compiler will create directory out/ii_files/ for
8866 # template instantiation
8867 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8868 $RM out/* && rmdir out
8874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8875 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8883 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8884 if ${lt_cv_prog_compiler_c_o+:} false; then :
8885 $as_echo_n "(cached) " >&6
8887 lt_cv_prog_compiler_c_o=no
8888 $RM -r conftest 2>/dev/null
8892 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8894 lt_compiler_flag="-o out/conftest2.$ac_objext"
8895 # Insert the option either (1) after the last *FLAGS variable, or
8896 # (2) before a word containing "conftest.", or (3) at the end.
8897 # Note that $ac_compile itself does not contain backslashes and begins
8898 # with a dollar sign (not a hyphen), so the echo should work correctly.
8899 lt_compile=`echo "$ac_compile" | $SED \
8900 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8901 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8902 -e 's:$: $lt_compiler_flag:'`
8903 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8904 (eval "$lt_compile" 2>out/conftest.err)
8906 cat out/conftest.err >&5
8907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8908 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8910 # The compiler can only warn and ignore the option if not recognized
8911 # So say no if there are warnings
8912 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8913 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8914 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8915 lt_cv_prog_compiler_c_o=yes
8920 # SGI C++ compiler will create directory out/ii_files/ for
8921 # template instantiation
8922 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8923 $RM out/* && rmdir out
8929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8930 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8935 hard_links="nottested"
8936 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8937 # do not overwrite the value of need_locks provided by the user
8938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8939 $as_echo_n "checking if we can lock with hard links... " >&6; }
8942 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8944 ln conftest.a conftest.b 2>&5 || hard_links=no
8945 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8947 $as_echo "$hard_links" >&6; }
8948 if test "$hard_links" = no; then
8949 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8950 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8963 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8966 allow_undefined_flag=
8967 always_export_symbols=no
8969 archive_expsym_cmds=
8970 compiler_needs_object=no
8971 enable_shared_with_static_runtimes=no
8972 export_dynamic_flag_spec=
8973 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8974 hardcode_automatic=no
8976 hardcode_direct_absolute=no
8977 hardcode_libdir_flag_spec=
8978 hardcode_libdir_flag_spec_ld=
8979 hardcode_libdir_separator=
8981 hardcode_shlibpath_var=unsupported
8983 link_all_deplibs=unknown
8986 old_archive_from_new_cmds=
8987 old_archive_from_expsyms_cmds=
8988 thread_safe_flag_spec=
8989 whole_archive_flag_spec=
8990 # include_expsyms should be a list of space-separated symbols to be *always*
8991 # included in the symbol list
8993 # exclude_expsyms can be an extended regexp of symbols to exclude
8994 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8995 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8996 # as well as any symbol that contains `d'.
8997 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8998 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8999 # platforms (ab)use it in PIC code, but their linkers get confused if
9000 # the symbol is explicitly referenced. Since portable code cannot
9001 # rely on this symbol name, it's probably fine to never include it in
9002 # preloaded symbol tables.
9003 # Exclude shared library initialization/finalization symbols.
9004 extract_expsyms_cmds=
9007 cygwin* | mingw* | pw32* | cegcc*)
9008 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9009 # When not using gcc, we currently assume that we are using
9010 # Microsoft Visual C++.
9011 if test "$GCC" != yes; then
9016 # we just hope/assume this is gcc and not c89 (= MSVC++)
9022 linux* | k*bsd*-gnu | gnu*)
9029 # On some targets, GNU ld is compatible enough with the native linker
9030 # that we're better off using the native interface for both.
9031 lt_use_gnu_ld_interface=no
9032 if test "$with_gnu_ld" = yes; then
9035 # The AIX port of GNU ld has always aspired to compatibility
9036 # with the native linker. However, as the warning in the GNU ld
9037 # block says, versions before 2.19.5* couldn't really create working
9038 # shared libraries, regardless of the interface used.
9039 case `$LD -v 2>&1` in
9040 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9041 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9042 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9044 lt_use_gnu_ld_interface=yes
9049 lt_use_gnu_ld_interface=yes
9054 if test "$lt_use_gnu_ld_interface" = yes; then
9055 # If archive_cmds runs LD, not CC, wlarc should be empty
9058 # Set some defaults for GNU ld with shared library support. These
9059 # are reset later if shared libraries are not supported. Putting them
9060 # here allows them to be overridden if necessary.
9061 runpath_var=LD_RUN_PATH
9062 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9063 export_dynamic_flag_spec='${wl}--export-dynamic'
9064 # ancient GNU ld didn't support --whole-archive et. al.
9065 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9066 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9068 whole_archive_flag_spec=
9070 supports_anon_versioning=no
9071 case `$LD -v 2>&1` in
9072 *GNU\ gold*) supports_anon_versioning=yes ;;
9073 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9074 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9075 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9076 *\ 2.11.*) ;; # other 2.11 versions
9077 *) supports_anon_versioning=yes ;;
9080 # See if GNU ld supports shared libraries.
9083 # On AIX/PPC, the GNU linker is very broken
9084 if test "$host_cpu" != ia64; then
9088 *** Warning: the GNU linker, at least up to release 2.19, is reported
9089 *** to be unable to reliably create shared libraries on AIX.
9090 *** Therefore, libtool is disabling shared libraries support. If you
9091 *** really care for shared libraries, you may want to install binutils
9092 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9093 *** You will then need to restart the configuration process.
9102 # see comment about AmigaOS4 .so support
9103 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9104 archive_expsym_cmds=''
9107 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
9108 hardcode_libdir_flag_spec='-L$libdir'
9109 hardcode_minus_L=yes
9115 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9116 allow_undefined_flag=unsupported
9117 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9118 # support --undefined. This deserves some investigation. FIXME
9119 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9125 cygwin* | mingw* | pw32* | cegcc*)
9126 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9127 # as there is no search path for DLLs.
9128 hardcode_libdir_flag_spec='-L$libdir'
9129 export_dynamic_flag_spec='${wl}--export-all-symbols'
9130 allow_undefined_flag=unsupported
9131 always_export_symbols=no
9132 enable_shared_with_static_runtimes=yes
9133 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
9134 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9136 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9137 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9138 # If the export-symbols file already is a .def file (1st line
9139 # is EXPORTS), use it as is; otherwise, prepend...
9140 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9141 cp $export_symbols $output_objdir/$soname.def;
9143 echo EXPORTS > $output_objdir/$soname.def;
9144 cat $export_symbols >> $output_objdir/$soname.def;
9146 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9153 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9154 link_all_deplibs=yes
9159 hardcode_shlibpath_var=no
9160 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9161 export_dynamic_flag_spec='${wl}-E'
9162 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9163 # Instead, shared libraries are loaded at an image base (0x10000000 by
9164 # default) and relocated if they conflict, which is a slow very memory
9165 # consuming and fragmenting process. To avoid this, we pick a random,
9166 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9167 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9168 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9169 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9172 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9174 if test "$host_os" = linux-dietlibc; then
9175 case $cc_basename in
9176 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9179 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9180 && test "$tmp_diet" = no
9182 tmp_addflag=' $pic_flag'
9183 tmp_sharedflag='-shared'
9184 case $cc_basename,$host_cpu in
9185 pgcc*) # Portland Group C compiler
9186 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9187 tmp_addflag=' $pic_flag'
9189 pgf77* | pgf90* | pgf95* | pgfortran*)
9190 # Portland Group f77 and f90 compilers
9191 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9192 tmp_addflag=' $pic_flag -Mnomain' ;;
9193 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9194 tmp_addflag=' -i_dynamic' ;;
9195 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9196 tmp_addflag=' -i_dynamic -nofor_main' ;;
9197 ifc* | ifort*) # Intel Fortran compiler
9198 tmp_addflag=' -nofor_main' ;;
9199 lf95*) # Lahey Fortran 8.1
9200 whole_archive_flag_spec=
9201 tmp_sharedflag='--shared' ;;
9202 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9203 tmp_sharedflag='-qmkshrobj'
9205 nvcc*) # Cuda Compiler Driver 2.2
9206 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9207 compiler_needs_object=yes
9210 case `$CC -V 2>&1 | sed 5q` in
9211 *Sun\ C*) # Sun C 5.9
9212 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9213 compiler_needs_object=yes
9214 tmp_sharedflag='-G' ;;
9215 *Sun\ F*) # Sun Fortran 8.3
9216 tmp_sharedflag='-G' ;;
9218 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9220 if test "x$supports_anon_versioning" = xyes; then
9221 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9222 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9223 echo "local: *; };" >> $output_objdir/$libname.ver~
9224 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9227 case $cc_basename in
9228 xlf* | bgf* | bgxlf* | mpixlf*)
9229 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9230 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9231 hardcode_libdir_flag_spec=
9232 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9233 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9234 if test "x$supports_anon_versioning" = xyes; then
9235 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9236 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9237 echo "local: *; };" >> $output_objdir/$libname.ver~
9238 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9247 netbsd* | netbsdelf*-gnu)
9248 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9249 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9252 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9253 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9258 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9262 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9263 *** create shared libraries on Solaris systems. Therefore, libtool
9264 *** is disabling shared libraries support. We urge you to upgrade GNU
9265 *** binutils to release 2.9.1 or newer. Another option is to modify
9266 *** your PATH or compiler configuration so that the native linker is
9267 *** used, and then restart.
9270 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9271 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9272 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9278 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9279 case `$LD -v 2>&1` in
9280 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9284 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9285 *** reliably create shared libraries on SCO systems. Therefore, libtool
9286 *** is disabling shared libraries support. We urge you to upgrade GNU
9287 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9288 *** your PATH or compiler configuration so that the native linker is
9289 *** used, and then restart.
9294 # For security reasons, it is highly recommended that you always
9295 # use absolute paths for naming shared libraries, and exclude the
9296 # DT_RUNPATH tag from executables and libraries. But doing so
9297 # requires that you compile everything twice, which is a pain.
9298 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9299 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9300 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9301 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9310 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9313 hardcode_shlibpath_var=no
9317 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9318 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9319 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9326 if test "$ld_shlibs" = no; then
9328 hardcode_libdir_flag_spec=
9329 export_dynamic_flag_spec=
9330 whole_archive_flag_spec=
9333 # PORTME fill in a description of your system's linker (not GNU ld)
9336 allow_undefined_flag=unsupported
9337 always_export_symbols=yes
9338 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
9339 # Note: this linker hardcodes the directories in LIBPATH if there
9340 # are no directories specified by -L.
9341 hardcode_minus_L=yes
9342 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9343 # Neither direct hardcoding nor static linking is supported with a
9345 hardcode_direct=unsupported
9350 if test "$host_cpu" = ia64; then
9351 # On IA64, the linker does run time linking by default, so we don't
9352 # have to do anything special.
9353 aix_use_runtimelinking=no
9354 exp_sym_flag='-Bexport'
9357 # If we're using GNU nm, then we don't want the "-C" option.
9358 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9359 # Also, AIX nm treats weak defined symbols like other global
9360 # defined symbols, whereas GNU nm marks them as "W".
9361 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9362 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9364 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9366 aix_use_runtimelinking=no
9368 # Test if we are trying to use run time linking or normal
9369 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9370 # need to do runtime linking.
9371 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9372 for ld_flag in $LDFLAGS; do
9373 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9374 aix_use_runtimelinking=yes
9381 exp_sym_flag='-bexport'
9382 no_entry_flag='-bnoentry'
9385 # When large executables or shared objects are built, AIX ld can
9386 # have problems creating the table of contents. If linking a library
9387 # or program results in "error TOC overflow" add -mminimal-toc to
9388 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9389 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9393 hardcode_direct_absolute=yes
9394 hardcode_libdir_separator=':'
9395 link_all_deplibs=yes
9396 file_list_spec='${wl}-f,'
9398 if test "$GCC" = yes; then
9399 case $host_os in aix4.[012]|aix4.[012].*)
9400 # We only want to do this on AIX 4.2 and lower, the check
9401 # below for broken collect2 doesn't work under 4.3+
9402 collect2name=`${CC} -print-prog-name=collect2`
9403 if test -f "$collect2name" &&
9404 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9406 # We have reworked collect2
9409 # We have old collect2
9410 hardcode_direct=unsupported
9411 # It fails to find uninstalled libraries when the uninstalled
9412 # path is not listed in the libpath. Setting hardcode_minus_L
9413 # to unsupported forces relinking
9414 hardcode_minus_L=yes
9415 hardcode_libdir_flag_spec='-L$libdir'
9416 hardcode_libdir_separator=
9420 shared_flag='-shared'
9421 if test "$aix_use_runtimelinking" = yes; then
9422 shared_flag="$shared_flag "'${wl}-G'
9427 if test "$host_cpu" = ia64; then
9428 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9429 # chokes on -Wl,-G. The following line is correct:
9432 if test "$aix_use_runtimelinking" = yes; then
9433 shared_flag='${wl}-G'
9435 shared_flag='${wl}-bM:SRE'
9440 export_dynamic_flag_spec='${wl}-bexpall'
9441 # It seems that -bexpall does not export symbols beginning with
9442 # underscore (_), so it is better to generate a list of symbols to export.
9443 always_export_symbols=yes
9444 if test "$aix_use_runtimelinking" = yes; then
9445 # Warning - without using the other runtime loading flags (-brtl),
9446 # -berok will link without error, but may produce a broken library.
9447 allow_undefined_flag='-berok'
9448 # Determine the default libpath from the value encoded in an
9450 if test "${lt_cv_aix_libpath+set}" = set; then
9451 aix_libpath=$lt_cv_aix_libpath
9453 if ${lt_cv_aix_libpath_+:} false; then :
9454 $as_echo_n "(cached) " >&6
9456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9457 /* end confdefs.h. */
9467 if ac_fn_c_try_link "$LINENO"; then :
9469 lt_aix_libpath_sed='
9470 /Import File Strings/,/^$/ {
9472 s/^0 *\([^ ]*\) *$/\1/
9476 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9477 # Check for a 64-bit object if we didn't find anything.
9478 if test -z "$lt_cv_aix_libpath_"; then
9479 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9482 rm -f core conftest.err conftest.$ac_objext \
9483 conftest$ac_exeext conftest.$ac_ext
9484 if test -z "$lt_cv_aix_libpath_"; then
9485 lt_cv_aix_libpath_="/usr/lib:/lib"
9490 aix_libpath=$lt_cv_aix_libpath_
9493 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9494 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9496 if test "$host_cpu" = ia64; then
9497 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9498 allow_undefined_flag="-z nodefs"
9499 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
9501 # Determine the default libpath from the value encoded in an
9503 if test "${lt_cv_aix_libpath+set}" = set; then
9504 aix_libpath=$lt_cv_aix_libpath
9506 if ${lt_cv_aix_libpath_+:} false; then :
9507 $as_echo_n "(cached) " >&6
9509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9510 /* end confdefs.h. */
9520 if ac_fn_c_try_link "$LINENO"; then :
9522 lt_aix_libpath_sed='
9523 /Import File Strings/,/^$/ {
9525 s/^0 *\([^ ]*\) *$/\1/
9529 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9530 # Check for a 64-bit object if we didn't find anything.
9531 if test -z "$lt_cv_aix_libpath_"; then
9532 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9535 rm -f core conftest.err conftest.$ac_objext \
9536 conftest$ac_exeext conftest.$ac_ext
9537 if test -z "$lt_cv_aix_libpath_"; then
9538 lt_cv_aix_libpath_="/usr/lib:/lib"
9543 aix_libpath=$lt_cv_aix_libpath_
9546 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9547 # Warning - without using the other run time loading flags,
9548 # -berok will link without error, but may produce a broken library.
9549 no_undefined_flag=' ${wl}-bernotok'
9550 allow_undefined_flag=' ${wl}-berok'
9551 if test "$with_gnu_ld" = yes; then
9552 # We only use this code for GNU lds that support --whole-archive.
9553 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9555 # Exported symbols can be pulled into shared objects from archives
9556 whole_archive_flag_spec='$convenience'
9558 archive_cmds_need_lc=yes
9559 # This is similar to how AIX traditionally builds its shared libraries.
9560 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9568 # see comment about AmigaOS4 .so support
9569 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9570 archive_expsym_cmds=''
9573 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
9574 hardcode_libdir_flag_spec='-L$libdir'
9575 hardcode_minus_L=yes
9581 export_dynamic_flag_spec=-rdynamic
9584 cygwin* | mingw* | pw32* | cegcc*)
9585 # When not using gcc, we currently assume that we are using
9586 # Microsoft Visual C++.
9587 # hardcode_libdir_flag_spec is actually meaningless, as there is
9588 # no search path for DLLs.
9589 case $cc_basename in
9592 hardcode_libdir_flag_spec=' '
9593 allow_undefined_flag=unsupported
9594 always_export_symbols=yes
9596 # Tell ltmain to make .lib files, not .a files.
9598 # Tell ltmain to make .dll files, not .so files.
9600 # FIXME: Setting linknames here is a bad hack.
9601 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9602 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9603 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9605 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9607 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9609 # The linker will not automatically build a static lib if we build a DLL.
9610 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9611 enable_shared_with_static_runtimes=yes
9612 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9614 old_postinstall_cmds='chmod 644 $oldlib'
9615 postlink_cmds='lt_outputfile="@OUTPUT@"~
9616 lt_tool_outputfile="@TOOL_OUTPUT@"~
9617 case $lt_outputfile in
9620 lt_outputfile="$lt_outputfile.exe"
9621 lt_tool_outputfile="$lt_tool_outputfile.exe"
9624 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9625 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9626 $RM "$lt_outputfile.manifest";
9630 # Assume MSVC wrapper
9631 hardcode_libdir_flag_spec=' '
9632 allow_undefined_flag=unsupported
9633 # Tell ltmain to make .lib files, not .a files.
9635 # Tell ltmain to make .dll files, not .so files.
9637 # FIXME: Setting linknames here is a bad hack.
9638 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9639 # The linker will automatically build a .lib file if we build a DLL.
9640 old_archive_from_new_cmds='true'
9641 # FIXME: Should let the user specify the lib program.
9642 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9643 enable_shared_with_static_runtimes=yes
9648 darwin* | rhapsody*)
9651 archive_cmds_need_lc=no
9653 hardcode_automatic=yes
9654 hardcode_shlibpath_var=unsupported
9655 if test "$lt_cv_ld_force_load" = "yes"; then
9656 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
9658 whole_archive_flag_spec=''
9660 link_all_deplibs=yes
9661 allow_undefined_flag="$_lt_dar_allow_undefined"
9662 case $cc_basename in
9663 ifort*) _lt_dar_can_shared=yes ;;
9664 *) _lt_dar_can_shared=$GCC ;;
9666 if test "$_lt_dar_can_shared" = "yes"; then
9667 output_verbose_link_cmd=func_echo_all
9668 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9669 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9670 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
9671 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
9680 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9681 hardcode_libdir_flag_spec='-L$libdir'
9682 hardcode_shlibpath_var=no
9689 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9690 # support. Future versions do this automatically, but an explicit c++rt0.o
9691 # does not break anything, and helps significantly (at the cost of a little
9694 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9695 hardcode_libdir_flag_spec='-R$libdir'
9697 hardcode_shlibpath_var=no
9700 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9702 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9704 hardcode_minus_L=yes
9705 hardcode_shlibpath_var=no
9708 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9709 freebsd* | dragonfly*)
9710 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9711 hardcode_libdir_flag_spec='-R$libdir'
9713 hardcode_shlibpath_var=no
9717 if test "$GCC" = yes; then
9718 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9720 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9722 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9723 hardcode_libdir_separator=:
9726 # hardcode_minus_L: Not really in the search PATH,
9727 # but as the default location of the library.
9728 hardcode_minus_L=yes
9729 export_dynamic_flag_spec='${wl}-E'
9733 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9734 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9736 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9738 if test "$with_gnu_ld" = no; then
9739 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9740 hardcode_libdir_flag_spec_ld='+b $libdir'
9741 hardcode_libdir_separator=:
9743 hardcode_direct_absolute=yes
9744 export_dynamic_flag_spec='${wl}-E'
9745 # hardcode_minus_L: Not really in the search PATH,
9746 # but as the default location of the library.
9747 hardcode_minus_L=yes
9752 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9755 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9758 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9761 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9767 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9770 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9774 # Older versions of the 11.00 compiler do not understand -b yet
9775 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9777 $as_echo_n "checking if $CC understands -b... " >&6; }
9778 if ${lt_cv_prog_compiler__b+:} false; then :
9779 $as_echo_n "(cached) " >&6
9781 lt_cv_prog_compiler__b=no
9782 save_LDFLAGS="$LDFLAGS"
9783 LDFLAGS="$LDFLAGS -b"
9784 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9785 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9786 # The linker can only warn and ignore the option if not recognized
9787 # So say no if there are warnings
9788 if test -s conftest.err; then
9789 # Append any errors to the config.log.
9790 cat conftest.err 1>&5
9791 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9792 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9793 if diff conftest.exp conftest.er2 >/dev/null; then
9794 lt_cv_prog_compiler__b=yes
9797 lt_cv_prog_compiler__b=yes
9801 LDFLAGS="$save_LDFLAGS"
9804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9805 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9807 if test x"$lt_cv_prog_compiler__b" = xyes; then
9808 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9810 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9816 if test "$with_gnu_ld" = no; then
9817 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9818 hardcode_libdir_separator=:
9823 hardcode_shlibpath_var=no
9827 hardcode_direct_absolute=yes
9828 export_dynamic_flag_spec='${wl}-E'
9830 # hardcode_minus_L: Not really in the search PATH,
9831 # but as the default location of the library.
9832 hardcode_minus_L=yes
9838 irix5* | irix6* | nonstopux*)
9839 if test "$GCC" = yes; then
9840 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9841 # Try to use the -exported_symbol ld option, if it does not
9842 # work, assume that -exports_file does not work either and
9843 # implicitly export all symbols.
9844 # This should be the same for all languages, so no per-tag cache variable.
9845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9846 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9847 if ${lt_cv_irix_exported_symbol+:} false; then :
9848 $as_echo_n "(cached) " >&6
9850 save_LDFLAGS="$LDFLAGS"
9851 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9853 /* end confdefs.h. */
9854 int foo (void) { return 0; }
9856 if ac_fn_c_try_link "$LINENO"; then :
9857 lt_cv_irix_exported_symbol=yes
9859 lt_cv_irix_exported_symbol=no
9861 rm -f core conftest.err conftest.$ac_objext \
9862 conftest$ac_exeext conftest.$ac_ext
9863 LDFLAGS="$save_LDFLAGS"
9865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9866 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9867 if test "$lt_cv_irix_exported_symbol" = yes; then
9868 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9871 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9872 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
9874 archive_cmds_need_lc='no'
9875 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9876 hardcode_libdir_separator=:
9878 link_all_deplibs=yes
9881 netbsd* | netbsdelf*-gnu)
9882 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9883 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9885 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9887 hardcode_libdir_flag_spec='-R$libdir'
9889 hardcode_shlibpath_var=no
9893 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9895 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9896 hardcode_libdir_separator=:
9897 hardcode_shlibpath_var=no
9904 if test -f /usr/libexec/ld.so; then
9906 hardcode_shlibpath_var=no
9907 hardcode_direct_absolute=yes
9908 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9909 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9910 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9911 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9912 export_dynamic_flag_spec='${wl}-E'
9915 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9916 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9917 hardcode_libdir_flag_spec='-R$libdir'
9920 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9921 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9931 hardcode_libdir_flag_spec='-L$libdir'
9932 hardcode_minus_L=yes
9933 allow_undefined_flag=unsupported
9934 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
9935 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9939 if test "$GCC" = yes; then
9940 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9941 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9943 allow_undefined_flag=' -expect_unresolved \*'
9944 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9946 archive_cmds_need_lc='no'
9947 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9948 hardcode_libdir_separator=:
9951 osf4* | osf5*) # as osf3* with the addition of -msym flag
9952 if test "$GCC" = yes; then
9953 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9954 archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9955 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9957 allow_undefined_flag=' -expect_unresolved \*'
9958 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9959 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
9960 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
9962 # Both c and cxx compiler support -rpath directly
9963 hardcode_libdir_flag_spec='-rpath $libdir'
9965 archive_cmds_need_lc='no'
9966 hardcode_libdir_separator=:
9970 no_undefined_flag=' -z defs'
9971 if test "$GCC" = yes; then
9973 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9974 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9975 $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9977 case `$CC -V 2>&1` in
9980 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9981 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9982 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9986 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9987 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9988 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9992 hardcode_libdir_flag_spec='-R$libdir'
9993 hardcode_shlibpath_var=no
9995 solaris2.[0-5] | solaris2.[0-5].*) ;;
9997 # The compiler driver will combine and reorder linker options,
9998 # but understands `-z linker_flag'. GCC discards it without `$wl',
9999 # but is careful enough not to reorder.
10000 # Supported since Solaris 2.6 (maybe 2.5.1?)
10001 if test "$GCC" = yes; then
10002 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10004 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10008 link_all_deplibs=yes
10012 if test "x$host_vendor" = xsequent; then
10013 # Use $CC to link under sequent, because it throws in some extra .o
10014 # files that make .init and .fini sections work.
10015 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10017 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10019 hardcode_libdir_flag_spec='-L$libdir'
10020 hardcode_direct=yes
10021 hardcode_minus_L=yes
10022 hardcode_shlibpath_var=no
10026 case $host_vendor in
10028 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10029 hardcode_direct=yes # is this really true???
10032 ## LD is ld it makes a PLAMLIB
10033 ## CC just makes a GrossModule.
10034 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10035 reload_cmds='$CC -r -o $output$reload_objs'
10039 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10040 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10043 runpath_var='LD_RUN_PATH'
10044 hardcode_shlibpath_var=no
10048 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10049 hardcode_shlibpath_var=no
10050 export_dynamic_flag_spec='-Bexport'
10054 if test -d /usr/nec; then
10055 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10056 hardcode_shlibpath_var=no
10057 runpath_var=LD_RUN_PATH
10058 hardcode_runpath_var=yes
10063 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10064 no_undefined_flag='${wl}-z,text'
10065 archive_cmds_need_lc=no
10066 hardcode_shlibpath_var=no
10067 runpath_var='LD_RUN_PATH'
10069 if test "$GCC" = yes; then
10070 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10071 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10073 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10074 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10078 sysv5* | sco3.2v5* | sco5v6*)
10079 # Note: We can NOT use -z defs as we might desire, because we do not
10080 # link with -lc, and that would cause any symbols used from libc to
10081 # always be unresolved, which means just about no library would
10082 # ever link correctly. If we're not using GNU ld we use -z text
10083 # though, which does catch some bad symbols but isn't as heavy-handed
10085 no_undefined_flag='${wl}-z,text'
10086 allow_undefined_flag='${wl}-z,nodefs'
10087 archive_cmds_need_lc=no
10088 hardcode_shlibpath_var=no
10089 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10090 hardcode_libdir_separator=':'
10091 link_all_deplibs=yes
10092 export_dynamic_flag_spec='${wl}-Bexport'
10093 runpath_var='LD_RUN_PATH'
10095 if test "$GCC" = yes; then
10096 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10097 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10099 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10100 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10105 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10106 hardcode_libdir_flag_spec='-L$libdir'
10107 hardcode_shlibpath_var=no
10115 if test x$host_vendor = xsni; then
10117 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10118 export_dynamic_flag_spec='${wl}-Blargedynsym'
10124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10125 $as_echo "$ld_shlibs" >&6; }
10126 test "$ld_shlibs" = no && can_build_shared=no
10128 with_gnu_ld=$with_gnu_ld
10145 # Do we need to explicitly link libc?
10147 case "x$archive_cmds_need_lc" in
10149 # Assume -lc should be added
10150 archive_cmds_need_lc=yes
10152 if test "$enable_shared" = yes && test "$GCC" = yes; then
10153 case $archive_cmds in
10155 # FIXME: we may have to deal with multi-command sequences.
10158 # Test whether the compiler implicitly links with -lc since on some
10159 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10160 # to ld, don't add -lc before -lgcc.
10161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10162 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10163 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10164 $as_echo_n "(cached) " >&6
10167 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10169 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10170 (eval $ac_compile) 2>&5
10172 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10173 test $ac_status = 0; } 2>conftest.err; then
10176 libobjs=conftest.$ac_objext
10178 wl=$lt_prog_compiler_wl
10179 pic_flag=$lt_prog_compiler_pic
10185 lt_save_allow_undefined_flag=$allow_undefined_flag
10186 allow_undefined_flag=
10187 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10188 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10190 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10191 test $ac_status = 0; }
10193 lt_cv_archive_cmds_need_lc=no
10195 lt_cv_archive_cmds_need_lc=yes
10197 allow_undefined_flag=$lt_save_allow_undefined_flag
10199 cat conftest.err 1>&5
10204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10205 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10206 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10370 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10372 if test "$GCC" = yes; then
10374 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10375 *) lt_awk_arg="/^libraries:/" ;;
10378 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10379 *) lt_sed_strip_eq="s,=/,/,g" ;;
10381 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10382 case $lt_search_path_spec in
10384 # if the path contains ";" then we assume it to be the separator
10385 # otherwise default to the standard path separator (i.e. ":") - it is
10386 # assumed that no part of a normal pathname contains ";" but that should
10387 # okay in the real world where ";" in dirpaths is itself problematic.
10388 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10391 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10394 # Ok, now we have the path, separated by spaces, we can step through it
10395 # and add multilib dir if necessary.
10396 lt_tmp_lt_search_path_spec=
10397 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10398 for lt_sys_path in $lt_search_path_spec; do
10399 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10400 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10402 test -d "$lt_sys_path" && \
10403 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10406 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10407 BEGIN {RS=" "; FS="/|\n";} {
10410 for (lt_i = NF; lt_i > 0; lt_i--) {
10411 if ($lt_i != "" && $lt_i != ".") {
10412 if ($lt_i == "..") {
10415 if (lt_count == 0) {
10416 lt_foo="/" $lt_i lt_foo;
10423 if (lt_foo != "") { lt_freq[lt_foo]++; }
10424 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10426 # AWK program above erroneously prepends '/' to C:/dos/paths
10429 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10430 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10432 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10434 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10436 library_names_spec=
10437 libname_spec='lib$name'
10441 postuninstall_cmds=
10445 shlibpath_overrides_runpath=unknown
10447 dynamic_linker="$host_os ld.so"
10448 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10449 need_lib_prefix=unknown
10450 hardcode_into_libs=no
10452 # when you set need_version to no, make sure it does not cause -set_version
10453 # flags to be left without arguments
10454 need_version=unknown
10459 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10460 shlibpath_var=LIBPATH
10462 # AIX 3 has no versioning support, so we append a major version to the name.
10463 soname_spec='${libname}${release}${shared_ext}$major'
10470 hardcode_into_libs=yes
10471 if test "$host_cpu" = ia64; then
10472 # AIX 5 supports IA64
10473 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10474 shlibpath_var=LD_LIBRARY_PATH
10476 # With GCC up to 2.95.x, collect2 would create an import file
10477 # for dependence libraries. The import file would start with
10478 # the line `#! .'. This would cause the generated library to
10479 # depend on `.', always an invalid library. This was fixed in
10480 # development snapshots of GCC prior to 3.0.
10482 aix4 | aix4.[01] | aix4.[01].*)
10483 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10485 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10488 can_build_shared=no
10492 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10493 # soname into executable. Probably we can add versioning support to
10494 # collect2, so additional links can be useful in future.
10495 if test "$aix_use_runtimelinking" = yes; then
10496 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10497 # instead of lib<name>.a to let people know that these are not
10498 # typical AIX shared libraries.
10499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10501 # We preserve .a as extension for shared libraries through AIX4.2
10502 # and later when we are not doing run time linking.
10503 library_names_spec='${libname}${release}.a $libname.a'
10504 soname_spec='${libname}${release}${shared_ext}$major'
10506 shlibpath_var=LIBPATH
10513 # Since July 2007 AmigaOS4 officially supports .so libraries.
10514 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10515 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10518 library_names_spec='$libname.ixlibrary $libname.a'
10519 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10520 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10526 library_names_spec='${libname}${shared_ext}'
10527 dynamic_linker="$host_os ld.so"
10528 shlibpath_var=LIBRARY_PATH
10534 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10535 soname_spec='${libname}${release}${shared_ext}$major'
10536 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10537 shlibpath_var=LD_LIBRARY_PATH
10538 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10539 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10540 # the default ld.so.conf also contains /usr/contrib/lib and
10541 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10542 # libtool to hard-code these into programs
10545 cygwin* | mingw* | pw32* | cegcc*)
10546 version_type=windows
10551 case $GCC,$cc_basename in
10554 library_names_spec='$libname.dll.a'
10555 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10556 postinstall_cmds='base_file=`basename \${file}`~
10557 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10558 dldir=$destdir/`dirname \$dlpath`~
10559 test -d \$dldir || mkdir -p \$dldir~
10560 $install_prog $dir/$dlname \$dldir/$dlname~
10561 chmod a+x \$dldir/$dlname~
10562 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10563 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10565 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10566 dlpath=$dir/\$dldll~
10568 shlibpath_overrides_runpath=yes
10572 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10573 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10575 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10578 # MinGW DLLs use traditional 'lib' prefix
10579 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10582 # pw32 DLLs use 'pw' prefix rather than 'lib'
10583 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10586 dynamic_linker='Win32 ld.exe'
10591 libname_spec='$name'
10592 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10593 library_names_spec='${libname}.dll.lib'
10597 sys_lib_search_path_spec=
10600 for lt_path in $LIB
10603 # Let DOS variable expansion print the short 8.3 style file name.
10604 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10605 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10608 # Convert to MSYS style.
10609 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10612 # Convert to unix form, then to dos form, then back to unix form
10613 # but this time dos style (no spaces!) so that the unix form looks
10614 # like /cygdrive/c/PROGRA~1:/cygdr...
10615 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10616 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10617 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10620 sys_lib_search_path_spec="$LIB"
10621 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10622 # It is most probably a Windows format PATH.
10623 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10625 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10627 # FIXME: find the short name or the path components, as spaces are
10628 # common. (e.g. "Program Files" -> "PROGRA~1")
10632 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10633 postinstall_cmds='base_file=`basename \${file}`~
10634 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10635 dldir=$destdir/`dirname \$dlpath`~
10636 test -d \$dldir || mkdir -p \$dldir~
10637 $install_prog $dir/$dlname \$dldir/$dlname'
10638 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10639 dlpath=$dir/\$dldll~
10641 shlibpath_overrides_runpath=yes
10642 dynamic_linker='Win32 link.exe'
10646 # Assume MSVC wrapper
10647 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10648 dynamic_linker='Win32 ld.exe'
10651 # FIXME: first we should search . and the directory the executable is in
10655 darwin* | rhapsody*)
10656 dynamic_linker="$host_os dyld"
10657 version_type=darwin
10660 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10661 soname_spec='${libname}${release}${major}$shared_ext'
10662 shlibpath_overrides_runpath=yes
10663 shlibpath_var=DYLD_LIBRARY_PATH
10664 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10666 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10667 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10674 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10675 soname_spec='${libname}${release}${shared_ext}$major'
10676 shlibpath_var=LD_LIBRARY_PATH
10683 freebsd* | dragonfly*)
10684 # DragonFly does not have aout. When/if they implement a new
10685 # versioning mechanism, adjust this.
10686 if test -x /usr/bin/objformat; then
10687 objformat=`/usr/bin/objformat`
10690 freebsd[123]*) objformat=aout ;;
10691 *) objformat=elf ;;
10694 version_type=freebsd-$objformat
10695 case $version_type in
10697 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10702 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10706 shlibpath_var=LD_LIBRARY_PATH
10709 shlibpath_overrides_runpath=yes
10711 freebsd3.[01]* | freebsdelf3.[01]*)
10712 shlibpath_overrides_runpath=yes
10713 hardcode_into_libs=yes
10715 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10716 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10717 shlibpath_overrides_runpath=no
10718 hardcode_into_libs=yes
10720 *) # from 4.6 on, and DragonFly
10721 shlibpath_overrides_runpath=yes
10722 hardcode_into_libs=yes
10731 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10732 soname_spec='${libname}${release}${shared_ext}$major'
10733 shlibpath_var=LD_LIBRARY_PATH
10734 shlibpath_overrides_runpath=no
10735 hardcode_into_libs=yes
10742 dynamic_linker="$host_os runtime_loader"
10743 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10744 soname_spec='${libname}${release}${shared_ext}$major'
10745 shlibpath_var=LIBRARY_PATH
10746 shlibpath_overrides_runpath=yes
10747 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10748 hardcode_into_libs=yes
10751 hpux9* | hpux10* | hpux11*)
10752 # Give a soname corresponding to the major version so that dld.sl refuses to
10753 # link against other versions.
10760 hardcode_into_libs=yes
10761 dynamic_linker="$host_os dld.so"
10762 shlibpath_var=LD_LIBRARY_PATH
10763 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10764 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10765 soname_spec='${libname}${release}${shared_ext}$major'
10766 if test "X$HPUX_IA64_MODE" = X32; then
10767 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10769 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10771 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10775 hardcode_into_libs=yes
10776 dynamic_linker="$host_os dld.sl"
10777 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10778 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10779 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10780 soname_spec='${libname}${release}${shared_ext}$major'
10781 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10782 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10786 dynamic_linker="$host_os dld.sl"
10787 shlibpath_var=SHLIB_PATH
10788 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10789 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10790 soname_spec='${libname}${release}${shared_ext}$major'
10793 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10794 postinstall_cmds='chmod 555 $lib'
10795 # or fails outright, so override atomically:
10796 install_override_mode=555
10803 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10804 soname_spec='${libname}${release}${shared_ext}$major'
10805 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10806 shlibpath_var=LD_LIBRARY_PATH
10807 shlibpath_overrides_runpath=no
10808 hardcode_into_libs=yes
10811 irix5* | irix6* | nonstopux*)
10813 nonstopux*) version_type=nonstopux ;;
10815 if test "$lt_cv_prog_gnu_ld" = yes; then
10823 soname_spec='${libname}${release}${shared_ext}$major'
10824 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10826 irix5* | nonstopux*)
10827 libsuff= shlibsuff=
10830 case $LD in # libtool.m4 will add one of these switches to LD
10831 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10832 libsuff= shlibsuff= libmagic=32-bit;;
10833 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10834 libsuff=32 shlibsuff=N32 libmagic=N32;;
10835 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10836 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10837 *) libsuff= shlibsuff= libmagic=never-match;;
10841 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10842 shlibpath_overrides_runpath=no
10843 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10844 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10845 hardcode_into_libs=yes
10848 # No shared lib support for Linux oldld, aout, or coff.
10849 linux*oldld* | linux*aout* | linux*coff*)
10853 # This must be Linux ELF.
10854 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10858 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10859 soname_spec='${libname}${release}${shared_ext}$major'
10860 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10861 shlibpath_var=LD_LIBRARY_PATH
10862 shlibpath_overrides_runpath=no
10864 # Some binutils ld are patched to set DT_RUNPATH
10865 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10866 $as_echo_n "(cached) " >&6
10868 lt_cv_shlibpath_overrides_runpath=no
10869 save_LDFLAGS=$LDFLAGS
10870 save_libdir=$libdir
10871 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10872 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10874 /* end confdefs.h. */
10884 if ac_fn_c_try_link "$LINENO"; then :
10885 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10886 lt_cv_shlibpath_overrides_runpath=yes
10889 rm -f core conftest.err conftest.$ac_objext \
10890 conftest$ac_exeext conftest.$ac_ext
10891 LDFLAGS=$save_LDFLAGS
10892 libdir=$save_libdir
10896 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10898 # This implies no fast_install, which is unacceptable.
10899 # Some rework will be needed to allow for fast_install
10900 # before this can be enabled.
10901 hardcode_into_libs=yes
10903 # Append ld.so.conf contents to the search path
10904 if test -f /etc/ld.so.conf; then
10905 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
10906 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10909 # We used to test for /lib/ld.so.1 and disable shared libraries on
10910 # powerpc, because MkLinux only supported shared libraries with the
10911 # GNU dynamic linker. Since this was broken with cross compilers,
10912 # most powerpc-linux boxes support dynamic linking these days and
10913 # people can always --disable-shared, the test was removed, and we
10914 # assume the GNU/Linux dynamic linker is in use.
10915 dynamic_linker='GNU/Linux ld.so'
10922 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10923 soname_spec='${libname}${release}${shared_ext}$major'
10924 shlibpath_var=LD_LIBRARY_PATH
10925 shlibpath_overrides_runpath=no
10926 hardcode_into_libs=yes
10927 dynamic_linker='NetBSD ld.elf_so'
10934 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10935 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10936 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10937 dynamic_linker='NetBSD (a.out) ld.so'
10939 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10940 soname_spec='${libname}${release}${shared_ext}$major'
10941 dynamic_linker='NetBSD ld.elf_so'
10943 shlibpath_var=LD_LIBRARY_PATH
10944 shlibpath_overrides_runpath=yes
10945 hardcode_into_libs=yes
10950 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10951 shlibpath_var=LD_LIBRARY_PATH
10952 shlibpath_overrides_runpath=yes
10959 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10960 soname_spec='${libname}${release}${shared_ext}$major'
10961 shlibpath_var=LD_LIBRARY_PATH
10962 shlibpath_overrides_runpath=no
10963 hardcode_into_libs=yes
10964 dynamic_linker='ldqnx.so'
10969 sys_lib_dlsearch_path_spec="/usr/lib"
10971 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10973 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10974 *) need_version=no ;;
10976 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10977 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10978 shlibpath_var=LD_LIBRARY_PATH
10979 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10981 openbsd2.[89] | openbsd2.[89].*)
10982 shlibpath_overrides_runpath=no
10985 shlibpath_overrides_runpath=yes
10989 shlibpath_overrides_runpath=yes
10994 libname_spec='$name'
10997 library_names_spec='$libname${shared_ext} $libname.a'
10998 dynamic_linker='OS/2 ld.exe'
10999 shlibpath_var=LIBPATH
11002 osf3* | osf4* | osf5*)
11006 soname_spec='${libname}${release}${shared_ext}$major'
11007 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11008 shlibpath_var=LD_LIBRARY_PATH
11009 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11010 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11021 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11022 soname_spec='${libname}${release}${shared_ext}$major'
11023 shlibpath_var=LD_LIBRARY_PATH
11024 shlibpath_overrides_runpath=yes
11025 hardcode_into_libs=yes
11026 # ldd complains unless libraries are executable
11027 postinstall_cmds='chmod +x $lib'
11032 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11033 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11034 shlibpath_var=LD_LIBRARY_PATH
11035 shlibpath_overrides_runpath=yes
11036 if test "$with_gnu_ld" = yes; then
11044 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11045 soname_spec='${libname}${release}${shared_ext}$major'
11046 shlibpath_var=LD_LIBRARY_PATH
11047 case $host_vendor in
11049 shlibpath_overrides_runpath=no
11051 runpath_var=LD_RUN_PATH
11059 shlibpath_overrides_runpath=no
11060 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11066 if test -d /usr/nec ;then
11068 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11069 soname_spec='$libname${shared_ext}.$major'
11070 shlibpath_var=LD_LIBRARY_PATH
11074 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11075 version_type=freebsd-elf
11078 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11079 soname_spec='${libname}${release}${shared_ext}$major'
11080 shlibpath_var=LD_LIBRARY_PATH
11081 shlibpath_overrides_runpath=yes
11082 hardcode_into_libs=yes
11083 if test "$with_gnu_ld" = yes; then
11084 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11086 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11089 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11093 sys_lib_dlsearch_path_spec='/usr/lib'
11097 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11101 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11102 shlibpath_var=LD_LIBRARY_PATH
11103 shlibpath_overrides_runpath=no
11104 hardcode_into_libs=yes
11109 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11110 soname_spec='${libname}${release}${shared_ext}$major'
11111 shlibpath_var=LD_LIBRARY_PATH
11118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11119 $as_echo "$dynamic_linker" >&6; }
11120 test "$dynamic_linker" = no && can_build_shared=no
11122 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11123 if test "$GCC" = yes; then
11124 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11127 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11128 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11130 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11131 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11226 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11228 if test -n "$hardcode_libdir_flag_spec" ||
11229 test -n "$runpath_var" ||
11230 test "X$hardcode_automatic" = "Xyes" ; then
11232 # We can hardcode non-existent directories.
11233 if test "$hardcode_direct" != no &&
11234 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11235 # have to relink, otherwise we might link with an installed library
11236 # when we should be linking with a yet-to-be-installed one
11237 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11238 test "$hardcode_minus_L" != no; then
11239 # Linking always hardcodes the temporary library directory.
11240 hardcode_action=relink
11242 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11243 hardcode_action=immediate
11246 # We cannot hardcode anything, or else we can only hardcode existing
11248 hardcode_action=unsupported
11250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11251 $as_echo "$hardcode_action" >&6; }
11253 if test "$hardcode_action" = relink ||
11254 test "$inherit_rpath" = yes; then
11255 # Fast installation is not supported
11256 enable_fast_install=no
11257 elif test "$shlibpath_overrides_runpath" = yes ||
11258 test "$enable_shared" = no; then
11259 # Fast installation is not necessary
11260 enable_fast_install=needless
11268 if test "x$enable_dlopen" != xyes; then
11269 enable_dlopen=unknown
11270 enable_dlopen_self=unknown
11271 enable_dlopen_self_static=unknown
11278 lt_cv_dlopen="load_add_on"
11280 lt_cv_dlopen_self=yes
11283 mingw* | pw32* | cegcc*)
11284 lt_cv_dlopen="LoadLibrary"
11289 lt_cv_dlopen="dlopen"
11294 # if libdl is installed we need to link against it
11295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11296 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11297 if ${ac_cv_lib_dl_dlopen+:} false; then :
11298 $as_echo_n "(cached) " >&6
11300 ac_check_lib_save_LIBS=$LIBS
11302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11303 /* end confdefs.h. */
11305 /* Override any GCC internal prototype to avoid an error.
11306 Use char because int might match the return type of a GCC
11307 builtin and then its argument prototype would still apply. */
11320 if ac_fn_c_try_link "$LINENO"; then :
11321 ac_cv_lib_dl_dlopen=yes
11323 ac_cv_lib_dl_dlopen=no
11325 rm -f core conftest.err conftest.$ac_objext \
11326 conftest$ac_exeext conftest.$ac_ext
11327 LIBS=$ac_check_lib_save_LIBS
11329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11330 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11331 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11332 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11335 lt_cv_dlopen="dyld"
11337 lt_cv_dlopen_self=yes
11344 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11345 if test "x$ac_cv_func_shl_load" = xyes; then :
11346 lt_cv_dlopen="shl_load"
11348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11349 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11350 if ${ac_cv_lib_dld_shl_load+:} false; then :
11351 $as_echo_n "(cached) " >&6
11353 ac_check_lib_save_LIBS=$LIBS
11355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11356 /* end confdefs.h. */
11358 /* Override any GCC internal prototype to avoid an error.
11359 Use char because int might match the return type of a GCC
11360 builtin and then its argument prototype would still apply. */
11368 return shl_load ();
11373 if ac_fn_c_try_link "$LINENO"; then :
11374 ac_cv_lib_dld_shl_load=yes
11376 ac_cv_lib_dld_shl_load=no
11378 rm -f core conftest.err conftest.$ac_objext \
11379 conftest$ac_exeext conftest.$ac_ext
11380 LIBS=$ac_check_lib_save_LIBS
11382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11383 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11384 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11385 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11387 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11388 if test "x$ac_cv_func_dlopen" = xyes; then :
11389 lt_cv_dlopen="dlopen"
11391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11392 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11393 if ${ac_cv_lib_dl_dlopen+:} false; then :
11394 $as_echo_n "(cached) " >&6
11396 ac_check_lib_save_LIBS=$LIBS
11398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11399 /* end confdefs.h. */
11401 /* Override any GCC internal prototype to avoid an error.
11402 Use char because int might match the return type of a GCC
11403 builtin and then its argument prototype would still apply. */
11416 if ac_fn_c_try_link "$LINENO"; then :
11417 ac_cv_lib_dl_dlopen=yes
11419 ac_cv_lib_dl_dlopen=no
11421 rm -f core conftest.err conftest.$ac_objext \
11422 conftest$ac_exeext conftest.$ac_ext
11423 LIBS=$ac_check_lib_save_LIBS
11425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11426 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11427 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11428 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11431 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11432 if ${ac_cv_lib_svld_dlopen+:} false; then :
11433 $as_echo_n "(cached) " >&6
11435 ac_check_lib_save_LIBS=$LIBS
11436 LIBS="-lsvld $LIBS"
11437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11438 /* end confdefs.h. */
11440 /* Override any GCC internal prototype to avoid an error.
11441 Use char because int might match the return type of a GCC
11442 builtin and then its argument prototype would still apply. */
11455 if ac_fn_c_try_link "$LINENO"; then :
11456 ac_cv_lib_svld_dlopen=yes
11458 ac_cv_lib_svld_dlopen=no
11460 rm -f core conftest.err conftest.$ac_objext \
11461 conftest$ac_exeext conftest.$ac_ext
11462 LIBS=$ac_check_lib_save_LIBS
11464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11465 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11466 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11467 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11470 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11471 if ${ac_cv_lib_dld_dld_link+:} false; then :
11472 $as_echo_n "(cached) " >&6
11474 ac_check_lib_save_LIBS=$LIBS
11476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11477 /* end confdefs.h. */
11479 /* Override any GCC internal prototype to avoid an error.
11480 Use char because int might match the return type of a GCC
11481 builtin and then its argument prototype would still apply. */
11489 return dld_link ();
11494 if ac_fn_c_try_link "$LINENO"; then :
11495 ac_cv_lib_dld_dld_link=yes
11497 ac_cv_lib_dld_dld_link=no
11499 rm -f core conftest.err conftest.$ac_objext \
11500 conftest$ac_exeext conftest.$ac_ext
11501 LIBS=$ac_check_lib_save_LIBS
11503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11504 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11505 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11506 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11527 if test "x$lt_cv_dlopen" != xno; then
11533 case $lt_cv_dlopen in
11535 save_CPPFLAGS="$CPPFLAGS"
11536 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11538 save_LDFLAGS="$LDFLAGS"
11539 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11542 LIBS="$lt_cv_dlopen_libs $LIBS"
11544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11545 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11546 if ${lt_cv_dlopen_self+:} false; then :
11547 $as_echo_n "(cached) " >&6
11549 if test "$cross_compiling" = yes; then :
11550 lt_cv_dlopen_self=cross
11552 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11553 lt_status=$lt_dlunknown
11554 cat > conftest.$ac_ext <<_LT_EOF
11555 #line $LINENO "configure"
11556 #include "confdefs.h"
11565 # define LT_DLGLOBAL RTLD_GLOBAL
11568 # define LT_DLGLOBAL DL_GLOBAL
11570 # define LT_DLGLOBAL 0
11574 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11575 find out it does not work in some platform. */
11576 #ifndef LT_DLLAZY_OR_NOW
11578 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11581 # define LT_DLLAZY_OR_NOW DL_LAZY
11584 # define LT_DLLAZY_OR_NOW RTLD_NOW
11587 # define LT_DLLAZY_OR_NOW DL_NOW
11589 # define LT_DLLAZY_OR_NOW 0
11596 /* When -fvisbility=hidden is used, assume the code has been annotated
11597 correspondingly for the symbols needed. */
11598 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11599 int fnord () __attribute__((visibility("default")));
11602 int fnord () { return 42; }
11605 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11606 int status = $lt_dlunknown;
11610 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11613 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11614 else puts (dlerror ());
11616 /* dlclose (self); */
11624 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11625 (eval $ac_link) 2>&5
11627 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11628 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11629 (./conftest; exit; ) >&5 2>/dev/null
11631 case x$lt_status in
11632 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11633 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11634 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11637 # compilation failed
11638 lt_cv_dlopen_self=no
11645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11646 $as_echo "$lt_cv_dlopen_self" >&6; }
11648 if test "x$lt_cv_dlopen_self" = xyes; then
11649 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11651 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11652 if ${lt_cv_dlopen_self_static+:} false; then :
11653 $as_echo_n "(cached) " >&6
11655 if test "$cross_compiling" = yes; then :
11656 lt_cv_dlopen_self_static=cross
11658 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11659 lt_status=$lt_dlunknown
11660 cat > conftest.$ac_ext <<_LT_EOF
11661 #line $LINENO "configure"
11662 #include "confdefs.h"
11671 # define LT_DLGLOBAL RTLD_GLOBAL
11674 # define LT_DLGLOBAL DL_GLOBAL
11676 # define LT_DLGLOBAL 0
11680 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11681 find out it does not work in some platform. */
11682 #ifndef LT_DLLAZY_OR_NOW
11684 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11687 # define LT_DLLAZY_OR_NOW DL_LAZY
11690 # define LT_DLLAZY_OR_NOW RTLD_NOW
11693 # define LT_DLLAZY_OR_NOW DL_NOW
11695 # define LT_DLLAZY_OR_NOW 0
11702 /* When -fvisbility=hidden is used, assume the code has been annotated
11703 correspondingly for the symbols needed. */
11704 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11705 int fnord () __attribute__((visibility("default")));
11708 int fnord () { return 42; }
11711 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11712 int status = $lt_dlunknown;
11716 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11719 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11720 else puts (dlerror ());
11722 /* dlclose (self); */
11730 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11731 (eval $ac_link) 2>&5
11733 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11734 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11735 (./conftest; exit; ) >&5 2>/dev/null
11737 case x$lt_status in
11738 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11739 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11740 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11743 # compilation failed
11744 lt_cv_dlopen_self_static=no
11751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11752 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11755 CPPFLAGS="$save_CPPFLAGS"
11756 LDFLAGS="$save_LDFLAGS"
11761 case $lt_cv_dlopen_self in
11762 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11763 *) enable_dlopen_self=unknown ;;
11766 case $lt_cv_dlopen_self_static in
11767 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11768 *) enable_dlopen_self_static=unknown ;;
11790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11791 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11792 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11793 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11794 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11796 $as_echo "yes" >&6; }
11798 # FIXME - insert some real tests, host_os isn't really good enough
11801 if test -n "$STRIP" ; then
11802 striplib="$STRIP -x"
11803 old_striplib="$STRIP -S"
11804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11805 $as_echo "yes" >&6; }
11807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11808 $as_echo "no" >&6; }
11812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11813 $as_echo "no" >&6; }
11829 # Report which library types will actually be built
11830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11831 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11833 $as_echo "$can_build_shared" >&6; }
11835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11836 $as_echo_n "checking whether to build shared libraries... " >&6; }
11837 test "$can_build_shared" = "no" && enable_shared=no
11839 # On AIX, shared libraries and static libraries use the same namespace, and
11840 # are all built from PIC.
11843 test "$enable_shared" = yes && enable_static=no
11844 if test -n "$RANLIB"; then
11845 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11846 postinstall_cmds='$RANLIB $lib'
11851 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11852 test "$enable_shared" = yes && enable_static=no
11856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11857 $as_echo "$enable_shared" >&6; }
11859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11860 $as_echo_n "checking whether to build static libraries... " >&6; }
11861 # Make sure either enable_shared or enable_static is yes.
11862 test "$enable_shared" = yes || enable_static=yes
11863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11864 $as_echo "$enable_static" >&6; }
11871 ac_cpp='$CPP $CPPFLAGS'
11872 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11873 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11874 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11890 ac_config_commands="$ac_config_commands libtool"
11895 # Only expand once:
11898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
11899 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
11901 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
11902 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
11903 $as_echo_n "(cached) " >&6
11905 cat >conftest.make <<\_ACEOF
11908 @echo '@@@%%%=$(MAKE)=@@@%%%'
11910 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
11911 case `${MAKE-make} -f conftest.make 2>/dev/null` in
11912 *@@@%%%=?*=@@@%%%*)
11913 eval ac_cv_prog_make_${ac_make}_set=yes;;
11915 eval ac_cv_prog_make_${ac_make}_set=no;;
11917 rm -f conftest.make
11919 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
11920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11921 $as_echo "yes" >&6; }
11924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11925 $as_echo "no" >&6; }
11926 SET_MAKE="MAKE=${MAKE-make}"
11938 if test "$os_win32" = "yes"; then
11947 if test "$os_win32" = "yes"; then
11948 # Extract the first word of "lib.exe", so it can be a program name with args.
11949 set dummy lib.exe; ac_word=$2
11950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11951 $as_echo_n "checking for $ac_word... " >&6; }
11952 if ${ac_cv_prog_ms_librarian+:} false; then :
11953 $as_echo_n "(cached) " >&6
11955 if test -n "$ms_librarian"; then
11956 ac_cv_prog_ms_librarian="$ms_librarian" # Let the user override the test.
11958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11959 for as_dir in $PATH
11962 test -z "$as_dir" && as_dir=.
11963 for ac_exec_ext in '' $ac_executable_extensions; do
11964 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11965 ac_cv_prog_ms_librarian="yes"
11966 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11973 test -z "$ac_cv_prog_ms_librarian" && ac_cv_prog_ms_librarian="no"
11976 ms_librarian=$ac_cv_prog_ms_librarian
11977 if test -n "$ms_librarian"; then
11978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ms_librarian" >&5
11979 $as_echo "$ms_librarian" >&6; }
11981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11982 $as_echo "no" >&6; }
11987 if test x$ms_librarian = xyes; then
11988 MS_LIB_AVAILABLE_TRUE=
11989 MS_LIB_AVAILABLE_FALSE='#'
11991 MS_LIB_AVAILABLE_TRUE='#'
11992 MS_LIB_AVAILABLE_FALSE=
11997 if test "x$GCC" = "xyes"; then
11998 WARN_CFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes \
11999 -Wmissing-prototypes -Wmissing-declarations \
12000 -Wnested-externs -fno-strict-aliasing"
12002 cat >>confdefs.h <<_ACEOF
12003 #define HAVE_WARNING_CPP_DIRECTIVE 1
12011 if test $cross_compiling = yes; then
12012 CROSS_COMPILING_TRUE=
12013 CROSS_COMPILING_FALSE='#'
12015 CROSS_COMPILING_TRUE='#'
12016 CROSS_COMPILING_FALSE=
12022 # Check whether --with-arch was given.
12023 if test "${with_arch+set}" = set; then :
12024 withval=$with_arch; arch="$withval"
12030 if test "x$arch" != xauto; then
12032 cat >>confdefs.h <<_ACEOF
12033 #define FC_ARCHITECTURE "$arch"
12040 # Checks for header files.
12041 ac_header_dirent=no
12042 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
12043 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
12044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
12045 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
12046 if eval \${$as_ac_Header+:} false; then :
12047 $as_echo_n "(cached) " >&6
12049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12050 /* end confdefs.h. */
12051 #include <sys/types.h>
12063 if ac_fn_c_try_compile "$LINENO"; then :
12064 eval "$as_ac_Header=yes"
12066 eval "$as_ac_Header=no"
12068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12070 eval ac_res=\$$as_ac_Header
12071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12072 $as_echo "$ac_res" >&6; }
12073 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12074 cat >>confdefs.h <<_ACEOF
12075 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
12078 ac_header_dirent=$ac_hdr; break
12082 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
12083 if test $ac_header_dirent = dirent.h; then
12084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
12085 $as_echo_n "checking for library containing opendir... " >&6; }
12086 if ${ac_cv_search_opendir+:} false; then :
12087 $as_echo_n "(cached) " >&6
12089 ac_func_search_save_LIBS=$LIBS
12090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12091 /* end confdefs.h. */
12093 /* Override any GCC internal prototype to avoid an error.
12094 Use char because int might match the return type of a GCC
12095 builtin and then its argument prototype would still apply. */
12108 for ac_lib in '' dir; do
12109 if test -z "$ac_lib"; then
12110 ac_res="none required"
12113 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12115 if ac_fn_c_try_link "$LINENO"; then :
12116 ac_cv_search_opendir=$ac_res
12118 rm -f core conftest.err conftest.$ac_objext \
12120 if ${ac_cv_search_opendir+:} false; then :
12124 if ${ac_cv_search_opendir+:} false; then :
12127 ac_cv_search_opendir=no
12129 rm conftest.$ac_ext
12130 LIBS=$ac_func_search_save_LIBS
12132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
12133 $as_echo "$ac_cv_search_opendir" >&6; }
12134 ac_res=$ac_cv_search_opendir
12135 if test "$ac_res" != no; then :
12136 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
12142 $as_echo_n "checking for library containing opendir... " >&6; }
12143 if ${ac_cv_search_opendir+:} false; then :
12144 $as_echo_n "(cached) " >&6
12146 ac_func_search_save_LIBS=$LIBS
12147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12148 /* end confdefs.h. */
12150 /* Override any GCC internal prototype to avoid an error.
12151 Use char because int might match the return type of a GCC
12152 builtin and then its argument prototype would still apply. */
12165 for ac_lib in '' x; do
12166 if test -z "$ac_lib"; then
12167 ac_res="none required"
12170 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12172 if ac_fn_c_try_link "$LINENO"; then :
12173 ac_cv_search_opendir=$ac_res
12175 rm -f core conftest.err conftest.$ac_objext \
12177 if ${ac_cv_search_opendir+:} false; then :
12181 if ${ac_cv_search_opendir+:} false; then :
12184 ac_cv_search_opendir=no
12186 rm conftest.$ac_ext
12187 LIBS=$ac_func_search_save_LIBS
12189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
12190 $as_echo "$ac_cv_search_opendir" >&6; }
12191 ac_res=$ac_cv_search_opendir
12192 if test "$ac_res" != no; then :
12193 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
12200 $as_echo_n "checking for ANSI C header files... " >&6; }
12201 if ${ac_cv_header_stdc+:} false; then :
12202 $as_echo_n "(cached) " >&6
12204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12205 /* end confdefs.h. */
12206 #include <stdlib.h>
12207 #include <stdarg.h>
12208 #include <string.h>
12219 if ac_fn_c_try_compile "$LINENO"; then :
12220 ac_cv_header_stdc=yes
12222 ac_cv_header_stdc=no
12224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12226 if test $ac_cv_header_stdc = yes; then
12227 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12229 /* end confdefs.h. */
12230 #include <string.h>
12233 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12234 $EGREP "memchr" >/dev/null 2>&1; then :
12237 ac_cv_header_stdc=no
12243 if test $ac_cv_header_stdc = yes; then
12244 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12246 /* end confdefs.h. */
12247 #include <stdlib.h>
12250 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12251 $EGREP "free" >/dev/null 2>&1; then :
12254 ac_cv_header_stdc=no
12260 if test $ac_cv_header_stdc = yes; then
12261 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12262 if test "$cross_compiling" = yes; then :
12265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12266 /* end confdefs.h. */
12268 #include <stdlib.h>
12269 #if ((' ' & 0x0FF) == 0x020)
12270 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12271 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12273 # define ISLOWER(c) \
12274 (('a' <= (c) && (c) <= 'i') \
12275 || ('j' <= (c) && (c) <= 'r') \
12276 || ('s' <= (c) && (c) <= 'z'))
12277 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12280 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12285 for (i = 0; i < 256; i++)
12286 if (XOR (islower (i), ISLOWER (i))
12287 || toupper (i) != TOUPPER (i))
12292 if ac_fn_c_try_run "$LINENO"; then :
12295 ac_cv_header_stdc=no
12297 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12298 conftest.$ac_objext conftest.beam conftest.$ac_ext
12303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
12304 $as_echo "$ac_cv_header_stdc" >&6; }
12305 if test $ac_cv_header_stdc = yes; then
12307 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
12311 for ac_header in fcntl.h stdlib.h string.h unistd.h
12313 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12314 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12315 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12316 cat >>confdefs.h <<_ACEOF
12317 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12325 # Checks for typedefs, structures, and compiler characteristics.
12326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
12327 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
12328 if ${ac_cv_c_const+:} false; then :
12329 $as_echo_n "(cached) " >&6
12331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12332 /* end confdefs.h. */
12337 /* FIXME: Include the comments suggested by Paul. */
12338 #ifndef __cplusplus
12339 /* Ultrix mips cc rejects this. */
12340 typedef int charset[2];
12342 /* SunOS 4.1.1 cc rejects this. */
12343 char const *const *pcpcc;
12345 /* NEC SVR4.0.2 mips cc rejects this. */
12346 struct point {int x, y;};
12347 static struct point const zero = {0,0};
12348 /* AIX XL C 1.02.0.0 rejects this.
12349 It does not let you subtract one const X* pointer from another in
12350 an arm of an if-expression whose if-part is not a constant
12352 const char *g = "string";
12353 pcpcc = &g + (g ? g-g : 0);
12354 /* HPUX 7.0 cc rejects these. */
12356 ppc = (char**) pcpcc;
12357 pcpcc = (char const *const *) ppc;
12358 { /* SCO 3.2v4 cc rejects this. */
12360 char const *s = 0 ? (char *) 0 : (char const *) 0;
12365 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12366 int x[] = {25, 17};
12367 const int *foo = &x[0];
12370 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12371 typedef const int *iptr;
12375 { /* AIX XL C 1.02.0.0 rejects this saying
12376 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12377 struct s { int j; const int *ap[3]; };
12378 struct s *b; b->j = 5;
12380 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12381 const int foo = 10;
12382 if (!foo) return 0;
12384 return !cs[0] && !zero.x;
12391 if ac_fn_c_try_compile "$LINENO"; then :
12396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
12399 $as_echo "$ac_cv_c_const" >&6; }
12400 if test $ac_cv_c_const = no; then
12402 $as_echo "#define const /**/" >>confdefs.h
12406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
12407 $as_echo_n "checking for inline... " >&6; }
12408 if ${ac_cv_c_inline+:} false; then :
12409 $as_echo_n "(cached) " >&6
12412 for ac_kw in inline __inline__ __inline; do
12413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12414 /* end confdefs.h. */
12415 #ifndef __cplusplus
12417 static $ac_kw foo_t static_foo () {return 0; }
12418 $ac_kw foo_t foo () {return 0; }
12422 if ac_fn_c_try_compile "$LINENO"; then :
12423 ac_cv_c_inline=$ac_kw
12425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12426 test "$ac_cv_c_inline" != no && break
12430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
12431 $as_echo "$ac_cv_c_inline" >&6; }
12433 case $ac_cv_c_inline in
12436 case $ac_cv_c_inline in
12438 *) ac_val=$ac_cv_c_inline;;
12440 cat >>confdefs.h <<_ACEOF
12441 #ifndef __cplusplus
12442 #define inline $ac_val
12448 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
12449 if test "x$ac_cv_type_pid_t" = xyes; then :
12453 cat >>confdefs.h <<_ACEOF
12460 # Checks for library functions.
12461 for ac_func in vprintf
12463 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
12464 if test "x$ac_cv_func_vprintf" = xyes; then :
12465 cat >>confdefs.h <<_ACEOF
12466 #define HAVE_VPRINTF 1
12469 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
12470 if test "x$ac_cv_func__doprnt" = xyes; then :
12472 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
12483 for ac_header in $ac_header_list
12485 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12486 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
12488 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12489 cat >>confdefs.h <<_ACEOF
12490 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12504 for ac_func in getpagesize
12506 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
12507 if test "x$ac_cv_func_getpagesize" = xyes; then :
12508 cat >>confdefs.h <<_ACEOF
12509 #define HAVE_GETPAGESIZE 1
12515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
12516 $as_echo_n "checking for working mmap... " >&6; }
12517 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
12518 $as_echo_n "(cached) " >&6
12520 if test "$cross_compiling" = yes; then :
12521 ac_cv_func_mmap_fixed_mapped=no
12523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12524 /* end confdefs.h. */
12525 $ac_includes_default
12526 /* malloc might have been renamed as rpl_malloc. */
12529 /* Thanks to Mike Haertel and Jim Avera for this test.
12530 Here is a matrix of mmap possibilities:
12531 mmap private not fixed
12532 mmap private fixed at somewhere currently unmapped
12533 mmap private fixed at somewhere already mapped
12534 mmap shared not fixed
12535 mmap shared fixed at somewhere currently unmapped
12536 mmap shared fixed at somewhere already mapped
12537 For private mappings, we should verify that changes cannot be read()
12538 back from the file, nor mmap's back from the file at a different
12539 address. (There have been systems where private was not correctly
12540 implemented like the infamous i386 svr4.0, and systems where the
12541 VM page cache was not coherent with the file system buffer cache
12542 like early versions of FreeBSD and possibly contemporary NetBSD.)
12543 For shared mappings, we should conversely verify that changes get
12544 propagated back to all the places they're supposed to be.
12546 Grep wants private fixed already mapped.
12547 The main things grep needs to know about mmap are:
12548 * does it exist and is it safe to write into the mmap'd area
12549 * how to use it (BSD variants) */
12552 #include <sys/mman.h>
12554 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
12558 /* This mess was copied from the GNU getpagesize.h. */
12559 #ifndef HAVE_GETPAGESIZE
12560 # ifdef _SC_PAGESIZE
12561 # define getpagesize() sysconf(_SC_PAGESIZE)
12562 # else /* no _SC_PAGESIZE */
12563 # ifdef HAVE_SYS_PARAM_H
12564 # include <sys/param.h>
12565 # ifdef EXEC_PAGESIZE
12566 # define getpagesize() EXEC_PAGESIZE
12567 # else /* no EXEC_PAGESIZE */
12569 # define getpagesize() NBPG * CLSIZE
12572 # endif /* no CLSIZE */
12573 # else /* no NBPG */
12575 # define getpagesize() NBPC
12576 # else /* no NBPC */
12578 # define getpagesize() PAGESIZE
12579 # endif /* PAGESIZE */
12580 # endif /* no NBPC */
12581 # endif /* no NBPG */
12582 # endif /* no EXEC_PAGESIZE */
12583 # else /* no HAVE_SYS_PARAM_H */
12584 # define getpagesize() 8192 /* punt totally */
12585 # endif /* no HAVE_SYS_PARAM_H */
12586 # endif /* no _SC_PAGESIZE */
12588 #endif /* no HAVE_GETPAGESIZE */
12593 char *data, *data2, *data3;
12594 const char *cdata2;
12598 pagesize = getpagesize ();
12600 /* First, make a file with some known garbage in it. */
12601 data = (char *) malloc (pagesize);
12604 for (i = 0; i < pagesize; ++i)
12605 *(data + i) = rand ();
12607 fd = creat ("conftest.mmap", 0600);
12610 if (write (fd, data, pagesize) != pagesize)
12614 /* Next, check that the tail of a page is zero-filled. File must have
12615 non-zero length, otherwise we risk SIGBUS for entire page. */
12616 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
12620 if (write (fd2, cdata2, 1) != 1)
12622 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
12623 if (data2 == MAP_FAILED)
12625 for (i = 0; i < pagesize; ++i)
12629 if (munmap (data2, pagesize))
12632 /* Next, try to mmap the file at a fixed address which already has
12633 something else allocated at it. If we can, also make sure that
12634 we see the same garbage. */
12635 fd = open ("conftest.mmap", O_RDWR);
12638 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
12639 MAP_PRIVATE | MAP_FIXED, fd, 0L))
12641 for (i = 0; i < pagesize; ++i)
12642 if (*(data + i) != *(data2 + i))
12645 /* Finally, make sure that changes to the mapped area do not
12646 percolate back to the file as seen by read(). (This is a bug on
12647 some variants of i386 svr4.0.) */
12648 for (i = 0; i < pagesize; ++i)
12649 *(data2 + i) = *(data2 + i) + 1;
12650 data3 = (char *) malloc (pagesize);
12653 if (read (fd, data3, pagesize) != pagesize)
12655 for (i = 0; i < pagesize; ++i)
12656 if (*(data + i) != *(data3 + i))
12662 if ac_fn_c_try_run "$LINENO"; then :
12663 ac_cv_func_mmap_fixed_mapped=yes
12665 ac_cv_func_mmap_fixed_mapped=no
12667 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12668 conftest.$ac_objext conftest.beam conftest.$ac_ext
12672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
12673 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
12674 if test $ac_cv_func_mmap_fixed_mapped = yes; then
12676 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
12679 rm -f conftest.mmap conftest.txt
12681 for ac_func in geteuid getuid link memmove memset mkstemp strchr strrchr strtol getopt getopt_long sysconf ftruncate chsize rand random lrand48 random_r rand_r
12683 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12684 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12685 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12686 cat >>confdefs.h <<_ACEOF
12687 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a usable iconv" >&5
12698 $as_echo_n "checking for a usable iconv... " >&6; }
12700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12701 /* end confdefs.h. */
12706 iconv_open ("from", "to");
12711 if ac_fn_c_try_link "$LINENO"; then :
12716 rm -f core conftest.err conftest.$ac_objext \
12717 conftest$ac_exeext conftest.$ac_ext
12718 if test x$use_iconv = x1; then
12719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libc" >&5
12720 $as_echo "libc" >&6; }
12722 # try using libiconv
12723 fontconfig_save_libs="$LIBS"
12724 LIBS="$LIBS -liconv"
12726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12727 /* end confdefs.h. */
12732 iconv_open ("from", "to");
12737 if ac_fn_c_try_link "$LINENO"; then :
12742 rm -f core conftest.err conftest.$ac_objext \
12743 conftest$ac_exeext conftest.$ac_ext
12745 if test x$use_iconv = x1; then
12746 ICONV_LIBS="-liconv"
12747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libiconv" >&5
12748 $as_echo "libiconv" >&6; }
12750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12751 $as_echo "no" >&6; }
12754 LIBS="$fontconfig_save_libs"
12758 cat >>confdefs.h <<_ACEOF
12759 #define USE_ICONV $use_iconv
12764 # Checks for FreeType
12768 # Check whether --with-freetype-config was given.
12769 if test "${with_freetype_config+set}" = set; then :
12770 withval=$with_freetype_config; freetype_config=$withval
12772 freetype_config=yes
12776 if test "$freetype_config" = "yes"; then
12777 # Extract the first word of "freetype-config", so it can be a program name with args.
12778 set dummy freetype-config; ac_word=$2
12779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12780 $as_echo_n "checking for $ac_word... " >&6; }
12781 if ${ac_cv_path_ft_config+:} false; then :
12782 $as_echo_n "(cached) " >&6
12786 ac_cv_path_ft_config="$ft_config" # Let the user override the test with a path.
12789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12790 for as_dir in $PATH
12793 test -z "$as_dir" && as_dir=.
12794 for ac_exec_ext in '' $ac_executable_extensions; do
12795 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12796 ac_cv_path_ft_config="$as_dir/$ac_word$ac_exec_ext"
12797 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12804 test -z "$ac_cv_path_ft_config" && ac_cv_path_ft_config="no"
12808 ft_config=$ac_cv_path_ft_config
12809 if test -n "$ft_config"; then
12810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ft_config" >&5
12811 $as_echo "$ft_config" >&6; }
12813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12814 $as_echo "no" >&6; }
12818 if test "$ft_config" = "no"; then
12819 as_fn_error $? "You must have freetype installed; see http://www.freetype.org/" "$LINENO" 5
12822 ft_config="$freetype_config"
12825 FREETYPE_CFLAGS="`$ft_config --cflags`"
12826 FREETYPE_LIBS="`$ft_config --libs`"
12831 fontconfig_save_libs="$LIBS"
12832 fontconfig_save_cflags="$CFLAGS"
12833 LIBS="$LIBS $FREETYPE_LIBS"
12834 CFLAGS="$CFLAGS $FREETYPE_CFLAGS"
12835 for ac_func in FT_Get_Next_Char FT_Get_BDF_Property FT_Get_PS_Font_Info FT_Has_PS_Glyph_Names FT_Get_X11_Font_Format FT_Select_Size
12837 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12838 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12839 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12840 cat >>confdefs.h <<_ACEOF
12841 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12847 ac_fn_c_check_member "$LINENO" "FT_Bitmap_Size" "y_ppem" "ac_cv_member_FT_Bitmap_Size_y_ppem" "#include <ft2build.h>
12848 #include FT_FREETYPE_H
12850 if test "x$ac_cv_member_FT_Bitmap_Size_y_ppem" = xyes; then :
12851 HAVE_FT_BITMAP_SIZE_Y_PPEM=1
12853 HAVE_FT_BITMAP_SIZE_Y_PPEM=0
12857 cat >>confdefs.h <<_ACEOF
12858 #define HAVE_FT_BITMAP_SIZE_Y_PPEM $HAVE_FT_BITMAP_SIZE_Y_PPEM
12861 CFLAGS="$fontconfig_save_cflags"
12862 LIBS="$fontconfig_save_libs"
12865 # Check expat configuration
12869 # Check whether --with-expat was given.
12870 if test "${with_expat+set}" = set; then :
12871 withval=$with_expat; expat=$withval
12877 # Check whether --with-expat-includes was given.
12878 if test "${with_expat_includes+set}" = set; then :
12879 withval=$with_expat_includes; expat_includes=$withval
12885 # Check whether --with-expat-lib was given.
12886 if test "${with_expat_lib+set}" = set; then :
12887 withval=$with_expat_lib; expat_lib=$withval
12893 if test "$enable_libxml2" != "yes"; then
12898 case "$expat_includes" in
12904 EXPAT_CFLAGS="-I$expat/include"
12912 EXPAT_CFLAGS="-I$expat_includes"
12915 case "$expat_lib" in
12919 EXPAT_LIBS="-lexpat"
12922 EXPAT_LIBS="-L$expat/lib -lexpat"
12929 EXPAT_LIBS="-L$expat_lib -lexpat"
12933 expatsaved_CPPFLAGS="$CPPFLAGS"
12934 CPPFLAGS="$CPPFLAGS $EXPAT_CFLAGS"
12935 expatsaved_LIBS="$LIBS"
12936 LIBS="$LIBS $EXPAT_LIBS"
12938 ac_fn_c_check_header_mongrel "$LINENO" "expat.h" "ac_cv_header_expat_h" "$ac_includes_default"
12939 if test "x$ac_cv_header_expat_h" = xyes; then :
12944 case "$ac_cv_header_expat_h" in
12946 ac_fn_c_check_header_mongrel "$LINENO" "xmlparse.h" "ac_cv_header_xmlparse_h" "$ac_includes_default"
12947 if test "x$ac_cv_header_xmlparse_h" = xyes; then :
12952 case "$ac_cv_header_xmlparse_h" in
12954 have_expat_header=no;
12960 cat >>confdefs.h <<_ACEOF
12961 #define HAVE_XMLPARSE_H $HAVE_XMLPARSE_H
12964 have_expat_header=yes
12969 have_expat_header=yes
12972 case "$have_expat_header" in
12977 for ac_func in XML_SetDoctypeDeclHandler
12979 ac_fn_c_check_func "$LINENO" "XML_SetDoctypeDeclHandler" "ac_cv_func_XML_SetDoctypeDeclHandler"
12980 if test "x$ac_cv_func_XML_SetDoctypeDeclHandler" = xyes; then :
12981 cat >>confdefs.h <<_ACEOF
12982 #define HAVE_XML_SETDOCTYPEDECLHANDLER 1
12988 case "$ac_cv_func_XML_SetDoctypeDeclHandler" in
12993 cat >>confdefs.h <<_ACEOF
12994 #define HAVE_EXPAT $HAVE_EXPAT
13004 CPPFLAGS="$expatsaved_CPPFLAGS"
13005 LIBS="$expatsaved_LIBS"
13017 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find usable expat library. Trying to use libxml2 as fallback." >&5
13018 $as_echo "$as_me: WARNING: Cannot find usable expat library. Trying to use libxml2 as fallback." >&2;}
13024 # Check libxml2 configuration
13027 # Check whether --enable-libxml2 was given.
13028 if test "${enable_libxml2+set}" = set; then :
13029 enableval=$enable_libxml2;
13040 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
13041 if test -n "$ac_tool_prefix"; then
13042 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
13043 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
13044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13045 $as_echo_n "checking for $ac_word... " >&6; }
13046 if ${ac_cv_path_PKG_CONFIG+:} false; then :
13047 $as_echo_n "(cached) " >&6
13049 case $PKG_CONFIG in
13051 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13055 for as_dir in $PATH
13058 test -z "$as_dir" && as_dir=.
13059 for ac_exec_ext in '' $ac_executable_extensions; do
13060 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13061 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13062 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13072 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13073 if test -n "$PKG_CONFIG"; then
13074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13075 $as_echo "$PKG_CONFIG" >&6; }
13077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13078 $as_echo "no" >&6; }
13083 if test -z "$ac_cv_path_PKG_CONFIG"; then
13084 ac_pt_PKG_CONFIG=$PKG_CONFIG
13085 # Extract the first word of "pkg-config", so it can be a program name with args.
13086 set dummy pkg-config; ac_word=$2
13087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13088 $as_echo_n "checking for $ac_word... " >&6; }
13089 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
13090 $as_echo_n "(cached) " >&6
13092 case $ac_pt_PKG_CONFIG in
13094 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
13097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13098 for as_dir in $PATH
13101 test -z "$as_dir" && as_dir=.
13102 for ac_exec_ext in '' $ac_executable_extensions; do
13103 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13104 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13115 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
13116 if test -n "$ac_pt_PKG_CONFIG"; then
13117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
13118 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
13120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13121 $as_echo "no" >&6; }
13124 if test "x$ac_pt_PKG_CONFIG" = x; then
13127 case $cross_compiling:$ac_tool_warned in
13129 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13130 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13131 ac_tool_warned=yes ;;
13133 PKG_CONFIG=$ac_pt_PKG_CONFIG
13136 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
13140 if test -n "$PKG_CONFIG"; then
13141 _pkg_min_version=0.9.0
13142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
13143 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
13144 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
13145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13146 $as_echo "yes" >&6; }
13148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13149 $as_echo "no" >&6; }
13154 if test "$enable_libxml2" = "yes" -o "$expat" = "no"; then
13157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBXML2" >&5
13158 $as_echo_n "checking for LIBXML2... " >&6; }
13160 if test -n "$LIBXML2_CFLAGS"; then
13161 pkg_cv_LIBXML2_CFLAGS="$LIBXML2_CFLAGS"
13162 elif test -n "$PKG_CONFIG"; then
13163 if test -n "$PKG_CONFIG" && \
13164 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.6\""; } >&5
13165 ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.6") 2>&5
13167 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13168 test $ac_status = 0; }; then
13169 pkg_cv_LIBXML2_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 >= 2.6" 2>/dev/null`
13170 test "x$?" != "x0" && pkg_failed=yes
13177 if test -n "$LIBXML2_LIBS"; then
13178 pkg_cv_LIBXML2_LIBS="$LIBXML2_LIBS"
13179 elif test -n "$PKG_CONFIG"; then
13180 if test -n "$PKG_CONFIG" && \
13181 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.6\""; } >&5
13182 ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.6") 2>&5
13184 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13185 test $ac_status = 0; }; then
13186 pkg_cv_LIBXML2_LIBS=`$PKG_CONFIG --libs "libxml-2.0 >= 2.6" 2>/dev/null`
13187 test "x$?" != "x0" && pkg_failed=yes
13197 if test $pkg_failed = yes; then
13198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13199 $as_echo "no" >&6; }
13201 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13202 _pkg_short_errors_supported=yes
13204 _pkg_short_errors_supported=no
13206 if test $_pkg_short_errors_supported = yes; then
13207 LIBXML2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libxml-2.0 >= 2.6" 2>&1`
13209 LIBXML2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libxml-2.0 >= 2.6" 2>&1`
13211 # Put the nasty error message in config.log where it belongs
13212 echo "$LIBXML2_PKG_ERRORS" >&5
13214 as_fn_error $? "Package requirements (libxml-2.0 >= 2.6) were not met:
13216 $LIBXML2_PKG_ERRORS
13218 Consider adjusting the PKG_CONFIG_PATH environment variable if you
13219 installed software in a non-standard prefix.
13221 Alternatively, you may set the environment variables LIBXML2_CFLAGS
13222 and LIBXML2_LIBS to avoid the need to call pkg-config.
13223 See the pkg-config man page for more details." "$LINENO" 5
13224 elif test $pkg_failed = untried; then
13225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13226 $as_echo "no" >&6; }
13227 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13228 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13229 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
13230 is in your PATH or set the PKG_CONFIG environment variable to the full
13231 path to pkg-config.
13233 Alternatively, you may set the environment variables LIBXML2_CFLAGS
13234 and LIBXML2_LIBS to avoid the need to call pkg-config.
13235 See the pkg-config man page for more details.
13237 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13238 See \`config.log' for more details" "$LINENO" 5; }
13240 LIBXML2_CFLAGS=$pkg_cv_LIBXML2_CFLAGS
13241 LIBXML2_LIBS=$pkg_cv_LIBXML2_LIBS
13242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13243 $as_echo "yes" >&6; }
13247 cat >>confdefs.h <<_ACEOF
13248 #define ENABLE_LIBXML2 1
13257 # Set default font directory
13261 # Check whether --with-default-fonts was given.
13262 if test "${with_default_fonts+set}" = set; then :
13263 withval=$with_default_fonts; default_fonts="$withval"
13269 case "$default_fonts" in
13271 if test "$os_win32" = "yes"; then
13272 FC_DEFAULT_FONTS="WINDOWSFONTDIR"
13274 cat >>confdefs.h <<_ACEOF
13275 #define FC_DEFAULT_FONTS "WINDOWSFONTDIR"
13279 FC_DEFAULT_FONTS="/usr/share/fonts"
13281 cat >>confdefs.h <<_ACEOF
13282 #define FC_DEFAULT_FONTS "/usr/share/fonts"
13288 FC_DEFAULT_FONTS="$default_fonts"
13290 cat >>confdefs.h <<_ACEOF
13291 #define FC_DEFAULT_FONTS "$default_fonts"
13300 # Add more fonts if available. By default, add only the directories
13301 # with outline fonts; those with bitmaps can be added as desired in
13302 # local.conf or ~/.fonts.conf
13305 # Check whether --with-add-fonts was given.
13306 if test "${with_add_fonts+set}" = set; then :
13307 withval=$with_add_fonts; add_fonts="$withval"
13313 case "$add_fonts" in
13316 for dir in /usr/X11R6/lib/X11 /usr/X11/lib/X11 /usr/lib/X11; do
13317 case x"$FC_ADD_FONTS" in
13320 if test -d "$sub"; then
13321 case x$FC_ADD_FONTS in
13323 FC_ADD_FONTS="$sub"
13326 FC_ADD_FONTS="$FC_ADD_FONTS,$sub"
13334 cat >>confdefs.h <<_ACEOF
13335 #define FC_ADD_FONTS "$add_fonts"
13343 FC_ADD_FONTS="$add_fonts"
13345 cat >>confdefs.h <<_ACEOF
13346 #define FC_ADD_FONTS "$add_fonts"
13356 case "$FC_ADD_FONTS" in
13360 FC_FONTPATH=`echo $FC_ADD_FONTS |
13361 sed -e 's/^/<dir>/' -e 's/$/<\/dir>/' -e 's/,/<\/dir> <dir>/g'`
13368 # Set default cache directory path
13371 # Check whether --with-cache-dir was given.
13372 if test "${with_cache_dir+set}" = set; then :
13373 withval=$with_cache_dir; fc_cachedir="$withval"
13379 case $fc_cachedir in
13381 if test "$os_win32" = "yes"; then
13382 fc_cachedir="WINDOWSTEMPDIR_FONTCONFIG_CACHE"
13384 fc_cachedir='${localstatedir}/cache/${PACKAGE}'
13391 FC_CACHEDIR=${fc_cachedir}
13394 FC_FONTDATE=`LC_ALL=C date`
13399 # Check whether --with-confdir was given.
13400 if test "${with_confdir+set}" = set; then :
13401 withval=$with_confdir; confdir="$withval"
13408 # Set CONFDIR and FONTCONFIG_PATH
13413 confdir='${sysconfdir}'/fonts
13421 cat >>confdefs.h <<_ACEOF
13422 #define CONFDIR "$CONFDIR"
13428 # Let people not build/install docs if they don't have docbook
13431 # Extract the first word of "docbook2html", so it can be a program name with args.
13432 set dummy docbook2html; ac_word=$2
13433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13434 $as_echo_n "checking for $ac_word... " >&6; }
13435 if ${ac_cv_prog_HASDOCBOOK+:} false; then :
13436 $as_echo_n "(cached) " >&6
13438 if test -n "$HASDOCBOOK"; then
13439 ac_cv_prog_HASDOCBOOK="$HASDOCBOOK" # Let the user override the test.
13441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13442 for as_dir in $PATH
13445 test -z "$as_dir" && as_dir=.
13446 for ac_exec_ext in '' $ac_executable_extensions; do
13447 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13448 ac_cv_prog_HASDOCBOOK="yes"
13449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13456 test -z "$ac_cv_prog_HASDOCBOOK" && ac_cv_prog_HASDOCBOOK="no"
13459 HASDOCBOOK=$ac_cv_prog_HASDOCBOOK
13460 if test -n "$HASDOCBOOK"; then
13461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HASDOCBOOK" >&5
13462 $as_echo "$HASDOCBOOK" >&6; }
13464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13465 $as_echo "no" >&6; }
13470 if test "x$HASDOCBOOK" = xyes; then
13472 USEDOCBOOK_FALSE='#'
13474 USEDOCBOOK_TRUE='#'
13481 # Check if docs exist or can be created
13483 if test x$HASDOCBOOK = xno; then
13484 if test -f $srcdir/doc/fonts-conf.5; then
13491 # Check whether --enable-docs was given.
13492 if test "${enable_docs+set}" = set; then :
13493 enableval=$enable_docs;
13495 enable_docs=$default_docs
13499 if test "x$enable_docs" = xyes; then
13501 ENABLE_DOCS_FALSE='#'
13503 ENABLE_DOCS_TRUE='#'
13508 if test "x$enable_docs" = xyes; then
13511 cat $srcdir/doc/*.fncs | awk '
13512 /^@TITLE@/ { if (!done) { printf ("%s\n", $2); done = 1; } }
13513 /^@FUNC@/ { if (!done) { printf ("%s\n", $2); done = 1; } }
13514 /^@@/ { done = 0; }' > $tmp
13515 DOCMAN3=`cat $tmp | awk '{ printf ("%s.3 ", $1); }'`
13516 echo DOCMAN3 $DOCMAN3
13527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
13528 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
13529 if ${ac_cv_c_bigendian+:} false; then :
13530 $as_echo_n "(cached) " >&6
13532 ac_cv_c_bigendian=unknown
13533 # See if we're dealing with a universal compiler.
13534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13535 /* end confdefs.h. */
13536 #ifndef __APPLE_CC__
13537 not a universal capable compiler
13542 if ac_fn_c_try_compile "$LINENO"; then :
13544 # Check for potential -arch flags. It is not universal unless
13545 # there are at least two -arch flags with different values.
13548 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
13549 if test -n "$ac_prev"; then
13551 i?86 | x86_64 | ppc | ppc64)
13552 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
13555 ac_cv_c_bigendian=universal
13561 elif test "x$ac_word" = "x-arch"; then
13566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13567 if test $ac_cv_c_bigendian = unknown; then
13568 # See if sys/param.h defines the BYTE_ORDER macro.
13569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13570 /* end confdefs.h. */
13571 #include <sys/types.h>
13572 #include <sys/param.h>
13577 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
13578 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
13580 bogus endian macros
13587 if ac_fn_c_try_compile "$LINENO"; then :
13588 # It does; now see whether it defined to BIG_ENDIAN or not.
13589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13590 /* end confdefs.h. */
13591 #include <sys/types.h>
13592 #include <sys/param.h>
13597 #if BYTE_ORDER != BIG_ENDIAN
13605 if ac_fn_c_try_compile "$LINENO"; then :
13606 ac_cv_c_bigendian=yes
13608 ac_cv_c_bigendian=no
13610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13614 if test $ac_cv_c_bigendian = unknown; then
13615 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
13616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13617 /* end confdefs.h. */
13618 #include <limits.h>
13623 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
13624 bogus endian macros
13631 if ac_fn_c_try_compile "$LINENO"; then :
13632 # It does; now see whether it defined to _BIG_ENDIAN or not.
13633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13634 /* end confdefs.h. */
13635 #include <limits.h>
13640 #ifndef _BIG_ENDIAN
13648 if ac_fn_c_try_compile "$LINENO"; then :
13649 ac_cv_c_bigendian=yes
13651 ac_cv_c_bigendian=no
13653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13657 if test $ac_cv_c_bigendian = unknown; then
13658 # Compile a test program.
13659 if test "$cross_compiling" = yes; then :
13660 # Try to guess by grepping values from an object file.
13661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13662 /* end confdefs.h. */
13663 short int ascii_mm[] =
13664 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
13665 short int ascii_ii[] =
13666 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
13667 int use_ascii (int i) {
13668 return ascii_mm[i] + ascii_ii[i];
13670 short int ebcdic_ii[] =
13671 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
13672 short int ebcdic_mm[] =
13673 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
13674 int use_ebcdic (int i) {
13675 return ebcdic_mm[i] + ebcdic_ii[i];
13682 return use_ascii (foo) == use_ebcdic (foo);
13687 if ac_fn_c_try_compile "$LINENO"; then :
13688 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
13689 ac_cv_c_bigendian=yes
13691 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
13692 if test "$ac_cv_c_bigendian" = unknown; then
13693 ac_cv_c_bigendian=no
13695 # finding both strings is unlikely to happen, but who knows?
13696 ac_cv_c_bigendian=unknown
13700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13703 /* end confdefs.h. */
13704 $ac_includes_default
13709 /* Are we little or big endian? From Harbison&Steele. */
13713 char c[sizeof (long int)];
13716 return u.c[sizeof (long int) - 1] == 1;
13722 if ac_fn_c_try_run "$LINENO"; then :
13723 ac_cv_c_bigendian=no
13725 ac_cv_c_bigendian=yes
13727 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13728 conftest.$ac_objext conftest.beam conftest.$ac_ext
13733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
13734 $as_echo "$ac_cv_c_bigendian" >&6; }
13735 case $ac_cv_c_bigendian in #(
13737 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
13743 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
13747 as_fn_error $? "unknown endianness
13748 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
13751 # The cast to long int works around a bug in the HP C Compiler
13752 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13753 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13754 # This bug is HP SR number 8606223364.
13755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
13756 $as_echo_n "checking size of void *... " >&6; }
13757 if ${ac_cv_sizeof_void_p+:} false; then :
13758 $as_echo_n "(cached) " >&6
13760 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
13763 if test "$ac_cv_type_void_p" = yes; then
13764 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13765 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13766 as_fn_error 77 "cannot compute sizeof (void *)
13767 See \`config.log' for more details" "$LINENO" 5; }
13769 ac_cv_sizeof_void_p=0
13774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
13775 $as_echo "$ac_cv_sizeof_void_p" >&6; }
13779 cat >>confdefs.h <<_ACEOF
13780 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
13784 # The cast to long int works around a bug in the HP C Compiler,
13785 # see AC_CHECK_SIZEOF for more information.
13786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of double" >&5
13787 $as_echo_n "checking alignment of double... " >&6; }
13788 if ${ac_cv_alignof_double+:} false; then :
13789 $as_echo_n "(cached) " >&6
13791 if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_double" "$ac_includes_default
13793 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
13795 typedef struct { char x; double y; } ac__type_alignof_;"; then :
13798 if test "$ac_cv_type_double" = yes; then
13799 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13800 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13801 as_fn_error 77 "cannot compute alignment of double
13802 See \`config.log' for more details" "$LINENO" 5; }
13804 ac_cv_alignof_double=0
13809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_double" >&5
13810 $as_echo "$ac_cv_alignof_double" >&6; }
13814 cat >>confdefs.h <<_ACEOF
13815 #define ALIGNOF_DOUBLE $ac_cv_alignof_double
13822 ac_config_files="$ac_config_files Makefile fontconfig/Makefile fc-lang/Makefile fc-glyphname/Makefile fc-case/Makefile src/Makefile conf.d/Makefile fc-cache/Makefile fc-cat/Makefile fc-list/Makefile fc-match/Makefile fc-pattern/Makefile fc-query/Makefile fc-scan/Makefile doc/Makefile doc/version.sgml test/Makefile fontconfig.spec fontconfig.pc fontconfig-zip"
13824 cat >confcache <<\_ACEOF
13825 # This file is a shell script that caches the results of configure
13826 # tests run on this system so they can be shared between configure
13827 # scripts and configure runs, see configure's option --config-cache.
13828 # It is not useful on other systems. If it contains results you don't
13829 # want to keep, you may remove or edit it.
13831 # config.status only pays attention to the cache file if you give it
13832 # the --recheck option to rerun configure.
13834 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13835 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13836 # following values.
13840 # The following way of writing the cache mishandles newlines in values,
13841 # but we know of no workaround that is simple, portable, and efficient.
13842 # So, we kill variables containing newlines.
13843 # Ultrix sh set writes to stderr and can't be redirected directly,
13844 # and sets the high bit in the cache file unless we assign to the vars.
13846 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13847 eval ac_val=\$$ac_var
13851 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13852 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13855 _ | IFS | as_nl) ;; #(
13856 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13857 *) { eval $ac_var=; unset $ac_var;} ;;
13863 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13864 *${as_nl}ac_space=\ *)
13865 # `set' does not quote correctly, so add quotes: double-quote
13866 # substitution turns \\\\ into \\, and sed turns \\ into \.
13869 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13872 # `set' quotes correctly as required by POSIX, so do not add quotes.
13873 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13882 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13884 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13886 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13887 if test -w "$cache_file"; then
13888 if test "x$cache_file" != "x/dev/null"; then
13889 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13890 $as_echo "$as_me: updating cache $cache_file" >&6;}
13891 if test ! -f "$cache_file" || test -h "$cache_file"; then
13892 cat confcache >"$cache_file"
13894 case $cache_file in #(
13896 mv -f confcache "$cache_file"$$ &&
13897 mv -f "$cache_file"$$ "$cache_file" ;; #(
13899 mv -f confcache "$cache_file" ;;
13904 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13905 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13910 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13911 # Let make expand exec_prefix.
13912 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13914 DEFS=-DHAVE_CONFIG_H
13919 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13920 # 1. Remove the extension, and $U if already installed.
13921 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13922 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13923 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13924 # will be set to the directory where LIBOBJS objects are built.
13925 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13926 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13928 LIBOBJS=$ac_libobjs
13930 LTLIBOBJS=$ac_ltlibobjs
13933 if test -n "$EXEEXT"; then
13935 am__EXEEXT_FALSE='#'
13937 am__EXEEXT_TRUE='#'
13941 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13942 as_fn_error $? "conditional \"AMDEP\" was never defined.
13943 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13945 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13946 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13947 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13949 if test -z "${OS_WIN32_TRUE}" && test -z "${OS_WIN32_FALSE}"; then
13950 as_fn_error $? "conditional \"OS_WIN32\" was never defined.
13951 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13953 if test -z "${MS_LIB_AVAILABLE_TRUE}" && test -z "${MS_LIB_AVAILABLE_FALSE}"; then
13954 as_fn_error $? "conditional \"MS_LIB_AVAILABLE\" was never defined.
13955 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13957 if test -z "${CROSS_COMPILING_TRUE}" && test -z "${CROSS_COMPILING_FALSE}"; then
13958 as_fn_error $? "conditional \"CROSS_COMPILING\" was never defined.
13959 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13961 if test -z "${USEDOCBOOK_TRUE}" && test -z "${USEDOCBOOK_FALSE}"; then
13962 as_fn_error $? "conditional \"USEDOCBOOK\" was never defined.
13963 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13965 if test -z "${ENABLE_DOCS_TRUE}" && test -z "${ENABLE_DOCS_FALSE}"; then
13966 as_fn_error $? "conditional \"ENABLE_DOCS\" was never defined.
13967 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13971 : "${CONFIG_STATUS=./config.status}"
13973 ac_clean_files_save=$ac_clean_files
13974 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13975 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13976 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13978 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13980 # Generated by $as_me.
13981 # Run this file to recreate the current configuration.
13982 # Compiler output produced by configure, useful for debugging
13983 # configure, is in config.log if it exists.
13986 ac_cs_recheck=false
13989 SHELL=\${CONFIG_SHELL-$SHELL}
13992 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13993 ## -------------------- ##
13994 ## M4sh Initialization. ##
13995 ## -------------------- ##
13997 # Be more Bourne compatible
13998 DUALCASE=1; export DUALCASE # for MKS sh
13999 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14002 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14003 # is contrary to our usage. Disable this feature.
14004 alias -g '${1+"$@"}'='"$@"'
14005 setopt NO_GLOB_SUBST
14007 case `(set -o) 2>/dev/null` in #(
14019 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14020 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14021 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14022 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14023 # Prefer a ksh shell builtin over an external printf program on Solaris,
14024 # but without wasting forks for bash or zsh.
14025 if test -z "$BASH_VERSION$ZSH_VERSION" \
14026 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14027 as_echo='print -r --'
14028 as_echo_n='print -rn --'
14029 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14030 as_echo='printf %s\n'
14031 as_echo_n='printf %s'
14033 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14034 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14035 as_echo_n='/usr/ucb/echo -n'
14037 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14038 as_echo_n_body='eval
14042 expr "X$arg" : "X\\(.*\\)$as_nl";
14043 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14045 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14047 export as_echo_n_body
14048 as_echo_n='sh -c $as_echo_n_body as_echo'
14050 export as_echo_body
14051 as_echo='sh -c $as_echo_body as_echo'
14054 # The user is always right.
14055 if test "${PATH_SEPARATOR+set}" != set; then
14057 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14058 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14065 # We need space, tab and new line, in precisely that order. Quoting is
14066 # there to prevent editors from complaining about space-tab.
14067 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14068 # splitting by setting IFS to empty value.)
14071 # Find who we are. Look in the path if we contain no directory separator.
14074 *[\\/]* ) as_myself=$0 ;;
14075 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14076 for as_dir in $PATH
14079 test -z "$as_dir" && as_dir=.
14080 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14086 # We did not find ourselves, most probably we were run as `sh COMMAND'
14087 # in which case we are not to be found in the path.
14088 if test "x$as_myself" = x; then
14091 if test ! -f "$as_myself"; then
14092 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14096 # Unset variables that we do not need and which cause bugs (e.g. in
14097 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14098 # suppresses any "Segmentation fault" message there. '((' could
14099 # trigger a bug in pdksh 5.2.14.
14100 for as_var in BASH_ENV ENV MAIL MAILPATH
14101 do eval test x\${$as_var+set} = xset \
14102 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14115 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14118 # as_fn_error STATUS ERROR [LINENO LOG_FD]
14119 # ----------------------------------------
14120 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14121 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14122 # script with STATUS, using 1 if that was 0.
14125 as_status=$1; test $as_status -eq 0 && as_status=1
14127 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14128 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14130 $as_echo "$as_me: error: $2" >&2
14131 as_fn_exit $as_status
14135 # as_fn_set_status STATUS
14136 # -----------------------
14137 # Set $? to STATUS, without forking.
14138 as_fn_set_status ()
14141 } # as_fn_set_status
14143 # as_fn_exit STATUS
14144 # -----------------
14145 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14149 as_fn_set_status $1
14155 # Portably unset VAR.
14158 { eval $1=; unset $1;}
14160 as_unset=as_fn_unset
14161 # as_fn_append VAR VALUE
14162 # ----------------------
14163 # Append the text in VALUE to the end of the definition contained in VAR. Take
14164 # advantage of any shell optimizations that allow amortized linear growth over
14165 # repeated appends, instead of the typical quadratic growth present in naive
14167 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14168 eval 'as_fn_append ()
14179 # as_fn_arith ARG...
14180 # ------------------
14181 # Perform arithmetic evaluation on the ARGs, and store the result in the
14182 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14183 # must be portable across $(()) and expr.
14184 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14185 eval 'as_fn_arith ()
14192 as_val=`expr "$@" || test $? -eq 1`
14197 if expr a : '\(a\)' >/dev/null 2>&1 &&
14198 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14204 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14205 as_basename=basename
14210 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14216 as_me=`$as_basename -- "$0" ||
14217 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14218 X"$0" : 'X\(//\)$' \| \
14219 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14221 sed '/^.*\/\([^/][^/]*\)\/*$/{
14235 # Avoid depending upon Character Ranges.
14236 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14237 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14238 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14239 as_cr_digits='0123456789'
14240 as_cr_alnum=$as_cr_Letters$as_cr_digits
14242 ECHO_C= ECHO_N= ECHO_T=
14243 case `echo -n x` in #(((((
14245 case `echo 'xy\c'` in
14246 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14248 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14255 rm -f conf$$ conf$$.exe conf$$.file
14256 if test -d conf$$.dir; then
14257 rm -f conf$$.dir/conf$$.file
14260 mkdir conf$$.dir 2>/dev/null
14262 if (echo >conf$$.file) 2>/dev/null; then
14263 if ln -s conf$$.file conf$$ 2>/dev/null; then
14265 # ... but there are two gotchas:
14266 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14267 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14268 # In both cases, we have to default to `cp -p'.
14269 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14271 elif ln conf$$.file conf$$ 2>/dev/null; then
14279 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14280 rmdir conf$$.dir 2>/dev/null
14285 # Create "$as_dir" as a directory, including parents if necessary.
14290 -*) as_dir=./$as_dir;;
14292 test -d "$as_dir" || eval $as_mkdir_p || {
14296 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14297 *) as_qdir=$as_dir;;
14299 as_dirs="'$as_qdir' $as_dirs"
14300 as_dir=`$as_dirname -- "$as_dir" ||
14301 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14302 X"$as_dir" : 'X\(//\)[^/]' \| \
14303 X"$as_dir" : 'X\(//\)$' \| \
14304 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14305 $as_echo X"$as_dir" |
14306 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14310 /^X\(\/\/\)[^/].*/{
14323 test -d "$as_dir" && break
14325 test -z "$as_dirs" || eval "mkdir $as_dirs"
14326 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
14330 if mkdir -p . 2>/dev/null; then
14331 as_mkdir_p='mkdir -p "$as_dir"'
14333 test -d ./-p && rmdir ./-p
14337 if test -x / >/dev/null 2>&1; then
14338 as_test_x='test -x'
14340 if ls -dL / >/dev/null 2>&1; then
14347 if test -d "$1"; then
14353 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14354 ???[sx]*):;;*)false;;esac;fi
14358 as_executable_p=$as_test_x
14360 # Sed expression to map a string onto a valid CPP name.
14361 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14363 # Sed expression to map a string onto a valid variable name.
14364 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14368 ## ----------------------------------- ##
14369 ## Main body of $CONFIG_STATUS script. ##
14370 ## ----------------------------------- ##
14372 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14374 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14375 # Save the log message, to keep $0 and so on meaningful, and to
14376 # report actual input values of CONFIG_FILES etc. instead of their
14377 # values after options handling.
14379 This file was extended by $as_me, which was
14380 generated by GNU Autoconf 2.68. Invocation command line was
14382 CONFIG_FILES = $CONFIG_FILES
14383 CONFIG_HEADERS = $CONFIG_HEADERS
14384 CONFIG_LINKS = $CONFIG_LINKS
14385 CONFIG_COMMANDS = $CONFIG_COMMANDS
14388 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14393 case $ac_config_files in *"
14394 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14397 case $ac_config_headers in *"
14398 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14402 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14403 # Files that config.status was made for.
14404 config_files="$ac_config_files"
14405 config_headers="$ac_config_headers"
14406 config_commands="$ac_config_commands"
14410 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14412 \`$as_me' instantiates files and other configuration actions
14413 from templates according to the current configuration. Unless the files
14414 and actions are specified as TAGs, all are instantiated by default.
14416 Usage: $0 [OPTION]... [TAG]...
14418 -h, --help print this help, then exit
14419 -V, --version print version number and configuration settings, then exit
14420 --config print configuration, then exit
14421 -q, --quiet, --silent
14422 do not print progress messages
14423 -d, --debug don't remove temporary files
14424 --recheck update $as_me by reconfiguring in the same conditions
14425 --file=FILE[:TEMPLATE]
14426 instantiate the configuration file FILE
14427 --header=FILE[:TEMPLATE]
14428 instantiate the configuration header FILE
14430 Configuration files:
14433 Configuration headers:
14436 Configuration commands:
14439 Report bugs to the package provider."
14442 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14443 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14446 configured by $0, generated by GNU Autoconf 2.68,
14447 with options \\"\$ac_cs_config\\"
14449 Copyright (C) 2010 Free Software Foundation, Inc.
14450 This config.status script is free software; the Free Software Foundation
14451 gives unlimited permission to copy, distribute and modify it."
14458 test -n "\$AWK" || AWK=awk
14461 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14462 # The default lists apply if the user does not specify any file.
14468 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14469 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14473 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14485 # Handling of the options.
14486 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14488 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14489 $as_echo "$ac_cs_version"; exit ;;
14490 --config | --confi | --conf | --con | --co | --c )
14491 $as_echo "$ac_cs_config"; exit ;;
14492 --debug | --debu | --deb | --de | --d | -d )
14494 --file | --fil | --fi | --f )
14497 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14498 '') as_fn_error $? "missing file argument" ;;
14500 as_fn_append CONFIG_FILES " '$ac_optarg'"
14501 ac_need_defaults=false;;
14502 --header | --heade | --head | --hea )
14505 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14507 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14508 ac_need_defaults=false;;
14510 # Conflict between --help and --header
14511 as_fn_error $? "ambiguous option: \`$1'
14512 Try \`$0 --help' for more information.";;
14513 --help | --hel | -h )
14514 $as_echo "$ac_cs_usage"; exit ;;
14515 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14516 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14519 # This is an error.
14520 -*) as_fn_error $? "unrecognized option: \`$1'
14521 Try \`$0 --help' for more information." ;;
14523 *) as_fn_append ac_config_targets " $1"
14524 ac_need_defaults=false ;;
14530 ac_configure_extra_args=
14532 if $ac_cs_silent; then
14534 ac_configure_extra_args="$ac_configure_extra_args --silent"
14538 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14539 if \$ac_cs_recheck; then
14540 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14542 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14543 CONFIG_SHELL='$SHELL'
14544 export CONFIG_SHELL
14549 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14553 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14554 ## Running $as_me. ##
14560 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14564 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14567 # The HP-UX ksh and POSIX shell print the target directory to stdout
14568 # if CDPATH is set.
14569 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14571 sed_quote_subst='$sed_quote_subst'
14572 double_quote_subst='$double_quote_subst'
14573 delay_variable_subst='$delay_variable_subst'
14574 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
14575 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
14576 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
14577 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
14578 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
14579 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
14580 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
14581 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
14582 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
14583 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
14584 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
14585 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
14586 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
14587 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
14588 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
14589 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
14590 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
14591 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
14592 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
14593 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
14594 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
14595 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
14596 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
14597 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
14598 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
14599 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
14600 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
14601 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
14602 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
14603 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
14604 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
14605 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
14606 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
14607 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
14608 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
14609 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
14610 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
14611 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
14612 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
14613 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
14614 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
14615 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
14616 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
14617 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
14618 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
14619 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14620 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14621 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
14622 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
14623 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
14624 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
14625 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
14626 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
14627 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
14628 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
14629 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
14630 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
14631 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
14632 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
14633 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
14634 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
14635 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
14636 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
14637 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
14638 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
14639 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
14640 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
14641 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
14642 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
14643 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
14644 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
14645 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
14646 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
14647 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
14648 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
14649 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14650 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
14651 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
14652 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
14653 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
14654 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
14655 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
14656 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14657 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
14658 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14659 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
14660 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14661 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
14662 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
14663 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
14664 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
14665 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
14666 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
14667 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
14668 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
14669 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
14670 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
14671 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
14672 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
14673 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
14674 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
14675 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
14676 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
14677 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
14678 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
14679 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
14680 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
14681 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
14682 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
14683 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
14684 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
14685 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
14686 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
14687 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
14688 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
14689 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
14690 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
14691 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
14692 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14693 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14694 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
14695 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
14696 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
14697 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
14698 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
14699 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
14700 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
14701 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
14702 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
14703 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
14704 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
14707 LTCFLAGS='$LTCFLAGS'
14708 compiler='$compiler_DEFAULT'
14710 # A function that is used when there is no print builtin or printf.
14711 func_fallback_echo ()
14713 eval 'cat <<_LTECHO_EOF
14718 # Quote evaled strings.
14734 deplibs_check_method \
14738 sharedlib_from_linklib_cmd \
14741 archiver_list_spec \
14747 lt_cv_sys_global_symbol_pipe \
14748 lt_cv_sys_global_symbol_to_cdecl \
14749 lt_cv_sys_global_symbol_to_c_name_address \
14750 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14751 nm_file_list_spec \
14752 lt_prog_compiler_no_builtin_flag \
14753 lt_prog_compiler_pic \
14754 lt_prog_compiler_wl \
14755 lt_prog_compiler_static \
14756 lt_cv_prog_compiler_c_o \
14765 export_dynamic_flag_spec \
14766 whole_archive_flag_spec \
14767 compiler_needs_object \
14769 allow_undefined_flag \
14770 no_undefined_flag \
14771 hardcode_libdir_flag_spec \
14772 hardcode_libdir_flag_spec_ld \
14773 hardcode_libdir_separator \
14777 variables_saved_for_relink \
14779 library_names_spec \
14781 install_override_mode \
14785 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14786 *[\\\\\\\`\\"\\\$]*)
14787 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
14790 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14795 # Double-quote double-evaled strings.
14796 for var in reload_cmds \
14797 old_postinstall_cmds \
14798 old_postuninstall_cmds \
14800 extract_expsyms_cmds \
14801 old_archive_from_new_cmds \
14802 old_archive_from_expsyms_cmds \
14804 archive_expsym_cmds \
14806 module_expsym_cmds \
14807 export_symbols_cmds \
14811 postuninstall_cmds \
14813 sys_lib_search_path_spec \
14814 sys_lib_dlsearch_path_spec; do
14815 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14816 *[\\\\\\\`\\"\\\$]*)
14817 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14820 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14825 ac_aux_dir='$ac_aux_dir'
14826 xsi_shell='$xsi_shell'
14827 lt_shell_append='$lt_shell_append'
14829 # See if we are running on zsh, and set the options which allow our
14830 # commands through without removal of \ escapes INIT.
14831 if test -n "\${ZSH_VERSION+set}" ; then
14832 setopt NO_GLOB_SUBST
14838 TIMESTAMP='$TIMESTAMP'
14847 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14849 # Handling of arguments.
14850 for ac_config_target in $ac_config_targets
14852 case $ac_config_target in
14853 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14854 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14855 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14856 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14857 "fontconfig/Makefile") CONFIG_FILES="$CONFIG_FILES fontconfig/Makefile" ;;
14858 "fc-lang/Makefile") CONFIG_FILES="$CONFIG_FILES fc-lang/Makefile" ;;
14859 "fc-glyphname/Makefile") CONFIG_FILES="$CONFIG_FILES fc-glyphname/Makefile" ;;
14860 "fc-case/Makefile") CONFIG_FILES="$CONFIG_FILES fc-case/Makefile" ;;
14861 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
14862 "conf.d/Makefile") CONFIG_FILES="$CONFIG_FILES conf.d/Makefile" ;;
14863 "fc-cache/Makefile") CONFIG_FILES="$CONFIG_FILES fc-cache/Makefile" ;;
14864 "fc-cat/Makefile") CONFIG_FILES="$CONFIG_FILES fc-cat/Makefile" ;;
14865 "fc-list/Makefile") CONFIG_FILES="$CONFIG_FILES fc-list/Makefile" ;;
14866 "fc-match/Makefile") CONFIG_FILES="$CONFIG_FILES fc-match/Makefile" ;;
14867 "fc-pattern/Makefile") CONFIG_FILES="$CONFIG_FILES fc-pattern/Makefile" ;;
14868 "fc-query/Makefile") CONFIG_FILES="$CONFIG_FILES fc-query/Makefile" ;;
14869 "fc-scan/Makefile") CONFIG_FILES="$CONFIG_FILES fc-scan/Makefile" ;;
14870 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
14871 "doc/version.sgml") CONFIG_FILES="$CONFIG_FILES doc/version.sgml" ;;
14872 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
14873 "fontconfig.spec") CONFIG_FILES="$CONFIG_FILES fontconfig.spec" ;;
14874 "fontconfig.pc") CONFIG_FILES="$CONFIG_FILES fontconfig.pc" ;;
14875 "fontconfig-zip") CONFIG_FILES="$CONFIG_FILES fontconfig-zip" ;;
14877 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14882 # If the user did not use the arguments to specify the items to instantiate,
14883 # then the envvar interface is used. Set only those that are not.
14884 # We use the long form for the default assignment because of an extremely
14885 # bizarre bug on SunOS 4.1.3.
14886 if $ac_need_defaults; then
14887 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14888 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14889 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14892 # Have a temporary directory for convenience. Make it in the build tree
14893 # simply because there is no reason against having it here, and in addition,
14894 # creating and moving files from /tmp can sometimes cause problems.
14895 # Hook for its removal unless debugging.
14896 # Note that there is a small window in which the directory will not be cleaned:
14897 # after its creation but before its name has been assigned to `$tmp'.
14901 trap 'exit_status=$?
14902 : "${ac_tmp:=$tmp}"
14903 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
14905 trap 'as_fn_exit 1' 1 2 13 15
14907 # Create a (secure) tmp directory for tmp files.
14910 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14914 tmp=./conf$$-$RANDOM
14915 (umask 077 && mkdir "$tmp")
14916 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14919 # Set up the scripts for CONFIG_FILES section.
14920 # No need to generate them if there are no CONFIG_FILES.
14921 # This happens for instance with `./config.status config.h'.
14922 if test -n "$CONFIG_FILES"; then
14925 ac_cr=`echo X | tr X '\015'`
14926 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14927 # But we know of no other shell where ac_cr would be empty at this
14928 # point, so we can use a bashism as a fallback.
14929 if test "x$ac_cr" = x; then
14930 eval ac_cr=\$\'\\r\'
14932 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14933 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14936 ac_cs_awk_cr=$ac_cr
14939 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
14944 echo "cat >conf$$subs.awk <<_ACEOF" &&
14945 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14947 } >conf$$subs.sh ||
14948 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14949 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14951 for ac_last_try in false false false false false :; do
14952 . ./conf$$subs.sh ||
14953 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14955 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14956 if test $ac_delim_n = $ac_delim_num; then
14958 elif $ac_last_try; then
14959 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14961 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14964 rm -f conf$$subs.sh
14966 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14967 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
14971 s/^/S["/; s/!.*/"]=/
14981 s/\(.\{148\}\)..*/\1/
14983 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14988 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14995 s/\(.\{148\}\)..*/\1/
14997 s/["\\]/\\&/g; s/^/"/; s/$/"/
15001 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15006 ' <conf$$subs.awk | sed '
15011 ' >>$CONFIG_STATUS || ac_write_fail=1
15012 rm -f conf$$subs.awk
15013 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15015 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15016 for (key in S) S_is_set[key] = 1
15022 nfields = split(line, field, "@")
15024 len = length(field[1])
15025 for (i = 2; i < nfields; i++) {
15027 keylen = length(key)
15028 if (S_is_set[key]) {
15030 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15031 len += length(value) + length(field[++i])
15042 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15043 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15044 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15047 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15048 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15051 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15052 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15053 # trailing colons and then remove the whole line if VPATH becomes empty
15054 # (actually we leave an empty line to preserve line numbers).
15055 if test "x$srcdir" = x.; then
15056 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
15074 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15075 fi # test -n "$CONFIG_FILES"
15077 # Set up the scripts for CONFIG_HEADERS section.
15078 # No need to generate them if there are no CONFIG_HEADERS.
15079 # This happens for instance with `./config.status Makefile'.
15080 if test -n "$CONFIG_HEADERS"; then
15081 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
15085 # Transform confdefs.h into an awk script `defines.awk', embedded as
15086 # here-document in config.status, that substitutes the proper values into
15087 # config.h.in to produce config.h.
15089 # Create a delimiter string that does not exist in confdefs.h, to ease
15090 # handling of long lines.
15092 for ac_last_try in false false :; do
15093 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
15094 if test -z "$ac_tt"; then
15096 elif $ac_last_try; then
15097 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
15099 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15103 # For the awk script, D is an array of macro values keyed by name,
15104 # likewise P contains macro parameters if any. Preserve backslash
15105 # newline sequences.
15107 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15109 s/.\{148\}/&'"$ac_delim"'/g
15112 s/^[ ]*#[ ]*define[ ][ ]*/ /
15119 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15121 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15125 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15126 D["\1"]=" \3\\\\\\n"\\/p
15128 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15133 s/.\{148\}/&'"$ac_delim"'/g
15138 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15141 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15143 ' <confdefs.h | sed '
15144 s/'"$ac_delim"'/"\\\
15145 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15147 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15148 for (key in D) D_is_set[key] = 1
15151 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15153 split(line, arg, " ")
15154 if (arg[1] == "#") {
15158 defundef = substr(arg[1], 2)
15161 split(mac1, mac2, "(") #)
15163 prefix = substr(line, 1, index(line, defundef) - 1)
15164 if (D_is_set[macro]) {
15165 # Preserve the white space surrounding the "#".
15166 print prefix "define", macro P[macro] D[macro]
15169 # Replace #undef with comments. This is necessary, for example,
15170 # in the case of _POSIX_SOURCE, which is predefined and required
15171 # on some systems where configure will not decide to define it.
15172 if (defundef == "undef") {
15173 print "/*", prefix defundef, macro, "*/"
15181 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15182 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
15183 fi # test -n "$CONFIG_HEADERS"
15186 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15191 :[FHLC]) ac_mode=$ac_tag; continue;;
15193 case $ac_mode$ac_tag in
15195 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
15196 :[FH]-) ac_tag=-:-;;
15197 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15214 -) ac_f="$ac_tmp/stdin";;
15215 *) # Look for the file first in the build tree, then in the source tree
15216 # (if the path is not absolute). The absolute path cannot be DOS-style,
15217 # because $ac_f cannot contain `:'.
15221 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15223 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15225 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15226 as_fn_append ac_file_inputs " '$ac_f'"
15229 # Let's still pretend it is `configure' which instantiates (i.e., don't
15230 # use $as_me), people would be surprised to read:
15231 # /* config.h. Generated by config.status. */
15232 configure_input='Generated from '`
15233 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15235 if test x"$ac_file" != x-; then
15236 configure_input="$ac_file. $configure_input"
15237 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15238 $as_echo "$as_me: creating $ac_file" >&6;}
15240 # Neutralize special characters interpreted by sed in replacement strings.
15241 case $configure_input in #(
15242 *\&* | *\|* | *\\* )
15243 ac_sed_conf_input=`$as_echo "$configure_input" |
15244 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15245 *) ac_sed_conf_input=$configure_input;;
15249 *:-:* | *:-) cat >"$ac_tmp/stdin" \
15250 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15255 ac_dir=`$as_dirname -- "$ac_file" ||
15256 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15257 X"$ac_file" : 'X\(//\)[^/]' \| \
15258 X"$ac_file" : 'X\(//\)$' \| \
15259 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15260 $as_echo X"$ac_file" |
15261 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15265 /^X\(\/\/\)[^/].*/{
15278 as_dir="$ac_dir"; as_fn_mkdir_p
15282 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15284 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15285 # A ".." for each directory in $ac_dir_suffix.
15286 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15287 case $ac_top_builddir_sub in
15288 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15289 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15292 ac_abs_top_builddir=$ac_pwd
15293 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15294 # for backward compatibility:
15295 ac_top_builddir=$ac_top_build_prefix
15298 .) # We are building in place.
15300 ac_top_srcdir=$ac_top_builddir_sub
15301 ac_abs_top_srcdir=$ac_pwd ;;
15302 [\\/]* | ?:[\\/]* ) # Absolute name.
15303 ac_srcdir=$srcdir$ac_dir_suffix;
15304 ac_top_srcdir=$srcdir
15305 ac_abs_top_srcdir=$srcdir ;;
15306 *) # Relative name.
15307 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15308 ac_top_srcdir=$ac_top_build_prefix$srcdir
15309 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15311 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15321 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15322 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15324 ac_MKDIR_P=$MKDIR_P
15326 [\\/$]* | ?:[\\/]* ) ;;
15327 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15331 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15332 # If the template does not know about datarootdir, expand it.
15333 # FIXME: This hack should be removed a few years after 2.60.
15334 ac_datarootdir_hack=; ac_datarootdir_seen=
15345 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15346 *datarootdir*) ac_datarootdir_seen=yes;;
15347 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15348 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15349 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15351 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15352 ac_datarootdir_hack='
15353 s&@datadir@&$datadir&g
15354 s&@docdir@&$docdir&g
15355 s&@infodir@&$infodir&g
15356 s&@localedir@&$localedir&g
15357 s&@mandir@&$mandir&g
15358 s&\\\${datarootdir}&$datarootdir&g' ;;
15362 # Neutralize VPATH when `$srcdir' = `.'.
15363 # Shell code in configure.ac might set extrasub.
15364 # FIXME: do we really want to maintain this feature?
15365 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15366 ac_sed_extra="$ac_vpsub
15369 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15371 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15372 s|@configure_input@|$ac_sed_conf_input|;t t
15373 s&@top_builddir@&$ac_top_builddir_sub&;t t
15374 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15375 s&@srcdir@&$ac_srcdir&;t t
15376 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15377 s&@top_srcdir@&$ac_top_srcdir&;t t
15378 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15379 s&@builddir@&$ac_builddir&;t t
15380 s&@abs_builddir@&$ac_abs_builddir&;t t
15381 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15382 s&@INSTALL@&$ac_INSTALL&;t t
15383 s&@MKDIR_P@&$ac_MKDIR_P&;t t
15384 $ac_datarootdir_hack
15386 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
15387 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15389 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15390 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15391 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
15392 "$ac_tmp/out"`; test -z "$ac_out"; } &&
15393 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15394 which seems to be undefined. Please make sure it is defined" >&5
15395 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15396 which seems to be undefined. Please make sure it is defined" >&2;}
15398 rm -f "$ac_tmp/stdin"
15400 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15401 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15403 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15409 if test x"$ac_file" != x-; then
15411 $as_echo "/* $configure_input */" \
15412 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15413 } >"$ac_tmp/config.h" \
15414 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15415 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
15416 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15417 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15420 mv "$ac_tmp/config.h" "$ac_file" \
15421 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15424 $as_echo "/* $configure_input */" \
15425 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15426 || as_fn_error $? "could not create -" "$LINENO" 5
15428 # Compute "$ac_file"'s index in $config_headers.
15431 for _am_header in $config_headers :; do
15432 case $_am_header in
15433 $_am_arg | $_am_arg:* )
15436 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15439 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
15440 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15441 X"$_am_arg" : 'X\(//\)[^/]' \| \
15442 X"$_am_arg" : 'X\(//\)$' \| \
15443 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
15444 $as_echo X"$_am_arg" |
15445 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15449 /^X\(\/\/\)[^/].*/{
15461 s/.*/./; q'`/stamp-h$_am_stamp_count
15464 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15465 $as_echo "$as_me: executing $ac_file commands" >&6;}
15470 case $ac_file$ac_mode in
15471 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
15472 # Autoconf 2.62 quotes --file arguments for eval, but not when files
15473 # are listed without --file. Let's play safe and only enable the eval
15474 # if we detect the quoting.
15475 case $CONFIG_FILES in
15476 *\'*) eval set x "$CONFIG_FILES" ;;
15477 *) set x $CONFIG_FILES ;;
15482 # Strip MF so we end up with the name of the file.
15483 mf=`echo "$mf" | sed -e 's/:.*$//'`
15484 # Check whether this is an Automake generated Makefile or not.
15485 # We used to match only the files named `Makefile.in', but
15486 # some people rename them; so instead we look at the file content.
15487 # Grep'ing the first line is not enough: some people post-process
15488 # each Makefile.in and add a new line on top of each file to say so.
15489 # Grep'ing the whole file is not good either: AIX grep has a line
15490 # limit of 2048, but all sed's we know have understand at least 4000.
15491 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
15492 dirpart=`$as_dirname -- "$mf" ||
15493 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15494 X"$mf" : 'X\(//\)[^/]' \| \
15495 X"$mf" : 'X\(//\)$' \| \
15496 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
15498 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15502 /^X\(\/\/\)[^/].*/{
15518 # Extract the definition of DEPDIR, am__include, and am__quote
15519 # from the Makefile without running `make'.
15520 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
15521 test -z "$DEPDIR" && continue
15522 am__include=`sed -n 's/^am__include = //p' < "$mf"`
15523 test -z "am__include" && continue
15524 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
15525 # When using ansi2knr, U may be empty or an underscore; expand it
15526 U=`sed -n 's/^U = //p' < "$mf"`
15527 # Find all dependency output files, they are included files with
15528 # $(DEPDIR) in their names. We invoke sed twice because it is the
15529 # simplest approach to changing $(DEPDIR) to its actual value in the
15531 for file in `sed -n "
15532 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15533 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
15534 # Make sure the directory exists.
15535 test -f "$dirpart/$file" && continue
15536 fdir=`$as_dirname -- "$file" ||
15537 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15538 X"$file" : 'X\(//\)[^/]' \| \
15539 X"$file" : 'X\(//\)$' \| \
15540 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
15541 $as_echo X"$file" |
15542 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15546 /^X\(\/\/\)[^/].*/{
15559 as_dir=$dirpart/$fdir; as_fn_mkdir_p
15560 # echo "creating $dirpart/$file"
15561 echo '# dummy' > "$dirpart/$file"
15568 # See if we are running on zsh, and set the options which allow our
15569 # commands through without removal of \ escapes.
15570 if test -n "${ZSH_VERSION+set}" ; then
15571 setopt NO_GLOB_SUBST
15574 cfgfile="${ofile}T"
15575 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15578 cat <<_LT_EOF >> "$cfgfile"
15581 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15582 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
15583 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15584 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
15586 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
15587 # 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
15589 # Written by Gordon Matzigkeit, 1996
15591 # This file is part of GNU Libtool.
15593 # GNU Libtool is free software; you can redistribute it and/or
15594 # modify it under the terms of the GNU General Public License as
15595 # published by the Free Software Foundation; either version 2 of
15596 # the License, or (at your option) any later version.
15598 # As a special exception to the GNU General Public License,
15599 # if you distribute this file as part of a program or library that
15600 # is built using GNU Libtool, you may include this file under the
15601 # same distribution terms that you use for the rest of that program.
15603 # GNU Libtool is distributed in the hope that it will be useful,
15604 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15605 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15606 # GNU General Public License for more details.
15608 # You should have received a copy of the GNU General Public License
15609 # along with GNU Libtool; see the file COPYING. If not, a copy
15610 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
15611 # obtained by writing to the Free Software Foundation, Inc.,
15612 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15615 # The names of the tagged configurations supported by this script.
15618 # ### BEGIN LIBTOOL CONFIG
15620 # Assembler program.
15623 # DLL creation program.
15624 DLLTOOL=$lt_DLLTOOL
15626 # Object dumper program.
15627 OBJDUMP=$lt_OBJDUMP
15629 # Which release of libtool.m4 was used?
15630 macro_version=$macro_version
15631 macro_revision=$macro_revision
15633 # Whether or not to build shared libraries.
15634 build_libtool_libs=$enable_shared
15636 # Whether or not to build static libraries.
15637 build_old_libs=$enable_static
15639 # What type of objects to build.
15642 # Whether or not to optimize for fast installation.
15643 fast_install=$enable_fast_install
15645 # Shell to use when invoking shell scripts.
15648 # An echo program that protects backslashes.
15652 host_alias=$host_alias
15656 # The build system.
15657 build_alias=$build_alias
15661 # A sed program that does not truncate output.
15664 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
15665 Xsed="\$SED -e 1s/^X//"
15667 # A grep program that handles long lines.
15673 # A literal string matcher.
15676 # A BSD- or MS-compatible name lister.
15679 # Whether we need soft or hard links.
15682 # What is the maximum length of a command?
15683 max_cmd_len=$max_cmd_len
15685 # Object file suffix (normally "o").
15688 # Executable file suffix (normally "").
15691 # whether the shell understands "unset".
15694 # turn spaces into newlines.
15697 # turn newlines into spaces.
15700 # convert \$build file names to \$host format.
15701 to_host_file_cmd=$lt_cv_to_host_file_cmd
15703 # convert \$build files to toolchain format.
15704 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
15706 # Method to check whether dependent libraries are shared objects.
15707 deplibs_check_method=$lt_deplibs_check_method
15709 # Command to use when deplibs_check_method = "file_magic".
15710 file_magic_cmd=$lt_file_magic_cmd
15712 # How to find potential files when deplibs_check_method = "file_magic".
15713 file_magic_glob=$lt_file_magic_glob
15715 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
15716 want_nocaseglob=$lt_want_nocaseglob
15718 # Command to associate shared and link libraries.
15719 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
15724 # Flags to create an archive.
15725 AR_FLAGS=$lt_AR_FLAGS
15727 # How to feed a file listing to the archiver.
15728 archiver_list_spec=$lt_archiver_list_spec
15730 # A symbol stripping program.
15733 # Commands used to install an old-style archive.
15735 old_postinstall_cmds=$lt_old_postinstall_cmds
15736 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15738 # Whether to use a lock for old archive extraction.
15739 lock_old_archive_extraction=$lock_old_archive_extraction
15744 # LTCC compiler flags.
15745 LTCFLAGS=$lt_CFLAGS
15747 # Take the output of nm and produce a listing of raw symbols and C names.
15748 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15750 # Transform the output of nm in a proper C declaration.
15751 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15753 # Transform the output of nm in a C name address pair.
15754 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15756 # Transform the output of nm in a C name address pair when lib prefix is needed.
15757 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15759 # Specify filename containing input files for \$NM.
15760 nm_file_list_spec=$lt_nm_file_list_spec
15762 # The root where to search for dependent libraries,and in which our libraries should be installed.
15763 lt_sysroot=$lt_sysroot
15765 # The name of the directory that contains temporary libtool files.
15768 # Used to examine libraries when file_magic_cmd begins with "file".
15769 MAGIC_CMD=$MAGIC_CMD
15771 # Must we lock files when doing compilation?
15772 need_locks=$lt_need_locks
15775 MANIFEST_TOOL=$lt_MANIFEST_TOOL
15777 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15778 DSYMUTIL=$lt_DSYMUTIL
15780 # Tool to change global to local symbols on Mac OS X.
15783 # Tool to manipulate fat objects and archives on Mac OS X.
15786 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
15789 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15790 OTOOL64=$lt_OTOOL64
15792 # Old archive suffix (normally "a").
15795 # Shared library suffix (normally ".so").
15796 shrext_cmds=$lt_shrext_cmds
15798 # The commands to extract the exported symbol list from a shared archive.
15799 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15801 # Variables whose values should be saved in libtool wrapper scripts and
15802 # restored at link time.
15803 variables_saved_for_relink=$lt_variables_saved_for_relink
15805 # Do we need the "lib" prefix for modules?
15806 need_lib_prefix=$need_lib_prefix
15808 # Do we need a version for libraries?
15809 need_version=$need_version
15811 # Library versioning type.
15812 version_type=$version_type
15814 # Shared library runtime path variable.
15815 runpath_var=$runpath_var
15817 # Shared library path variable.
15818 shlibpath_var=$shlibpath_var
15820 # Is shlibpath searched before the hard-coded library search path?
15821 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15823 # Format of library name prefix.
15824 libname_spec=$lt_libname_spec
15826 # List of archive names. First name is the real one, the rest are links.
15827 # The last name is the one that the linker finds with -lNAME
15828 library_names_spec=$lt_library_names_spec
15830 # The coded name of the library, if different from the real name.
15831 soname_spec=$lt_soname_spec
15833 # Permission mode override for installation of shared libraries.
15834 install_override_mode=$lt_install_override_mode
15836 # Command to use after installation of a shared archive.
15837 postinstall_cmds=$lt_postinstall_cmds
15839 # Command to use after uninstallation of a shared archive.
15840 postuninstall_cmds=$lt_postuninstall_cmds
15842 # Commands used to finish a libtool library installation in a directory.
15843 finish_cmds=$lt_finish_cmds
15845 # As "finish_cmds", except a single script fragment to be evaled but
15847 finish_eval=$lt_finish_eval
15849 # Whether we should hardcode library paths into libraries.
15850 hardcode_into_libs=$hardcode_into_libs
15852 # Compile-time system search path for libraries.
15853 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15855 # Run-time system search path for libraries.
15856 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15858 # Whether dlopen is supported.
15859 dlopen_support=$enable_dlopen
15861 # Whether dlopen of programs is supported.
15862 dlopen_self=$enable_dlopen_self
15864 # Whether dlopen of statically linked programs is supported.
15865 dlopen_self_static=$enable_dlopen_self_static
15867 # Commands to strip libraries.
15868 old_striplib=$lt_old_striplib
15869 striplib=$lt_striplib
15872 # The linker used to build libraries.
15875 # How to create reloadable object files.
15876 reload_flag=$lt_reload_flag
15877 reload_cmds=$lt_reload_cmds
15879 # Commands used to build an old-style archive.
15880 old_archive_cmds=$lt_old_archive_cmds
15882 # A language specific compiler.
15885 # Is the compiler the GNU compiler?
15888 # Compiler flag to turn off builtin functions.
15889 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15891 # Additional compiler flags for building library objects.
15892 pic_flag=$lt_lt_prog_compiler_pic
15894 # How to pass a linker flag through the compiler.
15895 wl=$lt_lt_prog_compiler_wl
15897 # Compiler flag to prevent dynamic linking.
15898 link_static_flag=$lt_lt_prog_compiler_static
15900 # Does compiler simultaneously support -c and -o options?
15901 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15903 # Whether or not to add -lc for building shared libraries.
15904 build_libtool_need_lc=$archive_cmds_need_lc
15906 # Whether or not to disallow shared libs when runtime libs are static.
15907 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15909 # Compiler flag to allow reflexive dlopens.
15910 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15912 # Compiler flag to generate shared objects directly from archives.
15913 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15915 # Whether the compiler copes with passing no objects directly.
15916 compiler_needs_object=$lt_compiler_needs_object
15918 # Create an old-style archive from a shared archive.
15919 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15921 # Create a temporary old-style archive to link instead of a shared archive.
15922 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15924 # Commands used to build a shared archive.
15925 archive_cmds=$lt_archive_cmds
15926 archive_expsym_cmds=$lt_archive_expsym_cmds
15928 # Commands used to build a loadable module if different from building
15929 # a shared archive.
15930 module_cmds=$lt_module_cmds
15931 module_expsym_cmds=$lt_module_expsym_cmds
15933 # Whether we are building with GNU ld or not.
15934 with_gnu_ld=$lt_with_gnu_ld
15936 # Flag that allows shared libraries with undefined symbols to be built.
15937 allow_undefined_flag=$lt_allow_undefined_flag
15939 # Flag that enforces no undefined symbols.
15940 no_undefined_flag=$lt_no_undefined_flag
15942 # Flag to hardcode \$libdir into a binary during linking.
15943 # This must work even if \$libdir does not exist
15944 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15946 # If ld is used when linking, flag to hardcode \$libdir into a binary
15947 # during linking. This must work even if \$libdir does not exist.
15948 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15950 # Whether we need a single "-rpath" flag with a separated argument.
15951 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15953 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15954 # DIR into the resulting binary.
15955 hardcode_direct=$hardcode_direct
15957 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15958 # DIR into the resulting binary and the resulting library dependency is
15959 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15960 # library is relocated.
15961 hardcode_direct_absolute=$hardcode_direct_absolute
15963 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15964 # into the resulting binary.
15965 hardcode_minus_L=$hardcode_minus_L
15967 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15968 # into the resulting binary.
15969 hardcode_shlibpath_var=$hardcode_shlibpath_var
15971 # Set to "yes" if building a shared library automatically hardcodes DIR
15972 # into the library and all subsequent libraries and executables linked
15974 hardcode_automatic=$hardcode_automatic
15976 # Set to yes if linker adds runtime paths of dependent libraries
15977 # to runtime path list.
15978 inherit_rpath=$inherit_rpath
15980 # Whether libtool must link a program against all its dependency libraries.
15981 link_all_deplibs=$link_all_deplibs
15983 # Set to "yes" if exported symbols are required.
15984 always_export_symbols=$always_export_symbols
15986 # The commands to list exported symbols.
15987 export_symbols_cmds=$lt_export_symbols_cmds
15989 # Symbols that should not be listed in the preloaded symbols.
15990 exclude_expsyms=$lt_exclude_expsyms
15992 # Symbols that must always be exported.
15993 include_expsyms=$lt_include_expsyms
15995 # Commands necessary for linking programs (against libraries) with templates.
15996 prelink_cmds=$lt_prelink_cmds
15998 # Commands necessary for finishing linking programs.
15999 postlink_cmds=$lt_postlink_cmds
16001 # Specify filename containing input files.
16002 file_list_spec=$lt_file_list_spec
16004 # How to hardcode a shared library path into an executable.
16005 hardcode_action=$hardcode_action
16007 # ### END LIBTOOL CONFIG
16013 cat <<\_LT_EOF >> "$cfgfile"
16014 # AIX sometimes has problems with the GCC collect2 program. For some
16015 # reason, if we set the COLLECT_NAMES environment variable, the problems
16016 # vanish in a puff of smoke.
16017 if test "X${COLLECT_NAMES+set}" != Xset; then
16019 export COLLECT_NAMES
16026 ltmain="$ac_aux_dir/ltmain.sh"
16029 # We use sed instead of cat because bash on DJGPP gets confused if
16030 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16031 # text mode, it properly converts lines to CR/LF. This bash problem
16032 # is reportedly fixed, but why not run on old versions too?
16033 sed '$q' "$ltmain" >> "$cfgfile" \
16034 || (rm -f "$cfgfile"; exit 1)
16036 if test x"$xsi_shell" = xyes; then
16037 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
16041 \ */*) func_dirname_result="${1%/*}${2}" ;;\
16042 \ * ) func_dirname_result="${3}" ;;\
16044 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
16045 && mv -f "$cfgfile.tmp" "$cfgfile" \
16046 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16047 test 0 -eq $? || _lt_function_replace_fail=:
16050 sed -e '/^func_basename ()$/,/^} # func_basename /c\
16053 \ func_basename_result="${1##*/}"\
16054 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
16055 && mv -f "$cfgfile.tmp" "$cfgfile" \
16056 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16057 test 0 -eq $? || _lt_function_replace_fail=:
16060 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
16061 func_dirname_and_basename ()\
16064 \ */*) func_dirname_result="${1%/*}${2}" ;;\
16065 \ * ) func_dirname_result="${3}" ;;\
16067 \ func_basename_result="${1##*/}"\
16068 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
16069 && mv -f "$cfgfile.tmp" "$cfgfile" \
16070 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16071 test 0 -eq $? || _lt_function_replace_fail=:
16074 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
16077 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
16078 \ # positional parameters, so assign one to ordinary parameter first.\
16079 \ func_stripname_result=${3}\
16080 \ func_stripname_result=${func_stripname_result#"${1}"}\
16081 \ func_stripname_result=${func_stripname_result%"${2}"}\
16082 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
16083 && mv -f "$cfgfile.tmp" "$cfgfile" \
16084 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16085 test 0 -eq $? || _lt_function_replace_fail=:
16088 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
16089 func_split_long_opt ()\
16091 \ func_split_long_opt_name=${1%%=*}\
16092 \ func_split_long_opt_arg=${1#*=}\
16093 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
16094 && mv -f "$cfgfile.tmp" "$cfgfile" \
16095 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16096 test 0 -eq $? || _lt_function_replace_fail=:
16099 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
16100 func_split_short_opt ()\
16102 \ func_split_short_opt_arg=${1#??}\
16103 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
16104 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
16105 && mv -f "$cfgfile.tmp" "$cfgfile" \
16106 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16107 test 0 -eq $? || _lt_function_replace_fail=:
16110 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
16114 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
16115 \ *) func_lo2o_result=${1} ;;\
16117 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
16118 && mv -f "$cfgfile.tmp" "$cfgfile" \
16119 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16120 test 0 -eq $? || _lt_function_replace_fail=:
16123 sed -e '/^func_xform ()$/,/^} # func_xform /c\
16126 func_xform_result=${1%.*}.lo\
16127 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
16128 && mv -f "$cfgfile.tmp" "$cfgfile" \
16129 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16130 test 0 -eq $? || _lt_function_replace_fail=:
16133 sed -e '/^func_arith ()$/,/^} # func_arith /c\
16136 func_arith_result=$(( $* ))\
16137 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
16138 && mv -f "$cfgfile.tmp" "$cfgfile" \
16139 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16140 test 0 -eq $? || _lt_function_replace_fail=:
16143 sed -e '/^func_len ()$/,/^} # func_len /c\
16146 func_len_result=${#1}\
16147 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
16148 && mv -f "$cfgfile.tmp" "$cfgfile" \
16149 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16150 test 0 -eq $? || _lt_function_replace_fail=:
16154 if test x"$lt_shell_append" = xyes; then
16155 sed -e '/^func_append ()$/,/^} # func_append /c\
16158 eval "${1}+=\\${2}"\
16159 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
16160 && mv -f "$cfgfile.tmp" "$cfgfile" \
16161 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16162 test 0 -eq $? || _lt_function_replace_fail=:
16165 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
16166 func_append_quoted ()\
16168 \ func_quote_for_eval "${2}"\
16169 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
16170 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
16171 && mv -f "$cfgfile.tmp" "$cfgfile" \
16172 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16173 test 0 -eq $? || _lt_function_replace_fail=:
16176 # Save a `func_append' function call where possible by direct use of '+='
16177 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
16178 && mv -f "$cfgfile.tmp" "$cfgfile" \
16179 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16180 test 0 -eq $? || _lt_function_replace_fail=:
16182 # Save a `func_append' function call even when '+=' is not available
16183 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
16184 && mv -f "$cfgfile.tmp" "$cfgfile" \
16185 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16186 test 0 -eq $? || _lt_function_replace_fail=:
16189 if test x"$_lt_function_replace_fail" = x":"; then
16190 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
16191 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
16195 mv -f "$cfgfile" "$ofile" ||
16196 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16207 ac_clean_files=$ac_clean_files_save
16209 test $ac_write_fail = 0 ||
16210 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16213 # configure is writing to config.log, and then calls config.status.
16214 # config.status does its own redirection, appending to config.log.
16215 # Unfortunately, on DOS this fails, as config.log is still kept open
16216 # by configure, so config.status won't be able to write to it; its
16217 # output is simply discarded. So we exec the FD to /dev/null,
16218 # effectively closing config.log, so it can be properly (re)opened and
16219 # appended to by config.status. When coming back to configure, we
16220 # need to make the FD available again.
16221 if test "$no_create" != yes; then
16223 ac_config_status_args=
16224 test "$silent" = yes &&
16225 ac_config_status_args="$ac_config_status_args --quiet"
16227 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16229 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16230 # would make configure fail if this is the last instruction.
16231 $ac_cs_success || as_fn_exit 1
16233 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16234 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16235 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}