2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for libusb-compat 0.1.3.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be more Bourne compatible
14 DUALCASE
=1; export DUALCASE
# for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
23 case `(set -o) 2>/dev/null` in
24 *posix
*) set -o posix
;;
33 # Avoid depending upon Character Ranges.
34 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits
='0123456789'
38 as_cr_alnum
=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
45 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
53 # Support unset when possible.
54 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
70 # Find who we are. Look in the path if we contain no directory separator.
72 *[\\/]* ) as_myself
=$0 ;;
73 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
77 test -z "$as_dir" && as_dir
=.
78 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x
; then
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var
in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C
; export $as_var
111 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
115 # Required to use basename.
116 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
123 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
130 # Name of the executable.
131 as_me
=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
154 if test "x$CONFIG_SHELL" = x
; then
155 if (eval ":") 2>/dev
/null
; then
161 if test $as_have_required = yes && (eval ":
171 as_func_ret_success () {
174 as_func_ret_failure () {
179 if as_func_success; then
183 echo as_func_success failed.
186 if as_func_failure; then
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev
/null
; then
221 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
222 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
225 test -z "$as_dir" && as_dir
=.
228 for as_base
in sh bash ksh sh5
; do
229 as_candidate_shells
="$as_candidate_shells $as_dir/$as_base"
236 for as_shell
in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev
/null
<<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
248 case `(set -o) 2>/dev/null` in
249 *posix
*) set -o posix
;;
258 CONFIG_SHELL
=$as_shell
260 if { "$as_shell" 2> /dev
/null
<<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
269 case `(set -o) 2>/dev/null` in
270 *posix
*) set -o posix
;;
286 as_func_ret_success
() {
289 as_func_ret_failure
() {
294 if as_func_success
; then
298 echo as_func_success failed.
301 if as_func_failure
; then
303 echo as_func_failure succeeded.
306 if as_func_ret_success
; then
310 echo as_func_ret_success failed.
313 if as_func_ret_failure
; then
315 echo as_func_ret_failure succeeded.
318 if ( set x
; as_func_ret_success y
&& test x
= "$1" ); then
322 echo positional parameters were not saved.
325 test $exitcode = 0) ||
{ (exit 1); exit 1; }
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") ||
{ (exit 1); exit 1; }
342 if test "x$CONFIG_SHELL" != x
; then
343 for as_var
in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351 if test $as_have_required = no
; then
352 echo This
script requires a shell
more modern than all the
353 echo shells that I found on your system. Please
install a
354 echo modern shell
, or manually run the
script under such a
355 echo shell
if you
do have one.
356 { (exit 1); exit 1; }
366 (eval "as_func_return () {
375 as_func_ret_success () {
378 as_func_ret_failure () {
383 if as_func_success; then
387 echo as_func_success failed.
390 if as_func_failure; then
392 echo as_func_failure succeeded.
395 if as_func_ret_success; then
399 echo as_func_ret_success failed.
402 if as_func_ret_failure; then
404 echo as_func_ret_failure succeeded.
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
411 echo positional parameters were not saved.
414 test \$exitcode = 0") ||
{
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system
,
417 echo including any error possibly output before this
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
453 chmod +x
"$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
461 # Exit status is that of the last command.
466 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
472 ECHO_C
= ECHO_N
= ECHO_T
=
476 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
483 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
490 rm -f conf$$ conf$$.exe conf$$.
file
491 if test -d conf$$.dir
; then
492 rm -f conf$$.dir
/conf$$.
file
498 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
506 elif ln conf$$.
file conf$$
2>/dev
/null
; then
511 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
512 rmdir conf$$.dir
2>/dev
/null
514 if mkdir
-p .
2>/dev
/null
; then
517 test -d .
/-p && rmdir .
/-p
521 if test -x / >/dev
/null
2>&1; then
524 if ls -dL / >/dev
/null
2>&1; then
531 if test -d "$1"; then
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
542 as_executable_p
=$as_test_x
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
553 # Check that we are running under the correct shell.
554 SHELL
=${CONFIG_SHELL-/bin/sh}
558 # Remove one level of quotation (which was required for Make).
559 ECHO
=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
564 if test "X$1" = X--no-reexec
; then
565 # Discard the --no-reexec flag, and continue.
567 elif test "X$1" = X--fallback-echo
; then
568 # Avoid inline document here, it may be left over
570 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
571 # Yippee, $ECHO works!
574 # Restart under the correct shell.
575 exec $SHELL "$0" --no-reexec ${1+"$@"}
578 if test "X$1" = X--fallback-echo
; then
579 # used as fallback echo
587 # The HP-UX ksh and POSIX shell print the target directory to stdout
589 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
591 if test -z "$lt_ECHO"; then
592 if test "X${echo_test_string+set}" != Xset
; then
593 # find a string as large as possible, as long as the shell can cope with it
594 for cmd
in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
595 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
596 if { echo_test_string
=`eval $cmd`; } 2>/dev
/null
&&
597 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev
/null
604 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
605 echo_testing_string
=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
606 test "X$echo_testing_string" = "X$echo_test_string"; then
609 # The Solaris, AIX, and Digital Unix default echo programs unquote
610 # backslashes. This makes it impossible to quote backslashes using
611 # echo "$something" | sed 's/\\/\\\\/g'
613 # So, first we look for a working echo in the user's PATH.
615 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
616 for dir
in $PATH /usr
/ucb
; do
618 if (test -f $dir/echo ||
test -f $dir/echo$ac_exeext) &&
619 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
620 echo_testing_string
=`($dir/echo "$echo_test_string") 2>/dev/null` &&
621 test "X$echo_testing_string" = "X$echo_test_string"; then
628 if test "X$ECHO" = Xecho
; then
629 # We didn't find a better echo, so look for alternatives.
630 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
631 echo_testing_string
=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
632 test "X$echo_testing_string" = "X$echo_test_string"; then
633 # This shell has a builtin print -r that does the trick.
635 elif { test -f /bin
/ksh ||
test -f /bin
/ksh
$ac_exeext; } &&
636 test "X$CONFIG_SHELL" != X
/bin
/ksh
; then
637 # If we have ksh, try running configure again with it.
638 ORIGINAL_CONFIG_SHELL
=${CONFIG_SHELL-/bin/sh}
639 export ORIGINAL_CONFIG_SHELL
640 CONFIG_SHELL
=/bin
/ksh
642 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
646 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
647 echo_testing_string
=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
648 test "X$echo_testing_string" = "X$echo_test_string"; then
651 elif echo_testing_string
=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
652 test "X$echo_testing_string" = 'X\t' &&
653 echo_testing_string
=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
654 test "X$echo_testing_string" = "X$echo_test_string"; then
655 CONFIG_SHELL
=$ORIGINAL_CONFIG_SHELL
657 SHELL
="$CONFIG_SHELL"
659 ECHO
="$CONFIG_SHELL $0 --fallback-echo"
660 elif echo_testing_string
=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
661 test "X$echo_testing_string" = 'X\t' &&
662 echo_testing_string
=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
663 test "X$echo_testing_string" = "X$echo_test_string"; then
664 ECHO
="$CONFIG_SHELL $0 --fallback-echo"
666 # maybe with a smaller string...
669 for cmd
in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
670 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev
/null
677 if test "$prev" != 'sed 50q "$0"'; then
678 echo_test_string
=`eval $prev`
679 export echo_test_string
680 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
682 # Oops. We lost completely, so just stick with echo.
691 # Copy echo and quote the copy suitably for passing to libtool from
692 # the Makefile, instead of quoting the original, which is used later.
694 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
695 lt_ECHO
="$CONFIG_SHELL \\\$\$0 --fallback-echo"
701 exec 7<&0 </dev
/null
6>&1
704 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
705 # so uname gets run too.
706 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
711 ac_default_prefix
=/usr
/local
713 ac_config_libobj_dir
=.
719 SHELL
=${CONFIG_SHELL-/bin/sh}
721 # Identity of this package.
722 PACKAGE_NAME
='libusb-compat'
723 PACKAGE_TARNAME
='libusb-compat'
724 PACKAGE_VERSION
='0.1.3'
725 PACKAGE_STRING
='libusb-compat 0.1.3'
728 ac_unique_file
="libusb/core.c"
729 # Factoring default headers for most tests.
730 ac_includes_default
="\
732 #ifdef HAVE_SYS_TYPES_H
733 # include <sys/types.h>
735 #ifdef HAVE_SYS_STAT_H
736 # include <sys/stat.h>
742 # ifdef HAVE_STDLIB_H
747 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
752 #ifdef HAVE_STRINGS_H
753 # include <strings.h>
755 #ifdef HAVE_INTTYPES_H
756 # include <inttypes.h>
774 program_transform_name
816 INSTALL_STRIP_PROGRAM
881 ac_precious_vars
='build_alias
895 # Initialize some variables set by options.
897 ac_init_version
=false
898 # The variables have the same names as the options, with
899 # dashes changed to underlines.
907 program_transform_name
=s
,x
,x
,
915 # Installation directory options.
916 # These are left unexpanded so users can "make install exec_prefix=/foo"
917 # and all the variables that are supposed to be based on exec_prefix
918 # by default will actually change.
919 # Use braces instead of parens because sh, perl, etc. also accept them.
920 # (The list follows the same order as the GNU Coding Standards.)
921 bindir
='${exec_prefix}/bin'
922 sbindir
='${exec_prefix}/sbin'
923 libexecdir
='${exec_prefix}/libexec'
924 datarootdir
='${prefix}/share'
925 datadir
='${datarootdir}'
926 sysconfdir
='${prefix}/etc'
927 sharedstatedir
='${prefix}/com'
928 localstatedir
='${prefix}/var'
929 includedir
='${prefix}/include'
930 oldincludedir
='/usr/include'
931 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
932 infodir
='${datarootdir}/info'
937 libdir
='${exec_prefix}/lib'
938 localedir
='${datarootdir}/locale'
939 mandir
='${datarootdir}/man'
945 # If the previous option needs an argument, assign it.
946 if test -n "$ac_prev"; then
947 eval $ac_prev=\
$ac_option
953 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
957 # Accept the important Cygnus configure options, so we can diagnose typos.
959 case $ac_dashdash$ac_option in
963 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
965 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
968 -build |
--build |
--buil |
--bui |
--bu)
969 ac_prev
=build_alias
;;
970 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
971 build_alias
=$ac_optarg ;;
973 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
974 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
975 ac_prev
=cache_file
;;
976 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
977 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
978 cache_file
=$ac_optarg ;;
981 cache_file
=config.cache
;;
983 -datadir |
--datadir |
--datadi |
--datad)
985 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
986 datadir
=$ac_optarg ;;
988 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
989 |
--dataroo |
--dataro |
--datar)
990 ac_prev
=datarootdir
;;
991 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
992 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
993 datarootdir
=$ac_optarg ;;
995 -disable-* |
--disable-*)
996 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
997 # Reject names that are not valid shell variable names.
998 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
999 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1000 { (exit 1); exit 1; }; }
1001 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
1002 eval enable_
$ac_feature=no
;;
1004 -docdir |
--docdir |
--docdi |
--doc |
--do)
1006 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1007 docdir
=$ac_optarg ;;
1009 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1011 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1012 dvidir
=$ac_optarg ;;
1014 -enable-* |
--enable-*)
1015 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1016 # Reject names that are not valid shell variable names.
1017 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1018 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1019 { (exit 1); exit 1; }; }
1020 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
1021 eval enable_
$ac_feature=\
$ac_optarg ;;
1023 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1024 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1025 |
--exec |
--exe |
--ex)
1026 ac_prev
=exec_prefix
;;
1027 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1028 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1029 |
--exec=* |
--exe=* |
--ex=*)
1030 exec_prefix
=$ac_optarg ;;
1032 -gas |
--gas |
--ga |
--g)
1033 # Obsolete; use --with-gas.
1036 -help |
--help |
--hel |
--he |
-h)
1037 ac_init_help
=long
;;
1038 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1039 ac_init_help
=recursive
;;
1040 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1041 ac_init_help
=short
;;
1043 -host |
--host |
--hos |
--ho)
1044 ac_prev
=host_alias
;;
1045 -host=* |
--host=* |
--hos=* |
--ho=*)
1046 host_alias
=$ac_optarg ;;
1048 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1050 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1052 htmldir
=$ac_optarg ;;
1054 -includedir |
--includedir |
--includedi |
--included |
--include \
1055 |
--includ |
--inclu |
--incl |
--inc)
1056 ac_prev
=includedir
;;
1057 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1058 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1059 includedir
=$ac_optarg ;;
1061 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1063 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1064 infodir
=$ac_optarg ;;
1066 -libdir |
--libdir |
--libdi |
--libd)
1068 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1069 libdir
=$ac_optarg ;;
1071 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1072 |
--libexe |
--libex |
--libe)
1073 ac_prev
=libexecdir
;;
1074 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1075 |
--libexe=* |
--libex=* |
--libe=*)
1076 libexecdir
=$ac_optarg ;;
1078 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1079 ac_prev
=localedir
;;
1080 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1081 localedir
=$ac_optarg ;;
1083 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1084 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1085 ac_prev
=localstatedir
;;
1086 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1087 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1088 localstatedir
=$ac_optarg ;;
1090 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1092 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1093 mandir
=$ac_optarg ;;
1095 -nfp |
--nfp |
--nf)
1096 # Obsolete; use --without-fp.
1099 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1100 |
--no-cr |
--no-c |
-n)
1103 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1104 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1107 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1108 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1109 |
--oldin |
--oldi |
--old |
--ol |
--o)
1110 ac_prev
=oldincludedir
;;
1111 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1112 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1113 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1114 oldincludedir
=$ac_optarg ;;
1116 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1118 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1119 prefix
=$ac_optarg ;;
1121 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1122 |
--program-pre |
--program-pr |
--program-p)
1123 ac_prev
=program_prefix
;;
1124 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1125 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1126 program_prefix
=$ac_optarg ;;
1128 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1129 |
--program-suf |
--program-su |
--program-s)
1130 ac_prev
=program_suffix
;;
1131 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1132 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1133 program_suffix
=$ac_optarg ;;
1135 -program-transform-name |
--program-transform-name \
1136 |
--program-transform-nam |
--program-transform-na \
1137 |
--program-transform-n |
--program-transform- \
1138 |
--program-transform |
--program-transfor \
1139 |
--program-transfo |
--program-transf \
1140 |
--program-trans |
--program-tran \
1141 |
--progr-tra |
--program-tr |
--program-t)
1142 ac_prev
=program_transform_name
;;
1143 -program-transform-name=* |
--program-transform-name=* \
1144 |
--program-transform-nam=* |
--program-transform-na=* \
1145 |
--program-transform-n=* |
--program-transform-=* \
1146 |
--program-transform=* |
--program-transfor=* \
1147 |
--program-transfo=* |
--program-transf=* \
1148 |
--program-trans=* |
--program-tran=* \
1149 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1150 program_transform_name
=$ac_optarg ;;
1152 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1154 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1155 pdfdir
=$ac_optarg ;;
1157 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1159 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1162 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1163 |
-silent |
--silent |
--silen |
--sile |
--sil)
1166 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1168 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1170 sbindir
=$ac_optarg ;;
1172 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1173 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1174 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1176 ac_prev
=sharedstatedir
;;
1177 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1178 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1179 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1181 sharedstatedir
=$ac_optarg ;;
1183 -site |
--site |
--sit)
1185 -site=* |
--site=* |
--sit=*)
1188 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1190 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1191 srcdir
=$ac_optarg ;;
1193 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1194 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1195 ac_prev
=sysconfdir
;;
1196 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1197 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1198 sysconfdir
=$ac_optarg ;;
1200 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1201 ac_prev
=target_alias
;;
1202 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1203 target_alias
=$ac_optarg ;;
1205 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1208 -version |
--version |
--versio |
--versi |
--vers |
-V)
1209 ac_init_version
=: ;;
1212 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1213 # Reject names that are not valid shell variable names.
1214 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1215 { echo "$as_me: error: invalid package name: $ac_package" >&2
1216 { (exit 1); exit 1; }; }
1217 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1218 eval with_
$ac_package=\
$ac_optarg ;;
1220 -without-* |
--without-*)
1221 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1222 # Reject names that are not valid shell variable names.
1223 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1224 { echo "$as_me: error: invalid package name: $ac_package" >&2
1225 { (exit 1); exit 1; }; }
1226 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1227 eval with_
$ac_package=no
;;
1230 # Obsolete; use --with-x.
1233 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1234 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1235 ac_prev
=x_includes
;;
1236 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1237 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1238 x_includes
=$ac_optarg ;;
1240 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1241 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1242 ac_prev
=x_libraries
;;
1243 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1244 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1245 x_libraries
=$ac_optarg ;;
1247 -*) { echo "$as_me: error: unrecognized option: $ac_option
1248 Try \`$0 --help' for more information." >&2
1249 { (exit 1); exit 1; }; }
1253 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1254 # Reject names that are not valid shell variable names.
1255 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1256 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1257 { (exit 1); exit 1; }; }
1258 eval $ac_envvar=\
$ac_optarg
1259 export $ac_envvar ;;
1262 # FIXME: should be removed in autoconf 3.0.
1263 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1264 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1265 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1266 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1272 if test -n "$ac_prev"; then
1273 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1274 { echo "$as_me: error: missing argument to $ac_option" >&2
1275 { (exit 1); exit 1; }; }
1278 # Be sure to have absolute directory names.
1279 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1280 datadir sysconfdir sharedstatedir localstatedir includedir \
1281 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1282 libdir localedir mandir
1284 eval ac_val
=\$
$ac_var
1286 [\\/$
]* | ?
:[\\/]* ) continue;;
1287 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1289 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1290 { (exit 1); exit 1; }; }
1293 # There might be people who depend on the old broken behavior: `$host'
1294 # used to hold the argument of --host etc.
1295 # FIXME: To remove some day.
1298 target
=$target_alias
1300 # FIXME: To remove some day.
1301 if test "x$host_alias" != x
; then
1302 if test "x$build_alias" = x
; then
1303 cross_compiling
=maybe
1304 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1305 If a cross compiler is detected then cross compile mode will be used." >&2
1306 elif test "x$build_alias" != "x$host_alias"; then
1312 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1314 test "$silent" = yes && exec 6>/dev
/null
1317 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1318 ac_ls_di
=`ls -di .` &&
1319 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1320 { echo "$as_me: error: Working directory cannot be determined" >&2
1321 { (exit 1); exit 1; }; }
1322 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1323 { echo "$as_me: error: pwd does not report name of working directory" >&2
1324 { (exit 1); exit 1; }; }
1327 # Find the source files, if location was not specified.
1328 if test -z "$srcdir"; then
1329 ac_srcdir_defaulted
=yes
1330 # Try the directory containing this script, then the parent directory.
1331 ac_confdir
=`$as_dirname -- "$0" ||
1332 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1333 X"$0" : 'X\(//\)[^/]' \| \
1334 X"$0" : 'X\(//\)$' \| \
1335 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1337 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1355 if test ! -r "$srcdir/$ac_unique_file"; then
1359 ac_srcdir_defaulted
=no
1361 if test ! -r "$srcdir/$ac_unique_file"; then
1362 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1363 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1364 { (exit 1); exit 1; }; }
1366 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1368 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1369 { (exit 1); exit 1; }; }
1371 # When building in place, set srcdir=.
1372 if test "$ac_abs_confdir" = "$ac_pwd"; then
1375 # Remove unnecessary trailing slashes from srcdir.
1376 # Double slashes in file names in object file debugging info
1377 # mess up M-x gdb in Emacs.
1379 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1381 for ac_var
in $ac_precious_vars; do
1382 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1383 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1384 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1385 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1389 # Report the --help message.
1391 if test "$ac_init_help" = "long"; then
1392 # Omit some internal or obsolete options to make the list less imposing.
1393 # This message is too long to be a string in the A/UX 3.1 sh.
1395 \`configure' configures libusb-compat 0.1.3 to adapt to many kinds of systems.
1397 Usage: $0 [OPTION]... [VAR=VALUE]...
1399 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1400 VAR=VALUE. See below for descriptions of some of the useful variables.
1402 Defaults for the options are specified in brackets.
1405 -h, --help display this help and exit
1406 --help=short display options specific to this package
1407 --help=recursive display the short help of all the included packages
1408 -V, --version display version information and exit
1409 -q, --quiet, --silent do not print \`checking...' messages
1410 --cache-file=FILE cache test results in FILE [disabled]
1411 -C, --config-cache alias for \`--cache-file=config.cache'
1412 -n, --no-create do not create output files
1413 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1415 Installation directories:
1416 --prefix=PREFIX install architecture-independent files in PREFIX
1417 [$ac_default_prefix]
1418 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1421 By default, \`make install' will install all the files in
1422 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1423 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1424 for instance \`--prefix=\$HOME'.
1426 For better control, use the options below.
1428 Fine tuning of the installation directories:
1429 --bindir=DIR user executables [EPREFIX/bin]
1430 --sbindir=DIR system admin executables [EPREFIX/sbin]
1431 --libexecdir=DIR program executables [EPREFIX/libexec]
1432 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1433 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1434 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1435 --libdir=DIR object code libraries [EPREFIX/lib]
1436 --includedir=DIR C header files [PREFIX/include]
1437 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1438 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1439 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1440 --infodir=DIR info documentation [DATAROOTDIR/info]
1441 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1442 --mandir=DIR man documentation [DATAROOTDIR/man]
1443 --docdir=DIR documentation root [DATAROOTDIR/doc/libusb-compat]
1444 --htmldir=DIR html documentation [DOCDIR]
1445 --dvidir=DIR dvi documentation [DOCDIR]
1446 --pdfdir=DIR pdf documentation [DOCDIR]
1447 --psdir=DIR ps documentation [DOCDIR]
1453 --program-prefix=PREFIX prepend PREFIX to installed program names
1454 --program-suffix=SUFFIX append SUFFIX to installed program names
1455 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1458 --build=BUILD configure
for building on BUILD
[guessed
]
1459 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1463 if test -n "$ac_init_help"; then
1464 case $ac_init_help in
1465 short | recursive
) echo "Configuration of libusb-compat 0.1.3:";;
1470 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1471 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1472 --disable-dependency-tracking speeds up one-time build
1473 --enable-dependency-tracking do not reject slow dependency extractors
1474 --enable-shared[=PKGS
] build shared libraries
[default
=yes]
1475 --enable-static[=PKGS
] build static libraries
[default
=yes]
1476 --enable-fast-install[=PKGS
]
1477 optimize
for fast installation
[default
=yes]
1478 --disable-libtool-lock avoid locking
(might
break parallel builds
)
1479 --disable-log disable all logging
1480 --enable-debug-log enable debug logging
(default n
)
1481 --enable-examples-build build example applications
(default n
)
1484 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1485 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1486 --with-pic try to use only PIC
/non-PIC objects
[default
=use
1488 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1490 Some influential environment variables
:
1491 CC C compiler
command
1492 CFLAGS C compiler flags
1493 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1494 nonstandard directory
<lib dir
>
1495 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1496 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1497 you have headers
in a nonstandard directory
<include dir
>
1499 PKG_CONFIG path to pkg-config utility
1501 C compiler flags
for LIBUSB_1_0
, overriding pkg-config
1503 linker flags
for LIBUSB_1_0
, overriding pkg-config
1505 Use these variables to override the choices made by
`configure' or to help
1506 it to find libraries and programs with nonstandard names/locations.
1512 if test "$ac_init_help" = "recursive"; then
1513 # If there are subdirs, report their specific --help.
1514 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1515 test -d "$ac_dir" || continue
1519 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1521 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
1522 # A ".." for each directory in $ac_dir_suffix.
1523 ac_top_builddir_sub=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,/..,g;s,/,,'`
1524 case $ac_top_builddir_sub in
1525 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1526 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1529 ac_abs_top_builddir=$ac_pwd
1530 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1531 # for backward compatibility:
1532 ac_top_builddir=$ac_top_build_prefix
1535 .) # We are building in place.
1537 ac_top_srcdir=$ac_top_builddir_sub
1538 ac_abs_top_srcdir=$ac_pwd ;;
1539 [\\/]* | ?:[\\/]* ) # Absolute name.
1540 ac_srcdir=$srcdir$ac_dir_suffix;
1541 ac_top_srcdir=$srcdir
1542 ac_abs_top_srcdir=$srcdir ;;
1544 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1545 ac_top_srcdir=$ac_top_build_prefix$srcdir
1546 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1548 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1550 cd "$ac_dir" || { ac_status=$?; continue; }
1551 # Check for guested configure.
1552 if test -f "$ac_srcdir/configure.gnu"; then
1554 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1555 elif test -f "$ac_srcdir/configure"; then
1557 $SHELL "$ac_srcdir/configure" --help=recursive
1559 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1561 cd "$ac_pwd" || { ac_status=$?; break; }
1565 test -n "$ac_init_help" && exit $ac_status
1566 if $ac_init_version; then
1568 libusb-compat configure 0.1.3
1569 generated by GNU Autoconf 2.61
1571 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1572 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1573 This configure script is free software; the Free Software Foundation
1574 gives unlimited permission to copy, distribute and modify it.
1578 cat >config.log <<_ACEOF
1579 This file contains any messages produced by compilers while
1580 running configure, to aid debugging if configure makes a mistake.
1582 It was created by libusb-compat $as_me 0.1.3, which was
1583 generated by GNU Autoconf 2.61. Invocation command line was
1595 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1596 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1597 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1598 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1599 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1601 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1602 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1604 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1605 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1606 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1607 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
1608 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1609 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1610 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1618 test -z "$as_dir" && as_dir=.
1619 echo "PATH: $as_dir"
1635 # Keep a trace of the command line.
1636 # Strip out --no-create and --no-recursion so they do not pile up.
1637 # Strip out --silent because we don't want to record it for future runs.
1638 # Also quote any args containing shell meta-characters.
1639 # Make two passes to allow for proper duplicate-argument suppression.
1643 ac_must_keep_next=false
1649 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1650 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1651 | -silent | --silent | --silen | --sile | --sil)
1654 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1657 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1659 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1660 if test $ac_must_keep_next = true; then
1661 ac_must_keep_next=false # Got value, back to normal.
1664 *=* | --config-cache | -C | -disable-* | --disable-* \
1665 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1666 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1667 | -with-* | --with-* | -without-* | --without-* | --x)
1668 case "$ac_configure_args0 " in
1669 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1672 -* ) ac_must_keep_next=true ;;
1675 ac_configure_args="$ac_configure_args '$ac_arg'"
1680 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1681 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1683 # When interrupted or exit'd, cleanup temporary files, and complete
1684 # config.log. We remove comments because anyway the quotes in there
1685 # would cause problems or look ugly.
1686 # WARNING: Use '\'' to represent an apostrophe within the trap.
1687 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1688 trap 'exit_status=$?
1689 # Save into config.log some information that might help in debugging.
1694 ## ---------------- ##
1695 ## Cache variables. ##
1696 ## ---------------- ##
1699 # The following way of writing the cache mishandles newlines in values,
1701 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
1702 eval ac_val=\$$ac_var
1706 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1707 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1710 _ | IFS | as_nl) ;; #(
1711 *) $as_unset $ac_var ;;
1716 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
1717 *${as_nl}ac_space=\ *)
1719 "s/'\''/'\''\\\\'\'''\''/g;
1720 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1723 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1731 ## ----------------- ##
1732 ## Output variables. ##
1733 ## ----------------- ##
1736 for ac_var in $ac_subst_vars
1738 eval ac_val=\$$ac_var
1740 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1742 echo "$ac_var='\''$ac_val'\''"
1746 if test -n "$ac_subst_files"; then
1748 ## ------------------- ##
1749 ## File substitutions. ##
1750 ## ------------------- ##
1753 for ac_var in $ac_subst_files
1755 eval ac_val=\$$ac_var
1757 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1759 echo "$ac_var='\''$ac_val'\''"
1764 if test -s confdefs.h; then
1774 test "$ac_signal" != 0 &&
1775 echo "$as_me: caught signal $ac_signal"
1776 echo "$as_me: exit $exit_status"
1778 rm -f core *.core core.conftest.* &&
1779 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1782 for ac_signal in 1 2 13 15; do
1783 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1787 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1788 rm -f -r conftest* confdefs.h
1790 # Predefined preprocessor variables.
1792 cat >>confdefs.h <<_ACEOF
1793 #define PACKAGE_NAME "$PACKAGE_NAME"
1797 cat >>confdefs.h <<_ACEOF
1798 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1802 cat >>confdefs.h <<_ACEOF
1803 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1807 cat >>confdefs.h <<_ACEOF
1808 #define PACKAGE_STRING "$PACKAGE_STRING"
1812 cat >>confdefs.h <<_ACEOF
1813 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1817 # Let the site file select an alternate cache file if it wants to.
1818 # Prefer explicitly selected file to automatically selected ones.
1819 if test -n "$CONFIG_SITE"; then
1820 set x "$CONFIG_SITE"
1821 elif test "x$prefix" != xNONE; then
1822 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1824 set x "$ac_default_prefix/share/config.site" \
1825 "$ac_default_prefix/etc/config.site"
1830 if test -r "$ac_site_file"; then
1831 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1832 echo "$as_me: loading site script $ac_site_file" >&6;}
1833 sed 's/^/| /' "$ac_site_file" >&5
1838 if test -r "$cache_file"; then
1839 # Some versions of bash will fail to source /dev/null (special
1840 # files actually), so we avoid doing that.
1841 if test -f "$cache_file"; then
1842 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1843 echo "$as_me: loading cache $cache_file" >&6;}
1845 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1846 *) . "./$cache_file";;
1850 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1851 echo "$as_me: creating cache $cache_file" >&6;}
1855 # Check that the precious variables saved in the cache have kept the same
1857 ac_cache_corrupted=false
1858 for ac_var in $ac_precious_vars; do
1859 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1860 eval ac_new_set=\$ac_env_${ac_var}_set
1861 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1862 eval ac_new_val=\$ac_env_${ac_var}_value
1863 case $ac_old_set,$ac_new_set in
1865 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
1866 echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1867 ac_cache_corrupted=: ;;
1869 { echo "$as_me:$LINENO: error: \`$ac_var' was not
set in the previous run
" >&5
1870 echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
1871 ac_cache_corrupted=: ;;
1874 if test "x$ac_old_val" != "x$ac_new_val"; then
1875 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1876 echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
1877 { echo "$as_me:$LINENO: former value
: $ac_old_val" >&5
1878 echo "$as_me: former value
: $ac_old_val" >&2;}
1879 { echo "$as_me:$LINENO: current value
: $ac_new_val" >&5
1880 echo "$as_me: current value
: $ac_new_val" >&2;}
1881 ac_cache_corrupted=:
1884 # Pass precious variables to config.status.
1885 if test "$ac_new_set" = set; then
1887 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
1888 *) ac_arg=$ac_var=$ac_new_val ;;
1890 case " $ac_configure_args " in
1891 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1892 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1896 if $ac_cache_corrupted; then
1897 { echo "$as_me:$LINENO: error
: changes
in the environment can compromise the build
" >&5
1898 echo "$as_me: error
: changes
in the environment can compromise the build
" >&2;}
1899 { { echo "$as_me:$LINENO: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&5
1900 echo "$as_me: error: run \`make distclean' and
/or \
`rm $cache_file' and start over" >&2;}
1901 { (exit 1); exit 1; }; }
1929 ac_cpp='$CPP $CPPFLAGS'
1930 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1931 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1932 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1935 am__api_version='1.10'
1938 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1939 if test -f "$ac_dir/install-sh"; then
1941 ac_install_sh="$ac_aux_dir/install-sh -c"
1943 elif test -f "$ac_dir/install.sh"; then
1945 ac_install_sh="$ac_aux_dir/install.sh -c"
1947 elif test -f "$ac_dir/shtool"; then
1949 ac_install_sh="$ac_aux_dir/shtool install -c"
1953 if test -z "$ac_aux_dir"; then
1954 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1955 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1956 { (exit 1); exit 1; }; }
1959 # These three variables are undocumented and unsupported,
1960 # and are intended to be withdrawn in a future Autoconf release.
1961 # They can cause serious problems if a builder's source tree is in a directory
1962 # whose full name contains unusual characters.
1963 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1964 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1965 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1968 # Find a good install program. We prefer a C program (faster),
1969 # so one script is as good as another. But avoid the broken or
1970 # incompatible versions:
1971 # SysV /etc/install, /usr/sbin/install
1972 # SunOS /usr/etc/install
1973 # IRIX /sbin/install
1975 # AmigaOS /C/install, which installs bootblocks on floppy discs
1976 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1977 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1978 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1979 # OS/2's system install, which has a completely different semantic
1980 # ./install, which can be erroneously created by make from ./install.sh.
1981 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1982 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1983 if test -z "$INSTALL"; then
1984 if test "${ac_cv_path_install+set}" = set; then
1985 echo $ECHO_N "(cached) $ECHO_C" >&6
1987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1991 test -z "$as_dir" && as_dir=.
1992 # Account for people who put trailing slashes in PATH elements.
1994 ./ | .// | /cC/* | \
1995 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1996 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1999 # OSF1 and SCO ODT 3.0 have their own names for install.
2000 # Don't use installbsd from OSF since it installs stuff as root
2002 for ac_prog in ginstall scoinst install; do
2003 for ac_exec_ext in '' $ac_executable_extensions; do
2004 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2005 if test $ac_prog = install &&
2006 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2007 # AIX install. It has an incompatible calling convention.
2009 elif test $ac_prog = install &&
2010 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2011 # program-specific install script used by HP pwplus--don't use.
2014 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2027 if test "${ac_cv_path_install+set}" = set; then
2028 INSTALL=$ac_cv_path_install
2030 # As a last resort, use the slow shell script. Don't cache a
2031 # value for INSTALL within a source directory, because that will
2032 # break other packages using the cache if that directory is
2033 # removed, or if the value is a relative name.
2034 INSTALL=$ac_install_sh
2037 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2038 echo "${ECHO_T}$INSTALL" >&6; }
2040 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2041 # It thinks the first close brace ends the variable substitution.
2042 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2044 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2046 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2048 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2049 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2052 echo timestamp > conftest.file
2053 # Do `set' in a subshell so we don't clobber the current shell
's
2054 # arguments. Must try -L first in case configure is actually a
2055 # symlink; some systems play weird games with the mod time of symlinks
2056 # (eg FreeBSD returns the mod time of the symlink's containing
2059 set X
`ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2060 if test "$*" = "X"; then
2062 set X
`ls -t $srcdir/configure conftest.file`
2065 if test "$*" != "X $srcdir/configure conftest.file" \
2066 && test "$*" != "X conftest.file $srcdir/configure"; then
2068 # If neither matched, then we have a broken ls. This can happen
2069 # if, for instance, CONFIG_SHELL is bash and it inherits a
2070 # broken ls alias from the environment. This has actually
2071 # happened. Such a system could not be considered "sane".
2072 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2073 alias in your environment" >&5
2074 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2075 alias in your environment" >&2;}
2076 { (exit 1); exit 1; }; }
2079 test "$2" = conftest.
file
2085 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2086 Check your system clock" >&5
2087 echo "$as_me: error: newly created file is older than distributed files!
2088 Check your system clock" >&2;}
2089 { (exit 1); exit 1; }; }
2091 { echo "$as_me:$LINENO: result: yes" >&5
2092 echo "${ECHO_T}yes" >&6; }
2093 test "$program_prefix" != NONE
&&
2094 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
2095 # Use a double $ so make ignores it.
2096 test "$program_suffix" != NONE
&&
2097 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
2098 # Double any \ or $. echo might interpret backslashes.
2099 # By default was `s,x,x', remove it if useless.
2100 cat <<\_ACEOF
>conftest.
sed
2101 s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//
2103 program_transform_name
=`echo $program_transform_name | sed -f conftest.sed`
2106 # expand $ac_aux_dir to an absolute path
2107 am_aux_dir
=`cd $ac_aux_dir && pwd`
2109 test x
"${MISSING+set}" = xset || MISSING
="\${SHELL} $am_aux_dir/missing"
2110 # Use eval to expand $SHELL
2111 if eval "$MISSING --run true"; then
2112 am_missing_run
="$MISSING --run "
2115 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2116 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2119 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2120 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2121 if test -z "$MKDIR_P"; then
2122 if test "${ac_cv_path_mkdir+set}" = set; then
2123 echo $ECHO_N "(cached) $ECHO_C" >&6
2125 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2126 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
2129 test -z "$as_dir" && as_dir
=.
2130 for ac_prog
in mkdir gmkdir
; do
2131 for ac_exec_ext
in '' $ac_executable_extensions; do
2132 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } ||
continue
2133 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2134 'mkdir (GNU coreutils) '* | \
2135 'mkdir (coreutils) '* | \
2136 'mkdir (fileutils) '4.1*)
2137 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
2147 if test "${ac_cv_path_mkdir+set}" = set; then
2148 MKDIR_P
="$ac_cv_path_mkdir -p"
2150 # As a last resort, use the slow shell script. Don't cache a
2151 # value for MKDIR_P within a source directory, because that will
2152 # break other packages using the cache if that directory is
2153 # removed, or if the value is a relative name.
2154 test -d .
/--version && rmdir .
/--version
2155 MKDIR_P
="$ac_install_sh -d"
2158 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2159 echo "${ECHO_T}$MKDIR_P" >&6; }
2163 [\\/$
]* | ?
:[\\/]*) ;;
2164 */*) mkdir_p
="\$(top_builddir)/$mkdir_p" ;;
2167 for ac_prog
in gawk mawk nawk
awk
2169 # Extract the first word of "$ac_prog", so it can be a program name with args.
2170 set dummy
$ac_prog; ac_word
=$2
2171 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2172 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2173 if test "${ac_cv_prog_AWK+set}" = set; then
2174 echo $ECHO_N "(cached) $ECHO_C" >&6
2176 if test -n "$AWK"; then
2177 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
2179 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2183 test -z "$as_dir" && as_dir
=.
2184 for ac_exec_ext
in '' $ac_executable_extensions; do
2185 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2186 ac_cv_prog_AWK
="$ac_prog"
2187 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2197 if test -n "$AWK"; then
2198 { echo "$as_me:$LINENO: result: $AWK" >&5
2199 echo "${ECHO_T}$AWK" >&6; }
2201 { echo "$as_me:$LINENO: result: no" >&5
2202 echo "${ECHO_T}no" >&6; }
2206 test -n "$AWK" && break
2209 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2210 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2211 set x
${MAKE-make}; ac_make
=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2212 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2213 echo $ECHO_N "(cached) $ECHO_C" >&6
2215 cat >conftest.
make <<\_ACEOF
2218 @
echo '@@@%%%=$(MAKE)=@@@%%%'
2220 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2221 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2223 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
2225 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
2229 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
2230 { echo "$as_me:$LINENO: result: yes" >&5
2231 echo "${ECHO_T}yes" >&6; }
2234 { echo "$as_me:$LINENO: result: no" >&5
2235 echo "${ECHO_T}no" >&6; }
2236 SET_MAKE
="MAKE=${MAKE-make}"
2239 rm -rf .tst
2>/dev
/null
2240 mkdir .tst
2>/dev
/null
2241 if test -d .tst
; then
2246 rmdir .tst
2>/dev
/null
2248 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2249 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2250 # is not polluted with repeated "-I."
2251 am__isrc
=' -I$(srcdir)'
2252 # test to see if srcdir already configured
2253 if test -f $srcdir/config.status
; then
2254 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2255 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2256 { (exit 1); exit 1; }; }
2260 # test whether we have cygpath
2261 if test -z "$CYGPATH_W"; then
2262 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
2263 CYGPATH_W
='cygpath -w'
2270 # Define the identity of the package.
2271 PACKAGE
='libusb-compat'
2275 cat >>confdefs.h
<<_ACEOF
2276 #define PACKAGE "$PACKAGE"
2280 cat >>confdefs.h
<<_ACEOF
2281 #define VERSION "$VERSION"
2284 # Some tools Automake needs.
2286 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2289 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
2292 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2295 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
2298 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
2300 install_sh
=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2302 # Installed binaries are usually stripped using `strip' when the user
2303 # run `make install-strip'. However `strip' might not be the right
2304 # tool to use in cross-compilation environments, therefore Automake
2305 # will honor the `STRIP' environment variable to overrule this program.
2306 if test "$cross_compiling" != no
; then
2307 if test -n "$ac_tool_prefix"; then
2308 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2309 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
2310 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2311 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2312 if test "${ac_cv_prog_STRIP+set}" = set; then
2313 echo $ECHO_N "(cached) $ECHO_C" >&6
2315 if test -n "$STRIP"; then
2316 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
2318 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2322 test -z "$as_dir" && as_dir
=.
2323 for ac_exec_ext
in '' $ac_executable_extensions; do
2324 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2325 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
2326 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2335 STRIP
=$ac_cv_prog_STRIP
2336 if test -n "$STRIP"; then
2337 { echo "$as_me:$LINENO: result: $STRIP" >&5
2338 echo "${ECHO_T}$STRIP" >&6; }
2340 { echo "$as_me:$LINENO: result: no" >&5
2341 echo "${ECHO_T}no" >&6; }
2346 if test -z "$ac_cv_prog_STRIP"; then
2348 # Extract the first word of "strip", so it can be a program name with args.
2349 set dummy strip
; ac_word
=$2
2350 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2351 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2352 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2353 echo $ECHO_N "(cached) $ECHO_C" >&6
2355 if test -n "$ac_ct_STRIP"; then
2356 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
2358 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2362 test -z "$as_dir" && as_dir
=.
2363 for ac_exec_ext
in '' $ac_executable_extensions; do
2364 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2365 ac_cv_prog_ac_ct_STRIP
="strip"
2366 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2375 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
2376 if test -n "$ac_ct_STRIP"; then
2377 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2378 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2380 { echo "$as_me:$LINENO: result: no" >&5
2381 echo "${ECHO_T}no" >&6; }
2384 if test "x$ac_ct_STRIP" = x
; then
2387 case $cross_compiling:$ac_tool_warned in
2389 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2390 whose name does not start with the host triplet. If you think this
2391 configuration is useful to you, please write to autoconf@gnu.org." >&5
2392 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2393 whose name does not start with the host triplet. If you think this
2394 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2395 ac_tool_warned
=yes ;;
2400 STRIP
="$ac_cv_prog_STRIP"
2404 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
2406 # We need awk for the "check" target. The system "awk" is bad on
2408 # Always define AMTAR for backward compatibility.
2410 AMTAR
=${AMTAR-"${am_missing_run}tar"}
2412 am__tar
='${AMTAR} chof - "$$tardir"'; am__untar
='${AMTAR} xf -'
2419 ac_config_headers
="$ac_config_headers config.h"
2425 ac_cpp
='$CPP $CPPFLAGS'
2426 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2427 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2428 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2429 if test -n "$ac_tool_prefix"; then
2430 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2431 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2432 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2433 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2434 if test "${ac_cv_prog_CC+set}" = set; then
2435 echo $ECHO_N "(cached) $ECHO_C" >&6
2437 if test -n "$CC"; then
2438 ac_cv_prog_CC
="$CC" # Let the user override the test.
2440 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2444 test -z "$as_dir" && as_dir
=.
2445 for ac_exec_ext
in '' $ac_executable_extensions; do
2446 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2447 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2448 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2458 if test -n "$CC"; then
2459 { echo "$as_me:$LINENO: result: $CC" >&5
2460 echo "${ECHO_T}$CC" >&6; }
2462 { echo "$as_me:$LINENO: result: no" >&5
2463 echo "${ECHO_T}no" >&6; }
2468 if test -z "$ac_cv_prog_CC"; then
2470 # Extract the first word of "gcc", so it can be a program name with args.
2471 set dummy gcc
; ac_word
=$2
2472 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2473 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2474 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2475 echo $ECHO_N "(cached) $ECHO_C" >&6
2477 if test -n "$ac_ct_CC"; then
2478 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2480 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2484 test -z "$as_dir" && as_dir
=.
2485 for ac_exec_ext
in '' $ac_executable_extensions; do
2486 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2487 ac_cv_prog_ac_ct_CC
="gcc"
2488 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2497 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2498 if test -n "$ac_ct_CC"; then
2499 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2500 echo "${ECHO_T}$ac_ct_CC" >&6; }
2502 { echo "$as_me:$LINENO: result: no" >&5
2503 echo "${ECHO_T}no" >&6; }
2506 if test "x$ac_ct_CC" = x
; then
2509 case $cross_compiling:$ac_tool_warned in
2511 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2512 whose name does not start with the host triplet. If you think this
2513 configuration is useful to you, please write to autoconf@gnu.org." >&5
2514 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2515 whose name does not start with the host triplet. If you think this
2516 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2517 ac_tool_warned
=yes ;;
2525 if test -z "$CC"; then
2526 if test -n "$ac_tool_prefix"; then
2527 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2528 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2529 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2530 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2531 if test "${ac_cv_prog_CC+set}" = set; then
2532 echo $ECHO_N "(cached) $ECHO_C" >&6
2534 if test -n "$CC"; then
2535 ac_cv_prog_CC
="$CC" # Let the user override the test.
2537 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2541 test -z "$as_dir" && as_dir
=.
2542 for ac_exec_ext
in '' $ac_executable_extensions; do
2543 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2544 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2545 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2555 if test -n "$CC"; then
2556 { echo "$as_me:$LINENO: result: $CC" >&5
2557 echo "${ECHO_T}$CC" >&6; }
2559 { echo "$as_me:$LINENO: result: no" >&5
2560 echo "${ECHO_T}no" >&6; }
2566 if test -z "$CC"; then
2567 # Extract the first word of "cc", so it can be a program name with args.
2568 set dummy cc
; ac_word
=$2
2569 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2570 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2571 if test "${ac_cv_prog_CC+set}" = set; then
2572 echo $ECHO_N "(cached) $ECHO_C" >&6
2574 if test -n "$CC"; then
2575 ac_cv_prog_CC
="$CC" # Let the user override the test.
2578 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2582 test -z "$as_dir" && as_dir
=.
2583 for ac_exec_ext
in '' $ac_executable_extensions; do
2584 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2585 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2586 ac_prog_rejected
=yes
2590 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2597 if test $ac_prog_rejected = yes; then
2598 # We found a bogon in the path, so make sure we never use it.
2599 set dummy
$ac_cv_prog_CC
2601 if test $# != 0; then
2602 # We chose a different compiler from the bogus one.
2603 # However, it has the same basename, so the bogon will be chosen
2604 # first if we set CC to just the basename; use the full file name.
2606 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2612 if test -n "$CC"; then
2613 { echo "$as_me:$LINENO: result: $CC" >&5
2614 echo "${ECHO_T}$CC" >&6; }
2616 { echo "$as_me:$LINENO: result: no" >&5
2617 echo "${ECHO_T}no" >&6; }
2622 if test -z "$CC"; then
2623 if test -n "$ac_tool_prefix"; then
2624 for ac_prog
in cl.exe
2626 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2627 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2628 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2629 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2630 if test "${ac_cv_prog_CC+set}" = set; then
2631 echo $ECHO_N "(cached) $ECHO_C" >&6
2633 if test -n "$CC"; then
2634 ac_cv_prog_CC
="$CC" # Let the user override the test.
2636 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2640 test -z "$as_dir" && as_dir
=.
2641 for ac_exec_ext
in '' $ac_executable_extensions; do
2642 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2643 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2644 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2654 if test -n "$CC"; then
2655 { echo "$as_me:$LINENO: result: $CC" >&5
2656 echo "${ECHO_T}$CC" >&6; }
2658 { echo "$as_me:$LINENO: result: no" >&5
2659 echo "${ECHO_T}no" >&6; }
2663 test -n "$CC" && break
2666 if test -z "$CC"; then
2668 for ac_prog
in cl.exe
2670 # Extract the first word of "$ac_prog", so it can be a program name with args.
2671 set dummy
$ac_prog; ac_word
=$2
2672 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2673 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2674 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2675 echo $ECHO_N "(cached) $ECHO_C" >&6
2677 if test -n "$ac_ct_CC"; then
2678 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2680 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2684 test -z "$as_dir" && as_dir
=.
2685 for ac_exec_ext
in '' $ac_executable_extensions; do
2686 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2687 ac_cv_prog_ac_ct_CC
="$ac_prog"
2688 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2697 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2698 if test -n "$ac_ct_CC"; then
2699 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2700 echo "${ECHO_T}$ac_ct_CC" >&6; }
2702 { echo "$as_me:$LINENO: result: no" >&5
2703 echo "${ECHO_T}no" >&6; }
2707 test -n "$ac_ct_CC" && break
2710 if test "x$ac_ct_CC" = x
; then
2713 case $cross_compiling:$ac_tool_warned in
2715 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2716 whose name does not start with the host triplet. If you think this
2717 configuration is useful to you, please write to autoconf@gnu.org." >&5
2718 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2719 whose name does not start with the host triplet. If you think this
2720 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2721 ac_tool_warned
=yes ;;
2730 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2731 See \`config.log' for more details." >&5
2732 echo "$as_me: error: no acceptable C compiler found in \$PATH
2733 See \`config.log' for more details." >&2;}
2734 { (exit 1); exit 1; }; }
2736 # Provide some information about the compiler.
2737 echo "$as_me:$LINENO: checking for C compiler version" >&5
2738 ac_compiler
=`set X $ac_compile; echo $2`
2739 { (ac_try
="$ac_compiler --version >&5"
2741 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2742 *) ac_try_echo=$ac_try;;
2744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2745 (eval "$ac_compiler --version >&5") 2>&5
2747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2748 (exit $ac_status); }
2749 { (ac_try="$ac_compiler -v >&5"
2751 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2752 *) ac_try_echo
=$ac_try;;
2754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2755 (eval "$ac_compiler -v >&5") 2>&5
2757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2758 (exit $ac_status); }
2759 { (ac_try
="$ac_compiler -V >&5"
2761 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2762 *) ac_try_echo=$ac_try;;
2764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2765 (eval "$ac_compiler -V >&5") 2>&5
2767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2768 (exit $ac_status); }
2770 cat >conftest.$ac_ext <<_ACEOF
2773 cat confdefs.h >>conftest.$ac_ext
2774 cat >>conftest.$ac_ext <<_ACEOF
2775 /* end confdefs.h. */
2785 ac_clean_files_save=$ac_clean_files
2786 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2787 # Try to create an executable without -o first, disregard a.out.
2788 # It will help us diagnose broken compilers, and finding out an intuition
2790 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2791 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2792 ac_link_default=`echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
2794 # List of possible output files, starting from the most likely.
2795 # The algorithm is not robust to junk in `.
', hence go to wildcards (a.*)
2796 # only as a last resort. b.out is created by i960 compilers.
2797 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
'
2799 # The IRIX 6 linker writes into existing files which may not be
2800 # executable, retaining their permissions. Remove them first so a
2801 # subsequent execution test works.
2803 for ac_file in $ac_files
2806 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2807 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2812 if { (ac_try="$ac_link_default"
2814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2815 *) ac_try_echo=$ac_try;;
2817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2818 (eval "$ac_link_default") 2>&5
2820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2821 (exit $ac_status); }; then
2822 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2823 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2824 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2825 # so that the user can short-circuit this test for compilers unknown to
2827 for ac_file
in $ac_files ''
2829 test -f "$ac_file" ||
continue
2831 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
)
2834 # We found the default executable, but exeext='' is most
2838 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
2840 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2842 # We set ac_cv_exeext here because the later test for it is not
2843 # safe: cross compilers may not add the suffix if given an `-o'
2844 # argument, so we may need to know it at that point already.
2845 # Even if this section looks crufty: it has the advantage of
2852 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
2858 { echo "$as_me:$LINENO: result: $ac_file" >&5
2859 echo "${ECHO_T}$ac_file" >&6; }
2860 if test -z "$ac_file"; then
2861 echo "$as_me: failed program was:" >&5
2862 sed 's/^/| /' conftest.
$ac_ext >&5
2864 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2865 See \`config.log' for more details." >&5
2866 echo "$as_me: error: C compiler cannot create executables
2867 See \`config.log' for more details." >&2;}
2868 { (exit 77); exit 77; }; }
2871 ac_exeext
=$ac_cv_exeext
2873 # Check that the compiler produces executables we can run. If not, either
2874 # the compiler is broken, or we cross compile.
2875 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2876 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2877 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2878 # If not cross compiling, check that we can run a simple program.
2879 if test "$cross_compiling" != yes; then
2880 if { ac_try
='./$ac_file'
2881 { (case "(($ac_try" in
2882 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2883 *) ac_try_echo=$ac_try;;
2885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2886 (eval "$ac_try") 2>&5
2888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2889 (exit $ac_status); }; }; then
2892 if test "$cross_compiling" = maybe; then
2895 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2896 If you meant to cross compile, use \`--host'.
2897 See \`config.log' for more details.
" >&5
2898 echo "$as_me: error
: cannot run C compiled programs.
2899 If you meant to cross compile
, use \
`--host'.
2900 See \`config.log
' for more details." >&2;}
2901 { (exit 1); exit 1; }; }
2905 { echo "$as_me:$LINENO: result: yes" >&5
2906 echo "${ECHO_T}yes" >&6; }
2908 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2909 ac_clean_files=$ac_clean_files_save
2910 # Check that the compiler produces executables we can run. If not, either
2911 # the compiler is broken, or we cross compile.
2912 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2913 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2914 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2915 echo "${ECHO_T}$cross_compiling" >&6; }
2917 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2918 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2919 if { (ac_try="$ac_link"
2921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2922 *) ac_try_echo=$ac_try;;
2924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2925 (eval "$ac_link") 2>&5
2927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2928 (exit $ac_status); }; then
2929 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
2930 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
2931 # work properly (i.e., refer to `conftest.exe
'), while it won't with
2933 for ac_file
in conftest.exe conftest conftest.
*; do
2934 test -f "$ac_file" ||
continue
2936 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
) ;;
2937 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2943 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2944 See \`config.log' for more details." >&5
2945 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2946 See \`config.log' for more details." >&2;}
2947 { (exit 1); exit 1; }; }
2950 rm -f conftest
$ac_cv_exeext
2951 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2952 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2954 rm -f conftest.
$ac_ext
2955 EXEEXT
=$ac_cv_exeext
2957 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2958 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2959 if test "${ac_cv_objext+set}" = set; then
2960 echo $ECHO_N "(cached) $ECHO_C" >&6
2962 cat >conftest.
$ac_ext <<_ACEOF
2965 cat confdefs.h
>>conftest.
$ac_ext
2966 cat >>conftest.
$ac_ext <<_ACEOF
2967 /* end confdefs.h. */
2977 rm -f conftest.o conftest.obj
2978 if { (ac_try
="$ac_compile"
2980 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2981 *) ac_try_echo=$ac_try;;
2983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2984 (eval "$ac_compile") 2>&5
2986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2987 (exit $ac_status); }; then
2988 for ac_file in conftest.o conftest.obj conftest.*; do
2989 test -f "$ac_file" || continue;
2991 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2992 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2997 echo "$as_me: failed program was:" >&5
2998 sed 's/^/| /' conftest.$ac_ext >&5
3000 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3001 See \`config.log
' for more details." >&5
3002 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3003 See \`config.log' for more details.
" >&2;}
3004 { (exit 1); exit 1; }; }
3007 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3009 { echo "$as_me:$LINENO: result
: $ac_cv_objext" >&5
3010 echo "${ECHO_T}$ac_cv_objext" >&6; }
3011 OBJEXT=$ac_cv_objext
3013 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler
" >&5
3014 echo $ECHO_N "checking whether we are using the GNU C compiler...
$ECHO_C" >&6; }
3015 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3016 echo $ECHO_N "(cached
) $ECHO_C" >&6
3018 cat >conftest.$ac_ext <<_ACEOF
3021 cat confdefs.h >>conftest.$ac_ext
3022 cat >>conftest.$ac_ext <<_ACEOF
3023 /* end confdefs.h. */
3036 rm -f conftest.$ac_objext
3037 if { (ac_try="$ac_compile"
3039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3040 *) ac_try_echo=$ac_try;;
3042 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3043 (eval "$ac_compile") 2>conftest.er1
3045 grep -v '^ *+' conftest.er1 >conftest.err
3047 cat conftest.err >&5
3048 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3049 (exit $ac_status); } && {
3050 test -z "$ac_c_werror_flag" ||
3051 test ! -s conftest.err
3052 } && test -s conftest.$ac_objext; then
3055 echo "$as_me: failed program was
:" >&5
3056 sed 's/^/| /' conftest.$ac_ext >&5
3061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3062 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3065 { echo "$as_me:$LINENO: result
: $ac_cv_c_compiler_gnu" >&5
3066 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3067 GCC=`test $ac_compiler_gnu = yes && echo yes`
3068 ac_test_CFLAGS=${CFLAGS+set}
3069 ac_save_CFLAGS=$CFLAGS
3070 { echo "$as_me:$LINENO: checking whether
$CC accepts
-g" >&5
3071 echo $ECHO_N "checking whether
$CC accepts
-g...
$ECHO_C" >&6; }
3072 if test "${ac_cv_prog_cc_g+set}" = set; then
3073 echo $ECHO_N "(cached
) $ECHO_C" >&6
3075 ac_save_c_werror_flag=$ac_c_werror_flag
3076 ac_c_werror_flag=yes
3079 cat >conftest.$ac_ext <<_ACEOF
3082 cat confdefs.h >>conftest.$ac_ext
3083 cat >>conftest.$ac_ext <<_ACEOF
3084 /* end confdefs.h. */
3094 rm -f conftest.$ac_objext
3095 if { (ac_try="$ac_compile"
3097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3098 *) ac_try_echo=$ac_try;;
3100 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3101 (eval "$ac_compile") 2>conftest.er1
3103 grep -v '^ *+' conftest.er1 >conftest.err
3105 cat conftest.err >&5
3106 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3107 (exit $ac_status); } && {
3108 test -z "$ac_c_werror_flag" ||
3109 test ! -s conftest.err
3110 } && test -s conftest.$ac_objext; then
3113 echo "$as_me: failed program was
:" >&5
3114 sed 's/^/| /' conftest.$ac_ext >&5
3117 cat >conftest.$ac_ext <<_ACEOF
3120 cat confdefs.h >>conftest.$ac_ext
3121 cat >>conftest.$ac_ext <<_ACEOF
3122 /* end confdefs.h. */
3132 rm -f conftest.$ac_objext
3133 if { (ac_try="$ac_compile"
3135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3136 *) ac_try_echo=$ac_try;;
3138 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3139 (eval "$ac_compile") 2>conftest.er1
3141 grep -v '^ *+' conftest.er1 >conftest.err
3143 cat conftest.err >&5
3144 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3145 (exit $ac_status); } && {
3146 test -z "$ac_c_werror_flag" ||
3147 test ! -s conftest.err
3148 } && test -s conftest.$ac_objext; then
3151 echo "$as_me: failed program was
:" >&5
3152 sed 's/^/| /' conftest.$ac_ext >&5
3154 ac_c_werror_flag=$ac_save_c_werror_flag
3156 cat >conftest.$ac_ext <<_ACEOF
3159 cat confdefs.h >>conftest.$ac_ext
3160 cat >>conftest.$ac_ext <<_ACEOF
3161 /* end confdefs.h. */
3171 rm -f conftest.$ac_objext
3172 if { (ac_try="$ac_compile"
3174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3175 *) ac_try_echo=$ac_try;;
3177 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3178 (eval "$ac_compile") 2>conftest.er1
3180 grep -v '^ *+' conftest.er1 >conftest.err
3182 cat conftest.err >&5
3183 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3184 (exit $ac_status); } && {
3185 test -z "$ac_c_werror_flag" ||
3186 test ! -s conftest.err
3187 } && test -s conftest.$ac_objext; then
3190 echo "$as_me: failed program was
:" >&5
3191 sed 's/^/| /' conftest.$ac_ext >&5
3196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3203 ac_c_werror_flag=$ac_save_c_werror_flag
3205 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_g" >&5
3206 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3207 if test "$ac_test_CFLAGS" = set; then
3208 CFLAGS=$ac_save_CFLAGS
3209 elif test $ac_cv_prog_cc_g = yes; then
3210 if test "$GCC" = yes; then
3216 if test "$GCC" = yes; then
3222 { echo "$as_me:$LINENO: checking
for $CC option to accept ISO C89
" >&5
3223 echo $ECHO_N "checking
for $CC option to accept ISO C89...
$ECHO_C" >&6; }
3224 if test "${ac_cv_prog_cc_c89+set}" = set; then
3225 echo $ECHO_N "(cached
) $ECHO_C" >&6
3227 ac_cv_prog_cc_c89=no
3229 cat >conftest.$ac_ext <<_ACEOF
3232 cat confdefs.h >>conftest.$ac_ext
3233 cat >>conftest.$ac_ext <<_ACEOF
3234 /* end confdefs.h. */
3237 #include <sys/types.h>
3238 #include <sys/stat.h>
3239 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3240 struct buf { int x; };
3241 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3242 static char *e (p, i)
3248 static char *f (char * (*g) (char **, int), char **p, ...)
3253 s = g (p, va_arg (v,int));
3258 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3259 function prototypes and stuff, but not '\xHH' hex character constants.
3260 These don't provoke an error unfortunately, instead are silently treated
3261 as 'x'. The following induces an error, until -std is added to get
3262 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3263 array size at least. It's necessary to write '\x00'==0 to get something
3264 that's true only with -std. */
3265 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3267 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3268 inside strings and character constants. */
3270 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3272 int test (int i, double x);
3273 struct s1 {int (*f) (int a);};
3274 struct s2 {int (*f) (double a);};
3275 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3281 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3286 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3287 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3289 CC="$ac_save_CC $ac_arg"
3290 rm -f conftest.$ac_objext
3291 if { (ac_try="$ac_compile"
3293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3294 *) ac_try_echo=$ac_try;;
3296 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3297 (eval "$ac_compile") 2>conftest.er1
3299 grep -v '^ *+' conftest.er1 >conftest.err
3301 cat conftest.err >&5
3302 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3303 (exit $ac_status); } && {
3304 test -z "$ac_c_werror_flag" ||
3305 test ! -s conftest.err
3306 } && test -s conftest.$ac_objext; then
3307 ac_cv_prog_cc_c89=$ac_arg
3309 echo "$as_me: failed program was
:" >&5
3310 sed 's/^/| /' conftest.$ac_ext >&5
3315 rm -f core conftest.err conftest.$ac_objext
3316 test "x
$ac_cv_prog_cc_c89" != "xno
" && break
3318 rm -f conftest.$ac_ext
3323 case "x
$ac_cv_prog_cc_c89" in
3325 { echo "$as_me:$LINENO: result
: none needed
" >&5
3326 echo "${ECHO_T}none needed
" >&6; } ;;
3328 { echo "$as_me:$LINENO: result
: unsupported
" >&5
3329 echo "${ECHO_T}unsupported
" >&6; } ;;
3331 CC="$CC $ac_cv_prog_cc_c89"
3332 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_c89" >&5
3333 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3338 ac_cpp='$CPP $CPPFLAGS'
3339 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3340 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3341 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3342 DEPDIR="${am__leading_dot}deps
"
3344 ac_config_commands="$ac_config_commands depfiles
"
3347 am_make=${MAKE-make}
3348 cat > confinc << 'END'
3353 # If we don't find an include directive, just comment out the code.
3354 { echo "$as_me:$LINENO: checking
for style of include used by
$am_make" >&5
3355 echo $ECHO_N "checking
for style of include used by
$am_make...
$ECHO_C" >&6; }
3359 # First try GNU make style include.
3360 echo "include confinc" > confmf
3361 # We grep out `Entering directory' and `Leaving directory'
3362 # messages which can occur if `w' ends up in MAKEFLAGS.
3363 # In particular we don't look at `^make:' because GNU make might
3364 # be invoked under some other name (usually "gmake"), in which
3365 # case it prints its new name instead of `make'.
3366 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3371 # Now try BSD make style include.
3372 if test "$am__include" = "#"; then
3373 echo '.include "confinc"' > confmf
3374 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3375 am__include
=.include
3382 { echo "$as_me:$LINENO: result: $_am_result" >&5
3383 echo "${ECHO_T}$_am_result" >&6; }
3384 rm -f confinc confmf
3386 # Check whether --enable-dependency-tracking was given.
3387 if test "${enable_dependency_tracking+set}" = set; then
3388 enableval
=$enable_dependency_tracking;
3391 if test "x$enable_dependency_tracking" != xno
; then
3392 am_depcomp
="$ac_aux_dir/depcomp"
3395 if test "x$enable_dependency_tracking" != xno; then
3405 depcc
="$CC" am_compiler_list
=
3407 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3408 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3409 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3410 echo $ECHO_N "(cached) $ECHO_C" >&6
3412 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3413 # We make a subdir and do the tests there. Otherwise we can end up
3414 # making bogus files that we don't know about and never remove. For
3415 # instance it was reported that on HP-UX the gcc test will end up
3416 # making a dummy file named `D' -- because `-MD' means `put the output
3419 # Copy depcomp to subdir because otherwise we won't find it if we're
3420 # using a relative directory.
3421 cp "$am_depcomp" conftest.dir
3423 # We will build objects and dependencies in a subdirectory because
3424 # it helps to detect inapplicable dependency modes. For instance
3425 # both Tru64's cc and ICC support -MD to output dependencies as a
3426 # side effect of compilation, but ICC will put the dependencies in
3427 # the current directory while Tru64 will put them in the object
3431 am_cv_CC_dependencies_compiler_type
=none
3432 if test "$am_compiler_list" = ""; then
3433 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3435 for depmode
in $am_compiler_list; do
3436 # Setup a source with many dependencies, because some compilers
3437 # like to wrap large dependency lists on column 80 (with \), and
3438 # we should not choose a depcomp mode which is confused by this.
3440 # We need to recreate these files for each test, as the compiler may
3441 # overwrite some of them when testing with obscure command lines.
3442 # This happens at least with the AIX C compiler.
3444 for i
in 1 2 3 4 5 6; do
3445 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
3446 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3447 # Solaris 8's {/usr,}/bin/sh.
3448 touch sub
/conftst
$i.h
3450 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3454 # after this tag, mechanisms are not by side-effect, so they'll
3455 # only be used when explicitly requested
3456 if test "x$enable_dependency_tracking" = xyes
; then
3464 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3465 # mode. It turns out that the SunPro C++ compiler does not properly
3466 # handle `-M -o', and we need to detect this.
3467 if depmode
=$depmode \
3468 source=sub
/conftest.c object
=sub
/conftest.
${OBJEXT-o} \
3469 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
3470 $SHELL .
/depcomp
$depcc -c -o sub
/conftest.
${OBJEXT-o} sub
/conftest.c \
3471 >/dev
/null
2>conftest.err
&&
3472 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
3473 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
3474 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
> /dev
/null
2>&1 &&
3475 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
3476 # icc doesn't choke on unknown options, it will just issue warnings
3477 # or remarks (even with -Werror). So we grep stderr for any message
3478 # that says an option was ignored or not supported.
3479 # When given -MP, icc 7.0 and 7.1 complain thusly:
3480 # icc: Command line warning: ignoring option '-M'; no argument required
3481 # The diagnosis changed in icc 8.0:
3482 # icc: Command line remark: option '-MP' not supported
3483 if (grep 'ignoring option' conftest.err ||
3484 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
3485 am_cv_CC_dependencies_compiler_type
=$depmode
3494 am_cv_CC_dependencies_compiler_type
=none
3498 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3499 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3500 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
3503 test "x$enable_dependency_tracking" != xno \
3504 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
3506 am__fastdepCC_FALSE
='#'
3508 am__fastdepCC_TRUE
='#'
3509 am__fastdepCC_FALSE
=
3515 { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3516 echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3521 macro_version
='2.2.6'
3522 macro_revision
='1.3012'
3536 ltmain
="$ac_aux_dir/ltmain.sh"
3538 # Make sure we can run config.sub.
3539 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
3540 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3541 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3542 { (exit 1); exit 1; }; }
3544 { echo "$as_me:$LINENO: checking build system type" >&5
3545 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3546 if test "${ac_cv_build+set}" = set; then
3547 echo $ECHO_N "(cached) $ECHO_C" >&6
3549 ac_build_alias
=$build_alias
3550 test "x$ac_build_alias" = x
&&
3551 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
3552 test "x$ac_build_alias" = x
&&
3553 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3554 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3555 { (exit 1); exit 1; }; }
3556 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3557 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3558 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3559 { (exit 1); exit 1; }; }
3562 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3563 echo "${ECHO_T}$ac_cv_build" >&6; }
3564 case $ac_cv_build in
3566 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3567 echo "$as_me: error: invalid value of canonical build" >&2;}
3568 { (exit 1); exit 1; }; };;
3571 ac_save_IFS
=$IFS; IFS
='-'
3577 # Remember, the first character of IFS is used to create $*,
3578 # except with old shells:
3581 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
3584 { echo "$as_me:$LINENO: checking host system type" >&5
3585 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3586 if test "${ac_cv_host+set}" = set; then
3587 echo $ECHO_N "(cached) $ECHO_C" >&6
3589 if test "x$host_alias" = x
; then
3590 ac_cv_host
=$ac_cv_build
3592 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3593 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3594 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3595 { (exit 1); exit 1; }; }
3599 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3600 echo "${ECHO_T}$ac_cv_host" >&6; }
3603 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3604 echo "$as_me: error: invalid value of canonical host" >&2;}
3605 { (exit 1); exit 1; }; };;
3608 ac_save_IFS
=$IFS; IFS
='-'
3614 # Remember, the first character of IFS is used to create $*,
3615 # except with old shells:
3618 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
3621 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3622 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3623 if test "${ac_cv_path_SED+set}" = set; then
3624 echo $ECHO_N "(cached) $ECHO_C" >&6
3626 ac_script
=s
/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
/
3627 for ac_i
in 1 2 3 4 5 6 7; do
3628 ac_script
="$ac_script$as_nl$ac_script"
3630 echo "$ac_script" |
sed 99q
>conftest.
sed
3631 $as_unset ac_script || ac_script
=
3632 # Extract the first word of "sed gsed" to use in msg output
3633 if test -z "$SED"; then
3634 set dummy
sed gsed
; ac_prog_name
=$2
3635 if test "${ac_cv_path_SED+set}" = set; then
3636 echo $ECHO_N "(cached) $ECHO_C" >&6
3638 ac_path_SED_found
=false
3639 # Loop through the user's path and test for each of PROGNAME-LIST
3640 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3644 test -z "$as_dir" && as_dir
=.
3645 for ac_prog
in sed gsed
; do
3646 for ac_exec_ext
in '' $ac_executable_extensions; do
3647 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
3648 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } ||
continue
3649 # Check for GNU ac_path_SED and select it if it is found.
3650 # Check for GNU $ac_path_SED
3651 case `"$ac_path_SED" --version 2>&1` in
3653 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
3656 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3659 cat "conftest.in" "conftest.in" >"conftest.tmp"
3660 mv "conftest.tmp" "conftest.in"
3661 cp "conftest.in" "conftest.nl"
3662 echo '' >> "conftest.nl"
3663 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3664 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3665 ac_count
=`expr $ac_count + 1`
3666 if test $ac_count -gt ${ac_path_SED_max-0}; then
3667 # Best one so far, save it but keep looking for a better one
3668 ac_cv_path_SED
="$ac_path_SED"
3669 ac_path_SED_max
=$ac_count
3671 # 10*(2^10) chars as input seems more than enough
3672 test $ac_count -gt 10 && break
3674 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3678 $ac_path_SED_found && break 3
3688 SED
="$ac_cv_path_SED"
3689 if test -z "$SED"; then
3690 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
3691 echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
3692 { (exit 1); exit 1; }; }
3700 { echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
3701 echo "${ECHO_T}$ac_cv_path_SED" >&6; }
3702 SED
="$ac_cv_path_SED"
3705 test -z "$SED" && SED
=sed
3706 Xsed
="$SED -e 1s/^X//"
3718 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3719 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3720 if test "${ac_cv_path_GREP+set}" = set; then
3721 echo $ECHO_N "(cached) $ECHO_C" >&6
3723 # Extract the first word of "grep ggrep" to use in msg output
3724 if test -z "$GREP"; then
3725 set dummy
grep ggrep
; ac_prog_name
=$2
3726 if test "${ac_cv_path_GREP+set}" = set; then
3727 echo $ECHO_N "(cached) $ECHO_C" >&6
3729 ac_path_GREP_found
=false
3730 # Loop through the user's path and test for each of PROGNAME-LIST
3731 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3732 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3735 test -z "$as_dir" && as_dir
=.
3736 for ac_prog
in grep ggrep
; do
3737 for ac_exec_ext
in '' $ac_executable_extensions; do
3738 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3739 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
3740 # Check for GNU ac_path_GREP and select it if it is found.
3741 # Check for GNU $ac_path_GREP
3742 case `"$ac_path_GREP" --version 2>&1` in
3744 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3747 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3750 cat "conftest.in" "conftest.in" >"conftest.tmp"
3751 mv "conftest.tmp" "conftest.in"
3752 cp "conftest.in" "conftest.nl"
3753 echo 'GREP' >> "conftest.nl"
3754 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3755 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3756 ac_count
=`expr $ac_count + 1`
3757 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3758 # Best one so far, save it but keep looking for a better one
3759 ac_cv_path_GREP
="$ac_path_GREP"
3760 ac_path_GREP_max
=$ac_count
3762 # 10*(2^10) chars as input seems more than enough
3763 test $ac_count -gt 10 && break
3765 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3769 $ac_path_GREP_found && break 3
3779 GREP
="$ac_cv_path_GREP"
3780 if test -z "$GREP"; then
3781 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3782 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3783 { (exit 1); exit 1; }; }
3787 ac_cv_path_GREP
=$GREP
3792 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3793 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3794 GREP
="$ac_cv_path_GREP"
3797 { echo "$as_me:$LINENO: checking for egrep" >&5
3798 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3799 if test "${ac_cv_path_EGREP+set}" = set; then
3800 echo $ECHO_N "(cached) $ECHO_C" >&6
3802 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
3803 then ac_cv_path_EGREP
="$GREP -E"
3805 # Extract the first word of "egrep" to use in msg output
3806 if test -z "$EGREP"; then
3807 set dummy
egrep; ac_prog_name
=$2
3808 if test "${ac_cv_path_EGREP+set}" = set; then
3809 echo $ECHO_N "(cached) $ECHO_C" >&6
3811 ac_path_EGREP_found
=false
3812 # Loop through the user's path and test for each of PROGNAME-LIST
3813 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3814 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3817 test -z "$as_dir" && as_dir
=.
3818 for ac_prog
in egrep; do
3819 for ac_exec_ext
in '' $ac_executable_extensions; do
3820 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
3821 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
3822 # Check for GNU ac_path_EGREP and select it if it is found.
3823 # Check for GNU $ac_path_EGREP
3824 case `"$ac_path_EGREP" --version 2>&1` in
3826 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
3829 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3832 cat "conftest.in" "conftest.in" >"conftest.tmp"
3833 mv "conftest.tmp" "conftest.in"
3834 cp "conftest.in" "conftest.nl"
3835 echo 'EGREP' >> "conftest.nl"
3836 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3837 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3838 ac_count
=`expr $ac_count + 1`
3839 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3840 # Best one so far, save it but keep looking for a better one
3841 ac_cv_path_EGREP
="$ac_path_EGREP"
3842 ac_path_EGREP_max
=$ac_count
3844 # 10*(2^10) chars as input seems more than enough
3845 test $ac_count -gt 10 && break
3847 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3851 $ac_path_EGREP_found && break 3
3861 EGREP
="$ac_cv_path_EGREP"
3862 if test -z "$EGREP"; then
3863 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3864 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3865 { (exit 1); exit 1; }; }
3869 ac_cv_path_EGREP
=$EGREP
3875 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3876 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3877 EGREP
="$ac_cv_path_EGREP"
3880 { echo "$as_me:$LINENO: checking for fgrep" >&5
3881 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6; }
3882 if test "${ac_cv_path_FGREP+set}" = set; then
3883 echo $ECHO_N "(cached) $ECHO_C" >&6
3885 if echo 'ab*c' |
$GREP -F 'ab*c' >/dev
/null
2>&1
3886 then ac_cv_path_FGREP
="$GREP -F"
3888 # Extract the first word of "fgrep" to use in msg output
3889 if test -z "$FGREP"; then
3890 set dummy fgrep
; ac_prog_name
=$2
3891 if test "${ac_cv_path_FGREP+set}" = set; then
3892 echo $ECHO_N "(cached) $ECHO_C" >&6
3894 ac_path_FGREP_found
=false
3895 # Loop through the user's path and test for each of PROGNAME-LIST
3896 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3897 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3900 test -z "$as_dir" && as_dir
=.
3901 for ac_prog
in fgrep
; do
3902 for ac_exec_ext
in '' $ac_executable_extensions; do
3903 ac_path_FGREP
="$as_dir/$ac_prog$ac_exec_ext"
3904 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } ||
continue
3905 # Check for GNU ac_path_FGREP and select it if it is found.
3906 # Check for GNU $ac_path_FGREP
3907 case `"$ac_path_FGREP" --version 2>&1` in
3909 ac_cv_path_FGREP
="$ac_path_FGREP" ac_path_FGREP_found
=:;;
3912 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3915 cat "conftest.in" "conftest.in" >"conftest.tmp"
3916 mv "conftest.tmp" "conftest.in"
3917 cp "conftest.in" "conftest.nl"
3918 echo 'FGREP' >> "conftest.nl"
3919 "$ac_path_FGREP" FGREP
< "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3920 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3921 ac_count
=`expr $ac_count + 1`
3922 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
3923 # Best one so far, save it but keep looking for a better one
3924 ac_cv_path_FGREP
="$ac_path_FGREP"
3925 ac_path_FGREP_max
=$ac_count
3927 # 10*(2^10) chars as input seems more than enough
3928 test $ac_count -gt 10 && break
3930 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3934 $ac_path_FGREP_found && break 3
3944 FGREP
="$ac_cv_path_FGREP"
3945 if test -z "$FGREP"; then
3946 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3947 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3948 { (exit 1); exit 1; }; }
3952 ac_cv_path_FGREP
=$FGREP
3958 { echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
3959 echo "${ECHO_T}$ac_cv_path_FGREP" >&6; }
3960 FGREP
="$ac_cv_path_FGREP"
3963 test -z "$GREP" && GREP
=grep
3983 # Check whether --with-gnu-ld was given.
3984 if test "${with_gnu_ld+set}" = set; then
3985 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
3991 if test "$GCC" = yes; then
3992 # Check if gcc -print-prog-name=ld gives a path.
3993 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3994 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
3997 # gcc leaves a trailing carriage return which upsets mingw
3998 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4000 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
4003 # Accept absolute paths.
4005 re_direlt
='/[^/][^/]*/\.\./'
4006 # Canonicalize the pathname of ld
4007 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4008 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
4009 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4011 test -z "$LD" && LD
="$ac_prog"
4014 # If it fails, then pretend we aren't using GCC.
4018 # If it is relative, then search for the first ld in PATH.
4022 elif test "$with_gnu_ld" = yes; then
4023 { echo "$as_me:$LINENO: checking for GNU ld" >&5
4024 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4026 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4027 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4029 if test "${lt_cv_path_LD+set}" = set; then
4030 echo $ECHO_N "(cached) $ECHO_C" >&6
4032 if test -z "$LD"; then
4033 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
4034 for ac_dir
in $PATH; do
4036 test -z "$ac_dir" && ac_dir
=.
4037 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
4038 lt_cv_path_LD
="$ac_dir/$ac_prog"
4039 # Check to see if the program is GNU ld. I'd rather use --version,
4040 # but apparently some variants of GNU ld only accept -v.
4041 # Break only if it was the GNU/non-GNU ld that we prefer.
4042 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4043 *GNU
* |
*'with BFD'*)
4044 test "$with_gnu_ld" != no
&& break
4047 test "$with_gnu_ld" != yes && break
4054 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
4059 if test -n "$LD"; then
4060 { echo "$as_me:$LINENO: result: $LD" >&5
4061 echo "${ECHO_T}$LD" >&6; }
4063 { echo "$as_me:$LINENO: result: no" >&5
4064 echo "${ECHO_T}no" >&6; }
4066 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4067 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4068 { (exit 1); exit 1; }; }
4069 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4070 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4071 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4072 echo $ECHO_N "(cached) $ECHO_C" >&6
4074 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4075 case `$LD -v 2>&1 </dev/null` in
4076 *GNU
* |
*'with BFD'*)
4077 lt_cv_prog_gnu_ld
=yes
4080 lt_cv_prog_gnu_ld
=no
4084 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4085 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4086 with_gnu_ld
=$lt_cv_prog_gnu_ld
4096 { echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4097 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6; }
4098 if test "${lt_cv_path_NM+set}" = set; then
4099 echo $ECHO_N "(cached) $ECHO_C" >&6
4101 if test -n "$NM"; then
4102 # Let the user override the test.
4105 lt_nm_to_check
="${ac_tool_prefix}nm"
4106 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4107 lt_nm_to_check
="$lt_nm_to_check nm"
4109 for lt_tmp_nm
in $lt_nm_to_check; do
4110 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
4111 for ac_dir
in $PATH /usr
/ccs
/bin
/elf
/usr
/ccs
/bin
/usr
/ucb
/bin
; do
4113 test -z "$ac_dir" && ac_dir
=.
4114 tmp_nm
="$ac_dir/$lt_tmp_nm"
4115 if test -f "$tmp_nm" ||
test -f "$tmp_nm$ac_exeext" ; then
4116 # Check to see if the nm accepts a BSD-compat flag.
4117 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4118 # nm: unknown option "B" ignored
4119 # Tru64's nm complains that /dev/null is an invalid object file
4120 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4121 */dev
/null
* |
*'Invalid file or object type'*)
4122 lt_cv_path_NM
="$tmp_nm -B"
4126 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4128 lt_cv_path_NM
="$tmp_nm -p"
4132 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4133 continue # so that we can try to find one that supports BSD flags
4142 : ${lt_cv_path_NM=no}
4145 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4146 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4147 if test "$lt_cv_path_NM" != "no"; then
4150 # Didn't find any BSD compatible name lister, look for dumpbin.
4151 if test -n "$ac_tool_prefix"; then
4152 for ac_prog
in "dumpbin -symbols" "link -dump -symbols"
4154 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4155 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4156 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4157 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4158 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4159 echo $ECHO_N "(cached) $ECHO_C" >&6
4161 if test -n "$DUMPBIN"; then
4162 ac_cv_prog_DUMPBIN
="$DUMPBIN" # Let the user override the test.
4164 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4168 test -z "$as_dir" && as_dir
=.
4169 for ac_exec_ext
in '' $ac_executable_extensions; do
4170 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4171 ac_cv_prog_DUMPBIN
="$ac_tool_prefix$ac_prog"
4172 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4181 DUMPBIN
=$ac_cv_prog_DUMPBIN
4182 if test -n "$DUMPBIN"; then
4183 { echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4184 echo "${ECHO_T}$DUMPBIN" >&6; }
4186 { echo "$as_me:$LINENO: result: no" >&5
4187 echo "${ECHO_T}no" >&6; }
4191 test -n "$DUMPBIN" && break
4194 if test -z "$DUMPBIN"; then
4195 ac_ct_DUMPBIN
=$DUMPBIN
4196 for ac_prog
in "dumpbin -symbols" "link -dump -symbols"
4198 # Extract the first word of "$ac_prog", so it can be a program name with args.
4199 set dummy
$ac_prog; ac_word
=$2
4200 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4201 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4202 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4203 echo $ECHO_N "(cached) $ECHO_C" >&6
4205 if test -n "$ac_ct_DUMPBIN"; then
4206 ac_cv_prog_ac_ct_DUMPBIN
="$ac_ct_DUMPBIN" # Let the user override the test.
4208 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4212 test -z "$as_dir" && as_dir
=.
4213 for ac_exec_ext
in '' $ac_executable_extensions; do
4214 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4215 ac_cv_prog_ac_ct_DUMPBIN
="$ac_prog"
4216 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4225 ac_ct_DUMPBIN
=$ac_cv_prog_ac_ct_DUMPBIN
4226 if test -n "$ac_ct_DUMPBIN"; then
4227 { echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4228 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6; }
4230 { echo "$as_me:$LINENO: result: no" >&5
4231 echo "${ECHO_T}no" >&6; }
4235 test -n "$ac_ct_DUMPBIN" && break
4238 if test "x$ac_ct_DUMPBIN" = x
; then
4241 case $cross_compiling:$ac_tool_warned in
4243 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4244 whose name does not start with the host triplet. If you think this
4245 configuration is useful to you, please write to autoconf@gnu.org." >&5
4246 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4247 whose name does not start with the host triplet. If you think this
4248 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4249 ac_tool_warned
=yes ;;
4251 DUMPBIN
=$ac_ct_DUMPBIN
4256 if test "$DUMPBIN" != ":"; then
4260 test -z "$NM" && NM
=nm
4267 { echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4268 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6; }
4269 if test "${lt_cv_nm_interface+set}" = set; then
4270 echo $ECHO_N "(cached) $ECHO_C" >&6
4272 lt_cv_nm_interface
="BSD nm"
4273 echo "int some_variable = 0;" > conftest.
$ac_ext
4274 (eval echo "\"\$as_me:4274: $ac_compile\"" >&5)
4275 (eval "$ac_compile" 2>conftest.err
)
4276 cat conftest.err
>&5
4277 (eval echo "\"\$as_me:4277: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4278 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err
> conftest.out
)
4279 cat conftest.err
>&5
4280 (eval echo "\"\$as_me:4280: output\"" >&5)
4281 cat conftest.out
>&5
4282 if $GREP 'External.*some_variable' conftest.out
> /dev
/null
; then
4283 lt_cv_nm_interface
="MS dumpbin"
4287 { echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4288 echo "${ECHO_T}$lt_cv_nm_interface" >&6; }
4290 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4291 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4293 if test "$LN_S" = "ln -s"; then
4294 { echo "$as_me:$LINENO: result: yes" >&5
4295 echo "${ECHO_T}yes" >&6; }
4297 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4298 echo "${ECHO_T}no, using $LN_S" >&6; }
4301 # find the maximum length of command line arguments
4302 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4303 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
4304 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4305 echo $ECHO_N "(cached) $ECHO_C" >&6
4312 # On DJGPP, this test can blow up pretty badly due to problems in libc
4313 # (any single argument exceeding 2000 bytes causes a buffer overrun
4314 # during glob expansion). Even if it were fixed, the result of this
4315 # check would be larger than it should be.
4316 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
4320 # Under GNU Hurd, this test is not required because there is
4321 # no limit to the length of command line arguments.
4322 # Libtool will interpret -1 as no limit whatsoever
4323 lt_cv_sys_max_cmd_len
=-1;
4326 cygwin
* | mingw
* | cegcc
*)
4327 # On Win9x/ME, this test blows up -- it succeeds, but takes
4328 # about 5 minutes as the teststring grows exponentially.
4329 # Worse, since 9x/ME are not pre-emptively multitasking,
4330 # you end up with a "frozen" computer, even though with patience
4331 # the test eventually succeeds (with a max line length of 256k).
4332 # Instead, let's just punt: use the minimum linelength reported by
4333 # all of the supported platforms: 8192 (on NT/2K/XP).
4334 lt_cv_sys_max_cmd_len
=8192;
4338 # On AmigaOS with pdksh, this test takes hours, literally.
4339 # So we just punt and use a minimum line length of 8192.
4340 lt_cv_sys_max_cmd_len
=8192;
4343 netbsd
* | freebsd
* | openbsd
* | darwin
* | dragonfly
*)
4344 # This has been around since 386BSD, at least. Likely further.
4345 if test -x /sbin
/sysctl
; then
4346 lt_cv_sys_max_cmd_len
=`/sbin/sysctl -n kern.argmax`
4347 elif test -x /usr
/sbin
/sysctl
; then
4348 lt_cv_sys_max_cmd_len
=`/usr/sbin/sysctl -n kern.argmax`
4350 lt_cv_sys_max_cmd_len
=65536 # usable default for all BSDs
4352 # And add a safety zone
4353 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
4354 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
4358 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4359 lt_cv_sys_max_cmd_len
=196608
4363 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4364 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4365 # nice to cause kernel panics so lets avoid the loop below.
4366 # First set a reasonable default.
4367 lt_cv_sys_max_cmd_len
=16384
4369 if test -x /sbin
/sysconfig
; then
4370 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4371 *1*) lt_cv_sys_max_cmd_len
=-1 ;;
4376 lt_cv_sys_max_cmd_len
=102400
4378 sysv5
* | sco5v6
* | sysv4.2uw2
*)
4379 kargmax
=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4380 if test -n "$kargmax"; then
4381 lt_cv_sys_max_cmd_len
=`echo $kargmax | sed 's/.*[ ]//'`
4383 lt_cv_sys_max_cmd_len
=32768
4387 lt_cv_sys_max_cmd_len
=`(getconf ARG_MAX) 2> /dev/null`
4388 if test -n "$lt_cv_sys_max_cmd_len"; then
4389 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
4390 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
4392 # Make teststring a little bigger before we do anything with it.
4393 # a 1K string should be a reasonable start.
4394 for i
in 1 2 3 4 5 6 7 8 ; do
4395 teststring
=$teststring$teststring
4397 SHELL
=${SHELL-${CONFIG_SHELL-/bin/sh}}
4398 # If test is not a shell built-in, we'll probably end up computing a
4399 # maximum length that is only half of the actual maximum length, but
4401 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4402 = "XX$teststring$teststring"; } >/dev
/null
2>&1 &&
4403 test $i != 17 # 1/2 MB should be enough
4406 teststring
=$teststring$teststring
4408 # Only check the string length outside the loop.
4409 lt_cv_sys_max_cmd_len
=`expr "X$teststring" : ".*" 2>&1`
4411 # Add a significant safety factor because C++ compilers can tack on
4412 # massive amounts of additional arguments before passing them to the
4413 # linker. It appears as though 1/2 is a usable value.
4414 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
4421 if test -n $lt_cv_sys_max_cmd_len ; then
4422 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4423 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
4425 { echo "$as_me:$LINENO: result: none" >&5
4426 echo "${ECHO_T}none" >&6; }
4428 max_cmd_len
=$lt_cv_sys_max_cmd_len
4439 { echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4440 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6; }
4441 # Try some XSI features
4444 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4446 && eval 'test $(( 1 + 1 )) -eq 2 \
4447 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4449 { echo "$as_me:$LINENO: result
: $xsi_shell" >&5
4450 echo "${ECHO_T}$xsi_shell" >&6; }
4453 { echo "$as_me:$LINENO: checking whether the shell understands
\"+=\"" >&5
4454 echo $ECHO_N "checking whether the shell understands
\"+=\"...
$ECHO_C" >&6; }
4456 ( foo=bar; set foo baz; eval "$1+=\
$2" && test "$foo" = barbaz ) \
4458 && lt_shell_append=yes
4459 { echo "$as_me:$LINENO: result
: $lt_shell_append" >&5
4460 echo "${ECHO_T}$lt_shell_append" >&6; }
4463 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4473 # test EBCDIC or ASCII
4474 case `echo X|tr X '\101'` in
4475 A) # ASCII based system
4476 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4477 lt_SP2NL='tr \040 \012'
4478 lt_NL2SP='tr \015\012 \040\040'
4480 *) # EBCDIC based system
4481 lt_SP2NL='tr \100 \n'
4482 lt_NL2SP='tr \r\n \100\100'
4494 { echo "$as_me:$LINENO: checking
for $LD option to reload object files
" >&5
4495 echo $ECHO_N "checking
for $LD option to reload object files...
$ECHO_C" >&6; }
4496 if test "${lt_cv_ld_reload_flag+set}" = set; then
4497 echo $ECHO_N "(cached
) $ECHO_C" >&6
4499 lt_cv_ld_reload_flag='-r'
4501 { echo "$as_me:$LINENO: result
: $lt_cv_ld_reload_flag" >&5
4502 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4503 reload_flag=$lt_cv_ld_reload_flag
4504 case $reload_flag in
4506 *) reload_flag=" $reload_flag" ;;
4508 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4511 if test "$GCC" = yes; then
4512 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4514 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4527 if test -n "$ac_tool_prefix"; then
4528 # Extract the first word of "${ac_tool_prefix}objdump
", so it can be a program name with args.
4529 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4530 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
4531 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
4532 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
4533 echo $ECHO_N "(cached
) $ECHO_C" >&6
4535 if test -n "$OBJDUMP"; then
4536 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4542 test -z "$as_dir" && as_dir=.
4543 for ac_exec_ext in '' $ac_executable_extensions; do
4544 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4545 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump
"
4546 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
4555 OBJDUMP=$ac_cv_prog_OBJDUMP
4556 if test -n "$OBJDUMP"; then
4557 { echo "$as_me:$LINENO: result
: $OBJDUMP" >&5
4558 echo "${ECHO_T}$OBJDUMP" >&6; }
4560 { echo "$as_me:$LINENO: result
: no
" >&5
4561 echo "${ECHO_T}no
" >&6; }
4566 if test -z "$ac_cv_prog_OBJDUMP"; then
4567 ac_ct_OBJDUMP=$OBJDUMP
4568 # Extract the first word of "objdump
", so it can be a program name with args.
4569 set dummy objdump; ac_word=$2
4570 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
4571 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
4572 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
4573 echo $ECHO_N "(cached
) $ECHO_C" >&6
4575 if test -n "$ac_ct_OBJDUMP"; then
4576 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4582 test -z "$as_dir" && as_dir=.
4583 for ac_exec_ext in '' $ac_executable_extensions; do
4584 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4585 ac_cv_prog_ac_ct_OBJDUMP="objdump
"
4586 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
4595 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4596 if test -n "$ac_ct_OBJDUMP"; then
4597 { echo "$as_me:$LINENO: result
: $ac_ct_OBJDUMP" >&5
4598 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
4600 { echo "$as_me:$LINENO: result
: no
" >&5
4601 echo "${ECHO_T}no
" >&6; }
4604 if test "x
$ac_ct_OBJDUMP" = x; then
4607 case $cross_compiling:$ac_tool_warned in
4609 { echo "$as_me:$LINENO: WARNING
: In the future
, Autoconf will not detect cross-tools
4610 whose name does not start with the
host triplet. If you think this
4611 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&5
4612 echo "$as_me: WARNING
: In the future
, Autoconf will not detect cross-tools
4613 whose name does not start with the
host triplet. If you think this
4614 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&2;}
4615 ac_tool_warned=yes ;;
4617 OBJDUMP=$ac_ct_OBJDUMP
4620 OBJDUMP="$ac_cv_prog_OBJDUMP"
4623 test -z "$OBJDUMP" && OBJDUMP=objdump
4633 { echo "$as_me:$LINENO: checking how to recognize dependent libraries
" >&5
4634 echo $ECHO_N "checking how to recognize dependent libraries...
$ECHO_C" >&6; }
4635 if test "${lt_cv_deplibs_check_method+set}" = set; then
4636 echo $ECHO_N "(cached
) $ECHO_C" >&6
4638 lt_cv_file_magic_cmd='$MAGIC_CMD'
4639 lt_cv_file_magic_test_file=
4640 lt_cv_deplibs_check_method='unknown'
4641 # Need to set the preceding variable on all platforms that support
4642 # interlibrary dependencies.
4643 # 'none' -- dependencies not supported.
4644 # `unknown' -- same as none, but documents that we really don't know.
4645 # 'pass_all' -- all dependencies passed with no checks.
4646 # 'test_compile' -- check by making test program.
4647 # 'file_magic [[regex]]' -- check by looking for files in library path
4648 # which responds to the $file_magic_cmd with a given extended regex.
4649 # If you have `file' or equivalent on your system and you're not sure
4650 # whether `pass_all' will *always* work, you probably want this one.
4654 lt_cv_deplibs_check_method=pass_all
4658 lt_cv_deplibs_check_method=pass_all
4662 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4663 lt_cv_file_magic_cmd='/usr/bin/file -L'
4664 lt_cv_file_magic_test_file=/shlib/libc.so
4668 # func_win32_libid is a shell function defined in ltmain.sh
4669 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4670 lt_cv_file_magic_cmd='func_win32_libid'
4674 # Base MSYS/MinGW do not provide the 'file' command needed by
4675 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4676 # unless we find 'file', for example because we are cross-compiling.
4677 if ( file / ) >/dev/null 2>&1; then
4678 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4679 lt_cv_file_magic_cmd='func_win32_libid'
4681 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4682 lt_cv_file_magic_cmd='$OBJDUMP -f'
4687 # use the weaker test based on 'objdump'. See mingw*.
4688 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4689 lt_cv_file_magic_cmd='$OBJDUMP -f'
4692 darwin* | rhapsody*)
4693 lt_cv_deplibs_check_method=pass_all
4696 freebsd* | dragonfly*)
4697 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4700 # Not sure whether the presence of OpenBSD here was a mistake.
4701 # Let's accept both of them until this is cleared up.
4702 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4703 lt_cv_file_magic_cmd=/usr/bin/file
4704 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4708 lt_cv_deplibs_check_method=pass_all
4713 lt_cv_deplibs_check_method=pass_all
4716 hpux10.20* | hpux11*)
4717 lt_cv_file_magic_cmd=/usr/bin/file
4720 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4721 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4724 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
4725 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4728 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4729 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4735 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4736 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4739 irix5* | irix6* | nonstopux*)
4741 *-32|*"-32 ") libmagic=32-bit;;
4742 *-n32|*"-n32 ") libmagic=N32;;
4743 *-64|*"-64 ") libmagic=64-bit;;
4744 *) libmagic=never-match;;
4746 lt_cv_deplibs_check_method=pass_all
4749 # This must be Linux ELF.
4750 linux* | k*bsd*-gnu)
4751 lt_cv_deplibs_check_method=pass_all
4755 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4756 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4758 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4763 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4764 lt_cv_file_magic_cmd=/usr/bin/file
4765 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4769 lt_cv_deplibs_check_method=pass_all
4773 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8
-powerpc"; then
4774 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4776 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4780 osf3* | osf4* | osf5*)
4781 lt_cv_deplibs_check_method=pass_all
4785 lt_cv_deplibs_check_method=pass_all
4789 lt_cv_deplibs_check_method=pass_all
4792 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4793 lt_cv_deplibs_check_method=pass_all
4797 case $host_vendor in
4799 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]'
4800 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4803 lt_cv_deplibs_check_method=pass_all
4806 lt_cv_file_magic_cmd='/bin/file'
4807 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4810 lt_cv_file_magic_cmd='/bin/file'
4811 lt_cv_deplibs_check_method="file_magic ELF
[0-9][0-9]*-bit [LM
]SB dynamic lib
"
4812 lt_cv_file_magic_test_file=/lib/libc.so
4815 lt_cv_deplibs_check_method=pass_all
4818 lt_cv_deplibs_check_method=pass_all
4824 lt_cv_deplibs_check_method=pass_all
4829 { echo "$as_me:$LINENO: result
: $lt_cv_deplibs_check_method" >&5
4830 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4831 file_magic_cmd=$lt_cv_file_magic_cmd
4832 deplibs_check_method=$lt_cv_deplibs_check_method
4833 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4846 if test -n "$ac_tool_prefix"; then
4847 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4848 set dummy ${ac_tool_prefix}ar; ac_word=$2
4849 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
4850 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
4851 if test "${ac_cv_prog_AR+set}" = set; then
4852 echo $ECHO_N "(cached
) $ECHO_C" >&6
4854 if test -n "$AR"; then
4855 ac_cv_prog_AR="$AR" # Let the user override the test.
4857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4861 test -z "$as_dir" && as_dir=.
4862 for ac_exec_ext in '' $ac_executable_extensions; do
4863 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4864 ac_cv_prog_AR="${ac_tool_prefix}ar"
4865 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
4875 if test -n "$AR"; then
4876 { echo "$as_me:$LINENO: result
: $AR" >&5
4877 echo "${ECHO_T}$AR" >&6; }
4879 { echo "$as_me:$LINENO: result
: no
" >&5
4880 echo "${ECHO_T}no
" >&6; }
4885 if test -z "$ac_cv_prog_AR"; then
4887 # Extract the first word of "ar", so it can be a program name with args.
4888 set dummy ar; ac_word=$2
4889 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
4890 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
4891 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4892 echo $ECHO_N "(cached
) $ECHO_C" >&6
4894 if test -n "$ac_ct_AR"; then
4895 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4901 test -z "$as_dir" && as_dir=.
4902 for ac_exec_ext in '' $ac_executable_extensions; do
4903 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4904 ac_cv_prog_ac_ct_AR="ar"
4905 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
4914 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4915 if test -n "$ac_ct_AR"; then
4916 { echo "$as_me:$LINENO: result
: $ac_ct_AR" >&5
4917 echo "${ECHO_T}$ac_ct_AR" >&6; }
4919 { echo "$as_me:$LINENO: result
: no
" >&5
4920 echo "${ECHO_T}no
" >&6; }
4923 if test "x
$ac_ct_AR" = x; then
4926 case $cross_compiling:$ac_tool_warned in
4928 { echo "$as_me:$LINENO: WARNING
: In the future
, Autoconf will not detect cross-tools
4929 whose name does not start with the
host triplet. If you think this
4930 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&5
4931 echo "$as_me: WARNING
: In the future
, Autoconf will not detect cross-tools
4932 whose name does not start with the
host triplet. If you think this
4933 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&2;}
4934 ac_tool_warned=yes ;;
4942 test -z "$AR" && AR=ar
4943 test -z "$AR_FLAGS" && AR_FLAGS=cru
4955 if test -n "$ac_tool_prefix"; then
4956 # Extract the first word of "${ac_tool_prefix}strip
", so it can be a program name with args.
4957 set dummy ${ac_tool_prefix}strip; ac_word=$2
4958 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
4959 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
4960 if test "${ac_cv_prog_STRIP+set}" = set; then
4961 echo $ECHO_N "(cached
) $ECHO_C" >&6
4963 if test -n "$STRIP"; then
4964 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4970 test -z "$as_dir" && as_dir=.
4971 for ac_exec_ext in '' $ac_executable_extensions; do
4972 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4973 ac_cv_prog_STRIP="${ac_tool_prefix}strip
"
4974 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
4983 STRIP=$ac_cv_prog_STRIP
4984 if test -n "$STRIP"; then
4985 { echo "$as_me:$LINENO: result
: $STRIP" >&5
4986 echo "${ECHO_T}$STRIP" >&6; }
4988 { echo "$as_me:$LINENO: result
: no
" >&5
4989 echo "${ECHO_T}no
" >&6; }
4994 if test -z "$ac_cv_prog_STRIP"; then
4996 # Extract the first word of "strip
", so it can be a program name with args.
4997 set dummy strip; ac_word=$2
4998 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
4999 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
5000 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5001 echo $ECHO_N "(cached
) $ECHO_C" >&6
5003 if test -n "$ac_ct_STRIP"; then
5004 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5010 test -z "$as_dir" && as_dir=.
5011 for ac_exec_ext in '' $ac_executable_extensions; do
5012 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5013 ac_cv_prog_ac_ct_STRIP="strip
"
5014 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
5023 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5024 if test -n "$ac_ct_STRIP"; then
5025 { echo "$as_me:$LINENO: result
: $ac_ct_STRIP" >&5
5026 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
5028 { echo "$as_me:$LINENO: result
: no
" >&5
5029 echo "${ECHO_T}no
" >&6; }
5032 if test "x
$ac_ct_STRIP" = x; then
5035 case $cross_compiling:$ac_tool_warned in
5037 { echo "$as_me:$LINENO: WARNING
: In the future
, Autoconf will not detect cross-tools
5038 whose name does not start with the
host triplet. If you think this
5039 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&5
5040 echo "$as_me: WARNING
: In the future
, Autoconf will not detect cross-tools
5041 whose name does not start with the
host triplet. If you think this
5042 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&2;}
5043 ac_tool_warned=yes ;;
5048 STRIP="$ac_cv_prog_STRIP"
5051 test -z "$STRIP" && STRIP=:
5058 if test -n "$ac_tool_prefix"; then
5059 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
5060 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5061 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
5062 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
5063 if test "${ac_cv_prog_RANLIB+set}" = set; then
5064 echo $ECHO_N "(cached
) $ECHO_C" >&6
5066 if test -n "$RANLIB"; then
5067 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5073 test -z "$as_dir" && as_dir=.
5074 for ac_exec_ext in '' $ac_executable_extensions; do
5075 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5076 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
5077 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
5086 RANLIB=$ac_cv_prog_RANLIB
5087 if test -n "$RANLIB"; then
5088 { echo "$as_me:$LINENO: result
: $RANLIB" >&5
5089 echo "${ECHO_T}$RANLIB" >&6; }
5091 { echo "$as_me:$LINENO: result
: no
" >&5
5092 echo "${ECHO_T}no
" >&6; }
5097 if test -z "$ac_cv_prog_RANLIB"; then
5098 ac_ct_RANLIB=$RANLIB
5099 # Extract the first word of "ranlib
", so it can be a program name with args.
5100 set dummy ranlib; ac_word=$2
5101 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
5102 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
5103 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5104 echo $ECHO_N "(cached
) $ECHO_C" >&6
5106 if test -n "$ac_ct_RANLIB"; then
5107 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5113 test -z "$as_dir" && as_dir=.
5114 for ac_exec_ext in '' $ac_executable_extensions; do
5115 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5116 ac_cv_prog_ac_ct_RANLIB="ranlib
"
5117 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
5126 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5127 if test -n "$ac_ct_RANLIB"; then
5128 { echo "$as_me:$LINENO: result
: $ac_ct_RANLIB" >&5
5129 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5131 { echo "$as_me:$LINENO: result
: no
" >&5
5132 echo "${ECHO_T}no
" >&6; }
5135 if test "x
$ac_ct_RANLIB" = x; then
5138 case $cross_compiling:$ac_tool_warned in
5140 { echo "$as_me:$LINENO: WARNING
: In the future
, Autoconf will not detect cross-tools
5141 whose name does not start with the
host triplet. If you think this
5142 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&5
5143 echo "$as_me: WARNING
: In the future
, Autoconf will not detect cross-tools
5144 whose name does not start with the
host triplet. If you think this
5145 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&2;}
5146 ac_tool_warned=yes ;;
5148 RANLIB=$ac_ct_RANLIB
5151 RANLIB="$ac_cv_prog_RANLIB"
5154 test -z "$RANLIB" && RANLIB=:
5161 # Determine commands to create old-style static archives.
5162 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5163 old_postinstall_cmds='chmod 644 $oldlib'
5164 old_postuninstall_cmds=
5166 if test -n "$RANLIB"; then
5169 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB -t \
$oldlib"
5172 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB \
$oldlib"
5175 old_archive_cmds="$old_archive_cmds~\
$RANLIB \
$oldlib"
5211 # If no C compiler was specified, use CC.
5214 # If no C compiler flags were specified, use CFLAGS.
5215 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5217 # Allow CC to be a program name with arguments.
5221 # Check for command to grab the raw symbol name followed by C symbol from nm.
5222 { echo "$as_me:$LINENO: checking
command to parse
$NM output from
$compiler object
" >&5
5223 echo $ECHO_N "checking
command to parse
$NM output from
$compiler object...
$ECHO_C" >&6; }
5224 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5225 echo $ECHO_N "(cached
) $ECHO_C" >&6
5228 # These are sane defaults that work on at least a few old systems.
5229 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5231 # Character class describing NM global symbol codes.
5232 symcode='[BCDEGRST]'
5234 # Regexp to match symbols that can be accessed directly from C.
5235 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5237 # Define system-specific variables.
5242 cygwin* | mingw* | pw32* | cegcc*)
5243 symcode='[ABCDGISTW]'
5246 if test "$host_cpu" = ia64; then
5247 symcode='[ABCDEGRST]'
5251 symcode='[BCDEGRST]'
5254 symcode='[BCDEGQRST]'
5265 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5273 # If we're using GNU nm, then use its standard symbol codes.
5274 case `$NM -V 2>&1` in
5275 *GNU* | *'with BFD'*)
5276 symcode='[ABCDGIRSTW]' ;;
5279 # Transform an extracted symbol line into a proper C declaration.
5280 # Some systems (esp. on ia64) link data and code symbols differently,
5281 # so use this general approach.
5282 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5284 # Transform an extracted symbol line into symbol name and symbol address
5285 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5286 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'"
5288 # Handle CRLF in mingw tool chain
5292 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5296 # Try without a prefix underscore, then with it.
5297 for ac_symprfx in "" "_
"; do
5299 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5300 symxfrm="\\1 $ac_symprfx\\2 \\2"
5302 # Write the raw and C identifiers.
5303 if test "$lt_cv_nm_interface" = "MS dumpbin
"; then
5304 # Fake it for dumpbin and say T for any non-static function
5305 # and D for any global variable.
5306 # Also find C++ and __fastcall symbols from MSVC++,
5307 # which start with @ or ?.
5308 lt_cv_sys_global_symbol_pipe="$AWK '"\
5309 " {last_section=section; section=\$ 3};"\
5310 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5311 " \$ 0!~/External *\|/{next};"\
5312 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5313 " {if(hide[section]) next};"\
5314 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5315 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5316 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5317 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5318 " ' prfx
=^
$ac_symprfx"
5320 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5323 # Check to see that the pipe works correctly.
5327 cat > conftest.$ac_ext <<_LT_EOF
5332 void nm_test_func(void);
5333 void nm_test_func(void){}
5337 int main(){nm_test_var='a';nm_test_func();return(0);}
5340 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5341 (eval $ac_compile) 2>&5
5343 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5344 (exit $ac_status); }; then
5345 # Now try to grab the symbols.
5347 if { (eval echo "$as_me:$LINENO: \"$NM conftest.
$ac_objext \|
$lt_cv_sys_global_symbol_pipe \
> $nlist\"") >&5
5348 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5350 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5351 (exit $ac_status); } && test -s "$nlist"; then
5352 # Try sorting and uniquifying the output.
5353 if sort "$nlist" | uniq > "$nlist"T; then
5354 mv -f "$nlist"T "$nlist"
5359 # Make sure that we snagged all the symbols we need.
5360 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5361 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5362 cat <<_LT_EOF > conftest.$ac_ext
5368 # Now generate the symbol file.
5369 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5371 cat <<_LT_EOF >> conftest.$ac_ext
5373 /* The mapping between symbol names and symbols. */
5378 lt__PROGRAM__LTX_preloaded_symbols[] =
5380 { "@PROGRAM@
", (void *) 0 },
5382 $SED "s
/^
$symcode$symcode* \
(.
*\
) \
(.
*\
)$
/ {\"\
2\", (void
*) \
&\
2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5383 cat <<\_LT_EOF >> conftest.$ac_ext
5387 /* This works around a problem in FreeBSD linker */
5388 #ifdef FREEBSD_WORKAROUND
5389 static const void *lt_preloaded_setup() {
5390 return lt__PROGRAM__LTX_preloaded_symbols;
5398 # Now try linking the two files.
5399 mv conftest.$ac_objext conftstm.$ac_objext
5400 lt_save_LIBS="$LIBS"
5401 lt_save_CFLAGS="$CFLAGS"
5402 LIBS="conftstm.
$ac_objext"
5403 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5404 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5405 (eval $ac_link) 2>&5
5407 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5408 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5411 LIBS="$lt_save_LIBS"
5412 CFLAGS="$lt_save_CFLAGS"
5414 echo "cannot
find nm_test_func
in $nlist" >&5
5417 echo "cannot
find nm_test_var
in $nlist" >&5
5420 echo "cannot run
$lt_cv_sys_global_symbol_pipe" >&5
5423 echo "$progname: failed program was
:" >&5
5424 cat conftest.$ac_ext >&5
5426 rm -rf conftest* conftst*
5428 # Do not use the global_symbol_pipe unless it works.
5429 if test "$pipe_works" = yes; then
5432 lt_cv_sys_global_symbol_pipe=
5438 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5439 lt_cv_sys_global_symbol_to_cdecl=
5441 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5442 { echo "$as_me:$LINENO: result
: failed
" >&5
5443 echo "${ECHO_T}failed
" >&6; }
5445 { echo "$as_me:$LINENO: result
: ok
" >&5
5446 echo "${ECHO_T}ok
" >&6; }
5471 # Check whether --enable-libtool-lock was given.
5472 if test "${enable_libtool_lock+set}" = set; then
5473 enableval=$enable_libtool_lock;
5476 test "x
$enable_libtool_lock" != xno && enable_libtool_lock=yes
5478 # Some flags need to be propagated to the compiler or linker for good
5482 # Find out which ABI we are using.
5483 echo 'int i;' > conftest.$ac_ext
5484 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5485 (eval $ac_compile) 2>&5
5487 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5488 (exit $ac_status); }; then
5489 case `/usr/bin/file conftest.$ac_objext` in
5501 # Find out which ABI we are using.
5502 echo '#line 5502 "configure
"' > conftest.$ac_ext
5503 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5504 (eval $ac_compile) 2>&5
5506 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5507 (exit $ac_status); }; then
5508 if test "$lt_cv_prog_gnu_ld" = yes; then
5509 case `/usr/bin/file conftest.$ac_objext` in
5511 LD="${LD-ld} -melf32bsmip"
5514 LD="${LD-ld} -melf32bmipn32"
5517 LD="${LD-ld} -melf64bmip"
5521 case `/usr/bin/file conftest.$ac_objext` in
5537 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5538 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5539 # Find out which ABI we are using.
5540 echo 'int i;' > conftest.$ac_ext
5541 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5542 (eval $ac_compile) 2>&5
5544 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5545 (exit $ac_status); }; then
5546 case `/usr/bin/file conftest.o` in
5549 x86_64-*kfreebsd*-gnu)
5550 LD="${LD-ld} -m elf_i386_fbsd
"
5553 LD="${LD-ld} -m elf_i386
"
5555 ppc64-*linux*|powerpc64-*linux*)
5556 LD="${LD-ld} -m elf32ppclinux
"
5559 LD="${LD-ld} -m elf_s390
"
5562 LD="${LD-ld} -m elf32_sparc
"
5568 x86_64-*kfreebsd*-gnu)
5569 LD="${LD-ld} -m elf_x86_64_fbsd
"
5572 LD="${LD-ld} -m elf_x86_64
"
5574 ppc*-*linux*|powerpc*-*linux*)
5575 LD="${LD-ld} -m elf64ppc
"
5577 s390*-*linux*|s390*-*tpf*)
5578 LD="${LD-ld} -m elf64_s390
"
5581 LD="${LD-ld} -m elf64_sparc
"
5591 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5592 SAVE_CFLAGS="$CFLAGS"
5593 CFLAGS="$CFLAGS -belf"
5594 { echo "$as_me:$LINENO: checking whether the C compiler needs
-belf" >&5
5595 echo $ECHO_N "checking whether the C compiler needs
-belf...
$ECHO_C" >&6; }
5596 if test "${lt_cv_cc_needs_belf+set}" = set; then
5597 echo $ECHO_N "(cached
) $ECHO_C" >&6
5600 ac_cpp='$CPP $CPPFLAGS'
5601 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5602 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5603 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5605 cat >conftest.$ac_ext <<_ACEOF
5608 cat confdefs.h >>conftest.$ac_ext
5609 cat >>conftest.$ac_ext <<_ACEOF
5610 /* end confdefs.h. */
5620 rm -f conftest.$ac_objext conftest$ac_exeext
5621 if { (ac_try="$ac_link"
5623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5624 *) ac_try_echo=$ac_try;;
5626 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5627 (eval "$ac_link") 2>conftest.er1
5629 grep -v '^ *+' conftest.er1 >conftest.err
5631 cat conftest.err >&5
5632 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5633 (exit $ac_status); } && {
5634 test -z "$ac_c_werror_flag" ||
5635 test ! -s conftest.err
5636 } && test -s conftest$ac_exeext &&
5637 $as_test_x conftest$ac_exeext; then
5638 lt_cv_cc_needs_belf=yes
5640 echo "$as_me: failed program was
:" >&5
5641 sed 's/^/| /' conftest.$ac_ext >&5
5643 lt_cv_cc_needs_belf=no
5646 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5647 conftest$ac_exeext conftest.$ac_ext
5649 ac_cpp='$CPP $CPPFLAGS'
5650 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5651 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5652 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5655 { echo "$as_me:$LINENO: result
: $lt_cv_cc_needs_belf" >&5
5656 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
5657 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5658 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5659 CFLAGS="$SAVE_CFLAGS"
5663 # Find out which ABI we are using.
5664 echo 'int i;' > conftest.$ac_ext
5665 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5666 (eval $ac_compile) 2>&5
5668 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5669 (exit $ac_status); }; then
5670 case `/usr/bin/file conftest.o` in
5672 case $lt_cv_prog_gnu_ld in
5673 yes*) LD="${LD-ld} -m elf64_sparc
" ;;
5675 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5687 need_locks="$enable_libtool_lock"
5691 rhapsody* | darwin*)
5692 if test -n "$ac_tool_prefix"; then
5693 # Extract the first word of "${ac_tool_prefix}dsymutil
", so it can be a program name with args.
5694 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5695 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
5696 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
5697 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
5698 echo $ECHO_N "(cached
) $ECHO_C" >&6
5700 if test -n "$DSYMUTIL"; then
5701 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5707 test -z "$as_dir" && as_dir=.
5708 for ac_exec_ext in '' $ac_executable_extensions; do
5709 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5710 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil
"
5711 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
5720 DSYMUTIL=$ac_cv_prog_DSYMUTIL
5721 if test -n "$DSYMUTIL"; then
5722 { echo "$as_me:$LINENO: result
: $DSYMUTIL" >&5
5723 echo "${ECHO_T}$DSYMUTIL" >&6; }
5725 { echo "$as_me:$LINENO: result
: no
" >&5
5726 echo "${ECHO_T}no
" >&6; }
5731 if test -z "$ac_cv_prog_DSYMUTIL"; then
5732 ac_ct_DSYMUTIL=$DSYMUTIL
5733 # Extract the first word of "dsymutil
", so it can be a program name with args.
5734 set dummy dsymutil; ac_word=$2
5735 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
5736 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
5737 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
5738 echo $ECHO_N "(cached
) $ECHO_C" >&6
5740 if test -n "$ac_ct_DSYMUTIL"; then
5741 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5747 test -z "$as_dir" && as_dir=.
5748 for ac_exec_ext in '' $ac_executable_extensions; do
5749 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5750 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil
"
5751 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
5760 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
5761 if test -n "$ac_ct_DSYMUTIL"; then
5762 { echo "$as_me:$LINENO: result
: $ac_ct_DSYMUTIL" >&5
5763 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
5765 { echo "$as_me:$LINENO: result
: no
" >&5
5766 echo "${ECHO_T}no
" >&6; }
5769 if test "x
$ac_ct_DSYMUTIL" = x; then
5772 case $cross_compiling:$ac_tool_warned in
5774 { echo "$as_me:$LINENO: WARNING
: In the future
, Autoconf will not detect cross-tools
5775 whose name does not start with the
host triplet. If you think this
5776 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&5
5777 echo "$as_me: WARNING
: In the future
, Autoconf will not detect cross-tools
5778 whose name does not start with the
host triplet. If you think this
5779 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&2;}
5780 ac_tool_warned=yes ;;
5782 DSYMUTIL=$ac_ct_DSYMUTIL
5785 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
5788 if test -n "$ac_tool_prefix"; then
5789 # Extract the first word of "${ac_tool_prefix}nmedit
", so it can be a program name with args.
5790 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
5791 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
5792 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
5793 if test "${ac_cv_prog_NMEDIT+set}" = set; then
5794 echo $ECHO_N "(cached
) $ECHO_C" >&6
5796 if test -n "$NMEDIT"; then
5797 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
5799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5803 test -z "$as_dir" && as_dir=.
5804 for ac_exec_ext in '' $ac_executable_extensions; do
5805 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5806 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit
"
5807 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
5816 NMEDIT=$ac_cv_prog_NMEDIT
5817 if test -n "$NMEDIT"; then
5818 { echo "$as_me:$LINENO: result
: $NMEDIT" >&5
5819 echo "${ECHO_T}$NMEDIT" >&6; }
5821 { echo "$as_me:$LINENO: result
: no
" >&5
5822 echo "${ECHO_T}no
" >&6; }
5827 if test -z "$ac_cv_prog_NMEDIT"; then
5828 ac_ct_NMEDIT=$NMEDIT
5829 # Extract the first word of "nmedit
", so it can be a program name with args.
5830 set dummy nmedit; ac_word=$2
5831 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
5832 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
5833 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
5834 echo $ECHO_N "(cached
) $ECHO_C" >&6
5836 if test -n "$ac_ct_NMEDIT"; then
5837 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
5839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5843 test -z "$as_dir" && as_dir=.
5844 for ac_exec_ext in '' $ac_executable_extensions; do
5845 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5846 ac_cv_prog_ac_ct_NMEDIT="nmedit
"
5847 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
5856 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
5857 if test -n "$ac_ct_NMEDIT"; then
5858 { echo "$as_me:$LINENO: result
: $ac_ct_NMEDIT" >&5
5859 echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
5861 { echo "$as_me:$LINENO: result
: no
" >&5
5862 echo "${ECHO_T}no
" >&6; }
5865 if test "x
$ac_ct_NMEDIT" = x; then
5868 case $cross_compiling:$ac_tool_warned in
5870 { echo "$as_me:$LINENO: WARNING
: In the future
, Autoconf will not detect cross-tools
5871 whose name does not start with the
host triplet. If you think this
5872 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&5
5873 echo "$as_me: WARNING
: In the future
, Autoconf will not detect cross-tools
5874 whose name does not start with the
host triplet. If you think this
5875 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&2;}
5876 ac_tool_warned=yes ;;
5878 NMEDIT=$ac_ct_NMEDIT
5881 NMEDIT="$ac_cv_prog_NMEDIT"
5884 if test -n "$ac_tool_prefix"; then
5885 # Extract the first word of "${ac_tool_prefix}lipo
", so it can be a program name with args.
5886 set dummy ${ac_tool_prefix}lipo; ac_word=$2
5887 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
5888 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
5889 if test "${ac_cv_prog_LIPO+set}" = set; then
5890 echo $ECHO_N "(cached
) $ECHO_C" >&6
5892 if test -n "$LIPO"; then
5893 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
5895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5899 test -z "$as_dir" && as_dir=.
5900 for ac_exec_ext in '' $ac_executable_extensions; do
5901 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5902 ac_cv_prog_LIPO="${ac_tool_prefix}lipo
"
5903 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
5912 LIPO=$ac_cv_prog_LIPO
5913 if test -n "$LIPO"; then
5914 { echo "$as_me:$LINENO: result
: $LIPO" >&5
5915 echo "${ECHO_T}$LIPO" >&6; }
5917 { echo "$as_me:$LINENO: result
: no
" >&5
5918 echo "${ECHO_T}no
" >&6; }
5923 if test -z "$ac_cv_prog_LIPO"; then
5925 # Extract the first word of "lipo
", so it can be a program name with args.
5926 set dummy lipo; ac_word=$2
5927 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
5928 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
5929 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
5930 echo $ECHO_N "(cached
) $ECHO_C" >&6
5932 if test -n "$ac_ct_LIPO"; then
5933 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
5935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5939 test -z "$as_dir" && as_dir=.
5940 for ac_exec_ext in '' $ac_executable_extensions; do
5941 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5942 ac_cv_prog_ac_ct_LIPO="lipo
"
5943 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
5952 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
5953 if test -n "$ac_ct_LIPO"; then
5954 { echo "$as_me:$LINENO: result
: $ac_ct_LIPO" >&5
5955 echo "${ECHO_T}$ac_ct_LIPO" >&6; }
5957 { echo "$as_me:$LINENO: result
: no
" >&5
5958 echo "${ECHO_T}no
" >&6; }
5961 if test "x
$ac_ct_LIPO" = x; then
5964 case $cross_compiling:$ac_tool_warned in
5966 { echo "$as_me:$LINENO: WARNING
: In the future
, Autoconf will not detect cross-tools
5967 whose name does not start with the
host triplet. If you think this
5968 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&5
5969 echo "$as_me: WARNING
: In the future
, Autoconf will not detect cross-tools
5970 whose name does not start with the
host triplet. If you think this
5971 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&2;}
5972 ac_tool_warned=yes ;;
5977 LIPO="$ac_cv_prog_LIPO"
5980 if test -n "$ac_tool_prefix"; then
5981 # Extract the first word of "${ac_tool_prefix}otool
", so it can be a program name with args.
5982 set dummy ${ac_tool_prefix}otool; ac_word=$2
5983 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
5984 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
5985 if test "${ac_cv_prog_OTOOL+set}" = set; then
5986 echo $ECHO_N "(cached
) $ECHO_C" >&6
5988 if test -n "$OTOOL"; then
5989 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
5991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5995 test -z "$as_dir" && as_dir=.
5996 for ac_exec_ext in '' $ac_executable_extensions; do
5997 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5998 ac_cv_prog_OTOOL="${ac_tool_prefix}otool
"
5999 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
6008 OTOOL=$ac_cv_prog_OTOOL
6009 if test -n "$OTOOL"; then
6010 { echo "$as_me:$LINENO: result
: $OTOOL" >&5
6011 echo "${ECHO_T}$OTOOL" >&6; }
6013 { echo "$as_me:$LINENO: result
: no
" >&5
6014 echo "${ECHO_T}no
" >&6; }
6019 if test -z "$ac_cv_prog_OTOOL"; then
6021 # Extract the first word of "otool
", so it can be a program name with args.
6022 set dummy otool; ac_word=$2
6023 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
6024 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
6025 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
6026 echo $ECHO_N "(cached
) $ECHO_C" >&6
6028 if test -n "$ac_ct_OTOOL"; then
6029 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6035 test -z "$as_dir" && as_dir=.
6036 for ac_exec_ext in '' $ac_executable_extensions; do
6037 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6038 ac_cv_prog_ac_ct_OTOOL="otool
"
6039 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
6048 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6049 if test -n "$ac_ct_OTOOL"; then
6050 { echo "$as_me:$LINENO: result
: $ac_ct_OTOOL" >&5
6051 echo "${ECHO_T}$ac_ct_OTOOL" >&6; }
6053 { echo "$as_me:$LINENO: result
: no
" >&5
6054 echo "${ECHO_T}no
" >&6; }
6057 if test "x
$ac_ct_OTOOL" = x; then
6060 case $cross_compiling:$ac_tool_warned in
6062 { echo "$as_me:$LINENO: WARNING
: In the future
, Autoconf will not detect cross-tools
6063 whose name does not start with the
host triplet. If you think this
6064 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&5
6065 echo "$as_me: WARNING
: In the future
, Autoconf will not detect cross-tools
6066 whose name does not start with the
host triplet. If you think this
6067 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&2;}
6068 ac_tool_warned=yes ;;
6073 OTOOL="$ac_cv_prog_OTOOL"
6076 if test -n "$ac_tool_prefix"; then
6077 # Extract the first word of "${ac_tool_prefix}otool64
", so it can be a program name with args.
6078 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6079 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
6080 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
6081 if test "${ac_cv_prog_OTOOL64+set}" = set; then
6082 echo $ECHO_N "(cached
) $ECHO_C" >&6
6084 if test -n "$OTOOL64"; then
6085 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6091 test -z "$as_dir" && as_dir=.
6092 for ac_exec_ext in '' $ac_executable_extensions; do
6093 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6094 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64
"
6095 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
6104 OTOOL64=$ac_cv_prog_OTOOL64
6105 if test -n "$OTOOL64"; then
6106 { echo "$as_me:$LINENO: result
: $OTOOL64" >&5
6107 echo "${ECHO_T}$OTOOL64" >&6; }
6109 { echo "$as_me:$LINENO: result
: no
" >&5
6110 echo "${ECHO_T}no
" >&6; }
6115 if test -z "$ac_cv_prog_OTOOL64"; then
6116 ac_ct_OTOOL64=$OTOOL64
6117 # Extract the first word of "otool64
", so it can be a program name with args.
6118 set dummy otool64; ac_word=$2
6119 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
6120 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
6121 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
6122 echo $ECHO_N "(cached
) $ECHO_C" >&6
6124 if test -n "$ac_ct_OTOOL64"; then
6125 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6131 test -z "$as_dir" && as_dir=.
6132 for ac_exec_ext in '' $ac_executable_extensions; do
6133 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6134 ac_cv_prog_ac_ct_OTOOL64="otool64
"
6135 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
6144 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6145 if test -n "$ac_ct_OTOOL64"; then
6146 { echo "$as_me:$LINENO: result
: $ac_ct_OTOOL64" >&5
6147 echo "${ECHO_T}$ac_ct_OTOOL64" >&6; }
6149 { echo "$as_me:$LINENO: result
: no
" >&5
6150 echo "${ECHO_T}no
" >&6; }
6153 if test "x
$ac_ct_OTOOL64" = x; then
6156 case $cross_compiling:$ac_tool_warned in
6158 { echo "$as_me:$LINENO: WARNING
: In the future
, Autoconf will not detect cross-tools
6159 whose name does not start with the
host triplet. If you think this
6160 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&5
6161 echo "$as_me: WARNING
: In the future
, Autoconf will not detect cross-tools
6162 whose name does not start with the
host triplet. If you think this
6163 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&2;}
6164 ac_tool_warned=yes ;;
6166 OTOOL64=$ac_ct_OTOOL64
6169 OTOOL64="$ac_cv_prog_OTOOL64"
6198 { echo "$as_me:$LINENO: checking
for -single_module linker flag
" >&5
6199 echo $ECHO_N "checking
for -single_module linker flag...
$ECHO_C" >&6; }
6200 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
6201 echo $ECHO_N "(cached
) $ECHO_C" >&6
6203 lt_cv_apple_cc_single_mod=no
6204 if test -z "${LT_MULTI_MODULE}"; then
6205 # By default we will add the -single_module flag. You can override
6206 # by either setting the environment variable LT_MULTI_MODULE
6207 # non-empty at configure time, or by adding -multi_module to the
6209 rm -rf libconftest.dylib*
6210 echo "int foo
(void
){return 1;}" > conftest.c
6211 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6212 -dynamiclib -Wl,-single_module conftest.c
" >&5
6213 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6214 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6216 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6217 lt_cv_apple_cc_single_mod=yes
6219 cat conftest.err >&5
6221 rm -rf libconftest.dylib*
6225 { echo "$as_me:$LINENO: result
: $lt_cv_apple_cc_single_mod" >&5
6226 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
6227 { echo "$as_me:$LINENO: checking
for -exported_symbols_list linker flag
" >&5
6228 echo $ECHO_N "checking
for -exported_symbols_list linker flag...
$ECHO_C" >&6; }
6229 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
6230 echo $ECHO_N "(cached
) $ECHO_C" >&6
6232 lt_cv_ld_exported_symbols_list=no
6233 save_LDFLAGS=$LDFLAGS
6234 echo "_main
" > conftest.sym
6235 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym
"
6236 cat >conftest.$ac_ext <<_ACEOF
6239 cat confdefs.h >>conftest.$ac_ext
6240 cat >>conftest.$ac_ext <<_ACEOF
6241 /* end confdefs.h. */
6251 rm -f conftest.$ac_objext conftest$ac_exeext
6252 if { (ac_try="$ac_link"
6254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6255 *) ac_try_echo=$ac_try;;
6257 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
6258 (eval "$ac_link") 2>conftest.er1
6260 grep -v '^ *+' conftest.er1 >conftest.err
6262 cat conftest.err >&5
6263 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6264 (exit $ac_status); } && {
6265 test -z "$ac_c_werror_flag" ||
6266 test ! -s conftest.err
6267 } && test -s conftest$ac_exeext &&
6268 $as_test_x conftest$ac_exeext; then
6269 lt_cv_ld_exported_symbols_list=yes
6271 echo "$as_me: failed program was
:" >&5
6272 sed 's/^/| /' conftest.$ac_ext >&5
6274 lt_cv_ld_exported_symbols_list=no
6277 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6278 conftest$ac_exeext conftest.$ac_ext
6279 LDFLAGS="$save_LDFLAGS"
6282 { echo "$as_me:$LINENO: result
: $lt_cv_ld_exported_symbols_list" >&5
6283 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
6285 rhapsody* | darwin1.[012])
6286 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6288 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6289 darwin*) # darwin 5.x on
6290 # if running on 10.5 or later, the deployment target defaults
6291 # to the OS version, if on x86, and 10.4, the deployment
6292 # target defaults to 10.4. Don't you love it?
6293 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6294 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6295 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6297 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6299 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6303 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6304 _lt_dar_single_mod='$single_module'
6306 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6307 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6309 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6311 if test "$DSYMUTIL" != ":"; then
6312 _lt_dsymutil='~$DSYMUTIL $lib || :'
6320 ac_cpp='$CPP $CPPFLAGS'
6321 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6322 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6323 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6324 { echo "$as_me:$LINENO: checking how to run the C preprocessor
" >&5
6325 echo $ECHO_N "checking how to run the C preprocessor...
$ECHO_C" >&6; }
6326 # On Suns, sometimes $CPP names a directory.
6327 if test -n "$CPP" && test -d "$CPP"; then
6330 if test -z "$CPP"; then
6331 if test "${ac_cv_prog_CPP+set}" = set; then
6332 echo $ECHO_N "(cached
) $ECHO_C" >&6
6334 # Double quotes because CPP needs to be expanded
6335 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
6338 for ac_c_preproc_warn_flag in '' yes
6340 # Use a header file that comes with gcc, so configuring glibc
6341 # with a fresh cross-compiler works.
6342 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6343 # <limits.h> exists even on freestanding compilers.
6344 # On the NeXT, cc -E runs the code through the compiler's parser,
6345 # not just through cpp. "Syntax error
" is here to catch this case.
6346 cat >conftest.$ac_ext <<_ACEOF
6349 cat confdefs.h >>conftest.$ac_ext
6350 cat >>conftest.$ac_ext <<_ACEOF
6351 /* end confdefs.h. */
6353 # include <limits.h>
6355 # include <assert.h>
6359 if { (ac_try="$ac_cpp conftest.
$ac_ext"
6361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6362 *) ac_try_echo=$ac_try;;
6364 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
6365 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
6367 grep -v '^ *+' conftest.er1 >conftest.err
6369 cat conftest.err >&5
6370 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6371 (exit $ac_status); } >/dev/null && {
6372 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6373 test ! -s conftest.err
6377 echo "$as_me: failed program was
:" >&5
6378 sed 's/^/| /' conftest.$ac_ext >&5
6380 # Broken: fails on valid input.
6384 rm -f conftest.err conftest.$ac_ext
6386 # OK, works on sane cases. Now check whether nonexistent headers
6387 # can be detected and how.
6388 cat >conftest.$ac_ext <<_ACEOF
6391 cat confdefs.h >>conftest.$ac_ext
6392 cat >>conftest.$ac_ext <<_ACEOF
6393 /* end confdefs.h. */
6394 #include <ac_nonexistent.h>
6396 if { (ac_try="$ac_cpp conftest.
$ac_ext"
6398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6399 *) ac_try_echo=$ac_try;;
6401 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
6402 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
6404 grep -v '^ *+' conftest.er1 >conftest.err
6406 cat conftest.err >&5
6407 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6408 (exit $ac_status); } >/dev/null && {
6409 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6410 test ! -s conftest.err
6412 # Broken: success on invalid input.
6415 echo "$as_me: failed program was
:" >&5
6416 sed 's/^/| /' conftest.$ac_ext >&5
6418 # Passes both tests.
6423 rm -f conftest.err conftest.$ac_ext
6426 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6427 rm -f conftest.err conftest.$ac_ext
6428 if $ac_preproc_ok; then
6440 { echo "$as_me:$LINENO: result
: $CPP" >&5
6441 echo "${ECHO_T}$CPP" >&6; }
6443 for ac_c_preproc_warn_flag in '' yes
6445 # Use a header file that comes with gcc, so configuring glibc
6446 # with a fresh cross-compiler works.
6447 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6448 # <limits.h> exists even on freestanding compilers.
6449 # On the NeXT, cc -E runs the code through the compiler's parser,
6450 # not just through cpp. "Syntax error
" is here to catch this case.
6451 cat >conftest.$ac_ext <<_ACEOF
6454 cat confdefs.h >>conftest.$ac_ext
6455 cat >>conftest.$ac_ext <<_ACEOF
6456 /* end confdefs.h. */
6458 # include <limits.h>
6460 # include <assert.h>
6464 if { (ac_try="$ac_cpp conftest.
$ac_ext"
6466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6467 *) ac_try_echo=$ac_try;;
6469 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
6470 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
6472 grep -v '^ *+' conftest.er1 >conftest.err
6474 cat conftest.err >&5
6475 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6476 (exit $ac_status); } >/dev/null && {
6477 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6478 test ! -s conftest.err
6482 echo "$as_me: failed program was
:" >&5
6483 sed 's/^/| /' conftest.$ac_ext >&5
6485 # Broken: fails on valid input.
6489 rm -f conftest.err conftest.$ac_ext
6491 # OK, works on sane cases. Now check whether nonexistent headers
6492 # can be detected and how.
6493 cat >conftest.$ac_ext <<_ACEOF
6496 cat confdefs.h >>conftest.$ac_ext
6497 cat >>conftest.$ac_ext <<_ACEOF
6498 /* end confdefs.h. */
6499 #include <ac_nonexistent.h>
6501 if { (ac_try="$ac_cpp conftest.
$ac_ext"
6503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6504 *) ac_try_echo=$ac_try;;
6506 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
6507 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
6509 grep -v '^ *+' conftest.er1 >conftest.err
6511 cat conftest.err >&5
6512 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6513 (exit $ac_status); } >/dev/null && {
6514 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6515 test ! -s conftest.err
6517 # Broken: success on invalid input.
6520 echo "$as_me: failed program was
:" >&5
6521 sed 's/^/| /' conftest.$ac_ext >&5
6523 # Passes both tests.
6528 rm -f conftest.err conftest.$ac_ext
6531 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6532 rm -f conftest.err conftest.$ac_ext
6533 if $ac_preproc_ok; then
6536 { { echo "$as_me:$LINENO: error
: C preprocessor
\"$CPP\" fails sanity check
6537 See \
`config.log' for more details." >&5
6538 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6539 See \`config.log
' for more details." >&2;}
6540 { (exit 1); exit 1; }; }
6544 ac_cpp='$CPP $CPPFLAGS'
6545 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
6546 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
6547 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6550 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6551 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6552 if test "${ac_cv_header_stdc+set}" = set; then
6553 echo $ECHO_N "(cached) $ECHO_C" >&6
6555 cat >conftest.$ac_ext <<_ACEOF
6558 cat confdefs.h >>conftest.$ac_ext
6559 cat >>conftest.$ac_ext <<_ACEOF
6560 /* end confdefs.h. */
6574 rm -f conftest.$ac_objext
6575 if { (ac_try="$ac_compile"
6577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6578 *) ac_try_echo=$ac_try;;
6580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6581 (eval "$ac_compile") 2>conftest.er1
6583 grep -v '^
*+' conftest.er1 >conftest.err
6585 cat conftest.err >&5
6586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6587 (exit $ac_status); } && {
6588 test -z "$ac_c_werror_flag" ||
6589 test ! -s conftest.err
6590 } && test -s conftest.$ac_objext; then
6591 ac_cv_header_stdc=yes
6593 echo "$as_me: failed program was:" >&5
6594 sed 's
/^
/|
/' conftest.$ac_ext >&5
6596 ac_cv_header_stdc=no
6599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6601 if test $ac_cv_header_stdc = yes; then
6602 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6603 cat >conftest.$ac_ext <<_ACEOF
6606 cat confdefs.h >>conftest.$ac_ext
6607 cat >>conftest.$ac_ext <<_ACEOF
6608 /* end confdefs.h. */
6612 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6613 $EGREP "memchr" >/dev/null 2>&1; then
6616 ac_cv_header_stdc=no
6622 if test $ac_cv_header_stdc = yes; then
6623 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6624 cat >conftest.$ac_ext <<_ACEOF
6627 cat confdefs.h >>conftest.$ac_ext
6628 cat >>conftest.$ac_ext <<_ACEOF
6629 /* end confdefs.h. */
6633 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6634 $EGREP "free" >/dev/null 2>&1; then
6637 ac_cv_header_stdc=no
6643 if test $ac_cv_header_stdc = yes; then
6644 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6645 if test "$cross_compiling" = yes; then
6648 cat >conftest.$ac_ext <<_ACEOF
6651 cat confdefs.h >>conftest.$ac_ext
6652 cat >>conftest.$ac_ext <<_ACEOF
6653 /* end confdefs.h. */
6656 #if ((' ' & 0x0FF) == 0x020)
6657 # define ISLOWER(c) ('a
' <= (c) && (c) <= 'z
')
6658 # define TOUPPER(c) (ISLOWER(c) ? 'A
' + ((c) - 'a
') : (c))
6660 # define ISLOWER(c) \
6661 (('a
' <= (c) && (c) <= 'i
') \
6662 || ('j
' <= (c) && (c) <= 'r
') \
6663 || ('s
' <= (c) && (c) <= 'z
'))
6664 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6667 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6672 for (i = 0; i < 256; i++)
6673 if (XOR (islower (i), ISLOWER (i))
6674 || toupper (i) != TOUPPER (i))
6679 rm -f conftest$ac_exeext
6680 if { (ac_try="$ac_link"
6682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6683 *) ac_try_echo=$ac_try;;
6685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6686 (eval "$ac_link") 2>&5
6688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6689 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
6690 { (case "(($ac_try" in
6691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6692 *) ac_try_echo=$ac_try;;
6694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6695 (eval "$ac_try") 2>&5
6697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6698 (exit $ac_status); }; }; then
6701 echo "$as_me: program exited with status $ac_status" >&5
6702 echo "$as_me: failed program was:" >&5
6703 sed 's
/^
/|
/' conftest.$ac_ext >&5
6706 ac_cv_header_stdc=no
6708 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6714 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6715 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6716 if test $ac_cv_header_stdc = yes; then
6718 cat >>confdefs.h <<\_ACEOF
6719 #define STDC_HEADERS 1
6724 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6734 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6735 inttypes.h stdint.h unistd.h
6737 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6738 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6739 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6740 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6741 echo $ECHO_N "(cached) $ECHO_C" >&6
6743 cat >conftest.$ac_ext <<_ACEOF
6746 cat confdefs.h >>conftest.$ac_ext
6747 cat >>conftest.$ac_ext <<_ACEOF
6748 /* end confdefs.h. */
6749 $ac_includes_default
6751 #include <$ac_header>
6753 rm -f conftest.$ac_objext
6754 if { (ac_try="$ac_compile"
6756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6757 *) ac_try_echo=$ac_try;;
6759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6760 (eval "$ac_compile") 2>conftest.er1
6762 grep -v '^
*+' conftest.er1 >conftest.err
6764 cat conftest.err >&5
6765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6766 (exit $ac_status); } && {
6767 test -z "$ac_c_werror_flag" ||
6768 test ! -s conftest.err
6769 } && test -s conftest.$ac_objext; then
6770 eval "$as_ac_Header=yes"
6772 echo "$as_me: failed program was:" >&5
6773 sed 's
/^
/|
/' conftest.$ac_ext >&5
6775 eval "$as_ac_Header=no"
6778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6780 ac_res=`eval echo '${'$as_ac_Header'}'`
6781 { echo "$as_me:$LINENO: result: $ac_res" >&5
6782 echo "${ECHO_T}$ac_res" >&6; }
6783 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6784 cat >>confdefs.h <<_ACEOF
6785 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6794 for ac_header in dlfcn.h
6796 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6797 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6798 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6799 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6800 echo $ECHO_N "(cached) $ECHO_C" >&6
6802 cat >conftest.$ac_ext <<_ACEOF
6805 cat confdefs.h >>conftest.$ac_ext
6806 cat >>conftest.$ac_ext <<_ACEOF
6807 /* end confdefs.h. */
6808 $ac_includes_default
6810 #include <$ac_header>
6812 rm -f conftest.$ac_objext
6813 if { (ac_try="$ac_compile"
6815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6816 *) ac_try_echo=$ac_try;;
6818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6819 (eval "$ac_compile") 2>conftest.er1
6821 grep -v '^
*+' conftest.er1 >conftest.err
6823 cat conftest.err >&5
6824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6825 (exit $ac_status); } && {
6826 test -z "$ac_c_werror_flag" ||
6827 test ! -s conftest.err
6828 } && test -s conftest.$ac_objext; then
6829 eval "$as_ac_Header=yes"
6831 echo "$as_me: failed program was:" >&5
6832 sed 's
/^
/|
/' conftest.$ac_ext >&5
6834 eval "$as_ac_Header=no"
6837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6839 ac_res=`eval echo '${'$as_ac_Header'}'`
6840 { echo "$as_me:$LINENO: result: $ac_res" >&5
6841 echo "${ECHO_T}$ac_res" >&6; }
6842 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6843 cat >>confdefs.h <<_ACEOF
6844 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6863 # Check whether --enable-shared was given.
6864 if test "${enable_shared+set}" = set; then
6865 enableval=$enable_shared; p=${PACKAGE-default}
6867 yes) enable_shared=yes ;;
6868 no) enable_shared=no ;;
6871 # Look at the argument we got. We use all the common list separators.
6872 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6873 for pkg in $enableval; do
6875 if test "X$pkg" = "X$p"; then
6894 # Check whether --enable-static was given.
6895 if test "${enable_static+set}" = set; then
6896 enableval=$enable_static; p=${PACKAGE-default}
6898 yes) enable_static=yes ;;
6899 no) enable_static=no ;;
6902 # Look at the argument we got. We use all the common list separators.
6903 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6904 for pkg in $enableval; do
6906 if test "X$pkg" = "X$p"; then
6926 # Check whether --with-pic was given.
6927 if test "${with_pic+set}" = set; then
6928 withval=$with_pic; pic_mode="$withval"
6934 test -z "$pic_mode" && pic_mode=default
6942 # Check whether --enable-fast-install was given.
6943 if test "${enable_fast_install+set}" = set; then
6944 enableval=$enable_fast_install; p=${PACKAGE-default}
6946 yes) enable_fast_install=yes ;;
6947 no) enable_fast_install=no ;;
6949 enable_fast_install=no
6950 # Look at the argument we got. We use all the common list separators.
6951 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6952 for pkg in $enableval; do
6954 if test "X$pkg" = "X$p"; then
6955 enable_fast_install=yes
6962 enable_fast_install=yes
6975 # This can be used to rebuild libtool when needed
6976 LIBTOOL_DEPS="$ltmain"
6978 # Always use our own libtool.
6979 LIBTOOL='$
(SHELL
) $
(top_builddir
)/libtool
'
7005 test -z "$LN_S" && LN_S="ln -s"
7020 if test -n "${ZSH_VERSION+set}" ; then
7021 setopt NO_GLOB_SUBST
7024 { echo "$as_me:$LINENO: checking for objdir" >&5
7025 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
7026 if test "${lt_cv_objdir+set}" = set; then
7027 echo $ECHO_N "(cached) $ECHO_C" >&6
7029 rm -f .libs 2>/dev/null
7030 mkdir .libs 2>/dev/null
7031 if test -d .libs; then
7034 # MS-DOS does not allow filenames that begin with a dot.
7037 rmdir .libs 2>/dev/null
7039 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7040 echo "${ECHO_T}$lt_cv_objdir" >&6; }
7041 objdir=$lt_cv_objdir
7047 cat >>confdefs.h <<_ACEOF
7048 #define LT_OBJDIR "$lt_cv_objdir/"
7069 # AIX sometimes has problems with the GCC collect2 program. For some
7070 # reason, if we set the COLLECT_NAMES environment variable, the problems
7071 # vanish in a puff of smoke.
7072 if test "X${COLLECT_NAMES+set}" != Xset; then
7074 export COLLECT_NAMES
7079 # Sed substitution that helps us do robust quoting. It backslashifies
7080 # metacharacters that are still active within double-quoted strings.
7081 sed_quote_subst='s
/\
(["`$\\]\)/\\\1/g'
7083 # Same as above, but do not quote variable references.
7084 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7086 # Sed substitution to delay expansion of an escaped shell variable in a
7087 # double_quote_subst'ed string.
7088 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7090 # Sed substitution to delay expansion of an escaped single quote.
7091 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7093 # Sed substitution to avoid accidental globbing in evaled expressions
7094 no_glob_subst='s/\*/\\\*/g'
7098 can_build_shared=yes
7100 # All known linkers require a `.a
' archive for static linking (except MSVC,
7101 # which needs '.lib
').
7104 with_gnu_ld="$lt_cv_prog_gnu_ld"
7107 old_CFLAGS="$CFLAGS"
7109 # Set sane defaults for various variables
7110 test -z "$CC" && CC=cc
7111 test -z "$LTCC" && LTCC=$CC
7112 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7113 test -z "$LD" && LD=ld
7114 test -z "$ac_objext" && ac_objext=o
7116 for cc_temp in $compiler""; do
7118 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7119 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7124 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's
%.
*/%%' -e "s%^$host_alias-%%"`
7127 # Only perform the check for file, if the check method requires it
7128 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7129 case $deplibs_check_method in
7131 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7132 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7133 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7134 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7135 echo $ECHO_N "(cached) $ECHO_C" >&6
7139 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7142 lt_save_MAGIC_CMD="$MAGIC_CMD"
7143 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7144 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7145 for ac_dir in $ac_dummy; do
7147 test -z "$ac_dir" && ac_dir=.
7148 if test -f $ac_dir/${ac_tool_prefix}file; then
7149 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7150 if test -n "$file_magic_test_file"; then
7151 case $deplibs_check_method in
7153 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7154 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7155 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7156 $EGREP "$file_magic_regex" > /dev/null; then
7161 *** Warning: the command libtool uses to detect shared libraries,
7162 *** $file_magic_cmd, produces output that libtool cannot recognize.
7163 *** The result is that libtool may fail to recognize shared libraries
7164 *** as such. This will affect the creation of libtool libraries that
7165 *** depend on shared libraries, but programs linked with such libtool
7166 *** libraries will work regardless of this problem. Nevertheless, you
7167 *** may want to report the problem to your system manager and/or to
7168 *** bug-libtool@gnu.org
7178 MAGIC_CMD="$lt_save_MAGIC_CMD"
7183 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7184 if test -n "$MAGIC_CMD"; then
7185 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7186 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7188 { echo "$as_me:$LINENO: result: no" >&5
7189 echo "${ECHO_T}no" >&6; }
7196 if test -z "$lt_cv_path_MAGIC_CMD"; then
7197 if test -n "$ac_tool_prefix"; then
7198 { echo "$as_me:$LINENO: checking for file" >&5
7199 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7200 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7201 echo $ECHO_N "(cached) $ECHO_C" >&6
7205 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7208 lt_save_MAGIC_CMD="$MAGIC_CMD"
7209 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7210 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7211 for ac_dir in $ac_dummy; do
7213 test -z "$ac_dir" && ac_dir=.
7214 if test -f $ac_dir/file; then
7215 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7216 if test -n "$file_magic_test_file"; then
7217 case $deplibs_check_method in
7219 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7220 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7221 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7222 $EGREP "$file_magic_regex" > /dev/null; then
7227 *** Warning: the command libtool uses to detect shared libraries,
7228 *** $file_magic_cmd, produces output that libtool cannot recognize.
7229 *** The result is that libtool may fail to recognize shared libraries
7230 *** as such. This will affect the creation of libtool libraries that
7231 *** depend on shared libraries, but programs linked with such libtool
7232 *** libraries will work regardless of this problem. Nevertheless, you
7233 *** may want to report the problem to your system manager and/or to
7234 *** bug-libtool@gnu.org
7244 MAGIC_CMD="$lt_save_MAGIC_CMD"
7249 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7250 if test -n "$MAGIC_CMD"; then
7251 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7252 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7254 { echo "$as_me:$LINENO: result: no" >&5
7255 echo "${ECHO_T}no" >&6; }
7268 # Use C for the default configuration in the libtool script
7272 ac_cpp='$CPP $CPPFLAGS'
7273 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
7274 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
7275 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7278 # Source file extension for C test sources.
7281 # Object file extension for compiled C test sources.
7285 # Code to be used in simple compile tests
7286 lt_simple_compile_test_code="int some_variable = 0;"
7288 # Code to be used in simple link tests
7289 lt_simple_link_test_code='int main
(){return(0);}'
7297 # If no C compiler was specified, use CC.
7300 # If no C compiler flags were specified, use CFLAGS.
7301 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7303 # Allow CC to be a program name with arguments.
7306 # Save the default compiler, since it gets overwritten when the other
7307 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7308 compiler_DEFAULT=$CC
7310 # save warnings/boilerplate of simple test code
7311 ac_outfile=conftest.$ac_objext
7312 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7313 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$
/d
; /^
*+/d
' >conftest.err
7314 _lt_compiler_boilerplate=`cat conftest.err`
7317 ac_outfile=conftest.$ac_objext
7318 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7319 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$
/d
; /^
*+/d
' >conftest.err
7320 _lt_linker_boilerplate=`cat conftest.err`
7325 ## There is no encapsulation within the following macros, do not change
7326 ## the running order or otherwise move them around unless you know exactly
7327 ## what you are doing...
7328 if test -n "$compiler"; then
7330 lt_prog_compiler_no_builtin_flag=
7332 if test "$GCC" = yes; then
7333 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7335 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7336 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7337 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7338 echo $ECHO_N "(cached) $ECHO_C" >&6
7340 lt_cv_prog_compiler_rtti_exceptions=no
7341 ac_outfile=conftest.$ac_objext
7342 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7343 lt_compiler_flag="-fno-rtti -fno-exceptions"
7344 # Insert the option either (1) after the last *FLAGS variable, or
7345 # (2) before a word containing "conftest.", or (3) at the end.
7346 # Note that $ac_compile itself does not contain backslashes and begins
7347 # with a dollar sign (not a hyphen), so the echo should work correctly.
7348 # The option is referenced via a variable to avoid confusing sed.
7349 lt_compile=`echo "$ac_compile" | $SED \
7350 -e 's
:.
*FLAGS
}\
{0,1\
} :&$lt_compiler_flag :; t
' \
7351 -e 's
: [^
]*conftest\.
: $lt_compiler_flag&:; t
' \
7352 -e 's
:$
: $lt_compiler_flag:'`
7353 (eval echo "\"\$as_me:7353: $lt_compile\"" >&5)
7354 (eval "$lt_compile" 2>conftest.err)
7356 cat conftest.err >&5
7357 echo "$as_me:7357: \$? = $ac_status" >&5
7358 if (exit $ac_status) && test -s "$ac_outfile"; then
7359 # The compiler can only warn and ignore the option if not recognized
7360 # So say no if there are warnings other than the usual output.
7361 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$
/d
' >conftest.exp
7362 $SED '/^$
/d
; /^
*+/d
' conftest.err >conftest.er2
7363 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7364 lt_cv_prog_compiler_rtti_exceptions=yes
7370 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7371 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7373 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7374 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7386 lt_prog_compiler_wl=
7387 lt_prog_compiler_pic=
7388 lt_prog_compiler_static=
7390 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7391 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7393 if test "$GCC" = yes; then
7394 lt_prog_compiler_wl='-Wl,'
7395 lt_prog_compiler_static='-static'
7399 # All AIX code is PIC.
7400 if test "$host_cpu" = ia64; then
7401 # AIX 5 now supports IA64 processor
7402 lt_prog_compiler_static='-Bstatic'
7409 # see comment about AmigaOS4 .so support
7410 lt_prog_compiler_pic='-fPIC'
7413 # FIXME: we need at least 68020 code to build shared libraries, but
7414 # adding the `-m68020' flag to GCC prevents building anything better
,
7416 lt_prog_compiler_pic
='-m68020 -resident32 -malways-restore-a4'
7421 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
7422 # PIC is the default for these OSes.
7425 mingw
* | cygwin
* | pw32
* | os2
* | cegcc
*)
7426 # This hack is so that the source file can tell whether it is being
7427 # built for inclusion in a dll (and should export symbols for example).
7428 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7429 # (--disable-auto-import) libraries
7430 lt_prog_compiler_pic
='-DDLL_EXPORT'
7433 darwin
* | rhapsody
*)
7434 # PIC is the default on this platform
7435 # Common symbols not allowed in MH_DYLIB files
7436 lt_prog_compiler_pic
='-fno-common'
7440 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7441 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7442 # sets the default TLS model and affects inlining.
7448 lt_prog_compiler_pic
='-fPIC'
7454 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7455 # Instead, we relocate shared libraries at runtime.
7459 # Just because we use GCC doesn't mean we suddenly get shared libraries
7460 # on systems that don't support them.
7461 lt_prog_compiler_can_build_shared
=no
7466 # QNX uses GNU C++, but need to define -shared option too, otherwise
7468 lt_prog_compiler_pic
='-fPIC -shared'
7472 if test -d /usr
/nec
; then
7473 lt_prog_compiler_pic
=-Kconform_pic
7478 lt_prog_compiler_pic
='-fPIC'
7482 # PORTME Check for flag to pass linker flags through the system compiler.
7485 lt_prog_compiler_wl
='-Wl,'
7486 if test "$host_cpu" = ia64
; then
7487 # AIX 5 now supports IA64 processor
7488 lt_prog_compiler_static
='-Bstatic'
7490 lt_prog_compiler_static
='-bnso -bI:/lib/syscalls.exp'
7494 mingw
* | cygwin
* | pw32
* | os2
* | cegcc
*)
7495 # This hack is so that the source file can tell whether it is being
7496 # built for inclusion in a dll (and should export symbols for example).
7497 lt_prog_compiler_pic
='-DDLL_EXPORT'
7500 hpux9
* | hpux10
* | hpux11
*)
7501 lt_prog_compiler_wl
='-Wl,'
7502 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7509 lt_prog_compiler_pic
='+Z'
7512 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7513 lt_prog_compiler_static
='${wl}-a ${wl}archive'
7516 irix5
* | irix6
* | nonstopux
*)
7517 lt_prog_compiler_wl
='-Wl,'
7518 # PIC (with -KPIC) is the default.
7519 lt_prog_compiler_static
='-non_shared'
7522 linux
* | k
*bsd
*-gnu)
7523 case $cc_basename in
7524 # old Intel for x86_64 which still supported -KPIC.
7526 lt_prog_compiler_wl
='-Wl,'
7527 lt_prog_compiler_pic
='-KPIC'
7528 lt_prog_compiler_static
='-static'
7530 # icc used to be incompatible with GCC.
7531 # ICC 10 doesn't accept -KPIC any more.
7533 lt_prog_compiler_wl
='-Wl,'
7534 lt_prog_compiler_pic
='-fPIC'
7535 lt_prog_compiler_static
='-static'
7537 # Lahey Fortran 8.1.
7539 lt_prog_compiler_wl
='-Wl,'
7540 lt_prog_compiler_pic
='--shared'
7541 lt_prog_compiler_static
='--static'
7543 pgcc
* | pgf77
* | pgf90
* | pgf95
*)
7544 # Portland Group compilers (*not* the Pentium gcc compiler,
7545 # which looks to be a dead project)
7546 lt_prog_compiler_wl
='-Wl,'
7547 lt_prog_compiler_pic
='-fpic'
7548 lt_prog_compiler_static
='-Bstatic'
7551 lt_prog_compiler_wl
='-Wl,'
7552 # All Alpha code is PIC.
7553 lt_prog_compiler_static
='-non_shared'
7556 # IBM XL C 8.0/Fortran 10.1 on PPC
7557 lt_prog_compiler_wl
='-Wl,'
7558 lt_prog_compiler_pic
='-qpic'
7559 lt_prog_compiler_static
='-qstaticlink'
7562 case `$CC -V 2>&1 | sed 5q` in
7565 lt_prog_compiler_pic
='-KPIC'
7566 lt_prog_compiler_static
='-Bstatic'
7567 lt_prog_compiler_wl
='-Wl,'
7570 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7571 lt_prog_compiler_pic
='-KPIC'
7572 lt_prog_compiler_static
='-Bstatic'
7573 lt_prog_compiler_wl
=''
7581 lt_prog_compiler_pic
='-KPIC'
7582 lt_prog_compiler_static
='-Bstatic'
7586 # QNX uses GNU C++, but need to define -shared option too, otherwise
7588 lt_prog_compiler_pic
='-fPIC -shared'
7591 osf3
* | osf4
* | osf5
*)
7592 lt_prog_compiler_wl
='-Wl,'
7593 # All OSF/1 code is PIC.
7594 lt_prog_compiler_static
='-non_shared'
7598 lt_prog_compiler_static
='-non_shared'
7602 lt_prog_compiler_pic
='-KPIC'
7603 lt_prog_compiler_static
='-Bstatic'
7604 case $cc_basename in
7606 lt_prog_compiler_wl
='-Qoption ld ';;
7608 lt_prog_compiler_wl
='-Wl,';;
7613 lt_prog_compiler_wl
='-Qoption ld '
7614 lt_prog_compiler_pic
='-PIC'
7615 lt_prog_compiler_static
='-Bstatic'
7618 sysv4 | sysv4.2uw2
* | sysv4.3
*)
7619 lt_prog_compiler_wl
='-Wl,'
7620 lt_prog_compiler_pic
='-KPIC'
7621 lt_prog_compiler_static
='-Bstatic'
7625 if test -d /usr
/nec
;then
7626 lt_prog_compiler_pic
='-Kconform_pic'
7627 lt_prog_compiler_static
='-Bstatic'
7631 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
7632 lt_prog_compiler_wl
='-Wl,'
7633 lt_prog_compiler_pic
='-KPIC'
7634 lt_prog_compiler_static
='-Bstatic'
7638 lt_prog_compiler_wl
='-Wl,'
7639 lt_prog_compiler_can_build_shared
=no
7643 lt_prog_compiler_pic
='-pic'
7644 lt_prog_compiler_static
='-Bstatic'
7648 lt_prog_compiler_can_build_shared
=no
7654 # For platforms which do not support PIC, -DPIC is meaningless:
7656 lt_prog_compiler_pic
=
7659 lt_prog_compiler_pic
="$lt_prog_compiler_pic -DPIC"
7662 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7663 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7671 # Check to make sure the PIC flag actually works.
7673 if test -n "$lt_prog_compiler_pic"; then
7674 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7675 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7676 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7677 echo $ECHO_N "(cached) $ECHO_C" >&6
7679 lt_cv_prog_compiler_pic_works
=no
7680 ac_outfile
=conftest.
$ac_objext
7681 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
7682 lt_compiler_flag
="$lt_prog_compiler_pic -DPIC"
7683 # Insert the option either (1) after the last *FLAGS variable, or
7684 # (2) before a word containing "conftest.", or (3) at the end.
7685 # Note that $ac_compile itself does not contain backslashes and begins
7686 # with a dollar sign (not a hyphen), so the echo should work correctly.
7687 # The option is referenced via a variable to avoid confusing sed.
7688 lt_compile
=`echo "$ac_compile" | $SED \
7689 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7690 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7691 -e 's:$: $lt_compiler_flag:'`
7692 (eval echo "\"\$as_me:7692: $lt_compile\"" >&5)
7693 (eval "$lt_compile" 2>conftest.err
)
7695 cat conftest.err
>&5
7696 echo "$as_me:7696: \$? = $ac_status" >&5
7697 if (exit $ac_status) && test -s "$ac_outfile"; then
7698 # The compiler can only warn and ignore the option if not recognized
7699 # So say no if there are warnings other than the usual output.
7700 $ECHO "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
7701 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
7702 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
7703 lt_cv_prog_compiler_pic_works
=yes
7709 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7710 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
7712 if test x
"$lt_cv_prog_compiler_pic_works" = xyes
; then
7713 case $lt_prog_compiler_pic in
7715 *) lt_prog_compiler_pic
=" $lt_prog_compiler_pic" ;;
7718 lt_prog_compiler_pic
=
7719 lt_prog_compiler_can_build_shared
=no
7730 # Check to make sure the static flag actually works.
7732 wl
=$lt_prog_compiler_wl eval lt_tmp_static_flag
=\"$lt_prog_compiler_static\"
7733 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7734 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7735 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
7736 echo $ECHO_N "(cached) $ECHO_C" >&6
7738 lt_cv_prog_compiler_static_works
=no
7739 save_LDFLAGS
="$LDFLAGS"
7740 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
7741 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
7742 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
7743 # The linker can only warn and ignore the option if not recognized
7744 # So say no if there are warnings
7745 if test -s conftest.err
; then
7746 # Append any errors to the config.log.
7747 cat conftest.err
1>&5
7748 $ECHO "X$_lt_linker_boilerplate" |
$Xsed -e '/^$/d' > conftest.exp
7749 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
7750 if diff conftest.exp conftest.er2
>/dev
/null
; then
7751 lt_cv_prog_compiler_static_works
=yes
7754 lt_cv_prog_compiler_static_works
=yes
7758 LDFLAGS
="$save_LDFLAGS"
7761 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
7762 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
7764 if test x
"$lt_cv_prog_compiler_static_works" = xyes
; then
7767 lt_prog_compiler_static
=
7776 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7777 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7778 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7779 echo $ECHO_N "(cached) $ECHO_C" >&6
7781 lt_cv_prog_compiler_c_o
=no
7782 $RM -r conftest
2>/dev
/null
7786 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
7788 lt_compiler_flag
="-o out/conftest2.$ac_objext"
7789 # Insert the option either (1) after the last *FLAGS variable, or
7790 # (2) before a word containing "conftest.", or (3) at the end.
7791 # Note that $ac_compile itself does not contain backslashes and begins
7792 # with a dollar sign (not a hyphen), so the echo should work correctly.
7793 lt_compile
=`echo "$ac_compile" | $SED \
7794 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7795 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7796 -e 's:$: $lt_compiler_flag:'`
7797 (eval echo "\"\$as_me:7797: $lt_compile\"" >&5)
7798 (eval "$lt_compile" 2>out
/conftest.err
)
7800 cat out
/conftest.err
>&5
7801 echo "$as_me:7801: \$? = $ac_status" >&5
7802 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
7804 # The compiler can only warn and ignore the option if not recognized
7805 # So say no if there are warnings
7806 $ECHO "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' > out
/conftest.exp
7807 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
7808 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
7809 lt_cv_prog_compiler_c_o
=yes
7814 # SGI C++ compiler will create directory out/ii_files/ for
7815 # template instantiation
7816 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
7817 $RM out
/* && rmdir out
7823 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7824 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7831 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7832 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7833 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7834 echo $ECHO_N "(cached) $ECHO_C" >&6
7836 lt_cv_prog_compiler_c_o
=no
7837 $RM -r conftest
2>/dev
/null
7841 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
7843 lt_compiler_flag
="-o out/conftest2.$ac_objext"
7844 # Insert the option either (1) after the last *FLAGS variable, or
7845 # (2) before a word containing "conftest.", or (3) at the end.
7846 # Note that $ac_compile itself does not contain backslashes and begins
7847 # with a dollar sign (not a hyphen), so the echo should work correctly.
7848 lt_compile
=`echo "$ac_compile" | $SED \
7849 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7850 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7851 -e 's:$: $lt_compiler_flag:'`
7852 (eval echo "\"\$as_me:7852: $lt_compile\"" >&5)
7853 (eval "$lt_compile" 2>out
/conftest.err
)
7855 cat out
/conftest.err
>&5
7856 echo "$as_me:7856: \$? = $ac_status" >&5
7857 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
7859 # The compiler can only warn and ignore the option if not recognized
7860 # So say no if there are warnings
7861 $ECHO "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' > out
/conftest.exp
7862 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
7863 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
7864 lt_cv_prog_compiler_c_o
=yes
7869 # SGI C++ compiler will create directory out/ii_files/ for
7870 # template instantiation
7871 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
7872 $RM out
/* && rmdir out
7878 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7879 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7884 hard_links
="nottested"
7885 if test "$lt_cv_prog_compiler_c_o" = no
&& test "$need_locks" != no
; then
7886 # do not overwrite the value of need_locks provided by the user
7887 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7888 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7891 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
7893 ln conftest.a conftest.b
2>&5 || hard_links
=no
7894 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
7895 { echo "$as_me:$LINENO: result: $hard_links" >&5
7896 echo "${ECHO_T}$hard_links" >&6; }
7897 if test "$hard_links" = no
; then
7898 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7899 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7911 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7912 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7915 allow_undefined_flag
=
7916 always_export_symbols
=no
7918 archive_expsym_cmds
=
7919 compiler_needs_object
=no
7920 enable_shared_with_static_runtimes
=no
7921 export_dynamic_flag_spec
=
7922 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7923 hardcode_automatic
=no
7925 hardcode_direct_absolute
=no
7926 hardcode_libdir_flag_spec
=
7927 hardcode_libdir_flag_spec_ld
=
7928 hardcode_libdir_separator
=
7930 hardcode_shlibpath_var
=unsupported
7932 link_all_deplibs
=unknown
7935 old_archive_from_new_cmds
=
7936 old_archive_from_expsyms_cmds
=
7937 thread_safe_flag_spec
=
7938 whole_archive_flag_spec
=
7939 # include_expsyms should be a list of space-separated symbols to be *always*
7940 # included in the symbol list
7942 # exclude_expsyms can be an extended regexp of symbols to exclude
7943 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7944 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7945 # as well as any symbol that contains `d'.
7946 exclude_expsyms
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7947 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7948 # platforms (ab)use it in PIC code, but their linkers get confused if
7949 # the symbol is explicitly referenced. Since portable code cannot
7950 # rely on this symbol name, it's probably fine to never include it in
7951 # preloaded symbol tables.
7952 # Exclude shared library initialization/finalization symbols.
7953 extract_expsyms_cmds
=
7956 cygwin
* | mingw
* | pw32
* | cegcc
*)
7957 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7958 # When not using gcc, we currently assume that we are using
7959 # Microsoft Visual C++.
7960 if test "$GCC" != yes; then
7965 # we just hope/assume this is gcc and not c89 (= MSVC++)
7974 if test "$with_gnu_ld" = yes; then
7975 # If archive_cmds runs LD, not CC, wlarc should be empty
7978 # Set some defaults for GNU ld with shared library support. These
7979 # are reset later if shared libraries are not supported. Putting them
7980 # here allows them to be overridden if necessary.
7981 runpath_var
=LD_RUN_PATH
7982 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
7983 export_dynamic_flag_spec
='${wl}--export-dynamic'
7984 # ancient GNU ld didn't support --whole-archive et. al.
7985 if $LD --help 2>&1 |
$GREP 'no-whole-archive' > /dev
/null
; then
7986 whole_archive_flag_spec
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7988 whole_archive_flag_spec
=
7990 supports_anon_versioning
=no
7991 case `$LD -v 2>&1` in
7992 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
7993 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
7994 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
7995 *\
2.11.
*) ;; # other 2.11 versions
7996 *) supports_anon_versioning
=yes ;;
7999 # See if GNU ld supports shared libraries.
8002 # On AIX/PPC, the GNU linker is very broken
8003 if test "$host_cpu" != ia64
; then
8007 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8008 *** to be unable to reliably create shared libraries on AIX.
8009 *** Therefore, libtool is disabling shared libraries support. If you
8010 *** really care for shared libraries, you may want to modify your PATH
8011 *** so that a non-GNU linker is found, and then restart.
8020 # see comment about AmigaOS4 .so support
8021 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8022 archive_expsym_cmds
=''
8025 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)'
8026 hardcode_libdir_flag_spec
='-L$libdir'
8027 hardcode_minus_L
=yes
8033 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
8034 allow_undefined_flag
=unsupported
8035 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8036 # support --undefined. This deserves some investigation. FIXME
8037 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8043 cygwin
* | mingw
* | pw32
* | cegcc
*)
8044 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8045 # as there is no search path for DLLs.
8046 hardcode_libdir_flag_spec
='-L$libdir'
8047 allow_undefined_flag
=unsupported
8048 always_export_symbols
=no
8049 enable_shared_with_static_runtimes
=yes
8050 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8052 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
8053 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8054 # If the export-symbols file already is a .def file (1st line
8055 # is EXPORTS), use it as is; otherwise, prepend...
8056 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8057 cp $export_symbols $output_objdir/$soname.def;
8059 echo EXPORTS > $output_objdir/$soname.def;
8060 cat $export_symbols >> $output_objdir/$soname.def;
8062 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8070 hardcode_shlibpath_var
=no
8071 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
8072 export_dynamic_flag_spec
='${wl}-E'
8073 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8074 # Instead, shared libraries are loaded at an image base (0x10000000 by
8075 # default) and relocated if they conflict, which is a slow very memory
8076 # consuming and fragmenting process. To avoid this, we pick a random,
8077 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8078 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8079 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8080 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'
8083 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu)
8085 if test "$host_os" = linux-dietlibc
; then
8086 case $cc_basename in
8087 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
8090 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
8091 && test "$tmp_diet" = no
8094 tmp_sharedflag
='-shared'
8095 case $cc_basename,$host_cpu in
8096 pgcc
*) # Portland Group C compiler
8097 whole_archive_flag_spec
='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8098 tmp_addflag
=' $pic_flag'
8100 pgf77
* | pgf90
* | pgf95
*) # Portland Group f77 and f90 compilers
8101 whole_archive_flag_spec
='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8102 tmp_addflag
=' $pic_flag -Mnomain' ;;
8103 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
8104 tmp_addflag
=' -i_dynamic' ;;
8105 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
8106 tmp_addflag
=' -i_dynamic -nofor_main' ;;
8107 ifc
* | ifort
*) # Intel Fortran compiler
8108 tmp_addflag
=' -nofor_main' ;;
8109 lf95
*) # Lahey Fortran 8.1
8110 whole_archive_flag_spec
=
8111 tmp_sharedflag
='--shared' ;;
8112 xl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8113 tmp_sharedflag
='-qmkshrobj'
8116 case `$CC -V 2>&1 | sed 5q` in
8117 *Sun\ C
*) # Sun C 5.9
8118 whole_archive_flag_spec
='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8119 compiler_needs_object
=yes
8120 tmp_sharedflag
='-G' ;;
8121 *Sun\ F
*) # Sun Fortran 8.3
8122 tmp_sharedflag
='-G' ;;
8124 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8126 if test "x$supports_anon_versioning" = xyes
; then
8127 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
8128 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8129 echo "local: *; };" >> $output_objdir/$libname.ver~
8130 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8133 case $cc_basename in
8135 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8136 whole_archive_flag_spec
='--whole-archive$convenience --no-whole-archive'
8137 hardcode_libdir_flag_spec
=
8138 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
8139 archive_cmds
='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8140 if test "x$supports_anon_versioning" = xyes
; then
8141 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
8142 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8143 echo "local: *; };" >> $output_objdir/$libname.ver~
8144 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8154 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
8155 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8158 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8159 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8164 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
8168 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8169 *** create shared libraries on Solaris systems. Therefore, libtool
8170 *** is disabling shared libraries support. We urge you to upgrade GNU
8171 *** binutils to release 2.9.1 or newer. Another option is to modify
8172 *** your PATH or compiler configuration so that the native linker is
8173 *** used, and then restart.
8176 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
8177 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8178 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8184 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
8185 case `$LD -v 2>&1` in
8186 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
8190 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8191 *** reliably create shared libraries on SCO systems. Therefore, libtool
8192 *** is disabling shared libraries support. We urge you to upgrade GNU
8193 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8194 *** your PATH or compiler configuration so that the native linker is
8195 *** used, and then restart.
8200 # For security reasons, it is highly recommended that you always
8201 # use absolute paths for naming shared libraries, and exclude the
8202 # DT_RUNPATH tag from executables and libraries. But doing so
8203 # requires that you compile everything twice, which is a pain.
8204 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
8205 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
8206 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8207 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8216 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8219 hardcode_shlibpath_var
=no
8223 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
8224 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8225 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8232 if test "$ld_shlibs" = no
; then
8234 hardcode_libdir_flag_spec
=
8235 export_dynamic_flag_spec
=
8236 whole_archive_flag_spec
=
8239 # PORTME fill in a description of your system's linker (not GNU ld)
8242 allow_undefined_flag
=unsupported
8243 always_export_symbols
=yes
8244 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'
8245 # Note: this linker hardcodes the directories in LIBPATH if there
8246 # are no directories specified by -L.
8247 hardcode_minus_L
=yes
8248 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8249 # Neither direct hardcoding nor static linking is supported with a
8251 hardcode_direct
=unsupported
8256 if test "$host_cpu" = ia64
; then
8257 # On IA64, the linker does run time linking by default, so we don't
8258 # have to do anything special.
8259 aix_use_runtimelinking
=no
8260 exp_sym_flag
='-Bexport'
8263 # If we're using GNU nm, then we don't want the "-C" option.
8264 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8265 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
8266 export_symbols_cmds
='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8268 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'
8270 aix_use_runtimelinking
=no
8272 # Test if we are trying to use run time linking or normal
8273 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8274 # need to do runtime linking.
8275 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
8276 for ld_flag
in $LDFLAGS; do
8277 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
8278 aix_use_runtimelinking
=yes
8285 exp_sym_flag
='-bexport'
8286 no_entry_flag
='-bnoentry'
8289 # When large executables or shared objects are built, AIX ld can
8290 # have problems creating the table of contents. If linking a library
8291 # or program results in "error TOC overflow" add -mminimal-toc to
8292 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8293 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8297 hardcode_direct_absolute
=yes
8298 hardcode_libdir_separator
=':'
8299 link_all_deplibs
=yes
8300 file_list_spec
='${wl}-f,'
8302 if test "$GCC" = yes; then
8303 case $host_os in aix4.
[012]|aix4.
[012].
*)
8304 # We only want to do this on AIX 4.2 and lower, the check
8305 # below for broken collect2 doesn't work under 4.3+
8306 collect2name
=`${CC} -print-prog-name=collect2`
8307 if test -f "$collect2name" &&
8308 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
8310 # We have reworked collect2
8313 # We have old collect2
8314 hardcode_direct
=unsupported
8315 # It fails to find uninstalled libraries when the uninstalled
8316 # path is not listed in the libpath. Setting hardcode_minus_L
8317 # to unsupported forces relinking
8318 hardcode_minus_L
=yes
8319 hardcode_libdir_flag_spec
='-L$libdir'
8320 hardcode_libdir_separator
=
8324 shared_flag
='-shared'
8325 if test "$aix_use_runtimelinking" = yes; then
8326 shared_flag
="$shared_flag "'${wl}-G'
8330 if test "$host_cpu" = ia64
; then
8331 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8332 # chokes on -Wl,-G. The following line is correct:
8335 if test "$aix_use_runtimelinking" = yes; then
8336 shared_flag
='${wl}-G'
8338 shared_flag
='${wl}-bM:SRE'
8343 export_dynamic_flag_spec
='${wl}-bexpall'
8344 # It seems that -bexpall does not export symbols beginning with
8345 # underscore (_), so it is better to generate a list of symbols to export.
8346 always_export_symbols
=yes
8347 if test "$aix_use_runtimelinking" = yes; then
8348 # Warning - without using the other runtime loading flags (-brtl),
8349 # -berok will link without error, but may produce a broken library.
8350 allow_undefined_flag
='-berok'
8351 # Determine the default libpath from the value encoded in an
8353 cat >conftest.
$ac_ext <<_ACEOF
8356 cat confdefs.h
>>conftest.
$ac_ext
8357 cat >>conftest.
$ac_ext <<_ACEOF
8358 /* end confdefs.h. */
8368 rm -f conftest.
$ac_objext conftest
$ac_exeext
8369 if { (ac_try
="$ac_link"
8371 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8372 *) ac_try_echo=$ac_try;;
8374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8375 (eval "$ac_link") 2>conftest.er1
8377 grep -v '^ *+' conftest.er1 >conftest.err
8379 cat conftest.err >&5
8380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8381 (exit $ac_status); } && {
8382 test -z "$ac_c_werror_flag" ||
8383 test ! -s conftest.err
8384 } && test -s conftest$ac_exeext &&
8385 $as_test_x conftest$ac_exeext; then
8387 lt_aix_libpath_sed='
8388 /Import File Strings/,/^$/ {
8394 aix_libpath=`dump
-H conftest
$ac_exeext 2>/dev
/null |
$SED -n -e "$lt_aix_libpath_sed"`
8395 # Check for a 64-bit object if we didn't find anything.
8396 if test -z "$aix_libpath"; then
8397 aix_libpath=`dump
-HX64 conftest
$ac_exeext 2>/dev
/null |
$SED -n -e "$lt_aix_libpath_sed"`
8400 echo "$as_me: failed program was:" >&5
8401 sed 's/^/| /' conftest.$ac_ext >&5
8406 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8407 conftest$ac_exeext conftest.$ac_ext
8408 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8410 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8411 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8413 if test "$host_cpu" = ia64; then
8414 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8415 allow_undefined_flag="-z nodefs"
8416 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"
8418 # Determine the default libpath from the value encoded in an
8420 cat >conftest.$ac_ext <<_ACEOF
8423 cat confdefs.h >>conftest.$ac_ext
8424 cat >>conftest.$ac_ext <<_ACEOF
8425 /* end confdefs.h. */
8435 rm -f conftest.$ac_objext conftest$ac_exeext
8436 if { (ac_try="$ac_link"
8438 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8439 *) ac_try_echo
=$ac_try;;
8441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8442 (eval "$ac_link") 2>conftest.er1
8444 grep -v '^ *+' conftest.er1
>conftest.err
8446 cat conftest.err
>&5
8447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8448 (exit $ac_status); } && {
8449 test -z "$ac_c_werror_flag" ||
8450 test ! -s conftest.err
8451 } && test -s conftest
$ac_exeext &&
8452 $as_test_x conftest
$ac_exeext; then
8454 lt_aix_libpath_sed
='
8455 /Import File Strings/,/^$/ {
8461 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8462 # Check for a 64-bit object if we didn't find anything.
8463 if test -z "$aix_libpath"; then
8464 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8467 echo "$as_me: failed program was:" >&5
8468 sed 's/^/| /' conftest.
$ac_ext >&5
8473 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
8474 conftest
$ac_exeext conftest.
$ac_ext
8475 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
8477 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
8478 # Warning - without using the other run time loading flags,
8479 # -berok will link without error, but may produce a broken library.
8480 no_undefined_flag
=' ${wl}-bernotok'
8481 allow_undefined_flag
=' ${wl}-berok'
8482 # Exported symbols can be pulled into shared objects from archives
8483 whole_archive_flag_spec
='$convenience'
8484 archive_cmds_need_lc
=yes
8485 # This is similar to how AIX traditionally builds its shared libraries.
8486 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'
8494 # see comment about AmigaOS4 .so support
8495 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8496 archive_expsym_cmds
=''
8499 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)'
8500 hardcode_libdir_flag_spec
='-L$libdir'
8501 hardcode_minus_L
=yes
8507 export_dynamic_flag_spec
=-rdynamic
8510 cygwin
* | mingw
* | pw32
* | cegcc
*)
8511 # When not using gcc, we currently assume that we are using
8512 # Microsoft Visual C++.
8513 # hardcode_libdir_flag_spec is actually meaningless, as there is
8514 # no search path for DLLs.
8515 hardcode_libdir_flag_spec
=' '
8516 allow_undefined_flag
=unsupported
8517 # Tell ltmain to make .lib files, not .a files.
8519 # Tell ltmain to make .dll files, not .so files.
8521 # FIXME: Setting linknames here is a bad hack.
8522 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8523 # The linker will automatically build a .lib file if we build a DLL.
8524 old_archive_from_new_cmds
='true'
8525 # FIXME: Should let the user specify the lib program.
8526 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
8527 fix_srcfile_path
='`cygpath -w "$srcfile"`'
8528 enable_shared_with_static_runtimes
=yes
8531 darwin
* | rhapsody
*)
8534 archive_cmds_need_lc
=no
8536 hardcode_automatic
=yes
8537 hardcode_shlibpath_var
=unsupported
8538 whole_archive_flag_spec
=''
8539 link_all_deplibs
=yes
8540 allow_undefined_flag
="$_lt_dar_allow_undefined"
8541 case $cc_basename in
8542 ifort
*) _lt_dar_can_shared
=yes ;;
8543 *) _lt_dar_can_shared
=$GCC ;;
8545 if test "$_lt_dar_can_shared" = "yes"; then
8546 output_verbose_link_cmd
=echo
8547 archive_cmds
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8548 module_cmds
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8549 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}"
8550 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}"
8559 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8560 hardcode_libdir_flag_spec
='-L$libdir'
8561 hardcode_shlibpath_var
=no
8568 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8569 # support. Future versions do this automatically, but an explicit c++rt0.o
8570 # does not break anything, and helps significantly (at the cost of a little
8573 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8574 hardcode_libdir_flag_spec
='-R$libdir'
8576 hardcode_shlibpath_var
=no
8579 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8581 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8583 hardcode_minus_L
=yes
8584 hardcode_shlibpath_var
=no
8587 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8588 freebsd
* | dragonfly
*)
8589 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8590 hardcode_libdir_flag_spec
='-R$libdir'
8592 hardcode_shlibpath_var
=no
8596 if test "$GCC" = yes; then
8597 archive_cmds
='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8599 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'
8601 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
8602 hardcode_libdir_separator
=:
8605 # hardcode_minus_L: Not really in the search PATH,
8606 # but as the default location of the library.
8607 hardcode_minus_L
=yes
8608 export_dynamic_flag_spec
='${wl}-E'
8612 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
8613 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8615 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8617 if test "$with_gnu_ld" = no
; then
8618 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
8619 hardcode_libdir_flag_spec_ld
='+b $libdir'
8620 hardcode_libdir_separator
=:
8622 hardcode_direct_absolute
=yes
8623 export_dynamic_flag_spec
='${wl}-E'
8624 # hardcode_minus_L: Not really in the search PATH,
8625 # but as the default location of the library.
8626 hardcode_minus_L
=yes
8631 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
8634 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8637 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8640 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8646 archive_cmds
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8649 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8652 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8656 if test "$with_gnu_ld" = no
; then
8657 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
8658 hardcode_libdir_separator
=:
8663 hardcode_shlibpath_var
=no
8667 hardcode_direct_absolute
=yes
8668 export_dynamic_flag_spec
='${wl}-E'
8670 # hardcode_minus_L: Not really in the search PATH,
8671 # but as the default location of the library.
8672 hardcode_minus_L
=yes
8678 irix5
* | irix6
* | nonstopux
*)
8679 if test "$GCC" = yes; then
8680 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8681 # Try to use the -exported_symbol ld option, if it does not
8682 # work, assume that -exports_file does not work either and
8683 # implicitly export all symbols.
8684 save_LDFLAGS
="$LDFLAGS"
8685 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8686 cat >conftest.
$ac_ext <<_ACEOF
8689 rm -f conftest.
$ac_objext conftest
$ac_exeext
8690 if { (ac_try
="$ac_link"
8692 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8693 *) ac_try_echo=$ac_try;;
8695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8696 (eval "$ac_link") 2>conftest.er1
8698 grep -v '^ *+' conftest.er1 >conftest.err
8700 cat conftest.err >&5
8701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8702 (exit $ac_status); } && {
8703 test -z "$ac_c_werror_flag" ||
8704 test ! -s conftest.err
8705 } && test -s conftest$ac_exeext &&
8706 $as_test_x conftest$ac_exeext; then
8707 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
8710 echo "$as_me: failed program was:" >&5
8711 sed 's/^/| /' conftest.$ac_ext >&5
8716 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8717 conftest$ac_exeext conftest.$ac_ext
8718 LDFLAGS="$save_LDFLAGS"
8720 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" |
$Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8721 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" |
$Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
8723 archive_cmds_need_lc='no'
8724 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8725 hardcode_libdir_separator=:
8727 link_all_deplibs=yes
8731 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8732 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8734 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8736 hardcode_libdir_flag_spec='-R$libdir'
8738 hardcode_shlibpath_var=no
8742 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8744 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8745 hardcode_libdir_separator=:
8746 hardcode_shlibpath_var=no
8753 if test -f /usr/libexec/ld.so; then
8755 hardcode_shlibpath_var=no
8756 hardcode_direct_absolute=yes
8757 if test -z "`echo __ELF__ |
$CC -E - |
$GREP __ELF__
`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8758 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8759 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8760 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8761 export_dynamic_flag_spec='${wl}-E'
8764 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8765 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8766 hardcode_libdir_flag_spec='-R$libdir'
8769 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8770 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8780 hardcode_libdir_flag_spec='-L$libdir'
8781 hardcode_minus_L=yes
8782 allow_undefined_flag=unsupported
8783 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'
8784 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8788 if test "$GCC" = yes; then
8789 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8790 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8792 allow_undefined_flag=' -expect_unresolved \*'
8793 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" |
$Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8795 archive_cmds_need_lc='no'
8796 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8797 hardcode_libdir_separator=:
8800 osf4* | osf5*) # as osf3* with the addition of -msym flag
8801 if test "$GCC" = yes; then
8802 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8803 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8804 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8806 allow_undefined_flag=' -expect_unresolved \*'
8807 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" |
$Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8808 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~
8809 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
8811 # Both c and cxx compiler support -rpath directly
8812 hardcode_libdir_flag_spec='-rpath $libdir'
8814 archive_cmds_need_lc='no'
8815 hardcode_libdir_separator=:
8819 no_undefined_flag=' -z defs'
8820 if test "$GCC" = yes; then
8822 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8823 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8824 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8826 case `$CC -V 2>&1` in
8829 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8830 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8831 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8835 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8836 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8837 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8841 hardcode_libdir_flag_spec='-R$libdir'
8842 hardcode_shlibpath_var=no
8844 solaris2.[0-5] | solaris2.[0-5].*) ;;
8846 # The compiler driver will combine and reorder linker options,
8847 # but understands `-z linker_flag
'. GCC discards it without `$wl',
8848 # but is careful enough not to reorder.
8849 # Supported since Solaris 2.6 (maybe 2.5.1?)
8850 if test "$GCC" = yes; then
8851 whole_archive_flag_spec
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8853 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
8857 link_all_deplibs
=yes
8861 if test "x$host_vendor" = xsequent
; then
8862 # Use $CC to link under sequent, because it throws in some extra .o
8863 # files that make .init and .fini sections work.
8864 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8866 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8868 hardcode_libdir_flag_spec
='-L$libdir'
8870 hardcode_minus_L
=yes
8871 hardcode_shlibpath_var
=no
8875 case $host_vendor in
8877 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8878 hardcode_direct
=yes # is this really true???
8881 ## LD is ld it makes a PLAMLIB
8882 ## CC just makes a GrossModule.
8883 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8884 reload_cmds
='$CC -r -o $output$reload_objs'
8888 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8889 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
8892 runpath_var
='LD_RUN_PATH'
8893 hardcode_shlibpath_var
=no
8897 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8898 hardcode_shlibpath_var
=no
8899 export_dynamic_flag_spec
='-Bexport'
8903 if test -d /usr
/nec
; then
8904 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8905 hardcode_shlibpath_var
=no
8906 runpath_var
=LD_RUN_PATH
8907 hardcode_runpath_var
=yes
8912 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
8913 no_undefined_flag
='${wl}-z,text'
8914 archive_cmds_need_lc
=no
8915 hardcode_shlibpath_var
=no
8916 runpath_var
='LD_RUN_PATH'
8918 if test "$GCC" = yes; then
8919 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8920 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8922 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8923 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8927 sysv5
* | sco3.2v5
* | sco5v6
*)
8928 # Note: We can NOT use -z defs as we might desire, because we do not
8929 # link with -lc, and that would cause any symbols used from libc to
8930 # always be unresolved, which means just about no library would
8931 # ever link correctly. If we're not using GNU ld we use -z text
8932 # though, which does catch some bad symbols but isn't as heavy-handed
8934 no_undefined_flag
='${wl}-z,text'
8935 allow_undefined_flag
='${wl}-z,nodefs'
8936 archive_cmds_need_lc
=no
8937 hardcode_shlibpath_var
=no
8938 hardcode_libdir_flag_spec
='${wl}-R,$libdir'
8939 hardcode_libdir_separator
=':'
8940 link_all_deplibs
=yes
8941 export_dynamic_flag_spec
='${wl}-Bexport'
8942 runpath_var
='LD_RUN_PATH'
8944 if test "$GCC" = yes; then
8945 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8946 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8948 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8949 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8954 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8955 hardcode_libdir_flag_spec
='-L$libdir'
8956 hardcode_shlibpath_var
=no
8964 if test x
$host_vendor = xsni
; then
8966 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
8967 export_dynamic_flag_spec
='${wl}-Blargedynsym'
8973 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8974 echo "${ECHO_T}$ld_shlibs" >&6; }
8975 test "$ld_shlibs" = no
&& can_build_shared
=no
8977 with_gnu_ld
=$with_gnu_ld
8994 # Do we need to explicitly link libc?
8996 case "x$archive_cmds_need_lc" in
8998 # Assume -lc should be added
8999 archive_cmds_need_lc
=yes
9001 if test "$enable_shared" = yes && test "$GCC" = yes; then
9002 case $archive_cmds in
9004 # FIXME: we may have to deal with multi-command sequences.
9007 # Test whether the compiler implicitly links with -lc since on some
9008 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9009 # to ld, don't add -lc before -lgcc.
9010 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9011 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
9013 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
9015 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9016 (eval $ac_compile) 2>&5
9018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9019 (exit $ac_status); } 2>conftest.err
; then
9022 libobjs
=conftest.
$ac_objext
9024 wl
=$lt_prog_compiler_wl
9025 pic_flag
=$lt_prog_compiler_pic
9031 lt_save_allow_undefined_flag
=$allow_undefined_flag
9032 allow_undefined_flag
=
9033 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
9034 (eval $archive_cmds 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
9036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9037 (exit $ac_status); }
9039 archive_cmds_need_lc
=no
9041 archive_cmds_need_lc
=yes
9043 allow_undefined_flag
=$lt_save_allow_undefined_flag
9045 cat conftest.err
1>&5
9048 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9049 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
9212 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9213 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9215 if test "$GCC" = yes; then
9217 darwin
*) lt_awk_arg
="/^libraries:/,/LR/" ;;
9218 *) lt_awk_arg
="/^libraries:/" ;;
9220 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9221 if $ECHO "$lt_search_path_spec" |
$GREP ';' >/dev
/null
; then
9222 # if the path contains ";" then we assume it to be the separator
9223 # otherwise default to the standard path separator (i.e. ":") - it is
9224 # assumed that no part of a normal pathname contains ";" but that should
9225 # okay in the real world where ";" in dirpaths is itself problematic.
9226 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9228 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9230 # Ok, now we have the path, separated by spaces, we can step through it
9231 # and add multilib dir if necessary.
9232 lt_tmp_lt_search_path_spec
=
9233 lt_multi_os_dir
=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9234 for lt_sys_path
in $lt_search_path_spec; do
9235 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9236 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9238 test -d "$lt_sys_path" && \
9239 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
9242 lt_search_path_spec
=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9243 BEGIN {RS=" "; FS="/|\n";} {
9246 for (lt_i = NF; lt_i > 0; lt_i--) {
9247 if ($lt_i != "" && $lt_i != ".") {
9248 if ($lt_i == "..") {
9251 if (lt_count == 0) {
9252 lt_foo="/" $lt_i lt_foo;
9259 if (lt_foo != "") { lt_freq[lt_foo]++; }
9260 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9262 sys_lib_search_path_spec
=`$ECHO $lt_search_path_spec`
9264 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
9267 libname_spec
='lib$name'
9275 shlibpath_overrides_runpath
=unknown
9277 dynamic_linker
="$host_os ld.so"
9278 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
9279 need_lib_prefix
=unknown
9280 hardcode_into_libs
=no
9282 # when you set need_version to no, make sure it does not cause -set_version
9283 # flags to be left without arguments
9284 need_version
=unknown
9289 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
9290 shlibpath_var
=LIBPATH
9292 # AIX 3 has no versioning support, so we append a major version to the name.
9293 soname_spec
='${libname}${release}${shared_ext}$major'
9300 hardcode_into_libs
=yes
9301 if test "$host_cpu" = ia64
; then
9302 # AIX 5 supports IA64
9303 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9304 shlibpath_var
=LD_LIBRARY_PATH
9306 # With GCC up to 2.95.x, collect2 would create an import file
9307 # for dependence libraries. The import file would start with
9308 # the line `#! .'. This would cause the generated library to
9309 # depend on `.', always an invalid library. This was fixed in
9310 # development snapshots of GCC prior to 3.0.
9312 aix4 | aix4.
[01] | aix4.
[01].
*)
9313 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9315 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
9322 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9323 # soname into executable. Probably we can add versioning support to
9324 # collect2, so additional links can be useful in future.
9325 if test "$aix_use_runtimelinking" = yes; then
9326 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9327 # instead of lib<name>.a to let people know that these are not
9328 # typical AIX shared libraries.
9329 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9331 # We preserve .a as extension for shared libraries through AIX4.2
9332 # and later when we are not doing run time linking.
9333 library_names_spec
='${libname}${release}.a $libname.a'
9334 soname_spec
='${libname}${release}${shared_ext}$major'
9336 shlibpath_var
=LIBPATH
9343 # Since July 2007 AmigaOS4 officially supports .so libraries.
9344 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9345 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9348 library_names_spec
='$libname.ixlibrary $libname.a'
9349 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9350 finish_eval
='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''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'
9356 library_names_spec
='${libname}${shared_ext}'
9357 dynamic_linker
="$host_os ld.so"
9358 shlibpath_var
=LIBRARY_PATH
9364 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9365 soname_spec
='${libname}${release}${shared_ext}$major'
9366 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
9367 shlibpath_var
=LD_LIBRARY_PATH
9368 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9369 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
9370 # the default ld.so.conf also contains /usr/contrib/lib and
9371 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9372 # libtool to hard-code these into programs
9375 cygwin
* | mingw
* | pw32
* | cegcc
*)
9376 version_type
=windows
9381 case $GCC,$host_os in
9382 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
9383 library_names_spec
='$libname.dll.a'
9384 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9385 postinstall_cmds
='base_file=`basename \${file}`~
9386 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9387 dldir=$destdir/`dirname \$dlpath`~
9388 test -d \$dldir || mkdir -p \$dldir~
9389 $install_prog $dir/$dlname \$dldir/$dlname~
9390 chmod a+x \$dldir/$dlname~
9391 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9392 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9394 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9395 dlpath=$dir/\$dldll~
9397 shlibpath_overrides_runpath
=yes
9401 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9402 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9403 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
9406 # MinGW DLLs use traditional 'lib' prefix
9407 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9408 sys_lib_search_path_spec
=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9409 if $ECHO "$sys_lib_search_path_spec" |
$GREP ';[c-zC-Z]:/' >/dev
/null
; then
9410 # It is most probably a Windows format PATH printed by
9411 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9412 # path with ; separators, and with drive letters. We can handle the
9413 # drive letters (cygwin fileutils understands them), so leave them,
9414 # especially as we might pass files found there to a mingw objdump,
9415 # which wouldn't understand a cygwinified path. Ahh.
9416 sys_lib_search_path_spec
=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9418 sys_lib_search_path_spec
=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9422 # pw32 DLLs use 'pw' prefix rather than 'lib'
9423 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9429 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9432 dynamic_linker
='Win32 ld.exe'
9433 # FIXME: first we should search . and the directory the executable is in
9437 darwin
* | rhapsody
*)
9438 dynamic_linker
="$host_os dyld"
9442 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9443 soname_spec
='${libname}${release}${major}$shared_ext'
9444 shlibpath_overrides_runpath
=yes
9445 shlibpath_var
=DYLD_LIBRARY_PATH
9446 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
9448 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
9449 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
9456 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9457 soname_spec
='${libname}${release}${shared_ext}$major'
9458 shlibpath_var
=LD_LIBRARY_PATH
9465 freebsd
* | dragonfly
*)
9466 # DragonFly does not have aout. When/if they implement a new
9467 # versioning mechanism, adjust this.
9468 if test -x /usr
/bin
/objformat
; then
9469 objformat
=`/usr/bin/objformat`
9472 freebsd
[123]*) objformat
=aout
;;
9476 # Handle Gentoo/FreeBSD as it was Linux
9477 case $host_vendor in
9479 version_type
=linux
;;
9481 version_type
=freebsd-
$objformat ;;
9484 case $version_type in
9486 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9491 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9495 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9496 soname_spec
='${libname}${release}${shared_ext}$major'
9501 shlibpath_var
=LD_LIBRARY_PATH
9504 shlibpath_overrides_runpath
=yes
9506 freebsd3.
[01]* | freebsdelf3.
[01]*)
9507 shlibpath_overrides_runpath
=yes
9508 hardcode_into_libs
=yes
9510 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
9511 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
9512 shlibpath_overrides_runpath
=no
9513 hardcode_into_libs
=yes
9515 *) # from 4.6 on, and DragonFly
9516 shlibpath_overrides_runpath
=yes
9517 hardcode_into_libs
=yes
9526 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9527 soname_spec
='${libname}${release}${shared_ext}$major'
9528 shlibpath_var
=LD_LIBRARY_PATH
9529 hardcode_into_libs
=yes
9532 hpux9
* | hpux10
* | hpux11
*)
9533 # Give a soname corresponding to the major version so that dld.sl refuses to
9534 # link against other versions.
9541 hardcode_into_libs
=yes
9542 dynamic_linker
="$host_os dld.so"
9543 shlibpath_var
=LD_LIBRARY_PATH
9544 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
9545 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9546 soname_spec
='${libname}${release}${shared_ext}$major'
9547 if test "X$HPUX_IA64_MODE" = X32
; then
9548 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9550 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
9552 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
9556 hardcode_into_libs
=yes
9557 dynamic_linker
="$host_os dld.sl"
9558 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
9559 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
9560 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9561 soname_spec
='${libname}${release}${shared_ext}$major'
9562 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9563 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
9567 dynamic_linker
="$host_os dld.sl"
9568 shlibpath_var
=SHLIB_PATH
9569 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
9570 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9571 soname_spec
='${libname}${release}${shared_ext}$major'
9574 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9575 postinstall_cmds
='chmod 555 $lib'
9582 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9583 soname_spec
='${libname}${release}${shared_ext}$major'
9584 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
9585 shlibpath_var
=LD_LIBRARY_PATH
9586 shlibpath_overrides_runpath
=no
9587 hardcode_into_libs
=yes
9590 irix5
* | irix6
* | nonstopux
*)
9592 nonstopux
*) version_type
=nonstopux
;;
9594 if test "$lt_cv_prog_gnu_ld" = yes; then
9602 soname_spec
='${libname}${release}${shared_ext}$major'
9603 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9605 irix5
* | nonstopux
*)
9609 case $LD in # libtool.m4 will add one of these switches to LD
9610 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
9611 libsuff
= shlibsuff
= libmagic
=32-bit;;
9612 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
9613 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
9614 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
9615 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
9616 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
9620 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
9621 shlibpath_overrides_runpath
=no
9622 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9623 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
9624 hardcode_into_libs
=yes
9627 # No shared lib support for Linux oldld, aout, or coff.
9628 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
9632 # This must be Linux ELF.
9633 linux
* | k
*bsd
*-gnu)
9637 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9638 soname_spec
='${libname}${release}${shared_ext}$major'
9639 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9640 shlibpath_var
=LD_LIBRARY_PATH
9641 shlibpath_overrides_runpath
=no
9642 # Some binutils ld are patched to set DT_RUNPATH
9643 save_LDFLAGS
=$LDFLAGS
9645 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9646 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9647 cat >conftest.
$ac_ext <<_ACEOF
9650 cat confdefs.h
>>conftest.
$ac_ext
9651 cat >>conftest.
$ac_ext <<_ACEOF
9652 /* end confdefs.h. */
9662 rm -f conftest.
$ac_objext conftest
$ac_exeext
9663 if { (ac_try
="$ac_link"
9665 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9666 *) ac_try_echo=$ac_try;;
9668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9669 (eval "$ac_link") 2>conftest.er1
9671 grep -v '^ *+' conftest.er1 >conftest.err
9673 cat conftest.err >&5
9674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9675 (exit $ac_status); } && {
9676 test -z "$ac_c_werror_flag" ||
9677 test ! -s conftest.err
9678 } && test -s conftest$ac_exeext &&
9679 $as_test_x conftest$ac_exeext; then
9680 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
9681 shlibpath_overrides_runpath=yes
9685 echo "$as_me: failed program was:" >&5
9686 sed 's/^/| /' conftest.$ac_ext >&5
9691 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9692 conftest$ac_exeext conftest.$ac_ext
9693 LDFLAGS=$save_LDFLAGS
9696 # This implies no fast_install, which is unacceptable.
9697 # Some rework will be needed to allow for fast_install
9698 # before this can be enabled.
9699 hardcode_into_libs=yes
9701 # Append ld.so.conf contents to the search path
9702 if test -f /etc/ld.so.conf; then
9703 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;/^$/d' |
tr '\n' ' '`
9704 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9707 # We used to test for /lib/ld.so.1 and disable shared libraries on
9708 # powerpc, because MkLinux only supported shared libraries with the
9709 # GNU dynamic linker. Since this was broken with cross compilers,
9710 # most powerpc-linux boxes support dynamic linking these days and
9711 # people can always --disable-shared, the test was removed, and we
9712 # assume the GNU/Linux dynamic linker is in use.
9713 dynamic_linker='GNU/Linux ld.so'
9720 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9721 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9722 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9723 dynamic_linker='NetBSD (a.out) ld.so'
9725 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9726 soname_spec='${libname}${release}${shared_ext}$major'
9727 dynamic_linker='NetBSD ld.elf_so'
9729 shlibpath_var=LD_LIBRARY_PATH
9730 shlibpath_overrides_runpath=yes
9731 hardcode_into_libs=yes
9736 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9737 shlibpath_var=LD_LIBRARY_PATH
9738 shlibpath_overrides_runpath=yes
9745 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9746 soname_spec='${libname}${release}${shared_ext}$major'
9747 shlibpath_var=LD_LIBRARY_PATH
9748 shlibpath_overrides_runpath=no
9749 hardcode_into_libs=yes
9750 dynamic_linker='ldqnx.so'
9755 sys_lib_dlsearch_path_spec="/usr/lib"
9757 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9759 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9760 *) need_version=no ;;
9762 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9763 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9764 shlibpath_var=LD_LIBRARY_PATH
9765 if test -z "`echo __ELF__ |
$CC -E - |
$GREP __ELF__
`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9767 openbsd2.[89] | openbsd2.[89].*)
9768 shlibpath_overrides_runpath=no
9771 shlibpath_overrides_runpath=yes
9775 shlibpath_overrides_runpath=yes
9780 libname_spec='$name'
9783 library_names_spec='$libname${shared_ext} $libname.a'
9784 dynamic_linker='OS/2 ld.exe'
9785 shlibpath_var=LIBPATH
9788 osf3* | osf4* | osf5*)
9792 soname_spec='${libname}${release}${shared_ext}$major'
9793 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9794 shlibpath_var=LD_LIBRARY_PATH
9795 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9796 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9807 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9808 soname_spec='${libname}${release}${shared_ext}$major'
9809 shlibpath_var=LD_LIBRARY_PATH
9810 shlibpath_overrides_runpath=yes
9811 hardcode_into_libs=yes
9812 # ldd complains unless libraries are executable
9813 postinstall_cmds='chmod +x $lib'
9818 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9819 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9820 shlibpath_var=LD_LIBRARY_PATH
9821 shlibpath_overrides_runpath=yes
9822 if test "$with_gnu_ld" = yes; then
9830 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9831 soname_spec='${libname}${release}${shared_ext}$major'
9832 shlibpath_var=LD_LIBRARY_PATH
9833 case $host_vendor in
9835 shlibpath_overrides_runpath=no
9837 runpath_var=LD_RUN_PATH
9845 shlibpath_overrides_runpath=no
9846 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9852 if test -d /usr/nec ;then
9854 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9855 soname_spec='$libname${shared_ext}.$major'
9856 shlibpath_var=LD_LIBRARY_PATH
9860 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9861 version_type=freebsd-elf
9864 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9865 soname_spec='${libname}${release}${shared_ext}$major'
9866 shlibpath_var=LD_LIBRARY_PATH
9867 shlibpath_overrides_runpath=yes
9868 hardcode_into_libs=yes
9869 if test "$with_gnu_ld" = yes; then
9870 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9872 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9875 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9879 sys_lib_dlsearch_path_spec='/usr/lib'
9883 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9887 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9888 shlibpath_var=LD_LIBRARY_PATH
9889 shlibpath_overrides_runpath=no
9890 hardcode_into_libs=yes
9895 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9896 soname_spec='${libname}${release}${shared_ext}$major'
9897 shlibpath_var=LD_LIBRARY_PATH
9904 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9905 echo "${ECHO_T}$dynamic_linker" >&6; }
9906 test "$dynamic_linker" = no && can_build_shared=no
9908 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9909 if test "$GCC" = yes; then
9910 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9913 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9914 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9916 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9917 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10006 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10007 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
10009 if test -n "$hardcode_libdir_flag_spec" ||
10010 test -n "$runpath_var" ||
10011 test "X$hardcode_automatic" = "Xyes" ; then
10013 # We can hardcode non-existent directories.
10014 if test "$hardcode_direct" != no &&
10015 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10016 # have to relink, otherwise we might link with an installed library
10017 # when we should be linking with a yet-to-be-installed one
10018 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10019 test "$hardcode_minus_L" != no; then
10020 # Linking always hardcodes the temporary library directory.
10021 hardcode_action=relink
10023 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10024 hardcode_action=immediate
10027 # We cannot hardcode anything, or else we can only hardcode existing
10029 hardcode_action=unsupported
10031 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
10032 echo "${ECHO_T}$hardcode_action" >&6; }
10034 if test "$hardcode_action" = relink ||
10035 test "$inherit_rpath" = yes; then
10036 # Fast installation is not supported
10037 enable_fast_install=no
10038 elif test "$shlibpath_overrides_runpath" = yes ||
10039 test "$enable_shared" = no; then
10040 # Fast installation is not necessary
10041 enable_fast_install=needless
10049 if test "x$enable_dlopen" != xyes; then
10050 enable_dlopen=unknown
10051 enable_dlopen_self=unknown
10052 enable_dlopen_self_static=unknown
10059 lt_cv_dlopen="load_add_on"
10061 lt_cv_dlopen_self=yes
10064 mingw* | pw32* | cegcc*)
10065 lt_cv_dlopen="LoadLibrary"
10070 lt_cv_dlopen="dlopen"
10075 # if libdl is installed we need to link against it
10076 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10077 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10078 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10079 echo $ECHO_N "(cached) $ECHO_C" >&6
10081 ac_check_lib_save_LIBS=$LIBS
10083 cat >conftest.$ac_ext <<_ACEOF
10086 cat confdefs.h >>conftest.$ac_ext
10087 cat >>conftest.$ac_ext <<_ACEOF
10088 /* end confdefs.h. */
10090 /* Override any GCC internal prototype to avoid an error.
10091 Use char because int might match the return type of a GCC
10092 builtin and then its argument prototype would still apply. */
10105 rm -f conftest.$ac_objext conftest$ac_exeext
10106 if { (ac_try="$ac_link"
10107 case "(($ac_try" in
10108 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10109 *) ac_try_echo
=$ac_try;;
10111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10112 (eval "$ac_link") 2>conftest.er1
10114 grep -v '^ *+' conftest.er1
>conftest.err
10116 cat conftest.err
>&5
10117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10118 (exit $ac_status); } && {
10119 test -z "$ac_c_werror_flag" ||
10120 test ! -s conftest.err
10121 } && test -s conftest
$ac_exeext &&
10122 $as_test_x conftest
$ac_exeext; then
10123 ac_cv_lib_dl_dlopen
=yes
10125 echo "$as_me: failed program was:" >&5
10126 sed 's/^/| /' conftest.
$ac_ext >&5
10128 ac_cv_lib_dl_dlopen
=no
10131 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10132 conftest
$ac_exeext conftest.
$ac_ext
10133 LIBS
=$ac_check_lib_save_LIBS
10135 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10136 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10137 if test $ac_cv_lib_dl_dlopen = yes; then
10138 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
10141 lt_cv_dlopen
="dyld"
10143 lt_cv_dlopen_self
=yes
10150 { echo "$as_me:$LINENO: checking for shl_load" >&5
10151 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10152 if test "${ac_cv_func_shl_load+set}" = set; then
10153 echo $ECHO_N "(cached) $ECHO_C" >&6
10155 cat >conftest.
$ac_ext <<_ACEOF
10158 cat confdefs.h
>>conftest.
$ac_ext
10159 cat >>conftest.
$ac_ext <<_ACEOF
10160 /* end confdefs.h. */
10161 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10162 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10163 #define shl_load innocuous_shl_load
10165 /* System header to define __stub macros and hopefully few prototypes,
10166 which can conflict with char shl_load (); below.
10167 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10168 <limits.h> exists even on freestanding compilers. */
10171 # include <limits.h>
10173 # include <assert.h>
10178 /* Override any GCC internal prototype to avoid an error.
10179 Use char because int might match the return type of a GCC
10180 builtin and then its argument prototype would still apply. */
10185 /* The GNU C library defines this for functions which it implements
10186 to always fail with ENOSYS. Some functions are actually named
10187 something starting with __ and the normal name is an alias. */
10188 #if defined __stub_shl_load || defined __stub___shl_load
10195 return shl_load ();
10200 rm -f conftest.
$ac_objext conftest
$ac_exeext
10201 if { (ac_try
="$ac_link"
10202 case "(($ac_try" in
10203 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10204 *) ac_try_echo=$ac_try;;
10206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10207 (eval "$ac_link") 2>conftest.er1
10209 grep -v '^ *+' conftest.er1 >conftest.err
10211 cat conftest.err >&5
10212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10213 (exit $ac_status); } && {
10214 test -z "$ac_c_werror_flag" ||
10215 test ! -s conftest.err
10216 } && test -s conftest$ac_exeext &&
10217 $as_test_x conftest$ac_exeext; then
10218 ac_cv_func_shl_load=yes
10220 echo "$as_me: failed program was:" >&5
10221 sed 's/^/| /' conftest.$ac_ext >&5
10223 ac_cv_func_shl_load=no
10226 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10227 conftest$ac_exeext conftest.$ac_ext
10229 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10230 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10231 if test $ac_cv_func_shl_load = yes; then
10232 lt_cv_dlopen="shl_load"
10234 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10235 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10236 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10237 echo $ECHO_N "(cached) $ECHO_C" >&6
10239 ac_check_lib_save_LIBS=$LIBS
10241 cat >conftest.$ac_ext <<_ACEOF
10244 cat confdefs.h >>conftest.$ac_ext
10245 cat >>conftest.$ac_ext <<_ACEOF
10246 /* end confdefs.h. */
10248 /* Override any GCC internal prototype to avoid an error.
10249 Use char because int might match the return type of a GCC
10250 builtin and then its argument prototype would still apply. */
10258 return shl_load ();
10263 rm -f conftest.$ac_objext conftest$ac_exeext
10264 if { (ac_try="$ac_link"
10265 case "(($ac_try" in
10266 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10267 *) ac_try_echo
=$ac_try;;
10269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10270 (eval "$ac_link") 2>conftest.er1
10272 grep -v '^ *+' conftest.er1
>conftest.err
10274 cat conftest.err
>&5
10275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10276 (exit $ac_status); } && {
10277 test -z "$ac_c_werror_flag" ||
10278 test ! -s conftest.err
10279 } && test -s conftest
$ac_exeext &&
10280 $as_test_x conftest
$ac_exeext; then
10281 ac_cv_lib_dld_shl_load
=yes
10283 echo "$as_me: failed program was:" >&5
10284 sed 's/^/| /' conftest.
$ac_ext >&5
10286 ac_cv_lib_dld_shl_load
=no
10289 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10290 conftest
$ac_exeext conftest.
$ac_ext
10291 LIBS
=$ac_check_lib_save_LIBS
10293 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10294 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10295 if test $ac_cv_lib_dld_shl_load = yes; then
10296 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-ldld"
10298 { echo "$as_me:$LINENO: checking for dlopen" >&5
10299 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
10300 if test "${ac_cv_func_dlopen+set}" = set; then
10301 echo $ECHO_N "(cached) $ECHO_C" >&6
10303 cat >conftest.
$ac_ext <<_ACEOF
10306 cat confdefs.h
>>conftest.
$ac_ext
10307 cat >>conftest.
$ac_ext <<_ACEOF
10308 /* end confdefs.h. */
10309 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10310 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10311 #define dlopen innocuous_dlopen
10313 /* System header to define __stub macros and hopefully few prototypes,
10314 which can conflict with char dlopen (); below.
10315 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10316 <limits.h> exists even on freestanding compilers. */
10319 # include <limits.h>
10321 # include <assert.h>
10326 /* Override any GCC internal prototype to avoid an error.
10327 Use char because int might match the return type of a GCC
10328 builtin and then its argument prototype would still apply. */
10333 /* The GNU C library defines this for functions which it implements
10334 to always fail with ENOSYS. Some functions are actually named
10335 something starting with __ and the normal name is an alias. */
10336 #if defined __stub_dlopen || defined __stub___dlopen
10348 rm -f conftest.
$ac_objext conftest
$ac_exeext
10349 if { (ac_try
="$ac_link"
10350 case "(($ac_try" in
10351 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10352 *) ac_try_echo=$ac_try;;
10354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10355 (eval "$ac_link") 2>conftest.er1
10357 grep -v '^ *+' conftest.er1 >conftest.err
10359 cat conftest.err >&5
10360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10361 (exit $ac_status); } && {
10362 test -z "$ac_c_werror_flag" ||
10363 test ! -s conftest.err
10364 } && test -s conftest$ac_exeext &&
10365 $as_test_x conftest$ac_exeext; then
10366 ac_cv_func_dlopen=yes
10368 echo "$as_me: failed program was:" >&5
10369 sed 's/^/| /' conftest.$ac_ext >&5
10371 ac_cv_func_dlopen=no
10374 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10375 conftest$ac_exeext conftest.$ac_ext
10377 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10378 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
10379 if test $ac_cv_func_dlopen = yes; then
10380 lt_cv_dlopen="dlopen"
10382 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10383 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10384 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10385 echo $ECHO_N "(cached) $ECHO_C" >&6
10387 ac_check_lib_save_LIBS=$LIBS
10389 cat >conftest.$ac_ext <<_ACEOF
10392 cat confdefs.h >>conftest.$ac_ext
10393 cat >>conftest.$ac_ext <<_ACEOF
10394 /* end confdefs.h. */
10396 /* Override any GCC internal prototype to avoid an error.
10397 Use char because int might match the return type of a GCC
10398 builtin and then its argument prototype would still apply. */
10411 rm -f conftest.$ac_objext conftest$ac_exeext
10412 if { (ac_try="$ac_link"
10413 case "(($ac_try" in
10414 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10415 *) ac_try_echo
=$ac_try;;
10417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10418 (eval "$ac_link") 2>conftest.er1
10420 grep -v '^ *+' conftest.er1
>conftest.err
10422 cat conftest.err
>&5
10423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10424 (exit $ac_status); } && {
10425 test -z "$ac_c_werror_flag" ||
10426 test ! -s conftest.err
10427 } && test -s conftest
$ac_exeext &&
10428 $as_test_x conftest
$ac_exeext; then
10429 ac_cv_lib_dl_dlopen
=yes
10431 echo "$as_me: failed program was:" >&5
10432 sed 's/^/| /' conftest.
$ac_ext >&5
10434 ac_cv_lib_dl_dlopen
=no
10437 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10438 conftest
$ac_exeext conftest.
$ac_ext
10439 LIBS
=$ac_check_lib_save_LIBS
10441 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10442 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10443 if test $ac_cv_lib_dl_dlopen = yes; then
10444 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
10446 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10447 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10448 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10449 echo $ECHO_N "(cached) $ECHO_C" >&6
10451 ac_check_lib_save_LIBS
=$LIBS
10452 LIBS
="-lsvld $LIBS"
10453 cat >conftest.
$ac_ext <<_ACEOF
10456 cat confdefs.h
>>conftest.
$ac_ext
10457 cat >>conftest.
$ac_ext <<_ACEOF
10458 /* end confdefs.h. */
10460 /* Override any GCC internal prototype to avoid an error.
10461 Use char because int might match the return type of a GCC
10462 builtin and then its argument prototype would still apply. */
10475 rm -f conftest.
$ac_objext conftest
$ac_exeext
10476 if { (ac_try
="$ac_link"
10477 case "(($ac_try" in
10478 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10479 *) ac_try_echo=$ac_try;;
10481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10482 (eval "$ac_link") 2>conftest.er1
10484 grep -v '^ *+' conftest.er1 >conftest.err
10486 cat conftest.err >&5
10487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10488 (exit $ac_status); } && {
10489 test -z "$ac_c_werror_flag" ||
10490 test ! -s conftest.err
10491 } && test -s conftest$ac_exeext &&
10492 $as_test_x conftest$ac_exeext; then
10493 ac_cv_lib_svld_dlopen=yes
10495 echo "$as_me: failed program was:" >&5
10496 sed 's/^/| /' conftest.$ac_ext >&5
10498 ac_cv_lib_svld_dlopen=no
10501 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10502 conftest$ac_exeext conftest.$ac_ext
10503 LIBS=$ac_check_lib_save_LIBS
10505 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10506 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10507 if test $ac_cv_lib_svld_dlopen = yes; then
10508 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10510 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10511 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10512 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10513 echo $ECHO_N "(cached) $ECHO_C" >&6
10515 ac_check_lib_save_LIBS=$LIBS
10517 cat >conftest.$ac_ext <<_ACEOF
10520 cat confdefs.h >>conftest.$ac_ext
10521 cat >>conftest.$ac_ext <<_ACEOF
10522 /* end confdefs.h. */
10524 /* Override any GCC internal prototype to avoid an error.
10525 Use char because int might match the return type of a GCC
10526 builtin and then its argument prototype would still apply. */
10534 return dld_link ();
10539 rm -f conftest.$ac_objext conftest$ac_exeext
10540 if { (ac_try="$ac_link"
10541 case "(($ac_try" in
10542 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10543 *) ac_try_echo
=$ac_try;;
10545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10546 (eval "$ac_link") 2>conftest.er1
10548 grep -v '^ *+' conftest.er1
>conftest.err
10550 cat conftest.err
>&5
10551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10552 (exit $ac_status); } && {
10553 test -z "$ac_c_werror_flag" ||
10554 test ! -s conftest.err
10555 } && test -s conftest
$ac_exeext &&
10556 $as_test_x conftest
$ac_exeext; then
10557 ac_cv_lib_dld_dld_link
=yes
10559 echo "$as_me: failed program was:" >&5
10560 sed 's/^/| /' conftest.
$ac_ext >&5
10562 ac_cv_lib_dld_dld_link
=no
10565 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10566 conftest
$ac_exeext conftest.
$ac_ext
10567 LIBS
=$ac_check_lib_save_LIBS
10569 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10570 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10571 if test $ac_cv_lib_dld_dld_link = yes; then
10572 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-ldld"
10593 if test "x$lt_cv_dlopen" != xno
; then
10599 case $lt_cv_dlopen in
10601 save_CPPFLAGS
="$CPPFLAGS"
10602 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
10604 save_LDFLAGS
="$LDFLAGS"
10605 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
10608 LIBS
="$lt_cv_dlopen_libs $LIBS"
10610 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10611 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10612 if test "${lt_cv_dlopen_self+set}" = set; then
10613 echo $ECHO_N "(cached) $ECHO_C" >&6
10615 if test "$cross_compiling" = yes; then :
10616 lt_cv_dlopen_self
=cross
10618 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
10619 lt_status
=$lt_dlunknown
10620 cat > conftest.
$ac_ext <<_LT_EOF
10621 #line 10621 "configure"
10622 #include "confdefs.h"
10631 # define LT_DLGLOBAL RTLD_GLOBAL
10634 # define LT_DLGLOBAL DL_GLOBAL
10636 # define LT_DLGLOBAL 0
10640 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10641 find out it does not work in some platform. */
10642 #ifndef LT_DLLAZY_OR_NOW
10644 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10647 # define LT_DLLAZY_OR_NOW DL_LAZY
10650 # define LT_DLLAZY_OR_NOW RTLD_NOW
10653 # define LT_DLLAZY_OR_NOW DL_NOW
10655 # define LT_DLLAZY_OR_NOW 0
10662 void fnord() { int i=42;}
10665 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10666 int status = $lt_dlunknown;
10670 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10671 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10672 /* dlclose (self); */
10680 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10681 (eval $ac_link) 2>&5
10683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10684 (exit $ac_status); } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
10685 (.
/conftest
; exit; ) >&5 2>/dev
/null
10687 case x
$lt_status in
10688 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
10689 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
10690 x
$lt_dlunknown|x
*) lt_cv_dlopen_self
=no
;;
10693 # compilation failed
10694 lt_cv_dlopen_self
=no
10701 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10702 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10704 if test "x$lt_cv_dlopen_self" = xyes
; then
10705 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $lt_prog_compiler_static\"
10706 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10707 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10708 if test "${lt_cv_dlopen_self_static+set}" = set; then
10709 echo $ECHO_N "(cached) $ECHO_C" >&6
10711 if test "$cross_compiling" = yes; then :
10712 lt_cv_dlopen_self_static
=cross
10714 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
10715 lt_status
=$lt_dlunknown
10716 cat > conftest.
$ac_ext <<_LT_EOF
10717 #line 10717 "configure"
10718 #include "confdefs.h"
10727 # define LT_DLGLOBAL RTLD_GLOBAL
10730 # define LT_DLGLOBAL DL_GLOBAL
10732 # define LT_DLGLOBAL 0
10736 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10737 find out it does not work in some platform. */
10738 #ifndef LT_DLLAZY_OR_NOW
10740 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10743 # define LT_DLLAZY_OR_NOW DL_LAZY
10746 # define LT_DLLAZY_OR_NOW RTLD_NOW
10749 # define LT_DLLAZY_OR_NOW DL_NOW
10751 # define LT_DLLAZY_OR_NOW 0
10758 void fnord() { int i=42;}
10761 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10762 int status = $lt_dlunknown;
10766 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10767 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10768 /* dlclose (self); */
10776 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10777 (eval $ac_link) 2>&5
10779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10780 (exit $ac_status); } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
10781 (.
/conftest
; exit; ) >&5 2>/dev
/null
10783 case x
$lt_status in
10784 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
10785 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
10786 x
$lt_dlunknown|x
*) lt_cv_dlopen_self_static
=no
;;
10789 # compilation failed
10790 lt_cv_dlopen_self_static
=no
10797 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10798 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10801 CPPFLAGS
="$save_CPPFLAGS"
10802 LDFLAGS
="$save_LDFLAGS"
10807 case $lt_cv_dlopen_self in
10808 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
10809 *) enable_dlopen_self
=unknown
;;
10812 case $lt_cv_dlopen_self_static in
10813 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
10814 *) enable_dlopen_self_static
=unknown
;;
10836 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10837 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
10838 if test -n "$STRIP" && $STRIP -V 2>&1 |
$GREP "GNU strip" >/dev
/null
; then
10839 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
10840 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
10841 { echo "$as_me:$LINENO: result: yes" >&5
10842 echo "${ECHO_T}yes" >&6; }
10844 # FIXME - insert some real tests, host_os isn't really good enough
10847 if test -n "$STRIP" ; then
10848 striplib
="$STRIP -x"
10849 old_striplib
="$STRIP -S"
10850 { echo "$as_me:$LINENO: result: yes" >&5
10851 echo "${ECHO_T}yes" >&6; }
10853 { echo "$as_me:$LINENO: result: no" >&5
10854 echo "${ECHO_T}no" >&6; }
10858 { echo "$as_me:$LINENO: result: no" >&5
10859 echo "${ECHO_T}no" >&6; }
10875 # Report which library types will actually be built
10876 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10877 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10878 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10879 echo "${ECHO_T}$can_build_shared" >&6; }
10881 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10882 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10883 test "$can_build_shared" = "no" && enable_shared
=no
10885 # On AIX, shared libraries and static libraries use the same namespace, and
10886 # are all built from PIC.
10889 test "$enable_shared" = yes && enable_static
=no
10890 if test -n "$RANLIB"; then
10891 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
10892 postinstall_cmds
='$RANLIB $lib'
10897 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
10898 test "$enable_shared" = yes && enable_static
=no
10902 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10903 echo "${ECHO_T}$enable_shared" >&6; }
10905 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10906 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10907 # Make sure either enable_shared or enable_static is yes.
10908 test "$enable_shared" = yes || enable_static
=yes
10909 { echo "$as_me:$LINENO: result: $enable_static" >&5
10910 echo "${ECHO_T}$enable_static" >&6; }
10917 ac_cpp
='$CPP $CPPFLAGS'
10918 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10919 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10920 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
10936 ac_config_commands
="$ac_config_commands libtool"
10941 # Only expand once:
10944 { echo "$as_me:$LINENO: checking for inline" >&5
10945 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
10946 if test "${ac_cv_c_inline+set}" = set; then
10947 echo $ECHO_N "(cached) $ECHO_C" >&6
10950 for ac_kw
in inline __inline__ __inline
; do
10951 cat >conftest.
$ac_ext <<_ACEOF
10954 cat confdefs.h
>>conftest.
$ac_ext
10955 cat >>conftest.
$ac_ext <<_ACEOF
10956 /* end confdefs.h. */
10957 #ifndef __cplusplus
10959 static $ac_kw foo_t static_foo () {return 0; }
10960 $ac_kw foo_t foo () {return 0; }
10964 rm -f conftest.
$ac_objext
10965 if { (ac_try
="$ac_compile"
10966 case "(($ac_try" in
10967 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10968 *) ac_try_echo=$ac_try;;
10970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10971 (eval "$ac_compile") 2>conftest.er1
10973 grep -v '^ *+' conftest.er1 >conftest.err
10975 cat conftest.err >&5
10976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10977 (exit $ac_status); } && {
10978 test -z "$ac_c_werror_flag" ||
10979 test ! -s conftest.err
10980 } && test -s conftest.$ac_objext; then
10981 ac_cv_c_inline=$ac_kw
10983 echo "$as_me: failed program was:" >&5
10984 sed 's/^/| /' conftest.$ac_ext >&5
10989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10990 test "$ac_cv_c_inline" != no && break
10994 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
10995 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
10998 case $ac_cv_c_inline in
11001 case $ac_cv_c_inline in
11003 *) ac_val=$ac_cv_c_inline;;
11005 cat >>confdefs.h <<_ACEOF
11006 #ifndef __cplusplus
11007 #define inline $ac_val
11013 if test "x$CC" != xcc; then
11014 { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
11015 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
11017 { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
11018 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
11020 set dummy $CC; ac_cc=`echo $2 |
11021 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
11022 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
11023 echo $ECHO_N "(cached) $ECHO_C" >&6
11025 cat >conftest.$ac_ext <<_ACEOF
11028 cat confdefs.h >>conftest.$ac_ext
11029 cat >>conftest.$ac_ext <<_ACEOF
11030 /* end confdefs.h. */
11040 # Make sure it works both with $CC and with simple cc.
11041 # We do the test twice because some compilers refuse to overwrite an
11042 # existing .o file with -o, though they will create one.
11043 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
11045 if { (case "(($ac_try" in
11046 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11047 *) ac_try_echo
=$ac_try;;
11049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11050 (eval "$ac_try") 2>&5
11052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11053 (exit $ac_status); } &&
11054 test -f conftest2.
$ac_objext && { (case "(($ac_try" in
11055 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11056 *) ac_try_echo=$ac_try;;
11058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11059 (eval "$ac_try") 2>&5
11061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11062 (exit $ac_status); };
11064 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
11065 if test "x$CC" != xcc; then
11066 # Test first that cc exists at all.
11067 if { ac_try='cc -c conftest.$ac_ext >&5'
11068 { (case "(($ac_try" in
11069 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11070 *) ac_try_echo
=$ac_try;;
11072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11073 (eval "$ac_try") 2>&5
11075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11076 (exit $ac_status); }; }; then
11077 ac_try
='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
11079 if { (case "(($ac_try" in
11080 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11081 *) ac_try_echo=$ac_try;;
11083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11084 (eval "$ac_try") 2>&5
11086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11087 (exit $ac_status); } &&
11088 test -f conftest2.$ac_objext && { (case "(($ac_try" in
11089 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11090 *) ac_try_echo
=$ac_try;;
11092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11093 (eval "$ac_try") 2>&5
11095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11096 (exit $ac_status); };
11101 # cc exists but doesn't like -o.
11102 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
11107 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
11109 rm -f core conftest
*
11112 if eval test \
$ac_cv_prog_cc_${ac_cc}_c_o
= yes; then
11113 { echo "$as_me:$LINENO: result: yes" >&5
11114 echo "${ECHO_T}yes" >&6; }
11116 { echo "$as_me:$LINENO: result: no" >&5
11117 echo "${ECHO_T}no" >&6; }
11119 cat >>confdefs.h
<<\_ACEOF
11120 #define NO_MINUS_C_MINUS_O 1
11125 # FIXME: we rely on the cache variable name because
11126 # there is no other way.
11128 ac_cc
=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
11129 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
11130 # Losing compiler, so override with the script.
11131 # FIXME: It is wrong to rewrite CC.
11132 # But if we don't then we get into trouble of one sort or another.
11133 # A longer-term fix would be to have automake use am__CC in this case,
11134 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
11135 CC
="$am_aux_dir/compile $CC"
11140 # Library versioning
11148 # The libusb-0.1 version we pretend to be
11149 LIBUSB01_VERSION
="0.1.12"
11154 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
11155 if test -n "$ac_tool_prefix"; then
11156 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
11157 set dummy
${ac_tool_prefix}pkg-config
; ac_word
=$2
11158 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11159 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11160 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11161 echo $ECHO_N "(cached) $ECHO_C" >&6
11163 case $PKG_CONFIG in
11165 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11168 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11169 for as_dir
in $PATH
11172 test -z "$as_dir" && as_dir
=.
11173 for ac_exec_ext
in '' $ac_executable_extensions; do
11174 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11175 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11176 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11186 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11187 if test -n "$PKG_CONFIG"; then
11188 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11189 echo "${ECHO_T}$PKG_CONFIG" >&6; }
11191 { echo "$as_me:$LINENO: result: no" >&5
11192 echo "${ECHO_T}no" >&6; }
11197 if test -z "$ac_cv_path_PKG_CONFIG"; then
11198 ac_pt_PKG_CONFIG
=$PKG_CONFIG
11199 # Extract the first word of "pkg-config", so it can be a program name with args.
11200 set dummy pkg-config
; ac_word
=$2
11201 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11202 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11203 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
11204 echo $ECHO_N "(cached) $ECHO_C" >&6
11206 case $ac_pt_PKG_CONFIG in
11208 ac_cv_path_ac_pt_PKG_CONFIG
="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
11211 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11212 for as_dir
in $PATH
11215 test -z "$as_dir" && as_dir
=.
11216 for ac_exec_ext
in '' $ac_executable_extensions; do
11217 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11218 ac_cv_path_ac_pt_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11219 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11229 ac_pt_PKG_CONFIG
=$ac_cv_path_ac_pt_PKG_CONFIG
11230 if test -n "$ac_pt_PKG_CONFIG"; then
11231 { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
11232 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
11234 { echo "$as_me:$LINENO: result: no" >&5
11235 echo "${ECHO_T}no" >&6; }
11238 if test "x$ac_pt_PKG_CONFIG" = x
; then
11241 case $cross_compiling:$ac_tool_warned in
11243 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
11244 whose name does not start with the host triplet. If you think this
11245 configuration is useful to you, please write to autoconf@gnu.org." >&5
11246 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
11247 whose name does not start with the host triplet. If you think this
11248 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
11249 ac_tool_warned
=yes ;;
11251 PKG_CONFIG
=$ac_pt_PKG_CONFIG
11254 PKG_CONFIG
="$ac_cv_path_PKG_CONFIG"
11258 if test -n "$PKG_CONFIG"; then
11259 _pkg_min_version
=0.9.0
11260 { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
11261 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
11262 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
11263 { echo "$as_me:$LINENO: result: yes" >&5
11264 echo "${ECHO_T}yes" >&6; }
11266 { echo "$as_me:$LINENO: result: no" >&5
11267 echo "${ECHO_T}no" >&6; }
11274 { echo "$as_me:$LINENO: checking for LIBUSB_1_0" >&5
11275 echo $ECHO_N "checking for LIBUSB_1_0... $ECHO_C" >&6; }
11277 if test -n "$PKG_CONFIG"; then
11278 if test -n "$LIBUSB_1_0_CFLAGS"; then
11279 pkg_cv_LIBUSB_1_0_CFLAGS
="$LIBUSB_1_0_CFLAGS"
11281 if test -n "$PKG_CONFIG" && \
11282 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libusb-1.0 >= 0.9.1\"") >&5
11283 ($PKG_CONFIG --exists --print-errors "libusb-1.0 >= 0.9.1") 2>&5
11285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11286 (exit $ac_status); }; then
11287 pkg_cv_LIBUSB_1_0_CFLAGS
=`$PKG_CONFIG --cflags "libusb-1.0 >= 0.9.1" 2>/dev/null`
11295 if test -n "$PKG_CONFIG"; then
11296 if test -n "$LIBUSB_1_0_LIBS"; then
11297 pkg_cv_LIBUSB_1_0_LIBS
="$LIBUSB_1_0_LIBS"
11299 if test -n "$PKG_CONFIG" && \
11300 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libusb-1.0 >= 0.9.1\"") >&5
11301 ($PKG_CONFIG --exists --print-errors "libusb-1.0 >= 0.9.1") 2>&5
11303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11304 (exit $ac_status); }; then
11305 pkg_cv_LIBUSB_1_0_LIBS
=`$PKG_CONFIG --libs "libusb-1.0 >= 0.9.1" 2>/dev/null`
11316 if test $pkg_failed = yes; then
11318 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11319 _pkg_short_errors_supported
=yes
11321 _pkg_short_errors_supported
=no
11323 if test $_pkg_short_errors_supported = yes; then
11324 LIBUSB_1_0_PKG_ERRORS
=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libusb-1.0 >= 0.9.1"`
11326 LIBUSB_1_0_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "libusb-1.0 >= 0.9.1"`
11328 # Put the nasty error message in config.log where it belongs
11329 echo "$LIBUSB_1_0_PKG_ERRORS" >&5
11331 { { echo "$as_me:$LINENO: error: Package requirements (libusb-1.0 >= 0.9.1) were not met:
11333 $LIBUSB_1_0_PKG_ERRORS
11335 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11336 installed software in a non-standard prefix.
11338 Alternatively, you may set the environment variables LIBUSB_1_0_CFLAGS
11339 and LIBUSB_1_0_LIBS to avoid the need to call pkg-config.
11340 See the pkg-config man page for more details.
11342 echo "$as_me: error: Package requirements (libusb-1.0 >= 0.9.1) were not met:
11344 $LIBUSB_1_0_PKG_ERRORS
11346 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11347 installed software in a non-standard prefix.
11349 Alternatively, you may set the environment variables LIBUSB_1_0_CFLAGS
11350 and LIBUSB_1_0_LIBS to avoid the need to call pkg-config.
11351 See the pkg-config man page for more details.
11353 { (exit 1); exit 1; }; }
11354 elif test $pkg_failed = untried
; then
11355 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
11356 is in your PATH or set the PKG_CONFIG environment variable to the full
11357 path to pkg-config.
11359 Alternatively, you may set the environment variables LIBUSB_1_0_CFLAGS
11360 and LIBUSB_1_0_LIBS to avoid the need to call pkg-config.
11361 See the pkg-config man page for more details.
11363 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11364 See \`config.log' for more details." >&5
11365 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
11366 is in your PATH or set the PKG_CONFIG environment variable to the full
11367 path to pkg-config.
11369 Alternatively, you may set the environment variables LIBUSB_1_0_CFLAGS
11370 and LIBUSB_1_0_LIBS to avoid the need to call pkg-config.
11371 See the pkg-config man page for more details.
11373 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11374 See \`config.log' for more details." >&2;}
11375 { (exit 1); exit 1; }; }
11377 LIBUSB_1_0_CFLAGS
=$pkg_cv_LIBUSB_1_0_CFLAGS
11378 LIBUSB_1_0_LIBS
=$pkg_cv_LIBUSB_1_0_LIBS
11379 { echo "$as_me:$LINENO: result: yes" >&5
11380 echo "${ECHO_T}yes" >&6; }
11387 # Check whether --enable-log was given.
11388 if test "${enable_log+set}" = set; then
11389 enableval
=$enable_log; log_enabled
=$enableval
11394 if test "x$log_enabled" != "xno"; then
11396 cat >>confdefs.h
<<\_ACEOF
11397 #define ENABLE_LOGGING 1
11402 # Check whether --enable-debug-log was given.
11403 if test "${enable_debug_log+set}" = set; then
11404 enableval
=$enable_debug_log; debug_log_enabled
=$enableval
11406 debug_log_enabled
='no'
11409 if test "x$debug_log_enabled" != "xno"; then
11411 cat >>confdefs.h
<<\_ACEOF
11412 #define ENABLE_DEBUG_LOGGING 1
11418 # Check whether --enable-examples-build was given.
11419 if test "${enable_examples_build+set}" = set; then
11420 enableval
=$enable_examples_build; build_examples
=$enableval
11422 build_examples
='no'
11425 if test "x$build_examples" != "xno"; then
11426 BUILD_EXAMPLES_TRUE
=
11427 BUILD_EXAMPLES_FALSE
='#'
11429 BUILD_EXAMPLES_TRUE
='#'
11430 BUILD_EXAMPLES_FALSE
=
11434 # Restore gnu89 inline semantics on gcc 4.3 and newer
11435 saved_cflags
="$CFLAGS"
11436 CFLAGS
="$CFLAGS -fgnu89-inline"
11437 cat >conftest.
$ac_ext <<_ACEOF
11440 cat confdefs.h
>>conftest.
$ac_ext
11441 cat >>conftest.
$ac_ext <<_ACEOF
11442 /* end confdefs.h. */
11452 rm -f conftest.
$ac_objext
11453 if { (ac_try
="$ac_compile"
11454 case "(($ac_try" in
11455 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11456 *) ac_try_echo=$ac_try;;
11458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11459 (eval "$ac_compile") 2>conftest.er1
11461 grep -v '^ *+' conftest.er1 >conftest.err
11463 cat conftest.err >&5
11464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11465 (exit $ac_status); } && {
11466 test -z "$ac_c_werror_flag" ||
11467 test ! -s conftest.err
11468 } && test -s conftest.$ac_objext; then
11469 inline_cflags="-fgnu89-inline"
11471 echo "$as_me: failed program was:" >&5
11472 sed 's/^/| /' conftest.$ac_ext >&5
11477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11478 CFLAGS="$saved_cflags"
11481 cat >>confdefs.h <<\_ACEOF
11482 #define API_EXPORTED __attribute__((visibility("default")))
11485 AM_CFLAGS="-std=gnu99 $inline_cflags -Wall -Wundef -Wunused -Wstrict-prototypes -Werror-implicit-function-declaration -Wshadow"
11488 ac_config_files="$ac_config_files libusb.pc libusb-config Makefile libusb/Makefile examples/Makefile"
11490 ac_config_commands="$ac_config_commands default"
11493 cat >confcache <<\_ACEOF
11494 # This file is a shell script that caches the results of configure
11495 # tests run on this system so they can be shared between configure
11496 # scripts and configure runs, see configure's option --config-cache.
11497 # It is not useful on other systems. If it contains results you don't
11498 # want to keep, you may remove or edit it.
11500 # config.status only pays attention to the cache file if you give it
11501 # the --recheck option to rerun configure.
11503 # `ac_cv_env_foo
' variables (set or unset) will be overridden when
11504 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11505 # following values.
11509 # The following way of writing the cache mishandles newlines in values,
11510 # but we know of no workaround that is simple, portable, and efficient.
11511 # So, we kill variables containing newlines.
11512 # Ultrix sh set writes to stderr and can't be redirected directly,
11513 # and sets the high bit in the cache file unless we assign to the vars.
11515 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11516 eval ac_val
=\$
$ac_var
11520 *_cv_
*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
11521 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
11524 _ | IFS | as_nl
) ;; #(
11525 *) $as_unset $ac_var ;;
11531 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11532 *${as_nl}ac_space
=\
*)
11533 # `set' does not quote correctly, so add quotes (double-quote
11534 # substitution turns \\\\ into \\, and sed turns \\ into \).
11537 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11540 # `set' quotes correctly as required by POSIX, so do not add quotes.
11541 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11550 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11552 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11554 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
11555 if test -w "$cache_file"; then
11556 test "x$cache_file" != "x/dev/null" &&
11557 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
11558 echo "$as_me: updating cache $cache_file" >&6;}
11559 cat confcache
>$cache_file
11561 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
11562 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11567 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
11568 # Let make expand exec_prefix.
11569 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
11571 DEFS
=-DHAVE_CONFIG_H
11575 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
11576 # 1. Remove the extension, and $U if already installed.
11577 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
11578 ac_i
=`echo "$ac_i" | sed "$ac_script"`
11579 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11580 # will be set to the directory where LIBOBJS objects are built.
11581 ac_libobjs
="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11582 ac_ltlibobjs
="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
11584 LIBOBJS
=$ac_libobjs
11586 LTLIBOBJS
=$ac_ltlibobjs
11589 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11590 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
11591 Usually this means the macro was only invoked conditionally." >&5
11592 echo "$as_me: error: conditional \"AMDEP\" was never defined.
11593 Usually this means the macro was only invoked conditionally." >&2;}
11594 { (exit 1); exit 1; }; }
11596 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11597 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
11598 Usually this means the macro was only invoked conditionally." >&5
11599 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
11600 Usually this means the macro was only invoked conditionally." >&2;}
11601 { (exit 1); exit 1; }; }
11603 if test -z "${BUILD_EXAMPLES_TRUE}" && test -z "${BUILD_EXAMPLES_FALSE}"; then
11604 { { echo "$as_me:$LINENO: error: conditional \"BUILD_EXAMPLES\" was never defined.
11605 Usually this means the macro was only invoked conditionally." >&5
11606 echo "$as_me: error: conditional \"BUILD_EXAMPLES\" was never defined.
11607 Usually this means the macro was only invoked conditionally." >&2;}
11608 { (exit 1); exit 1; }; }
11611 : ${CONFIG_STATUS=./config.status}
11612 ac_clean_files_save
=$ac_clean_files
11613 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
11614 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11615 echo "$as_me: creating $CONFIG_STATUS" >&6;}
11616 cat >$CONFIG_STATUS <<_ACEOF
11618 # Generated by $as_me.
11619 # Run this file to recreate the current configuration.
11620 # Compiler output produced by configure, useful for debugging
11621 # configure, is in config.log if it exists.
11624 ac_cs_recheck=false
11626 SHELL=\${CONFIG_SHELL-$SHELL}
11629 cat >>$CONFIG_STATUS <<\_ACEOF
11630 ## --------------------- ##
11631 ## M4sh Initialization. ##
11632 ## --------------------- ##
11634 # Be more Bourne compatible
11635 DUALCASE
=1; export DUALCASE
# for MKS sh
11636 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
11639 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
11640 # is contrary to our usage. Disable this feature.
11641 alias -g '${1+"$@"}'='"$@"'
11642 setopt NO_GLOB_SUBST
11644 case `(set -o) 2>/dev/null` in
11645 *posix
*) set -o posix
;;
11654 # Avoid depending upon Character Ranges.
11655 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
11656 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11657 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
11658 as_cr_digits
='0123456789'
11659 as_cr_alnum
=$as_cr_Letters$as_cr_digits
11661 # The user is always right.
11662 if test "${PATH_SEPARATOR+set}" != set; then
11663 echo "#! /bin/sh" >conf$$.sh
11664 echo "exit 0" >>conf$$.sh
11666 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
11674 # Support unset when possible.
11675 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
11683 # We need space, tab and new line, in precisely that order. Quoting is
11684 # there to prevent editors from complaining about space-tab.
11685 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11686 # splitting by setting IFS to empty value.)
11691 # Find who we are. Look in the path if we contain no directory separator.
11693 *[\\/]* ) as_myself
=$0 ;;
11694 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11695 for as_dir
in $PATH
11698 test -z "$as_dir" && as_dir
=.
11699 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
11705 # We did not find ourselves, most probably we were run as `sh COMMAND'
11706 # in which case we are not to be found in the path.
11707 if test "x$as_myself" = x
; then
11710 if test ! -f "$as_myself"; then
11711 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11712 { (exit 1); exit 1; }
11715 # Work around bugs in pre-3.0 UWIN ksh.
11716 for as_var
in ENV MAIL MAILPATH
11717 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
11725 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
11726 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
11727 LC_TELEPHONE LC_TIME
11729 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
11730 eval $as_var=C
; export $as_var
11732 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
11736 # Required to use basename.
11737 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
11738 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
11744 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11745 as_basename
=basename
11751 # Name of the executable.
11752 as_me
=`$as_basename -- "$0" ||
11753 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11754 X"$0" : 'X\(//\)$' \| \
11755 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11757 sed '/^.*\/\([^/][^/]*\)\/*$/{
11776 as_lineno_1
=$LINENO
11777 as_lineno_2
=$LINENO
11778 test "x$as_lineno_1" != "x$as_lineno_2" &&
11779 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
11781 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11782 # uniformly replaced by the line number. The first 'sed' inserts a
11783 # line-number line after each line using $LINENO; the second 'sed'
11784 # does the real work. The second script uses 'N' to pair each
11785 # line-number line with the line containing $LINENO, and appends
11786 # trailing '-' during substitution so that $LINENO is not a special
11787 # case at line end.
11788 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11789 # scripts with optimization help from Paolo Bonzini. Blame Lee
11790 # E. McMahon (1931-1989) for sed's syntax. :-)
11802 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
11805 ' >$as_me.lineno
&&
11806 chmod +x
"$as_me.lineno" ||
11807 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
11808 { (exit 1); exit 1; }; }
11810 # Don't try to exec as it changes $[0], causing all sort of problems
11811 # (the dirname of $[0] is not the place where we might find the
11812 # original and so on. Autoconf is especially sensitive to this).
11813 .
"./$as_me.lineno"
11814 # Exit status is that of the last command.
11819 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
11825 ECHO_C
= ECHO_N
= ECHO_T
=
11826 case `echo -n x` in
11828 case `echo 'x\c'` in
11829 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
11836 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
11837 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
11843 rm -f conf$$ conf$$.exe conf$$.
file
11844 if test -d conf$$.dir
; then
11845 rm -f conf$$.dir
/conf$$.
file
11851 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
11853 # ... but there are two gotchas:
11854 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11855 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11856 # In both cases, we have to default to `cp -p'.
11857 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
11859 elif ln conf$$.
file conf$$
2>/dev
/null
; then
11864 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
11865 rmdir conf$$.dir
2>/dev
/null
11867 if mkdir
-p .
2>/dev
/null
; then
11870 test -d .
/-p && rmdir .
/-p
11874 if test -x / >/dev
/null
2>&1; then
11875 as_test_x
='test -x'
11877 if ls -dL / >/dev
/null
2>&1; then
11884 if test -d "$1"; then
11890 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
11891 ???[sx]*):;;*)false;;esac;fi
11895 as_executable_p
=$as_test_x
11897 # Sed expression to map a string onto a valid CPP name.
11898 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11900 # Sed expression to map a string onto a valid variable name.
11901 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11906 # Save the log message, to keep $[0] and so on meaningful, and to
11907 # report actual input values of CONFIG_FILES etc. instead of their
11908 # values after options handling.
11910 This file was extended by libusb-compat $as_me 0.1.3, which was
11911 generated by GNU Autoconf 2.61. Invocation command line was
11913 CONFIG_FILES = $CONFIG_FILES
11914 CONFIG_HEADERS = $CONFIG_HEADERS
11915 CONFIG_LINKS = $CONFIG_LINKS
11916 CONFIG_COMMANDS = $CONFIG_COMMANDS
11919 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11924 cat >>$CONFIG_STATUS <<_ACEOF
11925 # Files that config.status was made for.
11926 config_files="$ac_config_files"
11927 config_headers="$ac_config_headers"
11928 config_commands="$ac_config_commands"
11932 cat >>$CONFIG_STATUS <<\_ACEOF
11934 \`$as_me' instantiates files from templates according to the
11935 current configuration.
11937 Usage: $0 [OPTIONS] [FILE]...
11939 -h, --help print this help, then exit
11940 -V, --version print version number and configuration settings, then exit
11941 -q, --quiet do not print progress messages
11942 -d, --debug don't remove temporary files
11943 --recheck update $as_me by reconfiguring in the same conditions
11944 --file=FILE[:TEMPLATE]
11945 instantiate the configuration file FILE
11946 --header=FILE[:TEMPLATE]
11947 instantiate the configuration header FILE
11949 Configuration files:
11952 Configuration headers:
11955 Configuration commands:
11958 Report bugs to <bug-autoconf@gnu.org>."
11961 cat >>$CONFIG_STATUS <<_ACEOF
11963 libusb-compat config.status 0.1.3
11964 configured by $0, generated by GNU Autoconf 2.61,
11965 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
11967 Copyright (C) 2006 Free Software Foundation, Inc.
11968 This config.status script is free software; the Free Software Foundation
11969 gives unlimited permission to copy, distribute and modify it."
11977 cat >>$CONFIG_STATUS <<\_ACEOF
11978 # If no file are specified by the user, then we need to provide default
11979 # value. By we need to know if files were specified by the user.
11985 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
11986 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
11997 # Handling of the options.
11998 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
12000 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
12001 echo "$ac_cs_version"; exit ;;
12002 --debug |
--debu |
--deb |
--de |
--d |
-d )
12004 --file |
--fil |
--fi |
--f )
12006 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
12007 ac_need_defaults
=false
;;
12008 --header |
--heade |
--head |
--hea )
12010 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
12011 ac_need_defaults
=false
;;
12013 # Conflict between --help and --header
12014 { echo "$as_me: error: ambiguous option: $1
12015 Try \`$0 --help' for more information." >&2
12016 { (exit 1); exit 1; }; };;
12017 --help |
--hel |
-h )
12018 echo "$ac_cs_usage"; exit ;;
12019 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
12020 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
12023 # This is an error.
12024 -*) { echo "$as_me: error: unrecognized option: $1
12025 Try \`$0 --help' for more information." >&2
12026 { (exit 1); exit 1; }; } ;;
12028 *) ac_config_targets
="$ac_config_targets $1"
12029 ac_need_defaults
=false
;;
12035 ac_configure_extra_args
=
12037 if $ac_cs_silent; then
12039 ac_configure_extra_args
="$ac_configure_extra_args --silent"
12043 cat >>$CONFIG_STATUS <<_ACEOF
12044 if \$ac_cs_recheck; then
12045 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12046 CONFIG_SHELL=$SHELL
12047 export CONFIG_SHELL
12048 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12052 cat >>$CONFIG_STATUS <<\_ACEOF
12056 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12057 ## Running $as_me. ##
12063 cat >>$CONFIG_STATUS <<_ACEOF
12067 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12070 # The HP-UX ksh and POSIX shell print the target directory to stdout
12071 # if CDPATH is set.
12072 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12074 sed_quote_subst='$sed_quote_subst'
12075 double_quote_subst='$double_quote_subst'
12076 delay_variable_subst='$delay_variable_subst'
12077 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
12078 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
12079 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
12080 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
12081 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
12082 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
12083 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
12084 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
12085 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
12086 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
12087 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
12088 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
12089 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
12090 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
12091 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
12092 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
12093 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
12094 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
12095 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
12096 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
12097 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
12098 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
12099 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
12100 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
12101 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
12102 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
12103 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
12104 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12105 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
12106 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
12107 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
12108 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
12109 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12110 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
12111 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
12112 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12113 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12114 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12115 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
12116 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12117 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
12118 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
12119 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
12120 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
12121 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
12122 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
12123 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
12124 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
12125 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
12126 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
12127 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
12128 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
12129 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
12130 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
12131 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
12132 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
12133 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
12134 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
12135 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
12136 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
12137 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
12138 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
12139 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12140 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12141 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
12142 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
12143 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12144 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12145 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
12146 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12147 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12148 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12149 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12150 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12151 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12152 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
12153 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12154 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12155 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12156 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
12157 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
12158 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
12159 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
12160 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
12161 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12162 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
12163 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
12164 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
12165 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
12166 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
12167 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12168 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12169 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12170 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12171 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
12172 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
12173 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
12174 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
12175 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
12176 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12177 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12178 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
12179 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12180 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
12181 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12182 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12183 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12184 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12185 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
12186 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
12187 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12188 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12189 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
12190 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
12191 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
12192 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
12193 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
12194 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
12197 LTCFLAGS='$LTCFLAGS'
12198 compiler='$compiler_DEFAULT'
12200 # Quote evaled strings.
12212 deplibs_check_method \
12221 lt_cv_sys_global_symbol_pipe \
12222 lt_cv_sys_global_symbol_to_cdecl \
12223 lt_cv_sys_global_symbol_to_c_name_address \
12224 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
12227 lt_prog_compiler_no_builtin_flag \
12228 lt_prog_compiler_wl \
12229 lt_prog_compiler_pic \
12230 lt_prog_compiler_static \
12231 lt_cv_prog_compiler_c_o \
12239 export_dynamic_flag_spec \
12240 whole_archive_flag_spec \
12241 compiler_needs_object \
12243 allow_undefined_flag \
12244 no_undefined_flag \
12245 hardcode_libdir_flag_spec \
12246 hardcode_libdir_flag_spec_ld \
12247 hardcode_libdir_separator \
12252 variables_saved_for_relink \
12254 library_names_spec \
12259 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12260 *[\\\\\\\`\\"\\\$]*)
12261 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
12264 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12269 # Double-quote double-evaled strings.
12270 for var in reload_cmds \
12271 old_postinstall_cmds \
12272 old_postuninstall_cmds \
12274 extract_expsyms_cmds \
12275 old_archive_from_new_cmds \
12276 old_archive_from_expsyms_cmds \
12278 archive_expsym_cmds \
12280 module_expsym_cmds \
12281 export_symbols_cmds \
12284 postuninstall_cmds \
12286 sys_lib_search_path_spec \
12287 sys_lib_dlsearch_path_spec; do
12288 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12289 *[\\\\\\\`\\"\\\$]*)
12290 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
12293 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12298 # Fix-up fallback echo if it was mangled by the above quoting rules.
12300 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
12304 ac_aux_dir='$ac_aux_dir'
12305 xsi_shell='$xsi_shell'
12306 lt_shell_append='$lt_shell_append'
12308 # See if we are running on zsh, and set the options which allow our
12309 # commands through without removal of \ escapes INIT.
12310 if test -n "\${ZSH_VERSION+set}" ; then
12311 setopt NO_GLOB_SUBST
12317 TIMESTAMP='$TIMESTAMP'
12327 cat >>$CONFIG_STATUS <<\_ACEOF
12329 # Handling of arguments.
12330 for ac_config_target
in $ac_config_targets
12332 case $ac_config_target in
12333 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
12334 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
12335 "libtool") CONFIG_COMMANDS
="$CONFIG_COMMANDS libtool" ;;
12336 "libusb.pc") CONFIG_FILES
="$CONFIG_FILES libusb.pc" ;;
12337 "libusb-config") CONFIG_FILES
="$CONFIG_FILES libusb-config" ;;
12338 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
12339 "libusb/Makefile") CONFIG_FILES
="$CONFIG_FILES libusb/Makefile" ;;
12340 "examples/Makefile") CONFIG_FILES
="$CONFIG_FILES examples/Makefile" ;;
12341 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
12343 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12344 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12345 { (exit 1); exit 1; }; };;
12350 # If the user did not use the arguments to specify the items to instantiate,
12351 # then the envvar interface is used. Set only those that are not.
12352 # We use the long form for the default assignment because of an extremely
12353 # bizarre bug on SunOS 4.1.3.
12354 if $ac_need_defaults; then
12355 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
12356 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
12357 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
12360 # Have a temporary directory for convenience. Make it in the build tree
12361 # simply because there is no reason against having it here, and in addition,
12362 # creating and moving files from /tmp can sometimes cause problems.
12363 # Hook for its removal unless debugging.
12364 # Note that there is a small window in which the directory will not be cleaned:
12365 # after its creation but before its name has been assigned to `$tmp'.
12369 trap 'exit_status=$?
12370 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
12372 trap '{ (exit 1); exit 1; }' 1 2 13 15
12374 # Create a (secure) tmp directory for tmp files.
12377 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12378 test -n "$tmp" && test -d "$tmp"
12381 tmp
=.
/conf$$
-$RANDOM
12382 (umask 077 && mkdir
"$tmp")
12385 echo "$me: cannot create a temporary directory in ." >&2
12386 { (exit 1); exit 1; }
12390 # Set up the sed scripts for CONFIG_FILES section.
12393 # No need to generate the scripts if there are no CONFIG_FILES.
12394 # This happens for instance when ./config.status config.h
12395 if test -n "$CONFIG_FILES"; then
12402 for ac_last_try
in false false false false false
:; do
12403 cat >conf$
$subs.
sed <<_ACEOF
12404 SHELL!$SHELL$ac_delim
12405 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
12406 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
12407 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
12408 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
12409 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
12410 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
12411 exec_prefix!$exec_prefix$ac_delim
12412 prefix!$prefix$ac_delim
12413 program_transform_name!$program_transform_name$ac_delim
12414 bindir!$bindir$ac_delim
12415 sbindir!$sbindir$ac_delim
12416 libexecdir!$libexecdir$ac_delim
12417 datarootdir!$datarootdir$ac_delim
12418 datadir!$datadir$ac_delim
12419 sysconfdir!$sysconfdir$ac_delim
12420 sharedstatedir!$sharedstatedir$ac_delim
12421 localstatedir!$localstatedir$ac_delim
12422 includedir!$includedir$ac_delim
12423 oldincludedir!$oldincludedir$ac_delim
12424 docdir!$docdir$ac_delim
12425 infodir!$infodir$ac_delim
12426 htmldir!$htmldir$ac_delim
12427 dvidir!$dvidir$ac_delim
12428 pdfdir!$pdfdir$ac_delim
12429 psdir!$psdir$ac_delim
12430 libdir!$libdir$ac_delim
12431 localedir!$localedir$ac_delim
12432 mandir!$mandir$ac_delim
12433 DEFS!$DEFS$ac_delim
12434 ECHO_C!$ECHO_C$ac_delim
12435 ECHO_N!$ECHO_N$ac_delim
12436 ECHO_T!$ECHO_T$ac_delim
12437 LIBS!$LIBS$ac_delim
12438 build_alias!$build_alias$ac_delim
12439 host_alias!$host_alias$ac_delim
12440 target_alias!$target_alias$ac_delim
12441 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
12442 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
12443 INSTALL_DATA!$INSTALL_DATA$ac_delim
12444 am__isrc!$am__isrc$ac_delim
12445 CYGPATH_W!$CYGPATH_W$ac_delim
12446 PACKAGE!$PACKAGE$ac_delim
12447 VERSION!$VERSION$ac_delim
12448 ACLOCAL!$ACLOCAL$ac_delim
12449 AUTOCONF!$AUTOCONF$ac_delim
12450 AUTOMAKE!$AUTOMAKE$ac_delim
12451 AUTOHEADER!$AUTOHEADER$ac_delim
12452 MAKEINFO!$MAKEINFO$ac_delim
12453 install_sh!$install_sh$ac_delim
12454 STRIP!$STRIP$ac_delim
12455 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
12456 mkdir_p!$mkdir_p$ac_delim
12458 SET_MAKE!$SET_MAKE$ac_delim
12459 am__leading_dot!$am__leading_dot$ac_delim
12460 AMTAR!$AMTAR$ac_delim
12461 am__tar!$am__tar$ac_delim
12462 am__untar!$am__untar$ac_delim
12464 CFLAGS!$CFLAGS$ac_delim
12465 LDFLAGS!$LDFLAGS$ac_delim
12466 CPPFLAGS!$CPPFLAGS$ac_delim
12467 ac_ct_CC!$ac_ct_CC$ac_delim
12468 EXEEXT!$EXEEXT$ac_delim
12469 OBJEXT!$OBJEXT$ac_delim
12470 DEPDIR!$DEPDIR$ac_delim
12471 am__include!$am__include$ac_delim
12472 am__quote!$am__quote$ac_delim
12473 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
12474 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
12475 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
12476 CCDEPMODE!$CCDEPMODE$ac_delim
12477 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
12478 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
12479 LIBTOOL!$LIBTOOL$ac_delim
12480 build!$build$ac_delim
12481 build_cpu!$build_cpu$ac_delim
12482 build_vendor!$build_vendor$ac_delim
12483 build_os!$build_os$ac_delim
12484 host!$host$ac_delim
12485 host_cpu!$host_cpu$ac_delim
12486 host_vendor!$host_vendor$ac_delim
12487 host_os!$host_os$ac_delim
12489 GREP!$GREP$ac_delim
12490 EGREP!$EGREP$ac_delim
12491 FGREP!$FGREP$ac_delim
12493 DUMPBIN!$DUMPBIN$ac_delim
12494 ac_ct_DUMPBIN!$ac_ct_DUMPBIN$ac_delim
12496 LN_S!$LN_S$ac_delim
12497 OBJDUMP!$OBJDUMP$ac_delim
12499 RANLIB!$RANLIB$ac_delim
12500 lt_ECHO!$lt_ECHO$ac_delim
12503 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
12505 elif $ac_last_try; then
12506 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
12507 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
12508 { (exit 1); exit 1; }; }
12510 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
12514 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
12515 if test -n "$ac_eof"; then
12516 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
12517 ac_eof
=`expr $ac_eof + 1`
12520 cat >>$CONFIG_STATUS <<_ACEOF
12521 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
12522 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12525 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
12526 s/^/s,@/; s/!/@,|#_!!_#|/
12529 s/'"$ac_delim"'$/,g/; t
12531 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
12532 ' >>$CONFIG_STATUS <conf$
$subs.
sed
12533 rm -f conf$
$subs.
sed
12534 cat >>$CONFIG_STATUS <<_ACEOF
12540 for ac_last_try
in false false false false false
:; do
12541 cat >conf$
$subs.
sed <<_ACEOF
12542 DSYMUTIL!$DSYMUTIL$ac_delim
12543 NMEDIT!$NMEDIT$ac_delim
12544 LIPO!$LIPO$ac_delim
12545 OTOOL!$OTOOL$ac_delim
12546 OTOOL64!$OTOOL64$ac_delim
12548 LT_MAJOR!$LT_MAJOR$ac_delim
12549 LT_REVISION!$LT_REVISION$ac_delim
12550 LT_AGE!$LT_AGE$ac_delim
12551 LIBUSB01_VERSION!$LIBUSB01_VERSION$ac_delim
12552 PKG_CONFIG!$PKG_CONFIG$ac_delim
12553 LIBUSB_1_0_CFLAGS!$LIBUSB_1_0_CFLAGS$ac_delim
12554 LIBUSB_1_0_LIBS!$LIBUSB_1_0_LIBS$ac_delim
12555 BUILD_EXAMPLES_TRUE!$BUILD_EXAMPLES_TRUE$ac_delim
12556 BUILD_EXAMPLES_FALSE!$BUILD_EXAMPLES_FALSE$ac_delim
12557 AM_CFLAGS!$AM_CFLAGS$ac_delim
12558 LIBOBJS!$LIBOBJS$ac_delim
12559 LTLIBOBJS!$LTLIBOBJS$ac_delim
12562 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 18; then
12564 elif $ac_last_try; then
12565 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
12566 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
12567 { (exit 1); exit 1; }; }
12569 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
12573 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
12574 if test -n "$ac_eof"; then
12575 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
12576 ac_eof
=`expr $ac_eof + 1`
12579 cat >>$CONFIG_STATUS <<_ACEOF
12580 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
12581 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
12584 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
12585 s/^/s,@/; s/!/@,|#_!!_#|/
12588 s/'"$ac_delim"'$/,g/; t
12590 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
12591 ' >>$CONFIG_STATUS <conf$
$subs.
sed
12592 rm -f conf$
$subs.
sed
12593 cat >>$CONFIG_STATUS <<_ACEOF
12600 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12601 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12602 # trailing colons and then remove the whole line if VPATH becomes empty
12603 # (actually we leave an empty line to preserve line numbers).
12604 if test "x$srcdir" = x.
; then
12605 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
12606 s/:*\$(srcdir):*/:/
12607 s/:*\${srcdir}:*/:/
12609 s/^\([^=]*=[ ]*\):*/\1/
12615 cat >>$CONFIG_STATUS <<\_ACEOF
12616 fi # test -n "$CONFIG_FILES"
12619 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS :C
$CONFIG_COMMANDS
12622 :[FHLC
]) ac_mode
=$ac_tag; continue;;
12624 case $ac_mode$ac_tag in
12626 :L
* |
:C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
12627 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
12628 { (exit 1); exit 1; }; };;
12629 :[FH
]-) ac_tag
=-:-;;
12630 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
12647 -) ac_f
="$tmp/stdin";;
12648 *) # Look for the file first in the build tree, then in the source tree
12649 # (if the path is not absolute). The absolute path cannot be DOS-style,
12650 # because $ac_f cannot contain `:'.
12654 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
12656 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
12657 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
12658 { (exit 1); exit 1; }; };;
12660 ac_file_inputs
="$ac_file_inputs $ac_f"
12663 # Let's still pretend it is `configure' which instantiates (i.e., don't
12664 # use $as_me), people would be surprised to read:
12665 # /* config.h. Generated by config.status. */
12666 configure_input
="Generated from "`IFS=:
12667 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
12668 if test x
"$ac_file" != x-
; then
12669 configure_input
="$ac_file. $configure_input"
12670 { echo "$as_me:$LINENO: creating $ac_file" >&5
12671 echo "$as_me: creating $ac_file" >&6;}
12675 *:-:* |
*:-) cat >"$tmp/stdin";;
12680 ac_dir
=`$as_dirname -- "$ac_file" ||
12681 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12682 X"$ac_file" : 'X\(//\)[^/]' \| \
12683 X"$ac_file" : 'X\(//\)$' \| \
12684 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12686 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12690 /^X\(\/\/\)[^/].*/{
12705 -*) as_dir
=.
/$as_dir;;
12707 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
12711 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
12712 *) as_qdir
=$as_dir;;
12714 as_dirs
="'$as_qdir' $as_dirs"
12715 as_dir
=`$as_dirname -- "$as_dir" ||
12716 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12717 X"$as_dir" : 'X\(//\)[^/]' \| \
12718 X"$as_dir" : 'X\(//\)$' \| \
12719 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12721 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12725 /^X\(\/\/\)[^/].*/{
12738 test -d "$as_dir" && break
12740 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
12741 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
12742 echo "$as_me: error: cannot create directory $as_dir" >&2;}
12743 { (exit 1); exit 1; }; }; }
12747 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
12749 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12750 # A ".." for each directory in $ac_dir_suffix.
12751 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
12752 case $ac_top_builddir_sub in
12753 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
12754 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
12757 ac_abs_top_builddir
=$ac_pwd
12758 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
12759 # for backward compatibility:
12760 ac_top_builddir
=$ac_top_build_prefix
12763 .
) # We are building in place.
12765 ac_top_srcdir
=$ac_top_builddir_sub
12766 ac_abs_top_srcdir
=$ac_pwd ;;
12767 [\\/]* | ?
:[\\/]* ) # Absolute name.
12768 ac_srcdir
=$srcdir$ac_dir_suffix;
12769 ac_top_srcdir
=$srcdir
12770 ac_abs_top_srcdir
=$srcdir ;;
12771 *) # Relative name.
12772 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
12773 ac_top_srcdir
=$ac_top_build_prefix$srcdir
12774 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
12776 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
12786 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
12787 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
12789 ac_MKDIR_P
=$MKDIR_P
12791 [\\/$
]* | ?
:[\\/]* ) ;;
12792 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
12796 cat >>$CONFIG_STATUS <<\_ACEOF
12797 # If the template does not know about datarootdir, expand it.
12798 # FIXME: This hack should be removed a few years after 2.60.
12799 ac_datarootdir_hack
=; ac_datarootdir_seen
=
12801 case `sed -n '/datarootdir/ {
12810 ' $ac_file_inputs` in
12811 *datarootdir
*) ac_datarootdir_seen
=yes;;
12812 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
12813 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12814 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12816 cat >>$CONFIG_STATUS <<_ACEOF
12817 ac_datarootdir_hack='
12818 s&@datadir@&$datadir&g
12819 s&@docdir@&$docdir&g
12820 s&@infodir@&$infodir&g
12821 s&@localedir@&$localedir&g
12822 s&@mandir@&$mandir&g
12823 s&\\\${datarootdir}&$datarootdir&g' ;;
12827 # Neutralize VPATH when `$srcdir' = `.'.
12828 # Shell code in configure.ac might set extrasub.
12829 # FIXME: do we really want to maintain this feature?
12830 cat >>$CONFIG_STATUS <<_ACEOF
12834 cat >>$CONFIG_STATUS <<\_ACEOF
12836 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
12837 s
&@configure_input@
&$configure_input&;t t
12838 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
12839 s
&@srcdir@
&$ac_srcdir&;t t
12840 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
12841 s
&@top_srcdir@
&$ac_top_srcdir&;t t
12842 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
12843 s
&@builddir@
&$ac_builddir&;t t
12844 s
&@abs_builddir@
&$ac_abs_builddir&;t t
12845 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
12846 s
&@INSTALL@
&$ac_INSTALL&;t t
12847 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
12848 $ac_datarootdir_hack
12849 " $ac_file_inputs | sed -f "$tmp/subs-1.
sed" | sed -f "$tmp/subs-2.
sed" >$tmp/out
12851 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12852 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
12853 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
12854 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
12855 which seems to be undefined. Please make sure it is defined." >&5
12856 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
12857 which seems to be undefined. Please make sure it is defined." >&2;}
12861 -) cat "$tmp/out"; rm -f "$tmp/out";;
12862 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
12871 # Transform confdefs.h into a sed script `conftest.defines', that
12872 # substitutes the proper values into config.h.in to produce config.h.
12873 rm -f conftest.defines conftest.
tail
12874 # First, append a space to every undef/define line, to ease matching.
12875 echo 's/$/ /' >conftest.defines
12876 # Then, protect against being on the right side of a sed subst, or in
12877 # an unquoted here document, in config.status. If some macros were
12878 # called several times there might be several #defines for the same
12879 # symbol, which is useless. But do not sort them, since the last
12880 # AC_DEFINE must be honored.
12881 ac_word_re
=[_
$as_cr_Letters][_
$as_cr_alnum]*
12882 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
12883 # NAME is the cpp macro being defined, VALUE is the value it is being given.
12884 # PARAMS is the parameter list in the macro definition--in most cases, it's
12885 # just an empty string.
12886 ac_dA
='s,^\\([ #]*\\)[^ ]*\\([ ]*'
12887 ac_dB
='\\)[ (].*,\\1define\\2'
12895 s/^[ ]*#[ ]*define[ ][ ]*//
12900 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
12901 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
12902 ' >>conftest.defines
12904 # Remove the space that was appended to ease matching.
12905 # Then replace #undef with comments. This is necessary, for
12906 # example, in the case of _POSIX_SOURCE, which is predefined and required
12907 # on some systems where configure will not decide to define it.
12908 # (The regexp can be short, since the line contains either #define or #undef.)
12910 s,^[ #]*u.*,/* & */,' >>conftest.defines
12912 # Break up conftest.defines:
12913 ac_max_sed_lines
=50
12915 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
12916 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
12917 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
12919 ac_in
='$ac_file_inputs'
12920 ac_out
='"$tmp/out1"'
12921 ac_nxt
='"$tmp/out2"'
12925 # Write a here document:
12926 cat >>$CONFIG_STATUS <<_ACEOF
12927 # First, check the format of the line:
12928 cat >"\$tmp/defines.sed" <<\\CEOF
12929 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
12930 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
12934 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
12936 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
12937 ac_in
=$ac_out; ac_out
=$ac_nxt; ac_nxt
=$ac_in
12938 sed 1,${ac_max_sed_lines}d conftest.defines
>conftest.
tail
12939 grep . conftest.
tail >/dev
/null ||
break
12940 rm -f conftest.defines
12941 mv conftest.
tail conftest.defines
12943 rm -f conftest.defines conftest.
tail
12945 echo "ac_result=$ac_in" >>$CONFIG_STATUS
12946 cat >>$CONFIG_STATUS <<\_ACEOF
12947 if test x
"$ac_file" != x-
; then
12948 echo "/* $configure_input */" >"$tmp/config.h"
12949 cat "$ac_result" >>"$tmp/config.h"
12950 if diff $ac_file "$tmp/config.h" >/dev
/null
2>&1; then
12951 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
12952 echo "$as_me: $ac_file is unchanged" >&6;}
12955 mv "$tmp/config.h" $ac_file
12958 echo "/* $configure_input */"
12962 # Compute $ac_file's index in $config_headers.
12965 for _am_header
in $config_headers :; do
12966 case $_am_header in
12967 $_am_arg |
$_am_arg:* )
12970 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
12973 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12974 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12975 X"$_am_arg" : 'X\(//\)[^/]' \| \
12976 X"$_am_arg" : 'X\(//\)$' \| \
12977 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12979 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12983 /^X\(\/\/\)[^/].*/{
12995 s/.*/./; q'`/stamp-h
$_am_stamp_count
12998 :C
) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
12999 echo "$as_me: executing $ac_file commands" >&6;}
13004 case $ac_file$ac_mode in
13005 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
for mf
in $CONFIG_FILES; do
13006 # Strip MF so we end up with the name of the file.
13007 mf
=`echo "$mf" | sed -e 's/:.*$//'`
13008 # Check whether this is an Automake generated Makefile or not.
13009 # We used to match only the files named `Makefile.in', but
13010 # some people rename them; so instead we look at the file content.
13011 # Grep'ing the first line is not enough: some people post-process
13012 # each Makefile.in and add a new line on top of each file to say so.
13013 # Grep'ing the whole file is not good either: AIX grep has a line
13014 # limit of 2048, but all sed's we know have understand at least 4000.
13015 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
13016 dirpart
=`$as_dirname -- "$mf" ||
13017 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13018 X"$mf" : 'X\(//\)[^/]' \| \
13019 X"$mf" : 'X\(//\)$' \| \
13020 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
13022 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13026 /^X\(\/\/\)[^/].*/{
13042 # Extract the definition of DEPDIR, am__include, and am__quote
13043 # from the Makefile without running `make'.
13044 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
13045 test -z "$DEPDIR" && continue
13046 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
13047 test -z "am__include" && continue
13048 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
13049 # When using ansi2knr, U may be empty or an underscore; expand it
13050 U
=`sed -n 's/^U = //p' < "$mf"`
13051 # Find all dependency output files, they are included files with
13052 # $(DEPDIR) in their names. We invoke sed twice because it is the
13053 # simplest approach to changing $(DEPDIR) to its actual value in the
13055 for file in `sed -n "
13056 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13057 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
13058 # Make sure the directory exists.
13059 test -f "$dirpart/$file" && continue
13060 fdir
=`$as_dirname -- "$file" ||
13061 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13062 X"$file" : 'X\(//\)[^/]' \| \
13063 X"$file" : 'X\(//\)$' \| \
13064 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
13066 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13070 /^X\(\/\/\)[^/].*/{
13083 { as_dir
=$dirpart/$fdir
13085 -*) as_dir
=.
/$as_dir;;
13087 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
13091 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
13092 *) as_qdir
=$as_dir;;
13094 as_dirs
="'$as_qdir' $as_dirs"
13095 as_dir
=`$as_dirname -- "$as_dir" ||
13096 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13097 X"$as_dir" : 'X\(//\)[^/]' \| \
13098 X"$as_dir" : 'X\(//\)$' \| \
13099 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13101 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13105 /^X\(\/\/\)[^/].*/{
13118 test -d "$as_dir" && break
13120 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
13121 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
13122 echo "$as_me: error: cannot create directory $as_dir" >&2;}
13123 { (exit 1); exit 1; }; }; }
13124 # echo "creating $dirpart/$file"
13125 echo '# dummy' > "$dirpart/$file"
13131 # See if we are running on zsh, and set the options which allow our
13132 # commands through without removal of \ escapes.
13133 if test -n "${ZSH_VERSION+set}" ; then
13134 setopt NO_GLOB_SUBST
13137 cfgfile
="${ofile}T"
13138 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13141 cat <<_LT_EOF >> "$cfgfile"
13144 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13145 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
13146 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13147 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
13149 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
13150 # 2006, 2007, 2008 Free Software Foundation, Inc.
13151 # Written by Gordon Matzigkeit, 1996
13153 # This file is part of GNU Libtool.
13155 # GNU Libtool is free software; you can redistribute it and/or
13156 # modify it under the terms of the GNU General Public License as
13157 # published by the Free Software Foundation; either version 2 of
13158 # the License, or (at your option) any later version.
13160 # As a special exception to the GNU General Public License,
13161 # if you distribute this file as part of a program or library that
13162 # is built using GNU Libtool, you may include this file under the
13163 # same distribution terms that you use for the rest of that program.
13165 # GNU Libtool is distributed in the hope that it will be useful,
13166 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13167 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13168 # GNU General Public License for more details.
13170 # You should have received a copy of the GNU General Public License
13171 # along with GNU Libtool; see the file COPYING. If not, a copy
13172 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
13173 # obtained by writing to the Free Software Foundation, Inc.,
13174 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
13177 # The names of the tagged configurations supported by this script.
13180 # ### BEGIN LIBTOOL CONFIG
13182 # Which release of libtool.m4 was used?
13183 macro_version=$macro_version
13184 macro_revision=$macro_revision
13186 # Whether or not to build shared libraries.
13187 build_libtool_libs=$enable_shared
13189 # Whether or not to build static libraries.
13190 build_old_libs=$enable_static
13192 # What type of objects to build.
13195 # Whether or not to optimize for fast installation.
13196 fast_install=$enable_fast_install
13199 host_alias=$host_alias
13203 # The build system.
13204 build_alias=$build_alias
13208 # A sed program that does not truncate output.
13211 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
13212 Xsed="\$SED -e 1s/^X//"
13214 # A grep program that handles long lines.
13220 # A literal string matcher.
13223 # A BSD- or MS-compatible name lister.
13226 # Whether we need soft or hard links.
13229 # What is the maximum length of a command?
13230 max_cmd_len=$max_cmd_len
13232 # Object file suffix (normally "o").
13235 # Executable file suffix (normally "").
13238 # whether the shell understands "unset".
13241 # turn spaces into newlines.
13244 # turn newlines into spaces.
13247 # How to create reloadable object files.
13248 reload_flag=$lt_reload_flag
13249 reload_cmds=$lt_reload_cmds
13251 # An object symbol dumper.
13252 OBJDUMP=$lt_OBJDUMP
13254 # Method to check whether dependent libraries are shared objects.
13255 deplibs_check_method=$lt_deplibs_check_method
13257 # Command to use when deplibs_check_method == "file_magic".
13258 file_magic_cmd=$lt_file_magic_cmd
13262 AR_FLAGS=$lt_AR_FLAGS
13264 # A symbol stripping program.
13267 # Commands used to install an old-style archive.
13269 old_postinstall_cmds=$lt_old_postinstall_cmds
13270 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13275 # LTCC compiler flags.
13276 LTCFLAGS=$lt_CFLAGS
13278 # Take the output of nm and produce a listing of raw symbols and C names.
13279 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13281 # Transform the output of nm in a proper C declaration.
13282 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13284 # Transform the output of nm in a C name address pair.
13285 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13287 # Transform the output of nm in a C name address pair when lib prefix is needed.
13288 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
13290 # The name of the directory that contains temporary libtool files.
13293 # Shell to use when invoking shell scripts.
13296 # An echo program that does not interpret backslashes.
13299 # Used to examine libraries when file_magic_cmd begins with "file".
13300 MAGIC_CMD=$MAGIC_CMD
13302 # Must we lock files when doing compilation?
13303 need_locks=$lt_need_locks
13305 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
13306 DSYMUTIL=$lt_DSYMUTIL
13308 # Tool to change global to local symbols on Mac OS X.
13311 # Tool to manipulate fat objects and archives on Mac OS X.
13314 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
13317 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
13318 OTOOL64=$lt_OTOOL64
13320 # Old archive suffix (normally "a").
13323 # Shared library suffix (normally ".so").
13324 shrext_cmds=$lt_shrext_cmds
13326 # The commands to extract the exported symbol list from a shared archive.
13327 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13329 # Variables whose values should be saved in libtool wrapper scripts and
13330 # restored at link time.
13331 variables_saved_for_relink=$lt_variables_saved_for_relink
13333 # Do we need the "lib" prefix for modules?
13334 need_lib_prefix=$need_lib_prefix
13336 # Do we need a version for libraries?
13337 need_version=$need_version
13339 # Library versioning type.
13340 version_type=$version_type
13342 # Shared library runtime path variable.
13343 runpath_var=$runpath_var
13345 # Shared library path variable.
13346 shlibpath_var=$shlibpath_var
13348 # Is shlibpath searched before the hard-coded library search path?
13349 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13351 # Format of library name prefix.
13352 libname_spec=$lt_libname_spec
13354 # List of archive names. First name is the real one, the rest are links.
13355 # The last name is the one that the linker finds with -lNAME
13356 library_names_spec=$lt_library_names_spec
13358 # The coded name of the library, if different from the real name.
13359 soname_spec=$lt_soname_spec
13361 # Command to use after installation of a shared archive.
13362 postinstall_cmds=$lt_postinstall_cmds
13364 # Command to use after uninstallation of a shared archive.
13365 postuninstall_cmds=$lt_postuninstall_cmds
13367 # Commands used to finish a libtool library installation in a directory.
13368 finish_cmds=$lt_finish_cmds
13370 # As "finish_cmds", except a single script fragment to be evaled but
13372 finish_eval=$lt_finish_eval
13374 # Whether we should hardcode library paths into libraries.
13375 hardcode_into_libs=$hardcode_into_libs
13377 # Compile-time system search path for libraries.
13378 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13380 # Run-time system search path for libraries.
13381 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13383 # Whether dlopen is supported.
13384 dlopen_support=$enable_dlopen
13386 # Whether dlopen of programs is supported.
13387 dlopen_self=$enable_dlopen_self
13389 # Whether dlopen of statically linked programs is supported.
13390 dlopen_self_static=$enable_dlopen_self_static
13392 # Commands to strip libraries.
13393 old_striplib=$lt_old_striplib
13394 striplib=$lt_striplib
13397 # The linker used to build libraries.
13400 # Commands used to build an old-style archive.
13401 old_archive_cmds=$lt_old_archive_cmds
13403 # A language specific compiler.
13406 # Is the compiler the GNU compiler?
13409 # Compiler flag to turn off builtin functions.
13410 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13412 # How to pass a linker flag through the compiler.
13413 wl=$lt_lt_prog_compiler_wl
13415 # Additional compiler flags for building library objects.
13416 pic_flag=$lt_lt_prog_compiler_pic
13418 # Compiler flag to prevent dynamic linking.
13419 link_static_flag=$lt_lt_prog_compiler_static
13421 # Does compiler simultaneously support -c and -o options?
13422 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13424 # Whether or not to add -lc for building shared libraries.
13425 build_libtool_need_lc=$archive_cmds_need_lc
13427 # Whether or not to disallow shared libs when runtime libs are static.
13428 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13430 # Compiler flag to allow reflexive dlopens.
13431 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13433 # Compiler flag to generate shared objects directly from archives.
13434 whole_archive_flag_spec=$lt_whole_archive_flag_spec
13436 # Whether the compiler copes with passing no objects directly.
13437 compiler_needs_object=$lt_compiler_needs_object
13439 # Create an old-style archive from a shared archive.
13440 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13442 # Create a temporary old-style archive to link instead of a shared archive.
13443 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13445 # Commands used to build a shared archive.
13446 archive_cmds=$lt_archive_cmds
13447 archive_expsym_cmds=$lt_archive_expsym_cmds
13449 # Commands used to build a loadable module if different from building
13450 # a shared archive.
13451 module_cmds=$lt_module_cmds
13452 module_expsym_cmds=$lt_module_expsym_cmds
13454 # Whether we are building with GNU ld or not.
13455 with_gnu_ld=$lt_with_gnu_ld
13457 # Flag that allows shared libraries with undefined symbols to be built.
13458 allow_undefined_flag=$lt_allow_undefined_flag
13460 # Flag that enforces no undefined symbols.
13461 no_undefined_flag=$lt_no_undefined_flag
13463 # Flag to hardcode \$libdir into a binary during linking.
13464 # This must work even if \$libdir does not exist
13465 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13467 # If ld is used when linking, flag to hardcode \$libdir into a binary
13468 # during linking. This must work even if \$libdir does not exist.
13469 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
13471 # Whether we need a single "-rpath" flag with a separated argument.
13472 hardcode_libdir_separator=$lt_hardcode_libdir_separator
13474 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13475 # DIR into the resulting binary.
13476 hardcode_direct=$hardcode_direct
13478 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13479 # DIR into the resulting binary and the resulting library dependency is
13480 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
13481 # library is relocated.
13482 hardcode_direct_absolute=$hardcode_direct_absolute
13484 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13485 # into the resulting binary.
13486 hardcode_minus_L=$hardcode_minus_L
13488 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13489 # into the resulting binary.
13490 hardcode_shlibpath_var=$hardcode_shlibpath_var
13492 # Set to "yes" if building a shared library automatically hardcodes DIR
13493 # into the library and all subsequent libraries and executables linked
13495 hardcode_automatic=$hardcode_automatic
13497 # Set to yes if linker adds runtime paths of dependent libraries
13498 # to runtime path list.
13499 inherit_rpath=$inherit_rpath
13501 # Whether libtool must link a program against all its dependency libraries.
13502 link_all_deplibs=$link_all_deplibs
13504 # Fix the shell variable \$srcfile for the compiler.
13505 fix_srcfile_path=$lt_fix_srcfile_path
13507 # Set to "yes" if exported symbols are required.
13508 always_export_symbols=$always_export_symbols
13510 # The commands to list exported symbols.
13511 export_symbols_cmds=$lt_export_symbols_cmds
13513 # Symbols that should not be listed in the preloaded symbols.
13514 exclude_expsyms=$lt_exclude_expsyms
13516 # Symbols that must always be exported.
13517 include_expsyms=$lt_include_expsyms
13519 # Commands necessary for linking programs (against libraries) with templates.
13520 prelink_cmds=$lt_prelink_cmds
13522 # Specify filename containing input files.
13523 file_list_spec=$lt_file_list_spec
13525 # How to hardcode a shared library path into an executable.
13526 hardcode_action=$hardcode_action
13528 # ### END LIBTOOL CONFIG
13534 cat <<\_LT_EOF
>> "$cfgfile"
13535 # AIX sometimes has problems with the GCC collect2 program. For some
13536 # reason, if we set the COLLECT_NAMES environment variable, the problems
13537 # vanish in a puff of smoke.
13538 if test "X${COLLECT_NAMES+set}" != Xset
; then
13540 export COLLECT_NAMES
13547 ltmain
="$ac_aux_dir/ltmain.sh"
13550 # We use sed instead of cat because bash on DJGPP gets confused if
13551 # if finds mixed CR/LF and LF-only lines. Since sed operates in
13552 # text mode, it properly converts lines to CR/LF. This bash problem
13553 # is reportedly fixed, but why not run on old versions too?
13554 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
13555 ||
(rm -f "$cfgfile"; exit 1)
13559 cat << \_LT_EOF
>> "$cfgfile"
13561 # func_dirname file append nondir_replacement
13562 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
13563 # otherwise set result to NONDIR_REPLACEMENT.
13567 */*) func_dirname_result
="${1%/*}${2}" ;;
13568 * ) func_dirname_result
="${3}" ;;
13572 # func_basename file
13575 func_basename_result
="${1##*/}"
13578 # func_dirname_and_basename file append nondir_replacement
13579 # perform func_basename and func_dirname in a single function
13581 # dirname: Compute the dirname of FILE. If nonempty,
13582 # add APPEND to the result, otherwise set result
13583 # to NONDIR_REPLACEMENT.
13584 # value returned in "$func_dirname_result"
13585 # basename: Compute filename of FILE.
13586 # value retuned in "$func_basename_result"
13587 # Implementation must be kept synchronized with func_dirname
13588 # and func_basename. For efficiency, we do not delegate to
13589 # those functions but instead duplicate the functionality here.
13590 func_dirname_and_basename
()
13593 */*) func_dirname_result
="${1%/*}${2}" ;;
13594 * ) func_dirname_result
="${3}" ;;
13596 func_basename_result
="${1##*/}"
13599 # func_stripname prefix suffix name
13600 # strip PREFIX and SUFFIX off of NAME.
13601 # PREFIX and SUFFIX must not contain globbing or regex special
13602 # characters, hashes, percent signs, but SUFFIX may contain a leading
13603 # dot (in which case that matches only a dot).
13606 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
13607 # positional parameters, so assign one to ordinary parameter first.
13608 func_stripname_result
=${3}
13609 func_stripname_result
=${func_stripname_result#"${1}"}
13610 func_stripname_result
=${func_stripname_result%"${2}"}
13616 func_opt_split_opt
=${1%%=*}
13617 func_opt_split_arg
=${1#*=}
13624 *.lo
) func_lo2o_result
=${1%.lo}.
${objext} ;;
13625 *) func_lo2o_result
=${1} ;;
13629 # func_xform libobj-or-source
13632 func_xform_result
=${1%.*}.lo
13635 # func_arith arithmetic-term...
13638 func_arith_result
=$
(( $
* ))
13642 # STRING may not start with a hyphen.
13645 func_len_result
=${#1}
13650 *) # Bourne compatible functions.
13651 cat << \_LT_EOF
>> "$cfgfile"
13653 # func_dirname file append nondir_replacement
13654 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
13655 # otherwise set result to NONDIR_REPLACEMENT.
13658 # Extract subdirectory from the argument.
13659 func_dirname_result
=`$ECHO "X${1}" | $Xsed -e "$dirname"`
13660 if test "X$func_dirname_result" = "X${1}"; then
13661 func_dirname_result
="${3}"
13663 func_dirname_result
="$func_dirname_result${2}"
13667 # func_basename file
13670 func_basename_result
=`$ECHO "X${1}" | $Xsed -e "$basename"`
13674 # func_stripname prefix suffix name
13675 # strip PREFIX and SUFFIX off of NAME.
13676 # PREFIX and SUFFIX must not contain globbing or regex special
13677 # characters, hashes, percent signs, but SUFFIX may contain a leading
13678 # dot (in which case that matches only a dot).
13679 # func_strip_suffix prefix name
13683 .
*) func_stripname_result
=`$ECHO "X${3}" \
13684 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
13685 *) func_stripname_result
=`$ECHO "X${3}" \
13686 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
13691 my_sed_long_opt
='1s/^\(-[^=]*\)=.*/\1/;q'
13692 my_sed_long_arg
='1s/^-[^=]*=//'
13697 func_opt_split_opt
=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
13698 func_opt_split_arg
=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
13704 func_lo2o_result
=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
13707 # func_xform libobj-or-source
13710 func_xform_result
=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
13713 # func_arith arithmetic-term...
13716 func_arith_result
=`expr "$@"`
13720 # STRING may not start with a hyphen.
13723 func_len_result
=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
13729 case $lt_shell_append in
13731 cat << \_LT_EOF
>> "$cfgfile"
13733 # func_append var value
13734 # Append VALUE to the end of shell variable VAR.
13742 cat << \_LT_EOF
>> "$cfgfile"
13744 # func_append var value
13745 # Append VALUE to the end of shell variable VAR.
13756 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
13757 ||
(rm -f "$cfgfile"; exit 1)
13759 mv -f "$cfgfile" "$ofile" ||
13760 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
13764 "default":C
) chmod +x libusb-config
;;
13770 { (exit 0); exit 0; }
13772 chmod +x
$CONFIG_STATUS
13773 ac_clean_files
=$ac_clean_files_save
13776 # configure is writing to config.log, and then calls config.status.
13777 # config.status does its own redirection, appending to config.log.
13778 # Unfortunately, on DOS this fails, as config.log is still kept open
13779 # by configure, so config.status won't be able to write to it; its
13780 # output is simply discarded. So we exec the FD to /dev/null,
13781 # effectively closing config.log, so it can be properly (re)opened and
13782 # appended to by config.status. When coming back to configure, we
13783 # need to make the FD available again.
13784 if test "$no_create" != yes; then
13786 ac_config_status_args
=
13787 test "$silent" = yes &&
13788 ac_config_status_args
="$ac_config_status_args --quiet"
13790 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
13792 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13793 # would make configure fail if this is the last instruction.
13794 $ac_cs_success ||
{ (exit 1); exit 1; }