2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for libusb-compat 0.1.5.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in #(
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 as_echo_n='sh -c $as_echo_n_body as_echo'
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
89 # Find who we are. Look in the path if we contain no directory separator.
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
147 *v*x* | *x*v* ) as_opts=-vx ;;
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 case \`(set -o) 2>/dev/null\` in #(
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
200 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
201 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
202 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 PATH=/empty FPATH=/empty; export PATH FPATH
205 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
206 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
207 test \$(( 1 + 1 )) = 2 || exit 1"
208 if (eval "$as_required") 2>/dev/null; then :
213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 test -z "$as_dir" && as_dir=.
225 for as_base in sh bash ksh sh5; do
226 # Try only shells that exist, to save several forks.
227 as_shell=$as_dir/$as_base
228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230 CONFIG_SHELL=$as_shell as_have_required=yes
231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241 CONFIG_SHELL=$SHELL as_have_required=yes
246 if test "x$CONFIG_SHELL" != x; then :
248 # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
256 *v*x* | *x*v* ) as_opts=-vx ;;
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262 # Admittedly, this is quite paranoid, since all the known shells bail
263 # out after a failed `exec'.
264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
268 if test x$as_have_required = xno; then :
269 $as_echo "$0: This script requires a shell more modern than all"
270 $as_echo "$0: the shells that I found on your system."
271 if test x${ZSH_VERSION+set} = xset ; then
272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276 $0: including any error possibly output before this
277 $0: message. Then install a modern shell, or manually run
278 $0: the script under such a shell if you do have one."
284 SHELL=${CONFIG_SHELL-/bin/sh}
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE= GREP_OPTIONS=
288 unset CLICOLOR_FORCE GREP_OPTIONS
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
295 # Portably unset VAR.
298 { eval $1=; unset $1;}
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
322 # Create "$as_dir" as a directory, including parents if necessary.
327 -*) as_dir=./$as_dir;;
329 test -d "$as_dir" || eval $as_mkdir_p || {
333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
336 as_dirs="'$as_qdir' $as_dirs"
337 as_dir=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 $as_echo X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
360 test -d "$as_dir" && break
362 test -z "$as_dirs" || eval "mkdir $as_dirs"
363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p ()
373 test -f "$1" && test -x "$1"
374 } # as_fn_executable_p
375 # as_fn_append VAR VALUE
376 # ----------------------
377 # Append the text in VALUE to the end of the definition contained in VAR. Take
378 # advantage of any shell optimizations that allow amortized linear growth over
379 # repeated appends, instead of the typical quadratic growth present in naive
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382 eval 'as_fn_append ()
395 # Perform arithmetic evaluation on the ARGs, and store the result in the
396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
397 # must be portable across $(()) and expr.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
406 as_val=`expr "$@" || test $? -eq 1`
411 # as_fn_error STATUS ERROR [LINENO LOG_FD]
412 # ----------------------------------------
413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415 # script with STATUS, using 1 if that was 0.
418 as_status=$1; test $as_status -eq 0 && as_status=1
420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
423 $as_echo "$as_me: error: $2" >&2
424 as_fn_exit $as_status
427 if expr a : '\(a\)' >/dev/null 2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
440 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
446 as_me=`$as_basename -- "$0" ||
447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
465 # Avoid depending upon Character Ranges.
466 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469 as_cr_digits='0123456789'
470 as_cr_alnum=$as_cr_Letters$as_cr_digits
473 as_lineno_1=$LINENO as_lineno_1a=$LINENO
474 as_lineno_2=$LINENO as_lineno_2a=$LINENO
475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493 chmod +x "$as_me.lineno" ||
494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497 # already done that, so ensure we don't try to do so again and fall
498 # in an infinite loop. This has already happened in practice.
499 _as_can_reexec=no; export _as_can_reexec
500 # Don't try to exec as it changes $[0], causing all sort of problems
501 # (the dirname of $[0] is not the place where we might find the
502 # original and so on. Autoconf is especially sensitive to this).
504 # Exit status is that of the last command.
508 ECHO_C= ECHO_N= ECHO_T=
509 case `echo -n x` in #(((((
511 case `echo 'xy\c'` in
512 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
521 rm -f conf$$ conf$$.exe conf$$.file
522 if test -d conf$$.dir; then
523 rm -f conf$$.dir/conf$$.file
526 mkdir conf$$.dir 2>/dev/null
528 if (echo >conf$$.file) 2>/dev/null; then
529 if ln -s conf$$.file conf$$ 2>/dev/null; then
531 # ... but there are two gotchas:
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534 # In both cases, we have to default to `cp -pR'.
535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
537 elif ln conf$$.file conf$$ 2>/dev/null; then
545 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546 rmdir conf$$.dir 2>/dev/null
548 if mkdir -p . 2>/dev/null; then
549 as_mkdir_p='mkdir -p "$as_dir"'
551 test -d ./-p && rmdir ./-p
556 as_executable_p=as_fn_executable_p
558 # Sed expression to map a string onto a valid CPP name.
559 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
561 # Sed expression to map a string onto a valid variable name.
562 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
564 SHELL=${CONFIG_SHELL-/bin/sh}
567 test -n "$DJDIR" || exec 7<&0 </dev/null
571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572 # so uname gets run too.
573 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
578 ac_default_prefix=/usr/local
580 ac_config_libobj_dir=.
587 # Identity of this package.
588 PACKAGE_NAME='libusb-compat'
589 PACKAGE_TARNAME='libusb-compat'
590 PACKAGE_VERSION='0.1.5'
591 PACKAGE_STRING='libusb-compat 0.1.5'
595 ac_unique_file="libusb/core.c"
596 # Factoring default headers for most tests.
597 ac_includes_default="\
599 #ifdef HAVE_SYS_TYPES_H
600 # include <sys/types.h>
602 #ifdef HAVE_SYS_STAT_H
603 # include <sys/stat.h>
609 # ifdef HAVE_STDLIB_H
614 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
619 #ifdef HAVE_STRINGS_H
620 # include <strings.h>
622 #ifdef HAVE_INTTYPES_H
623 # include <inttypes.h>
632 ac_subst_vars='am__EXEEXT_FALSE
707 INSTALL_STRIP_PROGRAM
749 program_transform_name
762 enable_option_checking
764 enable_dependency_tracking
774 enable_examples_build
776 ac_precious_vars='build_alias
792 # Initialize some variables set by options.
794 ac_init_version=false
795 ac_unrecognized_opts=
797 # The variables have the same names as the options, with
798 # dashes changed to underlines.
806 program_transform_name=s,x,x,
814 # Installation directory options.
815 # These are left unexpanded so users can "make install exec_prefix=/foo"
816 # and all the variables that are supposed to be based on exec_prefix
817 # by default will actually change.
818 # Use braces instead of parens because sh, perl, etc. also accept them.
819 # (The list follows the same order as the GNU Coding Standards.)
820 bindir='${exec_prefix}/bin'
821 sbindir='${exec_prefix}/sbin'
822 libexecdir='${exec_prefix}/libexec'
823 datarootdir='${prefix}/share'
824 datadir='${datarootdir}'
825 sysconfdir='${prefix}/etc'
826 sharedstatedir='${prefix}/com'
827 localstatedir='${prefix}/var'
828 includedir='${prefix}/include'
829 oldincludedir='/usr/include'
830 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
831 infodir='${datarootdir}/info'
836 libdir='${exec_prefix}/lib'
837 localedir='${datarootdir}/locale'
838 mandir='${datarootdir}/man'
844 # If the previous option needs an argument, assign it.
845 if test -n "$ac_prev"; then
846 eval $ac_prev=\$ac_option
852 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
857 # Accept the important Cygnus configure options, so we can diagnose typos.
859 case $ac_dashdash$ac_option in
863 -bindir | --bindir | --bindi | --bind | --bin | --bi)
865 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
868 -build | --build | --buil | --bui | --bu)
869 ac_prev=build_alias ;;
870 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
871 build_alias=$ac_optarg ;;
873 -cache-file | --cache-file | --cache-fil | --cache-fi \
874 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
875 ac_prev=cache_file ;;
876 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
877 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
878 cache_file=$ac_optarg ;;
881 cache_file=config.cache ;;
883 -datadir | --datadir | --datadi | --datad)
885 -datadir=* | --datadir=* | --datadi=* | --datad=*)
886 datadir=$ac_optarg ;;
888 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
889 | --dataroo | --dataro | --datar)
890 ac_prev=datarootdir ;;
891 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
892 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
893 datarootdir=$ac_optarg ;;
895 -disable-* | --disable-*)
896 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
897 # Reject names that are not valid shell variable names.
898 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
899 as_fn_error $? "invalid feature name: $ac_useropt"
900 ac_useropt_orig=$ac_useropt
901 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
902 case $ac_user_opts in
906 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
907 ac_unrecognized_sep=', ';;
909 eval enable_$ac_useropt=no ;;
911 -docdir | --docdir | --docdi | --doc | --do)
913 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
916 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
918 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
921 -enable-* | --enable-*)
922 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
923 # Reject names that are not valid shell variable names.
924 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
925 as_fn_error $? "invalid feature name: $ac_useropt"
926 ac_useropt_orig=$ac_useropt
927 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
928 case $ac_user_opts in
932 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
933 ac_unrecognized_sep=', ';;
935 eval enable_$ac_useropt=\$ac_optarg ;;
937 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
938 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
939 | --exec | --exe | --ex)
940 ac_prev=exec_prefix ;;
941 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
942 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
943 | --exec=* | --exe=* | --ex=*)
944 exec_prefix=$ac_optarg ;;
946 -gas | --gas | --ga | --g)
947 # Obsolete; use --with-gas.
950 -help | --help | --hel | --he | -h)
952 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
953 ac_init_help=recursive ;;
954 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
955 ac_init_help=short ;;
957 -host | --host | --hos | --ho)
958 ac_prev=host_alias ;;
959 -host=* | --host=* | --hos=* | --ho=*)
960 host_alias=$ac_optarg ;;
962 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
964 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
966 htmldir=$ac_optarg ;;
968 -includedir | --includedir | --includedi | --included | --include \
969 | --includ | --inclu | --incl | --inc)
970 ac_prev=includedir ;;
971 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
972 | --includ=* | --inclu=* | --incl=* | --inc=*)
973 includedir=$ac_optarg ;;
975 -infodir | --infodir | --infodi | --infod | --info | --inf)
977 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
978 infodir=$ac_optarg ;;
980 -libdir | --libdir | --libdi | --libd)
982 -libdir=* | --libdir=* | --libdi=* | --libd=*)
985 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
986 | --libexe | --libex | --libe)
987 ac_prev=libexecdir ;;
988 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
989 | --libexe=* | --libex=* | --libe=*)
990 libexecdir=$ac_optarg ;;
992 -localedir | --localedir | --localedi | --localed | --locale)
994 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
995 localedir=$ac_optarg ;;
997 -localstatedir | --localstatedir | --localstatedi | --localstated \
998 | --localstate | --localstat | --localsta | --localst | --locals)
999 ac_prev=localstatedir ;;
1000 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1001 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1002 localstatedir=$ac_optarg ;;
1004 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1006 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1007 mandir=$ac_optarg ;;
1009 -nfp | --nfp | --nf)
1010 # Obsolete; use --without-fp.
1013 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1014 | --no-cr | --no-c | -n)
1017 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1018 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1021 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1022 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1023 | --oldin | --oldi | --old | --ol | --o)
1024 ac_prev=oldincludedir ;;
1025 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1026 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1027 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1028 oldincludedir=$ac_optarg ;;
1030 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1032 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1033 prefix=$ac_optarg ;;
1035 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1036 | --program-pre | --program-pr | --program-p)
1037 ac_prev=program_prefix ;;
1038 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1039 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1040 program_prefix=$ac_optarg ;;
1042 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1043 | --program-suf | --program-su | --program-s)
1044 ac_prev=program_suffix ;;
1045 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1046 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1047 program_suffix=$ac_optarg ;;
1049 -program-transform-name | --program-transform-name \
1050 | --program-transform-nam | --program-transform-na \
1051 | --program-transform-n | --program-transform- \
1052 | --program-transform | --program-transfor \
1053 | --program-transfo | --program-transf \
1054 | --program-trans | --program-tran \
1055 | --progr-tra | --program-tr | --program-t)
1056 ac_prev=program_transform_name ;;
1057 -program-transform-name=* | --program-transform-name=* \
1058 | --program-transform-nam=* | --program-transform-na=* \
1059 | --program-transform-n=* | --program-transform-=* \
1060 | --program-transform=* | --program-transfor=* \
1061 | --program-transfo=* | --program-transf=* \
1062 | --program-trans=* | --program-tran=* \
1063 | --progr-tra=* | --program-tr=* | --program-t=*)
1064 program_transform_name=$ac_optarg ;;
1066 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1068 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1069 pdfdir=$ac_optarg ;;
1071 -psdir | --psdir | --psdi | --psd | --ps)
1073 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1076 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1077 | -silent | --silent | --silen | --sile | --sil)
1080 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1082 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1084 sbindir=$ac_optarg ;;
1086 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1087 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1088 | --sharedst | --shareds | --shared | --share | --shar \
1090 ac_prev=sharedstatedir ;;
1091 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1092 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1093 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1095 sharedstatedir=$ac_optarg ;;
1097 -site | --site | --sit)
1099 -site=* | --site=* | --sit=*)
1102 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1104 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1105 srcdir=$ac_optarg ;;
1107 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1108 | --syscon | --sysco | --sysc | --sys | --sy)
1109 ac_prev=sysconfdir ;;
1110 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1111 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1112 sysconfdir=$ac_optarg ;;
1114 -target | --target | --targe | --targ | --tar | --ta | --t)
1115 ac_prev=target_alias ;;
1116 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1117 target_alias=$ac_optarg ;;
1119 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1122 -version | --version | --versio | --versi | --vers | -V)
1123 ac_init_version=: ;;
1126 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1127 # Reject names that are not valid shell variable names.
1128 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1129 as_fn_error $? "invalid package name: $ac_useropt"
1130 ac_useropt_orig=$ac_useropt
1131 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1132 case $ac_user_opts in
1136 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1137 ac_unrecognized_sep=', ';;
1139 eval with_$ac_useropt=\$ac_optarg ;;
1141 -without-* | --without-*)
1142 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1143 # Reject names that are not valid shell variable names.
1144 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1145 as_fn_error $? "invalid package name: $ac_useropt"
1146 ac_useropt_orig=$ac_useropt
1147 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1148 case $ac_user_opts in
1152 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1153 ac_unrecognized_sep=', ';;
1155 eval with_$ac_useropt=no ;;
1158 # Obsolete; use --with-x.
1161 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1162 | --x-incl | --x-inc | --x-in | --x-i)
1163 ac_prev=x_includes ;;
1164 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1165 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1166 x_includes=$ac_optarg ;;
1168 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1169 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1170 ac_prev=x_libraries ;;
1171 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1172 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1173 x_libraries=$ac_optarg ;;
1175 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1176 Try \`$0 --help' for more information"
1180 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1181 # Reject names that are not valid shell variable names.
1182 case $ac_envvar in #(
1183 '' | [0-9]* | *[!_$as_cr_alnum]* )
1184 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1186 eval $ac_envvar=\$ac_optarg
1187 export $ac_envvar ;;
1190 # FIXME: should be removed in autoconf 3.0.
1191 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1192 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1193 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1194 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1200 if test -n "$ac_prev"; then
1201 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1202 as_fn_error $? "missing argument to $ac_option"
1205 if test -n "$ac_unrecognized_opts"; then
1206 case $enable_option_checking in
1208 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1209 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1213 # Check all directory arguments for consistency.
1214 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1215 datadir sysconfdir sharedstatedir localstatedir includedir \
1216 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1217 libdir localedir mandir
1219 eval ac_val=\$$ac_var
1220 # Remove trailing slashes.
1223 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1224 eval $ac_var=\$ac_val;;
1226 # Be sure to have absolute directory names.
1228 [\\/$]* | ?:[\\/]* ) continue;;
1229 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1231 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1234 # There might be people who depend on the old broken behavior: `$host'
1235 # used to hold the argument of --host etc.
1236 # FIXME: To remove some day.
1239 target=$target_alias
1241 # FIXME: To remove some day.
1242 if test "x$host_alias" != x; then
1243 if test "x$build_alias" = x; then
1244 cross_compiling=maybe
1245 elif test "x$build_alias" != "x$host_alias"; then
1251 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1253 test "$silent" = yes && exec 6>/dev/null
1256 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1257 ac_ls_di=`ls -di .` &&
1258 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1259 as_fn_error $? "working directory cannot be determined"
1260 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1261 as_fn_error $? "pwd does not report name of working directory"
1264 # Find the source files, if location was not specified.
1265 if test -z "$srcdir"; then
1266 ac_srcdir_defaulted=yes
1267 # Try the directory containing this script, then the parent directory.
1268 ac_confdir=`$as_dirname -- "$as_myself" ||
1269 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1270 X"$as_myself" : 'X\(//\)[^/]' \| \
1271 X"$as_myself" : 'X\(//\)$' \| \
1272 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1273 $as_echo X"$as_myself" |
1274 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1292 if test ! -r "$srcdir/$ac_unique_file"; then
1296 ac_srcdir_defaulted=no
1298 if test ! -r "$srcdir/$ac_unique_file"; then
1299 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1300 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1302 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1304 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1306 # When building in place, set srcdir=.
1307 if test "$ac_abs_confdir" = "$ac_pwd"; then
1310 # Remove unnecessary trailing slashes from srcdir.
1311 # Double slashes in file names in object file debugging info
1312 # mess up M-x gdb in Emacs.
1314 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1316 for ac_var in $ac_precious_vars; do
1317 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1318 eval ac_env_${ac_var}_value=\$${ac_var}
1319 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1320 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1324 # Report the --help message.
1326 if test "$ac_init_help" = "long"; then
1327 # Omit some internal or obsolete options to make the list less imposing.
1328 # This message is too long to be a string in the A/UX 3.1 sh.
1330 \`configure' configures libusb-compat 0.1.5 to adapt to many kinds of systems.
1332 Usage: $0 [OPTION]... [VAR=VALUE]...
1334 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1335 VAR=VALUE. See below for descriptions of some of the useful variables.
1337 Defaults for the options are specified in brackets.
1340 -h, --help display this help and exit
1341 --help=short display options specific to this package
1342 --help=recursive display the short help of all the included packages
1343 -V, --version display version information and exit
1344 -q, --quiet, --silent do not print \`checking ...' messages
1345 --cache-file=FILE cache test results in FILE [disabled]
1346 -C, --config-cache alias for \`--cache-file=config.cache'
1347 -n, --no-create do not create output files
1348 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1350 Installation directories:
1351 --prefix=PREFIX install architecture-independent files in PREFIX
1352 [$ac_default_prefix]
1353 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1356 By default, \`make install' will install all the files in
1357 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1358 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1359 for instance \`--prefix=\$HOME'.
1361 For better control, use the options below.
1363 Fine tuning of the installation directories:
1364 --bindir=DIR user executables [EPREFIX/bin]
1365 --sbindir=DIR system admin executables [EPREFIX/sbin]
1366 --libexecdir=DIR program executables [EPREFIX/libexec]
1367 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1368 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1369 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1370 --libdir=DIR object code libraries [EPREFIX/lib]
1371 --includedir=DIR C header files [PREFIX/include]
1372 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1373 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1374 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1375 --infodir=DIR info documentation [DATAROOTDIR/info]
1376 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1377 --mandir=DIR man documentation [DATAROOTDIR/man]
1378 --docdir=DIR documentation root [DATAROOTDIR/doc/libusb-compat]
1379 --htmldir=DIR html documentation [DOCDIR]
1380 --dvidir=DIR dvi documentation [DOCDIR]
1381 --pdfdir=DIR pdf documentation [DOCDIR]
1382 --psdir=DIR ps documentation [DOCDIR]
1388 --program-prefix=PREFIX prepend PREFIX to installed program names
1389 --program-suffix=SUFFIX append SUFFIX to installed program names
1390 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1393 --build=BUILD configure for building on BUILD [guessed]
1394 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1398 if test -n "$ac_init_help"; then
1399 case $ac_init_help in
1400 short | recursive ) echo "Configuration of libusb-compat 0.1.5:";;
1405 --disable-option-checking ignore unrecognized --enable/--with options
1406 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1407 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1408 --enable-silent-rules less verbose build output (undo: "make V=1")
1409 --disable-silent-rules verbose build output (undo: "make V=0")
1410 --enable-dependency-tracking
1411 do not reject slow dependency extractors
1412 --disable-dependency-tracking
1413 speeds up one-time build
1414 --enable-shared[=PKGS] build shared libraries [default=yes]
1415 --enable-static[=PKGS] build static libraries [default=yes]
1416 --enable-fast-install[=PKGS]
1417 optimize for fast installation [default=yes]
1418 --disable-libtool-lock avoid locking (might break parallel builds)
1419 --disable-log disable all logging
1420 --enable-debug-log enable debug logging (default n)
1421 --enable-examples-build build example applications (default n)
1424 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1425 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1426 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1428 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1429 --with-sysroot=DIR Search for dependent libraries within DIR
1430 (or the compiler's sysroot if not specified).
1432 Some influential environment variables:
1433 CC C compiler command
1434 CFLAGS C compiler flags
1435 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1436 nonstandard directory <lib dir>
1437 LIBS libraries to pass to the linker, e.g. -l<library>
1438 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1439 you have headers in a nonstandard directory <include dir>
1441 PKG_CONFIG path to pkg-config utility
1443 directories to add to pkg-config's search path
1445 path overriding pkg-config's built-in search path
1447 C compiler flags for LIBUSB_1_0, overriding pkg-config
1449 linker flags for LIBUSB_1_0, overriding pkg-config
1451 Use these variables to override the choices made by `configure' or to help
1452 it to find libraries and programs with nonstandard names/locations.
1454 Report bugs to the package provider.
1459 if test "$ac_init_help" = "recursive"; then
1460 # If there are subdirs, report their specific --help.
1461 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1462 test -d "$ac_dir" ||
1463 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1468 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1470 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1471 # A ".." for each directory in $ac_dir_suffix.
1472 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1473 case $ac_top_builddir_sub in
1474 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1475 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1478 ac_abs_top_builddir=$ac_pwd
1479 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1480 # for backward compatibility:
1481 ac_top_builddir=$ac_top_build_prefix
1484 .) # We are building in place.
1486 ac_top_srcdir=$ac_top_builddir_sub
1487 ac_abs_top_srcdir=$ac_pwd ;;
1488 [\\/]* | ?:[\\/]* ) # Absolute name.
1489 ac_srcdir=$srcdir$ac_dir_suffix;
1490 ac_top_srcdir=$srcdir
1491 ac_abs_top_srcdir=$srcdir ;;
1493 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1494 ac_top_srcdir=$ac_top_build_prefix$srcdir
1495 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1497 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1499 cd "$ac_dir" || { ac_status=$?; continue; }
1500 # Check for guested configure.
1501 if test -f "$ac_srcdir/configure.gnu"; then
1503 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1504 elif test -f "$ac_srcdir/configure"; then
1506 $SHELL "$ac_srcdir/configure" --help=recursive
1508 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1510 cd "$ac_pwd" || { ac_status=$?; break; }
1514 test -n "$ac_init_help" && exit $ac_status
1515 if $ac_init_version; then
1517 libusb-compat configure 0.1.5
1518 generated by GNU Autoconf 2.69
1520 Copyright (C) 2012 Free Software Foundation, Inc.
1521 This configure script is free software; the Free Software Foundation
1522 gives unlimited permission to copy, distribute and modify it.
1527 ## ------------------------ ##
1528 ## Autoconf initialization. ##
1529 ## ------------------------ ##
1531 # ac_fn_c_try_compile LINENO
1532 # --------------------------
1533 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1534 ac_fn_c_try_compile ()
1536 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1537 rm -f conftest.$ac_objext
1538 if { { ac_try="$ac_compile"
1540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1541 *) ac_try_echo=$ac_try;;
1543 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1544 $as_echo "$ac_try_echo"; } >&5
1545 (eval "$ac_compile") 2>conftest.err
1547 if test -s conftest.err; then
1548 grep -v '^ *+' conftest.err >conftest.er1
1549 cat conftest.er1 >&5
1550 mv -f conftest.er1 conftest.err
1552 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1553 test $ac_status = 0; } && {
1554 test -z "$ac_c_werror_flag" ||
1555 test ! -s conftest.err
1556 } && test -s conftest.$ac_objext; then :
1559 $as_echo "$as_me: failed program was:" >&5
1560 sed 's/^/| /' conftest.$ac_ext >&5
1564 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1565 as_fn_set_status $ac_retval
1567 } # ac_fn_c_try_compile
1569 # ac_fn_c_try_link LINENO
1570 # -----------------------
1571 # Try to link conftest.$ac_ext, and return whether this succeeded.
1574 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1575 rm -f conftest.$ac_objext conftest$ac_exeext
1576 if { { ac_try="$ac_link"
1578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1579 *) ac_try_echo=$ac_try;;
1581 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1582 $as_echo "$ac_try_echo"; } >&5
1583 (eval "$ac_link") 2>conftest.err
1585 if test -s conftest.err; then
1586 grep -v '^ *+' conftest.err >conftest.er1
1587 cat conftest.er1 >&5
1588 mv -f conftest.er1 conftest.err
1590 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1591 test $ac_status = 0; } && {
1592 test -z "$ac_c_werror_flag" ||
1593 test ! -s conftest.err
1594 } && test -s conftest$ac_exeext && {
1595 test "$cross_compiling" = yes ||
1596 test -x conftest$ac_exeext
1600 $as_echo "$as_me: failed program was:" >&5
1601 sed 's/^/| /' conftest.$ac_ext >&5
1605 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1606 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1607 # interfere with the next link command; also delete a directory that is
1608 # left behind by Apple's compiler. We do this before executing the actions.
1609 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1610 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1611 as_fn_set_status $ac_retval
1613 } # ac_fn_c_try_link
1615 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1616 # -------------------------------------------------------
1617 # Tests whether HEADER exists and can be compiled using the include files in
1618 # INCLUDES, setting the cache variable VAR accordingly.
1619 ac_fn_c_check_header_compile ()
1621 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1623 $as_echo_n "checking for $2... " >&6; }
1624 if eval \${$3+:} false; then :
1625 $as_echo_n "(cached) " >&6
1627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1628 /* end confdefs.h. */
1632 if ac_fn_c_try_compile "$LINENO"; then :
1637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1641 $as_echo "$ac_res" >&6; }
1642 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1644 } # ac_fn_c_check_header_compile
1646 # ac_fn_c_try_cpp LINENO
1647 # ----------------------
1648 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1651 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1652 if { { ac_try="$ac_cpp conftest.$ac_ext"
1654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1655 *) ac_try_echo=$ac_try;;
1657 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1658 $as_echo "$ac_try_echo"; } >&5
1659 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1661 if test -s conftest.err; then
1662 grep -v '^ *+' conftest.err >conftest.er1
1663 cat conftest.er1 >&5
1664 mv -f conftest.er1 conftest.err
1666 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1667 test $ac_status = 0; } > conftest.i && {
1668 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1669 test ! -s conftest.err
1673 $as_echo "$as_me: failed program was:" >&5
1674 sed 's/^/| /' conftest.$ac_ext >&5
1678 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1679 as_fn_set_status $ac_retval
1683 # ac_fn_c_try_run LINENO
1684 # ----------------------
1685 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1686 # that executables *can* be run.
1689 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1690 if { { ac_try="$ac_link"
1692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1693 *) ac_try_echo=$ac_try;;
1695 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1696 $as_echo "$ac_try_echo"; } >&5
1697 (eval "$ac_link") 2>&5
1699 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1700 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1701 { { case "(($ac_try" in
1702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1703 *) ac_try_echo=$ac_try;;
1705 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1706 $as_echo "$ac_try_echo"; } >&5
1707 (eval "$ac_try") 2>&5
1709 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1710 test $ac_status = 0; }; }; then :
1713 $as_echo "$as_me: program exited with status $ac_status" >&5
1714 $as_echo "$as_me: failed program was:" >&5
1715 sed 's/^/| /' conftest.$ac_ext >&5
1717 ac_retval=$ac_status
1719 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1720 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1721 as_fn_set_status $ac_retval
1725 # ac_fn_c_check_func LINENO FUNC VAR
1726 # ----------------------------------
1727 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1728 ac_fn_c_check_func ()
1730 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1732 $as_echo_n "checking for $2... " >&6; }
1733 if eval \${$3+:} false; then :
1734 $as_echo_n "(cached) " >&6
1736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1737 /* end confdefs.h. */
1738 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1739 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1740 #define $2 innocuous_$2
1742 /* System header to define __stub macros and hopefully few prototypes,
1743 which can conflict with char $2 (); below.
1744 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1745 <limits.h> exists even on freestanding compilers. */
1748 # include <limits.h>
1750 # include <assert.h>
1755 /* Override any GCC internal prototype to avoid an error.
1756 Use char because int might match the return type of a GCC
1757 builtin and then its argument prototype would still apply. */
1762 /* The GNU C library defines this for functions which it implements
1763 to always fail with ENOSYS. Some functions are actually named
1764 something starting with __ and the normal name is an alias. */
1765 #if defined __stub_$2 || defined __stub___$2
1777 if ac_fn_c_try_link "$LINENO"; then :
1782 rm -f core conftest.err conftest.$ac_objext \
1783 conftest$ac_exeext conftest.$ac_ext
1786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1787 $as_echo "$ac_res" >&6; }
1788 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1790 } # ac_fn_c_check_func
1791 cat >config.log <<_ACEOF
1792 This file contains any messages produced by compilers while
1793 running configure, to aid debugging if configure makes a mistake.
1795 It was created by libusb-compat $as_me 0.1.5, which was
1796 generated by GNU Autoconf 2.69. Invocation command line was
1808 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1809 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1810 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1811 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1812 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1814 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1815 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1817 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1818 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1819 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1820 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1821 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1822 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1823 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1831 test -z "$as_dir" && as_dir=.
1832 $as_echo "PATH: $as_dir"
1848 # Keep a trace of the command line.
1849 # Strip out --no-create and --no-recursion so they do not pile up.
1850 # Strip out --silent because we don't want to record it for future runs.
1851 # Also quote any args containing shell meta-characters.
1852 # Make two passes to allow for proper duplicate-argument suppression.
1856 ac_must_keep_next=false
1862 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1863 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1864 | -silent | --silent | --silen | --sile | --sil)
1867 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1870 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1872 as_fn_append ac_configure_args1 " '$ac_arg'"
1873 if test $ac_must_keep_next = true; then
1874 ac_must_keep_next=false # Got value, back to normal.
1877 *=* | --config-cache | -C | -disable-* | --disable-* \
1878 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1879 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1880 | -with-* | --with-* | -without-* | --without-* | --x)
1881 case "$ac_configure_args0 " in
1882 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1885 -* ) ac_must_keep_next=true ;;
1888 as_fn_append ac_configure_args " '$ac_arg'"
1893 { ac_configure_args0=; unset ac_configure_args0;}
1894 { ac_configure_args1=; unset ac_configure_args1;}
1896 # When interrupted or exit'd, cleanup temporary files, and complete
1897 # config.log. We remove comments because anyway the quotes in there
1898 # would cause problems or look ugly.
1899 # WARNING: Use '\'' to represent an apostrophe within the trap.
1900 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1901 trap 'exit_status=$?
1902 # Save into config.log some information that might help in debugging.
1906 $as_echo "## ---------------- ##
1907 ## Cache variables. ##
1908 ## ---------------- ##"
1910 # The following way of writing the cache mishandles newlines in values,
1912 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1913 eval ac_val=\$$ac_var
1917 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1918 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1921 _ | IFS | as_nl) ;; #(
1922 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1923 *) { eval $ac_var=; unset $ac_var;} ;;
1928 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1929 *${as_nl}ac_space=\ *)
1931 "s/'\''/'\''\\\\'\'''\''/g;
1932 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1935 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1942 $as_echo "## ----------------- ##
1943 ## Output variables. ##
1944 ## ----------------- ##"
1946 for ac_var in $ac_subst_vars
1948 eval ac_val=\$$ac_var
1950 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1952 $as_echo "$ac_var='\''$ac_val'\''"
1956 if test -n "$ac_subst_files"; then
1957 $as_echo "## ------------------- ##
1958 ## File substitutions. ##
1959 ## ------------------- ##"
1961 for ac_var in $ac_subst_files
1963 eval ac_val=\$$ac_var
1965 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1967 $as_echo "$ac_var='\''$ac_val'\''"
1972 if test -s confdefs.h; then
1973 $as_echo "## ----------- ##
1980 test "$ac_signal" != 0 &&
1981 $as_echo "$as_me: caught signal $ac_signal"
1982 $as_echo "$as_me: exit $exit_status"
1984 rm -f core *.core core.conftest.* &&
1985 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1988 for ac_signal in 1 2 13 15; do
1989 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1993 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1994 rm -f -r conftest* confdefs.h
1996 $as_echo "/* confdefs.h */" > confdefs.h
1998 # Predefined preprocessor variables.
2000 cat >>confdefs.h <<_ACEOF
2001 #define PACKAGE_NAME "$PACKAGE_NAME"
2004 cat >>confdefs.h <<_ACEOF
2005 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2008 cat >>confdefs.h <<_ACEOF
2009 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2012 cat >>confdefs.h <<_ACEOF
2013 #define PACKAGE_STRING "$PACKAGE_STRING"
2016 cat >>confdefs.h <<_ACEOF
2017 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2020 cat >>confdefs.h <<_ACEOF
2021 #define PACKAGE_URL "$PACKAGE_URL"
2025 # Let the site file select an alternate cache file if it wants to.
2026 # Prefer an explicitly selected file to automatically selected ones.
2029 if test -n "$CONFIG_SITE"; then
2030 # We do not want a PATH search for config.site.
2031 case $CONFIG_SITE in #((
2032 -*) ac_site_file1=./$CONFIG_SITE;;
2033 */*) ac_site_file1=$CONFIG_SITE;;
2034 *) ac_site_file1=./$CONFIG_SITE;;
2036 elif test "x$prefix" != xNONE; then
2037 ac_site_file1=$prefix/share/config.site
2038 ac_site_file2=$prefix/etc/config.site
2040 ac_site_file1=$ac_default_prefix/share/config.site
2041 ac_site_file2=$ac_default_prefix/etc/config.site
2043 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2045 test "x$ac_site_file" = xNONE && continue
2046 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2047 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2048 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2049 sed 's/^/| /' "$ac_site_file" >&5
2051 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2052 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2053 as_fn_error $? "failed to load site script $ac_site_file
2054 See \`config.log' for more details" "$LINENO" 5; }
2058 if test -r "$cache_file"; then
2059 # Some versions of bash will fail to source /dev/null (special files
2060 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2061 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2062 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2063 $as_echo "$as_me: loading cache $cache_file" >&6;}
2065 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2066 *) . "./$cache_file";;
2070 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2071 $as_echo "$as_me: creating cache $cache_file" >&6;}
2075 # Check that the precious variables saved in the cache have kept the same
2077 ac_cache_corrupted=false
2078 for ac_var in $ac_precious_vars; do
2079 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2080 eval ac_new_set=\$ac_env_${ac_var}_set
2081 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2082 eval ac_new_val=\$ac_env_${ac_var}_value
2083 case $ac_old_set,$ac_new_set in
2085 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2086 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2087 ac_cache_corrupted=: ;;
2089 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2090 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2091 ac_cache_corrupted=: ;;
2094 if test "x$ac_old_val" != "x$ac_new_val"; then
2095 # differences in whitespace do not lead to failure.
2096 ac_old_val_w=`echo x $ac_old_val`
2097 ac_new_val_w=`echo x $ac_new_val`
2098 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2099 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2100 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2101 ac_cache_corrupted=:
2103 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2104 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2105 eval $ac_var=\$ac_old_val
2107 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2108 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2109 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2110 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2113 # Pass precious variables to config.status.
2114 if test "$ac_new_set" = set; then
2116 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2117 *) ac_arg=$ac_var=$ac_new_val ;;
2119 case " $ac_configure_args " in
2120 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2121 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2125 if $ac_cache_corrupted; then
2126 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2127 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2128 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2129 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2130 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2132 ## -------------------- ##
2133 ## Main body of script. ##
2134 ## -------------------- ##
2137 ac_cpp='$CPP $CPPFLAGS'
2138 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2139 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2140 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2143 am__api_version='1.13'
2146 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2147 if test -f "$ac_dir/install-sh"; then
2149 ac_install_sh="$ac_aux_dir/install-sh -c"
2151 elif test -f "$ac_dir/install.sh"; then
2153 ac_install_sh="$ac_aux_dir/install.sh -c"
2155 elif test -f "$ac_dir/shtool"; then
2157 ac_install_sh="$ac_aux_dir/shtool install -c"
2161 if test -z "$ac_aux_dir"; then
2162 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2165 # These three variables are undocumented and unsupported,
2166 # and are intended to be withdrawn in a future Autoconf release.
2167 # They can cause serious problems if a builder's source tree is in a directory
2168 # whose full name contains unusual characters.
2169 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2170 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2171 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2174 # Find a good install program. We prefer a C program (faster),
2175 # so one script is as good as another. But avoid the broken or
2176 # incompatible versions:
2177 # SysV /etc/install, /usr/sbin/install
2178 # SunOS /usr/etc/install
2179 # IRIX /sbin/install
2181 # AmigaOS /C/install, which installs bootblocks on floppy discs
2182 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2183 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2184 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2185 # OS/2's system install, which has a completely different semantic
2186 # ./install, which can be erroneously created by make from ./install.sh.
2187 # Reject install programs that cannot install multiple files.
2188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2189 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2190 if test -z "$INSTALL"; then
2191 if ${ac_cv_path_install+:} false; then :
2192 $as_echo_n "(cached) " >&6
2194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2198 test -z "$as_dir" && as_dir=.
2199 # Account for people who put trailing slashes in PATH elements.
2200 case $as_dir/ in #((
2201 ./ | .// | /[cC]/* | \
2202 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2203 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2206 # OSF1 and SCO ODT 3.0 have their own names for install.
2207 # Don't use installbsd from OSF since it installs stuff as root
2209 for ac_prog in ginstall scoinst install; do
2210 for ac_exec_ext in '' $ac_executable_extensions; do
2211 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2212 if test $ac_prog = install &&
2213 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2214 # AIX install. It has an incompatible calling convention.
2216 elif test $ac_prog = install &&
2217 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2218 # program-specific install script used by HP pwplus--don't use.
2221 rm -rf conftest.one conftest.two conftest.dir
2222 echo one > conftest.one
2223 echo two > conftest.two
2225 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2226 test -s conftest.one && test -s conftest.two &&
2227 test -s conftest.dir/conftest.one &&
2228 test -s conftest.dir/conftest.two
2230 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2243 rm -rf conftest.one conftest.two conftest.dir
2246 if test "${ac_cv_path_install+set}" = set; then
2247 INSTALL=$ac_cv_path_install
2249 # As a last resort, use the slow shell script. Don't cache a
2250 # value for INSTALL within a source directory, because that will
2251 # break other packages using the cache if that directory is
2252 # removed, or if the value is a relative name.
2253 INSTALL=$ac_install_sh
2256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2257 $as_echo "$INSTALL" >&6; }
2259 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2260 # It thinks the first close brace ends the variable substitution.
2261 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2263 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2265 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2268 $as_echo_n "checking whether build environment is sane... " >&6; }
2269 # Reject unsafe characters in $srcdir or the absolute working directory
2270 # name. Accept space and tab only in the latter.
2274 *[\\\"\#\$\&\'\`$am_lf]*)
2275 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2278 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2279 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2282 # Do 'set' in a subshell so we don't clobber the current shell's
2283 # arguments. Must try -L first in case configure is actually a
2284 # symlink; some systems play weird games with the mod time of symlinks
2285 # (eg FreeBSD returns the mod time of the symlink's containing
2289 for am_try in 1 2; do
2290 echo "timestamp, slept: $am_has_slept" > conftest.file
2291 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2292 if test "$*" = "X"; then
2294 set X `ls -t "$srcdir/configure" conftest.file`
2296 if test "$*" != "X $srcdir/configure conftest.file" \
2297 && test "$*" != "X conftest.file $srcdir/configure"; then
2299 # If neither matched, then we have a broken ls. This can happen
2300 # if, for instance, CONFIG_SHELL is bash and it inherits a
2301 # broken ls alias from the environment. This has actually
2302 # happened. Such a system could not be considered "sane".
2303 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2304 alias in your environment" "$LINENO" 5
2306 if test "$2" = conftest.file || test $am_try -eq 2; then
2313 test "$2" = conftest.file
2319 as_fn_error $? "newly created file is older than distributed files!
2320 Check your system clock" "$LINENO" 5
2322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2323 $as_echo "yes" >&6; }
2324 # If we didn't sleep, we still need to ensure time stamps of config.status and
2325 # generated files are strictly newer.
2327 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2334 test "$program_prefix" != NONE &&
2335 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2336 # Use a double $ so make ignores it.
2337 test "$program_suffix" != NONE &&
2338 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2339 # Double any \ or $.
2340 # By default was `s,x,x', remove it if useless.
2341 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2342 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2344 # expand $ac_aux_dir to an absolute path
2345 am_aux_dir=`cd $ac_aux_dir && pwd`
2347 if test x"${MISSING+set}" != xset; then
2350 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2352 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2355 # Use eval to expand $SHELL
2356 if eval "$MISSING --is-lightweight"; then
2357 am_missing_run="$MISSING "
2360 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2361 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2364 if test x"${install_sh}" != xset; then
2367 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2369 install_sh="\${SHELL} $am_aux_dir/install-sh"
2373 # Installed binaries are usually stripped using 'strip' when the user
2374 # run "make install-strip". However 'strip' might not be the right
2375 # tool to use in cross-compilation environments, therefore Automake
2376 # will honor the 'STRIP' environment variable to overrule this program.
2377 if test "$cross_compiling" != no; then
2378 if test -n "$ac_tool_prefix"; then
2379 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2380 set dummy ${ac_tool_prefix}strip; ac_word=$2
2381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2382 $as_echo_n "checking for $ac_word... " >&6; }
2383 if ${ac_cv_prog_STRIP+:} false; then :
2384 $as_echo_n "(cached) " >&6
2386 if test -n "$STRIP"; then
2387 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2393 test -z "$as_dir" && as_dir=.
2394 for ac_exec_ext in '' $ac_executable_extensions; do
2395 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2396 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2397 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2406 STRIP=$ac_cv_prog_STRIP
2407 if test -n "$STRIP"; then
2408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2409 $as_echo "$STRIP" >&6; }
2411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2412 $as_echo "no" >&6; }
2417 if test -z "$ac_cv_prog_STRIP"; then
2419 # Extract the first word of "strip", so it can be a program name with args.
2420 set dummy strip; ac_word=$2
2421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2422 $as_echo_n "checking for $ac_word... " >&6; }
2423 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2424 $as_echo_n "(cached) " >&6
2426 if test -n "$ac_ct_STRIP"; then
2427 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2433 test -z "$as_dir" && as_dir=.
2434 for ac_exec_ext in '' $ac_executable_extensions; do
2435 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2436 ac_cv_prog_ac_ct_STRIP="strip"
2437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2446 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2447 if test -n "$ac_ct_STRIP"; then
2448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2449 $as_echo "$ac_ct_STRIP" >&6; }
2451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2452 $as_echo "no" >&6; }
2455 if test "x$ac_ct_STRIP" = x; then
2458 case $cross_compiling:$ac_tool_warned in
2460 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2461 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2462 ac_tool_warned=yes ;;
2467 STRIP="$ac_cv_prog_STRIP"
2471 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2474 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2475 if test -z "$MKDIR_P"; then
2476 if ${ac_cv_path_mkdir+:} false; then :
2477 $as_echo_n "(cached) " >&6
2479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2480 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2483 test -z "$as_dir" && as_dir=.
2484 for ac_prog in mkdir gmkdir; do
2485 for ac_exec_ext in '' $ac_executable_extensions; do
2486 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2487 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2488 'mkdir (GNU coreutils) '* | \
2489 'mkdir (coreutils) '* | \
2490 'mkdir (fileutils) '4.1*)
2491 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2501 test -d ./--version && rmdir ./--version
2502 if test "${ac_cv_path_mkdir+set}" = set; then
2503 MKDIR_P="$ac_cv_path_mkdir -p"
2505 # As a last resort, use the slow shell script. Don't cache a
2506 # value for MKDIR_P within a source directory, because that will
2507 # break other packages using the cache if that directory is
2508 # removed, or if the value is a relative name.
2509 MKDIR_P="$ac_install_sh -d"
2512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2513 $as_echo "$MKDIR_P" >&6; }
2515 for ac_prog in gawk mawk nawk awk
2517 # Extract the first word of "$ac_prog", so it can be a program name with args.
2518 set dummy $ac_prog; ac_word=$2
2519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2520 $as_echo_n "checking for $ac_word... " >&6; }
2521 if ${ac_cv_prog_AWK+:} false; then :
2522 $as_echo_n "(cached) " >&6
2524 if test -n "$AWK"; then
2525 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2531 test -z "$as_dir" && as_dir=.
2532 for ac_exec_ext in '' $ac_executable_extensions; do
2533 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2534 ac_cv_prog_AWK="$ac_prog"
2535 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2545 if test -n "$AWK"; then
2546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2547 $as_echo "$AWK" >&6; }
2549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2550 $as_echo "no" >&6; }
2554 test -n "$AWK" && break
2557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2558 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2560 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2561 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2562 $as_echo_n "(cached) " >&6
2564 cat >conftest.make <<\_ACEOF
2567 @echo '@@@%%%=$(MAKE)=@@@%%%'
2569 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2570 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2572 eval ac_cv_prog_make_${ac_make}_set=yes;;
2574 eval ac_cv_prog_make_${ac_make}_set=no;;
2578 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2580 $as_echo "yes" >&6; }
2583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2584 $as_echo "no" >&6; }
2585 SET_MAKE="MAKE=${MAKE-make}"
2588 rm -rf .tst 2>/dev/null
2589 mkdir .tst 2>/dev/null
2590 if test -d .tst; then
2595 rmdir .tst 2>/dev/null
2597 # Check whether --enable-silent-rules was given.
2598 if test "${enable_silent_rules+set}" = set; then :
2599 enableval=$enable_silent_rules;
2602 case $enable_silent_rules in # (((
2603 yes) AM_DEFAULT_VERBOSITY=0;;
2604 no) AM_DEFAULT_VERBOSITY=1;;
2605 *) AM_DEFAULT_VERBOSITY=1;;
2607 am_make=${MAKE-make}
2608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2609 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2610 if ${am_cv_make_support_nested_variables+:} false; then :
2611 $as_echo_n "(cached) " >&6
2613 if $as_echo 'TRUE=$(BAR$(V))
2619 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2620 am_cv_make_support_nested_variables=yes
2622 am_cv_make_support_nested_variables=no
2625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2626 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2627 if test $am_cv_make_support_nested_variables = yes; then
2629 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2631 AM_V=$AM_DEFAULT_VERBOSITY
2632 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2636 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2637 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2638 # is not polluted with repeated "-I."
2639 am__isrc=' -I$(srcdir)'
2640 # test to see if srcdir already configured
2641 if test -f $srcdir/config.status; then
2642 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2646 # test whether we have cygpath
2647 if test -z "$CYGPATH_W"; then
2648 if (cygpath --version) >/dev/null 2>/dev/null; then
2649 CYGPATH_W='cygpath -w'
2656 # Define the identity of the package.
2657 PACKAGE='libusb-compat'
2661 cat >>confdefs.h <<_ACEOF
2662 #define PACKAGE "$PACKAGE"
2666 cat >>confdefs.h <<_ACEOF
2667 #define VERSION "$VERSION"
2670 # Some tools Automake needs.
2672 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2675 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2678 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2681 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2684 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2686 # For better backward compatibility. To be removed once Automake 1.9.x
2687 # dies out for good. For more background, see:
2688 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2689 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2690 mkdir_p='$(MKDIR_P)'
2692 # We need awk for the "check" target. The system "awk" is bad on
2694 # Always define AMTAR for backward compatibility. Yes, it's still used
2695 # in the wild :-( We should find a proper way to deprecate it ...
2698 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2705 ac_config_headers="$ac_config_headers config.h"
2711 ac_cpp='$CPP $CPPFLAGS'
2712 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2713 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2714 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2715 if test -n "$ac_tool_prefix"; then
2716 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2717 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2719 $as_echo_n "checking for $ac_word... " >&6; }
2720 if ${ac_cv_prog_CC+:} false; then :
2721 $as_echo_n "(cached) " >&6
2723 if test -n "$CC"; then
2724 ac_cv_prog_CC="$CC" # Let the user override the test.
2726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2730 test -z "$as_dir" && as_dir=.
2731 for ac_exec_ext in '' $ac_executable_extensions; do
2732 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2733 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2744 if test -n "$CC"; then
2745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2746 $as_echo "$CC" >&6; }
2748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2749 $as_echo "no" >&6; }
2754 if test -z "$ac_cv_prog_CC"; then
2756 # Extract the first word of "gcc", so it can be a program name with args.
2757 set dummy gcc; ac_word=$2
2758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2759 $as_echo_n "checking for $ac_word... " >&6; }
2760 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2761 $as_echo_n "(cached) " >&6
2763 if test -n "$ac_ct_CC"; then
2764 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2770 test -z "$as_dir" && as_dir=.
2771 for ac_exec_ext in '' $ac_executable_extensions; do
2772 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2773 ac_cv_prog_ac_ct_CC="gcc"
2774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2783 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2784 if test -n "$ac_ct_CC"; then
2785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2786 $as_echo "$ac_ct_CC" >&6; }
2788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2789 $as_echo "no" >&6; }
2792 if test "x$ac_ct_CC" = x; then
2795 case $cross_compiling:$ac_tool_warned in
2797 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2798 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2799 ac_tool_warned=yes ;;
2807 if test -z "$CC"; then
2808 if test -n "$ac_tool_prefix"; then
2809 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2810 set dummy ${ac_tool_prefix}cc; ac_word=$2
2811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2812 $as_echo_n "checking for $ac_word... " >&6; }
2813 if ${ac_cv_prog_CC+:} false; then :
2814 $as_echo_n "(cached) " >&6
2816 if test -n "$CC"; then
2817 ac_cv_prog_CC="$CC" # Let the user override the test.
2819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2823 test -z "$as_dir" && as_dir=.
2824 for ac_exec_ext in '' $ac_executable_extensions; do
2825 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2826 ac_cv_prog_CC="${ac_tool_prefix}cc"
2827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2837 if test -n "$CC"; then
2838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2839 $as_echo "$CC" >&6; }
2841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2842 $as_echo "no" >&6; }
2848 if test -z "$CC"; then
2849 # Extract the first word of "cc", so it can be a program name with args.
2850 set dummy cc; ac_word=$2
2851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2852 $as_echo_n "checking for $ac_word... " >&6; }
2853 if ${ac_cv_prog_CC+:} false; then :
2854 $as_echo_n "(cached) " >&6
2856 if test -n "$CC"; then
2857 ac_cv_prog_CC="$CC" # Let the user override the test.
2860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2864 test -z "$as_dir" && as_dir=.
2865 for ac_exec_ext in '' $ac_executable_extensions; do
2866 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2867 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2868 ac_prog_rejected=yes
2872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2879 if test $ac_prog_rejected = yes; then
2880 # We found a bogon in the path, so make sure we never use it.
2881 set dummy $ac_cv_prog_CC
2883 if test $# != 0; then
2884 # We chose a different compiler from the bogus one.
2885 # However, it has the same basename, so the bogon will be chosen
2886 # first if we set CC to just the basename; use the full file name.
2888 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2894 if test -n "$CC"; then
2895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2896 $as_echo "$CC" >&6; }
2898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2899 $as_echo "no" >&6; }
2904 if test -z "$CC"; then
2905 if test -n "$ac_tool_prefix"; then
2906 for ac_prog in cl.exe
2908 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2909 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2911 $as_echo_n "checking for $ac_word... " >&6; }
2912 if ${ac_cv_prog_CC+:} false; then :
2913 $as_echo_n "(cached) " >&6
2915 if test -n "$CC"; then
2916 ac_cv_prog_CC="$CC" # Let the user override the test.
2918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2922 test -z "$as_dir" && as_dir=.
2923 for ac_exec_ext in '' $ac_executable_extensions; do
2924 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2925 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2936 if test -n "$CC"; then
2937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2938 $as_echo "$CC" >&6; }
2940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2941 $as_echo "no" >&6; }
2945 test -n "$CC" && break
2948 if test -z "$CC"; then
2950 for ac_prog in cl.exe
2952 # Extract the first word of "$ac_prog", so it can be a program name with args.
2953 set dummy $ac_prog; ac_word=$2
2954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2955 $as_echo_n "checking for $ac_word... " >&6; }
2956 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2957 $as_echo_n "(cached) " >&6
2959 if test -n "$ac_ct_CC"; then
2960 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2966 test -z "$as_dir" && as_dir=.
2967 for ac_exec_ext in '' $ac_executable_extensions; do
2968 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2969 ac_cv_prog_ac_ct_CC="$ac_prog"
2970 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2979 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2980 if test -n "$ac_ct_CC"; then
2981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2982 $as_echo "$ac_ct_CC" >&6; }
2984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2985 $as_echo "no" >&6; }
2989 test -n "$ac_ct_CC" && break
2992 if test "x$ac_ct_CC" = x; then
2995 case $cross_compiling:$ac_tool_warned in
2997 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2998 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2999 ac_tool_warned=yes ;;
3008 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3009 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3010 as_fn_error $? "no acceptable C compiler found in \$PATH
3011 See \`config.log' for more details" "$LINENO" 5; }
3013 # Provide some information about the compiler.
3014 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3017 for ac_option in --version -v -V -qversion; do
3018 { { ac_try="$ac_compiler $ac_option >&5"
3020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3021 *) ac_try_echo=$ac_try;;
3023 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3024 $as_echo "$ac_try_echo"; } >&5
3025 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3027 if test -s conftest.err; then
3029 ... rest of stderr output deleted ...
3030 10q' conftest.err >conftest.er1
3031 cat conftest.er1 >&5
3033 rm -f conftest.er1 conftest.err
3034 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3035 test $ac_status = 0; }
3038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3039 /* end confdefs.h. */
3049 ac_clean_files_save=$ac_clean_files
3050 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3051 # Try to create an executable without -o first, disregard a.out.
3052 # It will help us diagnose broken compilers, and finding out an intuition
3054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3055 $as_echo_n "checking whether the C compiler works... " >&6; }
3056 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3058 # The possible output files:
3059 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3062 for ac_file in $ac_files
3065 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3066 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3071 if { { ac_try="$ac_link_default"
3073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3074 *) ac_try_echo=$ac_try;;
3076 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3077 $as_echo "$ac_try_echo"; } >&5
3078 (eval "$ac_link_default") 2>&5
3080 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3081 test $ac_status = 0; }; then :
3082 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3083 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3084 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3085 # so that the user can short-circuit this test for compilers unknown to
3087 for ac_file in $ac_files ''
3089 test -f "$ac_file" || continue
3091 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3094 # We found the default executable, but exeext='' is most
3098 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3100 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3102 # We set ac_cv_exeext here because the later test for it is not
3103 # safe: cross compilers may not add the suffix if given an `-o'
3104 # argument, so we may need to know it at that point already.
3105 # Even if this section looks crufty: it has the advantage of
3112 test "$ac_cv_exeext" = no && ac_cv_exeext=
3117 if test -z "$ac_file"; then :
3118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3119 $as_echo "no" >&6; }
3120 $as_echo "$as_me: failed program was:" >&5
3121 sed 's/^/| /' conftest.$ac_ext >&5
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 77 "C compiler cannot create executables
3126 See \`config.log' for more details" "$LINENO" 5; }
3128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3129 $as_echo "yes" >&6; }
3131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3132 $as_echo_n "checking for C compiler default output file name... " >&6; }
3133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3134 $as_echo "$ac_file" >&6; }
3135 ac_exeext=$ac_cv_exeext
3137 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3138 ac_clean_files=$ac_clean_files_save
3139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3140 $as_echo_n "checking for suffix of executables... " >&6; }
3141 if { { ac_try="$ac_link"
3143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3144 *) ac_try_echo=$ac_try;;
3146 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3147 $as_echo "$ac_try_echo"; } >&5
3148 (eval "$ac_link") 2>&5
3150 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3151 test $ac_status = 0; }; then :
3152 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3153 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3154 # work properly (i.e., refer to `conftest.exe'), while it won't with
3156 for ac_file in conftest.exe conftest conftest.*; do
3157 test -f "$ac_file" || continue
3159 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3160 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3166 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3167 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3168 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3169 See \`config.log' for more details" "$LINENO" 5; }
3171 rm -f conftest conftest$ac_cv_exeext
3172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3173 $as_echo "$ac_cv_exeext" >&6; }
3175 rm -f conftest.$ac_ext
3176 EXEEXT=$ac_cv_exeext
3178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3179 /* end confdefs.h. */
3184 FILE *f = fopen ("conftest.out", "w");
3185 return ferror (f) || fclose (f) != 0;
3191 ac_clean_files="$ac_clean_files conftest.out"
3192 # Check that the compiler produces executables we can run. If not, either
3193 # the compiler is broken, or we cross compile.
3194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3195 $as_echo_n "checking whether we are cross compiling... " >&6; }
3196 if test "$cross_compiling" != yes; then
3197 { { ac_try="$ac_link"
3199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3200 *) ac_try_echo=$ac_try;;
3202 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3203 $as_echo "$ac_try_echo"; } >&5
3204 (eval "$ac_link") 2>&5
3206 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3207 test $ac_status = 0; }
3208 if { ac_try='./conftest$ac_cv_exeext'
3209 { { case "(($ac_try" in
3210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3211 *) ac_try_echo=$ac_try;;
3213 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3214 $as_echo "$ac_try_echo"; } >&5
3215 (eval "$ac_try") 2>&5
3217 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3218 test $ac_status = 0; }; }; then
3221 if test "$cross_compiling" = maybe; then
3224 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3225 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3226 as_fn_error $? "cannot run C compiled programs.
3227 If you meant to cross compile, use \`--host'.
3228 See \`config.log' for more details" "$LINENO" 5; }
3232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3233 $as_echo "$cross_compiling" >&6; }
3235 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3236 ac_clean_files=$ac_clean_files_save
3237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3238 $as_echo_n "checking for suffix of object files... " >&6; }
3239 if ${ac_cv_objext+:} false; then :
3240 $as_echo_n "(cached) " >&6
3242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3243 /* end confdefs.h. */
3253 rm -f conftest.o conftest.obj
3254 if { { ac_try="$ac_compile"
3256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3257 *) ac_try_echo=$ac_try;;
3259 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3260 $as_echo "$ac_try_echo"; } >&5
3261 (eval "$ac_compile") 2>&5
3263 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3264 test $ac_status = 0; }; then :
3265 for ac_file in conftest.o conftest.obj conftest.*; do
3266 test -f "$ac_file" || continue;
3268 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3269 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3274 $as_echo "$as_me: failed program was:" >&5
3275 sed 's/^/| /' conftest.$ac_ext >&5
3277 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3278 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3279 as_fn_error $? "cannot compute suffix of object files: cannot compile
3280 See \`config.log' for more details" "$LINENO" 5; }
3282 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3285 $as_echo "$ac_cv_objext" >&6; }
3286 OBJEXT=$ac_cv_objext
3288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3289 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3290 if ${ac_cv_c_compiler_gnu+:} false; then :
3291 $as_echo_n "(cached) " >&6
3293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3294 /* end confdefs.h. */
3307 if ac_fn_c_try_compile "$LINENO"; then :
3312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3313 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3317 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3318 if test $ac_compiler_gnu = yes; then
3323 ac_test_CFLAGS=${CFLAGS+set}
3324 ac_save_CFLAGS=$CFLAGS
3325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3326 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3327 if ${ac_cv_prog_cc_g+:} false; then :
3328 $as_echo_n "(cached) " >&6
3330 ac_save_c_werror_flag=$ac_c_werror_flag
3331 ac_c_werror_flag=yes
3334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3335 /* end confdefs.h. */
3345 if ac_fn_c_try_compile "$LINENO"; then :
3349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3350 /* end confdefs.h. */
3360 if ac_fn_c_try_compile "$LINENO"; then :
3363 ac_c_werror_flag=$ac_save_c_werror_flag
3365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3366 /* end confdefs.h. */
3376 if ac_fn_c_try_compile "$LINENO"; then :
3379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3384 ac_c_werror_flag=$ac_save_c_werror_flag
3386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3387 $as_echo "$ac_cv_prog_cc_g" >&6; }
3388 if test "$ac_test_CFLAGS" = set; then
3389 CFLAGS=$ac_save_CFLAGS
3390 elif test $ac_cv_prog_cc_g = yes; then
3391 if test "$GCC" = yes; then
3397 if test "$GCC" = yes; then
3403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3404 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3405 if ${ac_cv_prog_cc_c89+:} false; then :
3406 $as_echo_n "(cached) " >&6
3408 ac_cv_prog_cc_c89=no
3410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3411 /* end confdefs.h. */
3415 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3416 struct buf { int x; };
3417 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3418 static char *e (p, i)
3424 static char *f (char * (*g) (char **, int), char **p, ...)
3429 s = g (p, va_arg (v,int));
3434 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3435 function prototypes and stuff, but not '\xHH' hex character constants.
3436 These don't provoke an error unfortunately, instead are silently treated
3437 as 'x'. The following induces an error, until -std is added to get
3438 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3439 array size at least. It's necessary to write '\x00'==0 to get something
3440 that's true only with -std. */
3441 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3443 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3444 inside strings and character constants. */
3446 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3448 int test (int i, double x);
3449 struct s1 {int (*f) (int a);};
3450 struct s2 {int (*f) (double a);};
3451 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3457 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3462 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3463 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3465 CC="$ac_save_CC $ac_arg"
3466 if ac_fn_c_try_compile "$LINENO"; then :
3467 ac_cv_prog_cc_c89=$ac_arg
3469 rm -f core conftest.err conftest.$ac_objext
3470 test "x$ac_cv_prog_cc_c89" != "xno" && break
3472 rm -f conftest.$ac_ext
3477 case "x$ac_cv_prog_cc_c89" in
3479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3480 $as_echo "none needed" >&6; } ;;
3482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3483 $as_echo "unsupported" >&6; } ;;
3485 CC="$CC $ac_cv_prog_cc_c89"
3486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3487 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3489 if test "x$ac_cv_prog_cc_c89" != xno; then :
3494 ac_cpp='$CPP $CPPFLAGS'
3495 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3496 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3497 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3498 DEPDIR="${am__leading_dot}deps"
3500 ac_config_commands="$ac_config_commands depfiles"
3503 am_make=${MAKE-make}
3504 cat > confinc << 'END'
3506 @echo this is the am__doit target
3509 # If we don't find an include directive, just comment out the code.
3510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3511 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3515 # First try GNU make style include.
3516 echo "include confinc" > confmf
3517 # Ignore all kinds of additional output from 'make'.
3518 case `$am_make -s -f confmf 2> /dev/null` in #(
3519 *the\ am__doit\ target*)
3525 # Now try BSD make style include.
3526 if test "$am__include" = "#"; then
3527 echo '.include "confinc"' > confmf
3528 case `$am_make -s -f confmf 2> /dev/null` in #(
3529 *the\ am__doit\ target*)
3530 am__include=.include
3538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3539 $as_echo "$_am_result" >&6; }
3540 rm -f confinc confmf
3542 # Check whether --enable-dependency-tracking was given.
3543 if test "${enable_dependency_tracking+set}" = set; then :
3544 enableval=$enable_dependency_tracking;
3547 if test "x$enable_dependency_tracking" != xno; then
3548 am_depcomp="$ac_aux_dir/depcomp"
3552 if test "x$enable_dependency_tracking" != xno; then
3562 depcc="$CC" am_compiler_list=
3564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3565 $as_echo_n "checking dependency style of $depcc... " >&6; }
3566 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3567 $as_echo_n "(cached) " >&6
3569 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3570 # We make a subdir and do the tests there. Otherwise we can end up
3571 # making bogus files that we don't know about and never remove. For
3572 # instance it was reported that on HP-UX the gcc test will end up
3573 # making a dummy file named 'D' -- because '-MD' means "put the output
3577 # Copy depcomp to subdir because otherwise we won't find it if we're
3578 # using a relative directory.
3579 cp "$am_depcomp" conftest.dir
3581 # We will build objects and dependencies in a subdirectory because
3582 # it helps to detect inapplicable dependency modes. For instance
3583 # both Tru64's cc and ICC support -MD to output dependencies as a
3584 # side effect of compilation, but ICC will put the dependencies in
3585 # the current directory while Tru64 will put them in the object
3589 am_cv_CC_dependencies_compiler_type=none
3590 if test "$am_compiler_list" = ""; then
3591 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3594 case " $depcc " in #(
3595 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3598 for depmode in $am_compiler_list; do
3599 # Setup a source with many dependencies, because some compilers
3600 # like to wrap large dependency lists on column 80 (with \), and
3601 # we should not choose a depcomp mode which is confused by this.
3603 # We need to recreate these files for each test, as the compiler may
3604 # overwrite some of them when testing with obscure command lines.
3605 # This happens at least with the AIX C compiler.
3607 for i in 1 2 3 4 5 6; do
3608 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3609 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3610 # Solaris 10 /bin/sh.
3611 echo '/* dummy */' > sub/conftst$i.h
3613 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3615 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3616 # mode. It turns out that the SunPro C++ compiler does not properly
3617 # handle '-M -o', and we need to detect this. Also, some Intel
3618 # versions had trouble with output in subdirs.
3619 am__obj=sub/conftest.${OBJEXT-o}
3620 am__minus_obj="-o $am__obj"
3623 # This depmode causes a compiler race in universal mode.
3624 test "$am__universal" = false || continue
3627 # After this tag, mechanisms are not by side-effect, so they'll
3628 # only be used when explicitly requested.
3629 if test "x$enable_dependency_tracking" = xyes; then
3635 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3636 # This compiler won't grok '-c -o', but also, the minuso test has
3637 # not run yet. These depmodes are late enough in the game, and
3638 # so weak that their functioning should not be impacted.
3639 am__obj=conftest.${OBJEXT-o}
3644 if depmode=$depmode \
3645 source=sub/conftest.c object=$am__obj \
3646 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3647 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3648 >/dev/null 2>conftest.err &&
3649 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3650 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3651 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3652 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3653 # icc doesn't choke on unknown options, it will just issue warnings
3654 # or remarks (even with -Werror). So we grep stderr for any message
3655 # that says an option was ignored or not supported.
3656 # When given -MP, icc 7.0 and 7.1 complain thusly:
3657 # icc: Command line warning: ignoring option '-M'; no argument required
3658 # The diagnosis changed in icc 8.0:
3659 # icc: Command line remark: option '-MP' not supported
3660 if (grep 'ignoring option' conftest.err ||
3661 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3662 am_cv_CC_dependencies_compiler_type=$depmode
3671 am_cv_CC_dependencies_compiler_type=none
3675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3676 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3677 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3680 test "x$enable_dependency_tracking" != xno \
3681 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3683 am__fastdepCC_FALSE='#'
3685 am__fastdepCC_TRUE='#'
3686 am__fastdepCC_FALSE=
3692 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3693 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3698 macro_version='2.4.2'
3699 macro_revision='1.3337'
3713 ltmain="$ac_aux_dir/ltmain.sh"
3715 # Make sure we can run config.sub.
3716 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3717 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3720 $as_echo_n "checking build system type... " >&6; }
3721 if ${ac_cv_build+:} false; then :
3722 $as_echo_n "(cached) " >&6
3724 ac_build_alias=$build_alias
3725 test "x$ac_build_alias" = x &&
3726 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3727 test "x$ac_build_alias" = x &&
3728 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3729 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3730 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3734 $as_echo "$ac_cv_build" >&6; }
3735 case $ac_cv_build in
3737 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3740 ac_save_IFS=$IFS; IFS='-'
3746 # Remember, the first character of IFS is used to create $*,
3747 # except with old shells:
3750 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3754 $as_echo_n "checking host system type... " >&6; }
3755 if ${ac_cv_host+:} false; then :
3756 $as_echo_n "(cached) " >&6
3758 if test "x$host_alias" = x; then
3759 ac_cv_host=$ac_cv_build
3761 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3762 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3767 $as_echo "$ac_cv_host" >&6; }
3770 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3773 ac_save_IFS=$IFS; IFS='-'
3779 # Remember, the first character of IFS is used to create $*,
3780 # except with old shells:
3783 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3786 # Backslashify metacharacters that are still active within
3787 # double-quoted strings.
3788 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3790 # Same as above, but do not quote variable references.
3791 double_quote_subst='s/\(["`\\]\)/\\\1/g'
3793 # Sed substitution to delay expansion of an escaped shell variable in a
3794 # double_quote_subst'ed string.
3795 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3797 # Sed substitution to delay expansion of an escaped single quote.
3798 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3800 # Sed substitution to avoid accidental globbing in evaled expressions
3801 no_glob_subst='s/\*/\\\*/g'
3803 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3804 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3805 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3808 $as_echo_n "checking how to print strings... " >&6; }
3809 # Test print first, because it will be a builtin if present.
3810 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3811 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3813 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3816 # Use this function as a fallback that always works.
3817 func_fallback_echo ()
3819 eval 'cat <<_LTECHO_EOF
3823 ECHO='func_fallback_echo'
3826 # func_echo_all arg...
3827 # Invoke $ECHO with all args, space-separated.
3834 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3835 $as_echo "printf" >&6; } ;;
3836 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3837 $as_echo "print -r" >&6; } ;;
3838 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3839 $as_echo "cat" >&6; } ;;
3855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3856 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3857 if ${ac_cv_path_SED+:} false; then :
3858 $as_echo_n "(cached) " >&6
3860 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3861 for ac_i in 1 2 3 4 5 6 7; do
3862 ac_script="$ac_script$as_nl$ac_script"
3864 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3865 { ac_script=; unset ac_script;}
3866 if test -z "$SED"; then
3867 ac_path_SED_found=false
3868 # Loop through the user's path and test for each of PROGNAME-LIST
3869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3873 test -z "$as_dir" && as_dir=.
3874 for ac_prog in sed gsed; do
3875 for ac_exec_ext in '' $ac_executable_extensions; do
3876 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3877 as_fn_executable_p "$ac_path_SED" || continue
3878 # Check for GNU ac_path_SED and select it if it is found.
3879 # Check for GNU $ac_path_SED
3880 case `"$ac_path_SED" --version 2>&1` in
3882 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3885 $as_echo_n 0123456789 >"conftest.in"
3888 cat "conftest.in" "conftest.in" >"conftest.tmp"
3889 mv "conftest.tmp" "conftest.in"
3890 cp "conftest.in" "conftest.nl"
3891 $as_echo '' >> "conftest.nl"
3892 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3893 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3894 as_fn_arith $ac_count + 1 && ac_count=$as_val
3895 if test $ac_count -gt ${ac_path_SED_max-0}; then
3896 # Best one so far, save it but keep looking for a better one
3897 ac_cv_path_SED="$ac_path_SED"
3898 ac_path_SED_max=$ac_count
3900 # 10*(2^10) chars as input seems more than enough
3901 test $ac_count -gt 10 && break
3903 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3906 $ac_path_SED_found && break 3
3911 if test -z "$ac_cv_path_SED"; then
3912 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3920 $as_echo "$ac_cv_path_SED" >&6; }
3921 SED="$ac_cv_path_SED"
3924 test -z "$SED" && SED=sed
3925 Xsed="$SED -e 1s/^X//"
3937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3938 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3939 if ${ac_cv_path_GREP+:} false; then :
3940 $as_echo_n "(cached) " >&6
3942 if test -z "$GREP"; then
3943 ac_path_GREP_found=false
3944 # Loop through the user's path and test for each of PROGNAME-LIST
3945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3946 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3949 test -z "$as_dir" && as_dir=.
3950 for ac_prog in grep ggrep; do
3951 for ac_exec_ext in '' $ac_executable_extensions; do
3952 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3953 as_fn_executable_p "$ac_path_GREP" || continue
3954 # Check for GNU ac_path_GREP and select it if it is found.
3955 # Check for GNU $ac_path_GREP
3956 case `"$ac_path_GREP" --version 2>&1` in
3958 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3961 $as_echo_n 0123456789 >"conftest.in"
3964 cat "conftest.in" "conftest.in" >"conftest.tmp"
3965 mv "conftest.tmp" "conftest.in"
3966 cp "conftest.in" "conftest.nl"
3967 $as_echo 'GREP' >> "conftest.nl"
3968 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3969 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3970 as_fn_arith $ac_count + 1 && ac_count=$as_val
3971 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3972 # Best one so far, save it but keep looking for a better one
3973 ac_cv_path_GREP="$ac_path_GREP"
3974 ac_path_GREP_max=$ac_count
3976 # 10*(2^10) chars as input seems more than enough
3977 test $ac_count -gt 10 && break
3979 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3982 $ac_path_GREP_found && break 3
3987 if test -z "$ac_cv_path_GREP"; then
3988 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3991 ac_cv_path_GREP=$GREP
3995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3996 $as_echo "$ac_cv_path_GREP" >&6; }
3997 GREP="$ac_cv_path_GREP"
4000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4001 $as_echo_n "checking for egrep... " >&6; }
4002 if ${ac_cv_path_EGREP+:} false; then :
4003 $as_echo_n "(cached) " >&6
4005 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4006 then ac_cv_path_EGREP="$GREP -E"
4008 if test -z "$EGREP"; then
4009 ac_path_EGREP_found=false
4010 # Loop through the user's path and test for each of PROGNAME-LIST
4011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4012 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4015 test -z "$as_dir" && as_dir=.
4016 for ac_prog in egrep; do
4017 for ac_exec_ext in '' $ac_executable_extensions; do
4018 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4019 as_fn_executable_p "$ac_path_EGREP" || continue
4020 # Check for GNU ac_path_EGREP and select it if it is found.
4021 # Check for GNU $ac_path_EGREP
4022 case `"$ac_path_EGREP" --version 2>&1` in
4024 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4027 $as_echo_n 0123456789 >"conftest.in"
4030 cat "conftest.in" "conftest.in" >"conftest.tmp"
4031 mv "conftest.tmp" "conftest.in"
4032 cp "conftest.in" "conftest.nl"
4033 $as_echo 'EGREP' >> "conftest.nl"
4034 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4035 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4036 as_fn_arith $ac_count + 1 && ac_count=$as_val
4037 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4038 # Best one so far, save it but keep looking for a better one
4039 ac_cv_path_EGREP="$ac_path_EGREP"
4040 ac_path_EGREP_max=$ac_count
4042 # 10*(2^10) chars as input seems more than enough
4043 test $ac_count -gt 10 && break
4045 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4048 $ac_path_EGREP_found && break 3
4053 if test -z "$ac_cv_path_EGREP"; then
4054 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4057 ac_cv_path_EGREP=$EGREP
4062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4063 $as_echo "$ac_cv_path_EGREP" >&6; }
4064 EGREP="$ac_cv_path_EGREP"
4067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4068 $as_echo_n "checking for fgrep... " >&6; }
4069 if ${ac_cv_path_FGREP+:} false; then :
4070 $as_echo_n "(cached) " >&6
4072 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4073 then ac_cv_path_FGREP="$GREP -F"
4075 if test -z "$FGREP"; then
4076 ac_path_FGREP_found=false
4077 # Loop through the user's path and test for each of PROGNAME-LIST
4078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4079 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4082 test -z "$as_dir" && as_dir=.
4083 for ac_prog in fgrep; do
4084 for ac_exec_ext in '' $ac_executable_extensions; do
4085 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4086 as_fn_executable_p "$ac_path_FGREP" || continue
4087 # Check for GNU ac_path_FGREP and select it if it is found.
4088 # Check for GNU $ac_path_FGREP
4089 case `"$ac_path_FGREP" --version 2>&1` in
4091 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4094 $as_echo_n 0123456789 >"conftest.in"
4097 cat "conftest.in" "conftest.in" >"conftest.tmp"
4098 mv "conftest.tmp" "conftest.in"
4099 cp "conftest.in" "conftest.nl"
4100 $as_echo 'FGREP' >> "conftest.nl"
4101 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4102 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4103 as_fn_arith $ac_count + 1 && ac_count=$as_val
4104 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4105 # Best one so far, save it but keep looking for a better one
4106 ac_cv_path_FGREP="$ac_path_FGREP"
4107 ac_path_FGREP_max=$ac_count
4109 # 10*(2^10) chars as input seems more than enough
4110 test $ac_count -gt 10 && break
4112 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4115 $ac_path_FGREP_found && break 3
4120 if test -z "$ac_cv_path_FGREP"; then
4121 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4124 ac_cv_path_FGREP=$FGREP
4129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4130 $as_echo "$ac_cv_path_FGREP" >&6; }
4131 FGREP="$ac_cv_path_FGREP"
4134 test -z "$GREP" && GREP=grep
4154 # Check whether --with-gnu-ld was given.
4155 if test "${with_gnu_ld+set}" = set; then :
4156 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4162 if test "$GCC" = yes; then
4163 # Check if gcc -print-prog-name=ld gives a path.
4164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4165 $as_echo_n "checking for ld used by $CC... " >&6; }
4168 # gcc leaves a trailing carriage return which upsets mingw
4169 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4171 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4174 # Accept absolute paths.
4176 re_direlt='/[^/][^/]*/\.\./'
4177 # Canonicalize the pathname of ld
4178 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4179 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4180 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4182 test -z "$LD" && LD="$ac_prog"
4185 # If it fails, then pretend we aren't using GCC.
4189 # If it is relative, then search for the first ld in PATH.
4193 elif test "$with_gnu_ld" = yes; then
4194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4195 $as_echo_n "checking for GNU ld... " >&6; }
4197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4198 $as_echo_n "checking for non-GNU ld... " >&6; }
4200 if ${lt_cv_path_LD+:} false; then :
4201 $as_echo_n "(cached) " >&6
4203 if test -z "$LD"; then
4204 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4205 for ac_dir in $PATH; do
4207 test -z "$ac_dir" && ac_dir=.
4208 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4209 lt_cv_path_LD="$ac_dir/$ac_prog"
4210 # Check to see if the program is GNU ld. I'd rather use --version,
4211 # but apparently some variants of GNU ld only accept -v.
4212 # Break only if it was the GNU/non-GNU ld that we prefer.
4213 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4214 *GNU* | *'with BFD'*)
4215 test "$with_gnu_ld" != no && break
4218 test "$with_gnu_ld" != yes && break
4225 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4230 if test -n "$LD"; then
4231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4232 $as_echo "$LD" >&6; }
4234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4235 $as_echo "no" >&6; }
4237 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4239 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4240 if ${lt_cv_prog_gnu_ld+:} false; then :
4241 $as_echo_n "(cached) " >&6
4243 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4244 case `$LD -v 2>&1 </dev/null` in
4245 *GNU* | *'with BFD'*)
4246 lt_cv_prog_gnu_ld=yes
4249 lt_cv_prog_gnu_ld=no
4253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4254 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4255 with_gnu_ld=$lt_cv_prog_gnu_ld
4265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4266 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4267 if ${lt_cv_path_NM+:} false; then :
4268 $as_echo_n "(cached) " >&6
4270 if test -n "$NM"; then
4271 # Let the user override the test.
4274 lt_nm_to_check="${ac_tool_prefix}nm"
4275 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4276 lt_nm_to_check="$lt_nm_to_check nm"
4278 for lt_tmp_nm in $lt_nm_to_check; do
4279 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4280 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4282 test -z "$ac_dir" && ac_dir=.
4283 tmp_nm="$ac_dir/$lt_tmp_nm"
4284 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4285 # Check to see if the nm accepts a BSD-compat flag.
4286 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4287 # nm: unknown option "B" ignored
4288 # Tru64's nm complains that /dev/null is an invalid object file
4289 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4290 */dev/null* | *'Invalid file or object type'*)
4291 lt_cv_path_NM="$tmp_nm -B"
4295 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4297 lt_cv_path_NM="$tmp_nm -p"
4301 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4302 continue # so that we can try to find one that supports BSD flags
4311 : ${lt_cv_path_NM=no}
4314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4315 $as_echo "$lt_cv_path_NM" >&6; }
4316 if test "$lt_cv_path_NM" != "no"; then
4319 # Didn't find any BSD compatible name lister, look for dumpbin.
4320 if test -n "$DUMPBIN"; then :
4321 # Let the user override the test.
4323 if test -n "$ac_tool_prefix"; then
4324 for ac_prog in dumpbin "link -dump"
4326 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4327 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4329 $as_echo_n "checking for $ac_word... " >&6; }
4330 if ${ac_cv_prog_DUMPBIN+:} false; then :
4331 $as_echo_n "(cached) " >&6
4333 if test -n "$DUMPBIN"; then
4334 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4340 test -z "$as_dir" && as_dir=.
4341 for ac_exec_ext in '' $ac_executable_extensions; do
4342 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4343 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4344 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4353 DUMPBIN=$ac_cv_prog_DUMPBIN
4354 if test -n "$DUMPBIN"; then
4355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4356 $as_echo "$DUMPBIN" >&6; }
4358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4359 $as_echo "no" >&6; }
4363 test -n "$DUMPBIN" && break
4366 if test -z "$DUMPBIN"; then
4367 ac_ct_DUMPBIN=$DUMPBIN
4368 for ac_prog in dumpbin "link -dump"
4370 # Extract the first word of "$ac_prog", so it can be a program name with args.
4371 set dummy $ac_prog; ac_word=$2
4372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4373 $as_echo_n "checking for $ac_word... " >&6; }
4374 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4375 $as_echo_n "(cached) " >&6
4377 if test -n "$ac_ct_DUMPBIN"; then
4378 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4384 test -z "$as_dir" && as_dir=.
4385 for ac_exec_ext in '' $ac_executable_extensions; do
4386 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4387 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4388 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4397 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4398 if test -n "$ac_ct_DUMPBIN"; then
4399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4400 $as_echo "$ac_ct_DUMPBIN" >&6; }
4402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4403 $as_echo "no" >&6; }
4407 test -n "$ac_ct_DUMPBIN" && break
4410 if test "x$ac_ct_DUMPBIN" = x; then
4413 case $cross_compiling:$ac_tool_warned in
4415 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4416 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4417 ac_tool_warned=yes ;;
4419 DUMPBIN=$ac_ct_DUMPBIN
4423 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4425 DUMPBIN="$DUMPBIN -symbols"
4433 if test "$DUMPBIN" != ":"; then
4437 test -z "$NM" && NM=nm
4444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4445 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4446 if ${lt_cv_nm_interface+:} false; then :
4447 $as_echo_n "(cached) " >&6
4449 lt_cv_nm_interface="BSD nm"
4450 echo "int some_variable = 0;" > conftest.$ac_ext
4451 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4452 (eval "$ac_compile" 2>conftest.err)
4453 cat conftest.err >&5
4454 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4455 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4456 cat conftest.err >&5
4457 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4458 cat conftest.out >&5
4459 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4460 lt_cv_nm_interface="MS dumpbin"
4464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4465 $as_echo "$lt_cv_nm_interface" >&6; }
4467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4468 $as_echo_n "checking whether ln -s works... " >&6; }
4470 if test "$LN_S" = "ln -s"; then
4471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4472 $as_echo "yes" >&6; }
4474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4475 $as_echo "no, using $LN_S" >&6; }
4478 # find the maximum length of command line arguments
4479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4480 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4481 if ${lt_cv_sys_max_cmd_len+:} false; then :
4482 $as_echo_n "(cached) " >&6
4489 # On DJGPP, this test can blow up pretty badly due to problems in libc
4490 # (any single argument exceeding 2000 bytes causes a buffer overrun
4491 # during glob expansion). Even if it were fixed, the result of this
4492 # check would be larger than it should be.
4493 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4497 # Under GNU Hurd, this test is not required because there is
4498 # no limit to the length of command line arguments.
4499 # Libtool will interpret -1 as no limit whatsoever
4500 lt_cv_sys_max_cmd_len=-1;
4503 cygwin* | mingw* | cegcc*)
4504 # On Win9x/ME, this test blows up -- it succeeds, but takes
4505 # about 5 minutes as the teststring grows exponentially.
4506 # Worse, since 9x/ME are not pre-emptively multitasking,
4507 # you end up with a "frozen" computer, even though with patience
4508 # the test eventually succeeds (with a max line length of 256k).
4509 # Instead, let's just punt: use the minimum linelength reported by
4510 # all of the supported platforms: 8192 (on NT/2K/XP).
4511 lt_cv_sys_max_cmd_len=8192;
4515 # On MiNT this can take a long time and run out of memory.
4516 lt_cv_sys_max_cmd_len=8192;
4520 # On AmigaOS with pdksh, this test takes hours, literally.
4521 # So we just punt and use a minimum line length of 8192.
4522 lt_cv_sys_max_cmd_len=8192;
4525 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4526 # This has been around since 386BSD, at least. Likely further.
4527 if test -x /sbin/sysctl; then
4528 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4529 elif test -x /usr/sbin/sysctl; then
4530 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4532 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4534 # And add a safety zone
4535 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4536 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4540 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4541 lt_cv_sys_max_cmd_len=196608
4545 # The test takes a long time on OS/2.
4546 lt_cv_sys_max_cmd_len=8192
4550 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4551 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4552 # nice to cause kernel panics so lets avoid the loop below.
4553 # First set a reasonable default.
4554 lt_cv_sys_max_cmd_len=16384
4556 if test -x /sbin/sysconfig; then
4557 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4558 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4563 lt_cv_sys_max_cmd_len=102400
4565 sysv5* | sco5v6* | sysv4.2uw2*)
4566 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4567 if test -n "$kargmax"; then
4568 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4570 lt_cv_sys_max_cmd_len=32768
4574 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4575 if test -n "$lt_cv_sys_max_cmd_len"; then
4576 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4577 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4579 # Make teststring a little bigger before we do anything with it.
4580 # a 1K string should be a reasonable start.
4581 for i in 1 2 3 4 5 6 7 8 ; do
4582 teststring=$teststring$teststring
4584 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4585 # If test is not a shell built-in, we'll probably end up computing a
4586 # maximum length that is only half of the actual maximum length, but
4588 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4589 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4590 test $i != 17 # 1/2 MB should be enough
4593 teststring=$teststring$teststring
4595 # Only check the string length outside the loop.
4596 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4598 # Add a significant safety factor because C++ compilers can tack on
4599 # massive amounts of additional arguments before passing them to the
4600 # linker. It appears as though 1/2 is a usable value.
4601 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4608 if test -n $lt_cv_sys_max_cmd_len ; then
4609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4610 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4613 $as_echo "none" >&6; }
4615 max_cmd_len=$lt_cv_sys_max_cmd_len
4626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4627 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4628 # Try some XSI features
4631 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4633 && eval 'test $(( 1 + 1 )) -eq 2 \
4634 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4637 $as_echo "$xsi_shell" >&6; }
4640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4641 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4643 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4645 && lt_shell_append=yes
4646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4647 $as_echo "$lt_shell_append" >&6; }
4650 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4660 # test EBCDIC or ASCII
4661 case `echo X|tr X '\101'` in
4662 A) # ASCII based system
4663 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4664 lt_SP2NL='tr \040 \012'
4665 lt_NL2SP='tr \015\012 \040\040'
4667 *) # EBCDIC based system
4668 lt_SP2NL='tr \100 \n'
4669 lt_NL2SP='tr \r\n \100\100'
4681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4682 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4683 if ${lt_cv_to_host_file_cmd+:} false; then :
4684 $as_echo_n "(cached) " >&6
4689 *-*-mingw* ) # actually msys
4690 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4693 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4695 * ) # otherwise, assume *nix
4696 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4702 *-*-mingw* ) # actually msys
4703 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4706 lt_cv_to_host_file_cmd=func_convert_file_noop
4708 * ) # otherwise, assume *nix
4709 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4713 * ) # unhandled hosts (and "normal" native builds)
4714 lt_cv_to_host_file_cmd=func_convert_file_noop
4720 to_host_file_cmd=$lt_cv_to_host_file_cmd
4721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4722 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
4728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4729 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4730 if ${lt_cv_to_tool_file_cmd+:} false; then :
4731 $as_echo_n "(cached) " >&6
4733 #assume ordinary cross tools, or native build.
4734 lt_cv_to_tool_file_cmd=func_convert_file_noop
4738 *-*-mingw* ) # actually msys
4739 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4747 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4749 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4756 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4757 if ${lt_cv_ld_reload_flag+:} false; then :
4758 $as_echo_n "(cached) " >&6
4760 lt_cv_ld_reload_flag='-r'
4762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4763 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4764 reload_flag=$lt_cv_ld_reload_flag
4765 case $reload_flag in
4767 *) reload_flag=" $reload_flag" ;;
4769 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4771 cygwin* | mingw* | pw32* | cegcc*)
4772 if test "$GCC" != yes; then
4777 if test "$GCC" = yes; then
4778 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4780 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4793 if test -n "$ac_tool_prefix"; then
4794 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4795 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4797 $as_echo_n "checking for $ac_word... " >&6; }
4798 if ${ac_cv_prog_OBJDUMP+:} false; then :
4799 $as_echo_n "(cached) " >&6
4801 if test -n "$OBJDUMP"; then
4802 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4808 test -z "$as_dir" && as_dir=.
4809 for ac_exec_ext in '' $ac_executable_extensions; do
4810 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4811 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4821 OBJDUMP=$ac_cv_prog_OBJDUMP
4822 if test -n "$OBJDUMP"; then
4823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4824 $as_echo "$OBJDUMP" >&6; }
4826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4827 $as_echo "no" >&6; }
4832 if test -z "$ac_cv_prog_OBJDUMP"; then
4833 ac_ct_OBJDUMP=$OBJDUMP
4834 # Extract the first word of "objdump", so it can be a program name with args.
4835 set dummy objdump; ac_word=$2
4836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4837 $as_echo_n "checking for $ac_word... " >&6; }
4838 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4839 $as_echo_n "(cached) " >&6
4841 if test -n "$ac_ct_OBJDUMP"; then
4842 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4848 test -z "$as_dir" && as_dir=.
4849 for ac_exec_ext in '' $ac_executable_extensions; do
4850 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4851 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4861 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4862 if test -n "$ac_ct_OBJDUMP"; then
4863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4864 $as_echo "$ac_ct_OBJDUMP" >&6; }
4866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4867 $as_echo "no" >&6; }
4870 if test "x$ac_ct_OBJDUMP" = x; then
4873 case $cross_compiling:$ac_tool_warned in
4875 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4876 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4877 ac_tool_warned=yes ;;
4879 OBJDUMP=$ac_ct_OBJDUMP
4882 OBJDUMP="$ac_cv_prog_OBJDUMP"
4885 test -z "$OBJDUMP" && OBJDUMP=objdump
4895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4896 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4897 if ${lt_cv_deplibs_check_method+:} false; then :
4898 $as_echo_n "(cached) " >&6
4900 lt_cv_file_magic_cmd='$MAGIC_CMD'
4901 lt_cv_file_magic_test_file=
4902 lt_cv_deplibs_check_method='unknown'
4903 # Need to set the preceding variable on all platforms that support
4904 # interlibrary dependencies.
4905 # 'none' -- dependencies not supported.
4906 # `unknown' -- same as none, but documents that we really don't know.
4907 # 'pass_all' -- all dependencies passed with no checks.
4908 # 'test_compile' -- check by making test program.
4909 # 'file_magic [[regex]]' -- check by looking for files in library path
4910 # which responds to the $file_magic_cmd with a given extended regex.
4911 # If you have `file' or equivalent on your system and you're not sure
4912 # whether `pass_all' will *always* work, you probably want this one.
4916 lt_cv_deplibs_check_method=pass_all
4920 lt_cv_deplibs_check_method=pass_all
4924 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4925 lt_cv_file_magic_cmd='/usr/bin/file -L'
4926 lt_cv_file_magic_test_file=/shlib/libc.so
4930 # func_win32_libid is a shell function defined in ltmain.sh
4931 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4932 lt_cv_file_magic_cmd='func_win32_libid'
4936 # Base MSYS/MinGW do not provide the 'file' command needed by
4937 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4938 # unless we find 'file', for example because we are cross-compiling.
4939 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
4940 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
4941 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4942 lt_cv_file_magic_cmd='func_win32_libid'
4944 # Keep this pattern in sync with the one in func_win32_libid.
4945 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
4946 lt_cv_file_magic_cmd='$OBJDUMP -f'
4951 # use the weaker test based on 'objdump'. See mingw*.
4952 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4953 lt_cv_file_magic_cmd='$OBJDUMP -f'
4956 darwin* | rhapsody*)
4957 lt_cv_deplibs_check_method=pass_all
4960 freebsd* | dragonfly*)
4961 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4964 # Not sure whether the presence of OpenBSD here was a mistake.
4965 # Let's accept both of them until this is cleared up.
4966 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4967 lt_cv_file_magic_cmd=/usr/bin/file
4968 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4972 lt_cv_deplibs_check_method=pass_all
4977 lt_cv_deplibs_check_method=pass_all
4981 lt_cv_deplibs_check_method=pass_all
4984 hpux10.20* | hpux11*)
4985 lt_cv_file_magic_cmd=/usr/bin/file
4988 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4989 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4992 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]'
4993 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4996 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
4997 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5003 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5004 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5007 irix5* | irix6* | nonstopux*)
5009 *-32|*"-32 ") libmagic=32-bit;;
5010 *-n32|*"-n32 ") libmagic=N32;;
5011 *-64|*"-64 ") libmagic=64-bit;;
5012 *) libmagic=never-match;;
5014 lt_cv_deplibs_check_method=pass_all
5017 # This must be glibc/ELF.
5018 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5019 lt_cv_deplibs_check_method=pass_all
5023 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5024 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5026 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5031 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5032 lt_cv_file_magic_cmd=/usr/bin/file
5033 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5037 lt_cv_deplibs_check_method=pass_all
5041 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5042 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5044 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5048 osf3* | osf4* | osf5*)
5049 lt_cv_deplibs_check_method=pass_all
5053 lt_cv_deplibs_check_method=pass_all
5057 lt_cv_deplibs_check_method=pass_all
5060 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5061 lt_cv_deplibs_check_method=pass_all
5065 case $host_vendor in
5067 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]'
5068 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5071 lt_cv_deplibs_check_method=pass_all
5074 lt_cv_file_magic_cmd='/bin/file'
5075 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5078 lt_cv_file_magic_cmd='/bin/file'
5079 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5080 lt_cv_file_magic_test_file=/lib/libc.so
5083 lt_cv_deplibs_check_method=pass_all
5086 lt_cv_deplibs_check_method=pass_all
5092 lt_cv_deplibs_check_method=pass_all
5097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5098 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5102 if test "$build" = "$host"; then
5105 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5108 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5114 file_magic_cmd=$lt_cv_file_magic_cmd
5115 deplibs_check_method=$lt_cv_deplibs_check_method
5116 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5139 if test -n "$ac_tool_prefix"; then
5140 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5141 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5143 $as_echo_n "checking for $ac_word... " >&6; }
5144 if ${ac_cv_prog_DLLTOOL+:} false; then :
5145 $as_echo_n "(cached) " >&6
5147 if test -n "$DLLTOOL"; then
5148 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5154 test -z "$as_dir" && as_dir=.
5155 for ac_exec_ext in '' $ac_executable_extensions; do
5156 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5157 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5158 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5167 DLLTOOL=$ac_cv_prog_DLLTOOL
5168 if test -n "$DLLTOOL"; then
5169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5170 $as_echo "$DLLTOOL" >&6; }
5172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5173 $as_echo "no" >&6; }
5178 if test -z "$ac_cv_prog_DLLTOOL"; then
5179 ac_ct_DLLTOOL=$DLLTOOL
5180 # Extract the first word of "dlltool", so it can be a program name with args.
5181 set dummy dlltool; ac_word=$2
5182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5183 $as_echo_n "checking for $ac_word... " >&6; }
5184 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5185 $as_echo_n "(cached) " >&6
5187 if test -n "$ac_ct_DLLTOOL"; then
5188 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5194 test -z "$as_dir" && as_dir=.
5195 for ac_exec_ext in '' $ac_executable_extensions; do
5196 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5197 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5207 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5208 if test -n "$ac_ct_DLLTOOL"; then
5209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5210 $as_echo "$ac_ct_DLLTOOL" >&6; }
5212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5213 $as_echo "no" >&6; }
5216 if test "x$ac_ct_DLLTOOL" = x; then
5219 case $cross_compiling:$ac_tool_warned in
5221 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5222 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5223 ac_tool_warned=yes ;;
5225 DLLTOOL=$ac_ct_DLLTOOL
5228 DLLTOOL="$ac_cv_prog_DLLTOOL"
5231 test -z "$DLLTOOL" && DLLTOOL=dlltool
5242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5243 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5244 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5245 $as_echo_n "(cached) " >&6
5247 lt_cv_sharedlib_from_linklib_cmd='unknown'
5250 cygwin* | mingw* | pw32* | cegcc*)
5251 # two different shell functions defined in ltmain.sh
5252 # decide which to use based on capabilities of $DLLTOOL
5253 case `$DLLTOOL --help 2>&1` in
5254 *--identify-strict*)
5255 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5258 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5263 # fallback: assume linklib IS sharedlib
5264 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5270 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5271 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5272 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5281 if test -n "$ac_tool_prefix"; then
5284 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5285 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5287 $as_echo_n "checking for $ac_word... " >&6; }
5288 if ${ac_cv_prog_AR+:} false; then :
5289 $as_echo_n "(cached) " >&6
5291 if test -n "$AR"; then
5292 ac_cv_prog_AR="$AR" # Let the user override the test.
5294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5298 test -z "$as_dir" && as_dir=.
5299 for ac_exec_ext in '' $ac_executable_extensions; do
5300 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5301 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5302 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5312 if test -n "$AR"; then
5313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5314 $as_echo "$AR" >&6; }
5316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5317 $as_echo "no" >&6; }
5321 test -n "$AR" && break
5324 if test -z "$AR"; then
5328 # Extract the first word of "$ac_prog", so it can be a program name with args.
5329 set dummy $ac_prog; ac_word=$2
5330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5331 $as_echo_n "checking for $ac_word... " >&6; }
5332 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5333 $as_echo_n "(cached) " >&6
5335 if test -n "$ac_ct_AR"; then
5336 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5342 test -z "$as_dir" && as_dir=.
5343 for ac_exec_ext in '' $ac_executable_extensions; do
5344 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5345 ac_cv_prog_ac_ct_AR="$ac_prog"
5346 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5355 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5356 if test -n "$ac_ct_AR"; then
5357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5358 $as_echo "$ac_ct_AR" >&6; }
5360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5361 $as_echo "no" >&6; }
5365 test -n "$ac_ct_AR" && break
5368 if test "x$ac_ct_AR" = x; then
5371 case $cross_compiling:$ac_tool_warned in
5373 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5374 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5375 ac_tool_warned=yes ;;
5394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5395 $as_echo_n "checking for archiver @FILE support... " >&6; }
5396 if ${lt_cv_ar_at_file+:} false; then :
5397 $as_echo_n "(cached) " >&6
5400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5401 /* end confdefs.h. */
5411 if ac_fn_c_try_compile "$LINENO"; then :
5412 echo conftest.$ac_objext > conftest.lst
5413 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5414 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5415 (eval $lt_ar_try) 2>&5
5417 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5418 test $ac_status = 0; }
5419 if test "$ac_status" -eq 0; then
5420 # Ensure the archiver fails upon bogus file names.
5421 rm -f conftest.$ac_objext libconftest.a
5422 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5423 (eval $lt_ar_try) 2>&5
5425 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5426 test $ac_status = 0; }
5427 if test "$ac_status" -ne 0; then
5431 rm -f conftest.* libconftest.a
5434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5438 $as_echo "$lt_cv_ar_at_file" >&6; }
5440 if test "x$lt_cv_ar_at_file" = xno; then
5443 archiver_list_spec=$lt_cv_ar_at_file
5452 if test -n "$ac_tool_prefix"; then
5453 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5454 set dummy ${ac_tool_prefix}strip; ac_word=$2
5455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5456 $as_echo_n "checking for $ac_word... " >&6; }
5457 if ${ac_cv_prog_STRIP+:} false; then :
5458 $as_echo_n "(cached) " >&6
5460 if test -n "$STRIP"; then
5461 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5467 test -z "$as_dir" && as_dir=.
5468 for ac_exec_ext in '' $ac_executable_extensions; do
5469 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5470 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5480 STRIP=$ac_cv_prog_STRIP
5481 if test -n "$STRIP"; then
5482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5483 $as_echo "$STRIP" >&6; }
5485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5486 $as_echo "no" >&6; }
5491 if test -z "$ac_cv_prog_STRIP"; then
5493 # Extract the first word of "strip", so it can be a program name with args.
5494 set dummy strip; ac_word=$2
5495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5496 $as_echo_n "checking for $ac_word... " >&6; }
5497 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5498 $as_echo_n "(cached) " >&6
5500 if test -n "$ac_ct_STRIP"; then
5501 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5507 test -z "$as_dir" && as_dir=.
5508 for ac_exec_ext in '' $ac_executable_extensions; do
5509 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5510 ac_cv_prog_ac_ct_STRIP="strip"
5511 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5520 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5521 if test -n "$ac_ct_STRIP"; then
5522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5523 $as_echo "$ac_ct_STRIP" >&6; }
5525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5526 $as_echo "no" >&6; }
5529 if test "x$ac_ct_STRIP" = x; then
5532 case $cross_compiling:$ac_tool_warned in
5534 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5535 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5536 ac_tool_warned=yes ;;
5541 STRIP="$ac_cv_prog_STRIP"
5544 test -z "$STRIP" && STRIP=:
5551 if test -n "$ac_tool_prefix"; then
5552 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5553 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5555 $as_echo_n "checking for $ac_word... " >&6; }
5556 if ${ac_cv_prog_RANLIB+:} false; then :
5557 $as_echo_n "(cached) " >&6
5559 if test -n "$RANLIB"; then
5560 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5566 test -z "$as_dir" && as_dir=.
5567 for ac_exec_ext in '' $ac_executable_extensions; do
5568 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5569 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5579 RANLIB=$ac_cv_prog_RANLIB
5580 if test -n "$RANLIB"; then
5581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5582 $as_echo "$RANLIB" >&6; }
5584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5585 $as_echo "no" >&6; }
5590 if test -z "$ac_cv_prog_RANLIB"; then
5591 ac_ct_RANLIB=$RANLIB
5592 # Extract the first word of "ranlib", so it can be a program name with args.
5593 set dummy ranlib; ac_word=$2
5594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5595 $as_echo_n "checking for $ac_word... " >&6; }
5596 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5597 $as_echo_n "(cached) " >&6
5599 if test -n "$ac_ct_RANLIB"; then
5600 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5606 test -z "$as_dir" && as_dir=.
5607 for ac_exec_ext in '' $ac_executable_extensions; do
5608 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5609 ac_cv_prog_ac_ct_RANLIB="ranlib"
5610 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5619 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5620 if test -n "$ac_ct_RANLIB"; then
5621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5622 $as_echo "$ac_ct_RANLIB" >&6; }
5624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5625 $as_echo "no" >&6; }
5628 if test "x$ac_ct_RANLIB" = x; then
5631 case $cross_compiling:$ac_tool_warned in
5633 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5634 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5635 ac_tool_warned=yes ;;
5637 RANLIB=$ac_ct_RANLIB
5640 RANLIB="$ac_cv_prog_RANLIB"
5643 test -z "$RANLIB" && RANLIB=:
5650 # Determine commands to create old-style static archives.
5651 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5652 old_postinstall_cmds='chmod 644 $oldlib'
5653 old_postuninstall_cmds=
5655 if test -n "$RANLIB"; then
5658 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5661 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5664 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5669 lock_old_archive_extraction=yes ;;
5671 lock_old_archive_extraction=no ;;
5712 # If no C compiler was specified, use CC.
5715 # If no C compiler flags were specified, use CFLAGS.
5716 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5718 # Allow CC to be a program name with arguments.
5722 # Check for command to grab the raw symbol name followed by C symbol from nm.
5723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5724 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5725 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5726 $as_echo_n "(cached) " >&6
5729 # These are sane defaults that work on at least a few old systems.
5730 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5732 # Character class describing NM global symbol codes.
5733 symcode='[BCDEGRST]'
5735 # Regexp to match symbols that can be accessed directly from C.
5736 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5738 # Define system-specific variables.
5743 cygwin* | mingw* | pw32* | cegcc*)
5744 symcode='[ABCDGISTW]'
5747 if test "$host_cpu" = ia64; then
5748 symcode='[ABCDEGRST]'
5752 symcode='[BCDEGRST]'
5755 symcode='[BCDEGQRST]'
5766 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5774 # If we're using GNU nm, then use its standard symbol codes.
5775 case `$NM -V 2>&1` in
5776 *GNU* | *'with BFD'*)
5777 symcode='[ABCDGIRSTW]' ;;
5780 # Transform an extracted symbol line into a proper C declaration.
5781 # Some systems (esp. on ia64) link data and code symbols differently,
5782 # so use this general approach.
5783 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5785 # Transform an extracted symbol line into symbol name and symbol address
5786 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5787 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'"
5789 # Handle CRLF in mingw tool chain
5793 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5797 # Try without a prefix underscore, then with it.
5798 for ac_symprfx in "" "_"; do
5800 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5801 symxfrm="\\1 $ac_symprfx\\2 \\2"
5803 # Write the raw and C identifiers.
5804 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5805 # Fake it for dumpbin and say T for any non-static function
5806 # and D for any global variable.
5807 # Also find C++ and __fastcall symbols from MSVC++,
5808 # which start with @ or ?.
5809 lt_cv_sys_global_symbol_pipe="$AWK '"\
5810 " {last_section=section; section=\$ 3};"\
5811 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
5812 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5813 " \$ 0!~/External *\|/{next};"\
5814 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5815 " {if(hide[section]) next};"\
5816 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5817 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5818 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5819 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5820 " ' prfx=^$ac_symprfx"
5822 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5824 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
5826 # Check to see that the pipe works correctly.
5830 cat > conftest.$ac_ext <<_LT_EOF
5835 void nm_test_func(void);
5836 void nm_test_func(void){}
5840 int main(){nm_test_var='a';nm_test_func();return(0);}
5843 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5844 (eval $ac_compile) 2>&5
5846 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5847 test $ac_status = 0; }; then
5848 # Now try to grab the symbols.
5850 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5851 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5853 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5854 test $ac_status = 0; } && test -s "$nlist"; then
5855 # Try sorting and uniquifying the output.
5856 if sort "$nlist" | uniq > "$nlist"T; then
5857 mv -f "$nlist"T "$nlist"
5862 # Make sure that we snagged all the symbols we need.
5863 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5864 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5865 cat <<_LT_EOF > conftest.$ac_ext
5866 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
5867 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
5868 /* DATA imports from DLLs on WIN32 con't be const, because runtime
5869 relocations are performed -- see ld's documentation on pseudo-relocs. */
5870 # define LT_DLSYM_CONST
5871 #elif defined(__osf__)
5872 /* This system does not cope well with relocations in const data. */
5873 # define LT_DLSYM_CONST
5875 # define LT_DLSYM_CONST const
5883 # Now generate the symbol file.
5884 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5886 cat <<_LT_EOF >> conftest.$ac_ext
5888 /* The mapping between symbol names and symbols. */
5889 LT_DLSYM_CONST struct {
5893 lt__PROGRAM__LTX_preloaded_symbols[] =
5895 { "@PROGRAM@", (void *) 0 },
5897 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5898 cat <<\_LT_EOF >> conftest.$ac_ext
5902 /* This works around a problem in FreeBSD linker */
5903 #ifdef FREEBSD_WORKAROUND
5904 static const void *lt_preloaded_setup() {
5905 return lt__PROGRAM__LTX_preloaded_symbols;
5913 # Now try linking the two files.
5914 mv conftest.$ac_objext conftstm.$ac_objext
5915 lt_globsym_save_LIBS=$LIBS
5916 lt_globsym_save_CFLAGS=$CFLAGS
5917 LIBS="conftstm.$ac_objext"
5918 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5919 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5920 (eval $ac_link) 2>&5
5922 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5923 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5926 LIBS=$lt_globsym_save_LIBS
5927 CFLAGS=$lt_globsym_save_CFLAGS
5929 echo "cannot find nm_test_func in $nlist" >&5
5932 echo "cannot find nm_test_var in $nlist" >&5
5935 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5938 echo "$progname: failed program was:" >&5
5939 cat conftest.$ac_ext >&5
5941 rm -rf conftest* conftst*
5943 # Do not use the global_symbol_pipe unless it works.
5944 if test "$pipe_works" = yes; then
5947 lt_cv_sys_global_symbol_pipe=
5953 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5954 lt_cv_sys_global_symbol_to_cdecl=
5956 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5958 $as_echo "failed" >&6; }
5960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5961 $as_echo "ok" >&6; }
5964 # Response file support.
5965 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5966 nm_file_list_spec='@'
5967 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
5968 nm_file_list_spec='@'
5997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
5998 $as_echo_n "checking for sysroot... " >&6; }
6000 # Check whether --with-sysroot was given.
6001 if test "${with_sysroot+set}" = set; then :
6002 withval=$with_sysroot;
6009 case ${with_sysroot} in #(
6011 if test "$GCC" = yes; then
6012 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6016 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6022 $as_echo "${with_sysroot}" >&6; }
6023 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6028 $as_echo "${lt_sysroot:-no}" >&6; }
6034 # Check whether --enable-libtool-lock was given.
6035 if test "${enable_libtool_lock+set}" = set; then :
6036 enableval=$enable_libtool_lock;
6039 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6041 # Some flags need to be propagated to the compiler or linker for good
6045 # Find out which ABI we are using.
6046 echo 'int i;' > conftest.$ac_ext
6047 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6048 (eval $ac_compile) 2>&5
6050 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6051 test $ac_status = 0; }; then
6052 case `/usr/bin/file conftest.$ac_objext` in
6064 # Find out which ABI we are using.
6065 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6066 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6067 (eval $ac_compile) 2>&5
6069 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6070 test $ac_status = 0; }; then
6071 if test "$lt_cv_prog_gnu_ld" = yes; then
6072 case `/usr/bin/file conftest.$ac_objext` in
6074 LD="${LD-ld} -melf32bsmip"
6077 LD="${LD-ld} -melf32bmipn32"
6080 LD="${LD-ld} -melf64bmip"
6084 case `/usr/bin/file conftest.$ac_objext` in
6100 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6101 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6102 # Find out which ABI we are using.
6103 echo 'int i;' > conftest.$ac_ext
6104 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6105 (eval $ac_compile) 2>&5
6107 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6108 test $ac_status = 0; }; then
6109 case `/usr/bin/file conftest.o` in
6112 x86_64-*kfreebsd*-gnu)
6113 LD="${LD-ld} -m elf_i386_fbsd"
6116 LD="${LD-ld} -m elf_i386"
6118 ppc64-*linux*|powerpc64-*linux*)
6119 LD="${LD-ld} -m elf32ppclinux"
6122 LD="${LD-ld} -m elf_s390"
6125 LD="${LD-ld} -m elf32_sparc"
6131 x86_64-*kfreebsd*-gnu)
6132 LD="${LD-ld} -m elf_x86_64_fbsd"
6135 LD="${LD-ld} -m elf_x86_64"
6137 ppc*-*linux*|powerpc*-*linux*)
6138 LD="${LD-ld} -m elf64ppc"
6140 s390*-*linux*|s390*-*tpf*)
6141 LD="${LD-ld} -m elf64_s390"
6144 LD="${LD-ld} -m elf64_sparc"
6154 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6155 SAVE_CFLAGS="$CFLAGS"
6156 CFLAGS="$CFLAGS -belf"
6157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6158 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6159 if ${lt_cv_cc_needs_belf+:} false; then :
6160 $as_echo_n "(cached) " >&6
6163 ac_cpp='$CPP $CPPFLAGS'
6164 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6165 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6166 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6169 /* end confdefs.h. */
6179 if ac_fn_c_try_link "$LINENO"; then :
6180 lt_cv_cc_needs_belf=yes
6182 lt_cv_cc_needs_belf=no
6184 rm -f core conftest.err conftest.$ac_objext \
6185 conftest$ac_exeext conftest.$ac_ext
6187 ac_cpp='$CPP $CPPFLAGS'
6188 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6189 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6190 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6194 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6195 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6196 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6197 CFLAGS="$SAVE_CFLAGS"
6201 # Find out which ABI we are using.
6202 echo 'int i;' > conftest.$ac_ext
6203 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6204 (eval $ac_compile) 2>&5
6206 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6207 test $ac_status = 0; }; then
6208 case `/usr/bin/file conftest.o` in
6210 case $lt_cv_prog_gnu_ld in
6214 LD="${LD-ld} -m elf_x86_64"
6217 LD="${LD-ld} -m elf64_sparc"
6220 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6221 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6226 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6238 need_locks="$enable_libtool_lock"
6240 if test -n "$ac_tool_prefix"; then
6241 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6242 set dummy ${ac_tool_prefix}mt; ac_word=$2
6243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6244 $as_echo_n "checking for $ac_word... " >&6; }
6245 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6246 $as_echo_n "(cached) " >&6
6248 if test -n "$MANIFEST_TOOL"; then
6249 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6255 test -z "$as_dir" && as_dir=.
6256 for ac_exec_ext in '' $ac_executable_extensions; do
6257 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6258 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6259 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6268 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6269 if test -n "$MANIFEST_TOOL"; then
6270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6271 $as_echo "$MANIFEST_TOOL" >&6; }
6273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6274 $as_echo "no" >&6; }
6279 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6280 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6281 # Extract the first word of "mt", so it can be a program name with args.
6282 set dummy mt; ac_word=$2
6283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6284 $as_echo_n "checking for $ac_word... " >&6; }
6285 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6286 $as_echo_n "(cached) " >&6
6288 if test -n "$ac_ct_MANIFEST_TOOL"; then
6289 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6295 test -z "$as_dir" && as_dir=.
6296 for ac_exec_ext in '' $ac_executable_extensions; do
6297 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6298 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6308 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6309 if test -n "$ac_ct_MANIFEST_TOOL"; then
6310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6311 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6314 $as_echo "no" >&6; }
6317 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6320 case $cross_compiling:$ac_tool_warned in
6322 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6323 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6324 ac_tool_warned=yes ;;
6326 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6329 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6332 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6334 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6335 if ${lt_cv_path_mainfest_tool+:} false; then :
6336 $as_echo_n "(cached) " >&6
6338 lt_cv_path_mainfest_tool=no
6339 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6340 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6341 cat conftest.err >&5
6342 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6343 lt_cv_path_mainfest_tool=yes
6347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6348 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6349 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6359 rhapsody* | darwin*)
6360 if test -n "$ac_tool_prefix"; then
6361 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6362 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6364 $as_echo_n "checking for $ac_word... " >&6; }
6365 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6366 $as_echo_n "(cached) " >&6
6368 if test -n "$DSYMUTIL"; then
6369 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6375 test -z "$as_dir" && as_dir=.
6376 for ac_exec_ext in '' $ac_executable_extensions; do
6377 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6378 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6379 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6388 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6389 if test -n "$DSYMUTIL"; then
6390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6391 $as_echo "$DSYMUTIL" >&6; }
6393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6394 $as_echo "no" >&6; }
6399 if test -z "$ac_cv_prog_DSYMUTIL"; then
6400 ac_ct_DSYMUTIL=$DSYMUTIL
6401 # Extract the first word of "dsymutil", so it can be a program name with args.
6402 set dummy dsymutil; ac_word=$2
6403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6404 $as_echo_n "checking for $ac_word... " >&6; }
6405 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6406 $as_echo_n "(cached) " >&6
6408 if test -n "$ac_ct_DSYMUTIL"; then
6409 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6415 test -z "$as_dir" && as_dir=.
6416 for ac_exec_ext in '' $ac_executable_extensions; do
6417 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6418 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6419 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6428 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6429 if test -n "$ac_ct_DSYMUTIL"; then
6430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6431 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6434 $as_echo "no" >&6; }
6437 if test "x$ac_ct_DSYMUTIL" = x; then
6440 case $cross_compiling:$ac_tool_warned in
6442 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6443 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6444 ac_tool_warned=yes ;;
6446 DSYMUTIL=$ac_ct_DSYMUTIL
6449 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6452 if test -n "$ac_tool_prefix"; then
6453 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6454 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6456 $as_echo_n "checking for $ac_word... " >&6; }
6457 if ${ac_cv_prog_NMEDIT+:} false; then :
6458 $as_echo_n "(cached) " >&6
6460 if test -n "$NMEDIT"; then
6461 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6467 test -z "$as_dir" && as_dir=.
6468 for ac_exec_ext in '' $ac_executable_extensions; do
6469 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6470 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6480 NMEDIT=$ac_cv_prog_NMEDIT
6481 if test -n "$NMEDIT"; then
6482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6483 $as_echo "$NMEDIT" >&6; }
6485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6486 $as_echo "no" >&6; }
6491 if test -z "$ac_cv_prog_NMEDIT"; then
6492 ac_ct_NMEDIT=$NMEDIT
6493 # Extract the first word of "nmedit", so it can be a program name with args.
6494 set dummy nmedit; ac_word=$2
6495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6496 $as_echo_n "checking for $ac_word... " >&6; }
6497 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6498 $as_echo_n "(cached) " >&6
6500 if test -n "$ac_ct_NMEDIT"; then
6501 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6507 test -z "$as_dir" && as_dir=.
6508 for ac_exec_ext in '' $ac_executable_extensions; do
6509 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6510 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6511 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6520 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6521 if test -n "$ac_ct_NMEDIT"; then
6522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6523 $as_echo "$ac_ct_NMEDIT" >&6; }
6525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6526 $as_echo "no" >&6; }
6529 if test "x$ac_ct_NMEDIT" = x; then
6532 case $cross_compiling:$ac_tool_warned in
6534 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6535 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6536 ac_tool_warned=yes ;;
6538 NMEDIT=$ac_ct_NMEDIT
6541 NMEDIT="$ac_cv_prog_NMEDIT"
6544 if test -n "$ac_tool_prefix"; then
6545 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6546 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6548 $as_echo_n "checking for $ac_word... " >&6; }
6549 if ${ac_cv_prog_LIPO+:} false; then :
6550 $as_echo_n "(cached) " >&6
6552 if test -n "$LIPO"; then
6553 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6559 test -z "$as_dir" && as_dir=.
6560 for ac_exec_ext in '' $ac_executable_extensions; do
6561 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6562 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6563 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6572 LIPO=$ac_cv_prog_LIPO
6573 if test -n "$LIPO"; then
6574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6575 $as_echo "$LIPO" >&6; }
6577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6578 $as_echo "no" >&6; }
6583 if test -z "$ac_cv_prog_LIPO"; then
6585 # Extract the first word of "lipo", so it can be a program name with args.
6586 set dummy lipo; ac_word=$2
6587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6588 $as_echo_n "checking for $ac_word... " >&6; }
6589 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6590 $as_echo_n "(cached) " >&6
6592 if test -n "$ac_ct_LIPO"; then
6593 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6599 test -z "$as_dir" && as_dir=.
6600 for ac_exec_ext in '' $ac_executable_extensions; do
6601 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6602 ac_cv_prog_ac_ct_LIPO="lipo"
6603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6612 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6613 if test -n "$ac_ct_LIPO"; then
6614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6615 $as_echo "$ac_ct_LIPO" >&6; }
6617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6618 $as_echo "no" >&6; }
6621 if test "x$ac_ct_LIPO" = x; then
6624 case $cross_compiling:$ac_tool_warned in
6626 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6627 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6628 ac_tool_warned=yes ;;
6633 LIPO="$ac_cv_prog_LIPO"
6636 if test -n "$ac_tool_prefix"; then
6637 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6638 set dummy ${ac_tool_prefix}otool; ac_word=$2
6639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6640 $as_echo_n "checking for $ac_word... " >&6; }
6641 if ${ac_cv_prog_OTOOL+:} false; then :
6642 $as_echo_n "(cached) " >&6
6644 if test -n "$OTOOL"; then
6645 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6651 test -z "$as_dir" && as_dir=.
6652 for ac_exec_ext in '' $ac_executable_extensions; do
6653 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6654 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6664 OTOOL=$ac_cv_prog_OTOOL
6665 if test -n "$OTOOL"; then
6666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6667 $as_echo "$OTOOL" >&6; }
6669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6670 $as_echo "no" >&6; }
6675 if test -z "$ac_cv_prog_OTOOL"; then
6677 # Extract the first word of "otool", so it can be a program name with args.
6678 set dummy otool; ac_word=$2
6679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6680 $as_echo_n "checking for $ac_word... " >&6; }
6681 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6682 $as_echo_n "(cached) " >&6
6684 if test -n "$ac_ct_OTOOL"; then
6685 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6691 test -z "$as_dir" && as_dir=.
6692 for ac_exec_ext in '' $ac_executable_extensions; do
6693 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6694 ac_cv_prog_ac_ct_OTOOL="otool"
6695 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6704 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6705 if test -n "$ac_ct_OTOOL"; then
6706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6707 $as_echo "$ac_ct_OTOOL" >&6; }
6709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6710 $as_echo "no" >&6; }
6713 if test "x$ac_ct_OTOOL" = x; then
6716 case $cross_compiling:$ac_tool_warned in
6718 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6719 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6720 ac_tool_warned=yes ;;
6725 OTOOL="$ac_cv_prog_OTOOL"
6728 if test -n "$ac_tool_prefix"; then
6729 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6730 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6732 $as_echo_n "checking for $ac_word... " >&6; }
6733 if ${ac_cv_prog_OTOOL64+:} false; then :
6734 $as_echo_n "(cached) " >&6
6736 if test -n "$OTOOL64"; then
6737 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6743 test -z "$as_dir" && as_dir=.
6744 for ac_exec_ext in '' $ac_executable_extensions; do
6745 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6746 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6747 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6756 OTOOL64=$ac_cv_prog_OTOOL64
6757 if test -n "$OTOOL64"; then
6758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6759 $as_echo "$OTOOL64" >&6; }
6761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6762 $as_echo "no" >&6; }
6767 if test -z "$ac_cv_prog_OTOOL64"; then
6768 ac_ct_OTOOL64=$OTOOL64
6769 # Extract the first word of "otool64", so it can be a program name with args.
6770 set dummy otool64; ac_word=$2
6771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6772 $as_echo_n "checking for $ac_word... " >&6; }
6773 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6774 $as_echo_n "(cached) " >&6
6776 if test -n "$ac_ct_OTOOL64"; then
6777 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6783 test -z "$as_dir" && as_dir=.
6784 for ac_exec_ext in '' $ac_executable_extensions; do
6785 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6786 ac_cv_prog_ac_ct_OTOOL64="otool64"
6787 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6796 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6797 if test -n "$ac_ct_OTOOL64"; then
6798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6799 $as_echo "$ac_ct_OTOOL64" >&6; }
6801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6802 $as_echo "no" >&6; }
6805 if test "x$ac_ct_OTOOL64" = x; then
6808 case $cross_compiling:$ac_tool_warned in
6810 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6811 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6812 ac_tool_warned=yes ;;
6814 OTOOL64=$ac_ct_OTOOL64
6817 OTOOL64="$ac_cv_prog_OTOOL64"
6846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6847 $as_echo_n "checking for -single_module linker flag... " >&6; }
6848 if ${lt_cv_apple_cc_single_mod+:} false; then :
6849 $as_echo_n "(cached) " >&6
6851 lt_cv_apple_cc_single_mod=no
6852 if test -z "${LT_MULTI_MODULE}"; then
6853 # By default we will add the -single_module flag. You can override
6854 # by either setting the environment variable LT_MULTI_MODULE
6855 # non-empty at configure time, or by adding -multi_module to the
6857 rm -rf libconftest.dylib*
6858 echo "int foo(void){return 1;}" > conftest.c
6859 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6860 -dynamiclib -Wl,-single_module conftest.c" >&5
6861 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6862 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6864 # If there is a non-empty error log, and "single_module"
6865 # appears in it, assume the flag caused a linker warning
6866 if test -s conftest.err && $GREP single_module conftest.err; then
6867 cat conftest.err >&5
6868 # Otherwise, if the output was created with a 0 exit code from
6869 # the compiler, it worked.
6870 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
6871 lt_cv_apple_cc_single_mod=yes
6873 cat conftest.err >&5
6875 rm -rf libconftest.dylib*
6879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6880 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6883 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6884 if ${lt_cv_ld_exported_symbols_list+:} false; then :
6885 $as_echo_n "(cached) " >&6
6887 lt_cv_ld_exported_symbols_list=no
6888 save_LDFLAGS=$LDFLAGS
6889 echo "_main" > conftest.sym
6890 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6892 /* end confdefs.h. */
6902 if ac_fn_c_try_link "$LINENO"; then :
6903 lt_cv_ld_exported_symbols_list=yes
6905 lt_cv_ld_exported_symbols_list=no
6907 rm -f core conftest.err conftest.$ac_objext \
6908 conftest$ac_exeext conftest.$ac_ext
6909 LDFLAGS="$save_LDFLAGS"
6912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6913 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6916 $as_echo_n "checking for -force_load linker flag... " >&6; }
6917 if ${lt_cv_ld_force_load+:} false; then :
6918 $as_echo_n "(cached) " >&6
6920 lt_cv_ld_force_load=no
6921 cat > conftest.c << _LT_EOF
6922 int forced_loaded() { return 2;}
6924 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6925 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6926 echo "$AR cru libconftest.a conftest.o" >&5
6927 $AR cru libconftest.a conftest.o 2>&5
6928 echo "$RANLIB libconftest.a" >&5
6929 $RANLIB libconftest.a 2>&5
6930 cat > conftest.c << _LT_EOF
6931 int main() { return 0;}
6933 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6934 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6936 if test -s conftest.err && $GREP force_load conftest.err; then
6937 cat conftest.err >&5
6938 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
6939 lt_cv_ld_force_load=yes
6941 cat conftest.err >&5
6943 rm -f conftest.err libconftest.a conftest conftest.c
6944 rm -rf conftest.dSYM
6947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
6948 $as_echo "$lt_cv_ld_force_load" >&6; }
6950 rhapsody* | darwin1.[012])
6951 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6953 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6954 darwin*) # darwin 5.x on
6955 # if running on 10.5 or later, the deployment target defaults
6956 # to the OS version, if on x86, and 10.4, the deployment
6957 # target defaults to 10.4. Don't you love it?
6958 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6959 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6960 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6962 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6964 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6968 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6969 _lt_dar_single_mod='$single_module'
6971 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6972 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6974 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6976 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
6977 _lt_dsymutil='~$DSYMUTIL $lib || :'
6985 ac_cpp='$CPP $CPPFLAGS'
6986 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6987 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6988 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6990 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6991 # On Suns, sometimes $CPP names a directory.
6992 if test -n "$CPP" && test -d "$CPP"; then
6995 if test -z "$CPP"; then
6996 if ${ac_cv_prog_CPP+:} false; then :
6997 $as_echo_n "(cached) " >&6
6999 # Double quotes because CPP needs to be expanded
7000 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7003 for ac_c_preproc_warn_flag in '' yes
7005 # Use a header file that comes with gcc, so configuring glibc
7006 # with a fresh cross-compiler works.
7007 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7008 # <limits.h> exists even on freestanding compilers.
7009 # On the NeXT, cc -E runs the code through the compiler's parser,
7010 # not just through cpp. "Syntax error" is here to catch this case.
7011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7012 /* end confdefs.h. */
7014 # include <limits.h>
7016 # include <assert.h>
7020 if ac_fn_c_try_cpp "$LINENO"; then :
7023 # Broken: fails on valid input.
7026 rm -f conftest.err conftest.i conftest.$ac_ext
7028 # OK, works on sane cases. Now check whether nonexistent headers
7029 # can be detected and how.
7030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7031 /* end confdefs.h. */
7032 #include <ac_nonexistent.h>
7034 if ac_fn_c_try_cpp "$LINENO"; then :
7035 # Broken: success on invalid input.
7038 # Passes both tests.
7042 rm -f conftest.err conftest.i conftest.$ac_ext
7045 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7046 rm -f conftest.i conftest.err conftest.$ac_ext
7047 if $ac_preproc_ok; then :
7059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7060 $as_echo "$CPP" >&6; }
7062 for ac_c_preproc_warn_flag in '' yes
7064 # Use a header file that comes with gcc, so configuring glibc
7065 # with a fresh cross-compiler works.
7066 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7067 # <limits.h> exists even on freestanding compilers.
7068 # On the NeXT, cc -E runs the code through the compiler's parser,
7069 # not just through cpp. "Syntax error" is here to catch this case.
7070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7071 /* end confdefs.h. */
7073 # include <limits.h>
7075 # include <assert.h>
7079 if ac_fn_c_try_cpp "$LINENO"; then :
7082 # Broken: fails on valid input.
7085 rm -f conftest.err conftest.i conftest.$ac_ext
7087 # OK, works on sane cases. Now check whether nonexistent headers
7088 # can be detected and how.
7089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7090 /* end confdefs.h. */
7091 #include <ac_nonexistent.h>
7093 if ac_fn_c_try_cpp "$LINENO"; then :
7094 # Broken: success on invalid input.
7097 # Passes both tests.
7101 rm -f conftest.err conftest.i conftest.$ac_ext
7104 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7105 rm -f conftest.i conftest.err conftest.$ac_ext
7106 if $ac_preproc_ok; then :
7109 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7110 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7111 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7112 See \`config.log' for more details" "$LINENO" 5; }
7116 ac_cpp='$CPP $CPPFLAGS'
7117 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7118 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7119 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7123 $as_echo_n "checking for ANSI C header files... " >&6; }
7124 if ${ac_cv_header_stdc+:} false; then :
7125 $as_echo_n "(cached) " >&6
7127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7128 /* end confdefs.h. */
7142 if ac_fn_c_try_compile "$LINENO"; then :
7143 ac_cv_header_stdc=yes
7145 ac_cv_header_stdc=no
7147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7149 if test $ac_cv_header_stdc = yes; then
7150 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7152 /* end confdefs.h. */
7156 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7157 $EGREP "memchr" >/dev/null 2>&1; then :
7160 ac_cv_header_stdc=no
7166 if test $ac_cv_header_stdc = yes; then
7167 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7169 /* end confdefs.h. */
7173 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7174 $EGREP "free" >/dev/null 2>&1; then :
7177 ac_cv_header_stdc=no
7183 if test $ac_cv_header_stdc = yes; then
7184 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7185 if test "$cross_compiling" = yes; then :
7188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7189 /* end confdefs.h. */
7192 #if ((' ' & 0x0FF) == 0x020)
7193 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7194 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7196 # define ISLOWER(c) \
7197 (('a' <= (c) && (c) <= 'i') \
7198 || ('j' <= (c) && (c) <= 'r') \
7199 || ('s' <= (c) && (c) <= 'z'))
7200 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7203 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7208 for (i = 0; i < 256; i++)
7209 if (XOR (islower (i), ISLOWER (i))
7210 || toupper (i) != TOUPPER (i))
7215 if ac_fn_c_try_run "$LINENO"; then :
7218 ac_cv_header_stdc=no
7220 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7221 conftest.$ac_objext conftest.beam conftest.$ac_ext
7226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7227 $as_echo "$ac_cv_header_stdc" >&6; }
7228 if test $ac_cv_header_stdc = yes; then
7230 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7234 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7235 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7236 inttypes.h stdint.h unistd.h
7238 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7239 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7241 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7242 cat >>confdefs.h <<_ACEOF
7243 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7251 for ac_header in dlfcn.h
7253 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7255 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7256 cat >>confdefs.h <<_ACEOF
7257 #define HAVE_DLFCN_H 1
7278 # Check whether --enable-shared was given.
7279 if test "${enable_shared+set}" = set; then :
7280 enableval=$enable_shared; p=${PACKAGE-default}
7282 yes) enable_shared=yes ;;
7283 no) enable_shared=no ;;
7286 # Look at the argument we got. We use all the common list separators.
7287 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7288 for pkg in $enableval; do
7290 if test "X$pkg" = "X$p"; then
7309 # Check whether --enable-static was given.
7310 if test "${enable_static+set}" = set; then :
7311 enableval=$enable_static; p=${PACKAGE-default}
7313 yes) enable_static=yes ;;
7314 no) enable_static=no ;;
7317 # Look at the argument we got. We use all the common list separators.
7318 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7319 for pkg in $enableval; do
7321 if test "X$pkg" = "X$p"; then
7341 # Check whether --with-pic was given.
7342 if test "${with_pic+set}" = set; then :
7343 withval=$with_pic; lt_p=${PACKAGE-default}
7345 yes|no) pic_mode=$withval ;;
7348 # Look at the argument we got. We use all the common list separators.
7349 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7350 for lt_pkg in $withval; do
7352 if test "X$lt_pkg" = "X$lt_p"; then
7364 test -z "$pic_mode" && pic_mode=default
7372 # Check whether --enable-fast-install was given.
7373 if test "${enable_fast_install+set}" = set; then :
7374 enableval=$enable_fast_install; p=${PACKAGE-default}
7376 yes) enable_fast_install=yes ;;
7377 no) enable_fast_install=no ;;
7379 enable_fast_install=no
7380 # Look at the argument we got. We use all the common list separators.
7381 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7382 for pkg in $enableval; do
7384 if test "X$pkg" = "X$p"; then
7385 enable_fast_install=yes
7392 enable_fast_install=yes
7405 # This can be used to rebuild libtool when needed
7406 LIBTOOL_DEPS="$ltmain"
7408 # Always use our own libtool.
7409 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7440 test -z "$LN_S" && LN_S="ln -s"
7455 if test -n "${ZSH_VERSION+set}" ; then
7456 setopt NO_GLOB_SUBST
7459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7460 $as_echo_n "checking for objdir... " >&6; }
7461 if ${lt_cv_objdir+:} false; then :
7462 $as_echo_n "(cached) " >&6
7464 rm -f .libs 2>/dev/null
7465 mkdir .libs 2>/dev/null
7466 if test -d .libs; then
7469 # MS-DOS does not allow filenames that begin with a dot.
7472 rmdir .libs 2>/dev/null
7474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7475 $as_echo "$lt_cv_objdir" >&6; }
7476 objdir=$lt_cv_objdir
7482 cat >>confdefs.h <<_ACEOF
7483 #define LT_OBJDIR "$lt_cv_objdir/"
7491 # AIX sometimes has problems with the GCC collect2 program. For some
7492 # reason, if we set the COLLECT_NAMES environment variable, the problems
7493 # vanish in a puff of smoke.
7494 if test "X${COLLECT_NAMES+set}" != Xset; then
7496 export COLLECT_NAMES
7503 can_build_shared=yes
7505 # All known linkers require a `.a' archive for static linking (except MSVC,
7506 # which needs '.lib').
7509 with_gnu_ld="$lt_cv_prog_gnu_ld"
7512 old_CFLAGS="$CFLAGS"
7514 # Set sane defaults for various variables
7515 test -z "$CC" && CC=cc
7516 test -z "$LTCC" && LTCC=$CC
7517 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7518 test -z "$LD" && LD=ld
7519 test -z "$ac_objext" && ac_objext=o
7521 for cc_temp in $compiler""; do
7523 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7524 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7529 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7532 # Only perform the check for file, if the check method requires it
7533 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7534 case $deplibs_check_method in
7536 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7538 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7539 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7540 $as_echo_n "(cached) " >&6
7544 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7547 lt_save_MAGIC_CMD="$MAGIC_CMD"
7548 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7549 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7550 for ac_dir in $ac_dummy; do
7552 test -z "$ac_dir" && ac_dir=.
7553 if test -f $ac_dir/${ac_tool_prefix}file; then
7554 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7555 if test -n "$file_magic_test_file"; then
7556 case $deplibs_check_method in
7558 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7559 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7560 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7561 $EGREP "$file_magic_regex" > /dev/null; then
7566 *** Warning: the command libtool uses to detect shared libraries,
7567 *** $file_magic_cmd, produces output that libtool cannot recognize.
7568 *** The result is that libtool may fail to recognize shared libraries
7569 *** as such. This will affect the creation of libtool libraries that
7570 *** depend on shared libraries, but programs linked with such libtool
7571 *** libraries will work regardless of this problem. Nevertheless, you
7572 *** may want to report the problem to your system manager and/or to
7573 *** bug-libtool@gnu.org
7583 MAGIC_CMD="$lt_save_MAGIC_CMD"
7588 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7589 if test -n "$MAGIC_CMD"; then
7590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7591 $as_echo "$MAGIC_CMD" >&6; }
7593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7594 $as_echo "no" >&6; }
7601 if test -z "$lt_cv_path_MAGIC_CMD"; then
7602 if test -n "$ac_tool_prefix"; then
7603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7604 $as_echo_n "checking for file... " >&6; }
7605 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7606 $as_echo_n "(cached) " >&6
7610 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7613 lt_save_MAGIC_CMD="$MAGIC_CMD"
7614 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7615 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7616 for ac_dir in $ac_dummy; do
7618 test -z "$ac_dir" && ac_dir=.
7619 if test -f $ac_dir/file; then
7620 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7621 if test -n "$file_magic_test_file"; then
7622 case $deplibs_check_method in
7624 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7625 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7626 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7627 $EGREP "$file_magic_regex" > /dev/null; then
7632 *** Warning: the command libtool uses to detect shared libraries,
7633 *** $file_magic_cmd, produces output that libtool cannot recognize.
7634 *** The result is that libtool may fail to recognize shared libraries
7635 *** as such. This will affect the creation of libtool libraries that
7636 *** depend on shared libraries, but programs linked with such libtool
7637 *** libraries will work regardless of this problem. Nevertheless, you
7638 *** may want to report the problem to your system manager and/or to
7639 *** bug-libtool@gnu.org
7649 MAGIC_CMD="$lt_save_MAGIC_CMD"
7654 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7655 if test -n "$MAGIC_CMD"; then
7656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7657 $as_echo "$MAGIC_CMD" >&6; }
7659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7660 $as_echo "no" >&6; }
7673 # Use C for the default configuration in the libtool script
7677 ac_cpp='$CPP $CPPFLAGS'
7678 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7679 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7680 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7683 # Source file extension for C test sources.
7686 # Object file extension for compiled C test sources.
7690 # Code to be used in simple compile tests
7691 lt_simple_compile_test_code="int some_variable = 0;"
7693 # Code to be used in simple link tests
7694 lt_simple_link_test_code='int main(){return(0);}'
7702 # If no C compiler was specified, use CC.
7705 # If no C compiler flags were specified, use CFLAGS.
7706 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7708 # Allow CC to be a program name with arguments.
7711 # Save the default compiler, since it gets overwritten when the other
7712 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7713 compiler_DEFAULT=$CC
7715 # save warnings/boilerplate of simple test code
7716 ac_outfile=conftest.$ac_objext
7717 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7718 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7719 _lt_compiler_boilerplate=`cat conftest.err`
7722 ac_outfile=conftest.$ac_objext
7723 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7724 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7725 _lt_linker_boilerplate=`cat conftest.err`
7730 ## There is no encapsulation within the following macros, do not change
7731 ## the running order or otherwise move them around unless you know exactly
7732 ## what you are doing...
7733 if test -n "$compiler"; then
7735 lt_prog_compiler_no_builtin_flag=
7737 if test "$GCC" = yes; then
7738 case $cc_basename in
7740 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7742 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7746 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7747 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7748 $as_echo_n "(cached) " >&6
7750 lt_cv_prog_compiler_rtti_exceptions=no
7751 ac_outfile=conftest.$ac_objext
7752 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7753 lt_compiler_flag="-fno-rtti -fno-exceptions"
7754 # Insert the option either (1) after the last *FLAGS variable, or
7755 # (2) before a word containing "conftest.", or (3) at the end.
7756 # Note that $ac_compile itself does not contain backslashes and begins
7757 # with a dollar sign (not a hyphen), so the echo should work correctly.
7758 # The option is referenced via a variable to avoid confusing sed.
7759 lt_compile=`echo "$ac_compile" | $SED \
7760 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7761 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7762 -e 's:$: $lt_compiler_flag:'`
7763 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7764 (eval "$lt_compile" 2>conftest.err)
7766 cat conftest.err >&5
7767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7768 if (exit $ac_status) && test -s "$ac_outfile"; then
7769 # The compiler can only warn and ignore the option if not recognized
7770 # So say no if there are warnings other than the usual output.
7771 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7772 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7773 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7774 lt_cv_prog_compiler_rtti_exceptions=yes
7780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7781 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7783 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7784 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7796 lt_prog_compiler_wl=
7797 lt_prog_compiler_pic=
7798 lt_prog_compiler_static=
7801 if test "$GCC" = yes; then
7802 lt_prog_compiler_wl='-Wl,'
7803 lt_prog_compiler_static='-static'
7807 # All AIX code is PIC.
7808 if test "$host_cpu" = ia64; then
7809 # AIX 5 now supports IA64 processor
7810 lt_prog_compiler_static='-Bstatic'
7817 # see comment about AmigaOS4 .so support
7818 lt_prog_compiler_pic='-fPIC'
7821 # FIXME: we need at least 68020 code to build shared libraries, but
7822 # adding the `-m68020' flag to GCC prevents building anything better,
7824 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7829 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7830 # PIC is the default for these OSes.
7833 mingw* | cygwin* | pw32* | os2* | cegcc*)
7834 # This hack is so that the source file can tell whether it is being
7835 # built for inclusion in a dll (and should export symbols for example).
7836 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7837 # (--disable-auto-import) libraries
7838 lt_prog_compiler_pic='-DDLL_EXPORT'
7841 darwin* | rhapsody*)
7842 # PIC is the default on this platform
7843 # Common symbols not allowed in MH_DYLIB files
7844 lt_prog_compiler_pic='-fno-common'
7848 # PIC is the default for Haiku.
7849 # The "-static" flag exists, but is broken.
7850 lt_prog_compiler_static=
7854 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7855 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7856 # sets the default TLS model and affects inlining.
7862 lt_prog_compiler_pic='-fPIC'
7868 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7869 # Instead, we relocate shared libraries at runtime.
7873 # Just because we use GCC doesn't mean we suddenly get shared libraries
7874 # on systems that don't support them.
7875 lt_prog_compiler_can_build_shared=no
7880 # QNX uses GNU C++, but need to define -shared option too, otherwise
7882 lt_prog_compiler_pic='-fPIC -shared'
7886 if test -d /usr/nec; then
7887 lt_prog_compiler_pic=-Kconform_pic
7892 lt_prog_compiler_pic='-fPIC'
7896 case $cc_basename in
7897 nvcc*) # Cuda Compiler Driver 2.2
7898 lt_prog_compiler_wl='-Xlinker '
7899 if test -n "$lt_prog_compiler_pic"; then
7900 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
7905 # PORTME Check for flag to pass linker flags through the system compiler.
7908 lt_prog_compiler_wl='-Wl,'
7909 if test "$host_cpu" = ia64; then
7910 # AIX 5 now supports IA64 processor
7911 lt_prog_compiler_static='-Bstatic'
7913 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7917 mingw* | cygwin* | pw32* | os2* | cegcc*)
7918 # This hack is so that the source file can tell whether it is being
7919 # built for inclusion in a dll (and should export symbols for example).
7920 lt_prog_compiler_pic='-DDLL_EXPORT'
7923 hpux9* | hpux10* | hpux11*)
7924 lt_prog_compiler_wl='-Wl,'
7925 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7932 lt_prog_compiler_pic='+Z'
7935 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7936 lt_prog_compiler_static='${wl}-a ${wl}archive'
7939 irix5* | irix6* | nonstopux*)
7940 lt_prog_compiler_wl='-Wl,'
7941 # PIC (with -KPIC) is the default.
7942 lt_prog_compiler_static='-non_shared'
7945 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7946 case $cc_basename in
7947 # old Intel for x86_64 which still supported -KPIC.
7949 lt_prog_compiler_wl='-Wl,'
7950 lt_prog_compiler_pic='-KPIC'
7951 lt_prog_compiler_static='-static'
7953 # icc used to be incompatible with GCC.
7954 # ICC 10 doesn't accept -KPIC any more.
7956 lt_prog_compiler_wl='-Wl,'
7957 lt_prog_compiler_pic='-fPIC'
7958 lt_prog_compiler_static='-static'
7960 # Lahey Fortran 8.1.
7962 lt_prog_compiler_wl='-Wl,'
7963 lt_prog_compiler_pic='--shared'
7964 lt_prog_compiler_static='--static'
7967 # NAG Fortran compiler
7968 lt_prog_compiler_wl='-Wl,-Wl,,'
7969 lt_prog_compiler_pic='-PIC'
7970 lt_prog_compiler_static='-Bstatic'
7972 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
7973 # Portland Group compilers (*not* the Pentium gcc compiler,
7974 # which looks to be a dead project)
7975 lt_prog_compiler_wl='-Wl,'
7976 lt_prog_compiler_pic='-fpic'
7977 lt_prog_compiler_static='-Bstatic'
7980 lt_prog_compiler_wl='-Wl,'
7981 # All Alpha code is PIC.
7982 lt_prog_compiler_static='-non_shared'
7984 xl* | bgxl* | bgf* | mpixl*)
7985 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
7986 lt_prog_compiler_wl='-Wl,'
7987 lt_prog_compiler_pic='-qpic'
7988 lt_prog_compiler_static='-qstaticlink'
7991 case `$CC -V 2>&1 | sed 5q` in
7992 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
7993 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7994 lt_prog_compiler_pic='-KPIC'
7995 lt_prog_compiler_static='-Bstatic'
7996 lt_prog_compiler_wl=''
7998 *Sun\ F* | *Sun*Fortran*)
7999 lt_prog_compiler_pic='-KPIC'
8000 lt_prog_compiler_static='-Bstatic'
8001 lt_prog_compiler_wl='-Qoption ld '
8005 lt_prog_compiler_pic='-KPIC'
8006 lt_prog_compiler_static='-Bstatic'
8007 lt_prog_compiler_wl='-Wl,'
8009 *Intel*\ [CF]*Compiler*)
8010 lt_prog_compiler_wl='-Wl,'
8011 lt_prog_compiler_pic='-fPIC'
8012 lt_prog_compiler_static='-static'
8015 lt_prog_compiler_wl='-Wl,'
8016 lt_prog_compiler_pic='-fpic'
8017 lt_prog_compiler_static='-Bstatic'
8025 lt_prog_compiler_pic='-KPIC'
8026 lt_prog_compiler_static='-Bstatic'
8030 # QNX uses GNU C++, but need to define -shared option too, otherwise
8032 lt_prog_compiler_pic='-fPIC -shared'
8035 osf3* | osf4* | osf5*)
8036 lt_prog_compiler_wl='-Wl,'
8037 # All OSF/1 code is PIC.
8038 lt_prog_compiler_static='-non_shared'
8042 lt_prog_compiler_static='-non_shared'
8046 lt_prog_compiler_pic='-KPIC'
8047 lt_prog_compiler_static='-Bstatic'
8048 case $cc_basename in
8049 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8050 lt_prog_compiler_wl='-Qoption ld ';;
8052 lt_prog_compiler_wl='-Wl,';;
8057 lt_prog_compiler_wl='-Qoption ld '
8058 lt_prog_compiler_pic='-PIC'
8059 lt_prog_compiler_static='-Bstatic'
8062 sysv4 | sysv4.2uw2* | sysv4.3*)
8063 lt_prog_compiler_wl='-Wl,'
8064 lt_prog_compiler_pic='-KPIC'
8065 lt_prog_compiler_static='-Bstatic'
8069 if test -d /usr/nec ;then
8070 lt_prog_compiler_pic='-Kconform_pic'
8071 lt_prog_compiler_static='-Bstatic'
8075 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8076 lt_prog_compiler_wl='-Wl,'
8077 lt_prog_compiler_pic='-KPIC'
8078 lt_prog_compiler_static='-Bstatic'
8082 lt_prog_compiler_wl='-Wl,'
8083 lt_prog_compiler_can_build_shared=no
8087 lt_prog_compiler_pic='-pic'
8088 lt_prog_compiler_static='-Bstatic'
8092 lt_prog_compiler_can_build_shared=no
8098 # For platforms which do not support PIC, -DPIC is meaningless:
8100 lt_prog_compiler_pic=
8103 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8108 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8109 if ${lt_cv_prog_compiler_pic+:} false; then :
8110 $as_echo_n "(cached) " >&6
8112 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8115 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8116 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8119 # Check to make sure the PIC flag actually works.
8121 if test -n "$lt_prog_compiler_pic"; then
8122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8123 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8124 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8125 $as_echo_n "(cached) " >&6
8127 lt_cv_prog_compiler_pic_works=no
8128 ac_outfile=conftest.$ac_objext
8129 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8130 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8131 # Insert the option either (1) after the last *FLAGS variable, or
8132 # (2) before a word containing "conftest.", or (3) at the end.
8133 # Note that $ac_compile itself does not contain backslashes and begins
8134 # with a dollar sign (not a hyphen), so the echo should work correctly.
8135 # The option is referenced via a variable to avoid confusing sed.
8136 lt_compile=`echo "$ac_compile" | $SED \
8137 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8138 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8139 -e 's:$: $lt_compiler_flag:'`
8140 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8141 (eval "$lt_compile" 2>conftest.err)
8143 cat conftest.err >&5
8144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8145 if (exit $ac_status) && test -s "$ac_outfile"; then
8146 # The compiler can only warn and ignore the option if not recognized
8147 # So say no if there are warnings other than the usual output.
8148 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8149 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8150 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8151 lt_cv_prog_compiler_pic_works=yes
8157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8158 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8160 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8161 case $lt_prog_compiler_pic in
8163 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8166 lt_prog_compiler_pic=
8167 lt_prog_compiler_can_build_shared=no
8183 # Check to make sure the static flag actually works.
8185 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8187 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8188 if ${lt_cv_prog_compiler_static_works+:} false; then :
8189 $as_echo_n "(cached) " >&6
8191 lt_cv_prog_compiler_static_works=no
8192 save_LDFLAGS="$LDFLAGS"
8193 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8194 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8195 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8196 # The linker can only warn and ignore the option if not recognized
8197 # So say no if there are warnings
8198 if test -s conftest.err; then
8199 # Append any errors to the config.log.
8200 cat conftest.err 1>&5
8201 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8202 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8203 if diff conftest.exp conftest.er2 >/dev/null; then
8204 lt_cv_prog_compiler_static_works=yes
8207 lt_cv_prog_compiler_static_works=yes
8211 LDFLAGS="$save_LDFLAGS"
8214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8215 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8217 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8220 lt_prog_compiler_static=
8229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8230 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8231 if ${lt_cv_prog_compiler_c_o+:} false; then :
8232 $as_echo_n "(cached) " >&6
8234 lt_cv_prog_compiler_c_o=no
8235 $RM -r conftest 2>/dev/null
8239 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8241 lt_compiler_flag="-o out/conftest2.$ac_objext"
8242 # Insert the option either (1) after the last *FLAGS variable, or
8243 # (2) before a word containing "conftest.", or (3) at the end.
8244 # Note that $ac_compile itself does not contain backslashes and begins
8245 # with a dollar sign (not a hyphen), so the echo should work correctly.
8246 lt_compile=`echo "$ac_compile" | $SED \
8247 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8248 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8249 -e 's:$: $lt_compiler_flag:'`
8250 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8251 (eval "$lt_compile" 2>out/conftest.err)
8253 cat out/conftest.err >&5
8254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8255 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8257 # The compiler can only warn and ignore the option if not recognized
8258 # So say no if there are warnings
8259 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8260 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8261 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8262 lt_cv_prog_compiler_c_o=yes
8267 # SGI C++ compiler will create directory out/ii_files/ for
8268 # template instantiation
8269 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8270 $RM out/* && rmdir out
8276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8277 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8285 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8286 if ${lt_cv_prog_compiler_c_o+:} false; then :
8287 $as_echo_n "(cached) " >&6
8289 lt_cv_prog_compiler_c_o=no
8290 $RM -r conftest 2>/dev/null
8294 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8296 lt_compiler_flag="-o out/conftest2.$ac_objext"
8297 # Insert the option either (1) after the last *FLAGS variable, or
8298 # (2) before a word containing "conftest.", or (3) at the end.
8299 # Note that $ac_compile itself does not contain backslashes and begins
8300 # with a dollar sign (not a hyphen), so the echo should work correctly.
8301 lt_compile=`echo "$ac_compile" | $SED \
8302 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8303 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8304 -e 's:$: $lt_compiler_flag:'`
8305 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8306 (eval "$lt_compile" 2>out/conftest.err)
8308 cat out/conftest.err >&5
8309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8310 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8312 # The compiler can only warn and ignore the option if not recognized
8313 # So say no if there are warnings
8314 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8315 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8316 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8317 lt_cv_prog_compiler_c_o=yes
8322 # SGI C++ compiler will create directory out/ii_files/ for
8323 # template instantiation
8324 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8325 $RM out/* && rmdir out
8331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8332 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8337 hard_links="nottested"
8338 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8339 # do not overwrite the value of need_locks provided by the user
8340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8341 $as_echo_n "checking if we can lock with hard links... " >&6; }
8344 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8346 ln conftest.a conftest.b 2>&5 || hard_links=no
8347 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8349 $as_echo "$hard_links" >&6; }
8350 if test "$hard_links" = no; then
8351 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8352 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8365 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8368 allow_undefined_flag=
8369 always_export_symbols=no
8371 archive_expsym_cmds=
8372 compiler_needs_object=no
8373 enable_shared_with_static_runtimes=no
8374 export_dynamic_flag_spec=
8375 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8376 hardcode_automatic=no
8378 hardcode_direct_absolute=no
8379 hardcode_libdir_flag_spec=
8380 hardcode_libdir_separator=
8382 hardcode_shlibpath_var=unsupported
8384 link_all_deplibs=unknown
8387 old_archive_from_new_cmds=
8388 old_archive_from_expsyms_cmds=
8389 thread_safe_flag_spec=
8390 whole_archive_flag_spec=
8391 # include_expsyms should be a list of space-separated symbols to be *always*
8392 # included in the symbol list
8394 # exclude_expsyms can be an extended regexp of symbols to exclude
8395 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8396 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8397 # as well as any symbol that contains `d'.
8398 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8399 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8400 # platforms (ab)use it in PIC code, but their linkers get confused if
8401 # the symbol is explicitly referenced. Since portable code cannot
8402 # rely on this symbol name, it's probably fine to never include it in
8403 # preloaded symbol tables.
8404 # Exclude shared library initialization/finalization symbols.
8405 extract_expsyms_cmds=
8408 cygwin* | mingw* | pw32* | cegcc*)
8409 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8410 # When not using gcc, we currently assume that we are using
8411 # Microsoft Visual C++.
8412 if test "$GCC" != yes; then
8417 # we just hope/assume this is gcc and not c89 (= MSVC++)
8427 # On some targets, GNU ld is compatible enough with the native linker
8428 # that we're better off using the native interface for both.
8429 lt_use_gnu_ld_interface=no
8430 if test "$with_gnu_ld" = yes; then
8433 # The AIX port of GNU ld has always aspired to compatibility
8434 # with the native linker. However, as the warning in the GNU ld
8435 # block says, versions before 2.19.5* couldn't really create working
8436 # shared libraries, regardless of the interface used.
8437 case `$LD -v 2>&1` in
8438 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8439 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8440 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8442 lt_use_gnu_ld_interface=yes
8447 lt_use_gnu_ld_interface=yes
8452 if test "$lt_use_gnu_ld_interface" = yes; then
8453 # If archive_cmds runs LD, not CC, wlarc should be empty
8456 # Set some defaults for GNU ld with shared library support. These
8457 # are reset later if shared libraries are not supported. Putting them
8458 # here allows them to be overridden if necessary.
8459 runpath_var=LD_RUN_PATH
8460 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8461 export_dynamic_flag_spec='${wl}--export-dynamic'
8462 # ancient GNU ld didn't support --whole-archive et. al.
8463 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8464 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8466 whole_archive_flag_spec=
8468 supports_anon_versioning=no
8469 case `$LD -v 2>&1` in
8470 *GNU\ gold*) supports_anon_versioning=yes ;;
8471 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8472 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8473 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8474 *\ 2.11.*) ;; # other 2.11 versions
8475 *) supports_anon_versioning=yes ;;
8478 # See if GNU ld supports shared libraries.
8481 # On AIX/PPC, the GNU linker is very broken
8482 if test "$host_cpu" != ia64; then
8486 *** Warning: the GNU linker, at least up to release 2.19, is reported
8487 *** to be unable to reliably create shared libraries on AIX.
8488 *** Therefore, libtool is disabling shared libraries support. If you
8489 *** really care for shared libraries, you may want to install binutils
8490 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8491 *** You will then need to restart the configuration process.
8500 # see comment about AmigaOS4 .so support
8501 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8502 archive_expsym_cmds=''
8505 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)'
8506 hardcode_libdir_flag_spec='-L$libdir'
8507 hardcode_minus_L=yes
8513 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8514 allow_undefined_flag=unsupported
8515 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8516 # support --undefined. This deserves some investigation. FIXME
8517 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8523 cygwin* | mingw* | pw32* | cegcc*)
8524 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8525 # as there is no search path for DLLs.
8526 hardcode_libdir_flag_spec='-L$libdir'
8527 export_dynamic_flag_spec='${wl}--export-all-symbols'
8528 allow_undefined_flag=unsupported
8529 always_export_symbols=no
8530 enable_shared_with_static_runtimes=yes
8531 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'
8532 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8534 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8535 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8536 # If the export-symbols file already is a .def file (1st line
8537 # is EXPORTS), use it as is; otherwise, prepend...
8538 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8539 cp $export_symbols $output_objdir/$soname.def;
8541 echo EXPORTS > $output_objdir/$soname.def;
8542 cat $export_symbols >> $output_objdir/$soname.def;
8544 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8551 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8552 link_all_deplibs=yes
8557 hardcode_shlibpath_var=no
8558 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8559 export_dynamic_flag_spec='${wl}-E'
8560 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8561 # Instead, shared libraries are loaded at an image base (0x10000000 by
8562 # default) and relocated if they conflict, which is a slow very memory
8563 # consuming and fragmenting process. To avoid this, we pick a random,
8564 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8565 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8566 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8567 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'
8570 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8572 if test "$host_os" = linux-dietlibc; then
8573 case $cc_basename in
8574 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8577 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8578 && test "$tmp_diet" = no
8580 tmp_addflag=' $pic_flag'
8581 tmp_sharedflag='-shared'
8582 case $cc_basename,$host_cpu in
8583 pgcc*) # Portland Group C compiler
8584 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'
8585 tmp_addflag=' $pic_flag'
8587 pgf77* | pgf90* | pgf95* | pgfortran*)
8588 # Portland Group f77 and f90 compilers
8589 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'
8590 tmp_addflag=' $pic_flag -Mnomain' ;;
8591 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8592 tmp_addflag=' -i_dynamic' ;;
8593 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8594 tmp_addflag=' -i_dynamic -nofor_main' ;;
8595 ifc* | ifort*) # Intel Fortran compiler
8596 tmp_addflag=' -nofor_main' ;;
8597 lf95*) # Lahey Fortran 8.1
8598 whole_archive_flag_spec=
8599 tmp_sharedflag='--shared' ;;
8600 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8601 tmp_sharedflag='-qmkshrobj'
8603 nvcc*) # Cuda Compiler Driver 2.2
8604 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'
8605 compiler_needs_object=yes
8608 case `$CC -V 2>&1 | sed 5q` in
8609 *Sun\ C*) # Sun C 5.9
8610 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'
8611 compiler_needs_object=yes
8612 tmp_sharedflag='-G' ;;
8613 *Sun\ F*) # Sun Fortran 8.3
8614 tmp_sharedflag='-G' ;;
8616 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8618 if test "x$supports_anon_versioning" = xyes; then
8619 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8620 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8621 echo "local: *; };" >> $output_objdir/$libname.ver~
8622 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8625 case $cc_basename in
8626 xlf* | bgf* | bgxlf* | mpixlf*)
8627 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8628 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8629 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8630 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8631 if test "x$supports_anon_versioning" = xyes; then
8632 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8633 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8634 echo "local: *; };" >> $output_objdir/$libname.ver~
8635 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8645 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8646 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8649 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8650 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8655 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8659 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8660 *** create shared libraries on Solaris systems. Therefore, libtool
8661 *** is disabling shared libraries support. We urge you to upgrade GNU
8662 *** binutils to release 2.9.1 or newer. Another option is to modify
8663 *** your PATH or compiler configuration so that the native linker is
8664 *** used, and then restart.
8667 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8668 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8669 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8675 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8676 case `$LD -v 2>&1` in
8677 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8681 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8682 *** reliably create shared libraries on SCO systems. Therefore, libtool
8683 *** is disabling shared libraries support. We urge you to upgrade GNU
8684 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8685 *** your PATH or compiler configuration so that the native linker is
8686 *** used, and then restart.
8691 # For security reasons, it is highly recommended that you always
8692 # use absolute paths for naming shared libraries, and exclude the
8693 # DT_RUNPATH tag from executables and libraries. But doing so
8694 # requires that you compile everything twice, which is a pain.
8695 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8696 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8697 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8698 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8707 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8710 hardcode_shlibpath_var=no
8714 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8715 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8716 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8723 if test "$ld_shlibs" = no; then
8725 hardcode_libdir_flag_spec=
8726 export_dynamic_flag_spec=
8727 whole_archive_flag_spec=
8730 # PORTME fill in a description of your system's linker (not GNU ld)
8733 allow_undefined_flag=unsupported
8734 always_export_symbols=yes
8735 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'
8736 # Note: this linker hardcodes the directories in LIBPATH if there
8737 # are no directories specified by -L.
8738 hardcode_minus_L=yes
8739 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8740 # Neither direct hardcoding nor static linking is supported with a
8742 hardcode_direct=unsupported
8747 if test "$host_cpu" = ia64; then
8748 # On IA64, the linker does run time linking by default, so we don't
8749 # have to do anything special.
8750 aix_use_runtimelinking=no
8751 exp_sym_flag='-Bexport'
8754 # If we're using GNU nm, then we don't want the "-C" option.
8755 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8756 # Also, AIX nm treats weak defined symbols like other global
8757 # defined symbols, whereas GNU nm marks them as "W".
8758 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8759 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'
8761 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'
8763 aix_use_runtimelinking=no
8765 # Test if we are trying to use run time linking or normal
8766 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8767 # need to do runtime linking.
8768 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8769 for ld_flag in $LDFLAGS; do
8770 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8771 aix_use_runtimelinking=yes
8778 exp_sym_flag='-bexport'
8779 no_entry_flag='-bnoentry'
8782 # When large executables or shared objects are built, AIX ld can
8783 # have problems creating the table of contents. If linking a library
8784 # or program results in "error TOC overflow" add -mminimal-toc to
8785 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8786 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8790 hardcode_direct_absolute=yes
8791 hardcode_libdir_separator=':'
8792 link_all_deplibs=yes
8793 file_list_spec='${wl}-f,'
8795 if test "$GCC" = yes; then
8796 case $host_os in aix4.[012]|aix4.[012].*)
8797 # We only want to do this on AIX 4.2 and lower, the check
8798 # below for broken collect2 doesn't work under 4.3+
8799 collect2name=`${CC} -print-prog-name=collect2`
8800 if test -f "$collect2name" &&
8801 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8803 # We have reworked collect2
8806 # We have old collect2
8807 hardcode_direct=unsupported
8808 # It fails to find uninstalled libraries when the uninstalled
8809 # path is not listed in the libpath. Setting hardcode_minus_L
8810 # to unsupported forces relinking
8811 hardcode_minus_L=yes
8812 hardcode_libdir_flag_spec='-L$libdir'
8813 hardcode_libdir_separator=
8817 shared_flag='-shared'
8818 if test "$aix_use_runtimelinking" = yes; then
8819 shared_flag="$shared_flag "'${wl}-G'
8823 if test "$host_cpu" = ia64; then
8824 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8825 # chokes on -Wl,-G. The following line is correct:
8828 if test "$aix_use_runtimelinking" = yes; then
8829 shared_flag='${wl}-G'
8831 shared_flag='${wl}-bM:SRE'
8836 export_dynamic_flag_spec='${wl}-bexpall'
8837 # It seems that -bexpall does not export symbols beginning with
8838 # underscore (_), so it is better to generate a list of symbols to export.
8839 always_export_symbols=yes
8840 if test "$aix_use_runtimelinking" = yes; then
8841 # Warning - without using the other runtime loading flags (-brtl),
8842 # -berok will link without error, but may produce a broken library.
8843 allow_undefined_flag='-berok'
8844 # Determine the default libpath from the value encoded in an
8846 if test "${lt_cv_aix_libpath+set}" = set; then
8847 aix_libpath=$lt_cv_aix_libpath
8849 if ${lt_cv_aix_libpath_+:} false; then :
8850 $as_echo_n "(cached) " >&6
8852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8853 /* end confdefs.h. */
8863 if ac_fn_c_try_link "$LINENO"; then :
8865 lt_aix_libpath_sed='
8866 /Import File Strings/,/^$/ {
8868 s/^0 *\([^ ]*\) *$/\1/
8872 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8873 # Check for a 64-bit object if we didn't find anything.
8874 if test -z "$lt_cv_aix_libpath_"; then
8875 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8878 rm -f core conftest.err conftest.$ac_objext \
8879 conftest$ac_exeext conftest.$ac_ext
8880 if test -z "$lt_cv_aix_libpath_"; then
8881 lt_cv_aix_libpath_="/usr/lib:/lib"
8886 aix_libpath=$lt_cv_aix_libpath_
8889 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8890 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"
8892 if test "$host_cpu" = ia64; then
8893 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8894 allow_undefined_flag="-z nodefs"
8895 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"
8897 # Determine the default libpath from the value encoded in an
8899 if test "${lt_cv_aix_libpath+set}" = set; then
8900 aix_libpath=$lt_cv_aix_libpath
8902 if ${lt_cv_aix_libpath_+:} false; then :
8903 $as_echo_n "(cached) " >&6
8905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8906 /* end confdefs.h. */
8916 if ac_fn_c_try_link "$LINENO"; then :
8918 lt_aix_libpath_sed='
8919 /Import File Strings/,/^$/ {
8921 s/^0 *\([^ ]*\) *$/\1/
8925 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8926 # Check for a 64-bit object if we didn't find anything.
8927 if test -z "$lt_cv_aix_libpath_"; then
8928 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8931 rm -f core conftest.err conftest.$ac_objext \
8932 conftest$ac_exeext conftest.$ac_ext
8933 if test -z "$lt_cv_aix_libpath_"; then
8934 lt_cv_aix_libpath_="/usr/lib:/lib"
8939 aix_libpath=$lt_cv_aix_libpath_
8942 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8943 # Warning - without using the other run time loading flags,
8944 # -berok will link without error, but may produce a broken library.
8945 no_undefined_flag=' ${wl}-bernotok'
8946 allow_undefined_flag=' ${wl}-berok'
8947 if test "$with_gnu_ld" = yes; then
8948 # We only use this code for GNU lds that support --whole-archive.
8949 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8951 # Exported symbols can be pulled into shared objects from archives
8952 whole_archive_flag_spec='$convenience'
8954 archive_cmds_need_lc=yes
8955 # This is similar to how AIX traditionally builds its shared libraries.
8956 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'
8964 # see comment about AmigaOS4 .so support
8965 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8966 archive_expsym_cmds=''
8969 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)'
8970 hardcode_libdir_flag_spec='-L$libdir'
8971 hardcode_minus_L=yes
8977 export_dynamic_flag_spec=-rdynamic
8980 cygwin* | mingw* | pw32* | cegcc*)
8981 # When not using gcc, we currently assume that we are using
8982 # Microsoft Visual C++.
8983 # hardcode_libdir_flag_spec is actually meaningless, as there is
8984 # no search path for DLLs.
8985 case $cc_basename in
8988 hardcode_libdir_flag_spec=' '
8989 allow_undefined_flag=unsupported
8990 always_export_symbols=yes
8992 # Tell ltmain to make .lib files, not .a files.
8994 # Tell ltmain to make .dll files, not .so files.
8996 # FIXME: Setting linknames here is a bad hack.
8997 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
8998 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8999 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9001 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9003 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9005 # The linker will not automatically build a static lib if we build a DLL.
9006 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9007 enable_shared_with_static_runtimes=yes
9008 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9009 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9011 old_postinstall_cmds='chmod 644 $oldlib'
9012 postlink_cmds='lt_outputfile="@OUTPUT@"~
9013 lt_tool_outputfile="@TOOL_OUTPUT@"~
9014 case $lt_outputfile in
9017 lt_outputfile="$lt_outputfile.exe"
9018 lt_tool_outputfile="$lt_tool_outputfile.exe"
9021 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9022 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9023 $RM "$lt_outputfile.manifest";
9027 # Assume MSVC wrapper
9028 hardcode_libdir_flag_spec=' '
9029 allow_undefined_flag=unsupported
9030 # Tell ltmain to make .lib files, not .a files.
9032 # Tell ltmain to make .dll files, not .so files.
9034 # FIXME: Setting linknames here is a bad hack.
9035 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9036 # The linker will automatically build a .lib file if we build a DLL.
9037 old_archive_from_new_cmds='true'
9038 # FIXME: Should let the user specify the lib program.
9039 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9040 enable_shared_with_static_runtimes=yes
9045 darwin* | rhapsody*)
9048 archive_cmds_need_lc=no
9050 hardcode_automatic=yes
9051 hardcode_shlibpath_var=unsupported
9052 if test "$lt_cv_ld_force_load" = "yes"; then
9053 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\"`'
9056 whole_archive_flag_spec=''
9058 link_all_deplibs=yes
9059 allow_undefined_flag="$_lt_dar_allow_undefined"
9060 case $cc_basename in
9061 ifort*) _lt_dar_can_shared=yes ;;
9062 *) _lt_dar_can_shared=$GCC ;;
9064 if test "$_lt_dar_can_shared" = "yes"; then
9065 output_verbose_link_cmd=func_echo_all
9066 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9067 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9068 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}"
9069 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}"
9078 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9079 hardcode_libdir_flag_spec='-L$libdir'
9080 hardcode_shlibpath_var=no
9083 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9084 # support. Future versions do this automatically, but an explicit c++rt0.o
9085 # does not break anything, and helps significantly (at the cost of a little
9088 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9089 hardcode_libdir_flag_spec='-R$libdir'
9091 hardcode_shlibpath_var=no
9094 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9096 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9098 hardcode_minus_L=yes
9099 hardcode_shlibpath_var=no
9102 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9103 freebsd* | dragonfly*)
9104 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9105 hardcode_libdir_flag_spec='-R$libdir'
9107 hardcode_shlibpath_var=no
9111 if test "$GCC" = yes; then
9112 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'
9114 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'
9116 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9117 hardcode_libdir_separator=:
9120 # hardcode_minus_L: Not really in the search PATH,
9121 # but as the default location of the library.
9122 hardcode_minus_L=yes
9123 export_dynamic_flag_spec='${wl}-E'
9127 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9128 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9130 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9132 if test "$with_gnu_ld" = no; then
9133 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9134 hardcode_libdir_separator=:
9136 hardcode_direct_absolute=yes
9137 export_dynamic_flag_spec='${wl}-E'
9138 # hardcode_minus_L: Not really in the search PATH,
9139 # but as the default location of the library.
9140 hardcode_minus_L=yes
9145 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9148 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9151 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9154 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9160 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9163 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9167 # Older versions of the 11.00 compiler do not understand -b yet
9168 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9170 $as_echo_n "checking if $CC understands -b... " >&6; }
9171 if ${lt_cv_prog_compiler__b+:} false; then :
9172 $as_echo_n "(cached) " >&6
9174 lt_cv_prog_compiler__b=no
9175 save_LDFLAGS="$LDFLAGS"
9176 LDFLAGS="$LDFLAGS -b"
9177 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9178 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9179 # The linker can only warn and ignore the option if not recognized
9180 # So say no if there are warnings
9181 if test -s conftest.err; then
9182 # Append any errors to the config.log.
9183 cat conftest.err 1>&5
9184 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9185 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9186 if diff conftest.exp conftest.er2 >/dev/null; then
9187 lt_cv_prog_compiler__b=yes
9190 lt_cv_prog_compiler__b=yes
9194 LDFLAGS="$save_LDFLAGS"
9197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9198 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9200 if test x"$lt_cv_prog_compiler__b" = xyes; then
9201 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9203 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9209 if test "$with_gnu_ld" = no; then
9210 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9211 hardcode_libdir_separator=:
9216 hardcode_shlibpath_var=no
9220 hardcode_direct_absolute=yes
9221 export_dynamic_flag_spec='${wl}-E'
9223 # hardcode_minus_L: Not really in the search PATH,
9224 # but as the default location of the library.
9225 hardcode_minus_L=yes
9231 irix5* | irix6* | nonstopux*)
9232 if test "$GCC" = yes; then
9233 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'
9234 # Try to use the -exported_symbol ld option, if it does not
9235 # work, assume that -exports_file does not work either and
9236 # implicitly export all symbols.
9237 # This should be the same for all languages, so no per-tag cache variable.
9238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9239 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9240 if ${lt_cv_irix_exported_symbol+:} false; then :
9241 $as_echo_n "(cached) " >&6
9243 save_LDFLAGS="$LDFLAGS"
9244 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9246 /* end confdefs.h. */
9247 int foo (void) { return 0; }
9249 if ac_fn_c_try_link "$LINENO"; then :
9250 lt_cv_irix_exported_symbol=yes
9252 lt_cv_irix_exported_symbol=no
9254 rm -f core conftest.err conftest.$ac_objext \
9255 conftest$ac_exeext conftest.$ac_ext
9256 LDFLAGS="$save_LDFLAGS"
9258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9259 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9260 if test "$lt_cv_irix_exported_symbol" = yes; then
9261 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'
9264 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'
9265 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'
9267 archive_cmds_need_lc='no'
9268 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9269 hardcode_libdir_separator=:
9271 link_all_deplibs=yes
9275 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9276 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9278 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9280 hardcode_libdir_flag_spec='-R$libdir'
9282 hardcode_shlibpath_var=no
9286 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9288 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9289 hardcode_libdir_separator=:
9290 hardcode_shlibpath_var=no
9297 if test -f /usr/libexec/ld.so; then
9299 hardcode_shlibpath_var=no
9300 hardcode_direct_absolute=yes
9301 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9302 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9303 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9304 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9305 export_dynamic_flag_spec='${wl}-E'
9308 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9309 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9310 hardcode_libdir_flag_spec='-R$libdir'
9313 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9314 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9324 hardcode_libdir_flag_spec='-L$libdir'
9325 hardcode_minus_L=yes
9326 allow_undefined_flag=unsupported
9327 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'
9328 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9332 if test "$GCC" = yes; then
9333 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9334 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'
9336 allow_undefined_flag=' -expect_unresolved \*'
9337 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'
9339 archive_cmds_need_lc='no'
9340 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9341 hardcode_libdir_separator=:
9344 osf4* | osf5*) # as osf3* with the addition of -msym flag
9345 if test "$GCC" = yes; then
9346 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9347 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'
9348 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9350 allow_undefined_flag=' -expect_unresolved \*'
9351 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'
9352 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~
9353 $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'
9355 # Both c and cxx compiler support -rpath directly
9356 hardcode_libdir_flag_spec='-rpath $libdir'
9358 archive_cmds_need_lc='no'
9359 hardcode_libdir_separator=:
9363 no_undefined_flag=' -z defs'
9364 if test "$GCC" = yes; then
9366 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9367 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9368 $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'
9370 case `$CC -V 2>&1` in
9373 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9374 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9375 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9379 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9380 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9381 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9385 hardcode_libdir_flag_spec='-R$libdir'
9386 hardcode_shlibpath_var=no
9388 solaris2.[0-5] | solaris2.[0-5].*) ;;
9390 # The compiler driver will combine and reorder linker options,
9391 # but understands `-z linker_flag'. GCC discards it without `$wl',
9392 # but is careful enough not to reorder.
9393 # Supported since Solaris 2.6 (maybe 2.5.1?)
9394 if test "$GCC" = yes; then
9395 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9397 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9401 link_all_deplibs=yes
9405 if test "x$host_vendor" = xsequent; then
9406 # Use $CC to link under sequent, because it throws in some extra .o
9407 # files that make .init and .fini sections work.
9408 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9410 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9412 hardcode_libdir_flag_spec='-L$libdir'
9414 hardcode_minus_L=yes
9415 hardcode_shlibpath_var=no
9419 case $host_vendor in
9421 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9422 hardcode_direct=yes # is this really true???
9425 ## LD is ld it makes a PLAMLIB
9426 ## CC just makes a GrossModule.
9427 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9428 reload_cmds='$CC -r -o $output$reload_objs'
9432 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9433 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9436 runpath_var='LD_RUN_PATH'
9437 hardcode_shlibpath_var=no
9441 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9442 hardcode_shlibpath_var=no
9443 export_dynamic_flag_spec='-Bexport'
9447 if test -d /usr/nec; then
9448 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9449 hardcode_shlibpath_var=no
9450 runpath_var=LD_RUN_PATH
9451 hardcode_runpath_var=yes
9456 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9457 no_undefined_flag='${wl}-z,text'
9458 archive_cmds_need_lc=no
9459 hardcode_shlibpath_var=no
9460 runpath_var='LD_RUN_PATH'
9462 if test "$GCC" = yes; then
9463 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9464 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9466 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9467 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9471 sysv5* | sco3.2v5* | sco5v6*)
9472 # Note: We can NOT use -z defs as we might desire, because we do not
9473 # link with -lc, and that would cause any symbols used from libc to
9474 # always be unresolved, which means just about no library would
9475 # ever link correctly. If we're not using GNU ld we use -z text
9476 # though, which does catch some bad symbols but isn't as heavy-handed
9478 no_undefined_flag='${wl}-z,text'
9479 allow_undefined_flag='${wl}-z,nodefs'
9480 archive_cmds_need_lc=no
9481 hardcode_shlibpath_var=no
9482 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9483 hardcode_libdir_separator=':'
9484 link_all_deplibs=yes
9485 export_dynamic_flag_spec='${wl}-Bexport'
9486 runpath_var='LD_RUN_PATH'
9488 if test "$GCC" = yes; then
9489 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9490 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9492 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9493 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9498 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9499 hardcode_libdir_flag_spec='-L$libdir'
9500 hardcode_shlibpath_var=no
9508 if test x$host_vendor = xsni; then
9510 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9511 export_dynamic_flag_spec='${wl}-Blargedynsym'
9517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9518 $as_echo "$ld_shlibs" >&6; }
9519 test "$ld_shlibs" = no && can_build_shared=no
9521 with_gnu_ld=$with_gnu_ld
9538 # Do we need to explicitly link libc?
9540 case "x$archive_cmds_need_lc" in
9542 # Assume -lc should be added
9543 archive_cmds_need_lc=yes
9545 if test "$enable_shared" = yes && test "$GCC" = yes; then
9546 case $archive_cmds in
9548 # FIXME: we may have to deal with multi-command sequences.
9551 # Test whether the compiler implicitly links with -lc since on some
9552 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9553 # to ld, don't add -lc before -lgcc.
9554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9555 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9556 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9557 $as_echo_n "(cached) " >&6
9560 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9562 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9563 (eval $ac_compile) 2>&5
9565 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9566 test $ac_status = 0; } 2>conftest.err; then
9569 libobjs=conftest.$ac_objext
9571 wl=$lt_prog_compiler_wl
9572 pic_flag=$lt_prog_compiler_pic
9578 lt_save_allow_undefined_flag=$allow_undefined_flag
9579 allow_undefined_flag=
9580 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9581 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9583 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9584 test $ac_status = 0; }
9586 lt_cv_archive_cmds_need_lc=no
9588 lt_cv_archive_cmds_need_lc=yes
9590 allow_undefined_flag=$lt_save_allow_undefined_flag
9592 cat conftest.err 1>&5
9597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9598 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9599 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9758 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9760 if test "$GCC" = yes; then
9762 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9763 *) lt_awk_arg="/^libraries:/" ;;
9766 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9767 *) lt_sed_strip_eq="s,=/,/,g" ;;
9769 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9770 case $lt_search_path_spec in
9772 # if the path contains ";" then we assume it to be the separator
9773 # otherwise default to the standard path separator (i.e. ":") - it is
9774 # assumed that no part of a normal pathname contains ";" but that should
9775 # okay in the real world where ";" in dirpaths is itself problematic.
9776 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9779 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9782 # Ok, now we have the path, separated by spaces, we can step through it
9783 # and add multilib dir if necessary.
9784 lt_tmp_lt_search_path_spec=
9785 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9786 for lt_sys_path in $lt_search_path_spec; do
9787 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9788 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9790 test -d "$lt_sys_path" && \
9791 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9794 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9795 BEGIN {RS=" "; FS="/|\n";} {
9798 for (lt_i = NF; lt_i > 0; lt_i--) {
9799 if ($lt_i != "" && $lt_i != ".") {
9800 if ($lt_i == "..") {
9803 if (lt_count == 0) {
9804 lt_foo="/" $lt_i lt_foo;
9811 if (lt_foo != "") { lt_freq[lt_foo]++; }
9812 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9814 # AWK program above erroneously prepends '/' to C:/dos/paths
9817 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9818 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9820 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9822 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9825 libname_spec='lib$name'
9833 shlibpath_overrides_runpath=unknown
9835 dynamic_linker="$host_os ld.so"
9836 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9837 need_lib_prefix=unknown
9838 hardcode_into_libs=no
9840 # when you set need_version to no, make sure it does not cause -set_version
9841 # flags to be left without arguments
9842 need_version=unknown
9846 version_type=linux # correct to gnu/linux during the next big refactor
9847 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9848 shlibpath_var=LIBPATH
9850 # AIX 3 has no versioning support, so we append a major version to the name.
9851 soname_spec='${libname}${release}${shared_ext}$major'
9855 version_type=linux # correct to gnu/linux during the next big refactor
9858 hardcode_into_libs=yes
9859 if test "$host_cpu" = ia64; then
9860 # AIX 5 supports IA64
9861 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9862 shlibpath_var=LD_LIBRARY_PATH
9864 # With GCC up to 2.95.x, collect2 would create an import file
9865 # for dependence libraries. The import file would start with
9866 # the line `#! .'. This would cause the generated library to
9867 # depend on `.', always an invalid library. This was fixed in
9868 # development snapshots of GCC prior to 3.0.
9870 aix4 | aix4.[01] | aix4.[01].*)
9871 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9873 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9880 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9881 # soname into executable. Probably we can add versioning support to
9882 # collect2, so additional links can be useful in future.
9883 if test "$aix_use_runtimelinking" = yes; then
9884 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9885 # instead of lib<name>.a to let people know that these are not
9886 # typical AIX shared libraries.
9887 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9889 # We preserve .a as extension for shared libraries through AIX4.2
9890 # and later when we are not doing run time linking.
9891 library_names_spec='${libname}${release}.a $libname.a'
9892 soname_spec='${libname}${release}${shared_ext}$major'
9894 shlibpath_var=LIBPATH
9901 # Since July 2007 AmigaOS4 officially supports .so libraries.
9902 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9903 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9906 library_names_spec='$libname.ixlibrary $libname.a'
9907 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9908 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'
9914 library_names_spec='${libname}${shared_ext}'
9915 dynamic_linker="$host_os ld.so"
9916 shlibpath_var=LIBRARY_PATH
9920 version_type=linux # correct to gnu/linux during the next big refactor
9922 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9923 soname_spec='${libname}${release}${shared_ext}$major'
9924 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9925 shlibpath_var=LD_LIBRARY_PATH
9926 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9927 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9928 # the default ld.so.conf also contains /usr/contrib/lib and
9929 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9930 # libtool to hard-code these into programs
9933 cygwin* | mingw* | pw32* | cegcc*)
9934 version_type=windows
9939 case $GCC,$cc_basename in
9942 library_names_spec='$libname.dll.a'
9943 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9944 postinstall_cmds='base_file=`basename \${file}`~
9945 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9946 dldir=$destdir/`dirname \$dlpath`~
9947 test -d \$dldir || mkdir -p \$dldir~
9948 $install_prog $dir/$dlname \$dldir/$dlname~
9949 chmod a+x \$dldir/$dlname~
9950 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9951 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9953 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9954 dlpath=$dir/\$dldll~
9956 shlibpath_overrides_runpath=yes
9960 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9961 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9963 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9966 # MinGW DLLs use traditional 'lib' prefix
9967 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9970 # pw32 DLLs use 'pw' prefix rather than 'lib'
9971 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9974 dynamic_linker='Win32 ld.exe'
9979 libname_spec='$name'
9980 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9981 library_names_spec='${libname}.dll.lib'
9985 sys_lib_search_path_spec=
9991 # Let DOS variable expansion print the short 8.3 style file name.
9992 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
9993 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
9996 # Convert to MSYS style.
9997 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10000 # Convert to unix form, then to dos form, then back to unix form
10001 # but this time dos style (no spaces!) so that the unix form looks
10002 # like /cygdrive/c/PROGRA~1:/cygdr...
10003 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10004 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10005 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10008 sys_lib_search_path_spec="$LIB"
10009 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10010 # It is most probably a Windows format PATH.
10011 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10013 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10015 # FIXME: find the short name or the path components, as spaces are
10016 # common. (e.g. "Program Files" -> "PROGRA~1")
10020 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10021 postinstall_cmds='base_file=`basename \${file}`~
10022 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10023 dldir=$destdir/`dirname \$dlpath`~
10024 test -d \$dldir || mkdir -p \$dldir~
10025 $install_prog $dir/$dlname \$dldir/$dlname'
10026 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10027 dlpath=$dir/\$dldll~
10029 shlibpath_overrides_runpath=yes
10030 dynamic_linker='Win32 link.exe'
10034 # Assume MSVC wrapper
10035 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10036 dynamic_linker='Win32 ld.exe'
10039 # FIXME: first we should search . and the directory the executable is in
10043 darwin* | rhapsody*)
10044 dynamic_linker="$host_os dyld"
10045 version_type=darwin
10048 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10049 soname_spec='${libname}${release}${major}$shared_ext'
10050 shlibpath_overrides_runpath=yes
10051 shlibpath_var=DYLD_LIBRARY_PATH
10052 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10054 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10055 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10059 version_type=linux # correct to gnu/linux during the next big refactor
10062 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10063 soname_spec='${libname}${release}${shared_ext}$major'
10064 shlibpath_var=LD_LIBRARY_PATH
10067 freebsd* | dragonfly*)
10068 # DragonFly does not have aout. When/if they implement a new
10069 # versioning mechanism, adjust this.
10070 if test -x /usr/bin/objformat; then
10071 objformat=`/usr/bin/objformat`
10074 freebsd[23].*) objformat=aout ;;
10075 *) objformat=elf ;;
10078 version_type=freebsd-$objformat
10079 case $version_type in
10081 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10086 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10090 shlibpath_var=LD_LIBRARY_PATH
10093 shlibpath_overrides_runpath=yes
10095 freebsd3.[01]* | freebsdelf3.[01]*)
10096 shlibpath_overrides_runpath=yes
10097 hardcode_into_libs=yes
10099 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10100 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10101 shlibpath_overrides_runpath=no
10102 hardcode_into_libs=yes
10104 *) # from 4.6 on, and DragonFly
10105 shlibpath_overrides_runpath=yes
10106 hardcode_into_libs=yes
10112 version_type=linux # correct to gnu/linux during the next big refactor
10115 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10116 soname_spec='${libname}${release}${shared_ext}$major'
10117 shlibpath_var=LD_LIBRARY_PATH
10118 shlibpath_overrides_runpath=no
10119 hardcode_into_libs=yes
10123 version_type=linux # correct to gnu/linux during the next big refactor
10126 dynamic_linker="$host_os runtime_loader"
10127 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10128 soname_spec='${libname}${release}${shared_ext}$major'
10129 shlibpath_var=LIBRARY_PATH
10130 shlibpath_overrides_runpath=yes
10131 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10132 hardcode_into_libs=yes
10135 hpux9* | hpux10* | hpux11*)
10136 # Give a soname corresponding to the major version so that dld.sl refuses to
10137 # link against other versions.
10144 hardcode_into_libs=yes
10145 dynamic_linker="$host_os dld.so"
10146 shlibpath_var=LD_LIBRARY_PATH
10147 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10148 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10149 soname_spec='${libname}${release}${shared_ext}$major'
10150 if test "X$HPUX_IA64_MODE" = X32; then
10151 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10153 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10155 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10159 hardcode_into_libs=yes
10160 dynamic_linker="$host_os dld.sl"
10161 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10162 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10163 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10164 soname_spec='${libname}${release}${shared_ext}$major'
10165 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10166 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10170 dynamic_linker="$host_os dld.sl"
10171 shlibpath_var=SHLIB_PATH
10172 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10173 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10174 soname_spec='${libname}${release}${shared_ext}$major'
10177 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10178 postinstall_cmds='chmod 555 $lib'
10179 # or fails outright, so override atomically:
10180 install_override_mode=555
10184 version_type=linux # correct to gnu/linux during the next big refactor
10187 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10188 soname_spec='${libname}${release}${shared_ext}$major'
10189 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10190 shlibpath_var=LD_LIBRARY_PATH
10191 shlibpath_overrides_runpath=no
10192 hardcode_into_libs=yes
10195 irix5* | irix6* | nonstopux*)
10197 nonstopux*) version_type=nonstopux ;;
10199 if test "$lt_cv_prog_gnu_ld" = yes; then
10200 version_type=linux # correct to gnu/linux during the next big refactor
10207 soname_spec='${libname}${release}${shared_ext}$major'
10208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10210 irix5* | nonstopux*)
10211 libsuff= shlibsuff=
10214 case $LD in # libtool.m4 will add one of these switches to LD
10215 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10216 libsuff= shlibsuff= libmagic=32-bit;;
10217 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10218 libsuff=32 shlibsuff=N32 libmagic=N32;;
10219 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10220 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10221 *) libsuff= shlibsuff= libmagic=never-match;;
10225 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10226 shlibpath_overrides_runpath=no
10227 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10228 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10229 hardcode_into_libs=yes
10232 # No shared lib support for Linux oldld, aout, or coff.
10233 linux*oldld* | linux*aout* | linux*coff*)
10237 # This must be glibc/ELF.
10238 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10239 version_type=linux # correct to gnu/linux during the next big refactor
10242 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10243 soname_spec='${libname}${release}${shared_ext}$major'
10244 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10245 shlibpath_var=LD_LIBRARY_PATH
10246 shlibpath_overrides_runpath=no
10248 # Some binutils ld are patched to set DT_RUNPATH
10249 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10250 $as_echo_n "(cached) " >&6
10252 lt_cv_shlibpath_overrides_runpath=no
10253 save_LDFLAGS=$LDFLAGS
10254 save_libdir=$libdir
10255 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10256 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10258 /* end confdefs.h. */
10268 if ac_fn_c_try_link "$LINENO"; then :
10269 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10270 lt_cv_shlibpath_overrides_runpath=yes
10273 rm -f core conftest.err conftest.$ac_objext \
10274 conftest$ac_exeext conftest.$ac_ext
10275 LDFLAGS=$save_LDFLAGS
10276 libdir=$save_libdir
10280 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10282 # This implies no fast_install, which is unacceptable.
10283 # Some rework will be needed to allow for fast_install
10284 # before this can be enabled.
10285 hardcode_into_libs=yes
10287 # Append ld.so.conf contents to the search path
10288 if test -f /etc/ld.so.conf; then
10289 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' ' '`
10290 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10293 # We used to test for /lib/ld.so.1 and disable shared libraries on
10294 # powerpc, because MkLinux only supported shared libraries with the
10295 # GNU dynamic linker. Since this was broken with cross compilers,
10296 # most powerpc-linux boxes support dynamic linking these days and
10297 # people can always --disable-shared, the test was removed, and we
10298 # assume the GNU/Linux dynamic linker is in use.
10299 dynamic_linker='GNU/Linux ld.so'
10306 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10307 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10308 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10309 dynamic_linker='NetBSD (a.out) ld.so'
10311 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10312 soname_spec='${libname}${release}${shared_ext}$major'
10313 dynamic_linker='NetBSD ld.elf_so'
10315 shlibpath_var=LD_LIBRARY_PATH
10316 shlibpath_overrides_runpath=yes
10317 hardcode_into_libs=yes
10321 version_type=linux # correct to gnu/linux during the next big refactor
10322 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10323 shlibpath_var=LD_LIBRARY_PATH
10324 shlibpath_overrides_runpath=yes
10331 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10332 soname_spec='${libname}${release}${shared_ext}$major'
10333 shlibpath_var=LD_LIBRARY_PATH
10334 shlibpath_overrides_runpath=no
10335 hardcode_into_libs=yes
10336 dynamic_linker='ldqnx.so'
10341 sys_lib_dlsearch_path_spec="/usr/lib"
10343 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10345 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10346 *) need_version=no ;;
10348 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10349 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10350 shlibpath_var=LD_LIBRARY_PATH
10351 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10353 openbsd2.[89] | openbsd2.[89].*)
10354 shlibpath_overrides_runpath=no
10357 shlibpath_overrides_runpath=yes
10361 shlibpath_overrides_runpath=yes
10366 libname_spec='$name'
10369 library_names_spec='$libname${shared_ext} $libname.a'
10370 dynamic_linker='OS/2 ld.exe'
10371 shlibpath_var=LIBPATH
10374 osf3* | osf4* | osf5*)
10378 soname_spec='${libname}${release}${shared_ext}$major'
10379 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10380 shlibpath_var=LD_LIBRARY_PATH
10381 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10382 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10390 version_type=linux # correct to gnu/linux during the next big refactor
10393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10394 soname_spec='${libname}${release}${shared_ext}$major'
10395 shlibpath_var=LD_LIBRARY_PATH
10396 shlibpath_overrides_runpath=yes
10397 hardcode_into_libs=yes
10398 # ldd complains unless libraries are executable
10399 postinstall_cmds='chmod +x $lib'
10404 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10405 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10406 shlibpath_var=LD_LIBRARY_PATH
10407 shlibpath_overrides_runpath=yes
10408 if test "$with_gnu_ld" = yes; then
10415 version_type=linux # correct to gnu/linux during the next big refactor
10416 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10417 soname_spec='${libname}${release}${shared_ext}$major'
10418 shlibpath_var=LD_LIBRARY_PATH
10419 case $host_vendor in
10421 shlibpath_overrides_runpath=no
10423 runpath_var=LD_RUN_PATH
10431 shlibpath_overrides_runpath=no
10432 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10438 if test -d /usr/nec ;then
10439 version_type=linux # correct to gnu/linux during the next big refactor
10440 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10441 soname_spec='$libname${shared_ext}.$major'
10442 shlibpath_var=LD_LIBRARY_PATH
10446 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10447 version_type=freebsd-elf
10450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10451 soname_spec='${libname}${release}${shared_ext}$major'
10452 shlibpath_var=LD_LIBRARY_PATH
10453 shlibpath_overrides_runpath=yes
10454 hardcode_into_libs=yes
10455 if test "$with_gnu_ld" = yes; then
10456 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10458 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10461 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10465 sys_lib_dlsearch_path_spec='/usr/lib'
10469 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10470 version_type=linux # correct to gnu/linux during the next big refactor
10473 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10474 shlibpath_var=LD_LIBRARY_PATH
10475 shlibpath_overrides_runpath=no
10476 hardcode_into_libs=yes
10480 version_type=linux # correct to gnu/linux during the next big refactor
10481 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10482 soname_spec='${libname}${release}${shared_ext}$major'
10483 shlibpath_var=LD_LIBRARY_PATH
10490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10491 $as_echo "$dynamic_linker" >&6; }
10492 test "$dynamic_linker" = no && can_build_shared=no
10494 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10495 if test "$GCC" = yes; then
10496 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10499 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10500 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10502 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10503 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10598 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10600 if test -n "$hardcode_libdir_flag_spec" ||
10601 test -n "$runpath_var" ||
10602 test "X$hardcode_automatic" = "Xyes" ; then
10604 # We can hardcode non-existent directories.
10605 if test "$hardcode_direct" != no &&
10606 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10607 # have to relink, otherwise we might link with an installed library
10608 # when we should be linking with a yet-to-be-installed one
10609 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10610 test "$hardcode_minus_L" != no; then
10611 # Linking always hardcodes the temporary library directory.
10612 hardcode_action=relink
10614 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10615 hardcode_action=immediate
10618 # We cannot hardcode anything, or else we can only hardcode existing
10620 hardcode_action=unsupported
10622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10623 $as_echo "$hardcode_action" >&6; }
10625 if test "$hardcode_action" = relink ||
10626 test "$inherit_rpath" = yes; then
10627 # Fast installation is not supported
10628 enable_fast_install=no
10629 elif test "$shlibpath_overrides_runpath" = yes ||
10630 test "$enable_shared" = no; then
10631 # Fast installation is not necessary
10632 enable_fast_install=needless
10640 if test "x$enable_dlopen" != xyes; then
10641 enable_dlopen=unknown
10642 enable_dlopen_self=unknown
10643 enable_dlopen_self_static=unknown
10650 lt_cv_dlopen="load_add_on"
10652 lt_cv_dlopen_self=yes
10655 mingw* | pw32* | cegcc*)
10656 lt_cv_dlopen="LoadLibrary"
10661 lt_cv_dlopen="dlopen"
10666 # if libdl is installed we need to link against it
10667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10668 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10669 if ${ac_cv_lib_dl_dlopen+:} false; then :
10670 $as_echo_n "(cached) " >&6
10672 ac_check_lib_save_LIBS=$LIBS
10674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10675 /* end confdefs.h. */
10677 /* Override any GCC internal prototype to avoid an error.
10678 Use char because int might match the return type of a GCC
10679 builtin and then its argument prototype would still apply. */
10692 if ac_fn_c_try_link "$LINENO"; then :
10693 ac_cv_lib_dl_dlopen=yes
10695 ac_cv_lib_dl_dlopen=no
10697 rm -f core conftest.err conftest.$ac_objext \
10698 conftest$ac_exeext conftest.$ac_ext
10699 LIBS=$ac_check_lib_save_LIBS
10701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10702 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10703 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10704 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10707 lt_cv_dlopen="dyld"
10709 lt_cv_dlopen_self=yes
10716 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10717 if test "x$ac_cv_func_shl_load" = xyes; then :
10718 lt_cv_dlopen="shl_load"
10720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10721 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10722 if ${ac_cv_lib_dld_shl_load+:} false; then :
10723 $as_echo_n "(cached) " >&6
10725 ac_check_lib_save_LIBS=$LIBS
10727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10728 /* end confdefs.h. */
10730 /* Override any GCC internal prototype to avoid an error.
10731 Use char because int might match the return type of a GCC
10732 builtin and then its argument prototype would still apply. */
10740 return shl_load ();
10745 if ac_fn_c_try_link "$LINENO"; then :
10746 ac_cv_lib_dld_shl_load=yes
10748 ac_cv_lib_dld_shl_load=no
10750 rm -f core conftest.err conftest.$ac_objext \
10751 conftest$ac_exeext conftest.$ac_ext
10752 LIBS=$ac_check_lib_save_LIBS
10754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10755 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10756 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10757 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10759 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10760 if test "x$ac_cv_func_dlopen" = xyes; then :
10761 lt_cv_dlopen="dlopen"
10763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10764 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10765 if ${ac_cv_lib_dl_dlopen+:} false; then :
10766 $as_echo_n "(cached) " >&6
10768 ac_check_lib_save_LIBS=$LIBS
10770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10771 /* end confdefs.h. */
10773 /* Override any GCC internal prototype to avoid an error.
10774 Use char because int might match the return type of a GCC
10775 builtin and then its argument prototype would still apply. */
10788 if ac_fn_c_try_link "$LINENO"; then :
10789 ac_cv_lib_dl_dlopen=yes
10791 ac_cv_lib_dl_dlopen=no
10793 rm -f core conftest.err conftest.$ac_objext \
10794 conftest$ac_exeext conftest.$ac_ext
10795 LIBS=$ac_check_lib_save_LIBS
10797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10798 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10799 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10800 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10803 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10804 if ${ac_cv_lib_svld_dlopen+:} false; then :
10805 $as_echo_n "(cached) " >&6
10807 ac_check_lib_save_LIBS=$LIBS
10808 LIBS="-lsvld $LIBS"
10809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10810 /* end confdefs.h. */
10812 /* Override any GCC internal prototype to avoid an error.
10813 Use char because int might match the return type of a GCC
10814 builtin and then its argument prototype would still apply. */
10827 if ac_fn_c_try_link "$LINENO"; then :
10828 ac_cv_lib_svld_dlopen=yes
10830 ac_cv_lib_svld_dlopen=no
10832 rm -f core conftest.err conftest.$ac_objext \
10833 conftest$ac_exeext conftest.$ac_ext
10834 LIBS=$ac_check_lib_save_LIBS
10836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10837 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10838 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
10839 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10842 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10843 if ${ac_cv_lib_dld_dld_link+:} false; then :
10844 $as_echo_n "(cached) " >&6
10846 ac_check_lib_save_LIBS=$LIBS
10848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10849 /* end confdefs.h. */
10851 /* Override any GCC internal prototype to avoid an error.
10852 Use char because int might match the return type of a GCC
10853 builtin and then its argument prototype would still apply. */
10861 return dld_link ();
10866 if ac_fn_c_try_link "$LINENO"; then :
10867 ac_cv_lib_dld_dld_link=yes
10869 ac_cv_lib_dld_dld_link=no
10871 rm -f core conftest.err conftest.$ac_objext \
10872 conftest$ac_exeext conftest.$ac_ext
10873 LIBS=$ac_check_lib_save_LIBS
10875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10876 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10877 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
10878 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10899 if test "x$lt_cv_dlopen" != xno; then
10905 case $lt_cv_dlopen in
10907 save_CPPFLAGS="$CPPFLAGS"
10908 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10910 save_LDFLAGS="$LDFLAGS"
10911 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10914 LIBS="$lt_cv_dlopen_libs $LIBS"
10916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10917 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10918 if ${lt_cv_dlopen_self+:} false; then :
10919 $as_echo_n "(cached) " >&6
10921 if test "$cross_compiling" = yes; then :
10922 lt_cv_dlopen_self=cross
10924 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10925 lt_status=$lt_dlunknown
10926 cat > conftest.$ac_ext <<_LT_EOF
10927 #line $LINENO "configure"
10928 #include "confdefs.h"
10937 # define LT_DLGLOBAL RTLD_GLOBAL
10940 # define LT_DLGLOBAL DL_GLOBAL
10942 # define LT_DLGLOBAL 0
10946 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10947 find out it does not work in some platform. */
10948 #ifndef LT_DLLAZY_OR_NOW
10950 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10953 # define LT_DLLAZY_OR_NOW DL_LAZY
10956 # define LT_DLLAZY_OR_NOW RTLD_NOW
10959 # define LT_DLLAZY_OR_NOW DL_NOW
10961 # define LT_DLLAZY_OR_NOW 0
10968 /* When -fvisbility=hidden is used, assume the code has been annotated
10969 correspondingly for the symbols needed. */
10970 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10971 int fnord () __attribute__((visibility("default")));
10974 int fnord () { return 42; }
10977 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10978 int status = $lt_dlunknown;
10982 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10985 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10986 else puts (dlerror ());
10988 /* dlclose (self); */
10996 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10997 (eval $ac_link) 2>&5
10999 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11000 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11001 (./conftest; exit; ) >&5 2>/dev/null
11003 case x$lt_status in
11004 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11005 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11006 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11009 # compilation failed
11010 lt_cv_dlopen_self=no
11017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11018 $as_echo "$lt_cv_dlopen_self" >&6; }
11020 if test "x$lt_cv_dlopen_self" = xyes; then
11021 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11023 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11024 if ${lt_cv_dlopen_self_static+:} false; then :
11025 $as_echo_n "(cached) " >&6
11027 if test "$cross_compiling" = yes; then :
11028 lt_cv_dlopen_self_static=cross
11030 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11031 lt_status=$lt_dlunknown
11032 cat > conftest.$ac_ext <<_LT_EOF
11033 #line $LINENO "configure"
11034 #include "confdefs.h"
11043 # define LT_DLGLOBAL RTLD_GLOBAL
11046 # define LT_DLGLOBAL DL_GLOBAL
11048 # define LT_DLGLOBAL 0
11052 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11053 find out it does not work in some platform. */
11054 #ifndef LT_DLLAZY_OR_NOW
11056 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11059 # define LT_DLLAZY_OR_NOW DL_LAZY
11062 # define LT_DLLAZY_OR_NOW RTLD_NOW
11065 # define LT_DLLAZY_OR_NOW DL_NOW
11067 # define LT_DLLAZY_OR_NOW 0
11074 /* When -fvisbility=hidden is used, assume the code has been annotated
11075 correspondingly for the symbols needed. */
11076 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11077 int fnord () __attribute__((visibility("default")));
11080 int fnord () { return 42; }
11083 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11084 int status = $lt_dlunknown;
11088 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11091 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11092 else puts (dlerror ());
11094 /* dlclose (self); */
11102 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11103 (eval $ac_link) 2>&5
11105 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11106 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11107 (./conftest; exit; ) >&5 2>/dev/null
11109 case x$lt_status in
11110 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11111 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11112 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11115 # compilation failed
11116 lt_cv_dlopen_self_static=no
11123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11124 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11127 CPPFLAGS="$save_CPPFLAGS"
11128 LDFLAGS="$save_LDFLAGS"
11133 case $lt_cv_dlopen_self in
11134 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11135 *) enable_dlopen_self=unknown ;;
11138 case $lt_cv_dlopen_self_static in
11139 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11140 *) enable_dlopen_self_static=unknown ;;
11162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11163 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11164 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11165 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11166 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11168 $as_echo "yes" >&6; }
11170 # FIXME - insert some real tests, host_os isn't really good enough
11173 if test -n "$STRIP" ; then
11174 striplib="$STRIP -x"
11175 old_striplib="$STRIP -S"
11176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11177 $as_echo "yes" >&6; }
11179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11180 $as_echo "no" >&6; }
11184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11185 $as_echo "no" >&6; }
11201 # Report which library types will actually be built
11202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11203 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11205 $as_echo "$can_build_shared" >&6; }
11207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11208 $as_echo_n "checking whether to build shared libraries... " >&6; }
11209 test "$can_build_shared" = "no" && enable_shared=no
11211 # On AIX, shared libraries and static libraries use the same namespace, and
11212 # are all built from PIC.
11215 test "$enable_shared" = yes && enable_static=no
11216 if test -n "$RANLIB"; then
11217 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11218 postinstall_cmds='$RANLIB $lib'
11223 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11224 test "$enable_shared" = yes && enable_static=no
11228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11229 $as_echo "$enable_shared" >&6; }
11231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11232 $as_echo_n "checking whether to build static libraries... " >&6; }
11233 # Make sure either enable_shared or enable_static is yes.
11234 test "$enable_shared" = yes || enable_static=yes
11235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11236 $as_echo "$enable_static" >&6; }
11243 ac_cpp='$CPP $CPPFLAGS'
11244 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11245 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11246 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11264 ac_config_commands="$ac_config_commands libtool"
11269 # Only expand once:
11272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
11273 $as_echo_n "checking for inline... " >&6; }
11274 if ${ac_cv_c_inline+:} false; then :
11275 $as_echo_n "(cached) " >&6
11278 for ac_kw in inline __inline__ __inline; do
11279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11280 /* end confdefs.h. */
11281 #ifndef __cplusplus
11283 static $ac_kw foo_t static_foo () {return 0; }
11284 $ac_kw foo_t foo () {return 0; }
11288 if ac_fn_c_try_compile "$LINENO"; then :
11289 ac_cv_c_inline=$ac_kw
11291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11292 test "$ac_cv_c_inline" != no && break
11296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
11297 $as_echo "$ac_cv_c_inline" >&6; }
11299 case $ac_cv_c_inline in
11302 case $ac_cv_c_inline in
11304 *) ac_val=$ac_cv_c_inline;;
11306 cat >>confdefs.h <<_ACEOF
11307 #ifndef __cplusplus
11308 #define inline $ac_val
11314 if test "x$CC" != xcc; then
11315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
11316 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
11318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
11319 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
11321 set dummy $CC; ac_cc=`$as_echo "$2" |
11322 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
11323 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
11324 $as_echo_n "(cached) " >&6
11326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11327 /* end confdefs.h. */
11337 # Make sure it works both with $CC and with simple cc.
11338 # We do the test twice because some compilers refuse to overwrite an
11339 # existing .o file with -o, though they will create one.
11340 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
11342 if { { case "(($ac_try" in
11343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11344 *) ac_try_echo=$ac_try;;
11346 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11347 $as_echo "$ac_try_echo"; } >&5
11348 (eval "$ac_try") 2>&5
11350 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11351 test $ac_status = 0; } &&
11352 test -f conftest2.$ac_objext && { { case "(($ac_try" in
11353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11354 *) ac_try_echo=$ac_try;;
11356 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11357 $as_echo "$ac_try_echo"; } >&5
11358 (eval "$ac_try") 2>&5
11360 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11361 test $ac_status = 0; };
11363 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
11364 if test "x$CC" != xcc; then
11365 # Test first that cc exists at all.
11366 if { ac_try='cc -c conftest.$ac_ext >&5'
11367 { { case "(($ac_try" in
11368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11369 *) ac_try_echo=$ac_try;;
11371 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11372 $as_echo "$ac_try_echo"; } >&5
11373 (eval "$ac_try") 2>&5
11375 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11376 test $ac_status = 0; }; }; then
11377 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
11379 if { { case "(($ac_try" in
11380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11381 *) ac_try_echo=$ac_try;;
11383 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11384 $as_echo "$ac_try_echo"; } >&5
11385 (eval "$ac_try") 2>&5
11387 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11388 test $ac_status = 0; } &&
11389 test -f conftest2.$ac_objext && { { case "(($ac_try" in
11390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11391 *) ac_try_echo=$ac_try;;
11393 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11394 $as_echo "$ac_try_echo"; } >&5
11395 (eval "$ac_try") 2>&5
11397 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11398 test $ac_status = 0; };
11403 # cc exists but doesn't like -o.
11404 eval ac_cv_prog_cc_${ac_cc}_c_o=no
11409 eval ac_cv_prog_cc_${ac_cc}_c_o=no
11411 rm -f core conftest*
11414 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
11415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11416 $as_echo "yes" >&6; }
11418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11419 $as_echo "no" >&6; }
11421 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
11425 # FIXME: we rely on the cache variable name because
11426 # there is no other way.
11428 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
11429 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
11430 if test "$am_t" != yes; then
11431 # Losing compiler, so override with the script.
11432 # FIXME: It is wrong to rewrite CC.
11433 # But if we don't then we get into trouble of one sort or another.
11434 # A longer-term fix would be to have automake use am__CC in this case,
11435 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
11436 CC="$am_aux_dir/compile $CC"
11441 # Library versioning
11449 # The libusb-0.1 version we pretend to be
11450 LIBUSB01_VERSION="0.1.12"
11460 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
11461 if test -n "$ac_tool_prefix"; then
11462 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
11463 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
11464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11465 $as_echo_n "checking for $ac_word... " >&6; }
11466 if ${ac_cv_path_PKG_CONFIG+:} false; then :
11467 $as_echo_n "(cached) " >&6
11469 case $PKG_CONFIG in
11471 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11475 for as_dir in $PATH
11478 test -z "$as_dir" && as_dir=.
11479 for ac_exec_ext in '' $ac_executable_extensions; do
11480 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11481 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11482 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11492 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11493 if test -n "$PKG_CONFIG"; then
11494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11495 $as_echo "$PKG_CONFIG" >&6; }
11497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11498 $as_echo "no" >&6; }
11503 if test -z "$ac_cv_path_PKG_CONFIG"; then
11504 ac_pt_PKG_CONFIG=$PKG_CONFIG
11505 # Extract the first word of "pkg-config", so it can be a program name with args.
11506 set dummy pkg-config; ac_word=$2
11507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11508 $as_echo_n "checking for $ac_word... " >&6; }
11509 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
11510 $as_echo_n "(cached) " >&6
11512 case $ac_pt_PKG_CONFIG in
11514 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
11517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11518 for as_dir in $PATH
11521 test -z "$as_dir" && as_dir=.
11522 for ac_exec_ext in '' $ac_executable_extensions; do
11523 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11524 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11535 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
11536 if test -n "$ac_pt_PKG_CONFIG"; then
11537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
11538 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
11540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11541 $as_echo "no" >&6; }
11544 if test "x$ac_pt_PKG_CONFIG" = x; then
11547 case $cross_compiling:$ac_tool_warned in
11549 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11550 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11551 ac_tool_warned=yes ;;
11553 PKG_CONFIG=$ac_pt_PKG_CONFIG
11556 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
11560 if test -n "$PKG_CONFIG"; then
11561 _pkg_min_version=0.9.0
11562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
11563 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
11564 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
11565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11566 $as_echo "yes" >&6; }
11568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11569 $as_echo "no" >&6; }
11575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBUSB_1_0" >&5
11576 $as_echo_n "checking for LIBUSB_1_0... " >&6; }
11578 if test -n "$LIBUSB_1_0_CFLAGS"; then
11579 pkg_cv_LIBUSB_1_0_CFLAGS="$LIBUSB_1_0_CFLAGS"
11580 elif test -n "$PKG_CONFIG"; then
11581 if test -n "$PKG_CONFIG" && \
11582 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0 >= 0.9.1\""; } >&5
11583 ($PKG_CONFIG --exists --print-errors "libusb-1.0 >= 0.9.1") 2>&5
11585 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11586 test $ac_status = 0; }; then
11587 pkg_cv_LIBUSB_1_0_CFLAGS=`$PKG_CONFIG --cflags "libusb-1.0 >= 0.9.1" 2>/dev/null`
11588 test "x$?" != "x0" && pkg_failed=yes
11595 if test -n "$LIBUSB_1_0_LIBS"; then
11596 pkg_cv_LIBUSB_1_0_LIBS="$LIBUSB_1_0_LIBS"
11597 elif test -n "$PKG_CONFIG"; then
11598 if test -n "$PKG_CONFIG" && \
11599 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0 >= 0.9.1\""; } >&5
11600 ($PKG_CONFIG --exists --print-errors "libusb-1.0 >= 0.9.1") 2>&5
11602 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11603 test $ac_status = 0; }; then
11604 pkg_cv_LIBUSB_1_0_LIBS=`$PKG_CONFIG --libs "libusb-1.0 >= 0.9.1" 2>/dev/null`
11605 test "x$?" != "x0" && pkg_failed=yes
11615 if test $pkg_failed = yes; then
11616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11617 $as_echo "no" >&6; }
11619 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11620 _pkg_short_errors_supported=yes
11622 _pkg_short_errors_supported=no
11624 if test $_pkg_short_errors_supported = yes; then
11625 LIBUSB_1_0_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libusb-1.0 >= 0.9.1" 2>&1`
11627 LIBUSB_1_0_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libusb-1.0 >= 0.9.1" 2>&1`
11629 # Put the nasty error message in config.log where it belongs
11630 echo "$LIBUSB_1_0_PKG_ERRORS" >&5
11632 as_fn_error $? "Package requirements (libusb-1.0 >= 0.9.1) were not met:
11634 $LIBUSB_1_0_PKG_ERRORS
11636 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11637 installed software in a non-standard prefix.
11639 Alternatively, you may set the environment variables LIBUSB_1_0_CFLAGS
11640 and LIBUSB_1_0_LIBS to avoid the need to call pkg-config.
11641 See the pkg-config man page for more details." "$LINENO" 5
11642 elif test $pkg_failed = untried; then
11643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11644 $as_echo "no" >&6; }
11645 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11646 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11647 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
11648 is in your PATH or set the PKG_CONFIG environment variable to the full
11649 path to pkg-config.
11651 Alternatively, you may set the environment variables LIBUSB_1_0_CFLAGS
11652 and LIBUSB_1_0_LIBS to avoid the need to call pkg-config.
11653 See the pkg-config man page for more details.
11655 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11656 See \`config.log' for more details" "$LINENO" 5; }
11658 LIBUSB_1_0_CFLAGS=$pkg_cv_LIBUSB_1_0_CFLAGS
11659 LIBUSB_1_0_LIBS=$pkg_cv_LIBUSB_1_0_LIBS
11660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11661 $as_echo "yes" >&6; }
11668 # Check whether --enable-log was given.
11669 if test "${enable_log+set}" = set; then :
11670 enableval=$enable_log; log_enabled=$enableval
11675 if test "x$log_enabled" != "xno"; then
11677 $as_echo "#define ENABLE_LOGGING 1" >>confdefs.h
11681 # Check whether --enable-debug-log was given.
11682 if test "${enable_debug_log+set}" = set; then :
11683 enableval=$enable_debug_log; debug_log_enabled=$enableval
11685 debug_log_enabled='no'
11688 if test "x$debug_log_enabled" != "xno"; then
11690 $as_echo "#define ENABLE_DEBUG_LOGGING 1" >>confdefs.h
11695 # Check whether --enable-examples-build was given.
11696 if test "${enable_examples_build+set}" = set; then :
11697 enableval=$enable_examples_build; build_examples=$enableval
11699 build_examples='no'
11702 if test "x$build_examples" != "xno"; then
11703 BUILD_EXAMPLES_TRUE=
11704 BUILD_EXAMPLES_FALSE='#'
11706 BUILD_EXAMPLES_TRUE='#'
11707 BUILD_EXAMPLES_FALSE=
11711 # Restore gnu89 inline semantics on gcc 4.3 and newer
11712 saved_cflags="$CFLAGS"
11713 CFLAGS="$CFLAGS -fgnu89-inline"
11714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11715 /* end confdefs.h. */
11725 if ac_fn_c_try_compile "$LINENO"; then :
11726 inline_cflags="-fgnu89-inline"
11730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11731 CFLAGS="$saved_cflags"
11734 $as_echo "#define API_EXPORTED __attribute__((visibility(\"default\")))" >>confdefs.h
11736 AM_CFLAGS="-std=gnu99 $inline_cflags -Wall -Wundef -Wunused -Wstrict-prototypes -Werror-implicit-function-declaration -Wno-pointer-sign -Wshadow"
11739 ac_config_files="$ac_config_files libusb.pc libusb-config Makefile libusb/Makefile examples/Makefile"
11741 ac_config_commands="$ac_config_commands default"
11744 cat >confcache <<\_ACEOF
11745 # This file is a shell script that caches the results of configure
11746 # tests run on this system so they can be shared between configure
11747 # scripts and configure runs, see configure's option --config-cache.
11748 # It is not useful on other systems. If it contains results you don't
11749 # want to keep, you may remove or edit it.
11751 # config.status only pays attention to the cache file if you give it
11752 # the --recheck option to rerun configure.
11754 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11755 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11756 # following values.
11760 # The following way of writing the cache mishandles newlines in values,
11761 # but we know of no workaround that is simple, portable, and efficient.
11762 # So, we kill variables containing newlines.
11763 # Ultrix sh set writes to stderr and can't be redirected directly,
11764 # and sets the high bit in the cache file unless we assign to the vars.
11766 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11767 eval ac_val=\$$ac_var
11771 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11772 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11775 _ | IFS | as_nl) ;; #(
11776 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11777 *) { eval $ac_var=; unset $ac_var;} ;;
11783 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11784 *${as_nl}ac_space=\ *)
11785 # `set' does not quote correctly, so add quotes: double-quote
11786 # substitution turns \\\\ into \\, and sed turns \\ into \.
11789 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11792 # `set' quotes correctly as required by POSIX, so do not add quotes.
11793 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11802 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11804 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11806 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11807 if test -w "$cache_file"; then
11808 if test "x$cache_file" != "x/dev/null"; then
11809 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11810 $as_echo "$as_me: updating cache $cache_file" >&6;}
11811 if test ! -f "$cache_file" || test -h "$cache_file"; then
11812 cat confcache >"$cache_file"
11814 case $cache_file in #(
11816 mv -f confcache "$cache_file"$$ &&
11817 mv -f "$cache_file"$$ "$cache_file" ;; #(
11819 mv -f confcache "$cache_file" ;;
11824 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11825 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11830 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11831 # Let make expand exec_prefix.
11832 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11834 DEFS=-DHAVE_CONFIG_H
11839 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11840 # 1. Remove the extension, and $U if already installed.
11841 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11842 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11843 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11844 # will be set to the directory where LIBOBJS objects are built.
11845 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11846 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11848 LIBOBJS=$ac_libobjs
11850 LTLIBOBJS=$ac_ltlibobjs
11853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
11854 $as_echo_n "checking that generated files are newer than configure... " >&6; }
11855 if test -n "$am_sleep_pid"; then
11856 # Hide warnings about reused PIDs.
11857 wait $am_sleep_pid 2>/dev/null
11859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
11860 $as_echo "done" >&6; }
11861 if test -n "$EXEEXT"; then
11863 am__EXEEXT_FALSE='#'
11865 am__EXEEXT_TRUE='#'
11869 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11870 as_fn_error $? "conditional \"AMDEP\" was never defined.
11871 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11873 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11874 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11875 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11877 if test -z "${BUILD_EXAMPLES_TRUE}" && test -z "${BUILD_EXAMPLES_FALSE}"; then
11878 as_fn_error $? "conditional \"BUILD_EXAMPLES\" was never defined.
11879 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11882 : "${CONFIG_STATUS=./config.status}"
11884 ac_clean_files_save=$ac_clean_files
11885 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11886 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11887 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11889 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11891 # Generated by $as_me.
11892 # Run this file to recreate the current configuration.
11893 # Compiler output produced by configure, useful for debugging
11894 # configure, is in config.log if it exists.
11897 ac_cs_recheck=false
11900 SHELL=\${CONFIG_SHELL-$SHELL}
11903 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11904 ## -------------------- ##
11905 ## M4sh Initialization. ##
11906 ## -------------------- ##
11908 # Be more Bourne compatible
11909 DUALCASE=1; export DUALCASE # for MKS sh
11910 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11913 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11914 # is contrary to our usage. Disable this feature.
11915 alias -g '${1+"$@"}'='"$@"'
11916 setopt NO_GLOB_SUBST
11918 case `(set -o) 2>/dev/null` in #(
11930 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11931 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11932 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11933 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11934 # Prefer a ksh shell builtin over an external printf program on Solaris,
11935 # but without wasting forks for bash or zsh.
11936 if test -z "$BASH_VERSION$ZSH_VERSION" \
11937 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11938 as_echo='print -r --'
11939 as_echo_n='print -rn --'
11940 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11941 as_echo='printf %s\n'
11942 as_echo_n='printf %s'
11944 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11945 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11946 as_echo_n='/usr/ucb/echo -n'
11948 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11949 as_echo_n_body='eval
11953 expr "X$arg" : "X\\(.*\\)$as_nl";
11954 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11956 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11958 export as_echo_n_body
11959 as_echo_n='sh -c $as_echo_n_body as_echo'
11961 export as_echo_body
11962 as_echo='sh -c $as_echo_body as_echo'
11965 # The user is always right.
11966 if test "${PATH_SEPARATOR+set}" != set; then
11968 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11969 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11976 # We need space, tab and new line, in precisely that order. Quoting is
11977 # there to prevent editors from complaining about space-tab.
11978 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11979 # splitting by setting IFS to empty value.)
11982 # Find who we are. Look in the path if we contain no directory separator.
11985 *[\\/]* ) as_myself=$0 ;;
11986 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11987 for as_dir in $PATH
11990 test -z "$as_dir" && as_dir=.
11991 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11997 # We did not find ourselves, most probably we were run as `sh COMMAND'
11998 # in which case we are not to be found in the path.
11999 if test "x$as_myself" = x; then
12002 if test ! -f "$as_myself"; then
12003 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12007 # Unset variables that we do not need and which cause bugs (e.g. in
12008 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12009 # suppresses any "Segmentation fault" message there. '((' could
12010 # trigger a bug in pdksh 5.2.14.
12011 for as_var in BASH_ENV ENV MAIL MAILPATH
12012 do eval test x\${$as_var+set} = xset \
12013 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12026 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12029 # as_fn_error STATUS ERROR [LINENO LOG_FD]
12030 # ----------------------------------------
12031 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12032 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12033 # script with STATUS, using 1 if that was 0.
12036 as_status=$1; test $as_status -eq 0 && as_status=1
12038 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12039 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12041 $as_echo "$as_me: error: $2" >&2
12042 as_fn_exit $as_status
12046 # as_fn_set_status STATUS
12047 # -----------------------
12048 # Set $? to STATUS, without forking.
12049 as_fn_set_status ()
12052 } # as_fn_set_status
12054 # as_fn_exit STATUS
12055 # -----------------
12056 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12060 as_fn_set_status $1
12066 # Portably unset VAR.
12069 { eval $1=; unset $1;}
12071 as_unset=as_fn_unset
12072 # as_fn_append VAR VALUE
12073 # ----------------------
12074 # Append the text in VALUE to the end of the definition contained in VAR. Take
12075 # advantage of any shell optimizations that allow amortized linear growth over
12076 # repeated appends, instead of the typical quadratic growth present in naive
12078 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12079 eval 'as_fn_append ()
12090 # as_fn_arith ARG...
12091 # ------------------
12092 # Perform arithmetic evaluation on the ARGs, and store the result in the
12093 # global $as_val. Take advantage of shells that can avoid forks. The arguments
12094 # must be portable across $(()) and expr.
12095 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12096 eval 'as_fn_arith ()
12103 as_val=`expr "$@" || test $? -eq 1`
12108 if expr a : '\(a\)' >/dev/null 2>&1 &&
12109 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12115 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12116 as_basename=basename
12121 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12127 as_me=`$as_basename -- "$0" ||
12128 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12129 X"$0" : 'X\(//\)$' \| \
12130 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12132 sed '/^.*\/\([^/][^/]*\)\/*$/{
12146 # Avoid depending upon Character Ranges.
12147 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12148 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12149 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12150 as_cr_digits='0123456789'
12151 as_cr_alnum=$as_cr_Letters$as_cr_digits
12153 ECHO_C= ECHO_N= ECHO_T=
12154 case `echo -n x` in #(((((
12156 case `echo 'xy\c'` in
12157 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12159 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
12166 rm -f conf$$ conf$$.exe conf$$.file
12167 if test -d conf$$.dir; then
12168 rm -f conf$$.dir/conf$$.file
12171 mkdir conf$$.dir 2>/dev/null
12173 if (echo >conf$$.file) 2>/dev/null; then
12174 if ln -s conf$$.file conf$$ 2>/dev/null; then
12176 # ... but there are two gotchas:
12177 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12178 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12179 # In both cases, we have to default to `cp -pR'.
12180 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12182 elif ln conf$$.file conf$$ 2>/dev/null; then
12190 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12191 rmdir conf$$.dir 2>/dev/null
12196 # Create "$as_dir" as a directory, including parents if necessary.
12201 -*) as_dir=./$as_dir;;
12203 test -d "$as_dir" || eval $as_mkdir_p || {
12207 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12208 *) as_qdir=$as_dir;;
12210 as_dirs="'$as_qdir' $as_dirs"
12211 as_dir=`$as_dirname -- "$as_dir" ||
12212 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12213 X"$as_dir" : 'X\(//\)[^/]' \| \
12214 X"$as_dir" : 'X\(//\)$' \| \
12215 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12216 $as_echo X"$as_dir" |
12217 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12221 /^X\(\/\/\)[^/].*/{
12234 test -d "$as_dir" && break
12236 test -z "$as_dirs" || eval "mkdir $as_dirs"
12237 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12241 if mkdir -p . 2>/dev/null; then
12242 as_mkdir_p='mkdir -p "$as_dir"'
12244 test -d ./-p && rmdir ./-p
12249 # as_fn_executable_p FILE
12250 # -----------------------
12251 # Test if FILE is an executable regular file.
12252 as_fn_executable_p ()
12254 test -f "$1" && test -x "$1"
12255 } # as_fn_executable_p
12256 as_test_x='test -x'
12257 as_executable_p=as_fn_executable_p
12259 # Sed expression to map a string onto a valid CPP name.
12260 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12262 # Sed expression to map a string onto a valid variable name.
12263 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12267 ## ----------------------------------- ##
12268 ## Main body of $CONFIG_STATUS script. ##
12269 ## ----------------------------------- ##
12271 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12273 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12274 # Save the log message, to keep $0 and so on meaningful, and to
12275 # report actual input values of CONFIG_FILES etc. instead of their
12276 # values after options handling.
12278 This file was extended by libusb-compat $as_me 0.1.5, which was
12279 generated by GNU Autoconf 2.69. Invocation command line was
12281 CONFIG_FILES = $CONFIG_FILES
12282 CONFIG_HEADERS = $CONFIG_HEADERS
12283 CONFIG_LINKS = $CONFIG_LINKS
12284 CONFIG_COMMANDS = $CONFIG_COMMANDS
12287 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12292 case $ac_config_files in *"
12293 "*) set x $ac_config_files; shift; ac_config_files=$*;;
12296 case $ac_config_headers in *"
12297 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12301 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12302 # Files that config.status was made for.
12303 config_files="$ac_config_files"
12304 config_headers="$ac_config_headers"
12305 config_commands="$ac_config_commands"
12309 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12311 \`$as_me' instantiates files and other configuration actions
12312 from templates according to the current configuration. Unless the files
12313 and actions are specified as TAGs, all are instantiated by default.
12315 Usage: $0 [OPTION]... [TAG]...
12317 -h, --help print this help, then exit
12318 -V, --version print version number and configuration settings, then exit
12319 --config print configuration, then exit
12320 -q, --quiet, --silent
12321 do not print progress messages
12322 -d, --debug don't remove temporary files
12323 --recheck update $as_me by reconfiguring in the same conditions
12324 --file=FILE[:TEMPLATE]
12325 instantiate the configuration file FILE
12326 --header=FILE[:TEMPLATE]
12327 instantiate the configuration header FILE
12329 Configuration files:
12332 Configuration headers:
12335 Configuration commands:
12338 Report bugs to the package provider."
12341 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12342 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12344 libusb-compat config.status 0.1.5
12345 configured by $0, generated by GNU Autoconf 2.69,
12346 with options \\"\$ac_cs_config\\"
12348 Copyright (C) 2012 Free Software Foundation, Inc.
12349 This config.status script is free software; the Free Software Foundation
12350 gives unlimited permission to copy, distribute and modify it."
12357 test -n "\$AWK" || AWK=awk
12360 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12361 # The default lists apply if the user does not specify any file.
12367 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12368 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12372 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12384 # Handling of the options.
12385 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12387 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12388 $as_echo "$ac_cs_version"; exit ;;
12389 --config | --confi | --conf | --con | --co | --c )
12390 $as_echo "$ac_cs_config"; exit ;;
12391 --debug | --debu | --deb | --de | --d | -d )
12393 --file | --fil | --fi | --f )
12396 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12397 '') as_fn_error $? "missing file argument" ;;
12399 as_fn_append CONFIG_FILES " '$ac_optarg'"
12400 ac_need_defaults=false;;
12401 --header | --heade | --head | --hea )
12404 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12406 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12407 ac_need_defaults=false;;
12409 # Conflict between --help and --header
12410 as_fn_error $? "ambiguous option: \`$1'
12411 Try \`$0 --help' for more information.";;
12412 --help | --hel | -h )
12413 $as_echo "$ac_cs_usage"; exit ;;
12414 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12415 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12418 # This is an error.
12419 -*) as_fn_error $? "unrecognized option: \`$1'
12420 Try \`$0 --help' for more information." ;;
12422 *) as_fn_append ac_config_targets " $1"
12423 ac_need_defaults=false ;;
12429 ac_configure_extra_args=
12431 if $ac_cs_silent; then
12433 ac_configure_extra_args="$ac_configure_extra_args --silent"
12437 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12438 if \$ac_cs_recheck; then
12439 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12441 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12442 CONFIG_SHELL='$SHELL'
12443 export CONFIG_SHELL
12448 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12452 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12453 ## Running $as_me. ##
12459 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12463 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12466 # The HP-UX ksh and POSIX shell print the target directory to stdout
12467 # if CDPATH is set.
12468 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12470 sed_quote_subst='$sed_quote_subst'
12471 double_quote_subst='$double_quote_subst'
12472 delay_variable_subst='$delay_variable_subst'
12473 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
12474 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
12475 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
12476 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
12477 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
12478 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
12479 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
12480 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
12481 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
12482 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
12483 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
12484 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
12485 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
12486 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
12487 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
12488 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
12489 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
12490 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
12491 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
12492 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
12493 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
12494 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
12495 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
12496 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
12497 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
12498 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
12499 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
12500 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
12501 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
12502 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
12503 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
12504 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
12505 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
12506 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
12507 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
12508 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
12509 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
12510 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
12511 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
12512 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
12513 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
12514 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
12515 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
12516 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
12517 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
12518 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12519 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12520 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
12521 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
12522 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
12523 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
12524 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
12525 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
12526 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
12527 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
12528 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
12529 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"`'
12530 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
12531 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
12532 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
12533 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
12534 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
12535 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
12536 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
12537 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
12538 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
12539 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
12540 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
12541 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
12542 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
12543 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
12544 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
12545 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
12546 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
12547 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
12548 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12549 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
12550 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
12551 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
12552 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
12553 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
12554 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
12555 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12556 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
12557 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12558 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
12559 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12560 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
12561 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
12562 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
12563 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
12564 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
12565 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
12566 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
12567 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
12568 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
12569 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
12570 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
12571 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
12572 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
12573 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
12574 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
12575 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
12576 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
12577 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
12578 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
12579 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
12580 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
12581 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
12582 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
12583 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
12584 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
12585 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
12586 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
12587 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
12588 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
12589 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
12590 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12591 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12592 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
12593 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
12594 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
12595 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
12596 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
12597 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
12598 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
12599 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
12600 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
12601 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
12602 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
12605 LTCFLAGS='$LTCFLAGS'
12606 compiler='$compiler_DEFAULT'
12608 # A function that is used when there is no print builtin or printf.
12609 func_fallback_echo ()
12611 eval 'cat <<_LTECHO_EOF
12616 # Quote evaled strings.
12631 deplibs_check_method \
12636 sharedlib_from_linklib_cmd \
12639 archiver_list_spec \
12645 lt_cv_sys_global_symbol_pipe \
12646 lt_cv_sys_global_symbol_to_cdecl \
12647 lt_cv_sys_global_symbol_to_c_name_address \
12648 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
12649 nm_file_list_spec \
12650 lt_prog_compiler_no_builtin_flag \
12651 lt_prog_compiler_pic \
12652 lt_prog_compiler_wl \
12653 lt_prog_compiler_static \
12654 lt_cv_prog_compiler_c_o \
12663 export_dynamic_flag_spec \
12664 whole_archive_flag_spec \
12665 compiler_needs_object \
12667 allow_undefined_flag \
12668 no_undefined_flag \
12669 hardcode_libdir_flag_spec \
12670 hardcode_libdir_separator \
12674 variables_saved_for_relink \
12676 library_names_spec \
12678 install_override_mode \
12682 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
12683 *[\\\\\\\`\\"\\\$]*)
12684 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
12687 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12692 # Double-quote double-evaled strings.
12693 for var in reload_cmds \
12694 old_postinstall_cmds \
12695 old_postuninstall_cmds \
12697 extract_expsyms_cmds \
12698 old_archive_from_new_cmds \
12699 old_archive_from_expsyms_cmds \
12701 archive_expsym_cmds \
12703 module_expsym_cmds \
12704 export_symbols_cmds \
12708 postuninstall_cmds \
12710 sys_lib_search_path_spec \
12711 sys_lib_dlsearch_path_spec; do
12712 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
12713 *[\\\\\\\`\\"\\\$]*)
12714 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
12717 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12722 ac_aux_dir='$ac_aux_dir'
12723 xsi_shell='$xsi_shell'
12724 lt_shell_append='$lt_shell_append'
12726 # See if we are running on zsh, and set the options which allow our
12727 # commands through without removal of \ escapes INIT.
12728 if test -n "\${ZSH_VERSION+set}" ; then
12729 setopt NO_GLOB_SUBST
12735 TIMESTAMP='$TIMESTAMP'
12745 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12747 # Handling of arguments.
12748 for ac_config_target in $ac_config_targets
12750 case $ac_config_target in
12751 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12752 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12753 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
12754 "libusb.pc") CONFIG_FILES="$CONFIG_FILES libusb.pc" ;;
12755 "libusb-config") CONFIG_FILES="$CONFIG_FILES libusb-config" ;;
12756 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12757 "libusb/Makefile") CONFIG_FILES="$CONFIG_FILES libusb/Makefile" ;;
12758 "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
12759 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
12761 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12766 # If the user did not use the arguments to specify the items to instantiate,
12767 # then the envvar interface is used. Set only those that are not.
12768 # We use the long form for the default assignment because of an extremely
12769 # bizarre bug on SunOS 4.1.3.
12770 if $ac_need_defaults; then
12771 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12772 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12773 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12776 # Have a temporary directory for convenience. Make it in the build tree
12777 # simply because there is no reason against having it here, and in addition,
12778 # creating and moving files from /tmp can sometimes cause problems.
12779 # Hook for its removal unless debugging.
12780 # Note that there is a small window in which the directory will not be cleaned:
12781 # after its creation but before its name has been assigned to `$tmp'.
12785 trap 'exit_status=$?
12786 : "${ac_tmp:=$tmp}"
12787 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12789 trap 'as_fn_exit 1' 1 2 13 15
12791 # Create a (secure) tmp directory for tmp files.
12794 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12798 tmp=./conf$$-$RANDOM
12799 (umask 077 && mkdir "$tmp")
12800 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12803 # Set up the scripts for CONFIG_FILES section.
12804 # No need to generate them if there are no CONFIG_FILES.
12805 # This happens for instance with `./config.status config.h'.
12806 if test -n "$CONFIG_FILES"; then
12809 ac_cr=`echo X | tr X '\015'`
12810 # On cygwin, bash can eat \r inside `` if the user requested igncr.
12811 # But we know of no other shell where ac_cr would be empty at this
12812 # point, so we can use a bashism as a fallback.
12813 if test "x$ac_cr" = x; then
12814 eval ac_cr=\$\'\\r\'
12816 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12817 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12820 ac_cs_awk_cr=$ac_cr
12823 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12828 echo "cat >conf$$subs.awk <<_ACEOF" &&
12829 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12831 } >conf$$subs.sh ||
12832 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12833 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12835 for ac_last_try in false false false false false :; do
12836 . ./conf$$subs.sh ||
12837 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12839 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12840 if test $ac_delim_n = $ac_delim_num; then
12842 elif $ac_last_try; then
12843 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12845 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12848 rm -f conf$$subs.sh
12850 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12851 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12855 s/^/S["/; s/!.*/"]=/
12865 s/\(.\{148\}\)..*/\1/
12867 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12872 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12879 s/\(.\{148\}\)..*/\1/
12881 s/["\\]/\\&/g; s/^/"/; s/$/"/
12885 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12890 ' <conf$$subs.awk | sed '
12895 ' >>$CONFIG_STATUS || ac_write_fail=1
12896 rm -f conf$$subs.awk
12897 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12899 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12900 for (key in S) S_is_set[key] = 1
12906 nfields = split(line, field, "@")
12908 len = length(field[1])
12909 for (i = 2; i < nfields; i++) {
12911 keylen = length(key)
12912 if (S_is_set[key]) {
12914 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12915 len += length(value) + length(field[++i])
12926 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12927 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12928 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12931 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12932 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12935 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12936 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12937 # trailing colons and then remove the whole line if VPATH becomes empty
12938 # (actually we leave an empty line to preserve line numbers).
12939 if test "x$srcdir" = x.; then
12940 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
12958 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12959 fi # test -n "$CONFIG_FILES"
12961 # Set up the scripts for CONFIG_HEADERS section.
12962 # No need to generate them if there are no CONFIG_HEADERS.
12963 # This happens for instance with `./config.status Makefile'.
12964 if test -n "$CONFIG_HEADERS"; then
12965 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
12969 # Transform confdefs.h into an awk script `defines.awk', embedded as
12970 # here-document in config.status, that substitutes the proper values into
12971 # config.h.in to produce config.h.
12973 # Create a delimiter string that does not exist in confdefs.h, to ease
12974 # handling of long lines.
12976 for ac_last_try in false false :; do
12977 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12978 if test -z "$ac_tt"; then
12980 elif $ac_last_try; then
12981 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12983 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12987 # For the awk script, D is an array of macro values keyed by name,
12988 # likewise P contains macro parameters if any. Preserve backslash
12989 # newline sequences.
12991 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12993 s/.\{148\}/&'"$ac_delim"'/g
12996 s/^[ ]*#[ ]*define[ ][ ]*/ /
13003 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13005 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13009 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13010 D["\1"]=" \3\\\\\\n"\\/p
13012 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13017 s/.\{148\}/&'"$ac_delim"'/g
13022 s/["\\]/\\&/g; s/^/"/; s/$/"/p
13025 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13027 ' <confdefs.h | sed '
13028 s/'"$ac_delim"'/"\\\
13029 "/g' >>$CONFIG_STATUS || ac_write_fail=1
13031 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13032 for (key in D) D_is_set[key] = 1
13035 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13037 split(line, arg, " ")
13038 if (arg[1] == "#") {
13042 defundef = substr(arg[1], 2)
13045 split(mac1, mac2, "(") #)
13047 prefix = substr(line, 1, index(line, defundef) - 1)
13048 if (D_is_set[macro]) {
13049 # Preserve the white space surrounding the "#".
13050 print prefix "define", macro P[macro] D[macro]
13053 # Replace #undef with comments. This is necessary, for example,
13054 # in the case of _POSIX_SOURCE, which is predefined and required
13055 # on some systems where configure will not decide to define it.
13056 if (defundef == "undef") {
13057 print "/*", prefix defundef, macro, "*/"
13065 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13066 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13067 fi # test -n "$CONFIG_HEADERS"
13070 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13075 :[FHLC]) ac_mode=$ac_tag; continue;;
13077 case $ac_mode$ac_tag in
13079 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
13080 :[FH]-) ac_tag=-:-;;
13081 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13098 -) ac_f="$ac_tmp/stdin";;
13099 *) # Look for the file first in the build tree, then in the source tree
13100 # (if the path is not absolute). The absolute path cannot be DOS-style,
13101 # because $ac_f cannot contain `:'.
13105 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13107 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13109 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13110 as_fn_append ac_file_inputs " '$ac_f'"
13113 # Let's still pretend it is `configure' which instantiates (i.e., don't
13114 # use $as_me), people would be surprised to read:
13115 # /* config.h. Generated by config.status. */
13116 configure_input='Generated from '`
13117 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13119 if test x"$ac_file" != x-; then
13120 configure_input="$ac_file. $configure_input"
13121 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13122 $as_echo "$as_me: creating $ac_file" >&6;}
13124 # Neutralize special characters interpreted by sed in replacement strings.
13125 case $configure_input in #(
13126 *\&* | *\|* | *\\* )
13127 ac_sed_conf_input=`$as_echo "$configure_input" |
13128 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13129 *) ac_sed_conf_input=$configure_input;;
13133 *:-:* | *:-) cat >"$ac_tmp/stdin" \
13134 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13139 ac_dir=`$as_dirname -- "$ac_file" ||
13140 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13141 X"$ac_file" : 'X\(//\)[^/]' \| \
13142 X"$ac_file" : 'X\(//\)$' \| \
13143 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13144 $as_echo X"$ac_file" |
13145 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13149 /^X\(\/\/\)[^/].*/{
13162 as_dir="$ac_dir"; as_fn_mkdir_p
13166 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13168 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13169 # A ".." for each directory in $ac_dir_suffix.
13170 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13171 case $ac_top_builddir_sub in
13172 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13173 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13176 ac_abs_top_builddir=$ac_pwd
13177 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13178 # for backward compatibility:
13179 ac_top_builddir=$ac_top_build_prefix
13182 .) # We are building in place.
13184 ac_top_srcdir=$ac_top_builddir_sub
13185 ac_abs_top_srcdir=$ac_pwd ;;
13186 [\\/]* | ?:[\\/]* ) # Absolute name.
13187 ac_srcdir=$srcdir$ac_dir_suffix;
13188 ac_top_srcdir=$srcdir
13189 ac_abs_top_srcdir=$srcdir ;;
13190 *) # Relative name.
13191 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13192 ac_top_srcdir=$ac_top_build_prefix$srcdir
13193 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13195 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13205 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13206 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13208 ac_MKDIR_P=$MKDIR_P
13210 [\\/$]* | ?:[\\/]* ) ;;
13211 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13215 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13216 # If the template does not know about datarootdir, expand it.
13217 # FIXME: This hack should be removed a few years after 2.60.
13218 ac_datarootdir_hack=; ac_datarootdir_seen=
13229 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13230 *datarootdir*) ac_datarootdir_seen=yes;;
13231 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13232 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13233 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13235 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13236 ac_datarootdir_hack='
13237 s&@datadir@&$datadir&g
13238 s&@docdir@&$docdir&g
13239 s&@infodir@&$infodir&g
13240 s&@localedir@&$localedir&g
13241 s&@mandir@&$mandir&g
13242 s&\\\${datarootdir}&$datarootdir&g' ;;
13246 # Neutralize VPATH when `$srcdir' = `.'.
13247 # Shell code in configure.ac might set extrasub.
13248 # FIXME: do we really want to maintain this feature?
13249 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13250 ac_sed_extra="$ac_vpsub
13253 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13255 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13256 s|@configure_input@|$ac_sed_conf_input|;t t
13257 s&@top_builddir@&$ac_top_builddir_sub&;t t
13258 s&@top_build_prefix@&$ac_top_build_prefix&;t t
13259 s&@srcdir@&$ac_srcdir&;t t
13260 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13261 s&@top_srcdir@&$ac_top_srcdir&;t t
13262 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13263 s&@builddir@&$ac_builddir&;t t
13264 s&@abs_builddir@&$ac_abs_builddir&;t t
13265 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13266 s&@INSTALL@&$ac_INSTALL&;t t
13267 s&@MKDIR_P@&$ac_MKDIR_P&;t t
13268 $ac_datarootdir_hack
13270 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13271 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13273 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13274 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13275 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
13276 "$ac_tmp/out"`; test -z "$ac_out"; } &&
13277 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13278 which seems to be undefined. Please make sure it is defined" >&5
13279 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13280 which seems to be undefined. Please make sure it is defined" >&2;}
13282 rm -f "$ac_tmp/stdin"
13284 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13285 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
13287 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13293 if test x"$ac_file" != x-; then
13295 $as_echo "/* $configure_input */" \
13296 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13297 } >"$ac_tmp/config.h" \
13298 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13299 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
13300 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13301 $as_echo "$as_me: $ac_file is unchanged" >&6;}
13304 mv "$ac_tmp/config.h" "$ac_file" \
13305 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13308 $as_echo "/* $configure_input */" \
13309 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13310 || as_fn_error $? "could not create -" "$LINENO" 5
13312 # Compute "$ac_file"'s index in $config_headers.
13315 for _am_header in $config_headers :; do
13316 case $_am_header in
13317 $_am_arg | $_am_arg:* )
13320 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13323 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13324 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13325 X"$_am_arg" : 'X\(//\)[^/]' \| \
13326 X"$_am_arg" : 'X\(//\)$' \| \
13327 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13328 $as_echo X"$_am_arg" |
13329 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13333 /^X\(\/\/\)[^/].*/{
13345 s/.*/./; q'`/stamp-h$_am_stamp_count
13348 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13349 $as_echo "$as_me: executing $ac_file commands" >&6;}
13354 case $ac_file$ac_mode in
13355 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13356 # Older Autoconf quotes --file arguments for eval, but not when files
13357 # are listed without --file. Let's play safe and only enable the eval
13358 # if we detect the quoting.
13359 case $CONFIG_FILES in
13360 *\'*) eval set x "$CONFIG_FILES" ;;
13361 *) set x $CONFIG_FILES ;;
13366 # Strip MF so we end up with the name of the file.
13367 mf=`echo "$mf" | sed -e 's/:.*$//'`
13368 # Check whether this is an Automake generated Makefile or not.
13369 # We used to match only the files named 'Makefile.in', but
13370 # some people rename them; so instead we look at the file content.
13371 # Grep'ing the first line is not enough: some people post-process
13372 # each Makefile.in and add a new line on top of each file to say so.
13373 # Grep'ing the whole file is not good either: AIX grep has a line
13374 # limit of 2048, but all sed's we know have understand at least 4000.
13375 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
13376 dirpart=`$as_dirname -- "$mf" ||
13377 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13378 X"$mf" : 'X\(//\)[^/]' \| \
13379 X"$mf" : 'X\(//\)$' \| \
13380 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
13382 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13386 /^X\(\/\/\)[^/].*/{
13402 # Extract the definition of DEPDIR, am__include, and am__quote
13403 # from the Makefile without running 'make'.
13404 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13405 test -z "$DEPDIR" && continue
13406 am__include=`sed -n 's/^am__include = //p' < "$mf"`
13407 test -z "am__include" && continue
13408 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13409 # Find all dependency output files, they are included files with
13410 # $(DEPDIR) in their names. We invoke sed twice because it is the
13411 # simplest approach to changing $(DEPDIR) to its actual value in the
13413 for file in `sed -n "
13414 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13415 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
13416 # Make sure the directory exists.
13417 test -f "$dirpart/$file" && continue
13418 fdir=`$as_dirname -- "$file" ||
13419 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13420 X"$file" : 'X\(//\)[^/]' \| \
13421 X"$file" : 'X\(//\)$' \| \
13422 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
13423 $as_echo X"$file" |
13424 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13428 /^X\(\/\/\)[^/].*/{
13441 as_dir=$dirpart/$fdir; as_fn_mkdir_p
13442 # echo "creating $dirpart/$file"
13443 echo '# dummy' > "$dirpart/$file"
13450 # See if we are running on zsh, and set the options which allow our
13451 # commands through without removal of \ escapes.
13452 if test -n "${ZSH_VERSION+set}" ; then
13453 setopt NO_GLOB_SUBST
13456 cfgfile="${ofile}T"
13457 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13460 cat <<_LT_EOF >> "$cfgfile"
13463 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13464 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
13465 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13466 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
13468 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
13469 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
13471 # Written by Gordon Matzigkeit, 1996
13473 # This file is part of GNU Libtool.
13475 # GNU Libtool is free software; you can redistribute it and/or
13476 # modify it under the terms of the GNU General Public License as
13477 # published by the Free Software Foundation; either version 2 of
13478 # the License, or (at your option) any later version.
13480 # As a special exception to the GNU General Public License,
13481 # if you distribute this file as part of a program or library that
13482 # is built using GNU Libtool, you may include this file under the
13483 # same distribution terms that you use for the rest of that program.
13485 # GNU Libtool is distributed in the hope that it will be useful,
13486 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13487 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13488 # GNU General Public License for more details.
13490 # You should have received a copy of the GNU General Public License
13491 # along with GNU Libtool; see the file COPYING. If not, a copy
13492 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
13493 # obtained by writing to the Free Software Foundation, Inc.,
13494 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
13497 # The names of the tagged configurations supported by this script.
13500 # ### BEGIN LIBTOOL CONFIG
13502 # Which release of libtool.m4 was used?
13503 macro_version=$macro_version
13504 macro_revision=$macro_revision
13506 # Whether or not to build shared libraries.
13507 build_libtool_libs=$enable_shared
13509 # Whether or not to build static libraries.
13510 build_old_libs=$enable_static
13512 # What type of objects to build.
13515 # Whether or not to optimize for fast installation.
13516 fast_install=$enable_fast_install
13518 # Shell to use when invoking shell scripts.
13521 # An echo program that protects backslashes.
13524 # The PATH separator for the build system.
13525 PATH_SEPARATOR=$lt_PATH_SEPARATOR
13528 host_alias=$host_alias
13532 # The build system.
13533 build_alias=$build_alias
13537 # A sed program that does not truncate output.
13540 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
13541 Xsed="\$SED -e 1s/^X//"
13543 # A grep program that handles long lines.
13549 # A literal string matcher.
13552 # A BSD- or MS-compatible name lister.
13555 # Whether we need soft or hard links.
13558 # What is the maximum length of a command?
13559 max_cmd_len=$max_cmd_len
13561 # Object file suffix (normally "o").
13564 # Executable file suffix (normally "").
13567 # whether the shell understands "unset".
13570 # turn spaces into newlines.
13573 # turn newlines into spaces.
13576 # convert \$build file names to \$host format.
13577 to_host_file_cmd=$lt_cv_to_host_file_cmd
13579 # convert \$build files to toolchain format.
13580 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
13582 # An object symbol dumper.
13583 OBJDUMP=$lt_OBJDUMP
13585 # Method to check whether dependent libraries are shared objects.
13586 deplibs_check_method=$lt_deplibs_check_method
13588 # Command to use when deplibs_check_method = "file_magic".
13589 file_magic_cmd=$lt_file_magic_cmd
13591 # How to find potential files when deplibs_check_method = "file_magic".
13592 file_magic_glob=$lt_file_magic_glob
13594 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
13595 want_nocaseglob=$lt_want_nocaseglob
13597 # DLL creation program.
13598 DLLTOOL=$lt_DLLTOOL
13600 # Command to associate shared and link libraries.
13601 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
13606 # Flags to create an archive.
13607 AR_FLAGS=$lt_AR_FLAGS
13609 # How to feed a file listing to the archiver.
13610 archiver_list_spec=$lt_archiver_list_spec
13612 # A symbol stripping program.
13615 # Commands used to install an old-style archive.
13617 old_postinstall_cmds=$lt_old_postinstall_cmds
13618 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13620 # Whether to use a lock for old archive extraction.
13621 lock_old_archive_extraction=$lock_old_archive_extraction
13626 # LTCC compiler flags.
13627 LTCFLAGS=$lt_CFLAGS
13629 # Take the output of nm and produce a listing of raw symbols and C names.
13630 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13632 # Transform the output of nm in a proper C declaration.
13633 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13635 # Transform the output of nm in a C name address pair.
13636 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13638 # Transform the output of nm in a C name address pair when lib prefix is needed.
13639 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
13641 # Specify filename containing input files for \$NM.
13642 nm_file_list_spec=$lt_nm_file_list_spec
13644 # The root where to search for dependent libraries,and in which our libraries should be installed.
13645 lt_sysroot=$lt_sysroot
13647 # The name of the directory that contains temporary libtool files.
13650 # Used to examine libraries when file_magic_cmd begins with "file".
13651 MAGIC_CMD=$MAGIC_CMD
13653 # Must we lock files when doing compilation?
13654 need_locks=$lt_need_locks
13657 MANIFEST_TOOL=$lt_MANIFEST_TOOL
13659 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
13660 DSYMUTIL=$lt_DSYMUTIL
13662 # Tool to change global to local symbols on Mac OS X.
13665 # Tool to manipulate fat objects and archives on Mac OS X.
13668 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
13671 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
13672 OTOOL64=$lt_OTOOL64
13674 # Old archive suffix (normally "a").
13677 # Shared library suffix (normally ".so").
13678 shrext_cmds=$lt_shrext_cmds
13680 # The commands to extract the exported symbol list from a shared archive.
13681 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13683 # Variables whose values should be saved in libtool wrapper scripts and
13684 # restored at link time.
13685 variables_saved_for_relink=$lt_variables_saved_for_relink
13687 # Do we need the "lib" prefix for modules?
13688 need_lib_prefix=$need_lib_prefix
13690 # Do we need a version for libraries?
13691 need_version=$need_version
13693 # Library versioning type.
13694 version_type=$version_type
13696 # Shared library runtime path variable.
13697 runpath_var=$runpath_var
13699 # Shared library path variable.
13700 shlibpath_var=$shlibpath_var
13702 # Is shlibpath searched before the hard-coded library search path?
13703 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13705 # Format of library name prefix.
13706 libname_spec=$lt_libname_spec
13708 # List of archive names. First name is the real one, the rest are links.
13709 # The last name is the one that the linker finds with -lNAME
13710 library_names_spec=$lt_library_names_spec
13712 # The coded name of the library, if different from the real name.
13713 soname_spec=$lt_soname_spec
13715 # Permission mode override for installation of shared libraries.
13716 install_override_mode=$lt_install_override_mode
13718 # Command to use after installation of a shared archive.
13719 postinstall_cmds=$lt_postinstall_cmds
13721 # Command to use after uninstallation of a shared archive.
13722 postuninstall_cmds=$lt_postuninstall_cmds
13724 # Commands used to finish a libtool library installation in a directory.
13725 finish_cmds=$lt_finish_cmds
13727 # As "finish_cmds", except a single script fragment to be evaled but
13729 finish_eval=$lt_finish_eval
13731 # Whether we should hardcode library paths into libraries.
13732 hardcode_into_libs=$hardcode_into_libs
13734 # Compile-time system search path for libraries.
13735 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13737 # Run-time system search path for libraries.
13738 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13740 # Whether dlopen is supported.
13741 dlopen_support=$enable_dlopen
13743 # Whether dlopen of programs is supported.
13744 dlopen_self=$enable_dlopen_self
13746 # Whether dlopen of statically linked programs is supported.
13747 dlopen_self_static=$enable_dlopen_self_static
13749 # Commands to strip libraries.
13750 old_striplib=$lt_old_striplib
13751 striplib=$lt_striplib
13754 # The linker used to build libraries.
13757 # How to create reloadable object files.
13758 reload_flag=$lt_reload_flag
13759 reload_cmds=$lt_reload_cmds
13761 # Commands used to build an old-style archive.
13762 old_archive_cmds=$lt_old_archive_cmds
13764 # A language specific compiler.
13767 # Is the compiler the GNU compiler?
13770 # Compiler flag to turn off builtin functions.
13771 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13773 # Additional compiler flags for building library objects.
13774 pic_flag=$lt_lt_prog_compiler_pic
13776 # How to pass a linker flag through the compiler.
13777 wl=$lt_lt_prog_compiler_wl
13779 # Compiler flag to prevent dynamic linking.
13780 link_static_flag=$lt_lt_prog_compiler_static
13782 # Does compiler simultaneously support -c and -o options?
13783 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13785 # Whether or not to add -lc for building shared libraries.
13786 build_libtool_need_lc=$archive_cmds_need_lc
13788 # Whether or not to disallow shared libs when runtime libs are static.
13789 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13791 # Compiler flag to allow reflexive dlopens.
13792 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13794 # Compiler flag to generate shared objects directly from archives.
13795 whole_archive_flag_spec=$lt_whole_archive_flag_spec
13797 # Whether the compiler copes with passing no objects directly.
13798 compiler_needs_object=$lt_compiler_needs_object
13800 # Create an old-style archive from a shared archive.
13801 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13803 # Create a temporary old-style archive to link instead of a shared archive.
13804 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13806 # Commands used to build a shared archive.
13807 archive_cmds=$lt_archive_cmds
13808 archive_expsym_cmds=$lt_archive_expsym_cmds
13810 # Commands used to build a loadable module if different from building
13811 # a shared archive.
13812 module_cmds=$lt_module_cmds
13813 module_expsym_cmds=$lt_module_expsym_cmds
13815 # Whether we are building with GNU ld or not.
13816 with_gnu_ld=$lt_with_gnu_ld
13818 # Flag that allows shared libraries with undefined symbols to be built.
13819 allow_undefined_flag=$lt_allow_undefined_flag
13821 # Flag that enforces no undefined symbols.
13822 no_undefined_flag=$lt_no_undefined_flag
13824 # Flag to hardcode \$libdir into a binary during linking.
13825 # This must work even if \$libdir does not exist
13826 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13828 # Whether we need a single "-rpath" flag with a separated argument.
13829 hardcode_libdir_separator=$lt_hardcode_libdir_separator
13831 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13832 # DIR into the resulting binary.
13833 hardcode_direct=$hardcode_direct
13835 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13836 # DIR into the resulting binary and the resulting library dependency is
13837 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
13838 # library is relocated.
13839 hardcode_direct_absolute=$hardcode_direct_absolute
13841 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13842 # into the resulting binary.
13843 hardcode_minus_L=$hardcode_minus_L
13845 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13846 # into the resulting binary.
13847 hardcode_shlibpath_var=$hardcode_shlibpath_var
13849 # Set to "yes" if building a shared library automatically hardcodes DIR
13850 # into the library and all subsequent libraries and executables linked
13852 hardcode_automatic=$hardcode_automatic
13854 # Set to yes if linker adds runtime paths of dependent libraries
13855 # to runtime path list.
13856 inherit_rpath=$inherit_rpath
13858 # Whether libtool must link a program against all its dependency libraries.
13859 link_all_deplibs=$link_all_deplibs
13861 # Set to "yes" if exported symbols are required.
13862 always_export_symbols=$always_export_symbols
13864 # The commands to list exported symbols.
13865 export_symbols_cmds=$lt_export_symbols_cmds
13867 # Symbols that should not be listed in the preloaded symbols.
13868 exclude_expsyms=$lt_exclude_expsyms
13870 # Symbols that must always be exported.
13871 include_expsyms=$lt_include_expsyms
13873 # Commands necessary for linking programs (against libraries) with templates.
13874 prelink_cmds=$lt_prelink_cmds
13876 # Commands necessary for finishing linking programs.
13877 postlink_cmds=$lt_postlink_cmds
13879 # Specify filename containing input files.
13880 file_list_spec=$lt_file_list_spec
13882 # How to hardcode a shared library path into an executable.
13883 hardcode_action=$hardcode_action
13885 # ### END LIBTOOL CONFIG
13891 cat <<\_LT_EOF >> "$cfgfile"
13892 # AIX sometimes has problems with the GCC collect2 program. For some
13893 # reason, if we set the COLLECT_NAMES environment variable, the problems
13894 # vanish in a puff of smoke.
13895 if test "X${COLLECT_NAMES+set}" != Xset; then
13897 export COLLECT_NAMES
13904 ltmain="$ac_aux_dir/ltmain.sh"
13907 # We use sed instead of cat because bash on DJGPP gets confused if
13908 # if finds mixed CR/LF and LF-only lines. Since sed operates in
13909 # text mode, it properly converts lines to CR/LF. This bash problem
13910 # is reportedly fixed, but why not run on old versions too?
13911 sed '$q' "$ltmain" >> "$cfgfile" \
13912 || (rm -f "$cfgfile"; exit 1)
13914 if test x"$xsi_shell" = xyes; then
13915 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
13919 \ */*) func_dirname_result="${1%/*}${2}" ;;\
13920 \ * ) func_dirname_result="${3}" ;;\
13922 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
13923 && mv -f "$cfgfile.tmp" "$cfgfile" \
13924 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13925 test 0 -eq $? || _lt_function_replace_fail=:
13928 sed -e '/^func_basename ()$/,/^} # func_basename /c\
13931 \ func_basename_result="${1##*/}"\
13932 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
13933 && mv -f "$cfgfile.tmp" "$cfgfile" \
13934 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13935 test 0 -eq $? || _lt_function_replace_fail=:
13938 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
13939 func_dirname_and_basename ()\
13942 \ */*) func_dirname_result="${1%/*}${2}" ;;\
13943 \ * ) func_dirname_result="${3}" ;;\
13945 \ func_basename_result="${1##*/}"\
13946 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
13947 && mv -f "$cfgfile.tmp" "$cfgfile" \
13948 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13949 test 0 -eq $? || _lt_function_replace_fail=:
13952 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
13955 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
13956 \ # positional parameters, so assign one to ordinary parameter first.\
13957 \ func_stripname_result=${3}\
13958 \ func_stripname_result=${func_stripname_result#"${1}"}\
13959 \ func_stripname_result=${func_stripname_result%"${2}"}\
13960 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
13961 && mv -f "$cfgfile.tmp" "$cfgfile" \
13962 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13963 test 0 -eq $? || _lt_function_replace_fail=:
13966 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
13967 func_split_long_opt ()\
13969 \ func_split_long_opt_name=${1%%=*}\
13970 \ func_split_long_opt_arg=${1#*=}\
13971 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
13972 && mv -f "$cfgfile.tmp" "$cfgfile" \
13973 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13974 test 0 -eq $? || _lt_function_replace_fail=:
13977 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
13978 func_split_short_opt ()\
13980 \ func_split_short_opt_arg=${1#??}\
13981 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
13982 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
13983 && mv -f "$cfgfile.tmp" "$cfgfile" \
13984 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13985 test 0 -eq $? || _lt_function_replace_fail=:
13988 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
13992 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
13993 \ *) func_lo2o_result=${1} ;;\
13995 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
13996 && mv -f "$cfgfile.tmp" "$cfgfile" \
13997 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13998 test 0 -eq $? || _lt_function_replace_fail=:
14001 sed -e '/^func_xform ()$/,/^} # func_xform /c\
14004 func_xform_result=${1%.*}.lo\
14005 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
14006 && mv -f "$cfgfile.tmp" "$cfgfile" \
14007 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14008 test 0 -eq $? || _lt_function_replace_fail=:
14011 sed -e '/^func_arith ()$/,/^} # func_arith /c\
14014 func_arith_result=$(( $* ))\
14015 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
14016 && mv -f "$cfgfile.tmp" "$cfgfile" \
14017 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14018 test 0 -eq $? || _lt_function_replace_fail=:
14021 sed -e '/^func_len ()$/,/^} # func_len /c\
14024 func_len_result=${#1}\
14025 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
14026 && mv -f "$cfgfile.tmp" "$cfgfile" \
14027 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14028 test 0 -eq $? || _lt_function_replace_fail=:
14032 if test x"$lt_shell_append" = xyes; then
14033 sed -e '/^func_append ()$/,/^} # func_append /c\
14036 eval "${1}+=\\${2}"\
14037 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
14038 && mv -f "$cfgfile.tmp" "$cfgfile" \
14039 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14040 test 0 -eq $? || _lt_function_replace_fail=:
14043 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
14044 func_append_quoted ()\
14046 \ func_quote_for_eval "${2}"\
14047 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
14048 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
14049 && mv -f "$cfgfile.tmp" "$cfgfile" \
14050 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14051 test 0 -eq $? || _lt_function_replace_fail=:
14054 # Save a `func_append' function call where possible by direct use of '+='
14055 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
14056 && mv -f "$cfgfile.tmp" "$cfgfile" \
14057 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14058 test 0 -eq $? || _lt_function_replace_fail=:
14060 # Save a `func_append' function call even when '+=' is not available
14061 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
14062 && mv -f "$cfgfile.tmp" "$cfgfile" \
14063 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14064 test 0 -eq $? || _lt_function_replace_fail=:
14067 if test x"$_lt_function_replace_fail" = x":"; then
14068 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
14069 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
14073 mv -f "$cfgfile" "$ofile" ||
14074 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14078 "default":C) chmod +x libusb-config ;;
14086 ac_clean_files=$ac_clean_files_save
14088 test $ac_write_fail = 0 ||
14089 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
14092 # configure is writing to config.log, and then calls config.status.
14093 # config.status does its own redirection, appending to config.log.
14094 # Unfortunately, on DOS this fails, as config.log is still kept open
14095 # by configure, so config.status won't be able to write to it; its
14096 # output is simply discarded. So we exec the FD to /dev/null,
14097 # effectively closing config.log, so it can be properly (re)opened and
14098 # appended to by config.status. When coming back to configure, we
14099 # need to make the FD available again.
14100 if test "$no_create" != yes; then
14102 ac_config_status_args=
14103 test "$silent" = yes &&
14104 ac_config_status_args="$ac_config_status_args --quiet"
14106 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14108 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14109 # would make configure fail if this is the last instruction.
14110 $ac_cs_success || as_fn_exit 1
14112 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14113 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14114 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}