2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for libusb 1.0.9.
5 # Report bugs to <libusb-devel@lists.sourceforge.net>.
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
29 case `(set -o) 2>/dev/null` in #(
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
70 as_echo_n='sh -c $as_echo_n_body as_echo'
73 as_echo='sh -c $as_echo_body as_echo'
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
87 # We need space, tab and new line, in precisely that order. Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
93 # Find who we are. Look in the path if we contain no directory separator.
96 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
101 test -z "$as_dir" && as_dir=.
102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
113 if test ! -f "$as_myself"; then
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there. '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
139 if test "x$CONFIG_SHELL" = x; then
140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144 # is contrary to our usage. Disable this feature.
145 alias -g '\${1+\"\$@\"}'='\"\$@\"'
148 case \`(set -o) 2>/dev/null\` in #(
156 as_required="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
170 exitcode=1; echo positional parameters were not saved.
172 test x\$exitcode = x0 || exit 1"
173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
178 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
179 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
180 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
181 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182 PATH=/empty FPATH=/empty; export PATH FPATH
183 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
184 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
185 test \$(( 1 + 1 )) = 2 || exit 1"
186 if (eval "$as_required") 2>/dev/null; then :
191 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
196 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
199 test -z "$as_dir" && as_dir=.
203 for as_base in sh bash ksh sh5; do
204 # Try only shells that exist, to save several forks.
205 as_shell=$as_dir/$as_base
206 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
208 CONFIG_SHELL=$as_shell as_have_required=yes
209 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
217 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
218 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
219 CONFIG_SHELL=$SHELL as_have_required=yes
224 if test "x$CONFIG_SHELL" != x; then :
225 # We cannot yet assume a decent shell, so we have to provide a
226 # neutralization value for shells without unset; and this also
227 # works around shells that cannot unset nonexistent variables.
228 # Preserve -v and -x to the replacement shell.
231 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
234 *v*x* | *x*v* ) as_opts=-vx ;;
239 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
242 if test x$as_have_required = xno; then :
243 $as_echo "$0: This script requires a shell more modern than all"
244 $as_echo "$0: the shells that I found on your system."
245 if test x${ZSH_VERSION+set} = xset ; then
246 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
247 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
249 $as_echo "$0: Please tell bug-autoconf@gnu.org and
250 $0: libusb-devel@lists.sourceforge.net about your system,
251 $0: including any error possibly output before this
252 $0: message. Then install a modern shell, or manually run
253 $0: the script under such a shell if you do have one."
259 SHELL=${CONFIG_SHELL-/bin/sh}
261 # Unset more variables known to interfere with behavior of common tools.
262 CLICOLOR_FORCE= GREP_OPTIONS=
263 unset CLICOLOR_FORCE GREP_OPTIONS
265 ## --------------------- ##
266 ## M4sh Shell Functions. ##
267 ## --------------------- ##
270 # Portably unset VAR.
273 { eval $1=; unset $1;}
277 # as_fn_set_status STATUS
278 # -----------------------
279 # Set $? to STATUS, without forking.
287 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
297 # Create "$as_dir" as a directory, including parents if necessary.
302 -*) as_dir=./$as_dir;;
304 test -d "$as_dir" || eval $as_mkdir_p || {
308 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
311 as_dirs="'$as_qdir' $as_dirs"
312 as_dir=`$as_dirname -- "$as_dir" ||
313 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
314 X"$as_dir" : 'X\(//\)[^/]' \| \
315 X"$as_dir" : 'X\(//\)$' \| \
316 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
317 $as_echo X"$as_dir" |
318 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
335 test -d "$as_dir" && break
337 test -z "$as_dirs" || eval "mkdir $as_dirs"
338 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
342 # as_fn_append VAR VALUE
343 # ----------------------
344 # Append the text in VALUE to the end of the definition contained in VAR. Take
345 # advantage of any shell optimizations that allow amortized linear growth over
346 # repeated appends, instead of the typical quadratic growth present in naive
348 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
349 eval 'as_fn_append ()
362 # Perform arithmetic evaluation on the ARGs, and store the result in the
363 # global $as_val. Take advantage of shells that can avoid forks. The arguments
364 # must be portable across $(()) and expr.
365 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
373 as_val=`expr "$@" || test $? -eq 1`
378 # as_fn_error STATUS ERROR [LINENO LOG_FD]
379 # ----------------------------------------
380 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
381 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
382 # script with STATUS, using 1 if that was 0.
385 as_status=$1; test $as_status -eq 0 && as_status=1
387 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
388 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
390 $as_echo "$as_me: error: $2" >&2
391 as_fn_exit $as_status
394 if expr a : '\(a\)' >/dev/null 2>&1 &&
395 test "X`expr 00001 : '.*\(...\)'`" = X001; then
401 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
407 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
413 as_me=`$as_basename -- "$0" ||
414 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
415 X"$0" : 'X\(//\)$' \| \
416 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
418 sed '/^.*\/\([^/][^/]*\)\/*$/{
432 # Avoid depending upon Character Ranges.
433 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
434 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
435 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
436 as_cr_digits='0123456789'
437 as_cr_alnum=$as_cr_Letters$as_cr_digits
440 as_lineno_1=$LINENO as_lineno_1a=$LINENO
441 as_lineno_2=$LINENO as_lineno_2a=$LINENO
442 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
443 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
444 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
456 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
460 chmod +x "$as_me.lineno" ||
461 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
463 # Don't try to exec as it changes $[0], causing all sort of problems
464 # (the dirname of $[0] is not the place where we might find the
465 # original and so on. Autoconf is especially sensitive to this).
467 # Exit status is that of the last command.
471 ECHO_C= ECHO_N= ECHO_T=
472 case `echo -n x` in #(((((
474 case `echo 'xy\c'` in
475 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
484 rm -f conf$$ conf$$.exe conf$$.file
485 if test -d conf$$.dir; then
486 rm -f conf$$.dir/conf$$.file
489 mkdir conf$$.dir 2>/dev/null
491 if (echo >conf$$.file) 2>/dev/null; then
492 if ln -s conf$$.file conf$$ 2>/dev/null; then
494 # ... but there are two gotchas:
495 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
496 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
497 # In both cases, we have to default to `cp -p'.
498 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
500 elif ln conf$$.file conf$$ 2>/dev/null; then
508 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
509 rmdir conf$$.dir 2>/dev/null
511 if mkdir -p . 2>/dev/null; then
512 as_mkdir_p='mkdir -p "$as_dir"'
514 test -d ./-p && rmdir ./-p
518 if test -x / >/dev/null 2>&1; then
521 if ls -dL / >/dev/null 2>&1; then
528 if test -d "$1"; then
534 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
535 ???[sx]*):;;*)false;;esac;fi
539 as_executable_p=$as_test_x
541 # Sed expression to map a string onto a valid CPP name.
542 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
544 # Sed expression to map a string onto a valid variable name.
545 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
547 SHELL=${CONFIG_SHELL-/bin/sh}
550 test -n "$DJDIR" || exec 7<&0 </dev/null
554 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
555 # so uname gets run too.
556 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
561 ac_default_prefix=/usr/local
563 ac_config_libobj_dir=.
570 # Identity of this package.
571 PACKAGE_NAME='libusb'
572 PACKAGE_TARNAME='libusb'
573 PACKAGE_VERSION='1.0.9'
574 PACKAGE_STRING='libusb 1.0.9'
575 PACKAGE_BUGREPORT='libusb-devel@lists.sourceforge.net'
576 PACKAGE_URL='http://www.libusb.org/'
578 ac_unique_file="libusb/core.c"
579 # Factoring default headers for most tests.
580 ac_includes_default="\
582 #ifdef HAVE_SYS_TYPES_H
583 # include <sys/types.h>
585 #ifdef HAVE_SYS_STAT_H
586 # include <sys/stat.h>
592 # ifdef HAVE_STDLIB_H
597 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
602 #ifdef HAVE_STRINGS_H
603 # include <strings.h>
605 #ifdef HAVE_INTTYPES_H
606 # include <inttypes.h>
615 ac_subst_vars='am__EXEEXT_FALSE
689 MAINTAINER_MODE_FALSE
699 INSTALL_STRIP_PROGRAM
741 program_transform_name
754 enable_option_checking
755 enable_maintainer_mode
757 enable_dependency_tracking
767 enable_examples_build
769 ac_precious_vars='build_alias
780 # Initialize some variables set by options.
782 ac_init_version=false
783 ac_unrecognized_opts=
785 # The variables have the same names as the options, with
786 # dashes changed to underlines.
794 program_transform_name=s,x,x,
802 # Installation directory options.
803 # These are left unexpanded so users can "make install exec_prefix=/foo"
804 # and all the variables that are supposed to be based on exec_prefix
805 # by default will actually change.
806 # Use braces instead of parens because sh, perl, etc. also accept them.
807 # (The list follows the same order as the GNU Coding Standards.)
808 bindir='${exec_prefix}/bin'
809 sbindir='${exec_prefix}/sbin'
810 libexecdir='${exec_prefix}/libexec'
811 datarootdir='${prefix}/share'
812 datadir='${datarootdir}'
813 sysconfdir='${prefix}/etc'
814 sharedstatedir='${prefix}/com'
815 localstatedir='${prefix}/var'
816 includedir='${prefix}/include'
817 oldincludedir='/usr/include'
818 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
819 infodir='${datarootdir}/info'
824 libdir='${exec_prefix}/lib'
825 localedir='${datarootdir}/locale'
826 mandir='${datarootdir}/man'
832 # If the previous option needs an argument, assign it.
833 if test -n "$ac_prev"; then
834 eval $ac_prev=\$ac_option
840 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
845 # Accept the important Cygnus configure options, so we can diagnose typos.
847 case $ac_dashdash$ac_option in
851 -bindir | --bindir | --bindi | --bind | --bin | --bi)
853 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
856 -build | --build | --buil | --bui | --bu)
857 ac_prev=build_alias ;;
858 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
859 build_alias=$ac_optarg ;;
861 -cache-file | --cache-file | --cache-fil | --cache-fi \
862 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
863 ac_prev=cache_file ;;
864 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
865 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
866 cache_file=$ac_optarg ;;
869 cache_file=config.cache ;;
871 -datadir | --datadir | --datadi | --datad)
873 -datadir=* | --datadir=* | --datadi=* | --datad=*)
874 datadir=$ac_optarg ;;
876 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
877 | --dataroo | --dataro | --datar)
878 ac_prev=datarootdir ;;
879 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
880 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
881 datarootdir=$ac_optarg ;;
883 -disable-* | --disable-*)
884 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
885 # Reject names that are not valid shell variable names.
886 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
887 as_fn_error $? "invalid feature name: $ac_useropt"
888 ac_useropt_orig=$ac_useropt
889 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
890 case $ac_user_opts in
894 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
895 ac_unrecognized_sep=', ';;
897 eval enable_$ac_useropt=no ;;
899 -docdir | --docdir | --docdi | --doc | --do)
901 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
904 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
906 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
909 -enable-* | --enable-*)
910 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
911 # Reject names that are not valid shell variable names.
912 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
913 as_fn_error $? "invalid feature name: $ac_useropt"
914 ac_useropt_orig=$ac_useropt
915 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
916 case $ac_user_opts in
920 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
921 ac_unrecognized_sep=', ';;
923 eval enable_$ac_useropt=\$ac_optarg ;;
925 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
926 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
927 | --exec | --exe | --ex)
928 ac_prev=exec_prefix ;;
929 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
930 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
931 | --exec=* | --exe=* | --ex=*)
932 exec_prefix=$ac_optarg ;;
934 -gas | --gas | --ga | --g)
935 # Obsolete; use --with-gas.
938 -help | --help | --hel | --he | -h)
940 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
941 ac_init_help=recursive ;;
942 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
943 ac_init_help=short ;;
945 -host | --host | --hos | --ho)
946 ac_prev=host_alias ;;
947 -host=* | --host=* | --hos=* | --ho=*)
948 host_alias=$ac_optarg ;;
950 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
952 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
954 htmldir=$ac_optarg ;;
956 -includedir | --includedir | --includedi | --included | --include \
957 | --includ | --inclu | --incl | --inc)
958 ac_prev=includedir ;;
959 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
960 | --includ=* | --inclu=* | --incl=* | --inc=*)
961 includedir=$ac_optarg ;;
963 -infodir | --infodir | --infodi | --infod | --info | --inf)
965 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
966 infodir=$ac_optarg ;;
968 -libdir | --libdir | --libdi | --libd)
970 -libdir=* | --libdir=* | --libdi=* | --libd=*)
973 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
974 | --libexe | --libex | --libe)
975 ac_prev=libexecdir ;;
976 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
977 | --libexe=* | --libex=* | --libe=*)
978 libexecdir=$ac_optarg ;;
980 -localedir | --localedir | --localedi | --localed | --locale)
982 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
983 localedir=$ac_optarg ;;
985 -localstatedir | --localstatedir | --localstatedi | --localstated \
986 | --localstate | --localstat | --localsta | --localst | --locals)
987 ac_prev=localstatedir ;;
988 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
989 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
990 localstatedir=$ac_optarg ;;
992 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
994 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
998 # Obsolete; use --without-fp.
1001 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1002 | --no-cr | --no-c | -n)
1005 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1006 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1009 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1010 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1011 | --oldin | --oldi | --old | --ol | --o)
1012 ac_prev=oldincludedir ;;
1013 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1014 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1015 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1016 oldincludedir=$ac_optarg ;;
1018 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1020 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1021 prefix=$ac_optarg ;;
1023 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1024 | --program-pre | --program-pr | --program-p)
1025 ac_prev=program_prefix ;;
1026 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1027 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1028 program_prefix=$ac_optarg ;;
1030 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1031 | --program-suf | --program-su | --program-s)
1032 ac_prev=program_suffix ;;
1033 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1034 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1035 program_suffix=$ac_optarg ;;
1037 -program-transform-name | --program-transform-name \
1038 | --program-transform-nam | --program-transform-na \
1039 | --program-transform-n | --program-transform- \
1040 | --program-transform | --program-transfor \
1041 | --program-transfo | --program-transf \
1042 | --program-trans | --program-tran \
1043 | --progr-tra | --program-tr | --program-t)
1044 ac_prev=program_transform_name ;;
1045 -program-transform-name=* | --program-transform-name=* \
1046 | --program-transform-nam=* | --program-transform-na=* \
1047 | --program-transform-n=* | --program-transform-=* \
1048 | --program-transform=* | --program-transfor=* \
1049 | --program-transfo=* | --program-transf=* \
1050 | --program-trans=* | --program-tran=* \
1051 | --progr-tra=* | --program-tr=* | --program-t=*)
1052 program_transform_name=$ac_optarg ;;
1054 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1056 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1057 pdfdir=$ac_optarg ;;
1059 -psdir | --psdir | --psdi | --psd | --ps)
1061 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1064 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1065 | -silent | --silent | --silen | --sile | --sil)
1068 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1070 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1072 sbindir=$ac_optarg ;;
1074 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1075 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1076 | --sharedst | --shareds | --shared | --share | --shar \
1078 ac_prev=sharedstatedir ;;
1079 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1080 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1081 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1083 sharedstatedir=$ac_optarg ;;
1085 -site | --site | --sit)
1087 -site=* | --site=* | --sit=*)
1090 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1092 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1093 srcdir=$ac_optarg ;;
1095 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1096 | --syscon | --sysco | --sysc | --sys | --sy)
1097 ac_prev=sysconfdir ;;
1098 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1099 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1100 sysconfdir=$ac_optarg ;;
1102 -target | --target | --targe | --targ | --tar | --ta | --t)
1103 ac_prev=target_alias ;;
1104 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1105 target_alias=$ac_optarg ;;
1107 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1110 -version | --version | --versio | --versi | --vers | -V)
1111 ac_init_version=: ;;
1114 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1115 # Reject names that are not valid shell variable names.
1116 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1117 as_fn_error $? "invalid package name: $ac_useropt"
1118 ac_useropt_orig=$ac_useropt
1119 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1120 case $ac_user_opts in
1124 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1125 ac_unrecognized_sep=', ';;
1127 eval with_$ac_useropt=\$ac_optarg ;;
1129 -without-* | --without-*)
1130 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1131 # Reject names that are not valid shell variable names.
1132 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1133 as_fn_error $? "invalid package name: $ac_useropt"
1134 ac_useropt_orig=$ac_useropt
1135 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1136 case $ac_user_opts in
1140 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1141 ac_unrecognized_sep=', ';;
1143 eval with_$ac_useropt=no ;;
1146 # Obsolete; use --with-x.
1149 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1150 | --x-incl | --x-inc | --x-in | --x-i)
1151 ac_prev=x_includes ;;
1152 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1153 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1154 x_includes=$ac_optarg ;;
1156 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1157 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1158 ac_prev=x_libraries ;;
1159 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1160 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1161 x_libraries=$ac_optarg ;;
1163 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1164 Try \`$0 --help' for more information"
1168 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1169 # Reject names that are not valid shell variable names.
1170 case $ac_envvar in #(
1171 '' | [0-9]* | *[!_$as_cr_alnum]* )
1172 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1174 eval $ac_envvar=\$ac_optarg
1175 export $ac_envvar ;;
1178 # FIXME: should be removed in autoconf 3.0.
1179 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1180 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1181 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1182 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1188 if test -n "$ac_prev"; then
1189 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1190 as_fn_error $? "missing argument to $ac_option"
1193 if test -n "$ac_unrecognized_opts"; then
1194 case $enable_option_checking in
1196 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1197 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1201 # Check all directory arguments for consistency.
1202 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1203 datadir sysconfdir sharedstatedir localstatedir includedir \
1204 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1205 libdir localedir mandir
1207 eval ac_val=\$$ac_var
1208 # Remove trailing slashes.
1211 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1212 eval $ac_var=\$ac_val;;
1214 # Be sure to have absolute directory names.
1216 [\\/$]* | ?:[\\/]* ) continue;;
1217 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1219 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1222 # There might be people who depend on the old broken behavior: `$host'
1223 # used to hold the argument of --host etc.
1224 # FIXME: To remove some day.
1227 target=$target_alias
1229 # FIXME: To remove some day.
1230 if test "x$host_alias" != x; then
1231 if test "x$build_alias" = x; then
1232 cross_compiling=maybe
1233 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1234 If a cross compiler is detected then cross compile mode will be used" >&2
1235 elif test "x$build_alias" != "x$host_alias"; then
1241 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1243 test "$silent" = yes && exec 6>/dev/null
1246 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1247 ac_ls_di=`ls -di .` &&
1248 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1249 as_fn_error $? "working directory cannot be determined"
1250 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1251 as_fn_error $? "pwd does not report name of working directory"
1254 # Find the source files, if location was not specified.
1255 if test -z "$srcdir"; then
1256 ac_srcdir_defaulted=yes
1257 # Try the directory containing this script, then the parent directory.
1258 ac_confdir=`$as_dirname -- "$as_myself" ||
1259 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1260 X"$as_myself" : 'X\(//\)[^/]' \| \
1261 X"$as_myself" : 'X\(//\)$' \| \
1262 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1263 $as_echo X"$as_myself" |
1264 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1282 if test ! -r "$srcdir/$ac_unique_file"; then
1286 ac_srcdir_defaulted=no
1288 if test ! -r "$srcdir/$ac_unique_file"; then
1289 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1290 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1292 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1294 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1296 # When building in place, set srcdir=.
1297 if test "$ac_abs_confdir" = "$ac_pwd"; then
1300 # Remove unnecessary trailing slashes from srcdir.
1301 # Double slashes in file names in object file debugging info
1302 # mess up M-x gdb in Emacs.
1304 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1306 for ac_var in $ac_precious_vars; do
1307 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1308 eval ac_env_${ac_var}_value=\$${ac_var}
1309 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1310 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1314 # Report the --help message.
1316 if test "$ac_init_help" = "long"; then
1317 # Omit some internal or obsolete options to make the list less imposing.
1318 # This message is too long to be a string in the A/UX 3.1 sh.
1320 \`configure' configures libusb 1.0.9 to adapt to many kinds of systems.
1322 Usage: $0 [OPTION]... [VAR=VALUE]...
1324 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1325 VAR=VALUE. See below for descriptions of some of the useful variables.
1327 Defaults for the options are specified in brackets.
1330 -h, --help display this help and exit
1331 --help=short display options specific to this package
1332 --help=recursive display the short help of all the included packages
1333 -V, --version display version information and exit
1334 -q, --quiet, --silent do not print \`checking ...' messages
1335 --cache-file=FILE cache test results in FILE [disabled]
1336 -C, --config-cache alias for \`--cache-file=config.cache'
1337 -n, --no-create do not create output files
1338 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1340 Installation directories:
1341 --prefix=PREFIX install architecture-independent files in PREFIX
1342 [$ac_default_prefix]
1343 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1346 By default, \`make install' will install all the files in
1347 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1348 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1349 for instance \`--prefix=\$HOME'.
1351 For better control, use the options below.
1353 Fine tuning of the installation directories:
1354 --bindir=DIR user executables [EPREFIX/bin]
1355 --sbindir=DIR system admin executables [EPREFIX/sbin]
1356 --libexecdir=DIR program executables [EPREFIX/libexec]
1357 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1358 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1359 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1360 --libdir=DIR object code libraries [EPREFIX/lib]
1361 --includedir=DIR C header files [PREFIX/include]
1362 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1363 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1364 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1365 --infodir=DIR info documentation [DATAROOTDIR/info]
1366 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1367 --mandir=DIR man documentation [DATAROOTDIR/man]
1368 --docdir=DIR documentation root [DATAROOTDIR/doc/libusb]
1369 --htmldir=DIR html documentation [DOCDIR]
1370 --dvidir=DIR dvi documentation [DOCDIR]
1371 --pdfdir=DIR pdf documentation [DOCDIR]
1372 --psdir=DIR ps documentation [DOCDIR]
1378 --program-prefix=PREFIX prepend PREFIX to installed program names
1379 --program-suffix=SUFFIX append SUFFIX to installed program names
1380 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1383 --build=BUILD configure for building on BUILD [guessed]
1384 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1388 if test -n "$ac_init_help"; then
1389 case $ac_init_help in
1390 short | recursive ) echo "Configuration of libusb 1.0.9:";;
1395 --disable-option-checking ignore unrecognized --enable/--with options
1396 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1397 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1398 --enable-maintainer-mode enable make rules and dependencies not useful
1399 (and sometimes confusing) to the casual installer
1400 --enable-silent-rules less verbose build output (undo: `make V=1')
1401 --disable-silent-rules verbose build output (undo: `make V=0')
1402 --disable-dependency-tracking speeds up one-time build
1403 --enable-dependency-tracking do not reject slow dependency extractors
1404 --enable-shared[=PKGS] build shared libraries [default=yes]
1405 --enable-static[=PKGS] build static libraries [default=yes]
1406 --enable-fast-install[=PKGS]
1407 optimize for fast installation [default=yes]
1408 --disable-libtool-lock avoid locking (might break parallel builds)
1409 --enable-timerfd use timerfd for timing (default auto)
1410 --disable-log disable all logging
1411 --enable-debug-log enable debug logging (default n)
1412 --enable-examples-build build example applications (default n)
1415 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1416 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1417 --with-pic try to use only PIC/non-PIC objects [default=use
1419 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1421 Some influential environment variables:
1422 CC C compiler command
1423 CFLAGS C compiler flags
1424 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1425 nonstandard directory <lib dir>
1426 LIBS libraries to pass to the linker, e.g. -l<library>
1427 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1428 you have headers in a nonstandard directory <include dir>
1431 Use these variables to override the choices made by `configure' or to help
1432 it to find libraries and programs with nonstandard names/locations.
1434 Report bugs to <libusb-devel@lists.sourceforge.net>.
1435 libusb home page: <http://www.libusb.org/>.
1440 if test "$ac_init_help" = "recursive"; then
1441 # If there are subdirs, report their specific --help.
1442 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1443 test -d "$ac_dir" ||
1444 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1449 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1451 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1452 # A ".." for each directory in $ac_dir_suffix.
1453 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1454 case $ac_top_builddir_sub in
1455 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1456 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1459 ac_abs_top_builddir=$ac_pwd
1460 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1461 # for backward compatibility:
1462 ac_top_builddir=$ac_top_build_prefix
1465 .) # We are building in place.
1467 ac_top_srcdir=$ac_top_builddir_sub
1468 ac_abs_top_srcdir=$ac_pwd ;;
1469 [\\/]* | ?:[\\/]* ) # Absolute name.
1470 ac_srcdir=$srcdir$ac_dir_suffix;
1471 ac_top_srcdir=$srcdir
1472 ac_abs_top_srcdir=$srcdir ;;
1474 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1475 ac_top_srcdir=$ac_top_build_prefix$srcdir
1476 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1478 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1480 cd "$ac_dir" || { ac_status=$?; continue; }
1481 # Check for guested configure.
1482 if test -f "$ac_srcdir/configure.gnu"; then
1484 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1485 elif test -f "$ac_srcdir/configure"; then
1487 $SHELL "$ac_srcdir/configure" --help=recursive
1489 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1491 cd "$ac_pwd" || { ac_status=$?; break; }
1495 test -n "$ac_init_help" && exit $ac_status
1496 if $ac_init_version; then
1498 libusb configure 1.0.9
1499 generated by GNU Autoconf 2.68
1501 Copyright (C) 2010 Free Software Foundation, Inc.
1502 This configure script is free software; the Free Software Foundation
1503 gives unlimited permission to copy, distribute and modify it.
1508 ## ------------------------ ##
1509 ## Autoconf initialization. ##
1510 ## ------------------------ ##
1512 # ac_fn_c_try_compile LINENO
1513 # --------------------------
1514 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1515 ac_fn_c_try_compile ()
1517 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1518 rm -f conftest.$ac_objext
1519 if { { ac_try="$ac_compile"
1521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1522 *) ac_try_echo=$ac_try;;
1524 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1525 $as_echo "$ac_try_echo"; } >&5
1526 (eval "$ac_compile") 2>conftest.err
1528 if test -s conftest.err; then
1529 grep -v '^ *+' conftest.err >conftest.er1
1530 cat conftest.er1 >&5
1531 mv -f conftest.er1 conftest.err
1533 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1534 test $ac_status = 0; } && {
1535 test -z "$ac_c_werror_flag" ||
1536 test ! -s conftest.err
1537 } && test -s conftest.$ac_objext; then :
1540 $as_echo "$as_me: failed program was:" >&5
1541 sed 's/^/| /' conftest.$ac_ext >&5
1545 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1546 as_fn_set_status $ac_retval
1548 } # ac_fn_c_try_compile
1550 # ac_fn_c_try_link LINENO
1551 # -----------------------
1552 # Try to link conftest.$ac_ext, and return whether this succeeded.
1555 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1556 rm -f conftest.$ac_objext conftest$ac_exeext
1557 if { { ac_try="$ac_link"
1559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1560 *) ac_try_echo=$ac_try;;
1562 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1563 $as_echo "$ac_try_echo"; } >&5
1564 (eval "$ac_link") 2>conftest.err
1566 if test -s conftest.err; then
1567 grep -v '^ *+' conftest.err >conftest.er1
1568 cat conftest.er1 >&5
1569 mv -f conftest.er1 conftest.err
1571 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1572 test $ac_status = 0; } && {
1573 test -z "$ac_c_werror_flag" ||
1574 test ! -s conftest.err
1575 } && test -s conftest$ac_exeext && {
1576 test "$cross_compiling" = yes ||
1577 $as_test_x conftest$ac_exeext
1581 $as_echo "$as_me: failed program was:" >&5
1582 sed 's/^/| /' conftest.$ac_ext >&5
1586 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1587 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1588 # interfere with the next link command; also delete a directory that is
1589 # left behind by Apple's compiler. We do this before executing the actions.
1590 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1591 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1592 as_fn_set_status $ac_retval
1594 } # ac_fn_c_try_link
1596 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1597 # -------------------------------------------------------
1598 # Tests whether HEADER exists and can be compiled using the include files in
1599 # INCLUDES, setting the cache variable VAR accordingly.
1600 ac_fn_c_check_header_compile ()
1602 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1604 $as_echo_n "checking for $2... " >&6; }
1605 if eval \${$3+:} false; then :
1606 $as_echo_n "(cached) " >&6
1608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1609 /* end confdefs.h. */
1613 if ac_fn_c_try_compile "$LINENO"; then :
1618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1622 $as_echo "$ac_res" >&6; }
1623 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1625 } # ac_fn_c_check_header_compile
1627 # ac_fn_c_try_cpp LINENO
1628 # ----------------------
1629 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1632 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1633 if { { ac_try="$ac_cpp conftest.$ac_ext"
1635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1636 *) ac_try_echo=$ac_try;;
1638 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1639 $as_echo "$ac_try_echo"; } >&5
1640 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1642 if test -s conftest.err; then
1643 grep -v '^ *+' conftest.err >conftest.er1
1644 cat conftest.er1 >&5
1645 mv -f conftest.er1 conftest.err
1647 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1648 test $ac_status = 0; } > conftest.i && {
1649 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1650 test ! -s conftest.err
1654 $as_echo "$as_me: failed program was:" >&5
1655 sed 's/^/| /' conftest.$ac_ext >&5
1659 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1660 as_fn_set_status $ac_retval
1664 # ac_fn_c_try_run LINENO
1665 # ----------------------
1666 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1667 # that executables *can* be run.
1670 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1671 if { { ac_try="$ac_link"
1673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1674 *) ac_try_echo=$ac_try;;
1676 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1677 $as_echo "$ac_try_echo"; } >&5
1678 (eval "$ac_link") 2>&5
1680 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1681 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1682 { { case "(($ac_try" in
1683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1684 *) ac_try_echo=$ac_try;;
1686 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1687 $as_echo "$ac_try_echo"; } >&5
1688 (eval "$ac_try") 2>&5
1690 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1691 test $ac_status = 0; }; }; then :
1694 $as_echo "$as_me: program exited with status $ac_status" >&5
1695 $as_echo "$as_me: failed program was:" >&5
1696 sed 's/^/| /' conftest.$ac_ext >&5
1698 ac_retval=$ac_status
1700 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1701 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1702 as_fn_set_status $ac_retval
1706 # ac_fn_c_check_func LINENO FUNC VAR
1707 # ----------------------------------
1708 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1709 ac_fn_c_check_func ()
1711 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1713 $as_echo_n "checking for $2... " >&6; }
1714 if eval \${$3+:} false; then :
1715 $as_echo_n "(cached) " >&6
1717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1718 /* end confdefs.h. */
1719 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1720 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1721 #define $2 innocuous_$2
1723 /* System header to define __stub macros and hopefully few prototypes,
1724 which can conflict with char $2 (); below.
1725 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1726 <limits.h> exists even on freestanding compilers. */
1729 # include <limits.h>
1731 # include <assert.h>
1736 /* Override any GCC internal prototype to avoid an error.
1737 Use char because int might match the return type of a GCC
1738 builtin and then its argument prototype would still apply. */
1743 /* The GNU C library defines this for functions which it implements
1744 to always fail with ENOSYS. Some functions are actually named
1745 something starting with __ and the normal name is an alias. */
1746 #if defined __stub_$2 || defined __stub___$2
1758 if ac_fn_c_try_link "$LINENO"; then :
1763 rm -f core conftest.err conftest.$ac_objext \
1764 conftest$ac_exeext conftest.$ac_ext
1767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1768 $as_echo "$ac_res" >&6; }
1769 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1771 } # ac_fn_c_check_func
1773 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1774 # -------------------------------------------------------
1775 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1776 # the include files in INCLUDES and setting the cache variable VAR
1778 ac_fn_c_check_header_mongrel ()
1780 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1781 if eval \${$3+:} false; then :
1782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1783 $as_echo_n "checking for $2... " >&6; }
1784 if eval \${$3+:} false; then :
1785 $as_echo_n "(cached) " >&6
1788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1789 $as_echo "$ac_res" >&6; }
1791 # Is the header compilable?
1792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1793 $as_echo_n "checking $2 usability... " >&6; }
1794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1795 /* end confdefs.h. */
1799 if ac_fn_c_try_compile "$LINENO"; then :
1800 ac_header_compiler=yes
1802 ac_header_compiler=no
1804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1806 $as_echo "$ac_header_compiler" >&6; }
1808 # Is the header present?
1809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1810 $as_echo_n "checking $2 presence... " >&6; }
1811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1812 /* end confdefs.h. */
1815 if ac_fn_c_try_cpp "$LINENO"; then :
1816 ac_header_preproc=yes
1818 ac_header_preproc=no
1820 rm -f conftest.err conftest.i conftest.$ac_ext
1821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1822 $as_echo "$ac_header_preproc" >&6; }
1824 # So? What about this header?
1825 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1827 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1828 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1829 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1830 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1833 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1834 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1835 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1836 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1837 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1838 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1839 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1840 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1841 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1842 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1843 ( $as_echo "## ------------------------------------------------- ##
1844 ## Report this to libusb-devel@lists.sourceforge.net ##
1845 ## ------------------------------------------------- ##"
1846 ) | sed "s/^/$as_me: WARNING: /" >&2
1849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1850 $as_echo_n "checking for $2... " >&6; }
1851 if eval \${$3+:} false; then :
1852 $as_echo_n "(cached) " >&6
1854 eval "$3=\$ac_header_compiler"
1857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1858 $as_echo "$ac_res" >&6; }
1860 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1862 } # ac_fn_c_check_header_mongrel
1864 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1865 # -------------------------------------------
1866 # Tests whether TYPE exists after having included INCLUDES, setting cache
1867 # variable VAR accordingly.
1868 ac_fn_c_check_type ()
1870 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1872 $as_echo_n "checking for $2... " >&6; }
1873 if eval \${$3+:} false; then :
1874 $as_echo_n "(cached) " >&6
1877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1878 /* end confdefs.h. */
1889 if ac_fn_c_try_compile "$LINENO"; then :
1890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1891 /* end confdefs.h. */
1902 if ac_fn_c_try_compile "$LINENO"; then :
1907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1913 $as_echo "$ac_res" >&6; }
1914 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1916 } # ac_fn_c_check_type
1918 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1919 # ---------------------------------------------
1920 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1922 ac_fn_c_check_decl ()
1924 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1925 as_decl_name=`echo $2|sed 's/ *(.*//'`
1926 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1928 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1929 if eval \${$3+:} false; then :
1930 $as_echo_n "(cached) " >&6
1932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1933 /* end confdefs.h. */
1938 #ifndef $as_decl_name
1940 (void) $as_decl_use;
1942 (void) $as_decl_name;
1950 if ac_fn_c_try_compile "$LINENO"; then :
1955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1959 $as_echo "$ac_res" >&6; }
1960 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1962 } # ac_fn_c_check_decl
1963 cat >config.log <<_ACEOF
1964 This file contains any messages produced by compilers while
1965 running configure, to aid debugging if configure makes a mistake.
1967 It was created by libusb $as_me 1.0.9, which was
1968 generated by GNU Autoconf 2.68. Invocation command line was
1980 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1981 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1982 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1983 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1984 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1986 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1987 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1989 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1990 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1991 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1992 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1993 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1994 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1995 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2003 test -z "$as_dir" && as_dir=.
2004 $as_echo "PATH: $as_dir"
2020 # Keep a trace of the command line.
2021 # Strip out --no-create and --no-recursion so they do not pile up.
2022 # Strip out --silent because we don't want to record it for future runs.
2023 # Also quote any args containing shell meta-characters.
2024 # Make two passes to allow for proper duplicate-argument suppression.
2028 ac_must_keep_next=false
2034 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2035 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2036 | -silent | --silent | --silen | --sile | --sil)
2039 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2042 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2044 as_fn_append ac_configure_args1 " '$ac_arg'"
2045 if test $ac_must_keep_next = true; then
2046 ac_must_keep_next=false # Got value, back to normal.
2049 *=* | --config-cache | -C | -disable-* | --disable-* \
2050 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2051 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2052 | -with-* | --with-* | -without-* | --without-* | --x)
2053 case "$ac_configure_args0 " in
2054 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2057 -* ) ac_must_keep_next=true ;;
2060 as_fn_append ac_configure_args " '$ac_arg'"
2065 { ac_configure_args0=; unset ac_configure_args0;}
2066 { ac_configure_args1=; unset ac_configure_args1;}
2068 # When interrupted or exit'd, cleanup temporary files, and complete
2069 # config.log. We remove comments because anyway the quotes in there
2070 # would cause problems or look ugly.
2071 # WARNING: Use '\'' to represent an apostrophe within the trap.
2072 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2073 trap 'exit_status=$?
2074 # Save into config.log some information that might help in debugging.
2078 $as_echo "## ---------------- ##
2079 ## Cache variables. ##
2080 ## ---------------- ##"
2082 # The following way of writing the cache mishandles newlines in values,
2084 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2085 eval ac_val=\$$ac_var
2089 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2090 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2093 _ | IFS | as_nl) ;; #(
2094 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2095 *) { eval $ac_var=; unset $ac_var;} ;;
2100 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2101 *${as_nl}ac_space=\ *)
2103 "s/'\''/'\''\\\\'\'''\''/g;
2104 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2107 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2114 $as_echo "## ----------------- ##
2115 ## Output variables. ##
2116 ## ----------------- ##"
2118 for ac_var in $ac_subst_vars
2120 eval ac_val=\$$ac_var
2122 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2124 $as_echo "$ac_var='\''$ac_val'\''"
2128 if test -n "$ac_subst_files"; then
2129 $as_echo "## ------------------- ##
2130 ## File substitutions. ##
2131 ## ------------------- ##"
2133 for ac_var in $ac_subst_files
2135 eval ac_val=\$$ac_var
2137 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2139 $as_echo "$ac_var='\''$ac_val'\''"
2144 if test -s confdefs.h; then
2145 $as_echo "## ----------- ##
2152 test "$ac_signal" != 0 &&
2153 $as_echo "$as_me: caught signal $ac_signal"
2154 $as_echo "$as_me: exit $exit_status"
2156 rm -f core *.core core.conftest.* &&
2157 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2160 for ac_signal in 1 2 13 15; do
2161 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2165 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2166 rm -f -r conftest* confdefs.h
2168 $as_echo "/* confdefs.h */" > confdefs.h
2170 # Predefined preprocessor variables.
2172 cat >>confdefs.h <<_ACEOF
2173 #define PACKAGE_NAME "$PACKAGE_NAME"
2176 cat >>confdefs.h <<_ACEOF
2177 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2180 cat >>confdefs.h <<_ACEOF
2181 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2184 cat >>confdefs.h <<_ACEOF
2185 #define PACKAGE_STRING "$PACKAGE_STRING"
2188 cat >>confdefs.h <<_ACEOF
2189 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2192 cat >>confdefs.h <<_ACEOF
2193 #define PACKAGE_URL "$PACKAGE_URL"
2197 # Let the site file select an alternate cache file if it wants to.
2198 # Prefer an explicitly selected file to automatically selected ones.
2201 if test -n "$CONFIG_SITE"; then
2202 # We do not want a PATH search for config.site.
2203 case $CONFIG_SITE in #((
2204 -*) ac_site_file1=./$CONFIG_SITE;;
2205 */*) ac_site_file1=$CONFIG_SITE;;
2206 *) ac_site_file1=./$CONFIG_SITE;;
2208 elif test "x$prefix" != xNONE; then
2209 ac_site_file1=$prefix/share/config.site
2210 ac_site_file2=$prefix/etc/config.site
2212 ac_site_file1=$ac_default_prefix/share/config.site
2213 ac_site_file2=$ac_default_prefix/etc/config.site
2215 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2217 test "x$ac_site_file" = xNONE && continue
2218 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2219 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2220 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2221 sed 's/^/| /' "$ac_site_file" >&5
2223 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2224 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2225 as_fn_error $? "failed to load site script $ac_site_file
2226 See \`config.log' for more details" "$LINENO" 5; }
2230 if test -r "$cache_file"; then
2231 # Some versions of bash will fail to source /dev/null (special files
2232 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2233 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2234 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2235 $as_echo "$as_me: loading cache $cache_file" >&6;}
2237 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2238 *) . "./$cache_file";;
2242 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2243 $as_echo "$as_me: creating cache $cache_file" >&6;}
2247 # Check that the precious variables saved in the cache have kept the same
2249 ac_cache_corrupted=false
2250 for ac_var in $ac_precious_vars; do
2251 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2252 eval ac_new_set=\$ac_env_${ac_var}_set
2253 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2254 eval ac_new_val=\$ac_env_${ac_var}_value
2255 case $ac_old_set,$ac_new_set in
2257 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2258 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2259 ac_cache_corrupted=: ;;
2261 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2262 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2263 ac_cache_corrupted=: ;;
2266 if test "x$ac_old_val" != "x$ac_new_val"; then
2267 # differences in whitespace do not lead to failure.
2268 ac_old_val_w=`echo x $ac_old_val`
2269 ac_new_val_w=`echo x $ac_new_val`
2270 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2271 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2272 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2273 ac_cache_corrupted=:
2275 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2276 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2277 eval $ac_var=\$ac_old_val
2279 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2280 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2281 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2282 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2285 # Pass precious variables to config.status.
2286 if test "$ac_new_set" = set; then
2288 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2289 *) ac_arg=$ac_var=$ac_new_val ;;
2291 case " $ac_configure_args " in
2292 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2293 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2297 if $ac_cache_corrupted; then
2298 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2299 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2300 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2301 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2302 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2304 ## -------------------- ##
2305 ## Main body of script. ##
2306 ## -------------------- ##
2309 ac_cpp='$CPP $CPPFLAGS'
2310 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2311 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2312 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2316 # Library versioning
2317 # These numbers should be tweaked on every release. Read carefully:
2318 # http://www.gnu.org/software/libtool/manual/html_node/Updating-version-info.html
2319 # http://sourceware.org/autobook/autobook/autobook_91.html
2323 LTLDFLAGS="-version-info ${lt_current}:${lt_revision}:${lt_age}"
2325 am__api_version='1.11'
2328 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2329 if test -f "$ac_dir/install-sh"; then
2331 ac_install_sh="$ac_aux_dir/install-sh -c"
2333 elif test -f "$ac_dir/install.sh"; then
2335 ac_install_sh="$ac_aux_dir/install.sh -c"
2337 elif test -f "$ac_dir/shtool"; then
2339 ac_install_sh="$ac_aux_dir/shtool install -c"
2343 if test -z "$ac_aux_dir"; then
2344 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2347 # These three variables are undocumented and unsupported,
2348 # and are intended to be withdrawn in a future Autoconf release.
2349 # They can cause serious problems if a builder's source tree is in a directory
2350 # whose full name contains unusual characters.
2351 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2352 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2353 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2356 # Find a good install program. We prefer a C program (faster),
2357 # so one script is as good as another. But avoid the broken or
2358 # incompatible versions:
2359 # SysV /etc/install, /usr/sbin/install
2360 # SunOS /usr/etc/install
2361 # IRIX /sbin/install
2363 # AmigaOS /C/install, which installs bootblocks on floppy discs
2364 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2365 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2366 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2367 # OS/2's system install, which has a completely different semantic
2368 # ./install, which can be erroneously created by make from ./install.sh.
2369 # Reject install programs that cannot install multiple files.
2370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2371 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2372 if test -z "$INSTALL"; then
2373 if ${ac_cv_path_install+:} false; then :
2374 $as_echo_n "(cached) " >&6
2376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2380 test -z "$as_dir" && as_dir=.
2381 # Account for people who put trailing slashes in PATH elements.
2382 case $as_dir/ in #((
2383 ./ | .// | /[cC]/* | \
2384 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2385 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2388 # OSF1 and SCO ODT 3.0 have their own names for install.
2389 # Don't use installbsd from OSF since it installs stuff as root
2391 for ac_prog in ginstall scoinst install; do
2392 for ac_exec_ext in '' $ac_executable_extensions; do
2393 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2394 if test $ac_prog = install &&
2395 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2396 # AIX install. It has an incompatible calling convention.
2398 elif test $ac_prog = install &&
2399 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2400 # program-specific install script used by HP pwplus--don't use.
2403 rm -rf conftest.one conftest.two conftest.dir
2404 echo one > conftest.one
2405 echo two > conftest.two
2407 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2408 test -s conftest.one && test -s conftest.two &&
2409 test -s conftest.dir/conftest.one &&
2410 test -s conftest.dir/conftest.two
2412 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2425 rm -rf conftest.one conftest.two conftest.dir
2428 if test "${ac_cv_path_install+set}" = set; then
2429 INSTALL=$ac_cv_path_install
2431 # As a last resort, use the slow shell script. Don't cache a
2432 # value for INSTALL within a source directory, because that will
2433 # break other packages using the cache if that directory is
2434 # removed, or if the value is a relative name.
2435 INSTALL=$ac_install_sh
2438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2439 $as_echo "$INSTALL" >&6; }
2441 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2442 # It thinks the first close brace ends the variable substitution.
2443 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2445 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2447 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2450 $as_echo_n "checking whether build environment is sane... " >&6; }
2453 echo timestamp > conftest.file
2454 # Reject unsafe characters in $srcdir or the absolute working directory
2455 # name. Accept space and tab only in the latter.
2459 *[\\\"\#\$\&\'\`$am_lf]*)
2460 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2463 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2464 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2467 # Do `set' in a subshell so we don't clobber the current shell's
2468 # arguments. Must try -L first in case configure is actually a
2469 # symlink; some systems play weird games with the mod time of symlinks
2470 # (eg FreeBSD returns the mod time of the symlink's containing
2473 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2474 if test "$*" = "X"; then
2476 set X `ls -t "$srcdir/configure" conftest.file`
2479 if test "$*" != "X $srcdir/configure conftest.file" \
2480 && test "$*" != "X conftest.file $srcdir/configure"; then
2482 # If neither matched, then we have a broken ls. This can happen
2483 # if, for instance, CONFIG_SHELL is bash and it inherits a
2484 # broken ls alias from the environment. This has actually
2485 # happened. Such a system could not be considered "sane".
2486 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2487 alias in your environment" "$LINENO" 5
2490 test "$2" = conftest.file
2496 as_fn_error $? "newly created file is older than distributed files!
2497 Check your system clock" "$LINENO" 5
2499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2500 $as_echo "yes" >&6; }
2501 test "$program_prefix" != NONE &&
2502 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2503 # Use a double $ so make ignores it.
2504 test "$program_suffix" != NONE &&
2505 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2506 # Double any \ or $.
2507 # By default was `s,x,x', remove it if useless.
2508 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2509 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2511 # expand $ac_aux_dir to an absolute path
2512 am_aux_dir=`cd $ac_aux_dir && pwd`
2514 if test x"${MISSING+set}" != xset; then
2517 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2519 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2522 # Use eval to expand $SHELL
2523 if eval "$MISSING --run true"; then
2524 am_missing_run="$MISSING --run "
2527 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2528 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2531 if test x"${install_sh}" != xset; then
2534 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2536 install_sh="\${SHELL} $am_aux_dir/install-sh"
2540 # Installed binaries are usually stripped using `strip' when the user
2541 # run `make install-strip'. However `strip' might not be the right
2542 # tool to use in cross-compilation environments, therefore Automake
2543 # will honor the `STRIP' environment variable to overrule this program.
2544 if test "$cross_compiling" != no; then
2545 if test -n "$ac_tool_prefix"; then
2546 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2547 set dummy ${ac_tool_prefix}strip; ac_word=$2
2548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2549 $as_echo_n "checking for $ac_word... " >&6; }
2550 if ${ac_cv_prog_STRIP+:} false; then :
2551 $as_echo_n "(cached) " >&6
2553 if test -n "$STRIP"; then
2554 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2560 test -z "$as_dir" && as_dir=.
2561 for ac_exec_ext in '' $ac_executable_extensions; do
2562 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2563 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2573 STRIP=$ac_cv_prog_STRIP
2574 if test -n "$STRIP"; then
2575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2576 $as_echo "$STRIP" >&6; }
2578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2579 $as_echo "no" >&6; }
2584 if test -z "$ac_cv_prog_STRIP"; then
2586 # Extract the first word of "strip", so it can be a program name with args.
2587 set dummy strip; ac_word=$2
2588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2589 $as_echo_n "checking for $ac_word... " >&6; }
2590 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2591 $as_echo_n "(cached) " >&6
2593 if test -n "$ac_ct_STRIP"; then
2594 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2600 test -z "$as_dir" && as_dir=.
2601 for ac_exec_ext in '' $ac_executable_extensions; do
2602 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2603 ac_cv_prog_ac_ct_STRIP="strip"
2604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2613 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2614 if test -n "$ac_ct_STRIP"; then
2615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2616 $as_echo "$ac_ct_STRIP" >&6; }
2618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2619 $as_echo "no" >&6; }
2622 if test "x$ac_ct_STRIP" = x; then
2625 case $cross_compiling:$ac_tool_warned in
2627 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2628 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2629 ac_tool_warned=yes ;;
2634 STRIP="$ac_cv_prog_STRIP"
2638 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2641 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2642 if test -z "$MKDIR_P"; then
2643 if ${ac_cv_path_mkdir+:} false; then :
2644 $as_echo_n "(cached) " >&6
2646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2647 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2650 test -z "$as_dir" && as_dir=.
2651 for ac_prog in mkdir gmkdir; do
2652 for ac_exec_ext in '' $ac_executable_extensions; do
2653 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2654 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2655 'mkdir (GNU coreutils) '* | \
2656 'mkdir (coreutils) '* | \
2657 'mkdir (fileutils) '4.1*)
2658 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2668 test -d ./--version && rmdir ./--version
2669 if test "${ac_cv_path_mkdir+set}" = set; then
2670 MKDIR_P="$ac_cv_path_mkdir -p"
2672 # As a last resort, use the slow shell script. Don't cache a
2673 # value for MKDIR_P within a source directory, because that will
2674 # break other packages using the cache if that directory is
2675 # removed, or if the value is a relative name.
2676 MKDIR_P="$ac_install_sh -d"
2679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2680 $as_echo "$MKDIR_P" >&6; }
2684 [\\/$]* | ?:[\\/]*) ;;
2685 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2688 for ac_prog in gawk mawk nawk awk
2690 # Extract the first word of "$ac_prog", so it can be a program name with args.
2691 set dummy $ac_prog; ac_word=$2
2692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2693 $as_echo_n "checking for $ac_word... " >&6; }
2694 if ${ac_cv_prog_AWK+:} false; then :
2695 $as_echo_n "(cached) " >&6
2697 if test -n "$AWK"; then
2698 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2704 test -z "$as_dir" && as_dir=.
2705 for ac_exec_ext in '' $ac_executable_extensions; do
2706 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2707 ac_cv_prog_AWK="$ac_prog"
2708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2718 if test -n "$AWK"; then
2719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2720 $as_echo "$AWK" >&6; }
2722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2723 $as_echo "no" >&6; }
2727 test -n "$AWK" && break
2730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2731 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2733 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2734 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2735 $as_echo_n "(cached) " >&6
2737 cat >conftest.make <<\_ACEOF
2740 @echo '@@@%%%=$(MAKE)=@@@%%%'
2742 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2743 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2745 eval ac_cv_prog_make_${ac_make}_set=yes;;
2747 eval ac_cv_prog_make_${ac_make}_set=no;;
2751 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2753 $as_echo "yes" >&6; }
2756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2757 $as_echo "no" >&6; }
2758 SET_MAKE="MAKE=${MAKE-make}"
2761 rm -rf .tst 2>/dev/null
2762 mkdir .tst 2>/dev/null
2763 if test -d .tst; then
2768 rmdir .tst 2>/dev/null
2770 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2771 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2772 # is not polluted with repeated "-I."
2773 am__isrc=' -I$(srcdir)'
2774 # test to see if srcdir already configured
2775 if test -f $srcdir/config.status; then
2776 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2780 # test whether we have cygpath
2781 if test -z "$CYGPATH_W"; then
2782 if (cygpath --version) >/dev/null 2>/dev/null; then
2783 CYGPATH_W='cygpath -w'
2790 # Define the identity of the package.
2795 cat >>confdefs.h <<_ACEOF
2796 #define PACKAGE "$PACKAGE"
2800 cat >>confdefs.h <<_ACEOF
2801 #define VERSION "$VERSION"
2804 # Some tools Automake needs.
2806 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2809 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2812 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2815 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2818 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2820 # We need awk for the "check" target. The system "awk" is bad on
2822 # Always define AMTAR for backward compatibility.
2824 AMTAR=${AMTAR-"${am_missing_run}tar"}
2826 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2834 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2835 # Check whether --enable-maintainer-mode was given.
2836 if test "${enable_maintainer_mode+set}" = set; then :
2837 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2839 USE_MAINTAINER_MODE=no
2842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2843 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2844 if test $USE_MAINTAINER_MODE = yes; then
2845 MAINTAINER_MODE_TRUE=
2846 MAINTAINER_MODE_FALSE='#'
2848 MAINTAINER_MODE_TRUE='#'
2849 MAINTAINER_MODE_FALSE=
2852 MAINT=$MAINTAINER_MODE_TRUE
2858 ac_config_headers="$ac_config_headers config.h"
2860 # Check whether --enable-silent-rules was given.
2861 if test "${enable_silent_rules+set}" = set; then :
2862 enableval=$enable_silent_rules;
2865 case $enable_silent_rules in
2866 yes) AM_DEFAULT_VERBOSITY=0;;
2867 no) AM_DEFAULT_VERBOSITY=1;;
2868 *) AM_DEFAULT_VERBOSITY=0;;
2875 ac_cpp='$CPP $CPPFLAGS'
2876 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2877 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2878 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2879 if test -n "$ac_tool_prefix"; then
2880 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2881 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2883 $as_echo_n "checking for $ac_word... " >&6; }
2884 if ${ac_cv_prog_CC+:} false; then :
2885 $as_echo_n "(cached) " >&6
2887 if test -n "$CC"; then
2888 ac_cv_prog_CC="$CC" # Let the user override the test.
2890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2894 test -z "$as_dir" && as_dir=.
2895 for ac_exec_ext in '' $ac_executable_extensions; do
2896 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2897 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2898 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2908 if test -n "$CC"; then
2909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2910 $as_echo "$CC" >&6; }
2912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2913 $as_echo "no" >&6; }
2918 if test -z "$ac_cv_prog_CC"; then
2920 # Extract the first word of "gcc", so it can be a program name with args.
2921 set dummy gcc; ac_word=$2
2922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2923 $as_echo_n "checking for $ac_word... " >&6; }
2924 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2925 $as_echo_n "(cached) " >&6
2927 if test -n "$ac_ct_CC"; then
2928 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2934 test -z "$as_dir" && as_dir=.
2935 for ac_exec_ext in '' $ac_executable_extensions; do
2936 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2937 ac_cv_prog_ac_ct_CC="gcc"
2938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2947 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2948 if test -n "$ac_ct_CC"; then
2949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2950 $as_echo "$ac_ct_CC" >&6; }
2952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2953 $as_echo "no" >&6; }
2956 if test "x$ac_ct_CC" = x; then
2959 case $cross_compiling:$ac_tool_warned in
2961 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2962 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2963 ac_tool_warned=yes ;;
2971 if test -z "$CC"; then
2972 if test -n "$ac_tool_prefix"; then
2973 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2974 set dummy ${ac_tool_prefix}cc; ac_word=$2
2975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2976 $as_echo_n "checking for $ac_word... " >&6; }
2977 if ${ac_cv_prog_CC+:} false; then :
2978 $as_echo_n "(cached) " >&6
2980 if test -n "$CC"; then
2981 ac_cv_prog_CC="$CC" # Let the user override the test.
2983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2987 test -z "$as_dir" && as_dir=.
2988 for ac_exec_ext in '' $ac_executable_extensions; do
2989 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2990 ac_cv_prog_CC="${ac_tool_prefix}cc"
2991 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3001 if test -n "$CC"; then
3002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3003 $as_echo "$CC" >&6; }
3005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3006 $as_echo "no" >&6; }
3012 if test -z "$CC"; then
3013 # Extract the first word of "cc", so it can be a program name with args.
3014 set dummy cc; ac_word=$2
3015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3016 $as_echo_n "checking for $ac_word... " >&6; }
3017 if ${ac_cv_prog_CC+:} false; then :
3018 $as_echo_n "(cached) " >&6
3020 if test -n "$CC"; then
3021 ac_cv_prog_CC="$CC" # Let the user override the test.
3024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3028 test -z "$as_dir" && as_dir=.
3029 for ac_exec_ext in '' $ac_executable_extensions; do
3030 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3031 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3032 ac_prog_rejected=yes
3036 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3043 if test $ac_prog_rejected = yes; then
3044 # We found a bogon in the path, so make sure we never use it.
3045 set dummy $ac_cv_prog_CC
3047 if test $# != 0; then
3048 # We chose a different compiler from the bogus one.
3049 # However, it has the same basename, so the bogon will be chosen
3050 # first if we set CC to just the basename; use the full file name.
3052 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3058 if test -n "$CC"; then
3059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3060 $as_echo "$CC" >&6; }
3062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3063 $as_echo "no" >&6; }
3068 if test -z "$CC"; then
3069 if test -n "$ac_tool_prefix"; then
3070 for ac_prog in cl.exe
3072 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3073 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3075 $as_echo_n "checking for $ac_word... " >&6; }
3076 if ${ac_cv_prog_CC+:} false; then :
3077 $as_echo_n "(cached) " >&6
3079 if test -n "$CC"; then
3080 ac_cv_prog_CC="$CC" # Let the user override the test.
3082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3086 test -z "$as_dir" && as_dir=.
3087 for ac_exec_ext in '' $ac_executable_extensions; do
3088 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3089 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3090 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3100 if test -n "$CC"; then
3101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3102 $as_echo "$CC" >&6; }
3104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3105 $as_echo "no" >&6; }
3109 test -n "$CC" && break
3112 if test -z "$CC"; then
3114 for ac_prog in cl.exe
3116 # Extract the first word of "$ac_prog", so it can be a program name with args.
3117 set dummy $ac_prog; ac_word=$2
3118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3119 $as_echo_n "checking for $ac_word... " >&6; }
3120 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3121 $as_echo_n "(cached) " >&6
3123 if test -n "$ac_ct_CC"; then
3124 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3130 test -z "$as_dir" && as_dir=.
3131 for ac_exec_ext in '' $ac_executable_extensions; do
3132 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3133 ac_cv_prog_ac_ct_CC="$ac_prog"
3134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3143 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3144 if test -n "$ac_ct_CC"; then
3145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3146 $as_echo "$ac_ct_CC" >&6; }
3148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3149 $as_echo "no" >&6; }
3153 test -n "$ac_ct_CC" && break
3156 if test "x$ac_ct_CC" = x; then
3159 case $cross_compiling:$ac_tool_warned in
3161 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3162 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3163 ac_tool_warned=yes ;;
3172 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3173 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3174 as_fn_error $? "no acceptable C compiler found in \$PATH
3175 See \`config.log' for more details" "$LINENO" 5; }
3177 # Provide some information about the compiler.
3178 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3181 for ac_option in --version -v -V -qversion; do
3182 { { ac_try="$ac_compiler $ac_option >&5"
3184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3185 *) ac_try_echo=$ac_try;;
3187 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3188 $as_echo "$ac_try_echo"; } >&5
3189 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3191 if test -s conftest.err; then
3193 ... rest of stderr output deleted ...
3194 10q' conftest.err >conftest.er1
3195 cat conftest.er1 >&5
3197 rm -f conftest.er1 conftest.err
3198 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3199 test $ac_status = 0; }
3202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3203 /* end confdefs.h. */
3213 ac_clean_files_save=$ac_clean_files
3214 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3215 # Try to create an executable without -o first, disregard a.out.
3216 # It will help us diagnose broken compilers, and finding out an intuition
3218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3219 $as_echo_n "checking whether the C compiler works... " >&6; }
3220 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3222 # The possible output files:
3223 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3226 for ac_file in $ac_files
3229 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3230 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3235 if { { ac_try="$ac_link_default"
3237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3238 *) ac_try_echo=$ac_try;;
3240 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3241 $as_echo "$ac_try_echo"; } >&5
3242 (eval "$ac_link_default") 2>&5
3244 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3245 test $ac_status = 0; }; then :
3246 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3247 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3248 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3249 # so that the user can short-circuit this test for compilers unknown to
3251 for ac_file in $ac_files ''
3253 test -f "$ac_file" || continue
3255 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3258 # We found the default executable, but exeext='' is most
3262 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3264 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3266 # We set ac_cv_exeext here because the later test for it is not
3267 # safe: cross compilers may not add the suffix if given an `-o'
3268 # argument, so we may need to know it at that point already.
3269 # Even if this section looks crufty: it has the advantage of
3276 test "$ac_cv_exeext" = no && ac_cv_exeext=
3281 if test -z "$ac_file"; then :
3282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3283 $as_echo "no" >&6; }
3284 $as_echo "$as_me: failed program was:" >&5
3285 sed 's/^/| /' conftest.$ac_ext >&5
3287 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3288 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3289 as_fn_error 77 "C compiler cannot create executables
3290 See \`config.log' for more details" "$LINENO" 5; }
3292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3293 $as_echo "yes" >&6; }
3295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3296 $as_echo_n "checking for C compiler default output file name... " >&6; }
3297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3298 $as_echo "$ac_file" >&6; }
3299 ac_exeext=$ac_cv_exeext
3301 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3302 ac_clean_files=$ac_clean_files_save
3303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3304 $as_echo_n "checking for suffix of executables... " >&6; }
3305 if { { ac_try="$ac_link"
3307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3308 *) ac_try_echo=$ac_try;;
3310 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3311 $as_echo "$ac_try_echo"; } >&5
3312 (eval "$ac_link") 2>&5
3314 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3315 test $ac_status = 0; }; then :
3316 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3317 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3318 # work properly (i.e., refer to `conftest.exe'), while it won't with
3320 for ac_file in conftest.exe conftest conftest.*; do
3321 test -f "$ac_file" || continue
3323 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3324 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3330 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3331 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3332 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3333 See \`config.log' for more details" "$LINENO" 5; }
3335 rm -f conftest conftest$ac_cv_exeext
3336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3337 $as_echo "$ac_cv_exeext" >&6; }
3339 rm -f conftest.$ac_ext
3340 EXEEXT=$ac_cv_exeext
3342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3343 /* end confdefs.h. */
3348 FILE *f = fopen ("conftest.out", "w");
3349 return ferror (f) || fclose (f) != 0;
3355 ac_clean_files="$ac_clean_files conftest.out"
3356 # Check that the compiler produces executables we can run. If not, either
3357 # the compiler is broken, or we cross compile.
3358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3359 $as_echo_n "checking whether we are cross compiling... " >&6; }
3360 if test "$cross_compiling" != yes; then
3361 { { ac_try="$ac_link"
3363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3364 *) ac_try_echo=$ac_try;;
3366 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3367 $as_echo "$ac_try_echo"; } >&5
3368 (eval "$ac_link") 2>&5
3370 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3371 test $ac_status = 0; }
3372 if { ac_try='./conftest$ac_cv_exeext'
3373 { { case "(($ac_try" in
3374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3375 *) ac_try_echo=$ac_try;;
3377 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3378 $as_echo "$ac_try_echo"; } >&5
3379 (eval "$ac_try") 2>&5
3381 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3382 test $ac_status = 0; }; }; then
3385 if test "$cross_compiling" = maybe; then
3388 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3389 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3390 as_fn_error $? "cannot run C compiled programs.
3391 If you meant to cross compile, use \`--host'.
3392 See \`config.log' for more details" "$LINENO" 5; }
3396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3397 $as_echo "$cross_compiling" >&6; }
3399 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3400 ac_clean_files=$ac_clean_files_save
3401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3402 $as_echo_n "checking for suffix of object files... " >&6; }
3403 if ${ac_cv_objext+:} false; then :
3404 $as_echo_n "(cached) " >&6
3406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3407 /* end confdefs.h. */
3417 rm -f conftest.o conftest.obj
3418 if { { ac_try="$ac_compile"
3420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3421 *) ac_try_echo=$ac_try;;
3423 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3424 $as_echo "$ac_try_echo"; } >&5
3425 (eval "$ac_compile") 2>&5
3427 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3428 test $ac_status = 0; }; then :
3429 for ac_file in conftest.o conftest.obj conftest.*; do
3430 test -f "$ac_file" || continue;
3432 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3433 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3438 $as_echo "$as_me: failed program was:" >&5
3439 sed 's/^/| /' conftest.$ac_ext >&5
3441 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3442 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3443 as_fn_error $? "cannot compute suffix of object files: cannot compile
3444 See \`config.log' for more details" "$LINENO" 5; }
3446 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3449 $as_echo "$ac_cv_objext" >&6; }
3450 OBJEXT=$ac_cv_objext
3452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3453 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3454 if ${ac_cv_c_compiler_gnu+:} false; then :
3455 $as_echo_n "(cached) " >&6
3457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3458 /* end confdefs.h. */
3471 if ac_fn_c_try_compile "$LINENO"; then :
3476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3477 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3481 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3482 if test $ac_compiler_gnu = yes; then
3487 ac_test_CFLAGS=${CFLAGS+set}
3488 ac_save_CFLAGS=$CFLAGS
3489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3490 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3491 if ${ac_cv_prog_cc_g+:} false; then :
3492 $as_echo_n "(cached) " >&6
3494 ac_save_c_werror_flag=$ac_c_werror_flag
3495 ac_c_werror_flag=yes
3498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3499 /* end confdefs.h. */
3509 if ac_fn_c_try_compile "$LINENO"; then :
3513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3514 /* end confdefs.h. */
3524 if ac_fn_c_try_compile "$LINENO"; then :
3527 ac_c_werror_flag=$ac_save_c_werror_flag
3529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3530 /* end confdefs.h. */
3540 if ac_fn_c_try_compile "$LINENO"; then :
3543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3548 ac_c_werror_flag=$ac_save_c_werror_flag
3550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3551 $as_echo "$ac_cv_prog_cc_g" >&6; }
3552 if test "$ac_test_CFLAGS" = set; then
3553 CFLAGS=$ac_save_CFLAGS
3554 elif test $ac_cv_prog_cc_g = yes; then
3555 if test "$GCC" = yes; then
3561 if test "$GCC" = yes; then
3567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3568 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3569 if ${ac_cv_prog_cc_c89+:} false; then :
3570 $as_echo_n "(cached) " >&6
3572 ac_cv_prog_cc_c89=no
3574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3575 /* end confdefs.h. */
3578 #include <sys/types.h>
3579 #include <sys/stat.h>
3580 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3581 struct buf { int x; };
3582 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3583 static char *e (p, i)
3589 static char *f (char * (*g) (char **, int), char **p, ...)
3594 s = g (p, va_arg (v,int));
3599 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3600 function prototypes and stuff, but not '\xHH' hex character constants.
3601 These don't provoke an error unfortunately, instead are silently treated
3602 as 'x'. The following induces an error, until -std is added to get
3603 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3604 array size at least. It's necessary to write '\x00'==0 to get something
3605 that's true only with -std. */
3606 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3608 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3609 inside strings and character constants. */
3611 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3613 int test (int i, double x);
3614 struct s1 {int (*f) (int a);};
3615 struct s2 {int (*f) (double a);};
3616 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3622 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3627 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3628 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3630 CC="$ac_save_CC $ac_arg"
3631 if ac_fn_c_try_compile "$LINENO"; then :
3632 ac_cv_prog_cc_c89=$ac_arg
3634 rm -f core conftest.err conftest.$ac_objext
3635 test "x$ac_cv_prog_cc_c89" != "xno" && break
3637 rm -f conftest.$ac_ext
3642 case "x$ac_cv_prog_cc_c89" in
3644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3645 $as_echo "none needed" >&6; } ;;
3647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3648 $as_echo "unsupported" >&6; } ;;
3650 CC="$CC $ac_cv_prog_cc_c89"
3651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3652 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3654 if test "x$ac_cv_prog_cc_c89" != xno; then :
3659 ac_cpp='$CPP $CPPFLAGS'
3660 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3661 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3662 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3663 DEPDIR="${am__leading_dot}deps"
3665 ac_config_commands="$ac_config_commands depfiles"
3668 am_make=${MAKE-make}
3669 cat > confinc << 'END'
3671 @echo this is the am__doit target
3674 # If we don't find an include directive, just comment out the code.
3675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3676 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3680 # First try GNU make style include.
3681 echo "include confinc" > confmf
3682 # Ignore all kinds of additional output from `make'.
3683 case `$am_make -s -f confmf 2> /dev/null` in #(
3684 *the\ am__doit\ target*)
3690 # Now try BSD make style include.
3691 if test "$am__include" = "#"; then
3692 echo '.include "confinc"' > confmf
3693 case `$am_make -s -f confmf 2> /dev/null` in #(
3694 *the\ am__doit\ target*)
3695 am__include=.include
3703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3704 $as_echo "$_am_result" >&6; }
3705 rm -f confinc confmf
3707 # Check whether --enable-dependency-tracking was given.
3708 if test "${enable_dependency_tracking+set}" = set; then :
3709 enableval=$enable_dependency_tracking;
3712 if test "x$enable_dependency_tracking" != xno; then
3713 am_depcomp="$ac_aux_dir/depcomp"
3716 if test "x$enable_dependency_tracking" != xno; then
3726 depcc="$CC" am_compiler_list=
3728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3729 $as_echo_n "checking dependency style of $depcc... " >&6; }
3730 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3731 $as_echo_n "(cached) " >&6
3733 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3734 # We make a subdir and do the tests there. Otherwise we can end up
3735 # making bogus files that we don't know about and never remove. For
3736 # instance it was reported that on HP-UX the gcc test will end up
3737 # making a dummy file named `D' -- because `-MD' means `put the output
3740 # Copy depcomp to subdir because otherwise we won't find it if we're
3741 # using a relative directory.
3742 cp "$am_depcomp" conftest.dir
3744 # We will build objects and dependencies in a subdirectory because
3745 # it helps to detect inapplicable dependency modes. For instance
3746 # both Tru64's cc and ICC support -MD to output dependencies as a
3747 # side effect of compilation, but ICC will put the dependencies in
3748 # the current directory while Tru64 will put them in the object
3752 am_cv_CC_dependencies_compiler_type=none
3753 if test "$am_compiler_list" = ""; then
3754 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3757 case " $depcc " in #(
3758 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3761 for depmode in $am_compiler_list; do
3762 # Setup a source with many dependencies, because some compilers
3763 # like to wrap large dependency lists on column 80 (with \), and
3764 # we should not choose a depcomp mode which is confused by this.
3766 # We need to recreate these files for each test, as the compiler may
3767 # overwrite some of them when testing with obscure command lines.
3768 # This happens at least with the AIX C compiler.
3770 for i in 1 2 3 4 5 6; do
3771 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3772 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3773 # Solaris 8's {/usr,}/bin/sh.
3774 touch sub/conftst$i.h
3776 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3778 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3779 # mode. It turns out that the SunPro C++ compiler does not properly
3780 # handle `-M -o', and we need to detect this. Also, some Intel
3781 # versions had trouble with output in subdirs
3782 am__obj=sub/conftest.${OBJEXT-o}
3783 am__minus_obj="-o $am__obj"
3786 # This depmode causes a compiler race in universal mode.
3787 test "$am__universal" = false || continue
3790 # after this tag, mechanisms are not by side-effect, so they'll
3791 # only be used when explicitly requested
3792 if test "x$enable_dependency_tracking" = xyes; then
3798 msvisualcpp | msvcmsys)
3799 # This compiler won't grok `-c -o', but also, the minuso test has
3800 # not run yet. These depmodes are late enough in the game, and
3801 # so weak that their functioning should not be impacted.
3802 am__obj=conftest.${OBJEXT-o}
3807 if depmode=$depmode \
3808 source=sub/conftest.c object=$am__obj \
3809 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3810 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3811 >/dev/null 2>conftest.err &&
3812 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3813 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3814 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3815 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3816 # icc doesn't choke on unknown options, it will just issue warnings
3817 # or remarks (even with -Werror). So we grep stderr for any message
3818 # that says an option was ignored or not supported.
3819 # When given -MP, icc 7.0 and 7.1 complain thusly:
3820 # icc: Command line warning: ignoring option '-M'; no argument required
3821 # The diagnosis changed in icc 8.0:
3822 # icc: Command line remark: option '-MP' not supported
3823 if (grep 'ignoring option' conftest.err ||
3824 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3825 am_cv_CC_dependencies_compiler_type=$depmode
3834 am_cv_CC_dependencies_compiler_type=none
3838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3839 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3840 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3843 test "x$enable_dependency_tracking" != xno \
3844 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3846 am__fastdepCC_FALSE='#'
3848 am__fastdepCC_TRUE='#'
3849 am__fastdepCC_FALSE=
3855 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3856 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3861 macro_version='2.2.10'
3862 macro_revision='1.3175'
3876 ltmain="$ac_aux_dir/ltmain.sh"
3878 # Make sure we can run config.sub.
3879 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3880 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3883 $as_echo_n "checking build system type... " >&6; }
3884 if ${ac_cv_build+:} false; then :
3885 $as_echo_n "(cached) " >&6
3887 ac_build_alias=$build_alias
3888 test "x$ac_build_alias" = x &&
3889 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3890 test "x$ac_build_alias" = x &&
3891 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3892 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3893 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3897 $as_echo "$ac_cv_build" >&6; }
3898 case $ac_cv_build in
3900 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3903 ac_save_IFS=$IFS; IFS='-'
3909 # Remember, the first character of IFS is used to create $*,
3910 # except with old shells:
3913 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3917 $as_echo_n "checking host system type... " >&6; }
3918 if ${ac_cv_host+:} false; then :
3919 $as_echo_n "(cached) " >&6
3921 if test "x$host_alias" = x; then
3922 ac_cv_host=$ac_cv_build
3924 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3925 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3930 $as_echo "$ac_cv_host" >&6; }
3933 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3936 ac_save_IFS=$IFS; IFS='-'
3942 # Remember, the first character of IFS is used to create $*,
3943 # except with old shells:
3946 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3949 # Backslashify metacharacters that are still active within
3950 # double-quoted strings.
3951 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3953 # Same as above, but do not quote variable references.
3954 double_quote_subst='s/\(["`\\]\)/\\\1/g'
3956 # Sed substitution to delay expansion of an escaped shell variable in a
3957 # double_quote_subst'ed string.
3958 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3960 # Sed substitution to delay expansion of an escaped single quote.
3961 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3963 # Sed substitution to avoid accidental globbing in evaled expressions
3964 no_glob_subst='s/\*/\\\*/g'
3966 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3967 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3968 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3971 $as_echo_n "checking how to print strings... " >&6; }
3972 # Test print first, because it will be a builtin if present.
3973 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
3974 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3976 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3979 # Use this function as a fallback that always works.
3980 func_fallback_echo ()
3982 eval 'cat <<_LTECHO_EOF
3986 ECHO='func_fallback_echo'
3989 # func_echo_all arg...
3990 # Invoke $ECHO with all args, space-separated.
3997 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3998 $as_echo "printf" >&6; } ;;
3999 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4000 $as_echo "print -r" >&6; } ;;
4001 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4002 $as_echo "cat" >&6; } ;;
4018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4019 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4020 if ${ac_cv_path_SED+:} false; then :
4021 $as_echo_n "(cached) " >&6
4023 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4024 for ac_i in 1 2 3 4 5 6 7; do
4025 ac_script="$ac_script$as_nl$ac_script"
4027 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4028 { ac_script=; unset ac_script;}
4029 if test -z "$SED"; then
4030 ac_path_SED_found=false
4031 # Loop through the user's path and test for each of PROGNAME-LIST
4032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4036 test -z "$as_dir" && as_dir=.
4037 for ac_prog in sed gsed; do
4038 for ac_exec_ext in '' $ac_executable_extensions; do
4039 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4040 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4041 # Check for GNU ac_path_SED and select it if it is found.
4042 # Check for GNU $ac_path_SED
4043 case `"$ac_path_SED" --version 2>&1` in
4045 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4048 $as_echo_n 0123456789 >"conftest.in"
4051 cat "conftest.in" "conftest.in" >"conftest.tmp"
4052 mv "conftest.tmp" "conftest.in"
4053 cp "conftest.in" "conftest.nl"
4054 $as_echo '' >> "conftest.nl"
4055 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4056 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4057 as_fn_arith $ac_count + 1 && ac_count=$as_val
4058 if test $ac_count -gt ${ac_path_SED_max-0}; then
4059 # Best one so far, save it but keep looking for a better one
4060 ac_cv_path_SED="$ac_path_SED"
4061 ac_path_SED_max=$ac_count
4063 # 10*(2^10) chars as input seems more than enough
4064 test $ac_count -gt 10 && break
4066 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4069 $ac_path_SED_found && break 3
4074 if test -z "$ac_cv_path_SED"; then
4075 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4083 $as_echo "$ac_cv_path_SED" >&6; }
4084 SED="$ac_cv_path_SED"
4087 test -z "$SED" && SED=sed
4088 Xsed="$SED -e 1s/^X//"
4100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4101 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4102 if ${ac_cv_path_GREP+:} false; then :
4103 $as_echo_n "(cached) " >&6
4105 if test -z "$GREP"; then
4106 ac_path_GREP_found=false
4107 # Loop through the user's path and test for each of PROGNAME-LIST
4108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4109 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4112 test -z "$as_dir" && as_dir=.
4113 for ac_prog in grep ggrep; do
4114 for ac_exec_ext in '' $ac_executable_extensions; do
4115 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4116 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4117 # Check for GNU ac_path_GREP and select it if it is found.
4118 # Check for GNU $ac_path_GREP
4119 case `"$ac_path_GREP" --version 2>&1` in
4121 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4124 $as_echo_n 0123456789 >"conftest.in"
4127 cat "conftest.in" "conftest.in" >"conftest.tmp"
4128 mv "conftest.tmp" "conftest.in"
4129 cp "conftest.in" "conftest.nl"
4130 $as_echo 'GREP' >> "conftest.nl"
4131 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4132 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4133 as_fn_arith $ac_count + 1 && ac_count=$as_val
4134 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4135 # Best one so far, save it but keep looking for a better one
4136 ac_cv_path_GREP="$ac_path_GREP"
4137 ac_path_GREP_max=$ac_count
4139 # 10*(2^10) chars as input seems more than enough
4140 test $ac_count -gt 10 && break
4142 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4145 $ac_path_GREP_found && break 3
4150 if test -z "$ac_cv_path_GREP"; then
4151 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4154 ac_cv_path_GREP=$GREP
4158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4159 $as_echo "$ac_cv_path_GREP" >&6; }
4160 GREP="$ac_cv_path_GREP"
4163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4164 $as_echo_n "checking for egrep... " >&6; }
4165 if ${ac_cv_path_EGREP+:} false; then :
4166 $as_echo_n "(cached) " >&6
4168 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4169 then ac_cv_path_EGREP="$GREP -E"
4171 if test -z "$EGREP"; then
4172 ac_path_EGREP_found=false
4173 # Loop through the user's path and test for each of PROGNAME-LIST
4174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4175 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4178 test -z "$as_dir" && as_dir=.
4179 for ac_prog in egrep; do
4180 for ac_exec_ext in '' $ac_executable_extensions; do
4181 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4182 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4183 # Check for GNU ac_path_EGREP and select it if it is found.
4184 # Check for GNU $ac_path_EGREP
4185 case `"$ac_path_EGREP" --version 2>&1` in
4187 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4190 $as_echo_n 0123456789 >"conftest.in"
4193 cat "conftest.in" "conftest.in" >"conftest.tmp"
4194 mv "conftest.tmp" "conftest.in"
4195 cp "conftest.in" "conftest.nl"
4196 $as_echo 'EGREP' >> "conftest.nl"
4197 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4198 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4199 as_fn_arith $ac_count + 1 && ac_count=$as_val
4200 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4201 # Best one so far, save it but keep looking for a better one
4202 ac_cv_path_EGREP="$ac_path_EGREP"
4203 ac_path_EGREP_max=$ac_count
4205 # 10*(2^10) chars as input seems more than enough
4206 test $ac_count -gt 10 && break
4208 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4211 $ac_path_EGREP_found && break 3
4216 if test -z "$ac_cv_path_EGREP"; then
4217 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4220 ac_cv_path_EGREP=$EGREP
4225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4226 $as_echo "$ac_cv_path_EGREP" >&6; }
4227 EGREP="$ac_cv_path_EGREP"
4230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4231 $as_echo_n "checking for fgrep... " >&6; }
4232 if ${ac_cv_path_FGREP+:} false; then :
4233 $as_echo_n "(cached) " >&6
4235 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4236 then ac_cv_path_FGREP="$GREP -F"
4238 if test -z "$FGREP"; then
4239 ac_path_FGREP_found=false
4240 # Loop through the user's path and test for each of PROGNAME-LIST
4241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4242 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4245 test -z "$as_dir" && as_dir=.
4246 for ac_prog in fgrep; do
4247 for ac_exec_ext in '' $ac_executable_extensions; do
4248 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4249 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4250 # Check for GNU ac_path_FGREP and select it if it is found.
4251 # Check for GNU $ac_path_FGREP
4252 case `"$ac_path_FGREP" --version 2>&1` in
4254 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4257 $as_echo_n 0123456789 >"conftest.in"
4260 cat "conftest.in" "conftest.in" >"conftest.tmp"
4261 mv "conftest.tmp" "conftest.in"
4262 cp "conftest.in" "conftest.nl"
4263 $as_echo 'FGREP' >> "conftest.nl"
4264 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4265 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4266 as_fn_arith $ac_count + 1 && ac_count=$as_val
4267 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4268 # Best one so far, save it but keep looking for a better one
4269 ac_cv_path_FGREP="$ac_path_FGREP"
4270 ac_path_FGREP_max=$ac_count
4272 # 10*(2^10) chars as input seems more than enough
4273 test $ac_count -gt 10 && break
4275 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4278 $ac_path_FGREP_found && break 3
4283 if test -z "$ac_cv_path_FGREP"; then
4284 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4287 ac_cv_path_FGREP=$FGREP
4292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4293 $as_echo "$ac_cv_path_FGREP" >&6; }
4294 FGREP="$ac_cv_path_FGREP"
4297 test -z "$GREP" && GREP=grep
4317 # Check whether --with-gnu-ld was given.
4318 if test "${with_gnu_ld+set}" = set; then :
4319 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4325 if test "$GCC" = yes; then
4326 # Check if gcc -print-prog-name=ld gives a path.
4327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4328 $as_echo_n "checking for ld used by $CC... " >&6; }
4331 # gcc leaves a trailing carriage return which upsets mingw
4332 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4334 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4337 # Accept absolute paths.
4339 re_direlt='/[^/][^/]*/\.\./'
4340 # Canonicalize the pathname of ld
4341 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4342 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4343 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4345 test -z "$LD" && LD="$ac_prog"
4348 # If it fails, then pretend we aren't using GCC.
4352 # If it is relative, then search for the first ld in PATH.
4356 elif test "$with_gnu_ld" = yes; then
4357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4358 $as_echo_n "checking for GNU ld... " >&6; }
4360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4361 $as_echo_n "checking for non-GNU ld... " >&6; }
4363 if ${lt_cv_path_LD+:} false; then :
4364 $as_echo_n "(cached) " >&6
4366 if test -z "$LD"; then
4367 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4368 for ac_dir in $PATH; do
4370 test -z "$ac_dir" && ac_dir=.
4371 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4372 lt_cv_path_LD="$ac_dir/$ac_prog"
4373 # Check to see if the program is GNU ld. I'd rather use --version,
4374 # but apparently some variants of GNU ld only accept -v.
4375 # Break only if it was the GNU/non-GNU ld that we prefer.
4376 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4377 *GNU* | *'with BFD'*)
4378 test "$with_gnu_ld" != no && break
4381 test "$with_gnu_ld" != yes && break
4388 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4393 if test -n "$LD"; then
4394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4395 $as_echo "$LD" >&6; }
4397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4398 $as_echo "no" >&6; }
4400 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4402 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4403 if ${lt_cv_prog_gnu_ld+:} false; then :
4404 $as_echo_n "(cached) " >&6
4406 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4407 case `$LD -v 2>&1 </dev/null` in
4408 *GNU* | *'with BFD'*)
4409 lt_cv_prog_gnu_ld=yes
4412 lt_cv_prog_gnu_ld=no
4416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4417 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4418 with_gnu_ld=$lt_cv_prog_gnu_ld
4428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4429 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4430 if ${lt_cv_path_NM+:} false; then :
4431 $as_echo_n "(cached) " >&6
4433 if test -n "$NM"; then
4434 # Let the user override the test.
4437 lt_nm_to_check="${ac_tool_prefix}nm"
4438 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4439 lt_nm_to_check="$lt_nm_to_check nm"
4441 for lt_tmp_nm in $lt_nm_to_check; do
4442 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4443 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4445 test -z "$ac_dir" && ac_dir=.
4446 tmp_nm="$ac_dir/$lt_tmp_nm"
4447 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4448 # Check to see if the nm accepts a BSD-compat flag.
4449 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4450 # nm: unknown option "B" ignored
4451 # Tru64's nm complains that /dev/null is an invalid object file
4452 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4453 */dev/null* | *'Invalid file or object type'*)
4454 lt_cv_path_NM="$tmp_nm -B"
4458 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4460 lt_cv_path_NM="$tmp_nm -p"
4464 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4465 continue # so that we can try to find one that supports BSD flags
4474 : ${lt_cv_path_NM=no}
4477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4478 $as_echo "$lt_cv_path_NM" >&6; }
4479 if test "$lt_cv_path_NM" != "no"; then
4482 # Didn't find any BSD compatible name lister, look for dumpbin.
4483 if test -n "$DUMPBIN"; then :
4484 # Let the user override the test.
4486 if test -n "$ac_tool_prefix"; then
4487 for ac_prog in dumpbin "link -dump"
4489 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4490 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4492 $as_echo_n "checking for $ac_word... " >&6; }
4493 if ${ac_cv_prog_DUMPBIN+:} false; then :
4494 $as_echo_n "(cached) " >&6
4496 if test -n "$DUMPBIN"; then
4497 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4503 test -z "$as_dir" && as_dir=.
4504 for ac_exec_ext in '' $ac_executable_extensions; do
4505 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4506 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4507 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4516 DUMPBIN=$ac_cv_prog_DUMPBIN
4517 if test -n "$DUMPBIN"; then
4518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4519 $as_echo "$DUMPBIN" >&6; }
4521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4522 $as_echo "no" >&6; }
4526 test -n "$DUMPBIN" && break
4529 if test -z "$DUMPBIN"; then
4530 ac_ct_DUMPBIN=$DUMPBIN
4531 for ac_prog in dumpbin "link -dump"
4533 # Extract the first word of "$ac_prog", so it can be a program name with args.
4534 set dummy $ac_prog; ac_word=$2
4535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4536 $as_echo_n "checking for $ac_word... " >&6; }
4537 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4538 $as_echo_n "(cached) " >&6
4540 if test -n "$ac_ct_DUMPBIN"; then
4541 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4547 test -z "$as_dir" && as_dir=.
4548 for ac_exec_ext in '' $ac_executable_extensions; do
4549 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4550 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4551 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4560 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4561 if test -n "$ac_ct_DUMPBIN"; then
4562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4563 $as_echo "$ac_ct_DUMPBIN" >&6; }
4565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4566 $as_echo "no" >&6; }
4570 test -n "$ac_ct_DUMPBIN" && break
4573 if test "x$ac_ct_DUMPBIN" = x; then
4576 case $cross_compiling:$ac_tool_warned in
4578 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4579 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4580 ac_tool_warned=yes ;;
4582 DUMPBIN=$ac_ct_DUMPBIN
4586 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4588 DUMPBIN="$DUMPBIN -symbols"
4596 if test "$DUMPBIN" != ":"; then
4600 test -z "$NM" && NM=nm
4607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4608 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4609 if ${lt_cv_nm_interface+:} false; then :
4610 $as_echo_n "(cached) " >&6
4612 lt_cv_nm_interface="BSD nm"
4613 echo "int some_variable = 0;" > conftest.$ac_ext
4614 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4615 (eval "$ac_compile" 2>conftest.err)
4616 cat conftest.err >&5
4617 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4618 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4619 cat conftest.err >&5
4620 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4621 cat conftest.out >&5
4622 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4623 lt_cv_nm_interface="MS dumpbin"
4627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4628 $as_echo "$lt_cv_nm_interface" >&6; }
4630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4631 $as_echo_n "checking whether ln -s works... " >&6; }
4633 if test "$LN_S" = "ln -s"; then
4634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4635 $as_echo "yes" >&6; }
4637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4638 $as_echo "no, using $LN_S" >&6; }
4641 # find the maximum length of command line arguments
4642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4643 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4644 if ${lt_cv_sys_max_cmd_len+:} false; then :
4645 $as_echo_n "(cached) " >&6
4652 # On DJGPP, this test can blow up pretty badly due to problems in libc
4653 # (any single argument exceeding 2000 bytes causes a buffer overrun
4654 # during glob expansion). Even if it were fixed, the result of this
4655 # check would be larger than it should be.
4656 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4660 # Under GNU Hurd, this test is not required because there is
4661 # no limit to the length of command line arguments.
4662 # Libtool will interpret -1 as no limit whatsoever
4663 lt_cv_sys_max_cmd_len=-1;
4666 cygwin* | mingw* | cegcc*)
4667 # On Win9x/ME, this test blows up -- it succeeds, but takes
4668 # about 5 minutes as the teststring grows exponentially.
4669 # Worse, since 9x/ME are not pre-emptively multitasking,
4670 # you end up with a "frozen" computer, even though with patience
4671 # the test eventually succeeds (with a max line length of 256k).
4672 # Instead, let's just punt: use the minimum linelength reported by
4673 # all of the supported platforms: 8192 (on NT/2K/XP).
4674 lt_cv_sys_max_cmd_len=8192;
4678 # On MiNT this can take a long time and run out of memory.
4679 lt_cv_sys_max_cmd_len=8192;
4683 # On AmigaOS with pdksh, this test takes hours, literally.
4684 # So we just punt and use a minimum line length of 8192.
4685 lt_cv_sys_max_cmd_len=8192;
4688 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4689 # This has been around since 386BSD, at least. Likely further.
4690 if test -x /sbin/sysctl; then
4691 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4692 elif test -x /usr/sbin/sysctl; then
4693 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4695 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4697 # And add a safety zone
4698 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4699 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4703 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4704 lt_cv_sys_max_cmd_len=196608
4708 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4709 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4710 # nice to cause kernel panics so lets avoid the loop below.
4711 # First set a reasonable default.
4712 lt_cv_sys_max_cmd_len=16384
4714 if test -x /sbin/sysconfig; then
4715 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4716 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4721 lt_cv_sys_max_cmd_len=102400
4723 sysv5* | sco5v6* | sysv4.2uw2*)
4724 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4725 if test -n "$kargmax"; then
4726 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4728 lt_cv_sys_max_cmd_len=32768
4732 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4733 if test -n "$lt_cv_sys_max_cmd_len"; then
4734 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4735 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4737 # Make teststring a little bigger before we do anything with it.
4738 # a 1K string should be a reasonable start.
4739 for i in 1 2 3 4 5 6 7 8 ; do
4740 teststring=$teststring$teststring
4742 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4743 # If test is not a shell built-in, we'll probably end up computing a
4744 # maximum length that is only half of the actual maximum length, but
4746 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
4747 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4748 test $i != 17 # 1/2 MB should be enough
4751 teststring=$teststring$teststring
4753 # Only check the string length outside the loop.
4754 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4756 # Add a significant safety factor because C++ compilers can tack on
4757 # massive amounts of additional arguments before passing them to the
4758 # linker. It appears as though 1/2 is a usable value.
4759 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4766 if test -n $lt_cv_sys_max_cmd_len ; then
4767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4768 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4771 $as_echo "none" >&6; }
4773 max_cmd_len=$lt_cv_sys_max_cmd_len
4784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4785 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4786 # Try some XSI features
4789 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4791 && eval 'test $(( 1 + 1 )) -eq 2 \
4792 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4795 $as_echo "$xsi_shell" >&6; }
4798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4799 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4801 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4803 && lt_shell_append=yes
4804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4805 $as_echo "$lt_shell_append" >&6; }
4808 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4818 # test EBCDIC or ASCII
4819 case `echo X|tr X '\101'` in
4820 A) # ASCII based system
4821 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4822 lt_SP2NL='tr \040 \012'
4823 lt_NL2SP='tr \015\012 \040\040'
4825 *) # EBCDIC based system
4826 lt_SP2NL='tr \100 \n'
4827 lt_NL2SP='tr \r\n \100\100'
4839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4840 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4841 if ${lt_cv_ld_reload_flag+:} false; then :
4842 $as_echo_n "(cached) " >&6
4844 lt_cv_ld_reload_flag='-r'
4846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4847 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4848 reload_flag=$lt_cv_ld_reload_flag
4849 case $reload_flag in
4851 *) reload_flag=" $reload_flag" ;;
4853 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4856 if test "$GCC" = yes; then
4857 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4859 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4872 if test -n "$ac_tool_prefix"; then
4873 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4874 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4876 $as_echo_n "checking for $ac_word... " >&6; }
4877 if ${ac_cv_prog_OBJDUMP+:} false; then :
4878 $as_echo_n "(cached) " >&6
4880 if test -n "$OBJDUMP"; then
4881 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4887 test -z "$as_dir" && as_dir=.
4888 for ac_exec_ext in '' $ac_executable_extensions; do
4889 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4890 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4900 OBJDUMP=$ac_cv_prog_OBJDUMP
4901 if test -n "$OBJDUMP"; then
4902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4903 $as_echo "$OBJDUMP" >&6; }
4905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4906 $as_echo "no" >&6; }
4911 if test -z "$ac_cv_prog_OBJDUMP"; then
4912 ac_ct_OBJDUMP=$OBJDUMP
4913 # Extract the first word of "objdump", so it can be a program name with args.
4914 set dummy objdump; ac_word=$2
4915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4916 $as_echo_n "checking for $ac_word... " >&6; }
4917 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4918 $as_echo_n "(cached) " >&6
4920 if test -n "$ac_ct_OBJDUMP"; then
4921 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4927 test -z "$as_dir" && as_dir=.
4928 for ac_exec_ext in '' $ac_executable_extensions; do
4929 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4930 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4931 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4940 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4941 if test -n "$ac_ct_OBJDUMP"; then
4942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4943 $as_echo "$ac_ct_OBJDUMP" >&6; }
4945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4946 $as_echo "no" >&6; }
4949 if test "x$ac_ct_OBJDUMP" = x; then
4952 case $cross_compiling:$ac_tool_warned in
4954 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4955 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4956 ac_tool_warned=yes ;;
4958 OBJDUMP=$ac_ct_OBJDUMP
4961 OBJDUMP="$ac_cv_prog_OBJDUMP"
4964 test -z "$OBJDUMP" && OBJDUMP=objdump
4974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4975 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4976 if ${lt_cv_deplibs_check_method+:} false; then :
4977 $as_echo_n "(cached) " >&6
4979 lt_cv_file_magic_cmd='$MAGIC_CMD'
4980 lt_cv_file_magic_test_file=
4981 lt_cv_deplibs_check_method='unknown'
4982 # Need to set the preceding variable on all platforms that support
4983 # interlibrary dependencies.
4984 # 'none' -- dependencies not supported.
4985 # `unknown' -- same as none, but documents that we really don't know.
4986 # 'pass_all' -- all dependencies passed with no checks.
4987 # 'test_compile' -- check by making test program.
4988 # 'file_magic [[regex]]' -- check by looking for files in library path
4989 # which responds to the $file_magic_cmd with a given extended regex.
4990 # If you have `file' or equivalent on your system and you're not sure
4991 # whether `pass_all' will *always* work, you probably want this one.
4995 lt_cv_deplibs_check_method=pass_all
4999 lt_cv_deplibs_check_method=pass_all
5003 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5004 lt_cv_file_magic_cmd='/usr/bin/file -L'
5005 lt_cv_file_magic_test_file=/shlib/libc.so
5009 # func_win32_libid is a shell function defined in ltmain.sh
5010 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5011 lt_cv_file_magic_cmd='func_win32_libid'
5015 # Base MSYS/MinGW do not provide the 'file' command needed by
5016 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5017 # unless we find 'file', for example because we are cross-compiling.
5018 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5019 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5020 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5021 lt_cv_file_magic_cmd='func_win32_libid'
5023 # Keep this pattern in sync with the one in func_win32_libid.
5024 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5025 lt_cv_file_magic_cmd='$OBJDUMP -f'
5030 # use the weaker test based on 'objdump'. See mingw*.
5031 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5032 lt_cv_file_magic_cmd='$OBJDUMP -f'
5035 darwin* | rhapsody*)
5036 lt_cv_deplibs_check_method=pass_all
5039 freebsd* | dragonfly*)
5040 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5043 # Not sure whether the presence of OpenBSD here was a mistake.
5044 # Let's accept both of them until this is cleared up.
5045 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5046 lt_cv_file_magic_cmd=/usr/bin/file
5047 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5051 lt_cv_deplibs_check_method=pass_all
5056 lt_cv_deplibs_check_method=pass_all
5060 lt_cv_deplibs_check_method=pass_all
5063 hpux10.20* | hpux11*)
5064 lt_cv_file_magic_cmd=/usr/bin/file
5067 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5068 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5071 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
5072 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5075 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5076 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5082 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5083 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5086 irix5* | irix6* | nonstopux*)
5088 *-32|*"-32 ") libmagic=32-bit;;
5089 *-n32|*"-n32 ") libmagic=N32;;
5090 *-64|*"-64 ") libmagic=64-bit;;
5091 *) libmagic=never-match;;
5093 lt_cv_deplibs_check_method=pass_all
5096 # This must be Linux ELF.
5097 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5098 lt_cv_deplibs_check_method=pass_all
5102 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5103 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5105 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5110 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5111 lt_cv_file_magic_cmd=/usr/bin/file
5112 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5116 lt_cv_deplibs_check_method=pass_all
5120 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5121 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5123 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5127 osf3* | osf4* | osf5*)
5128 lt_cv_deplibs_check_method=pass_all
5132 lt_cv_deplibs_check_method=pass_all
5136 lt_cv_deplibs_check_method=pass_all
5139 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5140 lt_cv_deplibs_check_method=pass_all
5144 case $host_vendor in
5146 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]'
5147 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5150 lt_cv_deplibs_check_method=pass_all
5153 lt_cv_file_magic_cmd='/bin/file'
5154 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5157 lt_cv_file_magic_cmd='/bin/file'
5158 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5159 lt_cv_file_magic_test_file=/lib/libc.so
5162 lt_cv_deplibs_check_method=pass_all
5165 lt_cv_deplibs_check_method=pass_all
5171 lt_cv_deplibs_check_method=pass_all
5176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5177 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5178 file_magic_cmd=$lt_cv_file_magic_cmd
5179 deplibs_check_method=$lt_cv_deplibs_check_method
5180 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5193 if test -n "$ac_tool_prefix"; then
5194 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5195 set dummy ${ac_tool_prefix}ar; ac_word=$2
5196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5197 $as_echo_n "checking for $ac_word... " >&6; }
5198 if ${ac_cv_prog_AR+:} false; then :
5199 $as_echo_n "(cached) " >&6
5201 if test -n "$AR"; then
5202 ac_cv_prog_AR="$AR" # Let the user override the test.
5204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5208 test -z "$as_dir" && as_dir=.
5209 for ac_exec_ext in '' $ac_executable_extensions; do
5210 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5211 ac_cv_prog_AR="${ac_tool_prefix}ar"
5212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5222 if test -n "$AR"; then
5223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5224 $as_echo "$AR" >&6; }
5226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5227 $as_echo "no" >&6; }
5232 if test -z "$ac_cv_prog_AR"; then
5234 # Extract the first word of "ar", so it can be a program name with args.
5235 set dummy ar; ac_word=$2
5236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5237 $as_echo_n "checking for $ac_word... " >&6; }
5238 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5239 $as_echo_n "(cached) " >&6
5241 if test -n "$ac_ct_AR"; then
5242 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5248 test -z "$as_dir" && as_dir=.
5249 for ac_exec_ext in '' $ac_executable_extensions; do
5250 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5251 ac_cv_prog_ac_ct_AR="ar"
5252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5261 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5262 if test -n "$ac_ct_AR"; then
5263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5264 $as_echo "$ac_ct_AR" >&6; }
5266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5267 $as_echo "no" >&6; }
5270 if test "x$ac_ct_AR" = x; then
5273 case $cross_compiling:$ac_tool_warned in
5275 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5276 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5277 ac_tool_warned=yes ;;
5285 test -z "$AR" && AR=ar
5286 test -z "$AR_FLAGS" && AR_FLAGS=cru
5298 if test -n "$ac_tool_prefix"; then
5299 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5300 set dummy ${ac_tool_prefix}strip; ac_word=$2
5301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5302 $as_echo_n "checking for $ac_word... " >&6; }
5303 if ${ac_cv_prog_STRIP+:} false; then :
5304 $as_echo_n "(cached) " >&6
5306 if test -n "$STRIP"; then
5307 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5313 test -z "$as_dir" && as_dir=.
5314 for ac_exec_ext in '' $ac_executable_extensions; do
5315 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5316 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5317 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5326 STRIP=$ac_cv_prog_STRIP
5327 if test -n "$STRIP"; then
5328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5329 $as_echo "$STRIP" >&6; }
5331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5332 $as_echo "no" >&6; }
5337 if test -z "$ac_cv_prog_STRIP"; then
5339 # Extract the first word of "strip", so it can be a program name with args.
5340 set dummy strip; ac_word=$2
5341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5342 $as_echo_n "checking for $ac_word... " >&6; }
5343 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5344 $as_echo_n "(cached) " >&6
5346 if test -n "$ac_ct_STRIP"; then
5347 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5353 test -z "$as_dir" && as_dir=.
5354 for ac_exec_ext in '' $ac_executable_extensions; do
5355 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5356 ac_cv_prog_ac_ct_STRIP="strip"
5357 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5366 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5367 if test -n "$ac_ct_STRIP"; then
5368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5369 $as_echo "$ac_ct_STRIP" >&6; }
5371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5372 $as_echo "no" >&6; }
5375 if test "x$ac_ct_STRIP" = x; then
5378 case $cross_compiling:$ac_tool_warned in
5380 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5381 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5382 ac_tool_warned=yes ;;
5387 STRIP="$ac_cv_prog_STRIP"
5390 test -z "$STRIP" && STRIP=:
5397 if test -n "$ac_tool_prefix"; then
5398 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5399 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5401 $as_echo_n "checking for $ac_word... " >&6; }
5402 if ${ac_cv_prog_RANLIB+:} false; then :
5403 $as_echo_n "(cached) " >&6
5405 if test -n "$RANLIB"; then
5406 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5412 test -z "$as_dir" && as_dir=.
5413 for ac_exec_ext in '' $ac_executable_extensions; do
5414 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5415 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5416 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5425 RANLIB=$ac_cv_prog_RANLIB
5426 if test -n "$RANLIB"; then
5427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5428 $as_echo "$RANLIB" >&6; }
5430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5431 $as_echo "no" >&6; }
5436 if test -z "$ac_cv_prog_RANLIB"; then
5437 ac_ct_RANLIB=$RANLIB
5438 # Extract the first word of "ranlib", so it can be a program name with args.
5439 set dummy ranlib; ac_word=$2
5440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5441 $as_echo_n "checking for $ac_word... " >&6; }
5442 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5443 $as_echo_n "(cached) " >&6
5445 if test -n "$ac_ct_RANLIB"; then
5446 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5452 test -z "$as_dir" && as_dir=.
5453 for ac_exec_ext in '' $ac_executable_extensions; do
5454 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5455 ac_cv_prog_ac_ct_RANLIB="ranlib"
5456 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5465 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5466 if test -n "$ac_ct_RANLIB"; then
5467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5468 $as_echo "$ac_ct_RANLIB" >&6; }
5470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5471 $as_echo "no" >&6; }
5474 if test "x$ac_ct_RANLIB" = x; then
5477 case $cross_compiling:$ac_tool_warned in
5479 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5480 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5481 ac_tool_warned=yes ;;
5483 RANLIB=$ac_ct_RANLIB
5486 RANLIB="$ac_cv_prog_RANLIB"
5489 test -z "$RANLIB" && RANLIB=:
5496 # Determine commands to create old-style static archives.
5497 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5498 old_postinstall_cmds='chmod 644 $oldlib'
5499 old_postuninstall_cmds=
5501 if test -n "$RANLIB"; then
5504 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5507 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5510 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5515 lock_old_archive_extraction=yes ;;
5517 lock_old_archive_extraction=no ;;
5558 # If no C compiler was specified, use CC.
5561 # If no C compiler flags were specified, use CFLAGS.
5562 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5564 # Allow CC to be a program name with arguments.
5568 # Check for command to grab the raw symbol name followed by C symbol from nm.
5569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5570 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5571 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5572 $as_echo_n "(cached) " >&6
5575 # These are sane defaults that work on at least a few old systems.
5576 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5578 # Character class describing NM global symbol codes.
5579 symcode='[BCDEGRST]'
5581 # Regexp to match symbols that can be accessed directly from C.
5582 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5584 # Define system-specific variables.
5589 cygwin* | mingw* | pw32* | cegcc*)
5590 symcode='[ABCDGISTW]'
5593 if test "$host_cpu" = ia64; then
5594 symcode='[ABCDEGRST]'
5598 symcode='[BCDEGRST]'
5601 symcode='[BCDEGQRST]'
5612 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5620 # If we're using GNU nm, then use its standard symbol codes.
5621 case `$NM -V 2>&1` in
5622 *GNU* | *'with BFD'*)
5623 symcode='[ABCDGIRSTW]' ;;
5626 # Transform an extracted symbol line into a proper C declaration.
5627 # Some systems (esp. on ia64) link data and code symbols differently,
5628 # so use this general approach.
5629 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5631 # Transform an extracted symbol line into symbol name and symbol address
5632 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5633 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'"
5635 # Handle CRLF in mingw tool chain
5639 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5643 # Try without a prefix underscore, then with it.
5644 for ac_symprfx in "" "_"; do
5646 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5647 symxfrm="\\1 $ac_symprfx\\2 \\2"
5649 # Write the raw and C identifiers.
5650 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5651 # Fake it for dumpbin and say T for any non-static function
5652 # and D for any global variable.
5653 # Also find C++ and __fastcall symbols from MSVC++,
5654 # which start with @ or ?.
5655 lt_cv_sys_global_symbol_pipe="$AWK '"\
5656 " {last_section=section; section=\$ 3};"\
5657 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5658 " \$ 0!~/External *\|/{next};"\
5659 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5660 " {if(hide[section]) next};"\
5661 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5662 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5663 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5664 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5665 " ' prfx=^$ac_symprfx"
5667 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5670 # Check to see that the pipe works correctly.
5674 cat > conftest.$ac_ext <<_LT_EOF
5679 void nm_test_func(void);
5680 void nm_test_func(void){}
5684 int main(){nm_test_var='a';nm_test_func();return(0);}
5687 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5688 (eval $ac_compile) 2>&5
5690 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5691 test $ac_status = 0; }; then
5692 # Now try to grab the symbols.
5694 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5695 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5697 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5698 test $ac_status = 0; } && test -s "$nlist"; then
5699 # Try sorting and uniquifying the output.
5700 if sort "$nlist" | uniq > "$nlist"T; then
5701 mv -f "$nlist"T "$nlist"
5706 # Make sure that we snagged all the symbols we need.
5707 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5708 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5709 cat <<_LT_EOF > conftest.$ac_ext
5715 # Now generate the symbol file.
5716 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5718 cat <<_LT_EOF >> conftest.$ac_ext
5720 /* The mapping between symbol names and symbols. */
5725 lt__PROGRAM__LTX_preloaded_symbols[] =
5727 { "@PROGRAM@", (void *) 0 },
5729 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5730 cat <<\_LT_EOF >> conftest.$ac_ext
5734 /* This works around a problem in FreeBSD linker */
5735 #ifdef FREEBSD_WORKAROUND
5736 static const void *lt_preloaded_setup() {
5737 return lt__PROGRAM__LTX_preloaded_symbols;
5745 # Now try linking the two files.
5746 mv conftest.$ac_objext conftstm.$ac_objext
5747 lt_save_LIBS="$LIBS"
5748 lt_save_CFLAGS="$CFLAGS"
5749 LIBS="conftstm.$ac_objext"
5750 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5751 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5752 (eval $ac_link) 2>&5
5754 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5755 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5758 LIBS="$lt_save_LIBS"
5759 CFLAGS="$lt_save_CFLAGS"
5761 echo "cannot find nm_test_func in $nlist" >&5
5764 echo "cannot find nm_test_var in $nlist" >&5
5767 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5770 echo "$progname: failed program was:" >&5
5771 cat conftest.$ac_ext >&5
5773 rm -rf conftest* conftst*
5775 # Do not use the global_symbol_pipe unless it works.
5776 if test "$pipe_works" = yes; then
5779 lt_cv_sys_global_symbol_pipe=
5785 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5786 lt_cv_sys_global_symbol_to_cdecl=
5788 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5790 $as_echo "failed" >&6; }
5792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5793 $as_echo "ok" >&6; }
5818 # Check whether --enable-libtool-lock was given.
5819 if test "${enable_libtool_lock+set}" = set; then :
5820 enableval=$enable_libtool_lock;
5823 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5825 # Some flags need to be propagated to the compiler or linker for good
5829 # Find out which ABI we are using.
5830 echo 'int i;' > conftest.$ac_ext
5831 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5832 (eval $ac_compile) 2>&5
5834 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5835 test $ac_status = 0; }; then
5836 case `/usr/bin/file conftest.$ac_objext` in
5848 # Find out which ABI we are using.
5849 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
5850 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5851 (eval $ac_compile) 2>&5
5853 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5854 test $ac_status = 0; }; then
5855 if test "$lt_cv_prog_gnu_ld" = yes; then
5856 case `/usr/bin/file conftest.$ac_objext` in
5858 LD="${LD-ld} -melf32bsmip"
5861 LD="${LD-ld} -melf32bmipn32"
5864 LD="${LD-ld} -melf64bmip"
5868 case `/usr/bin/file conftest.$ac_objext` in
5884 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5885 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5886 # Find out which ABI we are using.
5887 echo 'int i;' > conftest.$ac_ext
5888 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5889 (eval $ac_compile) 2>&5
5891 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5892 test $ac_status = 0; }; then
5893 case `/usr/bin/file conftest.o` in
5896 x86_64-*kfreebsd*-gnu)
5897 LD="${LD-ld} -m elf_i386_fbsd"
5900 LD="${LD-ld} -m elf_i386"
5902 ppc64-*linux*|powerpc64-*linux*)
5903 LD="${LD-ld} -m elf32ppclinux"
5906 LD="${LD-ld} -m elf_s390"
5909 LD="${LD-ld} -m elf32_sparc"
5915 x86_64-*kfreebsd*-gnu)
5916 LD="${LD-ld} -m elf_x86_64_fbsd"
5919 LD="${LD-ld} -m elf_x86_64"
5921 ppc*-*linux*|powerpc*-*linux*)
5922 LD="${LD-ld} -m elf64ppc"
5924 s390*-*linux*|s390*-*tpf*)
5925 LD="${LD-ld} -m elf64_s390"
5928 LD="${LD-ld} -m elf64_sparc"
5938 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5939 SAVE_CFLAGS="$CFLAGS"
5940 CFLAGS="$CFLAGS -belf"
5941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
5942 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5943 if ${lt_cv_cc_needs_belf+:} false; then :
5944 $as_echo_n "(cached) " >&6
5947 ac_cpp='$CPP $CPPFLAGS'
5948 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5949 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5950 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5953 /* end confdefs.h. */
5963 if ac_fn_c_try_link "$LINENO"; then :
5964 lt_cv_cc_needs_belf=yes
5966 lt_cv_cc_needs_belf=no
5968 rm -f core conftest.err conftest.$ac_objext \
5969 conftest$ac_exeext conftest.$ac_ext
5971 ac_cpp='$CPP $CPPFLAGS'
5972 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5973 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5974 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
5978 $as_echo "$lt_cv_cc_needs_belf" >&6; }
5979 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5980 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5981 CFLAGS="$SAVE_CFLAGS"
5985 # Find out which ABI we are using.
5986 echo 'int i;' > conftest.$ac_ext
5987 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5988 (eval $ac_compile) 2>&5
5990 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5991 test $ac_status = 0; }; then
5992 case `/usr/bin/file conftest.o` in
5994 case $lt_cv_prog_gnu_ld in
5995 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5997 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6009 need_locks="$enable_libtool_lock"
6013 rhapsody* | darwin*)
6014 if test -n "$ac_tool_prefix"; then
6015 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6016 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6018 $as_echo_n "checking for $ac_word... " >&6; }
6019 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6020 $as_echo_n "(cached) " >&6
6022 if test -n "$DSYMUTIL"; then
6023 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6029 test -z "$as_dir" && as_dir=.
6030 for ac_exec_ext in '' $ac_executable_extensions; do
6031 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6032 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6042 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6043 if test -n "$DSYMUTIL"; then
6044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6045 $as_echo "$DSYMUTIL" >&6; }
6047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6048 $as_echo "no" >&6; }
6053 if test -z "$ac_cv_prog_DSYMUTIL"; then
6054 ac_ct_DSYMUTIL=$DSYMUTIL
6055 # Extract the first word of "dsymutil", so it can be a program name with args.
6056 set dummy dsymutil; ac_word=$2
6057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6058 $as_echo_n "checking for $ac_word... " >&6; }
6059 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6060 $as_echo_n "(cached) " >&6
6062 if test -n "$ac_ct_DSYMUTIL"; then
6063 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6069 test -z "$as_dir" && as_dir=.
6070 for ac_exec_ext in '' $ac_executable_extensions; do
6071 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6072 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6073 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6082 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6083 if test -n "$ac_ct_DSYMUTIL"; then
6084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6085 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6088 $as_echo "no" >&6; }
6091 if test "x$ac_ct_DSYMUTIL" = x; then
6094 case $cross_compiling:$ac_tool_warned in
6096 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6097 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6098 ac_tool_warned=yes ;;
6100 DSYMUTIL=$ac_ct_DSYMUTIL
6103 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6106 if test -n "$ac_tool_prefix"; then
6107 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6108 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6110 $as_echo_n "checking for $ac_word... " >&6; }
6111 if ${ac_cv_prog_NMEDIT+:} false; then :
6112 $as_echo_n "(cached) " >&6
6114 if test -n "$NMEDIT"; then
6115 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6121 test -z "$as_dir" && as_dir=.
6122 for ac_exec_ext in '' $ac_executable_extensions; do
6123 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6124 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6125 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6134 NMEDIT=$ac_cv_prog_NMEDIT
6135 if test -n "$NMEDIT"; then
6136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6137 $as_echo "$NMEDIT" >&6; }
6139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6140 $as_echo "no" >&6; }
6145 if test -z "$ac_cv_prog_NMEDIT"; then
6146 ac_ct_NMEDIT=$NMEDIT
6147 # Extract the first word of "nmedit", so it can be a program name with args.
6148 set dummy nmedit; ac_word=$2
6149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6150 $as_echo_n "checking for $ac_word... " >&6; }
6151 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6152 $as_echo_n "(cached) " >&6
6154 if test -n "$ac_ct_NMEDIT"; then
6155 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6161 test -z "$as_dir" && as_dir=.
6162 for ac_exec_ext in '' $ac_executable_extensions; do
6163 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6164 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6165 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6174 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6175 if test -n "$ac_ct_NMEDIT"; then
6176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6177 $as_echo "$ac_ct_NMEDIT" >&6; }
6179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6180 $as_echo "no" >&6; }
6183 if test "x$ac_ct_NMEDIT" = x; then
6186 case $cross_compiling:$ac_tool_warned in
6188 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6189 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6190 ac_tool_warned=yes ;;
6192 NMEDIT=$ac_ct_NMEDIT
6195 NMEDIT="$ac_cv_prog_NMEDIT"
6198 if test -n "$ac_tool_prefix"; then
6199 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6200 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6202 $as_echo_n "checking for $ac_word... " >&6; }
6203 if ${ac_cv_prog_LIPO+:} false; then :
6204 $as_echo_n "(cached) " >&6
6206 if test -n "$LIPO"; then
6207 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6213 test -z "$as_dir" && as_dir=.
6214 for ac_exec_ext in '' $ac_executable_extensions; do
6215 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6216 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6217 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6226 LIPO=$ac_cv_prog_LIPO
6227 if test -n "$LIPO"; then
6228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6229 $as_echo "$LIPO" >&6; }
6231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6232 $as_echo "no" >&6; }
6237 if test -z "$ac_cv_prog_LIPO"; then
6239 # Extract the first word of "lipo", so it can be a program name with args.
6240 set dummy lipo; ac_word=$2
6241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6242 $as_echo_n "checking for $ac_word... " >&6; }
6243 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6244 $as_echo_n "(cached) " >&6
6246 if test -n "$ac_ct_LIPO"; then
6247 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6253 test -z "$as_dir" && as_dir=.
6254 for ac_exec_ext in '' $ac_executable_extensions; do
6255 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6256 ac_cv_prog_ac_ct_LIPO="lipo"
6257 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6266 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6267 if test -n "$ac_ct_LIPO"; then
6268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6269 $as_echo "$ac_ct_LIPO" >&6; }
6271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6272 $as_echo "no" >&6; }
6275 if test "x$ac_ct_LIPO" = x; then
6278 case $cross_compiling:$ac_tool_warned in
6280 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6281 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6282 ac_tool_warned=yes ;;
6287 LIPO="$ac_cv_prog_LIPO"
6290 if test -n "$ac_tool_prefix"; then
6291 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6292 set dummy ${ac_tool_prefix}otool; ac_word=$2
6293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6294 $as_echo_n "checking for $ac_word... " >&6; }
6295 if ${ac_cv_prog_OTOOL+:} false; then :
6296 $as_echo_n "(cached) " >&6
6298 if test -n "$OTOOL"; then
6299 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6305 test -z "$as_dir" && as_dir=.
6306 for ac_exec_ext in '' $ac_executable_extensions; do
6307 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6308 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6309 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6318 OTOOL=$ac_cv_prog_OTOOL
6319 if test -n "$OTOOL"; then
6320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6321 $as_echo "$OTOOL" >&6; }
6323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6324 $as_echo "no" >&6; }
6329 if test -z "$ac_cv_prog_OTOOL"; then
6331 # Extract the first word of "otool", so it can be a program name with args.
6332 set dummy otool; ac_word=$2
6333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6334 $as_echo_n "checking for $ac_word... " >&6; }
6335 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6336 $as_echo_n "(cached) " >&6
6338 if test -n "$ac_ct_OTOOL"; then
6339 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6345 test -z "$as_dir" && as_dir=.
6346 for ac_exec_ext in '' $ac_executable_extensions; do
6347 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6348 ac_cv_prog_ac_ct_OTOOL="otool"
6349 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6358 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6359 if test -n "$ac_ct_OTOOL"; then
6360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6361 $as_echo "$ac_ct_OTOOL" >&6; }
6363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6364 $as_echo "no" >&6; }
6367 if test "x$ac_ct_OTOOL" = x; then
6370 case $cross_compiling:$ac_tool_warned in
6372 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6373 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6374 ac_tool_warned=yes ;;
6379 OTOOL="$ac_cv_prog_OTOOL"
6382 if test -n "$ac_tool_prefix"; then
6383 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6384 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6386 $as_echo_n "checking for $ac_word... " >&6; }
6387 if ${ac_cv_prog_OTOOL64+:} false; then :
6388 $as_echo_n "(cached) " >&6
6390 if test -n "$OTOOL64"; then
6391 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6397 test -z "$as_dir" && as_dir=.
6398 for ac_exec_ext in '' $ac_executable_extensions; do
6399 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6400 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6401 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6410 OTOOL64=$ac_cv_prog_OTOOL64
6411 if test -n "$OTOOL64"; then
6412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6413 $as_echo "$OTOOL64" >&6; }
6415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6416 $as_echo "no" >&6; }
6421 if test -z "$ac_cv_prog_OTOOL64"; then
6422 ac_ct_OTOOL64=$OTOOL64
6423 # Extract the first word of "otool64", so it can be a program name with args.
6424 set dummy otool64; ac_word=$2
6425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6426 $as_echo_n "checking for $ac_word... " >&6; }
6427 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6428 $as_echo_n "(cached) " >&6
6430 if test -n "$ac_ct_OTOOL64"; then
6431 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6437 test -z "$as_dir" && as_dir=.
6438 for ac_exec_ext in '' $ac_executable_extensions; do
6439 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6440 ac_cv_prog_ac_ct_OTOOL64="otool64"
6441 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6450 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6451 if test -n "$ac_ct_OTOOL64"; then
6452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6453 $as_echo "$ac_ct_OTOOL64" >&6; }
6455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6456 $as_echo "no" >&6; }
6459 if test "x$ac_ct_OTOOL64" = x; then
6462 case $cross_compiling:$ac_tool_warned in
6464 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6465 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6466 ac_tool_warned=yes ;;
6468 OTOOL64=$ac_ct_OTOOL64
6471 OTOOL64="$ac_cv_prog_OTOOL64"
6500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6501 $as_echo_n "checking for -single_module linker flag... " >&6; }
6502 if ${lt_cv_apple_cc_single_mod+:} false; then :
6503 $as_echo_n "(cached) " >&6
6505 lt_cv_apple_cc_single_mod=no
6506 if test -z "${LT_MULTI_MODULE}"; then
6507 # By default we will add the -single_module flag. You can override
6508 # by either setting the environment variable LT_MULTI_MODULE
6509 # non-empty at configure time, or by adding -multi_module to the
6511 rm -rf libconftest.dylib*
6512 echo "int foo(void){return 1;}" > conftest.c
6513 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6514 -dynamiclib -Wl,-single_module conftest.c" >&5
6515 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6516 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6518 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6519 lt_cv_apple_cc_single_mod=yes
6521 cat conftest.err >&5
6523 rm -rf libconftest.dylib*
6527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6528 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6530 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6531 if ${lt_cv_ld_exported_symbols_list+:} false; then :
6532 $as_echo_n "(cached) " >&6
6534 lt_cv_ld_exported_symbols_list=no
6535 save_LDFLAGS=$LDFLAGS
6536 echo "_main" > conftest.sym
6537 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6539 /* end confdefs.h. */
6549 if ac_fn_c_try_link "$LINENO"; then :
6550 lt_cv_ld_exported_symbols_list=yes
6552 lt_cv_ld_exported_symbols_list=no
6554 rm -f core conftest.err conftest.$ac_objext \
6555 conftest$ac_exeext conftest.$ac_ext
6556 LDFLAGS="$save_LDFLAGS"
6559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6560 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6562 $as_echo_n "checking for -force_load linker flag... " >&6; }
6563 if ${lt_cv_ld_force_load+:} false; then :
6564 $as_echo_n "(cached) " >&6
6566 lt_cv_ld_force_load=no
6567 cat > conftest.c << _LT_EOF
6568 int forced_loaded() { return 2;}
6570 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6571 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6572 echo "$AR cru libconftest.a conftest.o" >&5
6573 $AR cru libconftest.a conftest.o 2>&5
6574 echo "$RANLIB libconftest.a" >&5
6575 $RANLIB libconftest.a 2>&5
6576 cat > conftest.c << _LT_EOF
6577 int main() { return 0;}
6579 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6580 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6582 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
6583 lt_cv_ld_force_load=yes
6585 cat conftest.err >&5
6587 rm -f conftest.err libconftest.a conftest conftest.c
6588 rm -rf conftest.dSYM
6591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
6592 $as_echo "$lt_cv_ld_force_load" >&6; }
6594 rhapsody* | darwin1.[012])
6595 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6597 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6598 darwin*) # darwin 5.x on
6599 # if running on 10.5 or later, the deployment target defaults
6600 # to the OS version, if on x86, and 10.4, the deployment
6601 # target defaults to 10.4. Don't you love it?
6602 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6603 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6604 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6606 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6608 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6612 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6613 _lt_dar_single_mod='$single_module'
6615 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6616 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6618 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6620 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
6621 _lt_dsymutil='~$DSYMUTIL $lib || :'
6629 ac_cpp='$CPP $CPPFLAGS'
6630 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6631 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6632 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6634 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6635 # On Suns, sometimes $CPP names a directory.
6636 if test -n "$CPP" && test -d "$CPP"; then
6639 if test -z "$CPP"; then
6640 if ${ac_cv_prog_CPP+:} false; then :
6641 $as_echo_n "(cached) " >&6
6643 # Double quotes because CPP needs to be expanded
6644 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6647 for ac_c_preproc_warn_flag in '' yes
6649 # Use a header file that comes with gcc, so configuring glibc
6650 # with a fresh cross-compiler works.
6651 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6652 # <limits.h> exists even on freestanding compilers.
6653 # On the NeXT, cc -E runs the code through the compiler's parser,
6654 # not just through cpp. "Syntax error" is here to catch this case.
6655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6656 /* end confdefs.h. */
6658 # include <limits.h>
6660 # include <assert.h>
6664 if ac_fn_c_try_cpp "$LINENO"; then :
6667 # Broken: fails on valid input.
6670 rm -f conftest.err conftest.i conftest.$ac_ext
6672 # OK, works on sane cases. Now check whether nonexistent headers
6673 # can be detected and how.
6674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6675 /* end confdefs.h. */
6676 #include <ac_nonexistent.h>
6678 if ac_fn_c_try_cpp "$LINENO"; then :
6679 # Broken: success on invalid input.
6682 # Passes both tests.
6686 rm -f conftest.err conftest.i conftest.$ac_ext
6689 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6690 rm -f conftest.i conftest.err conftest.$ac_ext
6691 if $ac_preproc_ok; then :
6703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6704 $as_echo "$CPP" >&6; }
6706 for ac_c_preproc_warn_flag in '' yes
6708 # Use a header file that comes with gcc, so configuring glibc
6709 # with a fresh cross-compiler works.
6710 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6711 # <limits.h> exists even on freestanding compilers.
6712 # On the NeXT, cc -E runs the code through the compiler's parser,
6713 # not just through cpp. "Syntax error" is here to catch this case.
6714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6715 /* end confdefs.h. */
6717 # include <limits.h>
6719 # include <assert.h>
6723 if ac_fn_c_try_cpp "$LINENO"; then :
6726 # Broken: fails on valid input.
6729 rm -f conftest.err conftest.i conftest.$ac_ext
6731 # OK, works on sane cases. Now check whether nonexistent headers
6732 # can be detected and how.
6733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6734 /* end confdefs.h. */
6735 #include <ac_nonexistent.h>
6737 if ac_fn_c_try_cpp "$LINENO"; then :
6738 # Broken: success on invalid input.
6741 # Passes both tests.
6745 rm -f conftest.err conftest.i conftest.$ac_ext
6748 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6749 rm -f conftest.i conftest.err conftest.$ac_ext
6750 if $ac_preproc_ok; then :
6753 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6754 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6755 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6756 See \`config.log' for more details" "$LINENO" 5; }
6760 ac_cpp='$CPP $CPPFLAGS'
6761 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6762 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6763 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6767 $as_echo_n "checking for ANSI C header files... " >&6; }
6768 if ${ac_cv_header_stdc+:} false; then :
6769 $as_echo_n "(cached) " >&6
6771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6772 /* end confdefs.h. */
6786 if ac_fn_c_try_compile "$LINENO"; then :
6787 ac_cv_header_stdc=yes
6789 ac_cv_header_stdc=no
6791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6793 if test $ac_cv_header_stdc = yes; then
6794 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6796 /* end confdefs.h. */
6800 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6801 $EGREP "memchr" >/dev/null 2>&1; then :
6804 ac_cv_header_stdc=no
6810 if test $ac_cv_header_stdc = yes; then
6811 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6813 /* end confdefs.h. */
6817 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6818 $EGREP "free" >/dev/null 2>&1; then :
6821 ac_cv_header_stdc=no
6827 if test $ac_cv_header_stdc = yes; then
6828 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6829 if test "$cross_compiling" = yes; then :
6832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6833 /* end confdefs.h. */
6836 #if ((' ' & 0x0FF) == 0x020)
6837 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6838 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6840 # define ISLOWER(c) \
6841 (('a' <= (c) && (c) <= 'i') \
6842 || ('j' <= (c) && (c) <= 'r') \
6843 || ('s' <= (c) && (c) <= 'z'))
6844 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6847 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6852 for (i = 0; i < 256; i++)
6853 if (XOR (islower (i), ISLOWER (i))
6854 || toupper (i) != TOUPPER (i))
6859 if ac_fn_c_try_run "$LINENO"; then :
6862 ac_cv_header_stdc=no
6864 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6865 conftest.$ac_objext conftest.beam conftest.$ac_ext
6870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6871 $as_echo "$ac_cv_header_stdc" >&6; }
6872 if test $ac_cv_header_stdc = yes; then
6874 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6878 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6879 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6880 inttypes.h stdint.h unistd.h
6882 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6883 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6885 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6886 cat >>confdefs.h <<_ACEOF
6887 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6895 for ac_header in dlfcn.h
6897 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
6899 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
6900 cat >>confdefs.h <<_ACEOF
6901 #define HAVE_DLFCN_H 1
6922 # Check whether --enable-shared was given.
6923 if test "${enable_shared+set}" = set; then :
6924 enableval=$enable_shared; p=${PACKAGE-default}
6926 yes) enable_shared=yes ;;
6927 no) enable_shared=no ;;
6930 # Look at the argument we got. We use all the common list separators.
6931 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6932 for pkg in $enableval; do
6934 if test "X$pkg" = "X$p"; then
6953 # Check whether --enable-static was given.
6954 if test "${enable_static+set}" = set; then :
6955 enableval=$enable_static; p=${PACKAGE-default}
6957 yes) enable_static=yes ;;
6958 no) enable_static=no ;;
6961 # Look at the argument we got. We use all the common list separators.
6962 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6963 for pkg in $enableval; do
6965 if test "X$pkg" = "X$p"; then
6985 # Check whether --with-pic was given.
6986 if test "${with_pic+set}" = set; then :
6987 withval=$with_pic; pic_mode="$withval"
6993 test -z "$pic_mode" && pic_mode=default
7001 # Check whether --enable-fast-install was given.
7002 if test "${enable_fast_install+set}" = set; then :
7003 enableval=$enable_fast_install; p=${PACKAGE-default}
7005 yes) enable_fast_install=yes ;;
7006 no) enable_fast_install=no ;;
7008 enable_fast_install=no
7009 # Look at the argument we got. We use all the common list separators.
7010 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7011 for pkg in $enableval; do
7013 if test "X$pkg" = "X$p"; then
7014 enable_fast_install=yes
7021 enable_fast_install=yes
7034 # This can be used to rebuild libtool when needed
7035 LIBTOOL_DEPS="$ltmain"
7037 # Always use our own libtool.
7038 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7065 test -z "$LN_S" && LN_S="ln -s"
7080 if test -n "${ZSH_VERSION+set}" ; then
7081 setopt NO_GLOB_SUBST
7084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7085 $as_echo_n "checking for objdir... " >&6; }
7086 if ${lt_cv_objdir+:} false; then :
7087 $as_echo_n "(cached) " >&6
7089 rm -f .libs 2>/dev/null
7090 mkdir .libs 2>/dev/null
7091 if test -d .libs; then
7094 # MS-DOS does not allow filenames that begin with a dot.
7097 rmdir .libs 2>/dev/null
7099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7100 $as_echo "$lt_cv_objdir" >&6; }
7101 objdir=$lt_cv_objdir
7107 cat >>confdefs.h <<_ACEOF
7108 #define LT_OBJDIR "$lt_cv_objdir/"
7116 # AIX sometimes has problems with the GCC collect2 program. For some
7117 # reason, if we set the COLLECT_NAMES environment variable, the problems
7118 # vanish in a puff of smoke.
7119 if test "X${COLLECT_NAMES+set}" != Xset; then
7121 export COLLECT_NAMES
7128 can_build_shared=yes
7130 # All known linkers require a `.a' archive for static linking (except MSVC,
7131 # which needs '.lib').
7134 with_gnu_ld="$lt_cv_prog_gnu_ld"
7137 old_CFLAGS="$CFLAGS"
7139 # Set sane defaults for various variables
7140 test -z "$CC" && CC=cc
7141 test -z "$LTCC" && LTCC=$CC
7142 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7143 test -z "$LD" && LD=ld
7144 test -z "$ac_objext" && ac_objext=o
7146 for cc_temp in $compiler""; do
7148 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7149 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7154 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7157 # Only perform the check for file, if the check method requires it
7158 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7159 case $deplibs_check_method in
7161 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7163 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7164 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7165 $as_echo_n "(cached) " >&6
7169 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7172 lt_save_MAGIC_CMD="$MAGIC_CMD"
7173 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7174 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7175 for ac_dir in $ac_dummy; do
7177 test -z "$ac_dir" && ac_dir=.
7178 if test -f $ac_dir/${ac_tool_prefix}file; then
7179 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7180 if test -n "$file_magic_test_file"; then
7181 case $deplibs_check_method in
7183 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7184 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7185 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7186 $EGREP "$file_magic_regex" > /dev/null; then
7191 *** Warning: the command libtool uses to detect shared libraries,
7192 *** $file_magic_cmd, produces output that libtool cannot recognize.
7193 *** The result is that libtool may fail to recognize shared libraries
7194 *** as such. This will affect the creation of libtool libraries that
7195 *** depend on shared libraries, but programs linked with such libtool
7196 *** libraries will work regardless of this problem. Nevertheless, you
7197 *** may want to report the problem to your system manager and/or to
7198 *** bug-libtool@gnu.org
7208 MAGIC_CMD="$lt_save_MAGIC_CMD"
7213 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7214 if test -n "$MAGIC_CMD"; then
7215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7216 $as_echo "$MAGIC_CMD" >&6; }
7218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7219 $as_echo "no" >&6; }
7226 if test -z "$lt_cv_path_MAGIC_CMD"; then
7227 if test -n "$ac_tool_prefix"; then
7228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7229 $as_echo_n "checking for file... " >&6; }
7230 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7231 $as_echo_n "(cached) " >&6
7235 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7238 lt_save_MAGIC_CMD="$MAGIC_CMD"
7239 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7240 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7241 for ac_dir in $ac_dummy; do
7243 test -z "$ac_dir" && ac_dir=.
7244 if test -f $ac_dir/file; then
7245 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7246 if test -n "$file_magic_test_file"; then
7247 case $deplibs_check_method in
7249 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7250 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7251 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7252 $EGREP "$file_magic_regex" > /dev/null; then
7257 *** Warning: the command libtool uses to detect shared libraries,
7258 *** $file_magic_cmd, produces output that libtool cannot recognize.
7259 *** The result is that libtool may fail to recognize shared libraries
7260 *** as such. This will affect the creation of libtool libraries that
7261 *** depend on shared libraries, but programs linked with such libtool
7262 *** libraries will work regardless of this problem. Nevertheless, you
7263 *** may want to report the problem to your system manager and/or to
7264 *** bug-libtool@gnu.org
7274 MAGIC_CMD="$lt_save_MAGIC_CMD"
7279 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7280 if test -n "$MAGIC_CMD"; then
7281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7282 $as_echo "$MAGIC_CMD" >&6; }
7284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7285 $as_echo "no" >&6; }
7298 # Use C for the default configuration in the libtool script
7302 ac_cpp='$CPP $CPPFLAGS'
7303 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7304 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7305 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7308 # Source file extension for C test sources.
7311 # Object file extension for compiled C test sources.
7315 # Code to be used in simple compile tests
7316 lt_simple_compile_test_code="int some_variable = 0;"
7318 # Code to be used in simple link tests
7319 lt_simple_link_test_code='int main(){return(0);}'
7327 # If no C compiler was specified, use CC.
7330 # If no C compiler flags were specified, use CFLAGS.
7331 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7333 # Allow CC to be a program name with arguments.
7336 # Save the default compiler, since it gets overwritten when the other
7337 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7338 compiler_DEFAULT=$CC
7340 # save warnings/boilerplate of simple test code
7341 ac_outfile=conftest.$ac_objext
7342 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7343 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7344 _lt_compiler_boilerplate=`cat conftest.err`
7347 ac_outfile=conftest.$ac_objext
7348 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7349 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7350 _lt_linker_boilerplate=`cat conftest.err`
7354 if test -n "$compiler"; then
7356 lt_prog_compiler_no_builtin_flag=
7358 if test "$GCC" = yes; then
7359 case $cc_basename in
7361 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7363 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7367 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7368 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7369 $as_echo_n "(cached) " >&6
7371 lt_cv_prog_compiler_rtti_exceptions=no
7372 ac_outfile=conftest.$ac_objext
7373 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7374 lt_compiler_flag="-fno-rtti -fno-exceptions"
7375 # Insert the option either (1) after the last *FLAGS variable, or
7376 # (2) before a word containing "conftest.", or (3) at the end.
7377 # Note that $ac_compile itself does not contain backslashes and begins
7378 # with a dollar sign (not a hyphen), so the echo should work correctly.
7379 # The option is referenced via a variable to avoid confusing sed.
7380 lt_compile=`echo "$ac_compile" | $SED \
7381 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7382 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7383 -e 's:$: $lt_compiler_flag:'`
7384 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7385 (eval "$lt_compile" 2>conftest.err)
7387 cat conftest.err >&5
7388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7389 if (exit $ac_status) && test -s "$ac_outfile"; then
7390 # The compiler can only warn and ignore the option if not recognized
7391 # So say no if there are warnings other than the usual output.
7392 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7393 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7394 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7395 lt_cv_prog_compiler_rtti_exceptions=yes
7401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7402 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7404 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7405 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7417 lt_prog_compiler_wl=
7418 lt_prog_compiler_pic=
7419 lt_prog_compiler_static=
7421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7422 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7424 if test "$GCC" = yes; then
7425 lt_prog_compiler_wl='-Wl,'
7426 lt_prog_compiler_static='-static'
7430 # All AIX code is PIC.
7431 if test "$host_cpu" = ia64; then
7432 # AIX 5 now supports IA64 processor
7433 lt_prog_compiler_static='-Bstatic'
7440 # see comment about AmigaOS4 .so support
7441 lt_prog_compiler_pic='-fPIC'
7444 # FIXME: we need at least 68020 code to build shared libraries, but
7445 # adding the `-m68020' flag to GCC prevents building anything better,
7447 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7452 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7453 # PIC is the default for these OSes.
7456 mingw* | cygwin* | pw32* | os2* | cegcc*)
7457 # This hack is so that the source file can tell whether it is being
7458 # built for inclusion in a dll (and should export symbols for example).
7459 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7460 # (--disable-auto-import) libraries
7461 lt_prog_compiler_pic='-DDLL_EXPORT'
7464 darwin* | rhapsody*)
7465 # PIC is the default on this platform
7466 # Common symbols not allowed in MH_DYLIB files
7467 lt_prog_compiler_pic='-fno-common'
7471 # PIC is the default for Haiku.
7472 # The "-static" flag exists, but is broken.
7473 lt_prog_compiler_static=
7477 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7478 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7479 # sets the default TLS model and affects inlining.
7485 lt_prog_compiler_pic='-fPIC'
7491 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7492 # Instead, we relocate shared libraries at runtime.
7496 # Just because we use GCC doesn't mean we suddenly get shared libraries
7497 # on systems that don't support them.
7498 lt_prog_compiler_can_build_shared=no
7503 # QNX uses GNU C++, but need to define -shared option too, otherwise
7505 lt_prog_compiler_pic='-fPIC -shared'
7509 if test -d /usr/nec; then
7510 lt_prog_compiler_pic=-Kconform_pic
7515 lt_prog_compiler_pic='-fPIC'
7519 case $cc_basename in
7520 nvcc*) # Cuda Compiler Driver 2.2
7521 lt_prog_compiler_wl='-Xlinker '
7522 lt_prog_compiler_pic='-Xcompiler -fPIC'
7526 # PORTME Check for flag to pass linker flags through the system compiler.
7529 lt_prog_compiler_wl='-Wl,'
7530 if test "$host_cpu" = ia64; then
7531 # AIX 5 now supports IA64 processor
7532 lt_prog_compiler_static='-Bstatic'
7534 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7538 mingw* | cygwin* | pw32* | os2* | cegcc*)
7539 # This hack is so that the source file can tell whether it is being
7540 # built for inclusion in a dll (and should export symbols for example).
7541 lt_prog_compiler_pic='-DDLL_EXPORT'
7544 hpux9* | hpux10* | hpux11*)
7545 lt_prog_compiler_wl='-Wl,'
7546 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7553 lt_prog_compiler_pic='+Z'
7556 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7557 lt_prog_compiler_static='${wl}-a ${wl}archive'
7560 irix5* | irix6* | nonstopux*)
7561 lt_prog_compiler_wl='-Wl,'
7562 # PIC (with -KPIC) is the default.
7563 lt_prog_compiler_static='-non_shared'
7566 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7567 case $cc_basename in
7568 # old Intel for x86_64 which still supported -KPIC.
7570 lt_prog_compiler_wl='-Wl,'
7571 lt_prog_compiler_pic='-KPIC'
7572 lt_prog_compiler_static='-static'
7574 # icc used to be incompatible with GCC.
7575 # ICC 10 doesn't accept -KPIC any more.
7577 lt_prog_compiler_wl='-Wl,'
7578 lt_prog_compiler_pic='-fPIC'
7579 lt_prog_compiler_static='-static'
7581 # Lahey Fortran 8.1.
7583 lt_prog_compiler_wl='-Wl,'
7584 lt_prog_compiler_pic='--shared'
7585 lt_prog_compiler_static='--static'
7587 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
7588 # Portland Group compilers (*not* the Pentium gcc compiler,
7589 # which looks to be a dead project)
7590 lt_prog_compiler_wl='-Wl,'
7591 lt_prog_compiler_pic='-fpic'
7592 lt_prog_compiler_static='-Bstatic'
7595 lt_prog_compiler_wl='-Wl,'
7596 # All Alpha code is PIC.
7597 lt_prog_compiler_static='-non_shared'
7599 xl* | bgxl* | bgf* | mpixl*)
7600 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
7601 lt_prog_compiler_wl='-Wl,'
7602 lt_prog_compiler_pic='-qpic'
7603 lt_prog_compiler_static='-qstaticlink'
7606 case `$CC -V 2>&1 | sed 5q` in
7607 *Sun\ F* | *Sun*Fortran*)
7608 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7609 lt_prog_compiler_pic='-KPIC'
7610 lt_prog_compiler_static='-Bstatic'
7611 lt_prog_compiler_wl=''
7615 lt_prog_compiler_pic='-KPIC'
7616 lt_prog_compiler_static='-Bstatic'
7617 lt_prog_compiler_wl='-Wl,'
7625 lt_prog_compiler_pic='-KPIC'
7626 lt_prog_compiler_static='-Bstatic'
7630 # QNX uses GNU C++, but need to define -shared option too, otherwise
7632 lt_prog_compiler_pic='-fPIC -shared'
7635 osf3* | osf4* | osf5*)
7636 lt_prog_compiler_wl='-Wl,'
7637 # All OSF/1 code is PIC.
7638 lt_prog_compiler_static='-non_shared'
7642 lt_prog_compiler_static='-non_shared'
7646 lt_prog_compiler_pic='-KPIC'
7647 lt_prog_compiler_static='-Bstatic'
7648 case $cc_basename in
7649 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
7650 lt_prog_compiler_wl='-Qoption ld ';;
7652 lt_prog_compiler_wl='-Wl,';;
7657 lt_prog_compiler_wl='-Qoption ld '
7658 lt_prog_compiler_pic='-PIC'
7659 lt_prog_compiler_static='-Bstatic'
7662 sysv4 | sysv4.2uw2* | sysv4.3*)
7663 lt_prog_compiler_wl='-Wl,'
7664 lt_prog_compiler_pic='-KPIC'
7665 lt_prog_compiler_static='-Bstatic'
7669 if test -d /usr/nec ;then
7670 lt_prog_compiler_pic='-Kconform_pic'
7671 lt_prog_compiler_static='-Bstatic'
7675 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7676 lt_prog_compiler_wl='-Wl,'
7677 lt_prog_compiler_pic='-KPIC'
7678 lt_prog_compiler_static='-Bstatic'
7682 lt_prog_compiler_wl='-Wl,'
7683 lt_prog_compiler_can_build_shared=no
7687 lt_prog_compiler_pic='-pic'
7688 lt_prog_compiler_static='-Bstatic'
7692 lt_prog_compiler_can_build_shared=no
7698 # For platforms which do not support PIC, -DPIC is meaningless:
7700 lt_prog_compiler_pic=
7703 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
7707 $as_echo "$lt_prog_compiler_pic" >&6; }
7715 # Check to make sure the PIC flag actually works.
7717 if test -n "$lt_prog_compiler_pic"; then
7718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7719 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7720 if ${lt_cv_prog_compiler_pic_works+:} false; then :
7721 $as_echo_n "(cached) " >&6
7723 lt_cv_prog_compiler_pic_works=no
7724 ac_outfile=conftest.$ac_objext
7725 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7726 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7727 # Insert the option either (1) after the last *FLAGS variable, or
7728 # (2) before a word containing "conftest.", or (3) at the end.
7729 # Note that $ac_compile itself does not contain backslashes and begins
7730 # with a dollar sign (not a hyphen), so the echo should work correctly.
7731 # The option is referenced via a variable to avoid confusing sed.
7732 lt_compile=`echo "$ac_compile" | $SED \
7733 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7734 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7735 -e 's:$: $lt_compiler_flag:'`
7736 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7737 (eval "$lt_compile" 2>conftest.err)
7739 cat conftest.err >&5
7740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7741 if (exit $ac_status) && test -s "$ac_outfile"; then
7742 # The compiler can only warn and ignore the option if not recognized
7743 # So say no if there are warnings other than the usual output.
7744 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7745 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7746 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7747 lt_cv_prog_compiler_pic_works=yes
7753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7754 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7756 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7757 case $lt_prog_compiler_pic in
7759 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7762 lt_prog_compiler_pic=
7763 lt_prog_compiler_can_build_shared=no
7774 # Check to make sure the static flag actually works.
7776 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7778 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7779 if ${lt_cv_prog_compiler_static_works+:} false; then :
7780 $as_echo_n "(cached) " >&6
7782 lt_cv_prog_compiler_static_works=no
7783 save_LDFLAGS="$LDFLAGS"
7784 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7785 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7786 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7787 # The linker can only warn and ignore the option if not recognized
7788 # So say no if there are warnings
7789 if test -s conftest.err; then
7790 # Append any errors to the config.log.
7791 cat conftest.err 1>&5
7792 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
7793 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7794 if diff conftest.exp conftest.er2 >/dev/null; then
7795 lt_cv_prog_compiler_static_works=yes
7798 lt_cv_prog_compiler_static_works=yes
7802 LDFLAGS="$save_LDFLAGS"
7805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
7806 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7808 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7811 lt_prog_compiler_static=
7820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7821 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7822 if ${lt_cv_prog_compiler_c_o+:} false; then :
7823 $as_echo_n "(cached) " >&6
7825 lt_cv_prog_compiler_c_o=no
7826 $RM -r conftest 2>/dev/null
7830 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7832 lt_compiler_flag="-o out/conftest2.$ac_objext"
7833 # Insert the option either (1) after the last *FLAGS variable, or
7834 # (2) before a word containing "conftest.", or (3) at the end.
7835 # Note that $ac_compile itself does not contain backslashes and begins
7836 # with a dollar sign (not a hyphen), so the echo should work correctly.
7837 lt_compile=`echo "$ac_compile" | $SED \
7838 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7839 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7840 -e 's:$: $lt_compiler_flag:'`
7841 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7842 (eval "$lt_compile" 2>out/conftest.err)
7844 cat out/conftest.err >&5
7845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7846 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7848 # The compiler can only warn and ignore the option if not recognized
7849 # So say no if there are warnings
7850 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
7851 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7852 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7853 lt_cv_prog_compiler_c_o=yes
7858 # SGI C++ compiler will create directory out/ii_files/ for
7859 # template instantiation
7860 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7861 $RM out/* && rmdir out
7867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7868 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7876 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7877 if ${lt_cv_prog_compiler_c_o+:} false; then :
7878 $as_echo_n "(cached) " >&6
7880 lt_cv_prog_compiler_c_o=no
7881 $RM -r conftest 2>/dev/null
7885 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7887 lt_compiler_flag="-o out/conftest2.$ac_objext"
7888 # Insert the option either (1) after the last *FLAGS variable, or
7889 # (2) before a word containing "conftest.", or (3) at the end.
7890 # Note that $ac_compile itself does not contain backslashes and begins
7891 # with a dollar sign (not a hyphen), so the echo should work correctly.
7892 lt_compile=`echo "$ac_compile" | $SED \
7893 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7894 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7895 -e 's:$: $lt_compiler_flag:'`
7896 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7897 (eval "$lt_compile" 2>out/conftest.err)
7899 cat out/conftest.err >&5
7900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7901 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7903 # The compiler can only warn and ignore the option if not recognized
7904 # So say no if there are warnings
7905 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
7906 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7907 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7908 lt_cv_prog_compiler_c_o=yes
7913 # SGI C++ compiler will create directory out/ii_files/ for
7914 # template instantiation
7915 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7916 $RM out/* && rmdir out
7922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7923 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7928 hard_links="nottested"
7929 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7930 # do not overwrite the value of need_locks provided by the user
7931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
7932 $as_echo_n "checking if we can lock with hard links... " >&6; }
7935 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7937 ln conftest.a conftest.b 2>&5 || hard_links=no
7938 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
7940 $as_echo "$hard_links" >&6; }
7941 if test "$hard_links" = no; then
7942 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7943 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7956 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
7959 allow_undefined_flag=
7960 always_export_symbols=no
7962 archive_expsym_cmds=
7963 compiler_needs_object=no
7964 enable_shared_with_static_runtimes=no
7965 export_dynamic_flag_spec=
7966 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7967 hardcode_automatic=no
7969 hardcode_direct_absolute=no
7970 hardcode_libdir_flag_spec=
7971 hardcode_libdir_flag_spec_ld=
7972 hardcode_libdir_separator=
7974 hardcode_shlibpath_var=unsupported
7976 link_all_deplibs=unknown
7979 old_archive_from_new_cmds=
7980 old_archive_from_expsyms_cmds=
7981 thread_safe_flag_spec=
7982 whole_archive_flag_spec=
7983 # include_expsyms should be a list of space-separated symbols to be *always*
7984 # included in the symbol list
7986 # exclude_expsyms can be an extended regexp of symbols to exclude
7987 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7988 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7989 # as well as any symbol that contains `d'.
7990 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7991 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7992 # platforms (ab)use it in PIC code, but their linkers get confused if
7993 # the symbol is explicitly referenced. Since portable code cannot
7994 # rely on this symbol name, it's probably fine to never include it in
7995 # preloaded symbol tables.
7996 # Exclude shared library initialization/finalization symbols.
7997 extract_expsyms_cmds=
8000 cygwin* | mingw* | pw32* | cegcc*)
8001 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8002 # When not using gcc, we currently assume that we are using
8003 # Microsoft Visual C++.
8004 if test "$GCC" != yes; then
8009 # we just hope/assume this is gcc and not c89 (= MSVC++)
8019 # On some targets, GNU ld is compatible enough with the native linker
8020 # that we're better off using the native interface for both.
8021 lt_use_gnu_ld_interface=no
8022 if test "$with_gnu_ld" = yes; then
8025 # The AIX port of GNU ld has always aspired to compatibility
8026 # with the native linker. However, as the warning in the GNU ld
8027 # block says, versions before 2.19.5* couldn't really create working
8028 # shared libraries, regardless of the interface used.
8029 case `$LD -v 2>&1` in
8030 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8031 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8032 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8034 lt_use_gnu_ld_interface=yes
8039 lt_use_gnu_ld_interface=yes
8044 if test "$lt_use_gnu_ld_interface" = yes; then
8045 # If archive_cmds runs LD, not CC, wlarc should be empty
8048 # Set some defaults for GNU ld with shared library support. These
8049 # are reset later if shared libraries are not supported. Putting them
8050 # here allows them to be overridden if necessary.
8051 runpath_var=LD_RUN_PATH
8052 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8053 export_dynamic_flag_spec='${wl}--export-dynamic'
8054 # ancient GNU ld didn't support --whole-archive et. al.
8055 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8056 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8058 whole_archive_flag_spec=
8060 supports_anon_versioning=no
8061 case `$LD -v 2>&1` in
8062 *GNU\ gold*) supports_anon_versioning=yes ;;
8063 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8064 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8065 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8066 *\ 2.11.*) ;; # other 2.11 versions
8067 *) supports_anon_versioning=yes ;;
8070 # See if GNU ld supports shared libraries.
8073 # On AIX/PPC, the GNU linker is very broken
8074 if test "$host_cpu" != ia64; then
8078 *** Warning: the GNU linker, at least up to release 2.19, is reported
8079 *** to be unable to reliably create shared libraries on AIX.
8080 *** Therefore, libtool is disabling shared libraries support. If you
8081 *** really care for shared libraries, you may want to install binutils
8082 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8083 *** You will then need to restart the configuration process.
8092 # see comment about AmigaOS4 .so support
8093 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8094 archive_expsym_cmds=''
8097 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)'
8098 hardcode_libdir_flag_spec='-L$libdir'
8099 hardcode_minus_L=yes
8105 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8106 allow_undefined_flag=unsupported
8107 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8108 # support --undefined. This deserves some investigation. FIXME
8109 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8115 cygwin* | mingw* | pw32* | cegcc*)
8116 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8117 # as there is no search path for DLLs.
8118 hardcode_libdir_flag_spec='-L$libdir'
8119 export_dynamic_flag_spec='${wl}--export-all-symbols'
8120 allow_undefined_flag=unsupported
8121 always_export_symbols=no
8122 enable_shared_with_static_runtimes=yes
8123 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8125 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8126 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8127 # If the export-symbols file already is a .def file (1st line
8128 # is EXPORTS), use it as is; otherwise, prepend...
8129 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8130 cp $export_symbols $output_objdir/$soname.def;
8132 echo EXPORTS > $output_objdir/$soname.def;
8133 cat $export_symbols >> $output_objdir/$soname.def;
8135 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8142 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8143 link_all_deplibs=yes
8148 hardcode_shlibpath_var=no
8149 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8150 export_dynamic_flag_spec='${wl}-E'
8151 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8152 # Instead, shared libraries are loaded at an image base (0x10000000 by
8153 # default) and relocated if they conflict, which is a slow very memory
8154 # consuming and fragmenting process. To avoid this, we pick a random,
8155 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8156 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8157 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8158 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'
8161 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8163 if test "$host_os" = linux-dietlibc; then
8164 case $cc_basename in
8165 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8168 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8169 && test "$tmp_diet" = no
8172 tmp_sharedflag='-shared'
8173 case $cc_basename,$host_cpu in
8174 pgcc*) # Portland Group C compiler
8175 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8176 tmp_addflag=' $pic_flag'
8178 pgf77* | pgf90* | pgf95* | pgfortran*)
8179 # Portland Group f77 and f90 compilers
8180 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8181 tmp_addflag=' $pic_flag -Mnomain' ;;
8182 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8183 tmp_addflag=' -i_dynamic' ;;
8184 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8185 tmp_addflag=' -i_dynamic -nofor_main' ;;
8186 ifc* | ifort*) # Intel Fortran compiler
8187 tmp_addflag=' -nofor_main' ;;
8188 lf95*) # Lahey Fortran 8.1
8189 whole_archive_flag_spec=
8190 tmp_sharedflag='--shared' ;;
8191 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8192 tmp_sharedflag='-qmkshrobj'
8194 nvcc*) # Cuda Compiler Driver 2.2
8195 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8196 compiler_needs_object=yes
8199 case `$CC -V 2>&1 | sed 5q` in
8200 *Sun\ C*) # Sun C 5.9
8201 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8202 compiler_needs_object=yes
8203 tmp_sharedflag='-G' ;;
8204 *Sun\ F*) # Sun Fortran 8.3
8205 tmp_sharedflag='-G' ;;
8207 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8209 if test "x$supports_anon_versioning" = xyes; then
8210 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8211 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8212 echo "local: *; };" >> $output_objdir/$libname.ver~
8213 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8216 case $cc_basename in
8217 xlf* | bgf* | bgxlf* | mpixlf*)
8218 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8219 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8220 hardcode_libdir_flag_spec=
8221 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8222 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8223 if test "x$supports_anon_versioning" = xyes; then
8224 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8225 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8226 echo "local: *; };" >> $output_objdir/$libname.ver~
8227 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8237 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8238 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8241 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8242 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8247 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8251 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8252 *** create shared libraries on Solaris systems. Therefore, libtool
8253 *** is disabling shared libraries support. We urge you to upgrade GNU
8254 *** binutils to release 2.9.1 or newer. Another option is to modify
8255 *** your PATH or compiler configuration so that the native linker is
8256 *** used, and then restart.
8259 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8260 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8261 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8267 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8268 case `$LD -v 2>&1` in
8269 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8273 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8274 *** reliably create shared libraries on SCO systems. Therefore, libtool
8275 *** is disabling shared libraries support. We urge you to upgrade GNU
8276 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8277 *** your PATH or compiler configuration so that the native linker is
8278 *** used, and then restart.
8283 # For security reasons, it is highly recommended that you always
8284 # use absolute paths for naming shared libraries, and exclude the
8285 # DT_RUNPATH tag from executables and libraries. But doing so
8286 # requires that you compile everything twice, which is a pain.
8287 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8288 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8289 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8290 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8299 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8302 hardcode_shlibpath_var=no
8306 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8307 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8308 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8315 if test "$ld_shlibs" = no; then
8317 hardcode_libdir_flag_spec=
8318 export_dynamic_flag_spec=
8319 whole_archive_flag_spec=
8322 # PORTME fill in a description of your system's linker (not GNU ld)
8325 allow_undefined_flag=unsupported
8326 always_export_symbols=yes
8327 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'
8328 # Note: this linker hardcodes the directories in LIBPATH if there
8329 # are no directories specified by -L.
8330 hardcode_minus_L=yes
8331 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8332 # Neither direct hardcoding nor static linking is supported with a
8334 hardcode_direct=unsupported
8339 if test "$host_cpu" = ia64; then
8340 # On IA64, the linker does run time linking by default, so we don't
8341 # have to do anything special.
8342 aix_use_runtimelinking=no
8343 exp_sym_flag='-Bexport'
8346 # If we're using GNU nm, then we don't want the "-C" option.
8347 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8348 # Also, AIX nm treats weak defined symbols like other global
8349 # defined symbols, whereas GNU nm marks them as "W".
8350 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8351 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8353 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'
8355 aix_use_runtimelinking=no
8357 # Test if we are trying to use run time linking or normal
8358 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8359 # need to do runtime linking.
8360 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8361 for ld_flag in $LDFLAGS; do
8362 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8363 aix_use_runtimelinking=yes
8370 exp_sym_flag='-bexport'
8371 no_entry_flag='-bnoentry'
8374 # When large executables or shared objects are built, AIX ld can
8375 # have problems creating the table of contents. If linking a library
8376 # or program results in "error TOC overflow" add -mminimal-toc to
8377 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8378 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8382 hardcode_direct_absolute=yes
8383 hardcode_libdir_separator=':'
8384 link_all_deplibs=yes
8385 file_list_spec='${wl}-f,'
8387 if test "$GCC" = yes; then
8388 case $host_os in aix4.[012]|aix4.[012].*)
8389 # We only want to do this on AIX 4.2 and lower, the check
8390 # below for broken collect2 doesn't work under 4.3+
8391 collect2name=`${CC} -print-prog-name=collect2`
8392 if test -f "$collect2name" &&
8393 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8395 # We have reworked collect2
8398 # We have old collect2
8399 hardcode_direct=unsupported
8400 # It fails to find uninstalled libraries when the uninstalled
8401 # path is not listed in the libpath. Setting hardcode_minus_L
8402 # to unsupported forces relinking
8403 hardcode_minus_L=yes
8404 hardcode_libdir_flag_spec='-L$libdir'
8405 hardcode_libdir_separator=
8409 shared_flag='-shared'
8410 if test "$aix_use_runtimelinking" = yes; then
8411 shared_flag="$shared_flag "'${wl}-G'
8415 if test "$host_cpu" = ia64; then
8416 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8417 # chokes on -Wl,-G. The following line is correct:
8420 if test "$aix_use_runtimelinking" = yes; then
8421 shared_flag='${wl}-G'
8423 shared_flag='${wl}-bM:SRE'
8428 export_dynamic_flag_spec='${wl}-bexpall'
8429 # It seems that -bexpall does not export symbols beginning with
8430 # underscore (_), so it is better to generate a list of symbols to export.
8431 always_export_symbols=yes
8432 if test "$aix_use_runtimelinking" = yes; then
8433 # Warning - without using the other runtime loading flags (-brtl),
8434 # -berok will link without error, but may produce a broken library.
8435 allow_undefined_flag='-berok'
8436 # Determine the default libpath from the value encoded in an
8438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8439 /* end confdefs.h. */
8449 if ac_fn_c_try_link "$LINENO"; then :
8451 lt_aix_libpath_sed='
8452 /Import File Strings/,/^$/ {
8458 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8459 # Check for a 64-bit object if we didn't find anything.
8460 if test -z "$aix_libpath"; then
8461 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8464 rm -f core conftest.err conftest.$ac_objext \
8465 conftest$ac_exeext conftest.$ac_ext
8466 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8468 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8469 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8471 if test "$host_cpu" = ia64; then
8472 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8473 allow_undefined_flag="-z nodefs"
8474 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"
8476 # Determine the default libpath from the value encoded in an
8478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8479 /* end confdefs.h. */
8489 if ac_fn_c_try_link "$LINENO"; then :
8491 lt_aix_libpath_sed='
8492 /Import File Strings/,/^$/ {
8498 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8499 # Check for a 64-bit object if we didn't find anything.
8500 if test -z "$aix_libpath"; then
8501 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8504 rm -f core conftest.err conftest.$ac_objext \
8505 conftest$ac_exeext conftest.$ac_ext
8506 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8508 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8509 # Warning - without using the other run time loading flags,
8510 # -berok will link without error, but may produce a broken library.
8511 no_undefined_flag=' ${wl}-bernotok'
8512 allow_undefined_flag=' ${wl}-berok'
8513 if test "$with_gnu_ld" = yes; then
8514 # We only use this code for GNU lds that support --whole-archive.
8515 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8517 # Exported symbols can be pulled into shared objects from archives
8518 whole_archive_flag_spec='$convenience'
8520 archive_cmds_need_lc=yes
8521 # This is similar to how AIX traditionally builds its shared libraries.
8522 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'
8530 # see comment about AmigaOS4 .so support
8531 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8532 archive_expsym_cmds=''
8535 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)'
8536 hardcode_libdir_flag_spec='-L$libdir'
8537 hardcode_minus_L=yes
8543 export_dynamic_flag_spec=-rdynamic
8546 cygwin* | mingw* | pw32* | cegcc*)
8547 # When not using gcc, we currently assume that we are using
8548 # Microsoft Visual C++.
8549 # hardcode_libdir_flag_spec is actually meaningless, as there is
8550 # no search path for DLLs.
8551 hardcode_libdir_flag_spec=' '
8552 allow_undefined_flag=unsupported
8553 # Tell ltmain to make .lib files, not .a files.
8555 # Tell ltmain to make .dll files, not .so files.
8557 # FIXME: Setting linknames here is a bad hack.
8558 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
8559 # The linker will automatically build a .lib file if we build a DLL.
8560 old_archive_from_new_cmds='true'
8561 # FIXME: Should let the user specify the lib program.
8562 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8563 fix_srcfile_path='`cygpath -w "$srcfile"`'
8564 enable_shared_with_static_runtimes=yes
8567 darwin* | rhapsody*)
8570 archive_cmds_need_lc=no
8572 hardcode_automatic=yes
8573 hardcode_shlibpath_var=unsupported
8574 if test "$lt_cv_ld_force_load" = "yes"; then
8575 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
8577 whole_archive_flag_spec=''
8579 link_all_deplibs=yes
8580 allow_undefined_flag="$_lt_dar_allow_undefined"
8581 case $cc_basename in
8582 ifort*) _lt_dar_can_shared=yes ;;
8583 *) _lt_dar_can_shared=$GCC ;;
8585 if test "$_lt_dar_can_shared" = "yes"; then
8586 output_verbose_link_cmd=func_echo_all
8587 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8588 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8589 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}"
8590 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}"
8599 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8600 hardcode_libdir_flag_spec='-L$libdir'
8601 hardcode_shlibpath_var=no
8608 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8609 # support. Future versions do this automatically, but an explicit c++rt0.o
8610 # does not break anything, and helps significantly (at the cost of a little
8613 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8614 hardcode_libdir_flag_spec='-R$libdir'
8616 hardcode_shlibpath_var=no
8619 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8621 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8623 hardcode_minus_L=yes
8624 hardcode_shlibpath_var=no
8627 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8628 freebsd* | dragonfly*)
8629 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8630 hardcode_libdir_flag_spec='-R$libdir'
8632 hardcode_shlibpath_var=no
8636 if test "$GCC" = yes; then
8637 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'
8639 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'
8641 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8642 hardcode_libdir_separator=:
8645 # hardcode_minus_L: Not really in the search PATH,
8646 # but as the default location of the library.
8647 hardcode_minus_L=yes
8648 export_dynamic_flag_spec='${wl}-E'
8652 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
8653 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8655 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8657 if test "$with_gnu_ld" = no; then
8658 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8659 hardcode_libdir_flag_spec_ld='+b $libdir'
8660 hardcode_libdir_separator=:
8662 hardcode_direct_absolute=yes
8663 export_dynamic_flag_spec='${wl}-E'
8664 # hardcode_minus_L: Not really in the search PATH,
8665 # but as the default location of the library.
8666 hardcode_minus_L=yes
8671 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
8674 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8677 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8680 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8686 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8689 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8693 # Older versions of the 11.00 compiler do not understand -b yet
8694 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
8695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
8696 $as_echo_n "checking if $CC understands -b... " >&6; }
8697 if ${lt_cv_prog_compiler__b+:} false; then :
8698 $as_echo_n "(cached) " >&6
8700 lt_cv_prog_compiler__b=no
8701 save_LDFLAGS="$LDFLAGS"
8702 LDFLAGS="$LDFLAGS -b"
8703 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8704 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8705 # The linker can only warn and ignore the option if not recognized
8706 # So say no if there are warnings
8707 if test -s conftest.err; then
8708 # Append any errors to the config.log.
8709 cat conftest.err 1>&5
8710 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8711 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8712 if diff conftest.exp conftest.er2 >/dev/null; then
8713 lt_cv_prog_compiler__b=yes
8716 lt_cv_prog_compiler__b=yes
8720 LDFLAGS="$save_LDFLAGS"
8723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
8724 $as_echo "$lt_cv_prog_compiler__b" >&6; }
8726 if test x"$lt_cv_prog_compiler__b" = xyes; then
8727 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8729 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8735 if test "$with_gnu_ld" = no; then
8736 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8737 hardcode_libdir_separator=:
8742 hardcode_shlibpath_var=no
8746 hardcode_direct_absolute=yes
8747 export_dynamic_flag_spec='${wl}-E'
8749 # hardcode_minus_L: Not really in the search PATH,
8750 # but as the default location of the library.
8751 hardcode_minus_L=yes
8757 irix5* | irix6* | nonstopux*)
8758 if test "$GCC" = yes; then
8759 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8760 # Try to use the -exported_symbol ld option, if it does not
8761 # work, assume that -exports_file does not work either and
8762 # implicitly export all symbols.
8763 save_LDFLAGS="$LDFLAGS"
8764 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8766 /* end confdefs.h. */
8769 if ac_fn_c_try_link "$LINENO"; then :
8770 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
8773 rm -f core conftest.err conftest.$ac_objext \
8774 conftest$ac_exeext conftest.$ac_ext
8775 LDFLAGS="$save_LDFLAGS"
8777 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
8778 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
8780 archive_cmds_need_lc='no'
8781 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8782 hardcode_libdir_separator=:
8784 link_all_deplibs=yes
8788 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8789 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8791 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8793 hardcode_libdir_flag_spec='-R$libdir'
8795 hardcode_shlibpath_var=no
8799 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8801 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8802 hardcode_libdir_separator=:
8803 hardcode_shlibpath_var=no
8810 if test -f /usr/libexec/ld.so; then
8812 hardcode_shlibpath_var=no
8813 hardcode_direct_absolute=yes
8814 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8815 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8816 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8817 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8818 export_dynamic_flag_spec='${wl}-E'
8821 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8822 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8823 hardcode_libdir_flag_spec='-R$libdir'
8826 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8827 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8837 hardcode_libdir_flag_spec='-L$libdir'
8838 hardcode_minus_L=yes
8839 allow_undefined_flag=unsupported
8840 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'
8841 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8845 if test "$GCC" = yes; then
8846 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8847 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8849 allow_undefined_flag=' -expect_unresolved \*'
8850 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
8852 archive_cmds_need_lc='no'
8853 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8854 hardcode_libdir_separator=:
8857 osf4* | osf5*) # as osf3* with the addition of -msym flag
8858 if test "$GCC" = yes; then
8859 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8860 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8861 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8863 allow_undefined_flag=' -expect_unresolved \*'
8864 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
8865 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~
8866 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
8868 # Both c and cxx compiler support -rpath directly
8869 hardcode_libdir_flag_spec='-rpath $libdir'
8871 archive_cmds_need_lc='no'
8872 hardcode_libdir_separator=:
8876 no_undefined_flag=' -z defs'
8877 if test "$GCC" = yes; then
8879 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8880 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8881 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8883 case `$CC -V 2>&1` in
8886 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8887 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8888 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8892 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8893 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8894 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8898 hardcode_libdir_flag_spec='-R$libdir'
8899 hardcode_shlibpath_var=no
8901 solaris2.[0-5] | solaris2.[0-5].*) ;;
8903 # The compiler driver will combine and reorder linker options,
8904 # but understands `-z linker_flag'. GCC discards it without `$wl',
8905 # but is careful enough not to reorder.
8906 # Supported since Solaris 2.6 (maybe 2.5.1?)
8907 if test "$GCC" = yes; then
8908 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8910 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8914 link_all_deplibs=yes
8918 if test "x$host_vendor" = xsequent; then
8919 # Use $CC to link under sequent, because it throws in some extra .o
8920 # files that make .init and .fini sections work.
8921 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8923 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8925 hardcode_libdir_flag_spec='-L$libdir'
8927 hardcode_minus_L=yes
8928 hardcode_shlibpath_var=no
8932 case $host_vendor in
8934 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8935 hardcode_direct=yes # is this really true???
8938 ## LD is ld it makes a PLAMLIB
8939 ## CC just makes a GrossModule.
8940 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8941 reload_cmds='$CC -r -o $output$reload_objs'
8945 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8946 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8949 runpath_var='LD_RUN_PATH'
8950 hardcode_shlibpath_var=no
8954 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8955 hardcode_shlibpath_var=no
8956 export_dynamic_flag_spec='-Bexport'
8960 if test -d /usr/nec; then
8961 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8962 hardcode_shlibpath_var=no
8963 runpath_var=LD_RUN_PATH
8964 hardcode_runpath_var=yes
8969 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8970 no_undefined_flag='${wl}-z,text'
8971 archive_cmds_need_lc=no
8972 hardcode_shlibpath_var=no
8973 runpath_var='LD_RUN_PATH'
8975 if test "$GCC" = yes; then
8976 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8977 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8979 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8980 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8984 sysv5* | sco3.2v5* | sco5v6*)
8985 # Note: We can NOT use -z defs as we might desire, because we do not
8986 # link with -lc, and that would cause any symbols used from libc to
8987 # always be unresolved, which means just about no library would
8988 # ever link correctly. If we're not using GNU ld we use -z text
8989 # though, which does catch some bad symbols but isn't as heavy-handed
8991 no_undefined_flag='${wl}-z,text'
8992 allow_undefined_flag='${wl}-z,nodefs'
8993 archive_cmds_need_lc=no
8994 hardcode_shlibpath_var=no
8995 hardcode_libdir_flag_spec='${wl}-R,$libdir'
8996 hardcode_libdir_separator=':'
8997 link_all_deplibs=yes
8998 export_dynamic_flag_spec='${wl}-Bexport'
8999 runpath_var='LD_RUN_PATH'
9001 if test "$GCC" = yes; then
9002 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9003 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9005 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9006 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9011 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9012 hardcode_libdir_flag_spec='-L$libdir'
9013 hardcode_shlibpath_var=no
9021 if test x$host_vendor = xsni; then
9023 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9024 export_dynamic_flag_spec='${wl}-Blargedynsym'
9030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9031 $as_echo "$ld_shlibs" >&6; }
9032 test "$ld_shlibs" = no && can_build_shared=no
9034 with_gnu_ld=$with_gnu_ld
9051 # Do we need to explicitly link libc?
9053 case "x$archive_cmds_need_lc" in
9055 # Assume -lc should be added
9056 archive_cmds_need_lc=yes
9058 if test "$enable_shared" = yes && test "$GCC" = yes; then
9059 case $archive_cmds in
9061 # FIXME: we may have to deal with multi-command sequences.
9064 # Test whether the compiler implicitly links with -lc since on some
9065 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9066 # to ld, don't add -lc before -lgcc.
9067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9068 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9069 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9070 $as_echo_n "(cached) " >&6
9073 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9075 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9076 (eval $ac_compile) 2>&5
9078 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9079 test $ac_status = 0; } 2>conftest.err; then
9082 libobjs=conftest.$ac_objext
9084 wl=$lt_prog_compiler_wl
9085 pic_flag=$lt_prog_compiler_pic
9091 lt_save_allow_undefined_flag=$allow_undefined_flag
9092 allow_undefined_flag=
9093 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9094 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9096 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9097 test $ac_status = 0; }
9099 lt_cv_archive_cmds_need_lc=no
9101 lt_cv_archive_cmds_need_lc=yes
9103 allow_undefined_flag=$lt_save_allow_undefined_flag
9105 cat conftest.err 1>&5
9110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9111 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9112 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9276 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9278 if test "$GCC" = yes; then
9280 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9281 *) lt_awk_arg="/^libraries:/" ;;
9284 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9285 *) lt_sed_strip_eq="s,=/,/,g" ;;
9287 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9288 case $lt_search_path_spec in
9290 # if the path contains ";" then we assume it to be the separator
9291 # otherwise default to the standard path separator (i.e. ":") - it is
9292 # assumed that no part of a normal pathname contains ";" but that should
9293 # okay in the real world where ";" in dirpaths is itself problematic.
9294 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9297 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9300 # Ok, now we have the path, separated by spaces, we can step through it
9301 # and add multilib dir if necessary.
9302 lt_tmp_lt_search_path_spec=
9303 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9304 for lt_sys_path in $lt_search_path_spec; do
9305 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9306 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9308 test -d "$lt_sys_path" && \
9309 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9312 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9313 BEGIN {RS=" "; FS="/|\n";} {
9316 for (lt_i = NF; lt_i > 0; lt_i--) {
9317 if ($lt_i != "" && $lt_i != ".") {
9318 if ($lt_i == "..") {
9321 if (lt_count == 0) {
9322 lt_foo="/" $lt_i lt_foo;
9329 if (lt_foo != "") { lt_freq[lt_foo]++; }
9330 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9332 # AWK program above erroneously prepends '/' to C:/dos/paths
9335 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9336 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9338 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9340 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9343 libname_spec='lib$name'
9351 shlibpath_overrides_runpath=unknown
9353 dynamic_linker="$host_os ld.so"
9354 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9355 need_lib_prefix=unknown
9356 hardcode_into_libs=no
9358 # when you set need_version to no, make sure it does not cause -set_version
9359 # flags to be left without arguments
9360 need_version=unknown
9365 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9366 shlibpath_var=LIBPATH
9368 # AIX 3 has no versioning support, so we append a major version to the name.
9369 soname_spec='${libname}${release}${shared_ext}$major'
9376 hardcode_into_libs=yes
9377 if test "$host_cpu" = ia64; then
9378 # AIX 5 supports IA64
9379 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9380 shlibpath_var=LD_LIBRARY_PATH
9382 # With GCC up to 2.95.x, collect2 would create an import file
9383 # for dependence libraries. The import file would start with
9384 # the line `#! .'. This would cause the generated library to
9385 # depend on `.', always an invalid library. This was fixed in
9386 # development snapshots of GCC prior to 3.0.
9388 aix4 | aix4.[01] | aix4.[01].*)
9389 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9391 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9398 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9399 # soname into executable. Probably we can add versioning support to
9400 # collect2, so additional links can be useful in future.
9401 if test "$aix_use_runtimelinking" = yes; then
9402 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9403 # instead of lib<name>.a to let people know that these are not
9404 # typical AIX shared libraries.
9405 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9407 # We preserve .a as extension for shared libraries through AIX4.2
9408 # and later when we are not doing run time linking.
9409 library_names_spec='${libname}${release}.a $libname.a'
9410 soname_spec='${libname}${release}${shared_ext}$major'
9412 shlibpath_var=LIBPATH
9419 # Since July 2007 AmigaOS4 officially supports .so libraries.
9420 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9421 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9424 library_names_spec='$libname.ixlibrary $libname.a'
9425 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9426 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
9432 library_names_spec='${libname}${shared_ext}'
9433 dynamic_linker="$host_os ld.so"
9434 shlibpath_var=LIBRARY_PATH
9440 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9441 soname_spec='${libname}${release}${shared_ext}$major'
9442 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9443 shlibpath_var=LD_LIBRARY_PATH
9444 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9445 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9446 # the default ld.so.conf also contains /usr/contrib/lib and
9447 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9448 # libtool to hard-code these into programs
9451 cygwin* | mingw* | pw32* | cegcc*)
9452 version_type=windows
9457 case $GCC,$host_os in
9458 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9459 library_names_spec='$libname.dll.a'
9460 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9461 postinstall_cmds='base_file=`basename \${file}`~
9462 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9463 dldir=$destdir/`dirname \$dlpath`~
9464 test -d \$dldir || mkdir -p \$dldir~
9465 $install_prog $dir/$dlname \$dldir/$dlname~
9466 chmod a+x \$dldir/$dlname~
9467 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9468 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9470 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9471 dlpath=$dir/\$dldll~
9473 shlibpath_overrides_runpath=yes
9477 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9478 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9480 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9483 # MinGW DLLs use traditional 'lib' prefix
9484 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9487 # pw32 DLLs use 'pw' prefix rather than 'lib'
9488 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9494 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9497 dynamic_linker='Win32 ld.exe'
9498 # FIXME: first we should search . and the directory the executable is in
9502 darwin* | rhapsody*)
9503 dynamic_linker="$host_os dyld"
9507 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9508 soname_spec='${libname}${release}${major}$shared_ext'
9509 shlibpath_overrides_runpath=yes
9510 shlibpath_var=DYLD_LIBRARY_PATH
9511 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9513 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9514 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9521 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9522 soname_spec='${libname}${release}${shared_ext}$major'
9523 shlibpath_var=LD_LIBRARY_PATH
9530 freebsd* | dragonfly*)
9531 # DragonFly does not have aout. When/if they implement a new
9532 # versioning mechanism, adjust this.
9533 if test -x /usr/bin/objformat; then
9534 objformat=`/usr/bin/objformat`
9537 freebsd[123]*) objformat=aout ;;
9541 # Handle Gentoo/FreeBSD as it was Linux
9542 case $host_vendor in
9544 version_type=linux ;;
9546 version_type=freebsd-$objformat ;;
9549 case $version_type in
9551 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9556 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
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'
9566 shlibpath_var=LD_LIBRARY_PATH
9569 shlibpath_overrides_runpath=yes
9571 freebsd3.[01]* | freebsdelf3.[01]*)
9572 shlibpath_overrides_runpath=yes
9573 hardcode_into_libs=yes
9575 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9576 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9577 shlibpath_overrides_runpath=no
9578 hardcode_into_libs=yes
9580 *) # from 4.6 on, and DragonFly
9581 shlibpath_overrides_runpath=yes
9582 hardcode_into_libs=yes
9591 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9592 soname_spec='${libname}${release}${shared_ext}$major'
9593 shlibpath_var=LD_LIBRARY_PATH
9594 hardcode_into_libs=yes
9601 dynamic_linker="$host_os runtime_loader"
9602 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9603 soname_spec='${libname}${release}${shared_ext}$major'
9604 shlibpath_var=LIBRARY_PATH
9605 shlibpath_overrides_runpath=yes
9606 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
9607 hardcode_into_libs=yes
9610 hpux9* | hpux10* | hpux11*)
9611 # Give a soname corresponding to the major version so that dld.sl refuses to
9612 # link against other versions.
9619 hardcode_into_libs=yes
9620 dynamic_linker="$host_os dld.so"
9621 shlibpath_var=LD_LIBRARY_PATH
9622 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9623 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9624 soname_spec='${libname}${release}${shared_ext}$major'
9625 if test "X$HPUX_IA64_MODE" = X32; then
9626 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9628 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9630 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9634 hardcode_into_libs=yes
9635 dynamic_linker="$host_os dld.sl"
9636 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9637 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9638 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9639 soname_spec='${libname}${release}${shared_ext}$major'
9640 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9641 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9645 dynamic_linker="$host_os dld.sl"
9646 shlibpath_var=SHLIB_PATH
9647 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9648 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9649 soname_spec='${libname}${release}${shared_ext}$major'
9652 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
9653 postinstall_cmds='chmod 555 $lib'
9654 # or fails outright, so override atomically:
9655 install_override_mode=555
9662 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9663 soname_spec='${libname}${release}${shared_ext}$major'
9664 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9665 shlibpath_var=LD_LIBRARY_PATH
9666 shlibpath_overrides_runpath=no
9667 hardcode_into_libs=yes
9670 irix5* | irix6* | nonstopux*)
9672 nonstopux*) version_type=nonstopux ;;
9674 if test "$lt_cv_prog_gnu_ld" = yes; then
9682 soname_spec='${libname}${release}${shared_ext}$major'
9683 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9685 irix5* | nonstopux*)
9689 case $LD in # libtool.m4 will add one of these switches to LD
9690 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9691 libsuff= shlibsuff= libmagic=32-bit;;
9692 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9693 libsuff=32 shlibsuff=N32 libmagic=N32;;
9694 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9695 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9696 *) libsuff= shlibsuff= libmagic=never-match;;
9700 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9701 shlibpath_overrides_runpath=no
9702 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9703 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9704 hardcode_into_libs=yes
9707 # No shared lib support for Linux oldld, aout, or coff.
9708 linux*oldld* | linux*aout* | linux*coff*)
9712 # This must be Linux ELF.
9713 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9717 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9718 soname_spec='${libname}${release}${shared_ext}$major'
9719 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9720 shlibpath_var=LD_LIBRARY_PATH
9721 shlibpath_overrides_runpath=no
9723 # Some binutils ld are patched to set DT_RUNPATH
9724 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
9725 $as_echo_n "(cached) " >&6
9727 lt_cv_shlibpath_overrides_runpath=no
9728 save_LDFLAGS=$LDFLAGS
9730 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9731 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9733 /* end confdefs.h. */
9743 if ac_fn_c_try_link "$LINENO"; then :
9744 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
9745 lt_cv_shlibpath_overrides_runpath=yes
9748 rm -f core conftest.err conftest.$ac_objext \
9749 conftest$ac_exeext conftest.$ac_ext
9750 LDFLAGS=$save_LDFLAGS
9755 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
9757 # This implies no fast_install, which is unacceptable.
9758 # Some rework will be needed to allow for fast_install
9759 # before this can be enabled.
9760 hardcode_into_libs=yes
9762 # Append ld.so.conf contents to the search path
9763 if test -f /etc/ld.so.conf; then
9764 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
9765 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9768 # We used to test for /lib/ld.so.1 and disable shared libraries on
9769 # powerpc, because MkLinux only supported shared libraries with the
9770 # GNU dynamic linker. Since this was broken with cross compilers,
9771 # most powerpc-linux boxes support dynamic linking these days and
9772 # people can always --disable-shared, the test was removed, and we
9773 # assume the GNU/Linux dynamic linker is in use.
9774 dynamic_linker='GNU/Linux ld.so'
9781 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9782 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9783 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9784 dynamic_linker='NetBSD (a.out) ld.so'
9786 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9787 soname_spec='${libname}${release}${shared_ext}$major'
9788 dynamic_linker='NetBSD ld.elf_so'
9790 shlibpath_var=LD_LIBRARY_PATH
9791 shlibpath_overrides_runpath=yes
9792 hardcode_into_libs=yes
9797 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9798 shlibpath_var=LD_LIBRARY_PATH
9799 shlibpath_overrides_runpath=yes
9806 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9807 soname_spec='${libname}${release}${shared_ext}$major'
9808 shlibpath_var=LD_LIBRARY_PATH
9809 shlibpath_overrides_runpath=no
9810 hardcode_into_libs=yes
9811 dynamic_linker='ldqnx.so'
9816 sys_lib_dlsearch_path_spec="/usr/lib"
9818 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9820 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9821 *) need_version=no ;;
9823 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9824 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9825 shlibpath_var=LD_LIBRARY_PATH
9826 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9828 openbsd2.[89] | openbsd2.[89].*)
9829 shlibpath_overrides_runpath=no
9832 shlibpath_overrides_runpath=yes
9836 shlibpath_overrides_runpath=yes
9841 libname_spec='$name'
9844 library_names_spec='$libname${shared_ext} $libname.a'
9845 dynamic_linker='OS/2 ld.exe'
9846 shlibpath_var=LIBPATH
9849 osf3* | osf4* | osf5*)
9853 soname_spec='${libname}${release}${shared_ext}$major'
9854 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9855 shlibpath_var=LD_LIBRARY_PATH
9856 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9857 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9868 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9869 soname_spec='${libname}${release}${shared_ext}$major'
9870 shlibpath_var=LD_LIBRARY_PATH
9871 shlibpath_overrides_runpath=yes
9872 hardcode_into_libs=yes
9873 # ldd complains unless libraries are executable
9874 postinstall_cmds='chmod +x $lib'
9879 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9880 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9881 shlibpath_var=LD_LIBRARY_PATH
9882 shlibpath_overrides_runpath=yes
9883 if test "$with_gnu_ld" = yes; then
9891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9892 soname_spec='${libname}${release}${shared_ext}$major'
9893 shlibpath_var=LD_LIBRARY_PATH
9894 case $host_vendor in
9896 shlibpath_overrides_runpath=no
9898 runpath_var=LD_RUN_PATH
9906 shlibpath_overrides_runpath=no
9907 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9913 if test -d /usr/nec ;then
9915 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9916 soname_spec='$libname${shared_ext}.$major'
9917 shlibpath_var=LD_LIBRARY_PATH
9921 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9922 version_type=freebsd-elf
9925 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9926 soname_spec='${libname}${release}${shared_ext}$major'
9927 shlibpath_var=LD_LIBRARY_PATH
9928 shlibpath_overrides_runpath=yes
9929 hardcode_into_libs=yes
9930 if test "$with_gnu_ld" = yes; then
9931 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9933 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9936 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9940 sys_lib_dlsearch_path_spec='/usr/lib'
9944 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9948 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9949 shlibpath_var=LD_LIBRARY_PATH
9950 shlibpath_overrides_runpath=no
9951 hardcode_into_libs=yes
9956 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9957 soname_spec='${libname}${release}${shared_ext}$major'
9958 shlibpath_var=LD_LIBRARY_PATH
9965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
9966 $as_echo "$dynamic_linker" >&6; }
9967 test "$dynamic_linker" = no && can_build_shared=no
9969 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9970 if test "$GCC" = yes; then
9971 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9974 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9975 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9977 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9978 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10073 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10075 if test -n "$hardcode_libdir_flag_spec" ||
10076 test -n "$runpath_var" ||
10077 test "X$hardcode_automatic" = "Xyes" ; then
10079 # We can hardcode non-existent directories.
10080 if test "$hardcode_direct" != no &&
10081 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10082 # have to relink, otherwise we might link with an installed library
10083 # when we should be linking with a yet-to-be-installed one
10084 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10085 test "$hardcode_minus_L" != no; then
10086 # Linking always hardcodes the temporary library directory.
10087 hardcode_action=relink
10089 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10090 hardcode_action=immediate
10093 # We cannot hardcode anything, or else we can only hardcode existing
10095 hardcode_action=unsupported
10097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10098 $as_echo "$hardcode_action" >&6; }
10100 if test "$hardcode_action" = relink ||
10101 test "$inherit_rpath" = yes; then
10102 # Fast installation is not supported
10103 enable_fast_install=no
10104 elif test "$shlibpath_overrides_runpath" = yes ||
10105 test "$enable_shared" = no; then
10106 # Fast installation is not necessary
10107 enable_fast_install=needless
10115 if test "x$enable_dlopen" != xyes; then
10116 enable_dlopen=unknown
10117 enable_dlopen_self=unknown
10118 enable_dlopen_self_static=unknown
10125 lt_cv_dlopen="load_add_on"
10127 lt_cv_dlopen_self=yes
10130 mingw* | pw32* | cegcc*)
10131 lt_cv_dlopen="LoadLibrary"
10136 lt_cv_dlopen="dlopen"
10141 # if libdl is installed we need to link against it
10142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10143 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10144 if ${ac_cv_lib_dl_dlopen+:} false; then :
10145 $as_echo_n "(cached) " >&6
10147 ac_check_lib_save_LIBS=$LIBS
10149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10150 /* end confdefs.h. */
10152 /* Override any GCC internal prototype to avoid an error.
10153 Use char because int might match the return type of a GCC
10154 builtin and then its argument prototype would still apply. */
10167 if ac_fn_c_try_link "$LINENO"; then :
10168 ac_cv_lib_dl_dlopen=yes
10170 ac_cv_lib_dl_dlopen=no
10172 rm -f core conftest.err conftest.$ac_objext \
10173 conftest$ac_exeext conftest.$ac_ext
10174 LIBS=$ac_check_lib_save_LIBS
10176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10177 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10178 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10179 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10182 lt_cv_dlopen="dyld"
10184 lt_cv_dlopen_self=yes
10191 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10192 if test "x$ac_cv_func_shl_load" = xyes; then :
10193 lt_cv_dlopen="shl_load"
10195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10196 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10197 if ${ac_cv_lib_dld_shl_load+:} false; then :
10198 $as_echo_n "(cached) " >&6
10200 ac_check_lib_save_LIBS=$LIBS
10202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10203 /* end confdefs.h. */
10205 /* Override any GCC internal prototype to avoid an error.
10206 Use char because int might match the return type of a GCC
10207 builtin and then its argument prototype would still apply. */
10215 return shl_load ();
10220 if ac_fn_c_try_link "$LINENO"; then :
10221 ac_cv_lib_dld_shl_load=yes
10223 ac_cv_lib_dld_shl_load=no
10225 rm -f core conftest.err conftest.$ac_objext \
10226 conftest$ac_exeext conftest.$ac_ext
10227 LIBS=$ac_check_lib_save_LIBS
10229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10230 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10231 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10232 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10234 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10235 if test "x$ac_cv_func_dlopen" = xyes; then :
10236 lt_cv_dlopen="dlopen"
10238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10239 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10240 if ${ac_cv_lib_dl_dlopen+:} false; then :
10241 $as_echo_n "(cached) " >&6
10243 ac_check_lib_save_LIBS=$LIBS
10245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
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. */
10263 if ac_fn_c_try_link "$LINENO"; then :
10264 ac_cv_lib_dl_dlopen=yes
10266 ac_cv_lib_dl_dlopen=no
10268 rm -f core conftest.err conftest.$ac_objext \
10269 conftest$ac_exeext conftest.$ac_ext
10270 LIBS=$ac_check_lib_save_LIBS
10272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10273 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10274 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10275 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10278 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10279 if ${ac_cv_lib_svld_dlopen+:} false; then :
10280 $as_echo_n "(cached) " >&6
10282 ac_check_lib_save_LIBS=$LIBS
10283 LIBS="-lsvld $LIBS"
10284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10285 /* end confdefs.h. */
10287 /* Override any GCC internal prototype to avoid an error.
10288 Use char because int might match the return type of a GCC
10289 builtin and then its argument prototype would still apply. */
10302 if ac_fn_c_try_link "$LINENO"; then :
10303 ac_cv_lib_svld_dlopen=yes
10305 ac_cv_lib_svld_dlopen=no
10307 rm -f core conftest.err conftest.$ac_objext \
10308 conftest$ac_exeext conftest.$ac_ext
10309 LIBS=$ac_check_lib_save_LIBS
10311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10312 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10313 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
10314 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10317 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10318 if ${ac_cv_lib_dld_dld_link+:} false; then :
10319 $as_echo_n "(cached) " >&6
10321 ac_check_lib_save_LIBS=$LIBS
10323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10324 /* end confdefs.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. */
10336 return dld_link ();
10341 if ac_fn_c_try_link "$LINENO"; then :
10342 ac_cv_lib_dld_dld_link=yes
10344 ac_cv_lib_dld_dld_link=no
10346 rm -f core conftest.err conftest.$ac_objext \
10347 conftest$ac_exeext conftest.$ac_ext
10348 LIBS=$ac_check_lib_save_LIBS
10350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10351 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10352 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
10353 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10374 if test "x$lt_cv_dlopen" != xno; then
10380 case $lt_cv_dlopen in
10382 save_CPPFLAGS="$CPPFLAGS"
10383 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10385 save_LDFLAGS="$LDFLAGS"
10386 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10389 LIBS="$lt_cv_dlopen_libs $LIBS"
10391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10392 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10393 if ${lt_cv_dlopen_self+:} false; then :
10394 $as_echo_n "(cached) " >&6
10396 if test "$cross_compiling" = yes; then :
10397 lt_cv_dlopen_self=cross
10399 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10400 lt_status=$lt_dlunknown
10401 cat > conftest.$ac_ext <<_LT_EOF
10402 #line $LINENO "configure"
10403 #include "confdefs.h"
10412 # define LT_DLGLOBAL RTLD_GLOBAL
10415 # define LT_DLGLOBAL DL_GLOBAL
10417 # define LT_DLGLOBAL 0
10421 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10422 find out it does not work in some platform. */
10423 #ifndef LT_DLLAZY_OR_NOW
10425 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10428 # define LT_DLLAZY_OR_NOW DL_LAZY
10431 # define LT_DLLAZY_OR_NOW RTLD_NOW
10434 # define LT_DLLAZY_OR_NOW DL_NOW
10436 # define LT_DLLAZY_OR_NOW 0
10443 /* When -fvisbility=hidden is used, assume the code has been annotated
10444 correspondingly for the symbols needed. */
10445 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10446 void fnord () __attribute__((visibility("default")));
10449 void fnord () { int i=42; }
10452 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10453 int status = $lt_dlunknown;
10457 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10460 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10461 else puts (dlerror ());
10463 /* dlclose (self); */
10471 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10472 (eval $ac_link) 2>&5
10474 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10475 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10476 (./conftest; exit; ) >&5 2>/dev/null
10478 case x$lt_status in
10479 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10480 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10481 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10484 # compilation failed
10485 lt_cv_dlopen_self=no
10492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10493 $as_echo "$lt_cv_dlopen_self" >&6; }
10495 if test "x$lt_cv_dlopen_self" = xyes; then
10496 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10498 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10499 if ${lt_cv_dlopen_self_static+:} false; then :
10500 $as_echo_n "(cached) " >&6
10502 if test "$cross_compiling" = yes; then :
10503 lt_cv_dlopen_self_static=cross
10505 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10506 lt_status=$lt_dlunknown
10507 cat > conftest.$ac_ext <<_LT_EOF
10508 #line $LINENO "configure"
10509 #include "confdefs.h"
10518 # define LT_DLGLOBAL RTLD_GLOBAL
10521 # define LT_DLGLOBAL DL_GLOBAL
10523 # define LT_DLGLOBAL 0
10527 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10528 find out it does not work in some platform. */
10529 #ifndef LT_DLLAZY_OR_NOW
10531 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10534 # define LT_DLLAZY_OR_NOW DL_LAZY
10537 # define LT_DLLAZY_OR_NOW RTLD_NOW
10540 # define LT_DLLAZY_OR_NOW DL_NOW
10542 # define LT_DLLAZY_OR_NOW 0
10549 /* When -fvisbility=hidden is used, assume the code has been annotated
10550 correspondingly for the symbols needed. */
10551 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10552 void fnord () __attribute__((visibility("default")));
10555 void fnord () { int i=42; }
10558 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10559 int status = $lt_dlunknown;
10563 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10566 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10567 else puts (dlerror ());
10569 /* dlclose (self); */
10577 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10578 (eval $ac_link) 2>&5
10580 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10581 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10582 (./conftest; exit; ) >&5 2>/dev/null
10584 case x$lt_status in
10585 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10586 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10587 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10590 # compilation failed
10591 lt_cv_dlopen_self_static=no
10598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10599 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10602 CPPFLAGS="$save_CPPFLAGS"
10603 LDFLAGS="$save_LDFLAGS"
10608 case $lt_cv_dlopen_self in
10609 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10610 *) enable_dlopen_self=unknown ;;
10613 case $lt_cv_dlopen_self_static in
10614 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10615 *) enable_dlopen_self_static=unknown ;;
10637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10638 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
10639 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10640 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10641 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10643 $as_echo "yes" >&6; }
10645 # FIXME - insert some real tests, host_os isn't really good enough
10648 if test -n "$STRIP" ; then
10649 striplib="$STRIP -x"
10650 old_striplib="$STRIP -S"
10651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10652 $as_echo "yes" >&6; }
10654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10655 $as_echo "no" >&6; }
10659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10660 $as_echo "no" >&6; }
10676 # Report which library types will actually be built
10677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10678 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
10679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10680 $as_echo "$can_build_shared" >&6; }
10682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10683 $as_echo_n "checking whether to build shared libraries... " >&6; }
10684 test "$can_build_shared" = "no" && enable_shared=no
10686 # On AIX, shared libraries and static libraries use the same namespace, and
10687 # are all built from PIC.
10690 test "$enable_shared" = yes && enable_static=no
10691 if test -n "$RANLIB"; then
10692 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10693 postinstall_cmds='$RANLIB $lib'
10698 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10699 test "$enable_shared" = yes && enable_static=no
10703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10704 $as_echo "$enable_shared" >&6; }
10706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10707 $as_echo_n "checking whether to build static libraries... " >&6; }
10708 # Make sure either enable_shared or enable_static is yes.
10709 test "$enable_shared" = yes || enable_static=yes
10710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10711 $as_echo "$enable_static" >&6; }
10718 ac_cpp='$CPP $CPPFLAGS'
10719 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10720 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10721 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10737 ac_config_commands="$ac_config_commands libtool"
10742 # Only expand once:
10745 if test -n "$ac_tool_prefix"; then
10746 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
10747 set dummy ${ac_tool_prefix}windres; ac_word=$2
10748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10749 $as_echo_n "checking for $ac_word... " >&6; }
10750 if ${ac_cv_prog_RC+:} false; then :
10751 $as_echo_n "(cached) " >&6
10753 if test -n "$RC"; then
10754 ac_cv_prog_RC="$RC" # Let the user override the test.
10756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10757 for as_dir in $PATH
10760 test -z "$as_dir" && as_dir=.
10761 for ac_exec_ext in '' $ac_executable_extensions; do
10762 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10763 ac_cv_prog_RC="${ac_tool_prefix}windres"
10764 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10774 if test -n "$RC"; then
10775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RC" >&5
10776 $as_echo "$RC" >&6; }
10778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10779 $as_echo "no" >&6; }
10784 if test -z "$ac_cv_prog_RC"; then
10786 # Extract the first word of "windres", so it can be a program name with args.
10787 set dummy windres; ac_word=$2
10788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10789 $as_echo_n "checking for $ac_word... " >&6; }
10790 if ${ac_cv_prog_ac_ct_RC+:} false; then :
10791 $as_echo_n "(cached) " >&6
10793 if test -n "$ac_ct_RC"; then
10794 ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
10796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10797 for as_dir in $PATH
10800 test -z "$as_dir" && as_dir=.
10801 for ac_exec_ext in '' $ac_executable_extensions; do
10802 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10803 ac_cv_prog_ac_ct_RC="windres"
10804 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10813 ac_ct_RC=$ac_cv_prog_ac_ct_RC
10814 if test -n "$ac_ct_RC"; then
10815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5
10816 $as_echo "$ac_ct_RC" >&6; }
10818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10819 $as_echo "no" >&6; }
10822 if test "x$ac_ct_RC" = x; then
10825 case $cross_compiling:$ac_tool_warned in
10827 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10828 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10829 ac_tool_warned=yes ;;
10834 RC="$ac_cv_prog_RC"
10840 # Source file extension for RC test sources.
10843 # Object file extension for compiled RC test sources.
10847 # Code to be used in simple compile tests
10848 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
10850 # Code to be used in simple link tests
10851 lt_simple_link_test_code="$lt_simple_compile_test_code"
10853 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10860 # If no C compiler was specified, use CC.
10863 # If no C compiler flags were specified, use CFLAGS.
10864 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10866 # Allow CC to be a program name with arguments.
10870 # save warnings/boilerplate of simple test code
10871 ac_outfile=conftest.$ac_objext
10872 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10873 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10874 _lt_compiler_boilerplate=`cat conftest.err`
10877 ac_outfile=conftest.$ac_objext
10878 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10879 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10880 _lt_linker_boilerplate=`cat conftest.err`
10884 # Allow CC to be a program name with arguments.
10891 for cc_temp in $compiler""; do
10893 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10894 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10899 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
10901 lt_cv_prog_compiler_c_o_RC=yes
10903 if test -n "$compiler"; then
10912 ac_cpp='$CPP $CPPFLAGS'
10913 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10914 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10915 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
10920 $as_echo_n "checking for inline... " >&6; }
10921 if ${ac_cv_c_inline+:} false; then :
10922 $as_echo_n "(cached) " >&6
10925 for ac_kw in inline __inline__ __inline; do
10926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10927 /* end confdefs.h. */
10928 #ifndef __cplusplus
10930 static $ac_kw foo_t static_foo () {return 0; }
10931 $ac_kw foo_t foo () {return 0; }
10935 if ac_fn_c_try_compile "$LINENO"; then :
10936 ac_cv_c_inline=$ac_kw
10938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10939 test "$ac_cv_c_inline" != no && break
10943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
10944 $as_echo "$ac_cv_c_inline" >&6; }
10946 case $ac_cv_c_inline in
10949 case $ac_cv_c_inline in
10951 *) ac_val=$ac_cv_c_inline;;
10953 cat >>confdefs.h <<_ACEOF
10954 #ifndef __cplusplus
10955 #define inline $ac_val
10961 if test "x$CC" != xcc; then
10962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
10963 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
10965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
10966 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
10968 set dummy $CC; ac_cc=`$as_echo "$2" |
10969 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
10970 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
10971 $as_echo_n "(cached) " >&6
10973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10974 /* end confdefs.h. */
10984 # Make sure it works both with $CC and with simple cc.
10985 # We do the test twice because some compilers refuse to overwrite an
10986 # existing .o file with -o, though they will create one.
10987 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
10989 if { { case "(($ac_try" in
10990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10991 *) ac_try_echo=$ac_try;;
10993 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
10994 $as_echo "$ac_try_echo"; } >&5
10995 (eval "$ac_try") 2>&5
10997 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10998 test $ac_status = 0; } &&
10999 test -f conftest2.$ac_objext && { { case "(($ac_try" in
11000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11001 *) ac_try_echo=$ac_try;;
11003 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11004 $as_echo "$ac_try_echo"; } >&5
11005 (eval "$ac_try") 2>&5
11007 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11008 test $ac_status = 0; };
11010 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
11011 if test "x$CC" != xcc; then
11012 # Test first that cc exists at all.
11013 if { ac_try='cc -c conftest.$ac_ext >&5'
11014 { { case "(($ac_try" in
11015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11016 *) ac_try_echo=$ac_try;;
11018 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11019 $as_echo "$ac_try_echo"; } >&5
11020 (eval "$ac_try") 2>&5
11022 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11023 test $ac_status = 0; }; }; then
11024 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
11026 if { { case "(($ac_try" in
11027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11028 *) ac_try_echo=$ac_try;;
11030 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11031 $as_echo "$ac_try_echo"; } >&5
11032 (eval "$ac_try") 2>&5
11034 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11035 test $ac_status = 0; } &&
11036 test -f conftest2.$ac_objext && { { case "(($ac_try" in
11037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11038 *) ac_try_echo=$ac_try;;
11040 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11041 $as_echo "$ac_try_echo"; } >&5
11042 (eval "$ac_try") 2>&5
11044 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11045 test $ac_status = 0; };
11050 # cc exists but doesn't like -o.
11051 eval ac_cv_prog_cc_${ac_cc}_c_o=no
11056 eval ac_cv_prog_cc_${ac_cc}_c_o=no
11058 rm -f core conftest*
11061 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
11062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11063 $as_echo "yes" >&6; }
11065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11066 $as_echo "no" >&6; }
11068 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
11072 # FIXME: we rely on the cache variable name because
11073 # there is no other way.
11075 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
11076 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
11077 if test "$am_t" != yes; then
11078 # Losing compiler, so override with the script.
11079 # FIXME: It is wrong to rewrite CC.
11080 # But if we don't then we get into trouble of one sort or another.
11081 # A longer-term fix would be to have automake use am__CC in this case,
11082 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
11083 CC="$am_aux_dir/compile $CC"
11088 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
11091 LTLDFLAGS="${LTLDFLAGS} -no-undefined"
11093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking operating system" >&5
11094 $as_echo_n "checking operating system... " >&6; }
11097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Linux" >&5
11098 $as_echo "Linux" >&6; }
11102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Darwin/Mac OS X" >&5
11103 $as_echo "Darwin/Mac OS X" >&6; }
11107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: OpenBSD" >&5
11108 $as_echo "OpenBSD" >&6; }
11112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: NetBSD (using OpenBSD backend)" >&5
11113 $as_echo "NetBSD (using OpenBSD backend)" >&6; }
11117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Windows" >&5
11118 $as_echo "Windows" >&6; }
11122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Cygwin (using Windows backend)" >&5
11123 $as_echo "Cygwin (using Windows backend)" >&6; }
11128 as_fn_error $? "unsupported operating system" "$LINENO" 5
11133 $as_echo "#define OS_LINUX 1" >>confdefs.h
11136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
11137 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
11138 if ${ac_cv_lib_rt_clock_gettime+:} false; then :
11139 $as_echo_n "(cached) " >&6
11141 ac_check_lib_save_LIBS=$LIBS
11143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11144 /* end confdefs.h. */
11146 /* Override any GCC internal prototype to avoid an error.
11147 Use char because int might match the return type of a GCC
11148 builtin and then its argument prototype would still apply. */
11152 char clock_gettime ();
11156 return clock_gettime ();
11161 if ac_fn_c_try_link "$LINENO"; then :
11162 ac_cv_lib_rt_clock_gettime=yes
11164 ac_cv_lib_rt_clock_gettime=no
11166 rm -f core conftest.err conftest.$ac_objext \
11167 conftest$ac_exeext conftest.$ac_ext
11168 LIBS=$ac_check_lib_save_LIBS
11170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
11171 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
11172 if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
11173 PC_LIBS_PRIVATE="-lrt"
11177 THREAD_CFLAGS="-pthread"
11178 PC_LIBS_PRIVATE="${PC_LIBS_PRIVATE} -pthread"
11179 for ac_header in poll.h
11181 ac_fn_c_check_header_mongrel "$LINENO" "poll.h" "ac_cv_header_poll_h" "$ac_includes_default"
11182 if test "x$ac_cv_header_poll_h" = xyes; then :
11183 cat >>confdefs.h <<_ACEOF
11184 #define HAVE_POLL_H 1
11192 $as_echo "#define POLL_NFDS_TYPE nfds_t" >>confdefs.h
11197 $as_echo "#define OS_DARWIN 1" >>confdefs.h
11201 PC_LIBS_PRIVATE="-lobjc -Wl,-framework,IOKit -Wl,-framework,CoreFoundation"
11202 LTLDFLAGS="${LTLDFLAGS} -Wl,-prebind"
11203 for ac_header in poll.h
11205 ac_fn_c_check_header_mongrel "$LINENO" "poll.h" "ac_cv_header_poll_h" "$ac_includes_default"
11206 if test "x$ac_cv_header_poll_h" = xyes; then :
11207 cat >>confdefs.h <<_ACEOF
11208 #define HAVE_POLL_H 1
11215 ac_fn_c_check_type "$LINENO" "nfds_t" "ac_cv_type_nfds_t" "#include <poll.h>
11217 if test "x$ac_cv_type_nfds_t" = xyes; then :
11219 $as_echo "#define POLL_NFDS_TYPE nfds_t" >>confdefs.h
11223 $as_echo "#define POLL_NFDS_TYPE unsigned int" >>confdefs.h
11230 $as_echo "#define OS_OPENBSD 1" >>confdefs.h
11234 THREAD_CFLAGS="-pthread"
11235 PC_LIBS_PRIVATE="-pthread"
11236 for ac_header in poll.h
11238 ac_fn_c_check_header_mongrel "$LINENO" "poll.h" "ac_cv_header_poll_h" "$ac_includes_default"
11239 if test "x$ac_cv_header_poll_h" = xyes; then :
11240 cat >>confdefs.h <<_ACEOF
11241 #define HAVE_POLL_H 1
11249 $as_echo "#define POLL_NFDS_TYPE nfds_t" >>confdefs.h
11254 $as_echo "#define OS_WINDOWS 1" >>confdefs.h
11258 LTLDFLAGS="${LTLDFLAGS} -avoid-version -Wl,--add-stdcall-alias"
11260 $as_echo "#define POLL_NFDS_TYPE unsigned int" >>confdefs.h
11266 LIBS="${LIBS} ${PC_LIBS_PRIVATE}"
11268 if test "x$backend" = xlinux; then
11276 if test "x$backend" = xdarwin; then
11278 OS_DARWIN_FALSE='#'
11284 if test "x$backend" = xopenbsd; then
11286 OS_OPENBSD_FALSE='#'
11288 OS_OPENBSD_TRUE='#'
11292 if test "x$backend" = xwindows; then
11294 OS_WINDOWS_FALSE='#'
11296 OS_WINDOWS_TRUE='#'
11300 if test "x$threads" = xposix; then
11301 THREADS_POSIX_TRUE=
11302 THREADS_POSIX_FALSE='#'
11304 THREADS_POSIX_TRUE='#'
11305 THREADS_POSIX_FALSE=
11308 if test "$threads" = posix; then
11310 $as_echo "#define THREADS_POSIX 1" >>confdefs.h
11315 ac_fn_c_check_header_mongrel "$LINENO" "sys/timerfd.h" "ac_cv_header_sys_timerfd_h" "$ac_includes_default"
11316 if test "x$ac_cv_header_sys_timerfd_h" = xyes; then :
11323 # Check whether --enable-timerfd was given.
11324 if test "${enable_timerfd+set}" = set; then :
11325 enableval=$enable_timerfd; use_timerfd=$enableval
11331 if test "x$use_timerfd" = "xyes" -a "x$timerfd_h" = "x0"; then
11332 as_fn_error $? "timerfd header not available; glibc 2.9+ required" "$LINENO" 5
11335 ac_fn_c_check_decl "$LINENO" "TFD_NONBLOCK" "ac_cv_have_decl_TFD_NONBLOCK" "#include <sys/timerfd.h>
11337 if test "x$ac_cv_have_decl_TFD_NONBLOCK" = xyes; then :
11343 if test "x$use_timerfd" = "xyes" -a "x$tfd_hdr_ok" = "xno"; then
11344 as_fn_error $? "timerfd header not usable; glibc 2.9+ required" "$LINENO" 5
11347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use timerfd for timing" >&5
11348 $as_echo_n "checking whether to use timerfd for timing... " >&6; }
11349 if test "x$use_timerfd" = "xno"; then
11350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (disabled by user)" >&5
11351 $as_echo "no (disabled by user)" >&6; }
11353 if test "x$timerfd_h" = "x1" -a "x$tfd_hdr_ok" = "xyes"; then
11354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11355 $as_echo "yes" >&6; }
11357 $as_echo "#define USBI_TIMERFD_AVAILABLE 1" >>confdefs.h
11360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (header not available)" >&5
11361 $as_echo "no (header not available)" >&6; }
11365 ac_fn_c_check_type "$LINENO" "struct timespec" "ac_cv_type_struct_timespec" "$ac_includes_default"
11366 if test "x$ac_cv_type_struct_timespec" = xyes; then :
11368 cat >>confdefs.h <<_ACEOF
11369 #define HAVE_STRUCT_TIMESPEC 1
11377 # Check whether --enable-log was given.
11378 if test "${enable_log+set}" = set; then :
11379 enableval=$enable_log; log_enabled=$enableval
11384 if test "x$log_enabled" != "xno"; then
11386 $as_echo "#define ENABLE_LOGGING 1" >>confdefs.h
11390 # Check whether --enable-debug-log was given.
11391 if test "${enable_debug_log+set}" = set; then :
11392 enableval=$enable_debug_log; debug_log_enabled=$enableval
11394 debug_log_enabled='no'
11397 if test "x$debug_log_enabled" != "xno"; then
11399 $as_echo "#define ENABLE_DEBUG_LOGGING 1" >>confdefs.h
11404 # Check whether --enable-examples-build was given.
11405 if test "${enable_examples_build+set}" = set; then :
11406 enableval=$enable_examples_build; build_examples=$enableval
11408 build_examples='no'
11411 if test "x$build_examples" != "xno"; then
11412 BUILD_EXAMPLES_TRUE=
11413 BUILD_EXAMPLES_FALSE='#'
11415 BUILD_EXAMPLES_TRUE='#'
11416 BUILD_EXAMPLES_FALSE=
11420 # check for -fvisibility=hidden compiler support (GCC >= 3.4)
11421 saved_cflags="$CFLAGS"
11422 # -Werror required for cygwin
11423 CFLAGS="$CFLAGS -Werror -fvisibility=hidden"
11424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11425 /* end confdefs.h. */
11435 if ac_fn_c_try_compile "$LINENO"; then :
11436 VISIBILITY_CFLAGS="-fvisibility=hidden"
11438 $as_echo "#define DEFAULT_VISIBILITY __attribute__((visibility(\"default\")))" >>confdefs.h
11441 VISIBILITY_CFLAGS=""
11443 $as_echo "#define DEFAULT_VISIBILITY /**/" >>confdefs.h
11446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11447 CFLAGS="$saved_cflags"
11449 # check for -Wno-pointer-sign compiler support (GCC >= 4)
11450 saved_cflags="$CFLAGS"
11451 CFLAGS="$CFLAGS -Wno-pointer-sign"
11452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11453 /* end confdefs.h. */
11463 if ac_fn_c_try_compile "$LINENO"; then :
11464 nopointersign_cflags="-Wno-pointer-sign"
11466 nopointersign_cflags=""
11468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11469 CFLAGS="$saved_cflags"
11471 # sigaction not available on MinGW
11472 ac_fn_c_check_func "$LINENO" "sigaction" "ac_cv_func_sigaction"
11473 if test "x$ac_cv_func_sigaction" = xyes; then :
11479 if test "x$have_sigaction" = "xyes"; then
11480 HAVE_SIGACTION_TRUE=
11481 HAVE_SIGACTION_FALSE='#'
11483 HAVE_SIGACTION_TRUE='#'
11484 HAVE_SIGACTION_FALSE=
11488 # headers not available on all platforms but required on others
11489 for ac_header in sys/time.h
11491 ac_fn_c_check_header_mongrel "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
11492 if test "x$ac_cv_header_sys_time_h" = xyes; then :
11493 cat >>confdefs.h <<_ACEOF
11494 #define HAVE_SYS_TIME_H 1
11501 for ac_func in gettimeofday
11503 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
11504 if test "x$ac_cv_func_gettimeofday" = xyes; then :
11505 cat >>confdefs.h <<_ACEOF
11506 #define HAVE_GETTIMEOFDAY 1
11513 AM_CFLAGS="-std=gnu99 -Wall -Wundef -Wunused -Wstrict-prototypes -Werror-implicit-function-declaration $nopointersign_cflags -Wshadow"
11519 ac_config_files="$ac_config_files libusb-1.0.pc"
11521 ac_config_files="$ac_config_files Makefile"
11523 ac_config_files="$ac_config_files libusb/Makefile"
11525 ac_config_files="$ac_config_files examples/Makefile"
11527 ac_config_files="$ac_config_files doc/Makefile"
11529 ac_config_files="$ac_config_files doc/doxygen.cfg"
11531 cat >confcache <<\_ACEOF
11532 # This file is a shell script that caches the results of configure
11533 # tests run on this system so they can be shared between configure
11534 # scripts and configure runs, see configure's option --config-cache.
11535 # It is not useful on other systems. If it contains results you don't
11536 # want to keep, you may remove or edit it.
11538 # config.status only pays attention to the cache file if you give it
11539 # the --recheck option to rerun configure.
11541 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11542 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11543 # following values.
11547 # The following way of writing the cache mishandles newlines in values,
11548 # but we know of no workaround that is simple, portable, and efficient.
11549 # So, we kill variables containing newlines.
11550 # Ultrix sh set writes to stderr and can't be redirected directly,
11551 # and sets the high bit in the cache file unless we assign to the vars.
11553 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11554 eval ac_val=\$$ac_var
11558 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11559 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11562 _ | IFS | as_nl) ;; #(
11563 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11564 *) { eval $ac_var=; unset $ac_var;} ;;
11570 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11571 *${as_nl}ac_space=\ *)
11572 # `set' does not quote correctly, so add quotes: double-quote
11573 # substitution turns \\\\ into \\, and sed turns \\ into \.
11576 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11579 # `set' quotes correctly as required by POSIX, so do not add quotes.
11580 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11589 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11591 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11593 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11594 if test -w "$cache_file"; then
11595 if test "x$cache_file" != "x/dev/null"; then
11596 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11597 $as_echo "$as_me: updating cache $cache_file" >&6;}
11598 if test ! -f "$cache_file" || test -h "$cache_file"; then
11599 cat confcache >"$cache_file"
11601 case $cache_file in #(
11603 mv -f confcache "$cache_file"$$ &&
11604 mv -f "$cache_file"$$ "$cache_file" ;; #(
11606 mv -f confcache "$cache_file" ;;
11611 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11612 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11617 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11618 # Let make expand exec_prefix.
11619 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11621 DEFS=-DHAVE_CONFIG_H
11626 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11627 # 1. Remove the extension, and $U if already installed.
11628 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11629 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11630 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11631 # will be set to the directory where LIBOBJS objects are built.
11632 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11633 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11635 LIBOBJS=$ac_libobjs
11637 LTLIBOBJS=$ac_ltlibobjs
11640 if test -n "$EXEEXT"; then
11642 am__EXEEXT_FALSE='#'
11644 am__EXEEXT_TRUE='#'
11648 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
11649 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
11650 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11652 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11653 as_fn_error $? "conditional \"AMDEP\" was never defined.
11654 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11656 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11657 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11658 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11660 if test -z "${OS_LINUX_TRUE}" && test -z "${OS_LINUX_FALSE}"; then
11661 as_fn_error $? "conditional \"OS_LINUX\" was never defined.
11662 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11664 if test -z "${OS_DARWIN_TRUE}" && test -z "${OS_DARWIN_FALSE}"; then
11665 as_fn_error $? "conditional \"OS_DARWIN\" was never defined.
11666 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11668 if test -z "${OS_OPENBSD_TRUE}" && test -z "${OS_OPENBSD_FALSE}"; then
11669 as_fn_error $? "conditional \"OS_OPENBSD\" was never defined.
11670 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11672 if test -z "${OS_WINDOWS_TRUE}" && test -z "${OS_WINDOWS_FALSE}"; then
11673 as_fn_error $? "conditional \"OS_WINDOWS\" was never defined.
11674 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11676 if test -z "${THREADS_POSIX_TRUE}" && test -z "${THREADS_POSIX_FALSE}"; then
11677 as_fn_error $? "conditional \"THREADS_POSIX\" was never defined.
11678 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11680 if test -z "${BUILD_EXAMPLES_TRUE}" && test -z "${BUILD_EXAMPLES_FALSE}"; then
11681 as_fn_error $? "conditional \"BUILD_EXAMPLES\" was never defined.
11682 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11684 if test -z "${HAVE_SIGACTION_TRUE}" && test -z "${HAVE_SIGACTION_FALSE}"; then
11685 as_fn_error $? "conditional \"HAVE_SIGACTION\" was never defined.
11686 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11689 : "${CONFIG_STATUS=./config.status}"
11691 ac_clean_files_save=$ac_clean_files
11692 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11693 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11694 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11696 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11698 # Generated by $as_me.
11699 # Run this file to recreate the current configuration.
11700 # Compiler output produced by configure, useful for debugging
11701 # configure, is in config.log if it exists.
11704 ac_cs_recheck=false
11707 SHELL=\${CONFIG_SHELL-$SHELL}
11710 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11711 ## -------------------- ##
11712 ## M4sh Initialization. ##
11713 ## -------------------- ##
11715 # Be more Bourne compatible
11716 DUALCASE=1; export DUALCASE # for MKS sh
11717 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11720 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11721 # is contrary to our usage. Disable this feature.
11722 alias -g '${1+"$@"}'='"$@"'
11723 setopt NO_GLOB_SUBST
11725 case `(set -o) 2>/dev/null` in #(
11737 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11738 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11739 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11740 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11741 # Prefer a ksh shell builtin over an external printf program on Solaris,
11742 # but without wasting forks for bash or zsh.
11743 if test -z "$BASH_VERSION$ZSH_VERSION" \
11744 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11745 as_echo='print -r --'
11746 as_echo_n='print -rn --'
11747 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11748 as_echo='printf %s\n'
11749 as_echo_n='printf %s'
11751 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11752 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11753 as_echo_n='/usr/ucb/echo -n'
11755 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11756 as_echo_n_body='eval
11760 expr "X$arg" : "X\\(.*\\)$as_nl";
11761 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11763 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11765 export as_echo_n_body
11766 as_echo_n='sh -c $as_echo_n_body as_echo'
11768 export as_echo_body
11769 as_echo='sh -c $as_echo_body as_echo'
11772 # The user is always right.
11773 if test "${PATH_SEPARATOR+set}" != set; then
11775 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11776 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11783 # We need space, tab and new line, in precisely that order. Quoting is
11784 # there to prevent editors from complaining about space-tab.
11785 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11786 # splitting by setting IFS to empty value.)
11789 # Find who we are. Look in the path if we contain no directory separator.
11792 *[\\/]* ) as_myself=$0 ;;
11793 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11794 for as_dir in $PATH
11797 test -z "$as_dir" && as_dir=.
11798 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11804 # We did not find ourselves, most probably we were run as `sh COMMAND'
11805 # in which case we are not to be found in the path.
11806 if test "x$as_myself" = x; then
11809 if test ! -f "$as_myself"; then
11810 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11814 # Unset variables that we do not need and which cause bugs (e.g. in
11815 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11816 # suppresses any "Segmentation fault" message there. '((' could
11817 # trigger a bug in pdksh 5.2.14.
11818 for as_var in BASH_ENV ENV MAIL MAILPATH
11819 do eval test x\${$as_var+set} = xset \
11820 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11833 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11836 # as_fn_error STATUS ERROR [LINENO LOG_FD]
11837 # ----------------------------------------
11838 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11839 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11840 # script with STATUS, using 1 if that was 0.
11843 as_status=$1; test $as_status -eq 0 && as_status=1
11845 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11846 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11848 $as_echo "$as_me: error: $2" >&2
11849 as_fn_exit $as_status
11853 # as_fn_set_status STATUS
11854 # -----------------------
11855 # Set $? to STATUS, without forking.
11856 as_fn_set_status ()
11859 } # as_fn_set_status
11861 # as_fn_exit STATUS
11862 # -----------------
11863 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11867 as_fn_set_status $1
11873 # Portably unset VAR.
11876 { eval $1=; unset $1;}
11878 as_unset=as_fn_unset
11879 # as_fn_append VAR VALUE
11880 # ----------------------
11881 # Append the text in VALUE to the end of the definition contained in VAR. Take
11882 # advantage of any shell optimizations that allow amortized linear growth over
11883 # repeated appends, instead of the typical quadratic growth present in naive
11885 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11886 eval 'as_fn_append ()
11897 # as_fn_arith ARG...
11898 # ------------------
11899 # Perform arithmetic evaluation on the ARGs, and store the result in the
11900 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11901 # must be portable across $(()) and expr.
11902 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11903 eval 'as_fn_arith ()
11910 as_val=`expr "$@" || test $? -eq 1`
11915 if expr a : '\(a\)' >/dev/null 2>&1 &&
11916 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11922 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11923 as_basename=basename
11928 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11934 as_me=`$as_basename -- "$0" ||
11935 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11936 X"$0" : 'X\(//\)$' \| \
11937 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11939 sed '/^.*\/\([^/][^/]*\)\/*$/{
11953 # Avoid depending upon Character Ranges.
11954 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11955 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11956 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11957 as_cr_digits='0123456789'
11958 as_cr_alnum=$as_cr_Letters$as_cr_digits
11960 ECHO_C= ECHO_N= ECHO_T=
11961 case `echo -n x` in #(((((
11963 case `echo 'xy\c'` in
11964 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11966 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11973 rm -f conf$$ conf$$.exe conf$$.file
11974 if test -d conf$$.dir; then
11975 rm -f conf$$.dir/conf$$.file
11978 mkdir conf$$.dir 2>/dev/null
11980 if (echo >conf$$.file) 2>/dev/null; then
11981 if ln -s conf$$.file conf$$ 2>/dev/null; then
11983 # ... but there are two gotchas:
11984 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11985 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11986 # In both cases, we have to default to `cp -p'.
11987 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11989 elif ln conf$$.file conf$$ 2>/dev/null; then
11997 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11998 rmdir conf$$.dir 2>/dev/null
12003 # Create "$as_dir" as a directory, including parents if necessary.
12008 -*) as_dir=./$as_dir;;
12010 test -d "$as_dir" || eval $as_mkdir_p || {
12014 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12015 *) as_qdir=$as_dir;;
12017 as_dirs="'$as_qdir' $as_dirs"
12018 as_dir=`$as_dirname -- "$as_dir" ||
12019 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12020 X"$as_dir" : 'X\(//\)[^/]' \| \
12021 X"$as_dir" : 'X\(//\)$' \| \
12022 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12023 $as_echo X"$as_dir" |
12024 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12028 /^X\(\/\/\)[^/].*/{
12041 test -d "$as_dir" && break
12043 test -z "$as_dirs" || eval "mkdir $as_dirs"
12044 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12048 if mkdir -p . 2>/dev/null; then
12049 as_mkdir_p='mkdir -p "$as_dir"'
12051 test -d ./-p && rmdir ./-p
12055 if test -x / >/dev/null 2>&1; then
12056 as_test_x='test -x'
12058 if ls -dL / >/dev/null 2>&1; then
12065 if test -d "$1"; then
12071 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
12072 ???[sx]*):;;*)false;;esac;fi
12076 as_executable_p=$as_test_x
12078 # Sed expression to map a string onto a valid CPP name.
12079 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12081 # Sed expression to map a string onto a valid variable name.
12082 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12086 ## ----------------------------------- ##
12087 ## Main body of $CONFIG_STATUS script. ##
12088 ## ----------------------------------- ##
12090 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12092 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12093 # Save the log message, to keep $0 and so on meaningful, and to
12094 # report actual input values of CONFIG_FILES etc. instead of their
12095 # values after options handling.
12097 This file was extended by libusb $as_me 1.0.9, which was
12098 generated by GNU Autoconf 2.68. Invocation command line was
12100 CONFIG_FILES = $CONFIG_FILES
12101 CONFIG_HEADERS = $CONFIG_HEADERS
12102 CONFIG_LINKS = $CONFIG_LINKS
12103 CONFIG_COMMANDS = $CONFIG_COMMANDS
12106 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12111 case $ac_config_files in *"
12112 "*) set x $ac_config_files; shift; ac_config_files=$*;;
12115 case $ac_config_headers in *"
12116 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12120 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12121 # Files that config.status was made for.
12122 config_files="$ac_config_files"
12123 config_headers="$ac_config_headers"
12124 config_commands="$ac_config_commands"
12128 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12130 \`$as_me' instantiates files and other configuration actions
12131 from templates according to the current configuration. Unless the files
12132 and actions are specified as TAGs, all are instantiated by default.
12134 Usage: $0 [OPTION]... [TAG]...
12136 -h, --help print this help, then exit
12137 -V, --version print version number and configuration settings, then exit
12138 --config print configuration, then exit
12139 -q, --quiet, --silent
12140 do not print progress messages
12141 -d, --debug don't remove temporary files
12142 --recheck update $as_me by reconfiguring in the same conditions
12143 --file=FILE[:TEMPLATE]
12144 instantiate the configuration file FILE
12145 --header=FILE[:TEMPLATE]
12146 instantiate the configuration header FILE
12148 Configuration files:
12151 Configuration headers:
12154 Configuration commands:
12157 Report bugs to <libusb-devel@lists.sourceforge.net>.
12158 libusb home page: <http://www.libusb.org/>."
12161 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12162 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12164 libusb config.status 1.0.9
12165 configured by $0, generated by GNU Autoconf 2.68,
12166 with options \\"\$ac_cs_config\\"
12168 Copyright (C) 2010 Free Software Foundation, Inc.
12169 This config.status script is free software; the Free Software Foundation
12170 gives unlimited permission to copy, distribute and modify it."
12177 test -n "\$AWK" || AWK=awk
12180 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12181 # The default lists apply if the user does not specify any file.
12187 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12188 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12192 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12204 # Handling of the options.
12205 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12207 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12208 $as_echo "$ac_cs_version"; exit ;;
12209 --config | --confi | --conf | --con | --co | --c )
12210 $as_echo "$ac_cs_config"; exit ;;
12211 --debug | --debu | --deb | --de | --d | -d )
12213 --file | --fil | --fi | --f )
12216 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12217 '') as_fn_error $? "missing file argument" ;;
12219 as_fn_append CONFIG_FILES " '$ac_optarg'"
12220 ac_need_defaults=false;;
12221 --header | --heade | --head | --hea )
12224 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12226 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12227 ac_need_defaults=false;;
12229 # Conflict between --help and --header
12230 as_fn_error $? "ambiguous option: \`$1'
12231 Try \`$0 --help' for more information.";;
12232 --help | --hel | -h )
12233 $as_echo "$ac_cs_usage"; exit ;;
12234 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12235 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12238 # This is an error.
12239 -*) as_fn_error $? "unrecognized option: \`$1'
12240 Try \`$0 --help' for more information." ;;
12242 *) as_fn_append ac_config_targets " $1"
12243 ac_need_defaults=false ;;
12249 ac_configure_extra_args=
12251 if $ac_cs_silent; then
12253 ac_configure_extra_args="$ac_configure_extra_args --silent"
12257 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12258 if \$ac_cs_recheck; then
12259 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12261 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12262 CONFIG_SHELL='$SHELL'
12263 export CONFIG_SHELL
12268 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12272 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12273 ## Running $as_me. ##
12279 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12283 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12286 # The HP-UX ksh and POSIX shell print the target directory to stdout
12287 # if CDPATH is set.
12288 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12290 sed_quote_subst='$sed_quote_subst'
12291 double_quote_subst='$double_quote_subst'
12292 delay_variable_subst='$delay_variable_subst'
12293 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
12294 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
12295 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
12296 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
12297 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
12298 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
12299 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
12300 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
12301 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
12302 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
12303 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
12304 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
12305 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
12306 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
12307 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
12308 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
12309 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
12310 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
12311 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
12312 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
12313 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
12314 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
12315 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
12316 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
12317 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
12318 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
12319 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
12320 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
12321 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
12322 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
12323 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
12324 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
12325 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
12326 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
12327 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
12328 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
12329 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
12330 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12331 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12332 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
12333 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
12334 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
12335 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
12336 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
12337 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
12338 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
12339 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
12340 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
12341 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
12342 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
12343 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
12344 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
12345 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
12346 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
12347 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
12348 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
12349 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
12350 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
12351 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
12352 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
12353 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
12354 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
12355 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
12356 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
12357 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12358 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
12359 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
12360 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
12361 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
12362 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
12363 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
12364 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12365 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
12366 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12367 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
12368 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12369 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
12370 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
12371 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
12372 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
12373 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
12374 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
12375 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
12376 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
12377 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
12378 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
12379 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
12380 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
12381 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
12382 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
12383 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
12384 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
12385 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
12386 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
12387 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
12388 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
12389 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
12390 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
12391 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
12392 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
12393 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
12394 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
12395 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
12396 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
12397 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
12398 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
12399 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
12400 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12401 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12402 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
12403 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
12404 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
12405 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
12406 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
12407 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
12408 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
12409 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
12410 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
12411 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
12412 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
12413 LD_RC='`$ECHO "$LD_RC" | $SED "$delay_single_quote_subst"`'
12414 reload_flag_RC='`$ECHO "$reload_flag_RC" | $SED "$delay_single_quote_subst"`'
12415 reload_cmds_RC='`$ECHO "$reload_cmds_RC" | $SED "$delay_single_quote_subst"`'
12416 old_archive_cmds_RC='`$ECHO "$old_archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
12417 compiler_RC='`$ECHO "$compiler_RC" | $SED "$delay_single_quote_subst"`'
12418 GCC_RC='`$ECHO "$GCC_RC" | $SED "$delay_single_quote_subst"`'
12419 lt_prog_compiler_no_builtin_flag_RC='`$ECHO "$lt_prog_compiler_no_builtin_flag_RC" | $SED "$delay_single_quote_subst"`'
12420 lt_prog_compiler_wl_RC='`$ECHO "$lt_prog_compiler_wl_RC" | $SED "$delay_single_quote_subst"`'
12421 lt_prog_compiler_pic_RC='`$ECHO "$lt_prog_compiler_pic_RC" | $SED "$delay_single_quote_subst"`'
12422 lt_prog_compiler_static_RC='`$ECHO "$lt_prog_compiler_static_RC" | $SED "$delay_single_quote_subst"`'
12423 lt_cv_prog_compiler_c_o_RC='`$ECHO "$lt_cv_prog_compiler_c_o_RC" | $SED "$delay_single_quote_subst"`'
12424 archive_cmds_need_lc_RC='`$ECHO "$archive_cmds_need_lc_RC" | $SED "$delay_single_quote_subst"`'
12425 enable_shared_with_static_runtimes_RC='`$ECHO "$enable_shared_with_static_runtimes_RC" | $SED "$delay_single_quote_subst"`'
12426 export_dynamic_flag_spec_RC='`$ECHO "$export_dynamic_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
12427 whole_archive_flag_spec_RC='`$ECHO "$whole_archive_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
12428 compiler_needs_object_RC='`$ECHO "$compiler_needs_object_RC" | $SED "$delay_single_quote_subst"`'
12429 old_archive_from_new_cmds_RC='`$ECHO "$old_archive_from_new_cmds_RC" | $SED "$delay_single_quote_subst"`'
12430 old_archive_from_expsyms_cmds_RC='`$ECHO "$old_archive_from_expsyms_cmds_RC" | $SED "$delay_single_quote_subst"`'
12431 archive_cmds_RC='`$ECHO "$archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
12432 archive_expsym_cmds_RC='`$ECHO "$archive_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
12433 module_cmds_RC='`$ECHO "$module_cmds_RC" | $SED "$delay_single_quote_subst"`'
12434 module_expsym_cmds_RC='`$ECHO "$module_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
12435 with_gnu_ld_RC='`$ECHO "$with_gnu_ld_RC" | $SED "$delay_single_quote_subst"`'
12436 allow_undefined_flag_RC='`$ECHO "$allow_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
12437 no_undefined_flag_RC='`$ECHO "$no_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
12438 hardcode_libdir_flag_spec_RC='`$ECHO "$hardcode_libdir_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
12439 hardcode_libdir_flag_spec_ld_RC='`$ECHO "$hardcode_libdir_flag_spec_ld_RC" | $SED "$delay_single_quote_subst"`'
12440 hardcode_libdir_separator_RC='`$ECHO "$hardcode_libdir_separator_RC" | $SED "$delay_single_quote_subst"`'
12441 hardcode_direct_RC='`$ECHO "$hardcode_direct_RC" | $SED "$delay_single_quote_subst"`'
12442 hardcode_direct_absolute_RC='`$ECHO "$hardcode_direct_absolute_RC" | $SED "$delay_single_quote_subst"`'
12443 hardcode_minus_L_RC='`$ECHO "$hardcode_minus_L_RC" | $SED "$delay_single_quote_subst"`'
12444 hardcode_shlibpath_var_RC='`$ECHO "$hardcode_shlibpath_var_RC" | $SED "$delay_single_quote_subst"`'
12445 hardcode_automatic_RC='`$ECHO "$hardcode_automatic_RC" | $SED "$delay_single_quote_subst"`'
12446 inherit_rpath_RC='`$ECHO "$inherit_rpath_RC" | $SED "$delay_single_quote_subst"`'
12447 link_all_deplibs_RC='`$ECHO "$link_all_deplibs_RC" | $SED "$delay_single_quote_subst"`'
12448 fix_srcfile_path_RC='`$ECHO "$fix_srcfile_path_RC" | $SED "$delay_single_quote_subst"`'
12449 always_export_symbols_RC='`$ECHO "$always_export_symbols_RC" | $SED "$delay_single_quote_subst"`'
12450 export_symbols_cmds_RC='`$ECHO "$export_symbols_cmds_RC" | $SED "$delay_single_quote_subst"`'
12451 exclude_expsyms_RC='`$ECHO "$exclude_expsyms_RC" | $SED "$delay_single_quote_subst"`'
12452 include_expsyms_RC='`$ECHO "$include_expsyms_RC" | $SED "$delay_single_quote_subst"`'
12453 prelink_cmds_RC='`$ECHO "$prelink_cmds_RC" | $SED "$delay_single_quote_subst"`'
12454 file_list_spec_RC='`$ECHO "$file_list_spec_RC" | $SED "$delay_single_quote_subst"`'
12455 hardcode_action_RC='`$ECHO "$hardcode_action_RC" | $SED "$delay_single_quote_subst"`'
12458 LTCFLAGS='$LTCFLAGS'
12459 compiler='$compiler_DEFAULT'
12461 # A function that is used when there is no print builtin or printf.
12462 func_fallback_echo ()
12464 eval 'cat <<_LTECHO_EOF
12469 # Quote evaled strings.
12483 deplibs_check_method \
12492 lt_cv_sys_global_symbol_pipe \
12493 lt_cv_sys_global_symbol_to_cdecl \
12494 lt_cv_sys_global_symbol_to_c_name_address \
12495 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
12496 lt_prog_compiler_no_builtin_flag \
12497 lt_prog_compiler_wl \
12498 lt_prog_compiler_pic \
12499 lt_prog_compiler_static \
12500 lt_cv_prog_compiler_c_o \
12508 export_dynamic_flag_spec \
12509 whole_archive_flag_spec \
12510 compiler_needs_object \
12512 allow_undefined_flag \
12513 no_undefined_flag \
12514 hardcode_libdir_flag_spec \
12515 hardcode_libdir_flag_spec_ld \
12516 hardcode_libdir_separator \
12521 variables_saved_for_relink \
12523 library_names_spec \
12525 install_override_mode \
12532 lt_prog_compiler_no_builtin_flag_RC \
12533 lt_prog_compiler_wl_RC \
12534 lt_prog_compiler_pic_RC \
12535 lt_prog_compiler_static_RC \
12536 lt_cv_prog_compiler_c_o_RC \
12537 export_dynamic_flag_spec_RC \
12538 whole_archive_flag_spec_RC \
12539 compiler_needs_object_RC \
12541 allow_undefined_flag_RC \
12542 no_undefined_flag_RC \
12543 hardcode_libdir_flag_spec_RC \
12544 hardcode_libdir_flag_spec_ld_RC \
12545 hardcode_libdir_separator_RC \
12546 fix_srcfile_path_RC \
12547 exclude_expsyms_RC \
12548 include_expsyms_RC \
12549 file_list_spec_RC; do
12550 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
12551 *[\\\\\\\`\\"\\\$]*)
12552 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
12555 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12560 # Double-quote double-evaled strings.
12561 for var in reload_cmds \
12562 old_postinstall_cmds \
12563 old_postuninstall_cmds \
12565 extract_expsyms_cmds \
12566 old_archive_from_new_cmds \
12567 old_archive_from_expsyms_cmds \
12569 archive_expsym_cmds \
12571 module_expsym_cmds \
12572 export_symbols_cmds \
12575 postuninstall_cmds \
12577 sys_lib_search_path_spec \
12578 sys_lib_dlsearch_path_spec \
12580 old_archive_cmds_RC \
12581 old_archive_from_new_cmds_RC \
12582 old_archive_from_expsyms_cmds_RC \
12584 archive_expsym_cmds_RC \
12586 module_expsym_cmds_RC \
12587 export_symbols_cmds_RC \
12588 prelink_cmds_RC; do
12589 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
12590 *[\\\\\\\`\\"\\\$]*)
12591 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
12594 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12599 ac_aux_dir='$ac_aux_dir'
12600 xsi_shell='$xsi_shell'
12601 lt_shell_append='$lt_shell_append'
12603 # See if we are running on zsh, and set the options which allow our
12604 # commands through without removal of \ escapes INIT.
12605 if test -n "\${ZSH_VERSION+set}" ; then
12606 setopt NO_GLOB_SUBST
12612 TIMESTAMP='$TIMESTAMP'
12623 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12625 # Handling of arguments.
12626 for ac_config_target in $ac_config_targets
12628 case $ac_config_target in
12629 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12630 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12631 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
12632 "libusb-1.0.pc") CONFIG_FILES="$CONFIG_FILES libusb-1.0.pc" ;;
12633 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12634 "libusb/Makefile") CONFIG_FILES="$CONFIG_FILES libusb/Makefile" ;;
12635 "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
12636 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
12637 "doc/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES doc/doxygen.cfg" ;;
12639 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12644 # If the user did not use the arguments to specify the items to instantiate,
12645 # then the envvar interface is used. Set only those that are not.
12646 # We use the long form for the default assignment because of an extremely
12647 # bizarre bug on SunOS 4.1.3.
12648 if $ac_need_defaults; then
12649 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12650 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12651 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12654 # Have a temporary directory for convenience. Make it in the build tree
12655 # simply because there is no reason against having it here, and in addition,
12656 # creating and moving files from /tmp can sometimes cause problems.
12657 # Hook for its removal unless debugging.
12658 # Note that there is a small window in which the directory will not be cleaned:
12659 # after its creation but before its name has been assigned to `$tmp'.
12663 trap 'exit_status=$?
12664 : "${ac_tmp:=$tmp}"
12665 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12667 trap 'as_fn_exit 1' 1 2 13 15
12669 # Create a (secure) tmp directory for tmp files.
12672 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12676 tmp=./conf$$-$RANDOM
12677 (umask 077 && mkdir "$tmp")
12678 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12681 # Set up the scripts for CONFIG_FILES section.
12682 # No need to generate them if there are no CONFIG_FILES.
12683 # This happens for instance with `./config.status config.h'.
12684 if test -n "$CONFIG_FILES"; then
12687 ac_cr=`echo X | tr X '\015'`
12688 # On cygwin, bash can eat \r inside `` if the user requested igncr.
12689 # But we know of no other shell where ac_cr would be empty at this
12690 # point, so we can use a bashism as a fallback.
12691 if test "x$ac_cr" = x; then
12692 eval ac_cr=\$\'\\r\'
12694 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12695 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12698 ac_cs_awk_cr=$ac_cr
12701 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12706 echo "cat >conf$$subs.awk <<_ACEOF" &&
12707 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12709 } >conf$$subs.sh ||
12710 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12711 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12713 for ac_last_try in false false false false false :; do
12714 . ./conf$$subs.sh ||
12715 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12717 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12718 if test $ac_delim_n = $ac_delim_num; then
12720 elif $ac_last_try; then
12721 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12723 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12726 rm -f conf$$subs.sh
12728 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12729 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12733 s/^/S["/; s/!.*/"]=/
12743 s/\(.\{148\}\)..*/\1/
12745 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12750 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12757 s/\(.\{148\}\)..*/\1/
12759 s/["\\]/\\&/g; s/^/"/; s/$/"/
12763 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12768 ' <conf$$subs.awk | sed '
12773 ' >>$CONFIG_STATUS || ac_write_fail=1
12774 rm -f conf$$subs.awk
12775 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12777 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12778 for (key in S) S_is_set[key] = 1
12784 nfields = split(line, field, "@")
12786 len = length(field[1])
12787 for (i = 2; i < nfields; i++) {
12789 keylen = length(key)
12790 if (S_is_set[key]) {
12792 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12793 len += length(value) + length(field[++i])
12804 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12805 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12806 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12809 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12810 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12813 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12814 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12815 # trailing colons and then remove the whole line if VPATH becomes empty
12816 # (actually we leave an empty line to preserve line numbers).
12817 if test "x$srcdir" = x.; then
12818 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
12836 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12837 fi # test -n "$CONFIG_FILES"
12839 # Set up the scripts for CONFIG_HEADERS section.
12840 # No need to generate them if there are no CONFIG_HEADERS.
12841 # This happens for instance with `./config.status Makefile'.
12842 if test -n "$CONFIG_HEADERS"; then
12843 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
12847 # Transform confdefs.h into an awk script `defines.awk', embedded as
12848 # here-document in config.status, that substitutes the proper values into
12849 # config.h.in to produce config.h.
12851 # Create a delimiter string that does not exist in confdefs.h, to ease
12852 # handling of long lines.
12854 for ac_last_try in false false :; do
12855 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12856 if test -z "$ac_tt"; then
12858 elif $ac_last_try; then
12859 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12861 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12865 # For the awk script, D is an array of macro values keyed by name,
12866 # likewise P contains macro parameters if any. Preserve backslash
12867 # newline sequences.
12869 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12871 s/.\{148\}/&'"$ac_delim"'/g
12874 s/^[ ]*#[ ]*define[ ][ ]*/ /
12881 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12883 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
12887 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12888 D["\1"]=" \3\\\\\\n"\\/p
12890 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12895 s/.\{148\}/&'"$ac_delim"'/g
12900 s/["\\]/\\&/g; s/^/"/; s/$/"/p
12903 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12905 ' <confdefs.h | sed '
12906 s/'"$ac_delim"'/"\\\
12907 "/g' >>$CONFIG_STATUS || ac_write_fail=1
12909 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12910 for (key in D) D_is_set[key] = 1
12913 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12915 split(line, arg, " ")
12916 if (arg[1] == "#") {
12920 defundef = substr(arg[1], 2)
12923 split(mac1, mac2, "(") #)
12925 prefix = substr(line, 1, index(line, defundef) - 1)
12926 if (D_is_set[macro]) {
12927 # Preserve the white space surrounding the "#".
12928 print prefix "define", macro P[macro] D[macro]
12931 # Replace #undef with comments. This is necessary, for example,
12932 # in the case of _POSIX_SOURCE, which is predefined and required
12933 # on some systems where configure will not decide to define it.
12934 if (defundef == "undef") {
12935 print "/*", prefix defundef, macro, "*/"
12943 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12944 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12945 fi # test -n "$CONFIG_HEADERS"
12948 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
12953 :[FHLC]) ac_mode=$ac_tag; continue;;
12955 case $ac_mode$ac_tag in
12957 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
12958 :[FH]-) ac_tag=-:-;;
12959 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12976 -) ac_f="$ac_tmp/stdin";;
12977 *) # Look for the file first in the build tree, then in the source tree
12978 # (if the path is not absolute). The absolute path cannot be DOS-style,
12979 # because $ac_f cannot contain `:'.
12983 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12985 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12987 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12988 as_fn_append ac_file_inputs " '$ac_f'"
12991 # Let's still pretend it is `configure' which instantiates (i.e., don't
12992 # use $as_me), people would be surprised to read:
12993 # /* config.h. Generated by config.status. */
12994 configure_input='Generated from '`
12995 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12997 if test x"$ac_file" != x-; then
12998 configure_input="$ac_file. $configure_input"
12999 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13000 $as_echo "$as_me: creating $ac_file" >&6;}
13002 # Neutralize special characters interpreted by sed in replacement strings.
13003 case $configure_input in #(
13004 *\&* | *\|* | *\\* )
13005 ac_sed_conf_input=`$as_echo "$configure_input" |
13006 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13007 *) ac_sed_conf_input=$configure_input;;
13011 *:-:* | *:-) cat >"$ac_tmp/stdin" \
13012 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13017 ac_dir=`$as_dirname -- "$ac_file" ||
13018 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13019 X"$ac_file" : 'X\(//\)[^/]' \| \
13020 X"$ac_file" : 'X\(//\)$' \| \
13021 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13022 $as_echo X"$ac_file" |
13023 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13027 /^X\(\/\/\)[^/].*/{
13040 as_dir="$ac_dir"; as_fn_mkdir_p
13044 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13046 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13047 # A ".." for each directory in $ac_dir_suffix.
13048 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13049 case $ac_top_builddir_sub in
13050 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13051 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13054 ac_abs_top_builddir=$ac_pwd
13055 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13056 # for backward compatibility:
13057 ac_top_builddir=$ac_top_build_prefix
13060 .) # We are building in place.
13062 ac_top_srcdir=$ac_top_builddir_sub
13063 ac_abs_top_srcdir=$ac_pwd ;;
13064 [\\/]* | ?:[\\/]* ) # Absolute name.
13065 ac_srcdir=$srcdir$ac_dir_suffix;
13066 ac_top_srcdir=$srcdir
13067 ac_abs_top_srcdir=$srcdir ;;
13068 *) # Relative name.
13069 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13070 ac_top_srcdir=$ac_top_build_prefix$srcdir
13071 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13073 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13083 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13084 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13086 ac_MKDIR_P=$MKDIR_P
13088 [\\/$]* | ?:[\\/]* ) ;;
13089 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13093 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13094 # If the template does not know about datarootdir, expand it.
13095 # FIXME: This hack should be removed a few years after 2.60.
13096 ac_datarootdir_hack=; ac_datarootdir_seen=
13107 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13108 *datarootdir*) ac_datarootdir_seen=yes;;
13109 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13110 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13111 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13113 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13114 ac_datarootdir_hack='
13115 s&@datadir@&$datadir&g
13116 s&@docdir@&$docdir&g
13117 s&@infodir@&$infodir&g
13118 s&@localedir@&$localedir&g
13119 s&@mandir@&$mandir&g
13120 s&\\\${datarootdir}&$datarootdir&g' ;;
13124 # Neutralize VPATH when `$srcdir' = `.'.
13125 # Shell code in configure.ac might set extrasub.
13126 # FIXME: do we really want to maintain this feature?
13127 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13128 ac_sed_extra="$ac_vpsub
13131 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13133 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13134 s|@configure_input@|$ac_sed_conf_input|;t t
13135 s&@top_builddir@&$ac_top_builddir_sub&;t t
13136 s&@top_build_prefix@&$ac_top_build_prefix&;t t
13137 s&@srcdir@&$ac_srcdir&;t t
13138 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13139 s&@top_srcdir@&$ac_top_srcdir&;t t
13140 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13141 s&@builddir@&$ac_builddir&;t t
13142 s&@abs_builddir@&$ac_abs_builddir&;t t
13143 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13144 s&@INSTALL@&$ac_INSTALL&;t t
13145 s&@MKDIR_P@&$ac_MKDIR_P&;t t
13146 $ac_datarootdir_hack
13148 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13149 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13151 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13152 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13153 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
13154 "$ac_tmp/out"`; test -z "$ac_out"; } &&
13155 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13156 which seems to be undefined. Please make sure it is defined" >&5
13157 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13158 which seems to be undefined. Please make sure it is defined" >&2;}
13160 rm -f "$ac_tmp/stdin"
13162 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13163 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
13165 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13171 if test x"$ac_file" != x-; then
13173 $as_echo "/* $configure_input */" \
13174 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13175 } >"$ac_tmp/config.h" \
13176 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13177 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
13178 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13179 $as_echo "$as_me: $ac_file is unchanged" >&6;}
13182 mv "$ac_tmp/config.h" "$ac_file" \
13183 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13186 $as_echo "/* $configure_input */" \
13187 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13188 || as_fn_error $? "could not create -" "$LINENO" 5
13190 # Compute "$ac_file"'s index in $config_headers.
13193 for _am_header in $config_headers :; do
13194 case $_am_header in
13195 $_am_arg | $_am_arg:* )
13198 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13201 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13202 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13203 X"$_am_arg" : 'X\(//\)[^/]' \| \
13204 X"$_am_arg" : 'X\(//\)$' \| \
13205 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13206 $as_echo X"$_am_arg" |
13207 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13211 /^X\(\/\/\)[^/].*/{
13223 s/.*/./; q'`/stamp-h$_am_stamp_count
13226 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13227 $as_echo "$as_me: executing $ac_file commands" >&6;}
13232 case $ac_file$ac_mode in
13233 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13234 # Autoconf 2.62 quotes --file arguments for eval, but not when files
13235 # are listed without --file. Let's play safe and only enable the eval
13236 # if we detect the quoting.
13237 case $CONFIG_FILES in
13238 *\'*) eval set x "$CONFIG_FILES" ;;
13239 *) set x $CONFIG_FILES ;;
13244 # Strip MF so we end up with the name of the file.
13245 mf=`echo "$mf" | sed -e 's/:.*$//'`
13246 # Check whether this is an Automake generated Makefile or not.
13247 # We used to match only the files named `Makefile.in', but
13248 # some people rename them; so instead we look at the file content.
13249 # Grep'ing the first line is not enough: some people post-process
13250 # each Makefile.in and add a new line on top of each file to say so.
13251 # Grep'ing the whole file is not good either: AIX grep has a line
13252 # limit of 2048, but all sed's we know have understand at least 4000.
13253 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
13254 dirpart=`$as_dirname -- "$mf" ||
13255 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13256 X"$mf" : 'X\(//\)[^/]' \| \
13257 X"$mf" : 'X\(//\)$' \| \
13258 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
13260 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13264 /^X\(\/\/\)[^/].*/{
13280 # Extract the definition of DEPDIR, am__include, and am__quote
13281 # from the Makefile without running `make'.
13282 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13283 test -z "$DEPDIR" && continue
13284 am__include=`sed -n 's/^am__include = //p' < "$mf"`
13285 test -z "am__include" && continue
13286 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13287 # When using ansi2knr, U may be empty or an underscore; expand it
13288 U=`sed -n 's/^U = //p' < "$mf"`
13289 # Find all dependency output files, they are included files with
13290 # $(DEPDIR) in their names. We invoke sed twice because it is the
13291 # simplest approach to changing $(DEPDIR) to its actual value in the
13293 for file in `sed -n "
13294 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13295 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
13296 # Make sure the directory exists.
13297 test -f "$dirpart/$file" && continue
13298 fdir=`$as_dirname -- "$file" ||
13299 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13300 X"$file" : 'X\(//\)[^/]' \| \
13301 X"$file" : 'X\(//\)$' \| \
13302 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
13303 $as_echo X"$file" |
13304 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13308 /^X\(\/\/\)[^/].*/{
13321 as_dir=$dirpart/$fdir; as_fn_mkdir_p
13322 # echo "creating $dirpart/$file"
13323 echo '# dummy' > "$dirpart/$file"
13330 # See if we are running on zsh, and set the options which allow our
13331 # commands through without removal of \ escapes.
13332 if test -n "${ZSH_VERSION+set}" ; then
13333 setopt NO_GLOB_SUBST
13336 cfgfile="${ofile}T"
13337 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13340 cat <<_LT_EOF >> "$cfgfile"
13343 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13344 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
13345 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13346 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
13348 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
13349 # 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
13351 # Written by Gordon Matzigkeit, 1996
13353 # This file is part of GNU Libtool.
13355 # GNU Libtool is free software; you can redistribute it and/or
13356 # modify it under the terms of the GNU General Public License as
13357 # published by the Free Software Foundation; either version 2 of
13358 # the License, or (at your option) any later version.
13360 # As a special exception to the GNU General Public License,
13361 # if you distribute this file as part of a program or library that
13362 # is built using GNU Libtool, you may include this file under the
13363 # same distribution terms that you use for the rest of that program.
13365 # GNU Libtool is distributed in the hope that it will be useful,
13366 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13367 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13368 # GNU General Public License for more details.
13370 # You should have received a copy of the GNU General Public License
13371 # along with GNU Libtool; see the file COPYING. If not, a copy
13372 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
13373 # obtained by writing to the Free Software Foundation, Inc.,
13374 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
13377 # The names of the tagged configurations supported by this script.
13378 available_tags="RC "
13380 # ### BEGIN LIBTOOL CONFIG
13382 # Which release of libtool.m4 was used?
13383 macro_version=$macro_version
13384 macro_revision=$macro_revision
13386 # Whether or not to build shared libraries.
13387 build_libtool_libs=$enable_shared
13389 # Whether or not to build static libraries.
13390 build_old_libs=$enable_static
13392 # What type of objects to build.
13395 # Whether or not to optimize for fast installation.
13396 fast_install=$enable_fast_install
13398 # Shell to use when invoking shell scripts.
13401 # An echo program that protects backslashes.
13405 host_alias=$host_alias
13409 # The build system.
13410 build_alias=$build_alias
13414 # A sed program that does not truncate output.
13417 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
13418 Xsed="\$SED -e 1s/^X//"
13420 # A grep program that handles long lines.
13426 # A literal string matcher.
13429 # A BSD- or MS-compatible name lister.
13432 # Whether we need soft or hard links.
13435 # What is the maximum length of a command?
13436 max_cmd_len=$max_cmd_len
13438 # Object file suffix (normally "o").
13441 # Executable file suffix (normally "").
13444 # whether the shell understands "unset".
13447 # turn spaces into newlines.
13450 # turn newlines into spaces.
13453 # An object symbol dumper.
13454 OBJDUMP=$lt_OBJDUMP
13456 # Method to check whether dependent libraries are shared objects.
13457 deplibs_check_method=$lt_deplibs_check_method
13459 # Command to use when deplibs_check_method == "file_magic".
13460 file_magic_cmd=$lt_file_magic_cmd
13464 AR_FLAGS=$lt_AR_FLAGS
13466 # A symbol stripping program.
13469 # Commands used to install an old-style archive.
13471 old_postinstall_cmds=$lt_old_postinstall_cmds
13472 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13474 # Whether to use a lock for old archive extraction.
13475 lock_old_archive_extraction=$lock_old_archive_extraction
13480 # LTCC compiler flags.
13481 LTCFLAGS=$lt_CFLAGS
13483 # Take the output of nm and produce a listing of raw symbols and C names.
13484 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13486 # Transform the output of nm in a proper C declaration.
13487 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13489 # Transform the output of nm in a C name address pair.
13490 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13492 # Transform the output of nm in a C name address pair when lib prefix is needed.
13493 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
13495 # The name of the directory that contains temporary libtool files.
13498 # Used to examine libraries when file_magic_cmd begins with "file".
13499 MAGIC_CMD=$MAGIC_CMD
13501 # Must we lock files when doing compilation?
13502 need_locks=$lt_need_locks
13504 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
13505 DSYMUTIL=$lt_DSYMUTIL
13507 # Tool to change global to local symbols on Mac OS X.
13510 # Tool to manipulate fat objects and archives on Mac OS X.
13513 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
13516 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
13517 OTOOL64=$lt_OTOOL64
13519 # Old archive suffix (normally "a").
13522 # Shared library suffix (normally ".so").
13523 shrext_cmds=$lt_shrext_cmds
13525 # The commands to extract the exported symbol list from a shared archive.
13526 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13528 # Variables whose values should be saved in libtool wrapper scripts and
13529 # restored at link time.
13530 variables_saved_for_relink=$lt_variables_saved_for_relink
13532 # Do we need the "lib" prefix for modules?
13533 need_lib_prefix=$need_lib_prefix
13535 # Do we need a version for libraries?
13536 need_version=$need_version
13538 # Library versioning type.
13539 version_type=$version_type
13541 # Shared library runtime path variable.
13542 runpath_var=$runpath_var
13544 # Shared library path variable.
13545 shlibpath_var=$shlibpath_var
13547 # Is shlibpath searched before the hard-coded library search path?
13548 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13550 # Format of library name prefix.
13551 libname_spec=$lt_libname_spec
13553 # List of archive names. First name is the real one, the rest are links.
13554 # The last name is the one that the linker finds with -lNAME
13555 library_names_spec=$lt_library_names_spec
13557 # The coded name of the library, if different from the real name.
13558 soname_spec=$lt_soname_spec
13560 # Permission mode override for installation of shared libraries.
13561 install_override_mode=$lt_install_override_mode
13563 # Command to use after installation of a shared archive.
13564 postinstall_cmds=$lt_postinstall_cmds
13566 # Command to use after uninstallation of a shared archive.
13567 postuninstall_cmds=$lt_postuninstall_cmds
13569 # Commands used to finish a libtool library installation in a directory.
13570 finish_cmds=$lt_finish_cmds
13572 # As "finish_cmds", except a single script fragment to be evaled but
13574 finish_eval=$lt_finish_eval
13576 # Whether we should hardcode library paths into libraries.
13577 hardcode_into_libs=$hardcode_into_libs
13579 # Compile-time system search path for libraries.
13580 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13582 # Run-time system search path for libraries.
13583 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13585 # Whether dlopen is supported.
13586 dlopen_support=$enable_dlopen
13588 # Whether dlopen of programs is supported.
13589 dlopen_self=$enable_dlopen_self
13591 # Whether dlopen of statically linked programs is supported.
13592 dlopen_self_static=$enable_dlopen_self_static
13594 # Commands to strip libraries.
13595 old_striplib=$lt_old_striplib
13596 striplib=$lt_striplib
13599 # The linker used to build libraries.
13602 # How to create reloadable object files.
13603 reload_flag=$lt_reload_flag
13604 reload_cmds=$lt_reload_cmds
13606 # Commands used to build an old-style archive.
13607 old_archive_cmds=$lt_old_archive_cmds
13609 # A language specific compiler.
13612 # Is the compiler the GNU compiler?
13615 # Compiler flag to turn off builtin functions.
13616 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13618 # How to pass a linker flag through the compiler.
13619 wl=$lt_lt_prog_compiler_wl
13621 # Additional compiler flags for building library objects.
13622 pic_flag=$lt_lt_prog_compiler_pic
13624 # Compiler flag to prevent dynamic linking.
13625 link_static_flag=$lt_lt_prog_compiler_static
13627 # Does compiler simultaneously support -c and -o options?
13628 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13630 # Whether or not to add -lc for building shared libraries.
13631 build_libtool_need_lc=$archive_cmds_need_lc
13633 # Whether or not to disallow shared libs when runtime libs are static.
13634 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13636 # Compiler flag to allow reflexive dlopens.
13637 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13639 # Compiler flag to generate shared objects directly from archives.
13640 whole_archive_flag_spec=$lt_whole_archive_flag_spec
13642 # Whether the compiler copes with passing no objects directly.
13643 compiler_needs_object=$lt_compiler_needs_object
13645 # Create an old-style archive from a shared archive.
13646 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13648 # Create a temporary old-style archive to link instead of a shared archive.
13649 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13651 # Commands used to build a shared archive.
13652 archive_cmds=$lt_archive_cmds
13653 archive_expsym_cmds=$lt_archive_expsym_cmds
13655 # Commands used to build a loadable module if different from building
13656 # a shared archive.
13657 module_cmds=$lt_module_cmds
13658 module_expsym_cmds=$lt_module_expsym_cmds
13660 # Whether we are building with GNU ld or not.
13661 with_gnu_ld=$lt_with_gnu_ld
13663 # Flag that allows shared libraries with undefined symbols to be built.
13664 allow_undefined_flag=$lt_allow_undefined_flag
13666 # Flag that enforces no undefined symbols.
13667 no_undefined_flag=$lt_no_undefined_flag
13669 # Flag to hardcode \$libdir into a binary during linking.
13670 # This must work even if \$libdir does not exist
13671 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13673 # If ld is used when linking, flag to hardcode \$libdir into a binary
13674 # during linking. This must work even if \$libdir does not exist.
13675 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
13677 # Whether we need a single "-rpath" flag with a separated argument.
13678 hardcode_libdir_separator=$lt_hardcode_libdir_separator
13680 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13681 # DIR into the resulting binary.
13682 hardcode_direct=$hardcode_direct
13684 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13685 # DIR into the resulting binary and the resulting library dependency is
13686 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
13687 # library is relocated.
13688 hardcode_direct_absolute=$hardcode_direct_absolute
13690 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13691 # into the resulting binary.
13692 hardcode_minus_L=$hardcode_minus_L
13694 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13695 # into the resulting binary.
13696 hardcode_shlibpath_var=$hardcode_shlibpath_var
13698 # Set to "yes" if building a shared library automatically hardcodes DIR
13699 # into the library and all subsequent libraries and executables linked
13701 hardcode_automatic=$hardcode_automatic
13703 # Set to yes if linker adds runtime paths of dependent libraries
13704 # to runtime path list.
13705 inherit_rpath=$inherit_rpath
13707 # Whether libtool must link a program against all its dependency libraries.
13708 link_all_deplibs=$link_all_deplibs
13710 # Fix the shell variable \$srcfile for the compiler.
13711 fix_srcfile_path=$lt_fix_srcfile_path
13713 # Set to "yes" if exported symbols are required.
13714 always_export_symbols=$always_export_symbols
13716 # The commands to list exported symbols.
13717 export_symbols_cmds=$lt_export_symbols_cmds
13719 # Symbols that should not be listed in the preloaded symbols.
13720 exclude_expsyms=$lt_exclude_expsyms
13722 # Symbols that must always be exported.
13723 include_expsyms=$lt_include_expsyms
13725 # Commands necessary for linking programs (against libraries) with templates.
13726 prelink_cmds=$lt_prelink_cmds
13728 # Specify filename containing input files.
13729 file_list_spec=$lt_file_list_spec
13731 # How to hardcode a shared library path into an executable.
13732 hardcode_action=$hardcode_action
13734 # ### END LIBTOOL CONFIG
13740 cat <<\_LT_EOF >> "$cfgfile"
13741 # AIX sometimes has problems with the GCC collect2 program. For some
13742 # reason, if we set the COLLECT_NAMES environment variable, the problems
13743 # vanish in a puff of smoke.
13744 if test "X${COLLECT_NAMES+set}" != Xset; then
13746 export COLLECT_NAMES
13753 ltmain="$ac_aux_dir/ltmain.sh"
13756 # We use sed instead of cat because bash on DJGPP gets confused if
13757 # if finds mixed CR/LF and LF-only lines. Since sed operates in
13758 # text mode, it properly converts lines to CR/LF. This bash problem
13759 # is reportedly fixed, but why not run on old versions too?
13760 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
13761 || (rm -f "$cfgfile"; exit 1)
13765 cat << \_LT_EOF >> "$cfgfile"
13767 # func_dirname file append nondir_replacement
13768 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
13769 # otherwise set result to NONDIR_REPLACEMENT.
13773 */*) func_dirname_result="${1%/*}${2}" ;;
13774 * ) func_dirname_result="${3}" ;;
13778 # func_basename file
13781 func_basename_result="${1##*/}"
13784 # func_dirname_and_basename file append nondir_replacement
13785 # perform func_basename and func_dirname in a single function
13787 # dirname: Compute the dirname of FILE. If nonempty,
13788 # add APPEND to the result, otherwise set result
13789 # to NONDIR_REPLACEMENT.
13790 # value returned in "$func_dirname_result"
13791 # basename: Compute filename of FILE.
13792 # value retuned in "$func_basename_result"
13793 # Implementation must be kept synchronized with func_dirname
13794 # and func_basename. For efficiency, we do not delegate to
13795 # those functions but instead duplicate the functionality here.
13796 func_dirname_and_basename ()
13799 */*) func_dirname_result="${1%/*}${2}" ;;
13800 * ) func_dirname_result="${3}" ;;
13802 func_basename_result="${1##*/}"
13805 # func_stripname prefix suffix name
13806 # strip PREFIX and SUFFIX off of NAME.
13807 # PREFIX and SUFFIX must not contain globbing or regex special
13808 # characters, hashes, percent signs, but SUFFIX may contain a leading
13809 # dot (in which case that matches only a dot).
13812 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
13813 # positional parameters, so assign one to ordinary parameter first.
13814 func_stripname_result=${3}
13815 func_stripname_result=${func_stripname_result#"${1}"}
13816 func_stripname_result=${func_stripname_result%"${2}"}
13822 func_opt_split_opt=${1%%=*}
13823 func_opt_split_arg=${1#*=}
13830 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
13831 *) func_lo2o_result=${1} ;;
13835 # func_xform libobj-or-source
13838 func_xform_result=${1%.*}.lo
13841 # func_arith arithmetic-term...
13844 func_arith_result=$(( $* ))
13848 # STRING may not start with a hyphen.
13851 func_len_result=${#1}
13856 *) # Bourne compatible functions.
13857 cat << \_LT_EOF >> "$cfgfile"
13859 # func_dirname file append nondir_replacement
13860 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
13861 # otherwise set result to NONDIR_REPLACEMENT.
13864 # Extract subdirectory from the argument.
13865 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
13866 if test "X$func_dirname_result" = "X${1}"; then
13867 func_dirname_result="${3}"
13869 func_dirname_result="$func_dirname_result${2}"
13873 # func_basename file
13876 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
13880 # func_stripname prefix suffix name
13881 # strip PREFIX and SUFFIX off of NAME.
13882 # PREFIX and SUFFIX must not contain globbing or regex special
13883 # characters, hashes, percent signs, but SUFFIX may contain a leading
13884 # dot (in which case that matches only a dot).
13885 # func_strip_suffix prefix name
13889 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
13890 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
13895 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
13896 my_sed_long_arg='1s/^-[^=]*=//'
13901 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
13902 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
13908 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
13911 # func_xform libobj-or-source
13914 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
13917 # func_arith arithmetic-term...
13920 func_arith_result=`expr "$@"`
13924 # STRING may not start with a hyphen.
13927 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
13933 case $lt_shell_append in
13935 cat << \_LT_EOF >> "$cfgfile"
13937 # func_append var value
13938 # Append VALUE to the end of shell variable VAR.
13946 cat << \_LT_EOF >> "$cfgfile"
13948 # func_append var value
13949 # Append VALUE to the end of shell variable VAR.
13960 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
13961 || (rm -f "$cfgfile"; exit 1)
13963 mv -f "$cfgfile" "$ofile" ||
13964 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
13968 cat <<_LT_EOF >> "$ofile"
13970 # ### BEGIN LIBTOOL TAG CONFIG: RC
13972 # The linker used to build libraries.
13975 # How to create reloadable object files.
13976 reload_flag=$lt_reload_flag_RC
13977 reload_cmds=$lt_reload_cmds_RC
13979 # Commands used to build an old-style archive.
13980 old_archive_cmds=$lt_old_archive_cmds_RC
13982 # A language specific compiler.
13985 # Is the compiler the GNU compiler?
13988 # Compiler flag to turn off builtin functions.
13989 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
13991 # How to pass a linker flag through the compiler.
13992 wl=$lt_lt_prog_compiler_wl_RC
13994 # Additional compiler flags for building library objects.
13995 pic_flag=$lt_lt_prog_compiler_pic_RC
13997 # Compiler flag to prevent dynamic linking.
13998 link_static_flag=$lt_lt_prog_compiler_static_RC
14000 # Does compiler simultaneously support -c and -o options?
14001 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
14003 # Whether or not to add -lc for building shared libraries.
14004 build_libtool_need_lc=$archive_cmds_need_lc_RC
14006 # Whether or not to disallow shared libs when runtime libs are static.
14007 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
14009 # Compiler flag to allow reflexive dlopens.
14010 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
14012 # Compiler flag to generate shared objects directly from archives.
14013 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
14015 # Whether the compiler copes with passing no objects directly.
14016 compiler_needs_object=$lt_compiler_needs_object_RC
14018 # Create an old-style archive from a shared archive.
14019 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
14021 # Create a temporary old-style archive to link instead of a shared archive.
14022 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
14024 # Commands used to build a shared archive.
14025 archive_cmds=$lt_archive_cmds_RC
14026 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
14028 # Commands used to build a loadable module if different from building
14029 # a shared archive.
14030 module_cmds=$lt_module_cmds_RC
14031 module_expsym_cmds=$lt_module_expsym_cmds_RC
14033 # Whether we are building with GNU ld or not.
14034 with_gnu_ld=$lt_with_gnu_ld_RC
14036 # Flag that allows shared libraries with undefined symbols to be built.
14037 allow_undefined_flag=$lt_allow_undefined_flag_RC
14039 # Flag that enforces no undefined symbols.
14040 no_undefined_flag=$lt_no_undefined_flag_RC
14042 # Flag to hardcode \$libdir into a binary during linking.
14043 # This must work even if \$libdir does not exist
14044 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
14046 # If ld is used when linking, flag to hardcode \$libdir into a binary
14047 # during linking. This must work even if \$libdir does not exist.
14048 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
14050 # Whether we need a single "-rpath" flag with a separated argument.
14051 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
14053 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14054 # DIR into the resulting binary.
14055 hardcode_direct=$hardcode_direct_RC
14057 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14058 # DIR into the resulting binary and the resulting library dependency is
14059 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14060 # library is relocated.
14061 hardcode_direct_absolute=$hardcode_direct_absolute_RC
14063 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14064 # into the resulting binary.
14065 hardcode_minus_L=$hardcode_minus_L_RC
14067 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14068 # into the resulting binary.
14069 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
14071 # Set to "yes" if building a shared library automatically hardcodes DIR
14072 # into the library and all subsequent libraries and executables linked
14074 hardcode_automatic=$hardcode_automatic_RC
14076 # Set to yes if linker adds runtime paths of dependent libraries
14077 # to runtime path list.
14078 inherit_rpath=$inherit_rpath_RC
14080 # Whether libtool must link a program against all its dependency libraries.
14081 link_all_deplibs=$link_all_deplibs_RC
14083 # Fix the shell variable \$srcfile for the compiler.
14084 fix_srcfile_path=$lt_fix_srcfile_path_RC
14086 # Set to "yes" if exported symbols are required.
14087 always_export_symbols=$always_export_symbols_RC
14089 # The commands to list exported symbols.
14090 export_symbols_cmds=$lt_export_symbols_cmds_RC
14092 # Symbols that should not be listed in the preloaded symbols.
14093 exclude_expsyms=$lt_exclude_expsyms_RC
14095 # Symbols that must always be exported.
14096 include_expsyms=$lt_include_expsyms_RC
14098 # Commands necessary for linking programs (against libraries) with templates.
14099 prelink_cmds=$lt_prelink_cmds_RC
14101 # Specify filename containing input files.
14102 file_list_spec=$lt_file_list_spec_RC
14104 # How to hardcode a shared library path into an executable.
14105 hardcode_action=$hardcode_action_RC
14107 # ### END LIBTOOL TAG CONFIG: RC
14118 ac_clean_files=$ac_clean_files_save
14120 test $ac_write_fail = 0 ||
14121 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
14124 # configure is writing to config.log, and then calls config.status.
14125 # config.status does its own redirection, appending to config.log.
14126 # Unfortunately, on DOS this fails, as config.log is still kept open
14127 # by configure, so config.status won't be able to write to it; its
14128 # output is simply discarded. So we exec the FD to /dev/null,
14129 # effectively closing config.log, so it can be properly (re)opened and
14130 # appended to by config.status. When coming back to configure, we
14131 # need to make the FD available again.
14132 if test "$no_create" != yes; then
14134 ac_config_status_args=
14135 test "$silent" = yes &&
14136 ac_config_status_args="$ac_config_status_args --quiet"
14138 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14140 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14141 # would make configure fail if this is the last instruction.
14142 $ac_cs_success || as_fn_exit 1
14144 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14145 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14146 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}