2 @%:@ From configure.ac Id: configure.ac,v 1.12 2004/01/23 23:22:46 rob Exp .
3 @%:@ Guess values for system-dependent variables and create Makefiles.
4 @%:@ Generated by GNU Autoconf 2.68 for ID3 Tag 0.15.1b.
6 @%:@ Report bugs to <support@underbit.com>.
9 @%:@ Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
10 @%:@ 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
14 @%:@ This configure script is free software; the Free Software Foundation
15 @%:@ gives unlimited permission to copy, distribute and modify it.
16 ## -------------------- ##
17 ## M4sh Initialization. ##
18 ## -------------------- ##
20 # Be more Bourne compatible
21 DUALCASE=1; export DUALCASE # for MKS sh
22 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
25 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26 # is contrary to our usage. Disable this feature.
27 alias -g '${1+"$@"}'='"$@"'
30 case `(set -o) 2>/dev/null` in @%:@(
42 # Printing a long string crashes Solaris 7 /usr/bin/printf.
43 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
46 # Prefer a ksh shell builtin over an external printf program on Solaris,
47 # but without wasting forks for bash or zsh.
48 if test -z "$BASH_VERSION$ZSH_VERSION" \
49 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
51 as_echo_n='print -rn --'
52 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
56 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
57 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
58 as_echo_n='/usr/ucb/echo -n'
60 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
65 expr "X$arg" : "X\\(.*\\)$as_nl";
66 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
68 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
71 as_echo_n='sh -c $as_echo_n_body as_echo'
74 as_echo='sh -c $as_echo_body as_echo'
77 # The user is always right.
78 if test "${PATH_SEPARATOR+set}" != set; then
80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
88 # We need space, tab and new line, in precisely that order. Quoting is
89 # there to prevent editors from complaining about space-tab.
90 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
91 # splitting by setting IFS to empty value.)
94 # Find who we are. Look in the path if we contain no directory separator.
97 *[\\/]* ) as_myself=$0 ;;
98 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
102 test -z "$as_dir" && as_dir=.
103 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
109 # We did not find ourselves, most probably we were run as `sh COMMAND'
110 # in which case we are not to be found in the path.
111 if test "x$as_myself" = x; then
114 if test ! -f "$as_myself"; then
115 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
119 # Unset variables that we do not need and which cause bugs (e.g. in
120 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
121 # suppresses any "Segmentation fault" message there. '((' could
122 # trigger a bug in pdksh 5.2.14.
123 for as_var in BASH_ENV ENV MAIL MAILPATH
124 do eval test x\${$as_var+set} = xset \
125 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
138 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
140 if test "x$CONFIG_SHELL" = x; then
141 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
144 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
145 # is contrary to our usage. Disable this feature.
146 alias -g '\${1+\"\$@\"}'='\"\$@\"'
149 case \`(set -o) 2>/dev/null\` in @%:@(
151 set -o posix ;; @%:@(
157 as_required="as_fn_return () { (exit \$1); }
158 as_fn_success () { as_fn_return 0; }
159 as_fn_failure () { as_fn_return 1; }
160 as_fn_ret_success () { return 0; }
161 as_fn_ret_failure () { return 1; }
164 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
165 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
166 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
167 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
168 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
171 exitcode=1; echo positional parameters were not saved.
173 test x\$exitcode = x0 || exit 1"
174 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
175 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
176 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
177 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
178 test \$(( 1 + 1 )) = 2 || exit 1"
179 if (eval "$as_required") 2>/dev/null; then :
184 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
189 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
192 test -z "$as_dir" && as_dir=.
194 case $as_dir in @%:@(
196 for as_base in sh bash ksh sh5; do
197 # Try only shells that exist, to save several forks.
198 as_shell=$as_dir/$as_base
199 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
200 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
201 CONFIG_SHELL=$as_shell as_have_required=yes
202 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
210 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
211 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
212 CONFIG_SHELL=$SHELL as_have_required=yes
217 if test "x$CONFIG_SHELL" != x; then :
218 # We cannot yet assume a decent shell, so we have to provide a
219 # neutralization value for shells without unset; and this also
220 # works around shells that cannot unset nonexistent variables.
221 # Preserve -v and -x to the replacement shell.
224 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
227 *v*x* | *x*v* ) as_opts=-vx ;;
232 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
235 if test x$as_have_required = xno; then :
236 $as_echo "$0: This script requires a shell more modern than all"
237 $as_echo "$0: the shells that I found on your system."
238 if test x${ZSH_VERSION+set} = xset ; then
239 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
240 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
242 $as_echo "$0: Please tell bug-autoconf@gnu.org and
243 $0: support@underbit.com about your system, including any
244 $0: error possibly output before this message. Then install
245 $0: a modern shell, or manually run the script under such a
246 $0: shell if you do have one."
252 SHELL=${CONFIG_SHELL-/bin/sh}
254 # Unset more variables known to interfere with behavior of common tools.
255 CLICOLOR_FORCE= GREP_OPTIONS=
256 unset CLICOLOR_FORCE GREP_OPTIONS
258 ## --------------------- ##
259 ## M4sh Shell Functions. ##
260 ## --------------------- ##
263 @%:@ Portably unset VAR.
266 { eval $1=; unset $1;}
270 @%:@ as_fn_set_status STATUS
271 @%:@ -----------------------
272 @%:@ Set @S|@? to STATUS, without forking.
276 } @%:@ as_fn_set_status
278 @%:@ as_fn_exit STATUS
279 @%:@ -----------------
280 @%:@ Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
290 @%:@ Create "@S|@as_dir" as a directory, including parents if necessary.
295 -*) as_dir=./$as_dir;;
297 test -d "$as_dir" || eval $as_mkdir_p || {
301 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
304 as_dirs="'$as_qdir' $as_dirs"
305 as_dir=`$as_dirname -- "$as_dir" ||
306 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
307 X"$as_dir" : 'X\(//\)[^/]' \| \
308 X"$as_dir" : 'X\(//\)$' \| \
309 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
310 $as_echo X"$as_dir" |
311 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
328 test -d "$as_dir" && break
330 test -z "$as_dirs" || eval "mkdir $as_dirs"
331 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
335 @%:@ as_fn_append VAR VALUE
336 @%:@ ----------------------
337 @%:@ Append the text in VALUE to the end of the definition contained in VAR. Take
338 @%:@ advantage of any shell optimizations that allow amortized linear growth over
339 @%:@ repeated appends, instead of the typical quadratic growth present in naive
340 @%:@ implementations.
341 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
342 eval 'as_fn_append ()
353 @%:@ as_fn_arith ARG...
354 @%:@ ------------------
355 @%:@ Perform arithmetic evaluation on the ARGs, and store the result in the
356 @%:@ global @S|@as_val. Take advantage of shells that can avoid forks. The arguments
357 @%:@ must be portable across @S|@(()) and expr.
358 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
366 as_val=`expr "$@" || test $? -eq 1`
371 @%:@ as_fn_error STATUS ERROR [LINENO LOG_FD]
372 @%:@ ----------------------------------------
373 @%:@ Output "`basename @S|@0`: error: ERROR" to stderr. If LINENO and LOG_FD are
374 @%:@ provided, also output the error to LOG_FD, referencing LINENO. Then exit the
375 @%:@ script with STATUS, using 1 if that was 0.
378 as_status=$1; test $as_status -eq 0 && as_status=1
380 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
381 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
383 $as_echo "$as_me: error: $2" >&2
384 as_fn_exit $as_status
387 if expr a : '\(a\)' >/dev/null 2>&1 &&
388 test "X`expr 00001 : '.*\(...\)'`" = X001; then
394 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
400 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
406 as_me=`$as_basename -- "$0" ||
407 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
408 X"$0" : 'X\(//\)$' \| \
409 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
411 sed '/^.*\/\([^/][^/]*\)\/*$/{
425 # Avoid depending upon Character Ranges.
426 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
427 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
428 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
429 as_cr_digits='0123456789'
430 as_cr_alnum=$as_cr_Letters$as_cr_digits
433 as_lineno_1=$LINENO as_lineno_1a=$LINENO
434 as_lineno_2=$LINENO as_lineno_2a=$LINENO
435 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
436 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
437 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
453 chmod +x "$as_me.lineno" ||
454 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
456 # Don't try to exec as it changes $[0], causing all sort of problems
457 # (the dirname of $[0] is not the place where we might find the
458 # original and so on. Autoconf is especially sensitive to this).
460 # Exit status is that of the last command.
464 ECHO_C= ECHO_N= ECHO_T=
465 case `echo -n x` in @%:@(((((
467 case `echo 'xy\c'` in
468 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
470 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
477 rm -f conf$$ conf$$.exe conf$$.file
478 if test -d conf$$.dir; then
479 rm -f conf$$.dir/conf$$.file
482 mkdir conf$$.dir 2>/dev/null
484 if (echo >conf$$.file) 2>/dev/null; then
485 if ln -s conf$$.file conf$$ 2>/dev/null; then
487 # ... but there are two gotchas:
488 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
489 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
490 # In both cases, we have to default to `cp -p'.
491 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
493 elif ln conf$$.file conf$$ 2>/dev/null; then
501 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
502 rmdir conf$$.dir 2>/dev/null
504 if mkdir -p . 2>/dev/null; then
505 as_mkdir_p='mkdir -p "$as_dir"'
507 test -d ./-p && rmdir ./-p
511 if test -x / >/dev/null 2>&1; then
514 if ls -dL / >/dev/null 2>&1; then
521 if test -d "$1"; then
527 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in @%:@((
528 ???[sx]*):;;*)false;;esac;fi
532 as_executable_p=$as_test_x
534 # Sed expression to map a string onto a valid CPP name.
535 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
537 # Sed expression to map a string onto a valid variable name.
538 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
542 # Check that we are running under the correct shell.
543 SHELL=${CONFIG_SHELL-/bin/sh}
547 # Remove one level of quotation (which was required for Make).
548 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
553 if test "X$1" = X--no-reexec; then
554 # Discard the --no-reexec flag, and continue.
556 elif test "X$1" = X--fallback-echo; then
557 # Avoid inline document here, it may be left over
559 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
560 # Yippee, $echo works!
563 # Restart under the correct shell.
564 exec $SHELL "$0" --no-reexec ${1+"$@"}
567 if test "X$1" = X--fallback-echo; then
568 # used as fallback echo
576 # The HP-UX ksh and POSIX shell print the target directory to stdout
578 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
580 if test -z "$ECHO"; then
581 if test "X${echo_test_string+set}" != Xset; then
582 # find a string as large as possible, as long as the shell can cope with it
583 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
584 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
585 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
586 echo_test_string="`eval $cmd`" &&
587 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
594 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
595 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
596 test "X$echo_testing_string" = "X$echo_test_string"; then
599 # The Solaris, AIX, and Digital Unix default echo programs unquote
600 # backslashes. This makes it impossible to quote backslashes using
601 # echo "$something" | sed 's/\\/\\\\/g'
603 # So, first we look for a working echo in the user's PATH.
605 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
606 for dir in $PATH /usr/ucb; do
608 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
609 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
610 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
611 test "X$echo_testing_string" = "X$echo_test_string"; then
618 if test "X$echo" = Xecho; then
619 # We didn't find a better echo, so look for alternatives.
620 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
621 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
622 test "X$echo_testing_string" = "X$echo_test_string"; then
623 # This shell has a builtin print -r that does the trick.
625 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
626 test "X$CONFIG_SHELL" != X/bin/ksh; then
627 # If we have ksh, try running configure again with it.
628 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
629 export ORIGINAL_CONFIG_SHELL
630 CONFIG_SHELL=/bin/ksh
632 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
636 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
637 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
638 test "X$echo_testing_string" = "X$echo_test_string"; then
641 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
642 test "X$echo_testing_string" = 'X\t' &&
643 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
644 test "X$echo_testing_string" = "X$echo_test_string"; then
645 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
647 SHELL="$CONFIG_SHELL"
649 echo="$CONFIG_SHELL $0 --fallback-echo"
650 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
651 test "X$echo_testing_string" = 'X\t' &&
652 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
653 test "X$echo_testing_string" = "X$echo_test_string"; then
654 echo="$CONFIG_SHELL $0 --fallback-echo"
656 # maybe with a smaller string...
659 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
660 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
667 if test "$prev" != 'sed 50q "$0"'; then
668 echo_test_string=`eval $prev`
669 export echo_test_string
670 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
672 # Oops. We lost completely, so just stick with echo.
681 # Copy echo and quote the copy suitably for passing to libtool from
682 # the Makefile, instead of quoting the original, which is used later.
684 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
685 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
691 tagnames=${tagnames+${tagnames},}CXX
693 tagnames=${tagnames+${tagnames},}F77
695 test -n "$DJDIR" || exec 7<&0 </dev/null
699 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
700 # so uname gets run too.
701 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
706 ac_default_prefix=/usr/local
708 ac_config_libobj_dir=.
715 # Identity of this package.
716 PACKAGE_NAME='ID3 Tag'
717 PACKAGE_TARNAME='libid3tag'
718 PACKAGE_VERSION='0.15.1b'
719 PACKAGE_STRING='ID3 Tag 0.15.1b'
720 PACKAGE_BUGREPORT='support@underbit.com'
723 ac_unique_file="id3tag.h"
724 # Factoring default headers for most tests.
725 ac_includes_default="\
727 #ifdef HAVE_SYS_TYPES_H
728 # include <sys/types.h>
730 #ifdef HAVE_SYS_STAT_H
731 # include <sys/stat.h>
737 # ifdef HAVE_STDLIB_H
742 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
747 #ifdef HAVE_STRINGS_H
748 # include <strings.h>
750 #ifdef HAVE_INTTYPES_H
751 # include <inttypes.h>
760 ac_subst_vars='LTLIBOBJS
811 INSTALL_STRIP_PROGRAM
853 program_transform_name
866 enable_option_checking
867 enable_dependency_tracking
878 ac_precious_vars='build_alias
895 # Initialize some variables set by options.
897 ac_init_version=false
898 ac_unrecognized_opts=
900 # The variables have the same names as the options, with
901 # dashes changed to underlines.
909 program_transform_name=s,x,x,
917 # Installation directory options.
918 # These are left unexpanded so users can "make install exec_prefix=/foo"
919 # and all the variables that are supposed to be based on exec_prefix
920 # by default will actually change.
921 # Use braces instead of parens because sh, perl, etc. also accept them.
922 # (The list follows the same order as the GNU Coding Standards.)
923 bindir='${exec_prefix}/bin'
924 sbindir='${exec_prefix}/sbin'
925 libexecdir='${exec_prefix}/libexec'
926 datarootdir='${prefix}/share'
927 datadir='${datarootdir}'
928 sysconfdir='${prefix}/etc'
929 sharedstatedir='${prefix}/com'
930 localstatedir='${prefix}/var'
931 includedir='${prefix}/include'
932 oldincludedir='/usr/include'
933 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
934 infodir='${datarootdir}/info'
939 libdir='${exec_prefix}/lib'
940 localedir='${datarootdir}/locale'
941 mandir='${datarootdir}/man'
947 # If the previous option needs an argument, assign it.
948 if test -n "$ac_prev"; then
949 eval $ac_prev=\$ac_option
955 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
960 # Accept the important Cygnus configure options, so we can diagnose typos.
962 case $ac_dashdash$ac_option in
966 -bindir | --bindir | --bindi | --bind | --bin | --bi)
968 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
971 -build | --build | --buil | --bui | --bu)
972 ac_prev=build_alias ;;
973 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
974 build_alias=$ac_optarg ;;
976 -cache-file | --cache-file | --cache-fil | --cache-fi \
977 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
978 ac_prev=cache_file ;;
979 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
980 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
981 cache_file=$ac_optarg ;;
984 cache_file=config.cache ;;
986 -datadir | --datadir | --datadi | --datad)
988 -datadir=* | --datadir=* | --datadi=* | --datad=*)
989 datadir=$ac_optarg ;;
991 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
992 | --dataroo | --dataro | --datar)
993 ac_prev=datarootdir ;;
994 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
995 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
996 datarootdir=$ac_optarg ;;
998 -disable-* | --disable-*)
999 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1000 # Reject names that are not valid shell variable names.
1001 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1002 as_fn_error $? "invalid feature name: $ac_useropt"
1003 ac_useropt_orig=$ac_useropt
1004 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1005 case $ac_user_opts in
1007 "enable_$ac_useropt"
1009 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1010 ac_unrecognized_sep=', ';;
1012 eval enable_$ac_useropt=no ;;
1014 -docdir | --docdir | --docdi | --doc | --do)
1016 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1017 docdir=$ac_optarg ;;
1019 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1021 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1022 dvidir=$ac_optarg ;;
1024 -enable-* | --enable-*)
1025 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1026 # Reject names that are not valid shell variable names.
1027 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1028 as_fn_error $? "invalid feature name: $ac_useropt"
1029 ac_useropt_orig=$ac_useropt
1030 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1031 case $ac_user_opts in
1033 "enable_$ac_useropt"
1035 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1036 ac_unrecognized_sep=', ';;
1038 eval enable_$ac_useropt=\$ac_optarg ;;
1040 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1041 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1042 | --exec | --exe | --ex)
1043 ac_prev=exec_prefix ;;
1044 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1045 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1046 | --exec=* | --exe=* | --ex=*)
1047 exec_prefix=$ac_optarg ;;
1049 -gas | --gas | --ga | --g)
1050 # Obsolete; use --with-gas.
1053 -help | --help | --hel | --he | -h)
1054 ac_init_help=long ;;
1055 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1056 ac_init_help=recursive ;;
1057 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1058 ac_init_help=short ;;
1060 -host | --host | --hos | --ho)
1061 ac_prev=host_alias ;;
1062 -host=* | --host=* | --hos=* | --ho=*)
1063 host_alias=$ac_optarg ;;
1065 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1067 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1069 htmldir=$ac_optarg ;;
1071 -includedir | --includedir | --includedi | --included | --include \
1072 | --includ | --inclu | --incl | --inc)
1073 ac_prev=includedir ;;
1074 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1075 | --includ=* | --inclu=* | --incl=* | --inc=*)
1076 includedir=$ac_optarg ;;
1078 -infodir | --infodir | --infodi | --infod | --info | --inf)
1080 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1081 infodir=$ac_optarg ;;
1083 -libdir | --libdir | --libdi | --libd)
1085 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1086 libdir=$ac_optarg ;;
1088 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1089 | --libexe | --libex | --libe)
1090 ac_prev=libexecdir ;;
1091 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1092 | --libexe=* | --libex=* | --libe=*)
1093 libexecdir=$ac_optarg ;;
1095 -localedir | --localedir | --localedi | --localed | --locale)
1096 ac_prev=localedir ;;
1097 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1098 localedir=$ac_optarg ;;
1100 -localstatedir | --localstatedir | --localstatedi | --localstated \
1101 | --localstate | --localstat | --localsta | --localst | --locals)
1102 ac_prev=localstatedir ;;
1103 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1104 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1105 localstatedir=$ac_optarg ;;
1107 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1109 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1110 mandir=$ac_optarg ;;
1112 -nfp | --nfp | --nf)
1113 # Obsolete; use --without-fp.
1116 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1117 | --no-cr | --no-c | -n)
1120 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1121 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1124 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1125 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1126 | --oldin | --oldi | --old | --ol | --o)
1127 ac_prev=oldincludedir ;;
1128 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1129 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1130 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1131 oldincludedir=$ac_optarg ;;
1133 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1135 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1136 prefix=$ac_optarg ;;
1138 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1139 | --program-pre | --program-pr | --program-p)
1140 ac_prev=program_prefix ;;
1141 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1142 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1143 program_prefix=$ac_optarg ;;
1145 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1146 | --program-suf | --program-su | --program-s)
1147 ac_prev=program_suffix ;;
1148 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1149 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1150 program_suffix=$ac_optarg ;;
1152 -program-transform-name | --program-transform-name \
1153 | --program-transform-nam | --program-transform-na \
1154 | --program-transform-n | --program-transform- \
1155 | --program-transform | --program-transfor \
1156 | --program-transfo | --program-transf \
1157 | --program-trans | --program-tran \
1158 | --progr-tra | --program-tr | --program-t)
1159 ac_prev=program_transform_name ;;
1160 -program-transform-name=* | --program-transform-name=* \
1161 | --program-transform-nam=* | --program-transform-na=* \
1162 | --program-transform-n=* | --program-transform-=* \
1163 | --program-transform=* | --program-transfor=* \
1164 | --program-transfo=* | --program-transf=* \
1165 | --program-trans=* | --program-tran=* \
1166 | --progr-tra=* | --program-tr=* | --program-t=*)
1167 program_transform_name=$ac_optarg ;;
1169 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1171 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1172 pdfdir=$ac_optarg ;;
1174 -psdir | --psdir | --psdi | --psd | --ps)
1176 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1179 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1180 | -silent | --silent | --silen | --sile | --sil)
1183 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1185 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1187 sbindir=$ac_optarg ;;
1189 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1190 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1191 | --sharedst | --shareds | --shared | --share | --shar \
1193 ac_prev=sharedstatedir ;;
1194 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1195 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1196 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1198 sharedstatedir=$ac_optarg ;;
1200 -site | --site | --sit)
1202 -site=* | --site=* | --sit=*)
1205 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1207 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1208 srcdir=$ac_optarg ;;
1210 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1211 | --syscon | --sysco | --sysc | --sys | --sy)
1212 ac_prev=sysconfdir ;;
1213 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1214 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1215 sysconfdir=$ac_optarg ;;
1217 -target | --target | --targe | --targ | --tar | --ta | --t)
1218 ac_prev=target_alias ;;
1219 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1220 target_alias=$ac_optarg ;;
1222 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1225 -version | --version | --versio | --versi | --vers | -V)
1226 ac_init_version=: ;;
1229 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1230 # Reject names that are not valid shell variable names.
1231 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1232 as_fn_error $? "invalid package name: $ac_useropt"
1233 ac_useropt_orig=$ac_useropt
1234 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1235 case $ac_user_opts in
1239 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1240 ac_unrecognized_sep=', ';;
1242 eval with_$ac_useropt=\$ac_optarg ;;
1244 -without-* | --without-*)
1245 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1246 # Reject names that are not valid shell variable names.
1247 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1248 as_fn_error $? "invalid package name: $ac_useropt"
1249 ac_useropt_orig=$ac_useropt
1250 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1251 case $ac_user_opts in
1255 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1256 ac_unrecognized_sep=', ';;
1258 eval with_$ac_useropt=no ;;
1261 # Obsolete; use --with-x.
1264 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1265 | --x-incl | --x-inc | --x-in | --x-i)
1266 ac_prev=x_includes ;;
1267 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1268 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1269 x_includes=$ac_optarg ;;
1271 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1272 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1273 ac_prev=x_libraries ;;
1274 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1275 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1276 x_libraries=$ac_optarg ;;
1278 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1279 Try \`$0 --help' for more information"
1283 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1284 # Reject names that are not valid shell variable names.
1285 case $ac_envvar in #(
1286 '' | [0-9]* | *[!_$as_cr_alnum]* )
1287 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1289 eval $ac_envvar=\$ac_optarg
1290 export $ac_envvar ;;
1293 # FIXME: should be removed in autoconf 3.0.
1294 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1295 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1296 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1297 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1303 if test -n "$ac_prev"; then
1304 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1305 as_fn_error $? "missing argument to $ac_option"
1308 if test -n "$ac_unrecognized_opts"; then
1309 case $enable_option_checking in
1311 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1312 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1316 # Check all directory arguments for consistency.
1317 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1318 datadir sysconfdir sharedstatedir localstatedir includedir \
1319 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1320 libdir localedir mandir
1322 eval ac_val=\$$ac_var
1323 # Remove trailing slashes.
1326 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1327 eval $ac_var=\$ac_val;;
1329 # Be sure to have absolute directory names.
1331 [\\/$]* | ?:[\\/]* ) continue;;
1332 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1334 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1337 # There might be people who depend on the old broken behavior: `$host'
1338 # used to hold the argument of --host etc.
1339 # FIXME: To remove some day.
1342 target=$target_alias
1344 # FIXME: To remove some day.
1345 if test "x$host_alias" != x; then
1346 if test "x$build_alias" = x; then
1347 cross_compiling=maybe
1348 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1349 If a cross compiler is detected then cross compile mode will be used" >&2
1350 elif test "x$build_alias" != "x$host_alias"; then
1356 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1358 test "$silent" = yes && exec 6>/dev/null
1361 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1362 ac_ls_di=`ls -di .` &&
1363 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1364 as_fn_error $? "working directory cannot be determined"
1365 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1366 as_fn_error $? "pwd does not report name of working directory"
1369 # Find the source files, if location was not specified.
1370 if test -z "$srcdir"; then
1371 ac_srcdir_defaulted=yes
1372 # Try the directory containing this script, then the parent directory.
1373 ac_confdir=`$as_dirname -- "$as_myself" ||
1374 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1375 X"$as_myself" : 'X\(//\)[^/]' \| \
1376 X"$as_myself" : 'X\(//\)$' \| \
1377 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1378 $as_echo X"$as_myself" |
1379 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1397 if test ! -r "$srcdir/$ac_unique_file"; then
1401 ac_srcdir_defaulted=no
1403 if test ! -r "$srcdir/$ac_unique_file"; then
1404 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1405 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1407 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1409 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1411 # When building in place, set srcdir=.
1412 if test "$ac_abs_confdir" = "$ac_pwd"; then
1415 # Remove unnecessary trailing slashes from srcdir.
1416 # Double slashes in file names in object file debugging info
1417 # mess up M-x gdb in Emacs.
1419 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1421 for ac_var in $ac_precious_vars; do
1422 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1423 eval ac_env_${ac_var}_value=\$${ac_var}
1424 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1425 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1429 # Report the --help message.
1431 if test "$ac_init_help" = "long"; then
1432 # Omit some internal or obsolete options to make the list less imposing.
1433 # This message is too long to be a string in the A/UX 3.1 sh.
1435 \`configure' configures ID3 Tag 0.15.1b to adapt to many kinds of systems.
1437 Usage: $0 [OPTION]... [VAR=VALUE]...
1439 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1440 VAR=VALUE. See below for descriptions of some of the useful variables.
1442 Defaults for the options are specified in brackets.
1445 -h, --help display this help and exit
1446 --help=short display options specific to this package
1447 --help=recursive display the short help of all the included packages
1448 -V, --version display version information and exit
1449 -q, --quiet, --silent do not print \`checking ...' messages
1450 --cache-file=FILE cache test results in FILE [disabled]
1451 -C, --config-cache alias for \`--cache-file=config.cache'
1452 -n, --no-create do not create output files
1453 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1455 Installation directories:
1456 --prefix=PREFIX install architecture-independent files in PREFIX
1457 @<:@@S|@ac_default_prefix@:>@
1458 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1461 By default, \`make install' will install all the files in
1462 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1463 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1464 for instance \`--prefix=\$HOME'.
1466 For better control, use the options below.
1468 Fine tuning of the installation directories:
1469 --bindir=DIR user executables [EPREFIX/bin]
1470 --sbindir=DIR system admin executables [EPREFIX/sbin]
1471 --libexecdir=DIR program executables [EPREFIX/libexec]
1472 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1473 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1474 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1475 --libdir=DIR object code libraries [EPREFIX/lib]
1476 --includedir=DIR C header files [PREFIX/include]
1477 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1478 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1479 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1480 --infodir=DIR info documentation [DATAROOTDIR/info]
1481 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1482 --mandir=DIR man documentation [DATAROOTDIR/man]
1483 --docdir=DIR documentation root @<:@DATAROOTDIR/doc/libid3tag@:>@
1484 --htmldir=DIR html documentation [DOCDIR]
1485 --dvidir=DIR dvi documentation [DOCDIR]
1486 --pdfdir=DIR pdf documentation [DOCDIR]
1487 --psdir=DIR ps documentation [DOCDIR]
1493 --program-prefix=PREFIX prepend PREFIX to installed program names
1494 --program-suffix=SUFFIX append SUFFIX to installed program names
1495 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1498 --build=BUILD configure for building on BUILD [guessed]
1499 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1503 if test -n "$ac_init_help"; then
1504 case $ac_init_help in
1505 short | recursive ) echo "Configuration of ID3 Tag 0.15.1b:";;
1510 --disable-option-checking ignore unrecognized --enable/--with options
1511 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1512 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1513 --disable-dependency-tracking speeds up one-time build
1514 --enable-dependency-tracking do not reject slow dependency extractors
1515 --enable-shared@<:@=PKGS@:>@ build shared libraries @<:@default=yes@:>@
1516 --enable-static@<:@=PKGS@:>@ build static libraries @<:@default=yes@:>@
1517 --enable-fast-install@<:@=PKGS@:>@
1518 optimize for fast installation @<:@default=yes@:>@
1519 --disable-libtool-lock avoid locking (might break parallel builds)
1520 --enable-profiling generate profiling code
1521 --enable-debugging enable diagnostic debugging support
1522 --disable-debugging do not enable debugging and use more optimization
1525 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1526 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1527 --with-gnu-ld assume the C compiler uses GNU ld @<:@default=no@:>@
1528 --with-pic try to use only PIC/non-PIC objects @<:@default=use
1530 --with-tags@<:@=TAGS@:>@ include additional configurations @<:@automatic@:>@
1532 Some influential environment variables:
1533 CC C compiler command
1534 CFLAGS C compiler flags
1535 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1536 nonstandard directory <lib dir>
1537 LIBS libraries to pass to the linker, e.g. -l<library>
1538 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1539 you have headers in a nonstandard directory <include dir>
1541 CXX C++ compiler command
1542 CXXFLAGS C++ compiler flags
1543 CXXCPP C++ preprocessor
1544 F77 Fortran 77 compiler command
1545 FFLAGS Fortran 77 compiler flags
1547 Use these variables to override the choices made by `configure' or to help
1548 it to find libraries and programs with nonstandard names/locations.
1550 Report bugs to <support@underbit.com>.
1555 if test "$ac_init_help" = "recursive"; then
1556 # If there are subdirs, report their specific --help.
1557 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1558 test -d "$ac_dir" ||
1559 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1564 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1566 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1567 # A ".." for each directory in $ac_dir_suffix.
1568 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1569 case $ac_top_builddir_sub in
1570 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1571 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1574 ac_abs_top_builddir=$ac_pwd
1575 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1576 # for backward compatibility:
1577 ac_top_builddir=$ac_top_build_prefix
1580 .) # We are building in place.
1582 ac_top_srcdir=$ac_top_builddir_sub
1583 ac_abs_top_srcdir=$ac_pwd ;;
1584 [\\/]* | ?:[\\/]* ) # Absolute name.
1585 ac_srcdir=$srcdir$ac_dir_suffix;
1586 ac_top_srcdir=$srcdir
1587 ac_abs_top_srcdir=$srcdir ;;
1589 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1590 ac_top_srcdir=$ac_top_build_prefix$srcdir
1591 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1593 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1595 cd "$ac_dir" || { ac_status=$?; continue; }
1596 # Check for guested configure.
1597 if test -f "$ac_srcdir/configure.gnu"; then
1599 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1600 elif test -f "$ac_srcdir/configure"; then
1602 $SHELL "$ac_srcdir/configure" --help=recursive
1604 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1606 cd "$ac_pwd" || { ac_status=$?; break; }
1610 test -n "$ac_init_help" && exit $ac_status
1611 if $ac_init_version; then
1613 ID3 Tag configure 0.15.1b
1614 generated by GNU Autoconf 2.68
1616 Copyright (C) 2010 Free Software Foundation, Inc.
1617 This configure script is free software; the Free Software Foundation
1618 gives unlimited permission to copy, distribute and modify it.
1623 ## ------------------------ ##
1624 ## Autoconf initialization. ##
1625 ## ------------------------ ##
1627 @%:@ ac_fn_c_try_compile LINENO
1628 @%:@ --------------------------
1629 @%:@ Try to compile conftest.@S|@ac_ext, and return whether this succeeded.
1630 ac_fn_c_try_compile ()
1632 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1633 rm -f conftest.$ac_objext
1634 if { { ac_try="$ac_compile"
1636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1637 *) ac_try_echo=$ac_try;;
1639 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1640 $as_echo "$ac_try_echo"; } >&5
1641 (eval "$ac_compile") 2>conftest.err
1643 if test -s conftest.err; then
1644 grep -v '^ *+' conftest.err >conftest.er1
1645 cat conftest.er1 >&5
1646 mv -f conftest.er1 conftest.err
1648 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1649 test $ac_status = 0; } && {
1650 test -z "$ac_c_werror_flag" ||
1651 test ! -s conftest.err
1652 } && test -s conftest.$ac_objext; then :
1655 $as_echo "$as_me: failed program was:" >&5
1656 sed 's/^/| /' conftest.$ac_ext >&5
1660 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1661 as_fn_set_status $ac_retval
1663 } @%:@ ac_fn_c_try_compile
1665 @%:@ ac_fn_c_try_link LINENO
1666 @%:@ -----------------------
1667 @%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded.
1670 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1671 rm -f conftest.$ac_objext conftest$ac_exeext
1672 if { { ac_try="$ac_link"
1674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1675 *) ac_try_echo=$ac_try;;
1677 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1678 $as_echo "$ac_try_echo"; } >&5
1679 (eval "$ac_link") 2>conftest.err
1681 if test -s conftest.err; then
1682 grep -v '^ *+' conftest.err >conftest.er1
1683 cat conftest.er1 >&5
1684 mv -f conftest.er1 conftest.err
1686 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1687 test $ac_status = 0; } && {
1688 test -z "$ac_c_werror_flag" ||
1689 test ! -s conftest.err
1690 } && test -s conftest$ac_exeext && {
1691 test "$cross_compiling" = yes ||
1692 $as_test_x conftest$ac_exeext
1696 $as_echo "$as_me: failed program was:" >&5
1697 sed 's/^/| /' conftest.$ac_ext >&5
1701 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1702 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1703 # interfere with the next link command; also delete a directory that is
1704 # left behind by Apple's compiler. We do this before executing the actions.
1705 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1706 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1707 as_fn_set_status $ac_retval
1709 } @%:@ ac_fn_c_try_link
1711 @%:@ ac_fn_c_try_cpp LINENO
1712 @%:@ ----------------------
1713 @%:@ Try to preprocess conftest.@S|@ac_ext, and return whether this succeeded.
1716 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1717 if { { ac_try="$ac_cpp conftest.$ac_ext"
1719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1720 *) ac_try_echo=$ac_try;;
1722 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1723 $as_echo "$ac_try_echo"; } >&5
1724 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1726 if test -s conftest.err; then
1727 grep -v '^ *+' conftest.err >conftest.er1
1728 cat conftest.er1 >&5
1729 mv -f conftest.er1 conftest.err
1731 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1732 test $ac_status = 0; } > conftest.i && {
1733 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1734 test ! -s conftest.err
1738 $as_echo "$as_me: failed program was:" >&5
1739 sed 's/^/| /' conftest.$ac_ext >&5
1743 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1744 as_fn_set_status $ac_retval
1746 } @%:@ ac_fn_c_try_cpp
1748 @%:@ ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1749 @%:@ -------------------------------------------------------
1750 @%:@ Tests whether HEADER exists, giving a warning if it cannot be compiled using
1751 @%:@ the include files in INCLUDES and setting the cache variable VAR
1753 ac_fn_c_check_header_mongrel ()
1755 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1756 if eval \${$3+:} false; then :
1757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1758 $as_echo_n "checking for $2... " >&6; }
1759 if eval \${$3+:} false; then :
1760 $as_echo_n "(cached) " >&6
1763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1764 $as_echo "$ac_res" >&6; }
1766 # Is the header compilable?
1767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1768 $as_echo_n "checking $2 usability... " >&6; }
1769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1770 /* end confdefs.h. */
1774 if ac_fn_c_try_compile "$LINENO"; then :
1775 ac_header_compiler=yes
1777 ac_header_compiler=no
1779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1781 $as_echo "$ac_header_compiler" >&6; }
1783 # Is the header present?
1784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1785 $as_echo_n "checking $2 presence... " >&6; }
1786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1787 /* end confdefs.h. */
1790 if ac_fn_c_try_cpp "$LINENO"; then :
1791 ac_header_preproc=yes
1793 ac_header_preproc=no
1795 rm -f conftest.err conftest.i conftest.$ac_ext
1796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1797 $as_echo "$ac_header_preproc" >&6; }
1799 # So? What about this header?
1800 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1802 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1803 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1804 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1805 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1808 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1809 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1810 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1811 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1812 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1813 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1814 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1815 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1816 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1817 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1818 ( $as_echo "## ----------------------------------- ##
1819 ## Report this to support@underbit.com ##
1820 ## ----------------------------------- ##"
1821 ) | sed "s/^/$as_me: WARNING: /" >&2
1824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1825 $as_echo_n "checking for $2... " >&6; }
1826 if eval \${$3+:} false; then :
1827 $as_echo_n "(cached) " >&6
1829 eval "$3=\$ac_header_compiler"
1832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1833 $as_echo "$ac_res" >&6; }
1835 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1837 } @%:@ ac_fn_c_check_header_mongrel
1839 @%:@ ac_fn_c_try_run LINENO
1840 @%:@ ----------------------
1841 @%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded. Assumes
1842 @%:@ that executables *can* be run.
1845 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1846 if { { ac_try="$ac_link"
1848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1849 *) ac_try_echo=$ac_try;;
1851 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1852 $as_echo "$ac_try_echo"; } >&5
1853 (eval "$ac_link") 2>&5
1855 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1856 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1857 { { case "(($ac_try" in
1858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1859 *) ac_try_echo=$ac_try;;
1861 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1862 $as_echo "$ac_try_echo"; } >&5
1863 (eval "$ac_try") 2>&5
1865 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1866 test $ac_status = 0; }; }; then :
1869 $as_echo "$as_me: program exited with status $ac_status" >&5
1870 $as_echo "$as_me: failed program was:" >&5
1871 sed 's/^/| /' conftest.$ac_ext >&5
1873 ac_retval=$ac_status
1875 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1876 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1877 as_fn_set_status $ac_retval
1879 } @%:@ ac_fn_c_try_run
1881 @%:@ ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1882 @%:@ -------------------------------------------------------
1883 @%:@ Tests whether HEADER exists and can be compiled using the include files in
1884 @%:@ INCLUDES, setting the cache variable VAR accordingly.
1885 ac_fn_c_check_header_compile ()
1887 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1889 $as_echo_n "checking for $2... " >&6; }
1890 if eval \${$3+:} false; then :
1891 $as_echo_n "(cached) " >&6
1893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1894 /* end confdefs.h. */
1898 if ac_fn_c_try_compile "$LINENO"; then :
1903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1907 $as_echo "$ac_res" >&6; }
1908 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1910 } @%:@ ac_fn_c_check_header_compile
1912 @%:@ ac_fn_c_check_func LINENO FUNC VAR
1913 @%:@ ----------------------------------
1914 @%:@ Tests whether FUNC exists, setting the cache variable VAR accordingly
1915 ac_fn_c_check_func ()
1917 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1919 $as_echo_n "checking for $2... " >&6; }
1920 if eval \${$3+:} false; then :
1921 $as_echo_n "(cached) " >&6
1923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1924 /* end confdefs.h. */
1925 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1926 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1927 #define $2 innocuous_$2
1929 /* System header to define __stub macros and hopefully few prototypes,
1930 which can conflict with char $2 (); below.
1931 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1932 <limits.h> exists even on freestanding compilers. */
1935 # include <limits.h>
1937 # include <assert.h>
1942 /* Override any GCC internal prototype to avoid an error.
1943 Use char because int might match the return type of a GCC
1944 builtin and then its argument prototype would still apply. */
1949 /* The GNU C library defines this for functions which it implements
1950 to always fail with ENOSYS. Some functions are actually named
1951 something starting with __ and the normal name is an alias. */
1952 #if defined __stub_$2 || defined __stub___$2
1964 if ac_fn_c_try_link "$LINENO"; then :
1969 rm -f core conftest.err conftest.$ac_objext \
1970 conftest$ac_exeext conftest.$ac_ext
1973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1974 $as_echo "$ac_res" >&6; }
1975 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1977 } @%:@ ac_fn_c_check_func
1979 @%:@ ac_fn_cxx_try_compile LINENO
1980 @%:@ ----------------------------
1981 @%:@ Try to compile conftest.@S|@ac_ext, and return whether this succeeded.
1982 ac_fn_cxx_try_compile ()
1984 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1985 rm -f conftest.$ac_objext
1986 if { { ac_try="$ac_compile"
1988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1989 *) ac_try_echo=$ac_try;;
1991 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1992 $as_echo "$ac_try_echo"; } >&5
1993 (eval "$ac_compile") 2>conftest.err
1995 if test -s conftest.err; then
1996 grep -v '^ *+' conftest.err >conftest.er1
1997 cat conftest.er1 >&5
1998 mv -f conftest.er1 conftest.err
2000 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2001 test $ac_status = 0; } && {
2002 test -z "$ac_cxx_werror_flag" ||
2003 test ! -s conftest.err
2004 } && test -s conftest.$ac_objext; then :
2007 $as_echo "$as_me: failed program was:" >&5
2008 sed 's/^/| /' conftest.$ac_ext >&5
2012 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2013 as_fn_set_status $ac_retval
2015 } @%:@ ac_fn_cxx_try_compile
2017 @%:@ ac_fn_cxx_try_cpp LINENO
2018 @%:@ ------------------------
2019 @%:@ Try to preprocess conftest.@S|@ac_ext, and return whether this succeeded.
2020 ac_fn_cxx_try_cpp ()
2022 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2023 if { { ac_try="$ac_cpp conftest.$ac_ext"
2025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2026 *) ac_try_echo=$ac_try;;
2028 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2029 $as_echo "$ac_try_echo"; } >&5
2030 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2032 if test -s conftest.err; then
2033 grep -v '^ *+' conftest.err >conftest.er1
2034 cat conftest.er1 >&5
2035 mv -f conftest.er1 conftest.err
2037 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2038 test $ac_status = 0; } > conftest.i && {
2039 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2040 test ! -s conftest.err
2044 $as_echo "$as_me: failed program was:" >&5
2045 sed 's/^/| /' conftest.$ac_ext >&5
2049 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2050 as_fn_set_status $ac_retval
2052 } @%:@ ac_fn_cxx_try_cpp
2054 @%:@ ac_fn_cxx_try_link LINENO
2055 @%:@ -------------------------
2056 @%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded.
2057 ac_fn_cxx_try_link ()
2059 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2060 rm -f conftest.$ac_objext conftest$ac_exeext
2061 if { { ac_try="$ac_link"
2063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2064 *) ac_try_echo=$ac_try;;
2066 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2067 $as_echo "$ac_try_echo"; } >&5
2068 (eval "$ac_link") 2>conftest.err
2070 if test -s conftest.err; then
2071 grep -v '^ *+' conftest.err >conftest.er1
2072 cat conftest.er1 >&5
2073 mv -f conftest.er1 conftest.err
2075 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2076 test $ac_status = 0; } && {
2077 test -z "$ac_cxx_werror_flag" ||
2078 test ! -s conftest.err
2079 } && test -s conftest$ac_exeext && {
2080 test "$cross_compiling" = yes ||
2081 $as_test_x conftest$ac_exeext
2085 $as_echo "$as_me: failed program was:" >&5
2086 sed 's/^/| /' conftest.$ac_ext >&5
2090 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2091 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2092 # interfere with the next link command; also delete a directory that is
2093 # left behind by Apple's compiler. We do this before executing the actions.
2094 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2095 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2096 as_fn_set_status $ac_retval
2098 } @%:@ ac_fn_cxx_try_link
2100 @%:@ ac_fn_cxx_check_func LINENO FUNC VAR
2101 @%:@ ------------------------------------
2102 @%:@ Tests whether FUNC exists, setting the cache variable VAR accordingly
2103 ac_fn_cxx_check_func ()
2105 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2107 $as_echo_n "checking for $2... " >&6; }
2108 if eval \${$3+:} false; then :
2109 $as_echo_n "(cached) " >&6
2111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2112 /* end confdefs.h. */
2113 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2114 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2115 #define $2 innocuous_$2
2117 /* System header to define __stub macros and hopefully few prototypes,
2118 which can conflict with char $2 (); below.
2119 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2120 <limits.h> exists even on freestanding compilers. */
2123 # include <limits.h>
2125 # include <assert.h>
2130 /* Override any GCC internal prototype to avoid an error.
2131 Use char because int might match the return type of a GCC
2132 builtin and then its argument prototype would still apply. */
2137 /* The GNU C library defines this for functions which it implements
2138 to always fail with ENOSYS. Some functions are actually named
2139 something starting with __ and the normal name is an alias. */
2140 #if defined __stub_$2 || defined __stub___$2
2152 if ac_fn_cxx_try_link "$LINENO"; then :
2157 rm -f core conftest.err conftest.$ac_objext \
2158 conftest$ac_exeext conftest.$ac_ext
2161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2162 $as_echo "$ac_res" >&6; }
2163 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2165 } @%:@ ac_fn_cxx_check_func
2167 @%:@ ac_fn_f77_try_compile LINENO
2168 @%:@ ----------------------------
2169 @%:@ Try to compile conftest.@S|@ac_ext, and return whether this succeeded.
2170 ac_fn_f77_try_compile ()
2172 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2173 rm -f conftest.$ac_objext
2174 if { { ac_try="$ac_compile"
2176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2177 *) ac_try_echo=$ac_try;;
2179 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2180 $as_echo "$ac_try_echo"; } >&5
2181 (eval "$ac_compile") 2>conftest.err
2183 if test -s conftest.err; then
2184 grep -v '^ *+' conftest.err >conftest.er1
2185 cat conftest.er1 >&5
2186 mv -f conftest.er1 conftest.err
2188 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2189 test $ac_status = 0; } && {
2190 test -z "$ac_f77_werror_flag" ||
2191 test ! -s conftest.err
2192 } && test -s conftest.$ac_objext; then :
2195 $as_echo "$as_me: failed program was:" >&5
2196 sed 's/^/| /' conftest.$ac_ext >&5
2200 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2201 as_fn_set_status $ac_retval
2203 } @%:@ ac_fn_f77_try_compile
2205 @%:@ ac_fn_f77_try_link LINENO
2206 @%:@ -------------------------
2207 @%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded.
2208 ac_fn_f77_try_link ()
2210 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2211 rm -f conftest.$ac_objext conftest$ac_exeext
2212 if { { ac_try="$ac_link"
2214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2215 *) ac_try_echo=$ac_try;;
2217 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2218 $as_echo "$ac_try_echo"; } >&5
2219 (eval "$ac_link") 2>conftest.err
2221 if test -s conftest.err; then
2222 grep -v '^ *+' conftest.err >conftest.er1
2223 cat conftest.er1 >&5
2224 mv -f conftest.er1 conftest.err
2226 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2227 test $ac_status = 0; } && {
2228 test -z "$ac_f77_werror_flag" ||
2229 test ! -s conftest.err
2230 } && test -s conftest$ac_exeext && {
2231 test "$cross_compiling" = yes ||
2232 $as_test_x conftest$ac_exeext
2236 $as_echo "$as_me: failed program was:" >&5
2237 sed 's/^/| /' conftest.$ac_ext >&5
2241 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2242 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2243 # interfere with the next link command; also delete a directory that is
2244 # left behind by Apple's compiler. We do this before executing the actions.
2245 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2246 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2247 as_fn_set_status $ac_retval
2249 } @%:@ ac_fn_f77_try_link
2250 cat >config.log <<_ACEOF
2251 This file contains any messages produced by compilers while
2252 running configure, to aid debugging if configure makes a mistake.
2254 It was created by ID3 Tag $as_me 0.15.1b, which was
2255 generated by GNU Autoconf 2.68. Invocation command line was
2267 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2268 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2269 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2270 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2271 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2273 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2274 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2276 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2277 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2278 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2279 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2280 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2281 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2282 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2290 test -z "$as_dir" && as_dir=.
2291 $as_echo "PATH: $as_dir"
2307 # Keep a trace of the command line.
2308 # Strip out --no-create and --no-recursion so they do not pile up.
2309 # Strip out --silent because we don't want to record it for future runs.
2310 # Also quote any args containing shell meta-characters.
2311 # Make two passes to allow for proper duplicate-argument suppression.
2315 ac_must_keep_next=false
2321 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2322 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2323 | -silent | --silent | --silen | --sile | --sil)
2326 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2329 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2331 as_fn_append ac_configure_args1 " '$ac_arg'"
2332 if test $ac_must_keep_next = true; then
2333 ac_must_keep_next=false # Got value, back to normal.
2336 *=* | --config-cache | -C | -disable-* | --disable-* \
2337 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2338 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2339 | -with-* | --with-* | -without-* | --without-* | --x)
2340 case "$ac_configure_args0 " in
2341 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2344 -* ) ac_must_keep_next=true ;;
2347 as_fn_append ac_configure_args " '$ac_arg'"
2352 { ac_configure_args0=; unset ac_configure_args0;}
2353 { ac_configure_args1=; unset ac_configure_args1;}
2355 # When interrupted or exit'd, cleanup temporary files, and complete
2356 # config.log. We remove comments because anyway the quotes in there
2357 # would cause problems or look ugly.
2358 # WARNING: Use '\'' to represent an apostrophe within the trap.
2359 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2360 trap 'exit_status=$?
2361 # Save into config.log some information that might help in debugging.
2365 $as_echo "## ---------------- ##
2366 ## Cache variables. ##
2367 ## ---------------- ##"
2369 # The following way of writing the cache mishandles newlines in values,
2371 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2372 eval ac_val=\$$ac_var
2376 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2377 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2380 _ | IFS | as_nl) ;; #(
2381 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2382 *) { eval $ac_var=; unset $ac_var;} ;;
2387 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2388 *${as_nl}ac_space=\ *)
2390 "s/'\''/'\''\\\\'\'''\''/g;
2391 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2394 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2401 $as_echo "## ----------------- ##
2402 ## Output variables. ##
2403 ## ----------------- ##"
2405 for ac_var in $ac_subst_vars
2407 eval ac_val=\$$ac_var
2409 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2411 $as_echo "$ac_var='\''$ac_val'\''"
2415 if test -n "$ac_subst_files"; then
2416 $as_echo "## ------------------- ##
2417 ## File substitutions. ##
2418 ## ------------------- ##"
2420 for ac_var in $ac_subst_files
2422 eval ac_val=\$$ac_var
2424 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2426 $as_echo "$ac_var='\''$ac_val'\''"
2431 if test -s confdefs.h; then
2432 $as_echo "## ----------- ##
2439 test "$ac_signal" != 0 &&
2440 $as_echo "$as_me: caught signal $ac_signal"
2441 $as_echo "$as_me: exit $exit_status"
2443 rm -f core *.core core.conftest.* &&
2444 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2447 for ac_signal in 1 2 13 15; do
2448 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2452 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2453 rm -f -r conftest* confdefs.h
2455 $as_echo "/* confdefs.h */" > confdefs.h
2457 # Predefined preprocessor variables.
2459 cat >>confdefs.h <<_ACEOF
2460 @%:@define PACKAGE_NAME "$PACKAGE_NAME"
2463 cat >>confdefs.h <<_ACEOF
2464 @%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2467 cat >>confdefs.h <<_ACEOF
2468 @%:@define PACKAGE_VERSION "$PACKAGE_VERSION"
2471 cat >>confdefs.h <<_ACEOF
2472 @%:@define PACKAGE_STRING "$PACKAGE_STRING"
2475 cat >>confdefs.h <<_ACEOF
2476 @%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2479 cat >>confdefs.h <<_ACEOF
2480 @%:@define PACKAGE_URL "$PACKAGE_URL"
2484 # Let the site file select an alternate cache file if it wants to.
2485 # Prefer an explicitly selected file to automatically selected ones.
2488 if test -n "$CONFIG_SITE"; then
2489 # We do not want a PATH search for config.site.
2490 case $CONFIG_SITE in @%:@((
2491 -*) ac_site_file1=./$CONFIG_SITE;;
2492 */*) ac_site_file1=$CONFIG_SITE;;
2493 *) ac_site_file1=./$CONFIG_SITE;;
2495 elif test "x$prefix" != xNONE; then
2496 ac_site_file1=$prefix/share/config.site
2497 ac_site_file2=$prefix/etc/config.site
2499 ac_site_file1=$ac_default_prefix/share/config.site
2500 ac_site_file2=$ac_default_prefix/etc/config.site
2502 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2504 test "x$ac_site_file" = xNONE && continue
2505 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2506 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2507 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2508 sed 's/^/| /' "$ac_site_file" >&5
2510 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2511 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2512 as_fn_error $? "failed to load site script $ac_site_file
2513 See \`config.log' for more details" "$LINENO" 5; }
2517 if test -r "$cache_file"; then
2518 # Some versions of bash will fail to source /dev/null (special files
2519 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2520 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2521 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2522 $as_echo "$as_me: loading cache $cache_file" >&6;}
2524 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2525 *) . "./$cache_file";;
2529 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2530 $as_echo "$as_me: creating cache $cache_file" >&6;}
2534 # Check that the precious variables saved in the cache have kept the same
2536 ac_cache_corrupted=false
2537 for ac_var in $ac_precious_vars; do
2538 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2539 eval ac_new_set=\$ac_env_${ac_var}_set
2540 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2541 eval ac_new_val=\$ac_env_${ac_var}_value
2542 case $ac_old_set,$ac_new_set in
2544 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2545 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2546 ac_cache_corrupted=: ;;
2548 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2549 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2550 ac_cache_corrupted=: ;;
2553 if test "x$ac_old_val" != "x$ac_new_val"; then
2554 # differences in whitespace do not lead to failure.
2555 ac_old_val_w=`echo x $ac_old_val`
2556 ac_new_val_w=`echo x $ac_new_val`
2557 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2558 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2559 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2560 ac_cache_corrupted=:
2562 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2563 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2564 eval $ac_var=\$ac_old_val
2566 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2567 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2568 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2569 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2572 # Pass precious variables to config.status.
2573 if test "$ac_new_set" = set; then
2575 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2576 *) ac_arg=$ac_var=$ac_new_val ;;
2578 case " $ac_configure_args " in
2579 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2580 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2584 if $ac_cache_corrupted; then
2585 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2586 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2587 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2588 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2589 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2591 ## -------------------- ##
2592 ## Main body of script. ##
2593 ## -------------------- ##
2596 ac_cpp='$CPP $CPPFLAGS'
2597 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2598 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2599 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2606 am__api_version="1.8"
2608 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2609 if test -f "$ac_dir/install-sh"; then
2611 ac_install_sh="$ac_aux_dir/install-sh -c"
2613 elif test -f "$ac_dir/install.sh"; then
2615 ac_install_sh="$ac_aux_dir/install.sh -c"
2617 elif test -f "$ac_dir/shtool"; then
2619 ac_install_sh="$ac_aux_dir/shtool install -c"
2623 if test -z "$ac_aux_dir"; then
2624 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2627 # These three variables are undocumented and unsupported,
2628 # and are intended to be withdrawn in a future Autoconf release.
2629 # They can cause serious problems if a builder's source tree is in a directory
2630 # whose full name contains unusual characters.
2631 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2632 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2633 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2636 # Find a good install program. We prefer a C program (faster),
2637 # so one script is as good as another. But avoid the broken or
2638 # incompatible versions:
2639 # SysV /etc/install, /usr/sbin/install
2640 # SunOS /usr/etc/install
2641 # IRIX /sbin/install
2643 # AmigaOS /C/install, which installs bootblocks on floppy discs
2644 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2645 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2646 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2647 # OS/2's system install, which has a completely different semantic
2648 # ./install, which can be erroneously created by make from ./install.sh.
2649 # Reject install programs that cannot install multiple files.
2650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2651 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2652 if test -z "$INSTALL"; then
2653 if ${ac_cv_path_install+:} false; then :
2654 $as_echo_n "(cached) " >&6
2656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2660 test -z "$as_dir" && as_dir=.
2661 # Account for people who put trailing slashes in PATH elements.
2662 case $as_dir/ in @%:@((
2663 ./ | .// | /[cC]/* | \
2664 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2665 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2668 # OSF1 and SCO ODT 3.0 have their own names for install.
2669 # Don't use installbsd from OSF since it installs stuff as root
2671 for ac_prog in ginstall scoinst install; do
2672 for ac_exec_ext in '' $ac_executable_extensions; do
2673 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2674 if test $ac_prog = install &&
2675 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2676 # AIX install. It has an incompatible calling convention.
2678 elif test $ac_prog = install &&
2679 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2680 # program-specific install script used by HP pwplus--don't use.
2683 rm -rf conftest.one conftest.two conftest.dir
2684 echo one > conftest.one
2685 echo two > conftest.two
2687 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2688 test -s conftest.one && test -s conftest.two &&
2689 test -s conftest.dir/conftest.one &&
2690 test -s conftest.dir/conftest.two
2692 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2705 rm -rf conftest.one conftest.two conftest.dir
2708 if test "${ac_cv_path_install+set}" = set; then
2709 INSTALL=$ac_cv_path_install
2711 # As a last resort, use the slow shell script. Don't cache a
2712 # value for INSTALL within a source directory, because that will
2713 # break other packages using the cache if that directory is
2714 # removed, or if the value is a relative name.
2715 INSTALL=$ac_install_sh
2718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2719 $as_echo "$INSTALL" >&6; }
2721 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2722 # It thinks the first close brace ends the variable substitution.
2723 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2725 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2727 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2730 $as_echo_n "checking whether build environment is sane... " >&6; }
2733 echo timestamp > conftest.file
2734 # Do `set' in a subshell so we don't clobber the current shell's
2735 # arguments. Must try -L first in case configure is actually a
2736 # symlink; some systems play weird games with the mod time of symlinks
2737 # (eg FreeBSD returns the mod time of the symlink's containing
2740 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2741 if test "$*" = "X"; then
2743 set X `ls -t $srcdir/configure conftest.file`
2746 if test "$*" != "X $srcdir/configure conftest.file" \
2747 && test "$*" != "X conftest.file $srcdir/configure"; then
2749 # If neither matched, then we have a broken ls. This can happen
2750 # if, for instance, CONFIG_SHELL is bash and it inherits a
2751 # broken ls alias from the environment. This has actually
2752 # happened. Such a system could not be considered "sane".
2753 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2754 alias in your environment" "$LINENO" 5
2757 test "$2" = conftest.file
2763 as_fn_error $? "newly created file is older than distributed files!
2764 Check your system clock" "$LINENO" 5
2766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2767 $as_echo "yes" >&6; }
2768 test "$program_prefix" != NONE &&
2769 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2770 # Use a double $ so make ignores it.
2771 test "$program_suffix" != NONE &&
2772 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2773 # Double any \ or $.
2774 # By default was `s,x,x', remove it if useless.
2775 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2776 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2778 # expand $ac_aux_dir to an absolute path
2779 am_aux_dir=`cd $ac_aux_dir && pwd`
2781 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2782 # Use eval to expand $SHELL
2783 if eval "$MISSING --run true"; then
2784 am_missing_run="$MISSING --run "
2787 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2788 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2791 if mkdir -p -- . 2>/dev/null; then
2792 # Keeping the `.' argument allows $(mkdir_p) to be used without
2793 # argument. Indeed, we sometimes output rules like
2794 # $(mkdir_p) $(somedir)
2795 # where $(somedir) is conditionally defined.
2796 # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
2797 # expensive solution, as it forces Make to start a sub-shell.)
2798 mkdir_p='mkdir -p -- .'
2800 # On NextStep and OpenStep, the `mkdir' command does not
2801 # recognize any option. It will interpret all options as
2802 # directories to create, and then abort because `.' already
2806 test -d $d && rmdir $d
2808 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2809 if test -f "$ac_aux_dir/mkinstalldirs"; then
2810 mkdir_p='$(mkinstalldirs)'
2812 mkdir_p='$(install_sh) -d'
2816 for ac_prog in gawk mawk nawk awk
2818 # Extract the first word of "$ac_prog", so it can be a program name with args.
2819 set dummy $ac_prog; ac_word=$2
2820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2821 $as_echo_n "checking for $ac_word... " >&6; }
2822 if ${ac_cv_prog_AWK+:} false; then :
2823 $as_echo_n "(cached) " >&6
2825 if test -n "$AWK"; then
2826 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2832 test -z "$as_dir" && as_dir=.
2833 for ac_exec_ext in '' $ac_executable_extensions; do
2834 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2835 ac_cv_prog_AWK="$ac_prog"
2836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2846 if test -n "$AWK"; then
2847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2848 $as_echo "$AWK" >&6; }
2850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2851 $as_echo "no" >&6; }
2855 test -n "$AWK" && break
2858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2859 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2861 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2862 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2863 $as_echo_n "(cached) " >&6
2865 cat >conftest.make <<\_ACEOF
2868 @echo '@@@%%%=$(MAKE)=@@@%%%'
2870 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2871 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2873 eval ac_cv_prog_make_${ac_make}_set=yes;;
2875 eval ac_cv_prog_make_${ac_make}_set=no;;
2879 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2881 $as_echo "yes" >&6; }
2884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2885 $as_echo "no" >&6; }
2886 SET_MAKE="MAKE=${MAKE-make}"
2889 rm -rf .tst 2>/dev/null
2890 mkdir .tst 2>/dev/null
2891 if test -d .tst; then
2896 rmdir .tst 2>/dev/null
2898 # test to see if srcdir already configured
2899 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2900 test -f $srcdir/config.status; then
2901 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2904 # test whether we have cygpath
2905 if test -z "$CYGPATH_W"; then
2906 if (cygpath --version) >/dev/null 2>/dev/null; then
2907 CYGPATH_W='cygpath -w'
2914 # Define the identity of the package.
2919 cat >>confdefs.h <<_ACEOF
2920 @%:@define PACKAGE "$PACKAGE"
2924 cat >>confdefs.h <<_ACEOF
2925 @%:@define VERSION "$VERSION"
2928 # Some tools Automake needs.
2930 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2933 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2936 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2939 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2942 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2945 AMTAR=${AMTAR-"${am_missing_run}tar"}
2947 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2949 # Installed binaries are usually stripped using `strip' when the user
2950 # run `make install-strip'. However `strip' might not be the right
2951 # tool to use in cross-compilation environments, therefore Automake
2952 # will honor the `STRIP' environment variable to overrule this program.
2953 if test "$cross_compiling" != no; then
2954 if test -n "$ac_tool_prefix"; then
2955 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2956 set dummy ${ac_tool_prefix}strip; ac_word=$2
2957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2958 $as_echo_n "checking for $ac_word... " >&6; }
2959 if ${ac_cv_prog_STRIP+:} false; then :
2960 $as_echo_n "(cached) " >&6
2962 if test -n "$STRIP"; then
2963 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2969 test -z "$as_dir" && as_dir=.
2970 for ac_exec_ext in '' $ac_executable_extensions; do
2971 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2972 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2982 STRIP=$ac_cv_prog_STRIP
2983 if test -n "$STRIP"; then
2984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2985 $as_echo "$STRIP" >&6; }
2987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2988 $as_echo "no" >&6; }
2993 if test -z "$ac_cv_prog_STRIP"; then
2995 # Extract the first word of "strip", so it can be a program name with args.
2996 set dummy strip; ac_word=$2
2997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2998 $as_echo_n "checking for $ac_word... " >&6; }
2999 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3000 $as_echo_n "(cached) " >&6
3002 if test -n "$ac_ct_STRIP"; then
3003 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3009 test -z "$as_dir" && as_dir=.
3010 for ac_exec_ext in '' $ac_executable_extensions; do
3011 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3012 ac_cv_prog_ac_ct_STRIP="strip"
3013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3022 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3023 if test -n "$ac_ct_STRIP"; then
3024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3025 $as_echo "$ac_ct_STRIP" >&6; }
3027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3028 $as_echo "no" >&6; }
3031 if test "x$ac_ct_STRIP" = x; then
3034 case $cross_compiling:$ac_tool_warned in
3036 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3037 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3038 ac_tool_warned=yes ;;
3043 STRIP="$ac_cv_prog_STRIP"
3047 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
3049 # We need awk for the "check" target. The system "awk" is bad on
3055 ac_config_headers="$ac_config_headers config.h"
3059 # Make sure we can run config.sub.
3060 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3061 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3064 $as_echo_n "checking build system type... " >&6; }
3065 if ${ac_cv_build+:} false; then :
3066 $as_echo_n "(cached) " >&6
3068 ac_build_alias=$build_alias
3069 test "x$ac_build_alias" = x &&
3070 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3071 test "x$ac_build_alias" = x &&
3072 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3073 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3074 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3078 $as_echo "$ac_cv_build" >&6; }
3079 case $ac_cv_build in
3081 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3084 ac_save_IFS=$IFS; IFS='-'
3090 # Remember, the first character of IFS is used to create $*,
3091 # except with old shells:
3094 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3098 $as_echo_n "checking host system type... " >&6; }
3099 if ${ac_cv_host+:} false; then :
3100 $as_echo_n "(cached) " >&6
3102 if test "x$host_alias" = x; then
3103 ac_cv_host=$ac_cv_build
3105 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3106 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3111 $as_echo "$ac_cv_host" >&6; }
3114 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3117 ac_save_IFS=$IFS; IFS='-'
3123 # Remember, the first character of IFS is used to create $*,
3124 # except with old shells:
3127 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3133 ac_cpp='$CPP $CPPFLAGS'
3134 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3135 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3136 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3137 if test -n "$ac_tool_prefix"; then
3138 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3139 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3141 $as_echo_n "checking for $ac_word... " >&6; }
3142 if ${ac_cv_prog_CC+:} false; then :
3143 $as_echo_n "(cached) " >&6
3145 if test -n "$CC"; then
3146 ac_cv_prog_CC="$CC" # Let the user override the test.
3148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3152 test -z "$as_dir" && as_dir=.
3153 for ac_exec_ext in '' $ac_executable_extensions; do
3154 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3155 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3166 if test -n "$CC"; then
3167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3168 $as_echo "$CC" >&6; }
3170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3171 $as_echo "no" >&6; }
3176 if test -z "$ac_cv_prog_CC"; then
3178 # Extract the first word of "gcc", so it can be a program name with args.
3179 set dummy gcc; ac_word=$2
3180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3181 $as_echo_n "checking for $ac_word... " >&6; }
3182 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3183 $as_echo_n "(cached) " >&6
3185 if test -n "$ac_ct_CC"; then
3186 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3192 test -z "$as_dir" && as_dir=.
3193 for ac_exec_ext in '' $ac_executable_extensions; do
3194 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3195 ac_cv_prog_ac_ct_CC="gcc"
3196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3205 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3206 if test -n "$ac_ct_CC"; then
3207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3208 $as_echo "$ac_ct_CC" >&6; }
3210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3211 $as_echo "no" >&6; }
3214 if test "x$ac_ct_CC" = x; then
3217 case $cross_compiling:$ac_tool_warned in
3219 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3220 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3221 ac_tool_warned=yes ;;
3229 if test -z "$CC"; then
3230 if test -n "$ac_tool_prefix"; then
3231 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3232 set dummy ${ac_tool_prefix}cc; ac_word=$2
3233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3234 $as_echo_n "checking for $ac_word... " >&6; }
3235 if ${ac_cv_prog_CC+:} false; then :
3236 $as_echo_n "(cached) " >&6
3238 if test -n "$CC"; then
3239 ac_cv_prog_CC="$CC" # Let the user override the test.
3241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3245 test -z "$as_dir" && as_dir=.
3246 for ac_exec_ext in '' $ac_executable_extensions; do
3247 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3248 ac_cv_prog_CC="${ac_tool_prefix}cc"
3249 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3259 if test -n "$CC"; then
3260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3261 $as_echo "$CC" >&6; }
3263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3264 $as_echo "no" >&6; }
3270 if test -z "$CC"; then
3271 # Extract the first word of "cc", so it can be a program name with args.
3272 set dummy cc; ac_word=$2
3273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3274 $as_echo_n "checking for $ac_word... " >&6; }
3275 if ${ac_cv_prog_CC+:} false; then :
3276 $as_echo_n "(cached) " >&6
3278 if test -n "$CC"; then
3279 ac_cv_prog_CC="$CC" # Let the user override the test.
3282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3286 test -z "$as_dir" && as_dir=.
3287 for ac_exec_ext in '' $ac_executable_extensions; do
3288 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3289 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3290 ac_prog_rejected=yes
3294 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3301 if test $ac_prog_rejected = yes; then
3302 # We found a bogon in the path, so make sure we never use it.
3303 set dummy $ac_cv_prog_CC
3305 if test $@%:@ != 0; then
3306 # We chose a different compiler from the bogus one.
3307 # However, it has the same basename, so the bogon will be chosen
3308 # first if we set CC to just the basename; use the full file name.
3310 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3316 if test -n "$CC"; then
3317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3318 $as_echo "$CC" >&6; }
3320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3321 $as_echo "no" >&6; }
3326 if test -z "$CC"; then
3327 if test -n "$ac_tool_prefix"; then
3328 for ac_prog in cl.exe
3330 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3331 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3333 $as_echo_n "checking for $ac_word... " >&6; }
3334 if ${ac_cv_prog_CC+:} false; then :
3335 $as_echo_n "(cached) " >&6
3337 if test -n "$CC"; then
3338 ac_cv_prog_CC="$CC" # Let the user override the test.
3340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3344 test -z "$as_dir" && as_dir=.
3345 for ac_exec_ext in '' $ac_executable_extensions; do
3346 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3347 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3358 if test -n "$CC"; then
3359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3360 $as_echo "$CC" >&6; }
3362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3363 $as_echo "no" >&6; }
3367 test -n "$CC" && break
3370 if test -z "$CC"; then
3372 for ac_prog in cl.exe
3374 # Extract the first word of "$ac_prog", so it can be a program name with args.
3375 set dummy $ac_prog; ac_word=$2
3376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3377 $as_echo_n "checking for $ac_word... " >&6; }
3378 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3379 $as_echo_n "(cached) " >&6
3381 if test -n "$ac_ct_CC"; then
3382 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3388 test -z "$as_dir" && as_dir=.
3389 for ac_exec_ext in '' $ac_executable_extensions; do
3390 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3391 ac_cv_prog_ac_ct_CC="$ac_prog"
3392 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3401 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3402 if test -n "$ac_ct_CC"; then
3403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3404 $as_echo "$ac_ct_CC" >&6; }
3406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3407 $as_echo "no" >&6; }
3411 test -n "$ac_ct_CC" && break
3414 if test "x$ac_ct_CC" = x; then
3417 case $cross_compiling:$ac_tool_warned in
3419 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3420 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3421 ac_tool_warned=yes ;;
3430 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3431 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3432 as_fn_error $? "no acceptable C compiler found in \$PATH
3433 See \`config.log' for more details" "$LINENO" 5; }
3435 # Provide some information about the compiler.
3436 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3439 for ac_option in --version -v -V -qversion; do
3440 { { ac_try="$ac_compiler $ac_option >&5"
3442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3443 *) ac_try_echo=$ac_try;;
3445 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3446 $as_echo "$ac_try_echo"; } >&5
3447 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3449 if test -s conftest.err; then
3451 ... rest of stderr output deleted ...
3452 10q' conftest.err >conftest.er1
3453 cat conftest.er1 >&5
3455 rm -f conftest.er1 conftest.err
3456 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3457 test $ac_status = 0; }
3460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3461 /* end confdefs.h. */
3471 ac_clean_files_save=$ac_clean_files
3472 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3473 # Try to create an executable without -o first, disregard a.out.
3474 # It will help us diagnose broken compilers, and finding out an intuition
3476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3477 $as_echo_n "checking whether the C compiler works... " >&6; }
3478 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3480 # The possible output files:
3481 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3484 for ac_file in $ac_files
3487 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3488 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3493 if { { ac_try="$ac_link_default"
3495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3496 *) ac_try_echo=$ac_try;;
3498 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3499 $as_echo "$ac_try_echo"; } >&5
3500 (eval "$ac_link_default") 2>&5
3502 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3503 test $ac_status = 0; }; then :
3504 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3505 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3506 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3507 # so that the user can short-circuit this test for compilers unknown to
3509 for ac_file in $ac_files ''
3511 test -f "$ac_file" || continue
3513 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3516 # We found the default executable, but exeext='' is most
3520 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3522 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3524 # We set ac_cv_exeext here because the later test for it is not
3525 # safe: cross compilers may not add the suffix if given an `-o'
3526 # argument, so we may need to know it at that point already.
3527 # Even if this section looks crufty: it has the advantage of
3534 test "$ac_cv_exeext" = no && ac_cv_exeext=
3539 if test -z "$ac_file"; then :
3540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3541 $as_echo "no" >&6; }
3542 $as_echo "$as_me: failed program was:" >&5
3543 sed 's/^/| /' conftest.$ac_ext >&5
3545 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3546 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3547 as_fn_error 77 "C compiler cannot create executables
3548 See \`config.log' for more details" "$LINENO" 5; }
3550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3551 $as_echo "yes" >&6; }
3553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3554 $as_echo_n "checking for C compiler default output file name... " >&6; }
3555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3556 $as_echo "$ac_file" >&6; }
3557 ac_exeext=$ac_cv_exeext
3559 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3560 ac_clean_files=$ac_clean_files_save
3561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3562 $as_echo_n "checking for suffix of executables... " >&6; }
3563 if { { ac_try="$ac_link"
3565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3566 *) ac_try_echo=$ac_try;;
3568 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3569 $as_echo "$ac_try_echo"; } >&5
3570 (eval "$ac_link") 2>&5
3572 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3573 test $ac_status = 0; }; then :
3574 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3575 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3576 # work properly (i.e., refer to `conftest.exe'), while it won't with
3578 for ac_file in conftest.exe conftest conftest.*; do
3579 test -f "$ac_file" || continue
3581 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3582 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3588 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3589 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3590 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3591 See \`config.log' for more details" "$LINENO" 5; }
3593 rm -f conftest conftest$ac_cv_exeext
3594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3595 $as_echo "$ac_cv_exeext" >&6; }
3597 rm -f conftest.$ac_ext
3598 EXEEXT=$ac_cv_exeext
3600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3601 /* end confdefs.h. */
3602 @%:@include <stdio.h>
3606 FILE *f = fopen ("conftest.out", "w");
3607 return ferror (f) || fclose (f) != 0;
3613 ac_clean_files="$ac_clean_files conftest.out"
3614 # Check that the compiler produces executables we can run. If not, either
3615 # the compiler is broken, or we cross compile.
3616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3617 $as_echo_n "checking whether we are cross compiling... " >&6; }
3618 if test "$cross_compiling" != yes; then
3619 { { ac_try="$ac_link"
3621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3622 *) ac_try_echo=$ac_try;;
3624 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3625 $as_echo "$ac_try_echo"; } >&5
3626 (eval "$ac_link") 2>&5
3628 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3629 test $ac_status = 0; }
3630 if { ac_try='./conftest$ac_cv_exeext'
3631 { { case "(($ac_try" in
3632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3633 *) ac_try_echo=$ac_try;;
3635 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3636 $as_echo "$ac_try_echo"; } >&5
3637 (eval "$ac_try") 2>&5
3639 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3640 test $ac_status = 0; }; }; then
3643 if test "$cross_compiling" = maybe; then
3646 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3647 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3648 as_fn_error $? "cannot run C compiled programs.
3649 If you meant to cross compile, use \`--host'.
3650 See \`config.log' for more details" "$LINENO" 5; }
3654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3655 $as_echo "$cross_compiling" >&6; }
3657 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3658 ac_clean_files=$ac_clean_files_save
3659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3660 $as_echo_n "checking for suffix of object files... " >&6; }
3661 if ${ac_cv_objext+:} false; then :
3662 $as_echo_n "(cached) " >&6
3664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3665 /* end confdefs.h. */
3675 rm -f conftest.o conftest.obj
3676 if { { ac_try="$ac_compile"
3678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3679 *) ac_try_echo=$ac_try;;
3681 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3682 $as_echo "$ac_try_echo"; } >&5
3683 (eval "$ac_compile") 2>&5
3685 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3686 test $ac_status = 0; }; then :
3687 for ac_file in conftest.o conftest.obj conftest.*; do
3688 test -f "$ac_file" || continue;
3690 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3691 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3696 $as_echo "$as_me: failed program was:" >&5
3697 sed 's/^/| /' conftest.$ac_ext >&5
3699 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3700 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3701 as_fn_error $? "cannot compute suffix of object files: cannot compile
3702 See \`config.log' for more details" "$LINENO" 5; }
3704 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3707 $as_echo "$ac_cv_objext" >&6; }
3708 OBJEXT=$ac_cv_objext
3710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3711 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3712 if ${ac_cv_c_compiler_gnu+:} false; then :
3713 $as_echo_n "(cached) " >&6
3715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3716 /* end confdefs.h. */
3729 if ac_fn_c_try_compile "$LINENO"; then :
3734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3735 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3739 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3740 if test $ac_compiler_gnu = yes; then
3745 ac_test_CFLAGS=${CFLAGS+set}
3746 ac_save_CFLAGS=$CFLAGS
3747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3748 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3749 if ${ac_cv_prog_cc_g+:} false; then :
3750 $as_echo_n "(cached) " >&6
3752 ac_save_c_werror_flag=$ac_c_werror_flag
3753 ac_c_werror_flag=yes
3756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3757 /* end confdefs.h. */
3767 if ac_fn_c_try_compile "$LINENO"; then :
3771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3772 /* end confdefs.h. */
3782 if ac_fn_c_try_compile "$LINENO"; then :
3785 ac_c_werror_flag=$ac_save_c_werror_flag
3787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3788 /* end confdefs.h. */
3798 if ac_fn_c_try_compile "$LINENO"; then :
3801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3806 ac_c_werror_flag=$ac_save_c_werror_flag
3808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3809 $as_echo "$ac_cv_prog_cc_g" >&6; }
3810 if test "$ac_test_CFLAGS" = set; then
3811 CFLAGS=$ac_save_CFLAGS
3812 elif test $ac_cv_prog_cc_g = yes; then
3813 if test "$GCC" = yes; then
3819 if test "$GCC" = yes; then
3825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3826 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3827 if ${ac_cv_prog_cc_c89+:} false; then :
3828 $as_echo_n "(cached) " >&6
3830 ac_cv_prog_cc_c89=no
3832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3833 /* end confdefs.h. */
3836 #include <sys/types.h>
3837 #include <sys/stat.h>
3838 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3839 struct buf { int x; };
3840 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3841 static char *e (p, i)
3847 static char *f (char * (*g) (char **, int), char **p, ...)
3852 s = g (p, va_arg (v,int));
3857 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3858 function prototypes and stuff, but not '\xHH' hex character constants.
3859 These don't provoke an error unfortunately, instead are silently treated
3860 as 'x'. The following induces an error, until -std is added to get
3861 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3862 array size at least. It's necessary to write '\x00'==0 to get something
3863 that's true only with -std. */
3864 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3866 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3867 inside strings and character constants. */
3869 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3871 int test (int i, double x);
3872 struct s1 {int (*f) (int a);};
3873 struct s2 {int (*f) (double a);};
3874 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3880 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3885 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3886 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3888 CC="$ac_save_CC $ac_arg"
3889 if ac_fn_c_try_compile "$LINENO"; then :
3890 ac_cv_prog_cc_c89=$ac_arg
3892 rm -f core conftest.err conftest.$ac_objext
3893 test "x$ac_cv_prog_cc_c89" != "xno" && break
3895 rm -f conftest.$ac_ext
3900 case "x$ac_cv_prog_cc_c89" in
3902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3903 $as_echo "none needed" >&6; } ;;
3905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3906 $as_echo "unsupported" >&6; } ;;
3908 CC="$CC $ac_cv_prog_cc_c89"
3909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3910 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3912 if test "x$ac_cv_prog_cc_c89" != xno; then :
3917 ac_cpp='$CPP $CPPFLAGS'
3918 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3919 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3920 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3921 DEPDIR="${am__leading_dot}deps"
3923 ac_config_commands="$ac_config_commands depfiles"
3926 am_make=${MAKE-make}
3927 cat > confinc << 'END'
3932 # If we don't find an include directive, just comment out the code.
3933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3934 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3938 # First try GNU make style include.
3939 echo "include confinc" > confmf
3940 # We grep out `Entering directory' and `Leaving directory'
3941 # messages which can occur if `w' ends up in MAKEFLAGS.
3942 # In particular we don't look at `^make:' because GNU make might
3943 # be invoked under some other name (usually "gmake"), in which
3944 # case it prints its new name instead of `make'.
3945 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3950 # Now try BSD make style include.
3951 if test "$am__include" = "#"; then
3952 echo '.include "confinc"' > confmf
3953 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3954 am__include=.include
3961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3962 $as_echo "$_am_result" >&6; }
3963 rm -f confinc confmf
3965 @%:@ Check whether --enable-dependency-tracking was given.
3966 if test "${enable_dependency_tracking+set}" = set; then :
3967 enableval=$enable_dependency_tracking;
3970 if test "x$enable_dependency_tracking" != xno; then
3971 am_depcomp="$ac_aux_dir/depcomp"
3976 if test "x$enable_dependency_tracking" != xno; then
3987 depcc="$CC" am_compiler_list=
3989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3990 $as_echo_n "checking dependency style of $depcc... " >&6; }
3991 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3992 $as_echo_n "(cached) " >&6
3994 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3995 # We make a subdir and do the tests there. Otherwise we can end up
3996 # making bogus files that we don't know about and never remove. For
3997 # instance it was reported that on HP-UX the gcc test will end up
3998 # making a dummy file named `D' -- because `-MD' means `put the output
4001 # Copy depcomp to subdir because otherwise we won't find it if we're
4002 # using a relative directory.
4003 cp "$am_depcomp" conftest.dir
4005 # We will build objects and dependencies in a subdirectory because
4006 # it helps to detect inapplicable dependency modes. For instance
4007 # both Tru64's cc and ICC support -MD to output dependencies as a
4008 # side effect of compilation, but ICC will put the dependencies in
4009 # the current directory while Tru64 will put them in the object
4013 am_cv_CC_dependencies_compiler_type=none
4014 if test "$am_compiler_list" = ""; then
4015 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4017 for depmode in $am_compiler_list; do
4018 # Setup a source with many dependencies, because some compilers
4019 # like to wrap large dependency lists on column 80 (with \), and
4020 # we should not choose a depcomp mode which is confused by this.
4022 # We need to recreate these files for each test, as the compiler may
4023 # overwrite some of them when testing with obscure command lines.
4024 # This happens at least with the AIX C compiler.
4026 for i in 1 2 3 4 5 6; do
4027 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4030 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4034 # after this tag, mechanisms are not by side-effect, so they'll
4035 # only be used when explicitly requested
4036 if test "x$enable_dependency_tracking" = xyes; then
4044 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4045 # mode. It turns out that the SunPro C++ compiler does not properly
4046 # handle `-M -o', and we need to detect this.
4047 if depmode=$depmode \
4048 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4049 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4050 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4051 >/dev/null 2>conftest.err &&
4052 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4053 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4054 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4055 # icc doesn't choke on unknown options, it will just issue warnings
4056 # (even with -Werror). So we grep stderr for any message
4057 # that says an option was ignored.
4058 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
4059 am_cv_CC_dependencies_compiler_type=$depmode
4068 am_cv_CC_dependencies_compiler_type=none
4072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4073 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4074 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4079 test "x$enable_dependency_tracking" != xno \
4080 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4082 am__fastdepCC_FALSE='#'
4084 am__fastdepCC_TRUE='#'
4085 am__fastdepCC_FALSE=
4090 if test "$GCC" = yes
4096 CPPFLAGS="$CPPFLAGS -mno-cygwin"
4097 LDFLAGS="$LDFLAGS -mno-cygwin"
4105 @%:@ Check whether --enable-shared was given.
4106 if test "${enable_shared+set}" = set; then :
4107 enableval=$enable_shared; p=${PACKAGE-default}
4109 yes) enable_shared=yes ;;
4110 no) enable_shared=no ;;
4113 # Look at the argument we got. We use all the common list separators.
4114 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4115 for pkg in $enableval; do
4117 if test "X$pkg" = "X$p"; then
4129 @%:@ Check whether --enable-static was given.
4130 if test "${enable_static+set}" = set; then :
4131 enableval=$enable_static; p=${PACKAGE-default}
4133 yes) enable_static=yes ;;
4134 no) enable_static=no ;;
4137 # Look at the argument we got. We use all the common list separators.
4138 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4139 for pkg in $enableval; do
4141 if test "X$pkg" = "X$p"; then
4153 @%:@ Check whether --enable-fast-install was given.
4154 if test "${enable_fast_install+set}" = set; then :
4155 enableval=$enable_fast_install; p=${PACKAGE-default}
4157 yes) enable_fast_install=yes ;;
4158 no) enable_fast_install=no ;;
4160 enable_fast_install=no
4161 # Look at the argument we got. We use all the common list separators.
4162 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4163 for pkg in $enableval; do
4165 if test "X$pkg" = "X$p"; then
4166 enable_fast_install=yes
4173 enable_fast_install=yes
4177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4178 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4179 if ${lt_cv_path_SED+:} false; then :
4180 $as_echo_n "(cached) " >&6
4182 # Loop through the user's path and test for sed and gsed.
4183 # Then use that list of sed's as ones to test for truncation.
4184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4188 test -z "$as_dir" && as_dir=.
4189 for lt_ac_prog in sed gsed; do
4190 for ac_exec_ext in '' $ac_executable_extensions; do
4191 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4192 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4199 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4200 # along with /bin/sed that truncates output.
4201 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4202 test ! -f $lt_ac_sed && break
4203 cat /dev/null > conftest.in
4205 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4206 # Check for GNU sed and select it if it is found.
4207 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4208 lt_cv_path_SED=$lt_ac_sed
4212 cat conftest.in conftest.in >conftest.tmp
4213 mv conftest.tmp conftest.in
4214 cp conftest.in conftest.nl
4216 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4217 cmp -s conftest.out conftest.nl || break
4218 # 10000 chars as input seems more than enough
4219 test $lt_ac_count -gt 10 && break
4220 lt_ac_count=`expr $lt_ac_count + 1`
4221 if test $lt_ac_count -gt $lt_ac_max; then
4222 lt_ac_max=$lt_ac_count
4223 lt_cv_path_SED=$lt_ac_sed
4231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
4232 $as_echo "$SED" >&6; }
4234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4235 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4236 if ${ac_cv_path_GREP+:} false; then :
4237 $as_echo_n "(cached) " >&6
4239 if test -z "$GREP"; then
4240 ac_path_GREP_found=false
4241 # Loop through the user's path and test for each of PROGNAME-LIST
4242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4243 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4246 test -z "$as_dir" && as_dir=.
4247 for ac_prog in grep ggrep; do
4248 for ac_exec_ext in '' $ac_executable_extensions; do
4249 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4250 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4251 # Check for GNU ac_path_GREP and select it if it is found.
4252 # Check for GNU $ac_path_GREP
4253 case `"$ac_path_GREP" --version 2>&1` in
4255 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4258 $as_echo_n 0123456789 >"conftest.in"
4261 cat "conftest.in" "conftest.in" >"conftest.tmp"
4262 mv "conftest.tmp" "conftest.in"
4263 cp "conftest.in" "conftest.nl"
4264 $as_echo 'GREP' >> "conftest.nl"
4265 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4266 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4267 as_fn_arith $ac_count + 1 && ac_count=$as_val
4268 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4269 # Best one so far, save it but keep looking for a better one
4270 ac_cv_path_GREP="$ac_path_GREP"
4271 ac_path_GREP_max=$ac_count
4273 # 10*(2^10) chars as input seems more than enough
4274 test $ac_count -gt 10 && break
4276 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4279 $ac_path_GREP_found && break 3
4284 if test -z "$ac_cv_path_GREP"; then
4285 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4288 ac_cv_path_GREP=$GREP
4292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4293 $as_echo "$ac_cv_path_GREP" >&6; }
4294 GREP="$ac_cv_path_GREP"
4297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4298 $as_echo_n "checking for egrep... " >&6; }
4299 if ${ac_cv_path_EGREP+:} false; then :
4300 $as_echo_n "(cached) " >&6
4302 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4303 then ac_cv_path_EGREP="$GREP -E"
4305 if test -z "$EGREP"; then
4306 ac_path_EGREP_found=false
4307 # Loop through the user's path and test for each of PROGNAME-LIST
4308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4309 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4312 test -z "$as_dir" && as_dir=.
4313 for ac_prog in egrep; do
4314 for ac_exec_ext in '' $ac_executable_extensions; do
4315 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4316 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4317 # Check for GNU ac_path_EGREP and select it if it is found.
4318 # Check for GNU $ac_path_EGREP
4319 case `"$ac_path_EGREP" --version 2>&1` in
4321 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4324 $as_echo_n 0123456789 >"conftest.in"
4327 cat "conftest.in" "conftest.in" >"conftest.tmp"
4328 mv "conftest.tmp" "conftest.in"
4329 cp "conftest.in" "conftest.nl"
4330 $as_echo 'EGREP' >> "conftest.nl"
4331 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4332 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4333 as_fn_arith $ac_count + 1 && ac_count=$as_val
4334 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4335 # Best one so far, save it but keep looking for a better one
4336 ac_cv_path_EGREP="$ac_path_EGREP"
4337 ac_path_EGREP_max=$ac_count
4339 # 10*(2^10) chars as input seems more than enough
4340 test $ac_count -gt 10 && break
4342 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4345 $ac_path_EGREP_found && break 3
4350 if test -z "$ac_cv_path_EGREP"; then
4351 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4354 ac_cv_path_EGREP=$EGREP
4359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4360 $as_echo "$ac_cv_path_EGREP" >&6; }
4361 EGREP="$ac_cv_path_EGREP"
4365 @%:@ Check whether --with-gnu-ld was given.
4366 if test "${with_gnu_ld+set}" = set; then :
4367 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4373 if test "$GCC" = yes; then
4374 # Check if gcc -print-prog-name=ld gives a path.
4375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4376 $as_echo_n "checking for ld used by $CC... " >&6; }
4379 # gcc leaves a trailing carriage return which upsets mingw
4380 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4382 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4385 # Accept absolute paths.
4387 re_direlt='/[^/][^/]*/\.\./'
4388 # Canonicalize the pathname of ld
4389 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4390 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4391 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4393 test -z "$LD" && LD="$ac_prog"
4396 # If it fails, then pretend we aren't using GCC.
4400 # If it is relative, then search for the first ld in PATH.
4404 elif test "$with_gnu_ld" = yes; then
4405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4406 $as_echo_n "checking for GNU ld... " >&6; }
4408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4409 $as_echo_n "checking for non-GNU ld... " >&6; }
4411 if ${lt_cv_path_LD+:} false; then :
4412 $as_echo_n "(cached) " >&6
4414 if test -z "$LD"; then
4415 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4416 for ac_dir in $PATH; do
4418 test -z "$ac_dir" && ac_dir=.
4419 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4420 lt_cv_path_LD="$ac_dir/$ac_prog"
4421 # Check to see if the program is GNU ld. I'd rather use --version,
4422 # but apparently some GNU ld's only accept -v.
4423 # Break only if it was the GNU/non-GNU ld that we prefer.
4424 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4425 *GNU* | *'with BFD'*)
4426 test "$with_gnu_ld" != no && break
4429 test "$with_gnu_ld" != yes && break
4436 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4441 if test -n "$LD"; then
4442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4443 $as_echo "$LD" >&6; }
4445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4446 $as_echo "no" >&6; }
4448 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4450 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4451 if ${lt_cv_prog_gnu_ld+:} false; then :
4452 $as_echo_n "(cached) " >&6
4454 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4455 case `$LD -v 2>&1 </dev/null` in
4456 *GNU* | *'with BFD'*)
4457 lt_cv_prog_gnu_ld=yes
4460 lt_cv_prog_gnu_ld=no
4464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4465 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4466 with_gnu_ld=$lt_cv_prog_gnu_ld
4469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4470 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4471 if ${lt_cv_ld_reload_flag+:} false; then :
4472 $as_echo_n "(cached) " >&6
4474 lt_cv_ld_reload_flag='-r'
4476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4477 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4478 reload_flag=$lt_cv_ld_reload_flag
4479 case $reload_flag in
4481 *) reload_flag=" $reload_flag" ;;
4483 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD-compatible nm" >&5
4486 $as_echo_n "checking for BSD-compatible nm... " >&6; }
4487 if ${lt_cv_path_NM+:} false; then :
4488 $as_echo_n "(cached) " >&6
4490 if test -n "$NM"; then
4491 # Let the user override the test.
4494 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4495 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
4497 test -z "$ac_dir" && ac_dir=.
4498 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
4499 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4500 # Check to see if the nm accepts a BSD-compat flag.
4501 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4502 # nm: unknown option "B" ignored
4503 # Tru64's nm complains that /dev/null is an invalid object file
4504 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4505 */dev/null* | *'Invalid file or object type'*)
4506 lt_cv_path_NM="$tmp_nm -B"
4510 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4512 lt_cv_path_NM="$tmp_nm -p"
4516 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4517 continue # so that we can try to find one that supports BSD flags
4524 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4528 $as_echo "$lt_cv_path_NM" >&6; }
4531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4532 $as_echo_n "checking whether ln -s works... " >&6; }
4534 if test "$LN_S" = "ln -s"; then
4535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4536 $as_echo "yes" >&6; }
4538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4539 $as_echo "no, using $LN_S" >&6; }
4542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognise dependent libraries" >&5
4543 $as_echo_n "checking how to recognise dependent libraries... " >&6; }
4544 if ${lt_cv_deplibs_check_method+:} false; then :
4545 $as_echo_n "(cached) " >&6
4547 lt_cv_file_magic_cmd='$MAGIC_CMD'
4548 lt_cv_file_magic_test_file=
4549 lt_cv_deplibs_check_method='unknown'
4550 # Need to set the preceding variable on all platforms that support
4551 # interlibrary dependencies.
4552 # 'none' -- dependencies not supported.
4553 # `unknown' -- same as none, but documents that we really don't know.
4554 # 'pass_all' -- all dependencies passed with no checks.
4555 # 'test_compile' -- check by making test program.
4556 # 'file_magic [[regex]]' -- check by looking for files in library path
4557 # which responds to the $file_magic_cmd with a given extended regex.
4558 # If you have `file' or equivalent on your system and you're not sure
4559 # whether `pass_all' will *always* work, you probably want this one.
4563 lt_cv_deplibs_check_method=pass_all
4567 lt_cv_deplibs_check_method=pass_all
4571 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4572 lt_cv_file_magic_cmd='/usr/bin/file -L'
4573 lt_cv_file_magic_test_file=/shlib/libc.so
4577 # win32_libid is a shell function defined in ltmain.sh
4578 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4579 lt_cv_file_magic_cmd='win32_libid'
4583 # Base MSYS/MinGW do not provide the 'file' command needed by
4584 # win32_libid shell function, so use a weaker test based on 'objdump'.
4585 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4586 lt_cv_file_magic_cmd='$OBJDUMP -f'
4589 darwin* | rhapsody*)
4590 lt_cv_deplibs_check_method=pass_all
4593 freebsd* | kfreebsd*-gnu)
4594 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4597 # Not sure whether the presence of OpenBSD here was a mistake.
4598 # Let's accept both of them until this is cleared up.
4599 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4600 lt_cv_file_magic_cmd=/usr/bin/file
4601 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4605 lt_cv_deplibs_check_method=pass_all
4610 lt_cv_deplibs_check_method=pass_all
4613 hpux10.20* | hpux11*)
4614 lt_cv_file_magic_cmd=/usr/bin/file
4617 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4618 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4621 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
4622 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4625 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4626 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4631 irix5* | irix6* | nonstopux*)
4633 *-32|*"-32 ") libmagic=32-bit;;
4634 *-n32|*"-n32 ") libmagic=N32;;
4635 *-64|*"-64 ") libmagic=64-bit;;
4636 *) libmagic=never-match;;
4638 lt_cv_deplibs_check_method=pass_all
4641 # This must be Linux ELF.
4643 lt_cv_deplibs_check_method=pass_all
4646 netbsd* | knetbsd*-gnu)
4647 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4648 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4650 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4655 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4656 lt_cv_file_magic_cmd=/usr/bin/file
4657 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4661 lt_cv_deplibs_check_method=unknown
4665 lt_cv_file_magic_cmd=/usr/bin/file
4666 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4667 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4668 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
4670 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
4674 osf3* | osf4* | osf5*)
4675 lt_cv_deplibs_check_method=pass_all
4679 lt_cv_deplibs_check_method=pass_all
4683 lt_cv_deplibs_check_method=pass_all
4686 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4687 case $host_vendor in
4689 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]'
4690 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4693 lt_cv_deplibs_check_method=pass_all
4696 lt_cv_file_magic_cmd='/bin/file'
4697 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4700 lt_cv_file_magic_cmd='/bin/file'
4701 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4702 lt_cv_file_magic_test_file=/lib/libc.so
4705 lt_cv_deplibs_check_method=pass_all
4710 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4711 lt_cv_deplibs_check_method=pass_all
4716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
4717 $as_echo "$lt_cv_deplibs_check_method" >&6; }
4718 file_magic_cmd=$lt_cv_file_magic_cmd
4719 deplibs_check_method=$lt_cv_deplibs_check_method
4720 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4725 # If no C compiler was specified, use CC.
4728 # Allow CC to be a program name with arguments.
4732 @%:@ Check whether --enable-libtool-lock was given.
4733 if test "${enable_libtool_lock+set}" = set; then :
4734 enableval=$enable_libtool_lock;
4737 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4739 # Some flags need to be propagated to the compiler or linker for good
4743 # Find out which ABI we are using.
4744 echo 'int i;' > conftest.$ac_ext
4745 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
4746 (eval $ac_compile) 2>&5
4748 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4749 test $ac_status = 0; }; then
4750 case `/usr/bin/file conftest.$ac_objext` in
4762 # Find out which ABI we are using.
4763 echo '#line __oline__ "configure"' > conftest.$ac_ext
4764 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
4765 (eval $ac_compile) 2>&5
4767 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4768 test $ac_status = 0; }; then
4769 if test "$lt_cv_prog_gnu_ld" = yes; then
4770 case `/usr/bin/file conftest.$ac_objext` in
4772 LD="${LD-ld} -melf32bsmip"
4775 LD="${LD-ld} -melf32bmipn32"
4778 LD="${LD-ld} -melf64bmip"
4782 case `/usr/bin/file conftest.$ac_objext` in
4798 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4799 # Find out which ABI we are using.
4800 echo 'int i;' > conftest.$ac_ext
4801 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
4802 (eval $ac_compile) 2>&5
4804 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4805 test $ac_status = 0; }; then
4806 case "`/usr/bin/file conftest.o`" in
4810 LD="${LD-ld} -m elf_i386"
4812 ppc64-*linux*|powerpc64-*linux*)
4813 LD="${LD-ld} -m elf32ppclinux"
4816 LD="${LD-ld} -m elf_s390"
4819 LD="${LD-ld} -m elf32_sparc"
4826 LD="${LD-ld} -m elf_x86_64"
4828 ppc*-*linux*|powerpc*-*linux*)
4829 LD="${LD-ld} -m elf64ppc"
4832 LD="${LD-ld} -m elf64_s390"
4835 LD="${LD-ld} -m elf64_sparc"
4845 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4846 SAVE_CFLAGS="$CFLAGS"
4847 CFLAGS="$CFLAGS -belf"
4848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
4849 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
4850 if ${lt_cv_cc_needs_belf+:} false; then :
4851 $as_echo_n "(cached) " >&6
4854 ac_cpp='$CPP $CPPFLAGS'
4855 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4856 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4857 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4860 /* end confdefs.h. */
4870 if ac_fn_c_try_link "$LINENO"; then :
4871 lt_cv_cc_needs_belf=yes
4873 lt_cv_cc_needs_belf=no
4875 rm -f core conftest.err conftest.$ac_objext \
4876 conftest$ac_exeext conftest.$ac_ext
4878 ac_cpp='$CPP $CPPFLAGS'
4879 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4880 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4881 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
4885 $as_echo "$lt_cv_cc_needs_belf" >&6; }
4886 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4887 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4888 CFLAGS="$SAVE_CFLAGS"
4894 need_locks="$enable_libtool_lock"
4898 ac_cpp='$CPP $CPPFLAGS'
4899 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4900 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4901 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4903 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4904 # On Suns, sometimes $CPP names a directory.
4905 if test -n "$CPP" && test -d "$CPP"; then
4908 if test -z "$CPP"; then
4909 if ${ac_cv_prog_CPP+:} false; then :
4910 $as_echo_n "(cached) " >&6
4912 # Double quotes because CPP needs to be expanded
4913 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4916 for ac_c_preproc_warn_flag in '' yes
4918 # Use a header file that comes with gcc, so configuring glibc
4919 # with a fresh cross-compiler works.
4920 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4921 # <limits.h> exists even on freestanding compilers.
4922 # On the NeXT, cc -E runs the code through the compiler's parser,
4923 # not just through cpp. "Syntax error" is here to catch this case.
4924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4925 /* end confdefs.h. */
4927 @%:@ include <limits.h>
4929 @%:@ include <assert.h>
4933 if ac_fn_c_try_cpp "$LINENO"; then :
4936 # Broken: fails on valid input.
4939 rm -f conftest.err conftest.i conftest.$ac_ext
4941 # OK, works on sane cases. Now check whether nonexistent headers
4942 # can be detected and how.
4943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4944 /* end confdefs.h. */
4945 @%:@include <ac_nonexistent.h>
4947 if ac_fn_c_try_cpp "$LINENO"; then :
4948 # Broken: success on invalid input.
4951 # Passes both tests.
4955 rm -f conftest.err conftest.i conftest.$ac_ext
4958 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4959 rm -f conftest.i conftest.err conftest.$ac_ext
4960 if $ac_preproc_ok; then :
4972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4973 $as_echo "$CPP" >&6; }
4975 for ac_c_preproc_warn_flag in '' yes
4977 # Use a header file that comes with gcc, so configuring glibc
4978 # with a fresh cross-compiler works.
4979 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4980 # <limits.h> exists even on freestanding compilers.
4981 # On the NeXT, cc -E runs the code through the compiler's parser,
4982 # not just through cpp. "Syntax error" is here to catch this case.
4983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4984 /* end confdefs.h. */
4986 @%:@ include <limits.h>
4988 @%:@ include <assert.h>
4992 if ac_fn_c_try_cpp "$LINENO"; then :
4995 # Broken: fails on valid input.
4998 rm -f conftest.err conftest.i conftest.$ac_ext
5000 # OK, works on sane cases. Now check whether nonexistent headers
5001 # can be detected and how.
5002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5003 /* end confdefs.h. */
5004 @%:@include <ac_nonexistent.h>
5006 if ac_fn_c_try_cpp "$LINENO"; then :
5007 # Broken: success on invalid input.
5010 # Passes both tests.
5014 rm -f conftest.err conftest.i conftest.$ac_ext
5017 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5018 rm -f conftest.i conftest.err conftest.$ac_ext
5019 if $ac_preproc_ok; then :
5022 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5023 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5024 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5025 See \`config.log' for more details" "$LINENO" 5; }
5029 ac_cpp='$CPP $CPPFLAGS'
5030 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5031 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5032 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5036 $as_echo_n "checking for ANSI C header files... " >&6; }
5037 if ${ac_cv_header_stdc+:} false; then :
5038 $as_echo_n "(cached) " >&6
5040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5041 /* end confdefs.h. */
5055 if ac_fn_c_try_compile "$LINENO"; then :
5056 ac_cv_header_stdc=yes
5058 ac_cv_header_stdc=no
5060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5062 if test $ac_cv_header_stdc = yes; then
5063 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5065 /* end confdefs.h. */
5069 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5070 $EGREP "memchr" >/dev/null 2>&1; then :
5073 ac_cv_header_stdc=no
5079 if test $ac_cv_header_stdc = yes; then
5080 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5082 /* end confdefs.h. */
5086 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5087 $EGREP "free" >/dev/null 2>&1; then :
5090 ac_cv_header_stdc=no
5096 if test $ac_cv_header_stdc = yes; then
5097 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5098 if test "$cross_compiling" = yes; then :
5101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5102 /* end confdefs.h. */
5105 #if ((' ' & 0x0FF) == 0x020)
5106 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5107 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5109 # define ISLOWER(c) \
5110 (('a' <= (c) && (c) <= 'i') \
5111 || ('j' <= (c) && (c) <= 'r') \
5112 || ('s' <= (c) && (c) <= 'z'))
5113 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5116 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5121 for (i = 0; i < 256; i++)
5122 if (XOR (islower (i), ISLOWER (i))
5123 || toupper (i) != TOUPPER (i))
5128 if ac_fn_c_try_run "$LINENO"; then :
5131 ac_cv_header_stdc=no
5133 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5134 conftest.$ac_objext conftest.beam conftest.$ac_ext
5139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5140 $as_echo "$ac_cv_header_stdc" >&6; }
5141 if test $ac_cv_header_stdc = yes; then
5143 $as_echo "@%:@define STDC_HEADERS 1" >>confdefs.h
5147 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5148 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5149 inttypes.h stdint.h unistd.h
5151 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5152 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5154 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5155 cat >>confdefs.h <<_ACEOF
5156 @%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5164 for ac_header in dlfcn.h
5166 ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
5167 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
5168 cat >>confdefs.h <<_ACEOF
5169 @%:@define HAVE_DLFCN_H 1
5177 ac_cpp='$CXXCPP $CPPFLAGS'
5178 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5179 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5180 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5181 if test -z "$CXX"; then
5182 if test -n "$CCC"; then
5185 if test -n "$ac_tool_prefix"; then
5186 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5188 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5189 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5191 $as_echo_n "checking for $ac_word... " >&6; }
5192 if ${ac_cv_prog_CXX+:} false; then :
5193 $as_echo_n "(cached) " >&6
5195 if test -n "$CXX"; then
5196 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5202 test -z "$as_dir" && as_dir=.
5203 for ac_exec_ext in '' $ac_executable_extensions; do
5204 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5205 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5206 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5216 if test -n "$CXX"; then
5217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5218 $as_echo "$CXX" >&6; }
5220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5221 $as_echo "no" >&6; }
5225 test -n "$CXX" && break
5228 if test -z "$CXX"; then
5230 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5232 # Extract the first word of "$ac_prog", so it can be a program name with args.
5233 set dummy $ac_prog; ac_word=$2
5234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5235 $as_echo_n "checking for $ac_word... " >&6; }
5236 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5237 $as_echo_n "(cached) " >&6
5239 if test -n "$ac_ct_CXX"; then
5240 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5246 test -z "$as_dir" && as_dir=.
5247 for ac_exec_ext in '' $ac_executable_extensions; do
5248 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5249 ac_cv_prog_ac_ct_CXX="$ac_prog"
5250 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5259 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5260 if test -n "$ac_ct_CXX"; then
5261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5262 $as_echo "$ac_ct_CXX" >&6; }
5264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5265 $as_echo "no" >&6; }
5269 test -n "$ac_ct_CXX" && break
5272 if test "x$ac_ct_CXX" = x; then
5275 case $cross_compiling:$ac_tool_warned in
5277 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5278 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5279 ac_tool_warned=yes ;;
5287 # Provide some information about the compiler.
5288 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5291 for ac_option in --version -v -V -qversion; do
5292 { { ac_try="$ac_compiler $ac_option >&5"
5294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5295 *) ac_try_echo=$ac_try;;
5297 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5298 $as_echo "$ac_try_echo"; } >&5
5299 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5301 if test -s conftest.err; then
5303 ... rest of stderr output deleted ...
5304 10q' conftest.err >conftest.er1
5305 cat conftest.er1 >&5
5307 rm -f conftest.er1 conftest.err
5308 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5309 test $ac_status = 0; }
5312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5313 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5314 if ${ac_cv_cxx_compiler_gnu+:} false; then :
5315 $as_echo_n "(cached) " >&6
5317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5318 /* end confdefs.h. */
5331 if ac_fn_cxx_try_compile "$LINENO"; then :
5336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5337 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5341 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5342 if test $ac_compiler_gnu = yes; then
5347 ac_test_CXXFLAGS=${CXXFLAGS+set}
5348 ac_save_CXXFLAGS=$CXXFLAGS
5349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5350 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5351 if ${ac_cv_prog_cxx_g+:} false; then :
5352 $as_echo_n "(cached) " >&6
5354 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5355 ac_cxx_werror_flag=yes
5358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5359 /* end confdefs.h. */
5369 if ac_fn_cxx_try_compile "$LINENO"; then :
5370 ac_cv_prog_cxx_g=yes
5373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5374 /* end confdefs.h. */
5384 if ac_fn_cxx_try_compile "$LINENO"; then :
5387 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5390 /* end confdefs.h. */
5400 if ac_fn_cxx_try_compile "$LINENO"; then :
5401 ac_cv_prog_cxx_g=yes
5403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5408 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5411 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5412 if test "$ac_test_CXXFLAGS" = set; then
5413 CXXFLAGS=$ac_save_CXXFLAGS
5414 elif test $ac_cv_prog_cxx_g = yes; then
5415 if test "$GXX" = yes; then
5421 if test "$GXX" = yes; then
5428 ac_cpp='$CXXCPP $CPPFLAGS'
5429 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5430 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5431 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5433 depcc="$CXX" am_compiler_list=
5435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5436 $as_echo_n "checking dependency style of $depcc... " >&6; }
5437 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
5438 $as_echo_n "(cached) " >&6
5440 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5441 # We make a subdir and do the tests there. Otherwise we can end up
5442 # making bogus files that we don't know about and never remove. For
5443 # instance it was reported that on HP-UX the gcc test will end up
5444 # making a dummy file named `D' -- because `-MD' means `put the output
5447 # Copy depcomp to subdir because otherwise we won't find it if we're
5448 # using a relative directory.
5449 cp "$am_depcomp" conftest.dir
5451 # We will build objects and dependencies in a subdirectory because
5452 # it helps to detect inapplicable dependency modes. For instance
5453 # both Tru64's cc and ICC support -MD to output dependencies as a
5454 # side effect of compilation, but ICC will put the dependencies in
5455 # the current directory while Tru64 will put them in the object
5459 am_cv_CXX_dependencies_compiler_type=none
5460 if test "$am_compiler_list" = ""; then
5461 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5463 for depmode in $am_compiler_list; do
5464 # Setup a source with many dependencies, because some compilers
5465 # like to wrap large dependency lists on column 80 (with \), and
5466 # we should not choose a depcomp mode which is confused by this.
5468 # We need to recreate these files for each test, as the compiler may
5469 # overwrite some of them when testing with obscure command lines.
5470 # This happens at least with the AIX C compiler.
5472 for i in 1 2 3 4 5 6; do
5473 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5476 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5480 # after this tag, mechanisms are not by side-effect, so they'll
5481 # only be used when explicitly requested
5482 if test "x$enable_dependency_tracking" = xyes; then
5490 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5491 # mode. It turns out that the SunPro C++ compiler does not properly
5492 # handle `-M -o', and we need to detect this.
5493 if depmode=$depmode \
5494 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5495 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5496 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5497 >/dev/null 2>conftest.err &&
5498 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5499 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5500 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5501 # icc doesn't choke on unknown options, it will just issue warnings
5502 # (even with -Werror). So we grep stderr for any message
5503 # that says an option was ignored.
5504 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
5505 am_cv_CXX_dependencies_compiler_type=$depmode
5514 am_cv_CXX_dependencies_compiler_type=none
5518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5519 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5520 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5525 test "x$enable_dependency_tracking" != xno \
5526 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5527 am__fastdepCXX_TRUE=
5528 am__fastdepCXX_FALSE='#'
5530 am__fastdepCXX_TRUE='#'
5531 am__fastdepCXX_FALSE=
5536 ac_cpp='$CXXCPP $CPPFLAGS'
5537 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5538 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5539 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
5541 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5542 if test -z "$CXXCPP"; then
5543 if ${ac_cv_prog_CXXCPP+:} false; then :
5544 $as_echo_n "(cached) " >&6
5546 # Double quotes because CXXCPP needs to be expanded
5547 for CXXCPP in "$CXX -E" "/lib/cpp"
5550 for ac_cxx_preproc_warn_flag in '' yes
5552 # Use a header file that comes with gcc, so configuring glibc
5553 # with a fresh cross-compiler works.
5554 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5555 # <limits.h> exists even on freestanding compilers.
5556 # On the NeXT, cc -E runs the code through the compiler's parser,
5557 # not just through cpp. "Syntax error" is here to catch this case.
5558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5559 /* end confdefs.h. */
5561 @%:@ include <limits.h>
5563 @%:@ include <assert.h>
5567 if ac_fn_cxx_try_cpp "$LINENO"; then :
5570 # Broken: fails on valid input.
5573 rm -f conftest.err conftest.i conftest.$ac_ext
5575 # OK, works on sane cases. Now check whether nonexistent headers
5576 # can be detected and how.
5577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5578 /* end confdefs.h. */
5579 @%:@include <ac_nonexistent.h>
5581 if ac_fn_cxx_try_cpp "$LINENO"; then :
5582 # Broken: success on invalid input.
5585 # Passes both tests.
5589 rm -f conftest.err conftest.i conftest.$ac_ext
5592 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5593 rm -f conftest.i conftest.err conftest.$ac_ext
5594 if $ac_preproc_ok; then :
5599 ac_cv_prog_CXXCPP=$CXXCPP
5602 CXXCPP=$ac_cv_prog_CXXCPP
5604 ac_cv_prog_CXXCPP=$CXXCPP
5606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
5607 $as_echo "$CXXCPP" >&6; }
5609 for ac_cxx_preproc_warn_flag in '' yes
5611 # Use a header file that comes with gcc, so configuring glibc
5612 # with a fresh cross-compiler works.
5613 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5614 # <limits.h> exists even on freestanding compilers.
5615 # On the NeXT, cc -E runs the code through the compiler's parser,
5616 # not just through cpp. "Syntax error" is here to catch this case.
5617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5618 /* end confdefs.h. */
5620 @%:@ include <limits.h>
5622 @%:@ include <assert.h>
5626 if ac_fn_cxx_try_cpp "$LINENO"; then :
5629 # Broken: fails on valid input.
5632 rm -f conftest.err conftest.i conftest.$ac_ext
5634 # OK, works on sane cases. Now check whether nonexistent headers
5635 # can be detected and how.
5636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5637 /* end confdefs.h. */
5638 @%:@include <ac_nonexistent.h>
5640 if ac_fn_cxx_try_cpp "$LINENO"; then :
5641 # Broken: success on invalid input.
5644 # Passes both tests.
5648 rm -f conftest.err conftest.i conftest.$ac_ext
5651 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5652 rm -f conftest.i conftest.err conftest.$ac_ext
5653 if $ac_preproc_ok; then :
5656 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5657 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5658 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
5659 See \`config.log' for more details" "$LINENO" 5; }
5663 ac_cpp='$CXXCPP $CPPFLAGS'
5664 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5665 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5666 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5670 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5671 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5672 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5673 if test -n "$ac_tool_prefix"; then
5674 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgfortran pgf95 lf95 ftn
5676 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5677 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5679 $as_echo_n "checking for $ac_word... " >&6; }
5680 if ${ac_cv_prog_F77+:} false; then :
5681 $as_echo_n "(cached) " >&6
5683 if test -n "$F77"; then
5684 ac_cv_prog_F77="$F77" # Let the user override the test.
5686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5690 test -z "$as_dir" && as_dir=.
5691 for ac_exec_ext in '' $ac_executable_extensions; do
5692 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5693 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5704 if test -n "$F77"; then
5705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
5706 $as_echo "$F77" >&6; }
5708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5709 $as_echo "no" >&6; }
5713 test -n "$F77" && break
5716 if test -z "$F77"; then
5718 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgfortran pgf95 lf95 ftn
5720 # Extract the first word of "$ac_prog", so it can be a program name with args.
5721 set dummy $ac_prog; ac_word=$2
5722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5723 $as_echo_n "checking for $ac_word... " >&6; }
5724 if ${ac_cv_prog_ac_ct_F77+:} false; then :
5725 $as_echo_n "(cached) " >&6
5727 if test -n "$ac_ct_F77"; then
5728 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5734 test -z "$as_dir" && as_dir=.
5735 for ac_exec_ext in '' $ac_executable_extensions; do
5736 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5737 ac_cv_prog_ac_ct_F77="$ac_prog"
5738 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5747 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5748 if test -n "$ac_ct_F77"; then
5749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
5750 $as_echo "$ac_ct_F77" >&6; }
5752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5753 $as_echo "no" >&6; }
5757 test -n "$ac_ct_F77" && break
5760 if test "x$ac_ct_F77" = x; then
5763 case $cross_compiling:$ac_tool_warned in
5765 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5766 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5767 ac_tool_warned=yes ;;
5774 # Provide some information about the compiler.
5775 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
5778 for ac_option in --version -v -V -qversion; do
5779 { { ac_try="$ac_compiler $ac_option >&5"
5781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5782 *) ac_try_echo=$ac_try;;
5784 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5785 $as_echo "$ac_try_echo"; } >&5
5786 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5788 if test -s conftest.err; then
5790 ... rest of stderr output deleted ...
5791 10q' conftest.err >conftest.er1
5792 cat conftest.er1 >&5
5794 rm -f conftest.er1 conftest.err
5795 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5796 test $ac_status = 0; }
5800 # If we don't use `.F' as extension, the preprocessor is not run on the
5801 # input file. (Note that this only needs to work for GNU compilers.)
5804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
5805 $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
5806 if ${ac_cv_f77_compiler_gnu+:} false; then :
5807 $as_echo_n "(cached) " >&6
5809 cat > conftest.$ac_ext <<_ACEOF
5817 if ac_fn_f77_try_compile "$LINENO"; then :
5822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5823 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
5827 $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
5829 ac_test_FFLAGS=${FFLAGS+set}
5830 ac_save_FFLAGS=$FFLAGS
5832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
5833 $as_echo_n "checking whether $F77 accepts -g... " >&6; }
5834 if ${ac_cv_prog_f77_g+:} false; then :
5835 $as_echo_n "(cached) " >&6
5838 cat > conftest.$ac_ext <<_ACEOF
5843 if ac_fn_f77_try_compile "$LINENO"; then :
5844 ac_cv_prog_f77_g=yes
5848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
5852 $as_echo "$ac_cv_prog_f77_g" >&6; }
5853 if test "$ac_test_FFLAGS" = set; then
5854 FFLAGS=$ac_save_FFLAGS
5855 elif test $ac_cv_prog_f77_g = yes; then
5856 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5862 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5869 if test $ac_compiler_gnu = yes; then
5875 ac_cpp='$CPP $CPPFLAGS'
5876 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5877 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5878 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5882 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5884 # find the maximum length of command line arguments
5885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5886 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5887 if ${lt_cv_sys_max_cmd_len+:} false; then :
5888 $as_echo_n "(cached) " >&6
5895 # On DJGPP, this test can blow up pretty badly due to problems in libc
5896 # (any single argument exceeding 2000 bytes causes a buffer overrun
5897 # during glob expansion). Even if it were fixed, the result of this
5898 # check would be larger than it should be.
5899 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5903 # Under GNU Hurd, this test is not required because there is
5904 # no limit to the length of command line arguments.
5905 # Libtool will interpret -1 as no limit whatsoever
5906 lt_cv_sys_max_cmd_len=-1;
5910 # On Win9x/ME, this test blows up -- it succeeds, but takes
5911 # about 5 minutes as the teststring grows exponentially.
5912 # Worse, since 9x/ME are not pre-emptively multitasking,
5913 # you end up with a "frozen" computer, even though with patience
5914 # the test eventually succeeds (with a max line length of 256k).
5915 # Instead, let's just punt: use the minimum linelength reported by
5916 # all of the supported platforms: 8192 (on NT/2K/XP).
5917 lt_cv_sys_max_cmd_len=8192;
5921 # On AmigaOS with pdksh, this test takes hours, literally.
5922 # So we just punt and use a minimum line length of 8192.
5923 lt_cv_sys_max_cmd_len=8192;
5927 # If test is not a shell built-in, we'll probably end up computing a
5928 # maximum length that is only half of the actual maximum length, but
5930 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
5931 = "XX$testring") >/dev/null 2>&1 &&
5932 new_result=`expr "X$testring" : ".*" 2>&1` &&
5933 lt_cv_sys_max_cmd_len=$new_result &&
5934 test $i != 17 # 1/2 MB should be enough
5937 testring=$testring$testring
5940 # Add a significant safety factor because C++ compilers can tack on massive
5941 # amounts of additional arguments before passing them to the linker.
5942 # It appears as though 1/2 is a usable value.
5943 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5949 if test -n $lt_cv_sys_max_cmd_len ; then
5950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5951 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5954 $as_echo "none" >&6; }
5960 # Check for command to grab the raw symbol name followed by C symbol from nm.
5961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5962 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5963 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5964 $as_echo_n "(cached) " >&6
5967 # These are sane defaults that work on at least a few old systems.
5968 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5970 # Character class describing NM global symbol codes.
5971 symcode='[BCDEGRST]'
5973 # Regexp to match symbols that can be accessed directly from C.
5974 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5976 # Transform the above into a raw symbol and a C symbol.
5977 symxfrm='\1 \2\3 \3'
5979 # Transform an extracted symbol line into a proper C declaration
5980 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5982 # Transform an extracted symbol line into symbol name and symbol address
5983 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
5985 # Define system-specific variables.
5990 cygwin* | mingw* | pw32*)
5991 symcode='[ABCDGISTW]'
5993 hpux*) # Its linker distinguishes data from code symbols
5994 if test "$host_cpu" = ia64; then
5995 symcode='[ABCDEGRST]'
5997 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5998 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
6001 symcode='[BCDEGRST]'
6004 symcode='[BCDEGQRST]'
6014 # Handle CRLF in mingw tool chain
6018 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6022 # If we're using GNU nm, then use its standard symbol codes.
6023 case `$NM -V 2>&1` in
6024 *GNU* | *'with BFD'*)
6025 symcode='[ABCDGIRSTW]' ;;
6028 # Try without a prefix undercore, then with it.
6029 for ac_symprfx in "" "_"; do
6031 # Write the raw and C identifiers.
6032 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
6034 # Check to see that the pipe works correctly.
6038 cat > conftest.$ac_ext <<EOF
6043 void nm_test_func(){}
6047 int main(){nm_test_var='a';nm_test_func();return(0);}
6050 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6051 (eval $ac_compile) 2>&5
6053 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6054 test $ac_status = 0; }; then
6055 # Now try to grab the symbols.
6057 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
6058 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6060 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6061 test $ac_status = 0; } && test -s "$nlist"; then
6062 # Try sorting and uniquifying the output.
6063 if sort "$nlist" | uniq > "$nlist"T; then
6064 mv -f "$nlist"T "$nlist"
6069 # Make sure that we snagged all the symbols we need.
6070 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6071 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6072 cat <<EOF > conftest.$ac_ext
6078 # Now generate the symbol file.
6079 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6081 cat <<EOF >> conftest.$ac_ext
6082 #if defined (__STDC__) && __STDC__
6083 # define lt_ptr_t void *
6085 # define lt_ptr_t char *
6089 /* The mapping between symbol names and symbols. */
6094 lt_preloaded_symbols[] =
6097 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6098 cat <<\EOF >> conftest.$ac_ext
6106 # Now try linking the two files.
6107 mv conftest.$ac_objext conftstm.$ac_objext
6108 lt_save_LIBS="$LIBS"
6109 lt_save_CFLAGS="$CFLAGS"
6110 LIBS="conftstm.$ac_objext"
6111 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6112 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6113 (eval $ac_link) 2>&5
6115 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6116 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6119 LIBS="$lt_save_LIBS"
6120 CFLAGS="$lt_save_CFLAGS"
6122 echo "cannot find nm_test_func in $nlist" >&5
6125 echo "cannot find nm_test_var in $nlist" >&5
6128 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6131 echo "$progname: failed program was:" >&5
6132 cat conftest.$ac_ext >&5
6134 rm -f conftest* conftst*
6136 # Do not use the global_symbol_pipe unless it works.
6137 if test "$pipe_works" = yes; then
6140 lt_cv_sys_global_symbol_pipe=
6146 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6147 lt_cv_sys_global_symbol_to_cdecl=
6149 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6151 $as_echo "failed" >&6; }
6153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6154 $as_echo "ok" >&6; }
6157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
6158 $as_echo_n "checking for objdir... " >&6; }
6159 if ${lt_cv_objdir+:} false; then :
6160 $as_echo_n "(cached) " >&6
6162 rm -f .libs 2>/dev/null
6163 mkdir .libs 2>/dev/null
6164 if test -d .libs; then
6167 # MS-DOS does not allow filenames that begin with a dot.
6170 rmdir .libs 2>/dev/null
6172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
6173 $as_echo "$lt_cv_objdir" >&6; }
6174 objdir=$lt_cv_objdir
6182 # AIX sometimes has problems with the GCC collect2 program. For some
6183 # reason, if we set the COLLECT_NAMES environment variable, the problems
6184 # vanish in a puff of smoke.
6185 if test "X${COLLECT_NAMES+set}" != Xset; then
6187 export COLLECT_NAMES
6192 # Sed substitution that helps us do robust quoting. It backslashifies
6193 # metacharacters that are still active within double-quoted strings.
6194 Xsed='sed -e s/^X//'
6195 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6197 # Same as above, but do not quote variable references.
6198 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6200 # Sed substitution to delay expansion of an escaped shell variable in a
6201 # double_quote_subst'ed string.
6202 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6204 # Sed substitution to avoid accidental globbing in evaled expressions
6205 no_glob_subst='s/\*/\\\*/g'
6211 default_ofile=libtool
6212 can_build_shared=yes
6214 # All known linkers require a `.a' archive for static linking (except M$VC,
6215 # which needs '.lib').
6217 ltmain="$ac_aux_dir/ltmain.sh"
6218 ofile="$default_ofile"
6219 with_gnu_ld="$lt_cv_prog_gnu_ld"
6221 if test -n "$ac_tool_prefix"; then
6222 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6223 set dummy ${ac_tool_prefix}ar; ac_word=$2
6224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6225 $as_echo_n "checking for $ac_word... " >&6; }
6226 if ${ac_cv_prog_AR+:} false; then :
6227 $as_echo_n "(cached) " >&6
6229 if test -n "$AR"; then
6230 ac_cv_prog_AR="$AR" # Let the user override the test.
6232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6236 test -z "$as_dir" && as_dir=.
6237 for ac_exec_ext in '' $ac_executable_extensions; do
6238 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6239 ac_cv_prog_AR="${ac_tool_prefix}ar"
6240 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6250 if test -n "$AR"; then
6251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6252 $as_echo "$AR" >&6; }
6254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6255 $as_echo "no" >&6; }
6260 if test -z "$ac_cv_prog_AR"; then
6262 # Extract the first word of "ar", so it can be a program name with args.
6263 set dummy ar; ac_word=$2
6264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6265 $as_echo_n "checking for $ac_word... " >&6; }
6266 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6267 $as_echo_n "(cached) " >&6
6269 if test -n "$ac_ct_AR"; then
6270 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6276 test -z "$as_dir" && as_dir=.
6277 for ac_exec_ext in '' $ac_executable_extensions; do
6278 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6279 ac_cv_prog_ac_ct_AR="ar"
6280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6289 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6290 if test -n "$ac_ct_AR"; then
6291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6292 $as_echo "$ac_ct_AR" >&6; }
6294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6295 $as_echo "no" >&6; }
6298 if test "x$ac_ct_AR" = x; then
6301 case $cross_compiling:$ac_tool_warned in
6303 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6304 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6305 ac_tool_warned=yes ;;
6313 if test -n "$ac_tool_prefix"; then
6314 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6315 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6317 $as_echo_n "checking for $ac_word... " >&6; }
6318 if ${ac_cv_prog_RANLIB+:} false; then :
6319 $as_echo_n "(cached) " >&6
6321 if test -n "$RANLIB"; then
6322 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6328 test -z "$as_dir" && as_dir=.
6329 for ac_exec_ext in '' $ac_executable_extensions; do
6330 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6331 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6341 RANLIB=$ac_cv_prog_RANLIB
6342 if test -n "$RANLIB"; then
6343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6344 $as_echo "$RANLIB" >&6; }
6346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6347 $as_echo "no" >&6; }
6352 if test -z "$ac_cv_prog_RANLIB"; then
6353 ac_ct_RANLIB=$RANLIB
6354 # Extract the first word of "ranlib", so it can be a program name with args.
6355 set dummy ranlib; ac_word=$2
6356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6357 $as_echo_n "checking for $ac_word... " >&6; }
6358 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6359 $as_echo_n "(cached) " >&6
6361 if test -n "$ac_ct_RANLIB"; then
6362 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6368 test -z "$as_dir" && as_dir=.
6369 for ac_exec_ext in '' $ac_executable_extensions; do
6370 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6371 ac_cv_prog_ac_ct_RANLIB="ranlib"
6372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6381 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6382 if test -n "$ac_ct_RANLIB"; then
6383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6384 $as_echo "$ac_ct_RANLIB" >&6; }
6386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6387 $as_echo "no" >&6; }
6390 if test "x$ac_ct_RANLIB" = x; then
6393 case $cross_compiling:$ac_tool_warned in
6395 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6396 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6397 ac_tool_warned=yes ;;
6399 RANLIB=$ac_ct_RANLIB
6402 RANLIB="$ac_cv_prog_RANLIB"
6405 if test -n "$ac_tool_prefix"; then
6406 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6407 set dummy ${ac_tool_prefix}strip; ac_word=$2
6408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6409 $as_echo_n "checking for $ac_word... " >&6; }
6410 if ${ac_cv_prog_STRIP+:} false; then :
6411 $as_echo_n "(cached) " >&6
6413 if test -n "$STRIP"; then
6414 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6420 test -z "$as_dir" && as_dir=.
6421 for ac_exec_ext in '' $ac_executable_extensions; do
6422 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6423 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6424 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6433 STRIP=$ac_cv_prog_STRIP
6434 if test -n "$STRIP"; then
6435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6436 $as_echo "$STRIP" >&6; }
6438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6439 $as_echo "no" >&6; }
6444 if test -z "$ac_cv_prog_STRIP"; then
6446 # Extract the first word of "strip", so it can be a program name with args.
6447 set dummy strip; ac_word=$2
6448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6449 $as_echo_n "checking for $ac_word... " >&6; }
6450 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6451 $as_echo_n "(cached) " >&6
6453 if test -n "$ac_ct_STRIP"; then
6454 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6460 test -z "$as_dir" && as_dir=.
6461 for ac_exec_ext in '' $ac_executable_extensions; do
6462 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6463 ac_cv_prog_ac_ct_STRIP="strip"
6464 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6473 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6474 if test -n "$ac_ct_STRIP"; then
6475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6476 $as_echo "$ac_ct_STRIP" >&6; }
6478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6479 $as_echo "no" >&6; }
6482 if test "x$ac_ct_STRIP" = x; then
6485 case $cross_compiling:$ac_tool_warned in
6487 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6488 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6489 ac_tool_warned=yes ;;
6494 STRIP="$ac_cv_prog_STRIP"
6499 old_CFLAGS="$CFLAGS"
6501 # Set sane defaults for various variables
6502 test -z "$AR" && AR=ar
6503 test -z "$AR_FLAGS" && AR_FLAGS=cru
6504 test -z "$AS" && AS=as
6505 test -z "$CC" && CC=cc
6506 test -z "$LTCC" && LTCC=$CC
6507 test -z "$DLLTOOL" && DLLTOOL=dlltool
6508 test -z "$LD" && LD=ld
6509 test -z "$LN_S" && LN_S="ln -s"
6510 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6511 test -z "$NM" && NM=nm
6512 test -z "$SED" && SED=sed
6513 test -z "$OBJDUMP" && OBJDUMP=objdump
6514 test -z "$RANLIB" && RANLIB=:
6515 test -z "$STRIP" && STRIP=:
6516 test -z "$ac_objext" && ac_objext=o
6518 # Determine commands to create old-style static archives.
6519 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6520 old_postinstall_cmds='chmod 644 $oldlib'
6521 old_postuninstall_cmds=
6523 if test -n "$RANLIB"; then
6526 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
6529 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
6532 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6535 # Only perform the check for file, if the check method requires it
6536 case $deplibs_check_method in
6538 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
6540 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
6541 if ${lt_cv_path_MAGIC_CMD+:} false; then :
6542 $as_echo_n "(cached) " >&6
6546 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6549 lt_save_MAGIC_CMD="$MAGIC_CMD"
6550 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6551 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6552 for ac_dir in $ac_dummy; do
6554 test -z "$ac_dir" && ac_dir=.
6555 if test -f $ac_dir/${ac_tool_prefix}file; then
6556 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6557 if test -n "$file_magic_test_file"; then
6558 case $deplibs_check_method in
6560 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6561 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6562 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6563 $EGREP "$file_magic_regex" > /dev/null; then
6568 *** Warning: the command libtool uses to detect shared libraries,
6569 *** $file_magic_cmd, produces output that libtool cannot recognize.
6570 *** The result is that libtool may fail to recognize shared libraries
6571 *** as such. This will affect the creation of libtool libraries that
6572 *** depend on shared libraries, but programs linked with such libtool
6573 *** libraries will work regardless of this problem. Nevertheless, you
6574 *** may want to report the problem to your system manager and/or to
6575 *** bug-libtool@gnu.org
6585 MAGIC_CMD="$lt_save_MAGIC_CMD"
6590 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6591 if test -n "$MAGIC_CMD"; then
6592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
6593 $as_echo "$MAGIC_CMD" >&6; }
6595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6596 $as_echo "no" >&6; }
6599 if test -z "$lt_cv_path_MAGIC_CMD"; then
6600 if test -n "$ac_tool_prefix"; then
6601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
6602 $as_echo_n "checking for file... " >&6; }
6603 if ${lt_cv_path_MAGIC_CMD+:} false; then :
6604 $as_echo_n "(cached) " >&6
6608 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6611 lt_save_MAGIC_CMD="$MAGIC_CMD"
6612 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6613 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6614 for ac_dir in $ac_dummy; do
6616 test -z "$ac_dir" && ac_dir=.
6617 if test -f $ac_dir/file; then
6618 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6619 if test -n "$file_magic_test_file"; then
6620 case $deplibs_check_method in
6622 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6623 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6624 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6625 $EGREP "$file_magic_regex" > /dev/null; then
6630 *** Warning: the command libtool uses to detect shared libraries,
6631 *** $file_magic_cmd, produces output that libtool cannot recognize.
6632 *** The result is that libtool may fail to recognize shared libraries
6633 *** as such. This will affect the creation of libtool libraries that
6634 *** depend on shared libraries, but programs linked with such libtool
6635 *** libraries will work regardless of this problem. Nevertheless, you
6636 *** may want to report the problem to your system manager and/or to
6637 *** bug-libtool@gnu.org
6647 MAGIC_CMD="$lt_save_MAGIC_CMD"
6652 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6653 if test -n "$MAGIC_CMD"; then
6654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
6655 $as_echo "$MAGIC_CMD" >&6; }
6657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6658 $as_echo "no" >&6; }
6673 @%:@ Check whether --enable-libtool-lock was given.
6674 if test "${enable_libtool_lock+set}" = set; then :
6675 enableval=$enable_libtool_lock;
6678 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6681 @%:@ Check whether --with-pic was given.
6682 if test "${with_pic+set}" = set; then :
6683 withval=$with_pic; pic_mode="$withval"
6688 test -z "$pic_mode" && pic_mode=default
6690 # Use C for the default configuration in the libtool script
6694 ac_cpp='$CPP $CPPFLAGS'
6695 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6696 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6697 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6700 # Source file extension for C test sources.
6703 # Object file extension for compiled C test sources.
6707 # Code to be used in simple compile tests
6708 lt_simple_compile_test_code="int some_variable = 0;\n"
6710 # Code to be used in simple link tests
6711 lt_simple_link_test_code='int main(){return(0);}\n'
6714 # If no C compiler was specified, use CC.
6717 # Allow CC to be a program name with arguments.
6722 # Check for any special shared library compilation flags.
6725 if test "$GCC" = no; then
6728 lt_prog_cc_shlib='-belf'
6732 if test -n "$lt_prog_cc_shlib"; then
6733 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6734 $as_echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6735 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
6737 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6738 $as_echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6739 lt_cv_prog_cc_can_build_shared=no
6745 # Check to make sure the static flag actually works.
6747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6748 $as_echo_n "checking if $compiler static flag $lt_prog_compiler_static works... " >&6; }
6749 if ${lt_prog_compiler_static_works+:} false; then :
6750 $as_echo_n "(cached) " >&6
6752 lt_prog_compiler_static_works=no
6753 save_LDFLAGS="$LDFLAGS"
6754 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6755 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6756 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6757 # The compiler can only warn and ignore the option if not recognized
6758 # So say no if there are warnings
6759 if test -s conftest.err; then
6760 # Append any errors to the config.log.
6761 cat conftest.err 1>&5
6763 lt_prog_compiler_static_works=yes
6767 LDFLAGS="$save_LDFLAGS"
6770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_static_works" >&5
6771 $as_echo "$lt_prog_compiler_static_works" >&6; }
6773 if test x"$lt_prog_compiler_static_works" = xyes; then
6776 lt_prog_compiler_static=
6782 lt_prog_compiler_no_builtin_flag=
6784 if test "$GCC" = yes; then
6785 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6789 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
6790 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
6791 $as_echo_n "(cached) " >&6
6793 lt_cv_prog_compiler_rtti_exceptions=no
6794 ac_outfile=conftest.$ac_objext
6795 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6796 lt_compiler_flag="-fno-rtti -fno-exceptions"
6797 # Insert the option either (1) after the last *FLAGS variable, or
6798 # (2) before a word containing "conftest.", or (3) at the end.
6799 # Note that $ac_compile itself does not contain backslashes and begins
6800 # with a dollar sign (not a hyphen), so the echo should work correctly.
6801 # The option is referenced via a variable to avoid confusing sed.
6802 lt_compile=`echo "$ac_compile" | $SED \
6803 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6804 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6805 -e 's:$: $lt_compiler_flag:'`
6806 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
6807 (eval "$lt_compile" 2>conftest.err)
6809 cat conftest.err >&5
6810 echo "$as_me:__oline__: \$? = $ac_status" >&5
6811 if (exit $ac_status) && test -s "$ac_outfile"; then
6812 # The compiler can only warn and ignore the option if not recognized
6813 # So say no if there are warnings
6814 if test ! -s conftest.err; then
6815 lt_cv_prog_compiler_rtti_exceptions=yes
6821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6822 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
6824 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6825 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6832 lt_prog_compiler_wl=
6833 lt_prog_compiler_pic=
6834 lt_prog_compiler_static=
6836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
6837 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
6839 if test "$GCC" = yes; then
6840 lt_prog_compiler_wl='-Wl,'
6841 lt_prog_compiler_static='-static'
6845 # All AIX code is PIC.
6846 if test "$host_cpu" = ia64; then
6847 # AIX 5 now supports IA64 processor
6848 lt_prog_compiler_static='-Bstatic'
6853 # FIXME: we need at least 68020 code to build shared libraries, but
6854 # adding the `-m68020' flag to GCC prevents building anything better,
6856 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6859 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6860 # PIC is the default for these OSes.
6863 mingw* | pw32* | os2*)
6864 # This hack is so that the source file can tell whether it is being
6865 # built for inclusion in a dll (and should export symbols for example).
6866 lt_prog_compiler_pic='-DDLL_EXPORT'
6869 darwin* | rhapsody*)
6870 # PIC is the default on this platform
6871 # Common symbols not allowed in MH_DYLIB files
6872 lt_prog_compiler_pic='-fno-common'
6876 # Just because we use GCC doesn't mean we suddenly get shared libraries
6877 # on systems that don't support them.
6878 lt_prog_compiler_can_build_shared=no
6883 if test -d /usr/nec; then
6884 lt_prog_compiler_pic=-Kconform_pic
6889 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6896 lt_prog_compiler_pic='-fPIC'
6902 lt_prog_compiler_pic='-fPIC'
6906 # PORTME Check for flag to pass linker flags through the system compiler.
6909 lt_prog_compiler_wl='-Wl,'
6910 if test "$host_cpu" = ia64; then
6911 # AIX 5 now supports IA64 processor
6912 lt_prog_compiler_static='-Bstatic'
6914 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6918 mingw* | pw32* | os2*)
6919 # This hack is so that the source file can tell whether it is being
6920 # built for inclusion in a dll (and should export symbols for example).
6921 lt_prog_compiler_pic='-DDLL_EXPORT'
6924 hpux9* | hpux10* | hpux11*)
6925 lt_prog_compiler_wl='-Wl,'
6926 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6933 lt_prog_compiler_pic='+Z'
6936 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6937 lt_prog_compiler_static='${wl}-a ${wl}archive'
6940 irix5* | irix6* | nonstopux*)
6941 lt_prog_compiler_wl='-Wl,'
6942 # PIC (with -KPIC) is the default.
6943 lt_prog_compiler_static='-non_shared'
6947 lt_prog_compiler_pic='-KPIC'
6948 lt_prog_compiler_static='-Bstatic'
6954 lt_prog_compiler_wl='-Wl,'
6955 lt_prog_compiler_pic='-KPIC'
6956 lt_prog_compiler_static='-static'
6959 lt_prog_compiler_wl='-Wl,'
6960 # All Alpha code is PIC.
6961 lt_prog_compiler_static='-non_shared'
6966 osf3* | osf4* | osf5*)
6967 lt_prog_compiler_wl='-Wl,'
6968 # All OSF/1 code is PIC.
6969 lt_prog_compiler_static='-non_shared'
6973 lt_prog_compiler_pic='-Kpic'
6974 lt_prog_compiler_static='-dn'
6978 lt_prog_compiler_wl='-Wl,'
6979 lt_prog_compiler_pic='-KPIC'
6980 lt_prog_compiler_static='-Bstatic'
6984 lt_prog_compiler_wl='-Qoption ld '
6985 lt_prog_compiler_pic='-PIC'
6986 lt_prog_compiler_static='-Bstatic'
6989 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6990 lt_prog_compiler_wl='-Wl,'
6991 lt_prog_compiler_pic='-KPIC'
6992 lt_prog_compiler_static='-Bstatic'
6996 if test -d /usr/nec ;then
6997 lt_prog_compiler_pic='-Kconform_pic'
6998 lt_prog_compiler_static='-Bstatic'
7003 lt_prog_compiler_pic='-pic'
7004 lt_prog_compiler_static='-Bstatic'
7008 lt_prog_compiler_can_build_shared=no
7013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
7014 $as_echo "$lt_prog_compiler_pic" >&6; }
7017 # Check to make sure the PIC flag actually works.
7019 if test -n "$lt_prog_compiler_pic"; then
7021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7022 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7023 if ${lt_prog_compiler_pic_works+:} false; then :
7024 $as_echo_n "(cached) " >&6
7026 lt_prog_compiler_pic_works=no
7027 ac_outfile=conftest.$ac_objext
7028 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7029 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7030 # Insert the option either (1) after the last *FLAGS variable, or
7031 # (2) before a word containing "conftest.", or (3) at the end.
7032 # Note that $ac_compile itself does not contain backslashes and begins
7033 # with a dollar sign (not a hyphen), so the echo should work correctly.
7034 # The option is referenced via a variable to avoid confusing sed.
7035 lt_compile=`echo "$ac_compile" | $SED \
7036 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
7037 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7038 -e 's:$: $lt_compiler_flag:'`
7039 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
7040 (eval "$lt_compile" 2>conftest.err)
7042 cat conftest.err >&5
7043 echo "$as_me:__oline__: \$? = $ac_status" >&5
7044 if (exit $ac_status) && test -s "$ac_outfile"; then
7045 # The compiler can only warn and ignore the option if not recognized
7046 # So say no if there are warnings
7047 if test ! -s conftest.err; then
7048 lt_prog_compiler_pic_works=yes
7054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_works" >&5
7055 $as_echo "$lt_prog_compiler_pic_works" >&6; }
7057 if test x"$lt_prog_compiler_pic_works" = xyes; then
7058 case $lt_prog_compiler_pic in
7060 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7063 lt_prog_compiler_pic=
7064 lt_prog_compiler_can_build_shared=no
7069 # For platforms which do not support PIC, -DPIC is meaningless:
7071 lt_prog_compiler_pic=
7074 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7079 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7080 if ${lt_cv_prog_compiler_c_o+:} false; then :
7081 $as_echo_n "(cached) " >&6
7083 lt_cv_prog_compiler_c_o=no
7084 $rm -r conftest 2>/dev/null
7088 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7090 lt_compiler_flag="-o out/conftest2.$ac_objext"
7091 # Insert the option either (1) after the last *FLAGS variable, or
7092 # (2) before a word containing "conftest.", or (3) at the end.
7093 # Note that $ac_compile itself does not contain backslashes and begins
7094 # with a dollar sign (not a hyphen), so the echo should work correctly.
7095 lt_compile=`echo "$ac_compile" | $SED \
7096 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
7097 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7098 -e 's:$: $lt_compiler_flag:'`
7099 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
7100 (eval "$lt_compile" 2>out/conftest.err)
7102 cat out/conftest.err >&5
7103 echo "$as_me:__oline__: \$? = $ac_status" >&5
7104 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7106 # The compiler can only warn and ignore the option if not recognized
7107 # So say no if there are warnings
7108 if test ! -s out/conftest.err; then
7109 lt_cv_prog_compiler_c_o=yes
7114 # SGI C++ compiler will create directory out/ii_files/ for
7115 # template instantiation
7116 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7117 $rm out/* && rmdir out
7123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7124 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7127 hard_links="nottested"
7128 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7129 # do not overwrite the value of need_locks provided by the user
7130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
7131 $as_echo_n "checking if we can lock with hard links... " >&6; }
7134 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7136 ln conftest.a conftest.b 2>&5 || hard_links=no
7137 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
7139 $as_echo "$hard_links" >&6; }
7140 if test "$hard_links" = no; then
7141 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7142 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7150 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
7153 allow_undefined_flag=
7154 enable_shared_with_static_runtimes=no
7156 archive_expsym_cmds=
7157 old_archive_From_new_cmds=
7158 old_archive_from_expsyms_cmds=
7159 export_dynamic_flag_spec=
7160 whole_archive_flag_spec=
7161 thread_safe_flag_spec=
7162 hardcode_libdir_flag_spec=
7163 hardcode_libdir_flag_spec_ld=
7164 hardcode_libdir_separator=
7167 hardcode_shlibpath_var=unsupported
7168 link_all_deplibs=unknown
7169 hardcode_automatic=no
7172 always_export_symbols=no
7173 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7174 # include_expsyms should be a list of space-separated symbols to be *always*
7175 # included in the symbol list
7177 # exclude_expsyms can be an extended regexp of symbols to exclude
7178 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7179 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7180 # as well as any symbol that contains `d'.
7181 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7182 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7183 # platforms (ab)use it in PIC code, but their linkers get confused if
7184 # the symbol is explicitly referenced. Since portable code cannot
7185 # rely on this symbol name, it's probably fine to never include it in
7186 # preloaded symbol tables.
7187 extract_expsyms_cmds=
7190 cygwin* | mingw* | pw32*)
7191 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7192 # When not using gcc, we currently assume that we are using
7193 # Microsoft Visual C++.
7194 if test "$GCC" != yes; then
7204 if test "$with_gnu_ld" = yes; then
7205 # If archive_cmds runs LD, not CC, wlarc should be empty
7208 # See if GNU ld supports shared libraries.
7210 aix3* | aix4* | aix5*)
7211 # On AIX/PPC, the GNU linker is very broken
7212 if test "$host_cpu" != ia64; then
7216 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7217 *** to be unable to reliably create shared libraries on AIX.
7218 *** Therefore, libtool is disabling shared libraries support. If you
7219 *** really care for shared libraries, you may want to modify your PATH
7220 *** so that a non-GNU linker is found, and then restart.
7227 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)'
7228 hardcode_libdir_flag_spec='-L$libdir'
7229 hardcode_minus_L=yes
7231 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7232 # that the semantics of dynamic libraries on AmigaOS, at least up
7233 # to version 4, is to share data among multiple programs linked
7234 # with the same dynamic library. Since this doesn't match the
7235 # behavior of shared libraries on other platforms, we can't use
7241 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7242 allow_undefined_flag=unsupported
7243 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7244 # support --undefined. This deserves some investigation. FIXME
7245 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7251 cygwin* | mingw* | pw32*)
7252 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7253 # as there is no search path for DLLs.
7254 hardcode_libdir_flag_spec='-L$libdir'
7255 allow_undefined_flag=unsupported
7256 always_export_symbols=no
7257 enable_shared_with_static_runtimes=yes
7258 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7260 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7261 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
7262 # If the export-symbols file already is a .def file (1st line
7263 # is EXPORTS), use it as is; otherwise, prepend...
7264 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7265 cp $export_symbols $output_objdir/$soname.def;
7267 echo EXPORTS > $output_objdir/$soname.def;
7268 cat $export_symbols >> $output_objdir/$soname.def;
7270 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
7276 netbsd* | knetbsd*-gnu)
7277 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7278 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7281 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7282 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7287 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7291 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7292 *** create shared libraries on Solaris systems. Therefore, libtool
7293 *** is disabling shared libraries support. We urge you to upgrade GNU
7294 *** binutils to release 2.9.1 or newer. Another option is to modify
7295 *** your PATH or compiler configuration so that the native linker is
7296 *** used, and then restart.
7299 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7300 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7301 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7308 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7311 hardcode_shlibpath_var=no
7315 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
7316 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7317 archive_cmds="$tmp_archive_cmds"
7318 supports_anon_versioning=no
7319 case `$LD -v 2>/dev/null` in
7320 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7321 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7322 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7323 *\ 2.11.*) ;; # other 2.11 versions
7324 *) supports_anon_versioning=yes ;;
7326 if test $supports_anon_versioning = yes; then
7327 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7328 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7329 $echo "local: *; };" >> $output_objdir/$libname.ver~
7330 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7332 archive_expsym_cmds="$tmp_archive_cmds"
7340 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7341 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7342 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7349 if test "$ld_shlibs" = yes; then
7350 runpath_var=LD_RUN_PATH
7351 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7352 export_dynamic_flag_spec='${wl}--export-dynamic'
7353 # ancient GNU ld didn't support --whole-archive et. al.
7354 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7355 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7357 whole_archive_flag_spec=
7361 # PORTME fill in a description of your system's linker (not GNU ld)
7364 allow_undefined_flag=unsupported
7365 always_export_symbols=yes
7366 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'
7367 # Note: this linker hardcodes the directories in LIBPATH if there
7368 # are no directories specified by -L.
7369 hardcode_minus_L=yes
7370 if test "$GCC" = yes && test -z "$link_static_flag"; then
7371 # Neither direct hardcoding nor static linking is supported with a
7373 hardcode_direct=unsupported
7378 if test "$host_cpu" = ia64; then
7379 # On IA64, the linker does run time linking by default, so we don't
7380 # have to do anything special.
7381 aix_use_runtimelinking=no
7382 exp_sym_flag='-Bexport'
7385 # If we're using GNU nm, then we don't want the "-C" option.
7386 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7387 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7388 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
7390 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'
7392 aix_use_runtimelinking=no
7394 # Test if we are trying to use run time linking or normal
7395 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7396 # need to do runtime linking.
7397 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7398 for ld_flag in $LDFLAGS; do
7399 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7400 aix_use_runtimelinking=yes
7406 exp_sym_flag='-bexport'
7407 no_entry_flag='-bnoentry'
7410 # When large executables or shared objects are built, AIX ld can
7411 # have problems creating the table of contents. If linking a library
7412 # or program results in "error TOC overflow" add -mminimal-toc to
7413 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7414 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7418 hardcode_libdir_separator=':'
7419 link_all_deplibs=yes
7421 if test "$GCC" = yes; then
7422 case $host_os in aix4.012|aix4.012.*)
7423 # We only want to do this on AIX 4.2 and lower, the check
7424 # below for broken collect2 doesn't work under 4.3+
7425 collect2name=`${CC} -print-prog-name=collect2`
7426 if test -f "$collect2name" && \
7427 strings "$collect2name" | grep resolve_lib_name >/dev/null
7429 # We have reworked collect2
7432 # We have old collect2
7433 hardcode_direct=unsupported
7434 # It fails to find uninstalled libraries when the uninstalled
7435 # path is not listed in the libpath. Setting hardcode_minus_L
7436 # to unsupported forces relinking
7437 hardcode_minus_L=yes
7438 hardcode_libdir_flag_spec='-L$libdir'
7439 hardcode_libdir_separator=
7442 shared_flag='-shared'
7445 if test "$host_cpu" = ia64; then
7446 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7447 # chokes on -Wl,-G. The following line is correct:
7450 if test "$aix_use_runtimelinking" = yes; then
7451 shared_flag='${wl}-G'
7453 shared_flag='${wl}-bM:SRE'
7458 # It seems that -bexpall does not export symbols beginning with
7459 # underscore (_), so it is better to generate a list of symbols to export.
7460 always_export_symbols=yes
7461 if test "$aix_use_runtimelinking" = yes; then
7462 # Warning - without using the other runtime loading flags (-brtl),
7463 # -berok will link without error, but may produce a broken library.
7464 allow_undefined_flag='-berok'
7465 # Determine the default libpath from the value encoded in an empty executable.
7466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7467 /* end confdefs.h. */
7477 if ac_fn_c_try_link "$LINENO"; then :
7479 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7481 # Check for a 64-bit object if we didn't find anything.
7482 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7485 rm -f core conftest.err conftest.$ac_objext \
7486 conftest$ac_exeext conftest.$ac_ext
7487 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7489 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7490 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7492 if test "$host_cpu" = ia64; then
7493 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7494 allow_undefined_flag="-z nodefs"
7495 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
7497 # Determine the default libpath from the value encoded in an empty executable.
7498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7499 /* end confdefs.h. */
7509 if ac_fn_c_try_link "$LINENO"; then :
7511 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7513 # Check for a 64-bit object if we didn't find anything.
7514 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7517 rm -f core conftest.err conftest.$ac_objext \
7518 conftest$ac_exeext conftest.$ac_ext
7519 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7521 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7522 # Warning - without using the other run time loading flags,
7523 # -berok will link without error, but may produce a broken library.
7524 no_undefined_flag=' ${wl}-bernotok'
7525 allow_undefined_flag=' ${wl}-berok'
7526 # -bexpall does not export symbols beginning with underscore (_)
7527 always_export_symbols=yes
7528 # Exported symbols can be pulled into shared objects from archives
7529 whole_archive_flag_spec=' '
7530 archive_cmds_need_lc=yes
7531 # This is similar to how AIX traditionally builds it's shared libraries.
7532 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
7538 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)'
7539 hardcode_libdir_flag_spec='-L$libdir'
7540 hardcode_minus_L=yes
7541 # see comment about different semantics on the GNU ld section
7546 export_dynamic_flag_spec=-rdynamic
7549 cygwin* | mingw* | pw32*)
7550 # When not using gcc, we currently assume that we are using
7551 # Microsoft Visual C++.
7552 # hardcode_libdir_flag_spec is actually meaningless, as there is
7553 # no search path for DLLs.
7554 hardcode_libdir_flag_spec=' '
7555 allow_undefined_flag=unsupported
7556 # Tell ltmain to make .lib files, not .a files.
7558 # Tell ltmain to make .dll files, not .so files.
7560 # FIXME: Setting linknames here is a bad hack.
7561 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7562 # The linker will automatically build a .lib file if we build a DLL.
7563 old_archive_From_new_cmds='true'
7564 # FIXME: Should let the user specify the lib program.
7565 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7566 fix_srcfile_path='`cygpath -w "$srcfile"`'
7567 enable_shared_with_static_runtimes=yes
7570 darwin* | rhapsody*)
7571 if test "$GXX" = yes ; then
7572 archive_cmds_need_lc=no
7574 rhapsody* | darwin1.[012])
7575 allow_undefined_flag='-undefined suppress'
7578 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7579 allow_undefined_flag='-flat_namespace -undefined suppress'
7581 case ${MACOSX_DEPLOYMENT_TARGET} in
7583 allow_undefined_flag='-flat_namespace -undefined suppress'
7586 allow_undefined_flag='-undefined dynamic_lookup'
7592 lt_int_apple_cc_single_mod=no
7593 output_verbose_link_cmd='echo'
7594 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
7595 lt_int_apple_cc_single_mod=yes
7597 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7598 archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7600 archive_cmds='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7602 module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7603 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7604 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7605 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7607 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7609 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7611 hardcode_automatic=yes
7612 hardcode_shlibpath_var=unsupported
7613 whole_archive_flag_spec='-all_load $convenience'
7614 link_all_deplibs=yes
7621 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7622 hardcode_libdir_flag_spec='-L$libdir'
7623 hardcode_shlibpath_var=no
7630 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7631 # support. Future versions do this automatically, but an explicit c++rt0.o
7632 # does not break anything, and helps significantly (at the cost of a little
7635 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7636 hardcode_libdir_flag_spec='-R$libdir'
7638 hardcode_shlibpath_var=no
7641 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7643 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7645 hardcode_minus_L=yes
7646 hardcode_shlibpath_var=no
7649 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7650 freebsd* | kfreebsd*-gnu)
7651 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7652 hardcode_libdir_flag_spec='-R$libdir'
7654 hardcode_shlibpath_var=no
7658 if test "$GCC" = yes; then
7659 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'
7661 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'
7663 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7664 hardcode_libdir_separator=:
7667 # hardcode_minus_L: Not really in the search PATH,
7668 # but as the default location of the library.
7669 hardcode_minus_L=yes
7670 export_dynamic_flag_spec='${wl}-E'
7674 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7677 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7680 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7686 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7689 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7693 if test "$with_gnu_ld" = no; then
7696 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7697 hardcode_libdir_flag_spec_ld='+b $libdir'
7698 hardcode_libdir_separator=:
7700 hardcode_shlibpath_var=no
7703 hardcode_libdir_flag_spec='-L$libdir'
7705 hardcode_shlibpath_var=no
7707 # hardcode_minus_L: Not really in the search PATH,
7708 # but as the default location of the library.
7709 hardcode_minus_L=yes
7712 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7713 hardcode_libdir_separator=:
7715 export_dynamic_flag_spec='${wl}-E'
7717 # hardcode_minus_L: Not really in the search PATH,
7718 # but as the default location of the library.
7719 hardcode_minus_L=yes
7725 irix5* | irix6* | nonstopux*)
7726 if test "$GCC" = yes; then
7727 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7729 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
7730 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7732 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7733 hardcode_libdir_separator=:
7734 link_all_deplibs=yes
7737 netbsd* | knetbsd*-gnu)
7738 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7739 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7741 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7743 hardcode_libdir_flag_spec='-R$libdir'
7745 hardcode_shlibpath_var=no
7749 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7751 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7752 hardcode_libdir_separator=:
7753 hardcode_shlibpath_var=no
7758 hardcode_shlibpath_var=no
7759 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7760 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7761 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7762 export_dynamic_flag_spec='${wl}-E'
7765 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7766 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7767 hardcode_libdir_flag_spec='-R$libdir'
7770 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7771 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7778 hardcode_libdir_flag_spec='-L$libdir'
7779 hardcode_minus_L=yes
7780 allow_undefined_flag=unsupported
7781 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'
7782 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7786 if test "$GCC" = yes; then
7787 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7788 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7790 allow_undefined_flag=' -expect_unresolved \*'
7791 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
7793 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7794 hardcode_libdir_separator=:
7797 osf4* | osf5*) # as osf3* with the addition of -msym flag
7798 if test "$GCC" = yes; then
7799 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7800 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7801 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7803 allow_undefined_flag=' -expect_unresolved \*'
7804 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
7805 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7806 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
7808 # Both c and cxx compiler support -rpath directly
7809 hardcode_libdir_flag_spec='-rpath $libdir'
7811 hardcode_libdir_separator=:
7815 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7816 hardcode_shlibpath_var=no
7817 export_dynamic_flag_spec='${wl}-Bexport'
7818 runpath_var=LD_RUN_PATH
7819 hardcode_runpath_var=yes
7823 no_undefined_flag=' -z text'
7824 if test "$GCC" = yes; then
7825 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7826 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7827 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7829 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7830 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7831 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7833 hardcode_libdir_flag_spec='-R$libdir'
7834 hardcode_shlibpath_var=no
7836 solaris2.[0-5] | solaris2.[0-5].*) ;;
7837 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7838 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7840 link_all_deplibs=yes
7844 if test "x$host_vendor" = xsequent; then
7845 # Use $CC to link under sequent, because it throws in some extra .o
7846 # files that make .init and .fini sections work.
7847 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7849 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7851 hardcode_libdir_flag_spec='-L$libdir'
7853 hardcode_minus_L=yes
7854 hardcode_shlibpath_var=no
7858 case $host_vendor in
7860 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7861 hardcode_direct=yes # is this really true???
7864 ## LD is ld it makes a PLAMLIB
7865 ## CC just makes a GrossModule.
7866 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7867 reload_cmds='$CC -r -o $output$reload_objs'
7871 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7872 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7875 runpath_var='LD_RUN_PATH'
7876 hardcode_shlibpath_var=no
7880 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7881 hardcode_shlibpath_var=no
7882 export_dynamic_flag_spec='-Bexport'
7886 if test -d /usr/nec; then
7887 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7888 hardcode_shlibpath_var=no
7889 runpath_var=LD_RUN_PATH
7890 hardcode_runpath_var=yes
7896 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7899 hardcode_shlibpath_var=no
7900 hardcode_runpath_var=yes
7901 runpath_var=LD_RUN_PATH
7904 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
7905 no_undefined_flag='${wl}-z ${wl}text'
7906 if test "$GCC" = yes; then
7907 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7909 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7911 runpath_var='LD_RUN_PATH'
7912 hardcode_shlibpath_var=no
7916 no_undefined_flag=' -z text'
7917 # $CC -shared without GNU ld will not create a library from C++
7918 # object files and a static libstdc++, better avoid it by now
7919 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7920 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7921 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7922 hardcode_libdir_flag_spec=
7923 hardcode_shlibpath_var=no
7924 runpath_var='LD_RUN_PATH'
7928 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7929 hardcode_libdir_flag_spec='-L$libdir'
7930 hardcode_shlibpath_var=no
7939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
7940 $as_echo "$ld_shlibs" >&6; }
7941 test "$ld_shlibs" = no && can_build_shared=no
7943 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7944 if test "$GCC" = yes; then
7945 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7949 # Do we need to explicitly link libc?
7951 case "x$archive_cmds_need_lc" in
7953 # Assume -lc should be added
7954 archive_cmds_need_lc=yes
7956 if test "$enable_shared" = yes && test "$GCC" = yes; then
7957 case $archive_cmds in
7959 # FIXME: we may have to deal with multi-command sequences.
7962 # Test whether the compiler implicitly links with -lc since on some
7963 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7964 # to ld, don't add -lc before -lgcc.
7965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
7966 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
7968 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7970 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7971 (eval $ac_compile) 2>&5
7973 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7974 test $ac_status = 0; } 2>conftest.err; then
7977 libobjs=conftest.$ac_objext
7979 wl=$lt_prog_compiler_wl
7985 lt_save_allow_undefined_flag=$allow_undefined_flag
7986 allow_undefined_flag=
7987 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
7988 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7990 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7991 test $ac_status = 0; }
7993 archive_cmds_need_lc=no
7995 archive_cmds_need_lc=yes
7997 allow_undefined_flag=$lt_save_allow_undefined_flag
7999 cat conftest.err 1>&5
8002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
8003 $as_echo "$archive_cmds_need_lc" >&6; }
8010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
8011 $as_echo_n "checking dynamic linker characteristics... " >&6; }
8013 libname_spec='lib$name'
8021 shlibpath_overrides_runpath=unknown
8023 dynamic_linker="$host_os ld.so"
8024 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8025 if test "$GCC" = yes; then
8026 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8027 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8028 # if the path contains ";" then we assume it to be the separator
8029 # otherwise default to the standard path separator (i.e. ":") - it is
8030 # assumed that no part of a normal pathname contains ";" but that should
8031 # okay in the real world where ";" in dirpaths is itself problematic.
8032 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8034 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8037 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8039 need_lib_prefix=unknown
8040 hardcode_into_libs=no
8042 # when you set need_version to no, make sure it does not cause -set_version
8043 # flags to be left without arguments
8044 need_version=unknown
8049 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8050 shlibpath_var=LIBPATH
8052 # AIX 3 has no versioning support, so we append a major version to the name.
8053 soname_spec='${libname}${release}${shared_ext}$major'
8060 hardcode_into_libs=yes
8061 if test "$host_cpu" = ia64; then
8062 # AIX 5 supports IA64
8063 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8064 shlibpath_var=LD_LIBRARY_PATH
8066 # With GCC up to 2.95.x, collect2 would create an import file
8067 # for dependence libraries. The import file would start with
8068 # the line `#! .'. This would cause the generated library to
8069 # depend on `.', always an invalid library. This was fixed in
8070 # development snapshots of GCC prior to 3.0.
8072 aix4 | aix4.[01] | aix4.[01].*)
8073 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8075 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8082 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8083 # soname into executable. Probably we can add versioning support to
8084 # collect2, so additional links can be useful in future.
8085 if test "$aix_use_runtimelinking" = yes; then
8086 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8087 # instead of lib<name>.a to let people know that these are not
8088 # typical AIX shared libraries.
8089 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8091 # We preserve .a as extension for shared libraries through AIX4.2
8092 # and later when we are not doing run time linking.
8093 library_names_spec='${libname}${release}.a $libname.a'
8094 soname_spec='${libname}${release}${shared_ext}$major'
8096 shlibpath_var=LIBPATH
8101 library_names_spec='$libname.ixlibrary $libname.a'
8102 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8103 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
8107 library_names_spec='${libname}${shared_ext}'
8108 dynamic_linker="$host_os ld.so"
8109 shlibpath_var=LIBRARY_PATH
8115 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8116 soname_spec='${libname}${release}${shared_ext}$major'
8117 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8118 shlibpath_var=LD_LIBRARY_PATH
8119 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8120 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8121 # the default ld.so.conf also contains /usr/contrib/lib and
8122 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8123 # libtool to hard-code these into programs
8126 cygwin* | mingw* | pw32*)
8127 version_type=windows
8132 case $GCC,$host_os in
8133 yes,cygwin* | yes,mingw* | yes,pw32*)
8134 library_names_spec='$libname.dll.a'
8135 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8136 postinstall_cmds='base_file=`basename \${file}`~
8137 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8138 dldir=$destdir/`dirname \$dlpath`~
8139 test -d \$dldir || mkdir -p \$dldir~
8140 $install_prog $dir/$dlname \$dldir/$dlname'
8141 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8142 dlpath=$dir/\$dldll~
8144 shlibpath_overrides_runpath=yes
8148 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8149 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8150 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8153 # MinGW DLLs use traditional 'lib' prefix
8154 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8155 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8156 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8157 # It is most probably a Windows format PATH printed by
8158 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8159 # path with ; separators, and with drive letters. We can handle the
8160 # drive letters (cygwin fileutils understands them), so leave them,
8161 # especially as we might pass files found there to a mingw objdump,
8162 # which wouldn't understand a cygwinified path. Ahh.
8163 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8165 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8169 # pw32 DLLs use 'pw' prefix rather than 'lib'
8170 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
8176 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8179 dynamic_linker='Win32 ld.exe'
8180 # FIXME: first we should search . and the directory the executable is in
8184 darwin* | rhapsody*)
8185 dynamic_linker="$host_os dyld"
8189 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8190 soname_spec='${libname}${release}${major}$shared_ext'
8191 shlibpath_overrides_runpath=yes
8192 shlibpath_var=DYLD_LIBRARY_PATH
8193 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
8194 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8195 if test "$GCC" = yes; then
8196 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
8198 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8200 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8207 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8208 soname_spec='${libname}${release}${shared_ext}$major'
8209 shlibpath_var=LD_LIBRARY_PATH
8220 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8221 soname_spec='${libname}${release}${shared_ext}$major'
8222 shlibpath_var=LD_LIBRARY_PATH
8223 shlibpath_overrides_runpath=no
8224 hardcode_into_libs=yes
8225 dynamic_linker='GNU ld.so'
8229 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
8230 version_type=freebsd-$objformat
8231 case $version_type in
8233 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8238 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8242 shlibpath_var=LD_LIBRARY_PATH
8245 shlibpath_overrides_runpath=yes
8247 freebsd3.01* | freebsdelf3.01*)
8248 shlibpath_overrides_runpath=yes
8249 hardcode_into_libs=yes
8252 shlibpath_overrides_runpath=no
8253 hardcode_into_libs=yes
8262 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8263 soname_spec='${libname}${release}${shared_ext}$major'
8264 shlibpath_var=LD_LIBRARY_PATH
8265 hardcode_into_libs=yes
8268 hpux9* | hpux10* | hpux11*)
8269 # Give a soname corresponding to the major version so that dld.sl refuses to
8270 # link against other versions.
8277 hardcode_into_libs=yes
8278 dynamic_linker="$host_os dld.so"
8279 shlibpath_var=LD_LIBRARY_PATH
8280 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8281 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8282 soname_spec='${libname}${release}${shared_ext}$major'
8283 if test "X$HPUX_IA64_MODE" = X32; then
8284 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8286 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8288 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8292 hardcode_into_libs=yes
8293 dynamic_linker="$host_os dld.sl"
8294 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8295 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8296 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8297 soname_spec='${libname}${release}${shared_ext}$major'
8298 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8299 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8303 dynamic_linker="$host_os dld.sl"
8304 shlibpath_var=SHLIB_PATH
8305 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8306 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8307 soname_spec='${libname}${release}${shared_ext}$major'
8310 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8311 postinstall_cmds='chmod 555 $lib'
8314 irix5* | irix6* | nonstopux*)
8316 nonstopux*) version_type=nonstopux ;;
8318 if test "$lt_cv_prog_gnu_ld" = yes; then
8326 soname_spec='${libname}${release}${shared_ext}$major'
8327 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8329 irix5* | nonstopux*)
8333 case $LD in # libtool.m4 will add one of these switches to LD
8334 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8335 libsuff= shlibsuff= libmagic=32-bit;;
8336 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8337 libsuff=32 shlibsuff=N32 libmagic=N32;;
8338 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8339 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8340 *) libsuff= shlibsuff= libmagic=never-match;;
8344 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8345 shlibpath_overrides_runpath=no
8346 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8347 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8348 hardcode_into_libs=yes
8351 # No shared lib support for Linux oldld, aout, or coff.
8352 linux*oldld* | linux*aout* | linux*coff*)
8356 # This must be Linux ELF.
8361 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8362 soname_spec='${libname}${release}${shared_ext}$major'
8363 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8364 shlibpath_var=LD_LIBRARY_PATH
8365 shlibpath_overrides_runpath=no
8366 # This implies no fast_install, which is unacceptable.
8367 # Some rework will be needed to allow for fast_install
8368 # before this can be enabled.
8369 hardcode_into_libs=yes
8371 # Append ld.so.conf contents to the search path
8372 if test -f /etc/ld.so.conf; then
8373 ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
8374 sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
8377 # We used to test for /lib/ld.so.1 and disable shared libraries on
8378 # powerpc, because MkLinux only supported shared libraries with the
8379 # GNU dynamic linker. Since this was broken with cross compilers,
8380 # most powerpc-linux boxes support dynamic linking these days and
8381 # people can always --disable-shared, the test was removed, and we
8382 # assume the GNU/Linux dynamic linker is in use.
8383 dynamic_linker='GNU/Linux ld.so'
8390 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8391 soname_spec='${libname}${release}${shared_ext}$major'
8392 shlibpath_var=LD_LIBRARY_PATH
8393 shlibpath_overrides_runpath=no
8394 hardcode_into_libs=yes
8395 dynamic_linker='GNU ld.so'
8402 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8403 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8404 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8405 dynamic_linker='NetBSD (a.out) ld.so'
8407 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8408 soname_spec='${libname}${release}${shared_ext}$major'
8409 dynamic_linker='NetBSD ld.elf_so'
8411 shlibpath_var=LD_LIBRARY_PATH
8412 shlibpath_overrides_runpath=yes
8413 hardcode_into_libs=yes
8418 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8419 shlibpath_var=LD_LIBRARY_PATH
8420 shlibpath_overrides_runpath=yes
8427 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8428 soname_spec='${libname}${release}${shared_ext}$major'
8429 shlibpath_var=LD_LIBRARY_PATH
8430 shlibpath_overrides_runpath=yes
8437 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8438 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8439 shlibpath_var=LD_LIBRARY_PATH
8440 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8442 openbsd2.[89] | openbsd2.[89].*)
8443 shlibpath_overrides_runpath=no
8446 shlibpath_overrides_runpath=yes
8450 shlibpath_overrides_runpath=yes
8455 libname_spec='$name'
8458 library_names_spec='$libname${shared_ext} $libname.a'
8459 dynamic_linker='OS/2 ld.exe'
8460 shlibpath_var=LIBPATH
8463 osf3* | osf4* | osf5*)
8467 soname_spec='${libname}${release}${shared_ext}$major'
8468 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8469 shlibpath_var=LD_LIBRARY_PATH
8470 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8471 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8476 soname_spec='${libname}${release}${shared_ext}$major'
8477 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8478 shlibpath_var=LD_LIBRARY_PATH
8485 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8486 soname_spec='${libname}${release}${shared_ext}$major'
8487 shlibpath_var=LD_LIBRARY_PATH
8488 shlibpath_overrides_runpath=yes
8489 hardcode_into_libs=yes
8490 # ldd complains unless libraries are executable
8491 postinstall_cmds='chmod +x $lib'
8496 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8497 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8498 shlibpath_var=LD_LIBRARY_PATH
8499 shlibpath_overrides_runpath=yes
8500 if test "$with_gnu_ld" = yes; then
8506 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8508 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8509 soname_spec='${libname}${release}${shared_ext}$major'
8510 shlibpath_var=LD_LIBRARY_PATH
8511 case $host_vendor in
8513 shlibpath_overrides_runpath=no
8515 export_dynamic_flag_spec='${wl}-Blargedynsym'
8516 runpath_var=LD_RUN_PATH
8524 shlibpath_overrides_runpath=no
8525 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8531 if test -d /usr/nec ;then
8533 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8534 soname_spec='$libname${shared_ext}.$major'
8535 shlibpath_var=LD_LIBRARY_PATH
8541 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8542 soname_spec='${libname}${release}${shared_ext}$major'
8543 shlibpath_var=LD_LIBRARY_PATH
8550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
8551 $as_echo "$dynamic_linker" >&6; }
8552 test "$dynamic_linker" = no && can_build_shared=no
8554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
8555 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
8557 if test -n "$hardcode_libdir_flag_spec" || \
8558 test -n "$runpath_var " || \
8559 test "X$hardcode_automatic"="Xyes" ; then
8561 # We can hardcode non-existant directories.
8562 if test "$hardcode_direct" != no &&
8563 # If the only mechanism to avoid hardcoding is shlibpath_var, we
8564 # have to relink, otherwise we might link with an installed library
8565 # when we should be linking with a yet-to-be-installed one
8566 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8567 test "$hardcode_minus_L" != no; then
8568 # Linking always hardcodes the temporary library directory.
8569 hardcode_action=relink
8571 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8572 hardcode_action=immediate
8575 # We cannot hardcode anything, or else we can only hardcode existing
8577 hardcode_action=unsupported
8579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
8580 $as_echo "$hardcode_action" >&6; }
8582 if test "$hardcode_action" = relink; then
8583 # Fast installation is not supported
8584 enable_fast_install=no
8585 elif test "$shlibpath_overrides_runpath" = yes ||
8586 test "$enable_shared" = no; then
8587 # Fast installation is not necessary
8588 enable_fast_install=needless
8593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
8594 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
8595 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8596 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8597 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8599 $as_echo "yes" >&6; }
8601 # FIXME - insert some real tests, host_os isn't really good enough
8604 if test -n "$STRIP" ; then
8605 striplib="$STRIP -x"
8606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8607 $as_echo "yes" >&6; }
8609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8610 $as_echo "no" >&6; }
8614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8615 $as_echo "no" >&6; }
8620 if test "x$enable_dlopen" != xyes; then
8621 enable_dlopen=unknown
8622 enable_dlopen_self=unknown
8623 enable_dlopen_self_static=unknown
8630 lt_cv_dlopen="load_add_on"
8632 lt_cv_dlopen_self=yes
8636 lt_cv_dlopen="LoadLibrary"
8641 lt_cv_dlopen="dlopen"
8646 # if libdl is installed we need to link against it
8647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
8648 $as_echo_n "checking for dlopen in -ldl... " >&6; }
8649 if ${ac_cv_lib_dl_dlopen+:} false; then :
8650 $as_echo_n "(cached) " >&6
8652 ac_check_lib_save_LIBS=$LIBS
8654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8655 /* end confdefs.h. */
8657 /* Override any GCC internal prototype to avoid an error.
8658 Use char because int might match the return type of a GCC
8659 builtin and then its argument prototype would still apply. */
8672 if ac_fn_c_try_link "$LINENO"; then :
8673 ac_cv_lib_dl_dlopen=yes
8675 ac_cv_lib_dl_dlopen=no
8677 rm -f core conftest.err conftest.$ac_objext \
8678 conftest$ac_exeext conftest.$ac_ext
8679 LIBS=$ac_check_lib_save_LIBS
8681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
8682 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
8683 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
8684 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8689 lt_cv_dlopen_self=yes
8696 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
8697 if test "x$ac_cv_func_shl_load" = xyes; then :
8698 lt_cv_dlopen="shl_load"
8700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
8701 $as_echo_n "checking for shl_load in -ldld... " >&6; }
8702 if ${ac_cv_lib_dld_shl_load+:} false; then :
8703 $as_echo_n "(cached) " >&6
8705 ac_check_lib_save_LIBS=$LIBS
8707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8708 /* end confdefs.h. */
8710 /* Override any GCC internal prototype to avoid an error.
8711 Use char because int might match the return type of a GCC
8712 builtin and then its argument prototype would still apply. */
8725 if ac_fn_c_try_link "$LINENO"; then :
8726 ac_cv_lib_dld_shl_load=yes
8728 ac_cv_lib_dld_shl_load=no
8730 rm -f core conftest.err conftest.$ac_objext \
8731 conftest$ac_exeext conftest.$ac_ext
8732 LIBS=$ac_check_lib_save_LIBS
8734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
8735 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
8736 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
8737 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8739 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
8740 if test "x$ac_cv_func_dlopen" = xyes; then :
8741 lt_cv_dlopen="dlopen"
8743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
8744 $as_echo_n "checking for dlopen in -ldl... " >&6; }
8745 if ${ac_cv_lib_dl_dlopen+:} false; then :
8746 $as_echo_n "(cached) " >&6
8748 ac_check_lib_save_LIBS=$LIBS
8750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8751 /* end confdefs.h. */
8753 /* Override any GCC internal prototype to avoid an error.
8754 Use char because int might match the return type of a GCC
8755 builtin and then its argument prototype would still apply. */
8768 if ac_fn_c_try_link "$LINENO"; then :
8769 ac_cv_lib_dl_dlopen=yes
8771 ac_cv_lib_dl_dlopen=no
8773 rm -f core conftest.err conftest.$ac_objext \
8774 conftest$ac_exeext conftest.$ac_ext
8775 LIBS=$ac_check_lib_save_LIBS
8777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
8778 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
8779 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
8780 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
8783 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
8784 if ${ac_cv_lib_svld_dlopen+:} false; then :
8785 $as_echo_n "(cached) " >&6
8787 ac_check_lib_save_LIBS=$LIBS
8789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8790 /* end confdefs.h. */
8792 /* Override any GCC internal prototype to avoid an error.
8793 Use char because int might match the return type of a GCC
8794 builtin and then its argument prototype would still apply. */
8807 if ac_fn_c_try_link "$LINENO"; then :
8808 ac_cv_lib_svld_dlopen=yes
8810 ac_cv_lib_svld_dlopen=no
8812 rm -f core conftest.err conftest.$ac_objext \
8813 conftest$ac_exeext conftest.$ac_ext
8814 LIBS=$ac_check_lib_save_LIBS
8816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
8817 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
8818 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
8819 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
8822 $as_echo_n "checking for dld_link in -ldld... " >&6; }
8823 if ${ac_cv_lib_dld_dld_link+:} false; then :
8824 $as_echo_n "(cached) " >&6
8826 ac_check_lib_save_LIBS=$LIBS
8828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8829 /* end confdefs.h. */
8831 /* Override any GCC internal prototype to avoid an error.
8832 Use char because int might match the return type of a GCC
8833 builtin and then its argument prototype would still apply. */
8846 if ac_fn_c_try_link "$LINENO"; then :
8847 ac_cv_lib_dld_dld_link=yes
8849 ac_cv_lib_dld_dld_link=no
8851 rm -f core conftest.err conftest.$ac_objext \
8852 conftest$ac_exeext conftest.$ac_ext
8853 LIBS=$ac_check_lib_save_LIBS
8855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
8856 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
8857 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
8858 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8879 if test "x$lt_cv_dlopen" != xno; then
8885 case $lt_cv_dlopen in
8887 save_CPPFLAGS="$CPPFLAGS"
8888 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8890 save_LDFLAGS="$LDFLAGS"
8891 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8894 LIBS="$lt_cv_dlopen_libs $LIBS"
8896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
8897 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
8898 if ${lt_cv_dlopen_self+:} false; then :
8899 $as_echo_n "(cached) " >&6
8901 if test "$cross_compiling" = yes; then :
8902 lt_cv_dlopen_self=cross
8904 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8905 lt_status=$lt_dlunknown
8906 cat > conftest.$ac_ext <<EOF
8907 #line __oline__ "configure"
8908 #include "confdefs.h"
8917 # define LT_DLGLOBAL RTLD_GLOBAL
8920 # define LT_DLGLOBAL DL_GLOBAL
8922 # define LT_DLGLOBAL 0
8926 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8927 find out it does not work in some platform. */
8928 #ifndef LT_DLLAZY_OR_NOW
8930 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8933 # define LT_DLLAZY_OR_NOW DL_LAZY
8936 # define LT_DLLAZY_OR_NOW RTLD_NOW
8939 # define LT_DLLAZY_OR_NOW DL_NOW
8941 # define LT_DLLAZY_OR_NOW 0
8949 extern "C" void exit (int);
8952 void fnord() { int i=42;}
8955 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8956 int status = $lt_dlunknown;
8960 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8961 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8962 /* dlclose (self); */
8968 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8969 (eval $ac_link) 2>&5
8971 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8972 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
8973 (./conftest; exit; ) 2>/dev/null
8976 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8977 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8978 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8981 # compilation failed
8982 lt_cv_dlopen_self=no
8989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
8990 $as_echo "$lt_cv_dlopen_self" >&6; }
8992 if test "x$lt_cv_dlopen_self" = xyes; then
8993 LDFLAGS="$LDFLAGS $link_static_flag"
8994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
8995 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
8996 if ${lt_cv_dlopen_self_static+:} false; then :
8997 $as_echo_n "(cached) " >&6
8999 if test "$cross_compiling" = yes; then :
9000 lt_cv_dlopen_self_static=cross
9002 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9003 lt_status=$lt_dlunknown
9004 cat > conftest.$ac_ext <<EOF
9005 #line __oline__ "configure"
9006 #include "confdefs.h"
9015 # define LT_DLGLOBAL RTLD_GLOBAL
9018 # define LT_DLGLOBAL DL_GLOBAL
9020 # define LT_DLGLOBAL 0
9024 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9025 find out it does not work in some platform. */
9026 #ifndef LT_DLLAZY_OR_NOW
9028 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9031 # define LT_DLLAZY_OR_NOW DL_LAZY
9034 # define LT_DLLAZY_OR_NOW RTLD_NOW
9037 # define LT_DLLAZY_OR_NOW DL_NOW
9039 # define LT_DLLAZY_OR_NOW 0
9047 extern "C" void exit (int);
9050 void fnord() { int i=42;}
9053 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9054 int status = $lt_dlunknown;
9058 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9059 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9060 /* dlclose (self); */
9066 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9067 (eval $ac_link) 2>&5
9069 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9070 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
9071 (./conftest; exit; ) 2>/dev/null
9074 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9075 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9076 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
9079 # compilation failed
9080 lt_cv_dlopen_self_static=no
9087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
9088 $as_echo "$lt_cv_dlopen_self_static" >&6; }
9091 CPPFLAGS="$save_CPPFLAGS"
9092 LDFLAGS="$save_LDFLAGS"
9097 case $lt_cv_dlopen_self in
9098 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9099 *) enable_dlopen_self=unknown ;;
9102 case $lt_cv_dlopen_self_static in
9103 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9104 *) enable_dlopen_self_static=unknown ;;
9109 # Report which librarie types wil actually be built
9110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
9111 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
9112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
9113 $as_echo "$can_build_shared" >&6; }
9115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
9116 $as_echo_n "checking whether to build shared libraries... " >&6; }
9117 test "$can_build_shared" = "no" && enable_shared=no
9119 # On AIX, shared libraries and static libraries use the same namespace, and
9120 # are all built from PIC.
9123 test "$enable_shared" = yes && enable_static=no
9124 if test -n "$RANLIB"; then
9125 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9126 postinstall_cmds='$RANLIB $lib'
9131 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9132 test "$enable_shared" = yes && enable_static=no
9135 darwin* | rhapsody*)
9136 if test "$GCC" = yes; then
9137 archive_cmds_need_lc=no
9139 rhapsody* | darwin1.[012])
9140 allow_undefined_flag='-undefined suppress'
9143 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9144 allow_undefined_flag='-flat_namespace -undefined suppress'
9146 case ${MACOSX_DEPLOYMENT_TARGET} in
9148 allow_undefined_flag='-flat_namespace -undefined suppress'
9151 allow_undefined_flag='-undefined dynamic_lookup'
9157 output_verbose_link_cmd='echo'
9158 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
9159 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9160 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9161 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9162 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9164 hardcode_automatic=yes
9165 hardcode_shlibpath_var=unsupported
9166 whole_archive_flag_spec='-all_load $convenience'
9167 link_all_deplibs=yes
9173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
9174 $as_echo "$enable_shared" >&6; }
9176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
9177 $as_echo_n "checking whether to build static libraries... " >&6; }
9178 # Make sure either enable_shared or enable_static is yes.
9179 test "$enable_shared" = yes || enable_static=yes
9180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
9181 $as_echo "$enable_static" >&6; }
9183 # The else clause should only fire when bootstrapping the
9184 # libtool distribution, otherwise you forgot to ship ltmain.sh
9185 # with your package, and you will get complaints that there are
9186 # no rules to generate ltmain.sh.
9187 if test -f "$ltmain"; then
9188 # See if we are running on zsh, and set the options which allow our commands through
9189 # without removal of \ escapes.
9190 if test -n "${ZSH_VERSION+set}" ; then
9191 setopt NO_GLOB_SUBST
9193 # Now quote all the things that may contain metacharacters while being
9194 # careful not to overquote the AC_SUBSTed values. We take copies of the
9195 # variables and quote the copies for generation of the libtool script.
9196 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
9198 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9199 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9200 deplibs_check_method reload_flag reload_cmds need_locks \
9201 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9202 lt_cv_sys_global_symbol_to_c_name_address \
9203 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9204 old_postinstall_cmds old_postuninstall_cmds \
9208 lt_prog_compiler_wl \
9209 lt_prog_compiler_pic \
9210 lt_prog_compiler_static \
9211 lt_prog_compiler_no_builtin_flag \
9212 export_dynamic_flag_spec \
9213 thread_safe_flag_spec \
9214 whole_archive_flag_spec \
9215 enable_shared_with_static_runtimes \
9217 old_archive_from_new_cmds \
9222 compiler_lib_search_path \
9224 archive_expsym_cmds \
9226 postuninstall_cmds \
9227 old_archive_from_expsyms_cmds \
9228 allow_undefined_flag \
9230 export_symbols_cmds \
9231 hardcode_libdir_flag_spec \
9232 hardcode_libdir_flag_spec_ld \
9233 hardcode_libdir_separator \
9234 hardcode_automatic \
9236 module_expsym_cmds \
9237 lt_cv_prog_compiler_c_o \
9242 old_archive_cmds | \
9243 old_archive_from_new_cmds | \
9245 archive_expsym_cmds | \
9247 module_expsym_cmds | \
9248 old_archive_from_expsyms_cmds | \
9249 export_symbols_cmds | \
9250 extract_expsyms_cmds | reload_cmds | finish_cmds | \
9251 postinstall_cmds | postuninstall_cmds | \
9252 old_postinstall_cmds | old_postuninstall_cmds | \
9253 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9254 # Double-quote double-evaled strings.
9255 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9258 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9264 *'\$0 --fallback-echo"')
9265 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9270 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9272 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ofile" >&5
9273 $as_echo "$as_me: creating $ofile" >&6;}
9275 cat <<__EOF__ >> "$cfgfile"
9278 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9279 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9280 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9282 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9283 # Free Software Foundation, Inc.
9285 # This file is part of GNU Libtool:
9286 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9288 # This program is free software; you can redistribute it and/or modify
9289 # it under the terms of the GNU General Public License as published by
9290 # the Free Software Foundation; either version 2 of the License, or
9291 # (at your option) any later version.
9293 # This program is distributed in the hope that it will be useful, but
9294 # WITHOUT ANY WARRANTY; without even the implied warranty of
9295 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9296 # General Public License for more details.
9298 # You should have received a copy of the GNU General Public License
9299 # along with this program; if not, write to the Free Software
9300 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
9302 # As a special exception to the GNU General Public License, if you
9303 # distribute this file as part of a program that contains a
9304 # configuration script generated by Autoconf, you may include it under
9305 # the same distribution terms that you use for the rest of that program.
9307 # A sed program that does not truncate output.
9310 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9311 Xsed="$SED -e s/^X//"
9313 # The HP-UX ksh and POSIX shell print the target directory to stdout
9315 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
9317 # The names of the tagged configurations supported by this script.
9320 # ### BEGIN LIBTOOL CONFIG
9322 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9324 # Shell to use when invoking shell scripts.
9327 # Whether or not to build shared libraries.
9328 build_libtool_libs=$enable_shared
9330 # Whether or not to build static libraries.
9331 build_old_libs=$enable_static
9333 # Whether or not to add -lc for building shared libraries.
9334 build_libtool_need_lc=$archive_cmds_need_lc
9336 # Whether or not to disallow shared libs when runtime libs are static
9337 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9339 # Whether or not to optimize for fast installation.
9340 fast_install=$enable_fast_install
9343 host_alias=$host_alias
9346 # An echo program that does not interpret backslashes.
9351 AR_FLAGS=$lt_AR_FLAGS
9356 # A language-specific compiler.
9359 # Is the compiler the GNU C compiler?
9365 # The linker used to build libraries.
9368 # Whether we need hard or soft links.
9371 # A BSD-compatible nm program.
9374 # A symbol stripping program
9377 # Used to examine libraries when file_magic_cmd begins "file"
9378 MAGIC_CMD=$MAGIC_CMD
9380 # Used on cygwin: DLL creation program.
9383 # Used on cygwin: object dumper.
9386 # Used on cygwin: assembler.
9389 # The name of the directory that contains temporary libtool files.
9392 # How to create reloadable object files.
9393 reload_flag=$lt_reload_flag
9394 reload_cmds=$lt_reload_cmds
9396 # How to pass a linker flag through the compiler.
9397 wl=$lt_lt_prog_compiler_wl
9399 # Object file suffix (normally "o").
9402 # Old archive suffix (normally "a").
9405 # Shared library suffix (normally ".so").
9408 # Executable file suffix (normally "").
9411 # Additional compiler flags for building library objects.
9412 pic_flag=$lt_lt_prog_compiler_pic
9415 # What is the maximum length of a command?
9416 max_cmd_len=$lt_cv_sys_max_cmd_len
9418 # Does compiler simultaneously support -c and -o options?
9419 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9421 # Must we lock files when doing compilation ?
9422 need_locks=$lt_need_locks
9424 # Do we need the lib prefix for modules?
9425 need_lib_prefix=$need_lib_prefix
9427 # Do we need a version for libraries?
9428 need_version=$need_version
9430 # Whether dlopen is supported.
9431 dlopen_support=$enable_dlopen
9433 # Whether dlopen of programs is supported.
9434 dlopen_self=$enable_dlopen_self
9436 # Whether dlopen of statically linked programs is supported.
9437 dlopen_self_static=$enable_dlopen_self_static
9439 # Compiler flag to prevent dynamic linking.
9440 link_static_flag=$lt_lt_prog_compiler_static
9442 # Compiler flag to turn off builtin functions.
9443 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9445 # Compiler flag to allow reflexive dlopens.
9446 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9448 # Compiler flag to generate shared objects directly from archives.
9449 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9451 # Compiler flag to generate thread-safe objects.
9452 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9454 # Library versioning type.
9455 version_type=$version_type
9457 # Format of library name prefix.
9458 libname_spec=$lt_libname_spec
9460 # List of archive names. First name is the real one, the rest are links.
9461 # The last name is the one that the linker finds with -lNAME.
9462 library_names_spec=$lt_library_names_spec
9464 # The coded name of the library, if different from the real name.
9465 soname_spec=$lt_soname_spec
9467 # Commands used to build and install an old-style archive.
9469 old_archive_cmds=$lt_old_archive_cmds
9470 old_postinstall_cmds=$lt_old_postinstall_cmds
9471 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9473 # Create an old-style archive from a shared archive.
9474 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9476 # Create a temporary old-style archive to link instead of a shared archive.
9477 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9479 # Commands used to build and install a shared archive.
9480 archive_cmds=$lt_archive_cmds
9481 archive_expsym_cmds=$lt_archive_expsym_cmds
9482 postinstall_cmds=$lt_postinstall_cmds
9483 postuninstall_cmds=$lt_postuninstall_cmds
9485 # Commands used to build a loadable module (assumed same as above if empty)
9486 module_cmds=$lt_module_cmds
9487 module_expsym_cmds=$lt_module_expsym_cmds
9489 # Commands to strip libraries.
9490 old_striplib=$lt_old_striplib
9491 striplib=$lt_striplib
9493 # Dependencies to place before the objects being linked to create a
9495 predep_objects=$lt_predep_objects
9497 # Dependencies to place after the objects being linked to create a
9499 postdep_objects=$lt_postdep_objects
9501 # Dependencies to place before the objects being linked to create a
9505 # Dependencies to place after the objects being linked to create a
9507 postdeps=$lt_postdeps
9509 # The library search path used internally by the compiler when linking
9511 compiler_lib_search_path=$lt_compiler_lib_search_path
9513 # Method to check whether dependent libraries are shared objects.
9514 deplibs_check_method=$lt_deplibs_check_method
9516 # Command to use when deplibs_check_method == file_magic.
9517 file_magic_cmd=$lt_file_magic_cmd
9519 # Flag that allows shared libraries with undefined symbols to be built.
9520 allow_undefined_flag=$lt_allow_undefined_flag
9522 # Flag that forces no undefined symbols.
9523 no_undefined_flag=$lt_no_undefined_flag
9525 # Commands used to finish a libtool library installation in a directory.
9526 finish_cmds=$lt_finish_cmds
9528 # Same as above, but a single script fragment to be evaled but not shown.
9529 finish_eval=$lt_finish_eval
9531 # Take the output of nm and produce a listing of raw symbols and C names.
9532 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9534 # Transform the output of nm in a proper C declaration
9535 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9537 # Transform the output of nm in a C name address pair
9538 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9540 # This is the shared library runtime path variable.
9541 runpath_var=$runpath_var
9543 # This is the shared library path variable.
9544 shlibpath_var=$shlibpath_var
9546 # Is shlibpath searched before the hard-coded library search path?
9547 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9549 # How to hardcode a shared library path into an executable.
9550 hardcode_action=$hardcode_action
9552 # Whether we should hardcode library paths into libraries.
9553 hardcode_into_libs=$hardcode_into_libs
9555 # Flag to hardcode \$libdir into a binary during linking.
9556 # This must work even if \$libdir does not exist.
9557 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9559 # If ld is used when linking, flag to hardcode \$libdir into
9560 # a binary during linking. This must work even if \$libdir does
9562 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9564 # Whether we need a single -rpath flag with a separated argument.
9565 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9567 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9569 hardcode_direct=$hardcode_direct
9571 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9573 hardcode_minus_L=$hardcode_minus_L
9575 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9576 # the resulting binary.
9577 hardcode_shlibpath_var=$hardcode_shlibpath_var
9579 # Set to yes if building a shared library automatically hardcodes DIR into the library
9580 # and all subsequent libraries and executables linked against it.
9581 hardcode_automatic=$hardcode_automatic
9583 # Variables whose values should be saved in libtool wrapper scripts and
9584 # restored at relink time.
9585 variables_saved_for_relink="$variables_saved_for_relink"
9587 # Whether libtool must link a program against all its dependency libraries.
9588 link_all_deplibs=$link_all_deplibs
9590 # Compile-time system search path for libraries
9591 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9593 # Run-time system search path for libraries
9594 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9596 # Fix the shell variable \$srcfile for the compiler.
9597 fix_srcfile_path="$fix_srcfile_path"
9599 # Set to yes if exported symbols are required.
9600 always_export_symbols=$always_export_symbols
9602 # The commands to list exported symbols.
9603 export_symbols_cmds=$lt_export_symbols_cmds
9605 # The commands to extract the exported symbol list from a shared archive.
9606 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9608 # Symbols that should not be listed in the preloaded symbols.
9609 exclude_expsyms=$lt_exclude_expsyms
9611 # Symbols that must always be exported.
9612 include_expsyms=$lt_include_expsyms
9614 # ### END LIBTOOL CONFIG
9621 cat <<\EOF >> "$cfgfile"
9623 # AIX sometimes has problems with the GCC collect2 program. For some
9624 # reason, if we set the COLLECT_NAMES environment variable, the problems
9625 # vanish in a puff of smoke.
9626 if test "X${COLLECT_NAMES+set}" != Xset; then
9628 export COLLECT_NAMES
9634 # We use sed instead of cat because bash on DJGPP gets confused if
9635 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9636 # text mode, it properly converts lines to CR/LF. This bash problem
9637 # is reportedly fixed, but why not run on old versions too?
9638 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9640 mv -f "$cfgfile" "$ofile" || \
9641 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9645 # If there is no Makefile yet, we rely on a make rule to execute
9646 # `config.status --recheck' to rerun these tests and create the
9647 # libtool script then.
9648 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9649 if test -f "$ltmain_in"; then
9650 test -f Makefile && make "$ltmain"
9656 ac_cpp='$CPP $CPPFLAGS'
9657 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9658 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9659 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9664 @%:@ Check whether --with-tags was given.
9665 if test "${with_tags+set}" = set; then :
9666 withval=$with_tags; tagnames="$withval"
9670 if test -f "$ltmain" && test -n "$tagnames"; then
9671 if test ! -f "${ofile}"; then
9672 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: output file \`$ofile' does not exist" >&5
9673 $as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9676 if test -z "$LTCC"; then
9677 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9678 if test -z "$LTCC"; then
9679 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9680 $as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9682 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9683 $as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9687 # Extract list of available tagged configurations in $ofile.
9688 # Note that this assumes the entire list is on one line.
9689 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9691 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9692 for tagname in $tagnames; do
9694 # Check whether tagname contains only valid characters
9695 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9697 *) as_fn_error $? "invalid tag name: $tagname" "$LINENO" 5
9701 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9703 as_fn_error $? "tag name \"$tagname\" already exists" "$LINENO" 5
9706 # Update the list of available tags.
9707 if test -n "$tagname"; then
9708 echo appending configuration tag \"$tagname\" to $ofile
9712 if test -n "$CXX" && test "X$CXX" != "Xno"; then
9714 ac_cpp='$CXXCPP $CPPFLAGS'
9715 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9716 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9717 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9722 archive_cmds_need_lc_CXX=no
9723 allow_undefined_flag_CXX=
9724 always_export_symbols_CXX=no
9725 archive_expsym_cmds_CXX=
9726 export_dynamic_flag_spec_CXX=
9727 hardcode_direct_CXX=no
9728 hardcode_libdir_flag_spec_CXX=
9729 hardcode_libdir_flag_spec_ld_CXX=
9730 hardcode_libdir_separator_CXX=
9731 hardcode_minus_L_CXX=no
9732 hardcode_automatic_CXX=no
9734 module_expsym_cmds_CXX=
9735 link_all_deplibs_CXX=unknown
9736 old_archive_cmds_CXX=$old_archive_cmds
9737 no_undefined_flag_CXX=
9738 whole_archive_flag_spec_CXX=
9739 enable_shared_with_static_runtimes_CXX=no
9741 # Dependencies to place before and after the object being linked:
9743 postdep_objects_CXX=
9746 compiler_lib_search_path_CXX=
9748 # Source file extension for C++ test sources.
9751 # Object file extension for compiled C++ test sources.
9755 # Code to be used in simple compile tests
9756 lt_simple_compile_test_code="int some_variable = 0;\n"
9758 # Code to be used in simple link tests
9759 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9761 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9763 # If no C compiler was specified, use CC.
9766 # Allow CC to be a program name with arguments.
9770 # Allow CC to be a program name with arguments.
9775 lt_save_with_gnu_ld=$with_gnu_ld
9776 lt_save_path_LD=$lt_cv_path_LD
9777 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9778 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9780 unset lt_cv_prog_gnu_ld
9782 if test -n "${lt_cv_path_LDCXX+set}"; then
9783 lt_cv_path_LD=$lt_cv_path_LDCXX
9787 test -z "${LDCXX+set}" || LD=$LDCXX
9791 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9793 # We don't want -fno-exception wen compiling C++ code, so set the
9794 # no_builtin_flag separately
9795 if test "$GXX" = yes; then
9796 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9798 lt_prog_compiler_no_builtin_flag_CXX=
9801 if test "$GXX" = yes; then
9802 # Set up default GNU C++ configuration
9805 @%:@ Check whether --with-gnu-ld was given.
9806 if test "${with_gnu_ld+set}" = set; then :
9807 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
9813 if test "$GCC" = yes; then
9814 # Check if gcc -print-prog-name=ld gives a path.
9815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
9816 $as_echo_n "checking for ld used by $CC... " >&6; }
9819 # gcc leaves a trailing carriage return which upsets mingw
9820 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9822 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9825 # Accept absolute paths.
9827 re_direlt='/[^/][^/]*/\.\./'
9828 # Canonicalize the pathname of ld
9829 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9830 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9831 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9833 test -z "$LD" && LD="$ac_prog"
9836 # If it fails, then pretend we aren't using GCC.
9840 # If it is relative, then search for the first ld in PATH.
9844 elif test "$with_gnu_ld" = yes; then
9845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9846 $as_echo_n "checking for GNU ld... " >&6; }
9848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9849 $as_echo_n "checking for non-GNU ld... " >&6; }
9851 if ${lt_cv_path_LD+:} false; then :
9852 $as_echo_n "(cached) " >&6
9854 if test -z "$LD"; then
9855 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9856 for ac_dir in $PATH; do
9858 test -z "$ac_dir" && ac_dir=.
9859 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9860 lt_cv_path_LD="$ac_dir/$ac_prog"
9861 # Check to see if the program is GNU ld. I'd rather use --version,
9862 # but apparently some GNU ld's only accept -v.
9863 # Break only if it was the GNU/non-GNU ld that we prefer.
9864 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9865 *GNU* | *'with BFD'*)
9866 test "$with_gnu_ld" != no && break
9869 test "$with_gnu_ld" != yes && break
9876 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9881 if test -n "$LD"; then
9882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9883 $as_echo "$LD" >&6; }
9885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9886 $as_echo "no" >&6; }
9888 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
9889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9890 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9891 if ${lt_cv_prog_gnu_ld+:} false; then :
9892 $as_echo_n "(cached) " >&6
9894 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9895 case `$LD -v 2>&1 </dev/null` in
9896 *GNU* | *'with BFD'*)
9897 lt_cv_prog_gnu_ld=yes
9900 lt_cv_prog_gnu_ld=no
9904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
9905 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
9906 with_gnu_ld=$lt_cv_prog_gnu_ld
9910 # Check if GNU C++ uses GNU ld as the underlying linker, since the
9911 # archiving commands below assume that GNU ld is being used.
9912 if test "$with_gnu_ld" = yes; then
9913 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9914 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9916 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9917 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9919 # If archive_cmds runs LD, not CC, wlarc should be empty
9920 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9921 # investigate it a little bit more. (MM)
9924 # ancient GNU ld didn't support --whole-archive et. al.
9925 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9926 grep 'no-whole-archive' > /dev/null; then
9927 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9929 whole_archive_flag_spec_CXX=
9935 # A generic and very simple default shared library creation
9936 # command for GNU C++ for the case where it uses the native
9937 # linker, instead of GNU ld. If possible, this setting should
9938 # overridden to take advantage of the native linker features on
9939 # the platform it is being used on.
9940 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9943 # Commands to make compiler produce verbose output that lists
9944 # what "hidden" libraries, object files and flags are used when
9945 # linking a shared library.
9946 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9954 # PORTME: fill in a description of your system's C++ link characteristics
9955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9956 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9960 # FIXME: insert proper C++ library support
9964 if test "$host_cpu" = ia64; then
9965 # On IA64, the linker does run time linking by default, so we don't
9966 # have to do anything special.
9967 aix_use_runtimelinking=no
9968 exp_sym_flag='-Bexport'
9971 aix_use_runtimelinking=no
9973 # Test if we are trying to use run time linking or normal
9974 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9975 # need to do runtime linking.
9976 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9977 for ld_flag in $LDFLAGS; do
9980 aix_use_runtimelinking=yes
9987 exp_sym_flag='-bexport'
9988 no_entry_flag='-bnoentry'
9991 # When large executables or shared objects are built, AIX ld can
9992 # have problems creating the table of contents. If linking a library
9993 # or program results in "error TOC overflow" add -mminimal-toc to
9994 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9995 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9998 hardcode_direct_CXX=yes
9999 hardcode_libdir_separator_CXX=':'
10000 link_all_deplibs_CXX=yes
10002 if test "$GXX" = yes; then
10003 case $host_os in aix4.012|aix4.012.*)
10004 # We only want to do this on AIX 4.2 and lower, the check
10005 # below for broken collect2 doesn't work under 4.3+
10006 collect2name=`${CC} -print-prog-name=collect2`
10007 if test -f "$collect2name" && \
10008 strings "$collect2name" | grep resolve_lib_name >/dev/null
10010 # We have reworked collect2
10011 hardcode_direct_CXX=yes
10013 # We have old collect2
10014 hardcode_direct_CXX=unsupported
10015 # It fails to find uninstalled libraries when the uninstalled
10016 # path is not listed in the libpath. Setting hardcode_minus_L
10017 # to unsupported forces relinking
10018 hardcode_minus_L_CXX=yes
10019 hardcode_libdir_flag_spec_CXX='-L$libdir'
10020 hardcode_libdir_separator_CXX=
10023 shared_flag='-shared'
10026 if test "$host_cpu" = ia64; then
10027 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10028 # chokes on -Wl,-G. The following line is correct:
10031 if test "$aix_use_runtimelinking" = yes; then
10032 shared_flag='${wl}-G'
10034 shared_flag='${wl}-bM:SRE'
10039 # It seems that -bexpall does not export symbols beginning with
10040 # underscore (_), so it is better to generate a list of symbols to export.
10041 always_export_symbols_CXX=yes
10042 if test "$aix_use_runtimelinking" = yes; then
10043 # Warning - without using the other runtime loading flags (-brtl),
10044 # -berok will link without error, but may produce a broken library.
10045 allow_undefined_flag_CXX='-berok'
10046 # Determine the default libpath from the value encoded in an empty executable.
10047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10048 /* end confdefs.h. */
10058 if ac_fn_cxx_try_link "$LINENO"; then :
10060 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10062 # Check for a 64-bit object if we didn't find anything.
10063 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10066 rm -f core conftest.err conftest.$ac_objext \
10067 conftest$ac_exeext conftest.$ac_ext
10068 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10070 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10072 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10074 if test "$host_cpu" = ia64; then
10075 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10076 allow_undefined_flag_CXX="-z nodefs"
10077 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
10079 # Determine the default libpath from the value encoded in an empty executable.
10080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10081 /* end confdefs.h. */
10091 if ac_fn_cxx_try_link "$LINENO"; then :
10093 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10095 # Check for a 64-bit object if we didn't find anything.
10096 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10099 rm -f core conftest.err conftest.$ac_objext \
10100 conftest$ac_exeext conftest.$ac_ext
10101 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10103 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10104 # Warning - without using the other run time loading flags,
10105 # -berok will link without error, but may produce a broken library.
10106 no_undefined_flag_CXX=' ${wl}-bernotok'
10107 allow_undefined_flag_CXX=' ${wl}-berok'
10108 # -bexpall does not export symbols beginning with underscore (_)
10109 always_export_symbols_CXX=yes
10110 # Exported symbols can be pulled into shared objects from archives
10111 whole_archive_flag_spec_CXX=' '
10112 archive_cmds_need_lc_CXX=yes
10113 # This is similar to how AIX traditionally builds it's shared libraries.
10114 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10119 case $cc_basename in
10121 # FIXME: insert proper C++ library support
10127 cygwin* | mingw* | pw32*)
10128 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10129 # as there is no search path for DLLs.
10130 hardcode_libdir_flag_spec_CXX='-L$libdir'
10131 allow_undefined_flag_CXX=unsupported
10132 always_export_symbols_CXX=no
10133 enable_shared_with_static_runtimes_CXX=yes
10135 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10136 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
10137 # If the export-symbols file already is a .def file (1st line
10138 # is EXPORTS), use it as is; otherwise, prepend...
10139 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10140 cp $export_symbols $output_objdir/$soname.def;
10142 echo EXPORTS > $output_objdir/$soname.def;
10143 cat $export_symbols >> $output_objdir/$soname.def;
10145 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
10151 darwin* | rhapsody*)
10152 if test "$GXX" = yes; then
10153 archive_cmds_need_lc_CXX=no
10155 rhapsody* | darwin1.[012])
10156 allow_undefined_flag_CXX='-undefined suppress'
10159 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10160 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10162 case ${MACOSX_DEPLOYMENT_TARGET} in
10164 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10167 allow_undefined_flag_CXX='-undefined dynamic_lookup'
10173 lt_int_apple_cc_single_mod=no
10174 output_verbose_link_cmd='echo'
10175 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
10176 lt_int_apple_cc_single_mod=yes
10178 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10179 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10181 archive_cmds_CXX='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10183 module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10185 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10186 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10187 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10189 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10191 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10192 hardcode_direct_CXX=no
10193 hardcode_automatic_CXX=yes
10194 hardcode_shlibpath_var_CXX=unsupported
10195 whole_archive_flag_spec_CXX='-all_load $convenience'
10196 link_all_deplibs_CXX=yes
10203 case $cc_basename in
10205 # FIXME: insert proper C++ library support
10209 # Green Hills C++ Compiler
10210 # FIXME: insert proper C++ library support
10214 # FIXME: insert proper C++ library support
10220 # C++ shared libraries reported to be fairly broken before switch to ELF
10224 archive_cmds_need_lc_CXX=no
10226 freebsd* | kfreebsd*-gnu)
10227 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10234 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10235 hardcode_libdir_separator_CXX=:
10236 export_dynamic_flag_spec_CXX='${wl}-E'
10237 hardcode_direct_CXX=yes
10238 hardcode_minus_L_CXX=yes # Not in the search PATH,
10239 # but as the default
10240 # location of the library.
10242 case $cc_basename in
10244 # FIXME: insert proper C++ library support
10248 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10249 # Commands to make compiler produce verbose output that lists
10250 # what "hidden" libraries, object files and flags are used when
10251 # linking a shared library.
10253 # There doesn't appear to be a way to prevent this compiler from
10254 # explicitly linking system object files so we need to strip them
10255 # from the output so that they don't get included in the library
10257 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | egrep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10260 if test "$GXX" = yes; then
10261 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10263 # FIXME: insert proper C++ library support
10270 if test $with_gnu_ld = no; then
10271 case "$host_cpu" in
10273 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10274 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10275 hardcode_libdir_separator_CXX=:
10278 hardcode_libdir_flag_spec_CXX='-L$libdir'
10281 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10282 hardcode_libdir_separator_CXX=:
10283 export_dynamic_flag_spec_CXX='${wl}-E'
10287 case "$host_cpu" in
10289 hardcode_direct_CXX=no
10290 hardcode_shlibpath_var_CXX=no
10293 hardcode_direct_CXX=no
10294 hardcode_shlibpath_var_CXX=no
10295 hardcode_minus_L_CXX=yes # Not in the search PATH,
10296 # but as the default
10297 # location of the library.
10300 hardcode_direct_CXX=yes
10301 hardcode_minus_L_CXX=yes # Not in the search PATH,
10302 # but as the default
10303 # location of the library.
10307 case $cc_basename in
10309 # FIXME: insert proper C++ library support
10313 case "$host_cpu" in
10315 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10318 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10321 # Commands to make compiler produce verbose output that lists
10322 # what "hidden" libraries, object files and flags are used when
10323 # linking a shared library.
10325 # There doesn't appear to be a way to prevent this compiler from
10326 # explicitly linking system object files so we need to strip them
10327 # from the output so that they don't get included in the library
10329 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10332 if test "$GXX" = yes; then
10333 if test $with_gnu_ld = no; then
10334 case "$host_cpu" in
10336 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10339 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10344 # FIXME: insert proper C++ library support
10351 case $cc_basename in
10354 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
10356 # Archives containing C++ object files must be created using
10357 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10358 # necessary to make sure instantiated templates are included
10360 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10363 if test "$GXX" = yes; then
10364 if test "$with_gnu_ld" = no; then
10365 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
10367 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
10370 link_all_deplibs_CXX=yes
10373 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10374 hardcode_libdir_separator_CXX=:
10377 case $cc_basename in
10379 # Kuck and Associates, Inc. (KAI) C++ Compiler
10381 # KCC will only create a shared library if the output file
10382 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10383 # to its proper name (with version) after linking.
10384 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
10385 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
10386 # Commands to make compiler produce verbose output that lists
10387 # what "hidden" libraries, object files and flags are used when
10388 # linking a shared library.
10390 # There doesn't appear to be a way to prevent this compiler from
10391 # explicitly linking system object files so we need to strip them
10392 # from the output so that they don't get included in the library
10394 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10396 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10397 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10399 # Archives containing C++ object files must be created using
10400 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10401 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10406 archive_cmds_need_lc_CXX=no
10407 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10408 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10409 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10410 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10411 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10415 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10416 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
10418 runpath_var=LD_RUN_PATH
10419 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10420 hardcode_libdir_separator_CXX=:
10422 # Commands to make compiler produce verbose output that lists
10423 # what "hidden" libraries, object files and flags are used when
10424 # linking a shared library.
10426 # There doesn't appear to be a way to prevent this compiler from
10427 # explicitly linking system object files so we need to strip them
10428 # from the output so that they don't get included in the library
10430 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10435 # FIXME: insert proper C++ library support
10439 # FIXME: insert proper C++ library support
10443 case $cc_basename in
10445 # FIXME: insert proper C++ library support
10449 # FIXME: insert proper C++ library support
10454 netbsd* | knetbsd*-gnu)
10455 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10456 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10458 hardcode_libdir_flag_spec_CXX='-R$libdir'
10459 hardcode_direct_CXX=yes
10460 hardcode_shlibpath_var_CXX=no
10462 # Workaround some broken pre-1.5 toolchains
10463 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10466 case $cc_basename in
10468 # Kuck and Associates, Inc. (KAI) C++ Compiler
10470 # KCC will only create a shared library if the output file
10471 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10472 # to its proper name (with version) after linking.
10473 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
10475 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10476 hardcode_libdir_separator_CXX=:
10478 # Archives containing C++ object files must be created using
10479 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10480 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10484 # Rational C++ 2.4.1
10485 # FIXME: insert proper C++ library support
10489 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10490 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
10492 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10493 hardcode_libdir_separator_CXX=:
10495 # Commands to make compiler produce verbose output that lists
10496 # what "hidden" libraries, object files and flags are used when
10497 # linking a shared library.
10499 # There doesn't appear to be a way to prevent this compiler from
10500 # explicitly linking system object files so we need to strip them
10501 # from the output so that they don't get included in the library
10503 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10506 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10507 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10508 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
10510 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10511 hardcode_libdir_separator_CXX=:
10513 # Commands to make compiler produce verbose output that lists
10514 # what "hidden" libraries, object files and flags are used when
10515 # linking a shared library.
10516 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10519 # FIXME: insert proper C++ library support
10526 case $cc_basename in
10528 # Kuck and Associates, Inc. (KAI) C++ Compiler
10530 # KCC will only create a shared library if the output file
10531 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10532 # to its proper name (with version) after linking.
10533 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
10535 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10536 hardcode_libdir_separator_CXX=:
10538 # Archives containing C++ object files must be created using
10539 # the KAI C++ compiler.
10540 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10543 # Rational C++ 2.4.1
10544 # FIXME: insert proper C++ library support
10548 allow_undefined_flag_CXX=' -expect_unresolved \*'
10549 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
10550 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10551 echo "-hidden">> $lib.exp~
10552 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib~
10555 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10556 hardcode_libdir_separator_CXX=:
10558 # Commands to make compiler produce verbose output that lists
10559 # what "hidden" libraries, object files and flags are used when
10560 # linking a shared library.
10562 # There doesn't appear to be a way to prevent this compiler from
10563 # explicitly linking system object files so we need to strip them
10564 # from the output so that they don't get included in the library
10566 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10569 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10570 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10571 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
10573 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10574 hardcode_libdir_separator_CXX=:
10576 # Commands to make compiler produce verbose output that lists
10577 # what "hidden" libraries, object files and flags are used when
10578 # linking a shared library.
10579 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10582 # FIXME: insert proper C++ library support
10589 # FIXME: insert proper C++ library support
10593 archive_cmds_need_lc_CXX=no
10594 case $cc_basename in
10596 # FIXME: insert proper C++ library support
10600 # FIXME: insert proper C++ library support
10606 case $cc_basename in
10609 # FIXME: insert proper C++ library support
10614 # FIXME: insert proper C++ library support
10618 # FIXME: insert proper C++ library support
10624 case $cc_basename in
10626 # Sun C++ 4.2, 5.x and Centerline C++
10627 no_undefined_flag_CXX=' -zdefs'
10628 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10629 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10630 $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10632 hardcode_libdir_flag_spec_CXX='-R$libdir'
10633 hardcode_shlibpath_var_CXX=no
10635 solaris2.0-5 | solaris2.0-5.*) ;;
10637 # The C++ compiler is used as linker so we must use $wl
10638 # flag to pass the commands to the underlying system
10640 # Supported since Solaris 2.6 (maybe 2.5.1?)
10641 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10644 link_all_deplibs_CXX=yes
10646 # Commands to make compiler produce verbose output that lists
10647 # what "hidden" libraries, object files and flags are used when
10648 # linking a shared library.
10650 # There doesn't appear to be a way to prevent this compiler from
10651 # explicitly linking system object files so we need to strip them
10652 # from the output so that they don't get included in the library
10654 output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10656 # Archives containing C++ object files must be created using
10657 # "CC -xar", where "CC" is the Sun C++ compiler. This is
10658 # necessary to make sure instantiated templates are included
10660 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10663 # Green Hills C++ Compiler
10664 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10666 # The C++ compiler must be used to create the archive.
10667 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10670 # GNU C++ compiler with Solaris linker
10671 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10672 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10673 if $CC --version | grep -v '^2\.7' > /dev/null; then
10674 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10675 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10676 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10678 # Commands to make compiler produce verbose output that lists
10679 # what "hidden" libraries, object files and flags are used when
10680 # linking a shared library.
10681 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10683 # g++ 2.7 appears to require `-G' NOT `-shared' on this
10685 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10686 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10687 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10689 # Commands to make compiler produce verbose output that lists
10690 # what "hidden" libraries, object files and flags are used when
10691 # linking a shared library.
10692 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10695 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10700 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10701 archive_cmds_need_lc_CXX=no
10704 case $cc_basename in
10706 # NonStop-UX NCC 3.20
10707 # FIXME: insert proper C++ library support
10711 # FIXME: insert proper C++ library support
10717 # FIXME: insert proper C++ library support
10721 # FIXME: insert proper C++ library support
10725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
10726 $as_echo "$ld_shlibs_CXX" >&6; }
10727 test "$ld_shlibs_CXX" = no && can_build_shared=no
10733 cat > conftest.$ac_ext <<EOF
10737 Foo (void) { a = 0; }
10743 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10744 (eval $ac_compile) 2>&5
10746 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10747 test $ac_status = 0; }; then
10748 # Parse the compiler output and extract the necessary
10749 # objects, libraries and library flags.
10751 # Sentinel used to keep track of whether or not we are before
10752 # the conftest object file.
10753 pre_test_object_deps_done=no
10755 # The `*' in the case matches for architectures that use `case' in
10756 # $output_verbose_cmd can trigger glob expansion during the loop
10757 # eval without this substitution.
10758 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10760 for p in `eval $output_verbose_link_cmd`; do
10764 # Some compilers place space between "-{L,R}" and the path.
10765 # Remove the space.
10766 if test $p = "-L" \
10767 || test $p = "-R"; then
10774 if test "$pre_test_object_deps_done" = no; then
10777 # Internal compiler library paths should come after those
10778 # provided the user. The postdeps already come after the
10779 # user supplied libs so there is no need to process them.
10780 if test -z "$compiler_lib_search_path_CXX"; then
10781 compiler_lib_search_path_CXX="${prev}${p}"
10783 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10786 # The "-l" case would never come before the object being
10787 # linked, so don't bother handling this case.
10790 if test -z "$postdeps_CXX"; then
10791 postdeps_CXX="${prev}${p}"
10793 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10799 # This assumes that the test object file only shows up
10800 # once in the compiler output.
10801 if test "$p" = "conftest.$objext"; then
10802 pre_test_object_deps_done=yes
10806 if test "$pre_test_object_deps_done" = no; then
10807 if test -z "$predep_objects_CXX"; then
10808 predep_objects_CXX="$p"
10810 predep_objects_CXX="$predep_objects_CXX $p"
10813 if test -z "$postdep_objects_CXX"; then
10814 postdep_objects_CXX="$p"
10816 postdep_objects_CXX="$postdep_objects_CXX $p"
10821 *) ;; # Ignore the rest.
10829 echo "libtool.m4: error: problem compiling CXX test program"
10832 $rm -f confest.$objext
10834 case " $postdeps_CXX " in
10835 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
10838 lt_prog_compiler_wl_CXX=
10839 lt_prog_compiler_pic_CXX=
10840 lt_prog_compiler_static_CXX=
10842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10843 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10845 # C++ specific cases for pic, static, wl, etc.
10846 if test "$GXX" = yes; then
10847 lt_prog_compiler_wl_CXX='-Wl,'
10848 lt_prog_compiler_static_CXX='-static'
10852 # All AIX code is PIC.
10853 if test "$host_cpu" = ia64; then
10854 # AIX 5 now supports IA64 processor
10855 lt_prog_compiler_static_CXX='-Bstatic'
10859 # FIXME: we need at least 68020 code to build shared libraries, but
10860 # adding the `-m68020' flag to GCC prevents building anything better,
10862 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10864 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10865 # PIC is the default for these OSes.
10867 mingw* | os2* | pw32*)
10868 # This hack is so that the source file can tell whether it is being
10869 # built for inclusion in a dll (and should export symbols for example).
10870 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10872 darwin* | rhapsody*)
10873 # PIC is the default on this platform
10874 # Common symbols not allowed in MH_DYLIB files
10875 lt_prog_compiler_pic_CXX='-fno-common'
10878 # DJGPP does not support shared libraries at all
10879 lt_prog_compiler_pic_CXX=
10882 if test -d /usr/nec; then
10883 lt_prog_compiler_pic_CXX=-Kconform_pic
10887 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10888 # not for PA HP-UX.
10889 case "$host_cpu" in
10893 lt_prog_compiler_pic_CXX='-fPIC'
10898 lt_prog_compiler_pic_CXX='-fPIC'
10904 # All AIX code is PIC.
10905 if test "$host_cpu" = ia64; then
10906 # AIX 5 now supports IA64 processor
10907 lt_prog_compiler_static_CXX='-Bstatic'
10909 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10913 case $cc_basename in
10915 # Green Hills C++ Compiler
10916 # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
10921 case $cc_basename in
10923 lt_prog_compiler_pic_CXX='-KPIC'
10926 # Green Hills C++ Compiler
10927 lt_prog_compiler_pic_CXX='-pic'
10933 freebsd* | kfreebsd*-gnu)
10934 # FreeBSD uses GNU C++
10936 hpux9* | hpux10* | hpux11*)
10937 case $cc_basename in
10939 lt_prog_compiler_wl_CXX='-Wl,'
10940 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10941 if test "$host_cpu" != ia64; then
10942 lt_prog_compiler_pic_CXX='+Z'
10946 lt_prog_compiler_wl_CXX='-Wl,'
10947 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10948 case "$host_cpu" in
10953 lt_prog_compiler_pic_CXX='+Z'
10961 irix5* | irix6* | nonstopux*)
10962 case $cc_basename in
10964 lt_prog_compiler_wl_CXX='-Wl,'
10965 lt_prog_compiler_static_CXX='-non_shared'
10966 # CC pic flag -KPIC is the default.
10973 case $cc_basename in
10976 lt_prog_compiler_wl_CXX='--backend -Wl,'
10977 lt_prog_compiler_pic_CXX='-fPIC'
10981 lt_prog_compiler_wl_CXX='-Wl,'
10982 lt_prog_compiler_pic_CXX='-KPIC'
10983 lt_prog_compiler_static_CXX='-static'
10987 # Make sure the PIC flag is empty. It appears that all Alpha
10988 # Linux and Compaq Tru64 Unix objects are PIC.
10989 lt_prog_compiler_pic_CXX=
10990 lt_prog_compiler_static_CXX='-non_shared'
11001 case $cc_basename in
11003 lt_prog_compiler_pic_CXX='-W c,exportall'
11009 netbsd* | knetbsd*-gnu)
11011 osf3* | osf4* | osf5*)
11012 case $cc_basename in
11014 lt_prog_compiler_wl_CXX='--backend -Wl,'
11017 # Rational C++ 2.4.1
11018 lt_prog_compiler_pic_CXX='-pic'
11021 # Digital/Compaq C++
11022 lt_prog_compiler_wl_CXX='-Wl,'
11023 # Make sure the PIC flag is empty. It appears that all Alpha
11024 # Linux and Compaq Tru64 Unix objects are PIC.
11025 lt_prog_compiler_pic_CXX=
11026 lt_prog_compiler_static_CXX='-non_shared'
11035 case $cc_basename in
11037 lt_prog_compiler_pic_CXX='-fPIC'
11044 case $cc_basename in
11046 # Sun C++ 4.2, 5.x and Centerline C++
11047 lt_prog_compiler_pic_CXX='-KPIC'
11048 lt_prog_compiler_static_CXX='-Bstatic'
11049 lt_prog_compiler_wl_CXX='-Qoption ld '
11052 # Green Hills C++ Compiler
11053 lt_prog_compiler_pic_CXX='-PIC'
11060 case $cc_basename in
11063 lt_prog_compiler_pic_CXX='-pic'
11064 lt_prog_compiler_static_CXX='-Bstatic'
11068 lt_prog_compiler_pic_CXX='-pic'
11075 case $cc_basename in
11077 # NonStop-UX NCC 3.20
11078 lt_prog_compiler_pic_CXX='-KPIC'
11089 lt_prog_compiler_can_build_shared_CXX=no
11094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
11095 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
11098 # Check to make sure the PIC flag actually works.
11100 if test -n "$lt_prog_compiler_pic_CXX"; then
11102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11103 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
11104 if ${lt_prog_compiler_pic_works_CXX+:} false; then :
11105 $as_echo_n "(cached) " >&6
11107 lt_prog_compiler_pic_works_CXX=no
11108 ac_outfile=conftest.$ac_objext
11109 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11110 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11111 # Insert the option either (1) after the last *FLAGS variable, or
11112 # (2) before a word containing "conftest.", or (3) at the end.
11113 # Note that $ac_compile itself does not contain backslashes and begins
11114 # with a dollar sign (not a hyphen), so the echo should work correctly.
11115 # The option is referenced via a variable to avoid confusing sed.
11116 lt_compile=`echo "$ac_compile" | $SED \
11117 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11118 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11119 -e 's:$: $lt_compiler_flag:'`
11120 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
11121 (eval "$lt_compile" 2>conftest.err)
11123 cat conftest.err >&5
11124 echo "$as_me:__oline__: \$? = $ac_status" >&5
11125 if (exit $ac_status) && test -s "$ac_outfile"; then
11126 # The compiler can only warn and ignore the option if not recognized
11127 # So say no if there are warnings
11128 if test ! -s conftest.err; then
11129 lt_prog_compiler_pic_works_CXX=yes
11135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_works_CXX" >&5
11136 $as_echo "$lt_prog_compiler_pic_works_CXX" >&6; }
11138 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11139 case $lt_prog_compiler_pic_CXX in
11141 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11144 lt_prog_compiler_pic_CXX=
11145 lt_prog_compiler_can_build_shared_CXX=no
11150 # For platforms which do not support PIC, -DPIC is meaningless:
11152 lt_prog_compiler_pic_CXX=
11155 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11160 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11161 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
11162 $as_echo_n "(cached) " >&6
11164 lt_cv_prog_compiler_c_o_CXX=no
11165 $rm -r conftest 2>/dev/null
11169 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11171 lt_compiler_flag="-o out/conftest2.$ac_objext"
11172 # Insert the option either (1) after the last *FLAGS variable, or
11173 # (2) before a word containing "conftest.", or (3) at the end.
11174 # Note that $ac_compile itself does not contain backslashes and begins
11175 # with a dollar sign (not a hyphen), so the echo should work correctly.
11176 lt_compile=`echo "$ac_compile" | $SED \
11177 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11178 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11179 -e 's:$: $lt_compiler_flag:'`
11180 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
11181 (eval "$lt_compile" 2>out/conftest.err)
11183 cat out/conftest.err >&5
11184 echo "$as_me:__oline__: \$? = $ac_status" >&5
11185 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11187 # The compiler can only warn and ignore the option if not recognized
11188 # So say no if there are warnings
11189 if test ! -s out/conftest.err; then
11190 lt_cv_prog_compiler_c_o_CXX=yes
11195 # SGI C++ compiler will create directory out/ii_files/ for
11196 # template instantiation
11197 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11198 $rm out/* && rmdir out
11204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11205 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
11208 hard_links="nottested"
11209 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11210 # do not overwrite the value of need_locks provided by the user
11211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
11212 $as_echo_n "checking if we can lock with hard links... " >&6; }
11215 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11217 ln conftest.a conftest.b 2>&5 || hard_links=no
11218 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
11220 $as_echo "$hard_links" >&6; }
11221 if test "$hard_links" = no; then
11222 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11223 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11231 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11233 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11236 # If we're using GNU nm, then we don't want the "-C" option.
11237 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11238 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11239 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
11241 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
11245 export_symbols_cmds_CXX="$ltdll_cmds"
11248 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11251 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
11256 $as_echo "$ld_shlibs_CXX" >&6; }
11257 test "$ld_shlibs_CXX" = no && can_build_shared=no
11259 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11260 if test "$GCC" = yes; then
11261 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11265 # Do we need to explicitly link libc?
11267 case "x$archive_cmds_need_lc_CXX" in
11269 # Assume -lc should be added
11270 archive_cmds_need_lc_CXX=yes
11272 if test "$enable_shared" = yes && test "$GCC" = yes; then
11273 case $archive_cmds_CXX in
11275 # FIXME: we may have to deal with multi-command sequences.
11278 # Test whether the compiler implicitly links with -lc since on some
11279 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11280 # to ld, don't add -lc before -lgcc.
11281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11282 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11284 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11286 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11287 (eval $ac_compile) 2>&5
11289 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11290 test $ac_status = 0; } 2>conftest.err; then
11293 libobjs=conftest.$ac_objext
11295 wl=$lt_prog_compiler_wl_CXX
11301 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11302 allow_undefined_flag_CXX=
11303 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11304 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11306 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11307 test $ac_status = 0; }
11309 archive_cmds_need_lc_CXX=no
11311 archive_cmds_need_lc_CXX=yes
11313 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11315 cat conftest.err 1>&5
11318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
11319 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
11326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11327 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11328 library_names_spec=
11329 libname_spec='lib$name'
11333 postuninstall_cmds=
11337 shlibpath_overrides_runpath=unknown
11339 dynamic_linker="$host_os ld.so"
11340 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11341 if test "$GCC" = yes; then
11342 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11343 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11344 # if the path contains ";" then we assume it to be the separator
11345 # otherwise default to the standard path separator (i.e. ":") - it is
11346 # assumed that no part of a normal pathname contains ";" but that should
11347 # okay in the real world where ";" in dirpaths is itself problematic.
11348 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11350 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11353 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11355 need_lib_prefix=unknown
11356 hardcode_into_libs=no
11358 # when you set need_version to no, make sure it does not cause -set_version
11359 # flags to be left without arguments
11360 need_version=unknown
11365 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11366 shlibpath_var=LIBPATH
11368 # AIX 3 has no versioning support, so we append a major version to the name.
11369 soname_spec='${libname}${release}${shared_ext}$major'
11376 hardcode_into_libs=yes
11377 if test "$host_cpu" = ia64; then
11378 # AIX 5 supports IA64
11379 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11380 shlibpath_var=LD_LIBRARY_PATH
11382 # With GCC up to 2.95.x, collect2 would create an import file
11383 # for dependence libraries. The import file would start with
11384 # the line `#! .'. This would cause the generated library to
11385 # depend on `.', always an invalid library. This was fixed in
11386 # development snapshots of GCC prior to 3.0.
11388 aix4 | aix4.[01] | aix4.[01].*)
11389 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11391 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11394 can_build_shared=no
11398 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11399 # soname into executable. Probably we can add versioning support to
11400 # collect2, so additional links can be useful in future.
11401 if test "$aix_use_runtimelinking" = yes; then
11402 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11403 # instead of lib<name>.a to let people know that these are not
11404 # typical AIX shared libraries.
11405 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11407 # We preserve .a as extension for shared libraries through AIX4.2
11408 # and later when we are not doing run time linking.
11409 library_names_spec='${libname}${release}.a $libname.a'
11410 soname_spec='${libname}${release}${shared_ext}$major'
11412 shlibpath_var=LIBPATH
11417 library_names_spec='$libname.ixlibrary $libname.a'
11418 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11419 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
11423 library_names_spec='${libname}${shared_ext}'
11424 dynamic_linker="$host_os ld.so"
11425 shlibpath_var=LIBRARY_PATH
11431 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11432 soname_spec='${libname}${release}${shared_ext}$major'
11433 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11434 shlibpath_var=LD_LIBRARY_PATH
11435 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11436 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11437 # the default ld.so.conf also contains /usr/contrib/lib and
11438 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11439 # libtool to hard-code these into programs
11442 cygwin* | mingw* | pw32*)
11443 version_type=windows
11448 case $GCC,$host_os in
11449 yes,cygwin* | yes,mingw* | yes,pw32*)
11450 library_names_spec='$libname.dll.a'
11451 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11452 postinstall_cmds='base_file=`basename \${file}`~
11453 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11454 dldir=$destdir/`dirname \$dlpath`~
11455 test -d \$dldir || mkdir -p \$dldir~
11456 $install_prog $dir/$dlname \$dldir/$dlname'
11457 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11458 dlpath=$dir/\$dldll~
11460 shlibpath_overrides_runpath=yes
11464 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11465 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11466 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11469 # MinGW DLLs use traditional 'lib' prefix
11470 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11471 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11472 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11473 # It is most probably a Windows format PATH printed by
11474 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11475 # path with ; separators, and with drive letters. We can handle the
11476 # drive letters (cygwin fileutils understands them), so leave them,
11477 # especially as we might pass files found there to a mingw objdump,
11478 # which wouldn't understand a cygwinified path. Ahh.
11479 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11481 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11485 # pw32 DLLs use 'pw' prefix rather than 'lib'
11486 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11492 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11495 dynamic_linker='Win32 ld.exe'
11496 # FIXME: first we should search . and the directory the executable is in
11500 darwin* | rhapsody*)
11501 dynamic_linker="$host_os dyld"
11502 version_type=darwin
11505 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11506 soname_spec='${libname}${release}${major}$shared_ext'
11507 shlibpath_overrides_runpath=yes
11508 shlibpath_var=DYLD_LIBRARY_PATH
11509 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
11510 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11511 if test "$GCC" = yes; then
11512 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
11514 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11516 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11523 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11524 soname_spec='${libname}${release}${shared_ext}$major'
11525 shlibpath_var=LD_LIBRARY_PATH
11536 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11537 soname_spec='${libname}${release}${shared_ext}$major'
11538 shlibpath_var=LD_LIBRARY_PATH
11539 shlibpath_overrides_runpath=no
11540 hardcode_into_libs=yes
11541 dynamic_linker='GNU ld.so'
11545 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11546 version_type=freebsd-$objformat
11547 case $version_type in
11549 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11554 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11558 shlibpath_var=LD_LIBRARY_PATH
11561 shlibpath_overrides_runpath=yes
11563 freebsd3.01* | freebsdelf3.01*)
11564 shlibpath_overrides_runpath=yes
11565 hardcode_into_libs=yes
11568 shlibpath_overrides_runpath=no
11569 hardcode_into_libs=yes
11578 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11579 soname_spec='${libname}${release}${shared_ext}$major'
11580 shlibpath_var=LD_LIBRARY_PATH
11581 hardcode_into_libs=yes
11584 hpux9* | hpux10* | hpux11*)
11585 # Give a soname corresponding to the major version so that dld.sl refuses to
11586 # link against other versions.
11590 case "$host_cpu" in
11593 hardcode_into_libs=yes
11594 dynamic_linker="$host_os dld.so"
11595 shlibpath_var=LD_LIBRARY_PATH
11596 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11597 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11598 soname_spec='${libname}${release}${shared_ext}$major'
11599 if test "X$HPUX_IA64_MODE" = X32; then
11600 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11602 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11604 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11608 hardcode_into_libs=yes
11609 dynamic_linker="$host_os dld.sl"
11610 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11611 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11612 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11613 soname_spec='${libname}${release}${shared_ext}$major'
11614 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11615 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11619 dynamic_linker="$host_os dld.sl"
11620 shlibpath_var=SHLIB_PATH
11621 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11623 soname_spec='${libname}${release}${shared_ext}$major'
11626 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11627 postinstall_cmds='chmod 555 $lib'
11630 irix5* | irix6* | nonstopux*)
11632 nonstopux*) version_type=nonstopux ;;
11634 if test "$lt_cv_prog_gnu_ld" = yes; then
11642 soname_spec='${libname}${release}${shared_ext}$major'
11643 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11645 irix5* | nonstopux*)
11646 libsuff= shlibsuff=
11649 case $LD in # libtool.m4 will add one of these switches to LD
11650 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11651 libsuff= shlibsuff= libmagic=32-bit;;
11652 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11653 libsuff=32 shlibsuff=N32 libmagic=N32;;
11654 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11655 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11656 *) libsuff= shlibsuff= libmagic=never-match;;
11660 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11661 shlibpath_overrides_runpath=no
11662 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11663 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11664 hardcode_into_libs=yes
11667 # No shared lib support for Linux oldld, aout, or coff.
11668 linux*oldld* | linux*aout* | linux*coff*)
11672 # This must be Linux ELF.
11677 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11678 soname_spec='${libname}${release}${shared_ext}$major'
11679 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11680 shlibpath_var=LD_LIBRARY_PATH
11681 shlibpath_overrides_runpath=no
11682 # This implies no fast_install, which is unacceptable.
11683 # Some rework will be needed to allow for fast_install
11684 # before this can be enabled.
11685 hardcode_into_libs=yes
11687 # Append ld.so.conf contents to the search path
11688 if test -f /etc/ld.so.conf; then
11689 ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
11690 sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
11693 # We used to test for /lib/ld.so.1 and disable shared libraries on
11694 # powerpc, because MkLinux only supported shared libraries with the
11695 # GNU dynamic linker. Since this was broken with cross compilers,
11696 # most powerpc-linux boxes support dynamic linking these days and
11697 # people can always --disable-shared, the test was removed, and we
11698 # assume the GNU/Linux dynamic linker is in use.
11699 dynamic_linker='GNU/Linux ld.so'
11706 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11707 soname_spec='${libname}${release}${shared_ext}$major'
11708 shlibpath_var=LD_LIBRARY_PATH
11709 shlibpath_overrides_runpath=no
11710 hardcode_into_libs=yes
11711 dynamic_linker='GNU ld.so'
11718 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11719 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11720 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11721 dynamic_linker='NetBSD (a.out) ld.so'
11723 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11724 soname_spec='${libname}${release}${shared_ext}$major'
11725 dynamic_linker='NetBSD ld.elf_so'
11727 shlibpath_var=LD_LIBRARY_PATH
11728 shlibpath_overrides_runpath=yes
11729 hardcode_into_libs=yes
11734 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11735 shlibpath_var=LD_LIBRARY_PATH
11736 shlibpath_overrides_runpath=yes
11743 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11744 soname_spec='${libname}${release}${shared_ext}$major'
11745 shlibpath_var=LD_LIBRARY_PATH
11746 shlibpath_overrides_runpath=yes
11753 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11754 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11755 shlibpath_var=LD_LIBRARY_PATH
11756 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11758 openbsd2.[89] | openbsd2.[89].*)
11759 shlibpath_overrides_runpath=no
11762 shlibpath_overrides_runpath=yes
11766 shlibpath_overrides_runpath=yes
11771 libname_spec='$name'
11774 library_names_spec='$libname${shared_ext} $libname.a'
11775 dynamic_linker='OS/2 ld.exe'
11776 shlibpath_var=LIBPATH
11779 osf3* | osf4* | osf5*)
11783 soname_spec='${libname}${release}${shared_ext}$major'
11784 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11785 shlibpath_var=LD_LIBRARY_PATH
11786 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11787 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11792 soname_spec='${libname}${release}${shared_ext}$major'
11793 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11794 shlibpath_var=LD_LIBRARY_PATH
11801 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11802 soname_spec='${libname}${release}${shared_ext}$major'
11803 shlibpath_var=LD_LIBRARY_PATH
11804 shlibpath_overrides_runpath=yes
11805 hardcode_into_libs=yes
11806 # ldd complains unless libraries are executable
11807 postinstall_cmds='chmod +x $lib'
11812 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11813 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11814 shlibpath_var=LD_LIBRARY_PATH
11815 shlibpath_overrides_runpath=yes
11816 if test "$with_gnu_ld" = yes; then
11822 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11824 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11825 soname_spec='${libname}${release}${shared_ext}$major'
11826 shlibpath_var=LD_LIBRARY_PATH
11827 case $host_vendor in
11829 shlibpath_overrides_runpath=no
11831 export_dynamic_flag_spec='${wl}-Blargedynsym'
11832 runpath_var=LD_RUN_PATH
11840 shlibpath_overrides_runpath=no
11841 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11847 if test -d /usr/nec ;then
11849 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11850 soname_spec='$libname${shared_ext}.$major'
11851 shlibpath_var=LD_LIBRARY_PATH
11857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11858 soname_spec='${libname}${release}${shared_ext}$major'
11859 shlibpath_var=LD_LIBRARY_PATH
11866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11867 $as_echo "$dynamic_linker" >&6; }
11868 test "$dynamic_linker" = no && can_build_shared=no
11870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11871 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11872 hardcode_action_CXX=
11873 if test -n "$hardcode_libdir_flag_spec_CXX" || \
11874 test -n "$runpath_var CXX" || \
11875 test "X$hardcode_automatic_CXX"="Xyes" ; then
11877 # We can hardcode non-existant directories.
11878 if test "$hardcode_direct_CXX" != no &&
11879 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11880 # have to relink, otherwise we might link with an installed library
11881 # when we should be linking with a yet-to-be-installed one
11882 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11883 test "$hardcode_minus_L_CXX" != no; then
11884 # Linking always hardcodes the temporary library directory.
11885 hardcode_action_CXX=relink
11887 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11888 hardcode_action_CXX=immediate
11891 # We cannot hardcode anything, or else we can only hardcode existing
11893 hardcode_action_CXX=unsupported
11895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
11896 $as_echo "$hardcode_action_CXX" >&6; }
11898 if test "$hardcode_action_CXX" = relink; then
11899 # Fast installation is not supported
11900 enable_fast_install=no
11901 elif test "$shlibpath_overrides_runpath" = yes ||
11902 test "$enable_shared" = no; then
11903 # Fast installation is not necessary
11904 enable_fast_install=needless
11909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11910 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11911 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11912 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11913 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11915 $as_echo "yes" >&6; }
11917 # FIXME - insert some real tests, host_os isn't really good enough
11920 if test -n "$STRIP" ; then
11921 striplib="$STRIP -x"
11922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11923 $as_echo "yes" >&6; }
11925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11926 $as_echo "no" >&6; }
11930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11931 $as_echo "no" >&6; }
11936 if test "x$enable_dlopen" != xyes; then
11937 enable_dlopen=unknown
11938 enable_dlopen_self=unknown
11939 enable_dlopen_self_static=unknown
11946 lt_cv_dlopen="load_add_on"
11948 lt_cv_dlopen_self=yes
11952 lt_cv_dlopen="LoadLibrary"
11957 lt_cv_dlopen="dlopen"
11962 # if libdl is installed we need to link against it
11963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11964 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11965 if ${ac_cv_lib_dl_dlopen+:} false; then :
11966 $as_echo_n "(cached) " >&6
11968 ac_check_lib_save_LIBS=$LIBS
11970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11971 /* end confdefs.h. */
11973 /* Override any GCC internal prototype to avoid an error.
11974 Use char because int might match the return type of a GCC
11975 builtin and then its argument prototype would still apply. */
11988 if ac_fn_cxx_try_link "$LINENO"; then :
11989 ac_cv_lib_dl_dlopen=yes
11991 ac_cv_lib_dl_dlopen=no
11993 rm -f core conftest.err conftest.$ac_objext \
11994 conftest$ac_exeext conftest.$ac_ext
11995 LIBS=$ac_check_lib_save_LIBS
11997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11998 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11999 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12000 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12003 lt_cv_dlopen="dyld"
12005 lt_cv_dlopen_self=yes
12012 ac_fn_cxx_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12013 if test "x$ac_cv_func_shl_load" = xyes; then :
12014 lt_cv_dlopen="shl_load"
12016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12017 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12018 if ${ac_cv_lib_dld_shl_load+:} false; then :
12019 $as_echo_n "(cached) " >&6
12021 ac_check_lib_save_LIBS=$LIBS
12023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12024 /* end confdefs.h. */
12026 /* Override any GCC internal prototype to avoid an error.
12027 Use char because int might match the return type of a GCC
12028 builtin and then its argument prototype would still apply. */
12036 return shl_load ();
12041 if ac_fn_cxx_try_link "$LINENO"; then :
12042 ac_cv_lib_dld_shl_load=yes
12044 ac_cv_lib_dld_shl_load=no
12046 rm -f core conftest.err conftest.$ac_objext \
12047 conftest$ac_exeext conftest.$ac_ext
12048 LIBS=$ac_check_lib_save_LIBS
12050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12051 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12052 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12053 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12055 ac_fn_cxx_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12056 if test "x$ac_cv_func_dlopen" = xyes; then :
12057 lt_cv_dlopen="dlopen"
12059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12060 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12061 if ${ac_cv_lib_dl_dlopen+:} false; then :
12062 $as_echo_n "(cached) " >&6
12064 ac_check_lib_save_LIBS=$LIBS
12066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12067 /* end confdefs.h. */
12069 /* Override any GCC internal prototype to avoid an error.
12070 Use char because int might match the return type of a GCC
12071 builtin and then its argument prototype would still apply. */
12084 if ac_fn_cxx_try_link "$LINENO"; then :
12085 ac_cv_lib_dl_dlopen=yes
12087 ac_cv_lib_dl_dlopen=no
12089 rm -f core conftest.err conftest.$ac_objext \
12090 conftest$ac_exeext conftest.$ac_ext
12091 LIBS=$ac_check_lib_save_LIBS
12093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12094 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12095 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12096 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12099 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12100 if ${ac_cv_lib_svld_dlopen+:} false; then :
12101 $as_echo_n "(cached) " >&6
12103 ac_check_lib_save_LIBS=$LIBS
12104 LIBS="-lsvld $LIBS"
12105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12106 /* end confdefs.h. */
12108 /* Override any GCC internal prototype to avoid an error.
12109 Use char because int might match the return type of a GCC
12110 builtin and then its argument prototype would still apply. */
12123 if ac_fn_cxx_try_link "$LINENO"; then :
12124 ac_cv_lib_svld_dlopen=yes
12126 ac_cv_lib_svld_dlopen=no
12128 rm -f core conftest.err conftest.$ac_objext \
12129 conftest$ac_exeext conftest.$ac_ext
12130 LIBS=$ac_check_lib_save_LIBS
12132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12133 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12134 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12135 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12138 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12139 if ${ac_cv_lib_dld_dld_link+:} false; then :
12140 $as_echo_n "(cached) " >&6
12142 ac_check_lib_save_LIBS=$LIBS
12144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12145 /* end confdefs.h. */
12147 /* Override any GCC internal prototype to avoid an error.
12148 Use char because int might match the return type of a GCC
12149 builtin and then its argument prototype would still apply. */
12157 return dld_link ();
12162 if ac_fn_cxx_try_link "$LINENO"; then :
12163 ac_cv_lib_dld_dld_link=yes
12165 ac_cv_lib_dld_dld_link=no
12167 rm -f core conftest.err conftest.$ac_objext \
12168 conftest$ac_exeext conftest.$ac_ext
12169 LIBS=$ac_check_lib_save_LIBS
12171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12172 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12173 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12174 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12195 if test "x$lt_cv_dlopen" != xno; then
12201 case $lt_cv_dlopen in
12203 save_CPPFLAGS="$CPPFLAGS"
12204 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12206 save_LDFLAGS="$LDFLAGS"
12207 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12210 LIBS="$lt_cv_dlopen_libs $LIBS"
12212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12213 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12214 if ${lt_cv_dlopen_self+:} false; then :
12215 $as_echo_n "(cached) " >&6
12217 if test "$cross_compiling" = yes; then :
12218 lt_cv_dlopen_self=cross
12220 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12221 lt_status=$lt_dlunknown
12222 cat > conftest.$ac_ext <<EOF
12223 #line __oline__ "configure"
12224 #include "confdefs.h"
12233 # define LT_DLGLOBAL RTLD_GLOBAL
12236 # define LT_DLGLOBAL DL_GLOBAL
12238 # define LT_DLGLOBAL 0
12242 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12243 find out it does not work in some platform. */
12244 #ifndef LT_DLLAZY_OR_NOW
12246 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12249 # define LT_DLLAZY_OR_NOW DL_LAZY
12252 # define LT_DLLAZY_OR_NOW RTLD_NOW
12255 # define LT_DLLAZY_OR_NOW DL_NOW
12257 # define LT_DLLAZY_OR_NOW 0
12265 extern "C" void exit (int);
12268 void fnord() { int i=42;}
12271 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12272 int status = $lt_dlunknown;
12276 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12277 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12278 /* dlclose (self); */
12284 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12285 (eval $ac_link) 2>&5
12287 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12288 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12289 (./conftest; exit; ) 2>/dev/null
12291 case x$lt_status in
12292 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12293 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12294 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12297 # compilation failed
12298 lt_cv_dlopen_self=no
12305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12306 $as_echo "$lt_cv_dlopen_self" >&6; }
12308 if test "x$lt_cv_dlopen_self" = xyes; then
12309 LDFLAGS="$LDFLAGS $link_static_flag"
12310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12311 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12312 if ${lt_cv_dlopen_self_static+:} false; then :
12313 $as_echo_n "(cached) " >&6
12315 if test "$cross_compiling" = yes; then :
12316 lt_cv_dlopen_self_static=cross
12318 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12319 lt_status=$lt_dlunknown
12320 cat > conftest.$ac_ext <<EOF
12321 #line __oline__ "configure"
12322 #include "confdefs.h"
12331 # define LT_DLGLOBAL RTLD_GLOBAL
12334 # define LT_DLGLOBAL DL_GLOBAL
12336 # define LT_DLGLOBAL 0
12340 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12341 find out it does not work in some platform. */
12342 #ifndef LT_DLLAZY_OR_NOW
12344 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12347 # define LT_DLLAZY_OR_NOW DL_LAZY
12350 # define LT_DLLAZY_OR_NOW RTLD_NOW
12353 # define LT_DLLAZY_OR_NOW DL_NOW
12355 # define LT_DLLAZY_OR_NOW 0
12363 extern "C" void exit (int);
12366 void fnord() { int i=42;}
12369 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12370 int status = $lt_dlunknown;
12374 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12375 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12376 /* dlclose (self); */
12382 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12383 (eval $ac_link) 2>&5
12385 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12386 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12387 (./conftest; exit; ) 2>/dev/null
12389 case x$lt_status in
12390 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12391 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12392 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12395 # compilation failed
12396 lt_cv_dlopen_self_static=no
12403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12404 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12407 CPPFLAGS="$save_CPPFLAGS"
12408 LDFLAGS="$save_LDFLAGS"
12413 case $lt_cv_dlopen_self in
12414 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12415 *) enable_dlopen_self=unknown ;;
12418 case $lt_cv_dlopen_self_static in
12419 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12420 *) enable_dlopen_self_static=unknown ;;
12425 # The else clause should only fire when bootstrapping the
12426 # libtool distribution, otherwise you forgot to ship ltmain.sh
12427 # with your package, and you will get complaints that there are
12428 # no rules to generate ltmain.sh.
12429 if test -f "$ltmain"; then
12430 # See if we are running on zsh, and set the options which allow our commands through
12431 # without removal of \ escapes.
12432 if test -n "${ZSH_VERSION+set}" ; then
12433 setopt NO_GLOB_SUBST
12435 # Now quote all the things that may contain metacharacters while being
12436 # careful not to overquote the AC_SUBSTed values. We take copies of the
12437 # variables and quote the copies for generation of the libtool script.
12438 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
12440 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12441 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12442 deplibs_check_method reload_flag reload_cmds need_locks \
12443 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12444 lt_cv_sys_global_symbol_to_c_name_address \
12445 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12446 old_postinstall_cmds old_postuninstall_cmds \
12450 lt_prog_compiler_wl_CXX \
12451 lt_prog_compiler_pic_CXX \
12452 lt_prog_compiler_static_CXX \
12453 lt_prog_compiler_no_builtin_flag_CXX \
12454 export_dynamic_flag_spec_CXX \
12455 thread_safe_flag_spec_CXX \
12456 whole_archive_flag_spec_CXX \
12457 enable_shared_with_static_runtimes_CXX \
12458 old_archive_cmds_CXX \
12459 old_archive_from_new_cmds_CXX \
12460 predep_objects_CXX \
12461 postdep_objects_CXX \
12464 compiler_lib_search_path_CXX \
12466 archive_expsym_cmds_CXX \
12467 postinstall_cmds_CXX \
12468 postuninstall_cmds_CXX \
12469 old_archive_from_expsyms_cmds_CXX \
12470 allow_undefined_flag_CXX \
12471 no_undefined_flag_CXX \
12472 export_symbols_cmds_CXX \
12473 hardcode_libdir_flag_spec_CXX \
12474 hardcode_libdir_flag_spec_ld_CXX \
12475 hardcode_libdir_separator_CXX \
12476 hardcode_automatic_CXX \
12478 module_expsym_cmds_CXX \
12479 lt_cv_prog_compiler_c_o_CXX \
12480 exclude_expsyms_CXX \
12481 include_expsyms_CXX; do
12484 old_archive_cmds_CXX | \
12485 old_archive_from_new_cmds_CXX | \
12486 archive_cmds_CXX | \
12487 archive_expsym_cmds_CXX | \
12488 module_cmds_CXX | \
12489 module_expsym_cmds_CXX | \
12490 old_archive_from_expsyms_cmds_CXX | \
12491 export_symbols_cmds_CXX | \
12492 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12493 postinstall_cmds | postuninstall_cmds | \
12494 old_postinstall_cmds | old_postuninstall_cmds | \
12495 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12496 # Double-quote double-evaled strings.
12497 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12500 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12506 *'\$0 --fallback-echo"')
12507 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12513 cat <<__EOF__ >> "$cfgfile"
12514 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12516 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12518 # Shell to use when invoking shell scripts.
12521 # Whether or not to build shared libraries.
12522 build_libtool_libs=$enable_shared
12524 # Whether or not to build static libraries.
12525 build_old_libs=$enable_static
12527 # Whether or not to add -lc for building shared libraries.
12528 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12530 # Whether or not to disallow shared libs when runtime libs are static
12531 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12533 # Whether or not to optimize for fast installation.
12534 fast_install=$enable_fast_install
12537 host_alias=$host_alias
12540 # An echo program that does not interpret backslashes.
12545 AR_FLAGS=$lt_AR_FLAGS
12550 # A language-specific compiler.
12551 CC=$lt_compiler_CXX
12553 # Is the compiler the GNU C compiler?
12559 # The linker used to build libraries.
12562 # Whether we need hard or soft links.
12565 # A BSD-compatible nm program.
12568 # A symbol stripping program
12571 # Used to examine libraries when file_magic_cmd begins "file"
12572 MAGIC_CMD=$MAGIC_CMD
12574 # Used on cygwin: DLL creation program.
12577 # Used on cygwin: object dumper.
12580 # Used on cygwin: assembler.
12583 # The name of the directory that contains temporary libtool files.
12586 # How to create reloadable object files.
12587 reload_flag=$lt_reload_flag
12588 reload_cmds=$lt_reload_cmds
12590 # How to pass a linker flag through the compiler.
12591 wl=$lt_lt_prog_compiler_wl_CXX
12593 # Object file suffix (normally "o").
12594 objext="$ac_objext"
12596 # Old archive suffix (normally "a").
12599 # Shared library suffix (normally ".so").
12602 # Executable file suffix (normally "").
12605 # Additional compiler flags for building library objects.
12606 pic_flag=$lt_lt_prog_compiler_pic_CXX
12609 # What is the maximum length of a command?
12610 max_cmd_len=$lt_cv_sys_max_cmd_len
12612 # Does compiler simultaneously support -c and -o options?
12613 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12615 # Must we lock files when doing compilation ?
12616 need_locks=$lt_need_locks
12618 # Do we need the lib prefix for modules?
12619 need_lib_prefix=$need_lib_prefix
12621 # Do we need a version for libraries?
12622 need_version=$need_version
12624 # Whether dlopen is supported.
12625 dlopen_support=$enable_dlopen
12627 # Whether dlopen of programs is supported.
12628 dlopen_self=$enable_dlopen_self
12630 # Whether dlopen of statically linked programs is supported.
12631 dlopen_self_static=$enable_dlopen_self_static
12633 # Compiler flag to prevent dynamic linking.
12634 link_static_flag=$lt_lt_prog_compiler_static_CXX
12636 # Compiler flag to turn off builtin functions.
12637 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12639 # Compiler flag to allow reflexive dlopens.
12640 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12642 # Compiler flag to generate shared objects directly from archives.
12643 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12645 # Compiler flag to generate thread-safe objects.
12646 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12648 # Library versioning type.
12649 version_type=$version_type
12651 # Format of library name prefix.
12652 libname_spec=$lt_libname_spec
12654 # List of archive names. First name is the real one, the rest are links.
12655 # The last name is the one that the linker finds with -lNAME.
12656 library_names_spec=$lt_library_names_spec
12658 # The coded name of the library, if different from the real name.
12659 soname_spec=$lt_soname_spec
12661 # Commands used to build and install an old-style archive.
12663 old_archive_cmds=$lt_old_archive_cmds_CXX
12664 old_postinstall_cmds=$lt_old_postinstall_cmds
12665 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12667 # Create an old-style archive from a shared archive.
12668 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12670 # Create a temporary old-style archive to link instead of a shared archive.
12671 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12673 # Commands used to build and install a shared archive.
12674 archive_cmds=$lt_archive_cmds_CXX
12675 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12676 postinstall_cmds=$lt_postinstall_cmds
12677 postuninstall_cmds=$lt_postuninstall_cmds
12679 # Commands used to build a loadable module (assumed same as above if empty)
12680 module_cmds=$lt_module_cmds_CXX
12681 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12683 # Commands to strip libraries.
12684 old_striplib=$lt_old_striplib
12685 striplib=$lt_striplib
12687 # Dependencies to place before the objects being linked to create a
12689 predep_objects=$lt_predep_objects_CXX
12691 # Dependencies to place after the objects being linked to create a
12693 postdep_objects=$lt_postdep_objects_CXX
12695 # Dependencies to place before the objects being linked to create a
12697 predeps=$lt_predeps_CXX
12699 # Dependencies to place after the objects being linked to create a
12701 postdeps=$lt_postdeps_CXX
12703 # The library search path used internally by the compiler when linking
12704 # a shared library.
12705 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12707 # Method to check whether dependent libraries are shared objects.
12708 deplibs_check_method=$lt_deplibs_check_method
12710 # Command to use when deplibs_check_method == file_magic.
12711 file_magic_cmd=$lt_file_magic_cmd
12713 # Flag that allows shared libraries with undefined symbols to be built.
12714 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12716 # Flag that forces no undefined symbols.
12717 no_undefined_flag=$lt_no_undefined_flag_CXX
12719 # Commands used to finish a libtool library installation in a directory.
12720 finish_cmds=$lt_finish_cmds
12722 # Same as above, but a single script fragment to be evaled but not shown.
12723 finish_eval=$lt_finish_eval
12725 # Take the output of nm and produce a listing of raw symbols and C names.
12726 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12728 # Transform the output of nm in a proper C declaration
12729 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12731 # Transform the output of nm in a C name address pair
12732 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12734 # This is the shared library runtime path variable.
12735 runpath_var=$runpath_var
12737 # This is the shared library path variable.
12738 shlibpath_var=$shlibpath_var
12740 # Is shlibpath searched before the hard-coded library search path?
12741 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12743 # How to hardcode a shared library path into an executable.
12744 hardcode_action=$hardcode_action_CXX
12746 # Whether we should hardcode library paths into libraries.
12747 hardcode_into_libs=$hardcode_into_libs
12749 # Flag to hardcode \$libdir into a binary during linking.
12750 # This must work even if \$libdir does not exist.
12751 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12753 # If ld is used when linking, flag to hardcode \$libdir into
12754 # a binary during linking. This must work even if \$libdir does
12756 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12758 # Whether we need a single -rpath flag with a separated argument.
12759 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12761 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12762 # resulting binary.
12763 hardcode_direct=$hardcode_direct_CXX
12765 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12766 # resulting binary.
12767 hardcode_minus_L=$hardcode_minus_L_CXX
12769 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12770 # the resulting binary.
12771 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12773 # Set to yes if building a shared library automatically hardcodes DIR into the library
12774 # and all subsequent libraries and executables linked against it.
12775 hardcode_automatic=$hardcode_automatic_CXX
12777 # Variables whose values should be saved in libtool wrapper scripts and
12778 # restored at relink time.
12779 variables_saved_for_relink="$variables_saved_for_relink"
12781 # Whether libtool must link a program against all its dependency libraries.
12782 link_all_deplibs=$link_all_deplibs_CXX
12784 # Compile-time system search path for libraries
12785 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12787 # Run-time system search path for libraries
12788 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12790 # Fix the shell variable \$srcfile for the compiler.
12791 fix_srcfile_path="$fix_srcfile_path_CXX"
12793 # Set to yes if exported symbols are required.
12794 always_export_symbols=$always_export_symbols_CXX
12796 # The commands to list exported symbols.
12797 export_symbols_cmds=$lt_export_symbols_cmds_CXX
12799 # The commands to extract the exported symbol list from a shared archive.
12800 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12802 # Symbols that should not be listed in the preloaded symbols.
12803 exclude_expsyms=$lt_exclude_expsyms_CXX
12805 # Symbols that must always be exported.
12806 include_expsyms=$lt_include_expsyms_CXX
12808 # ### END LIBTOOL TAG CONFIG: $tagname
12814 # If there is no Makefile yet, we rely on a make rule to execute
12815 # `config.status --recheck' to rerun these tests and create the
12816 # libtool script then.
12817 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12818 if test -f "$ltmain_in"; then
12819 test -f Makefile && make "$ltmain"
12825 ac_cpp='$CPP $CPPFLAGS'
12826 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12827 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12828 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12834 with_gnu_ldcxx=$with_gnu_ld
12835 with_gnu_ld=$lt_save_with_gnu_ld
12836 lt_cv_path_LDCXX=$lt_cv_path_LD
12837 lt_cv_path_LD=$lt_save_path_LD
12838 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12839 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12847 if test -n "$F77" && test "X$F77" != "Xno"; then
12850 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12851 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12852 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12855 archive_cmds_need_lc_F77=no
12856 allow_undefined_flag_F77=
12857 always_export_symbols_F77=no
12858 archive_expsym_cmds_F77=
12859 export_dynamic_flag_spec_F77=
12860 hardcode_direct_F77=no
12861 hardcode_libdir_flag_spec_F77=
12862 hardcode_libdir_flag_spec_ld_F77=
12863 hardcode_libdir_separator_F77=
12864 hardcode_minus_L_F77=no
12865 hardcode_automatic_F77=no
12867 module_expsym_cmds_F77=
12868 link_all_deplibs_F77=unknown
12869 old_archive_cmds_F77=$old_archive_cmds
12870 no_undefined_flag_F77=
12871 whole_archive_flag_spec_F77=
12872 enable_shared_with_static_runtimes_F77=no
12874 # Source file extension for f77 test sources.
12877 # Object file extension for compiled f77 test sources.
12881 # Code to be used in simple compile tests
12882 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
12884 # Code to be used in simple link tests
12885 lt_simple_link_test_code=" program t\n end\n"
12887 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12889 # If no C compiler was specified, use CC.
12892 # Allow CC to be a program name with arguments.
12896 # Allow CC to be a program name with arguments.
12901 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
12903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12904 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12906 $as_echo "$can_build_shared" >&6; }
12908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12909 $as_echo_n "checking whether to build shared libraries... " >&6; }
12910 test "$can_build_shared" = "no" && enable_shared=no
12912 # On AIX, shared libraries and static libraries use the same namespace, and
12913 # are all built from PIC.
12916 test "$enable_shared" = yes && enable_static=no
12917 if test -n "$RANLIB"; then
12918 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12919 postinstall_cmds='$RANLIB $lib'
12923 test "$enable_shared" = yes && enable_static=no
12926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12927 $as_echo "$enable_shared" >&6; }
12929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12930 $as_echo_n "checking whether to build static libraries... " >&6; }
12931 # Make sure either enable_shared or enable_static is yes.
12932 test "$enable_shared" = yes || enable_static=yes
12933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12934 $as_echo "$enable_static" >&6; }
12936 test "$ld_shlibs_F77" = no && can_build_shared=no
12941 lt_prog_compiler_wl_F77=
12942 lt_prog_compiler_pic_F77=
12943 lt_prog_compiler_static_F77=
12945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12946 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12948 if test "$GCC" = yes; then
12949 lt_prog_compiler_wl_F77='-Wl,'
12950 lt_prog_compiler_static_F77='-static'
12954 # All AIX code is PIC.
12955 if test "$host_cpu" = ia64; then
12956 # AIX 5 now supports IA64 processor
12957 lt_prog_compiler_static_F77='-Bstatic'
12962 # FIXME: we need at least 68020 code to build shared libraries, but
12963 # adding the `-m68020' flag to GCC prevents building anything better,
12965 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12968 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12969 # PIC is the default for these OSes.
12972 mingw* | pw32* | os2*)
12973 # This hack is so that the source file can tell whether it is being
12974 # built for inclusion in a dll (and should export symbols for example).
12975 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12978 darwin* | rhapsody*)
12979 # PIC is the default on this platform
12980 # Common symbols not allowed in MH_DYLIB files
12981 lt_prog_compiler_pic_F77='-fno-common'
12985 # Just because we use GCC doesn't mean we suddenly get shared libraries
12986 # on systems that don't support them.
12987 lt_prog_compiler_can_build_shared_F77=no
12992 if test -d /usr/nec; then
12993 lt_prog_compiler_pic_F77=-Kconform_pic
12998 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12999 # not for PA HP-UX.
13000 case "$host_cpu" in
13005 lt_prog_compiler_pic_F77='-fPIC'
13011 lt_prog_compiler_pic_F77='-fPIC'
13015 # PORTME Check for flag to pass linker flags through the system compiler.
13018 lt_prog_compiler_wl_F77='-Wl,'
13019 if test "$host_cpu" = ia64; then
13020 # AIX 5 now supports IA64 processor
13021 lt_prog_compiler_static_F77='-Bstatic'
13023 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13027 mingw* | pw32* | os2*)
13028 # This hack is so that the source file can tell whether it is being
13029 # built for inclusion in a dll (and should export symbols for example).
13030 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13033 hpux9* | hpux10* | hpux11*)
13034 lt_prog_compiler_wl_F77='-Wl,'
13035 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13036 # not for PA HP-UX.
13037 case "$host_cpu" in
13042 lt_prog_compiler_pic_F77='+Z'
13045 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13046 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13049 irix5* | irix6* | nonstopux*)
13050 lt_prog_compiler_wl_F77='-Wl,'
13051 # PIC (with -KPIC) is the default.
13052 lt_prog_compiler_static_F77='-non_shared'
13056 lt_prog_compiler_pic_F77='-KPIC'
13057 lt_prog_compiler_static_F77='-Bstatic'
13063 lt_prog_compiler_wl_F77='-Wl,'
13064 lt_prog_compiler_pic_F77='-KPIC'
13065 lt_prog_compiler_static_F77='-static'
13068 lt_prog_compiler_wl_F77='-Wl,'
13069 # All Alpha code is PIC.
13070 lt_prog_compiler_static_F77='-non_shared'
13075 osf3* | osf4* | osf5*)
13076 lt_prog_compiler_wl_F77='-Wl,'
13077 # All OSF/1 code is PIC.
13078 lt_prog_compiler_static_F77='-non_shared'
13082 lt_prog_compiler_pic_F77='-Kpic'
13083 lt_prog_compiler_static_F77='-dn'
13087 lt_prog_compiler_wl_F77='-Wl,'
13088 lt_prog_compiler_pic_F77='-KPIC'
13089 lt_prog_compiler_static_F77='-Bstatic'
13093 lt_prog_compiler_wl_F77='-Qoption ld '
13094 lt_prog_compiler_pic_F77='-PIC'
13095 lt_prog_compiler_static_F77='-Bstatic'
13098 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13099 lt_prog_compiler_wl_F77='-Wl,'
13100 lt_prog_compiler_pic_F77='-KPIC'
13101 lt_prog_compiler_static_F77='-Bstatic'
13105 if test -d /usr/nec ;then
13106 lt_prog_compiler_pic_F77='-Kconform_pic'
13107 lt_prog_compiler_static_F77='-Bstatic'
13112 lt_prog_compiler_pic_F77='-pic'
13113 lt_prog_compiler_static_F77='-Bstatic'
13117 lt_prog_compiler_can_build_shared_F77=no
13122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_F77" >&5
13123 $as_echo "$lt_prog_compiler_pic_F77" >&6; }
13126 # Check to make sure the PIC flag actually works.
13128 if test -n "$lt_prog_compiler_pic_F77"; then
13130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13131 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; }
13132 if ${lt_prog_compiler_pic_works_F77+:} false; then :
13133 $as_echo_n "(cached) " >&6
13135 lt_prog_compiler_pic_works_F77=no
13136 ac_outfile=conftest.$ac_objext
13137 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13138 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13139 # Insert the option either (1) after the last *FLAGS variable, or
13140 # (2) before a word containing "conftest.", or (3) at the end.
13141 # Note that $ac_compile itself does not contain backslashes and begins
13142 # with a dollar sign (not a hyphen), so the echo should work correctly.
13143 # The option is referenced via a variable to avoid confusing sed.
13144 lt_compile=`echo "$ac_compile" | $SED \
13145 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13146 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13147 -e 's:$: $lt_compiler_flag:'`
13148 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
13149 (eval "$lt_compile" 2>conftest.err)
13151 cat conftest.err >&5
13152 echo "$as_me:__oline__: \$? = $ac_status" >&5
13153 if (exit $ac_status) && test -s "$ac_outfile"; then
13154 # The compiler can only warn and ignore the option if not recognized
13155 # So say no if there are warnings
13156 if test ! -s conftest.err; then
13157 lt_prog_compiler_pic_works_F77=yes
13163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_works_F77" >&5
13164 $as_echo "$lt_prog_compiler_pic_works_F77" >&6; }
13166 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13167 case $lt_prog_compiler_pic_F77 in
13169 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13172 lt_prog_compiler_pic_F77=
13173 lt_prog_compiler_can_build_shared_F77=no
13178 # For platforms which do not support PIC, -DPIC is meaningless:
13180 lt_prog_compiler_pic_F77=
13183 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13188 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13189 if ${lt_cv_prog_compiler_c_o_F77+:} false; then :
13190 $as_echo_n "(cached) " >&6
13192 lt_cv_prog_compiler_c_o_F77=no
13193 $rm -r conftest 2>/dev/null
13197 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13199 lt_compiler_flag="-o out/conftest2.$ac_objext"
13200 # Insert the option either (1) after the last *FLAGS variable, or
13201 # (2) before a word containing "conftest.", or (3) at the end.
13202 # Note that $ac_compile itself does not contain backslashes and begins
13203 # with a dollar sign (not a hyphen), so the echo should work correctly.
13204 lt_compile=`echo "$ac_compile" | $SED \
13205 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13206 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13207 -e 's:$: $lt_compiler_flag:'`
13208 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
13209 (eval "$lt_compile" 2>out/conftest.err)
13211 cat out/conftest.err >&5
13212 echo "$as_me:__oline__: \$? = $ac_status" >&5
13213 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13215 # The compiler can only warn and ignore the option if not recognized
13216 # So say no if there are warnings
13217 if test ! -s out/conftest.err; then
13218 lt_cv_prog_compiler_c_o_F77=yes
13223 # SGI C++ compiler will create directory out/ii_files/ for
13224 # template instantiation
13225 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13226 $rm out/* && rmdir out
13232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_F77" >&5
13233 $as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
13236 hard_links="nottested"
13237 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13238 # do not overwrite the value of need_locks provided by the user
13239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13240 $as_echo_n "checking if we can lock with hard links... " >&6; }
13243 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13245 ln conftest.a conftest.b 2>&5 || hard_links=no
13246 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13248 $as_echo "$hard_links" >&6; }
13249 if test "$hard_links" = no; then
13250 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13251 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13259 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13262 allow_undefined_flag_F77=
13263 enable_shared_with_static_runtimes_F77=no
13265 archive_expsym_cmds_F77=
13266 old_archive_From_new_cmds_F77=
13267 old_archive_from_expsyms_cmds_F77=
13268 export_dynamic_flag_spec_F77=
13269 whole_archive_flag_spec_F77=
13270 thread_safe_flag_spec_F77=
13271 hardcode_libdir_flag_spec_F77=
13272 hardcode_libdir_flag_spec_ld_F77=
13273 hardcode_libdir_separator_F77=
13274 hardcode_direct_F77=no
13275 hardcode_minus_L_F77=no
13276 hardcode_shlibpath_var_F77=unsupported
13277 link_all_deplibs_F77=unknown
13278 hardcode_automatic_F77=no
13280 module_expsym_cmds_F77=
13281 always_export_symbols_F77=no
13282 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13283 # include_expsyms should be a list of space-separated symbols to be *always*
13284 # included in the symbol list
13285 include_expsyms_F77=
13286 # exclude_expsyms can be an extended regexp of symbols to exclude
13287 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13288 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13289 # as well as any symbol that contains `d'.
13290 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13291 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13292 # platforms (ab)use it in PIC code, but their linkers get confused if
13293 # the symbol is explicitly referenced. Since portable code cannot
13294 # rely on this symbol name, it's probably fine to never include it in
13295 # preloaded symbol tables.
13296 extract_expsyms_cmds=
13299 cygwin* | mingw* | pw32*)
13300 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13301 # When not using gcc, we currently assume that we are using
13302 # Microsoft Visual C++.
13303 if test "$GCC" != yes; then
13313 if test "$with_gnu_ld" = yes; then
13314 # If archive_cmds runs LD, not CC, wlarc should be empty
13317 # See if GNU ld supports shared libraries.
13319 aix3* | aix4* | aix5*)
13320 # On AIX/PPC, the GNU linker is very broken
13321 if test "$host_cpu" != ia64; then
13325 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13326 *** to be unable to reliably create shared libraries on AIX.
13327 *** Therefore, libtool is disabling shared libraries support. If you
13328 *** really care for shared libraries, you may want to modify your PATH
13329 *** so that a non-GNU linker is found, and then restart.
13336 archive_cmds_F77='$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)'
13337 hardcode_libdir_flag_spec_F77='-L$libdir'
13338 hardcode_minus_L_F77=yes
13340 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13341 # that the semantics of dynamic libraries on AmigaOS, at least up
13342 # to version 4, is to share data among multiple programs linked
13343 # with the same dynamic library. Since this doesn't match the
13344 # behavior of shared libraries on other platforms, we can't use
13350 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13351 allow_undefined_flag_F77=unsupported
13352 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13353 # support --undefined. This deserves some investigation. FIXME
13354 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13360 cygwin* | mingw* | pw32*)
13361 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13362 # as there is no search path for DLLs.
13363 hardcode_libdir_flag_spec_F77='-L$libdir'
13364 allow_undefined_flag_F77=unsupported
13365 always_export_symbols_F77=no
13366 enable_shared_with_static_runtimes_F77=yes
13367 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13369 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13370 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13371 # If the export-symbols file already is a .def file (1st line
13372 # is EXPORTS), use it as is; otherwise, prepend...
13373 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13374 cp $export_symbols $output_objdir/$soname.def;
13376 echo EXPORTS > $output_objdir/$soname.def;
13377 cat $export_symbols >> $output_objdir/$soname.def;
13379 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13385 netbsd* | knetbsd*-gnu)
13386 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13387 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13390 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13391 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13396 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13400 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13401 *** create shared libraries on Solaris systems. Therefore, libtool
13402 *** is disabling shared libraries support. We urge you to upgrade GNU
13403 *** binutils to release 2.9.1 or newer. Another option is to modify
13404 *** your PATH or compiler configuration so that the native linker is
13405 *** used, and then restart.
13408 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13409 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13410 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13417 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13419 hardcode_direct_F77=yes
13420 hardcode_shlibpath_var_F77=no
13424 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
13425 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13426 archive_cmds_F77="$tmp_archive_cmds"
13427 supports_anon_versioning=no
13428 case `$LD -v 2>/dev/null` in
13429 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13430 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13431 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13432 *\ 2.11.*) ;; # other 2.11 versions
13433 *) supports_anon_versioning=yes ;;
13435 if test $supports_anon_versioning = yes; then
13436 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13437 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13438 $echo "local: *; };" >> $output_objdir/$libname.ver~
13439 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13441 archive_expsym_cmds_F77="$tmp_archive_cmds"
13449 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13450 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13451 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13458 if test "$ld_shlibs_F77" = yes; then
13459 runpath_var=LD_RUN_PATH
13460 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13461 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13462 # ancient GNU ld didn't support --whole-archive et. al.
13463 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13464 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13466 whole_archive_flag_spec_F77=
13470 # PORTME fill in a description of your system's linker (not GNU ld)
13473 allow_undefined_flag_F77=unsupported
13474 always_export_symbols_F77=yes
13475 archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
13476 # Note: this linker hardcodes the directories in LIBPATH if there
13477 # are no directories specified by -L.
13478 hardcode_minus_L_F77=yes
13479 if test "$GCC" = yes && test -z "$link_static_flag"; then
13480 # Neither direct hardcoding nor static linking is supported with a
13482 hardcode_direct_F77=unsupported
13487 if test "$host_cpu" = ia64; then
13488 # On IA64, the linker does run time linking by default, so we don't
13489 # have to do anything special.
13490 aix_use_runtimelinking=no
13491 exp_sym_flag='-Bexport'
13494 # If we're using GNU nm, then we don't want the "-C" option.
13495 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13496 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13497 export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
13499 export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
13501 aix_use_runtimelinking=no
13503 # Test if we are trying to use run time linking or normal
13504 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13505 # need to do runtime linking.
13506 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13507 for ld_flag in $LDFLAGS; do
13508 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13509 aix_use_runtimelinking=yes
13515 exp_sym_flag='-bexport'
13516 no_entry_flag='-bnoentry'
13519 # When large executables or shared objects are built, AIX ld can
13520 # have problems creating the table of contents. If linking a library
13521 # or program results in "error TOC overflow" add -mminimal-toc to
13522 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13523 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13525 archive_cmds_F77=''
13526 hardcode_direct_F77=yes
13527 hardcode_libdir_separator_F77=':'
13528 link_all_deplibs_F77=yes
13530 if test "$GCC" = yes; then
13531 case $host_os in aix4.012|aix4.012.*)
13532 # We only want to do this on AIX 4.2 and lower, the check
13533 # below for broken collect2 doesn't work under 4.3+
13534 collect2name=`${CC} -print-prog-name=collect2`
13535 if test -f "$collect2name" && \
13536 strings "$collect2name" | grep resolve_lib_name >/dev/null
13538 # We have reworked collect2
13539 hardcode_direct_F77=yes
13541 # We have old collect2
13542 hardcode_direct_F77=unsupported
13543 # It fails to find uninstalled libraries when the uninstalled
13544 # path is not listed in the libpath. Setting hardcode_minus_L
13545 # to unsupported forces relinking
13546 hardcode_minus_L_F77=yes
13547 hardcode_libdir_flag_spec_F77='-L$libdir'
13548 hardcode_libdir_separator_F77=
13551 shared_flag='-shared'
13554 if test "$host_cpu" = ia64; then
13555 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13556 # chokes on -Wl,-G. The following line is correct:
13559 if test "$aix_use_runtimelinking" = yes; then
13560 shared_flag='${wl}-G'
13562 shared_flag='${wl}-bM:SRE'
13567 # It seems that -bexpall does not export symbols beginning with
13568 # underscore (_), so it is better to generate a list of symbols to export.
13569 always_export_symbols_F77=yes
13570 if test "$aix_use_runtimelinking" = yes; then
13571 # Warning - without using the other runtime loading flags (-brtl),
13572 # -berok will link without error, but may produce a broken library.
13573 allow_undefined_flag_F77='-berok'
13574 # Determine the default libpath from the value encoded in an empty executable.
13575 cat > conftest.$ac_ext <<_ACEOF
13580 if ac_fn_f77_try_link "$LINENO"; then :
13582 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13584 # Check for a 64-bit object if we didn't find anything.
13585 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13588 rm -f core conftest.err conftest.$ac_objext \
13589 conftest$ac_exeext conftest.$ac_ext
13590 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13592 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13593 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13595 if test "$host_cpu" = ia64; then
13596 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13597 allow_undefined_flag_F77="-z nodefs"
13598 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
13600 # Determine the default libpath from the value encoded in an empty executable.
13601 cat > conftest.$ac_ext <<_ACEOF
13606 if ac_fn_f77_try_link "$LINENO"; then :
13608 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13610 # Check for a 64-bit object if we didn't find anything.
13611 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13614 rm -f core conftest.err conftest.$ac_objext \
13615 conftest$ac_exeext conftest.$ac_ext
13616 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13618 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13619 # Warning - without using the other run time loading flags,
13620 # -berok will link without error, but may produce a broken library.
13621 no_undefined_flag_F77=' ${wl}-bernotok'
13622 allow_undefined_flag_F77=' ${wl}-berok'
13623 # -bexpall does not export symbols beginning with underscore (_)
13624 always_export_symbols_F77=yes
13625 # Exported symbols can be pulled into shared objects from archives
13626 whole_archive_flag_spec_F77=' '
13627 archive_cmds_need_lc_F77=yes
13628 # This is similar to how AIX traditionally builds it's shared libraries.
13629 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
13635 archive_cmds_F77='$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)'
13636 hardcode_libdir_flag_spec_F77='-L$libdir'
13637 hardcode_minus_L_F77=yes
13638 # see comment about different semantics on the GNU ld section
13643 export_dynamic_flag_spec_F77=-rdynamic
13646 cygwin* | mingw* | pw32*)
13647 # When not using gcc, we currently assume that we are using
13648 # Microsoft Visual C++.
13649 # hardcode_libdir_flag_spec is actually meaningless, as there is
13650 # no search path for DLLs.
13651 hardcode_libdir_flag_spec_F77=' '
13652 allow_undefined_flag_F77=unsupported
13653 # Tell ltmain to make .lib files, not .a files.
13655 # Tell ltmain to make .dll files, not .so files.
13657 # FIXME: Setting linknames here is a bad hack.
13658 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13659 # The linker will automatically build a .lib file if we build a DLL.
13660 old_archive_From_new_cmds_F77='true'
13661 # FIXME: Should let the user specify the lib program.
13662 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13663 fix_srcfile_path='`cygpath -w "$srcfile"`'
13664 enable_shared_with_static_runtimes_F77=yes
13667 darwin* | rhapsody*)
13668 if test "$GXX" = yes ; then
13669 archive_cmds_need_lc_F77=no
13671 rhapsody* | darwin1.[012])
13672 allow_undefined_flag_F77='-undefined suppress'
13675 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13676 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13678 case ${MACOSX_DEPLOYMENT_TARGET} in
13680 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13683 allow_undefined_flag_F77='-undefined dynamic_lookup'
13689 lt_int_apple_cc_single_mod=no
13690 output_verbose_link_cmd='echo'
13691 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13692 lt_int_apple_cc_single_mod=yes
13694 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13695 archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13697 archive_cmds_F77='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13699 module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13700 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13701 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13702 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13704 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13706 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13707 hardcode_direct_F77=no
13708 hardcode_automatic_F77=yes
13709 hardcode_shlibpath_var_F77=unsupported
13710 whole_archive_flag_spec_F77='-all_load $convenience'
13711 link_all_deplibs_F77=yes
13718 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13719 hardcode_libdir_flag_spec_F77='-L$libdir'
13720 hardcode_shlibpath_var_F77=no
13727 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13728 # support. Future versions do this automatically, but an explicit c++rt0.o
13729 # does not break anything, and helps significantly (at the cost of a little
13732 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13733 hardcode_libdir_flag_spec_F77='-R$libdir'
13734 hardcode_direct_F77=yes
13735 hardcode_shlibpath_var_F77=no
13738 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13740 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13741 hardcode_direct_F77=yes
13742 hardcode_minus_L_F77=yes
13743 hardcode_shlibpath_var_F77=no
13746 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13747 freebsd* | kfreebsd*-gnu)
13748 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13749 hardcode_libdir_flag_spec_F77='-R$libdir'
13750 hardcode_direct_F77=yes
13751 hardcode_shlibpath_var_F77=no
13755 if test "$GCC" = yes; then
13756 archive_cmds_F77='$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'
13758 archive_cmds_F77='$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'
13760 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13761 hardcode_libdir_separator_F77=:
13762 hardcode_direct_F77=yes
13764 # hardcode_minus_L: Not really in the search PATH,
13765 # but as the default location of the library.
13766 hardcode_minus_L_F77=yes
13767 export_dynamic_flag_spec_F77='${wl}-E'
13771 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13772 case "$host_cpu" in
13774 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13777 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13781 case "$host_cpu" in
13783 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13786 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13790 if test "$with_gnu_ld" = no; then
13791 case "$host_cpu" in
13793 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13794 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13795 hardcode_libdir_separator_F77=:
13796 hardcode_direct_F77=no
13797 hardcode_shlibpath_var_F77=no
13800 hardcode_libdir_flag_spec_F77='-L$libdir'
13801 hardcode_direct_F77=no
13802 hardcode_shlibpath_var_F77=no
13804 # hardcode_minus_L: Not really in the search PATH,
13805 # but as the default location of the library.
13806 hardcode_minus_L_F77=yes
13809 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13810 hardcode_libdir_separator_F77=:
13811 hardcode_direct_F77=yes
13812 export_dynamic_flag_spec_F77='${wl}-E'
13814 # hardcode_minus_L: Not really in the search PATH,
13815 # but as the default location of the library.
13816 hardcode_minus_L_F77=yes
13822 irix5* | irix6* | nonstopux*)
13823 if test "$GCC" = yes; then
13824 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13826 archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
13827 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13829 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13830 hardcode_libdir_separator_F77=:
13831 link_all_deplibs_F77=yes
13834 netbsd* | knetbsd*-gnu)
13835 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13836 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13838 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13840 hardcode_libdir_flag_spec_F77='-R$libdir'
13841 hardcode_direct_F77=yes
13842 hardcode_shlibpath_var_F77=no
13846 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13847 hardcode_direct_F77=yes
13848 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13849 hardcode_libdir_separator_F77=:
13850 hardcode_shlibpath_var_F77=no
13854 hardcode_direct_F77=yes
13855 hardcode_shlibpath_var_F77=no
13856 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13857 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13858 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13859 export_dynamic_flag_spec_F77='${wl}-E'
13862 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13863 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13864 hardcode_libdir_flag_spec_F77='-R$libdir'
13867 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13868 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13875 hardcode_libdir_flag_spec_F77='-L$libdir'
13876 hardcode_minus_L_F77=yes
13877 allow_undefined_flag_F77=unsupported
13878 archive_cmds_F77='$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'
13879 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13883 if test "$GCC" = yes; then
13884 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13885 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13887 allow_undefined_flag_F77=' -expect_unresolved \*'
13888 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
13890 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13891 hardcode_libdir_separator_F77=:
13894 osf4* | osf5*) # as osf3* with the addition of -msym flag
13895 if test "$GCC" = yes; then
13896 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13897 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13898 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13900 allow_undefined_flag_F77=' -expect_unresolved \*'
13901 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
13902 archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
13903 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
13905 # Both c and cxx compiler support -rpath directly
13906 hardcode_libdir_flag_spec_F77='-rpath $libdir'
13908 hardcode_libdir_separator_F77=:
13912 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13913 hardcode_shlibpath_var_F77=no
13914 export_dynamic_flag_spec_F77='${wl}-Bexport'
13915 runpath_var=LD_RUN_PATH
13916 hardcode_runpath_var=yes
13920 no_undefined_flag_F77=' -z text'
13921 if test "$GCC" = yes; then
13922 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13923 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13924 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13926 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13927 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13928 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13930 hardcode_libdir_flag_spec_F77='-R$libdir'
13931 hardcode_shlibpath_var_F77=no
13933 solaris2.[0-5] | solaris2.[0-5].*) ;;
13934 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13935 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
13937 link_all_deplibs_F77=yes
13941 if test "x$host_vendor" = xsequent; then
13942 # Use $CC to link under sequent, because it throws in some extra .o
13943 # files that make .init and .fini sections work.
13944 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13946 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13948 hardcode_libdir_flag_spec_F77='-L$libdir'
13949 hardcode_direct_F77=yes
13950 hardcode_minus_L_F77=yes
13951 hardcode_shlibpath_var_F77=no
13955 case $host_vendor in
13957 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13958 hardcode_direct_F77=yes # is this really true???
13961 ## LD is ld it makes a PLAMLIB
13962 ## CC just makes a GrossModule.
13963 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13964 reload_cmds_F77='$CC -r -o $output$reload_objs'
13965 hardcode_direct_F77=no
13968 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13969 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
13972 runpath_var='LD_RUN_PATH'
13973 hardcode_shlibpath_var_F77=no
13977 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13978 hardcode_shlibpath_var_F77=no
13979 export_dynamic_flag_spec_F77='-Bexport'
13983 if test -d /usr/nec; then
13984 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13985 hardcode_shlibpath_var_F77=no
13986 runpath_var=LD_RUN_PATH
13987 hardcode_runpath_var=yes
13993 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13994 hardcode_direct_F77=yes
13995 hardcode_minus_L_F77=no
13996 hardcode_shlibpath_var_F77=no
13997 hardcode_runpath_var=yes
13998 runpath_var=LD_RUN_PATH
14001 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
14002 no_undefined_flag_F77='${wl}-z ${wl}text'
14003 if test "$GCC" = yes; then
14004 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14006 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14008 runpath_var='LD_RUN_PATH'
14009 hardcode_shlibpath_var_F77=no
14013 no_undefined_flag_F77=' -z text'
14014 # $CC -shared without GNU ld will not create a library from C++
14015 # object files and a static libstdc++, better avoid it by now
14016 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14017 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14018 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14019 hardcode_libdir_flag_spec_F77=
14020 hardcode_shlibpath_var_F77=no
14021 runpath_var='LD_RUN_PATH'
14025 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14026 hardcode_libdir_flag_spec_F77='-L$libdir'
14027 hardcode_shlibpath_var_F77=no
14036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_F77" >&5
14037 $as_echo "$ld_shlibs_F77" >&6; }
14038 test "$ld_shlibs_F77" = no && can_build_shared=no
14040 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14041 if test "$GCC" = yes; then
14042 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14046 # Do we need to explicitly link libc?
14048 case "x$archive_cmds_need_lc_F77" in
14050 # Assume -lc should be added
14051 archive_cmds_need_lc_F77=yes
14053 if test "$enable_shared" = yes && test "$GCC" = yes; then
14054 case $archive_cmds_F77 in
14056 # FIXME: we may have to deal with multi-command sequences.
14059 # Test whether the compiler implicitly links with -lc since on some
14060 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14061 # to ld, don't add -lc before -lgcc.
14062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14063 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14065 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14067 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14068 (eval $ac_compile) 2>&5
14070 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14071 test $ac_status = 0; } 2>conftest.err; then
14074 libobjs=conftest.$ac_objext
14076 wl=$lt_prog_compiler_wl_F77
14082 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14083 allow_undefined_flag_F77=
14084 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14085 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14087 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14088 test $ac_status = 0; }
14090 archive_cmds_need_lc_F77=no
14092 archive_cmds_need_lc_F77=yes
14094 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14096 cat conftest.err 1>&5
14099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_F77" >&5
14100 $as_echo "$archive_cmds_need_lc_F77" >&6; }
14107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14108 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14109 library_names_spec=
14110 libname_spec='lib$name'
14114 postuninstall_cmds=
14118 shlibpath_overrides_runpath=unknown
14120 dynamic_linker="$host_os ld.so"
14121 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14122 if test "$GCC" = yes; then
14123 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14124 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14125 # if the path contains ";" then we assume it to be the separator
14126 # otherwise default to the standard path separator (i.e. ":") - it is
14127 # assumed that no part of a normal pathname contains ";" but that should
14128 # okay in the real world where ";" in dirpaths is itself problematic.
14129 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14131 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14134 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14136 need_lib_prefix=unknown
14137 hardcode_into_libs=no
14139 # when you set need_version to no, make sure it does not cause -set_version
14140 # flags to be left without arguments
14141 need_version=unknown
14146 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14147 shlibpath_var=LIBPATH
14149 # AIX 3 has no versioning support, so we append a major version to the name.
14150 soname_spec='${libname}${release}${shared_ext}$major'
14157 hardcode_into_libs=yes
14158 if test "$host_cpu" = ia64; then
14159 # AIX 5 supports IA64
14160 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14161 shlibpath_var=LD_LIBRARY_PATH
14163 # With GCC up to 2.95.x, collect2 would create an import file
14164 # for dependence libraries. The import file would start with
14165 # the line `#! .'. This would cause the generated library to
14166 # depend on `.', always an invalid library. This was fixed in
14167 # development snapshots of GCC prior to 3.0.
14169 aix4 | aix4.[01] | aix4.[01].*)
14170 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14172 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14175 can_build_shared=no
14179 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14180 # soname into executable. Probably we can add versioning support to
14181 # collect2, so additional links can be useful in future.
14182 if test "$aix_use_runtimelinking" = yes; then
14183 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14184 # instead of lib<name>.a to let people know that these are not
14185 # typical AIX shared libraries.
14186 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14188 # We preserve .a as extension for shared libraries through AIX4.2
14189 # and later when we are not doing run time linking.
14190 library_names_spec='${libname}${release}.a $libname.a'
14191 soname_spec='${libname}${release}${shared_ext}$major'
14193 shlibpath_var=LIBPATH
14198 library_names_spec='$libname.ixlibrary $libname.a'
14199 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14200 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
14204 library_names_spec='${libname}${shared_ext}'
14205 dynamic_linker="$host_os ld.so"
14206 shlibpath_var=LIBRARY_PATH
14212 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14213 soname_spec='${libname}${release}${shared_ext}$major'
14214 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14215 shlibpath_var=LD_LIBRARY_PATH
14216 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14217 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14218 # the default ld.so.conf also contains /usr/contrib/lib and
14219 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14220 # libtool to hard-code these into programs
14223 cygwin* | mingw* | pw32*)
14224 version_type=windows
14229 case $GCC,$host_os in
14230 yes,cygwin* | yes,mingw* | yes,pw32*)
14231 library_names_spec='$libname.dll.a'
14232 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14233 postinstall_cmds='base_file=`basename \${file}`~
14234 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14235 dldir=$destdir/`dirname \$dlpath`~
14236 test -d \$dldir || mkdir -p \$dldir~
14237 $install_prog $dir/$dlname \$dldir/$dlname'
14238 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14239 dlpath=$dir/\$dldll~
14241 shlibpath_overrides_runpath=yes
14245 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14246 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14247 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14250 # MinGW DLLs use traditional 'lib' prefix
14251 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14252 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14253 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14254 # It is most probably a Windows format PATH printed by
14255 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14256 # path with ; separators, and with drive letters. We can handle the
14257 # drive letters (cygwin fileutils understands them), so leave them,
14258 # especially as we might pass files found there to a mingw objdump,
14259 # which wouldn't understand a cygwinified path. Ahh.
14260 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14262 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14266 # pw32 DLLs use 'pw' prefix rather than 'lib'
14267 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14273 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14276 dynamic_linker='Win32 ld.exe'
14277 # FIXME: first we should search . and the directory the executable is in
14281 darwin* | rhapsody*)
14282 dynamic_linker="$host_os dyld"
14283 version_type=darwin
14286 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14287 soname_spec='${libname}${release}${major}$shared_ext'
14288 shlibpath_overrides_runpath=yes
14289 shlibpath_var=DYLD_LIBRARY_PATH
14290 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
14291 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14292 if test "$GCC" = yes; then
14293 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
14295 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14297 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14305 soname_spec='${libname}${release}${shared_ext}$major'
14306 shlibpath_var=LD_LIBRARY_PATH
14317 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14318 soname_spec='${libname}${release}${shared_ext}$major'
14319 shlibpath_var=LD_LIBRARY_PATH
14320 shlibpath_overrides_runpath=no
14321 hardcode_into_libs=yes
14322 dynamic_linker='GNU ld.so'
14326 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14327 version_type=freebsd-$objformat
14328 case $version_type in
14330 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14335 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14339 shlibpath_var=LD_LIBRARY_PATH
14342 shlibpath_overrides_runpath=yes
14344 freebsd3.01* | freebsdelf3.01*)
14345 shlibpath_overrides_runpath=yes
14346 hardcode_into_libs=yes
14349 shlibpath_overrides_runpath=no
14350 hardcode_into_libs=yes
14359 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14360 soname_spec='${libname}${release}${shared_ext}$major'
14361 shlibpath_var=LD_LIBRARY_PATH
14362 hardcode_into_libs=yes
14365 hpux9* | hpux10* | hpux11*)
14366 # Give a soname corresponding to the major version so that dld.sl refuses to
14367 # link against other versions.
14371 case "$host_cpu" in
14374 hardcode_into_libs=yes
14375 dynamic_linker="$host_os dld.so"
14376 shlibpath_var=LD_LIBRARY_PATH
14377 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14378 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14379 soname_spec='${libname}${release}${shared_ext}$major'
14380 if test "X$HPUX_IA64_MODE" = X32; then
14381 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14383 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14385 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14389 hardcode_into_libs=yes
14390 dynamic_linker="$host_os dld.sl"
14391 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14392 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14394 soname_spec='${libname}${release}${shared_ext}$major'
14395 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14396 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14400 dynamic_linker="$host_os dld.sl"
14401 shlibpath_var=SHLIB_PATH
14402 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14403 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14404 soname_spec='${libname}${release}${shared_ext}$major'
14407 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14408 postinstall_cmds='chmod 555 $lib'
14411 irix5* | irix6* | nonstopux*)
14413 nonstopux*) version_type=nonstopux ;;
14415 if test "$lt_cv_prog_gnu_ld" = yes; then
14423 soname_spec='${libname}${release}${shared_ext}$major'
14424 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14426 irix5* | nonstopux*)
14427 libsuff= shlibsuff=
14430 case $LD in # libtool.m4 will add one of these switches to LD
14431 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14432 libsuff= shlibsuff= libmagic=32-bit;;
14433 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14434 libsuff=32 shlibsuff=N32 libmagic=N32;;
14435 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14436 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14437 *) libsuff= shlibsuff= libmagic=never-match;;
14441 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14442 shlibpath_overrides_runpath=no
14443 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14444 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14445 hardcode_into_libs=yes
14448 # No shared lib support for Linux oldld, aout, or coff.
14449 linux*oldld* | linux*aout* | linux*coff*)
14453 # This must be Linux ELF.
14458 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14459 soname_spec='${libname}${release}${shared_ext}$major'
14460 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14461 shlibpath_var=LD_LIBRARY_PATH
14462 shlibpath_overrides_runpath=no
14463 # This implies no fast_install, which is unacceptable.
14464 # Some rework will be needed to allow for fast_install
14465 # before this can be enabled.
14466 hardcode_into_libs=yes
14468 # Append ld.so.conf contents to the search path
14469 if test -f /etc/ld.so.conf; then
14470 ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
14471 sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
14474 # We used to test for /lib/ld.so.1 and disable shared libraries on
14475 # powerpc, because MkLinux only supported shared libraries with the
14476 # GNU dynamic linker. Since this was broken with cross compilers,
14477 # most powerpc-linux boxes support dynamic linking these days and
14478 # people can always --disable-shared, the test was removed, and we
14479 # assume the GNU/Linux dynamic linker is in use.
14480 dynamic_linker='GNU/Linux ld.so'
14487 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14488 soname_spec='${libname}${release}${shared_ext}$major'
14489 shlibpath_var=LD_LIBRARY_PATH
14490 shlibpath_overrides_runpath=no
14491 hardcode_into_libs=yes
14492 dynamic_linker='GNU ld.so'
14499 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14500 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14501 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14502 dynamic_linker='NetBSD (a.out) ld.so'
14504 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14505 soname_spec='${libname}${release}${shared_ext}$major'
14506 dynamic_linker='NetBSD ld.elf_so'
14508 shlibpath_var=LD_LIBRARY_PATH
14509 shlibpath_overrides_runpath=yes
14510 hardcode_into_libs=yes
14515 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14516 shlibpath_var=LD_LIBRARY_PATH
14517 shlibpath_overrides_runpath=yes
14524 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14525 soname_spec='${libname}${release}${shared_ext}$major'
14526 shlibpath_var=LD_LIBRARY_PATH
14527 shlibpath_overrides_runpath=yes
14534 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14535 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14536 shlibpath_var=LD_LIBRARY_PATH
14537 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14539 openbsd2.[89] | openbsd2.[89].*)
14540 shlibpath_overrides_runpath=no
14543 shlibpath_overrides_runpath=yes
14547 shlibpath_overrides_runpath=yes
14552 libname_spec='$name'
14555 library_names_spec='$libname${shared_ext} $libname.a'
14556 dynamic_linker='OS/2 ld.exe'
14557 shlibpath_var=LIBPATH
14560 osf3* | osf4* | osf5*)
14564 soname_spec='${libname}${release}${shared_ext}$major'
14565 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14566 shlibpath_var=LD_LIBRARY_PATH
14567 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14568 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14573 soname_spec='${libname}${release}${shared_ext}$major'
14574 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14575 shlibpath_var=LD_LIBRARY_PATH
14582 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14583 soname_spec='${libname}${release}${shared_ext}$major'
14584 shlibpath_var=LD_LIBRARY_PATH
14585 shlibpath_overrides_runpath=yes
14586 hardcode_into_libs=yes
14587 # ldd complains unless libraries are executable
14588 postinstall_cmds='chmod +x $lib'
14593 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14594 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14595 shlibpath_var=LD_LIBRARY_PATH
14596 shlibpath_overrides_runpath=yes
14597 if test "$with_gnu_ld" = yes; then
14603 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14605 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14606 soname_spec='${libname}${release}${shared_ext}$major'
14607 shlibpath_var=LD_LIBRARY_PATH
14608 case $host_vendor in
14610 shlibpath_overrides_runpath=no
14612 export_dynamic_flag_spec='${wl}-Blargedynsym'
14613 runpath_var=LD_RUN_PATH
14621 shlibpath_overrides_runpath=no
14622 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14628 if test -d /usr/nec ;then
14630 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14631 soname_spec='$libname${shared_ext}.$major'
14632 shlibpath_var=LD_LIBRARY_PATH
14638 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14639 soname_spec='${libname}${release}${shared_ext}$major'
14640 shlibpath_var=LD_LIBRARY_PATH
14647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14648 $as_echo "$dynamic_linker" >&6; }
14649 test "$dynamic_linker" = no && can_build_shared=no
14651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14652 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14653 hardcode_action_F77=
14654 if test -n "$hardcode_libdir_flag_spec_F77" || \
14655 test -n "$runpath_var F77" || \
14656 test "X$hardcode_automatic_F77"="Xyes" ; then
14658 # We can hardcode non-existant directories.
14659 if test "$hardcode_direct_F77" != no &&
14660 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14661 # have to relink, otherwise we might link with an installed library
14662 # when we should be linking with a yet-to-be-installed one
14663 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14664 test "$hardcode_minus_L_F77" != no; then
14665 # Linking always hardcodes the temporary library directory.
14666 hardcode_action_F77=relink
14668 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14669 hardcode_action_F77=immediate
14672 # We cannot hardcode anything, or else we can only hardcode existing
14674 hardcode_action_F77=unsupported
14676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_F77" >&5
14677 $as_echo "$hardcode_action_F77" >&6; }
14679 if test "$hardcode_action_F77" = relink; then
14680 # Fast installation is not supported
14681 enable_fast_install=no
14682 elif test "$shlibpath_overrides_runpath" = yes ||
14683 test "$enable_shared" = no; then
14684 # Fast installation is not necessary
14685 enable_fast_install=needless
14690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
14691 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
14692 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14693 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14694 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14696 $as_echo "yes" >&6; }
14698 # FIXME - insert some real tests, host_os isn't really good enough
14701 if test -n "$STRIP" ; then
14702 striplib="$STRIP -x"
14703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14704 $as_echo "yes" >&6; }
14706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14707 $as_echo "no" >&6; }
14711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14712 $as_echo "no" >&6; }
14719 # The else clause should only fire when bootstrapping the
14720 # libtool distribution, otherwise you forgot to ship ltmain.sh
14721 # with your package, and you will get complaints that there are
14722 # no rules to generate ltmain.sh.
14723 if test -f "$ltmain"; then
14724 # See if we are running on zsh, and set the options which allow our commands through
14725 # without removal of \ escapes.
14726 if test -n "${ZSH_VERSION+set}" ; then
14727 setopt NO_GLOB_SUBST
14729 # Now quote all the things that may contain metacharacters while being
14730 # careful not to overquote the AC_SUBSTed values. We take copies of the
14731 # variables and quote the copies for generation of the libtool script.
14732 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14734 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14735 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14736 deplibs_check_method reload_flag reload_cmds need_locks \
14737 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14738 lt_cv_sys_global_symbol_to_c_name_address \
14739 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14740 old_postinstall_cmds old_postuninstall_cmds \
14744 lt_prog_compiler_wl_F77 \
14745 lt_prog_compiler_pic_F77 \
14746 lt_prog_compiler_static_F77 \
14747 lt_prog_compiler_no_builtin_flag_F77 \
14748 export_dynamic_flag_spec_F77 \
14749 thread_safe_flag_spec_F77 \
14750 whole_archive_flag_spec_F77 \
14751 enable_shared_with_static_runtimes_F77 \
14752 old_archive_cmds_F77 \
14753 old_archive_from_new_cmds_F77 \
14754 predep_objects_F77 \
14755 postdep_objects_F77 \
14758 compiler_lib_search_path_F77 \
14760 archive_expsym_cmds_F77 \
14761 postinstall_cmds_F77 \
14762 postuninstall_cmds_F77 \
14763 old_archive_from_expsyms_cmds_F77 \
14764 allow_undefined_flag_F77 \
14765 no_undefined_flag_F77 \
14766 export_symbols_cmds_F77 \
14767 hardcode_libdir_flag_spec_F77 \
14768 hardcode_libdir_flag_spec_ld_F77 \
14769 hardcode_libdir_separator_F77 \
14770 hardcode_automatic_F77 \
14772 module_expsym_cmds_F77 \
14773 lt_cv_prog_compiler_c_o_F77 \
14774 exclude_expsyms_F77 \
14775 include_expsyms_F77; do
14778 old_archive_cmds_F77 | \
14779 old_archive_from_new_cmds_F77 | \
14780 archive_cmds_F77 | \
14781 archive_expsym_cmds_F77 | \
14782 module_cmds_F77 | \
14783 module_expsym_cmds_F77 | \
14784 old_archive_from_expsyms_cmds_F77 | \
14785 export_symbols_cmds_F77 | \
14786 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14787 postinstall_cmds | postuninstall_cmds | \
14788 old_postinstall_cmds | old_postuninstall_cmds | \
14789 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14790 # Double-quote double-evaled strings.
14791 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14794 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14800 *'\$0 --fallback-echo"')
14801 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14807 cat <<__EOF__ >> "$cfgfile"
14808 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14810 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14812 # Shell to use when invoking shell scripts.
14815 # Whether or not to build shared libraries.
14816 build_libtool_libs=$enable_shared
14818 # Whether or not to build static libraries.
14819 build_old_libs=$enable_static
14821 # Whether or not to add -lc for building shared libraries.
14822 build_libtool_need_lc=$archive_cmds_need_lc_F77
14824 # Whether or not to disallow shared libs when runtime libs are static
14825 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14827 # Whether or not to optimize for fast installation.
14828 fast_install=$enable_fast_install
14831 host_alias=$host_alias
14834 # An echo program that does not interpret backslashes.
14839 AR_FLAGS=$lt_AR_FLAGS
14844 # A language-specific compiler.
14845 CC=$lt_compiler_F77
14847 # Is the compiler the GNU C compiler?
14853 # The linker used to build libraries.
14856 # Whether we need hard or soft links.
14859 # A BSD-compatible nm program.
14862 # A symbol stripping program
14865 # Used to examine libraries when file_magic_cmd begins "file"
14866 MAGIC_CMD=$MAGIC_CMD
14868 # Used on cygwin: DLL creation program.
14871 # Used on cygwin: object dumper.
14874 # Used on cygwin: assembler.
14877 # The name of the directory that contains temporary libtool files.
14880 # How to create reloadable object files.
14881 reload_flag=$lt_reload_flag
14882 reload_cmds=$lt_reload_cmds
14884 # How to pass a linker flag through the compiler.
14885 wl=$lt_lt_prog_compiler_wl_F77
14887 # Object file suffix (normally "o").
14888 objext="$ac_objext"
14890 # Old archive suffix (normally "a").
14893 # Shared library suffix (normally ".so").
14896 # Executable file suffix (normally "").
14899 # Additional compiler flags for building library objects.
14900 pic_flag=$lt_lt_prog_compiler_pic_F77
14903 # What is the maximum length of a command?
14904 max_cmd_len=$lt_cv_sys_max_cmd_len
14906 # Does compiler simultaneously support -c and -o options?
14907 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
14909 # Must we lock files when doing compilation ?
14910 need_locks=$lt_need_locks
14912 # Do we need the lib prefix for modules?
14913 need_lib_prefix=$need_lib_prefix
14915 # Do we need a version for libraries?
14916 need_version=$need_version
14918 # Whether dlopen is supported.
14919 dlopen_support=$enable_dlopen
14921 # Whether dlopen of programs is supported.
14922 dlopen_self=$enable_dlopen_self
14924 # Whether dlopen of statically linked programs is supported.
14925 dlopen_self_static=$enable_dlopen_self_static
14927 # Compiler flag to prevent dynamic linking.
14928 link_static_flag=$lt_lt_prog_compiler_static_F77
14930 # Compiler flag to turn off builtin functions.
14931 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
14933 # Compiler flag to allow reflexive dlopens.
14934 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
14936 # Compiler flag to generate shared objects directly from archives.
14937 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
14939 # Compiler flag to generate thread-safe objects.
14940 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
14942 # Library versioning type.
14943 version_type=$version_type
14945 # Format of library name prefix.
14946 libname_spec=$lt_libname_spec
14948 # List of archive names. First name is the real one, the rest are links.
14949 # The last name is the one that the linker finds with -lNAME.
14950 library_names_spec=$lt_library_names_spec
14952 # The coded name of the library, if different from the real name.
14953 soname_spec=$lt_soname_spec
14955 # Commands used to build and install an old-style archive.
14957 old_archive_cmds=$lt_old_archive_cmds_F77
14958 old_postinstall_cmds=$lt_old_postinstall_cmds
14959 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14961 # Create an old-style archive from a shared archive.
14962 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
14964 # Create a temporary old-style archive to link instead of a shared archive.
14965 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
14967 # Commands used to build and install a shared archive.
14968 archive_cmds=$lt_archive_cmds_F77
14969 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
14970 postinstall_cmds=$lt_postinstall_cmds
14971 postuninstall_cmds=$lt_postuninstall_cmds
14973 # Commands used to build a loadable module (assumed same as above if empty)
14974 module_cmds=$lt_module_cmds_F77
14975 module_expsym_cmds=$lt_module_expsym_cmds_F77
14977 # Commands to strip libraries.
14978 old_striplib=$lt_old_striplib
14979 striplib=$lt_striplib
14981 # Dependencies to place before the objects being linked to create a
14983 predep_objects=$lt_predep_objects_F77
14985 # Dependencies to place after the objects being linked to create a
14987 postdep_objects=$lt_postdep_objects_F77
14989 # Dependencies to place before the objects being linked to create a
14991 predeps=$lt_predeps_F77
14993 # Dependencies to place after the objects being linked to create a
14995 postdeps=$lt_postdeps_F77
14997 # The library search path used internally by the compiler when linking
14998 # a shared library.
14999 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15001 # Method to check whether dependent libraries are shared objects.
15002 deplibs_check_method=$lt_deplibs_check_method
15004 # Command to use when deplibs_check_method == file_magic.
15005 file_magic_cmd=$lt_file_magic_cmd
15007 # Flag that allows shared libraries with undefined symbols to be built.
15008 allow_undefined_flag=$lt_allow_undefined_flag_F77
15010 # Flag that forces no undefined symbols.
15011 no_undefined_flag=$lt_no_undefined_flag_F77
15013 # Commands used to finish a libtool library installation in a directory.
15014 finish_cmds=$lt_finish_cmds
15016 # Same as above, but a single script fragment to be evaled but not shown.
15017 finish_eval=$lt_finish_eval
15019 # Take the output of nm and produce a listing of raw symbols and C names.
15020 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15022 # Transform the output of nm in a proper C declaration
15023 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15025 # Transform the output of nm in a C name address pair
15026 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15028 # This is the shared library runtime path variable.
15029 runpath_var=$runpath_var
15031 # This is the shared library path variable.
15032 shlibpath_var=$shlibpath_var
15034 # Is shlibpath searched before the hard-coded library search path?
15035 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15037 # How to hardcode a shared library path into an executable.
15038 hardcode_action=$hardcode_action_F77
15040 # Whether we should hardcode library paths into libraries.
15041 hardcode_into_libs=$hardcode_into_libs
15043 # Flag to hardcode \$libdir into a binary during linking.
15044 # This must work even if \$libdir does not exist.
15045 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15047 # If ld is used when linking, flag to hardcode \$libdir into
15048 # a binary during linking. This must work even if \$libdir does
15050 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15052 # Whether we need a single -rpath flag with a separated argument.
15053 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15055 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15056 # resulting binary.
15057 hardcode_direct=$hardcode_direct_F77
15059 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15060 # resulting binary.
15061 hardcode_minus_L=$hardcode_minus_L_F77
15063 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15064 # the resulting binary.
15065 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15067 # Set to yes if building a shared library automatically hardcodes DIR into the library
15068 # and all subsequent libraries and executables linked against it.
15069 hardcode_automatic=$hardcode_automatic_F77
15071 # Variables whose values should be saved in libtool wrapper scripts and
15072 # restored at relink time.
15073 variables_saved_for_relink="$variables_saved_for_relink"
15075 # Whether libtool must link a program against all its dependency libraries.
15076 link_all_deplibs=$link_all_deplibs_F77
15078 # Compile-time system search path for libraries
15079 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15081 # Run-time system search path for libraries
15082 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15084 # Fix the shell variable \$srcfile for the compiler.
15085 fix_srcfile_path="$fix_srcfile_path_F77"
15087 # Set to yes if exported symbols are required.
15088 always_export_symbols=$always_export_symbols_F77
15090 # The commands to list exported symbols.
15091 export_symbols_cmds=$lt_export_symbols_cmds_F77
15093 # The commands to extract the exported symbol list from a shared archive.
15094 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15096 # Symbols that should not be listed in the preloaded symbols.
15097 exclude_expsyms=$lt_exclude_expsyms_F77
15099 # Symbols that must always be exported.
15100 include_expsyms=$lt_include_expsyms_F77
15102 # ### END LIBTOOL TAG CONFIG: $tagname
15108 # If there is no Makefile yet, we rely on a make rule to execute
15109 # `config.status --recheck' to rerun these tests and create the
15110 # libtool script then.
15111 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15112 if test -f "$ltmain_in"; then
15113 test -f Makefile && make "$ltmain"
15119 ac_cpp='$CPP $CPPFLAGS'
15120 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15121 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15122 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15132 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15135 # Source file extension for Java test sources.
15138 # Object file extension for compiled Java test sources.
15142 # Code to be used in simple compile tests
15143 lt_simple_compile_test_code="class foo {}\n"
15145 # Code to be used in simple link tests
15146 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
15148 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15150 # If no C compiler was specified, use CC.
15153 # Allow CC to be a program name with arguments.
15157 # Allow CC to be a program name with arguments.
15163 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15164 archive_cmds_need_lc_GCJ=no
15167 lt_prog_compiler_no_builtin_flag_GCJ=
15169 if test "$GCC" = yes; then
15170 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15174 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
15175 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
15176 $as_echo_n "(cached) " >&6
15178 lt_cv_prog_compiler_rtti_exceptions=no
15179 ac_outfile=conftest.$ac_objext
15180 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15181 lt_compiler_flag="-fno-rtti -fno-exceptions"
15182 # Insert the option either (1) after the last *FLAGS variable, or
15183 # (2) before a word containing "conftest.", or (3) at the end.
15184 # Note that $ac_compile itself does not contain backslashes and begins
15185 # with a dollar sign (not a hyphen), so the echo should work correctly.
15186 # The option is referenced via a variable to avoid confusing sed.
15187 lt_compile=`echo "$ac_compile" | $SED \
15188 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15189 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15190 -e 's:$: $lt_compiler_flag:'`
15191 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
15192 (eval "$lt_compile" 2>conftest.err)
15194 cat conftest.err >&5
15195 echo "$as_me:__oline__: \$? = $ac_status" >&5
15196 if (exit $ac_status) && test -s "$ac_outfile"; then
15197 # The compiler can only warn and ignore the option if not recognized
15198 # So say no if there are warnings
15199 if test ! -s conftest.err; then
15200 lt_cv_prog_compiler_rtti_exceptions=yes
15206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15207 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15209 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15210 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15217 lt_prog_compiler_wl_GCJ=
15218 lt_prog_compiler_pic_GCJ=
15219 lt_prog_compiler_static_GCJ=
15221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15222 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15224 if test "$GCC" = yes; then
15225 lt_prog_compiler_wl_GCJ='-Wl,'
15226 lt_prog_compiler_static_GCJ='-static'
15230 # All AIX code is PIC.
15231 if test "$host_cpu" = ia64; then
15232 # AIX 5 now supports IA64 processor
15233 lt_prog_compiler_static_GCJ='-Bstatic'
15238 # FIXME: we need at least 68020 code to build shared libraries, but
15239 # adding the `-m68020' flag to GCC prevents building anything better,
15241 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15244 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15245 # PIC is the default for these OSes.
15248 mingw* | pw32* | os2*)
15249 # This hack is so that the source file can tell whether it is being
15250 # built for inclusion in a dll (and should export symbols for example).
15251 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15254 darwin* | rhapsody*)
15255 # PIC is the default on this platform
15256 # Common symbols not allowed in MH_DYLIB files
15257 lt_prog_compiler_pic_GCJ='-fno-common'
15261 # Just because we use GCC doesn't mean we suddenly get shared libraries
15262 # on systems that don't support them.
15263 lt_prog_compiler_can_build_shared_GCJ=no
15268 if test -d /usr/nec; then
15269 lt_prog_compiler_pic_GCJ=-Kconform_pic
15274 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15275 # not for PA HP-UX.
15276 case "$host_cpu" in
15281 lt_prog_compiler_pic_GCJ='-fPIC'
15287 lt_prog_compiler_pic_GCJ='-fPIC'
15291 # PORTME Check for flag to pass linker flags through the system compiler.
15294 lt_prog_compiler_wl_GCJ='-Wl,'
15295 if test "$host_cpu" = ia64; then
15296 # AIX 5 now supports IA64 processor
15297 lt_prog_compiler_static_GCJ='-Bstatic'
15299 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15303 mingw* | pw32* | os2*)
15304 # This hack is so that the source file can tell whether it is being
15305 # built for inclusion in a dll (and should export symbols for example).
15306 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15309 hpux9* | hpux10* | hpux11*)
15310 lt_prog_compiler_wl_GCJ='-Wl,'
15311 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15312 # not for PA HP-UX.
15313 case "$host_cpu" in
15318 lt_prog_compiler_pic_GCJ='+Z'
15321 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15322 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15325 irix5* | irix6* | nonstopux*)
15326 lt_prog_compiler_wl_GCJ='-Wl,'
15327 # PIC (with -KPIC) is the default.
15328 lt_prog_compiler_static_GCJ='-non_shared'
15332 lt_prog_compiler_pic_GCJ='-KPIC'
15333 lt_prog_compiler_static_GCJ='-Bstatic'
15339 lt_prog_compiler_wl_GCJ='-Wl,'
15340 lt_prog_compiler_pic_GCJ='-KPIC'
15341 lt_prog_compiler_static_GCJ='-static'
15344 lt_prog_compiler_wl_GCJ='-Wl,'
15345 # All Alpha code is PIC.
15346 lt_prog_compiler_static_GCJ='-non_shared'
15351 osf3* | osf4* | osf5*)
15352 lt_prog_compiler_wl_GCJ='-Wl,'
15353 # All OSF/1 code is PIC.
15354 lt_prog_compiler_static_GCJ='-non_shared'
15358 lt_prog_compiler_pic_GCJ='-Kpic'
15359 lt_prog_compiler_static_GCJ='-dn'
15363 lt_prog_compiler_wl_GCJ='-Wl,'
15364 lt_prog_compiler_pic_GCJ='-KPIC'
15365 lt_prog_compiler_static_GCJ='-Bstatic'
15369 lt_prog_compiler_wl_GCJ='-Qoption ld '
15370 lt_prog_compiler_pic_GCJ='-PIC'
15371 lt_prog_compiler_static_GCJ='-Bstatic'
15374 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15375 lt_prog_compiler_wl_GCJ='-Wl,'
15376 lt_prog_compiler_pic_GCJ='-KPIC'
15377 lt_prog_compiler_static_GCJ='-Bstatic'
15381 if test -d /usr/nec ;then
15382 lt_prog_compiler_pic_GCJ='-Kconform_pic'
15383 lt_prog_compiler_static_GCJ='-Bstatic'
15388 lt_prog_compiler_pic_GCJ='-pic'
15389 lt_prog_compiler_static_GCJ='-Bstatic'
15393 lt_prog_compiler_can_build_shared_GCJ=no
15398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_GCJ" >&5
15399 $as_echo "$lt_prog_compiler_pic_GCJ" >&6; }
15402 # Check to make sure the PIC flag actually works.
15404 if test -n "$lt_prog_compiler_pic_GCJ"; then
15406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15407 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
15408 if ${lt_prog_compiler_pic_works_GCJ+:} false; then :
15409 $as_echo_n "(cached) " >&6
15411 lt_prog_compiler_pic_works_GCJ=no
15412 ac_outfile=conftest.$ac_objext
15413 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15414 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15415 # Insert the option either (1) after the last *FLAGS variable, or
15416 # (2) before a word containing "conftest.", or (3) at the end.
15417 # Note that $ac_compile itself does not contain backslashes and begins
15418 # with a dollar sign (not a hyphen), so the echo should work correctly.
15419 # The option is referenced via a variable to avoid confusing sed.
15420 lt_compile=`echo "$ac_compile" | $SED \
15421 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15422 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15423 -e 's:$: $lt_compiler_flag:'`
15424 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
15425 (eval "$lt_compile" 2>conftest.err)
15427 cat conftest.err >&5
15428 echo "$as_me:__oline__: \$? = $ac_status" >&5
15429 if (exit $ac_status) && test -s "$ac_outfile"; then
15430 # The compiler can only warn and ignore the option if not recognized
15431 # So say no if there are warnings
15432 if test ! -s conftest.err; then
15433 lt_prog_compiler_pic_works_GCJ=yes
15439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_works_GCJ" >&5
15440 $as_echo "$lt_prog_compiler_pic_works_GCJ" >&6; }
15442 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15443 case $lt_prog_compiler_pic_GCJ in
15445 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15448 lt_prog_compiler_pic_GCJ=
15449 lt_prog_compiler_can_build_shared_GCJ=no
15454 # For platforms which do not support PIC, -DPIC is meaningless:
15456 lt_prog_compiler_pic_GCJ=
15459 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15464 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15465 if ${lt_cv_prog_compiler_c_o_GCJ+:} false; then :
15466 $as_echo_n "(cached) " >&6
15468 lt_cv_prog_compiler_c_o_GCJ=no
15469 $rm -r conftest 2>/dev/null
15473 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15475 lt_compiler_flag="-o out/conftest2.$ac_objext"
15476 # Insert the option either (1) after the last *FLAGS variable, or
15477 # (2) before a word containing "conftest.", or (3) at the end.
15478 # Note that $ac_compile itself does not contain backslashes and begins
15479 # with a dollar sign (not a hyphen), so the echo should work correctly.
15480 lt_compile=`echo "$ac_compile" | $SED \
15481 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15482 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15483 -e 's:$: $lt_compiler_flag:'`
15484 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
15485 (eval "$lt_compile" 2>out/conftest.err)
15487 cat out/conftest.err >&5
15488 echo "$as_me:__oline__: \$? = $ac_status" >&5
15489 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15491 # The compiler can only warn and ignore the option if not recognized
15492 # So say no if there are warnings
15493 if test ! -s out/conftest.err; then
15494 lt_cv_prog_compiler_c_o_GCJ=yes
15499 # SGI C++ compiler will create directory out/ii_files/ for
15500 # template instantiation
15501 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15502 $rm out/* && rmdir out
15508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15509 $as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
15512 hard_links="nottested"
15513 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15514 # do not overwrite the value of need_locks provided by the user
15515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15516 $as_echo_n "checking if we can lock with hard links... " >&6; }
15519 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15521 ln conftest.a conftest.b 2>&5 || hard_links=no
15522 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15524 $as_echo "$hard_links" >&6; }
15525 if test "$hard_links" = no; then
15526 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15527 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15535 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15538 allow_undefined_flag_GCJ=
15539 enable_shared_with_static_runtimes_GCJ=no
15541 archive_expsym_cmds_GCJ=
15542 old_archive_From_new_cmds_GCJ=
15543 old_archive_from_expsyms_cmds_GCJ=
15544 export_dynamic_flag_spec_GCJ=
15545 whole_archive_flag_spec_GCJ=
15546 thread_safe_flag_spec_GCJ=
15547 hardcode_libdir_flag_spec_GCJ=
15548 hardcode_libdir_flag_spec_ld_GCJ=
15549 hardcode_libdir_separator_GCJ=
15550 hardcode_direct_GCJ=no
15551 hardcode_minus_L_GCJ=no
15552 hardcode_shlibpath_var_GCJ=unsupported
15553 link_all_deplibs_GCJ=unknown
15554 hardcode_automatic_GCJ=no
15556 module_expsym_cmds_GCJ=
15557 always_export_symbols_GCJ=no
15558 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15559 # include_expsyms should be a list of space-separated symbols to be *always*
15560 # included in the symbol list
15561 include_expsyms_GCJ=
15562 # exclude_expsyms can be an extended regexp of symbols to exclude
15563 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15564 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15565 # as well as any symbol that contains `d'.
15566 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15567 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15568 # platforms (ab)use it in PIC code, but their linkers get confused if
15569 # the symbol is explicitly referenced. Since portable code cannot
15570 # rely on this symbol name, it's probably fine to never include it in
15571 # preloaded symbol tables.
15572 extract_expsyms_cmds=
15575 cygwin* | mingw* | pw32*)
15576 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15577 # When not using gcc, we currently assume that we are using
15578 # Microsoft Visual C++.
15579 if test "$GCC" != yes; then
15589 if test "$with_gnu_ld" = yes; then
15590 # If archive_cmds runs LD, not CC, wlarc should be empty
15593 # See if GNU ld supports shared libraries.
15595 aix3* | aix4* | aix5*)
15596 # On AIX/PPC, the GNU linker is very broken
15597 if test "$host_cpu" != ia64; then
15601 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15602 *** to be unable to reliably create shared libraries on AIX.
15603 *** Therefore, libtool is disabling shared libraries support. If you
15604 *** really care for shared libraries, you may want to modify your PATH
15605 *** so that a non-GNU linker is found, and then restart.
15612 archive_cmds_GCJ='$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)'
15613 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15614 hardcode_minus_L_GCJ=yes
15616 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15617 # that the semantics of dynamic libraries on AmigaOS, at least up
15618 # to version 4, is to share data among multiple programs linked
15619 # with the same dynamic library. Since this doesn't match the
15620 # behavior of shared libraries on other platforms, we can't use
15626 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15627 allow_undefined_flag_GCJ=unsupported
15628 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15629 # support --undefined. This deserves some investigation. FIXME
15630 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15636 cygwin* | mingw* | pw32*)
15637 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15638 # as there is no search path for DLLs.
15639 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15640 allow_undefined_flag_GCJ=unsupported
15641 always_export_symbols_GCJ=no
15642 enable_shared_with_static_runtimes_GCJ=yes
15643 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15645 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15646 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15647 # If the export-symbols file already is a .def file (1st line
15648 # is EXPORTS), use it as is; otherwise, prepend...
15649 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15650 cp $export_symbols $output_objdir/$soname.def;
15652 echo EXPORTS > $output_objdir/$soname.def;
15653 cat $export_symbols >> $output_objdir/$soname.def;
15655 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15661 netbsd* | knetbsd*-gnu)
15662 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15663 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15666 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15667 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15672 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15676 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15677 *** create shared libraries on Solaris systems. Therefore, libtool
15678 *** is disabling shared libraries support. We urge you to upgrade GNU
15679 *** binutils to release 2.9.1 or newer. Another option is to modify
15680 *** your PATH or compiler configuration so that the native linker is
15681 *** used, and then restart.
15684 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15685 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15686 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15693 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15695 hardcode_direct_GCJ=yes
15696 hardcode_shlibpath_var_GCJ=no
15700 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
15701 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15702 archive_cmds_GCJ="$tmp_archive_cmds"
15703 supports_anon_versioning=no
15704 case `$LD -v 2>/dev/null` in
15705 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15706 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15707 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15708 *\ 2.11.*) ;; # other 2.11 versions
15709 *) supports_anon_versioning=yes ;;
15711 if test $supports_anon_versioning = yes; then
15712 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
15713 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15714 $echo "local: *; };" >> $output_objdir/$libname.ver~
15715 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15717 archive_expsym_cmds_GCJ="$tmp_archive_cmds"
15725 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15726 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15727 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15734 if test "$ld_shlibs_GCJ" = yes; then
15735 runpath_var=LD_RUN_PATH
15736 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15737 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15738 # ancient GNU ld didn't support --whole-archive et. al.
15739 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15740 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15742 whole_archive_flag_spec_GCJ=
15746 # PORTME fill in a description of your system's linker (not GNU ld)
15749 allow_undefined_flag_GCJ=unsupported
15750 always_export_symbols_GCJ=yes
15751 archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
15752 # Note: this linker hardcodes the directories in LIBPATH if there
15753 # are no directories specified by -L.
15754 hardcode_minus_L_GCJ=yes
15755 if test "$GCC" = yes && test -z "$link_static_flag"; then
15756 # Neither direct hardcoding nor static linking is supported with a
15758 hardcode_direct_GCJ=unsupported
15763 if test "$host_cpu" = ia64; then
15764 # On IA64, the linker does run time linking by default, so we don't
15765 # have to do anything special.
15766 aix_use_runtimelinking=no
15767 exp_sym_flag='-Bexport'
15770 # If we're using GNU nm, then we don't want the "-C" option.
15771 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15772 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15773 export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
15775 export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
15777 aix_use_runtimelinking=no
15779 # Test if we are trying to use run time linking or normal
15780 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15781 # need to do runtime linking.
15782 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15783 for ld_flag in $LDFLAGS; do
15784 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15785 aix_use_runtimelinking=yes
15791 exp_sym_flag='-bexport'
15792 no_entry_flag='-bnoentry'
15795 # When large executables or shared objects are built, AIX ld can
15796 # have problems creating the table of contents. If linking a library
15797 # or program results in "error TOC overflow" add -mminimal-toc to
15798 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15799 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15801 archive_cmds_GCJ=''
15802 hardcode_direct_GCJ=yes
15803 hardcode_libdir_separator_GCJ=':'
15804 link_all_deplibs_GCJ=yes
15806 if test "$GCC" = yes; then
15807 case $host_os in aix4.012|aix4.012.*)
15808 # We only want to do this on AIX 4.2 and lower, the check
15809 # below for broken collect2 doesn't work under 4.3+
15810 collect2name=`${CC} -print-prog-name=collect2`
15811 if test -f "$collect2name" && \
15812 strings "$collect2name" | grep resolve_lib_name >/dev/null
15814 # We have reworked collect2
15815 hardcode_direct_GCJ=yes
15817 # We have old collect2
15818 hardcode_direct_GCJ=unsupported
15819 # It fails to find uninstalled libraries when the uninstalled
15820 # path is not listed in the libpath. Setting hardcode_minus_L
15821 # to unsupported forces relinking
15822 hardcode_minus_L_GCJ=yes
15823 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15824 hardcode_libdir_separator_GCJ=
15827 shared_flag='-shared'
15830 if test "$host_cpu" = ia64; then
15831 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15832 # chokes on -Wl,-G. The following line is correct:
15835 if test "$aix_use_runtimelinking" = yes; then
15836 shared_flag='${wl}-G'
15838 shared_flag='${wl}-bM:SRE'
15843 # It seems that -bexpall does not export symbols beginning with
15844 # underscore (_), so it is better to generate a list of symbols to export.
15845 always_export_symbols_GCJ=yes
15846 if test "$aix_use_runtimelinking" = yes; then
15847 # Warning - without using the other runtime loading flags (-brtl),
15848 # -berok will link without error, but may produce a broken library.
15849 allow_undefined_flag_GCJ='-berok'
15850 # Determine the default libpath from the value encoded in an empty executable.
15851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15852 /* end confdefs.h. */
15862 if ac_fn_c_try_link "$LINENO"; then :
15864 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15866 # Check for a 64-bit object if we didn't find anything.
15867 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15870 rm -f core conftest.err conftest.$ac_objext \
15871 conftest$ac_exeext conftest.$ac_ext
15872 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15874 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15875 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
15877 if test "$host_cpu" = ia64; then
15878 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
15879 allow_undefined_flag_GCJ="-z nodefs"
15880 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
15882 # Determine the default libpath from the value encoded in an empty executable.
15883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15884 /* end confdefs.h. */
15894 if ac_fn_c_try_link "$LINENO"; then :
15896 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15898 # Check for a 64-bit object if we didn't find anything.
15899 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15902 rm -f core conftest.err conftest.$ac_objext \
15903 conftest$ac_exeext conftest.$ac_ext
15904 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15906 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15907 # Warning - without using the other run time loading flags,
15908 # -berok will link without error, but may produce a broken library.
15909 no_undefined_flag_GCJ=' ${wl}-bernotok'
15910 allow_undefined_flag_GCJ=' ${wl}-berok'
15911 # -bexpall does not export symbols beginning with underscore (_)
15912 always_export_symbols_GCJ=yes
15913 # Exported symbols can be pulled into shared objects from archives
15914 whole_archive_flag_spec_GCJ=' '
15915 archive_cmds_need_lc_GCJ=yes
15916 # This is similar to how AIX traditionally builds it's shared libraries.
15917 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
15923 archive_cmds_GCJ='$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)'
15924 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15925 hardcode_minus_L_GCJ=yes
15926 # see comment about different semantics on the GNU ld section
15931 export_dynamic_flag_spec_GCJ=-rdynamic
15934 cygwin* | mingw* | pw32*)
15935 # When not using gcc, we currently assume that we are using
15936 # Microsoft Visual C++.
15937 # hardcode_libdir_flag_spec is actually meaningless, as there is
15938 # no search path for DLLs.
15939 hardcode_libdir_flag_spec_GCJ=' '
15940 allow_undefined_flag_GCJ=unsupported
15941 # Tell ltmain to make .lib files, not .a files.
15943 # Tell ltmain to make .dll files, not .so files.
15945 # FIXME: Setting linknames here is a bad hack.
15946 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15947 # The linker will automatically build a .lib file if we build a DLL.
15948 old_archive_From_new_cmds_GCJ='true'
15949 # FIXME: Should let the user specify the lib program.
15950 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
15951 fix_srcfile_path='`cygpath -w "$srcfile"`'
15952 enable_shared_with_static_runtimes_GCJ=yes
15955 darwin* | rhapsody*)
15956 if test "$GXX" = yes ; then
15957 archive_cmds_need_lc_GCJ=no
15959 rhapsody* | darwin1.[012])
15960 allow_undefined_flag_GCJ='-undefined suppress'
15963 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15964 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
15966 case ${MACOSX_DEPLOYMENT_TARGET} in
15968 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
15971 allow_undefined_flag_GCJ='-undefined dynamic_lookup'
15977 lt_int_apple_cc_single_mod=no
15978 output_verbose_link_cmd='echo'
15979 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
15980 lt_int_apple_cc_single_mod=yes
15982 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15983 archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15985 archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15987 module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15988 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15989 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15990 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15992 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15994 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15995 hardcode_direct_GCJ=no
15996 hardcode_automatic_GCJ=yes
15997 hardcode_shlibpath_var_GCJ=unsupported
15998 whole_archive_flag_spec_GCJ='-all_load $convenience'
15999 link_all_deplibs_GCJ=yes
16006 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16007 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16008 hardcode_shlibpath_var_GCJ=no
16015 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16016 # support. Future versions do this automatically, but an explicit c++rt0.o
16017 # does not break anything, and helps significantly (at the cost of a little
16020 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16021 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16022 hardcode_direct_GCJ=yes
16023 hardcode_shlibpath_var_GCJ=no
16026 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16028 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16029 hardcode_direct_GCJ=yes
16030 hardcode_minus_L_GCJ=yes
16031 hardcode_shlibpath_var_GCJ=no
16034 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16035 freebsd* | kfreebsd*-gnu)
16036 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16037 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16038 hardcode_direct_GCJ=yes
16039 hardcode_shlibpath_var_GCJ=no
16043 if test "$GCC" = yes; then
16044 archive_cmds_GCJ='$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'
16046 archive_cmds_GCJ='$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'
16048 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16049 hardcode_libdir_separator_GCJ=:
16050 hardcode_direct_GCJ=yes
16052 # hardcode_minus_L: Not really in the search PATH,
16053 # but as the default location of the library.
16054 hardcode_minus_L_GCJ=yes
16055 export_dynamic_flag_spec_GCJ='${wl}-E'
16059 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16060 case "$host_cpu" in
16062 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16065 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16069 case "$host_cpu" in
16071 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16074 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16078 if test "$with_gnu_ld" = no; then
16079 case "$host_cpu" in
16081 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16082 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16083 hardcode_libdir_separator_GCJ=:
16084 hardcode_direct_GCJ=no
16085 hardcode_shlibpath_var_GCJ=no
16088 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16089 hardcode_direct_GCJ=no
16090 hardcode_shlibpath_var_GCJ=no
16092 # hardcode_minus_L: Not really in the search PATH,
16093 # but as the default location of the library.
16094 hardcode_minus_L_GCJ=yes
16097 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16098 hardcode_libdir_separator_GCJ=:
16099 hardcode_direct_GCJ=yes
16100 export_dynamic_flag_spec_GCJ='${wl}-E'
16102 # hardcode_minus_L: Not really in the search PATH,
16103 # but as the default location of the library.
16104 hardcode_minus_L_GCJ=yes
16110 irix5* | irix6* | nonstopux*)
16111 if test "$GCC" = yes; then
16112 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16114 archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
16115 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16117 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16118 hardcode_libdir_separator_GCJ=:
16119 link_all_deplibs_GCJ=yes
16122 netbsd* | knetbsd*-gnu)
16123 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16124 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16126 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16128 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16129 hardcode_direct_GCJ=yes
16130 hardcode_shlibpath_var_GCJ=no
16134 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16135 hardcode_direct_GCJ=yes
16136 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16137 hardcode_libdir_separator_GCJ=:
16138 hardcode_shlibpath_var_GCJ=no
16142 hardcode_direct_GCJ=yes
16143 hardcode_shlibpath_var_GCJ=no
16144 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16145 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16146 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16147 export_dynamic_flag_spec_GCJ='${wl}-E'
16150 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16151 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16152 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16155 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16156 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16163 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16164 hardcode_minus_L_GCJ=yes
16165 allow_undefined_flag_GCJ=unsupported
16166 archive_cmds_GCJ='$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'
16167 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16171 if test "$GCC" = yes; then
16172 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16173 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16175 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16176 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
16178 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16179 hardcode_libdir_separator_GCJ=:
16182 osf4* | osf5*) # as osf3* with the addition of -msym flag
16183 if test "$GCC" = yes; then
16184 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16185 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16186 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16188 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16189 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
16190 archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
16191 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
16193 # Both c and cxx compiler support -rpath directly
16194 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16196 hardcode_libdir_separator_GCJ=:
16200 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16201 hardcode_shlibpath_var_GCJ=no
16202 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16203 runpath_var=LD_RUN_PATH
16204 hardcode_runpath_var=yes
16208 no_undefined_flag_GCJ=' -z text'
16209 if test "$GCC" = yes; then
16210 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16211 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16212 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16214 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16215 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16216 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16218 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16219 hardcode_shlibpath_var_GCJ=no
16221 solaris2.[0-5] | solaris2.[0-5].*) ;;
16222 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16223 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16225 link_all_deplibs_GCJ=yes
16229 if test "x$host_vendor" = xsequent; then
16230 # Use $CC to link under sequent, because it throws in some extra .o
16231 # files that make .init and .fini sections work.
16232 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16234 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16236 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16237 hardcode_direct_GCJ=yes
16238 hardcode_minus_L_GCJ=yes
16239 hardcode_shlibpath_var_GCJ=no
16243 case $host_vendor in
16245 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16246 hardcode_direct_GCJ=yes # is this really true???
16249 ## LD is ld it makes a PLAMLIB
16250 ## CC just makes a GrossModule.
16251 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16252 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16253 hardcode_direct_GCJ=no
16256 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16257 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16260 runpath_var='LD_RUN_PATH'
16261 hardcode_shlibpath_var_GCJ=no
16265 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16266 hardcode_shlibpath_var_GCJ=no
16267 export_dynamic_flag_spec_GCJ='-Bexport'
16271 if test -d /usr/nec; then
16272 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16273 hardcode_shlibpath_var_GCJ=no
16274 runpath_var=LD_RUN_PATH
16275 hardcode_runpath_var=yes
16281 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16282 hardcode_direct_GCJ=yes
16283 hardcode_minus_L_GCJ=no
16284 hardcode_shlibpath_var_GCJ=no
16285 hardcode_runpath_var=yes
16286 runpath_var=LD_RUN_PATH
16289 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16290 no_undefined_flag_GCJ='${wl}-z ${wl}text'
16291 if test "$GCC" = yes; then
16292 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16294 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16296 runpath_var='LD_RUN_PATH'
16297 hardcode_shlibpath_var_GCJ=no
16301 no_undefined_flag_GCJ=' -z text'
16302 # $CC -shared without GNU ld will not create a library from C++
16303 # object files and a static libstdc++, better avoid it by now
16304 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16305 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16306 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16307 hardcode_libdir_flag_spec_GCJ=
16308 hardcode_shlibpath_var_GCJ=no
16309 runpath_var='LD_RUN_PATH'
16313 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16314 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16315 hardcode_shlibpath_var_GCJ=no
16324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_GCJ" >&5
16325 $as_echo "$ld_shlibs_GCJ" >&6; }
16326 test "$ld_shlibs_GCJ" = no && can_build_shared=no
16328 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16329 if test "$GCC" = yes; then
16330 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16334 # Do we need to explicitly link libc?
16336 case "x$archive_cmds_need_lc_GCJ" in
16338 # Assume -lc should be added
16339 archive_cmds_need_lc_GCJ=yes
16341 if test "$enable_shared" = yes && test "$GCC" = yes; then
16342 case $archive_cmds_GCJ in
16344 # FIXME: we may have to deal with multi-command sequences.
16347 # Test whether the compiler implicitly links with -lc since on some
16348 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16349 # to ld, don't add -lc before -lgcc.
16350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16351 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16353 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16355 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16356 (eval $ac_compile) 2>&5
16358 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16359 test $ac_status = 0; } 2>conftest.err; then
16362 libobjs=conftest.$ac_objext
16364 wl=$lt_prog_compiler_wl_GCJ
16370 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16371 allow_undefined_flag_GCJ=
16372 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16373 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16375 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16376 test $ac_status = 0; }
16378 archive_cmds_need_lc_GCJ=no
16380 archive_cmds_need_lc_GCJ=yes
16382 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16384 cat conftest.err 1>&5
16387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_GCJ" >&5
16388 $as_echo "$archive_cmds_need_lc_GCJ" >&6; }
16395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16396 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16397 library_names_spec=
16398 libname_spec='lib$name'
16402 postuninstall_cmds=
16406 shlibpath_overrides_runpath=unknown
16408 dynamic_linker="$host_os ld.so"
16409 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16410 if test "$GCC" = yes; then
16411 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16412 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16413 # if the path contains ";" then we assume it to be the separator
16414 # otherwise default to the standard path separator (i.e. ":") - it is
16415 # assumed that no part of a normal pathname contains ";" but that should
16416 # okay in the real world where ";" in dirpaths is itself problematic.
16417 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16419 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16422 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16424 need_lib_prefix=unknown
16425 hardcode_into_libs=no
16427 # when you set need_version to no, make sure it does not cause -set_version
16428 # flags to be left without arguments
16429 need_version=unknown
16434 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16435 shlibpath_var=LIBPATH
16437 # AIX 3 has no versioning support, so we append a major version to the name.
16438 soname_spec='${libname}${release}${shared_ext}$major'
16445 hardcode_into_libs=yes
16446 if test "$host_cpu" = ia64; then
16447 # AIX 5 supports IA64
16448 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16449 shlibpath_var=LD_LIBRARY_PATH
16451 # With GCC up to 2.95.x, collect2 would create an import file
16452 # for dependence libraries. The import file would start with
16453 # the line `#! .'. This would cause the generated library to
16454 # depend on `.', always an invalid library. This was fixed in
16455 # development snapshots of GCC prior to 3.0.
16457 aix4 | aix4.[01] | aix4.[01].*)
16458 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16460 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16463 can_build_shared=no
16467 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16468 # soname into executable. Probably we can add versioning support to
16469 # collect2, so additional links can be useful in future.
16470 if test "$aix_use_runtimelinking" = yes; then
16471 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16472 # instead of lib<name>.a to let people know that these are not
16473 # typical AIX shared libraries.
16474 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16476 # We preserve .a as extension for shared libraries through AIX4.2
16477 # and later when we are not doing run time linking.
16478 library_names_spec='${libname}${release}.a $libname.a'
16479 soname_spec='${libname}${release}${shared_ext}$major'
16481 shlibpath_var=LIBPATH
16486 library_names_spec='$libname.ixlibrary $libname.a'
16487 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16488 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
16492 library_names_spec='${libname}${shared_ext}'
16493 dynamic_linker="$host_os ld.so"
16494 shlibpath_var=LIBRARY_PATH
16500 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16501 soname_spec='${libname}${release}${shared_ext}$major'
16502 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16503 shlibpath_var=LD_LIBRARY_PATH
16504 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16505 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16506 # the default ld.so.conf also contains /usr/contrib/lib and
16507 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16508 # libtool to hard-code these into programs
16511 cygwin* | mingw* | pw32*)
16512 version_type=windows
16517 case $GCC,$host_os in
16518 yes,cygwin* | yes,mingw* | yes,pw32*)
16519 library_names_spec='$libname.dll.a'
16520 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16521 postinstall_cmds='base_file=`basename \${file}`~
16522 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16523 dldir=$destdir/`dirname \$dlpath`~
16524 test -d \$dldir || mkdir -p \$dldir~
16525 $install_prog $dir/$dlname \$dldir/$dlname'
16526 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16527 dlpath=$dir/\$dldll~
16529 shlibpath_overrides_runpath=yes
16533 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16534 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16535 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16538 # MinGW DLLs use traditional 'lib' prefix
16539 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16540 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16541 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16542 # It is most probably a Windows format PATH printed by
16543 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16544 # path with ; separators, and with drive letters. We can handle the
16545 # drive letters (cygwin fileutils understands them), so leave them,
16546 # especially as we might pass files found there to a mingw objdump,
16547 # which wouldn't understand a cygwinified path. Ahh.
16548 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16550 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16554 # pw32 DLLs use 'pw' prefix rather than 'lib'
16555 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16561 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16564 dynamic_linker='Win32 ld.exe'
16565 # FIXME: first we should search . and the directory the executable is in
16569 darwin* | rhapsody*)
16570 dynamic_linker="$host_os dyld"
16571 version_type=darwin
16574 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16575 soname_spec='${libname}${release}${major}$shared_ext'
16576 shlibpath_overrides_runpath=yes
16577 shlibpath_var=DYLD_LIBRARY_PATH
16578 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
16579 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16580 if test "$GCC" = yes; then
16581 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
16583 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16585 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16592 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16593 soname_spec='${libname}${release}${shared_ext}$major'
16594 shlibpath_var=LD_LIBRARY_PATH
16605 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16606 soname_spec='${libname}${release}${shared_ext}$major'
16607 shlibpath_var=LD_LIBRARY_PATH
16608 shlibpath_overrides_runpath=no
16609 hardcode_into_libs=yes
16610 dynamic_linker='GNU ld.so'
16614 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16615 version_type=freebsd-$objformat
16616 case $version_type in
16618 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16623 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16627 shlibpath_var=LD_LIBRARY_PATH
16630 shlibpath_overrides_runpath=yes
16632 freebsd3.01* | freebsdelf3.01*)
16633 shlibpath_overrides_runpath=yes
16634 hardcode_into_libs=yes
16637 shlibpath_overrides_runpath=no
16638 hardcode_into_libs=yes
16647 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16648 soname_spec='${libname}${release}${shared_ext}$major'
16649 shlibpath_var=LD_LIBRARY_PATH
16650 hardcode_into_libs=yes
16653 hpux9* | hpux10* | hpux11*)
16654 # Give a soname corresponding to the major version so that dld.sl refuses to
16655 # link against other versions.
16659 case "$host_cpu" in
16662 hardcode_into_libs=yes
16663 dynamic_linker="$host_os dld.so"
16664 shlibpath_var=LD_LIBRARY_PATH
16665 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16666 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16667 soname_spec='${libname}${release}${shared_ext}$major'
16668 if test "X$HPUX_IA64_MODE" = X32; then
16669 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16671 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16673 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16677 hardcode_into_libs=yes
16678 dynamic_linker="$host_os dld.sl"
16679 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16680 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16681 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16682 soname_spec='${libname}${release}${shared_ext}$major'
16683 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16684 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16688 dynamic_linker="$host_os dld.sl"
16689 shlibpath_var=SHLIB_PATH
16690 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16691 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16692 soname_spec='${libname}${release}${shared_ext}$major'
16695 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16696 postinstall_cmds='chmod 555 $lib'
16699 irix5* | irix6* | nonstopux*)
16701 nonstopux*) version_type=nonstopux ;;
16703 if test "$lt_cv_prog_gnu_ld" = yes; then
16711 soname_spec='${libname}${release}${shared_ext}$major'
16712 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16714 irix5* | nonstopux*)
16715 libsuff= shlibsuff=
16718 case $LD in # libtool.m4 will add one of these switches to LD
16719 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16720 libsuff= shlibsuff= libmagic=32-bit;;
16721 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16722 libsuff=32 shlibsuff=N32 libmagic=N32;;
16723 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16724 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16725 *) libsuff= shlibsuff= libmagic=never-match;;
16729 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16730 shlibpath_overrides_runpath=no
16731 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16732 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16733 hardcode_into_libs=yes
16736 # No shared lib support for Linux oldld, aout, or coff.
16737 linux*oldld* | linux*aout* | linux*coff*)
16741 # This must be Linux ELF.
16746 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16747 soname_spec='${libname}${release}${shared_ext}$major'
16748 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16749 shlibpath_var=LD_LIBRARY_PATH
16750 shlibpath_overrides_runpath=no
16751 # This implies no fast_install, which is unacceptable.
16752 # Some rework will be needed to allow for fast_install
16753 # before this can be enabled.
16754 hardcode_into_libs=yes
16756 # Append ld.so.conf contents to the search path
16757 if test -f /etc/ld.so.conf; then
16758 ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
16759 sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
16762 # We used to test for /lib/ld.so.1 and disable shared libraries on
16763 # powerpc, because MkLinux only supported shared libraries with the
16764 # GNU dynamic linker. Since this was broken with cross compilers,
16765 # most powerpc-linux boxes support dynamic linking these days and
16766 # people can always --disable-shared, the test was removed, and we
16767 # assume the GNU/Linux dynamic linker is in use.
16768 dynamic_linker='GNU/Linux ld.so'
16775 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16776 soname_spec='${libname}${release}${shared_ext}$major'
16777 shlibpath_var=LD_LIBRARY_PATH
16778 shlibpath_overrides_runpath=no
16779 hardcode_into_libs=yes
16780 dynamic_linker='GNU ld.so'
16787 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16788 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16789 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16790 dynamic_linker='NetBSD (a.out) ld.so'
16792 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16793 soname_spec='${libname}${release}${shared_ext}$major'
16794 dynamic_linker='NetBSD ld.elf_so'
16796 shlibpath_var=LD_LIBRARY_PATH
16797 shlibpath_overrides_runpath=yes
16798 hardcode_into_libs=yes
16803 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16804 shlibpath_var=LD_LIBRARY_PATH
16805 shlibpath_overrides_runpath=yes
16812 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16813 soname_spec='${libname}${release}${shared_ext}$major'
16814 shlibpath_var=LD_LIBRARY_PATH
16815 shlibpath_overrides_runpath=yes
16822 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16823 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16824 shlibpath_var=LD_LIBRARY_PATH
16825 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16827 openbsd2.[89] | openbsd2.[89].*)
16828 shlibpath_overrides_runpath=no
16831 shlibpath_overrides_runpath=yes
16835 shlibpath_overrides_runpath=yes
16840 libname_spec='$name'
16843 library_names_spec='$libname${shared_ext} $libname.a'
16844 dynamic_linker='OS/2 ld.exe'
16845 shlibpath_var=LIBPATH
16848 osf3* | osf4* | osf5*)
16852 soname_spec='${libname}${release}${shared_ext}$major'
16853 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16854 shlibpath_var=LD_LIBRARY_PATH
16855 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16856 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16861 soname_spec='${libname}${release}${shared_ext}$major'
16862 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16863 shlibpath_var=LD_LIBRARY_PATH
16870 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16871 soname_spec='${libname}${release}${shared_ext}$major'
16872 shlibpath_var=LD_LIBRARY_PATH
16873 shlibpath_overrides_runpath=yes
16874 hardcode_into_libs=yes
16875 # ldd complains unless libraries are executable
16876 postinstall_cmds='chmod +x $lib'
16881 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16882 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16883 shlibpath_var=LD_LIBRARY_PATH
16884 shlibpath_overrides_runpath=yes
16885 if test "$with_gnu_ld" = yes; then
16891 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16893 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16894 soname_spec='${libname}${release}${shared_ext}$major'
16895 shlibpath_var=LD_LIBRARY_PATH
16896 case $host_vendor in
16898 shlibpath_overrides_runpath=no
16900 export_dynamic_flag_spec='${wl}-Blargedynsym'
16901 runpath_var=LD_RUN_PATH
16909 shlibpath_overrides_runpath=no
16910 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16916 if test -d /usr/nec ;then
16918 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16919 soname_spec='$libname${shared_ext}.$major'
16920 shlibpath_var=LD_LIBRARY_PATH
16926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16927 soname_spec='${libname}${release}${shared_ext}$major'
16928 shlibpath_var=LD_LIBRARY_PATH
16935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16936 $as_echo "$dynamic_linker" >&6; }
16937 test "$dynamic_linker" = no && can_build_shared=no
16939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16940 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16941 hardcode_action_GCJ=
16942 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
16943 test -n "$runpath_var GCJ" || \
16944 test "X$hardcode_automatic_GCJ"="Xyes" ; then
16946 # We can hardcode non-existant directories.
16947 if test "$hardcode_direct_GCJ" != no &&
16948 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16949 # have to relink, otherwise we might link with an installed library
16950 # when we should be linking with a yet-to-be-installed one
16951 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
16952 test "$hardcode_minus_L_GCJ" != no; then
16953 # Linking always hardcodes the temporary library directory.
16954 hardcode_action_GCJ=relink
16956 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16957 hardcode_action_GCJ=immediate
16960 # We cannot hardcode anything, or else we can only hardcode existing
16962 hardcode_action_GCJ=unsupported
16964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_GCJ" >&5
16965 $as_echo "$hardcode_action_GCJ" >&6; }
16967 if test "$hardcode_action_GCJ" = relink; then
16968 # Fast installation is not supported
16969 enable_fast_install=no
16970 elif test "$shlibpath_overrides_runpath" = yes ||
16971 test "$enable_shared" = no; then
16972 # Fast installation is not necessary
16973 enable_fast_install=needless
16978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
16979 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
16980 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16981 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16982 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16984 $as_echo "yes" >&6; }
16986 # FIXME - insert some real tests, host_os isn't really good enough
16989 if test -n "$STRIP" ; then
16990 striplib="$STRIP -x"
16991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16992 $as_echo "yes" >&6; }
16994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16995 $as_echo "no" >&6; }
16999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17000 $as_echo "no" >&6; }
17005 if test "x$enable_dlopen" != xyes; then
17006 enable_dlopen=unknown
17007 enable_dlopen_self=unknown
17008 enable_dlopen_self_static=unknown
17015 lt_cv_dlopen="load_add_on"
17017 lt_cv_dlopen_self=yes
17021 lt_cv_dlopen="LoadLibrary"
17026 lt_cv_dlopen="dlopen"
17031 # if libdl is installed we need to link against it
17032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17033 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17034 if ${ac_cv_lib_dl_dlopen+:} false; then :
17035 $as_echo_n "(cached) " >&6
17037 ac_check_lib_save_LIBS=$LIBS
17039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17040 /* end confdefs.h. */
17042 /* Override any GCC internal prototype to avoid an error.
17043 Use char because int might match the return type of a GCC
17044 builtin and then its argument prototype would still apply. */
17057 if ac_fn_c_try_link "$LINENO"; then :
17058 ac_cv_lib_dl_dlopen=yes
17060 ac_cv_lib_dl_dlopen=no
17062 rm -f core conftest.err conftest.$ac_objext \
17063 conftest$ac_exeext conftest.$ac_ext
17064 LIBS=$ac_check_lib_save_LIBS
17066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17067 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17068 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
17069 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17072 lt_cv_dlopen="dyld"
17074 lt_cv_dlopen_self=yes
17081 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
17082 if test "x$ac_cv_func_shl_load" = xyes; then :
17083 lt_cv_dlopen="shl_load"
17085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17086 $as_echo_n "checking for shl_load in -ldld... " >&6; }
17087 if ${ac_cv_lib_dld_shl_load+:} false; then :
17088 $as_echo_n "(cached) " >&6
17090 ac_check_lib_save_LIBS=$LIBS
17092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17093 /* end confdefs.h. */
17095 /* Override any GCC internal prototype to avoid an error.
17096 Use char because int might match the return type of a GCC
17097 builtin and then its argument prototype would still apply. */
17105 return shl_load ();
17110 if ac_fn_c_try_link "$LINENO"; then :
17111 ac_cv_lib_dld_shl_load=yes
17113 ac_cv_lib_dld_shl_load=no
17115 rm -f core conftest.err conftest.$ac_objext \
17116 conftest$ac_exeext conftest.$ac_ext
17117 LIBS=$ac_check_lib_save_LIBS
17119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17120 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17121 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
17122 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17124 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
17125 if test "x$ac_cv_func_dlopen" = xyes; then :
17126 lt_cv_dlopen="dlopen"
17128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17129 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17130 if ${ac_cv_lib_dl_dlopen+:} false; then :
17131 $as_echo_n "(cached) " >&6
17133 ac_check_lib_save_LIBS=$LIBS
17135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17136 /* end confdefs.h. */
17138 /* Override any GCC internal prototype to avoid an error.
17139 Use char because int might match the return type of a GCC
17140 builtin and then its argument prototype would still apply. */
17153 if ac_fn_c_try_link "$LINENO"; then :
17154 ac_cv_lib_dl_dlopen=yes
17156 ac_cv_lib_dl_dlopen=no
17158 rm -f core conftest.err conftest.$ac_objext \
17159 conftest$ac_exeext conftest.$ac_ext
17160 LIBS=$ac_check_lib_save_LIBS
17162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17163 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17164 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
17165 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17168 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
17169 if ${ac_cv_lib_svld_dlopen+:} false; then :
17170 $as_echo_n "(cached) " >&6
17172 ac_check_lib_save_LIBS=$LIBS
17173 LIBS="-lsvld $LIBS"
17174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17175 /* end confdefs.h. */
17177 /* Override any GCC internal prototype to avoid an error.
17178 Use char because int might match the return type of a GCC
17179 builtin and then its argument prototype would still apply. */
17192 if ac_fn_c_try_link "$LINENO"; then :
17193 ac_cv_lib_svld_dlopen=yes
17195 ac_cv_lib_svld_dlopen=no
17197 rm -f core conftest.err conftest.$ac_objext \
17198 conftest$ac_exeext conftest.$ac_ext
17199 LIBS=$ac_check_lib_save_LIBS
17201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17202 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
17203 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
17204 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17207 $as_echo_n "checking for dld_link in -ldld... " >&6; }
17208 if ${ac_cv_lib_dld_dld_link+:} false; then :
17209 $as_echo_n "(cached) " >&6
17211 ac_check_lib_save_LIBS=$LIBS
17213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17214 /* end confdefs.h. */
17216 /* Override any GCC internal prototype to avoid an error.
17217 Use char because int might match the return type of a GCC
17218 builtin and then its argument prototype would still apply. */
17226 return dld_link ();
17231 if ac_fn_c_try_link "$LINENO"; then :
17232 ac_cv_lib_dld_dld_link=yes
17234 ac_cv_lib_dld_dld_link=no
17236 rm -f core conftest.err conftest.$ac_objext \
17237 conftest$ac_exeext conftest.$ac_ext
17238 LIBS=$ac_check_lib_save_LIBS
17240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17241 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
17242 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
17243 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17264 if test "x$lt_cv_dlopen" != xno; then
17270 case $lt_cv_dlopen in
17272 save_CPPFLAGS="$CPPFLAGS"
17273 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17275 save_LDFLAGS="$LDFLAGS"
17276 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17279 LIBS="$lt_cv_dlopen_libs $LIBS"
17281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17282 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
17283 if ${lt_cv_dlopen_self+:} false; then :
17284 $as_echo_n "(cached) " >&6
17286 if test "$cross_compiling" = yes; then :
17287 lt_cv_dlopen_self=cross
17289 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17290 lt_status=$lt_dlunknown
17291 cat > conftest.$ac_ext <<EOF
17292 #line __oline__ "configure"
17293 #include "confdefs.h"
17302 # define LT_DLGLOBAL RTLD_GLOBAL
17305 # define LT_DLGLOBAL DL_GLOBAL
17307 # define LT_DLGLOBAL 0
17311 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17312 find out it does not work in some platform. */
17313 #ifndef LT_DLLAZY_OR_NOW
17315 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17318 # define LT_DLLAZY_OR_NOW DL_LAZY
17321 # define LT_DLLAZY_OR_NOW RTLD_NOW
17324 # define LT_DLLAZY_OR_NOW DL_NOW
17326 # define LT_DLLAZY_OR_NOW 0
17334 extern "C" void exit (int);
17337 void fnord() { int i=42;}
17340 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17341 int status = $lt_dlunknown;
17345 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17346 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17347 /* dlclose (self); */
17353 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17354 (eval $ac_link) 2>&5
17356 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17357 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17358 (./conftest; exit; ) 2>/dev/null
17360 case x$lt_status in
17361 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17362 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17363 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17366 # compilation failed
17367 lt_cv_dlopen_self=no
17374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
17375 $as_echo "$lt_cv_dlopen_self" >&6; }
17377 if test "x$lt_cv_dlopen_self" = xyes; then
17378 LDFLAGS="$LDFLAGS $link_static_flag"
17379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
17380 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
17381 if ${lt_cv_dlopen_self_static+:} false; then :
17382 $as_echo_n "(cached) " >&6
17384 if test "$cross_compiling" = yes; then :
17385 lt_cv_dlopen_self_static=cross
17387 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17388 lt_status=$lt_dlunknown
17389 cat > conftest.$ac_ext <<EOF
17390 #line __oline__ "configure"
17391 #include "confdefs.h"
17400 # define LT_DLGLOBAL RTLD_GLOBAL
17403 # define LT_DLGLOBAL DL_GLOBAL
17405 # define LT_DLGLOBAL 0
17409 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17410 find out it does not work in some platform. */
17411 #ifndef LT_DLLAZY_OR_NOW
17413 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17416 # define LT_DLLAZY_OR_NOW DL_LAZY
17419 # define LT_DLLAZY_OR_NOW RTLD_NOW
17422 # define LT_DLLAZY_OR_NOW DL_NOW
17424 # define LT_DLLAZY_OR_NOW 0
17432 extern "C" void exit (int);
17435 void fnord() { int i=42;}
17438 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17439 int status = $lt_dlunknown;
17443 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17444 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17445 /* dlclose (self); */
17451 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17452 (eval $ac_link) 2>&5
17454 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17455 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17456 (./conftest; exit; ) 2>/dev/null
17458 case x$lt_status in
17459 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17460 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17461 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
17464 # compilation failed
17465 lt_cv_dlopen_self_static=no
17472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
17473 $as_echo "$lt_cv_dlopen_self_static" >&6; }
17476 CPPFLAGS="$save_CPPFLAGS"
17477 LDFLAGS="$save_LDFLAGS"
17482 case $lt_cv_dlopen_self in
17483 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17484 *) enable_dlopen_self=unknown ;;
17487 case $lt_cv_dlopen_self_static in
17488 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17489 *) enable_dlopen_self_static=unknown ;;
17494 # The else clause should only fire when bootstrapping the
17495 # libtool distribution, otherwise you forgot to ship ltmain.sh
17496 # with your package, and you will get complaints that there are
17497 # no rules to generate ltmain.sh.
17498 if test -f "$ltmain"; then
17499 # See if we are running on zsh, and set the options which allow our commands through
17500 # without removal of \ escapes.
17501 if test -n "${ZSH_VERSION+set}" ; then
17502 setopt NO_GLOB_SUBST
17504 # Now quote all the things that may contain metacharacters while being
17505 # careful not to overquote the AC_SUBSTed values. We take copies of the
17506 # variables and quote the copies for generation of the libtool script.
17507 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
17509 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17510 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17511 deplibs_check_method reload_flag reload_cmds need_locks \
17512 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17513 lt_cv_sys_global_symbol_to_c_name_address \
17514 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17515 old_postinstall_cmds old_postuninstall_cmds \
17519 lt_prog_compiler_wl_GCJ \
17520 lt_prog_compiler_pic_GCJ \
17521 lt_prog_compiler_static_GCJ \
17522 lt_prog_compiler_no_builtin_flag_GCJ \
17523 export_dynamic_flag_spec_GCJ \
17524 thread_safe_flag_spec_GCJ \
17525 whole_archive_flag_spec_GCJ \
17526 enable_shared_with_static_runtimes_GCJ \
17527 old_archive_cmds_GCJ \
17528 old_archive_from_new_cmds_GCJ \
17529 predep_objects_GCJ \
17530 postdep_objects_GCJ \
17533 compiler_lib_search_path_GCJ \
17535 archive_expsym_cmds_GCJ \
17536 postinstall_cmds_GCJ \
17537 postuninstall_cmds_GCJ \
17538 old_archive_from_expsyms_cmds_GCJ \
17539 allow_undefined_flag_GCJ \
17540 no_undefined_flag_GCJ \
17541 export_symbols_cmds_GCJ \
17542 hardcode_libdir_flag_spec_GCJ \
17543 hardcode_libdir_flag_spec_ld_GCJ \
17544 hardcode_libdir_separator_GCJ \
17545 hardcode_automatic_GCJ \
17547 module_expsym_cmds_GCJ \
17548 lt_cv_prog_compiler_c_o_GCJ \
17549 exclude_expsyms_GCJ \
17550 include_expsyms_GCJ; do
17553 old_archive_cmds_GCJ | \
17554 old_archive_from_new_cmds_GCJ | \
17555 archive_cmds_GCJ | \
17556 archive_expsym_cmds_GCJ | \
17557 module_cmds_GCJ | \
17558 module_expsym_cmds_GCJ | \
17559 old_archive_from_expsyms_cmds_GCJ | \
17560 export_symbols_cmds_GCJ | \
17561 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17562 postinstall_cmds | postuninstall_cmds | \
17563 old_postinstall_cmds | old_postuninstall_cmds | \
17564 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17565 # Double-quote double-evaled strings.
17566 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17569 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17575 *'\$0 --fallback-echo"')
17576 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17582 cat <<__EOF__ >> "$cfgfile"
17583 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17585 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17587 # Shell to use when invoking shell scripts.
17590 # Whether or not to build shared libraries.
17591 build_libtool_libs=$enable_shared
17593 # Whether or not to build static libraries.
17594 build_old_libs=$enable_static
17596 # Whether or not to add -lc for building shared libraries.
17597 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17599 # Whether or not to disallow shared libs when runtime libs are static
17600 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17602 # Whether or not to optimize for fast installation.
17603 fast_install=$enable_fast_install
17606 host_alias=$host_alias
17609 # An echo program that does not interpret backslashes.
17614 AR_FLAGS=$lt_AR_FLAGS
17619 # A language-specific compiler.
17620 CC=$lt_compiler_GCJ
17622 # Is the compiler the GNU C compiler?
17628 # The linker used to build libraries.
17631 # Whether we need hard or soft links.
17634 # A BSD-compatible nm program.
17637 # A symbol stripping program
17640 # Used to examine libraries when file_magic_cmd begins "file"
17641 MAGIC_CMD=$MAGIC_CMD
17643 # Used on cygwin: DLL creation program.
17646 # Used on cygwin: object dumper.
17649 # Used on cygwin: assembler.
17652 # The name of the directory that contains temporary libtool files.
17655 # How to create reloadable object files.
17656 reload_flag=$lt_reload_flag
17657 reload_cmds=$lt_reload_cmds
17659 # How to pass a linker flag through the compiler.
17660 wl=$lt_lt_prog_compiler_wl_GCJ
17662 # Object file suffix (normally "o").
17663 objext="$ac_objext"
17665 # Old archive suffix (normally "a").
17668 # Shared library suffix (normally ".so").
17671 # Executable file suffix (normally "").
17674 # Additional compiler flags for building library objects.
17675 pic_flag=$lt_lt_prog_compiler_pic_GCJ
17678 # What is the maximum length of a command?
17679 max_cmd_len=$lt_cv_sys_max_cmd_len
17681 # Does compiler simultaneously support -c and -o options?
17682 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17684 # Must we lock files when doing compilation ?
17685 need_locks=$lt_need_locks
17687 # Do we need the lib prefix for modules?
17688 need_lib_prefix=$need_lib_prefix
17690 # Do we need a version for libraries?
17691 need_version=$need_version
17693 # Whether dlopen is supported.
17694 dlopen_support=$enable_dlopen
17696 # Whether dlopen of programs is supported.
17697 dlopen_self=$enable_dlopen_self
17699 # Whether dlopen of statically linked programs is supported.
17700 dlopen_self_static=$enable_dlopen_self_static
17702 # Compiler flag to prevent dynamic linking.
17703 link_static_flag=$lt_lt_prog_compiler_static_GCJ
17705 # Compiler flag to turn off builtin functions.
17706 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17708 # Compiler flag to allow reflexive dlopens.
17709 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17711 # Compiler flag to generate shared objects directly from archives.
17712 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17714 # Compiler flag to generate thread-safe objects.
17715 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17717 # Library versioning type.
17718 version_type=$version_type
17720 # Format of library name prefix.
17721 libname_spec=$lt_libname_spec
17723 # List of archive names. First name is the real one, the rest are links.
17724 # The last name is the one that the linker finds with -lNAME.
17725 library_names_spec=$lt_library_names_spec
17727 # The coded name of the library, if different from the real name.
17728 soname_spec=$lt_soname_spec
17730 # Commands used to build and install an old-style archive.
17732 old_archive_cmds=$lt_old_archive_cmds_GCJ
17733 old_postinstall_cmds=$lt_old_postinstall_cmds
17734 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17736 # Create an old-style archive from a shared archive.
17737 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17739 # Create a temporary old-style archive to link instead of a shared archive.
17740 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17742 # Commands used to build and install a shared archive.
17743 archive_cmds=$lt_archive_cmds_GCJ
17744 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
17745 postinstall_cmds=$lt_postinstall_cmds
17746 postuninstall_cmds=$lt_postuninstall_cmds
17748 # Commands used to build a loadable module (assumed same as above if empty)
17749 module_cmds=$lt_module_cmds_GCJ
17750 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
17752 # Commands to strip libraries.
17753 old_striplib=$lt_old_striplib
17754 striplib=$lt_striplib
17756 # Dependencies to place before the objects being linked to create a
17758 predep_objects=$lt_predep_objects_GCJ
17760 # Dependencies to place after the objects being linked to create a
17762 postdep_objects=$lt_postdep_objects_GCJ
17764 # Dependencies to place before the objects being linked to create a
17766 predeps=$lt_predeps_GCJ
17768 # Dependencies to place after the objects being linked to create a
17770 postdeps=$lt_postdeps_GCJ
17772 # The library search path used internally by the compiler when linking
17773 # a shared library.
17774 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
17776 # Method to check whether dependent libraries are shared objects.
17777 deplibs_check_method=$lt_deplibs_check_method
17779 # Command to use when deplibs_check_method == file_magic.
17780 file_magic_cmd=$lt_file_magic_cmd
17782 # Flag that allows shared libraries with undefined symbols to be built.
17783 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
17785 # Flag that forces no undefined symbols.
17786 no_undefined_flag=$lt_no_undefined_flag_GCJ
17788 # Commands used to finish a libtool library installation in a directory.
17789 finish_cmds=$lt_finish_cmds
17791 # Same as above, but a single script fragment to be evaled but not shown.
17792 finish_eval=$lt_finish_eval
17794 # Take the output of nm and produce a listing of raw symbols and C names.
17795 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17797 # Transform the output of nm in a proper C declaration
17798 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17800 # Transform the output of nm in a C name address pair
17801 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17803 # This is the shared library runtime path variable.
17804 runpath_var=$runpath_var
17806 # This is the shared library path variable.
17807 shlibpath_var=$shlibpath_var
17809 # Is shlibpath searched before the hard-coded library search path?
17810 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17812 # How to hardcode a shared library path into an executable.
17813 hardcode_action=$hardcode_action_GCJ
17815 # Whether we should hardcode library paths into libraries.
17816 hardcode_into_libs=$hardcode_into_libs
17818 # Flag to hardcode \$libdir into a binary during linking.
17819 # This must work even if \$libdir does not exist.
17820 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
17822 # If ld is used when linking, flag to hardcode \$libdir into
17823 # a binary during linking. This must work even if \$libdir does
17825 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
17827 # Whether we need a single -rpath flag with a separated argument.
17828 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
17830 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17831 # resulting binary.
17832 hardcode_direct=$hardcode_direct_GCJ
17834 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17835 # resulting binary.
17836 hardcode_minus_L=$hardcode_minus_L_GCJ
17838 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17839 # the resulting binary.
17840 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
17842 # Set to yes if building a shared library automatically hardcodes DIR into the library
17843 # and all subsequent libraries and executables linked against it.
17844 hardcode_automatic=$hardcode_automatic_GCJ
17846 # Variables whose values should be saved in libtool wrapper scripts and
17847 # restored at relink time.
17848 variables_saved_for_relink="$variables_saved_for_relink"
17850 # Whether libtool must link a program against all its dependency libraries.
17851 link_all_deplibs=$link_all_deplibs_GCJ
17853 # Compile-time system search path for libraries
17854 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17856 # Run-time system search path for libraries
17857 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17859 # Fix the shell variable \$srcfile for the compiler.
17860 fix_srcfile_path="$fix_srcfile_path_GCJ"
17862 # Set to yes if exported symbols are required.
17863 always_export_symbols=$always_export_symbols_GCJ
17865 # The commands to list exported symbols.
17866 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
17868 # The commands to extract the exported symbol list from a shared archive.
17869 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17871 # Symbols that should not be listed in the preloaded symbols.
17872 exclude_expsyms=$lt_exclude_expsyms_GCJ
17874 # Symbols that must always be exported.
17875 include_expsyms=$lt_include_expsyms_GCJ
17877 # ### END LIBTOOL TAG CONFIG: $tagname
17883 # If there is no Makefile yet, we rely on a make rule to execute
17884 # `config.status --recheck' to rerun these tests and create the
17885 # libtool script then.
17886 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17887 if test -f "$ltmain_in"; then
17888 test -f Makefile && make "$ltmain"
17894 ac_cpp='$CPP $CPPFLAGS'
17895 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17896 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17897 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17909 # Source file extension for RC test sources.
17912 # Object file extension for compiled RC test sources.
17916 # Code to be used in simple compile tests
17917 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
17919 # Code to be used in simple link tests
17920 lt_simple_link_test_code="$lt_simple_compile_test_code"
17922 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17924 # If no C compiler was specified, use CC.
17927 # Allow CC to be a program name with arguments.
17931 # Allow CC to be a program name with arguments.
17936 lt_cv_prog_compiler_c_o_RC=yes
17938 # The else clause should only fire when bootstrapping the
17939 # libtool distribution, otherwise you forgot to ship ltmain.sh
17940 # with your package, and you will get complaints that there are
17941 # no rules to generate ltmain.sh.
17942 if test -f "$ltmain"; then
17943 # See if we are running on zsh, and set the options which allow our commands through
17944 # without removal of \ escapes.
17945 if test -n "${ZSH_VERSION+set}" ; then
17946 setopt NO_GLOB_SUBST
17948 # Now quote all the things that may contain metacharacters while being
17949 # careful not to overquote the AC_SUBSTed values. We take copies of the
17950 # variables and quote the copies for generation of the libtool script.
17951 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
17953 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17954 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17955 deplibs_check_method reload_flag reload_cmds need_locks \
17956 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17957 lt_cv_sys_global_symbol_to_c_name_address \
17958 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17959 old_postinstall_cmds old_postuninstall_cmds \
17963 lt_prog_compiler_wl_RC \
17964 lt_prog_compiler_pic_RC \
17965 lt_prog_compiler_static_RC \
17966 lt_prog_compiler_no_builtin_flag_RC \
17967 export_dynamic_flag_spec_RC \
17968 thread_safe_flag_spec_RC \
17969 whole_archive_flag_spec_RC \
17970 enable_shared_with_static_runtimes_RC \
17971 old_archive_cmds_RC \
17972 old_archive_from_new_cmds_RC \
17973 predep_objects_RC \
17974 postdep_objects_RC \
17977 compiler_lib_search_path_RC \
17979 archive_expsym_cmds_RC \
17980 postinstall_cmds_RC \
17981 postuninstall_cmds_RC \
17982 old_archive_from_expsyms_cmds_RC \
17983 allow_undefined_flag_RC \
17984 no_undefined_flag_RC \
17985 export_symbols_cmds_RC \
17986 hardcode_libdir_flag_spec_RC \
17987 hardcode_libdir_flag_spec_ld_RC \
17988 hardcode_libdir_separator_RC \
17989 hardcode_automatic_RC \
17991 module_expsym_cmds_RC \
17992 lt_cv_prog_compiler_c_o_RC \
17993 exclude_expsyms_RC \
17994 include_expsyms_RC; do
17997 old_archive_cmds_RC | \
17998 old_archive_from_new_cmds_RC | \
17999 archive_cmds_RC | \
18000 archive_expsym_cmds_RC | \
18002 module_expsym_cmds_RC | \
18003 old_archive_from_expsyms_cmds_RC | \
18004 export_symbols_cmds_RC | \
18005 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18006 postinstall_cmds | postuninstall_cmds | \
18007 old_postinstall_cmds | old_postuninstall_cmds | \
18008 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18009 # Double-quote double-evaled strings.
18010 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18013 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18019 *'\$0 --fallback-echo"')
18020 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18026 cat <<__EOF__ >> "$cfgfile"
18027 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18029 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18031 # Shell to use when invoking shell scripts.
18034 # Whether or not to build shared libraries.
18035 build_libtool_libs=$enable_shared
18037 # Whether or not to build static libraries.
18038 build_old_libs=$enable_static
18040 # Whether or not to add -lc for building shared libraries.
18041 build_libtool_need_lc=$archive_cmds_need_lc_RC
18043 # Whether or not to disallow shared libs when runtime libs are static
18044 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18046 # Whether or not to optimize for fast installation.
18047 fast_install=$enable_fast_install
18050 host_alias=$host_alias
18053 # An echo program that does not interpret backslashes.
18058 AR_FLAGS=$lt_AR_FLAGS
18063 # A language-specific compiler.
18066 # Is the compiler the GNU C compiler?
18072 # The linker used to build libraries.
18075 # Whether we need hard or soft links.
18078 # A BSD-compatible nm program.
18081 # A symbol stripping program
18084 # Used to examine libraries when file_magic_cmd begins "file"
18085 MAGIC_CMD=$MAGIC_CMD
18087 # Used on cygwin: DLL creation program.
18090 # Used on cygwin: object dumper.
18093 # Used on cygwin: assembler.
18096 # The name of the directory that contains temporary libtool files.
18099 # How to create reloadable object files.
18100 reload_flag=$lt_reload_flag
18101 reload_cmds=$lt_reload_cmds
18103 # How to pass a linker flag through the compiler.
18104 wl=$lt_lt_prog_compiler_wl_RC
18106 # Object file suffix (normally "o").
18107 objext="$ac_objext"
18109 # Old archive suffix (normally "a").
18112 # Shared library suffix (normally ".so").
18115 # Executable file suffix (normally "").
18118 # Additional compiler flags for building library objects.
18119 pic_flag=$lt_lt_prog_compiler_pic_RC
18122 # What is the maximum length of a command?
18123 max_cmd_len=$lt_cv_sys_max_cmd_len
18125 # Does compiler simultaneously support -c and -o options?
18126 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18128 # Must we lock files when doing compilation ?
18129 need_locks=$lt_need_locks
18131 # Do we need the lib prefix for modules?
18132 need_lib_prefix=$need_lib_prefix
18134 # Do we need a version for libraries?
18135 need_version=$need_version
18137 # Whether dlopen is supported.
18138 dlopen_support=$enable_dlopen
18140 # Whether dlopen of programs is supported.
18141 dlopen_self=$enable_dlopen_self
18143 # Whether dlopen of statically linked programs is supported.
18144 dlopen_self_static=$enable_dlopen_self_static
18146 # Compiler flag to prevent dynamic linking.
18147 link_static_flag=$lt_lt_prog_compiler_static_RC
18149 # Compiler flag to turn off builtin functions.
18150 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18152 # Compiler flag to allow reflexive dlopens.
18153 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18155 # Compiler flag to generate shared objects directly from archives.
18156 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18158 # Compiler flag to generate thread-safe objects.
18159 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18161 # Library versioning type.
18162 version_type=$version_type
18164 # Format of library name prefix.
18165 libname_spec=$lt_libname_spec
18167 # List of archive names. First name is the real one, the rest are links.
18168 # The last name is the one that the linker finds with -lNAME.
18169 library_names_spec=$lt_library_names_spec
18171 # The coded name of the library, if different from the real name.
18172 soname_spec=$lt_soname_spec
18174 # Commands used to build and install an old-style archive.
18176 old_archive_cmds=$lt_old_archive_cmds_RC
18177 old_postinstall_cmds=$lt_old_postinstall_cmds
18178 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18180 # Create an old-style archive from a shared archive.
18181 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18183 # Create a temporary old-style archive to link instead of a shared archive.
18184 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18186 # Commands used to build and install a shared archive.
18187 archive_cmds=$lt_archive_cmds_RC
18188 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18189 postinstall_cmds=$lt_postinstall_cmds
18190 postuninstall_cmds=$lt_postuninstall_cmds
18192 # Commands used to build a loadable module (assumed same as above if empty)
18193 module_cmds=$lt_module_cmds_RC
18194 module_expsym_cmds=$lt_module_expsym_cmds_RC
18196 # Commands to strip libraries.
18197 old_striplib=$lt_old_striplib
18198 striplib=$lt_striplib
18200 # Dependencies to place before the objects being linked to create a
18202 predep_objects=$lt_predep_objects_RC
18204 # Dependencies to place after the objects being linked to create a
18206 postdep_objects=$lt_postdep_objects_RC
18208 # Dependencies to place before the objects being linked to create a
18210 predeps=$lt_predeps_RC
18212 # Dependencies to place after the objects being linked to create a
18214 postdeps=$lt_postdeps_RC
18216 # The library search path used internally by the compiler when linking
18217 # a shared library.
18218 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18220 # Method to check whether dependent libraries are shared objects.
18221 deplibs_check_method=$lt_deplibs_check_method
18223 # Command to use when deplibs_check_method == file_magic.
18224 file_magic_cmd=$lt_file_magic_cmd
18226 # Flag that allows shared libraries with undefined symbols to be built.
18227 allow_undefined_flag=$lt_allow_undefined_flag_RC
18229 # Flag that forces no undefined symbols.
18230 no_undefined_flag=$lt_no_undefined_flag_RC
18232 # Commands used to finish a libtool library installation in a directory.
18233 finish_cmds=$lt_finish_cmds
18235 # Same as above, but a single script fragment to be evaled but not shown.
18236 finish_eval=$lt_finish_eval
18238 # Take the output of nm and produce a listing of raw symbols and C names.
18239 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18241 # Transform the output of nm in a proper C declaration
18242 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18244 # Transform the output of nm in a C name address pair
18245 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18247 # This is the shared library runtime path variable.
18248 runpath_var=$runpath_var
18250 # This is the shared library path variable.
18251 shlibpath_var=$shlibpath_var
18253 # Is shlibpath searched before the hard-coded library search path?
18254 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18256 # How to hardcode a shared library path into an executable.
18257 hardcode_action=$hardcode_action_RC
18259 # Whether we should hardcode library paths into libraries.
18260 hardcode_into_libs=$hardcode_into_libs
18262 # Flag to hardcode \$libdir into a binary during linking.
18263 # This must work even if \$libdir does not exist.
18264 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18266 # If ld is used when linking, flag to hardcode \$libdir into
18267 # a binary during linking. This must work even if \$libdir does
18269 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18271 # Whether we need a single -rpath flag with a separated argument.
18272 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18274 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18275 # resulting binary.
18276 hardcode_direct=$hardcode_direct_RC
18278 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18279 # resulting binary.
18280 hardcode_minus_L=$hardcode_minus_L_RC
18282 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18283 # the resulting binary.
18284 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18286 # Set to yes if building a shared library automatically hardcodes DIR into the library
18287 # and all subsequent libraries and executables linked against it.
18288 hardcode_automatic=$hardcode_automatic_RC
18290 # Variables whose values should be saved in libtool wrapper scripts and
18291 # restored at relink time.
18292 variables_saved_for_relink="$variables_saved_for_relink"
18294 # Whether libtool must link a program against all its dependency libraries.
18295 link_all_deplibs=$link_all_deplibs_RC
18297 # Compile-time system search path for libraries
18298 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18300 # Run-time system search path for libraries
18301 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18303 # Fix the shell variable \$srcfile for the compiler.
18304 fix_srcfile_path="$fix_srcfile_path_RC"
18306 # Set to yes if exported symbols are required.
18307 always_export_symbols=$always_export_symbols_RC
18309 # The commands to list exported symbols.
18310 export_symbols_cmds=$lt_export_symbols_cmds_RC
18312 # The commands to extract the exported symbol list from a shared archive.
18313 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18315 # Symbols that should not be listed in the preloaded symbols.
18316 exclude_expsyms=$lt_exclude_expsyms_RC
18318 # Symbols that must always be exported.
18319 include_expsyms=$lt_include_expsyms_RC
18321 # ### END LIBTOOL TAG CONFIG: $tagname
18327 # If there is no Makefile yet, we rely on a make rule to execute
18328 # `config.status --recheck' to rerun these tests and create the
18329 # libtool script then.
18330 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18331 if test -f "$ltmain_in"; then
18332 test -f Makefile && make "$ltmain"
18338 ac_cpp='$CPP $CPPFLAGS'
18339 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18340 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18341 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18348 as_fn_error $? "Unsupported tag name: $tagname" "$LINENO" 5
18352 # Append the new tag name to the list of available tags.
18353 if test -n "$tagname" ; then
18354 available_tags="$available_tags $tagname"
18360 # Now substitute the updated list of available tags.
18361 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18362 mv "${ofile}T" "$ofile"
18366 as_fn_error $? "unable to update list of available tagged configurations." "$LINENO" 5
18372 # This can be used to rebuild libtool when needed
18373 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18375 # Always use our own libtool.
18376 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18378 # Prevent multiple expansion
18411 if test "$GCC" = yes
18416 while test $# -gt 0
18420 if test "$GCC" = yes
18424 CFLAGS="$CFLAGS $1"
18439 -fomit-frame-pointer)
18447 CFLAGS="$CFLAGS $1"
18454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
18455 $as_echo_n "checking for ANSI C header files... " >&6; }
18456 if ${ac_cv_header_stdc+:} false; then :
18457 $as_echo_n "(cached) " >&6
18459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18460 /* end confdefs.h. */
18461 #include <stdlib.h>
18462 #include <stdarg.h>
18463 #include <string.h>
18474 if ac_fn_c_try_compile "$LINENO"; then :
18475 ac_cv_header_stdc=yes
18477 ac_cv_header_stdc=no
18479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18481 if test $ac_cv_header_stdc = yes; then
18482 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
18483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18484 /* end confdefs.h. */
18485 #include <string.h>
18488 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18489 $EGREP "memchr" >/dev/null 2>&1; then :
18492 ac_cv_header_stdc=no
18498 if test $ac_cv_header_stdc = yes; then
18499 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
18500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18501 /* end confdefs.h. */
18502 #include <stdlib.h>
18505 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18506 $EGREP "free" >/dev/null 2>&1; then :
18509 ac_cv_header_stdc=no
18515 if test $ac_cv_header_stdc = yes; then
18516 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
18517 if test "$cross_compiling" = yes; then :
18520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18521 /* end confdefs.h. */
18523 #include <stdlib.h>
18524 #if ((' ' & 0x0FF) == 0x020)
18525 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
18526 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
18528 # define ISLOWER(c) \
18529 (('a' <= (c) && (c) <= 'i') \
18530 || ('j' <= (c) && (c) <= 'r') \
18531 || ('s' <= (c) && (c) <= 'z'))
18532 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
18535 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
18540 for (i = 0; i < 256; i++)
18541 if (XOR (islower (i), ISLOWER (i))
18542 || toupper (i) != TOUPPER (i))
18547 if ac_fn_c_try_run "$LINENO"; then :
18550 ac_cv_header_stdc=no
18552 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18553 conftest.$ac_objext conftest.beam conftest.$ac_ext
18558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
18559 $as_echo "$ac_cv_header_stdc" >&6; }
18560 if test $ac_cv_header_stdc = yes; then
18562 $as_echo "@%:@define STDC_HEADERS 1" >>confdefs.h
18566 for ac_header in assert.h unistd.h
18568 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18569 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18570 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18571 cat >>confdefs.h <<_ACEOF
18572 @%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18580 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
18581 if test "x$ac_cv_header_zlib_h" = xyes; then :
18585 as_fn_error $? "zlib.h was not found
18586 *** You must first install zlib (libz) before you can build this package.
18587 *** If zlib is already installed, you may need to use the CPPFLAGS
18588 *** environment variable to specify its installed location, e.g. -I<dir>." "$LINENO" 5
18595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
18596 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
18597 if ${ac_cv_c_const+:} false; then :
18598 $as_echo_n "(cached) " >&6
18600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18601 /* end confdefs.h. */
18606 /* FIXME: Include the comments suggested by Paul. */
18607 #ifndef __cplusplus
18608 /* Ultrix mips cc rejects this. */
18609 typedef int charset[2];
18611 /* SunOS 4.1.1 cc rejects this. */
18612 char const *const *pcpcc;
18614 /* NEC SVR4.0.2 mips cc rejects this. */
18615 struct point {int x, y;};
18616 static struct point const zero = {0,0};
18617 /* AIX XL C 1.02.0.0 rejects this.
18618 It does not let you subtract one const X* pointer from another in
18619 an arm of an if-expression whose if-part is not a constant
18621 const char *g = "string";
18622 pcpcc = &g + (g ? g-g : 0);
18623 /* HPUX 7.0 cc rejects these. */
18625 ppc = (char**) pcpcc;
18626 pcpcc = (char const *const *) ppc;
18627 { /* SCO 3.2v4 cc rejects this. */
18629 char const *s = 0 ? (char *) 0 : (char const *) 0;
18634 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
18635 int x[] = {25, 17};
18636 const int *foo = &x[0];
18639 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
18640 typedef const int *iptr;
18644 { /* AIX XL C 1.02.0.0 rejects this saying
18645 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
18646 struct s { int j; const int *ap[3]; };
18647 struct s *b; b->j = 5;
18649 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
18650 const int foo = 10;
18651 if (!foo) return 0;
18653 return !cs[0] && !zero.x;
18660 if ac_fn_c_try_compile "$LINENO"; then :
18665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
18668 $as_echo "$ac_cv_c_const" >&6; }
18669 if test $ac_cv_c_const = no; then
18671 $as_echo "@%:@define const /**/" >>confdefs.h
18675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
18676 $as_echo_n "checking for inline... " >&6; }
18677 if ${ac_cv_c_inline+:} false; then :
18678 $as_echo_n "(cached) " >&6
18681 for ac_kw in inline __inline__ __inline; do
18682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18683 /* end confdefs.h. */
18684 #ifndef __cplusplus
18686 static $ac_kw foo_t static_foo () {return 0; }
18687 $ac_kw foo_t foo () {return 0; }
18691 if ac_fn_c_try_compile "$LINENO"; then :
18692 ac_cv_c_inline=$ac_kw
18694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18695 test "$ac_cv_c_inline" != no && break
18699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
18700 $as_echo "$ac_cv_c_inline" >&6; }
18702 case $ac_cv_c_inline in
18705 case $ac_cv_c_inline in
18707 *) ac_val=$ac_cv_c_inline;;
18709 cat >>confdefs.h <<_ACEOF
18710 #ifndef __cplusplus
18711 #define inline $ac_val
18719 for ac_func in ftruncate
18721 ac_fn_c_check_func "$LINENO" "ftruncate" "ac_cv_func_ftruncate"
18722 if test "x$ac_cv_func_ftruncate" = xyes; then :
18723 cat >>confdefs.h <<_ACEOF
18724 @%:@define HAVE_FTRUNCATE 1
18731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress2 in -lz" >&5
18732 $as_echo_n "checking for compress2 in -lz... " >&6; }
18733 if ${ac_cv_lib_z_compress2+:} false; then :
18734 $as_echo_n "(cached) " >&6
18736 ac_check_lib_save_LIBS=$LIBS
18738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18739 /* end confdefs.h. */
18741 /* Override any GCC internal prototype to avoid an error.
18742 Use char because int might match the return type of a GCC
18743 builtin and then its argument prototype would still apply. */
18751 return compress2 ();
18756 if ac_fn_c_try_link "$LINENO"; then :
18757 ac_cv_lib_z_compress2=yes
18759 ac_cv_lib_z_compress2=no
18761 rm -f core conftest.err conftest.$ac_objext \
18762 conftest$ac_exeext conftest.$ac_ext
18763 LIBS=$ac_check_lib_save_LIBS
18765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress2" >&5
18766 $as_echo "$ac_cv_lib_z_compress2" >&6; }
18767 if test "x$ac_cv_lib_z_compress2" = xyes; then :
18768 cat >>confdefs.h <<_ACEOF
18769 @%:@define HAVE_LIBZ 1
18776 as_fn_error $? "libz was not found
18777 *** You must first install zlib (libz) before you can build this package.
18778 *** If zlib is already installed, you may need to use the LDFLAGS
18779 *** environment variable to specify its installed location, e.g. -L<dir>." "$LINENO" 5
18785 cat >confcache <<\_ACEOF
18786 # This file is a shell script that caches the results of configure
18787 # tests run on this system so they can be shared between configure
18788 # scripts and configure runs, see configure's option --config-cache.
18789 # It is not useful on other systems. If it contains results you don't
18790 # want to keep, you may remove or edit it.
18792 # config.status only pays attention to the cache file if you give it
18793 # the --recheck option to rerun configure.
18795 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18796 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18797 # following values.
18801 # The following way of writing the cache mishandles newlines in values,
18802 # but we know of no workaround that is simple, portable, and efficient.
18803 # So, we kill variables containing newlines.
18804 # Ultrix sh set writes to stderr and can't be redirected directly,
18805 # and sets the high bit in the cache file unless we assign to the vars.
18807 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18808 eval ac_val=\$$ac_var
18812 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18813 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18816 _ | IFS | as_nl) ;; #(
18817 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18818 *) { eval $ac_var=; unset $ac_var;} ;;
18824 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18825 *${as_nl}ac_space=\ *)
18826 # `set' does not quote correctly, so add quotes: double-quote
18827 # substitution turns \\\\ into \\, and sed turns \\ into \.
18830 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18833 # `set' quotes correctly as required by POSIX, so do not add quotes.
18834 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18843 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18845 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18847 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18848 if test -w "$cache_file"; then
18849 if test "x$cache_file" != "x/dev/null"; then
18850 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18851 $as_echo "$as_me: updating cache $cache_file" >&6;}
18852 if test ! -f "$cache_file" || test -h "$cache_file"; then
18853 cat confcache >"$cache_file"
18855 case $cache_file in #(
18857 mv -f confcache "$cache_file"$$ &&
18858 mv -f "$cache_file"$$ "$cache_file" ;; #(
18860 mv -f confcache "$cache_file" ;;
18865 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18866 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable profiling" >&5
18872 $as_echo_n "checking whether to enable profiling... " >&6; }
18873 @%:@ Check whether --enable-profiling was given.
18874 if test "${enable_profiling+set}" = set; then :
18875 enableval=$enable_profiling;
18876 case "$enableval" in
18877 yes) profile="-pg" ;;
18882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_profiling-no}" >&5
18883 $as_echo "${enable_profiling-no}" >&6; }
18885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable debugging" >&5
18886 $as_echo_n "checking whether to enable debugging... " >&6; }
18887 @%:@ Check whether --enable-debugging was given.
18888 if test "${enable_debugging+set}" = set; then :
18889 enableval=$enable_debugging;
18890 case "$enableval" in
18893 $as_echo "@%:@define DEBUG 1" >>confdefs.h
18898 if test -n "$profile"
18900 as_fn_error $? "--enable-profiling and --disable-debugging are incompatible" "$LINENO" 5
18904 $as_echo "@%:@define NDEBUG 1" >>confdefs.h
18907 if test "$GCC" = yes
18909 optimize="$optimize -fomit-frame-pointer"
18916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_debugging-default}" >&5
18917 $as_echo "${enable_debugging-default}" >&6; }
18920 if test ${enable_debugging-default} = yes; then
18930 test -n "$arch" && CFLAGS="$CFLAGS $arch"
18931 test -n "$debug" && CFLAGS="$CFLAGS $debug"
18932 test -n "$optimize" && CFLAGS="$CFLAGS $optimize"
18933 test -n "$profile" && CFLAGS="$CFLAGS $profile" LDFLAGS="$LDFLAGS $profile"
18936 ac_config_files="$ac_config_files Makefile msvc++/Makefile libid3tag.list"
18938 cat >confcache <<\_ACEOF
18939 # This file is a shell script that caches the results of configure
18940 # tests run on this system so they can be shared between configure
18941 # scripts and configure runs, see configure's option --config-cache.
18942 # It is not useful on other systems. If it contains results you don't
18943 # want to keep, you may remove or edit it.
18945 # config.status only pays attention to the cache file if you give it
18946 # the --recheck option to rerun configure.
18948 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18949 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18950 # following values.
18954 # The following way of writing the cache mishandles newlines in values,
18955 # but we know of no workaround that is simple, portable, and efficient.
18956 # So, we kill variables containing newlines.
18957 # Ultrix sh set writes to stderr and can't be redirected directly,
18958 # and sets the high bit in the cache file unless we assign to the vars.
18960 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18961 eval ac_val=\$$ac_var
18965 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18966 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18969 _ | IFS | as_nl) ;; #(
18970 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18971 *) { eval $ac_var=; unset $ac_var;} ;;
18977 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18978 *${as_nl}ac_space=\ *)
18979 # `set' does not quote correctly, so add quotes: double-quote
18980 # substitution turns \\\\ into \\, and sed turns \\ into \.
18983 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18986 # `set' quotes correctly as required by POSIX, so do not add quotes.
18987 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18996 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18998 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19000 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19001 if test -w "$cache_file"; then
19002 if test "x$cache_file" != "x/dev/null"; then
19003 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19004 $as_echo "$as_me: updating cache $cache_file" >&6;}
19005 if test ! -f "$cache_file" || test -h "$cache_file"; then
19006 cat confcache >"$cache_file"
19008 case $cache_file in #(
19010 mv -f confcache "$cache_file"$$ &&
19011 mv -f "$cache_file"$$ "$cache_file" ;; #(
19013 mv -f confcache "$cache_file" ;;
19018 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19019 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19024 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19025 # Let make expand exec_prefix.
19026 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19028 DEFS=-DHAVE_CONFIG_H
19033 for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue
19034 # 1. Remove the extension, and $U if already installed.
19035 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19036 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
19037 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19038 # will be set to the directory where LIBOBJS objects are built.
19039 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19040 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19042 LIB@&t@OBJS=$ac_libobjs
19044 LTLIBOBJS=$ac_ltlibobjs
19047 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19048 as_fn_error $? "conditional \"AMDEP\" was never defined.
19049 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19051 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19052 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19053 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19055 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
19056 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
19057 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19059 if test -z "${DEBUG_TRUE}" && test -z "${DEBUG_FALSE}"; then
19060 as_fn_error $? "conditional \"DEBUG\" was never defined.
19061 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19064 : "${CONFIG_STATUS=./config.status}"
19066 ac_clean_files_save=$ac_clean_files
19067 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19068 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19069 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19071 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19073 # Generated by $as_me.
19074 # Run this file to recreate the current configuration.
19075 # Compiler output produced by configure, useful for debugging
19076 # configure, is in config.log if it exists.
19079 ac_cs_recheck=false
19082 SHELL=\${CONFIG_SHELL-$SHELL}
19085 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19086 ## -------------------- ##
19087 ## M4sh Initialization. ##
19088 ## -------------------- ##
19090 # Be more Bourne compatible
19091 DUALCASE=1; export DUALCASE # for MKS sh
19092 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19095 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19096 # is contrary to our usage. Disable this feature.
19097 alias -g '${1+"$@"}'='"$@"'
19098 setopt NO_GLOB_SUBST
19100 case `(set -o) 2>/dev/null` in @%:@(
19102 set -o posix ;; @%:@(
19112 # Printing a long string crashes Solaris 7 /usr/bin/printf.
19113 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19114 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19115 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19116 # Prefer a ksh shell builtin over an external printf program on Solaris,
19117 # but without wasting forks for bash or zsh.
19118 if test -z "$BASH_VERSION$ZSH_VERSION" \
19119 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19120 as_echo='print -r --'
19121 as_echo_n='print -rn --'
19122 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19123 as_echo='printf %s\n'
19124 as_echo_n='printf %s'
19126 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19127 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
19128 as_echo_n='/usr/ucb/echo -n'
19130 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19131 as_echo_n_body='eval
19135 expr "X$arg" : "X\\(.*\\)$as_nl";
19136 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19138 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
19140 export as_echo_n_body
19141 as_echo_n='sh -c $as_echo_n_body as_echo'
19143 export as_echo_body
19144 as_echo='sh -c $as_echo_body as_echo'
19147 # The user is always right.
19148 if test "${PATH_SEPARATOR+set}" != set; then
19150 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19151 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19158 # We need space, tab and new line, in precisely that order. Quoting is
19159 # there to prevent editors from complaining about space-tab.
19160 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
19161 # splitting by setting IFS to empty value.)
19164 # Find who we are. Look in the path if we contain no directory separator.
19167 *[\\/]* ) as_myself=$0 ;;
19168 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19169 for as_dir in $PATH
19172 test -z "$as_dir" && as_dir=.
19173 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19179 # We did not find ourselves, most probably we were run as `sh COMMAND'
19180 # in which case we are not to be found in the path.
19181 if test "x$as_myself" = x; then
19184 if test ! -f "$as_myself"; then
19185 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19189 # Unset variables that we do not need and which cause bugs (e.g. in
19190 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
19191 # suppresses any "Segmentation fault" message there. '((' could
19192 # trigger a bug in pdksh 5.2.14.
19193 for as_var in BASH_ENV ENV MAIL MAILPATH
19194 do eval test x\${$as_var+set} = xset \
19195 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19208 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19211 @%:@ as_fn_error STATUS ERROR [LINENO LOG_FD]
19212 @%:@ ----------------------------------------
19213 @%:@ Output "`basename @S|@0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19214 @%:@ provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19215 @%:@ script with STATUS, using 1 if that was 0.
19218 as_status=$1; test $as_status -eq 0 && as_status=1
19220 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19221 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19223 $as_echo "$as_me: error: $2" >&2
19224 as_fn_exit $as_status
19228 @%:@ as_fn_set_status STATUS
19229 @%:@ -----------------------
19230 @%:@ Set @S|@? to STATUS, without forking.
19231 as_fn_set_status ()
19234 } @%:@ as_fn_set_status
19236 @%:@ as_fn_exit STATUS
19237 @%:@ -----------------
19238 @%:@ Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19242 as_fn_set_status $1
19246 @%:@ as_fn_unset VAR
19247 @%:@ ---------------
19248 @%:@ Portably unset VAR.
19251 { eval $1=; unset $1;}
19253 as_unset=as_fn_unset
19254 @%:@ as_fn_append VAR VALUE
19255 @%:@ ----------------------
19256 @%:@ Append the text in VALUE to the end of the definition contained in VAR. Take
19257 @%:@ advantage of any shell optimizations that allow amortized linear growth over
19258 @%:@ repeated appends, instead of the typical quadratic growth present in naive
19259 @%:@ implementations.
19260 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
19261 eval 'as_fn_append ()
19272 @%:@ as_fn_arith ARG...
19273 @%:@ ------------------
19274 @%:@ Perform arithmetic evaluation on the ARGs, and store the result in the
19275 @%:@ global @S|@as_val. Take advantage of shells that can avoid forks. The arguments
19276 @%:@ must be portable across @S|@(()) and expr.
19277 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19278 eval 'as_fn_arith ()
19285 as_val=`expr "$@" || test $? -eq 1`
19290 if expr a : '\(a\)' >/dev/null 2>&1 &&
19291 test "X`expr 00001 : '.*\(...\)'`" = X001; then
19297 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19298 as_basename=basename
19303 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19309 as_me=`$as_basename -- "$0" ||
19310 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19311 X"$0" : 'X\(//\)$' \| \
19312 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19314 sed '/^.*\/\([^/][^/]*\)\/*$/{
19328 # Avoid depending upon Character Ranges.
19329 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19330 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19331 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19332 as_cr_digits='0123456789'
19333 as_cr_alnum=$as_cr_Letters$as_cr_digits
19335 ECHO_C= ECHO_N= ECHO_T=
19336 case `echo -n x` in @%:@(((((
19338 case `echo 'xy\c'` in
19339 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
19341 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
19348 rm -f conf$$ conf$$.exe conf$$.file
19349 if test -d conf$$.dir; then
19350 rm -f conf$$.dir/conf$$.file
19353 mkdir conf$$.dir 2>/dev/null
19355 if (echo >conf$$.file) 2>/dev/null; then
19356 if ln -s conf$$.file conf$$ 2>/dev/null; then
19358 # ... but there are two gotchas:
19359 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19360 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19361 # In both cases, we have to default to `cp -p'.
19362 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19364 elif ln conf$$.file conf$$ 2>/dev/null; then
19372 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19373 rmdir conf$$.dir 2>/dev/null
19378 @%:@ Create "@S|@as_dir" as a directory, including parents if necessary.
19383 -*) as_dir=./$as_dir;;
19385 test -d "$as_dir" || eval $as_mkdir_p || {
19389 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19390 *) as_qdir=$as_dir;;
19392 as_dirs="'$as_qdir' $as_dirs"
19393 as_dir=`$as_dirname -- "$as_dir" ||
19394 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19395 X"$as_dir" : 'X\(//\)[^/]' \| \
19396 X"$as_dir" : 'X\(//\)$' \| \
19397 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19398 $as_echo X"$as_dir" |
19399 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19403 /^X\(\/\/\)[^/].*/{
19416 test -d "$as_dir" && break
19418 test -z "$as_dirs" || eval "mkdir $as_dirs"
19419 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19422 } @%:@ as_fn_mkdir_p
19423 if mkdir -p . 2>/dev/null; then
19424 as_mkdir_p='mkdir -p "$as_dir"'
19426 test -d ./-p && rmdir ./-p
19430 if test -x / >/dev/null 2>&1; then
19431 as_test_x='test -x'
19433 if ls -dL / >/dev/null 2>&1; then
19440 if test -d "$1"; then
19446 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in @%:@((
19447 ???[sx]*):;;*)false;;esac;fi
19451 as_executable_p=$as_test_x
19453 # Sed expression to map a string onto a valid CPP name.
19454 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19456 # Sed expression to map a string onto a valid variable name.
19457 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19461 ## ----------------------------------- ##
19462 ## Main body of $CONFIG_STATUS script. ##
19463 ## ----------------------------------- ##
19465 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19467 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19468 # Save the log message, to keep $0 and so on meaningful, and to
19469 # report actual input values of CONFIG_FILES etc. instead of their
19470 # values after options handling.
19472 This file was extended by ID3 Tag $as_me 0.15.1b, which was
19473 generated by GNU Autoconf 2.68. Invocation command line was
19475 CONFIG_FILES = $CONFIG_FILES
19476 CONFIG_HEADERS = $CONFIG_HEADERS
19477 CONFIG_LINKS = $CONFIG_LINKS
19478 CONFIG_COMMANDS = $CONFIG_COMMANDS
19481 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19486 case $ac_config_files in *"
19487 "*) set x $ac_config_files; shift; ac_config_files=$*;;
19490 case $ac_config_headers in *"
19491 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19495 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19496 # Files that config.status was made for.
19497 config_files="$ac_config_files"
19498 config_headers="$ac_config_headers"
19499 config_commands="$ac_config_commands"
19503 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19505 \`$as_me' instantiates files and other configuration actions
19506 from templates according to the current configuration. Unless the files
19507 and actions are specified as TAGs, all are instantiated by default.
19509 Usage: $0 [OPTION]... [TAG]...
19511 -h, --help print this help, then exit
19512 -V, --version print version number and configuration settings, then exit
19513 --config print configuration, then exit
19514 -q, --quiet, --silent
19515 do not print progress messages
19516 -d, --debug don't remove temporary files
19517 --recheck update $as_me by reconfiguring in the same conditions
19518 --file=FILE[:TEMPLATE]
19519 instantiate the configuration file FILE
19520 --header=FILE[:TEMPLATE]
19521 instantiate the configuration header FILE
19523 Configuration files:
19526 Configuration headers:
19529 Configuration commands:
19532 Report bugs to <support@underbit.com>."
19535 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19536 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19538 ID3 Tag config.status 0.15.1b
19539 configured by $0, generated by GNU Autoconf 2.68,
19540 with options \\"\$ac_cs_config\\"
19542 Copyright (C) 2010 Free Software Foundation, Inc.
19543 This config.status script is free software; the Free Software Foundation
19544 gives unlimited permission to copy, distribute and modify it."
19550 test -n "\$AWK" || AWK=awk
19553 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19554 # The default lists apply if the user does not specify any file.
19560 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19561 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19565 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19577 # Handling of the options.
19578 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19580 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19581 $as_echo "$ac_cs_version"; exit ;;
19582 --config | --confi | --conf | --con | --co | --c )
19583 $as_echo "$ac_cs_config"; exit ;;
19584 --debug | --debu | --deb | --de | --d | -d )
19586 --file | --fil | --fi | --f )
19589 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19590 '') as_fn_error $? "missing file argument" ;;
19592 as_fn_append CONFIG_FILES " '$ac_optarg'"
19593 ac_need_defaults=false;;
19594 --header | --heade | --head | --hea )
19597 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19599 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
19600 ac_need_defaults=false;;
19602 # Conflict between --help and --header
19603 as_fn_error $? "ambiguous option: \`$1'
19604 Try \`$0 --help' for more information.";;
19605 --help | --hel | -h )
19606 $as_echo "$ac_cs_usage"; exit ;;
19607 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19608 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19611 # This is an error.
19612 -*) as_fn_error $? "unrecognized option: \`$1'
19613 Try \`$0 --help' for more information." ;;
19615 *) as_fn_append ac_config_targets " $1"
19616 ac_need_defaults=false ;;
19622 ac_configure_extra_args=
19624 if $ac_cs_silent; then
19626 ac_configure_extra_args="$ac_configure_extra_args --silent"
19630 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19631 if \$ac_cs_recheck; then
19632 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19634 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19635 CONFIG_SHELL='$SHELL'
19636 export CONFIG_SHELL
19641 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19645 sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX
19646 @%:@@%:@ Running $as_me. @%:@@%:@
19652 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19656 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19660 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19662 # Handling of arguments.
19663 for ac_config_target in $ac_config_targets
19665 case $ac_config_target in
19666 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19667 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19668 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19669 "msvc++/Makefile") CONFIG_FILES="$CONFIG_FILES msvc++/Makefile" ;;
19670 "libid3tag.list") CONFIG_FILES="$CONFIG_FILES libid3tag.list" ;;
19672 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19677 # If the user did not use the arguments to specify the items to instantiate,
19678 # then the envvar interface is used. Set only those that are not.
19679 # We use the long form for the default assignment because of an extremely
19680 # bizarre bug on SunOS 4.1.3.
19681 if $ac_need_defaults; then
19682 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19683 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19684 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19687 # Have a temporary directory for convenience. Make it in the build tree
19688 # simply because there is no reason against having it here, and in addition,
19689 # creating and moving files from /tmp can sometimes cause problems.
19690 # Hook for its removal unless debugging.
19691 # Note that there is a small window in which the directory will not be cleaned:
19692 # after its creation but before its name has been assigned to `$tmp'.
19696 trap 'exit_status=$?
19697 : "${ac_tmp:=$tmp}"
19698 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19700 trap 'as_fn_exit 1' 1 2 13 15
19702 # Create a (secure) tmp directory for tmp files.
19705 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19709 tmp=./conf$$-$RANDOM
19710 (umask 077 && mkdir "$tmp")
19711 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19714 # Set up the scripts for CONFIG_FILES section.
19715 # No need to generate them if there are no CONFIG_FILES.
19716 # This happens for instance with `./config.status config.h'.
19717 if test -n "$CONFIG_FILES"; then
19720 ac_cr=`echo X | tr X '\015'`
19721 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19722 # But we know of no other shell where ac_cr would be empty at this
19723 # point, so we can use a bashism as a fallback.
19724 if test "x$ac_cr" = x; then
19725 eval ac_cr=\$\'\\r\'
19727 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19728 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19731 ac_cs_awk_cr=$ac_cr
19734 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19739 echo "cat >conf$$subs.awk <<_ACEOF" &&
19740 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19742 } >conf$$subs.sh ||
19743 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19744 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19746 for ac_last_try in false false false false false :; do
19747 . ./conf$$subs.sh ||
19748 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19750 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19751 if test $ac_delim_n = $ac_delim_num; then
19753 elif $ac_last_try; then
19754 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19756 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19759 rm -f conf$$subs.sh
19761 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19762 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19766 s/^/S["/; s/!.*/"]=/
19776 s/\(.\{148\}\)..*/\1/
19778 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19783 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19790 s/\(.\{148\}\)..*/\1/
19792 s/["\\]/\\&/g; s/^/"/; s/$/"/
19796 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19801 ' <conf$$subs.awk | sed '
19806 ' >>$CONFIG_STATUS || ac_write_fail=1
19807 rm -f conf$$subs.awk
19808 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19810 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19811 for (key in S) S_is_set[key] = 1
19817 nfields = split(line, field, "@")
19819 len = length(field[1])
19820 for (i = 2; i < nfields; i++) {
19822 keylen = length(key)
19823 if (S_is_set[key]) {
19825 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19826 len += length(value) + length(field[++i])
19837 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19838 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19839 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19842 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19843 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19846 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19847 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19848 # trailing colons and then remove the whole line if VPATH becomes empty
19849 # (actually we leave an empty line to preserve line numbers).
19850 if test "x$srcdir" = x.; then
19851 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
19869 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19870 fi # test -n "$CONFIG_FILES"
19872 # Set up the scripts for CONFIG_HEADERS section.
19873 # No need to generate them if there are no CONFIG_HEADERS.
19874 # This happens for instance with `./config.status Makefile'.
19875 if test -n "$CONFIG_HEADERS"; then
19876 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
19880 # Transform confdefs.h into an awk script `defines.awk', embedded as
19881 # here-document in config.status, that substitutes the proper values into
19882 # config.h.in to produce config.h.
19884 # Create a delimiter string that does not exist in confdefs.h, to ease
19885 # handling of long lines.
19887 for ac_last_try in false false :; do
19888 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
19889 if test -z "$ac_tt"; then
19891 elif $ac_last_try; then
19892 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
19894 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19898 # For the awk script, D is an array of macro values keyed by name,
19899 # likewise P contains macro parameters if any. Preserve backslash
19900 # newline sequences.
19902 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19904 s/.\{148\}/&'"$ac_delim"'/g
19907 s/^[ ]*#[ ]*define[ ][ ]*/ /
19914 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19916 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
19920 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19921 D["\1"]=" \3\\\\\\n"\\/p
19923 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19928 s/.\{148\}/&'"$ac_delim"'/g
19933 s/["\\]/\\&/g; s/^/"/; s/$/"/p
19936 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19938 ' <confdefs.h | sed '
19939 s/'"$ac_delim"'/"\\\
19940 "/g' >>$CONFIG_STATUS || ac_write_fail=1
19942 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19943 for (key in D) D_is_set[key] = 1
19946 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19948 split(line, arg, " ")
19949 if (arg[1] == "#") {
19953 defundef = substr(arg[1], 2)
19956 split(mac1, mac2, "(") #)
19958 prefix = substr(line, 1, index(line, defundef) - 1)
19959 if (D_is_set[macro]) {
19960 # Preserve the white space surrounding the "#".
19961 print prefix "define", macro P[macro] D[macro]
19964 # Replace #undef with comments. This is necessary, for example,
19965 # in the case of _POSIX_SOURCE, which is predefined and required
19966 # on some systems where configure will not decide to define it.
19967 if (defundef == "undef") {
19968 print "/*", prefix defundef, macro, "*/"
19976 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19977 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
19978 fi # test -n "$CONFIG_HEADERS"
19981 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
19986 :[FHLC]) ac_mode=$ac_tag; continue;;
19988 case $ac_mode$ac_tag in
19990 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19991 :[FH]-) ac_tag=-:-;;
19992 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20009 -) ac_f="$ac_tmp/stdin";;
20010 *) # Look for the file first in the build tree, then in the source tree
20011 # (if the path is not absolute). The absolute path cannot be DOS-style,
20012 # because $ac_f cannot contain `:'.
20016 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20018 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20020 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20021 as_fn_append ac_file_inputs " '$ac_f'"
20024 # Let's still pretend it is `configure' which instantiates (i.e., don't
20025 # use $as_me), people would be surprised to read:
20026 # /* config.h. Generated by config.status. */
20027 configure_input='Generated from '`
20028 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20030 if test x"$ac_file" != x-; then
20031 configure_input="$ac_file. $configure_input"
20032 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20033 $as_echo "$as_me: creating $ac_file" >&6;}
20035 # Neutralize special characters interpreted by sed in replacement strings.
20036 case $configure_input in #(
20037 *\&* | *\|* | *\\* )
20038 ac_sed_conf_input=`$as_echo "$configure_input" |
20039 sed 's/[\\\\&|]/\\\\&/g'`;; #(
20040 *) ac_sed_conf_input=$configure_input;;
20044 *:-:* | *:-) cat >"$ac_tmp/stdin" \
20045 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
20050 ac_dir=`$as_dirname -- "$ac_file" ||
20051 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20052 X"$ac_file" : 'X\(//\)[^/]' \| \
20053 X"$ac_file" : 'X\(//\)$' \| \
20054 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20055 $as_echo X"$ac_file" |
20056 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20060 /^X\(\/\/\)[^/].*/{
20073 as_dir="$ac_dir"; as_fn_mkdir_p
20077 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20079 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20080 # A ".." for each directory in $ac_dir_suffix.
20081 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20082 case $ac_top_builddir_sub in
20083 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20084 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20087 ac_abs_top_builddir=$ac_pwd
20088 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20089 # for backward compatibility:
20090 ac_top_builddir=$ac_top_build_prefix
20093 .) # We are building in place.
20095 ac_top_srcdir=$ac_top_builddir_sub
20096 ac_abs_top_srcdir=$ac_pwd ;;
20097 [\\/]* | ?:[\\/]* ) # Absolute name.
20098 ac_srcdir=$srcdir$ac_dir_suffix;
20099 ac_top_srcdir=$srcdir
20100 ac_abs_top_srcdir=$srcdir ;;
20101 *) # Relative name.
20102 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20103 ac_top_srcdir=$ac_top_build_prefix$srcdir
20104 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20106 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20116 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20117 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20121 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20122 # If the template does not know about datarootdir, expand it.
20123 # FIXME: This hack should be removed a few years after 2.60.
20124 ac_datarootdir_hack=; ac_datarootdir_seen=
20135 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20136 *datarootdir*) ac_datarootdir_seen=yes;;
20137 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20138 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20139 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20141 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20142 ac_datarootdir_hack='
20143 s&@datadir@&$datadir&g
20144 s&@docdir@&$docdir&g
20145 s&@infodir@&$infodir&g
20146 s&@localedir@&$localedir&g
20147 s&@mandir@&$mandir&g
20148 s&\\\${datarootdir}&$datarootdir&g' ;;
20152 # Neutralize VPATH when `$srcdir' = `.'.
20153 # Shell code in configure.ac might set extrasub.
20154 # FIXME: do we really want to maintain this feature?
20155 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20156 ac_sed_extra="$ac_vpsub
20159 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20161 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20162 s|@configure_input@|$ac_sed_conf_input|;t t
20163 s&@top_builddir@&$ac_top_builddir_sub&;t t
20164 s&@top_build_prefix@&$ac_top_build_prefix&;t t
20165 s&@srcdir@&$ac_srcdir&;t t
20166 s&@abs_srcdir@&$ac_abs_srcdir&;t t
20167 s&@top_srcdir@&$ac_top_srcdir&;t t
20168 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20169 s&@builddir@&$ac_builddir&;t t
20170 s&@abs_builddir@&$ac_abs_builddir&;t t
20171 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20172 s&@INSTALL@&$ac_INSTALL&;t t
20173 $ac_datarootdir_hack
20175 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
20176 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20178 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20179 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
20180 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
20181 "$ac_tmp/out"`; test -z "$ac_out"; } &&
20182 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20183 which seems to be undefined. Please make sure it is defined" >&5
20184 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20185 which seems to be undefined. Please make sure it is defined" >&2;}
20187 rm -f "$ac_tmp/stdin"
20189 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20190 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20192 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20198 if test x"$ac_file" != x-; then
20200 $as_echo "/* $configure_input */" \
20201 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20202 } >"$ac_tmp/config.h" \
20203 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20204 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
20205 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20206 $as_echo "$as_me: $ac_file is unchanged" >&6;}
20209 mv "$ac_tmp/config.h" "$ac_file" \
20210 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20213 $as_echo "/* $configure_input */" \
20214 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
20215 || as_fn_error $? "could not create -" "$LINENO" 5
20217 # Compute "$ac_file"'s index in $config_headers.
20219 for _am_header in $config_headers :; do
20220 case $_am_header in
20221 "$ac_file" | "$ac_file":* )
20224 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20227 echo "timestamp for "$ac_file"" >`$as_dirname -- "$ac_file" ||
20228 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20229 X"$ac_file" : 'X\(//\)[^/]' \| \
20230 X"$ac_file" : 'X\(//\)$' \| \
20231 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20232 $as_echo X"$ac_file" |
20233 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20237 /^X\(\/\/\)[^/].*/{
20249 s/.*/./; q'`/stamp-h$_am_stamp_count
20252 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20253 $as_echo "$as_me: executing $ac_file commands" >&6;}
20258 case $ac_file$ac_mode in
20259 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
20260 # Strip MF so we end up with the name of the file.
20261 mf=`echo "$mf" | sed -e 's/:.*$//'`
20262 # Check whether this is an Automake generated Makefile or not.
20263 # We used to match only the files named `Makefile.in', but
20264 # some people rename them; so instead we look at the file content.
20265 # Grep'ing the first line is not enough: some people post-process
20266 # each Makefile.in and add a new line on top of each file to say so.
20267 # So let's grep whole file.
20268 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
20269 dirpart=`$as_dirname -- "$mf" ||
20270 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20271 X"$mf" : 'X\(//\)[^/]' \| \
20272 X"$mf" : 'X\(//\)$' \| \
20273 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
20275 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20279 /^X\(\/\/\)[^/].*/{
20295 grep '^DEP_FILES *= *[^ @%:@]' < "$mf" > /dev/null || continue
20296 # Extract the definition of DEP_FILES from the Makefile without
20298 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
20299 test -z "$DEPDIR" && continue
20300 # When using ansi2knr, U may be empty or an underscore; expand it
20301 U=`sed -n -e '/^U = / s///p' < "$mf"`
20302 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
20303 # We invoke sed twice because it is the simplest approach to
20304 # changing $(DEPDIR) to its actual value in the expansion.
20305 for file in `sed -n -e '
20306 /^DEP_FILES = .*\\\\$/ {
20315 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
20316 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
20317 # Make sure the directory exists.
20318 test -f "$dirpart/$file" && continue
20319 fdir=`$as_dirname -- "$file" ||
20320 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20321 X"$file" : 'X\(//\)[^/]' \| \
20322 X"$file" : 'X\(//\)$' \| \
20323 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
20324 $as_echo X"$file" |
20325 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20329 /^X\(\/\/\)[^/].*/{
20342 as_dir=$dirpart/$fdir; as_fn_mkdir_p
20343 # echo "creating $dirpart/$file"
20344 echo '# dummy' > "$dirpart/$file"
20355 ac_clean_files=$ac_clean_files_save
20357 test $ac_write_fail = 0 ||
20358 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20361 # configure is writing to config.log, and then calls config.status.
20362 # config.status does its own redirection, appending to config.log.
20363 # Unfortunately, on DOS this fails, as config.log is still kept open
20364 # by configure, so config.status won't be able to write to it; its
20365 # output is simply discarded. So we exec the FD to /dev/null,
20366 # effectively closing config.log, so it can be properly (re)opened and
20367 # appended to by config.status. When coming back to configure, we
20368 # need to make the FD available again.
20369 if test "$no_create" != yes; then
20371 ac_config_status_args=
20372 test "$silent" = yes &&
20373 ac_config_status_args="$ac_config_status_args --quiet"
20375 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20377 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20378 # would make configure fail if this is the last instruction.
20379 $ac_cs_success || as_fn_exit 1
20381 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20382 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20383 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}