2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for pdemo 1.0.
5 # Report bugs to <bug-libtool@gnu.org>.
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
29 case `(set -o) 2>/dev/null` in #(
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
70 as_echo_n='sh -c $as_echo_n_body as_echo'
73 as_echo='sh -c $as_echo_body as_echo'
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
87 # We need space, tab and new line, in precisely that order. Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
93 # Find who we are. Look in the path if we contain no directory separator.
96 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
101 test -z "$as_dir" && as_dir=.
102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
113 if test ! -f "$as_myself"; then
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there. '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
139 if test "x$CONFIG_SHELL" = x; then
140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144 # is contrary to our usage. Disable this feature.
145 alias -g '\${1+\"\$@\"}'='\"\$@\"'
148 case \`(set -o) 2>/dev/null\` in #(
156 as_required="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
170 exitcode=1; echo positional parameters were not saved.
172 test x\$exitcode = x0 || exit 1"
173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
178 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
179 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
180 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
181 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182 PATH=/empty FPATH=/empty; export PATH FPATH
183 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
184 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
185 test \$(( 1 + 1 )) = 2 || exit 1"
186 if (eval "$as_required") 2>/dev/null; then :
191 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
196 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
199 test -z "$as_dir" && as_dir=.
203 for as_base in sh bash ksh sh5; do
204 # Try only shells that exist, to save several forks.
205 as_shell=$as_dir/$as_base
206 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
208 CONFIG_SHELL=$as_shell as_have_required=yes
209 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
217 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
218 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
219 CONFIG_SHELL=$SHELL as_have_required=yes
224 if test "x$CONFIG_SHELL" != x; then :
225 # We cannot yet assume a decent shell, so we have to provide a
226 # neutralization value for shells without unset; and this also
227 # works around shells that cannot unset nonexistent variables.
228 # Preserve -v and -x to the replacement shell.
231 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
234 *v*x* | *x*v* ) as_opts=-vx ;;
239 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
242 if test x$as_have_required = xno; then :
243 $as_echo "$0: This script requires a shell more modern than all"
244 $as_echo "$0: the shells that I found on your system."
245 if test x${ZSH_VERSION+set} = xset ; then
246 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
247 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
249 $as_echo "$0: Please tell bug-autoconf@gnu.org and
250 $0: bug-libtool@gnu.org about your system, including any
251 $0: error possibly output before this message. Then install
252 $0: a modern shell, or manually run the script under such a
253 $0: shell if you do have one."
259 SHELL=${CONFIG_SHELL-/bin/sh}
261 # Unset more variables known to interfere with behavior of common tools.
262 CLICOLOR_FORCE= GREP_OPTIONS=
263 unset CLICOLOR_FORCE GREP_OPTIONS
265 ## --------------------- ##
266 ## M4sh Shell Functions. ##
267 ## --------------------- ##
270 # Portably unset VAR.
273 { eval $1=; unset $1;}
277 # as_fn_set_status STATUS
278 # -----------------------
279 # Set $? to STATUS, without forking.
287 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
297 # Create "$as_dir" as a directory, including parents if necessary.
302 -*) as_dir=./$as_dir;;
304 test -d "$as_dir" || eval $as_mkdir_p || {
308 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
311 as_dirs="'$as_qdir' $as_dirs"
312 as_dir=`$as_dirname -- "$as_dir" ||
313 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
314 X"$as_dir" : 'X\(//\)[^/]' \| \
315 X"$as_dir" : 'X\(//\)$' \| \
316 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
317 $as_echo X"$as_dir" |
318 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
335 test -d "$as_dir" && break
337 test -z "$as_dirs" || eval "mkdir $as_dirs"
338 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
342 # as_fn_append VAR VALUE
343 # ----------------------
344 # Append the text in VALUE to the end of the definition contained in VAR. Take
345 # advantage of any shell optimizations that allow amortized linear growth over
346 # repeated appends, instead of the typical quadratic growth present in naive
348 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
349 eval 'as_fn_append ()
362 # Perform arithmetic evaluation on the ARGs, and store the result in the
363 # global $as_val. Take advantage of shells that can avoid forks. The arguments
364 # must be portable across $(()) and expr.
365 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
373 as_val=`expr "$@" || test $? -eq 1`
378 # as_fn_error STATUS ERROR [LINENO LOG_FD]
379 # ----------------------------------------
380 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
381 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
382 # script with STATUS, using 1 if that was 0.
385 as_status=$1; test $as_status -eq 0 && as_status=1
387 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
388 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
390 $as_echo "$as_me: error: $2" >&2
391 as_fn_exit $as_status
394 if expr a : '\(a\)' >/dev/null 2>&1 &&
395 test "X`expr 00001 : '.*\(...\)'`" = X001; then
401 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
407 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
413 as_me=`$as_basename -- "$0" ||
414 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
415 X"$0" : 'X\(//\)$' \| \
416 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
418 sed '/^.*\/\([^/][^/]*\)\/*$/{
432 # Avoid depending upon Character Ranges.
433 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
434 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
435 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
436 as_cr_digits='0123456789'
437 as_cr_alnum=$as_cr_Letters$as_cr_digits
440 as_lineno_1=$LINENO as_lineno_1a=$LINENO
441 as_lineno_2=$LINENO as_lineno_2a=$LINENO
442 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
443 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
444 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
456 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
460 chmod +x "$as_me.lineno" ||
461 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
463 # Don't try to exec as it changes $[0], causing all sort of problems
464 # (the dirname of $[0] is not the place where we might find the
465 # original and so on. Autoconf is especially sensitive to this).
467 # Exit status is that of the last command.
471 ECHO_C= ECHO_N= ECHO_T=
472 case `echo -n x` in #(((((
474 case `echo 'xy\c'` in
475 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
484 rm -f conf$$ conf$$.exe conf$$.file
485 if test -d conf$$.dir; then
486 rm -f conf$$.dir/conf$$.file
489 mkdir conf$$.dir 2>/dev/null
491 if (echo >conf$$.file) 2>/dev/null; then
492 if ln -s conf$$.file conf$$ 2>/dev/null; then
494 # ... but there are two gotchas:
495 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
496 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
497 # In both cases, we have to default to `cp -p'.
498 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
500 elif ln conf$$.file conf$$ 2>/dev/null; then
508 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
509 rmdir conf$$.dir 2>/dev/null
511 if mkdir -p . 2>/dev/null; then
512 as_mkdir_p='mkdir -p "$as_dir"'
514 test -d ./-p && rmdir ./-p
518 if test -x / >/dev/null 2>&1; then
521 if ls -dL / >/dev/null 2>&1; then
528 if test -d "$1"; then
534 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
535 ???[sx]*):;;*)false;;esac;fi
539 as_executable_p=$as_test_x
541 # Sed expression to map a string onto a valid CPP name.
542 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
544 # Sed expression to map a string onto a valid variable name.
545 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
547 SHELL=${CONFIG_SHELL-/bin/sh}
550 test -n "$DJDIR" || exec 7<&0 </dev/null
554 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
555 # so uname gets run too.
556 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
561 ac_default_prefix=/usr/local
563 ac_config_libobj_dir=.
570 # Identity of this package.
572 PACKAGE_TARNAME='pdemo'
573 PACKAGE_VERSION='1.0'
574 PACKAGE_STRING='pdemo 1.0'
575 PACKAGE_BUGREPORT='bug-libtool@gnu.org'
578 ac_unique_file="longer_file_name_hello.c"
579 # Factoring default headers for most tests.
580 ac_includes_default="\
582 #ifdef HAVE_SYS_TYPES_H
583 # include <sys/types.h>
585 #ifdef HAVE_SYS_STAT_H
586 # include <sys/stat.h>
592 # ifdef HAVE_STDLIB_H
597 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
602 #ifdef HAVE_STRINGS_H
603 # include <strings.h>
605 #ifdef HAVE_INTTYPES_H
606 # include <inttypes.h>
615 ac_subst_vars='am__EXEEXT_FALSE
678 INSTALL_STRIP_PROGRAM
720 program_transform_name
733 enable_option_checking
734 enable_dependency_tracking
743 ac_precious_vars='build_alias
754 # Initialize some variables set by options.
756 ac_init_version=false
757 ac_unrecognized_opts=
759 # The variables have the same names as the options, with
760 # dashes changed to underlines.
768 program_transform_name=s,x,x,
776 # Installation directory options.
777 # These are left unexpanded so users can "make install exec_prefix=/foo"
778 # and all the variables that are supposed to be based on exec_prefix
779 # by default will actually change.
780 # Use braces instead of parens because sh, perl, etc. also accept them.
781 # (The list follows the same order as the GNU Coding Standards.)
782 bindir='${exec_prefix}/bin'
783 sbindir='${exec_prefix}/sbin'
784 libexecdir='${exec_prefix}/libexec'
785 datarootdir='${prefix}/share'
786 datadir='${datarootdir}'
787 sysconfdir='${prefix}/etc'
788 sharedstatedir='${prefix}/com'
789 localstatedir='${prefix}/var'
790 includedir='${prefix}/include'
791 oldincludedir='/usr/include'
792 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
793 infodir='${datarootdir}/info'
798 libdir='${exec_prefix}/lib'
799 localedir='${datarootdir}/locale'
800 mandir='${datarootdir}/man'
806 # If the previous option needs an argument, assign it.
807 if test -n "$ac_prev"; then
808 eval $ac_prev=\$ac_option
814 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
819 # Accept the important Cygnus configure options, so we can diagnose typos.
821 case $ac_dashdash$ac_option in
825 -bindir | --bindir | --bindi | --bind | --bin | --bi)
827 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
830 -build | --build | --buil | --bui | --bu)
831 ac_prev=build_alias ;;
832 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
833 build_alias=$ac_optarg ;;
835 -cache-file | --cache-file | --cache-fil | --cache-fi \
836 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
837 ac_prev=cache_file ;;
838 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
839 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
840 cache_file=$ac_optarg ;;
843 cache_file=config.cache ;;
845 -datadir | --datadir | --datadi | --datad)
847 -datadir=* | --datadir=* | --datadi=* | --datad=*)
848 datadir=$ac_optarg ;;
850 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
851 | --dataroo | --dataro | --datar)
852 ac_prev=datarootdir ;;
853 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
854 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
855 datarootdir=$ac_optarg ;;
857 -disable-* | --disable-*)
858 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
859 # Reject names that are not valid shell variable names.
860 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
861 as_fn_error $? "invalid feature name: $ac_useropt"
862 ac_useropt_orig=$ac_useropt
863 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
864 case $ac_user_opts in
868 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
869 ac_unrecognized_sep=', ';;
871 eval enable_$ac_useropt=no ;;
873 -docdir | --docdir | --docdi | --doc | --do)
875 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
878 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
880 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
883 -enable-* | --enable-*)
884 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
885 # Reject names that are not valid shell variable names.
886 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
887 as_fn_error $? "invalid feature name: $ac_useropt"
888 ac_useropt_orig=$ac_useropt
889 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
890 case $ac_user_opts in
894 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
895 ac_unrecognized_sep=', ';;
897 eval enable_$ac_useropt=\$ac_optarg ;;
899 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
900 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
901 | --exec | --exe | --ex)
902 ac_prev=exec_prefix ;;
903 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
904 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
905 | --exec=* | --exe=* | --ex=*)
906 exec_prefix=$ac_optarg ;;
908 -gas | --gas | --ga | --g)
909 # Obsolete; use --with-gas.
912 -help | --help | --hel | --he | -h)
914 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
915 ac_init_help=recursive ;;
916 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
917 ac_init_help=short ;;
919 -host | --host | --hos | --ho)
920 ac_prev=host_alias ;;
921 -host=* | --host=* | --hos=* | --ho=*)
922 host_alias=$ac_optarg ;;
924 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
926 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
928 htmldir=$ac_optarg ;;
930 -includedir | --includedir | --includedi | --included | --include \
931 | --includ | --inclu | --incl | --inc)
932 ac_prev=includedir ;;
933 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
934 | --includ=* | --inclu=* | --incl=* | --inc=*)
935 includedir=$ac_optarg ;;
937 -infodir | --infodir | --infodi | --infod | --info | --inf)
939 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
940 infodir=$ac_optarg ;;
942 -libdir | --libdir | --libdi | --libd)
944 -libdir=* | --libdir=* | --libdi=* | --libd=*)
947 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
948 | --libexe | --libex | --libe)
949 ac_prev=libexecdir ;;
950 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
951 | --libexe=* | --libex=* | --libe=*)
952 libexecdir=$ac_optarg ;;
954 -localedir | --localedir | --localedi | --localed | --locale)
956 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
957 localedir=$ac_optarg ;;
959 -localstatedir | --localstatedir | --localstatedi | --localstated \
960 | --localstate | --localstat | --localsta | --localst | --locals)
961 ac_prev=localstatedir ;;
962 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
963 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
964 localstatedir=$ac_optarg ;;
966 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
968 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
972 # Obsolete; use --without-fp.
975 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
976 | --no-cr | --no-c | -n)
979 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
980 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
983 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
984 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
985 | --oldin | --oldi | --old | --ol | --o)
986 ac_prev=oldincludedir ;;
987 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
988 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
989 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
990 oldincludedir=$ac_optarg ;;
992 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
994 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
997 -program-prefix | --program-prefix | --program-prefi | --program-pref \
998 | --program-pre | --program-pr | --program-p)
999 ac_prev=program_prefix ;;
1000 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1001 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1002 program_prefix=$ac_optarg ;;
1004 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1005 | --program-suf | --program-su | --program-s)
1006 ac_prev=program_suffix ;;
1007 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1008 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1009 program_suffix=$ac_optarg ;;
1011 -program-transform-name | --program-transform-name \
1012 | --program-transform-nam | --program-transform-na \
1013 | --program-transform-n | --program-transform- \
1014 | --program-transform | --program-transfor \
1015 | --program-transfo | --program-transf \
1016 | --program-trans | --program-tran \
1017 | --progr-tra | --program-tr | --program-t)
1018 ac_prev=program_transform_name ;;
1019 -program-transform-name=* | --program-transform-name=* \
1020 | --program-transform-nam=* | --program-transform-na=* \
1021 | --program-transform-n=* | --program-transform-=* \
1022 | --program-transform=* | --program-transfor=* \
1023 | --program-transfo=* | --program-transf=* \
1024 | --program-trans=* | --program-tran=* \
1025 | --progr-tra=* | --program-tr=* | --program-t=*)
1026 program_transform_name=$ac_optarg ;;
1028 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1030 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1031 pdfdir=$ac_optarg ;;
1033 -psdir | --psdir | --psdi | --psd | --ps)
1035 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1038 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1039 | -silent | --silent | --silen | --sile | --sil)
1042 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1044 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1046 sbindir=$ac_optarg ;;
1048 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1049 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1050 | --sharedst | --shareds | --shared | --share | --shar \
1052 ac_prev=sharedstatedir ;;
1053 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1054 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1055 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1057 sharedstatedir=$ac_optarg ;;
1059 -site | --site | --sit)
1061 -site=* | --site=* | --sit=*)
1064 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1066 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1067 srcdir=$ac_optarg ;;
1069 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1070 | --syscon | --sysco | --sysc | --sys | --sy)
1071 ac_prev=sysconfdir ;;
1072 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1073 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1074 sysconfdir=$ac_optarg ;;
1076 -target | --target | --targe | --targ | --tar | --ta | --t)
1077 ac_prev=target_alias ;;
1078 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1079 target_alias=$ac_optarg ;;
1081 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1084 -version | --version | --versio | --versi | --vers | -V)
1085 ac_init_version=: ;;
1088 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1089 # Reject names that are not valid shell variable names.
1090 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1091 as_fn_error $? "invalid package name: $ac_useropt"
1092 ac_useropt_orig=$ac_useropt
1093 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1094 case $ac_user_opts in
1098 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1099 ac_unrecognized_sep=', ';;
1101 eval with_$ac_useropt=\$ac_optarg ;;
1103 -without-* | --without-*)
1104 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1105 # Reject names that are not valid shell variable names.
1106 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1107 as_fn_error $? "invalid package name: $ac_useropt"
1108 ac_useropt_orig=$ac_useropt
1109 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1110 case $ac_user_opts in
1114 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1115 ac_unrecognized_sep=', ';;
1117 eval with_$ac_useropt=no ;;
1120 # Obsolete; use --with-x.
1123 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1124 | --x-incl | --x-inc | --x-in | --x-i)
1125 ac_prev=x_includes ;;
1126 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1127 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1128 x_includes=$ac_optarg ;;
1130 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1131 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1132 ac_prev=x_libraries ;;
1133 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1134 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1135 x_libraries=$ac_optarg ;;
1137 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1138 Try \`$0 --help' for more information"
1142 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1143 # Reject names that are not valid shell variable names.
1144 case $ac_envvar in #(
1145 '' | [0-9]* | *[!_$as_cr_alnum]* )
1146 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1148 eval $ac_envvar=\$ac_optarg
1149 export $ac_envvar ;;
1152 # FIXME: should be removed in autoconf 3.0.
1153 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1154 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1155 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1156 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1162 if test -n "$ac_prev"; then
1163 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1164 as_fn_error $? "missing argument to $ac_option"
1167 if test -n "$ac_unrecognized_opts"; then
1168 case $enable_option_checking in
1170 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1171 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1175 # Check all directory arguments for consistency.
1176 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1177 datadir sysconfdir sharedstatedir localstatedir includedir \
1178 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1179 libdir localedir mandir
1181 eval ac_val=\$$ac_var
1182 # Remove trailing slashes.
1185 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1186 eval $ac_var=\$ac_val;;
1188 # Be sure to have absolute directory names.
1190 [\\/$]* | ?:[\\/]* ) continue;;
1191 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1193 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1196 # There might be people who depend on the old broken behavior: `$host'
1197 # used to hold the argument of --host etc.
1198 # FIXME: To remove some day.
1201 target=$target_alias
1203 # FIXME: To remove some day.
1204 if test "x$host_alias" != x; then
1205 if test "x$build_alias" = x; then
1206 cross_compiling=maybe
1207 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1208 If a cross compiler is detected then cross compile mode will be used" >&2
1209 elif test "x$build_alias" != "x$host_alias"; then
1215 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1217 test "$silent" = yes && exec 6>/dev/null
1220 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1221 ac_ls_di=`ls -di .` &&
1222 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1223 as_fn_error $? "working directory cannot be determined"
1224 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1225 as_fn_error $? "pwd does not report name of working directory"
1228 # Find the source files, if location was not specified.
1229 if test -z "$srcdir"; then
1230 ac_srcdir_defaulted=yes
1231 # Try the directory containing this script, then the parent directory.
1232 ac_confdir=`$as_dirname -- "$as_myself" ||
1233 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1234 X"$as_myself" : 'X\(//\)[^/]' \| \
1235 X"$as_myself" : 'X\(//\)$' \| \
1236 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1237 $as_echo X"$as_myself" |
1238 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1256 if test ! -r "$srcdir/$ac_unique_file"; then
1260 ac_srcdir_defaulted=no
1262 if test ! -r "$srcdir/$ac_unique_file"; then
1263 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1264 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1266 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1268 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1270 # When building in place, set srcdir=.
1271 if test "$ac_abs_confdir" = "$ac_pwd"; then
1274 # Remove unnecessary trailing slashes from srcdir.
1275 # Double slashes in file names in object file debugging info
1276 # mess up M-x gdb in Emacs.
1278 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1280 for ac_var in $ac_precious_vars; do
1281 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1282 eval ac_env_${ac_var}_value=\$${ac_var}
1283 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1284 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1288 # Report the --help message.
1290 if test "$ac_init_help" = "long"; then
1291 # Omit some internal or obsolete options to make the list less imposing.
1292 # This message is too long to be a string in the A/UX 3.1 sh.
1294 \`configure' configures pdemo 1.0 to adapt to many kinds of systems.
1296 Usage: $0 [OPTION]... [VAR=VALUE]...
1298 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1299 VAR=VALUE. See below for descriptions of some of the useful variables.
1301 Defaults for the options are specified in brackets.
1304 -h, --help display this help and exit
1305 --help=short display options specific to this package
1306 --help=recursive display the short help of all the included packages
1307 -V, --version display version information and exit
1308 -q, --quiet, --silent do not print \`checking ...' messages
1309 --cache-file=FILE cache test results in FILE [disabled]
1310 -C, --config-cache alias for \`--cache-file=config.cache'
1311 -n, --no-create do not create output files
1312 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1314 Installation directories:
1315 --prefix=PREFIX install architecture-independent files in PREFIX
1316 [$ac_default_prefix]
1317 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1320 By default, \`make install' will install all the files in
1321 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1322 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1323 for instance \`--prefix=\$HOME'.
1325 For better control, use the options below.
1327 Fine tuning of the installation directories:
1328 --bindir=DIR user executables [EPREFIX/bin]
1329 --sbindir=DIR system admin executables [EPREFIX/sbin]
1330 --libexecdir=DIR program executables [EPREFIX/libexec]
1331 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1332 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1333 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1334 --libdir=DIR object code libraries [EPREFIX/lib]
1335 --includedir=DIR C header files [PREFIX/include]
1336 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1337 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1338 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1339 --infodir=DIR info documentation [DATAROOTDIR/info]
1340 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1341 --mandir=DIR man documentation [DATAROOTDIR/man]
1342 --docdir=DIR documentation root [DATAROOTDIR/doc/pdemo]
1343 --htmldir=DIR html documentation [DOCDIR]
1344 --dvidir=DIR dvi documentation [DOCDIR]
1345 --pdfdir=DIR pdf documentation [DOCDIR]
1346 --psdir=DIR ps documentation [DOCDIR]
1352 --program-prefix=PREFIX prepend PREFIX to installed program names
1353 --program-suffix=SUFFIX append SUFFIX to installed program names
1354 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1357 --build=BUILD configure for building on BUILD [guessed]
1358 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1362 if test -n "$ac_init_help"; then
1363 case $ac_init_help in
1364 short | recursive ) echo "Configuration of pdemo 1.0:";;
1369 --disable-option-checking ignore unrecognized --enable/--with options
1370 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1371 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1372 --disable-dependency-tracking speeds up one-time build
1373 --enable-dependency-tracking do not reject slow dependency extractors
1374 --enable-shared[=PKGS] build shared libraries [default=yes]
1375 --enable-static[=PKGS] build static libraries [default=yes]
1376 --enable-fast-install[=PKGS]
1377 optimize for fast installation [default=yes]
1378 --disable-libtool-lock avoid locking (might break parallel builds)
1381 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1382 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1383 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1385 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1386 --with-sysroot=DIR Search for dependent libraries within DIR
1387 (or the compiler's sysroot if not specified).
1389 Some influential environment variables:
1390 CC C compiler command
1391 CFLAGS C compiler flags
1392 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1393 nonstandard directory <lib dir>
1394 LIBS libraries to pass to the linker, e.g. -l<library>
1395 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1396 you have headers in a nonstandard directory <include dir>
1399 Use these variables to override the choices made by `configure' or to help
1400 it to find libraries and programs with nonstandard names/locations.
1402 Report bugs to <bug-libtool@gnu.org>.
1407 if test "$ac_init_help" = "recursive"; then
1408 # If there are subdirs, report their specific --help.
1409 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1410 test -d "$ac_dir" ||
1411 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1416 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1418 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1419 # A ".." for each directory in $ac_dir_suffix.
1420 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1421 case $ac_top_builddir_sub in
1422 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1423 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1426 ac_abs_top_builddir=$ac_pwd
1427 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1428 # for backward compatibility:
1429 ac_top_builddir=$ac_top_build_prefix
1432 .) # We are building in place.
1434 ac_top_srcdir=$ac_top_builddir_sub
1435 ac_abs_top_srcdir=$ac_pwd ;;
1436 [\\/]* | ?:[\\/]* ) # Absolute name.
1437 ac_srcdir=$srcdir$ac_dir_suffix;
1438 ac_top_srcdir=$srcdir
1439 ac_abs_top_srcdir=$srcdir ;;
1441 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1442 ac_top_srcdir=$ac_top_build_prefix$srcdir
1443 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1445 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1447 cd "$ac_dir" || { ac_status=$?; continue; }
1448 # Check for guested configure.
1449 if test -f "$ac_srcdir/configure.gnu"; then
1451 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1452 elif test -f "$ac_srcdir/configure"; then
1454 $SHELL "$ac_srcdir/configure" --help=recursive
1456 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1458 cd "$ac_pwd" || { ac_status=$?; break; }
1462 test -n "$ac_init_help" && exit $ac_status
1463 if $ac_init_version; then
1466 generated by GNU Autoconf 2.68
1468 Copyright (C) 2010 Free Software Foundation, Inc.
1469 This configure script is free software; the Free Software Foundation
1470 gives unlimited permission to copy, distribute and modify it.
1475 ## ------------------------ ##
1476 ## Autoconf initialization. ##
1477 ## ------------------------ ##
1479 # ac_fn_c_try_compile LINENO
1480 # --------------------------
1481 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1482 ac_fn_c_try_compile ()
1484 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1485 rm -f conftest.$ac_objext
1486 if { { ac_try="$ac_compile"
1488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1489 *) ac_try_echo=$ac_try;;
1491 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1492 $as_echo "$ac_try_echo"; } >&5
1493 (eval "$ac_compile") 2>conftest.err
1495 if test -s conftest.err; then
1496 grep -v '^ *+' conftest.err >conftest.er1
1497 cat conftest.er1 >&5
1498 mv -f conftest.er1 conftest.err
1500 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1501 test $ac_status = 0; } && {
1502 test -z "$ac_c_werror_flag" ||
1503 test ! -s conftest.err
1504 } && test -s conftest.$ac_objext; then :
1507 $as_echo "$as_me: failed program was:" >&5
1508 sed 's/^/| /' conftest.$ac_ext >&5
1512 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1513 as_fn_set_status $ac_retval
1515 } # ac_fn_c_try_compile
1517 # ac_fn_c_try_link LINENO
1518 # -----------------------
1519 # Try to link conftest.$ac_ext, and return whether this succeeded.
1522 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1523 rm -f conftest.$ac_objext conftest$ac_exeext
1524 if { { ac_try="$ac_link"
1526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1527 *) ac_try_echo=$ac_try;;
1529 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1530 $as_echo "$ac_try_echo"; } >&5
1531 (eval "$ac_link") 2>conftest.err
1533 if test -s conftest.err; then
1534 grep -v '^ *+' conftest.err >conftest.er1
1535 cat conftest.er1 >&5
1536 mv -f conftest.er1 conftest.err
1538 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1539 test $ac_status = 0; } && {
1540 test -z "$ac_c_werror_flag" ||
1541 test ! -s conftest.err
1542 } && test -s conftest$ac_exeext && {
1543 test "$cross_compiling" = yes ||
1544 $as_test_x conftest$ac_exeext
1548 $as_echo "$as_me: failed program was:" >&5
1549 sed 's/^/| /' conftest.$ac_ext >&5
1553 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1554 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1555 # interfere with the next link command; also delete a directory that is
1556 # left behind by Apple's compiler. We do this before executing the actions.
1557 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1558 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1559 as_fn_set_status $ac_retval
1561 } # ac_fn_c_try_link
1563 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1564 # -------------------------------------------------------
1565 # Tests whether HEADER exists and can be compiled using the include files in
1566 # INCLUDES, setting the cache variable VAR accordingly.
1567 ac_fn_c_check_header_compile ()
1569 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1571 $as_echo_n "checking for $2... " >&6; }
1572 if eval \${$3+:} false; then :
1573 $as_echo_n "(cached) " >&6
1575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1576 /* end confdefs.h. */
1580 if ac_fn_c_try_compile "$LINENO"; then :
1585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1589 $as_echo "$ac_res" >&6; }
1590 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1592 } # ac_fn_c_check_header_compile
1594 # ac_fn_c_try_cpp LINENO
1595 # ----------------------
1596 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1599 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1600 if { { ac_try="$ac_cpp conftest.$ac_ext"
1602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1603 *) ac_try_echo=$ac_try;;
1605 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1606 $as_echo "$ac_try_echo"; } >&5
1607 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1609 if test -s conftest.err; then
1610 grep -v '^ *+' conftest.err >conftest.er1
1611 cat conftest.er1 >&5
1612 mv -f conftest.er1 conftest.err
1614 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1615 test $ac_status = 0; } > conftest.i && {
1616 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1617 test ! -s conftest.err
1621 $as_echo "$as_me: failed program was:" >&5
1622 sed 's/^/| /' conftest.$ac_ext >&5
1626 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1627 as_fn_set_status $ac_retval
1631 # ac_fn_c_try_run LINENO
1632 # ----------------------
1633 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1634 # that executables *can* be run.
1637 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1638 if { { ac_try="$ac_link"
1640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1641 *) ac_try_echo=$ac_try;;
1643 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1644 $as_echo "$ac_try_echo"; } >&5
1645 (eval "$ac_link") 2>&5
1647 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1648 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1649 { { case "(($ac_try" in
1650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1651 *) ac_try_echo=$ac_try;;
1653 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1654 $as_echo "$ac_try_echo"; } >&5
1655 (eval "$ac_try") 2>&5
1657 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1658 test $ac_status = 0; }; }; then :
1661 $as_echo "$as_me: program exited with status $ac_status" >&5
1662 $as_echo "$as_me: failed program was:" >&5
1663 sed 's/^/| /' conftest.$ac_ext >&5
1665 ac_retval=$ac_status
1667 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1668 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1669 as_fn_set_status $ac_retval
1673 # ac_fn_c_check_func LINENO FUNC VAR
1674 # ----------------------------------
1675 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1676 ac_fn_c_check_func ()
1678 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1680 $as_echo_n "checking for $2... " >&6; }
1681 if eval \${$3+:} false; then :
1682 $as_echo_n "(cached) " >&6
1684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1685 /* end confdefs.h. */
1686 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1687 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1688 #define $2 innocuous_$2
1690 /* System header to define __stub macros and hopefully few prototypes,
1691 which can conflict with char $2 (); below.
1692 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1693 <limits.h> exists even on freestanding compilers. */
1696 # include <limits.h>
1698 # include <assert.h>
1703 /* Override any GCC internal prototype to avoid an error.
1704 Use char because int might match the return type of a GCC
1705 builtin and then its argument prototype would still apply. */
1710 /* The GNU C library defines this for functions which it implements
1711 to always fail with ENOSYS. Some functions are actually named
1712 something starting with __ and the normal name is an alias. */
1713 #if defined __stub_$2 || defined __stub___$2
1725 if ac_fn_c_try_link "$LINENO"; then :
1730 rm -f core conftest.err conftest.$ac_objext \
1731 conftest$ac_exeext conftest.$ac_ext
1734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1735 $as_echo "$ac_res" >&6; }
1736 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1738 } # ac_fn_c_check_func
1739 cat >config.log <<_ACEOF
1740 This file contains any messages produced by compilers while
1741 running configure, to aid debugging if configure makes a mistake.
1743 It was created by pdemo $as_me 1.0, which was
1744 generated by GNU Autoconf 2.68. Invocation command line was
1756 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1757 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1758 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1759 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1760 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1762 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1763 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1765 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1766 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1767 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1768 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1769 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1770 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1771 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1779 test -z "$as_dir" && as_dir=.
1780 $as_echo "PATH: $as_dir"
1796 # Keep a trace of the command line.
1797 # Strip out --no-create and --no-recursion so they do not pile up.
1798 # Strip out --silent because we don't want to record it for future runs.
1799 # Also quote any args containing shell meta-characters.
1800 # Make two passes to allow for proper duplicate-argument suppression.
1804 ac_must_keep_next=false
1810 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1811 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1812 | -silent | --silent | --silen | --sile | --sil)
1815 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1818 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1820 as_fn_append ac_configure_args1 " '$ac_arg'"
1821 if test $ac_must_keep_next = true; then
1822 ac_must_keep_next=false # Got value, back to normal.
1825 *=* | --config-cache | -C | -disable-* | --disable-* \
1826 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1827 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1828 | -with-* | --with-* | -without-* | --without-* | --x)
1829 case "$ac_configure_args0 " in
1830 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1833 -* ) ac_must_keep_next=true ;;
1836 as_fn_append ac_configure_args " '$ac_arg'"
1841 { ac_configure_args0=; unset ac_configure_args0;}
1842 { ac_configure_args1=; unset ac_configure_args1;}
1844 # When interrupted or exit'd, cleanup temporary files, and complete
1845 # config.log. We remove comments because anyway the quotes in there
1846 # would cause problems or look ugly.
1847 # WARNING: Use '\'' to represent an apostrophe within the trap.
1848 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1849 trap 'exit_status=$?
1850 # Save into config.log some information that might help in debugging.
1854 $as_echo "## ---------------- ##
1855 ## Cache variables. ##
1856 ## ---------------- ##"
1858 # The following way of writing the cache mishandles newlines in values,
1860 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1861 eval ac_val=\$$ac_var
1865 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1866 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1869 _ | IFS | as_nl) ;; #(
1870 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1871 *) { eval $ac_var=; unset $ac_var;} ;;
1876 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1877 *${as_nl}ac_space=\ *)
1879 "s/'\''/'\''\\\\'\'''\''/g;
1880 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1883 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1890 $as_echo "## ----------------- ##
1891 ## Output variables. ##
1892 ## ----------------- ##"
1894 for ac_var in $ac_subst_vars
1896 eval ac_val=\$$ac_var
1898 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1900 $as_echo "$ac_var='\''$ac_val'\''"
1904 if test -n "$ac_subst_files"; then
1905 $as_echo "## ------------------- ##
1906 ## File substitutions. ##
1907 ## ------------------- ##"
1909 for ac_var in $ac_subst_files
1911 eval ac_val=\$$ac_var
1913 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1915 $as_echo "$ac_var='\''$ac_val'\''"
1920 if test -s confdefs.h; then
1921 $as_echo "## ----------- ##
1928 test "$ac_signal" != 0 &&
1929 $as_echo "$as_me: caught signal $ac_signal"
1930 $as_echo "$as_me: exit $exit_status"
1932 rm -f core *.core core.conftest.* &&
1933 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1936 for ac_signal in 1 2 13 15; do
1937 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1941 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1942 rm -f -r conftest* confdefs.h
1944 $as_echo "/* confdefs.h */" > confdefs.h
1946 # Predefined preprocessor variables.
1948 cat >>confdefs.h <<_ACEOF
1949 #define PACKAGE_NAME "$PACKAGE_NAME"
1952 cat >>confdefs.h <<_ACEOF
1953 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1956 cat >>confdefs.h <<_ACEOF
1957 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1960 cat >>confdefs.h <<_ACEOF
1961 #define PACKAGE_STRING "$PACKAGE_STRING"
1964 cat >>confdefs.h <<_ACEOF
1965 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1968 cat >>confdefs.h <<_ACEOF
1969 #define PACKAGE_URL "$PACKAGE_URL"
1973 # Let the site file select an alternate cache file if it wants to.
1974 # Prefer an explicitly selected file to automatically selected ones.
1977 if test -n "$CONFIG_SITE"; then
1978 # We do not want a PATH search for config.site.
1979 case $CONFIG_SITE in #((
1980 -*) ac_site_file1=./$CONFIG_SITE;;
1981 */*) ac_site_file1=$CONFIG_SITE;;
1982 *) ac_site_file1=./$CONFIG_SITE;;
1984 elif test "x$prefix" != xNONE; then
1985 ac_site_file1=$prefix/share/config.site
1986 ac_site_file2=$prefix/etc/config.site
1988 ac_site_file1=$ac_default_prefix/share/config.site
1989 ac_site_file2=$ac_default_prefix/etc/config.site
1991 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1993 test "x$ac_site_file" = xNONE && continue
1994 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
1995 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1996 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1997 sed 's/^/| /' "$ac_site_file" >&5
1999 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2000 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2001 as_fn_error $? "failed to load site script $ac_site_file
2002 See \`config.log' for more details" "$LINENO" 5; }
2006 if test -r "$cache_file"; then
2007 # Some versions of bash will fail to source /dev/null (special files
2008 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2009 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2010 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2011 $as_echo "$as_me: loading cache $cache_file" >&6;}
2013 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2014 *) . "./$cache_file";;
2018 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2019 $as_echo "$as_me: creating cache $cache_file" >&6;}
2023 # Check that the precious variables saved in the cache have kept the same
2025 ac_cache_corrupted=false
2026 for ac_var in $ac_precious_vars; do
2027 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2028 eval ac_new_set=\$ac_env_${ac_var}_set
2029 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2030 eval ac_new_val=\$ac_env_${ac_var}_value
2031 case $ac_old_set,$ac_new_set in
2033 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2034 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2035 ac_cache_corrupted=: ;;
2037 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2038 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2039 ac_cache_corrupted=: ;;
2042 if test "x$ac_old_val" != "x$ac_new_val"; then
2043 # differences in whitespace do not lead to failure.
2044 ac_old_val_w=`echo x $ac_old_val`
2045 ac_new_val_w=`echo x $ac_new_val`
2046 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2047 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2048 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2049 ac_cache_corrupted=:
2051 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2052 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2053 eval $ac_var=\$ac_old_val
2055 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2056 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2057 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2058 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2061 # Pass precious variables to config.status.
2062 if test "$ac_new_set" = set; then
2064 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2065 *) ac_arg=$ac_var=$ac_new_val ;;
2067 case " $ac_configure_args " in
2068 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2069 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2073 if $ac_cache_corrupted; then
2074 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2075 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2076 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2077 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2078 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2080 ## -------------------- ##
2081 ## Main body of script. ##
2082 ## -------------------- ##
2085 ac_cpp='$CPP $CPPFLAGS'
2086 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2087 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2088 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2093 for ac_dir in ../../libltdl/config "$srcdir"/../../libltdl/config; do
2094 if test -f "$ac_dir/install-sh"; then
2096 ac_install_sh="$ac_aux_dir/install-sh -c"
2098 elif test -f "$ac_dir/install.sh"; then
2100 ac_install_sh="$ac_aux_dir/install.sh -c"
2102 elif test -f "$ac_dir/shtool"; then
2104 ac_install_sh="$ac_aux_dir/shtool install -c"
2108 if test -z "$ac_aux_dir"; then
2109 as_fn_error $? "cannot find install-sh, install.sh, or shtool in ../../libltdl/config \"$srcdir\"/../../libltdl/config" "$LINENO" 5
2112 # These three variables are undocumented and unsupported,
2113 # and are intended to be withdrawn in a future Autoconf release.
2114 # They can cause serious problems if a builder's source tree is in a directory
2115 # whose full name contains unusual characters.
2116 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2117 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2118 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2123 ## ------------------------ ##
2124 ## Automake Initialisation. ##
2125 ## ------------------------ ##
2126 am__api_version='1.11'
2128 # Find a good install program. We prefer a C program (faster),
2129 # so one script is as good as another. But avoid the broken or
2130 # incompatible versions:
2131 # SysV /etc/install, /usr/sbin/install
2132 # SunOS /usr/etc/install
2133 # IRIX /sbin/install
2135 # AmigaOS /C/install, which installs bootblocks on floppy discs
2136 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2137 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2138 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2139 # OS/2's system install, which has a completely different semantic
2140 # ./install, which can be erroneously created by make from ./install.sh.
2141 # Reject install programs that cannot install multiple files.
2142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2143 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2144 if test -z "$INSTALL"; then
2145 if ${ac_cv_path_install+:} false; then :
2146 $as_echo_n "(cached) " >&6
2148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2152 test -z "$as_dir" && as_dir=.
2153 # Account for people who put trailing slashes in PATH elements.
2154 case $as_dir/ in #((
2155 ./ | .// | /[cC]/* | \
2156 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2157 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2160 # OSF1 and SCO ODT 3.0 have their own names for install.
2161 # Don't use installbsd from OSF since it installs stuff as root
2163 for ac_prog in ginstall scoinst install; do
2164 for ac_exec_ext in '' $ac_executable_extensions; do
2165 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2166 if test $ac_prog = install &&
2167 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2168 # AIX install. It has an incompatible calling convention.
2170 elif test $ac_prog = install &&
2171 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2172 # program-specific install script used by HP pwplus--don't use.
2175 rm -rf conftest.one conftest.two conftest.dir
2176 echo one > conftest.one
2177 echo two > conftest.two
2179 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2180 test -s conftest.one && test -s conftest.two &&
2181 test -s conftest.dir/conftest.one &&
2182 test -s conftest.dir/conftest.two
2184 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2197 rm -rf conftest.one conftest.two conftest.dir
2200 if test "${ac_cv_path_install+set}" = set; then
2201 INSTALL=$ac_cv_path_install
2203 # As a last resort, use the slow shell script. Don't cache a
2204 # value for INSTALL within a source directory, because that will
2205 # break other packages using the cache if that directory is
2206 # removed, or if the value is a relative name.
2207 INSTALL=$ac_install_sh
2210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2211 $as_echo "$INSTALL" >&6; }
2213 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2214 # It thinks the first close brace ends the variable substitution.
2215 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2217 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2219 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2222 $as_echo_n "checking whether build environment is sane... " >&6; }
2225 echo timestamp > conftest.file
2226 # Reject unsafe characters in $srcdir or the absolute working directory
2227 # name. Accept space and tab only in the latter.
2231 *[\\\"\#\$\&\'\`$am_lf]*)
2232 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2235 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2236 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2239 # Do `set' in a subshell so we don't clobber the current shell's
2240 # arguments. Must try -L first in case configure is actually a
2241 # symlink; some systems play weird games with the mod time of symlinks
2242 # (eg FreeBSD returns the mod time of the symlink's containing
2245 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2246 if test "$*" = "X"; then
2248 set X `ls -t "$srcdir/configure" conftest.file`
2251 if test "$*" != "X $srcdir/configure conftest.file" \
2252 && test "$*" != "X conftest.file $srcdir/configure"; then
2254 # If neither matched, then we have a broken ls. This can happen
2255 # if, for instance, CONFIG_SHELL is bash and it inherits a
2256 # broken ls alias from the environment. This has actually
2257 # happened. Such a system could not be considered "sane".
2258 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2259 alias in your environment" "$LINENO" 5
2262 test "$2" = conftest.file
2268 as_fn_error $? "newly created file is older than distributed files!
2269 Check your system clock" "$LINENO" 5
2271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2272 $as_echo "yes" >&6; }
2273 test "$program_prefix" != NONE &&
2274 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2275 # Use a double $ so make ignores it.
2276 test "$program_suffix" != NONE &&
2277 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2278 # Double any \ or $.
2279 # By default was `s,x,x', remove it if useless.
2280 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2281 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2283 # expand $ac_aux_dir to an absolute path
2284 am_aux_dir=`cd $ac_aux_dir && pwd`
2286 if test x"${MISSING+set}" != xset; then
2289 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2291 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2294 # Use eval to expand $SHELL
2295 if eval "$MISSING --run true"; then
2296 am_missing_run="$MISSING --run "
2299 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2300 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2303 if test x"${install_sh}" != xset; then
2306 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2308 install_sh="\${SHELL} $am_aux_dir/install-sh"
2312 # Installed binaries are usually stripped using `strip' when the user
2313 # run `make install-strip'. However `strip' might not be the right
2314 # tool to use in cross-compilation environments, therefore Automake
2315 # will honor the `STRIP' environment variable to overrule this program.
2316 if test "$cross_compiling" != no; then
2317 if test -n "$ac_tool_prefix"; then
2318 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2319 set dummy ${ac_tool_prefix}strip; ac_word=$2
2320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2321 $as_echo_n "checking for $ac_word... " >&6; }
2322 if ${ac_cv_prog_STRIP+:} false; then :
2323 $as_echo_n "(cached) " >&6
2325 if test -n "$STRIP"; then
2326 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2332 test -z "$as_dir" && as_dir=.
2333 for ac_exec_ext in '' $ac_executable_extensions; do
2334 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2335 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2345 STRIP=$ac_cv_prog_STRIP
2346 if test -n "$STRIP"; then
2347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2348 $as_echo "$STRIP" >&6; }
2350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2351 $as_echo "no" >&6; }
2356 if test -z "$ac_cv_prog_STRIP"; then
2358 # Extract the first word of "strip", so it can be a program name with args.
2359 set dummy strip; ac_word=$2
2360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2361 $as_echo_n "checking for $ac_word... " >&6; }
2362 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2363 $as_echo_n "(cached) " >&6
2365 if test -n "$ac_ct_STRIP"; then
2366 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2372 test -z "$as_dir" && as_dir=.
2373 for ac_exec_ext in '' $ac_executable_extensions; do
2374 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2375 ac_cv_prog_ac_ct_STRIP="strip"
2376 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2385 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2386 if test -n "$ac_ct_STRIP"; then
2387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2388 $as_echo "$ac_ct_STRIP" >&6; }
2390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2391 $as_echo "no" >&6; }
2394 if test "x$ac_ct_STRIP" = x; then
2397 case $cross_compiling:$ac_tool_warned in
2399 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2400 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2401 ac_tool_warned=yes ;;
2406 STRIP="$ac_cv_prog_STRIP"
2410 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2413 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2414 if test -z "$MKDIR_P"; then
2415 if ${ac_cv_path_mkdir+:} false; then :
2416 $as_echo_n "(cached) " >&6
2418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2419 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2422 test -z "$as_dir" && as_dir=.
2423 for ac_prog in mkdir gmkdir; do
2424 for ac_exec_ext in '' $ac_executable_extensions; do
2425 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2426 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2427 'mkdir (GNU coreutils) '* | \
2428 'mkdir (coreutils) '* | \
2429 'mkdir (fileutils) '4.1*)
2430 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2440 test -d ./--version && rmdir ./--version
2441 if test "${ac_cv_path_mkdir+set}" = set; then
2442 MKDIR_P="$ac_cv_path_mkdir -p"
2444 # As a last resort, use the slow shell script. Don't cache a
2445 # value for MKDIR_P within a source directory, because that will
2446 # break other packages using the cache if that directory is
2447 # removed, or if the value is a relative name.
2448 MKDIR_P="$ac_install_sh -d"
2451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2452 $as_echo "$MKDIR_P" >&6; }
2456 [\\/$]* | ?:[\\/]*) ;;
2457 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2460 for ac_prog in gawk mawk nawk awk
2462 # Extract the first word of "$ac_prog", so it can be a program name with args.
2463 set dummy $ac_prog; ac_word=$2
2464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2465 $as_echo_n "checking for $ac_word... " >&6; }
2466 if ${ac_cv_prog_AWK+:} false; then :
2467 $as_echo_n "(cached) " >&6
2469 if test -n "$AWK"; then
2470 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2476 test -z "$as_dir" && as_dir=.
2477 for ac_exec_ext in '' $ac_executable_extensions; do
2478 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2479 ac_cv_prog_AWK="$ac_prog"
2480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2490 if test -n "$AWK"; then
2491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2492 $as_echo "$AWK" >&6; }
2494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2495 $as_echo "no" >&6; }
2499 test -n "$AWK" && break
2502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2503 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2505 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2506 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2507 $as_echo_n "(cached) " >&6
2509 cat >conftest.make <<\_ACEOF
2512 @echo '@@@%%%=$(MAKE)=@@@%%%'
2514 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2515 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2517 eval ac_cv_prog_make_${ac_make}_set=yes;;
2519 eval ac_cv_prog_make_${ac_make}_set=no;;
2523 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2525 $as_echo "yes" >&6; }
2528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2529 $as_echo "no" >&6; }
2530 SET_MAKE="MAKE=${MAKE-make}"
2533 rm -rf .tst 2>/dev/null
2534 mkdir .tst 2>/dev/null
2535 if test -d .tst; then
2540 rmdir .tst 2>/dev/null
2542 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2543 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2544 # is not polluted with repeated "-I."
2545 am__isrc=' -I$(srcdir)'
2546 # test to see if srcdir already configured
2547 if test -f $srcdir/config.status; then
2548 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2552 # test whether we have cygpath
2553 if test -z "$CYGPATH_W"; then
2554 if (cygpath --version) >/dev/null 2>/dev/null; then
2555 CYGPATH_W='cygpath -w'
2562 # Define the identity of the package.
2567 cat >>confdefs.h <<_ACEOF
2568 #define PACKAGE "$PACKAGE"
2572 cat >>confdefs.h <<_ACEOF
2573 #define VERSION "$VERSION"
2576 # Some tools Automake needs.
2578 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2581 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2584 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2587 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2590 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2592 # We need awk for the "check" target. The system "awk" is bad on
2594 # Always define AMTAR for backward compatibility.
2596 AMTAR=${AMTAR-"${am_missing_run}tar"}
2598 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2606 ## ------------------ ##
2607 ## C compiler checks. ##
2608 ## ------------------ ##
2610 ac_cpp='$CPP $CPPFLAGS'
2611 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2612 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2613 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2614 if test -n "$ac_tool_prefix"; then
2615 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2616 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2618 $as_echo_n "checking for $ac_word... " >&6; }
2619 if ${ac_cv_prog_CC+:} false; then :
2620 $as_echo_n "(cached) " >&6
2622 if test -n "$CC"; then
2623 ac_cv_prog_CC="$CC" # Let the user override the test.
2625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2629 test -z "$as_dir" && as_dir=.
2630 for ac_exec_ext in '' $ac_executable_extensions; do
2631 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2632 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2633 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2643 if test -n "$CC"; then
2644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2645 $as_echo "$CC" >&6; }
2647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2648 $as_echo "no" >&6; }
2653 if test -z "$ac_cv_prog_CC"; then
2655 # Extract the first word of "gcc", so it can be a program name with args.
2656 set dummy gcc; ac_word=$2
2657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2658 $as_echo_n "checking for $ac_word... " >&6; }
2659 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2660 $as_echo_n "(cached) " >&6
2662 if test -n "$ac_ct_CC"; then
2663 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2669 test -z "$as_dir" && as_dir=.
2670 for ac_exec_ext in '' $ac_executable_extensions; do
2671 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2672 ac_cv_prog_ac_ct_CC="gcc"
2673 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2682 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2683 if test -n "$ac_ct_CC"; then
2684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2685 $as_echo "$ac_ct_CC" >&6; }
2687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2688 $as_echo "no" >&6; }
2691 if test "x$ac_ct_CC" = x; then
2694 case $cross_compiling:$ac_tool_warned in
2696 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2697 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2698 ac_tool_warned=yes ;;
2706 if test -z "$CC"; then
2707 if test -n "$ac_tool_prefix"; then
2708 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2709 set dummy ${ac_tool_prefix}cc; ac_word=$2
2710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2711 $as_echo_n "checking for $ac_word... " >&6; }
2712 if ${ac_cv_prog_CC+:} false; then :
2713 $as_echo_n "(cached) " >&6
2715 if test -n "$CC"; then
2716 ac_cv_prog_CC="$CC" # Let the user override the test.
2718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2722 test -z "$as_dir" && as_dir=.
2723 for ac_exec_ext in '' $ac_executable_extensions; do
2724 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2725 ac_cv_prog_CC="${ac_tool_prefix}cc"
2726 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2736 if test -n "$CC"; then
2737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2738 $as_echo "$CC" >&6; }
2740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2741 $as_echo "no" >&6; }
2747 if test -z "$CC"; then
2748 # Extract the first word of "cc", so it can be a program name with args.
2749 set dummy cc; ac_word=$2
2750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2751 $as_echo_n "checking for $ac_word... " >&6; }
2752 if ${ac_cv_prog_CC+:} false; then :
2753 $as_echo_n "(cached) " >&6
2755 if test -n "$CC"; then
2756 ac_cv_prog_CC="$CC" # Let the user override the test.
2759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2763 test -z "$as_dir" && as_dir=.
2764 for ac_exec_ext in '' $ac_executable_extensions; do
2765 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2766 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2767 ac_prog_rejected=yes
2771 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2778 if test $ac_prog_rejected = yes; then
2779 # We found a bogon in the path, so make sure we never use it.
2780 set dummy $ac_cv_prog_CC
2782 if test $# != 0; then
2783 # We chose a different compiler from the bogus one.
2784 # However, it has the same basename, so the bogon will be chosen
2785 # first if we set CC to just the basename; use the full file name.
2787 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2793 if test -n "$CC"; then
2794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2795 $as_echo "$CC" >&6; }
2797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2798 $as_echo "no" >&6; }
2803 if test -z "$CC"; then
2804 if test -n "$ac_tool_prefix"; then
2805 for ac_prog in cl.exe
2807 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2808 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2810 $as_echo_n "checking for $ac_word... " >&6; }
2811 if ${ac_cv_prog_CC+:} false; then :
2812 $as_echo_n "(cached) " >&6
2814 if test -n "$CC"; then
2815 ac_cv_prog_CC="$CC" # Let the user override the test.
2817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2821 test -z "$as_dir" && as_dir=.
2822 for ac_exec_ext in '' $ac_executable_extensions; do
2823 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2824 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2835 if test -n "$CC"; then
2836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2837 $as_echo "$CC" >&6; }
2839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2840 $as_echo "no" >&6; }
2844 test -n "$CC" && break
2847 if test -z "$CC"; then
2849 for ac_prog in cl.exe
2851 # Extract the first word of "$ac_prog", so it can be a program name with args.
2852 set dummy $ac_prog; ac_word=$2
2853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2854 $as_echo_n "checking for $ac_word... " >&6; }
2855 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2856 $as_echo_n "(cached) " >&6
2858 if test -n "$ac_ct_CC"; then
2859 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2865 test -z "$as_dir" && as_dir=.
2866 for ac_exec_ext in '' $ac_executable_extensions; do
2867 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2868 ac_cv_prog_ac_ct_CC="$ac_prog"
2869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2878 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2879 if test -n "$ac_ct_CC"; then
2880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2881 $as_echo "$ac_ct_CC" >&6; }
2883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2884 $as_echo "no" >&6; }
2888 test -n "$ac_ct_CC" && break
2891 if test "x$ac_ct_CC" = x; then
2894 case $cross_compiling:$ac_tool_warned in
2896 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2897 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2898 ac_tool_warned=yes ;;
2907 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2908 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2909 as_fn_error $? "no acceptable C compiler found in \$PATH
2910 See \`config.log' for more details" "$LINENO" 5; }
2912 # Provide some information about the compiler.
2913 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2916 for ac_option in --version -v -V -qversion; do
2917 { { ac_try="$ac_compiler $ac_option >&5"
2919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2920 *) ac_try_echo=$ac_try;;
2922 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2923 $as_echo "$ac_try_echo"; } >&5
2924 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2926 if test -s conftest.err; then
2928 ... rest of stderr output deleted ...
2929 10q' conftest.err >conftest.er1
2930 cat conftest.er1 >&5
2932 rm -f conftest.er1 conftest.err
2933 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2934 test $ac_status = 0; }
2937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2938 /* end confdefs.h. */
2948 ac_clean_files_save=$ac_clean_files
2949 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2950 # Try to create an executable without -o first, disregard a.out.
2951 # It will help us diagnose broken compilers, and finding out an intuition
2953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2954 $as_echo_n "checking whether the C compiler works... " >&6; }
2955 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2957 # The possible output files:
2958 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2961 for ac_file in $ac_files
2964 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2965 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2970 if { { ac_try="$ac_link_default"
2972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2973 *) ac_try_echo=$ac_try;;
2975 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2976 $as_echo "$ac_try_echo"; } >&5
2977 (eval "$ac_link_default") 2>&5
2979 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2980 test $ac_status = 0; }; then :
2981 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2982 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2983 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2984 # so that the user can short-circuit this test for compilers unknown to
2986 for ac_file in $ac_files ''
2988 test -f "$ac_file" || continue
2990 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2993 # We found the default executable, but exeext='' is most
2997 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2999 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3001 # We set ac_cv_exeext here because the later test for it is not
3002 # safe: cross compilers may not add the suffix if given an `-o'
3003 # argument, so we may need to know it at that point already.
3004 # Even if this section looks crufty: it has the advantage of
3011 test "$ac_cv_exeext" = no && ac_cv_exeext=
3016 if test -z "$ac_file"; then :
3017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3018 $as_echo "no" >&6; }
3019 $as_echo "$as_me: failed program was:" >&5
3020 sed 's/^/| /' conftest.$ac_ext >&5
3022 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3023 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3024 as_fn_error 77 "C compiler cannot create executables
3025 See \`config.log' for more details" "$LINENO" 5; }
3027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3028 $as_echo "yes" >&6; }
3030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3031 $as_echo_n "checking for C compiler default output file name... " >&6; }
3032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3033 $as_echo "$ac_file" >&6; }
3034 ac_exeext=$ac_cv_exeext
3036 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3037 ac_clean_files=$ac_clean_files_save
3038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3039 $as_echo_n "checking for suffix of executables... " >&6; }
3040 if { { ac_try="$ac_link"
3042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3043 *) ac_try_echo=$ac_try;;
3045 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3046 $as_echo "$ac_try_echo"; } >&5
3047 (eval "$ac_link") 2>&5
3049 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3050 test $ac_status = 0; }; then :
3051 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3052 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3053 # work properly (i.e., refer to `conftest.exe'), while it won't with
3055 for ac_file in conftest.exe conftest conftest.*; do
3056 test -f "$ac_file" || continue
3058 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3059 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3065 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3066 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3067 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3068 See \`config.log' for more details" "$LINENO" 5; }
3070 rm -f conftest conftest$ac_cv_exeext
3071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3072 $as_echo "$ac_cv_exeext" >&6; }
3074 rm -f conftest.$ac_ext
3075 EXEEXT=$ac_cv_exeext
3077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3078 /* end confdefs.h. */
3083 FILE *f = fopen ("conftest.out", "w");
3084 return ferror (f) || fclose (f) != 0;
3090 ac_clean_files="$ac_clean_files conftest.out"
3091 # Check that the compiler produces executables we can run. If not, either
3092 # the compiler is broken, or we cross compile.
3093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3094 $as_echo_n "checking whether we are cross compiling... " >&6; }
3095 if test "$cross_compiling" != yes; then
3096 { { ac_try="$ac_link"
3098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3099 *) ac_try_echo=$ac_try;;
3101 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3102 $as_echo "$ac_try_echo"; } >&5
3103 (eval "$ac_link") 2>&5
3105 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3106 test $ac_status = 0; }
3107 if { ac_try='./conftest$ac_cv_exeext'
3108 { { case "(($ac_try" in
3109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3110 *) ac_try_echo=$ac_try;;
3112 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3113 $as_echo "$ac_try_echo"; } >&5
3114 (eval "$ac_try") 2>&5
3116 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3117 test $ac_status = 0; }; }; then
3120 if test "$cross_compiling" = maybe; then
3123 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3124 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3125 as_fn_error $? "cannot run C compiled programs.
3126 If you meant to cross compile, use \`--host'.
3127 See \`config.log' for more details" "$LINENO" 5; }
3131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3132 $as_echo "$cross_compiling" >&6; }
3134 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3135 ac_clean_files=$ac_clean_files_save
3136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3137 $as_echo_n "checking for suffix of object files... " >&6; }
3138 if ${ac_cv_objext+:} false; then :
3139 $as_echo_n "(cached) " >&6
3141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3142 /* end confdefs.h. */
3152 rm -f conftest.o conftest.obj
3153 if { { ac_try="$ac_compile"
3155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3156 *) ac_try_echo=$ac_try;;
3158 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3159 $as_echo "$ac_try_echo"; } >&5
3160 (eval "$ac_compile") 2>&5
3162 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3163 test $ac_status = 0; }; then :
3164 for ac_file in conftest.o conftest.obj conftest.*; do
3165 test -f "$ac_file" || continue;
3167 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3168 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3173 $as_echo "$as_me: failed program was:" >&5
3174 sed 's/^/| /' conftest.$ac_ext >&5
3176 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3177 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3178 as_fn_error $? "cannot compute suffix of object files: cannot compile
3179 See \`config.log' for more details" "$LINENO" 5; }
3181 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3184 $as_echo "$ac_cv_objext" >&6; }
3185 OBJEXT=$ac_cv_objext
3187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3188 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3189 if ${ac_cv_c_compiler_gnu+:} false; then :
3190 $as_echo_n "(cached) " >&6
3192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3193 /* end confdefs.h. */
3206 if ac_fn_c_try_compile "$LINENO"; then :
3211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3212 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3216 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3217 if test $ac_compiler_gnu = yes; then
3222 ac_test_CFLAGS=${CFLAGS+set}
3223 ac_save_CFLAGS=$CFLAGS
3224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3225 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3226 if ${ac_cv_prog_cc_g+:} false; then :
3227 $as_echo_n "(cached) " >&6
3229 ac_save_c_werror_flag=$ac_c_werror_flag
3230 ac_c_werror_flag=yes
3233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3234 /* end confdefs.h. */
3244 if ac_fn_c_try_compile "$LINENO"; then :
3248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3249 /* end confdefs.h. */
3259 if ac_fn_c_try_compile "$LINENO"; then :
3262 ac_c_werror_flag=$ac_save_c_werror_flag
3264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3265 /* end confdefs.h. */
3275 if ac_fn_c_try_compile "$LINENO"; then :
3278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3283 ac_c_werror_flag=$ac_save_c_werror_flag
3285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3286 $as_echo "$ac_cv_prog_cc_g" >&6; }
3287 if test "$ac_test_CFLAGS" = set; then
3288 CFLAGS=$ac_save_CFLAGS
3289 elif test $ac_cv_prog_cc_g = yes; then
3290 if test "$GCC" = yes; then
3296 if test "$GCC" = yes; then
3302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3303 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3304 if ${ac_cv_prog_cc_c89+:} false; then :
3305 $as_echo_n "(cached) " >&6
3307 ac_cv_prog_cc_c89=no
3309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3310 /* end confdefs.h. */
3313 #include <sys/types.h>
3314 #include <sys/stat.h>
3315 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3316 struct buf { int x; };
3317 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3318 static char *e (p, i)
3324 static char *f (char * (*g) (char **, int), char **p, ...)
3329 s = g (p, va_arg (v,int));
3334 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3335 function prototypes and stuff, but not '\xHH' hex character constants.
3336 These don't provoke an error unfortunately, instead are silently treated
3337 as 'x'. The following induces an error, until -std is added to get
3338 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3339 array size at least. It's necessary to write '\x00'==0 to get something
3340 that's true only with -std. */
3341 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3343 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3344 inside strings and character constants. */
3346 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3348 int test (int i, double x);
3349 struct s1 {int (*f) (int a);};
3350 struct s2 {int (*f) (double a);};
3351 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3357 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3362 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3363 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3365 CC="$ac_save_CC $ac_arg"
3366 if ac_fn_c_try_compile "$LINENO"; then :
3367 ac_cv_prog_cc_c89=$ac_arg
3369 rm -f core conftest.err conftest.$ac_objext
3370 test "x$ac_cv_prog_cc_c89" != "xno" && break
3372 rm -f conftest.$ac_ext
3377 case "x$ac_cv_prog_cc_c89" in
3379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3380 $as_echo "none needed" >&6; } ;;
3382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3383 $as_echo "unsupported" >&6; } ;;
3385 CC="$CC $ac_cv_prog_cc_c89"
3386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3387 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3389 if test "x$ac_cv_prog_cc_c89" != xno; then :
3394 ac_cpp='$CPP $CPPFLAGS'
3395 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3396 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3397 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3398 DEPDIR="${am__leading_dot}deps"
3400 ac_config_commands="$ac_config_commands depfiles"
3403 am_make=${MAKE-make}
3404 cat > confinc << 'END'
3406 @echo this is the am__doit target
3409 # If we don't find an include directive, just comment out the code.
3410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3411 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3415 # First try GNU make style include.
3416 echo "include confinc" > confmf
3417 # Ignore all kinds of additional output from `make'.
3418 case `$am_make -s -f confmf 2> /dev/null` in #(
3419 *the\ am__doit\ target*)
3425 # Now try BSD make style include.
3426 if test "$am__include" = "#"; then
3427 echo '.include "confinc"' > confmf
3428 case `$am_make -s -f confmf 2> /dev/null` in #(
3429 *the\ am__doit\ target*)
3430 am__include=.include
3438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3439 $as_echo "$_am_result" >&6; }
3440 rm -f confinc confmf
3442 # Check whether --enable-dependency-tracking was given.
3443 if test "${enable_dependency_tracking+set}" = set; then :
3444 enableval=$enable_dependency_tracking;
3447 if test "x$enable_dependency_tracking" != xno; then
3448 am_depcomp="$ac_aux_dir/depcomp"
3451 if test "x$enable_dependency_tracking" != xno; then
3461 depcc="$CC" am_compiler_list=
3463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3464 $as_echo_n "checking dependency style of $depcc... " >&6; }
3465 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3466 $as_echo_n "(cached) " >&6
3468 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3469 # We make a subdir and do the tests there. Otherwise we can end up
3470 # making bogus files that we don't know about and never remove. For
3471 # instance it was reported that on HP-UX the gcc test will end up
3472 # making a dummy file named `D' -- because `-MD' means `put the output
3475 # Copy depcomp to subdir because otherwise we won't find it if we're
3476 # using a relative directory.
3477 cp "$am_depcomp" conftest.dir
3479 # We will build objects and dependencies in a subdirectory because
3480 # it helps to detect inapplicable dependency modes. For instance
3481 # both Tru64's cc and ICC support -MD to output dependencies as a
3482 # side effect of compilation, but ICC will put the dependencies in
3483 # the current directory while Tru64 will put them in the object
3487 am_cv_CC_dependencies_compiler_type=none
3488 if test "$am_compiler_list" = ""; then
3489 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3492 case " $depcc " in #(
3493 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3496 for depmode in $am_compiler_list; do
3497 # Setup a source with many dependencies, because some compilers
3498 # like to wrap large dependency lists on column 80 (with \), and
3499 # we should not choose a depcomp mode which is confused by this.
3501 # We need to recreate these files for each test, as the compiler may
3502 # overwrite some of them when testing with obscure command lines.
3503 # This happens at least with the AIX C compiler.
3505 for i in 1 2 3 4 5 6; do
3506 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3507 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3508 # Solaris 8's {/usr,}/bin/sh.
3509 touch sub/conftst$i.h
3511 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3513 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3514 # mode. It turns out that the SunPro C++ compiler does not properly
3515 # handle `-M -o', and we need to detect this. Also, some Intel
3516 # versions had trouble with output in subdirs
3517 am__obj=sub/conftest.${OBJEXT-o}
3518 am__minus_obj="-o $am__obj"
3521 # This depmode causes a compiler race in universal mode.
3522 test "$am__universal" = false || continue
3525 # after this tag, mechanisms are not by side-effect, so they'll
3526 # only be used when explicitly requested
3527 if test "x$enable_dependency_tracking" = xyes; then
3533 msvisualcpp | msvcmsys)
3534 # This compiler won't grok `-c -o', but also, the minuso test has
3535 # not run yet. These depmodes are late enough in the game, and
3536 # so weak that their functioning should not be impacted.
3537 am__obj=conftest.${OBJEXT-o}
3542 if depmode=$depmode \
3543 source=sub/conftest.c object=$am__obj \
3544 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3545 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3546 >/dev/null 2>conftest.err &&
3547 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3548 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3549 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3550 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3551 # icc doesn't choke on unknown options, it will just issue warnings
3552 # or remarks (even with -Werror). So we grep stderr for any message
3553 # that says an option was ignored or not supported.
3554 # When given -MP, icc 7.0 and 7.1 complain thusly:
3555 # icc: Command line warning: ignoring option '-M'; no argument required
3556 # The diagnosis changed in icc 8.0:
3557 # icc: Command line remark: option '-MP' not supported
3558 if (grep 'ignoring option' conftest.err ||
3559 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3560 am_cv_CC_dependencies_compiler_type=$depmode
3569 am_cv_CC_dependencies_compiler_type=none
3573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3574 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3575 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3578 test "x$enable_dependency_tracking" != xno \
3579 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3581 am__fastdepCC_FALSE='#'
3583 am__fastdepCC_TRUE='#'
3584 am__fastdepCC_FALSE=
3590 ## ----------------------- ##
3591 ## Libtool initialisation. ##
3592 ## ----------------------- ##
3595 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3596 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3601 macro_version='2.4.2'
3602 macro_revision='1.3337'
3616 ltmain="$ac_aux_dir/ltmain.sh"
3618 # Make sure we can run config.sub.
3619 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3620 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3623 $as_echo_n "checking build system type... " >&6; }
3624 if ${ac_cv_build+:} false; then :
3625 $as_echo_n "(cached) " >&6
3627 ac_build_alias=$build_alias
3628 test "x$ac_build_alias" = x &&
3629 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3630 test "x$ac_build_alias" = x &&
3631 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3632 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3633 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3637 $as_echo "$ac_cv_build" >&6; }
3638 case $ac_cv_build in
3640 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3643 ac_save_IFS=$IFS; IFS='-'
3649 # Remember, the first character of IFS is used to create $*,
3650 # except with old shells:
3653 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3657 $as_echo_n "checking host system type... " >&6; }
3658 if ${ac_cv_host+:} false; then :
3659 $as_echo_n "(cached) " >&6
3661 if test "x$host_alias" = x; then
3662 ac_cv_host=$ac_cv_build
3664 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3665 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3670 $as_echo "$ac_cv_host" >&6; }
3673 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3676 ac_save_IFS=$IFS; IFS='-'
3682 # Remember, the first character of IFS is used to create $*,
3683 # except with old shells:
3686 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3689 # Backslashify metacharacters that are still active within
3690 # double-quoted strings.
3691 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3693 # Same as above, but do not quote variable references.
3694 double_quote_subst='s/\(["`\\]\)/\\\1/g'
3696 # Sed substitution to delay expansion of an escaped shell variable in a
3697 # double_quote_subst'ed string.
3698 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3700 # Sed substitution to delay expansion of an escaped single quote.
3701 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3703 # Sed substitution to avoid accidental globbing in evaled expressions
3704 no_glob_subst='s/\*/\\\*/g'
3706 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3707 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3708 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3711 $as_echo_n "checking how to print strings... " >&6; }
3712 # Test print first, because it will be a builtin if present.
3713 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3714 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3716 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3719 # Use this function as a fallback that always works.
3720 func_fallback_echo ()
3722 eval 'cat <<_LTECHO_EOF
3726 ECHO='func_fallback_echo'
3729 # func_echo_all arg...
3730 # Invoke $ECHO with all args, space-separated.
3737 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3738 $as_echo "printf" >&6; } ;;
3739 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3740 $as_echo "print -r" >&6; } ;;
3741 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3742 $as_echo "cat" >&6; } ;;
3758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3759 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3760 if ${ac_cv_path_SED+:} false; then :
3761 $as_echo_n "(cached) " >&6
3763 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3764 for ac_i in 1 2 3 4 5 6 7; do
3765 ac_script="$ac_script$as_nl$ac_script"
3767 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3768 { ac_script=; unset ac_script;}
3769 if test -z "$SED"; then
3770 ac_path_SED_found=false
3771 # Loop through the user's path and test for each of PROGNAME-LIST
3772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3776 test -z "$as_dir" && as_dir=.
3777 for ac_prog in sed gsed; do
3778 for ac_exec_ext in '' $ac_executable_extensions; do
3779 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3780 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3781 # Check for GNU ac_path_SED and select it if it is found.
3782 # Check for GNU $ac_path_SED
3783 case `"$ac_path_SED" --version 2>&1` in
3785 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3788 $as_echo_n 0123456789 >"conftest.in"
3791 cat "conftest.in" "conftest.in" >"conftest.tmp"
3792 mv "conftest.tmp" "conftest.in"
3793 cp "conftest.in" "conftest.nl"
3794 $as_echo '' >> "conftest.nl"
3795 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3796 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3797 as_fn_arith $ac_count + 1 && ac_count=$as_val
3798 if test $ac_count -gt ${ac_path_SED_max-0}; then
3799 # Best one so far, save it but keep looking for a better one
3800 ac_cv_path_SED="$ac_path_SED"
3801 ac_path_SED_max=$ac_count
3803 # 10*(2^10) chars as input seems more than enough
3804 test $ac_count -gt 10 && break
3806 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3809 $ac_path_SED_found && break 3
3814 if test -z "$ac_cv_path_SED"; then
3815 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3823 $as_echo "$ac_cv_path_SED" >&6; }
3824 SED="$ac_cv_path_SED"
3827 test -z "$SED" && SED=sed
3828 Xsed="$SED -e 1s/^X//"
3840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3841 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3842 if ${ac_cv_path_GREP+:} false; then :
3843 $as_echo_n "(cached) " >&6
3845 if test -z "$GREP"; then
3846 ac_path_GREP_found=false
3847 # Loop through the user's path and test for each of PROGNAME-LIST
3848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3849 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3852 test -z "$as_dir" && as_dir=.
3853 for ac_prog in grep ggrep; do
3854 for ac_exec_ext in '' $ac_executable_extensions; do
3855 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3856 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3857 # Check for GNU ac_path_GREP and select it if it is found.
3858 # Check for GNU $ac_path_GREP
3859 case `"$ac_path_GREP" --version 2>&1` in
3861 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3864 $as_echo_n 0123456789 >"conftest.in"
3867 cat "conftest.in" "conftest.in" >"conftest.tmp"
3868 mv "conftest.tmp" "conftest.in"
3869 cp "conftest.in" "conftest.nl"
3870 $as_echo 'GREP' >> "conftest.nl"
3871 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3872 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3873 as_fn_arith $ac_count + 1 && ac_count=$as_val
3874 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3875 # Best one so far, save it but keep looking for a better one
3876 ac_cv_path_GREP="$ac_path_GREP"
3877 ac_path_GREP_max=$ac_count
3879 # 10*(2^10) chars as input seems more than enough
3880 test $ac_count -gt 10 && break
3882 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3885 $ac_path_GREP_found && break 3
3890 if test -z "$ac_cv_path_GREP"; then
3891 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3894 ac_cv_path_GREP=$GREP
3898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3899 $as_echo "$ac_cv_path_GREP" >&6; }
3900 GREP="$ac_cv_path_GREP"
3903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3904 $as_echo_n "checking for egrep... " >&6; }
3905 if ${ac_cv_path_EGREP+:} false; then :
3906 $as_echo_n "(cached) " >&6
3908 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3909 then ac_cv_path_EGREP="$GREP -E"
3911 if test -z "$EGREP"; then
3912 ac_path_EGREP_found=false
3913 # Loop through the user's path and test for each of PROGNAME-LIST
3914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3915 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3918 test -z "$as_dir" && as_dir=.
3919 for ac_prog in egrep; do
3920 for ac_exec_ext in '' $ac_executable_extensions; do
3921 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3922 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3923 # Check for GNU ac_path_EGREP and select it if it is found.
3924 # Check for GNU $ac_path_EGREP
3925 case `"$ac_path_EGREP" --version 2>&1` in
3927 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3930 $as_echo_n 0123456789 >"conftest.in"
3933 cat "conftest.in" "conftest.in" >"conftest.tmp"
3934 mv "conftest.tmp" "conftest.in"
3935 cp "conftest.in" "conftest.nl"
3936 $as_echo 'EGREP' >> "conftest.nl"
3937 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3938 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3939 as_fn_arith $ac_count + 1 && ac_count=$as_val
3940 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3941 # Best one so far, save it but keep looking for a better one
3942 ac_cv_path_EGREP="$ac_path_EGREP"
3943 ac_path_EGREP_max=$ac_count
3945 # 10*(2^10) chars as input seems more than enough
3946 test $ac_count -gt 10 && break
3948 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3951 $ac_path_EGREP_found && break 3
3956 if test -z "$ac_cv_path_EGREP"; then
3957 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3960 ac_cv_path_EGREP=$EGREP
3965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3966 $as_echo "$ac_cv_path_EGREP" >&6; }
3967 EGREP="$ac_cv_path_EGREP"
3970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
3971 $as_echo_n "checking for fgrep... " >&6; }
3972 if ${ac_cv_path_FGREP+:} false; then :
3973 $as_echo_n "(cached) " >&6
3975 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
3976 then ac_cv_path_FGREP="$GREP -F"
3978 if test -z "$FGREP"; then
3979 ac_path_FGREP_found=false
3980 # Loop through the user's path and test for each of PROGNAME-LIST
3981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3982 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3985 test -z "$as_dir" && as_dir=.
3986 for ac_prog in fgrep; do
3987 for ac_exec_ext in '' $ac_executable_extensions; do
3988 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
3989 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
3990 # Check for GNU ac_path_FGREP and select it if it is found.
3991 # Check for GNU $ac_path_FGREP
3992 case `"$ac_path_FGREP" --version 2>&1` in
3994 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
3997 $as_echo_n 0123456789 >"conftest.in"
4000 cat "conftest.in" "conftest.in" >"conftest.tmp"
4001 mv "conftest.tmp" "conftest.in"
4002 cp "conftest.in" "conftest.nl"
4003 $as_echo 'FGREP' >> "conftest.nl"
4004 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4005 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4006 as_fn_arith $ac_count + 1 && ac_count=$as_val
4007 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4008 # Best one so far, save it but keep looking for a better one
4009 ac_cv_path_FGREP="$ac_path_FGREP"
4010 ac_path_FGREP_max=$ac_count
4012 # 10*(2^10) chars as input seems more than enough
4013 test $ac_count -gt 10 && break
4015 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4018 $ac_path_FGREP_found && break 3
4023 if test -z "$ac_cv_path_FGREP"; then
4024 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4027 ac_cv_path_FGREP=$FGREP
4032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4033 $as_echo "$ac_cv_path_FGREP" >&6; }
4034 FGREP="$ac_cv_path_FGREP"
4037 test -z "$GREP" && GREP=grep
4057 # Check whether --with-gnu-ld was given.
4058 if test "${with_gnu_ld+set}" = set; then :
4059 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4065 if test "$GCC" = yes; then
4066 # Check if gcc -print-prog-name=ld gives a path.
4067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4068 $as_echo_n "checking for ld used by $CC... " >&6; }
4071 # gcc leaves a trailing carriage return which upsets mingw
4072 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4074 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4077 # Accept absolute paths.
4079 re_direlt='/[^/][^/]*/\.\./'
4080 # Canonicalize the pathname of ld
4081 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4082 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4083 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4085 test -z "$LD" && LD="$ac_prog"
4088 # If it fails, then pretend we aren't using GCC.
4092 # If it is relative, then search for the first ld in PATH.
4096 elif test "$with_gnu_ld" = yes; then
4097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4098 $as_echo_n "checking for GNU ld... " >&6; }
4100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4101 $as_echo_n "checking for non-GNU ld... " >&6; }
4103 if ${lt_cv_path_LD+:} false; then :
4104 $as_echo_n "(cached) " >&6
4106 if test -z "$LD"; then
4107 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4108 for ac_dir in $PATH; do
4110 test -z "$ac_dir" && ac_dir=.
4111 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4112 lt_cv_path_LD="$ac_dir/$ac_prog"
4113 # Check to see if the program is GNU ld. I'd rather use --version,
4114 # but apparently some variants of GNU ld only accept -v.
4115 # Break only if it was the GNU/non-GNU ld that we prefer.
4116 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4117 *GNU* | *'with BFD'*)
4118 test "$with_gnu_ld" != no && break
4121 test "$with_gnu_ld" != yes && break
4128 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4133 if test -n "$LD"; then
4134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4135 $as_echo "$LD" >&6; }
4137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4138 $as_echo "no" >&6; }
4140 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4142 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4143 if ${lt_cv_prog_gnu_ld+:} false; then :
4144 $as_echo_n "(cached) " >&6
4146 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4147 case `$LD -v 2>&1 </dev/null` in
4148 *GNU* | *'with BFD'*)
4149 lt_cv_prog_gnu_ld=yes
4152 lt_cv_prog_gnu_ld=no
4156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4157 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4158 with_gnu_ld=$lt_cv_prog_gnu_ld
4168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4169 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4170 if ${lt_cv_path_NM+:} false; then :
4171 $as_echo_n "(cached) " >&6
4173 if test -n "$NM"; then
4174 # Let the user override the test.
4177 lt_nm_to_check="${ac_tool_prefix}nm"
4178 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4179 lt_nm_to_check="$lt_nm_to_check nm"
4181 for lt_tmp_nm in $lt_nm_to_check; do
4182 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4183 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4185 test -z "$ac_dir" && ac_dir=.
4186 tmp_nm="$ac_dir/$lt_tmp_nm"
4187 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4188 # Check to see if the nm accepts a BSD-compat flag.
4189 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4190 # nm: unknown option "B" ignored
4191 # Tru64's nm complains that /dev/null is an invalid object file
4192 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4193 */dev/null* | *'Invalid file or object type'*)
4194 lt_cv_path_NM="$tmp_nm -B"
4198 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4200 lt_cv_path_NM="$tmp_nm -p"
4204 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4205 continue # so that we can try to find one that supports BSD flags
4214 : ${lt_cv_path_NM=no}
4217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4218 $as_echo "$lt_cv_path_NM" >&6; }
4219 if test "$lt_cv_path_NM" != "no"; then
4222 # Didn't find any BSD compatible name lister, look for dumpbin.
4223 if test -n "$DUMPBIN"; then :
4224 # Let the user override the test.
4226 if test -n "$ac_tool_prefix"; then
4227 for ac_prog in dumpbin "link -dump"
4229 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4230 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4232 $as_echo_n "checking for $ac_word... " >&6; }
4233 if ${ac_cv_prog_DUMPBIN+:} false; then :
4234 $as_echo_n "(cached) " >&6
4236 if test -n "$DUMPBIN"; then
4237 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4243 test -z "$as_dir" && as_dir=.
4244 for ac_exec_ext in '' $ac_executable_extensions; do
4245 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4246 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4247 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4256 DUMPBIN=$ac_cv_prog_DUMPBIN
4257 if test -n "$DUMPBIN"; then
4258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4259 $as_echo "$DUMPBIN" >&6; }
4261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4262 $as_echo "no" >&6; }
4266 test -n "$DUMPBIN" && break
4269 if test -z "$DUMPBIN"; then
4270 ac_ct_DUMPBIN=$DUMPBIN
4271 for ac_prog in dumpbin "link -dump"
4273 # Extract the first word of "$ac_prog", so it can be a program name with args.
4274 set dummy $ac_prog; ac_word=$2
4275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4276 $as_echo_n "checking for $ac_word... " >&6; }
4277 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4278 $as_echo_n "(cached) " >&6
4280 if test -n "$ac_ct_DUMPBIN"; then
4281 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4287 test -z "$as_dir" && as_dir=.
4288 for ac_exec_ext in '' $ac_executable_extensions; do
4289 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4290 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4291 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4300 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4301 if test -n "$ac_ct_DUMPBIN"; then
4302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4303 $as_echo "$ac_ct_DUMPBIN" >&6; }
4305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4306 $as_echo "no" >&6; }
4310 test -n "$ac_ct_DUMPBIN" && break
4313 if test "x$ac_ct_DUMPBIN" = x; then
4316 case $cross_compiling:$ac_tool_warned in
4318 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4319 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4320 ac_tool_warned=yes ;;
4322 DUMPBIN=$ac_ct_DUMPBIN
4326 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4328 DUMPBIN="$DUMPBIN -symbols"
4336 if test "$DUMPBIN" != ":"; then
4340 test -z "$NM" && NM=nm
4347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4348 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4349 if ${lt_cv_nm_interface+:} false; then :
4350 $as_echo_n "(cached) " >&6
4352 lt_cv_nm_interface="BSD nm"
4353 echo "int some_variable = 0;" > conftest.$ac_ext
4354 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4355 (eval "$ac_compile" 2>conftest.err)
4356 cat conftest.err >&5
4357 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4358 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4359 cat conftest.err >&5
4360 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4361 cat conftest.out >&5
4362 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4363 lt_cv_nm_interface="MS dumpbin"
4367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4368 $as_echo "$lt_cv_nm_interface" >&6; }
4370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4371 $as_echo_n "checking whether ln -s works... " >&6; }
4373 if test "$LN_S" = "ln -s"; then
4374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4375 $as_echo "yes" >&6; }
4377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4378 $as_echo "no, using $LN_S" >&6; }
4381 # find the maximum length of command line arguments
4382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4383 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4384 if ${lt_cv_sys_max_cmd_len+:} false; then :
4385 $as_echo_n "(cached) " >&6
4392 # On DJGPP, this test can blow up pretty badly due to problems in libc
4393 # (any single argument exceeding 2000 bytes causes a buffer overrun
4394 # during glob expansion). Even if it were fixed, the result of this
4395 # check would be larger than it should be.
4396 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4400 # Under GNU Hurd, this test is not required because there is
4401 # no limit to the length of command line arguments.
4402 # Libtool will interpret -1 as no limit whatsoever
4403 lt_cv_sys_max_cmd_len=-1;
4406 cygwin* | mingw* | cegcc*)
4407 # On Win9x/ME, this test blows up -- it succeeds, but takes
4408 # about 5 minutes as the teststring grows exponentially.
4409 # Worse, since 9x/ME are not pre-emptively multitasking,
4410 # you end up with a "frozen" computer, even though with patience
4411 # the test eventually succeeds (with a max line length of 256k).
4412 # Instead, let's just punt: use the minimum linelength reported by
4413 # all of the supported platforms: 8192 (on NT/2K/XP).
4414 lt_cv_sys_max_cmd_len=8192;
4418 # On MiNT this can take a long time and run out of memory.
4419 lt_cv_sys_max_cmd_len=8192;
4423 # On AmigaOS with pdksh, this test takes hours, literally.
4424 # So we just punt and use a minimum line length of 8192.
4425 lt_cv_sys_max_cmd_len=8192;
4428 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4429 # This has been around since 386BSD, at least. Likely further.
4430 if test -x /sbin/sysctl; then
4431 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4432 elif test -x /usr/sbin/sysctl; then
4433 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4435 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4437 # And add a safety zone
4438 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4439 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4443 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4444 lt_cv_sys_max_cmd_len=196608
4448 # The test takes a long time on OS/2.
4449 lt_cv_sys_max_cmd_len=8192
4453 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4454 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4455 # nice to cause kernel panics so lets avoid the loop below.
4456 # First set a reasonable default.
4457 lt_cv_sys_max_cmd_len=16384
4459 if test -x /sbin/sysconfig; then
4460 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4461 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4466 lt_cv_sys_max_cmd_len=102400
4468 sysv5* | sco5v6* | sysv4.2uw2*)
4469 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4470 if test -n "$kargmax"; then
4471 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4473 lt_cv_sys_max_cmd_len=32768
4477 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4478 if test -n "$lt_cv_sys_max_cmd_len"; then
4479 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4480 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4482 # Make teststring a little bigger before we do anything with it.
4483 # a 1K string should be a reasonable start.
4484 for i in 1 2 3 4 5 6 7 8 ; do
4485 teststring=$teststring$teststring
4487 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4488 # If test is not a shell built-in, we'll probably end up computing a
4489 # maximum length that is only half of the actual maximum length, but
4491 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4492 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4493 test $i != 17 # 1/2 MB should be enough
4496 teststring=$teststring$teststring
4498 # Only check the string length outside the loop.
4499 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4501 # Add a significant safety factor because C++ compilers can tack on
4502 # massive amounts of additional arguments before passing them to the
4503 # linker. It appears as though 1/2 is a usable value.
4504 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4511 if test -n $lt_cv_sys_max_cmd_len ; then
4512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4513 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4516 $as_echo "none" >&6; }
4518 max_cmd_len=$lt_cv_sys_max_cmd_len
4529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4530 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4531 # Try some XSI features
4534 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4536 && eval 'test $(( 1 + 1 )) -eq 2 \
4537 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4540 $as_echo "$xsi_shell" >&6; }
4543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4544 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4546 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4548 && lt_shell_append=yes
4549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4550 $as_echo "$lt_shell_append" >&6; }
4553 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4563 # test EBCDIC or ASCII
4564 case `echo X|tr X '\101'` in
4565 A) # ASCII based system
4566 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4567 lt_SP2NL='tr \040 \012'
4568 lt_NL2SP='tr \015\012 \040\040'
4570 *) # EBCDIC based system
4571 lt_SP2NL='tr \100 \n'
4572 lt_NL2SP='tr \r\n \100\100'
4584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4585 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4586 if ${lt_cv_to_host_file_cmd+:} false; then :
4587 $as_echo_n "(cached) " >&6
4592 *-*-mingw* ) # actually msys
4593 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4596 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4598 * ) # otherwise, assume *nix
4599 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4605 *-*-mingw* ) # actually msys
4606 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4609 lt_cv_to_host_file_cmd=func_convert_file_noop
4611 * ) # otherwise, assume *nix
4612 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4616 * ) # unhandled hosts (and "normal" native builds)
4617 lt_cv_to_host_file_cmd=func_convert_file_noop
4623 to_host_file_cmd=$lt_cv_to_host_file_cmd
4624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4625 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
4631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4632 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4633 if ${lt_cv_to_tool_file_cmd+:} false; then :
4634 $as_echo_n "(cached) " >&6
4636 #assume ordinary cross tools, or native build.
4637 lt_cv_to_tool_file_cmd=func_convert_file_noop
4641 *-*-mingw* ) # actually msys
4642 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4650 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4652 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4659 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4660 if ${lt_cv_ld_reload_flag+:} false; then :
4661 $as_echo_n "(cached) " >&6
4663 lt_cv_ld_reload_flag='-r'
4665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4666 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4667 reload_flag=$lt_cv_ld_reload_flag
4668 case $reload_flag in
4670 *) reload_flag=" $reload_flag" ;;
4672 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4674 cygwin* | mingw* | pw32* | cegcc*)
4675 if test "$GCC" != yes; then
4680 if test "$GCC" = yes; then
4681 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4683 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4696 if test -n "$ac_tool_prefix"; then
4697 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4698 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4700 $as_echo_n "checking for $ac_word... " >&6; }
4701 if ${ac_cv_prog_OBJDUMP+:} false; then :
4702 $as_echo_n "(cached) " >&6
4704 if test -n "$OBJDUMP"; then
4705 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4711 test -z "$as_dir" && as_dir=.
4712 for ac_exec_ext in '' $ac_executable_extensions; do
4713 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4714 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4724 OBJDUMP=$ac_cv_prog_OBJDUMP
4725 if test -n "$OBJDUMP"; then
4726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4727 $as_echo "$OBJDUMP" >&6; }
4729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4730 $as_echo "no" >&6; }
4735 if test -z "$ac_cv_prog_OBJDUMP"; then
4736 ac_ct_OBJDUMP=$OBJDUMP
4737 # Extract the first word of "objdump", so it can be a program name with args.
4738 set dummy objdump; ac_word=$2
4739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4740 $as_echo_n "checking for $ac_word... " >&6; }
4741 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4742 $as_echo_n "(cached) " >&6
4744 if test -n "$ac_ct_OBJDUMP"; then
4745 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4751 test -z "$as_dir" && as_dir=.
4752 for ac_exec_ext in '' $ac_executable_extensions; do
4753 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4754 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4755 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4764 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4765 if test -n "$ac_ct_OBJDUMP"; then
4766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4767 $as_echo "$ac_ct_OBJDUMP" >&6; }
4769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4770 $as_echo "no" >&6; }
4773 if test "x$ac_ct_OBJDUMP" = x; then
4776 case $cross_compiling:$ac_tool_warned in
4778 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4779 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4780 ac_tool_warned=yes ;;
4782 OBJDUMP=$ac_ct_OBJDUMP
4785 OBJDUMP="$ac_cv_prog_OBJDUMP"
4788 test -z "$OBJDUMP" && OBJDUMP=objdump
4798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4799 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4800 if ${lt_cv_deplibs_check_method+:} false; then :
4801 $as_echo_n "(cached) " >&6
4803 lt_cv_file_magic_cmd='$MAGIC_CMD'
4804 lt_cv_file_magic_test_file=
4805 lt_cv_deplibs_check_method='unknown'
4806 # Need to set the preceding variable on all platforms that support
4807 # interlibrary dependencies.
4808 # 'none' -- dependencies not supported.
4809 # `unknown' -- same as none, but documents that we really don't know.
4810 # 'pass_all' -- all dependencies passed with no checks.
4811 # 'test_compile' -- check by making test program.
4812 # 'file_magic [[regex]]' -- check by looking for files in library path
4813 # which responds to the $file_magic_cmd with a given extended regex.
4814 # If you have `file' or equivalent on your system and you're not sure
4815 # whether `pass_all' will *always* work, you probably want this one.
4819 lt_cv_deplibs_check_method=pass_all
4823 lt_cv_deplibs_check_method=pass_all
4827 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4828 lt_cv_file_magic_cmd='/usr/bin/file -L'
4829 lt_cv_file_magic_test_file=/shlib/libc.so
4833 # func_win32_libid is a shell function defined in ltmain.sh
4834 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4835 lt_cv_file_magic_cmd='func_win32_libid'
4839 # Base MSYS/MinGW do not provide the 'file' command needed by
4840 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4841 # unless we find 'file', for example because we are cross-compiling.
4842 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
4843 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
4844 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4845 lt_cv_file_magic_cmd='func_win32_libid'
4847 # Keep this pattern in sync with the one in func_win32_libid.
4848 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
4849 lt_cv_file_magic_cmd='$OBJDUMP -f'
4854 # use the weaker test based on 'objdump'. See mingw*.
4855 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4856 lt_cv_file_magic_cmd='$OBJDUMP -f'
4859 darwin* | rhapsody*)
4860 lt_cv_deplibs_check_method=pass_all
4863 freebsd* | dragonfly*)
4864 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4867 # Not sure whether the presence of OpenBSD here was a mistake.
4868 # Let's accept both of them until this is cleared up.
4869 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4870 lt_cv_file_magic_cmd=/usr/bin/file
4871 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4875 lt_cv_deplibs_check_method=pass_all
4880 lt_cv_deplibs_check_method=pass_all
4884 lt_cv_deplibs_check_method=pass_all
4887 hpux10.20* | hpux11*)
4888 lt_cv_file_magic_cmd=/usr/bin/file
4891 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4892 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4895 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]'
4896 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4899 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
4900 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4906 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4907 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4910 irix5* | irix6* | nonstopux*)
4912 *-32|*"-32 ") libmagic=32-bit;;
4913 *-n32|*"-n32 ") libmagic=N32;;
4914 *-64|*"-64 ") libmagic=64-bit;;
4915 *) libmagic=never-match;;
4917 lt_cv_deplibs_check_method=pass_all
4920 # This must be glibc/ELF.
4921 linux* | k*bsd*-gnu | kopensolaris*-gnu)
4922 lt_cv_deplibs_check_method=pass_all
4926 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4927 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4929 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4934 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4935 lt_cv_file_magic_cmd=/usr/bin/file
4936 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4940 lt_cv_deplibs_check_method=pass_all
4944 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4945 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4947 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4951 osf3* | osf4* | osf5*)
4952 lt_cv_deplibs_check_method=pass_all
4956 lt_cv_deplibs_check_method=pass_all
4960 lt_cv_deplibs_check_method=pass_all
4963 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4964 lt_cv_deplibs_check_method=pass_all
4968 case $host_vendor in
4970 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]'
4971 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4974 lt_cv_deplibs_check_method=pass_all
4977 lt_cv_file_magic_cmd='/bin/file'
4978 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4981 lt_cv_file_magic_cmd='/bin/file'
4982 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4983 lt_cv_file_magic_test_file=/lib/libc.so
4986 lt_cv_deplibs_check_method=pass_all
4989 lt_cv_deplibs_check_method=pass_all
4995 lt_cv_deplibs_check_method=pass_all
5000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5001 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5005 if test "$build" = "$host"; then
5008 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5011 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5017 file_magic_cmd=$lt_cv_file_magic_cmd
5018 deplibs_check_method=$lt_cv_deplibs_check_method
5019 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5042 if test -n "$ac_tool_prefix"; then
5043 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5044 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5046 $as_echo_n "checking for $ac_word... " >&6; }
5047 if ${ac_cv_prog_DLLTOOL+:} false; then :
5048 $as_echo_n "(cached) " >&6
5050 if test -n "$DLLTOOL"; then
5051 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5057 test -z "$as_dir" && as_dir=.
5058 for ac_exec_ext in '' $ac_executable_extensions; do
5059 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5060 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5061 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5070 DLLTOOL=$ac_cv_prog_DLLTOOL
5071 if test -n "$DLLTOOL"; then
5072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5073 $as_echo "$DLLTOOL" >&6; }
5075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5076 $as_echo "no" >&6; }
5081 if test -z "$ac_cv_prog_DLLTOOL"; then
5082 ac_ct_DLLTOOL=$DLLTOOL
5083 # Extract the first word of "dlltool", so it can be a program name with args.
5084 set dummy dlltool; ac_word=$2
5085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5086 $as_echo_n "checking for $ac_word... " >&6; }
5087 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5088 $as_echo_n "(cached) " >&6
5090 if test -n "$ac_ct_DLLTOOL"; then
5091 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5097 test -z "$as_dir" && as_dir=.
5098 for ac_exec_ext in '' $ac_executable_extensions; do
5099 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5100 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5101 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5110 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5111 if test -n "$ac_ct_DLLTOOL"; then
5112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5113 $as_echo "$ac_ct_DLLTOOL" >&6; }
5115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5116 $as_echo "no" >&6; }
5119 if test "x$ac_ct_DLLTOOL" = x; then
5122 case $cross_compiling:$ac_tool_warned in
5124 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5125 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5126 ac_tool_warned=yes ;;
5128 DLLTOOL=$ac_ct_DLLTOOL
5131 DLLTOOL="$ac_cv_prog_DLLTOOL"
5134 test -z "$DLLTOOL" && DLLTOOL=dlltool
5145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5146 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5147 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5148 $as_echo_n "(cached) " >&6
5150 lt_cv_sharedlib_from_linklib_cmd='unknown'
5153 cygwin* | mingw* | pw32* | cegcc*)
5154 # two different shell functions defined in ltmain.sh
5155 # decide which to use based on capabilities of $DLLTOOL
5156 case `$DLLTOOL --help 2>&1` in
5157 *--identify-strict*)
5158 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5161 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5166 # fallback: assume linklib IS sharedlib
5167 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5173 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5174 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5175 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5184 if test -n "$ac_tool_prefix"; then
5187 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5188 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5190 $as_echo_n "checking for $ac_word... " >&6; }
5191 if ${ac_cv_prog_AR+:} false; then :
5192 $as_echo_n "(cached) " >&6
5194 if test -n "$AR"; then
5195 ac_cv_prog_AR="$AR" # Let the user override the test.
5197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5201 test -z "$as_dir" && as_dir=.
5202 for ac_exec_ext in '' $ac_executable_extensions; do
5203 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5204 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5205 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5215 if test -n "$AR"; then
5216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5217 $as_echo "$AR" >&6; }
5219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5220 $as_echo "no" >&6; }
5224 test -n "$AR" && break
5227 if test -z "$AR"; then
5231 # Extract the first word of "$ac_prog", so it can be a program name with args.
5232 set dummy $ac_prog; ac_word=$2
5233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5234 $as_echo_n "checking for $ac_word... " >&6; }
5235 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5236 $as_echo_n "(cached) " >&6
5238 if test -n "$ac_ct_AR"; then
5239 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5245 test -z "$as_dir" && as_dir=.
5246 for ac_exec_ext in '' $ac_executable_extensions; do
5247 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5248 ac_cv_prog_ac_ct_AR="$ac_prog"
5249 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5258 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5259 if test -n "$ac_ct_AR"; then
5260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5261 $as_echo "$ac_ct_AR" >&6; }
5263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5264 $as_echo "no" >&6; }
5268 test -n "$ac_ct_AR" && break
5271 if test "x$ac_ct_AR" = x; then
5274 case $cross_compiling:$ac_tool_warned in
5276 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5277 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5278 ac_tool_warned=yes ;;
5297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5298 $as_echo_n "checking for archiver @FILE support... " >&6; }
5299 if ${lt_cv_ar_at_file+:} false; then :
5300 $as_echo_n "(cached) " >&6
5303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5304 /* end confdefs.h. */
5314 if ac_fn_c_try_compile "$LINENO"; then :
5315 echo conftest.$ac_objext > conftest.lst
5316 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5317 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5318 (eval $lt_ar_try) 2>&5
5320 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5321 test $ac_status = 0; }
5322 if test "$ac_status" -eq 0; then
5323 # Ensure the archiver fails upon bogus file names.
5324 rm -f conftest.$ac_objext libconftest.a
5325 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5326 (eval $lt_ar_try) 2>&5
5328 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5329 test $ac_status = 0; }
5330 if test "$ac_status" -ne 0; then
5334 rm -f conftest.* libconftest.a
5337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5341 $as_echo "$lt_cv_ar_at_file" >&6; }
5343 if test "x$lt_cv_ar_at_file" = xno; then
5346 archiver_list_spec=$lt_cv_ar_at_file
5355 if test -n "$ac_tool_prefix"; then
5356 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5357 set dummy ${ac_tool_prefix}strip; ac_word=$2
5358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5359 $as_echo_n "checking for $ac_word... " >&6; }
5360 if ${ac_cv_prog_STRIP+:} false; then :
5361 $as_echo_n "(cached) " >&6
5363 if test -n "$STRIP"; then
5364 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5370 test -z "$as_dir" && as_dir=.
5371 for ac_exec_ext in '' $ac_executable_extensions; do
5372 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5373 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5374 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5383 STRIP=$ac_cv_prog_STRIP
5384 if test -n "$STRIP"; then
5385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5386 $as_echo "$STRIP" >&6; }
5388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5389 $as_echo "no" >&6; }
5394 if test -z "$ac_cv_prog_STRIP"; then
5396 # Extract the first word of "strip", so it can be a program name with args.
5397 set dummy strip; ac_word=$2
5398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5399 $as_echo_n "checking for $ac_word... " >&6; }
5400 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5401 $as_echo_n "(cached) " >&6
5403 if test -n "$ac_ct_STRIP"; then
5404 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5410 test -z "$as_dir" && as_dir=.
5411 for ac_exec_ext in '' $ac_executable_extensions; do
5412 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5413 ac_cv_prog_ac_ct_STRIP="strip"
5414 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5423 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5424 if test -n "$ac_ct_STRIP"; then
5425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5426 $as_echo "$ac_ct_STRIP" >&6; }
5428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5429 $as_echo "no" >&6; }
5432 if test "x$ac_ct_STRIP" = x; then
5435 case $cross_compiling:$ac_tool_warned in
5437 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5438 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5439 ac_tool_warned=yes ;;
5444 STRIP="$ac_cv_prog_STRIP"
5447 test -z "$STRIP" && STRIP=:
5454 if test -n "$ac_tool_prefix"; then
5455 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5456 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5458 $as_echo_n "checking for $ac_word... " >&6; }
5459 if ${ac_cv_prog_RANLIB+:} false; then :
5460 $as_echo_n "(cached) " >&6
5462 if test -n "$RANLIB"; then
5463 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5469 test -z "$as_dir" && as_dir=.
5470 for ac_exec_ext in '' $ac_executable_extensions; do
5471 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5472 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5482 RANLIB=$ac_cv_prog_RANLIB
5483 if test -n "$RANLIB"; then
5484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5485 $as_echo "$RANLIB" >&6; }
5487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5488 $as_echo "no" >&6; }
5493 if test -z "$ac_cv_prog_RANLIB"; then
5494 ac_ct_RANLIB=$RANLIB
5495 # Extract the first word of "ranlib", so it can be a program name with args.
5496 set dummy ranlib; ac_word=$2
5497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5498 $as_echo_n "checking for $ac_word... " >&6; }
5499 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5500 $as_echo_n "(cached) " >&6
5502 if test -n "$ac_ct_RANLIB"; then
5503 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5509 test -z "$as_dir" && as_dir=.
5510 for ac_exec_ext in '' $ac_executable_extensions; do
5511 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5512 ac_cv_prog_ac_ct_RANLIB="ranlib"
5513 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5522 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5523 if test -n "$ac_ct_RANLIB"; then
5524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5525 $as_echo "$ac_ct_RANLIB" >&6; }
5527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5528 $as_echo "no" >&6; }
5531 if test "x$ac_ct_RANLIB" = x; then
5534 case $cross_compiling:$ac_tool_warned in
5536 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5537 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5538 ac_tool_warned=yes ;;
5540 RANLIB=$ac_ct_RANLIB
5543 RANLIB="$ac_cv_prog_RANLIB"
5546 test -z "$RANLIB" && RANLIB=:
5553 # Determine commands to create old-style static archives.
5554 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5555 old_postinstall_cmds='chmod 644 $oldlib'
5556 old_postuninstall_cmds=
5558 if test -n "$RANLIB"; then
5561 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5564 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5567 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5572 lock_old_archive_extraction=yes ;;
5574 lock_old_archive_extraction=no ;;
5615 # If no C compiler was specified, use CC.
5618 # If no C compiler flags were specified, use CFLAGS.
5619 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5621 # Allow CC to be a program name with arguments.
5625 # Check for command to grab the raw symbol name followed by C symbol from nm.
5626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5627 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5628 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5629 $as_echo_n "(cached) " >&6
5632 # These are sane defaults that work on at least a few old systems.
5633 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5635 # Character class describing NM global symbol codes.
5636 symcode='[BCDEGRST]'
5638 # Regexp to match symbols that can be accessed directly from C.
5639 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5641 # Define system-specific variables.
5646 cygwin* | mingw* | pw32* | cegcc*)
5647 symcode='[ABCDGISTW]'
5650 if test "$host_cpu" = ia64; then
5651 symcode='[ABCDEGRST]'
5655 symcode='[BCDEGRST]'
5658 symcode='[BCDEGQRST]'
5669 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5677 # If we're using GNU nm, then use its standard symbol codes.
5678 case `$NM -V 2>&1` in
5679 *GNU* | *'with BFD'*)
5680 symcode='[ABCDGIRSTW]' ;;
5683 # Transform an extracted symbol line into a proper C declaration.
5684 # Some systems (esp. on ia64) link data and code symbols differently,
5685 # so use this general approach.
5686 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5688 # Transform an extracted symbol line into symbol name and symbol address
5689 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5690 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'"
5692 # Handle CRLF in mingw tool chain
5696 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5700 # Try without a prefix underscore, then with it.
5701 for ac_symprfx in "" "_"; do
5703 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5704 symxfrm="\\1 $ac_symprfx\\2 \\2"
5706 # Write the raw and C identifiers.
5707 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5708 # Fake it for dumpbin and say T for any non-static function
5709 # and D for any global variable.
5710 # Also find C++ and __fastcall symbols from MSVC++,
5711 # which start with @ or ?.
5712 lt_cv_sys_global_symbol_pipe="$AWK '"\
5713 " {last_section=section; section=\$ 3};"\
5714 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
5715 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5716 " \$ 0!~/External *\|/{next};"\
5717 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5718 " {if(hide[section]) next};"\
5719 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5720 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5721 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5722 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5723 " ' prfx=^$ac_symprfx"
5725 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5727 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
5729 # Check to see that the pipe works correctly.
5733 cat > conftest.$ac_ext <<_LT_EOF
5738 void nm_test_func(void);
5739 void nm_test_func(void){}
5743 int main(){nm_test_var='a';nm_test_func();return(0);}
5746 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5747 (eval $ac_compile) 2>&5
5749 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5750 test $ac_status = 0; }; then
5751 # Now try to grab the symbols.
5753 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5754 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5756 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5757 test $ac_status = 0; } && test -s "$nlist"; then
5758 # Try sorting and uniquifying the output.
5759 if sort "$nlist" | uniq > "$nlist"T; then
5760 mv -f "$nlist"T "$nlist"
5765 # Make sure that we snagged all the symbols we need.
5766 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5767 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5768 cat <<_LT_EOF > conftest.$ac_ext
5769 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
5770 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
5771 /* DATA imports from DLLs on WIN32 con't be const, because runtime
5772 relocations are performed -- see ld's documentation on pseudo-relocs. */
5773 # define LT_DLSYM_CONST
5774 #elif defined(__osf__)
5775 /* This system does not cope well with relocations in const data. */
5776 # define LT_DLSYM_CONST
5778 # define LT_DLSYM_CONST const
5786 # Now generate the symbol file.
5787 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5789 cat <<_LT_EOF >> conftest.$ac_ext
5791 /* The mapping between symbol names and symbols. */
5792 LT_DLSYM_CONST struct {
5796 lt__PROGRAM__LTX_preloaded_symbols[] =
5798 { "@PROGRAM@", (void *) 0 },
5800 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5801 cat <<\_LT_EOF >> conftest.$ac_ext
5805 /* This works around a problem in FreeBSD linker */
5806 #ifdef FREEBSD_WORKAROUND
5807 static const void *lt_preloaded_setup() {
5808 return lt__PROGRAM__LTX_preloaded_symbols;
5816 # Now try linking the two files.
5817 mv conftest.$ac_objext conftstm.$ac_objext
5818 lt_globsym_save_LIBS=$LIBS
5819 lt_globsym_save_CFLAGS=$CFLAGS
5820 LIBS="conftstm.$ac_objext"
5821 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5822 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5823 (eval $ac_link) 2>&5
5825 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5826 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5829 LIBS=$lt_globsym_save_LIBS
5830 CFLAGS=$lt_globsym_save_CFLAGS
5832 echo "cannot find nm_test_func in $nlist" >&5
5835 echo "cannot find nm_test_var in $nlist" >&5
5838 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5841 echo "$progname: failed program was:" >&5
5842 cat conftest.$ac_ext >&5
5844 rm -rf conftest* conftst*
5846 # Do not use the global_symbol_pipe unless it works.
5847 if test "$pipe_works" = yes; then
5850 lt_cv_sys_global_symbol_pipe=
5856 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5857 lt_cv_sys_global_symbol_to_cdecl=
5859 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5861 $as_echo "failed" >&6; }
5863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5864 $as_echo "ok" >&6; }
5867 # Response file support.
5868 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5869 nm_file_list_spec='@'
5870 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
5871 nm_file_list_spec='@'
5900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
5901 $as_echo_n "checking for sysroot... " >&6; }
5903 # Check whether --with-sysroot was given.
5904 if test "${with_sysroot+set}" = set; then :
5905 withval=$with_sysroot;
5912 case ${with_sysroot} in #(
5914 if test "$GCC" = yes; then
5915 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
5919 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
5924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
5925 $as_echo "${with_sysroot}" >&6; }
5926 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
5930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
5931 $as_echo "${lt_sysroot:-no}" >&6; }
5937 # Check whether --enable-libtool-lock was given.
5938 if test "${enable_libtool_lock+set}" = set; then :
5939 enableval=$enable_libtool_lock;
5942 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5944 # Some flags need to be propagated to the compiler or linker for good
5948 # Find out which ABI we are using.
5949 echo 'int i;' > conftest.$ac_ext
5950 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5951 (eval $ac_compile) 2>&5
5953 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5954 test $ac_status = 0; }; then
5955 case `/usr/bin/file conftest.$ac_objext` in
5967 # Find out which ABI we are using.
5968 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
5969 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5970 (eval $ac_compile) 2>&5
5972 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5973 test $ac_status = 0; }; then
5974 if test "$lt_cv_prog_gnu_ld" = yes; then
5975 case `/usr/bin/file conftest.$ac_objext` in
5977 LD="${LD-ld} -melf32bsmip"
5980 LD="${LD-ld} -melf32bmipn32"
5983 LD="${LD-ld} -melf64bmip"
5987 case `/usr/bin/file conftest.$ac_objext` in
6003 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6004 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6005 # Find out which ABI we are using.
6006 echo 'int i;' > conftest.$ac_ext
6007 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6008 (eval $ac_compile) 2>&5
6010 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6011 test $ac_status = 0; }; then
6012 case `/usr/bin/file conftest.o` in
6015 x86_64-*kfreebsd*-gnu)
6016 LD="${LD-ld} -m elf_i386_fbsd"
6019 LD="${LD-ld} -m elf_i386"
6021 ppc64-*linux*|powerpc64-*linux*)
6022 LD="${LD-ld} -m elf32ppclinux"
6025 LD="${LD-ld} -m elf_s390"
6028 LD="${LD-ld} -m elf32_sparc"
6034 x86_64-*kfreebsd*-gnu)
6035 LD="${LD-ld} -m elf_x86_64_fbsd"
6038 LD="${LD-ld} -m elf_x86_64"
6040 ppc*-*linux*|powerpc*-*linux*)
6041 LD="${LD-ld} -m elf64ppc"
6043 s390*-*linux*|s390*-*tpf*)
6044 LD="${LD-ld} -m elf64_s390"
6047 LD="${LD-ld} -m elf64_sparc"
6057 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6058 SAVE_CFLAGS="$CFLAGS"
6059 CFLAGS="$CFLAGS -belf"
6060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6061 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6062 if ${lt_cv_cc_needs_belf+:} false; then :
6063 $as_echo_n "(cached) " >&6
6066 ac_cpp='$CPP $CPPFLAGS'
6067 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6068 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6069 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6072 /* end confdefs.h. */
6082 if ac_fn_c_try_link "$LINENO"; then :
6083 lt_cv_cc_needs_belf=yes
6085 lt_cv_cc_needs_belf=no
6087 rm -f core conftest.err conftest.$ac_objext \
6088 conftest$ac_exeext conftest.$ac_ext
6090 ac_cpp='$CPP $CPPFLAGS'
6091 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6092 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6093 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6097 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6098 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6099 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6100 CFLAGS="$SAVE_CFLAGS"
6104 # Find out which ABI we are using.
6105 echo 'int i;' > conftest.$ac_ext
6106 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6107 (eval $ac_compile) 2>&5
6109 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6110 test $ac_status = 0; }; then
6111 case `/usr/bin/file conftest.o` in
6113 case $lt_cv_prog_gnu_ld in
6117 LD="${LD-ld} -m elf_x86_64"
6120 LD="${LD-ld} -m elf64_sparc"
6123 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6124 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6129 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6141 need_locks="$enable_libtool_lock"
6143 if test -n "$ac_tool_prefix"; then
6144 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6145 set dummy ${ac_tool_prefix}mt; ac_word=$2
6146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6147 $as_echo_n "checking for $ac_word... " >&6; }
6148 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6149 $as_echo_n "(cached) " >&6
6151 if test -n "$MANIFEST_TOOL"; then
6152 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6158 test -z "$as_dir" && as_dir=.
6159 for ac_exec_ext in '' $ac_executable_extensions; do
6160 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6161 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6162 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6171 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6172 if test -n "$MANIFEST_TOOL"; then
6173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6174 $as_echo "$MANIFEST_TOOL" >&6; }
6176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6177 $as_echo "no" >&6; }
6182 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6183 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6184 # Extract the first word of "mt", so it can be a program name with args.
6185 set dummy mt; ac_word=$2
6186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6187 $as_echo_n "checking for $ac_word... " >&6; }
6188 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6189 $as_echo_n "(cached) " >&6
6191 if test -n "$ac_ct_MANIFEST_TOOL"; then
6192 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6198 test -z "$as_dir" && as_dir=.
6199 for ac_exec_ext in '' $ac_executable_extensions; do
6200 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6201 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6211 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6212 if test -n "$ac_ct_MANIFEST_TOOL"; then
6213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6214 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6217 $as_echo "no" >&6; }
6220 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6223 case $cross_compiling:$ac_tool_warned in
6225 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6226 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6227 ac_tool_warned=yes ;;
6229 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6232 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6235 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6237 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6238 if ${lt_cv_path_mainfest_tool+:} false; then :
6239 $as_echo_n "(cached) " >&6
6241 lt_cv_path_mainfest_tool=no
6242 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6243 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6244 cat conftest.err >&5
6245 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6246 lt_cv_path_mainfest_tool=yes
6250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6251 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6252 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6262 rhapsody* | darwin*)
6263 if test -n "$ac_tool_prefix"; then
6264 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6265 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6267 $as_echo_n "checking for $ac_word... " >&6; }
6268 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6269 $as_echo_n "(cached) " >&6
6271 if test -n "$DSYMUTIL"; then
6272 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6278 test -z "$as_dir" && as_dir=.
6279 for ac_exec_ext in '' $ac_executable_extensions; do
6280 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6281 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6282 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6291 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6292 if test -n "$DSYMUTIL"; then
6293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6294 $as_echo "$DSYMUTIL" >&6; }
6296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6297 $as_echo "no" >&6; }
6302 if test -z "$ac_cv_prog_DSYMUTIL"; then
6303 ac_ct_DSYMUTIL=$DSYMUTIL
6304 # Extract the first word of "dsymutil", so it can be a program name with args.
6305 set dummy dsymutil; ac_word=$2
6306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6307 $as_echo_n "checking for $ac_word... " >&6; }
6308 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6309 $as_echo_n "(cached) " >&6
6311 if test -n "$ac_ct_DSYMUTIL"; then
6312 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6318 test -z "$as_dir" && as_dir=.
6319 for ac_exec_ext in '' $ac_executable_extensions; do
6320 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6321 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6322 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6331 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6332 if test -n "$ac_ct_DSYMUTIL"; then
6333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6334 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6337 $as_echo "no" >&6; }
6340 if test "x$ac_ct_DSYMUTIL" = x; then
6343 case $cross_compiling:$ac_tool_warned in
6345 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6346 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6347 ac_tool_warned=yes ;;
6349 DSYMUTIL=$ac_ct_DSYMUTIL
6352 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6355 if test -n "$ac_tool_prefix"; then
6356 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6357 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6359 $as_echo_n "checking for $ac_word... " >&6; }
6360 if ${ac_cv_prog_NMEDIT+:} false; then :
6361 $as_echo_n "(cached) " >&6
6363 if test -n "$NMEDIT"; then
6364 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6370 test -z "$as_dir" && as_dir=.
6371 for ac_exec_ext in '' $ac_executable_extensions; do
6372 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6373 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6374 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6383 NMEDIT=$ac_cv_prog_NMEDIT
6384 if test -n "$NMEDIT"; then
6385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6386 $as_echo "$NMEDIT" >&6; }
6388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6389 $as_echo "no" >&6; }
6394 if test -z "$ac_cv_prog_NMEDIT"; then
6395 ac_ct_NMEDIT=$NMEDIT
6396 # Extract the first word of "nmedit", so it can be a program name with args.
6397 set dummy nmedit; ac_word=$2
6398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6399 $as_echo_n "checking for $ac_word... " >&6; }
6400 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6401 $as_echo_n "(cached) " >&6
6403 if test -n "$ac_ct_NMEDIT"; then
6404 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6410 test -z "$as_dir" && as_dir=.
6411 for ac_exec_ext in '' $ac_executable_extensions; do
6412 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6413 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6414 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6423 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6424 if test -n "$ac_ct_NMEDIT"; then
6425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6426 $as_echo "$ac_ct_NMEDIT" >&6; }
6428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6429 $as_echo "no" >&6; }
6432 if test "x$ac_ct_NMEDIT" = x; then
6435 case $cross_compiling:$ac_tool_warned in
6437 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6438 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6439 ac_tool_warned=yes ;;
6441 NMEDIT=$ac_ct_NMEDIT
6444 NMEDIT="$ac_cv_prog_NMEDIT"
6447 if test -n "$ac_tool_prefix"; then
6448 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6449 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6451 $as_echo_n "checking for $ac_word... " >&6; }
6452 if ${ac_cv_prog_LIPO+:} false; then :
6453 $as_echo_n "(cached) " >&6
6455 if test -n "$LIPO"; then
6456 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6462 test -z "$as_dir" && as_dir=.
6463 for ac_exec_ext in '' $ac_executable_extensions; do
6464 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6465 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6466 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6475 LIPO=$ac_cv_prog_LIPO
6476 if test -n "$LIPO"; then
6477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6478 $as_echo "$LIPO" >&6; }
6480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6481 $as_echo "no" >&6; }
6486 if test -z "$ac_cv_prog_LIPO"; then
6488 # Extract the first word of "lipo", so it can be a program name with args.
6489 set dummy lipo; ac_word=$2
6490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6491 $as_echo_n "checking for $ac_word... " >&6; }
6492 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6493 $as_echo_n "(cached) " >&6
6495 if test -n "$ac_ct_LIPO"; then
6496 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6502 test -z "$as_dir" && as_dir=.
6503 for ac_exec_ext in '' $ac_executable_extensions; do
6504 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6505 ac_cv_prog_ac_ct_LIPO="lipo"
6506 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6515 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6516 if test -n "$ac_ct_LIPO"; then
6517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6518 $as_echo "$ac_ct_LIPO" >&6; }
6520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6521 $as_echo "no" >&6; }
6524 if test "x$ac_ct_LIPO" = x; then
6527 case $cross_compiling:$ac_tool_warned in
6529 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6530 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6531 ac_tool_warned=yes ;;
6536 LIPO="$ac_cv_prog_LIPO"
6539 if test -n "$ac_tool_prefix"; then
6540 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6541 set dummy ${ac_tool_prefix}otool; ac_word=$2
6542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6543 $as_echo_n "checking for $ac_word... " >&6; }
6544 if ${ac_cv_prog_OTOOL+:} false; then :
6545 $as_echo_n "(cached) " >&6
6547 if test -n "$OTOOL"; then
6548 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6554 test -z "$as_dir" && as_dir=.
6555 for ac_exec_ext in '' $ac_executable_extensions; do
6556 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6557 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6558 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6567 OTOOL=$ac_cv_prog_OTOOL
6568 if test -n "$OTOOL"; then
6569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6570 $as_echo "$OTOOL" >&6; }
6572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6573 $as_echo "no" >&6; }
6578 if test -z "$ac_cv_prog_OTOOL"; then
6580 # Extract the first word of "otool", so it can be a program name with args.
6581 set dummy otool; ac_word=$2
6582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6583 $as_echo_n "checking for $ac_word... " >&6; }
6584 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6585 $as_echo_n "(cached) " >&6
6587 if test -n "$ac_ct_OTOOL"; then
6588 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6594 test -z "$as_dir" && as_dir=.
6595 for ac_exec_ext in '' $ac_executable_extensions; do
6596 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6597 ac_cv_prog_ac_ct_OTOOL="otool"
6598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6607 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6608 if test -n "$ac_ct_OTOOL"; then
6609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6610 $as_echo "$ac_ct_OTOOL" >&6; }
6612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6613 $as_echo "no" >&6; }
6616 if test "x$ac_ct_OTOOL" = x; then
6619 case $cross_compiling:$ac_tool_warned in
6621 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6622 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6623 ac_tool_warned=yes ;;
6628 OTOOL="$ac_cv_prog_OTOOL"
6631 if test -n "$ac_tool_prefix"; then
6632 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6633 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6635 $as_echo_n "checking for $ac_word... " >&6; }
6636 if ${ac_cv_prog_OTOOL64+:} false; then :
6637 $as_echo_n "(cached) " >&6
6639 if test -n "$OTOOL64"; then
6640 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6646 test -z "$as_dir" && as_dir=.
6647 for ac_exec_ext in '' $ac_executable_extensions; do
6648 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6649 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6659 OTOOL64=$ac_cv_prog_OTOOL64
6660 if test -n "$OTOOL64"; then
6661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6662 $as_echo "$OTOOL64" >&6; }
6664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6665 $as_echo "no" >&6; }
6670 if test -z "$ac_cv_prog_OTOOL64"; then
6671 ac_ct_OTOOL64=$OTOOL64
6672 # Extract the first word of "otool64", so it can be a program name with args.
6673 set dummy otool64; ac_word=$2
6674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6675 $as_echo_n "checking for $ac_word... " >&6; }
6676 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6677 $as_echo_n "(cached) " >&6
6679 if test -n "$ac_ct_OTOOL64"; then
6680 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6686 test -z "$as_dir" && as_dir=.
6687 for ac_exec_ext in '' $ac_executable_extensions; do
6688 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6689 ac_cv_prog_ac_ct_OTOOL64="otool64"
6690 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6699 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6700 if test -n "$ac_ct_OTOOL64"; then
6701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6702 $as_echo "$ac_ct_OTOOL64" >&6; }
6704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6705 $as_echo "no" >&6; }
6708 if test "x$ac_ct_OTOOL64" = x; then
6711 case $cross_compiling:$ac_tool_warned in
6713 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6714 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6715 ac_tool_warned=yes ;;
6717 OTOOL64=$ac_ct_OTOOL64
6720 OTOOL64="$ac_cv_prog_OTOOL64"
6749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6750 $as_echo_n "checking for -single_module linker flag... " >&6; }
6751 if ${lt_cv_apple_cc_single_mod+:} false; then :
6752 $as_echo_n "(cached) " >&6
6754 lt_cv_apple_cc_single_mod=no
6755 if test -z "${LT_MULTI_MODULE}"; then
6756 # By default we will add the -single_module flag. You can override
6757 # by either setting the environment variable LT_MULTI_MODULE
6758 # non-empty at configure time, or by adding -multi_module to the
6760 rm -rf libconftest.dylib*
6761 echo "int foo(void){return 1;}" > conftest.c
6762 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6763 -dynamiclib -Wl,-single_module conftest.c" >&5
6764 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6765 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6767 # If there is a non-empty error log, and "single_module"
6768 # appears in it, assume the flag caused a linker warning
6769 if test -s conftest.err && $GREP single_module conftest.err; then
6770 cat conftest.err >&5
6771 # Otherwise, if the output was created with a 0 exit code from
6772 # the compiler, it worked.
6773 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
6774 lt_cv_apple_cc_single_mod=yes
6776 cat conftest.err >&5
6778 rm -rf libconftest.dylib*
6782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6783 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6786 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6787 if ${lt_cv_ld_exported_symbols_list+:} false; then :
6788 $as_echo_n "(cached) " >&6
6790 lt_cv_ld_exported_symbols_list=no
6791 save_LDFLAGS=$LDFLAGS
6792 echo "_main" > conftest.sym
6793 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6795 /* end confdefs.h. */
6805 if ac_fn_c_try_link "$LINENO"; then :
6806 lt_cv_ld_exported_symbols_list=yes
6808 lt_cv_ld_exported_symbols_list=no
6810 rm -f core conftest.err conftest.$ac_objext \
6811 conftest$ac_exeext conftest.$ac_ext
6812 LDFLAGS="$save_LDFLAGS"
6815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6816 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6819 $as_echo_n "checking for -force_load linker flag... " >&6; }
6820 if ${lt_cv_ld_force_load+:} false; then :
6821 $as_echo_n "(cached) " >&6
6823 lt_cv_ld_force_load=no
6824 cat > conftest.c << _LT_EOF
6825 int forced_loaded() { return 2;}
6827 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6828 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6829 echo "$AR cru libconftest.a conftest.o" >&5
6830 $AR cru libconftest.a conftest.o 2>&5
6831 echo "$RANLIB libconftest.a" >&5
6832 $RANLIB libconftest.a 2>&5
6833 cat > conftest.c << _LT_EOF
6834 int main() { return 0;}
6836 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6837 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6839 if test -s conftest.err && $GREP force_load conftest.err; then
6840 cat conftest.err >&5
6841 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
6842 lt_cv_ld_force_load=yes
6844 cat conftest.err >&5
6846 rm -f conftest.err libconftest.a conftest conftest.c
6847 rm -rf conftest.dSYM
6850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
6851 $as_echo "$lt_cv_ld_force_load" >&6; }
6853 rhapsody* | darwin1.[012])
6854 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6856 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6857 darwin*) # darwin 5.x on
6858 # if running on 10.5 or later, the deployment target defaults
6859 # to the OS version, if on x86, and 10.4, the deployment
6860 # target defaults to 10.4. Don't you love it?
6861 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6862 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6863 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6865 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6867 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6871 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6872 _lt_dar_single_mod='$single_module'
6874 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6875 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6877 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6879 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
6880 _lt_dsymutil='~$DSYMUTIL $lib || :'
6888 ac_cpp='$CPP $CPPFLAGS'
6889 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6890 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6891 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6893 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6894 # On Suns, sometimes $CPP names a directory.
6895 if test -n "$CPP" && test -d "$CPP"; then
6898 if test -z "$CPP"; then
6899 if ${ac_cv_prog_CPP+:} false; then :
6900 $as_echo_n "(cached) " >&6
6902 # Double quotes because CPP needs to be expanded
6903 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6906 for ac_c_preproc_warn_flag in '' yes
6908 # Use a header file that comes with gcc, so configuring glibc
6909 # with a fresh cross-compiler works.
6910 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6911 # <limits.h> exists even on freestanding compilers.
6912 # On the NeXT, cc -E runs the code through the compiler's parser,
6913 # not just through cpp. "Syntax error" is here to catch this case.
6914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6915 /* end confdefs.h. */
6917 # include <limits.h>
6919 # include <assert.h>
6923 if ac_fn_c_try_cpp "$LINENO"; then :
6926 # Broken: fails on valid input.
6929 rm -f conftest.err conftest.i conftest.$ac_ext
6931 # OK, works on sane cases. Now check whether nonexistent headers
6932 # can be detected and how.
6933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6934 /* end confdefs.h. */
6935 #include <ac_nonexistent.h>
6937 if ac_fn_c_try_cpp "$LINENO"; then :
6938 # Broken: success on invalid input.
6941 # Passes both tests.
6945 rm -f conftest.err conftest.i conftest.$ac_ext
6948 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6949 rm -f conftest.i conftest.err conftest.$ac_ext
6950 if $ac_preproc_ok; then :
6962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6963 $as_echo "$CPP" >&6; }
6965 for ac_c_preproc_warn_flag in '' yes
6967 # Use a header file that comes with gcc, so configuring glibc
6968 # with a fresh cross-compiler works.
6969 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6970 # <limits.h> exists even on freestanding compilers.
6971 # On the NeXT, cc -E runs the code through the compiler's parser,
6972 # not just through cpp. "Syntax error" is here to catch this case.
6973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6974 /* end confdefs.h. */
6976 # include <limits.h>
6978 # include <assert.h>
6982 if ac_fn_c_try_cpp "$LINENO"; then :
6985 # Broken: fails on valid input.
6988 rm -f conftest.err conftest.i conftest.$ac_ext
6990 # OK, works on sane cases. Now check whether nonexistent headers
6991 # can be detected and how.
6992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6993 /* end confdefs.h. */
6994 #include <ac_nonexistent.h>
6996 if ac_fn_c_try_cpp "$LINENO"; then :
6997 # Broken: success on invalid input.
7000 # Passes both tests.
7004 rm -f conftest.err conftest.i conftest.$ac_ext
7007 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7008 rm -f conftest.i conftest.err conftest.$ac_ext
7009 if $ac_preproc_ok; then :
7012 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7013 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7014 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7015 See \`config.log' for more details" "$LINENO" 5; }
7019 ac_cpp='$CPP $CPPFLAGS'
7020 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7021 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7022 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7026 $as_echo_n "checking for ANSI C header files... " >&6; }
7027 if ${ac_cv_header_stdc+:} false; then :
7028 $as_echo_n "(cached) " >&6
7030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7031 /* end confdefs.h. */
7045 if ac_fn_c_try_compile "$LINENO"; then :
7046 ac_cv_header_stdc=yes
7048 ac_cv_header_stdc=no
7050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7052 if test $ac_cv_header_stdc = yes; then
7053 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7055 /* end confdefs.h. */
7059 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7060 $EGREP "memchr" >/dev/null 2>&1; then :
7063 ac_cv_header_stdc=no
7069 if test $ac_cv_header_stdc = yes; then
7070 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7072 /* end confdefs.h. */
7076 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7077 $EGREP "free" >/dev/null 2>&1; then :
7080 ac_cv_header_stdc=no
7086 if test $ac_cv_header_stdc = yes; then
7087 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7088 if test "$cross_compiling" = yes; then :
7091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7092 /* end confdefs.h. */
7095 #if ((' ' & 0x0FF) == 0x020)
7096 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7097 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7099 # define ISLOWER(c) \
7100 (('a' <= (c) && (c) <= 'i') \
7101 || ('j' <= (c) && (c) <= 'r') \
7102 || ('s' <= (c) && (c) <= 'z'))
7103 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7106 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7111 for (i = 0; i < 256; i++)
7112 if (XOR (islower (i), ISLOWER (i))
7113 || toupper (i) != TOUPPER (i))
7118 if ac_fn_c_try_run "$LINENO"; then :
7121 ac_cv_header_stdc=no
7123 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7124 conftest.$ac_objext conftest.beam conftest.$ac_ext
7129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7130 $as_echo "$ac_cv_header_stdc" >&6; }
7131 if test $ac_cv_header_stdc = yes; then
7133 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7137 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7138 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7139 inttypes.h stdint.h unistd.h
7141 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7142 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7144 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7145 cat >>confdefs.h <<_ACEOF
7146 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7154 for ac_header in dlfcn.h
7156 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7158 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7159 cat >>confdefs.h <<_ACEOF
7160 #define HAVE_DLFCN_H 1
7180 # Check whether --enable-shared was given.
7181 if test "${enable_shared+set}" = set; then :
7182 enableval=$enable_shared; p=${PACKAGE-default}
7184 yes) enable_shared=yes ;;
7185 no) enable_shared=no ;;
7188 # Look at the argument we got. We use all the common list separators.
7189 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7190 for pkg in $enableval; do
7192 if test "X$pkg" = "X$p"; then
7211 # Check whether --enable-static was given.
7212 if test "${enable_static+set}" = set; then :
7213 enableval=$enable_static; p=${PACKAGE-default}
7215 yes) enable_static=yes ;;
7216 no) enable_static=no ;;
7219 # Look at the argument we got. We use all the common list separators.
7220 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7221 for pkg in $enableval; do
7223 if test "X$pkg" = "X$p"; then
7243 # Check whether --with-pic was given.
7244 if test "${with_pic+set}" = set; then :
7245 withval=$with_pic; lt_p=${PACKAGE-default}
7247 yes|no) pic_mode=$withval ;;
7250 # Look at the argument we got. We use all the common list separators.
7251 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7252 for lt_pkg in $withval; do
7254 if test "X$lt_pkg" = "X$lt_p"; then
7266 test -z "$pic_mode" && pic_mode=default
7274 # Check whether --enable-fast-install was given.
7275 if test "${enable_fast_install+set}" = set; then :
7276 enableval=$enable_fast_install; p=${PACKAGE-default}
7278 yes) enable_fast_install=yes ;;
7279 no) enable_fast_install=no ;;
7281 enable_fast_install=no
7282 # Look at the argument we got. We use all the common list separators.
7283 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7284 for pkg in $enableval; do
7286 if test "X$pkg" = "X$p"; then
7287 enable_fast_install=yes
7294 enable_fast_install=yes
7307 # This can be used to rebuild libtool when needed
7308 LIBTOOL_DEPS="$ltmain"
7310 # Always use our own libtool.
7311 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7342 test -z "$LN_S" && LN_S="ln -s"
7357 if test -n "${ZSH_VERSION+set}" ; then
7358 setopt NO_GLOB_SUBST
7361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7362 $as_echo_n "checking for objdir... " >&6; }
7363 if ${lt_cv_objdir+:} false; then :
7364 $as_echo_n "(cached) " >&6
7366 rm -f .libs 2>/dev/null
7367 mkdir .libs 2>/dev/null
7368 if test -d .libs; then
7371 # MS-DOS does not allow filenames that begin with a dot.
7374 rmdir .libs 2>/dev/null
7376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7377 $as_echo "$lt_cv_objdir" >&6; }
7378 objdir=$lt_cv_objdir
7384 cat >>confdefs.h <<_ACEOF
7385 #define LT_OBJDIR "$lt_cv_objdir/"
7393 # AIX sometimes has problems with the GCC collect2 program. For some
7394 # reason, if we set the COLLECT_NAMES environment variable, the problems
7395 # vanish in a puff of smoke.
7396 if test "X${COLLECT_NAMES+set}" != Xset; then
7398 export COLLECT_NAMES
7405 can_build_shared=yes
7407 # All known linkers require a `.a' archive for static linking (except MSVC,
7408 # which needs '.lib').
7411 with_gnu_ld="$lt_cv_prog_gnu_ld"
7414 old_CFLAGS="$CFLAGS"
7416 # Set sane defaults for various variables
7417 test -z "$CC" && CC=cc
7418 test -z "$LTCC" && LTCC=$CC
7419 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7420 test -z "$LD" && LD=ld
7421 test -z "$ac_objext" && ac_objext=o
7423 for cc_temp in $compiler""; do
7425 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7426 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7431 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7434 # Only perform the check for file, if the check method requires it
7435 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7436 case $deplibs_check_method in
7438 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7440 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7441 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7442 $as_echo_n "(cached) " >&6
7446 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7449 lt_save_MAGIC_CMD="$MAGIC_CMD"
7450 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7451 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7452 for ac_dir in $ac_dummy; do
7454 test -z "$ac_dir" && ac_dir=.
7455 if test -f $ac_dir/${ac_tool_prefix}file; then
7456 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7457 if test -n "$file_magic_test_file"; then
7458 case $deplibs_check_method in
7460 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7461 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7462 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7463 $EGREP "$file_magic_regex" > /dev/null; then
7468 *** Warning: the command libtool uses to detect shared libraries,
7469 *** $file_magic_cmd, produces output that libtool cannot recognize.
7470 *** The result is that libtool may fail to recognize shared libraries
7471 *** as such. This will affect the creation of libtool libraries that
7472 *** depend on shared libraries, but programs linked with such libtool
7473 *** libraries will work regardless of this problem. Nevertheless, you
7474 *** may want to report the problem to your system manager and/or to
7475 *** bug-libtool@gnu.org
7485 MAGIC_CMD="$lt_save_MAGIC_CMD"
7490 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7491 if test -n "$MAGIC_CMD"; then
7492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7493 $as_echo "$MAGIC_CMD" >&6; }
7495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7496 $as_echo "no" >&6; }
7503 if test -z "$lt_cv_path_MAGIC_CMD"; then
7504 if test -n "$ac_tool_prefix"; then
7505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7506 $as_echo_n "checking for file... " >&6; }
7507 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7508 $as_echo_n "(cached) " >&6
7512 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7515 lt_save_MAGIC_CMD="$MAGIC_CMD"
7516 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7517 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7518 for ac_dir in $ac_dummy; do
7520 test -z "$ac_dir" && ac_dir=.
7521 if test -f $ac_dir/file; then
7522 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7523 if test -n "$file_magic_test_file"; then
7524 case $deplibs_check_method in
7526 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7527 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7528 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7529 $EGREP "$file_magic_regex" > /dev/null; then
7534 *** Warning: the command libtool uses to detect shared libraries,
7535 *** $file_magic_cmd, produces output that libtool cannot recognize.
7536 *** The result is that libtool may fail to recognize shared libraries
7537 *** as such. This will affect the creation of libtool libraries that
7538 *** depend on shared libraries, but programs linked with such libtool
7539 *** libraries will work regardless of this problem. Nevertheless, you
7540 *** may want to report the problem to your system manager and/or to
7541 *** bug-libtool@gnu.org
7551 MAGIC_CMD="$lt_save_MAGIC_CMD"
7556 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7557 if test -n "$MAGIC_CMD"; then
7558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7559 $as_echo "$MAGIC_CMD" >&6; }
7561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7562 $as_echo "no" >&6; }
7575 # Use C for the default configuration in the libtool script
7579 ac_cpp='$CPP $CPPFLAGS'
7580 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7581 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7582 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7585 # Source file extension for C test sources.
7588 # Object file extension for compiled C test sources.
7592 # Code to be used in simple compile tests
7593 lt_simple_compile_test_code="int some_variable = 0;"
7595 # Code to be used in simple link tests
7596 lt_simple_link_test_code='int main(){return(0);}'
7604 # If no C compiler was specified, use CC.
7607 # If no C compiler flags were specified, use CFLAGS.
7608 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7610 # Allow CC to be a program name with arguments.
7613 # Save the default compiler, since it gets overwritten when the other
7614 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7615 compiler_DEFAULT=$CC
7617 # save warnings/boilerplate of simple test code
7618 ac_outfile=conftest.$ac_objext
7619 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7620 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7621 _lt_compiler_boilerplate=`cat conftest.err`
7624 ac_outfile=conftest.$ac_objext
7625 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7626 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7627 _lt_linker_boilerplate=`cat conftest.err`
7632 ## There is no encapsulation within the following macros, do not change
7633 ## the running order or otherwise move them around unless you know exactly
7634 ## what you are doing...
7635 if test -n "$compiler"; then
7637 lt_prog_compiler_no_builtin_flag=
7639 if test "$GCC" = yes; then
7640 case $cc_basename in
7642 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7644 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7648 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7649 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7650 $as_echo_n "(cached) " >&6
7652 lt_cv_prog_compiler_rtti_exceptions=no
7653 ac_outfile=conftest.$ac_objext
7654 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7655 lt_compiler_flag="-fno-rtti -fno-exceptions"
7656 # Insert the option either (1) after the last *FLAGS variable, or
7657 # (2) before a word containing "conftest.", or (3) at the end.
7658 # Note that $ac_compile itself does not contain backslashes and begins
7659 # with a dollar sign (not a hyphen), so the echo should work correctly.
7660 # The option is referenced via a variable to avoid confusing sed.
7661 lt_compile=`echo "$ac_compile" | $SED \
7662 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7663 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7664 -e 's:$: $lt_compiler_flag:'`
7665 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7666 (eval "$lt_compile" 2>conftest.err)
7668 cat conftest.err >&5
7669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7670 if (exit $ac_status) && test -s "$ac_outfile"; then
7671 # The compiler can only warn and ignore the option if not recognized
7672 # So say no if there are warnings other than the usual output.
7673 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7674 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7675 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7676 lt_cv_prog_compiler_rtti_exceptions=yes
7682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7683 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7685 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7686 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7698 lt_prog_compiler_wl=
7699 lt_prog_compiler_pic=
7700 lt_prog_compiler_static=
7703 if test "$GCC" = yes; then
7704 lt_prog_compiler_wl='-Wl,'
7705 lt_prog_compiler_static='-static'
7709 # All AIX code is PIC.
7710 if test "$host_cpu" = ia64; then
7711 # AIX 5 now supports IA64 processor
7712 lt_prog_compiler_static='-Bstatic'
7719 # see comment about AmigaOS4 .so support
7720 lt_prog_compiler_pic='-fPIC'
7723 # FIXME: we need at least 68020 code to build shared libraries, but
7724 # adding the `-m68020' flag to GCC prevents building anything better,
7726 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7731 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7732 # PIC is the default for these OSes.
7735 mingw* | cygwin* | pw32* | os2* | cegcc*)
7736 # This hack is so that the source file can tell whether it is being
7737 # built for inclusion in a dll (and should export symbols for example).
7738 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7739 # (--disable-auto-import) libraries
7740 lt_prog_compiler_pic='-DDLL_EXPORT'
7743 darwin* | rhapsody*)
7744 # PIC is the default on this platform
7745 # Common symbols not allowed in MH_DYLIB files
7746 lt_prog_compiler_pic='-fno-common'
7750 # PIC is the default for Haiku.
7751 # The "-static" flag exists, but is broken.
7752 lt_prog_compiler_static=
7756 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7757 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7758 # sets the default TLS model and affects inlining.
7764 lt_prog_compiler_pic='-fPIC'
7770 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7771 # Instead, we relocate shared libraries at runtime.
7775 # Just because we use GCC doesn't mean we suddenly get shared libraries
7776 # on systems that don't support them.
7777 lt_prog_compiler_can_build_shared=no
7782 # QNX uses GNU C++, but need to define -shared option too, otherwise
7784 lt_prog_compiler_pic='-fPIC -shared'
7788 if test -d /usr/nec; then
7789 lt_prog_compiler_pic=-Kconform_pic
7794 lt_prog_compiler_pic='-fPIC'
7798 case $cc_basename in
7799 nvcc*) # Cuda Compiler Driver 2.2
7800 lt_prog_compiler_wl='-Xlinker '
7801 if test -n "$lt_prog_compiler_pic"; then
7802 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
7807 # PORTME Check for flag to pass linker flags through the system compiler.
7810 lt_prog_compiler_wl='-Wl,'
7811 if test "$host_cpu" = ia64; then
7812 # AIX 5 now supports IA64 processor
7813 lt_prog_compiler_static='-Bstatic'
7815 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7819 mingw* | cygwin* | pw32* | os2* | cegcc*)
7820 # This hack is so that the source file can tell whether it is being
7821 # built for inclusion in a dll (and should export symbols for example).
7822 lt_prog_compiler_pic='-DDLL_EXPORT'
7825 hpux9* | hpux10* | hpux11*)
7826 lt_prog_compiler_wl='-Wl,'
7827 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7834 lt_prog_compiler_pic='+Z'
7837 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7838 lt_prog_compiler_static='${wl}-a ${wl}archive'
7841 irix5* | irix6* | nonstopux*)
7842 lt_prog_compiler_wl='-Wl,'
7843 # PIC (with -KPIC) is the default.
7844 lt_prog_compiler_static='-non_shared'
7847 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7848 case $cc_basename in
7849 # old Intel for x86_64 which still supported -KPIC.
7851 lt_prog_compiler_wl='-Wl,'
7852 lt_prog_compiler_pic='-KPIC'
7853 lt_prog_compiler_static='-static'
7855 # icc used to be incompatible with GCC.
7856 # ICC 10 doesn't accept -KPIC any more.
7858 lt_prog_compiler_wl='-Wl,'
7859 lt_prog_compiler_pic='-fPIC'
7860 lt_prog_compiler_static='-static'
7862 # Lahey Fortran 8.1.
7864 lt_prog_compiler_wl='-Wl,'
7865 lt_prog_compiler_pic='--shared'
7866 lt_prog_compiler_static='--static'
7869 # NAG Fortran compiler
7870 lt_prog_compiler_wl='-Wl,-Wl,,'
7871 lt_prog_compiler_pic='-PIC'
7872 lt_prog_compiler_static='-Bstatic'
7874 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
7875 # Portland Group compilers (*not* the Pentium gcc compiler,
7876 # which looks to be a dead project)
7877 lt_prog_compiler_wl='-Wl,'
7878 lt_prog_compiler_pic='-fpic'
7879 lt_prog_compiler_static='-Bstatic'
7882 lt_prog_compiler_wl='-Wl,'
7883 # All Alpha code is PIC.
7884 lt_prog_compiler_static='-non_shared'
7886 xl* | bgxl* | bgf* | mpixl*)
7887 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
7888 lt_prog_compiler_wl='-Wl,'
7889 lt_prog_compiler_pic='-qpic'
7890 lt_prog_compiler_static='-qstaticlink'
7893 case `$CC -V 2>&1 | sed 5q` in
7894 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
7895 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7896 lt_prog_compiler_pic='-KPIC'
7897 lt_prog_compiler_static='-Bstatic'
7898 lt_prog_compiler_wl=''
7900 *Sun\ F* | *Sun*Fortran*)
7901 lt_prog_compiler_pic='-KPIC'
7902 lt_prog_compiler_static='-Bstatic'
7903 lt_prog_compiler_wl='-Qoption ld '
7907 lt_prog_compiler_pic='-KPIC'
7908 lt_prog_compiler_static='-Bstatic'
7909 lt_prog_compiler_wl='-Wl,'
7911 *Intel*\ [CF]*Compiler*)
7912 lt_prog_compiler_wl='-Wl,'
7913 lt_prog_compiler_pic='-fPIC'
7914 lt_prog_compiler_static='-static'
7917 lt_prog_compiler_wl='-Wl,'
7918 lt_prog_compiler_pic='-fpic'
7919 lt_prog_compiler_static='-Bstatic'
7927 lt_prog_compiler_pic='-KPIC'
7928 lt_prog_compiler_static='-Bstatic'
7932 # QNX uses GNU C++, but need to define -shared option too, otherwise
7934 lt_prog_compiler_pic='-fPIC -shared'
7937 osf3* | osf4* | osf5*)
7938 lt_prog_compiler_wl='-Wl,'
7939 # All OSF/1 code is PIC.
7940 lt_prog_compiler_static='-non_shared'
7944 lt_prog_compiler_static='-non_shared'
7948 lt_prog_compiler_pic='-KPIC'
7949 lt_prog_compiler_static='-Bstatic'
7950 case $cc_basename in
7951 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
7952 lt_prog_compiler_wl='-Qoption ld ';;
7954 lt_prog_compiler_wl='-Wl,';;
7959 lt_prog_compiler_wl='-Qoption ld '
7960 lt_prog_compiler_pic='-PIC'
7961 lt_prog_compiler_static='-Bstatic'
7964 sysv4 | sysv4.2uw2* | sysv4.3*)
7965 lt_prog_compiler_wl='-Wl,'
7966 lt_prog_compiler_pic='-KPIC'
7967 lt_prog_compiler_static='-Bstatic'
7971 if test -d /usr/nec ;then
7972 lt_prog_compiler_pic='-Kconform_pic'
7973 lt_prog_compiler_static='-Bstatic'
7977 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7978 lt_prog_compiler_wl='-Wl,'
7979 lt_prog_compiler_pic='-KPIC'
7980 lt_prog_compiler_static='-Bstatic'
7984 lt_prog_compiler_wl='-Wl,'
7985 lt_prog_compiler_can_build_shared=no
7989 lt_prog_compiler_pic='-pic'
7990 lt_prog_compiler_static='-Bstatic'
7994 lt_prog_compiler_can_build_shared=no
8000 # For platforms which do not support PIC, -DPIC is meaningless:
8002 lt_prog_compiler_pic=
8005 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8010 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8011 if ${lt_cv_prog_compiler_pic+:} false; then :
8012 $as_echo_n "(cached) " >&6
8014 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8017 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8018 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8021 # Check to make sure the PIC flag actually works.
8023 if test -n "$lt_prog_compiler_pic"; then
8024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8025 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8026 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8027 $as_echo_n "(cached) " >&6
8029 lt_cv_prog_compiler_pic_works=no
8030 ac_outfile=conftest.$ac_objext
8031 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8032 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8033 # Insert the option either (1) after the last *FLAGS variable, or
8034 # (2) before a word containing "conftest.", or (3) at the end.
8035 # Note that $ac_compile itself does not contain backslashes and begins
8036 # with a dollar sign (not a hyphen), so the echo should work correctly.
8037 # The option is referenced via a variable to avoid confusing sed.
8038 lt_compile=`echo "$ac_compile" | $SED \
8039 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8040 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8041 -e 's:$: $lt_compiler_flag:'`
8042 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8043 (eval "$lt_compile" 2>conftest.err)
8045 cat conftest.err >&5
8046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8047 if (exit $ac_status) && test -s "$ac_outfile"; then
8048 # The compiler can only warn and ignore the option if not recognized
8049 # So say no if there are warnings other than the usual output.
8050 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8051 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8052 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8053 lt_cv_prog_compiler_pic_works=yes
8059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8060 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8062 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8063 case $lt_prog_compiler_pic in
8065 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8068 lt_prog_compiler_pic=
8069 lt_prog_compiler_can_build_shared=no
8085 # Check to make sure the static flag actually works.
8087 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8089 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8090 if ${lt_cv_prog_compiler_static_works+:} false; then :
8091 $as_echo_n "(cached) " >&6
8093 lt_cv_prog_compiler_static_works=no
8094 save_LDFLAGS="$LDFLAGS"
8095 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8096 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8097 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8098 # The linker can only warn and ignore the option if not recognized
8099 # So say no if there are warnings
8100 if test -s conftest.err; then
8101 # Append any errors to the config.log.
8102 cat conftest.err 1>&5
8103 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8104 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8105 if diff conftest.exp conftest.er2 >/dev/null; then
8106 lt_cv_prog_compiler_static_works=yes
8109 lt_cv_prog_compiler_static_works=yes
8113 LDFLAGS="$save_LDFLAGS"
8116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8117 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8119 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8122 lt_prog_compiler_static=
8131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8132 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8133 if ${lt_cv_prog_compiler_c_o+:} false; then :
8134 $as_echo_n "(cached) " >&6
8136 lt_cv_prog_compiler_c_o=no
8137 $RM -r conftest 2>/dev/null
8141 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8143 lt_compiler_flag="-o out/conftest2.$ac_objext"
8144 # Insert the option either (1) after the last *FLAGS variable, or
8145 # (2) before a word containing "conftest.", or (3) at the end.
8146 # Note that $ac_compile itself does not contain backslashes and begins
8147 # with a dollar sign (not a hyphen), so the echo should work correctly.
8148 lt_compile=`echo "$ac_compile" | $SED \
8149 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8150 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8151 -e 's:$: $lt_compiler_flag:'`
8152 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8153 (eval "$lt_compile" 2>out/conftest.err)
8155 cat out/conftest.err >&5
8156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8157 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8159 # The compiler can only warn and ignore the option if not recognized
8160 # So say no if there are warnings
8161 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8162 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8163 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8164 lt_cv_prog_compiler_c_o=yes
8169 # SGI C++ compiler will create directory out/ii_files/ for
8170 # template instantiation
8171 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8172 $RM out/* && rmdir out
8178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8179 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8187 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8188 if ${lt_cv_prog_compiler_c_o+:} false; then :
8189 $as_echo_n "(cached) " >&6
8191 lt_cv_prog_compiler_c_o=no
8192 $RM -r conftest 2>/dev/null
8196 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8198 lt_compiler_flag="-o out/conftest2.$ac_objext"
8199 # Insert the option either (1) after the last *FLAGS variable, or
8200 # (2) before a word containing "conftest.", or (3) at the end.
8201 # Note that $ac_compile itself does not contain backslashes and begins
8202 # with a dollar sign (not a hyphen), so the echo should work correctly.
8203 lt_compile=`echo "$ac_compile" | $SED \
8204 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8205 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8206 -e 's:$: $lt_compiler_flag:'`
8207 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8208 (eval "$lt_compile" 2>out/conftest.err)
8210 cat out/conftest.err >&5
8211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8212 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8214 # The compiler can only warn and ignore the option if not recognized
8215 # So say no if there are warnings
8216 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8217 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8218 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8219 lt_cv_prog_compiler_c_o=yes
8224 # SGI C++ compiler will create directory out/ii_files/ for
8225 # template instantiation
8226 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8227 $RM out/* && rmdir out
8233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8234 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8239 hard_links="nottested"
8240 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8241 # do not overwrite the value of need_locks provided by the user
8242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8243 $as_echo_n "checking if we can lock with hard links... " >&6; }
8246 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8248 ln conftest.a conftest.b 2>&5 || hard_links=no
8249 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8251 $as_echo "$hard_links" >&6; }
8252 if test "$hard_links" = no; then
8253 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8254 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8267 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8270 allow_undefined_flag=
8271 always_export_symbols=no
8273 archive_expsym_cmds=
8274 compiler_needs_object=no
8275 enable_shared_with_static_runtimes=no
8276 export_dynamic_flag_spec=
8277 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8278 hardcode_automatic=no
8280 hardcode_direct_absolute=no
8281 hardcode_libdir_flag_spec=
8282 hardcode_libdir_separator=
8284 hardcode_shlibpath_var=unsupported
8286 link_all_deplibs=unknown
8289 old_archive_from_new_cmds=
8290 old_archive_from_expsyms_cmds=
8291 thread_safe_flag_spec=
8292 whole_archive_flag_spec=
8293 # include_expsyms should be a list of space-separated symbols to be *always*
8294 # included in the symbol list
8296 # exclude_expsyms can be an extended regexp of symbols to exclude
8297 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8298 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8299 # as well as any symbol that contains `d'.
8300 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8301 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8302 # platforms (ab)use it in PIC code, but their linkers get confused if
8303 # the symbol is explicitly referenced. Since portable code cannot
8304 # rely on this symbol name, it's probably fine to never include it in
8305 # preloaded symbol tables.
8306 # Exclude shared library initialization/finalization symbols.
8307 extract_expsyms_cmds=
8310 cygwin* | mingw* | pw32* | cegcc*)
8311 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8312 # When not using gcc, we currently assume that we are using
8313 # Microsoft Visual C++.
8314 if test "$GCC" != yes; then
8319 # we just hope/assume this is gcc and not c89 (= MSVC++)
8329 # On some targets, GNU ld is compatible enough with the native linker
8330 # that we're better off using the native interface for both.
8331 lt_use_gnu_ld_interface=no
8332 if test "$with_gnu_ld" = yes; then
8335 # The AIX port of GNU ld has always aspired to compatibility
8336 # with the native linker. However, as the warning in the GNU ld
8337 # block says, versions before 2.19.5* couldn't really create working
8338 # shared libraries, regardless of the interface used.
8339 case `$LD -v 2>&1` in
8340 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8341 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8342 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8344 lt_use_gnu_ld_interface=yes
8349 lt_use_gnu_ld_interface=yes
8354 if test "$lt_use_gnu_ld_interface" = yes; then
8355 # If archive_cmds runs LD, not CC, wlarc should be empty
8358 # Set some defaults for GNU ld with shared library support. These
8359 # are reset later if shared libraries are not supported. Putting them
8360 # here allows them to be overridden if necessary.
8361 runpath_var=LD_RUN_PATH
8362 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8363 export_dynamic_flag_spec='${wl}--export-dynamic'
8364 # ancient GNU ld didn't support --whole-archive et. al.
8365 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8366 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8368 whole_archive_flag_spec=
8370 supports_anon_versioning=no
8371 case `$LD -v 2>&1` in
8372 *GNU\ gold*) supports_anon_versioning=yes ;;
8373 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8374 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8375 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8376 *\ 2.11.*) ;; # other 2.11 versions
8377 *) supports_anon_versioning=yes ;;
8380 # See if GNU ld supports shared libraries.
8383 # On AIX/PPC, the GNU linker is very broken
8384 if test "$host_cpu" != ia64; then
8388 *** Warning: the GNU linker, at least up to release 2.19, is reported
8389 *** to be unable to reliably create shared libraries on AIX.
8390 *** Therefore, libtool is disabling shared libraries support. If you
8391 *** really care for shared libraries, you may want to install binutils
8392 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8393 *** You will then need to restart the configuration process.
8402 # see comment about AmigaOS4 .so support
8403 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8404 archive_expsym_cmds=''
8407 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)'
8408 hardcode_libdir_flag_spec='-L$libdir'
8409 hardcode_minus_L=yes
8415 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8416 allow_undefined_flag=unsupported
8417 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8418 # support --undefined. This deserves some investigation. FIXME
8419 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8425 cygwin* | mingw* | pw32* | cegcc*)
8426 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8427 # as there is no search path for DLLs.
8428 hardcode_libdir_flag_spec='-L$libdir'
8429 export_dynamic_flag_spec='${wl}--export-all-symbols'
8430 allow_undefined_flag=unsupported
8431 always_export_symbols=no
8432 enable_shared_with_static_runtimes=yes
8433 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'
8434 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8436 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8437 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8438 # If the export-symbols file already is a .def file (1st line
8439 # is EXPORTS), use it as is; otherwise, prepend...
8440 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8441 cp $export_symbols $output_objdir/$soname.def;
8443 echo EXPORTS > $output_objdir/$soname.def;
8444 cat $export_symbols >> $output_objdir/$soname.def;
8446 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8453 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8454 link_all_deplibs=yes
8459 hardcode_shlibpath_var=no
8460 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8461 export_dynamic_flag_spec='${wl}-E'
8462 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8463 # Instead, shared libraries are loaded at an image base (0x10000000 by
8464 # default) and relocated if they conflict, which is a slow very memory
8465 # consuming and fragmenting process. To avoid this, we pick a random,
8466 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8467 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8468 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8469 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'
8472 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8474 if test "$host_os" = linux-dietlibc; then
8475 case $cc_basename in
8476 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8479 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8480 && test "$tmp_diet" = no
8482 tmp_addflag=' $pic_flag'
8483 tmp_sharedflag='-shared'
8484 case $cc_basename,$host_cpu in
8485 pgcc*) # Portland Group C compiler
8486 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'
8487 tmp_addflag=' $pic_flag'
8489 pgf77* | pgf90* | pgf95* | pgfortran*)
8490 # Portland Group f77 and f90 compilers
8491 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'
8492 tmp_addflag=' $pic_flag -Mnomain' ;;
8493 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8494 tmp_addflag=' -i_dynamic' ;;
8495 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8496 tmp_addflag=' -i_dynamic -nofor_main' ;;
8497 ifc* | ifort*) # Intel Fortran compiler
8498 tmp_addflag=' -nofor_main' ;;
8499 lf95*) # Lahey Fortran 8.1
8500 whole_archive_flag_spec=
8501 tmp_sharedflag='--shared' ;;
8502 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8503 tmp_sharedflag='-qmkshrobj'
8505 nvcc*) # Cuda Compiler Driver 2.2
8506 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'
8507 compiler_needs_object=yes
8510 case `$CC -V 2>&1 | sed 5q` in
8511 *Sun\ C*) # Sun C 5.9
8512 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'
8513 compiler_needs_object=yes
8514 tmp_sharedflag='-G' ;;
8515 *Sun\ F*) # Sun Fortran 8.3
8516 tmp_sharedflag='-G' ;;
8518 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8520 if test "x$supports_anon_versioning" = xyes; then
8521 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8522 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8523 echo "local: *; };" >> $output_objdir/$libname.ver~
8524 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8527 case $cc_basename in
8528 xlf* | bgf* | bgxlf* | mpixlf*)
8529 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8530 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8531 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8532 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8533 if test "x$supports_anon_versioning" = xyes; then
8534 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8535 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8536 echo "local: *; };" >> $output_objdir/$libname.ver~
8537 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8547 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8548 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8551 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8552 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8557 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8561 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8562 *** create shared libraries on Solaris systems. Therefore, libtool
8563 *** is disabling shared libraries support. We urge you to upgrade GNU
8564 *** binutils to release 2.9.1 or newer. Another option is to modify
8565 *** your PATH or compiler configuration so that the native linker is
8566 *** used, and then restart.
8569 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8570 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8571 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8577 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8578 case `$LD -v 2>&1` in
8579 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8583 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8584 *** reliably create shared libraries on SCO systems. Therefore, libtool
8585 *** is disabling shared libraries support. We urge you to upgrade GNU
8586 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8587 *** your PATH or compiler configuration so that the native linker is
8588 *** used, and then restart.
8593 # For security reasons, it is highly recommended that you always
8594 # use absolute paths for naming shared libraries, and exclude the
8595 # DT_RUNPATH tag from executables and libraries. But doing so
8596 # requires that you compile everything twice, which is a pain.
8597 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8598 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8599 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8600 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8609 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8612 hardcode_shlibpath_var=no
8616 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8617 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8618 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8625 if test "$ld_shlibs" = no; then
8627 hardcode_libdir_flag_spec=
8628 export_dynamic_flag_spec=
8629 whole_archive_flag_spec=
8632 # PORTME fill in a description of your system's linker (not GNU ld)
8635 allow_undefined_flag=unsupported
8636 always_export_symbols=yes
8637 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'
8638 # Note: this linker hardcodes the directories in LIBPATH if there
8639 # are no directories specified by -L.
8640 hardcode_minus_L=yes
8641 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8642 # Neither direct hardcoding nor static linking is supported with a
8644 hardcode_direct=unsupported
8649 if test "$host_cpu" = ia64; then
8650 # On IA64, the linker does run time linking by default, so we don't
8651 # have to do anything special.
8652 aix_use_runtimelinking=no
8653 exp_sym_flag='-Bexport'
8656 # If we're using GNU nm, then we don't want the "-C" option.
8657 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8658 # Also, AIX nm treats weak defined symbols like other global
8659 # defined symbols, whereas GNU nm marks them as "W".
8660 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8661 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'
8663 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'
8665 aix_use_runtimelinking=no
8667 # Test if we are trying to use run time linking or normal
8668 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8669 # need to do runtime linking.
8670 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8671 for ld_flag in $LDFLAGS; do
8672 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8673 aix_use_runtimelinking=yes
8680 exp_sym_flag='-bexport'
8681 no_entry_flag='-bnoentry'
8684 # When large executables or shared objects are built, AIX ld can
8685 # have problems creating the table of contents. If linking a library
8686 # or program results in "error TOC overflow" add -mminimal-toc to
8687 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8688 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8692 hardcode_direct_absolute=yes
8693 hardcode_libdir_separator=':'
8694 link_all_deplibs=yes
8695 file_list_spec='${wl}-f,'
8697 if test "$GCC" = yes; then
8698 case $host_os in aix4.[012]|aix4.[012].*)
8699 # We only want to do this on AIX 4.2 and lower, the check
8700 # below for broken collect2 doesn't work under 4.3+
8701 collect2name=`${CC} -print-prog-name=collect2`
8702 if test -f "$collect2name" &&
8703 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8705 # We have reworked collect2
8708 # We have old collect2
8709 hardcode_direct=unsupported
8710 # It fails to find uninstalled libraries when the uninstalled
8711 # path is not listed in the libpath. Setting hardcode_minus_L
8712 # to unsupported forces relinking
8713 hardcode_minus_L=yes
8714 hardcode_libdir_flag_spec='-L$libdir'
8715 hardcode_libdir_separator=
8719 shared_flag='-shared'
8720 if test "$aix_use_runtimelinking" = yes; then
8721 shared_flag="$shared_flag "'${wl}-G'
8725 if test "$host_cpu" = ia64; then
8726 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8727 # chokes on -Wl,-G. The following line is correct:
8730 if test "$aix_use_runtimelinking" = yes; then
8731 shared_flag='${wl}-G'
8733 shared_flag='${wl}-bM:SRE'
8738 export_dynamic_flag_spec='${wl}-bexpall'
8739 # It seems that -bexpall does not export symbols beginning with
8740 # underscore (_), so it is better to generate a list of symbols to export.
8741 always_export_symbols=yes
8742 if test "$aix_use_runtimelinking" = yes; then
8743 # Warning - without using the other runtime loading flags (-brtl),
8744 # -berok will link without error, but may produce a broken library.
8745 allow_undefined_flag='-berok'
8746 # Determine the default libpath from the value encoded in an
8748 if test "${lt_cv_aix_libpath+set}" = set; then
8749 aix_libpath=$lt_cv_aix_libpath
8751 if ${lt_cv_aix_libpath_+:} false; then :
8752 $as_echo_n "(cached) " >&6
8754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8755 /* end confdefs.h. */
8765 if ac_fn_c_try_link "$LINENO"; then :
8767 lt_aix_libpath_sed='
8768 /Import File Strings/,/^$/ {
8770 s/^0 *\([^ ]*\) *$/\1/
8774 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8775 # Check for a 64-bit object if we didn't find anything.
8776 if test -z "$lt_cv_aix_libpath_"; then
8777 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8780 rm -f core conftest.err conftest.$ac_objext \
8781 conftest$ac_exeext conftest.$ac_ext
8782 if test -z "$lt_cv_aix_libpath_"; then
8783 lt_cv_aix_libpath_="/usr/lib:/lib"
8788 aix_libpath=$lt_cv_aix_libpath_
8791 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8792 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"
8794 if test "$host_cpu" = ia64; then
8795 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8796 allow_undefined_flag="-z nodefs"
8797 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"
8799 # Determine the default libpath from the value encoded in an
8801 if test "${lt_cv_aix_libpath+set}" = set; then
8802 aix_libpath=$lt_cv_aix_libpath
8804 if ${lt_cv_aix_libpath_+:} false; then :
8805 $as_echo_n "(cached) " >&6
8807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8808 /* end confdefs.h. */
8818 if ac_fn_c_try_link "$LINENO"; then :
8820 lt_aix_libpath_sed='
8821 /Import File Strings/,/^$/ {
8823 s/^0 *\([^ ]*\) *$/\1/
8827 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8828 # Check for a 64-bit object if we didn't find anything.
8829 if test -z "$lt_cv_aix_libpath_"; then
8830 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8833 rm -f core conftest.err conftest.$ac_objext \
8834 conftest$ac_exeext conftest.$ac_ext
8835 if test -z "$lt_cv_aix_libpath_"; then
8836 lt_cv_aix_libpath_="/usr/lib:/lib"
8841 aix_libpath=$lt_cv_aix_libpath_
8844 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8845 # Warning - without using the other run time loading flags,
8846 # -berok will link without error, but may produce a broken library.
8847 no_undefined_flag=' ${wl}-bernotok'
8848 allow_undefined_flag=' ${wl}-berok'
8849 if test "$with_gnu_ld" = yes; then
8850 # We only use this code for GNU lds that support --whole-archive.
8851 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8853 # Exported symbols can be pulled into shared objects from archives
8854 whole_archive_flag_spec='$convenience'
8856 archive_cmds_need_lc=yes
8857 # This is similar to how AIX traditionally builds its shared libraries.
8858 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'
8866 # see comment about AmigaOS4 .so support
8867 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8868 archive_expsym_cmds=''
8871 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)'
8872 hardcode_libdir_flag_spec='-L$libdir'
8873 hardcode_minus_L=yes
8879 export_dynamic_flag_spec=-rdynamic
8882 cygwin* | mingw* | pw32* | cegcc*)
8883 # When not using gcc, we currently assume that we are using
8884 # Microsoft Visual C++.
8885 # hardcode_libdir_flag_spec is actually meaningless, as there is
8886 # no search path for DLLs.
8887 case $cc_basename in
8890 hardcode_libdir_flag_spec=' '
8891 allow_undefined_flag=unsupported
8892 always_export_symbols=yes
8894 # Tell ltmain to make .lib files, not .a files.
8896 # Tell ltmain to make .dll files, not .so files.
8898 # FIXME: Setting linknames here is a bad hack.
8899 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
8900 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8901 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
8903 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
8905 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
8907 # The linker will not automatically build a static lib if we build a DLL.
8908 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
8909 enable_shared_with_static_runtimes=yes
8910 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
8911 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8913 old_postinstall_cmds='chmod 644 $oldlib'
8914 postlink_cmds='lt_outputfile="@OUTPUT@"~
8915 lt_tool_outputfile="@TOOL_OUTPUT@"~
8916 case $lt_outputfile in
8919 lt_outputfile="$lt_outputfile.exe"
8920 lt_tool_outputfile="$lt_tool_outputfile.exe"
8923 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
8924 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
8925 $RM "$lt_outputfile.manifest";
8929 # Assume MSVC wrapper
8930 hardcode_libdir_flag_spec=' '
8931 allow_undefined_flag=unsupported
8932 # Tell ltmain to make .lib files, not .a files.
8934 # Tell ltmain to make .dll files, not .so files.
8936 # FIXME: Setting linknames here is a bad hack.
8937 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
8938 # The linker will automatically build a .lib file if we build a DLL.
8939 old_archive_from_new_cmds='true'
8940 # FIXME: Should let the user specify the lib program.
8941 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8942 enable_shared_with_static_runtimes=yes
8947 darwin* | rhapsody*)
8950 archive_cmds_need_lc=no
8952 hardcode_automatic=yes
8953 hardcode_shlibpath_var=unsupported
8954 if test "$lt_cv_ld_force_load" = "yes"; then
8955 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\"`'
8958 whole_archive_flag_spec=''
8960 link_all_deplibs=yes
8961 allow_undefined_flag="$_lt_dar_allow_undefined"
8962 case $cc_basename in
8963 ifort*) _lt_dar_can_shared=yes ;;
8964 *) _lt_dar_can_shared=$GCC ;;
8966 if test "$_lt_dar_can_shared" = "yes"; then
8967 output_verbose_link_cmd=func_echo_all
8968 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8969 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8970 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}"
8971 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}"
8980 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8981 hardcode_libdir_flag_spec='-L$libdir'
8982 hardcode_shlibpath_var=no
8985 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8986 # support. Future versions do this automatically, but an explicit c++rt0.o
8987 # does not break anything, and helps significantly (at the cost of a little
8990 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8991 hardcode_libdir_flag_spec='-R$libdir'
8993 hardcode_shlibpath_var=no
8996 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8998 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9000 hardcode_minus_L=yes
9001 hardcode_shlibpath_var=no
9004 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9005 freebsd* | dragonfly*)
9006 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9007 hardcode_libdir_flag_spec='-R$libdir'
9009 hardcode_shlibpath_var=no
9013 if test "$GCC" = yes; then
9014 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'
9016 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'
9018 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9019 hardcode_libdir_separator=:
9022 # hardcode_minus_L: Not really in the search PATH,
9023 # but as the default location of the library.
9024 hardcode_minus_L=yes
9025 export_dynamic_flag_spec='${wl}-E'
9029 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9030 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9032 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9034 if test "$with_gnu_ld" = no; then
9035 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9036 hardcode_libdir_separator=:
9038 hardcode_direct_absolute=yes
9039 export_dynamic_flag_spec='${wl}-E'
9040 # hardcode_minus_L: Not really in the search PATH,
9041 # but as the default location of the library.
9042 hardcode_minus_L=yes
9047 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9050 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9053 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9056 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9062 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9065 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9069 # Older versions of the 11.00 compiler do not understand -b yet
9070 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9072 $as_echo_n "checking if $CC understands -b... " >&6; }
9073 if ${lt_cv_prog_compiler__b+:} false; then :
9074 $as_echo_n "(cached) " >&6
9076 lt_cv_prog_compiler__b=no
9077 save_LDFLAGS="$LDFLAGS"
9078 LDFLAGS="$LDFLAGS -b"
9079 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9080 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9081 # The linker can only warn and ignore the option if not recognized
9082 # So say no if there are warnings
9083 if test -s conftest.err; then
9084 # Append any errors to the config.log.
9085 cat conftest.err 1>&5
9086 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9087 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9088 if diff conftest.exp conftest.er2 >/dev/null; then
9089 lt_cv_prog_compiler__b=yes
9092 lt_cv_prog_compiler__b=yes
9096 LDFLAGS="$save_LDFLAGS"
9099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9100 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9102 if test x"$lt_cv_prog_compiler__b" = xyes; then
9103 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9105 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9111 if test "$with_gnu_ld" = no; then
9112 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9113 hardcode_libdir_separator=:
9118 hardcode_shlibpath_var=no
9122 hardcode_direct_absolute=yes
9123 export_dynamic_flag_spec='${wl}-E'
9125 # hardcode_minus_L: Not really in the search PATH,
9126 # but as the default location of the library.
9127 hardcode_minus_L=yes
9133 irix5* | irix6* | nonstopux*)
9134 if test "$GCC" = yes; then
9135 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'
9136 # Try to use the -exported_symbol ld option, if it does not
9137 # work, assume that -exports_file does not work either and
9138 # implicitly export all symbols.
9139 # This should be the same for all languages, so no per-tag cache variable.
9140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9141 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9142 if ${lt_cv_irix_exported_symbol+:} false; then :
9143 $as_echo_n "(cached) " >&6
9145 save_LDFLAGS="$LDFLAGS"
9146 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9148 /* end confdefs.h. */
9149 int foo (void) { return 0; }
9151 if ac_fn_c_try_link "$LINENO"; then :
9152 lt_cv_irix_exported_symbol=yes
9154 lt_cv_irix_exported_symbol=no
9156 rm -f core conftest.err conftest.$ac_objext \
9157 conftest$ac_exeext conftest.$ac_ext
9158 LDFLAGS="$save_LDFLAGS"
9160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9161 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9162 if test "$lt_cv_irix_exported_symbol" = yes; then
9163 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'
9166 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'
9167 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'
9169 archive_cmds_need_lc='no'
9170 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9171 hardcode_libdir_separator=:
9173 link_all_deplibs=yes
9177 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9178 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9180 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9182 hardcode_libdir_flag_spec='-R$libdir'
9184 hardcode_shlibpath_var=no
9188 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9190 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9191 hardcode_libdir_separator=:
9192 hardcode_shlibpath_var=no
9199 if test -f /usr/libexec/ld.so; then
9201 hardcode_shlibpath_var=no
9202 hardcode_direct_absolute=yes
9203 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9204 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9205 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9206 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9207 export_dynamic_flag_spec='${wl}-E'
9210 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9211 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9212 hardcode_libdir_flag_spec='-R$libdir'
9215 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9216 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9226 hardcode_libdir_flag_spec='-L$libdir'
9227 hardcode_minus_L=yes
9228 allow_undefined_flag=unsupported
9229 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'
9230 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9234 if test "$GCC" = yes; then
9235 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9236 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'
9238 allow_undefined_flag=' -expect_unresolved \*'
9239 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'
9241 archive_cmds_need_lc='no'
9242 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9243 hardcode_libdir_separator=:
9246 osf4* | osf5*) # as osf3* with the addition of -msym flag
9247 if test "$GCC" = yes; then
9248 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9249 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'
9250 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9252 allow_undefined_flag=' -expect_unresolved \*'
9253 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'
9254 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~
9255 $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'
9257 # Both c and cxx compiler support -rpath directly
9258 hardcode_libdir_flag_spec='-rpath $libdir'
9260 archive_cmds_need_lc='no'
9261 hardcode_libdir_separator=:
9265 no_undefined_flag=' -z defs'
9266 if test "$GCC" = yes; then
9268 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9269 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9270 $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'
9272 case `$CC -V 2>&1` in
9275 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9276 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9277 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9281 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9282 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9283 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9287 hardcode_libdir_flag_spec='-R$libdir'
9288 hardcode_shlibpath_var=no
9290 solaris2.[0-5] | solaris2.[0-5].*) ;;
9292 # The compiler driver will combine and reorder linker options,
9293 # but understands `-z linker_flag'. GCC discards it without `$wl',
9294 # but is careful enough not to reorder.
9295 # Supported since Solaris 2.6 (maybe 2.5.1?)
9296 if test "$GCC" = yes; then
9297 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9299 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9303 link_all_deplibs=yes
9307 if test "x$host_vendor" = xsequent; then
9308 # Use $CC to link under sequent, because it throws in some extra .o
9309 # files that make .init and .fini sections work.
9310 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9312 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9314 hardcode_libdir_flag_spec='-L$libdir'
9316 hardcode_minus_L=yes
9317 hardcode_shlibpath_var=no
9321 case $host_vendor in
9323 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9324 hardcode_direct=yes # is this really true???
9327 ## LD is ld it makes a PLAMLIB
9328 ## CC just makes a GrossModule.
9329 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9330 reload_cmds='$CC -r -o $output$reload_objs'
9334 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9335 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9338 runpath_var='LD_RUN_PATH'
9339 hardcode_shlibpath_var=no
9343 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9344 hardcode_shlibpath_var=no
9345 export_dynamic_flag_spec='-Bexport'
9349 if test -d /usr/nec; then
9350 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9351 hardcode_shlibpath_var=no
9352 runpath_var=LD_RUN_PATH
9353 hardcode_runpath_var=yes
9358 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9359 no_undefined_flag='${wl}-z,text'
9360 archive_cmds_need_lc=no
9361 hardcode_shlibpath_var=no
9362 runpath_var='LD_RUN_PATH'
9364 if test "$GCC" = yes; then
9365 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9366 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9368 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9369 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9373 sysv5* | sco3.2v5* | sco5v6*)
9374 # Note: We can NOT use -z defs as we might desire, because we do not
9375 # link with -lc, and that would cause any symbols used from libc to
9376 # always be unresolved, which means just about no library would
9377 # ever link correctly. If we're not using GNU ld we use -z text
9378 # though, which does catch some bad symbols but isn't as heavy-handed
9380 no_undefined_flag='${wl}-z,text'
9381 allow_undefined_flag='${wl}-z,nodefs'
9382 archive_cmds_need_lc=no
9383 hardcode_shlibpath_var=no
9384 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9385 hardcode_libdir_separator=':'
9386 link_all_deplibs=yes
9387 export_dynamic_flag_spec='${wl}-Bexport'
9388 runpath_var='LD_RUN_PATH'
9390 if test "$GCC" = yes; then
9391 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9392 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9394 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9395 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9400 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9401 hardcode_libdir_flag_spec='-L$libdir'
9402 hardcode_shlibpath_var=no
9410 if test x$host_vendor = xsni; then
9412 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9413 export_dynamic_flag_spec='${wl}-Blargedynsym'
9419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9420 $as_echo "$ld_shlibs" >&6; }
9421 test "$ld_shlibs" = no && can_build_shared=no
9423 with_gnu_ld=$with_gnu_ld
9440 # Do we need to explicitly link libc?
9442 case "x$archive_cmds_need_lc" in
9444 # Assume -lc should be added
9445 archive_cmds_need_lc=yes
9447 if test "$enable_shared" = yes && test "$GCC" = yes; then
9448 case $archive_cmds in
9450 # FIXME: we may have to deal with multi-command sequences.
9453 # Test whether the compiler implicitly links with -lc since on some
9454 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9455 # to ld, don't add -lc before -lgcc.
9456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9457 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9458 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9459 $as_echo_n "(cached) " >&6
9462 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9464 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9465 (eval $ac_compile) 2>&5
9467 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9468 test $ac_status = 0; } 2>conftest.err; then
9471 libobjs=conftest.$ac_objext
9473 wl=$lt_prog_compiler_wl
9474 pic_flag=$lt_prog_compiler_pic
9480 lt_save_allow_undefined_flag=$allow_undefined_flag
9481 allow_undefined_flag=
9482 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9483 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9485 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9486 test $ac_status = 0; }
9488 lt_cv_archive_cmds_need_lc=no
9490 lt_cv_archive_cmds_need_lc=yes
9492 allow_undefined_flag=$lt_save_allow_undefined_flag
9494 cat conftest.err 1>&5
9499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9500 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9501 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9660 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9662 if test "$GCC" = yes; then
9664 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9665 *) lt_awk_arg="/^libraries:/" ;;
9668 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9669 *) lt_sed_strip_eq="s,=/,/,g" ;;
9671 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9672 case $lt_search_path_spec in
9674 # if the path contains ";" then we assume it to be the separator
9675 # otherwise default to the standard path separator (i.e. ":") - it is
9676 # assumed that no part of a normal pathname contains ";" but that should
9677 # okay in the real world where ";" in dirpaths is itself problematic.
9678 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9681 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9684 # Ok, now we have the path, separated by spaces, we can step through it
9685 # and add multilib dir if necessary.
9686 lt_tmp_lt_search_path_spec=
9687 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9688 for lt_sys_path in $lt_search_path_spec; do
9689 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9690 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9692 test -d "$lt_sys_path" && \
9693 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9696 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9697 BEGIN {RS=" "; FS="/|\n";} {
9700 for (lt_i = NF; lt_i > 0; lt_i--) {
9701 if ($lt_i != "" && $lt_i != ".") {
9702 if ($lt_i == "..") {
9705 if (lt_count == 0) {
9706 lt_foo="/" $lt_i lt_foo;
9713 if (lt_foo != "") { lt_freq[lt_foo]++; }
9714 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9716 # AWK program above erroneously prepends '/' to C:/dos/paths
9719 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9720 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9722 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9724 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9727 libname_spec='lib$name'
9735 shlibpath_overrides_runpath=unknown
9737 dynamic_linker="$host_os ld.so"
9738 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9739 need_lib_prefix=unknown
9740 hardcode_into_libs=no
9742 # when you set need_version to no, make sure it does not cause -set_version
9743 # flags to be left without arguments
9744 need_version=unknown
9748 version_type=linux # correct to gnu/linux during the next big refactor
9749 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9750 shlibpath_var=LIBPATH
9752 # AIX 3 has no versioning support, so we append a major version to the name.
9753 soname_spec='${libname}${release}${shared_ext}$major'
9757 version_type=linux # correct to gnu/linux during the next big refactor
9760 hardcode_into_libs=yes
9761 if test "$host_cpu" = ia64; then
9762 # AIX 5 supports IA64
9763 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9764 shlibpath_var=LD_LIBRARY_PATH
9766 # With GCC up to 2.95.x, collect2 would create an import file
9767 # for dependence libraries. The import file would start with
9768 # the line `#! .'. This would cause the generated library to
9769 # depend on `.', always an invalid library. This was fixed in
9770 # development snapshots of GCC prior to 3.0.
9772 aix4 | aix4.[01] | aix4.[01].*)
9773 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9775 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9782 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9783 # soname into executable. Probably we can add versioning support to
9784 # collect2, so additional links can be useful in future.
9785 if test "$aix_use_runtimelinking" = yes; then
9786 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9787 # instead of lib<name>.a to let people know that these are not
9788 # typical AIX shared libraries.
9789 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9791 # We preserve .a as extension for shared libraries through AIX4.2
9792 # and later when we are not doing run time linking.
9793 library_names_spec='${libname}${release}.a $libname.a'
9794 soname_spec='${libname}${release}${shared_ext}$major'
9796 shlibpath_var=LIBPATH
9803 # Since July 2007 AmigaOS4 officially supports .so libraries.
9804 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9805 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9808 library_names_spec='$libname.ixlibrary $libname.a'
9809 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9810 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'
9816 library_names_spec='${libname}${shared_ext}'
9817 dynamic_linker="$host_os ld.so"
9818 shlibpath_var=LIBRARY_PATH
9822 version_type=linux # correct to gnu/linux during the next big refactor
9824 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9825 soname_spec='${libname}${release}${shared_ext}$major'
9826 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9827 shlibpath_var=LD_LIBRARY_PATH
9828 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9829 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9830 # the default ld.so.conf also contains /usr/contrib/lib and
9831 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9832 # libtool to hard-code these into programs
9835 cygwin* | mingw* | pw32* | cegcc*)
9836 version_type=windows
9841 case $GCC,$cc_basename in
9844 library_names_spec='$libname.dll.a'
9845 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9846 postinstall_cmds='base_file=`basename \${file}`~
9847 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9848 dldir=$destdir/`dirname \$dlpath`~
9849 test -d \$dldir || mkdir -p \$dldir~
9850 $install_prog $dir/$dlname \$dldir/$dlname~
9851 chmod a+x \$dldir/$dlname~
9852 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9853 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9855 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9856 dlpath=$dir/\$dldll~
9858 shlibpath_overrides_runpath=yes
9862 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9863 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9865 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9868 # MinGW DLLs use traditional 'lib' prefix
9869 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9872 # pw32 DLLs use 'pw' prefix rather than 'lib'
9873 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9876 dynamic_linker='Win32 ld.exe'
9881 libname_spec='$name'
9882 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9883 library_names_spec='${libname}.dll.lib'
9887 sys_lib_search_path_spec=
9893 # Let DOS variable expansion print the short 8.3 style file name.
9894 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
9895 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
9898 # Convert to MSYS style.
9899 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
9902 # Convert to unix form, then to dos form, then back to unix form
9903 # but this time dos style (no spaces!) so that the unix form looks
9904 # like /cygdrive/c/PROGRA~1:/cygdr...
9905 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
9906 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
9907 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9910 sys_lib_search_path_spec="$LIB"
9911 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9912 # It is most probably a Windows format PATH.
9913 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9915 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9917 # FIXME: find the short name or the path components, as spaces are
9918 # common. (e.g. "Program Files" -> "PROGRA~1")
9922 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9923 postinstall_cmds='base_file=`basename \${file}`~
9924 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9925 dldir=$destdir/`dirname \$dlpath`~
9926 test -d \$dldir || mkdir -p \$dldir~
9927 $install_prog $dir/$dlname \$dldir/$dlname'
9928 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9929 dlpath=$dir/\$dldll~
9931 shlibpath_overrides_runpath=yes
9932 dynamic_linker='Win32 link.exe'
9936 # Assume MSVC wrapper
9937 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9938 dynamic_linker='Win32 ld.exe'
9941 # FIXME: first we should search . and the directory the executable is in
9945 darwin* | rhapsody*)
9946 dynamic_linker="$host_os dyld"
9950 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9951 soname_spec='${libname}${release}${major}$shared_ext'
9952 shlibpath_overrides_runpath=yes
9953 shlibpath_var=DYLD_LIBRARY_PATH
9954 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9956 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9957 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9961 version_type=linux # correct to gnu/linux during the next big refactor
9964 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9965 soname_spec='${libname}${release}${shared_ext}$major'
9966 shlibpath_var=LD_LIBRARY_PATH
9969 freebsd* | dragonfly*)
9970 # DragonFly does not have aout. When/if they implement a new
9971 # versioning mechanism, adjust this.
9972 if test -x /usr/bin/objformat; then
9973 objformat=`/usr/bin/objformat`
9976 freebsd[23].*) objformat=aout ;;
9980 version_type=freebsd-$objformat
9981 case $version_type in
9983 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9988 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9992 shlibpath_var=LD_LIBRARY_PATH
9995 shlibpath_overrides_runpath=yes
9997 freebsd3.[01]* | freebsdelf3.[01]*)
9998 shlibpath_overrides_runpath=yes
9999 hardcode_into_libs=yes
10001 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10002 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10003 shlibpath_overrides_runpath=no
10004 hardcode_into_libs=yes
10006 *) # from 4.6 on, and DragonFly
10007 shlibpath_overrides_runpath=yes
10008 hardcode_into_libs=yes
10014 version_type=linux # correct to gnu/linux during the next big refactor
10017 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10018 soname_spec='${libname}${release}${shared_ext}$major'
10019 shlibpath_var=LD_LIBRARY_PATH
10020 shlibpath_overrides_runpath=no
10021 hardcode_into_libs=yes
10025 version_type=linux # correct to gnu/linux during the next big refactor
10028 dynamic_linker="$host_os runtime_loader"
10029 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10030 soname_spec='${libname}${release}${shared_ext}$major'
10031 shlibpath_var=LIBRARY_PATH
10032 shlibpath_overrides_runpath=yes
10033 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10034 hardcode_into_libs=yes
10037 hpux9* | hpux10* | hpux11*)
10038 # Give a soname corresponding to the major version so that dld.sl refuses to
10039 # link against other versions.
10046 hardcode_into_libs=yes
10047 dynamic_linker="$host_os dld.so"
10048 shlibpath_var=LD_LIBRARY_PATH
10049 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10050 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10051 soname_spec='${libname}${release}${shared_ext}$major'
10052 if test "X$HPUX_IA64_MODE" = X32; then
10053 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10055 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10057 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10061 hardcode_into_libs=yes
10062 dynamic_linker="$host_os dld.sl"
10063 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10064 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10065 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10066 soname_spec='${libname}${release}${shared_ext}$major'
10067 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10068 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10072 dynamic_linker="$host_os dld.sl"
10073 shlibpath_var=SHLIB_PATH
10074 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10076 soname_spec='${libname}${release}${shared_ext}$major'
10079 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10080 postinstall_cmds='chmod 555 $lib'
10081 # or fails outright, so override atomically:
10082 install_override_mode=555
10086 version_type=linux # correct to gnu/linux during the next big refactor
10089 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10090 soname_spec='${libname}${release}${shared_ext}$major'
10091 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10092 shlibpath_var=LD_LIBRARY_PATH
10093 shlibpath_overrides_runpath=no
10094 hardcode_into_libs=yes
10097 irix5* | irix6* | nonstopux*)
10099 nonstopux*) version_type=nonstopux ;;
10101 if test "$lt_cv_prog_gnu_ld" = yes; then
10102 version_type=linux # correct to gnu/linux during the next big refactor
10109 soname_spec='${libname}${release}${shared_ext}$major'
10110 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10112 irix5* | nonstopux*)
10113 libsuff= shlibsuff=
10116 case $LD in # libtool.m4 will add one of these switches to LD
10117 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10118 libsuff= shlibsuff= libmagic=32-bit;;
10119 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10120 libsuff=32 shlibsuff=N32 libmagic=N32;;
10121 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10122 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10123 *) libsuff= shlibsuff= libmagic=never-match;;
10127 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10128 shlibpath_overrides_runpath=no
10129 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10130 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10131 hardcode_into_libs=yes
10134 # No shared lib support for Linux oldld, aout, or coff.
10135 linux*oldld* | linux*aout* | linux*coff*)
10139 # This must be glibc/ELF.
10140 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10141 version_type=linux # correct to gnu/linux during the next big refactor
10144 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10145 soname_spec='${libname}${release}${shared_ext}$major'
10146 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10147 shlibpath_var=LD_LIBRARY_PATH
10148 shlibpath_overrides_runpath=no
10150 # Some binutils ld are patched to set DT_RUNPATH
10151 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10152 $as_echo_n "(cached) " >&6
10154 lt_cv_shlibpath_overrides_runpath=no
10155 save_LDFLAGS=$LDFLAGS
10156 save_libdir=$libdir
10157 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10158 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10160 /* end confdefs.h. */
10170 if ac_fn_c_try_link "$LINENO"; then :
10171 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10172 lt_cv_shlibpath_overrides_runpath=yes
10175 rm -f core conftest.err conftest.$ac_objext \
10176 conftest$ac_exeext conftest.$ac_ext
10177 LDFLAGS=$save_LDFLAGS
10178 libdir=$save_libdir
10182 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10184 # This implies no fast_install, which is unacceptable.
10185 # Some rework will be needed to allow for fast_install
10186 # before this can be enabled.
10187 hardcode_into_libs=yes
10189 # Append ld.so.conf contents to the search path
10190 if test -f /etc/ld.so.conf; then
10191 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' ' '`
10192 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10195 # We used to test for /lib/ld.so.1 and disable shared libraries on
10196 # powerpc, because MkLinux only supported shared libraries with the
10197 # GNU dynamic linker. Since this was broken with cross compilers,
10198 # most powerpc-linux boxes support dynamic linking these days and
10199 # people can always --disable-shared, the test was removed, and we
10200 # assume the GNU/Linux dynamic linker is in use.
10201 dynamic_linker='GNU/Linux ld.so'
10208 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10209 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10210 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10211 dynamic_linker='NetBSD (a.out) ld.so'
10213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10214 soname_spec='${libname}${release}${shared_ext}$major'
10215 dynamic_linker='NetBSD ld.elf_so'
10217 shlibpath_var=LD_LIBRARY_PATH
10218 shlibpath_overrides_runpath=yes
10219 hardcode_into_libs=yes
10223 version_type=linux # correct to gnu/linux during the next big refactor
10224 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10225 shlibpath_var=LD_LIBRARY_PATH
10226 shlibpath_overrides_runpath=yes
10233 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10234 soname_spec='${libname}${release}${shared_ext}$major'
10235 shlibpath_var=LD_LIBRARY_PATH
10236 shlibpath_overrides_runpath=no
10237 hardcode_into_libs=yes
10238 dynamic_linker='ldqnx.so'
10243 sys_lib_dlsearch_path_spec="/usr/lib"
10245 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10247 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10248 *) need_version=no ;;
10250 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10251 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10252 shlibpath_var=LD_LIBRARY_PATH
10253 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10255 openbsd2.[89] | openbsd2.[89].*)
10256 shlibpath_overrides_runpath=no
10259 shlibpath_overrides_runpath=yes
10263 shlibpath_overrides_runpath=yes
10268 libname_spec='$name'
10271 library_names_spec='$libname${shared_ext} $libname.a'
10272 dynamic_linker='OS/2 ld.exe'
10273 shlibpath_var=LIBPATH
10276 osf3* | osf4* | osf5*)
10280 soname_spec='${libname}${release}${shared_ext}$major'
10281 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10282 shlibpath_var=LD_LIBRARY_PATH
10283 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10284 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10292 version_type=linux # correct to gnu/linux during the next big refactor
10295 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10296 soname_spec='${libname}${release}${shared_ext}$major'
10297 shlibpath_var=LD_LIBRARY_PATH
10298 shlibpath_overrides_runpath=yes
10299 hardcode_into_libs=yes
10300 # ldd complains unless libraries are executable
10301 postinstall_cmds='chmod +x $lib'
10306 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10307 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10308 shlibpath_var=LD_LIBRARY_PATH
10309 shlibpath_overrides_runpath=yes
10310 if test "$with_gnu_ld" = yes; then
10317 version_type=linux # correct to gnu/linux during the next big refactor
10318 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10319 soname_spec='${libname}${release}${shared_ext}$major'
10320 shlibpath_var=LD_LIBRARY_PATH
10321 case $host_vendor in
10323 shlibpath_overrides_runpath=no
10325 runpath_var=LD_RUN_PATH
10333 shlibpath_overrides_runpath=no
10334 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10340 if test -d /usr/nec ;then
10341 version_type=linux # correct to gnu/linux during the next big refactor
10342 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10343 soname_spec='$libname${shared_ext}.$major'
10344 shlibpath_var=LD_LIBRARY_PATH
10348 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10349 version_type=freebsd-elf
10352 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10353 soname_spec='${libname}${release}${shared_ext}$major'
10354 shlibpath_var=LD_LIBRARY_PATH
10355 shlibpath_overrides_runpath=yes
10356 hardcode_into_libs=yes
10357 if test "$with_gnu_ld" = yes; then
10358 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10360 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10363 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10367 sys_lib_dlsearch_path_spec='/usr/lib'
10371 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10372 version_type=linux # correct to gnu/linux during the next big refactor
10375 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10376 shlibpath_var=LD_LIBRARY_PATH
10377 shlibpath_overrides_runpath=no
10378 hardcode_into_libs=yes
10382 version_type=linux # correct to gnu/linux during the next big refactor
10383 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10384 soname_spec='${libname}${release}${shared_ext}$major'
10385 shlibpath_var=LD_LIBRARY_PATH
10392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10393 $as_echo "$dynamic_linker" >&6; }
10394 test "$dynamic_linker" = no && can_build_shared=no
10396 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10397 if test "$GCC" = yes; then
10398 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10401 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10402 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10404 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10405 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10500 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10502 if test -n "$hardcode_libdir_flag_spec" ||
10503 test -n "$runpath_var" ||
10504 test "X$hardcode_automatic" = "Xyes" ; then
10506 # We can hardcode non-existent directories.
10507 if test "$hardcode_direct" != no &&
10508 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10509 # have to relink, otherwise we might link with an installed library
10510 # when we should be linking with a yet-to-be-installed one
10511 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10512 test "$hardcode_minus_L" != no; then
10513 # Linking always hardcodes the temporary library directory.
10514 hardcode_action=relink
10516 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10517 hardcode_action=immediate
10520 # We cannot hardcode anything, or else we can only hardcode existing
10522 hardcode_action=unsupported
10524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10525 $as_echo "$hardcode_action" >&6; }
10527 if test "$hardcode_action" = relink ||
10528 test "$inherit_rpath" = yes; then
10529 # Fast installation is not supported
10530 enable_fast_install=no
10531 elif test "$shlibpath_overrides_runpath" = yes ||
10532 test "$enable_shared" = no; then
10533 # Fast installation is not necessary
10534 enable_fast_install=needless
10542 if test "x$enable_dlopen" != xyes; then
10543 enable_dlopen=unknown
10544 enable_dlopen_self=unknown
10545 enable_dlopen_self_static=unknown
10552 lt_cv_dlopen="load_add_on"
10554 lt_cv_dlopen_self=yes
10557 mingw* | pw32* | cegcc*)
10558 lt_cv_dlopen="LoadLibrary"
10563 lt_cv_dlopen="dlopen"
10568 # if libdl is installed we need to link against it
10569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10570 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10571 if ${ac_cv_lib_dl_dlopen+:} false; then :
10572 $as_echo_n "(cached) " >&6
10574 ac_check_lib_save_LIBS=$LIBS
10576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10577 /* end confdefs.h. */
10579 /* Override any GCC internal prototype to avoid an error.
10580 Use char because int might match the return type of a GCC
10581 builtin and then its argument prototype would still apply. */
10594 if ac_fn_c_try_link "$LINENO"; then :
10595 ac_cv_lib_dl_dlopen=yes
10597 ac_cv_lib_dl_dlopen=no
10599 rm -f core conftest.err conftest.$ac_objext \
10600 conftest$ac_exeext conftest.$ac_ext
10601 LIBS=$ac_check_lib_save_LIBS
10603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10604 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10605 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10606 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10609 lt_cv_dlopen="dyld"
10611 lt_cv_dlopen_self=yes
10618 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10619 if test "x$ac_cv_func_shl_load" = xyes; then :
10620 lt_cv_dlopen="shl_load"
10622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10623 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10624 if ${ac_cv_lib_dld_shl_load+:} false; then :
10625 $as_echo_n "(cached) " >&6
10627 ac_check_lib_save_LIBS=$LIBS
10629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10630 /* end confdefs.h. */
10632 /* Override any GCC internal prototype to avoid an error.
10633 Use char because int might match the return type of a GCC
10634 builtin and then its argument prototype would still apply. */
10642 return shl_load ();
10647 if ac_fn_c_try_link "$LINENO"; then :
10648 ac_cv_lib_dld_shl_load=yes
10650 ac_cv_lib_dld_shl_load=no
10652 rm -f core conftest.err conftest.$ac_objext \
10653 conftest$ac_exeext conftest.$ac_ext
10654 LIBS=$ac_check_lib_save_LIBS
10656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10657 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10658 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10659 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10661 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10662 if test "x$ac_cv_func_dlopen" = xyes; then :
10663 lt_cv_dlopen="dlopen"
10665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10666 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10667 if ${ac_cv_lib_dl_dlopen+:} false; then :
10668 $as_echo_n "(cached) " >&6
10670 ac_check_lib_save_LIBS=$LIBS
10672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10673 /* end confdefs.h. */
10675 /* Override any GCC internal prototype to avoid an error.
10676 Use char because int might match the return type of a GCC
10677 builtin and then its argument prototype would still apply. */
10690 if ac_fn_c_try_link "$LINENO"; then :
10691 ac_cv_lib_dl_dlopen=yes
10693 ac_cv_lib_dl_dlopen=no
10695 rm -f core conftest.err conftest.$ac_objext \
10696 conftest$ac_exeext conftest.$ac_ext
10697 LIBS=$ac_check_lib_save_LIBS
10699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10700 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10701 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10702 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10705 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10706 if ${ac_cv_lib_svld_dlopen+:} false; then :
10707 $as_echo_n "(cached) " >&6
10709 ac_check_lib_save_LIBS=$LIBS
10710 LIBS="-lsvld $LIBS"
10711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10712 /* end confdefs.h. */
10714 /* Override any GCC internal prototype to avoid an error.
10715 Use char because int might match the return type of a GCC
10716 builtin and then its argument prototype would still apply. */
10729 if ac_fn_c_try_link "$LINENO"; then :
10730 ac_cv_lib_svld_dlopen=yes
10732 ac_cv_lib_svld_dlopen=no
10734 rm -f core conftest.err conftest.$ac_objext \
10735 conftest$ac_exeext conftest.$ac_ext
10736 LIBS=$ac_check_lib_save_LIBS
10738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10739 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10740 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
10741 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10744 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10745 if ${ac_cv_lib_dld_dld_link+:} false; then :
10746 $as_echo_n "(cached) " >&6
10748 ac_check_lib_save_LIBS=$LIBS
10750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10751 /* end confdefs.h. */
10753 /* Override any GCC internal prototype to avoid an error.
10754 Use char because int might match the return type of a GCC
10755 builtin and then its argument prototype would still apply. */
10763 return dld_link ();
10768 if ac_fn_c_try_link "$LINENO"; then :
10769 ac_cv_lib_dld_dld_link=yes
10771 ac_cv_lib_dld_dld_link=no
10773 rm -f core conftest.err conftest.$ac_objext \
10774 conftest$ac_exeext conftest.$ac_ext
10775 LIBS=$ac_check_lib_save_LIBS
10777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10778 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10779 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
10780 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10801 if test "x$lt_cv_dlopen" != xno; then
10807 case $lt_cv_dlopen in
10809 save_CPPFLAGS="$CPPFLAGS"
10810 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10812 save_LDFLAGS="$LDFLAGS"
10813 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10816 LIBS="$lt_cv_dlopen_libs $LIBS"
10818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10819 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10820 if ${lt_cv_dlopen_self+:} false; then :
10821 $as_echo_n "(cached) " >&6
10823 if test "$cross_compiling" = yes; then :
10824 lt_cv_dlopen_self=cross
10826 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10827 lt_status=$lt_dlunknown
10828 cat > conftest.$ac_ext <<_LT_EOF
10829 #line $LINENO "configure"
10830 #include "confdefs.h"
10839 # define LT_DLGLOBAL RTLD_GLOBAL
10842 # define LT_DLGLOBAL DL_GLOBAL
10844 # define LT_DLGLOBAL 0
10848 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10849 find out it does not work in some platform. */
10850 #ifndef LT_DLLAZY_OR_NOW
10852 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10855 # define LT_DLLAZY_OR_NOW DL_LAZY
10858 # define LT_DLLAZY_OR_NOW RTLD_NOW
10861 # define LT_DLLAZY_OR_NOW DL_NOW
10863 # define LT_DLLAZY_OR_NOW 0
10870 /* When -fvisbility=hidden is used, assume the code has been annotated
10871 correspondingly for the symbols needed. */
10872 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10873 int fnord () __attribute__((visibility("default")));
10876 int fnord () { return 42; }
10879 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10880 int status = $lt_dlunknown;
10884 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10887 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10888 else puts (dlerror ());
10890 /* dlclose (self); */
10898 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10899 (eval $ac_link) 2>&5
10901 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10902 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10903 (./conftest; exit; ) >&5 2>/dev/null
10905 case x$lt_status in
10906 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10907 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10908 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10911 # compilation failed
10912 lt_cv_dlopen_self=no
10919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10920 $as_echo "$lt_cv_dlopen_self" >&6; }
10922 if test "x$lt_cv_dlopen_self" = xyes; then
10923 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10925 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10926 if ${lt_cv_dlopen_self_static+:} false; then :
10927 $as_echo_n "(cached) " >&6
10929 if test "$cross_compiling" = yes; then :
10930 lt_cv_dlopen_self_static=cross
10932 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10933 lt_status=$lt_dlunknown
10934 cat > conftest.$ac_ext <<_LT_EOF
10935 #line $LINENO "configure"
10936 #include "confdefs.h"
10945 # define LT_DLGLOBAL RTLD_GLOBAL
10948 # define LT_DLGLOBAL DL_GLOBAL
10950 # define LT_DLGLOBAL 0
10954 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10955 find out it does not work in some platform. */
10956 #ifndef LT_DLLAZY_OR_NOW
10958 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10961 # define LT_DLLAZY_OR_NOW DL_LAZY
10964 # define LT_DLLAZY_OR_NOW RTLD_NOW
10967 # define LT_DLLAZY_OR_NOW DL_NOW
10969 # define LT_DLLAZY_OR_NOW 0
10976 /* When -fvisbility=hidden is used, assume the code has been annotated
10977 correspondingly for the symbols needed. */
10978 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10979 int fnord () __attribute__((visibility("default")));
10982 int fnord () { return 42; }
10985 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10986 int status = $lt_dlunknown;
10990 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10993 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10994 else puts (dlerror ());
10996 /* dlclose (self); */
11004 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11005 (eval $ac_link) 2>&5
11007 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11008 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11009 (./conftest; exit; ) >&5 2>/dev/null
11011 case x$lt_status in
11012 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11013 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11014 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11017 # compilation failed
11018 lt_cv_dlopen_self_static=no
11025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11026 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11029 CPPFLAGS="$save_CPPFLAGS"
11030 LDFLAGS="$save_LDFLAGS"
11035 case $lt_cv_dlopen_self in
11036 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11037 *) enable_dlopen_self=unknown ;;
11040 case $lt_cv_dlopen_self_static in
11041 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11042 *) enable_dlopen_self_static=unknown ;;
11064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11065 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11066 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11067 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11068 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11070 $as_echo "yes" >&6; }
11072 # FIXME - insert some real tests, host_os isn't really good enough
11075 if test -n "$STRIP" ; then
11076 striplib="$STRIP -x"
11077 old_striplib="$STRIP -S"
11078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11079 $as_echo "yes" >&6; }
11081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11082 $as_echo "no" >&6; }
11086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11087 $as_echo "no" >&6; }
11103 # Report which library types will actually be built
11104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11105 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11107 $as_echo "$can_build_shared" >&6; }
11109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11110 $as_echo_n "checking whether to build shared libraries... " >&6; }
11111 test "$can_build_shared" = "no" && enable_shared=no
11113 # On AIX, shared libraries and static libraries use the same namespace, and
11114 # are all built from PIC.
11117 test "$enable_shared" = yes && enable_static=no
11118 if test -n "$RANLIB"; then
11119 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11120 postinstall_cmds='$RANLIB $lib'
11125 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11126 test "$enable_shared" = yes && enable_static=no
11130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11131 $as_echo "$enable_shared" >&6; }
11133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11134 $as_echo_n "checking whether to build static libraries... " >&6; }
11135 # Make sure either enable_shared or enable_static is yes.
11136 test "$enable_shared" = yes || enable_static=yes
11137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11138 $as_echo "$enable_static" >&6; }
11145 ac_cpp='$CPP $CPPFLAGS'
11146 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11147 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11148 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11166 ac_config_commands="$ac_config_commands libtool"
11171 # Only expand once:
11177 test "X$enable_static" = Xyes && STATIC=-static
11180 case $lt_cv_sys_global_symbol_pipe in
11181 ?*) binary_helldl=yes ;;
11183 if test "X$binary_helldl" = Xyes; then
11184 BINARY_HELLDL_TRUE=
11185 BINARY_HELLDL_FALSE='#'
11187 BINARY_HELLDL_TRUE='#'
11188 BINARY_HELLDL_FALSE=
11193 ## ---------------------------- ##
11194 ## Libraries required by pdemo. ##
11195 ## ---------------------------- ##
11198 *-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
11199 # These system don't have libm, or don't need it
11202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mwvalidcheckl in -lmw" >&5
11203 $as_echo_n "checking for _mwvalidcheckl in -lmw... " >&6; }
11204 if ${ac_cv_lib_mw__mwvalidcheckl+:} false; then :
11205 $as_echo_n "(cached) " >&6
11207 ac_check_lib_save_LIBS=$LIBS
11209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11210 /* end confdefs.h. */
11212 /* Override any GCC internal prototype to avoid an error.
11213 Use char because int might match the return type of a GCC
11214 builtin and then its argument prototype would still apply. */
11218 char _mwvalidcheckl ();
11222 return _mwvalidcheckl ();
11227 if ac_fn_c_try_link "$LINENO"; then :
11228 ac_cv_lib_mw__mwvalidcheckl=yes
11230 ac_cv_lib_mw__mwvalidcheckl=no
11232 rm -f core conftest.err conftest.$ac_objext \
11233 conftest$ac_exeext conftest.$ac_ext
11234 LIBS=$ac_check_lib_save_LIBS
11236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mw__mwvalidcheckl" >&5
11237 $as_echo "$ac_cv_lib_mw__mwvalidcheckl" >&6; }
11238 if test "x$ac_cv_lib_mw__mwvalidcheckl" = xyes; then :
11242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
11243 $as_echo_n "checking for cos in -lm... " >&6; }
11244 if ${ac_cv_lib_m_cos+:} false; then :
11245 $as_echo_n "(cached) " >&6
11247 ac_check_lib_save_LIBS=$LIBS
11249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11250 /* end confdefs.h. */
11252 /* Override any GCC internal prototype to avoid an error.
11253 Use char because int might match the return type of a GCC
11254 builtin and then its argument prototype would still apply. */
11267 if ac_fn_c_try_link "$LINENO"; then :
11268 ac_cv_lib_m_cos=yes
11272 rm -f core conftest.err conftest.$ac_objext \
11273 conftest$ac_exeext conftest.$ac_ext
11274 LIBS=$ac_check_lib_save_LIBS
11276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
11277 $as_echo "$ac_cv_lib_m_cos" >&6; }
11278 if test "x$ac_cv_lib_m_cos" = xyes; then :
11284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
11285 $as_echo_n "checking for cos in -lm... " >&6; }
11286 if ${ac_cv_lib_m_cos+:} false; then :
11287 $as_echo_n "(cached) " >&6
11289 ac_check_lib_save_LIBS=$LIBS
11291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11292 /* end confdefs.h. */
11294 /* Override any GCC internal prototype to avoid an error.
11295 Use char because int might match the return type of a GCC
11296 builtin and then its argument prototype would still apply. */
11309 if ac_fn_c_try_link "$LINENO"; then :
11310 ac_cv_lib_m_cos=yes
11314 rm -f core conftest.err conftest.$ac_objext \
11315 conftest$ac_exeext conftest.$ac_ext
11316 LIBS=$ac_check_lib_save_LIBS
11318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
11319 $as_echo "$ac_cv_lib_m_cos" >&6; }
11320 if test "x$ac_cv_lib_m_cos" = xyes; then :
11333 ac_config_files="$ac_config_files Makefile"
11335 cat >confcache <<\_ACEOF
11336 # This file is a shell script that caches the results of configure
11337 # tests run on this system so they can be shared between configure
11338 # scripts and configure runs, see configure's option --config-cache.
11339 # It is not useful on other systems. If it contains results you don't
11340 # want to keep, you may remove or edit it.
11342 # config.status only pays attention to the cache file if you give it
11343 # the --recheck option to rerun configure.
11345 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11346 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11347 # following values.
11351 # The following way of writing the cache mishandles newlines in values,
11352 # but we know of no workaround that is simple, portable, and efficient.
11353 # So, we kill variables containing newlines.
11354 # Ultrix sh set writes to stderr and can't be redirected directly,
11355 # and sets the high bit in the cache file unless we assign to the vars.
11357 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11358 eval ac_val=\$$ac_var
11362 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11363 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11366 _ | IFS | as_nl) ;; #(
11367 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11368 *) { eval $ac_var=; unset $ac_var;} ;;
11374 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11375 *${as_nl}ac_space=\ *)
11376 # `set' does not quote correctly, so add quotes: double-quote
11377 # substitution turns \\\\ into \\, and sed turns \\ into \.
11380 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11383 # `set' quotes correctly as required by POSIX, so do not add quotes.
11384 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11393 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11395 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11397 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11398 if test -w "$cache_file"; then
11399 if test "x$cache_file" != "x/dev/null"; then
11400 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11401 $as_echo "$as_me: updating cache $cache_file" >&6;}
11402 if test ! -f "$cache_file" || test -h "$cache_file"; then
11403 cat confcache >"$cache_file"
11405 case $cache_file in #(
11407 mv -f confcache "$cache_file"$$ &&
11408 mv -f "$cache_file"$$ "$cache_file" ;; #(
11410 mv -f confcache "$cache_file" ;;
11415 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11416 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11421 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11422 # Let make expand exec_prefix.
11423 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11425 # Transform confdefs.h into DEFS.
11426 # Protect against shell expansion while executing Makefile rules.
11427 # Protect against Makefile macro expansion.
11429 # If the first sed substitution is executed (which looks for macros that
11430 # take arguments), then branch to the quote section. Otherwise,
11431 # look for a macro that doesn't take arguments.
11441 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
11443 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
11447 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
11460 DEFS=`sed -n "$ac_script" confdefs.h`
11466 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11467 # 1. Remove the extension, and $U if already installed.
11468 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11469 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11470 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11471 # will be set to the directory where LIBOBJS objects are built.
11472 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11473 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11475 LIBOBJS=$ac_libobjs
11477 LTLIBOBJS=$ac_ltlibobjs
11480 if test -n "$EXEEXT"; then
11482 am__EXEEXT_FALSE='#'
11484 am__EXEEXT_TRUE='#'
11488 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11489 as_fn_error $? "conditional \"AMDEP\" was never defined.
11490 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11492 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11493 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11494 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11496 if test -z "${BINARY_HELLDL_TRUE}" && test -z "${BINARY_HELLDL_FALSE}"; then
11497 as_fn_error $? "conditional \"BINARY_HELLDL\" was never defined.
11498 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11501 : "${CONFIG_STATUS=./config.status}"
11503 ac_clean_files_save=$ac_clean_files
11504 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11505 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11506 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11508 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11510 # Generated by $as_me.
11511 # Run this file to recreate the current configuration.
11512 # Compiler output produced by configure, useful for debugging
11513 # configure, is in config.log if it exists.
11516 ac_cs_recheck=false
11519 SHELL=\${CONFIG_SHELL-$SHELL}
11522 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11523 ## -------------------- ##
11524 ## M4sh Initialization. ##
11525 ## -------------------- ##
11527 # Be more Bourne compatible
11528 DUALCASE=1; export DUALCASE # for MKS sh
11529 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11532 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11533 # is contrary to our usage. Disable this feature.
11534 alias -g '${1+"$@"}'='"$@"'
11535 setopt NO_GLOB_SUBST
11537 case `(set -o) 2>/dev/null` in #(
11549 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11550 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11551 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11552 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11553 # Prefer a ksh shell builtin over an external printf program on Solaris,
11554 # but without wasting forks for bash or zsh.
11555 if test -z "$BASH_VERSION$ZSH_VERSION" \
11556 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11557 as_echo='print -r --'
11558 as_echo_n='print -rn --'
11559 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11560 as_echo='printf %s\n'
11561 as_echo_n='printf %s'
11563 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11564 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11565 as_echo_n='/usr/ucb/echo -n'
11567 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11568 as_echo_n_body='eval
11572 expr "X$arg" : "X\\(.*\\)$as_nl";
11573 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11575 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11577 export as_echo_n_body
11578 as_echo_n='sh -c $as_echo_n_body as_echo'
11580 export as_echo_body
11581 as_echo='sh -c $as_echo_body as_echo'
11584 # The user is always right.
11585 if test "${PATH_SEPARATOR+set}" != set; then
11587 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11588 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11595 # We need space, tab and new line, in precisely that order. Quoting is
11596 # there to prevent editors from complaining about space-tab.
11597 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11598 # splitting by setting IFS to empty value.)
11601 # Find who we are. Look in the path if we contain no directory separator.
11604 *[\\/]* ) as_myself=$0 ;;
11605 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11606 for as_dir in $PATH
11609 test -z "$as_dir" && as_dir=.
11610 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11616 # We did not find ourselves, most probably we were run as `sh COMMAND'
11617 # in which case we are not to be found in the path.
11618 if test "x$as_myself" = x; then
11621 if test ! -f "$as_myself"; then
11622 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11626 # Unset variables that we do not need and which cause bugs (e.g. in
11627 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11628 # suppresses any "Segmentation fault" message there. '((' could
11629 # trigger a bug in pdksh 5.2.14.
11630 for as_var in BASH_ENV ENV MAIL MAILPATH
11631 do eval test x\${$as_var+set} = xset \
11632 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11645 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11648 # as_fn_error STATUS ERROR [LINENO LOG_FD]
11649 # ----------------------------------------
11650 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11651 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11652 # script with STATUS, using 1 if that was 0.
11655 as_status=$1; test $as_status -eq 0 && as_status=1
11657 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11658 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11660 $as_echo "$as_me: error: $2" >&2
11661 as_fn_exit $as_status
11665 # as_fn_set_status STATUS
11666 # -----------------------
11667 # Set $? to STATUS, without forking.
11668 as_fn_set_status ()
11671 } # as_fn_set_status
11673 # as_fn_exit STATUS
11674 # -----------------
11675 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11679 as_fn_set_status $1
11685 # Portably unset VAR.
11688 { eval $1=; unset $1;}
11690 as_unset=as_fn_unset
11691 # as_fn_append VAR VALUE
11692 # ----------------------
11693 # Append the text in VALUE to the end of the definition contained in VAR. Take
11694 # advantage of any shell optimizations that allow amortized linear growth over
11695 # repeated appends, instead of the typical quadratic growth present in naive
11697 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11698 eval 'as_fn_append ()
11709 # as_fn_arith ARG...
11710 # ------------------
11711 # Perform arithmetic evaluation on the ARGs, and store the result in the
11712 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11713 # must be portable across $(()) and expr.
11714 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11715 eval 'as_fn_arith ()
11722 as_val=`expr "$@" || test $? -eq 1`
11727 if expr a : '\(a\)' >/dev/null 2>&1 &&
11728 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11734 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11735 as_basename=basename
11740 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11746 as_me=`$as_basename -- "$0" ||
11747 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11748 X"$0" : 'X\(//\)$' \| \
11749 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11751 sed '/^.*\/\([^/][^/]*\)\/*$/{
11765 # Avoid depending upon Character Ranges.
11766 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11767 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11768 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11769 as_cr_digits='0123456789'
11770 as_cr_alnum=$as_cr_Letters$as_cr_digits
11772 ECHO_C= ECHO_N= ECHO_T=
11773 case `echo -n x` in #(((((
11775 case `echo 'xy\c'` in
11776 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11778 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11785 rm -f conf$$ conf$$.exe conf$$.file
11786 if test -d conf$$.dir; then
11787 rm -f conf$$.dir/conf$$.file
11790 mkdir conf$$.dir 2>/dev/null
11792 if (echo >conf$$.file) 2>/dev/null; then
11793 if ln -s conf$$.file conf$$ 2>/dev/null; then
11795 # ... but there are two gotchas:
11796 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11797 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11798 # In both cases, we have to default to `cp -p'.
11799 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11801 elif ln conf$$.file conf$$ 2>/dev/null; then
11809 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11810 rmdir conf$$.dir 2>/dev/null
11815 # Create "$as_dir" as a directory, including parents if necessary.
11820 -*) as_dir=./$as_dir;;
11822 test -d "$as_dir" || eval $as_mkdir_p || {
11826 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11827 *) as_qdir=$as_dir;;
11829 as_dirs="'$as_qdir' $as_dirs"
11830 as_dir=`$as_dirname -- "$as_dir" ||
11831 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11832 X"$as_dir" : 'X\(//\)[^/]' \| \
11833 X"$as_dir" : 'X\(//\)$' \| \
11834 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11835 $as_echo X"$as_dir" |
11836 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11840 /^X\(\/\/\)[^/].*/{
11853 test -d "$as_dir" && break
11855 test -z "$as_dirs" || eval "mkdir $as_dirs"
11856 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11860 if mkdir -p . 2>/dev/null; then
11861 as_mkdir_p='mkdir -p "$as_dir"'
11863 test -d ./-p && rmdir ./-p
11867 if test -x / >/dev/null 2>&1; then
11868 as_test_x='test -x'
11870 if ls -dL / >/dev/null 2>&1; then
11877 if test -d "$1"; then
11883 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
11884 ???[sx]*):;;*)false;;esac;fi
11888 as_executable_p=$as_test_x
11890 # Sed expression to map a string onto a valid CPP name.
11891 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11893 # Sed expression to map a string onto a valid variable name.
11894 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11898 ## ----------------------------------- ##
11899 ## Main body of $CONFIG_STATUS script. ##
11900 ## ----------------------------------- ##
11902 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11904 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11905 # Save the log message, to keep $0 and so on meaningful, and to
11906 # report actual input values of CONFIG_FILES etc. instead of their
11907 # values after options handling.
11909 This file was extended by pdemo $as_me 1.0, which was
11910 generated by GNU Autoconf 2.68. Invocation command line was
11912 CONFIG_FILES = $CONFIG_FILES
11913 CONFIG_HEADERS = $CONFIG_HEADERS
11914 CONFIG_LINKS = $CONFIG_LINKS
11915 CONFIG_COMMANDS = $CONFIG_COMMANDS
11918 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11923 case $ac_config_files in *"
11924 "*) set x $ac_config_files; shift; ac_config_files=$*;;
11929 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11930 # Files that config.status was made for.
11931 config_files="$ac_config_files"
11932 config_commands="$ac_config_commands"
11936 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11938 \`$as_me' instantiates files and other configuration actions
11939 from templates according to the current configuration. Unless the files
11940 and actions are specified as TAGs, all are instantiated by default.
11942 Usage: $0 [OPTION]... [TAG]...
11944 -h, --help print this help, then exit
11945 -V, --version print version number and configuration settings, then exit
11946 --config print configuration, then exit
11947 -q, --quiet, --silent
11948 do not print progress messages
11949 -d, --debug don't remove temporary files
11950 --recheck update $as_me by reconfiguring in the same conditions
11951 --file=FILE[:TEMPLATE]
11952 instantiate the configuration file FILE
11954 Configuration files:
11957 Configuration commands:
11960 Report bugs to <bug-libtool@gnu.org>."
11963 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11964 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11966 pdemo config.status 1.0
11967 configured by $0, generated by GNU Autoconf 2.68,
11968 with options \\"\$ac_cs_config\\"
11970 Copyright (C) 2010 Free Software Foundation, Inc.
11971 This config.status script is free software; the Free Software Foundation
11972 gives unlimited permission to copy, distribute and modify it."
11979 test -n "\$AWK" || AWK=awk
11982 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11983 # The default lists apply if the user does not specify any file.
11989 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11990 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11994 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12006 # Handling of the options.
12007 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12009 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12010 $as_echo "$ac_cs_version"; exit ;;
12011 --config | --confi | --conf | --con | --co | --c )
12012 $as_echo "$ac_cs_config"; exit ;;
12013 --debug | --debu | --deb | --de | --d | -d )
12015 --file | --fil | --fi | --f )
12018 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12019 '') as_fn_error $? "missing file argument" ;;
12021 as_fn_append CONFIG_FILES " '$ac_optarg'"
12022 ac_need_defaults=false;;
12023 --he | --h | --help | --hel | -h )
12024 $as_echo "$ac_cs_usage"; exit ;;
12025 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12026 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12029 # This is an error.
12030 -*) as_fn_error $? "unrecognized option: \`$1'
12031 Try \`$0 --help' for more information." ;;
12033 *) as_fn_append ac_config_targets " $1"
12034 ac_need_defaults=false ;;
12040 ac_configure_extra_args=
12042 if $ac_cs_silent; then
12044 ac_configure_extra_args="$ac_configure_extra_args --silent"
12048 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12049 if \$ac_cs_recheck; then
12050 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12052 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12053 CONFIG_SHELL='$SHELL'
12054 export CONFIG_SHELL
12059 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12063 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12064 ## Running $as_me. ##
12070 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12074 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12077 # The HP-UX ksh and POSIX shell print the target directory to stdout
12078 # if CDPATH is set.
12079 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12081 sed_quote_subst='$sed_quote_subst'
12082 double_quote_subst='$double_quote_subst'
12083 delay_variable_subst='$delay_variable_subst'
12084 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
12085 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
12086 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
12087 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
12088 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
12089 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
12090 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
12091 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
12092 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
12093 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
12094 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
12095 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
12096 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
12097 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
12098 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
12099 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
12100 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
12101 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
12102 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
12103 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
12104 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
12105 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
12106 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
12107 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
12108 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
12109 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
12110 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
12111 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
12112 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
12113 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
12114 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
12115 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
12116 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
12117 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
12118 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
12119 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
12120 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
12121 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
12122 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
12123 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
12124 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
12125 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
12126 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
12127 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
12128 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
12129 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12130 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12131 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
12132 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
12133 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
12134 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
12135 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
12136 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
12137 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
12138 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
12139 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
12140 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"`'
12141 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
12142 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
12143 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
12144 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
12145 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
12146 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
12147 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
12148 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
12149 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
12150 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
12151 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
12152 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
12153 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
12154 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
12155 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
12156 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
12157 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
12158 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
12159 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12160 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
12161 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
12162 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
12163 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
12164 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
12165 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
12166 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12167 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
12168 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12169 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
12170 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12171 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
12172 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
12173 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
12174 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
12175 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
12176 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
12177 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
12178 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
12179 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
12180 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
12181 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
12182 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
12183 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
12184 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
12185 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
12186 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
12187 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
12188 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
12189 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
12190 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
12191 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
12192 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
12193 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
12194 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
12195 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
12196 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
12197 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
12198 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
12199 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
12200 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
12201 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12202 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12203 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
12204 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
12205 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
12206 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
12207 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
12208 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
12209 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
12210 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
12211 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
12212 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
12213 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
12216 LTCFLAGS='$LTCFLAGS'
12217 compiler='$compiler_DEFAULT'
12219 # A function that is used when there is no print builtin or printf.
12220 func_fallback_echo ()
12222 eval 'cat <<_LTECHO_EOF
12227 # Quote evaled strings.
12242 deplibs_check_method \
12247 sharedlib_from_linklib_cmd \
12250 archiver_list_spec \
12256 lt_cv_sys_global_symbol_pipe \
12257 lt_cv_sys_global_symbol_to_cdecl \
12258 lt_cv_sys_global_symbol_to_c_name_address \
12259 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
12260 nm_file_list_spec \
12261 lt_prog_compiler_no_builtin_flag \
12262 lt_prog_compiler_pic \
12263 lt_prog_compiler_wl \
12264 lt_prog_compiler_static \
12265 lt_cv_prog_compiler_c_o \
12274 export_dynamic_flag_spec \
12275 whole_archive_flag_spec \
12276 compiler_needs_object \
12278 allow_undefined_flag \
12279 no_undefined_flag \
12280 hardcode_libdir_flag_spec \
12281 hardcode_libdir_separator \
12285 variables_saved_for_relink \
12287 library_names_spec \
12289 install_override_mode \
12293 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
12294 *[\\\\\\\`\\"\\\$]*)
12295 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
12298 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12303 # Double-quote double-evaled strings.
12304 for var in reload_cmds \
12305 old_postinstall_cmds \
12306 old_postuninstall_cmds \
12308 extract_expsyms_cmds \
12309 old_archive_from_new_cmds \
12310 old_archive_from_expsyms_cmds \
12312 archive_expsym_cmds \
12314 module_expsym_cmds \
12315 export_symbols_cmds \
12319 postuninstall_cmds \
12321 sys_lib_search_path_spec \
12322 sys_lib_dlsearch_path_spec; do
12323 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
12324 *[\\\\\\\`\\"\\\$]*)
12325 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
12328 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12333 ac_aux_dir='$ac_aux_dir'
12334 xsi_shell='$xsi_shell'
12335 lt_shell_append='$lt_shell_append'
12337 # See if we are running on zsh, and set the options which allow our
12338 # commands through without removal of \ escapes INIT.
12339 if test -n "\${ZSH_VERSION+set}" ; then
12340 setopt NO_GLOB_SUBST
12346 TIMESTAMP='$TIMESTAMP'
12355 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12357 # Handling of arguments.
12358 for ac_config_target in $ac_config_targets
12360 case $ac_config_target in
12361 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12362 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
12363 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12365 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12370 # If the user did not use the arguments to specify the items to instantiate,
12371 # then the envvar interface is used. Set only those that are not.
12372 # We use the long form for the default assignment because of an extremely
12373 # bizarre bug on SunOS 4.1.3.
12374 if $ac_need_defaults; then
12375 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12376 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12379 # Have a temporary directory for convenience. Make it in the build tree
12380 # simply because there is no reason against having it here, and in addition,
12381 # creating and moving files from /tmp can sometimes cause problems.
12382 # Hook for its removal unless debugging.
12383 # Note that there is a small window in which the directory will not be cleaned:
12384 # after its creation but before its name has been assigned to `$tmp'.
12388 trap 'exit_status=$?
12389 : "${ac_tmp:=$tmp}"
12390 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12392 trap 'as_fn_exit 1' 1 2 13 15
12394 # Create a (secure) tmp directory for tmp files.
12397 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12401 tmp=./conf$$-$RANDOM
12402 (umask 077 && mkdir "$tmp")
12403 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12406 # Set up the scripts for CONFIG_FILES section.
12407 # No need to generate them if there are no CONFIG_FILES.
12408 # This happens for instance with `./config.status config.h'.
12409 if test -n "$CONFIG_FILES"; then
12412 ac_cr=`echo X | tr X '\015'`
12413 # On cygwin, bash can eat \r inside `` if the user requested igncr.
12414 # But we know of no other shell where ac_cr would be empty at this
12415 # point, so we can use a bashism as a fallback.
12416 if test "x$ac_cr" = x; then
12417 eval ac_cr=\$\'\\r\'
12419 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12420 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12423 ac_cs_awk_cr=$ac_cr
12426 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12431 echo "cat >conf$$subs.awk <<_ACEOF" &&
12432 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12434 } >conf$$subs.sh ||
12435 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12436 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12438 for ac_last_try in false false false false false :; do
12439 . ./conf$$subs.sh ||
12440 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12442 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12443 if test $ac_delim_n = $ac_delim_num; then
12445 elif $ac_last_try; then
12446 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12448 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12451 rm -f conf$$subs.sh
12453 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12454 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12458 s/^/S["/; s/!.*/"]=/
12468 s/\(.\{148\}\)..*/\1/
12470 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12475 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12482 s/\(.\{148\}\)..*/\1/
12484 s/["\\]/\\&/g; s/^/"/; s/$/"/
12488 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12493 ' <conf$$subs.awk | sed '
12498 ' >>$CONFIG_STATUS || ac_write_fail=1
12499 rm -f conf$$subs.awk
12500 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12502 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12503 for (key in S) S_is_set[key] = 1
12509 nfields = split(line, field, "@")
12511 len = length(field[1])
12512 for (i = 2; i < nfields; i++) {
12514 keylen = length(key)
12515 if (S_is_set[key]) {
12517 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12518 len += length(value) + length(field[++i])
12529 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12530 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12531 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12534 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12535 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12538 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12539 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12540 # trailing colons and then remove the whole line if VPATH becomes empty
12541 # (actually we leave an empty line to preserve line numbers).
12542 if test "x$srcdir" = x.; then
12543 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
12561 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12562 fi # test -n "$CONFIG_FILES"
12565 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
12570 :[FHLC]) ac_mode=$ac_tag; continue;;
12572 case $ac_mode$ac_tag in
12574 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
12575 :[FH]-) ac_tag=-:-;;
12576 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12593 -) ac_f="$ac_tmp/stdin";;
12594 *) # Look for the file first in the build tree, then in the source tree
12595 # (if the path is not absolute). The absolute path cannot be DOS-style,
12596 # because $ac_f cannot contain `:'.
12600 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12602 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12604 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12605 as_fn_append ac_file_inputs " '$ac_f'"
12608 # Let's still pretend it is `configure' which instantiates (i.e., don't
12609 # use $as_me), people would be surprised to read:
12610 # /* config.h. Generated by config.status. */
12611 configure_input='Generated from '`
12612 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12614 if test x"$ac_file" != x-; then
12615 configure_input="$ac_file. $configure_input"
12616 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12617 $as_echo "$as_me: creating $ac_file" >&6;}
12619 # Neutralize special characters interpreted by sed in replacement strings.
12620 case $configure_input in #(
12621 *\&* | *\|* | *\\* )
12622 ac_sed_conf_input=`$as_echo "$configure_input" |
12623 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12624 *) ac_sed_conf_input=$configure_input;;
12628 *:-:* | *:-) cat >"$ac_tmp/stdin" \
12629 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12634 ac_dir=`$as_dirname -- "$ac_file" ||
12635 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12636 X"$ac_file" : 'X\(//\)[^/]' \| \
12637 X"$ac_file" : 'X\(//\)$' \| \
12638 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12639 $as_echo X"$ac_file" |
12640 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12644 /^X\(\/\/\)[^/].*/{
12657 as_dir="$ac_dir"; as_fn_mkdir_p
12661 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12663 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12664 # A ".." for each directory in $ac_dir_suffix.
12665 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12666 case $ac_top_builddir_sub in
12667 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12668 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12671 ac_abs_top_builddir=$ac_pwd
12672 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12673 # for backward compatibility:
12674 ac_top_builddir=$ac_top_build_prefix
12677 .) # We are building in place.
12679 ac_top_srcdir=$ac_top_builddir_sub
12680 ac_abs_top_srcdir=$ac_pwd ;;
12681 [\\/]* | ?:[\\/]* ) # Absolute name.
12682 ac_srcdir=$srcdir$ac_dir_suffix;
12683 ac_top_srcdir=$srcdir
12684 ac_abs_top_srcdir=$srcdir ;;
12685 *) # Relative name.
12686 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12687 ac_top_srcdir=$ac_top_build_prefix$srcdir
12688 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12690 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12700 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12701 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12703 ac_MKDIR_P=$MKDIR_P
12705 [\\/$]* | ?:[\\/]* ) ;;
12706 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12710 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12711 # If the template does not know about datarootdir, expand it.
12712 # FIXME: This hack should be removed a few years after 2.60.
12713 ac_datarootdir_hack=; ac_datarootdir_seen=
12724 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12725 *datarootdir*) ac_datarootdir_seen=yes;;
12726 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12727 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12728 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12730 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12731 ac_datarootdir_hack='
12732 s&@datadir@&$datadir&g
12733 s&@docdir@&$docdir&g
12734 s&@infodir@&$infodir&g
12735 s&@localedir@&$localedir&g
12736 s&@mandir@&$mandir&g
12737 s&\\\${datarootdir}&$datarootdir&g' ;;
12741 # Neutralize VPATH when `$srcdir' = `.'.
12742 # Shell code in configure.ac might set extrasub.
12743 # FIXME: do we really want to maintain this feature?
12744 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12745 ac_sed_extra="$ac_vpsub
12748 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12750 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12751 s|@configure_input@|$ac_sed_conf_input|;t t
12752 s&@top_builddir@&$ac_top_builddir_sub&;t t
12753 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12754 s&@srcdir@&$ac_srcdir&;t t
12755 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12756 s&@top_srcdir@&$ac_top_srcdir&;t t
12757 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12758 s&@builddir@&$ac_builddir&;t t
12759 s&@abs_builddir@&$ac_abs_builddir&;t t
12760 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12761 s&@INSTALL@&$ac_INSTALL&;t t
12762 s&@MKDIR_P@&$ac_MKDIR_P&;t t
12763 $ac_datarootdir_hack
12765 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
12766 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12768 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12769 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12770 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
12771 "$ac_tmp/out"`; test -z "$ac_out"; } &&
12772 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12773 which seems to be undefined. Please make sure it is defined" >&5
12774 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12775 which seems to be undefined. Please make sure it is defined" >&2;}
12777 rm -f "$ac_tmp/stdin"
12779 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12780 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12782 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12786 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12787 $as_echo "$as_me: executing $ac_file commands" >&6;}
12792 case $ac_file$ac_mode in
12793 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12794 # Autoconf 2.62 quotes --file arguments for eval, but not when files
12795 # are listed without --file. Let's play safe and only enable the eval
12796 # if we detect the quoting.
12797 case $CONFIG_FILES in
12798 *\'*) eval set x "$CONFIG_FILES" ;;
12799 *) set x $CONFIG_FILES ;;
12804 # Strip MF so we end up with the name of the file.
12805 mf=`echo "$mf" | sed -e 's/:.*$//'`
12806 # Check whether this is an Automake generated Makefile or not.
12807 # We used to match only the files named `Makefile.in', but
12808 # some people rename them; so instead we look at the file content.
12809 # Grep'ing the first line is not enough: some people post-process
12810 # each Makefile.in and add a new line on top of each file to say so.
12811 # Grep'ing the whole file is not good either: AIX grep has a line
12812 # limit of 2048, but all sed's we know have understand at least 4000.
12813 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
12814 dirpart=`$as_dirname -- "$mf" ||
12815 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12816 X"$mf" : 'X\(//\)[^/]' \| \
12817 X"$mf" : 'X\(//\)$' \| \
12818 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
12820 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12824 /^X\(\/\/\)[^/].*/{
12840 # Extract the definition of DEPDIR, am__include, and am__quote
12841 # from the Makefile without running `make'.
12842 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12843 test -z "$DEPDIR" && continue
12844 am__include=`sed -n 's/^am__include = //p' < "$mf"`
12845 test -z "am__include" && continue
12846 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12847 # When using ansi2knr, U may be empty or an underscore; expand it
12848 U=`sed -n 's/^U = //p' < "$mf"`
12849 # Find all dependency output files, they are included files with
12850 # $(DEPDIR) in their names. We invoke sed twice because it is the
12851 # simplest approach to changing $(DEPDIR) to its actual value in the
12853 for file in `sed -n "
12854 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12855 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
12856 # Make sure the directory exists.
12857 test -f "$dirpart/$file" && continue
12858 fdir=`$as_dirname -- "$file" ||
12859 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12860 X"$file" : 'X\(//\)[^/]' \| \
12861 X"$file" : 'X\(//\)$' \| \
12862 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
12863 $as_echo X"$file" |
12864 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12868 /^X\(\/\/\)[^/].*/{
12881 as_dir=$dirpart/$fdir; as_fn_mkdir_p
12882 # echo "creating $dirpart/$file"
12883 echo '# dummy' > "$dirpart/$file"
12890 # See if we are running on zsh, and set the options which allow our
12891 # commands through without removal of \ escapes.
12892 if test -n "${ZSH_VERSION+set}" ; then
12893 setopt NO_GLOB_SUBST
12896 cfgfile="${ofile}T"
12897 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
12900 cat <<_LT_EOF >> "$cfgfile"
12903 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
12904 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
12905 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12906 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
12908 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
12909 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
12911 # Written by Gordon Matzigkeit, 1996
12913 # This file is part of GNU Libtool.
12915 # GNU Libtool is free software; you can redistribute it and/or
12916 # modify it under the terms of the GNU General Public License as
12917 # published by the Free Software Foundation; either version 2 of
12918 # the License, or (at your option) any later version.
12920 # As a special exception to the GNU General Public License,
12921 # if you distribute this file as part of a program or library that
12922 # is built using GNU Libtool, you may include this file under the
12923 # same distribution terms that you use for the rest of that program.
12925 # GNU Libtool is distributed in the hope that it will be useful,
12926 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12927 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12928 # GNU General Public License for more details.
12930 # You should have received a copy of the GNU General Public License
12931 # along with GNU Libtool; see the file COPYING. If not, a copy
12932 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
12933 # obtained by writing to the Free Software Foundation, Inc.,
12934 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
12937 # The names of the tagged configurations supported by this script.
12940 # ### BEGIN LIBTOOL CONFIG
12942 # Which release of libtool.m4 was used?
12943 macro_version=$macro_version
12944 macro_revision=$macro_revision
12946 # Whether or not to build shared libraries.
12947 build_libtool_libs=$enable_shared
12949 # Whether or not to build static libraries.
12950 build_old_libs=$enable_static
12952 # What type of objects to build.
12955 # Whether or not to optimize for fast installation.
12956 fast_install=$enable_fast_install
12958 # Shell to use when invoking shell scripts.
12961 # An echo program that protects backslashes.
12964 # The PATH separator for the build system.
12965 PATH_SEPARATOR=$lt_PATH_SEPARATOR
12968 host_alias=$host_alias
12972 # The build system.
12973 build_alias=$build_alias
12977 # A sed program that does not truncate output.
12980 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
12981 Xsed="\$SED -e 1s/^X//"
12983 # A grep program that handles long lines.
12989 # A literal string matcher.
12992 # A BSD- or MS-compatible name lister.
12995 # Whether we need soft or hard links.
12998 # What is the maximum length of a command?
12999 max_cmd_len=$max_cmd_len
13001 # Object file suffix (normally "o").
13004 # Executable file suffix (normally "").
13007 # whether the shell understands "unset".
13010 # turn spaces into newlines.
13013 # turn newlines into spaces.
13016 # convert \$build file names to \$host format.
13017 to_host_file_cmd=$lt_cv_to_host_file_cmd
13019 # convert \$build files to toolchain format.
13020 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
13022 # An object symbol dumper.
13023 OBJDUMP=$lt_OBJDUMP
13025 # Method to check whether dependent libraries are shared objects.
13026 deplibs_check_method=$lt_deplibs_check_method
13028 # Command to use when deplibs_check_method = "file_magic".
13029 file_magic_cmd=$lt_file_magic_cmd
13031 # How to find potential files when deplibs_check_method = "file_magic".
13032 file_magic_glob=$lt_file_magic_glob
13034 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
13035 want_nocaseglob=$lt_want_nocaseglob
13037 # DLL creation program.
13038 DLLTOOL=$lt_DLLTOOL
13040 # Command to associate shared and link libraries.
13041 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
13046 # Flags to create an archive.
13047 AR_FLAGS=$lt_AR_FLAGS
13049 # How to feed a file listing to the archiver.
13050 archiver_list_spec=$lt_archiver_list_spec
13052 # A symbol stripping program.
13055 # Commands used to install an old-style archive.
13057 old_postinstall_cmds=$lt_old_postinstall_cmds
13058 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13060 # Whether to use a lock for old archive extraction.
13061 lock_old_archive_extraction=$lock_old_archive_extraction
13066 # LTCC compiler flags.
13067 LTCFLAGS=$lt_CFLAGS
13069 # Take the output of nm and produce a listing of raw symbols and C names.
13070 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13072 # Transform the output of nm in a proper C declaration.
13073 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13075 # Transform the output of nm in a C name address pair.
13076 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13078 # Transform the output of nm in a C name address pair when lib prefix is needed.
13079 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
13081 # Specify filename containing input files for \$NM.
13082 nm_file_list_spec=$lt_nm_file_list_spec
13084 # The root where to search for dependent libraries,and in which our libraries should be installed.
13085 lt_sysroot=$lt_sysroot
13087 # The name of the directory that contains temporary libtool files.
13090 # Used to examine libraries when file_magic_cmd begins with "file".
13091 MAGIC_CMD=$MAGIC_CMD
13093 # Must we lock files when doing compilation?
13094 need_locks=$lt_need_locks
13097 MANIFEST_TOOL=$lt_MANIFEST_TOOL
13099 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
13100 DSYMUTIL=$lt_DSYMUTIL
13102 # Tool to change global to local symbols on Mac OS X.
13105 # Tool to manipulate fat objects and archives on Mac OS X.
13108 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
13111 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
13112 OTOOL64=$lt_OTOOL64
13114 # Old archive suffix (normally "a").
13117 # Shared library suffix (normally ".so").
13118 shrext_cmds=$lt_shrext_cmds
13120 # The commands to extract the exported symbol list from a shared archive.
13121 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13123 # Variables whose values should be saved in libtool wrapper scripts and
13124 # restored at link time.
13125 variables_saved_for_relink=$lt_variables_saved_for_relink
13127 # Do we need the "lib" prefix for modules?
13128 need_lib_prefix=$need_lib_prefix
13130 # Do we need a version for libraries?
13131 need_version=$need_version
13133 # Library versioning type.
13134 version_type=$version_type
13136 # Shared library runtime path variable.
13137 runpath_var=$runpath_var
13139 # Shared library path variable.
13140 shlibpath_var=$shlibpath_var
13142 # Is shlibpath searched before the hard-coded library search path?
13143 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13145 # Format of library name prefix.
13146 libname_spec=$lt_libname_spec
13148 # List of archive names. First name is the real one, the rest are links.
13149 # The last name is the one that the linker finds with -lNAME
13150 library_names_spec=$lt_library_names_spec
13152 # The coded name of the library, if different from the real name.
13153 soname_spec=$lt_soname_spec
13155 # Permission mode override for installation of shared libraries.
13156 install_override_mode=$lt_install_override_mode
13158 # Command to use after installation of a shared archive.
13159 postinstall_cmds=$lt_postinstall_cmds
13161 # Command to use after uninstallation of a shared archive.
13162 postuninstall_cmds=$lt_postuninstall_cmds
13164 # Commands used to finish a libtool library installation in a directory.
13165 finish_cmds=$lt_finish_cmds
13167 # As "finish_cmds", except a single script fragment to be evaled but
13169 finish_eval=$lt_finish_eval
13171 # Whether we should hardcode library paths into libraries.
13172 hardcode_into_libs=$hardcode_into_libs
13174 # Compile-time system search path for libraries.
13175 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13177 # Run-time system search path for libraries.
13178 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13180 # Whether dlopen is supported.
13181 dlopen_support=$enable_dlopen
13183 # Whether dlopen of programs is supported.
13184 dlopen_self=$enable_dlopen_self
13186 # Whether dlopen of statically linked programs is supported.
13187 dlopen_self_static=$enable_dlopen_self_static
13189 # Commands to strip libraries.
13190 old_striplib=$lt_old_striplib
13191 striplib=$lt_striplib
13194 # The linker used to build libraries.
13197 # How to create reloadable object files.
13198 reload_flag=$lt_reload_flag
13199 reload_cmds=$lt_reload_cmds
13201 # Commands used to build an old-style archive.
13202 old_archive_cmds=$lt_old_archive_cmds
13204 # A language specific compiler.
13207 # Is the compiler the GNU compiler?
13210 # Compiler flag to turn off builtin functions.
13211 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13213 # Additional compiler flags for building library objects.
13214 pic_flag=$lt_lt_prog_compiler_pic
13216 # How to pass a linker flag through the compiler.
13217 wl=$lt_lt_prog_compiler_wl
13219 # Compiler flag to prevent dynamic linking.
13220 link_static_flag=$lt_lt_prog_compiler_static
13222 # Does compiler simultaneously support -c and -o options?
13223 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13225 # Whether or not to add -lc for building shared libraries.
13226 build_libtool_need_lc=$archive_cmds_need_lc
13228 # Whether or not to disallow shared libs when runtime libs are static.
13229 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13231 # Compiler flag to allow reflexive dlopens.
13232 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13234 # Compiler flag to generate shared objects directly from archives.
13235 whole_archive_flag_spec=$lt_whole_archive_flag_spec
13237 # Whether the compiler copes with passing no objects directly.
13238 compiler_needs_object=$lt_compiler_needs_object
13240 # Create an old-style archive from a shared archive.
13241 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13243 # Create a temporary old-style archive to link instead of a shared archive.
13244 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13246 # Commands used to build a shared archive.
13247 archive_cmds=$lt_archive_cmds
13248 archive_expsym_cmds=$lt_archive_expsym_cmds
13250 # Commands used to build a loadable module if different from building
13251 # a shared archive.
13252 module_cmds=$lt_module_cmds
13253 module_expsym_cmds=$lt_module_expsym_cmds
13255 # Whether we are building with GNU ld or not.
13256 with_gnu_ld=$lt_with_gnu_ld
13258 # Flag that allows shared libraries with undefined symbols to be built.
13259 allow_undefined_flag=$lt_allow_undefined_flag
13261 # Flag that enforces no undefined symbols.
13262 no_undefined_flag=$lt_no_undefined_flag
13264 # Flag to hardcode \$libdir into a binary during linking.
13265 # This must work even if \$libdir does not exist
13266 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13268 # Whether we need a single "-rpath" flag with a separated argument.
13269 hardcode_libdir_separator=$lt_hardcode_libdir_separator
13271 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13272 # DIR into the resulting binary.
13273 hardcode_direct=$hardcode_direct
13275 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13276 # DIR into the resulting binary and the resulting library dependency is
13277 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
13278 # library is relocated.
13279 hardcode_direct_absolute=$hardcode_direct_absolute
13281 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13282 # into the resulting binary.
13283 hardcode_minus_L=$hardcode_minus_L
13285 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13286 # into the resulting binary.
13287 hardcode_shlibpath_var=$hardcode_shlibpath_var
13289 # Set to "yes" if building a shared library automatically hardcodes DIR
13290 # into the library and all subsequent libraries and executables linked
13292 hardcode_automatic=$hardcode_automatic
13294 # Set to yes if linker adds runtime paths of dependent libraries
13295 # to runtime path list.
13296 inherit_rpath=$inherit_rpath
13298 # Whether libtool must link a program against all its dependency libraries.
13299 link_all_deplibs=$link_all_deplibs
13301 # Set to "yes" if exported symbols are required.
13302 always_export_symbols=$always_export_symbols
13304 # The commands to list exported symbols.
13305 export_symbols_cmds=$lt_export_symbols_cmds
13307 # Symbols that should not be listed in the preloaded symbols.
13308 exclude_expsyms=$lt_exclude_expsyms
13310 # Symbols that must always be exported.
13311 include_expsyms=$lt_include_expsyms
13313 # Commands necessary for linking programs (against libraries) with templates.
13314 prelink_cmds=$lt_prelink_cmds
13316 # Commands necessary for finishing linking programs.
13317 postlink_cmds=$lt_postlink_cmds
13319 # Specify filename containing input files.
13320 file_list_spec=$lt_file_list_spec
13322 # How to hardcode a shared library path into an executable.
13323 hardcode_action=$hardcode_action
13325 # ### END LIBTOOL CONFIG
13331 cat <<\_LT_EOF >> "$cfgfile"
13332 # AIX sometimes has problems with the GCC collect2 program. For some
13333 # reason, if we set the COLLECT_NAMES environment variable, the problems
13334 # vanish in a puff of smoke.
13335 if test "X${COLLECT_NAMES+set}" != Xset; then
13337 export COLLECT_NAMES
13344 ltmain="$ac_aux_dir/ltmain.sh"
13347 # We use sed instead of cat because bash on DJGPP gets confused if
13348 # if finds mixed CR/LF and LF-only lines. Since sed operates in
13349 # text mode, it properly converts lines to CR/LF. This bash problem
13350 # is reportedly fixed, but why not run on old versions too?
13351 sed '$q' "$ltmain" >> "$cfgfile" \
13352 || (rm -f "$cfgfile"; exit 1)
13354 if test x"$xsi_shell" = xyes; then
13355 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
13359 \ */*) func_dirname_result="${1%/*}${2}" ;;\
13360 \ * ) func_dirname_result="${3}" ;;\
13362 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
13363 && mv -f "$cfgfile.tmp" "$cfgfile" \
13364 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13365 test 0 -eq $? || _lt_function_replace_fail=:
13368 sed -e '/^func_basename ()$/,/^} # func_basename /c\
13371 \ func_basename_result="${1##*/}"\
13372 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
13373 && mv -f "$cfgfile.tmp" "$cfgfile" \
13374 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13375 test 0 -eq $? || _lt_function_replace_fail=:
13378 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
13379 func_dirname_and_basename ()\
13382 \ */*) func_dirname_result="${1%/*}${2}" ;;\
13383 \ * ) func_dirname_result="${3}" ;;\
13385 \ func_basename_result="${1##*/}"\
13386 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
13387 && mv -f "$cfgfile.tmp" "$cfgfile" \
13388 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13389 test 0 -eq $? || _lt_function_replace_fail=:
13392 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
13395 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
13396 \ # positional parameters, so assign one to ordinary parameter first.\
13397 \ func_stripname_result=${3}\
13398 \ func_stripname_result=${func_stripname_result#"${1}"}\
13399 \ func_stripname_result=${func_stripname_result%"${2}"}\
13400 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
13401 && mv -f "$cfgfile.tmp" "$cfgfile" \
13402 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13403 test 0 -eq $? || _lt_function_replace_fail=:
13406 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
13407 func_split_long_opt ()\
13409 \ func_split_long_opt_name=${1%%=*}\
13410 \ func_split_long_opt_arg=${1#*=}\
13411 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
13412 && mv -f "$cfgfile.tmp" "$cfgfile" \
13413 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13414 test 0 -eq $? || _lt_function_replace_fail=:
13417 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
13418 func_split_short_opt ()\
13420 \ func_split_short_opt_arg=${1#??}\
13421 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
13422 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
13423 && mv -f "$cfgfile.tmp" "$cfgfile" \
13424 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13425 test 0 -eq $? || _lt_function_replace_fail=:
13428 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
13432 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
13433 \ *) func_lo2o_result=${1} ;;\
13435 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
13436 && mv -f "$cfgfile.tmp" "$cfgfile" \
13437 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13438 test 0 -eq $? || _lt_function_replace_fail=:
13441 sed -e '/^func_xform ()$/,/^} # func_xform /c\
13444 func_xform_result=${1%.*}.lo\
13445 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
13446 && mv -f "$cfgfile.tmp" "$cfgfile" \
13447 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13448 test 0 -eq $? || _lt_function_replace_fail=:
13451 sed -e '/^func_arith ()$/,/^} # func_arith /c\
13454 func_arith_result=$(( $* ))\
13455 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
13456 && mv -f "$cfgfile.tmp" "$cfgfile" \
13457 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13458 test 0 -eq $? || _lt_function_replace_fail=:
13461 sed -e '/^func_len ()$/,/^} # func_len /c\
13464 func_len_result=${#1}\
13465 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
13466 && mv -f "$cfgfile.tmp" "$cfgfile" \
13467 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13468 test 0 -eq $? || _lt_function_replace_fail=:
13472 if test x"$lt_shell_append" = xyes; then
13473 sed -e '/^func_append ()$/,/^} # func_append /c\
13476 eval "${1}+=\\${2}"\
13477 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
13478 && mv -f "$cfgfile.tmp" "$cfgfile" \
13479 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13480 test 0 -eq $? || _lt_function_replace_fail=:
13483 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
13484 func_append_quoted ()\
13486 \ func_quote_for_eval "${2}"\
13487 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
13488 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
13489 && mv -f "$cfgfile.tmp" "$cfgfile" \
13490 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13491 test 0 -eq $? || _lt_function_replace_fail=:
13494 # Save a `func_append' function call where possible by direct use of '+='
13495 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
13496 && mv -f "$cfgfile.tmp" "$cfgfile" \
13497 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13498 test 0 -eq $? || _lt_function_replace_fail=:
13500 # Save a `func_append' function call even when '+=' is not available
13501 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
13502 && mv -f "$cfgfile.tmp" "$cfgfile" \
13503 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13504 test 0 -eq $? || _lt_function_replace_fail=:
13507 if test x"$_lt_function_replace_fail" = x":"; then
13508 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
13509 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
13513 mv -f "$cfgfile" "$ofile" ||
13514 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
13525 ac_clean_files=$ac_clean_files_save
13527 test $ac_write_fail = 0 ||
13528 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
13531 # configure is writing to config.log, and then calls config.status.
13532 # config.status does its own redirection, appending to config.log.
13533 # Unfortunately, on DOS this fails, as config.log is still kept open
13534 # by configure, so config.status won't be able to write to it; its
13535 # output is simply discarded. So we exec the FD to /dev/null,
13536 # effectively closing config.log, so it can be properly (re)opened and
13537 # appended to by config.status. When coming back to configure, we
13538 # need to make the FD available again.
13539 if test "$no_create" != yes; then
13541 ac_config_status_args=
13542 test "$silent" = yes &&
13543 ac_config_status_args="$ac_config_status_args --quiet"
13545 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13547 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13548 # would make configure fail if this is the last instruction.
13549 $ac_cs_success || as_fn_exit 1
13551 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13552 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13553 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}