2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for sqlite 3.7.17.
5 # Report bugs to <http://www.sqlite.org>.
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 as_echo_n='sh -c $as_echo_n_body as_echo'
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
91 # Find who we are. Look in the path if we contain no directory separator.
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
149 *v*x* | *x*v* ) as_opts=-vx ;;
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
171 case \`(set -o) 2>/dev/null\` in #(
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
193 exitcode=1; echo positional parameters were not saved.
195 test x\$exitcode = x0 || exit 1
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1"
202 if (eval "$as_required") 2>/dev/null; then :
207 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
212 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
215 test -z "$as_dir" && as_dir=.
219 for as_base in sh bash ksh sh5; do
220 # Try only shells that exist, to save several forks.
221 as_shell=$as_dir/$as_base
222 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
223 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 CONFIG_SHELL=$as_shell as_have_required=yes
225 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
233 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
235 CONFIG_SHELL=$SHELL as_have_required=yes
240 if test "x$CONFIG_SHELL" != x; then :
242 # We cannot yet assume a decent shell, so we have to provide a
243 # neutralization value for shells without unset; and this also
244 # works around shells that cannot unset nonexistent variables.
245 # Preserve -v and -x to the replacement shell.
248 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
250 *v*x* | *x*v* ) as_opts=-vx ;;
255 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256 # Admittedly, this is quite paranoid, since all the known shells bail
257 # out after a failed `exec'.
258 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
262 if test x$as_have_required = xno; then :
263 $as_echo "$0: This script requires a shell more modern than all"
264 $as_echo "$0: the shells that I found on your system."
265 if test x${ZSH_VERSION+set} = xset ; then
266 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
269 $as_echo "$0: Please tell bug-autoconf@gnu.org and
270 $0: http://www.sqlite.org about your system, including any
271 $0: error possibly output before this message. Then install
272 $0: a modern shell, or manually run the script under such a
273 $0: shell if you do have one."
279 SHELL=${CONFIG_SHELL-/bin/sh}
281 # Unset more variables known to interfere with behavior of common tools.
282 CLICOLOR_FORCE= GREP_OPTIONS=
283 unset CLICOLOR_FORCE GREP_OPTIONS
285 ## --------------------- ##
286 ## M4sh Shell Functions. ##
287 ## --------------------- ##
290 # Portably unset VAR.
293 { eval $1=; unset $1;}
297 # as_fn_set_status STATUS
298 # -----------------------
299 # Set $? to STATUS, without forking.
307 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
317 # Create "$as_dir" as a directory, including parents if necessary.
322 -*) as_dir=./$as_dir;;
324 test -d "$as_dir" || eval $as_mkdir_p || {
328 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
331 as_dirs="'$as_qdir' $as_dirs"
332 as_dir=`$as_dirname -- "$as_dir" ||
333 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
334 X"$as_dir" : 'X\(//\)[^/]' \| \
335 X"$as_dir" : 'X\(//\)$' \| \
336 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
337 $as_echo X"$as_dir" |
338 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
355 test -d "$as_dir" && break
357 test -z "$as_dirs" || eval "mkdir $as_dirs"
358 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
363 # as_fn_executable_p FILE
364 # -----------------------
365 # Test if FILE is an executable regular file.
366 as_fn_executable_p ()
368 test -f "$1" && test -x "$1"
369 } # as_fn_executable_p
370 # as_fn_append VAR VALUE
371 # ----------------------
372 # Append the text in VALUE to the end of the definition contained in VAR. Take
373 # advantage of any shell optimizations that allow amortized linear growth over
374 # repeated appends, instead of the typical quadratic growth present in naive
376 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
377 eval 'as_fn_append ()
390 # Perform arithmetic evaluation on the ARGs, and store the result in the
391 # global $as_val. Take advantage of shells that can avoid forks. The arguments
392 # must be portable across $(()) and expr.
393 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
401 as_val=`expr "$@" || test $? -eq 1`
406 # as_fn_error STATUS ERROR [LINENO LOG_FD]
407 # ----------------------------------------
408 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
409 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
410 # script with STATUS, using 1 if that was 0.
413 as_status=$1; test $as_status -eq 0 && as_status=1
415 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
416 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
418 $as_echo "$as_me: error: $2" >&2
419 as_fn_exit $as_status
422 if expr a : '\(a\)' >/dev/null 2>&1 &&
423 test "X`expr 00001 : '.*\(...\)'`" = X001; then
429 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441 as_me=`$as_basename -- "$0" ||
442 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
443 X"$0" : 'X\(//\)$' \| \
444 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
446 sed '/^.*\/\([^/][^/]*\)\/*$/{
460 # Avoid depending upon Character Ranges.
461 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
462 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
463 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
464 as_cr_digits='0123456789'
465 as_cr_alnum=$as_cr_Letters$as_cr_digits
468 as_lineno_1=$LINENO as_lineno_1a=$LINENO
469 as_lineno_2=$LINENO as_lineno_2a=$LINENO
470 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
471 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
472 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
484 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
488 chmod +x "$as_me.lineno" ||
489 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
491 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
492 # already done that, so ensure we don't try to do so again and fall
493 # in an infinite loop. This has already happened in practice.
494 _as_can_reexec=no; export _as_can_reexec
495 # Don't try to exec as it changes $[0], causing all sort of problems
496 # (the dirname of $[0] is not the place where we might find the
497 # original and so on. Autoconf is especially sensitive to this).
499 # Exit status is that of the last command.
503 ECHO_C= ECHO_N= ECHO_T=
504 case `echo -n x` in #(((((
506 case `echo 'xy\c'` in
507 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
509 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
516 rm -f conf$$ conf$$.exe conf$$.file
517 if test -d conf$$.dir; then
518 rm -f conf$$.dir/conf$$.file
521 mkdir conf$$.dir 2>/dev/null
523 if (echo >conf$$.file) 2>/dev/null; then
524 if ln -s conf$$.file conf$$ 2>/dev/null; then
526 # ... but there are two gotchas:
527 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
528 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
529 # In both cases, we have to default to `cp -pR'.
530 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
532 elif ln conf$$.file conf$$ 2>/dev/null; then
540 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
541 rmdir conf$$.dir 2>/dev/null
543 if mkdir -p . 2>/dev/null; then
544 as_mkdir_p='mkdir -p "$as_dir"'
546 test -d ./-p && rmdir ./-p
551 as_executable_p=as_fn_executable_p
553 # Sed expression to map a string onto a valid CPP name.
554 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
556 # Sed expression to map a string onto a valid variable name.
557 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
561 # Check that we are running under the correct shell.
562 SHELL=${CONFIG_SHELL-/bin/sh}
566 # Remove one level of quotation (which was required for Make).
567 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
572 if test "X$1" = X--no-reexec; then
573 # Discard the --no-reexec flag, and continue.
575 elif test "X$1" = X--fallback-echo; then
576 # Avoid inline document here, it may be left over
578 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
579 # Yippee, $echo works!
582 # Restart under the correct shell.
583 exec $SHELL "$0" --no-reexec ${1+"$@"}
586 if test "X$1" = X--fallback-echo; then
587 # used as fallback echo
595 # The HP-UX ksh and POSIX shell print the target directory to stdout
597 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
599 if test -z "$ECHO"; then
600 if test "X${echo_test_string+set}" != Xset; then
601 # find a string as large as possible, as long as the shell can cope with it
602 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
603 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
604 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
605 echo_test_string=`eval $cmd` &&
606 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
613 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
614 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
615 test "X$echo_testing_string" = "X$echo_test_string"; then
618 # The Solaris, AIX, and Digital Unix default echo programs unquote
619 # backslashes. This makes it impossible to quote backslashes using
620 # echo "$something" | sed 's/\\/\\\\/g'
622 # So, first we look for a working echo in the user's PATH.
624 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
625 for dir in $PATH /usr/ucb; do
627 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
628 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
629 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
630 test "X$echo_testing_string" = "X$echo_test_string"; then
637 if test "X$echo" = Xecho; then
638 # We didn't find a better echo, so look for alternatives.
639 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
640 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
641 test "X$echo_testing_string" = "X$echo_test_string"; then
642 # This shell has a builtin print -r that does the trick.
644 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
645 test "X$CONFIG_SHELL" != X/bin/ksh; then
646 # If we have ksh, try running configure again with it.
647 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
648 export ORIGINAL_CONFIG_SHELL
649 CONFIG_SHELL=/bin/ksh
651 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
655 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
656 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
657 test "X$echo_testing_string" = "X$echo_test_string"; then
660 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
661 test "X$echo_testing_string" = 'X\t' &&
662 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
663 test "X$echo_testing_string" = "X$echo_test_string"; then
664 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
666 SHELL="$CONFIG_SHELL"
668 echo="$CONFIG_SHELL $0 --fallback-echo"
669 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
670 test "X$echo_testing_string" = 'X\t' &&
671 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
672 test "X$echo_testing_string" = "X$echo_test_string"; then
673 echo="$CONFIG_SHELL $0 --fallback-echo"
675 # maybe with a smaller string...
678 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
679 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
686 if test "$prev" != 'sed 50q "$0"'; then
687 echo_test_string=`eval $prev`
688 export echo_test_string
689 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
691 # Oops. We lost completely, so just stick with echo.
700 # Copy echo and quote the copy suitably for passing to libtool from
701 # the Makefile, instead of quoting the original, which is used later.
703 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
704 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
710 tagnames=${tagnames+${tagnames},}CXX
712 tagnames=${tagnames+${tagnames},}F77
714 test -n "$DJDIR" || exec 7<&0 </dev/null
718 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
719 # so uname gets run too.
720 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
725 ac_default_prefix=/usr/local
727 ac_config_libobj_dir=.
734 # Identity of this package.
735 PACKAGE_NAME='sqlite'
736 PACKAGE_TARNAME='sqlite'
737 PACKAGE_VERSION='3.7.17'
738 PACKAGE_STRING='sqlite 3.7.17'
739 PACKAGE_BUGREPORT='http://www.sqlite.org'
742 ac_unique_file="sqlite3.c"
743 # Factoring default headers for most tests.
744 ac_includes_default="\
746 #ifdef HAVE_SYS_TYPES_H
747 # include <sys/types.h>
749 #ifdef HAVE_SYS_STAT_H
750 # include <sys/stat.h>
756 # ifdef HAVE_STDLIB_H
761 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
766 #ifdef HAVE_STRINGS_H
767 # include <strings.h>
769 #ifdef HAVE_INTTYPES_H
770 # include <inttypes.h>
779 ac_subst_vars='LTLIBOBJS
781 DYNAMIC_EXTENSION_FLAGS
835 INSTALL_STRIP_PROGRAM
876 program_transform_name
889 enable_option_checking
891 enable_dependency_tracking
901 enable_dynamic_extensions
903 ac_precious_vars='build_alias
920 # Initialize some variables set by options.
922 ac_init_version=false
923 ac_unrecognized_opts=
925 # The variables have the same names as the options, with
926 # dashes changed to underlines.
934 program_transform_name=s,x,x,
942 # Installation directory options.
943 # These are left unexpanded so users can "make install exec_prefix=/foo"
944 # and all the variables that are supposed to be based on exec_prefix
945 # by default will actually change.
946 # Use braces instead of parens because sh, perl, etc. also accept them.
947 # (The list follows the same order as the GNU Coding Standards.)
948 bindir='${exec_prefix}/bin'
949 sbindir='${exec_prefix}/sbin'
950 libexecdir='${exec_prefix}/libexec'
951 datarootdir='${prefix}/share'
952 datadir='${datarootdir}'
953 sysconfdir='${prefix}/etc'
954 sharedstatedir='${prefix}/com'
955 localstatedir='${prefix}/var'
956 includedir='${prefix}/include'
957 oldincludedir='/usr/include'
958 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
959 infodir='${datarootdir}/info'
964 libdir='${exec_prefix}/lib'
965 localedir='${datarootdir}/locale'
966 mandir='${datarootdir}/man'
972 # If the previous option needs an argument, assign it.
973 if test -n "$ac_prev"; then
974 eval $ac_prev=\$ac_option
980 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
985 # Accept the important Cygnus configure options, so we can diagnose typos.
987 case $ac_dashdash$ac_option in
991 -bindir | --bindir | --bindi | --bind | --bin | --bi)
993 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
996 -build | --build | --buil | --bui | --bu)
997 ac_prev=build_alias ;;
998 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
999 build_alias=$ac_optarg ;;
1001 -cache-file | --cache-file | --cache-fil | --cache-fi \
1002 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1003 ac_prev=cache_file ;;
1004 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1005 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1006 cache_file=$ac_optarg ;;
1008 --config-cache | -C)
1009 cache_file=config.cache ;;
1011 -datadir | --datadir | --datadi | --datad)
1013 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1014 datadir=$ac_optarg ;;
1016 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1017 | --dataroo | --dataro | --datar)
1018 ac_prev=datarootdir ;;
1019 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1020 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1021 datarootdir=$ac_optarg ;;
1023 -disable-* | --disable-*)
1024 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1025 # Reject names that are not valid shell variable names.
1026 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1027 as_fn_error $? "invalid feature name: $ac_useropt"
1028 ac_useropt_orig=$ac_useropt
1029 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1030 case $ac_user_opts in
1032 "enable_$ac_useropt"
1034 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1035 ac_unrecognized_sep=', ';;
1037 eval enable_$ac_useropt=no ;;
1039 -docdir | --docdir | --docdi | --doc | --do)
1041 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1042 docdir=$ac_optarg ;;
1044 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1046 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1047 dvidir=$ac_optarg ;;
1049 -enable-* | --enable-*)
1050 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1051 # Reject names that are not valid shell variable names.
1052 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1053 as_fn_error $? "invalid feature name: $ac_useropt"
1054 ac_useropt_orig=$ac_useropt
1055 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1056 case $ac_user_opts in
1058 "enable_$ac_useropt"
1060 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1061 ac_unrecognized_sep=', ';;
1063 eval enable_$ac_useropt=\$ac_optarg ;;
1065 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1066 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1067 | --exec | --exe | --ex)
1068 ac_prev=exec_prefix ;;
1069 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1070 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1071 | --exec=* | --exe=* | --ex=*)
1072 exec_prefix=$ac_optarg ;;
1074 -gas | --gas | --ga | --g)
1075 # Obsolete; use --with-gas.
1078 -help | --help | --hel | --he | -h)
1079 ac_init_help=long ;;
1080 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1081 ac_init_help=recursive ;;
1082 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1083 ac_init_help=short ;;
1085 -host | --host | --hos | --ho)
1086 ac_prev=host_alias ;;
1087 -host=* | --host=* | --hos=* | --ho=*)
1088 host_alias=$ac_optarg ;;
1090 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1092 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1094 htmldir=$ac_optarg ;;
1096 -includedir | --includedir | --includedi | --included | --include \
1097 | --includ | --inclu | --incl | --inc)
1098 ac_prev=includedir ;;
1099 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1100 | --includ=* | --inclu=* | --incl=* | --inc=*)
1101 includedir=$ac_optarg ;;
1103 -infodir | --infodir | --infodi | --infod | --info | --inf)
1105 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1106 infodir=$ac_optarg ;;
1108 -libdir | --libdir | --libdi | --libd)
1110 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1111 libdir=$ac_optarg ;;
1113 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1114 | --libexe | --libex | --libe)
1115 ac_prev=libexecdir ;;
1116 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1117 | --libexe=* | --libex=* | --libe=*)
1118 libexecdir=$ac_optarg ;;
1120 -localedir | --localedir | --localedi | --localed | --locale)
1121 ac_prev=localedir ;;
1122 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1123 localedir=$ac_optarg ;;
1125 -localstatedir | --localstatedir | --localstatedi | --localstated \
1126 | --localstate | --localstat | --localsta | --localst | --locals)
1127 ac_prev=localstatedir ;;
1128 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1129 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1130 localstatedir=$ac_optarg ;;
1132 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1134 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1135 mandir=$ac_optarg ;;
1137 -nfp | --nfp | --nf)
1138 # Obsolete; use --without-fp.
1141 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1142 | --no-cr | --no-c | -n)
1145 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1146 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1149 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1150 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1151 | --oldin | --oldi | --old | --ol | --o)
1152 ac_prev=oldincludedir ;;
1153 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1154 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1155 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1156 oldincludedir=$ac_optarg ;;
1158 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1160 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1161 prefix=$ac_optarg ;;
1163 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1164 | --program-pre | --program-pr | --program-p)
1165 ac_prev=program_prefix ;;
1166 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1167 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1168 program_prefix=$ac_optarg ;;
1170 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1171 | --program-suf | --program-su | --program-s)
1172 ac_prev=program_suffix ;;
1173 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1174 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1175 program_suffix=$ac_optarg ;;
1177 -program-transform-name | --program-transform-name \
1178 | --program-transform-nam | --program-transform-na \
1179 | --program-transform-n | --program-transform- \
1180 | --program-transform | --program-transfor \
1181 | --program-transfo | --program-transf \
1182 | --program-trans | --program-tran \
1183 | --progr-tra | --program-tr | --program-t)
1184 ac_prev=program_transform_name ;;
1185 -program-transform-name=* | --program-transform-name=* \
1186 | --program-transform-nam=* | --program-transform-na=* \
1187 | --program-transform-n=* | --program-transform-=* \
1188 | --program-transform=* | --program-transfor=* \
1189 | --program-transfo=* | --program-transf=* \
1190 | --program-trans=* | --program-tran=* \
1191 | --progr-tra=* | --program-tr=* | --program-t=*)
1192 program_transform_name=$ac_optarg ;;
1194 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1196 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1197 pdfdir=$ac_optarg ;;
1199 -psdir | --psdir | --psdi | --psd | --ps)
1201 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1204 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1205 | -silent | --silent | --silen | --sile | --sil)
1208 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1210 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1212 sbindir=$ac_optarg ;;
1214 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1215 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1216 | --sharedst | --shareds | --shared | --share | --shar \
1218 ac_prev=sharedstatedir ;;
1219 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1220 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1221 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1223 sharedstatedir=$ac_optarg ;;
1225 -site | --site | --sit)
1227 -site=* | --site=* | --sit=*)
1230 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1232 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1233 srcdir=$ac_optarg ;;
1235 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1236 | --syscon | --sysco | --sysc | --sys | --sy)
1237 ac_prev=sysconfdir ;;
1238 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1239 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1240 sysconfdir=$ac_optarg ;;
1242 -target | --target | --targe | --targ | --tar | --ta | --t)
1243 ac_prev=target_alias ;;
1244 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1245 target_alias=$ac_optarg ;;
1247 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1250 -version | --version | --versio | --versi | --vers | -V)
1251 ac_init_version=: ;;
1254 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1255 # Reject names that are not valid shell variable names.
1256 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1257 as_fn_error $? "invalid package name: $ac_useropt"
1258 ac_useropt_orig=$ac_useropt
1259 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1260 case $ac_user_opts in
1264 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1265 ac_unrecognized_sep=', ';;
1267 eval with_$ac_useropt=\$ac_optarg ;;
1269 -without-* | --without-*)
1270 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1271 # Reject names that are not valid shell variable names.
1272 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1273 as_fn_error $? "invalid package name: $ac_useropt"
1274 ac_useropt_orig=$ac_useropt
1275 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1276 case $ac_user_opts in
1280 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1281 ac_unrecognized_sep=', ';;
1283 eval with_$ac_useropt=no ;;
1286 # Obsolete; use --with-x.
1289 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1290 | --x-incl | --x-inc | --x-in | --x-i)
1291 ac_prev=x_includes ;;
1292 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1293 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1294 x_includes=$ac_optarg ;;
1296 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1297 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1298 ac_prev=x_libraries ;;
1299 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1300 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1301 x_libraries=$ac_optarg ;;
1303 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1304 Try \`$0 --help' for more information"
1308 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1309 # Reject names that are not valid shell variable names.
1310 case $ac_envvar in #(
1311 '' | [0-9]* | *[!_$as_cr_alnum]* )
1312 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1314 eval $ac_envvar=\$ac_optarg
1315 export $ac_envvar ;;
1318 # FIXME: should be removed in autoconf 3.0.
1319 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1320 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1321 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1322 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1328 if test -n "$ac_prev"; then
1329 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1330 as_fn_error $? "missing argument to $ac_option"
1333 if test -n "$ac_unrecognized_opts"; then
1334 case $enable_option_checking in
1336 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1337 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1341 # Check all directory arguments for consistency.
1342 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1343 datadir sysconfdir sharedstatedir localstatedir includedir \
1344 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1345 libdir localedir mandir
1347 eval ac_val=\$$ac_var
1348 # Remove trailing slashes.
1351 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1352 eval $ac_var=\$ac_val;;
1354 # Be sure to have absolute directory names.
1356 [\\/$]* | ?:[\\/]* ) continue;;
1357 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1359 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1362 # There might be people who depend on the old broken behavior: `$host'
1363 # used to hold the argument of --host etc.
1364 # FIXME: To remove some day.
1367 target=$target_alias
1369 # FIXME: To remove some day.
1370 if test "x$host_alias" != x; then
1371 if test "x$build_alias" = x; then
1372 cross_compiling=maybe
1373 elif test "x$build_alias" != "x$host_alias"; then
1379 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1381 test "$silent" = yes && exec 6>/dev/null
1384 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1385 ac_ls_di=`ls -di .` &&
1386 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1387 as_fn_error $? "working directory cannot be determined"
1388 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1389 as_fn_error $? "pwd does not report name of working directory"
1392 # Find the source files, if location was not specified.
1393 if test -z "$srcdir"; then
1394 ac_srcdir_defaulted=yes
1395 # Try the directory containing this script, then the parent directory.
1396 ac_confdir=`$as_dirname -- "$as_myself" ||
1397 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1398 X"$as_myself" : 'X\(//\)[^/]' \| \
1399 X"$as_myself" : 'X\(//\)$' \| \
1400 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1401 $as_echo X"$as_myself" |
1402 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1420 if test ! -r "$srcdir/$ac_unique_file"; then
1424 ac_srcdir_defaulted=no
1426 if test ! -r "$srcdir/$ac_unique_file"; then
1427 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1428 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1430 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1432 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1434 # When building in place, set srcdir=.
1435 if test "$ac_abs_confdir" = "$ac_pwd"; then
1438 # Remove unnecessary trailing slashes from srcdir.
1439 # Double slashes in file names in object file debugging info
1440 # mess up M-x gdb in Emacs.
1442 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1444 for ac_var in $ac_precious_vars; do
1445 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1446 eval ac_env_${ac_var}_value=\$${ac_var}
1447 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1448 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1452 # Report the --help message.
1454 if test "$ac_init_help" = "long"; then
1455 # Omit some internal or obsolete options to make the list less imposing.
1456 # This message is too long to be a string in the A/UX 3.1 sh.
1458 \`configure' configures sqlite 3.7.17 to adapt to many kinds of systems.
1460 Usage: $0 [OPTION]... [VAR=VALUE]...
1462 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1463 VAR=VALUE. See below for descriptions of some of the useful variables.
1465 Defaults for the options are specified in brackets.
1468 -h, --help display this help and exit
1469 --help=short display options specific to this package
1470 --help=recursive display the short help of all the included packages
1471 -V, --version display version information and exit
1472 -q, --quiet, --silent do not print \`checking ...' messages
1473 --cache-file=FILE cache test results in FILE [disabled]
1474 -C, --config-cache alias for \`--cache-file=config.cache'
1475 -n, --no-create do not create output files
1476 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1478 Installation directories:
1479 --prefix=PREFIX install architecture-independent files in PREFIX
1480 [$ac_default_prefix]
1481 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1484 By default, \`make install' will install all the files in
1485 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1486 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1487 for instance \`--prefix=\$HOME'.
1489 For better control, use the options below.
1491 Fine tuning of the installation directories:
1492 --bindir=DIR user executables [EPREFIX/bin]
1493 --sbindir=DIR system admin executables [EPREFIX/sbin]
1494 --libexecdir=DIR program executables [EPREFIX/libexec]
1495 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1496 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1497 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1498 --libdir=DIR object code libraries [EPREFIX/lib]
1499 --includedir=DIR C header files [PREFIX/include]
1500 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1501 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1502 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1503 --infodir=DIR info documentation [DATAROOTDIR/info]
1504 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1505 --mandir=DIR man documentation [DATAROOTDIR/man]
1506 --docdir=DIR documentation root [DATAROOTDIR/doc/sqlite]
1507 --htmldir=DIR html documentation [DOCDIR]
1508 --dvidir=DIR dvi documentation [DOCDIR]
1509 --pdfdir=DIR pdf documentation [DOCDIR]
1510 --psdir=DIR ps documentation [DOCDIR]
1516 --program-prefix=PREFIX prepend PREFIX to installed program names
1517 --program-suffix=SUFFIX append SUFFIX to installed program names
1518 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1521 --build=BUILD configure for building on BUILD [guessed]
1522 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1526 if test -n "$ac_init_help"; then
1527 case $ac_init_help in
1528 short | recursive ) echo "Configuration of sqlite 3.7.17:";;
1533 --disable-option-checking ignore unrecognized --enable/--with options
1534 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1535 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1536 --disable-largefile omit support for large files
1537 --disable-dependency-tracking speeds up one-time build
1538 --enable-dependency-tracking do not reject slow dependency extractors
1539 --enable-shared[=PKGS] build shared libraries [default=yes]
1540 --enable-static[=PKGS] build static libraries [default=yes]
1541 --enable-fast-install[=PKGS]
1542 optimize for fast installation [default=yes]
1543 --disable-libtool-lock avoid locking (might break parallel builds)
1544 --enable-readline use readline in shell tool (yes, no) [default=yes]
1545 --enable-threadsafe build a thread-safe library [default=yes]
1546 --enable-dynamic-extensions
1547 support loadable extensions [default=yes]
1550 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1551 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1552 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1553 --with-pic try to use only PIC/non-PIC objects [default=use
1555 --with-tags[=TAGS] include additional configurations [automatic]
1557 Some influential environment variables:
1558 CC C compiler command
1559 CFLAGS C compiler flags
1560 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1561 nonstandard directory <lib dir>
1562 LIBS libraries to pass to the linker, e.g. -l<library>
1563 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1564 you have headers in a nonstandard directory <include dir>
1566 CXX C++ compiler command
1567 CXXFLAGS C++ compiler flags
1568 CXXCPP C++ preprocessor
1569 F77 Fortran 77 compiler command
1570 FFLAGS Fortran 77 compiler flags
1572 Use these variables to override the choices made by `configure' or to help
1573 it to find libraries and programs with nonstandard names/locations.
1575 Report bugs to <http://www.sqlite.org>.
1580 if test "$ac_init_help" = "recursive"; then
1581 # If there are subdirs, report their specific --help.
1582 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1583 test -d "$ac_dir" ||
1584 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1589 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1591 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1592 # A ".." for each directory in $ac_dir_suffix.
1593 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1594 case $ac_top_builddir_sub in
1595 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1596 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1599 ac_abs_top_builddir=$ac_pwd
1600 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1601 # for backward compatibility:
1602 ac_top_builddir=$ac_top_build_prefix
1605 .) # We are building in place.
1607 ac_top_srcdir=$ac_top_builddir_sub
1608 ac_abs_top_srcdir=$ac_pwd ;;
1609 [\\/]* | ?:[\\/]* ) # Absolute name.
1610 ac_srcdir=$srcdir$ac_dir_suffix;
1611 ac_top_srcdir=$srcdir
1612 ac_abs_top_srcdir=$srcdir ;;
1614 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1615 ac_top_srcdir=$ac_top_build_prefix$srcdir
1616 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1618 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1620 cd "$ac_dir" || { ac_status=$?; continue; }
1621 # Check for guested configure.
1622 if test -f "$ac_srcdir/configure.gnu"; then
1624 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1625 elif test -f "$ac_srcdir/configure"; then
1627 $SHELL "$ac_srcdir/configure" --help=recursive
1629 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1631 cd "$ac_pwd" || { ac_status=$?; break; }
1635 test -n "$ac_init_help" && exit $ac_status
1636 if $ac_init_version; then
1638 sqlite configure 3.7.17
1639 generated by GNU Autoconf 2.69
1641 Copyright (C) 2012 Free Software Foundation, Inc.
1642 This configure script is free software; the Free Software Foundation
1643 gives unlimited permission to copy, distribute and modify it.
1648 ## ------------------------ ##
1649 ## Autoconf initialization. ##
1650 ## ------------------------ ##
1652 # ac_fn_c_try_compile LINENO
1653 # --------------------------
1654 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1655 ac_fn_c_try_compile ()
1657 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1658 rm -f conftest.$ac_objext
1659 if { { ac_try="$ac_compile"
1661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1662 *) ac_try_echo=$ac_try;;
1664 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1665 $as_echo "$ac_try_echo"; } >&5
1666 (eval "$ac_compile") 2>conftest.err
1668 if test -s conftest.err; then
1669 grep -v '^ *+' conftest.err >conftest.er1
1670 cat conftest.er1 >&5
1671 mv -f conftest.er1 conftest.err
1673 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1674 test $ac_status = 0; } && {
1675 test -z "$ac_c_werror_flag" ||
1676 test ! -s conftest.err
1677 } && test -s conftest.$ac_objext; then :
1680 $as_echo "$as_me: failed program was:" >&5
1681 sed 's/^/| /' conftest.$ac_ext >&5
1685 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1686 as_fn_set_status $ac_retval
1688 } # ac_fn_c_try_compile
1690 # ac_fn_c_try_link LINENO
1691 # -----------------------
1692 # Try to link conftest.$ac_ext, and return whether this succeeded.
1695 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1696 rm -f conftest.$ac_objext conftest$ac_exeext
1697 if { { ac_try="$ac_link"
1699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1700 *) ac_try_echo=$ac_try;;
1702 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1703 $as_echo "$ac_try_echo"; } >&5
1704 (eval "$ac_link") 2>conftest.err
1706 if test -s conftest.err; then
1707 grep -v '^ *+' conftest.err >conftest.er1
1708 cat conftest.er1 >&5
1709 mv -f conftest.er1 conftest.err
1711 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1712 test $ac_status = 0; } && {
1713 test -z "$ac_c_werror_flag" ||
1714 test ! -s conftest.err
1715 } && test -s conftest$ac_exeext && {
1716 test "$cross_compiling" = yes ||
1717 test -x conftest$ac_exeext
1721 $as_echo "$as_me: failed program was:" >&5
1722 sed 's/^/| /' conftest.$ac_ext >&5
1726 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1727 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1728 # interfere with the next link command; also delete a directory that is
1729 # left behind by Apple's compiler. We do this before executing the actions.
1730 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1731 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1732 as_fn_set_status $ac_retval
1734 } # ac_fn_c_try_link
1736 # ac_fn_c_try_cpp LINENO
1737 # ----------------------
1738 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1741 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1742 if { { ac_try="$ac_cpp conftest.$ac_ext"
1744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1745 *) ac_try_echo=$ac_try;;
1747 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1748 $as_echo "$ac_try_echo"; } >&5
1749 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1751 if test -s conftest.err; then
1752 grep -v '^ *+' conftest.err >conftest.er1
1753 cat conftest.er1 >&5
1754 mv -f conftest.er1 conftest.err
1756 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1757 test $ac_status = 0; } > conftest.i && {
1758 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1759 test ! -s conftest.err
1763 $as_echo "$as_me: failed program was:" >&5
1764 sed 's/^/| /' conftest.$ac_ext >&5
1768 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1769 as_fn_set_status $ac_retval
1773 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1774 # -------------------------------------------------------
1775 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1776 # the include files in INCLUDES and setting the cache variable VAR
1778 ac_fn_c_check_header_mongrel ()
1780 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1781 if eval \${$3+:} false; then :
1782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1783 $as_echo_n "checking for $2... " >&6; }
1784 if eval \${$3+:} false; then :
1785 $as_echo_n "(cached) " >&6
1788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1789 $as_echo "$ac_res" >&6; }
1791 # Is the header compilable?
1792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1793 $as_echo_n "checking $2 usability... " >&6; }
1794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1795 /* end confdefs.h. */
1799 if ac_fn_c_try_compile "$LINENO"; then :
1800 ac_header_compiler=yes
1802 ac_header_compiler=no
1804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1806 $as_echo "$ac_header_compiler" >&6; }
1808 # Is the header present?
1809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1810 $as_echo_n "checking $2 presence... " >&6; }
1811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1812 /* end confdefs.h. */
1815 if ac_fn_c_try_cpp "$LINENO"; then :
1816 ac_header_preproc=yes
1818 ac_header_preproc=no
1820 rm -f conftest.err conftest.i conftest.$ac_ext
1821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1822 $as_echo "$ac_header_preproc" >&6; }
1824 # So? What about this header?
1825 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1827 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1828 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1829 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1830 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1833 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1834 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1835 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1836 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1837 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1838 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1839 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1840 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1841 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1842 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1843 ( $as_echo "## ------------------------------------ ##
1844 ## Report this to http://www.sqlite.org ##
1845 ## ------------------------------------ ##"
1846 ) | sed "s/^/$as_me: WARNING: /" >&2
1849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1850 $as_echo_n "checking for $2... " >&6; }
1851 if eval \${$3+:} false; then :
1852 $as_echo_n "(cached) " >&6
1854 eval "$3=\$ac_header_compiler"
1857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1858 $as_echo "$ac_res" >&6; }
1860 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1862 } # ac_fn_c_check_header_mongrel
1864 # ac_fn_c_try_run LINENO
1865 # ----------------------
1866 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1867 # that executables *can* be run.
1870 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1871 if { { ac_try="$ac_link"
1873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1874 *) ac_try_echo=$ac_try;;
1876 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1877 $as_echo "$ac_try_echo"; } >&5
1878 (eval "$ac_link") 2>&5
1880 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1881 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1882 { { case "(($ac_try" in
1883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1884 *) ac_try_echo=$ac_try;;
1886 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1887 $as_echo "$ac_try_echo"; } >&5
1888 (eval "$ac_try") 2>&5
1890 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1891 test $ac_status = 0; }; }; then :
1894 $as_echo "$as_me: program exited with status $ac_status" >&5
1895 $as_echo "$as_me: failed program was:" >&5
1896 sed 's/^/| /' conftest.$ac_ext >&5
1898 ac_retval=$ac_status
1900 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1901 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1902 as_fn_set_status $ac_retval
1906 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1907 # -------------------------------------------------------
1908 # Tests whether HEADER exists and can be compiled using the include files in
1909 # INCLUDES, setting the cache variable VAR accordingly.
1910 ac_fn_c_check_header_compile ()
1912 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1914 $as_echo_n "checking for $2... " >&6; }
1915 if eval \${$3+:} false; then :
1916 $as_echo_n "(cached) " >&6
1918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1919 /* end confdefs.h. */
1923 if ac_fn_c_try_compile "$LINENO"; then :
1928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1932 $as_echo "$ac_res" >&6; }
1933 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1935 } # ac_fn_c_check_header_compile
1937 # ac_fn_c_check_func LINENO FUNC VAR
1938 # ----------------------------------
1939 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1940 ac_fn_c_check_func ()
1942 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1944 $as_echo_n "checking for $2... " >&6; }
1945 if eval \${$3+:} false; then :
1946 $as_echo_n "(cached) " >&6
1948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1949 /* end confdefs.h. */
1950 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1951 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1952 #define $2 innocuous_$2
1954 /* System header to define __stub macros and hopefully few prototypes,
1955 which can conflict with char $2 (); below.
1956 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1957 <limits.h> exists even on freestanding compilers. */
1960 # include <limits.h>
1962 # include <assert.h>
1967 /* Override any GCC internal prototype to avoid an error.
1968 Use char because int might match the return type of a GCC
1969 builtin and then its argument prototype would still apply. */
1974 /* The GNU C library defines this for functions which it implements
1975 to always fail with ENOSYS. Some functions are actually named
1976 something starting with __ and the normal name is an alias. */
1977 #if defined __stub_$2 || defined __stub___$2
1989 if ac_fn_c_try_link "$LINENO"; then :
1994 rm -f core conftest.err conftest.$ac_objext \
1995 conftest$ac_exeext conftest.$ac_ext
1998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1999 $as_echo "$ac_res" >&6; }
2000 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2002 } # ac_fn_c_check_func
2004 # ac_fn_cxx_try_compile LINENO
2005 # ----------------------------
2006 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2007 ac_fn_cxx_try_compile ()
2009 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2010 rm -f conftest.$ac_objext
2011 if { { ac_try="$ac_compile"
2013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2014 *) ac_try_echo=$ac_try;;
2016 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2017 $as_echo "$ac_try_echo"; } >&5
2018 (eval "$ac_compile") 2>conftest.err
2020 if test -s conftest.err; then
2021 grep -v '^ *+' conftest.err >conftest.er1
2022 cat conftest.er1 >&5
2023 mv -f conftest.er1 conftest.err
2025 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2026 test $ac_status = 0; } && {
2027 test -z "$ac_cxx_werror_flag" ||
2028 test ! -s conftest.err
2029 } && test -s conftest.$ac_objext; then :
2032 $as_echo "$as_me: failed program was:" >&5
2033 sed 's/^/| /' conftest.$ac_ext >&5
2037 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2038 as_fn_set_status $ac_retval
2040 } # ac_fn_cxx_try_compile
2042 # ac_fn_cxx_try_cpp LINENO
2043 # ------------------------
2044 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2045 ac_fn_cxx_try_cpp ()
2047 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2048 if { { ac_try="$ac_cpp conftest.$ac_ext"
2050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2051 *) ac_try_echo=$ac_try;;
2053 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2054 $as_echo "$ac_try_echo"; } >&5
2055 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2057 if test -s conftest.err; then
2058 grep -v '^ *+' conftest.err >conftest.er1
2059 cat conftest.er1 >&5
2060 mv -f conftest.er1 conftest.err
2062 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2063 test $ac_status = 0; } > conftest.i && {
2064 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2065 test ! -s conftest.err
2069 $as_echo "$as_me: failed program was:" >&5
2070 sed 's/^/| /' conftest.$ac_ext >&5
2074 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2075 as_fn_set_status $ac_retval
2077 } # ac_fn_cxx_try_cpp
2079 # ac_fn_cxx_try_link LINENO
2080 # -------------------------
2081 # Try to link conftest.$ac_ext, and return whether this succeeded.
2082 ac_fn_cxx_try_link ()
2084 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2085 rm -f conftest.$ac_objext conftest$ac_exeext
2086 if { { ac_try="$ac_link"
2088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2089 *) ac_try_echo=$ac_try;;
2091 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2092 $as_echo "$ac_try_echo"; } >&5
2093 (eval "$ac_link") 2>conftest.err
2095 if test -s conftest.err; then
2096 grep -v '^ *+' conftest.err >conftest.er1
2097 cat conftest.er1 >&5
2098 mv -f conftest.er1 conftest.err
2100 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2101 test $ac_status = 0; } && {
2102 test -z "$ac_cxx_werror_flag" ||
2103 test ! -s conftest.err
2104 } && test -s conftest$ac_exeext && {
2105 test "$cross_compiling" = yes ||
2106 test -x conftest$ac_exeext
2110 $as_echo "$as_me: failed program was:" >&5
2111 sed 's/^/| /' conftest.$ac_ext >&5
2115 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2116 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2117 # interfere with the next link command; also delete a directory that is
2118 # left behind by Apple's compiler. We do this before executing the actions.
2119 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2120 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2121 as_fn_set_status $ac_retval
2123 } # ac_fn_cxx_try_link
2125 # ac_fn_f77_try_compile LINENO
2126 # ----------------------------
2127 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2128 ac_fn_f77_try_compile ()
2130 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2131 rm -f conftest.$ac_objext
2132 if { { ac_try="$ac_compile"
2134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2135 *) ac_try_echo=$ac_try;;
2137 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2138 $as_echo "$ac_try_echo"; } >&5
2139 (eval "$ac_compile") 2>conftest.err
2141 if test -s conftest.err; then
2142 grep -v '^ *+' conftest.err >conftest.er1
2143 cat conftest.er1 >&5
2144 mv -f conftest.er1 conftest.err
2146 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2147 test $ac_status = 0; } && {
2148 test -z "$ac_f77_werror_flag" ||
2149 test ! -s conftest.err
2150 } && test -s conftest.$ac_objext; then :
2153 $as_echo "$as_me: failed program was:" >&5
2154 sed 's/^/| /' conftest.$ac_ext >&5
2158 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2159 as_fn_set_status $ac_retval
2161 } # ac_fn_f77_try_compile
2163 # ac_fn_f77_try_link LINENO
2164 # -------------------------
2165 # Try to link conftest.$ac_ext, and return whether this succeeded.
2166 ac_fn_f77_try_link ()
2168 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2169 rm -f conftest.$ac_objext conftest$ac_exeext
2170 if { { ac_try="$ac_link"
2172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2173 *) ac_try_echo=$ac_try;;
2175 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2176 $as_echo "$ac_try_echo"; } >&5
2177 (eval "$ac_link") 2>conftest.err
2179 if test -s conftest.err; then
2180 grep -v '^ *+' conftest.err >conftest.er1
2181 cat conftest.er1 >&5
2182 mv -f conftest.er1 conftest.err
2184 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2185 test $ac_status = 0; } && {
2186 test -z "$ac_f77_werror_flag" ||
2187 test ! -s conftest.err
2188 } && test -s conftest$ac_exeext && {
2189 test "$cross_compiling" = yes ||
2190 test -x conftest$ac_exeext
2194 $as_echo "$as_me: failed program was:" >&5
2195 sed 's/^/| /' conftest.$ac_ext >&5
2199 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2200 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2201 # interfere with the next link command; also delete a directory that is
2202 # left behind by Apple's compiler. We do this before executing the actions.
2203 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2204 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2205 as_fn_set_status $ac_retval
2207 } # ac_fn_f77_try_link
2209 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2210 # ---------------------------------------------
2211 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2213 ac_fn_c_check_decl ()
2215 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2216 as_decl_name=`echo $2|sed 's/ *(.*//'`
2217 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2219 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2220 if eval \${$3+:} false; then :
2221 $as_echo_n "(cached) " >&6
2223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2224 /* end confdefs.h. */
2229 #ifndef $as_decl_name
2231 (void) $as_decl_use;
2233 (void) $as_decl_name;
2241 if ac_fn_c_try_compile "$LINENO"; then :
2246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2250 $as_echo "$ac_res" >&6; }
2251 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2253 } # ac_fn_c_check_decl
2254 cat >config.log <<_ACEOF
2255 This file contains any messages produced by compilers while
2256 running configure, to aid debugging if configure makes a mistake.
2258 It was created by sqlite $as_me 3.7.17, which was
2259 generated by GNU Autoconf 2.69. Invocation command line was
2271 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2272 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2273 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2274 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2275 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2277 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2278 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2280 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2281 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2282 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2283 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2284 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2285 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2286 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2294 test -z "$as_dir" && as_dir=.
2295 $as_echo "PATH: $as_dir"
2311 # Keep a trace of the command line.
2312 # Strip out --no-create and --no-recursion so they do not pile up.
2313 # Strip out --silent because we don't want to record it for future runs.
2314 # Also quote any args containing shell meta-characters.
2315 # Make two passes to allow for proper duplicate-argument suppression.
2319 ac_must_keep_next=false
2325 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2326 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2327 | -silent | --silent | --silen | --sile | --sil)
2330 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2333 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2335 as_fn_append ac_configure_args1 " '$ac_arg'"
2336 if test $ac_must_keep_next = true; then
2337 ac_must_keep_next=false # Got value, back to normal.
2340 *=* | --config-cache | -C | -disable-* | --disable-* \
2341 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2342 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2343 | -with-* | --with-* | -without-* | --without-* | --x)
2344 case "$ac_configure_args0 " in
2345 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2348 -* ) ac_must_keep_next=true ;;
2351 as_fn_append ac_configure_args " '$ac_arg'"
2356 { ac_configure_args0=; unset ac_configure_args0;}
2357 { ac_configure_args1=; unset ac_configure_args1;}
2359 # When interrupted or exit'd, cleanup temporary files, and complete
2360 # config.log. We remove comments because anyway the quotes in there
2361 # would cause problems or look ugly.
2362 # WARNING: Use '\'' to represent an apostrophe within the trap.
2363 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2364 trap 'exit_status=$?
2365 # Save into config.log some information that might help in debugging.
2369 $as_echo "## ---------------- ##
2370 ## Cache variables. ##
2371 ## ---------------- ##"
2373 # The following way of writing the cache mishandles newlines in values,
2375 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2376 eval ac_val=\$$ac_var
2380 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2381 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2384 _ | IFS | as_nl) ;; #(
2385 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2386 *) { eval $ac_var=; unset $ac_var;} ;;
2391 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2392 *${as_nl}ac_space=\ *)
2394 "s/'\''/'\''\\\\'\'''\''/g;
2395 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2398 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2405 $as_echo "## ----------------- ##
2406 ## Output variables. ##
2407 ## ----------------- ##"
2409 for ac_var in $ac_subst_vars
2411 eval ac_val=\$$ac_var
2413 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2415 $as_echo "$ac_var='\''$ac_val'\''"
2419 if test -n "$ac_subst_files"; then
2420 $as_echo "## ------------------- ##
2421 ## File substitutions. ##
2422 ## ------------------- ##"
2424 for ac_var in $ac_subst_files
2426 eval ac_val=\$$ac_var
2428 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2430 $as_echo "$ac_var='\''$ac_val'\''"
2435 if test -s confdefs.h; then
2436 $as_echo "## ----------- ##
2443 test "$ac_signal" != 0 &&
2444 $as_echo "$as_me: caught signal $ac_signal"
2445 $as_echo "$as_me: exit $exit_status"
2447 rm -f core *.core core.conftest.* &&
2448 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2451 for ac_signal in 1 2 13 15; do
2452 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2456 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2457 rm -f -r conftest* confdefs.h
2459 $as_echo "/* confdefs.h */" > confdefs.h
2461 # Predefined preprocessor variables.
2463 cat >>confdefs.h <<_ACEOF
2464 #define PACKAGE_NAME "$PACKAGE_NAME"
2467 cat >>confdefs.h <<_ACEOF
2468 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2471 cat >>confdefs.h <<_ACEOF
2472 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2475 cat >>confdefs.h <<_ACEOF
2476 #define PACKAGE_STRING "$PACKAGE_STRING"
2479 cat >>confdefs.h <<_ACEOF
2480 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2483 cat >>confdefs.h <<_ACEOF
2484 #define PACKAGE_URL "$PACKAGE_URL"
2488 # Let the site file select an alternate cache file if it wants to.
2489 # Prefer an explicitly selected file to automatically selected ones.
2492 if test -n "$CONFIG_SITE"; then
2493 # We do not want a PATH search for config.site.
2494 case $CONFIG_SITE in #((
2495 -*) ac_site_file1=./$CONFIG_SITE;;
2496 */*) ac_site_file1=$CONFIG_SITE;;
2497 *) ac_site_file1=./$CONFIG_SITE;;
2499 elif test "x$prefix" != xNONE; then
2500 ac_site_file1=$prefix/share/config.site
2501 ac_site_file2=$prefix/etc/config.site
2503 ac_site_file1=$ac_default_prefix/share/config.site
2504 ac_site_file2=$ac_default_prefix/etc/config.site
2506 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2508 test "x$ac_site_file" = xNONE && continue
2509 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2510 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2511 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2512 sed 's/^/| /' "$ac_site_file" >&5
2514 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2515 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2516 as_fn_error $? "failed to load site script $ac_site_file
2517 See \`config.log' for more details" "$LINENO" 5; }
2521 if test -r "$cache_file"; then
2522 # Some versions of bash will fail to source /dev/null (special files
2523 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2524 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2525 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2526 $as_echo "$as_me: loading cache $cache_file" >&6;}
2528 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2529 *) . "./$cache_file";;
2533 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2534 $as_echo "$as_me: creating cache $cache_file" >&6;}
2538 # Check that the precious variables saved in the cache have kept the same
2540 ac_cache_corrupted=false
2541 for ac_var in $ac_precious_vars; do
2542 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2543 eval ac_new_set=\$ac_env_${ac_var}_set
2544 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2545 eval ac_new_val=\$ac_env_${ac_var}_value
2546 case $ac_old_set,$ac_new_set in
2548 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2549 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2550 ac_cache_corrupted=: ;;
2552 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2553 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2554 ac_cache_corrupted=: ;;
2557 if test "x$ac_old_val" != "x$ac_new_val"; then
2558 # differences in whitespace do not lead to failure.
2559 ac_old_val_w=`echo x $ac_old_val`
2560 ac_new_val_w=`echo x $ac_new_val`
2561 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2562 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2563 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2564 ac_cache_corrupted=:
2566 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2567 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2568 eval $ac_var=\$ac_old_val
2570 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2571 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2572 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2573 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2576 # Pass precious variables to config.status.
2577 if test "$ac_new_set" = set; then
2579 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2580 *) ac_arg=$ac_var=$ac_new_val ;;
2582 case " $ac_configure_args " in
2583 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2584 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2588 if $ac_cache_corrupted; then
2589 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2590 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2591 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2592 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2593 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2595 ## -------------------- ##
2596 ## Main body of script. ##
2597 ## -------------------- ##
2600 ac_cpp='$CPP $CPPFLAGS'
2601 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2602 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2603 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2609 am__api_version="1.9"
2611 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2612 if test -f "$ac_dir/install-sh"; then
2614 ac_install_sh="$ac_aux_dir/install-sh -c"
2616 elif test -f "$ac_dir/install.sh"; then
2618 ac_install_sh="$ac_aux_dir/install.sh -c"
2620 elif test -f "$ac_dir/shtool"; then
2622 ac_install_sh="$ac_aux_dir/shtool install -c"
2626 if test -z "$ac_aux_dir"; then
2627 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2630 # These three variables are undocumented and unsupported,
2631 # and are intended to be withdrawn in a future Autoconf release.
2632 # They can cause serious problems if a builder's source tree is in a directory
2633 # whose full name contains unusual characters.
2634 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2635 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2636 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2639 # Find a good install program. We prefer a C program (faster),
2640 # so one script is as good as another. But avoid the broken or
2641 # incompatible versions:
2642 # SysV /etc/install, /usr/sbin/install
2643 # SunOS /usr/etc/install
2644 # IRIX /sbin/install
2646 # AmigaOS /C/install, which installs bootblocks on floppy discs
2647 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2648 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2649 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2650 # OS/2's system install, which has a completely different semantic
2651 # ./install, which can be erroneously created by make from ./install.sh.
2652 # Reject install programs that cannot install multiple files.
2653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2654 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2655 if test -z "$INSTALL"; then
2656 if ${ac_cv_path_install+:} false; then :
2657 $as_echo_n "(cached) " >&6
2659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2663 test -z "$as_dir" && as_dir=.
2664 # Account for people who put trailing slashes in PATH elements.
2665 case $as_dir/ in #((
2666 ./ | .// | /[cC]/* | \
2667 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2668 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2671 # OSF1 and SCO ODT 3.0 have their own names for install.
2672 # Don't use installbsd from OSF since it installs stuff as root
2674 for ac_prog in ginstall scoinst install; do
2675 for ac_exec_ext in '' $ac_executable_extensions; do
2676 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2677 if test $ac_prog = install &&
2678 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2679 # AIX install. It has an incompatible calling convention.
2681 elif test $ac_prog = install &&
2682 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2683 # program-specific install script used by HP pwplus--don't use.
2686 rm -rf conftest.one conftest.two conftest.dir
2687 echo one > conftest.one
2688 echo two > conftest.two
2690 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2691 test -s conftest.one && test -s conftest.two &&
2692 test -s conftest.dir/conftest.one &&
2693 test -s conftest.dir/conftest.two
2695 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2708 rm -rf conftest.one conftest.two conftest.dir
2711 if test "${ac_cv_path_install+set}" = set; then
2712 INSTALL=$ac_cv_path_install
2714 # As a last resort, use the slow shell script. Don't cache a
2715 # value for INSTALL within a source directory, because that will
2716 # break other packages using the cache if that directory is
2717 # removed, or if the value is a relative name.
2718 INSTALL=$ac_install_sh
2721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2722 $as_echo "$INSTALL" >&6; }
2724 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2725 # It thinks the first close brace ends the variable substitution.
2726 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2728 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2730 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2733 $as_echo_n "checking whether build environment is sane... " >&6; }
2736 echo timestamp > conftest.file
2737 # Do `set' in a subshell so we don't clobber the current shell's
2738 # arguments. Must try -L first in case configure is actually a
2739 # symlink; some systems play weird games with the mod time of symlinks
2740 # (eg FreeBSD returns the mod time of the symlink's containing
2743 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2744 if test "$*" = "X"; then
2746 set X `ls -t $srcdir/configure conftest.file`
2749 if test "$*" != "X $srcdir/configure conftest.file" \
2750 && test "$*" != "X conftest.file $srcdir/configure"; then
2752 # If neither matched, then we have a broken ls. This can happen
2753 # if, for instance, CONFIG_SHELL is bash and it inherits a
2754 # broken ls alias from the environment. This has actually
2755 # happened. Such a system could not be considered "sane".
2756 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2757 alias in your environment" "$LINENO" 5
2760 test "$2" = conftest.file
2766 as_fn_error $? "newly created file is older than distributed files!
2767 Check your system clock" "$LINENO" 5
2769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2770 $as_echo "yes" >&6; }
2771 test "$program_prefix" != NONE &&
2772 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2773 # Use a double $ so make ignores it.
2774 test "$program_suffix" != NONE &&
2775 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2776 # Double any \ or $.
2777 # By default was `s,x,x', remove it if useless.
2778 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2779 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2781 # expand $ac_aux_dir to an absolute path
2782 am_aux_dir=`cd $ac_aux_dir && pwd`
2784 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2785 # Use eval to expand $SHELL
2786 if eval "$MISSING --run true"; then
2787 am_missing_run="$MISSING --run "
2790 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2791 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2794 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2795 # We used to keeping the `.' as first argument, in order to
2796 # allow $(mkdir_p) to be used without argument. As in
2797 # $(mkdir_p) $(somedir)
2798 # where $(somedir) is conditionally defined. However this is wrong
2800 # 1. if the package is installed by a user who cannot write `.'
2801 # make install will fail,
2802 # 2. the above comment should most certainly read
2803 # $(mkdir_p) $(DESTDIR)$(somedir)
2804 # so it does not work when $(somedir) is undefined and
2805 # $(DESTDIR) is not.
2806 # To support the latter case, we have to write
2807 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2808 # so the `.' trick is pointless.
2809 mkdir_p='mkdir -p --'
2811 # On NextStep and OpenStep, the `mkdir' command does not
2812 # recognize any option. It will interpret all options as
2813 # directories to create, and then abort because `.' already
2815 for d in ./-p ./--version;
2817 test -d $d && rmdir $d
2819 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2820 if test -f "$ac_aux_dir/mkinstalldirs"; then
2821 mkdir_p='$(mkinstalldirs)'
2823 mkdir_p='$(install_sh) -d'
2827 for ac_prog in gawk mawk nawk awk
2829 # Extract the first word of "$ac_prog", so it can be a program name with args.
2830 set dummy $ac_prog; ac_word=$2
2831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2832 $as_echo_n "checking for $ac_word... " >&6; }
2833 if ${ac_cv_prog_AWK+:} false; then :
2834 $as_echo_n "(cached) " >&6
2836 if test -n "$AWK"; then
2837 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2843 test -z "$as_dir" && as_dir=.
2844 for ac_exec_ext in '' $ac_executable_extensions; do
2845 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2846 ac_cv_prog_AWK="$ac_prog"
2847 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2857 if test -n "$AWK"; then
2858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2859 $as_echo "$AWK" >&6; }
2861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2862 $as_echo "no" >&6; }
2866 test -n "$AWK" && break
2869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2870 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2872 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2873 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2874 $as_echo_n "(cached) " >&6
2876 cat >conftest.make <<\_ACEOF
2879 @echo '@@@%%%=$(MAKE)=@@@%%%'
2881 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2882 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2884 eval ac_cv_prog_make_${ac_make}_set=yes;;
2886 eval ac_cv_prog_make_${ac_make}_set=no;;
2890 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2892 $as_echo "yes" >&6; }
2895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2896 $as_echo "no" >&6; }
2897 SET_MAKE="MAKE=${MAKE-make}"
2900 rm -rf .tst 2>/dev/null
2901 mkdir .tst 2>/dev/null
2902 if test -d .tst; then
2907 rmdir .tst 2>/dev/null
2909 # test to see if srcdir already configured
2910 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2911 test -f $srcdir/config.status; then
2912 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2915 # test whether we have cygpath
2916 if test -z "$CYGPATH_W"; then
2917 if (cygpath --version) >/dev/null 2>/dev/null; then
2918 CYGPATH_W='cygpath -w'
2925 # Define the identity of the package.
2930 cat >>confdefs.h <<_ACEOF
2931 #define PACKAGE "$PACKAGE"
2935 cat >>confdefs.h <<_ACEOF
2936 #define VERSION "$VERSION"
2939 # Some tools Automake needs.
2941 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2944 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2947 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2950 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2953 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2955 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2957 # Installed binaries are usually stripped using `strip' when the user
2958 # run `make install-strip'. However `strip' might not be the right
2959 # tool to use in cross-compilation environments, therefore Automake
2960 # will honor the `STRIP' environment variable to overrule this program.
2961 if test "$cross_compiling" != no; then
2962 if test -n "$ac_tool_prefix"; then
2963 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2964 set dummy ${ac_tool_prefix}strip; ac_word=$2
2965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2966 $as_echo_n "checking for $ac_word... " >&6; }
2967 if ${ac_cv_prog_STRIP+:} false; then :
2968 $as_echo_n "(cached) " >&6
2970 if test -n "$STRIP"; then
2971 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2977 test -z "$as_dir" && as_dir=.
2978 for ac_exec_ext in '' $ac_executable_extensions; do
2979 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2980 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2981 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2990 STRIP=$ac_cv_prog_STRIP
2991 if test -n "$STRIP"; then
2992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2993 $as_echo "$STRIP" >&6; }
2995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2996 $as_echo "no" >&6; }
3001 if test -z "$ac_cv_prog_STRIP"; then
3003 # Extract the first word of "strip", so it can be a program name with args.
3004 set dummy strip; ac_word=$2
3005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3006 $as_echo_n "checking for $ac_word... " >&6; }
3007 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3008 $as_echo_n "(cached) " >&6
3010 if test -n "$ac_ct_STRIP"; then
3011 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3017 test -z "$as_dir" && as_dir=.
3018 for ac_exec_ext in '' $ac_executable_extensions; do
3019 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3020 ac_cv_prog_ac_ct_STRIP="strip"
3021 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3030 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3031 if test -n "$ac_ct_STRIP"; then
3032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3033 $as_echo "$ac_ct_STRIP" >&6; }
3035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3036 $as_echo "no" >&6; }
3039 if test "x$ac_ct_STRIP" = x; then
3042 case $cross_compiling:$ac_tool_warned in
3044 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3045 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3046 ac_tool_warned=yes ;;
3051 STRIP="$ac_cv_prog_STRIP"
3055 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
3057 # We need awk for the "check" target. The system "awk" is bad on
3059 # Always define AMTAR for backward compatibility.
3061 AMTAR=${AMTAR-"${am_missing_run}tar"}
3063 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3070 DEPDIR="${am__leading_dot}deps"
3072 ac_config_commands="$ac_config_commands depfiles"
3075 am_make=${MAKE-make}
3076 cat > confinc << 'END'
3081 # If we don't find an include directive, just comment out the code.
3082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3083 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3087 # First try GNU make style include.
3088 echo "include confinc" > confmf
3089 # We grep out `Entering directory' and `Leaving directory'
3090 # messages which can occur if `w' ends up in MAKEFLAGS.
3091 # In particular we don't look at `^make:' because GNU make might
3092 # be invoked under some other name (usually "gmake"), in which
3093 # case it prints its new name instead of `make'.
3094 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3099 # Now try BSD make style include.
3100 if test "$am__include" = "#"; then
3101 echo '.include "confinc"' > confmf
3102 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3103 am__include=.include
3110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3111 $as_echo "$_am_result" >&6; }
3112 rm -f confinc confmf
3114 # Check whether --enable-dependency-tracking was given.
3115 if test "${enable_dependency_tracking+set}" = set; then :
3116 enableval=$enable_dependency_tracking;
3119 if test "x$enable_dependency_tracking" != xno; then
3120 am_depcomp="$ac_aux_dir/depcomp"
3125 if test "x$enable_dependency_tracking" != xno; then
3136 ac_cpp='$CPP $CPPFLAGS'
3137 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3138 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3139 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3140 if test -n "$ac_tool_prefix"; then
3141 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3142 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3144 $as_echo_n "checking for $ac_word... " >&6; }
3145 if ${ac_cv_prog_CC+:} false; then :
3146 $as_echo_n "(cached) " >&6
3148 if test -n "$CC"; then
3149 ac_cv_prog_CC="$CC" # Let the user override the test.
3151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3155 test -z "$as_dir" && as_dir=.
3156 for ac_exec_ext in '' $ac_executable_extensions; do
3157 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3158 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3169 if test -n "$CC"; then
3170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3171 $as_echo "$CC" >&6; }
3173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3174 $as_echo "no" >&6; }
3179 if test -z "$ac_cv_prog_CC"; then
3181 # Extract the first word of "gcc", so it can be a program name with args.
3182 set dummy gcc; ac_word=$2
3183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3184 $as_echo_n "checking for $ac_word... " >&6; }
3185 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3186 $as_echo_n "(cached) " >&6
3188 if test -n "$ac_ct_CC"; then
3189 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3195 test -z "$as_dir" && as_dir=.
3196 for ac_exec_ext in '' $ac_executable_extensions; do
3197 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3198 ac_cv_prog_ac_ct_CC="gcc"
3199 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3208 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3209 if test -n "$ac_ct_CC"; then
3210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3211 $as_echo "$ac_ct_CC" >&6; }
3213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3214 $as_echo "no" >&6; }
3217 if test "x$ac_ct_CC" = x; then
3220 case $cross_compiling:$ac_tool_warned in
3222 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3223 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3224 ac_tool_warned=yes ;;
3232 if test -z "$CC"; then
3233 if test -n "$ac_tool_prefix"; then
3234 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3235 set dummy ${ac_tool_prefix}cc; ac_word=$2
3236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3237 $as_echo_n "checking for $ac_word... " >&6; }
3238 if ${ac_cv_prog_CC+:} false; then :
3239 $as_echo_n "(cached) " >&6
3241 if test -n "$CC"; then
3242 ac_cv_prog_CC="$CC" # Let the user override the test.
3244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3248 test -z "$as_dir" && as_dir=.
3249 for ac_exec_ext in '' $ac_executable_extensions; do
3250 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3251 ac_cv_prog_CC="${ac_tool_prefix}cc"
3252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3262 if test -n "$CC"; then
3263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3264 $as_echo "$CC" >&6; }
3266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3267 $as_echo "no" >&6; }
3273 if test -z "$CC"; then
3274 # Extract the first word of "cc", so it can be a program name with args.
3275 set dummy cc; ac_word=$2
3276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3277 $as_echo_n "checking for $ac_word... " >&6; }
3278 if ${ac_cv_prog_CC+:} false; then :
3279 $as_echo_n "(cached) " >&6
3281 if test -n "$CC"; then
3282 ac_cv_prog_CC="$CC" # Let the user override the test.
3285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3289 test -z "$as_dir" && as_dir=.
3290 for ac_exec_ext in '' $ac_executable_extensions; do
3291 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3292 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3293 ac_prog_rejected=yes
3297 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3304 if test $ac_prog_rejected = yes; then
3305 # We found a bogon in the path, so make sure we never use it.
3306 set dummy $ac_cv_prog_CC
3308 if test $# != 0; then
3309 # We chose a different compiler from the bogus one.
3310 # However, it has the same basename, so the bogon will be chosen
3311 # first if we set CC to just the basename; use the full file name.
3313 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3319 if test -n "$CC"; then
3320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3321 $as_echo "$CC" >&6; }
3323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3324 $as_echo "no" >&6; }
3329 if test -z "$CC"; then
3330 if test -n "$ac_tool_prefix"; then
3331 for ac_prog in cl.exe
3333 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3334 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3336 $as_echo_n "checking for $ac_word... " >&6; }
3337 if ${ac_cv_prog_CC+:} false; then :
3338 $as_echo_n "(cached) " >&6
3340 if test -n "$CC"; then
3341 ac_cv_prog_CC="$CC" # Let the user override the test.
3343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3347 test -z "$as_dir" && as_dir=.
3348 for ac_exec_ext in '' $ac_executable_extensions; do
3349 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3350 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3351 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3361 if test -n "$CC"; then
3362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3363 $as_echo "$CC" >&6; }
3365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3366 $as_echo "no" >&6; }
3370 test -n "$CC" && break
3373 if test -z "$CC"; then
3375 for ac_prog in cl.exe
3377 # Extract the first word of "$ac_prog", so it can be a program name with args.
3378 set dummy $ac_prog; ac_word=$2
3379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3380 $as_echo_n "checking for $ac_word... " >&6; }
3381 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3382 $as_echo_n "(cached) " >&6
3384 if test -n "$ac_ct_CC"; then
3385 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3391 test -z "$as_dir" && as_dir=.
3392 for ac_exec_ext in '' $ac_executable_extensions; do
3393 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3394 ac_cv_prog_ac_ct_CC="$ac_prog"
3395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3404 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3405 if test -n "$ac_ct_CC"; then
3406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3407 $as_echo "$ac_ct_CC" >&6; }
3409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3410 $as_echo "no" >&6; }
3414 test -n "$ac_ct_CC" && break
3417 if test "x$ac_ct_CC" = x; then
3420 case $cross_compiling:$ac_tool_warned in
3422 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3423 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3424 ac_tool_warned=yes ;;
3433 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3434 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3435 as_fn_error $? "no acceptable C compiler found in \$PATH
3436 See \`config.log' for more details" "$LINENO" 5; }
3438 # Provide some information about the compiler.
3439 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3442 for ac_option in --version -v -V -qversion; do
3443 { { ac_try="$ac_compiler $ac_option >&5"
3445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3446 *) ac_try_echo=$ac_try;;
3448 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3449 $as_echo "$ac_try_echo"; } >&5
3450 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3452 if test -s conftest.err; then
3454 ... rest of stderr output deleted ...
3455 10q' conftest.err >conftest.er1
3456 cat conftest.er1 >&5
3458 rm -f conftest.er1 conftest.err
3459 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3460 test $ac_status = 0; }
3463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3464 /* end confdefs.h. */
3474 ac_clean_files_save=$ac_clean_files
3475 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3476 # Try to create an executable without -o first, disregard a.out.
3477 # It will help us diagnose broken compilers, and finding out an intuition
3479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3480 $as_echo_n "checking whether the C compiler works... " >&6; }
3481 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3483 # The possible output files:
3484 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3487 for ac_file in $ac_files
3490 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3491 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3496 if { { ac_try="$ac_link_default"
3498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3499 *) ac_try_echo=$ac_try;;
3501 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3502 $as_echo "$ac_try_echo"; } >&5
3503 (eval "$ac_link_default") 2>&5
3505 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3506 test $ac_status = 0; }; then :
3507 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3508 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3509 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3510 # so that the user can short-circuit this test for compilers unknown to
3512 for ac_file in $ac_files ''
3514 test -f "$ac_file" || continue
3516 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3519 # We found the default executable, but exeext='' is most
3523 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3525 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3527 # We set ac_cv_exeext here because the later test for it is not
3528 # safe: cross compilers may not add the suffix if given an `-o'
3529 # argument, so we may need to know it at that point already.
3530 # Even if this section looks crufty: it has the advantage of
3537 test "$ac_cv_exeext" = no && ac_cv_exeext=
3542 if test -z "$ac_file"; then :
3543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3544 $as_echo "no" >&6; }
3545 $as_echo "$as_me: failed program was:" >&5
3546 sed 's/^/| /' conftest.$ac_ext >&5
3548 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3549 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3550 as_fn_error 77 "C compiler cannot create executables
3551 See \`config.log' for more details" "$LINENO" 5; }
3553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3554 $as_echo "yes" >&6; }
3556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3557 $as_echo_n "checking for C compiler default output file name... " >&6; }
3558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3559 $as_echo "$ac_file" >&6; }
3560 ac_exeext=$ac_cv_exeext
3562 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3563 ac_clean_files=$ac_clean_files_save
3564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3565 $as_echo_n "checking for suffix of executables... " >&6; }
3566 if { { ac_try="$ac_link"
3568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3569 *) ac_try_echo=$ac_try;;
3571 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3572 $as_echo "$ac_try_echo"; } >&5
3573 (eval "$ac_link") 2>&5
3575 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3576 test $ac_status = 0; }; then :
3577 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3578 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3579 # work properly (i.e., refer to `conftest.exe'), while it won't with
3581 for ac_file in conftest.exe conftest conftest.*; do
3582 test -f "$ac_file" || continue
3584 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3585 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3591 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3592 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3593 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3594 See \`config.log' for more details" "$LINENO" 5; }
3596 rm -f conftest conftest$ac_cv_exeext
3597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3598 $as_echo "$ac_cv_exeext" >&6; }
3600 rm -f conftest.$ac_ext
3601 EXEEXT=$ac_cv_exeext
3603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3604 /* end confdefs.h. */
3609 FILE *f = fopen ("conftest.out", "w");
3610 return ferror (f) || fclose (f) != 0;
3616 ac_clean_files="$ac_clean_files conftest.out"
3617 # Check that the compiler produces executables we can run. If not, either
3618 # the compiler is broken, or we cross compile.
3619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3620 $as_echo_n "checking whether we are cross compiling... " >&6; }
3621 if test "$cross_compiling" != yes; then
3622 { { ac_try="$ac_link"
3624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3625 *) ac_try_echo=$ac_try;;
3627 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3628 $as_echo "$ac_try_echo"; } >&5
3629 (eval "$ac_link") 2>&5
3631 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3632 test $ac_status = 0; }
3633 if { ac_try='./conftest$ac_cv_exeext'
3634 { { case "(($ac_try" in
3635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3636 *) ac_try_echo=$ac_try;;
3638 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3639 $as_echo "$ac_try_echo"; } >&5
3640 (eval "$ac_try") 2>&5
3642 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3643 test $ac_status = 0; }; }; then
3646 if test "$cross_compiling" = maybe; then
3649 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3650 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3651 as_fn_error $? "cannot run C compiled programs.
3652 If you meant to cross compile, use \`--host'.
3653 See \`config.log' for more details" "$LINENO" 5; }
3657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3658 $as_echo "$cross_compiling" >&6; }
3660 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3661 ac_clean_files=$ac_clean_files_save
3662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3663 $as_echo_n "checking for suffix of object files... " >&6; }
3664 if ${ac_cv_objext+:} false; then :
3665 $as_echo_n "(cached) " >&6
3667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3668 /* end confdefs.h. */
3678 rm -f conftest.o conftest.obj
3679 if { { ac_try="$ac_compile"
3681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3682 *) ac_try_echo=$ac_try;;
3684 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3685 $as_echo "$ac_try_echo"; } >&5
3686 (eval "$ac_compile") 2>&5
3688 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3689 test $ac_status = 0; }; then :
3690 for ac_file in conftest.o conftest.obj conftest.*; do
3691 test -f "$ac_file" || continue;
3693 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3694 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3699 $as_echo "$as_me: failed program was:" >&5
3700 sed 's/^/| /' conftest.$ac_ext >&5
3702 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3703 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3704 as_fn_error $? "cannot compute suffix of object files: cannot compile
3705 See \`config.log' for more details" "$LINENO" 5; }
3707 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3710 $as_echo "$ac_cv_objext" >&6; }
3711 OBJEXT=$ac_cv_objext
3713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3714 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3715 if ${ac_cv_c_compiler_gnu+:} false; then :
3716 $as_echo_n "(cached) " >&6
3718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3719 /* end confdefs.h. */
3732 if ac_fn_c_try_compile "$LINENO"; then :
3737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3738 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3742 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3743 if test $ac_compiler_gnu = yes; then
3748 ac_test_CFLAGS=${CFLAGS+set}
3749 ac_save_CFLAGS=$CFLAGS
3750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3751 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3752 if ${ac_cv_prog_cc_g+:} false; then :
3753 $as_echo_n "(cached) " >&6
3755 ac_save_c_werror_flag=$ac_c_werror_flag
3756 ac_c_werror_flag=yes
3759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3760 /* end confdefs.h. */
3770 if ac_fn_c_try_compile "$LINENO"; then :
3774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3775 /* end confdefs.h. */
3785 if ac_fn_c_try_compile "$LINENO"; then :
3788 ac_c_werror_flag=$ac_save_c_werror_flag
3790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3791 /* end confdefs.h. */
3801 if ac_fn_c_try_compile "$LINENO"; then :
3804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3809 ac_c_werror_flag=$ac_save_c_werror_flag
3811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3812 $as_echo "$ac_cv_prog_cc_g" >&6; }
3813 if test "$ac_test_CFLAGS" = set; then
3814 CFLAGS=$ac_save_CFLAGS
3815 elif test $ac_cv_prog_cc_g = yes; then
3816 if test "$GCC" = yes; then
3822 if test "$GCC" = yes; then
3828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3829 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3830 if ${ac_cv_prog_cc_c89+:} false; then :
3831 $as_echo_n "(cached) " >&6
3833 ac_cv_prog_cc_c89=no
3835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3836 /* end confdefs.h. */
3840 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3841 struct buf { int x; };
3842 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3843 static char *e (p, i)
3849 static char *f (char * (*g) (char **, int), char **p, ...)
3854 s = g (p, va_arg (v,int));
3859 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3860 function prototypes and stuff, but not '\xHH' hex character constants.
3861 These don't provoke an error unfortunately, instead are silently treated
3862 as 'x'. The following induces an error, until -std is added to get
3863 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3864 array size at least. It's necessary to write '\x00'==0 to get something
3865 that's true only with -std. */
3866 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3868 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3869 inside strings and character constants. */
3871 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3873 int test (int i, double x);
3874 struct s1 {int (*f) (int a);};
3875 struct s2 {int (*f) (double a);};
3876 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3882 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3887 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3888 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3890 CC="$ac_save_CC $ac_arg"
3891 if ac_fn_c_try_compile "$LINENO"; then :
3892 ac_cv_prog_cc_c89=$ac_arg
3894 rm -f core conftest.err conftest.$ac_objext
3895 test "x$ac_cv_prog_cc_c89" != "xno" && break
3897 rm -f conftest.$ac_ext
3902 case "x$ac_cv_prog_cc_c89" in
3904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3905 $as_echo "none needed" >&6; } ;;
3907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3908 $as_echo "unsupported" >&6; } ;;
3910 CC="$CC $ac_cv_prog_cc_c89"
3911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3912 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3914 if test "x$ac_cv_prog_cc_c89" != xno; then :
3919 ac_cpp='$CPP $CPPFLAGS'
3920 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3921 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3922 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3924 depcc="$CC" am_compiler_list=
3926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3927 $as_echo_n "checking dependency style of $depcc... " >&6; }
3928 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3929 $as_echo_n "(cached) " >&6
3931 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3932 # We make a subdir and do the tests there. Otherwise we can end up
3933 # making bogus files that we don't know about and never remove. For
3934 # instance it was reported that on HP-UX the gcc test will end up
3935 # making a dummy file named `D' -- because `-MD' means `put the output
3938 # Copy depcomp to subdir because otherwise we won't find it if we're
3939 # using a relative directory.
3940 cp "$am_depcomp" conftest.dir
3942 # We will build objects and dependencies in a subdirectory because
3943 # it helps to detect inapplicable dependency modes. For instance
3944 # both Tru64's cc and ICC support -MD to output dependencies as a
3945 # side effect of compilation, but ICC will put the dependencies in
3946 # the current directory while Tru64 will put them in the object
3950 am_cv_CC_dependencies_compiler_type=none
3951 if test "$am_compiler_list" = ""; then
3952 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3954 for depmode in $am_compiler_list; do
3955 # Setup a source with many dependencies, because some compilers
3956 # like to wrap large dependency lists on column 80 (with \), and
3957 # we should not choose a depcomp mode which is confused by this.
3959 # We need to recreate these files for each test, as the compiler may
3960 # overwrite some of them when testing with obscure command lines.
3961 # This happens at least with the AIX C compiler.
3963 for i in 1 2 3 4 5 6; do
3964 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3965 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3966 # Solaris 8's {/usr,}/bin/sh.
3967 touch sub/conftst$i.h
3969 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3973 # after this tag, mechanisms are not by side-effect, so they'll
3974 # only be used when explicitly requested
3975 if test "x$enable_dependency_tracking" = xyes; then
3983 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3984 # mode. It turns out that the SunPro C++ compiler does not properly
3985 # handle `-M -o', and we need to detect this.
3986 if depmode=$depmode \
3987 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3988 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3989 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3990 >/dev/null 2>conftest.err &&
3991 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3992 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3993 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3994 # icc doesn't choke on unknown options, it will just issue warnings
3995 # or remarks (even with -Werror). So we grep stderr for any message
3996 # that says an option was ignored or not supported.
3997 # When given -MP, icc 7.0 and 7.1 complain thusly:
3998 # icc: Command line warning: ignoring option '-M'; no argument required
3999 # The diagnosis changed in icc 8.0:
4000 # icc: Command line remark: option '-MP' not supported
4001 if (grep 'ignoring option' conftest.err ||
4002 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4003 am_cv_CC_dependencies_compiler_type=$depmode
4012 am_cv_CC_dependencies_compiler_type=none
4016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4017 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4018 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4023 test "x$enable_dependency_tracking" != xno \
4024 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4026 am__fastdepCC_FALSE='#'
4028 am__fastdepCC_TRUE='#'
4029 am__fastdepCC_FALSE=
4034 # Check whether --enable-largefile was given.
4035 if test "${enable_largefile+set}" = set; then :
4036 enableval=$enable_largefile;
4039 if test "$enable_largefile" != no; then
4041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4042 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4043 if ${ac_cv_sys_largefile_CC+:} false; then :
4044 $as_echo_n "(cached) " >&6
4046 ac_cv_sys_largefile_CC=no
4047 if test "$GCC" != yes; then
4050 # IRIX 6.2 and later do not support large files by default,
4051 # so use the C compiler's -n32 option if that helps.
4052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4053 /* end confdefs.h. */
4054 #include <sys/types.h>
4055 /* Check that off_t can represent 2**63 - 1 correctly.
4056 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4057 since some C++ compilers masquerading as C compilers
4058 incorrectly reject 9223372036854775807. */
4059 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4060 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4061 && LARGE_OFF_T % 2147483647 == 1)
4071 if ac_fn_c_try_compile "$LINENO"; then :
4074 rm -f core conftest.err conftest.$ac_objext
4076 if ac_fn_c_try_compile "$LINENO"; then :
4077 ac_cv_sys_largefile_CC=' -n32'; break
4079 rm -f core conftest.err conftest.$ac_objext
4083 rm -f conftest.$ac_ext
4086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4087 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4088 if test "$ac_cv_sys_largefile_CC" != no; then
4089 CC=$CC$ac_cv_sys_largefile_CC
4092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4093 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4094 if ${ac_cv_sys_file_offset_bits+:} false; then :
4095 $as_echo_n "(cached) " >&6
4098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4099 /* end confdefs.h. */
4100 #include <sys/types.h>
4101 /* Check that off_t can represent 2**63 - 1 correctly.
4102 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4103 since some C++ compilers masquerading as C compilers
4104 incorrectly reject 9223372036854775807. */
4105 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4106 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4107 && LARGE_OFF_T % 2147483647 == 1)
4117 if ac_fn_c_try_compile "$LINENO"; then :
4118 ac_cv_sys_file_offset_bits=no; break
4120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4122 /* end confdefs.h. */
4123 #define _FILE_OFFSET_BITS 64
4124 #include <sys/types.h>
4125 /* Check that off_t can represent 2**63 - 1 correctly.
4126 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4127 since some C++ compilers masquerading as C compilers
4128 incorrectly reject 9223372036854775807. */
4129 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4130 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4131 && LARGE_OFF_T % 2147483647 == 1)
4141 if ac_fn_c_try_compile "$LINENO"; then :
4142 ac_cv_sys_file_offset_bits=64; break
4144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4145 ac_cv_sys_file_offset_bits=unknown
4149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4150 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4151 case $ac_cv_sys_file_offset_bits in #(
4154 cat >>confdefs.h <<_ACEOF
4155 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4160 if test $ac_cv_sys_file_offset_bits = unknown; then
4161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4162 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4163 if ${ac_cv_sys_large_files+:} false; then :
4164 $as_echo_n "(cached) " >&6
4167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4168 /* end confdefs.h. */
4169 #include <sys/types.h>
4170 /* Check that off_t can represent 2**63 - 1 correctly.
4171 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4172 since some C++ compilers masquerading as C compilers
4173 incorrectly reject 9223372036854775807. */
4174 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4175 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4176 && LARGE_OFF_T % 2147483647 == 1)
4186 if ac_fn_c_try_compile "$LINENO"; then :
4187 ac_cv_sys_large_files=no; break
4189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4191 /* end confdefs.h. */
4192 #define _LARGE_FILES 1
4193 #include <sys/types.h>
4194 /* Check that off_t can represent 2**63 - 1 correctly.
4195 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4196 since some C++ compilers masquerading as C compilers
4197 incorrectly reject 9223372036854775807. */
4198 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4199 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4200 && LARGE_OFF_T % 2147483647 == 1)
4210 if ac_fn_c_try_compile "$LINENO"; then :
4211 ac_cv_sys_large_files=1; break
4213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4214 ac_cv_sys_large_files=unknown
4218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4219 $as_echo "$ac_cv_sys_large_files" >&6; }
4220 case $ac_cv_sys_large_files in #(
4223 cat >>confdefs.h <<_ACEOF
4224 #define _LARGE_FILES $ac_cv_sys_large_files
4235 # Check for required programs.
4237 ac_cpp='$CPP $CPPFLAGS'
4238 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4239 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4240 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4241 if test -n "$ac_tool_prefix"; then
4242 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4243 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4245 $as_echo_n "checking for $ac_word... " >&6; }
4246 if ${ac_cv_prog_CC+:} false; then :
4247 $as_echo_n "(cached) " >&6
4249 if test -n "$CC"; then
4250 ac_cv_prog_CC="$CC" # Let the user override the test.
4252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4256 test -z "$as_dir" && as_dir=.
4257 for ac_exec_ext in '' $ac_executable_extensions; do
4258 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4259 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4260 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4270 if test -n "$CC"; then
4271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4272 $as_echo "$CC" >&6; }
4274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4275 $as_echo "no" >&6; }
4280 if test -z "$ac_cv_prog_CC"; then
4282 # Extract the first word of "gcc", so it can be a program name with args.
4283 set dummy gcc; ac_word=$2
4284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4285 $as_echo_n "checking for $ac_word... " >&6; }
4286 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4287 $as_echo_n "(cached) " >&6
4289 if test -n "$ac_ct_CC"; then
4290 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4296 test -z "$as_dir" && as_dir=.
4297 for ac_exec_ext in '' $ac_executable_extensions; do
4298 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4299 ac_cv_prog_ac_ct_CC="gcc"
4300 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4309 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4310 if test -n "$ac_ct_CC"; then
4311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4312 $as_echo "$ac_ct_CC" >&6; }
4314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4315 $as_echo "no" >&6; }
4318 if test "x$ac_ct_CC" = x; then
4321 case $cross_compiling:$ac_tool_warned in
4323 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4324 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4325 ac_tool_warned=yes ;;
4333 if test -z "$CC"; then
4334 if test -n "$ac_tool_prefix"; then
4335 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4336 set dummy ${ac_tool_prefix}cc; ac_word=$2
4337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4338 $as_echo_n "checking for $ac_word... " >&6; }
4339 if ${ac_cv_prog_CC+:} false; then :
4340 $as_echo_n "(cached) " >&6
4342 if test -n "$CC"; then
4343 ac_cv_prog_CC="$CC" # Let the user override the test.
4345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4349 test -z "$as_dir" && as_dir=.
4350 for ac_exec_ext in '' $ac_executable_extensions; do
4351 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4352 ac_cv_prog_CC="${ac_tool_prefix}cc"
4353 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4363 if test -n "$CC"; then
4364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4365 $as_echo "$CC" >&6; }
4367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4368 $as_echo "no" >&6; }
4374 if test -z "$CC"; then
4375 # Extract the first word of "cc", so it can be a program name with args.
4376 set dummy cc; ac_word=$2
4377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4378 $as_echo_n "checking for $ac_word... " >&6; }
4379 if ${ac_cv_prog_CC+:} false; then :
4380 $as_echo_n "(cached) " >&6
4382 if test -n "$CC"; then
4383 ac_cv_prog_CC="$CC" # Let the user override the test.
4386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4390 test -z "$as_dir" && as_dir=.
4391 for ac_exec_ext in '' $ac_executable_extensions; do
4392 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4393 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4394 ac_prog_rejected=yes
4398 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4405 if test $ac_prog_rejected = yes; then
4406 # We found a bogon in the path, so make sure we never use it.
4407 set dummy $ac_cv_prog_CC
4409 if test $# != 0; then
4410 # We chose a different compiler from the bogus one.
4411 # However, it has the same basename, so the bogon will be chosen
4412 # first if we set CC to just the basename; use the full file name.
4414 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4420 if test -n "$CC"; then
4421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4422 $as_echo "$CC" >&6; }
4424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4425 $as_echo "no" >&6; }
4430 if test -z "$CC"; then
4431 if test -n "$ac_tool_prefix"; then
4432 for ac_prog in cl.exe
4434 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4435 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4437 $as_echo_n "checking for $ac_word... " >&6; }
4438 if ${ac_cv_prog_CC+:} false; then :
4439 $as_echo_n "(cached) " >&6
4441 if test -n "$CC"; then
4442 ac_cv_prog_CC="$CC" # Let the user override the test.
4444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4448 test -z "$as_dir" && as_dir=.
4449 for ac_exec_ext in '' $ac_executable_extensions; do
4450 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4451 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4452 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4462 if test -n "$CC"; then
4463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4464 $as_echo "$CC" >&6; }
4466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4467 $as_echo "no" >&6; }
4471 test -n "$CC" && break
4474 if test -z "$CC"; then
4476 for ac_prog in cl.exe
4478 # Extract the first word of "$ac_prog", so it can be a program name with args.
4479 set dummy $ac_prog; ac_word=$2
4480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4481 $as_echo_n "checking for $ac_word... " >&6; }
4482 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4483 $as_echo_n "(cached) " >&6
4485 if test -n "$ac_ct_CC"; then
4486 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4492 test -z "$as_dir" && as_dir=.
4493 for ac_exec_ext in '' $ac_executable_extensions; do
4494 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4495 ac_cv_prog_ac_ct_CC="$ac_prog"
4496 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4505 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4506 if test -n "$ac_ct_CC"; then
4507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4508 $as_echo "$ac_ct_CC" >&6; }
4510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4511 $as_echo "no" >&6; }
4515 test -n "$ac_ct_CC" && break
4518 if test "x$ac_ct_CC" = x; then
4521 case $cross_compiling:$ac_tool_warned in
4523 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4524 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4525 ac_tool_warned=yes ;;
4534 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4535 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4536 as_fn_error $? "no acceptable C compiler found in \$PATH
4537 See \`config.log' for more details" "$LINENO" 5; }
4539 # Provide some information about the compiler.
4540 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4543 for ac_option in --version -v -V -qversion; do
4544 { { ac_try="$ac_compiler $ac_option >&5"
4546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4547 *) ac_try_echo=$ac_try;;
4549 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4550 $as_echo "$ac_try_echo"; } >&5
4551 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4553 if test -s conftest.err; then
4555 ... rest of stderr output deleted ...
4556 10q' conftest.err >conftest.er1
4557 cat conftest.er1 >&5
4559 rm -f conftest.er1 conftest.err
4560 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4561 test $ac_status = 0; }
4564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4565 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4566 if ${ac_cv_c_compiler_gnu+:} false; then :
4567 $as_echo_n "(cached) " >&6
4569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4570 /* end confdefs.h. */
4583 if ac_fn_c_try_compile "$LINENO"; then :
4588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4589 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4593 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4594 if test $ac_compiler_gnu = yes; then
4599 ac_test_CFLAGS=${CFLAGS+set}
4600 ac_save_CFLAGS=$CFLAGS
4601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4602 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4603 if ${ac_cv_prog_cc_g+:} false; then :
4604 $as_echo_n "(cached) " >&6
4606 ac_save_c_werror_flag=$ac_c_werror_flag
4607 ac_c_werror_flag=yes
4610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4611 /* end confdefs.h. */
4621 if ac_fn_c_try_compile "$LINENO"; then :
4625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4626 /* end confdefs.h. */
4636 if ac_fn_c_try_compile "$LINENO"; then :
4639 ac_c_werror_flag=$ac_save_c_werror_flag
4641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4642 /* end confdefs.h. */
4652 if ac_fn_c_try_compile "$LINENO"; then :
4655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4660 ac_c_werror_flag=$ac_save_c_werror_flag
4662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4663 $as_echo "$ac_cv_prog_cc_g" >&6; }
4664 if test "$ac_test_CFLAGS" = set; then
4665 CFLAGS=$ac_save_CFLAGS
4666 elif test $ac_cv_prog_cc_g = yes; then
4667 if test "$GCC" = yes; then
4673 if test "$GCC" = yes; then
4679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4680 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4681 if ${ac_cv_prog_cc_c89+:} false; then :
4682 $as_echo_n "(cached) " >&6
4684 ac_cv_prog_cc_c89=no
4686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4687 /* end confdefs.h. */
4691 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4692 struct buf { int x; };
4693 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4694 static char *e (p, i)
4700 static char *f (char * (*g) (char **, int), char **p, ...)
4705 s = g (p, va_arg (v,int));
4710 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4711 function prototypes and stuff, but not '\xHH' hex character constants.
4712 These don't provoke an error unfortunately, instead are silently treated
4713 as 'x'. The following induces an error, until -std is added to get
4714 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4715 array size at least. It's necessary to write '\x00'==0 to get something
4716 that's true only with -std. */
4717 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4719 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4720 inside strings and character constants. */
4722 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4724 int test (int i, double x);
4725 struct s1 {int (*f) (int a);};
4726 struct s2 {int (*f) (double a);};
4727 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4733 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4738 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4739 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4741 CC="$ac_save_CC $ac_arg"
4742 if ac_fn_c_try_compile "$LINENO"; then :
4743 ac_cv_prog_cc_c89=$ac_arg
4745 rm -f core conftest.err conftest.$ac_objext
4746 test "x$ac_cv_prog_cc_c89" != "xno" && break
4748 rm -f conftest.$ac_ext
4753 case "x$ac_cv_prog_cc_c89" in
4755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4756 $as_echo "none needed" >&6; } ;;
4758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4759 $as_echo "unsupported" >&6; } ;;
4761 CC="$CC $ac_cv_prog_cc_c89"
4762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4763 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4765 if test "x$ac_cv_prog_cc_c89" != xno; then :
4770 ac_cpp='$CPP $CPPFLAGS'
4771 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4772 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4773 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4775 depcc="$CC" am_compiler_list=
4777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4778 $as_echo_n "checking dependency style of $depcc... " >&6; }
4779 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4780 $as_echo_n "(cached) " >&6
4782 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4783 # We make a subdir and do the tests there. Otherwise we can end up
4784 # making bogus files that we don't know about and never remove. For
4785 # instance it was reported that on HP-UX the gcc test will end up
4786 # making a dummy file named `D' -- because `-MD' means `put the output
4789 # Copy depcomp to subdir because otherwise we won't find it if we're
4790 # using a relative directory.
4791 cp "$am_depcomp" conftest.dir
4793 # We will build objects and dependencies in a subdirectory because
4794 # it helps to detect inapplicable dependency modes. For instance
4795 # both Tru64's cc and ICC support -MD to output dependencies as a
4796 # side effect of compilation, but ICC will put the dependencies in
4797 # the current directory while Tru64 will put them in the object
4801 am_cv_CC_dependencies_compiler_type=none
4802 if test "$am_compiler_list" = ""; then
4803 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4805 for depmode in $am_compiler_list; do
4806 # Setup a source with many dependencies, because some compilers
4807 # like to wrap large dependency lists on column 80 (with \), and
4808 # we should not choose a depcomp mode which is confused by this.
4810 # We need to recreate these files for each test, as the compiler may
4811 # overwrite some of them when testing with obscure command lines.
4812 # This happens at least with the AIX C compiler.
4814 for i in 1 2 3 4 5 6; do
4815 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4816 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4817 # Solaris 8's {/usr,}/bin/sh.
4818 touch sub/conftst$i.h
4820 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4824 # after this tag, mechanisms are not by side-effect, so they'll
4825 # only be used when explicitly requested
4826 if test "x$enable_dependency_tracking" = xyes; then
4834 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4835 # mode. It turns out that the SunPro C++ compiler does not properly
4836 # handle `-M -o', and we need to detect this.
4837 if depmode=$depmode \
4838 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4839 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4840 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4841 >/dev/null 2>conftest.err &&
4842 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4843 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4844 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4845 # icc doesn't choke on unknown options, it will just issue warnings
4846 # or remarks (even with -Werror). So we grep stderr for any message
4847 # that says an option was ignored or not supported.
4848 # When given -MP, icc 7.0 and 7.1 complain thusly:
4849 # icc: Command line warning: ignoring option '-M'; no argument required
4850 # The diagnosis changed in icc 8.0:
4851 # icc: Command line remark: option '-MP' not supported
4852 if (grep 'ignoring option' conftest.err ||
4853 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4854 am_cv_CC_dependencies_compiler_type=$depmode
4863 am_cv_CC_dependencies_compiler_type=none
4867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4868 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4869 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4874 test "x$enable_dependency_tracking" != xno \
4875 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4877 am__fastdepCC_FALSE='#'
4879 am__fastdepCC_TRUE='#'
4880 am__fastdepCC_FALSE=
4884 if test -n "$ac_tool_prefix"; then
4885 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4886 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4888 $as_echo_n "checking for $ac_word... " >&6; }
4889 if ${ac_cv_prog_RANLIB+:} false; then :
4890 $as_echo_n "(cached) " >&6
4892 if test -n "$RANLIB"; then
4893 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4899 test -z "$as_dir" && as_dir=.
4900 for ac_exec_ext in '' $ac_executable_extensions; do
4901 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4902 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4903 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4912 RANLIB=$ac_cv_prog_RANLIB
4913 if test -n "$RANLIB"; then
4914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4915 $as_echo "$RANLIB" >&6; }
4917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4918 $as_echo "no" >&6; }
4923 if test -z "$ac_cv_prog_RANLIB"; then
4924 ac_ct_RANLIB=$RANLIB
4925 # Extract the first word of "ranlib", so it can be a program name with args.
4926 set dummy ranlib; ac_word=$2
4927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4928 $as_echo_n "checking for $ac_word... " >&6; }
4929 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4930 $as_echo_n "(cached) " >&6
4932 if test -n "$ac_ct_RANLIB"; then
4933 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4939 test -z "$as_dir" && as_dir=.
4940 for ac_exec_ext in '' $ac_executable_extensions; do
4941 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4942 ac_cv_prog_ac_ct_RANLIB="ranlib"
4943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4952 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4953 if test -n "$ac_ct_RANLIB"; then
4954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4955 $as_echo "$ac_ct_RANLIB" >&6; }
4957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4958 $as_echo "no" >&6; }
4961 if test "x$ac_ct_RANLIB" = x; then
4964 case $cross_compiling:$ac_tool_warned in
4966 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4967 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4968 ac_tool_warned=yes ;;
4970 RANLIB=$ac_ct_RANLIB
4973 RANLIB="$ac_cv_prog_RANLIB"
4976 # Check whether --enable-shared was given.
4977 if test "${enable_shared+set}" = set; then :
4978 enableval=$enable_shared; p=${PACKAGE-default}
4980 yes) enable_shared=yes ;;
4981 no) enable_shared=no ;;
4984 # Look at the argument we got. We use all the common list separators.
4985 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4986 for pkg in $enableval; do
4988 if test "X$pkg" = "X$p"; then
5000 # Check whether --enable-static was given.
5001 if test "${enable_static+set}" = set; then :
5002 enableval=$enable_static; p=${PACKAGE-default}
5004 yes) enable_static=yes ;;
5005 no) enable_static=no ;;
5008 # Look at the argument we got. We use all the common list separators.
5009 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5010 for pkg in $enableval; do
5012 if test "X$pkg" = "X$p"; then
5024 # Check whether --enable-fast-install was given.
5025 if test "${enable_fast_install+set}" = set; then :
5026 enableval=$enable_fast_install; p=${PACKAGE-default}
5028 yes) enable_fast_install=yes ;;
5029 no) enable_fast_install=no ;;
5031 enable_fast_install=no
5032 # Look at the argument we got. We use all the common list separators.
5033 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5034 for pkg in $enableval; do
5036 if test "X$pkg" = "X$p"; then
5037 enable_fast_install=yes
5044 enable_fast_install=yes
5048 # Make sure we can run config.sub.
5049 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5050 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5053 $as_echo_n "checking build system type... " >&6; }
5054 if ${ac_cv_build+:} false; then :
5055 $as_echo_n "(cached) " >&6
5057 ac_build_alias=$build_alias
5058 test "x$ac_build_alias" = x &&
5059 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5060 test "x$ac_build_alias" = x &&
5061 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5062 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5063 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5067 $as_echo "$ac_cv_build" >&6; }
5068 case $ac_cv_build in
5070 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5073 ac_save_IFS=$IFS; IFS='-'
5079 # Remember, the first character of IFS is used to create $*,
5080 # except with old shells:
5083 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5087 $as_echo_n "checking host system type... " >&6; }
5088 if ${ac_cv_host+:} false; then :
5089 $as_echo_n "(cached) " >&6
5091 if test "x$host_alias" = x; then
5092 ac_cv_host=$ac_cv_build
5094 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5095 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5100 $as_echo "$ac_cv_host" >&6; }
5103 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5106 ac_save_IFS=$IFS; IFS='-'
5112 # Remember, the first character of IFS is used to create $*,
5113 # except with old shells:
5116 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5120 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5121 if ${lt_cv_path_SED+:} false; then :
5122 $as_echo_n "(cached) " >&6
5124 # Loop through the user's path and test for sed and gsed.
5125 # Then use that list of sed's as ones to test for truncation.
5126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5130 test -z "$as_dir" && as_dir=.
5131 for lt_ac_prog in sed gsed; do
5132 for ac_exec_ext in '' $ac_executable_extensions; do
5133 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5134 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5141 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5142 # along with /bin/sed that truncates output.
5143 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5144 test ! -f $lt_ac_sed && continue
5145 cat /dev/null > conftest.in
5147 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5148 # Check for GNU sed and select it if it is found.
5149 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5150 lt_cv_path_SED=$lt_ac_sed
5154 cat conftest.in conftest.in >conftest.tmp
5155 mv conftest.tmp conftest.in
5156 cp conftest.in conftest.nl
5158 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5159 cmp -s conftest.out conftest.nl || break
5160 # 10000 chars as input seems more than enough
5161 test $lt_ac_count -gt 10 && break
5162 lt_ac_count=`expr $lt_ac_count + 1`
5163 if test $lt_ac_count -gt $lt_ac_max; then
5164 lt_ac_max=$lt_ac_count
5165 lt_cv_path_SED=$lt_ac_sed
5173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
5174 $as_echo "$SED" >&6; }
5176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5177 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5178 if ${ac_cv_path_GREP+:} false; then :
5179 $as_echo_n "(cached) " >&6
5181 if test -z "$GREP"; then
5182 ac_path_GREP_found=false
5183 # Loop through the user's path and test for each of PROGNAME-LIST
5184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5185 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5188 test -z "$as_dir" && as_dir=.
5189 for ac_prog in grep ggrep; do
5190 for ac_exec_ext in '' $ac_executable_extensions; do
5191 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5192 as_fn_executable_p "$ac_path_GREP" || continue
5193 # Check for GNU ac_path_GREP and select it if it is found.
5194 # Check for GNU $ac_path_GREP
5195 case `"$ac_path_GREP" --version 2>&1` in
5197 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5200 $as_echo_n 0123456789 >"conftest.in"
5203 cat "conftest.in" "conftest.in" >"conftest.tmp"
5204 mv "conftest.tmp" "conftest.in"
5205 cp "conftest.in" "conftest.nl"
5206 $as_echo 'GREP' >> "conftest.nl"
5207 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5208 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5209 as_fn_arith $ac_count + 1 && ac_count=$as_val
5210 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5211 # Best one so far, save it but keep looking for a better one
5212 ac_cv_path_GREP="$ac_path_GREP"
5213 ac_path_GREP_max=$ac_count
5215 # 10*(2^10) chars as input seems more than enough
5216 test $ac_count -gt 10 && break
5218 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5221 $ac_path_GREP_found && break 3
5226 if test -z "$ac_cv_path_GREP"; then
5227 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5230 ac_cv_path_GREP=$GREP
5234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5235 $as_echo "$ac_cv_path_GREP" >&6; }
5236 GREP="$ac_cv_path_GREP"
5239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5240 $as_echo_n "checking for egrep... " >&6; }
5241 if ${ac_cv_path_EGREP+:} false; then :
5242 $as_echo_n "(cached) " >&6
5244 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5245 then ac_cv_path_EGREP="$GREP -E"
5247 if test -z "$EGREP"; then
5248 ac_path_EGREP_found=false
5249 # Loop through the user's path and test for each of PROGNAME-LIST
5250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5251 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5254 test -z "$as_dir" && as_dir=.
5255 for ac_prog in egrep; do
5256 for ac_exec_ext in '' $ac_executable_extensions; do
5257 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5258 as_fn_executable_p "$ac_path_EGREP" || continue
5259 # Check for GNU ac_path_EGREP and select it if it is found.
5260 # Check for GNU $ac_path_EGREP
5261 case `"$ac_path_EGREP" --version 2>&1` in
5263 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5266 $as_echo_n 0123456789 >"conftest.in"
5269 cat "conftest.in" "conftest.in" >"conftest.tmp"
5270 mv "conftest.tmp" "conftest.in"
5271 cp "conftest.in" "conftest.nl"
5272 $as_echo 'EGREP' >> "conftest.nl"
5273 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5274 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5275 as_fn_arith $ac_count + 1 && ac_count=$as_val
5276 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5277 # Best one so far, save it but keep looking for a better one
5278 ac_cv_path_EGREP="$ac_path_EGREP"
5279 ac_path_EGREP_max=$ac_count
5281 # 10*(2^10) chars as input seems more than enough
5282 test $ac_count -gt 10 && break
5284 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5287 $ac_path_EGREP_found && break 3
5292 if test -z "$ac_cv_path_EGREP"; then
5293 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5296 ac_cv_path_EGREP=$EGREP
5301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5302 $as_echo "$ac_cv_path_EGREP" >&6; }
5303 EGREP="$ac_cv_path_EGREP"
5307 # Check whether --with-gnu-ld was given.
5308 if test "${with_gnu_ld+set}" = set; then :
5309 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5315 if test "$GCC" = yes; then
5316 # Check if gcc -print-prog-name=ld gives a path.
5317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5318 $as_echo_n "checking for ld used by $CC... " >&6; }
5321 # gcc leaves a trailing carriage return which upsets mingw
5322 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5324 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5327 # Accept absolute paths.
5329 re_direlt='/[^/][^/]*/\.\./'
5330 # Canonicalize the pathname of ld
5331 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5332 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5333 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5335 test -z "$LD" && LD="$ac_prog"
5338 # If it fails, then pretend we aren't using GCC.
5342 # If it is relative, then search for the first ld in PATH.
5346 elif test "$with_gnu_ld" = yes; then
5347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5348 $as_echo_n "checking for GNU ld... " >&6; }
5350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5351 $as_echo_n "checking for non-GNU ld... " >&6; }
5353 if ${lt_cv_path_LD+:} false; then :
5354 $as_echo_n "(cached) " >&6
5356 if test -z "$LD"; then
5357 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5358 for ac_dir in $PATH; do
5360 test -z "$ac_dir" && ac_dir=.
5361 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5362 lt_cv_path_LD="$ac_dir/$ac_prog"
5363 # Check to see if the program is GNU ld. I'd rather use --version,
5364 # but apparently some variants of GNU ld only accept -v.
5365 # Break only if it was the GNU/non-GNU ld that we prefer.
5366 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5367 *GNU* | *'with BFD'*)
5368 test "$with_gnu_ld" != no && break
5371 test "$with_gnu_ld" != yes && break
5378 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5383 if test -n "$LD"; then
5384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5385 $as_echo "$LD" >&6; }
5387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5388 $as_echo "no" >&6; }
5390 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5392 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5393 if ${lt_cv_prog_gnu_ld+:} false; then :
5394 $as_echo_n "(cached) " >&6
5396 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5397 case `$LD -v 2>&1 </dev/null` in
5398 *GNU* | *'with BFD'*)
5399 lt_cv_prog_gnu_ld=yes
5402 lt_cv_prog_gnu_ld=no
5406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5407 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5408 with_gnu_ld=$lt_cv_prog_gnu_ld
5411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5412 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5413 if ${lt_cv_ld_reload_flag+:} false; then :
5414 $as_echo_n "(cached) " >&6
5416 lt_cv_ld_reload_flag='-r'
5418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5419 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5420 reload_flag=$lt_cv_ld_reload_flag
5421 case $reload_flag in
5423 *) reload_flag=" $reload_flag" ;;
5425 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5428 if test "$GCC" = yes; then
5429 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5431 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD-compatible nm" >&5
5437 $as_echo_n "checking for BSD-compatible nm... " >&6; }
5438 if ${lt_cv_path_NM+:} false; then :
5439 $as_echo_n "(cached) " >&6
5441 if test -n "$NM"; then
5442 # Let the user override the test.
5445 lt_nm_to_check="${ac_tool_prefix}nm"
5446 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5447 lt_nm_to_check="$lt_nm_to_check nm"
5449 for lt_tmp_nm in $lt_nm_to_check; do
5450 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5451 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5453 test -z "$ac_dir" && ac_dir=.
5454 tmp_nm="$ac_dir/$lt_tmp_nm"
5455 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5456 # Check to see if the nm accepts a BSD-compat flag.
5457 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5458 # nm: unknown option "B" ignored
5459 # Tru64's nm complains that /dev/null is an invalid object file
5460 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5461 */dev/null* | *'Invalid file or object type'*)
5462 lt_cv_path_NM="$tmp_nm -B"
5466 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5468 lt_cv_path_NM="$tmp_nm -p"
5472 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5473 continue # so that we can try to find one that supports BSD flags
5482 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5486 $as_echo "$lt_cv_path_NM" >&6; }
5489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5490 $as_echo_n "checking whether ln -s works... " >&6; }
5492 if test "$LN_S" = "ln -s"; then
5493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5494 $as_echo "yes" >&6; }
5496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5497 $as_echo "no, using $LN_S" >&6; }
5500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognise dependent libraries" >&5
5501 $as_echo_n "checking how to recognise dependent libraries... " >&6; }
5502 if ${lt_cv_deplibs_check_method+:} false; then :
5503 $as_echo_n "(cached) " >&6
5505 lt_cv_file_magic_cmd='$MAGIC_CMD'
5506 lt_cv_file_magic_test_file=
5507 lt_cv_deplibs_check_method='unknown'
5508 # Need to set the preceding variable on all platforms that support
5509 # interlibrary dependencies.
5510 # 'none' -- dependencies not supported.
5511 # `unknown' -- same as none, but documents that we really don't know.
5512 # 'pass_all' -- all dependencies passed with no checks.
5513 # 'test_compile' -- check by making test program.
5514 # 'file_magic [[regex]]' -- check by looking for files in library path
5515 # which responds to the $file_magic_cmd with a given extended regex.
5516 # If you have `file' or equivalent on your system and you're not sure
5517 # whether `pass_all' will *always* work, you probably want this one.
5521 lt_cv_deplibs_check_method=pass_all
5525 lt_cv_deplibs_check_method=pass_all
5529 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5530 lt_cv_file_magic_cmd='/usr/bin/file -L'
5531 lt_cv_file_magic_test_file=/shlib/libc.so
5535 # func_win32_libid is a shell function defined in ltmain.sh
5536 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5537 lt_cv_file_magic_cmd='func_win32_libid'
5541 # Base MSYS/MinGW do not provide the 'file' command needed by
5542 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5543 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5544 lt_cv_file_magic_cmd='$OBJDUMP -f'
5547 darwin* | rhapsody*)
5548 lt_cv_deplibs_check_method=pass_all
5551 freebsd* | kfreebsd*-gnu | dragonfly*)
5552 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5555 # Not sure whether the presence of OpenBSD here was a mistake.
5556 # Let's accept both of them until this is cleared up.
5557 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5558 lt_cv_file_magic_cmd=/usr/bin/file
5559 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5563 lt_cv_deplibs_check_method=pass_all
5568 lt_cv_deplibs_check_method=pass_all
5571 hpux10.20* | hpux11*)
5572 lt_cv_file_magic_cmd=/usr/bin/file
5575 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5576 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5579 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]'
5580 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5583 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5584 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5590 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5591 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5594 irix5* | irix6* | nonstopux*)
5596 *-32|*"-32 ") libmagic=32-bit;;
5597 *-n32|*"-n32 ") libmagic=N32;;
5598 *-64|*"-64 ") libmagic=64-bit;;
5599 *) libmagic=never-match;;
5601 lt_cv_deplibs_check_method=pass_all
5604 # This must be Linux ELF.
5606 lt_cv_deplibs_check_method=pass_all
5610 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5611 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5613 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5618 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5619 lt_cv_file_magic_cmd=/usr/bin/file
5620 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5624 lt_cv_deplibs_check_method=unknown
5628 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5629 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5631 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5635 osf3* | osf4* | osf5*)
5636 lt_cv_deplibs_check_method=pass_all
5640 lt_cv_deplibs_check_method=pass_all
5644 case $host_vendor in
5646 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]'
5647 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5650 lt_cv_deplibs_check_method=pass_all
5653 lt_cv_file_magic_cmd='/bin/file'
5654 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5657 lt_cv_file_magic_cmd='/bin/file'
5658 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5659 lt_cv_file_magic_test_file=/lib/libc.so
5662 lt_cv_deplibs_check_method=pass_all
5665 lt_cv_deplibs_check_method=pass_all
5670 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5671 lt_cv_deplibs_check_method=pass_all
5676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5677 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5678 file_magic_cmd=$lt_cv_file_magic_cmd
5679 deplibs_check_method=$lt_cv_deplibs_check_method
5680 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5685 # If no C compiler was specified, use CC.
5688 # If no C compiler flags were specified, use CFLAGS.
5689 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5691 # Allow CC to be a program name with arguments.
5694 # Check whether --enable-libtool-lock was given.
5695 if test "${enable_libtool_lock+set}" = set; then :
5696 enableval=$enable_libtool_lock;
5699 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5701 # Some flags need to be propagated to the compiler or linker for good
5705 # Find out which ABI we are using.
5706 echo 'int i;' > conftest.$ac_ext
5707 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5708 (eval $ac_compile) 2>&5
5710 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5711 test $ac_status = 0; }; then
5712 case `/usr/bin/file conftest.$ac_objext` in
5724 # Find out which ABI we are using.
5725 echo '#line 5725 "configure"' > conftest.$ac_ext
5726 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5727 (eval $ac_compile) 2>&5
5729 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5730 test $ac_status = 0; }; then
5731 if test "$lt_cv_prog_gnu_ld" = yes; then
5732 case `/usr/bin/file conftest.$ac_objext` in
5734 LD="${LD-ld} -melf32bsmip"
5737 LD="${LD-ld} -melf32bmipn32"
5740 LD="${LD-ld} -melf64bmip"
5744 case `/usr/bin/file conftest.$ac_objext` in
5760 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5761 # Find out which ABI we are using.
5762 echo 'int i;' > conftest.$ac_ext
5763 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5764 (eval $ac_compile) 2>&5
5766 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5767 test $ac_status = 0; }; then
5768 case `/usr/bin/file conftest.o` in
5772 LD="${LD-ld} -m elf_i386"
5774 ppc64-*linux*|powerpc64-*linux*)
5775 LD="${LD-ld} -m elf32ppclinux"
5778 LD="${LD-ld} -m elf_s390"
5781 LD="${LD-ld} -m elf32_sparc"
5788 LD="${LD-ld} -m elf_x86_64"
5790 ppc*-*linux*|powerpc*-*linux*)
5791 LD="${LD-ld} -m elf64ppc"
5794 LD="${LD-ld} -m elf64_s390"
5797 LD="${LD-ld} -m elf64_sparc"
5807 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5808 SAVE_CFLAGS="$CFLAGS"
5809 CFLAGS="$CFLAGS -belf"
5810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
5811 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5812 if ${lt_cv_cc_needs_belf+:} false; then :
5813 $as_echo_n "(cached) " >&6
5816 ac_cpp='$CPP $CPPFLAGS'
5817 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5818 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5819 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5822 /* end confdefs.h. */
5832 if ac_fn_c_try_link "$LINENO"; then :
5833 lt_cv_cc_needs_belf=yes
5835 lt_cv_cc_needs_belf=no
5837 rm -f core conftest.err conftest.$ac_objext \
5838 conftest$ac_exeext conftest.$ac_ext
5840 ac_cpp='$CPP $CPPFLAGS'
5841 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5842 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5843 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
5847 $as_echo "$lt_cv_cc_needs_belf" >&6; }
5848 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5849 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5850 CFLAGS="$SAVE_CFLAGS"
5854 # Find out which ABI we are using.
5855 echo 'int i;' > conftest.$ac_ext
5856 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5857 (eval $ac_compile) 2>&5
5859 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5860 test $ac_status = 0; }; then
5861 case `/usr/bin/file conftest.o` in
5863 case $lt_cv_prog_gnu_ld in
5864 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5865 *) LD="${LD-ld} -64" ;;
5876 need_locks="$enable_libtool_lock"
5880 ac_cpp='$CPP $CPPFLAGS'
5881 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5882 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5883 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5885 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5886 # On Suns, sometimes $CPP names a directory.
5887 if test -n "$CPP" && test -d "$CPP"; then
5890 if test -z "$CPP"; then
5891 if ${ac_cv_prog_CPP+:} false; then :
5892 $as_echo_n "(cached) " >&6
5894 # Double quotes because CPP needs to be expanded
5895 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5898 for ac_c_preproc_warn_flag in '' yes
5900 # Use a header file that comes with gcc, so configuring glibc
5901 # with a fresh cross-compiler works.
5902 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5903 # <limits.h> exists even on freestanding compilers.
5904 # On the NeXT, cc -E runs the code through the compiler's parser,
5905 # not just through cpp. "Syntax error" is here to catch this case.
5906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5907 /* end confdefs.h. */
5909 # include <limits.h>
5911 # include <assert.h>
5915 if ac_fn_c_try_cpp "$LINENO"; then :
5918 # Broken: fails on valid input.
5921 rm -f conftest.err conftest.i conftest.$ac_ext
5923 # OK, works on sane cases. Now check whether nonexistent headers
5924 # can be detected and how.
5925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5926 /* end confdefs.h. */
5927 #include <ac_nonexistent.h>
5929 if ac_fn_c_try_cpp "$LINENO"; then :
5930 # Broken: success on invalid input.
5933 # Passes both tests.
5937 rm -f conftest.err conftest.i conftest.$ac_ext
5940 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5941 rm -f conftest.i conftest.err conftest.$ac_ext
5942 if $ac_preproc_ok; then :
5954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5955 $as_echo "$CPP" >&6; }
5957 for ac_c_preproc_warn_flag in '' yes
5959 # Use a header file that comes with gcc, so configuring glibc
5960 # with a fresh cross-compiler works.
5961 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5962 # <limits.h> exists even on freestanding compilers.
5963 # On the NeXT, cc -E runs the code through the compiler's parser,
5964 # not just through cpp. "Syntax error" is here to catch this case.
5965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5966 /* end confdefs.h. */
5968 # include <limits.h>
5970 # include <assert.h>
5974 if ac_fn_c_try_cpp "$LINENO"; then :
5977 # Broken: fails on valid input.
5980 rm -f conftest.err conftest.i conftest.$ac_ext
5982 # OK, works on sane cases. Now check whether nonexistent headers
5983 # can be detected and how.
5984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5985 /* end confdefs.h. */
5986 #include <ac_nonexistent.h>
5988 if ac_fn_c_try_cpp "$LINENO"; then :
5989 # Broken: success on invalid input.
5992 # Passes both tests.
5996 rm -f conftest.err conftest.i conftest.$ac_ext
5999 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6000 rm -f conftest.i conftest.err conftest.$ac_ext
6001 if $ac_preproc_ok; then :
6004 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6005 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6006 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6007 See \`config.log' for more details" "$LINENO" 5; }
6011 ac_cpp='$CPP $CPPFLAGS'
6012 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6013 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6014 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6018 $as_echo_n "checking for ANSI C header files... " >&6; }
6019 if ${ac_cv_header_stdc+:} false; then :
6020 $as_echo_n "(cached) " >&6
6022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6023 /* end confdefs.h. */
6037 if ac_fn_c_try_compile "$LINENO"; then :
6038 ac_cv_header_stdc=yes
6040 ac_cv_header_stdc=no
6042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6044 if test $ac_cv_header_stdc = yes; then
6045 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6047 /* end confdefs.h. */
6051 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6052 $EGREP "memchr" >/dev/null 2>&1; then :
6055 ac_cv_header_stdc=no
6061 if test $ac_cv_header_stdc = yes; then
6062 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6064 /* end confdefs.h. */
6068 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6069 $EGREP "free" >/dev/null 2>&1; then :
6072 ac_cv_header_stdc=no
6078 if test $ac_cv_header_stdc = yes; then
6079 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6080 if test "$cross_compiling" = yes; then :
6083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6084 /* end confdefs.h. */
6087 #if ((' ' & 0x0FF) == 0x020)
6088 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6089 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6091 # define ISLOWER(c) \
6092 (('a' <= (c) && (c) <= 'i') \
6093 || ('j' <= (c) && (c) <= 'r') \
6094 || ('s' <= (c) && (c) <= 'z'))
6095 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6098 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6103 for (i = 0; i < 256; i++)
6104 if (XOR (islower (i), ISLOWER (i))
6105 || toupper (i) != TOUPPER (i))
6110 if ac_fn_c_try_run "$LINENO"; then :
6113 ac_cv_header_stdc=no
6115 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6116 conftest.$ac_objext conftest.beam conftest.$ac_ext
6121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6122 $as_echo "$ac_cv_header_stdc" >&6; }
6123 if test $ac_cv_header_stdc = yes; then
6125 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6129 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6130 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6131 inttypes.h stdint.h unistd.h
6133 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6134 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6136 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6137 cat >>confdefs.h <<_ACEOF
6138 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6146 for ac_header in dlfcn.h
6148 ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
6149 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
6150 cat >>confdefs.h <<_ACEOF
6151 #define HAVE_DLFCN_H 1
6159 ac_cpp='$CXXCPP $CPPFLAGS'
6160 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6161 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6162 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6163 if test -z "$CXX"; then
6164 if test -n "$CCC"; then
6167 if test -n "$ac_tool_prefix"; then
6168 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6170 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6171 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6173 $as_echo_n "checking for $ac_word... " >&6; }
6174 if ${ac_cv_prog_CXX+:} false; then :
6175 $as_echo_n "(cached) " >&6
6177 if test -n "$CXX"; then
6178 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6184 test -z "$as_dir" && as_dir=.
6185 for ac_exec_ext in '' $ac_executable_extensions; do
6186 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6187 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6198 if test -n "$CXX"; then
6199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
6200 $as_echo "$CXX" >&6; }
6202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6203 $as_echo "no" >&6; }
6207 test -n "$CXX" && break
6210 if test -z "$CXX"; then
6212 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6214 # Extract the first word of "$ac_prog", so it can be a program name with args.
6215 set dummy $ac_prog; ac_word=$2
6216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6217 $as_echo_n "checking for $ac_word... " >&6; }
6218 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
6219 $as_echo_n "(cached) " >&6
6221 if test -n "$ac_ct_CXX"; then
6222 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6228 test -z "$as_dir" && as_dir=.
6229 for ac_exec_ext in '' $ac_executable_extensions; do
6230 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6231 ac_cv_prog_ac_ct_CXX="$ac_prog"
6232 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6241 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6242 if test -n "$ac_ct_CXX"; then
6243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
6244 $as_echo "$ac_ct_CXX" >&6; }
6246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6247 $as_echo "no" >&6; }
6251 test -n "$ac_ct_CXX" && break
6254 if test "x$ac_ct_CXX" = x; then
6257 case $cross_compiling:$ac_tool_warned in
6259 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6260 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6261 ac_tool_warned=yes ;;
6269 # Provide some information about the compiler.
6270 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
6273 for ac_option in --version -v -V -qversion; do
6274 { { ac_try="$ac_compiler $ac_option >&5"
6276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6277 *) ac_try_echo=$ac_try;;
6279 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6280 $as_echo "$ac_try_echo"; } >&5
6281 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6283 if test -s conftest.err; then
6285 ... rest of stderr output deleted ...
6286 10q' conftest.err >conftest.er1
6287 cat conftest.er1 >&5
6289 rm -f conftest.er1 conftest.err
6290 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6291 test $ac_status = 0; }
6294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
6295 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
6296 if ${ac_cv_cxx_compiler_gnu+:} false; then :
6297 $as_echo_n "(cached) " >&6
6299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6300 /* end confdefs.h. */
6313 if ac_fn_cxx_try_compile "$LINENO"; then :
6318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6319 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
6323 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
6324 if test $ac_compiler_gnu = yes; then
6329 ac_test_CXXFLAGS=${CXXFLAGS+set}
6330 ac_save_CXXFLAGS=$CXXFLAGS
6331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
6332 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
6333 if ${ac_cv_prog_cxx_g+:} false; then :
6334 $as_echo_n "(cached) " >&6
6336 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6337 ac_cxx_werror_flag=yes
6340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6341 /* end confdefs.h. */
6351 if ac_fn_cxx_try_compile "$LINENO"; then :
6352 ac_cv_prog_cxx_g=yes
6355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6356 /* end confdefs.h. */
6366 if ac_fn_cxx_try_compile "$LINENO"; then :
6369 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6372 /* end confdefs.h. */
6382 if ac_fn_cxx_try_compile "$LINENO"; then :
6383 ac_cv_prog_cxx_g=yes
6385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6390 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
6393 $as_echo "$ac_cv_prog_cxx_g" >&6; }
6394 if test "$ac_test_CXXFLAGS" = set; then
6395 CXXFLAGS=$ac_save_CXXFLAGS
6396 elif test $ac_cv_prog_cxx_g = yes; then
6397 if test "$GXX" = yes; then
6403 if test "$GXX" = yes; then
6410 ac_cpp='$CXXCPP $CPPFLAGS'
6411 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6412 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6413 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6415 depcc="$CXX" am_compiler_list=
6417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6418 $as_echo_n "checking dependency style of $depcc... " >&6; }
6419 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
6420 $as_echo_n "(cached) " >&6
6422 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6423 # We make a subdir and do the tests there. Otherwise we can end up
6424 # making bogus files that we don't know about and never remove. For
6425 # instance it was reported that on HP-UX the gcc test will end up
6426 # making a dummy file named `D' -- because `-MD' means `put the output
6429 # Copy depcomp to subdir because otherwise we won't find it if we're
6430 # using a relative directory.
6431 cp "$am_depcomp" conftest.dir
6433 # We will build objects and dependencies in a subdirectory because
6434 # it helps to detect inapplicable dependency modes. For instance
6435 # both Tru64's cc and ICC support -MD to output dependencies as a
6436 # side effect of compilation, but ICC will put the dependencies in
6437 # the current directory while Tru64 will put them in the object
6441 am_cv_CXX_dependencies_compiler_type=none
6442 if test "$am_compiler_list" = ""; then
6443 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6445 for depmode in $am_compiler_list; do
6446 # Setup a source with many dependencies, because some compilers
6447 # like to wrap large dependency lists on column 80 (with \), and
6448 # we should not choose a depcomp mode which is confused by this.
6450 # We need to recreate these files for each test, as the compiler may
6451 # overwrite some of them when testing with obscure command lines.
6452 # This happens at least with the AIX C compiler.
6454 for i in 1 2 3 4 5 6; do
6455 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6456 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6457 # Solaris 8's {/usr,}/bin/sh.
6458 touch sub/conftst$i.h
6460 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6464 # after this tag, mechanisms are not by side-effect, so they'll
6465 # only be used when explicitly requested
6466 if test "x$enable_dependency_tracking" = xyes; then
6474 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6475 # mode. It turns out that the SunPro C++ compiler does not properly
6476 # handle `-M -o', and we need to detect this.
6477 if depmode=$depmode \
6478 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6479 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6480 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6481 >/dev/null 2>conftest.err &&
6482 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6483 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6484 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6485 # icc doesn't choke on unknown options, it will just issue warnings
6486 # or remarks (even with -Werror). So we grep stderr for any message
6487 # that says an option was ignored or not supported.
6488 # When given -MP, icc 7.0 and 7.1 complain thusly:
6489 # icc: Command line warning: ignoring option '-M'; no argument required
6490 # The diagnosis changed in icc 8.0:
6491 # icc: Command line remark: option '-MP' not supported
6492 if (grep 'ignoring option' conftest.err ||
6493 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6494 am_cv_CXX_dependencies_compiler_type=$depmode
6503 am_cv_CXX_dependencies_compiler_type=none
6507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6508 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6509 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6514 test "x$enable_dependency_tracking" != xno \
6515 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6516 am__fastdepCXX_TRUE=
6517 am__fastdepCXX_FALSE='#'
6519 am__fastdepCXX_TRUE='#'
6520 am__fastdepCXX_FALSE=
6526 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6527 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6528 (test "X$CXX" != "Xg++"))) ; then
6530 ac_cpp='$CXXCPP $CPPFLAGS'
6531 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6532 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6533 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
6535 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
6536 if test -z "$CXXCPP"; then
6537 if ${ac_cv_prog_CXXCPP+:} false; then :
6538 $as_echo_n "(cached) " >&6
6540 # Double quotes because CXXCPP needs to be expanded
6541 for CXXCPP in "$CXX -E" "/lib/cpp"
6544 for ac_cxx_preproc_warn_flag in '' yes
6546 # Use a header file that comes with gcc, so configuring glibc
6547 # with a fresh cross-compiler works.
6548 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6549 # <limits.h> exists even on freestanding compilers.
6550 # On the NeXT, cc -E runs the code through the compiler's parser,
6551 # not just through cpp. "Syntax error" is here to catch this case.
6552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6553 /* end confdefs.h. */
6555 # include <limits.h>
6557 # include <assert.h>
6561 if ac_fn_cxx_try_cpp "$LINENO"; then :
6564 # Broken: fails on valid input.
6567 rm -f conftest.err conftest.i conftest.$ac_ext
6569 # OK, works on sane cases. Now check whether nonexistent headers
6570 # can be detected and how.
6571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6572 /* end confdefs.h. */
6573 #include <ac_nonexistent.h>
6575 if ac_fn_cxx_try_cpp "$LINENO"; then :
6576 # Broken: success on invalid input.
6579 # Passes both tests.
6583 rm -f conftest.err conftest.i conftest.$ac_ext
6586 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6587 rm -f conftest.i conftest.err conftest.$ac_ext
6588 if $ac_preproc_ok; then :
6593 ac_cv_prog_CXXCPP=$CXXCPP
6596 CXXCPP=$ac_cv_prog_CXXCPP
6598 ac_cv_prog_CXXCPP=$CXXCPP
6600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
6601 $as_echo "$CXXCPP" >&6; }
6603 for ac_cxx_preproc_warn_flag in '' yes
6605 # Use a header file that comes with gcc, so configuring glibc
6606 # with a fresh cross-compiler works.
6607 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6608 # <limits.h> exists even on freestanding compilers.
6609 # On the NeXT, cc -E runs the code through the compiler's parser,
6610 # not just through cpp. "Syntax error" is here to catch this case.
6611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6612 /* end confdefs.h. */
6614 # include <limits.h>
6616 # include <assert.h>
6620 if ac_fn_cxx_try_cpp "$LINENO"; then :
6623 # Broken: fails on valid input.
6626 rm -f conftest.err conftest.i conftest.$ac_ext
6628 # OK, works on sane cases. Now check whether nonexistent headers
6629 # can be detected and how.
6630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6631 /* end confdefs.h. */
6632 #include <ac_nonexistent.h>
6634 if ac_fn_cxx_try_cpp "$LINENO"; then :
6635 # Broken: success on invalid input.
6638 # Passes both tests.
6642 rm -f conftest.err conftest.i conftest.$ac_ext
6645 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6646 rm -f conftest.i conftest.err conftest.$ac_ext
6647 if $ac_preproc_ok; then :
6650 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6651 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6652 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
6653 See \`config.log' for more details" "$LINENO" 5; }
6657 ac_cpp='$CXXCPP $CPPFLAGS'
6658 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6659 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6660 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6666 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6667 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6668 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6669 if test -n "$ac_tool_prefix"; then
6670 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 nagfor
6672 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6673 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6675 $as_echo_n "checking for $ac_word... " >&6; }
6676 if ${ac_cv_prog_F77+:} false; then :
6677 $as_echo_n "(cached) " >&6
6679 if test -n "$F77"; then
6680 ac_cv_prog_F77="$F77" # Let the user override the test.
6682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6686 test -z "$as_dir" && as_dir=.
6687 for ac_exec_ext in '' $ac_executable_extensions; do
6688 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6689 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6690 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6700 if test -n "$F77"; then
6701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
6702 $as_echo "$F77" >&6; }
6704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6705 $as_echo "no" >&6; }
6709 test -n "$F77" && break
6712 if test -z "$F77"; then
6714 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 nagfor
6716 # Extract the first word of "$ac_prog", so it can be a program name with args.
6717 set dummy $ac_prog; ac_word=$2
6718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6719 $as_echo_n "checking for $ac_word... " >&6; }
6720 if ${ac_cv_prog_ac_ct_F77+:} false; then :
6721 $as_echo_n "(cached) " >&6
6723 if test -n "$ac_ct_F77"; then
6724 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6730 test -z "$as_dir" && as_dir=.
6731 for ac_exec_ext in '' $ac_executable_extensions; do
6732 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6733 ac_cv_prog_ac_ct_F77="$ac_prog"
6734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6743 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6744 if test -n "$ac_ct_F77"; then
6745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
6746 $as_echo "$ac_ct_F77" >&6; }
6748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6749 $as_echo "no" >&6; }
6753 test -n "$ac_ct_F77" && break
6756 if test "x$ac_ct_F77" = x; then
6759 case $cross_compiling:$ac_tool_warned in
6761 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6762 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6763 ac_tool_warned=yes ;;
6770 # Provide some information about the compiler.
6771 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
6774 for ac_option in --version -v -V -qversion; do
6775 { { ac_try="$ac_compiler $ac_option >&5"
6777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6778 *) ac_try_echo=$ac_try;;
6780 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6781 $as_echo "$ac_try_echo"; } >&5
6782 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6784 if test -s conftest.err; then
6786 ... rest of stderr output deleted ...
6787 10q' conftest.err >conftest.er1
6788 cat conftest.er1 >&5
6790 rm -f conftest.er1 conftest.err
6791 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6792 test $ac_status = 0; }
6796 # If we don't use `.F' as extension, the preprocessor is not run on the
6797 # input file. (Note that this only needs to work for GNU compilers.)
6800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
6801 $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
6802 if ${ac_cv_f77_compiler_gnu+:} false; then :
6803 $as_echo_n "(cached) " >&6
6805 cat > conftest.$ac_ext <<_ACEOF
6813 if ac_fn_f77_try_compile "$LINENO"; then :
6818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6819 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
6823 $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
6825 ac_test_FFLAGS=${FFLAGS+set}
6826 ac_save_FFLAGS=$FFLAGS
6828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
6829 $as_echo_n "checking whether $F77 accepts -g... " >&6; }
6830 if ${ac_cv_prog_f77_g+:} false; then :
6831 $as_echo_n "(cached) " >&6
6834 cat > conftest.$ac_ext <<_ACEOF
6839 if ac_fn_f77_try_compile "$LINENO"; then :
6840 ac_cv_prog_f77_g=yes
6844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
6848 $as_echo "$ac_cv_prog_f77_g" >&6; }
6849 if test "$ac_test_FFLAGS" = set; then
6850 FFLAGS=$ac_save_FFLAGS
6851 elif test $ac_cv_prog_f77_g = yes; then
6852 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6858 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6865 if test $ac_compiler_gnu = yes; then
6871 ac_cpp='$CPP $CPPFLAGS'
6872 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6873 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6874 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6878 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6880 # find the maximum length of command line arguments
6881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6882 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6883 if ${lt_cv_sys_max_cmd_len+:} false; then :
6884 $as_echo_n "(cached) " >&6
6891 # On DJGPP, this test can blow up pretty badly due to problems in libc
6892 # (any single argument exceeding 2000 bytes causes a buffer overrun
6893 # during glob expansion). Even if it were fixed, the result of this
6894 # check would be larger than it should be.
6895 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6899 # Under GNU Hurd, this test is not required because there is
6900 # no limit to the length of command line arguments.
6901 # Libtool will interpret -1 as no limit whatsoever
6902 lt_cv_sys_max_cmd_len=-1;
6906 # On Win9x/ME, this test blows up -- it succeeds, but takes
6907 # about 5 minutes as the teststring grows exponentially.
6908 # Worse, since 9x/ME are not pre-emptively multitasking,
6909 # you end up with a "frozen" computer, even though with patience
6910 # the test eventually succeeds (with a max line length of 256k).
6911 # Instead, let's just punt: use the minimum linelength reported by
6912 # all of the supported platforms: 8192 (on NT/2K/XP).
6913 lt_cv_sys_max_cmd_len=8192;
6917 # On AmigaOS with pdksh, this test takes hours, literally.
6918 # So we just punt and use a minimum line length of 8192.
6919 lt_cv_sys_max_cmd_len=8192;
6922 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6923 # This has been around since 386BSD, at least. Likely further.
6924 if test -x /sbin/sysctl; then
6925 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6926 elif test -x /usr/sbin/sysctl; then
6927 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6929 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6931 # And add a safety zone
6932 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6933 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6937 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6938 lt_cv_sys_max_cmd_len=196608
6942 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6943 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6944 # nice to cause kernel panics so lets avoid the loop below.
6945 # First set a reasonable default.
6946 lt_cv_sys_max_cmd_len=16384
6948 if test -x /sbin/sysconfig; then
6949 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6950 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6955 lt_cv_sys_max_cmd_len=102400
6957 sysv5* | sco5v6* | sysv4.2uw2*)
6958 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6959 if test -n "$kargmax"; then
6960 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6962 lt_cv_sys_max_cmd_len=32768
6966 # If test is not a shell built-in, we'll probably end up computing a
6967 # maximum length that is only half of the actual maximum length, but
6969 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6970 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6971 = "XX$teststring") >/dev/null 2>&1 &&
6972 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6973 lt_cv_sys_max_cmd_len=$new_result &&
6974 test $i != 17 # 1/2 MB should be enough
6977 teststring=$teststring$teststring
6980 # Add a significant safety factor because C++ compilers can tack on massive
6981 # amounts of additional arguments before passing them to the linker.
6982 # It appears as though 1/2 is a usable value.
6983 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6989 if test -n $lt_cv_sys_max_cmd_len ; then
6990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6991 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6994 $as_echo "none" >&6; }
7000 # Check for command to grab the raw symbol name followed by C symbol from nm.
7001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7002 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7003 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7004 $as_echo_n "(cached) " >&6
7007 # These are sane defaults that work on at least a few old systems.
7008 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7010 # Character class describing NM global symbol codes.
7011 symcode='[BCDEGRST]'
7013 # Regexp to match symbols that can be accessed directly from C.
7014 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7016 # Transform an extracted symbol line into a proper C declaration
7017 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7019 # Transform an extracted symbol line into symbol name and symbol address
7020 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'"
7022 # Define system-specific variables.
7027 cygwin* | mingw* | pw32*)
7028 symcode='[ABCDGISTW]'
7030 hpux*) # Its linker distinguishes data from code symbols
7031 if test "$host_cpu" = ia64; then
7032 symcode='[ABCDEGRST]'
7034 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7035 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'"
7038 if test "$host_cpu" = ia64; then
7039 symcode='[ABCDGIRSTW]'
7040 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7041 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'"
7045 symcode='[BCDEGRST]'
7048 symcode='[BCDEGQRST]'
7059 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7067 # Handle CRLF in mingw tool chain
7071 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7075 # If we're using GNU nm, then use its standard symbol codes.
7076 case `$NM -V 2>&1` in
7077 *GNU* | *'with BFD'*)
7078 symcode='[ABCDGIRSTW]' ;;
7081 # Try without a prefix undercore, then with it.
7082 for ac_symprfx in "" "_"; do
7084 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7085 symxfrm="\\1 $ac_symprfx\\2 \\2"
7087 # Write the raw and C identifiers.
7088 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7090 # Check to see that the pipe works correctly.
7094 cat > conftest.$ac_ext <<EOF
7099 void nm_test_func(){}
7103 int main(){nm_test_var='a';nm_test_func();return(0);}
7106 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7107 (eval $ac_compile) 2>&5
7109 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7110 test $ac_status = 0; }; then
7111 # Now try to grab the symbols.
7113 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
7114 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7116 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7117 test $ac_status = 0; } && test -s "$nlist"; then
7118 # Try sorting and uniquifying the output.
7119 if sort "$nlist" | uniq > "$nlist"T; then
7120 mv -f "$nlist"T "$nlist"
7125 # Make sure that we snagged all the symbols we need.
7126 if grep ' nm_test_var$' "$nlist" >/dev/null; then
7127 if grep ' nm_test_func$' "$nlist" >/dev/null; then
7128 cat <<EOF > conftest.$ac_ext
7134 # Now generate the symbol file.
7135 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7137 cat <<EOF >> conftest.$ac_ext
7138 #if defined (__STDC__) && __STDC__
7139 # define lt_ptr_t void *
7141 # define lt_ptr_t char *
7145 /* The mapping between symbol names and symbols. */
7150 lt_preloaded_symbols[] =
7153 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7154 cat <<\EOF >> conftest.$ac_ext
7162 # Now try linking the two files.
7163 mv conftest.$ac_objext conftstm.$ac_objext
7164 lt_save_LIBS="$LIBS"
7165 lt_save_CFLAGS="$CFLAGS"
7166 LIBS="conftstm.$ac_objext"
7167 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7168 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7169 (eval $ac_link) 2>&5
7171 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7172 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7175 LIBS="$lt_save_LIBS"
7176 CFLAGS="$lt_save_CFLAGS"
7178 echo "cannot find nm_test_func in $nlist" >&5
7181 echo "cannot find nm_test_var in $nlist" >&5
7184 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7187 echo "$progname: failed program was:" >&5
7188 cat conftest.$ac_ext >&5
7190 rm -f conftest* conftst*
7192 # Do not use the global_symbol_pipe unless it works.
7193 if test "$pipe_works" = yes; then
7196 lt_cv_sys_global_symbol_pipe=
7202 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7203 lt_cv_sys_global_symbol_to_cdecl=
7205 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7207 $as_echo "failed" >&6; }
7209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7210 $as_echo "ok" >&6; }
7213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7214 $as_echo_n "checking for objdir... " >&6; }
7215 if ${lt_cv_objdir+:} false; then :
7216 $as_echo_n "(cached) " >&6
7218 rm -f .libs 2>/dev/null
7219 mkdir .libs 2>/dev/null
7220 if test -d .libs; then
7223 # MS-DOS does not allow filenames that begin with a dot.
7226 rmdir .libs 2>/dev/null
7228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7229 $as_echo "$lt_cv_objdir" >&6; }
7230 objdir=$lt_cv_objdir
7238 # AIX sometimes has problems with the GCC collect2 program. For some
7239 # reason, if we set the COLLECT_NAMES environment variable, the problems
7240 # vanish in a puff of smoke.
7241 if test "X${COLLECT_NAMES+set}" != Xset; then
7243 export COLLECT_NAMES
7248 # Sed substitution that helps us do robust quoting. It backslashifies
7249 # metacharacters that are still active within double-quoted strings.
7250 Xsed='sed -e 1s/^X//'
7251 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7253 # Same as above, but do not quote variable references.
7254 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7256 # Sed substitution to delay expansion of an escaped shell variable in a
7257 # double_quote_subst'ed string.
7258 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7260 # Sed substitution to avoid accidental globbing in evaled expressions
7261 no_glob_subst='s/\*/\\\*/g'
7267 default_ofile=libtool
7268 can_build_shared=yes
7270 # All known linkers require a `.a' archive for static linking (except MSVC,
7271 # which needs '.lib').
7273 ltmain="$ac_aux_dir/ltmain.sh"
7274 ofile="$default_ofile"
7275 with_gnu_ld="$lt_cv_prog_gnu_ld"
7277 if test -n "$ac_tool_prefix"; then
7278 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7279 set dummy ${ac_tool_prefix}ar; ac_word=$2
7280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7281 $as_echo_n "checking for $ac_word... " >&6; }
7282 if ${ac_cv_prog_AR+:} false; then :
7283 $as_echo_n "(cached) " >&6
7285 if test -n "$AR"; then
7286 ac_cv_prog_AR="$AR" # Let the user override the test.
7288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7292 test -z "$as_dir" && as_dir=.
7293 for ac_exec_ext in '' $ac_executable_extensions; do
7294 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7295 ac_cv_prog_AR="${ac_tool_prefix}ar"
7296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7306 if test -n "$AR"; then
7307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7308 $as_echo "$AR" >&6; }
7310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7311 $as_echo "no" >&6; }
7316 if test -z "$ac_cv_prog_AR"; then
7318 # Extract the first word of "ar", so it can be a program name with args.
7319 set dummy ar; ac_word=$2
7320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7321 $as_echo_n "checking for $ac_word... " >&6; }
7322 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7323 $as_echo_n "(cached) " >&6
7325 if test -n "$ac_ct_AR"; then
7326 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7332 test -z "$as_dir" && as_dir=.
7333 for ac_exec_ext in '' $ac_executable_extensions; do
7334 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7335 ac_cv_prog_ac_ct_AR="ar"
7336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7345 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7346 if test -n "$ac_ct_AR"; then
7347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7348 $as_echo "$ac_ct_AR" >&6; }
7350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7351 $as_echo "no" >&6; }
7354 if test "x$ac_ct_AR" = x; then
7357 case $cross_compiling:$ac_tool_warned in
7359 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7360 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7361 ac_tool_warned=yes ;;
7369 if test -n "$ac_tool_prefix"; then
7370 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7371 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7373 $as_echo_n "checking for $ac_word... " >&6; }
7374 if ${ac_cv_prog_RANLIB+:} false; then :
7375 $as_echo_n "(cached) " >&6
7377 if test -n "$RANLIB"; then
7378 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7384 test -z "$as_dir" && as_dir=.
7385 for ac_exec_ext in '' $ac_executable_extensions; do
7386 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7387 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7388 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7397 RANLIB=$ac_cv_prog_RANLIB
7398 if test -n "$RANLIB"; then
7399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7400 $as_echo "$RANLIB" >&6; }
7402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7403 $as_echo "no" >&6; }
7408 if test -z "$ac_cv_prog_RANLIB"; then
7409 ac_ct_RANLIB=$RANLIB
7410 # Extract the first word of "ranlib", so it can be a program name with args.
7411 set dummy ranlib; ac_word=$2
7412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7413 $as_echo_n "checking for $ac_word... " >&6; }
7414 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7415 $as_echo_n "(cached) " >&6
7417 if test -n "$ac_ct_RANLIB"; then
7418 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7424 test -z "$as_dir" && as_dir=.
7425 for ac_exec_ext in '' $ac_executable_extensions; do
7426 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7427 ac_cv_prog_ac_ct_RANLIB="ranlib"
7428 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7437 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7438 if test -n "$ac_ct_RANLIB"; then
7439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7440 $as_echo "$ac_ct_RANLIB" >&6; }
7442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7443 $as_echo "no" >&6; }
7446 if test "x$ac_ct_RANLIB" = x; then
7449 case $cross_compiling:$ac_tool_warned in
7451 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7452 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7453 ac_tool_warned=yes ;;
7455 RANLIB=$ac_ct_RANLIB
7458 RANLIB="$ac_cv_prog_RANLIB"
7461 if test -n "$ac_tool_prefix"; then
7462 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7463 set dummy ${ac_tool_prefix}strip; ac_word=$2
7464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7465 $as_echo_n "checking for $ac_word... " >&6; }
7466 if ${ac_cv_prog_STRIP+:} false; then :
7467 $as_echo_n "(cached) " >&6
7469 if test -n "$STRIP"; then
7470 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7476 test -z "$as_dir" && as_dir=.
7477 for ac_exec_ext in '' $ac_executable_extensions; do
7478 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7479 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7489 STRIP=$ac_cv_prog_STRIP
7490 if test -n "$STRIP"; then
7491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7492 $as_echo "$STRIP" >&6; }
7494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7495 $as_echo "no" >&6; }
7500 if test -z "$ac_cv_prog_STRIP"; then
7502 # Extract the first word of "strip", so it can be a program name with args.
7503 set dummy strip; ac_word=$2
7504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7505 $as_echo_n "checking for $ac_word... " >&6; }
7506 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7507 $as_echo_n "(cached) " >&6
7509 if test -n "$ac_ct_STRIP"; then
7510 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7516 test -z "$as_dir" && as_dir=.
7517 for ac_exec_ext in '' $ac_executable_extensions; do
7518 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7519 ac_cv_prog_ac_ct_STRIP="strip"
7520 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7529 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7530 if test -n "$ac_ct_STRIP"; then
7531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7532 $as_echo "$ac_ct_STRIP" >&6; }
7534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7535 $as_echo "no" >&6; }
7538 if test "x$ac_ct_STRIP" = x; then
7541 case $cross_compiling:$ac_tool_warned in
7543 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7544 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7545 ac_tool_warned=yes ;;
7550 STRIP="$ac_cv_prog_STRIP"
7555 old_CFLAGS="$CFLAGS"
7557 # Set sane defaults for various variables
7558 test -z "$AR" && AR=ar
7559 test -z "$AR_FLAGS" && AR_FLAGS=cru
7560 test -z "$AS" && AS=as
7561 test -z "$CC" && CC=cc
7562 test -z "$LTCC" && LTCC=$CC
7563 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7564 test -z "$DLLTOOL" && DLLTOOL=dlltool
7565 test -z "$LD" && LD=ld
7566 test -z "$LN_S" && LN_S="ln -s"
7567 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7568 test -z "$NM" && NM=nm
7569 test -z "$SED" && SED=sed
7570 test -z "$OBJDUMP" && OBJDUMP=objdump
7571 test -z "$RANLIB" && RANLIB=:
7572 test -z "$STRIP" && STRIP=:
7573 test -z "$ac_objext" && ac_objext=o
7575 # Determine commands to create old-style static archives.
7576 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7577 old_postinstall_cmds='chmod 644 $oldlib'
7578 old_postuninstall_cmds=
7580 if test -n "$RANLIB"; then
7583 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7586 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7589 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7592 for cc_temp in $compiler""; do
7594 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7595 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7600 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7603 # Only perform the check for file, if the check method requires it
7604 case $deplibs_check_method in
7606 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7608 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7609 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7610 $as_echo_n "(cached) " >&6
7614 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7617 lt_save_MAGIC_CMD="$MAGIC_CMD"
7618 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7619 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7620 for ac_dir in $ac_dummy; do
7622 test -z "$ac_dir" && ac_dir=.
7623 if test -f $ac_dir/${ac_tool_prefix}file; then
7624 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7625 if test -n "$file_magic_test_file"; then
7626 case $deplibs_check_method in
7628 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7629 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7630 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7631 $EGREP "$file_magic_regex" > /dev/null; then
7636 *** Warning: the command libtool uses to detect shared libraries,
7637 *** $file_magic_cmd, produces output that libtool cannot recognize.
7638 *** The result is that libtool may fail to recognize shared libraries
7639 *** as such. This will affect the creation of libtool libraries that
7640 *** depend on shared libraries, but programs linked with such libtool
7641 *** libraries will work regardless of this problem. Nevertheless, you
7642 *** may want to report the problem to your system manager and/or to
7643 *** bug-libtool@gnu.org
7653 MAGIC_CMD="$lt_save_MAGIC_CMD"
7658 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7659 if test -n "$MAGIC_CMD"; then
7660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7661 $as_echo "$MAGIC_CMD" >&6; }
7663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7664 $as_echo "no" >&6; }
7667 if test -z "$lt_cv_path_MAGIC_CMD"; then
7668 if test -n "$ac_tool_prefix"; then
7669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7670 $as_echo_n "checking for file... " >&6; }
7671 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7672 $as_echo_n "(cached) " >&6
7676 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7679 lt_save_MAGIC_CMD="$MAGIC_CMD"
7680 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7681 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7682 for ac_dir in $ac_dummy; do
7684 test -z "$ac_dir" && ac_dir=.
7685 if test -f $ac_dir/file; then
7686 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7687 if test -n "$file_magic_test_file"; then
7688 case $deplibs_check_method in
7690 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7691 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7692 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7693 $EGREP "$file_magic_regex" > /dev/null; then
7698 *** Warning: the command libtool uses to detect shared libraries,
7699 *** $file_magic_cmd, produces output that libtool cannot recognize.
7700 *** The result is that libtool may fail to recognize shared libraries
7701 *** as such. This will affect the creation of libtool libraries that
7702 *** depend on shared libraries, but programs linked with such libtool
7703 *** libraries will work regardless of this problem. Nevertheless, you
7704 *** may want to report the problem to your system manager and/or to
7705 *** bug-libtool@gnu.org
7715 MAGIC_CMD="$lt_save_MAGIC_CMD"
7720 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7721 if test -n "$MAGIC_CMD"; then
7722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7723 $as_echo "$MAGIC_CMD" >&6; }
7725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7726 $as_echo "no" >&6; }
7741 # Check whether --enable-libtool-lock was given.
7742 if test "${enable_libtool_lock+set}" = set; then :
7743 enableval=$enable_libtool_lock;
7746 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7749 # Check whether --with-pic was given.
7750 if test "${with_pic+set}" = set; then :
7751 withval=$with_pic; pic_mode="$withval"
7756 test -z "$pic_mode" && pic_mode=default
7758 # Use C for the default configuration in the libtool script
7762 ac_cpp='$CPP $CPPFLAGS'
7763 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7764 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7765 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7768 # Source file extension for C test sources.
7771 # Object file extension for compiled C test sources.
7775 # Code to be used in simple compile tests
7776 lt_simple_compile_test_code="int some_variable = 0;\n"
7778 # Code to be used in simple link tests
7779 lt_simple_link_test_code='int main(){return(0);}\n'
7782 # If no C compiler was specified, use CC.
7785 # If no C compiler flags were specified, use CFLAGS.
7786 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7788 # Allow CC to be a program name with arguments.
7792 # save warnings/boilerplate of simple test code
7793 ac_outfile=conftest.$ac_objext
7794 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7795 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7796 _lt_compiler_boilerplate=`cat conftest.err`
7799 ac_outfile=conftest.$ac_objext
7800 printf "$lt_simple_link_test_code" >conftest.$ac_ext
7801 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7802 _lt_linker_boilerplate=`cat conftest.err`
7807 lt_prog_compiler_no_builtin_flag=
7809 if test "$GCC" = yes; then
7810 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7814 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7815 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7816 $as_echo_n "(cached) " >&6
7818 lt_cv_prog_compiler_rtti_exceptions=no
7819 ac_outfile=conftest.$ac_objext
7820 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7821 lt_compiler_flag="-fno-rtti -fno-exceptions"
7822 # Insert the option either (1) after the last *FLAGS variable, or
7823 # (2) before a word containing "conftest.", or (3) at the end.
7824 # Note that $ac_compile itself does not contain backslashes and begins
7825 # with a dollar sign (not a hyphen), so the echo should work correctly.
7826 # The option is referenced via a variable to avoid confusing sed.
7827 lt_compile=`echo "$ac_compile" | $SED \
7828 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7829 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7830 -e 's:$: $lt_compiler_flag:'`
7831 (eval echo "\"\$as_me:7831: $lt_compile\"" >&5)
7832 (eval "$lt_compile" 2>conftest.err)
7834 cat conftest.err >&5
7835 echo "$as_me:7835: \$? = $ac_status" >&5
7836 if (exit $ac_status) && test -s "$ac_outfile"; then
7837 # The compiler can only warn and ignore the option if not recognized
7838 # So say no if there are warnings other than the usual output.
7839 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7840 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7841 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7842 lt_cv_prog_compiler_rtti_exceptions=yes
7848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7849 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7851 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7852 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7859 lt_prog_compiler_wl=
7860 lt_prog_compiler_pic=
7861 lt_prog_compiler_static=
7863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7864 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7866 if test "$GCC" = yes; then
7867 lt_prog_compiler_wl='-Wl,'
7868 lt_prog_compiler_static='-static'
7872 # All AIX code is PIC.
7873 if test "$host_cpu" = ia64; then
7874 # AIX 5 now supports IA64 processor
7875 lt_prog_compiler_static='-Bstatic'
7880 # FIXME: we need at least 68020 code to build shared libraries, but
7881 # adding the `-m68020' flag to GCC prevents building anything better,
7883 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7886 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7887 # PIC is the default for these OSes.
7890 mingw* | pw32* | os2*)
7891 # This hack is so that the source file can tell whether it is being
7892 # built for inclusion in a dll (and should export symbols for example).
7893 lt_prog_compiler_pic='-DDLL_EXPORT'
7896 darwin* | rhapsody*)
7897 # PIC is the default on this platform
7898 # Common symbols not allowed in MH_DYLIB files
7899 lt_prog_compiler_pic='-fno-common'
7903 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7904 # Instead, we relocate shared libraries at runtime.
7908 # Just because we use GCC doesn't mean we suddenly get shared libraries
7909 # on systems that don't support them.
7910 lt_prog_compiler_can_build_shared=no
7915 if test -d /usr/nec; then
7916 lt_prog_compiler_pic=-Kconform_pic
7921 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7928 lt_prog_compiler_pic='-fPIC'
7934 lt_prog_compiler_pic='-fPIC'
7938 # PORTME Check for flag to pass linker flags through the system compiler.
7941 lt_prog_compiler_wl='-Wl,'
7942 if test "$host_cpu" = ia64; then
7943 # AIX 5 now supports IA64 processor
7944 lt_prog_compiler_static='-Bstatic'
7946 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7950 # PIC is the default on this platform
7951 # Common symbols not allowed in MH_DYLIB files
7952 case $cc_basename in
7954 lt_prog_compiler_pic='-qnocommon'
7955 lt_prog_compiler_wl='-Wl,'
7960 mingw* | pw32* | os2*)
7961 # This hack is so that the source file can tell whether it is being
7962 # built for inclusion in a dll (and should export symbols for example).
7963 lt_prog_compiler_pic='-DDLL_EXPORT'
7966 hpux9* | hpux10* | hpux11*)
7967 lt_prog_compiler_wl='-Wl,'
7968 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7975 lt_prog_compiler_pic='+Z'
7978 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7979 lt_prog_compiler_static='${wl}-a ${wl}archive'
7982 irix5* | irix6* | nonstopux*)
7983 lt_prog_compiler_wl='-Wl,'
7984 # PIC (with -KPIC) is the default.
7985 lt_prog_compiler_static='-non_shared'
7989 lt_prog_compiler_pic='-KPIC'
7990 lt_prog_compiler_static='-Bstatic'
7994 case $cc_basename in
7996 lt_prog_compiler_wl='-Wl,'
7997 lt_prog_compiler_pic='-KPIC'
7998 lt_prog_compiler_static='-static'
8000 pgcc* | pgf77* | pgf90* | pgf95*)
8001 # Portland Group compilers (*not* the Pentium gcc compiler,
8002 # which looks to be a dead project)
8003 lt_prog_compiler_wl='-Wl,'
8004 lt_prog_compiler_pic='-fpic'
8005 lt_prog_compiler_static='-Bstatic'
8008 lt_prog_compiler_wl='-Wl,'
8009 # All Alpha code is PIC.
8010 lt_prog_compiler_static='-non_shared'
8015 osf3* | osf4* | osf5*)
8016 lt_prog_compiler_wl='-Wl,'
8017 # All OSF/1 code is PIC.
8018 lt_prog_compiler_static='-non_shared'
8022 lt_prog_compiler_pic='-KPIC'
8023 lt_prog_compiler_static='-Bstatic'
8024 case $cc_basename in
8026 lt_prog_compiler_wl='-Qoption ld ';;
8028 lt_prog_compiler_wl='-Wl,';;
8033 lt_prog_compiler_wl='-Qoption ld '
8034 lt_prog_compiler_pic='-PIC'
8035 lt_prog_compiler_static='-Bstatic'
8038 sysv4 | sysv4.2uw2* | sysv4.3*)
8039 lt_prog_compiler_wl='-Wl,'
8040 lt_prog_compiler_pic='-KPIC'
8041 lt_prog_compiler_static='-Bstatic'
8045 if test -d /usr/nec ;then
8046 lt_prog_compiler_pic='-Kconform_pic'
8047 lt_prog_compiler_static='-Bstatic'
8051 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8052 lt_prog_compiler_wl='-Wl,'
8053 lt_prog_compiler_pic='-KPIC'
8054 lt_prog_compiler_static='-Bstatic'
8058 lt_prog_compiler_wl='-Wl,'
8059 lt_prog_compiler_can_build_shared=no
8063 lt_prog_compiler_pic='-pic'
8064 lt_prog_compiler_static='-Bstatic'
8068 lt_prog_compiler_can_build_shared=no
8073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8074 $as_echo "$lt_prog_compiler_pic" >&6; }
8077 # Check to make sure the PIC flag actually works.
8079 if test -n "$lt_prog_compiler_pic"; then
8081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8082 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8083 if ${lt_prog_compiler_pic_works+:} false; then :
8084 $as_echo_n "(cached) " >&6
8086 lt_prog_compiler_pic_works=no
8087 ac_outfile=conftest.$ac_objext
8088 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8089 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8090 # Insert the option either (1) after the last *FLAGS variable, or
8091 # (2) before a word containing "conftest.", or (3) at the end.
8092 # Note that $ac_compile itself does not contain backslashes and begins
8093 # with a dollar sign (not a hyphen), so the echo should work correctly.
8094 # The option is referenced via a variable to avoid confusing sed.
8095 lt_compile=`echo "$ac_compile" | $SED \
8096 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8097 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8098 -e 's:$: $lt_compiler_flag:'`
8099 (eval echo "\"\$as_me:8099: $lt_compile\"" >&5)
8100 (eval "$lt_compile" 2>conftest.err)
8102 cat conftest.err >&5
8103 echo "$as_me:8103: \$? = $ac_status" >&5
8104 if (exit $ac_status) && test -s "$ac_outfile"; then
8105 # The compiler can only warn and ignore the option if not recognized
8106 # So say no if there are warnings other than the usual output.
8107 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8108 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8109 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8110 lt_prog_compiler_pic_works=yes
8116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_works" >&5
8117 $as_echo "$lt_prog_compiler_pic_works" >&6; }
8119 if test x"$lt_prog_compiler_pic_works" = xyes; then
8120 case $lt_prog_compiler_pic in
8122 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8125 lt_prog_compiler_pic=
8126 lt_prog_compiler_can_build_shared=no
8131 # For platforms which do not support PIC, -DPIC is meaningless:
8133 lt_prog_compiler_pic=
8136 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8141 # Check to make sure the static flag actually works.
8143 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8145 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8146 if ${lt_prog_compiler_static_works+:} false; then :
8147 $as_echo_n "(cached) " >&6
8149 lt_prog_compiler_static_works=no
8150 save_LDFLAGS="$LDFLAGS"
8151 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8152 printf "$lt_simple_link_test_code" > conftest.$ac_ext
8153 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8154 # The linker can only warn and ignore the option if not recognized
8155 # So say no if there are warnings
8156 if test -s conftest.err; then
8157 # Append any errors to the config.log.
8158 cat conftest.err 1>&5
8159 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8160 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8161 if diff conftest.exp conftest.er2 >/dev/null; then
8162 lt_prog_compiler_static_works=yes
8165 lt_prog_compiler_static_works=yes
8169 LDFLAGS="$save_LDFLAGS"
8172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_static_works" >&5
8173 $as_echo "$lt_prog_compiler_static_works" >&6; }
8175 if test x"$lt_prog_compiler_static_works" = xyes; then
8178 lt_prog_compiler_static=
8182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8183 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8184 if ${lt_cv_prog_compiler_c_o+:} false; then :
8185 $as_echo_n "(cached) " >&6
8187 lt_cv_prog_compiler_c_o=no
8188 $rm -r conftest 2>/dev/null
8192 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8194 lt_compiler_flag="-o out/conftest2.$ac_objext"
8195 # Insert the option either (1) after the last *FLAGS variable, or
8196 # (2) before a word containing "conftest.", or (3) at the end.
8197 # Note that $ac_compile itself does not contain backslashes and begins
8198 # with a dollar sign (not a hyphen), so the echo should work correctly.
8199 lt_compile=`echo "$ac_compile" | $SED \
8200 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8201 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8202 -e 's:$: $lt_compiler_flag:'`
8203 (eval echo "\"\$as_me:8203: $lt_compile\"" >&5)
8204 (eval "$lt_compile" 2>out/conftest.err)
8206 cat out/conftest.err >&5
8207 echo "$as_me:8207: \$? = $ac_status" >&5
8208 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8210 # The compiler can only warn and ignore the option if not recognized
8211 # So say no if there are warnings
8212 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8213 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8214 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8215 lt_cv_prog_compiler_c_o=yes
8220 # SGI C++ compiler will create directory out/ii_files/ for
8221 # template instantiation
8222 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8223 $rm out/* && rmdir out
8229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8230 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8233 hard_links="nottested"
8234 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8235 # do not overwrite the value of need_locks provided by the user
8236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8237 $as_echo_n "checking if we can lock with hard links... " >&6; }
8240 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8242 ln conftest.a conftest.b 2>&5 || hard_links=no
8243 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8245 $as_echo "$hard_links" >&6; }
8246 if test "$hard_links" = no; then
8247 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8248 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8256 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8259 allow_undefined_flag=
8260 enable_shared_with_static_runtimes=no
8262 archive_expsym_cmds=
8263 old_archive_From_new_cmds=
8264 old_archive_from_expsyms_cmds=
8265 export_dynamic_flag_spec=
8266 whole_archive_flag_spec=
8267 thread_safe_flag_spec=
8268 hardcode_libdir_flag_spec=
8269 hardcode_libdir_flag_spec_ld=
8270 hardcode_libdir_separator=
8273 hardcode_shlibpath_var=unsupported
8274 link_all_deplibs=unknown
8275 hardcode_automatic=no
8278 always_export_symbols=no
8279 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8280 # include_expsyms should be a list of space-separated symbols to be *always*
8281 # included in the symbol list
8283 # exclude_expsyms can be an extended regexp of symbols to exclude
8284 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8285 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8286 # as well as any symbol that contains `d'.
8287 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8288 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8289 # platforms (ab)use it in PIC code, but their linkers get confused if
8290 # the symbol is explicitly referenced. Since portable code cannot
8291 # rely on this symbol name, it's probably fine to never include it in
8292 # preloaded symbol tables.
8293 extract_expsyms_cmds=
8294 # Just being paranoid about ensuring that cc_basename is set.
8295 for cc_temp in $compiler""; do
8297 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8298 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8303 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8306 cygwin* | mingw* | pw32*)
8307 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8308 # When not using gcc, we currently assume that we are using
8309 # Microsoft Visual C++.
8310 if test "$GCC" != yes; then
8315 # we just hope/assume this is gcc and not c89 (= MSVC++)
8324 if test "$with_gnu_ld" = yes; then
8325 # If archive_cmds runs LD, not CC, wlarc should be empty
8328 # Set some defaults for GNU ld with shared library support. These
8329 # are reset later if shared libraries are not supported. Putting them
8330 # here allows them to be overridden if necessary.
8331 runpath_var=LD_RUN_PATH
8332 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8333 export_dynamic_flag_spec='${wl}--export-dynamic'
8334 # ancient GNU ld didn't support --whole-archive et. al.
8335 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8336 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8338 whole_archive_flag_spec=
8340 supports_anon_versioning=no
8341 case `$LD -v 2>/dev/null` in
8342 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8343 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8344 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8345 *\ 2.11.*) ;; # other 2.11 versions
8346 *) supports_anon_versioning=yes ;;
8349 # See if GNU ld supports shared libraries.
8351 aix3* | aix4* | aix5*)
8352 # On AIX/PPC, the GNU linker is very broken
8353 if test "$host_cpu" != ia64; then
8357 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8358 *** to be unable to reliably create shared libraries on AIX.
8359 *** Therefore, libtool is disabling shared libraries support. If you
8360 *** really care for shared libraries, you may want to modify your PATH
8361 *** so that a non-GNU linker is found, and then restart.
8368 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)'
8369 hardcode_libdir_flag_spec='-L$libdir'
8370 hardcode_minus_L=yes
8372 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8373 # that the semantics of dynamic libraries on AmigaOS, at least up
8374 # to version 4, is to share data among multiple programs linked
8375 # with the same dynamic library. Since this doesn't match the
8376 # behavior of shared libraries on other platforms, we can't use
8382 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8383 allow_undefined_flag=unsupported
8384 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8385 # support --undefined. This deserves some investigation. FIXME
8386 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8392 cygwin* | mingw* | pw32*)
8393 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8394 # as there is no search path for DLLs.
8395 hardcode_libdir_flag_spec='-L$libdir'
8396 allow_undefined_flag=unsupported
8397 always_export_symbols=no
8398 enable_shared_with_static_runtimes=yes
8399 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8401 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8402 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8403 # If the export-symbols file already is a .def file (1st line
8404 # is EXPORTS), use it as is; otherwise, prepend...
8405 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8406 cp $export_symbols $output_objdir/$soname.def;
8408 echo EXPORTS > $output_objdir/$soname.def;
8409 cat $export_symbols >> $output_objdir/$soname.def;
8411 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8419 hardcode_shlibpath_var=no
8420 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8421 export_dynamic_flag_spec='${wl}-E'
8422 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8423 # Instead, shared libraries are loaded at an image base (0x10000000 by
8424 # default) and relocated if they conflict, which is a slow very memory
8425 # consuming and fragmenting process. To avoid this, we pick a random,
8426 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8427 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8428 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8429 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8433 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8435 case $cc_basename,$host_cpu in
8436 pgcc*) # Portland Group C compiler
8437 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
8438 tmp_addflag=' $pic_flag'
8440 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8441 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
8442 tmp_addflag=' $pic_flag -Mnomain' ;;
8443 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8444 tmp_addflag=' -i_dynamic' ;;
8445 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8446 tmp_addflag=' -i_dynamic -nofor_main' ;;
8447 ifc* | ifort*) # Intel Fortran compiler
8448 tmp_addflag=' -nofor_main' ;;
8450 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8452 if test $supports_anon_versioning = yes; then
8453 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8454 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8455 $echo "local: *; };" >> $output_objdir/$libname.ver~
8456 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8464 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8465 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8468 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8469 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8474 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8478 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8479 *** create shared libraries on Solaris systems. Therefore, libtool
8480 *** is disabling shared libraries support. We urge you to upgrade GNU
8481 *** binutils to release 2.9.1 or newer. Another option is to modify
8482 *** your PATH or compiler configuration so that the native linker is
8483 *** used, and then restart.
8486 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8487 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8488 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8494 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8495 case `$LD -v 2>&1` in
8496 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8500 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8501 *** reliably create shared libraries on SCO systems. Therefore, libtool
8502 *** is disabling shared libraries support. We urge you to upgrade GNU
8503 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8504 *** your PATH or compiler configuration so that the native linker is
8505 *** used, and then restart.
8510 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8511 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8512 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8513 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8522 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8525 hardcode_shlibpath_var=no
8529 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8530 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8531 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8538 if test "$ld_shlibs" = no; then
8540 hardcode_libdir_flag_spec=
8541 export_dynamic_flag_spec=
8542 whole_archive_flag_spec=
8545 # PORTME fill in a description of your system's linker (not GNU ld)
8548 allow_undefined_flag=unsupported
8549 always_export_symbols=yes
8550 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'
8551 # Note: this linker hardcodes the directories in LIBPATH if there
8552 # are no directories specified by -L.
8553 hardcode_minus_L=yes
8554 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8555 # Neither direct hardcoding nor static linking is supported with a
8557 hardcode_direct=unsupported
8562 if test "$host_cpu" = ia64; then
8563 # On IA64, the linker does run time linking by default, so we don't
8564 # have to do anything special.
8565 aix_use_runtimelinking=no
8566 exp_sym_flag='-Bexport'
8569 # If we're using GNU nm, then we don't want the "-C" option.
8570 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8571 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8572 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'
8574 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'
8576 aix_use_runtimelinking=no
8578 # Test if we are trying to use run time linking or normal
8579 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8580 # need to do runtime linking.
8581 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8582 for ld_flag in $LDFLAGS; do
8583 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8584 aix_use_runtimelinking=yes
8591 exp_sym_flag='-bexport'
8592 no_entry_flag='-bnoentry'
8595 # When large executables or shared objects are built, AIX ld can
8596 # have problems creating the table of contents. If linking a library
8597 # or program results in "error TOC overflow" add -mminimal-toc to
8598 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8599 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8603 hardcode_libdir_separator=':'
8604 link_all_deplibs=yes
8606 if test "$GCC" = yes; then
8607 case $host_os in aix4.[012]|aix4.[012].*)
8608 # We only want to do this on AIX 4.2 and lower, the check
8609 # below for broken collect2 doesn't work under 4.3+
8610 collect2name=`${CC} -print-prog-name=collect2`
8611 if test -f "$collect2name" && \
8612 strings "$collect2name" | grep resolve_lib_name >/dev/null
8614 # We have reworked collect2
8617 # We have old collect2
8618 hardcode_direct=unsupported
8619 # It fails to find uninstalled libraries when the uninstalled
8620 # path is not listed in the libpath. Setting hardcode_minus_L
8621 # to unsupported forces relinking
8622 hardcode_minus_L=yes
8623 hardcode_libdir_flag_spec='-L$libdir'
8624 hardcode_libdir_separator=
8628 shared_flag='-shared'
8629 if test "$aix_use_runtimelinking" = yes; then
8630 shared_flag="$shared_flag "'${wl}-G'
8634 if test "$host_cpu" = ia64; then
8635 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8636 # chokes on -Wl,-G. The following line is correct:
8639 if test "$aix_use_runtimelinking" = yes; then
8640 shared_flag='${wl}-G'
8642 shared_flag='${wl}-bM:SRE'
8647 # It seems that -bexpall does not export symbols beginning with
8648 # underscore (_), so it is better to generate a list of symbols to export.
8649 always_export_symbols=yes
8650 if test "$aix_use_runtimelinking" = yes; then
8651 # Warning - without using the other runtime loading flags (-brtl),
8652 # -berok will link without error, but may produce a broken library.
8653 allow_undefined_flag='-berok'
8654 # Determine the default libpath from the value encoded in an empty executable.
8655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8656 /* end confdefs.h. */
8666 if ac_fn_c_try_link "$LINENO"; then :
8668 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8670 # Check for a 64-bit object if we didn't find anything.
8671 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; }
8674 rm -f core conftest.err conftest.$ac_objext \
8675 conftest$ac_exeext conftest.$ac_ext
8676 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8678 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8679 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8681 if test "$host_cpu" = ia64; then
8682 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8683 allow_undefined_flag="-z nodefs"
8684 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
8686 # Determine the default libpath from the value encoded in an empty executable.
8687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8688 /* end confdefs.h. */
8698 if ac_fn_c_try_link "$LINENO"; then :
8700 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8702 # Check for a 64-bit object if we didn't find anything.
8703 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; }
8706 rm -f core conftest.err conftest.$ac_objext \
8707 conftest$ac_exeext conftest.$ac_ext
8708 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8710 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8711 # Warning - without using the other run time loading flags,
8712 # -berok will link without error, but may produce a broken library.
8713 no_undefined_flag=' ${wl}-bernotok'
8714 allow_undefined_flag=' ${wl}-berok'
8715 # Exported symbols can be pulled into shared objects from archives
8716 whole_archive_flag_spec='$convenience'
8717 archive_cmds_need_lc=yes
8718 # This is similar to how AIX traditionally builds its shared libraries.
8719 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
8725 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)'
8726 hardcode_libdir_flag_spec='-L$libdir'
8727 hardcode_minus_L=yes
8728 # see comment about different semantics on the GNU ld section
8733 export_dynamic_flag_spec=-rdynamic
8736 cygwin* | mingw* | pw32*)
8737 # When not using gcc, we currently assume that we are using
8738 # Microsoft Visual C++.
8739 # hardcode_libdir_flag_spec is actually meaningless, as there is
8740 # no search path for DLLs.
8741 hardcode_libdir_flag_spec=' '
8742 allow_undefined_flag=unsupported
8743 # Tell ltmain to make .lib files, not .a files.
8745 # Tell ltmain to make .dll files, not .so files.
8747 # FIXME: Setting linknames here is a bad hack.
8748 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8749 # The linker will automatically build a .lib file if we build a DLL.
8750 old_archive_From_new_cmds='true'
8751 # FIXME: Should let the user specify the lib program.
8752 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8753 fix_srcfile_path='`cygpath -w "$srcfile"`'
8754 enable_shared_with_static_runtimes=yes
8757 darwin* | rhapsody*)
8759 rhapsody* | darwin1.[012])
8760 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8763 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8764 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8766 case ${MACOSX_DEPLOYMENT_TARGET} in
8768 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8771 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8777 archive_cmds_need_lc=no
8779 hardcode_automatic=yes
8780 hardcode_shlibpath_var=unsupported
8781 whole_archive_flag_spec=''
8782 link_all_deplibs=yes
8783 if test "$GCC" = yes ; then
8784 output_verbose_link_cmd='echo'
8785 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8786 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8787 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8788 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}'
8789 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}'
8791 case $cc_basename in
8793 output_verbose_link_cmd='echo'
8794 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8795 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8796 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8797 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8798 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}'
8808 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8809 hardcode_libdir_flag_spec='-L$libdir'
8810 hardcode_shlibpath_var=no
8817 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8818 # support. Future versions do this automatically, but an explicit c++rt0.o
8819 # does not break anything, and helps significantly (at the cost of a little
8822 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8823 hardcode_libdir_flag_spec='-R$libdir'
8825 hardcode_shlibpath_var=no
8828 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8830 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8832 hardcode_minus_L=yes
8833 hardcode_shlibpath_var=no
8836 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8837 freebsd* | kfreebsd*-gnu | dragonfly*)
8838 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8839 hardcode_libdir_flag_spec='-R$libdir'
8841 hardcode_shlibpath_var=no
8845 if test "$GCC" = yes; then
8846 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'
8848 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'
8850 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8851 hardcode_libdir_separator=:
8854 # hardcode_minus_L: Not really in the search PATH,
8855 # but as the default location of the library.
8856 hardcode_minus_L=yes
8857 export_dynamic_flag_spec='${wl}-E'
8861 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8862 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8864 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8866 if test "$with_gnu_ld" = no; then
8867 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8868 hardcode_libdir_separator=:
8871 export_dynamic_flag_spec='${wl}-E'
8873 # hardcode_minus_L: Not really in the search PATH,
8874 # but as the default location of the library.
8875 hardcode_minus_L=yes
8880 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8883 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8886 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8889 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8895 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8898 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8901 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8905 if test "$with_gnu_ld" = no; then
8906 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8907 hardcode_libdir_separator=:
8911 hardcode_libdir_flag_spec_ld='+b $libdir'
8913 hardcode_shlibpath_var=no
8917 export_dynamic_flag_spec='${wl}-E'
8919 # hardcode_minus_L: Not really in the search PATH,
8920 # but as the default location of the library.
8921 hardcode_minus_L=yes
8927 irix5* | irix6* | nonstopux*)
8928 if test "$GCC" = yes; then
8929 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'
8931 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'
8932 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8934 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8935 hardcode_libdir_separator=:
8936 link_all_deplibs=yes
8940 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8941 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8943 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8945 hardcode_libdir_flag_spec='-R$libdir'
8947 hardcode_shlibpath_var=no
8951 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8953 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8954 hardcode_libdir_separator=:
8955 hardcode_shlibpath_var=no
8960 hardcode_shlibpath_var=no
8961 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8962 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8963 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8964 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8965 export_dynamic_flag_spec='${wl}-E'
8968 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8969 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8970 hardcode_libdir_flag_spec='-R$libdir'
8973 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8974 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8981 hardcode_libdir_flag_spec='-L$libdir'
8982 hardcode_minus_L=yes
8983 allow_undefined_flag=unsupported
8984 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'
8985 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8989 if test "$GCC" = yes; then
8990 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8991 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'
8993 allow_undefined_flag=' -expect_unresolved \*'
8994 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'
8996 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8997 hardcode_libdir_separator=:
9000 osf4* | osf5*) # as osf3* with the addition of -msym flag
9001 if test "$GCC" = yes; then
9002 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9003 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'
9004 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9006 allow_undefined_flag=' -expect_unresolved \*'
9007 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'
9008 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9009 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
9011 # Both c and cxx compiler support -rpath directly
9012 hardcode_libdir_flag_spec='-rpath $libdir'
9014 hardcode_libdir_separator=:
9018 no_undefined_flag=' -z text'
9019 if test "$GCC" = yes; then
9021 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9022 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9023 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9026 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9027 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9028 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9030 hardcode_libdir_flag_spec='-R$libdir'
9031 hardcode_shlibpath_var=no
9033 solaris2.[0-5] | solaris2.[0-5].*) ;;
9035 # The compiler driver will combine linker options so we
9036 # cannot just pass the convience library names through
9037 # without $wl, iff we do not link with $LD.
9038 # Luckily, gcc supports the same syntax we need for Sun Studio.
9039 # Supported since Solaris 2.6 (maybe 2.5.1?)
9042 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9044 whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
9047 link_all_deplibs=yes
9051 if test "x$host_vendor" = xsequent; then
9052 # Use $CC to link under sequent, because it throws in some extra .o
9053 # files that make .init and .fini sections work.
9054 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9056 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9058 hardcode_libdir_flag_spec='-L$libdir'
9060 hardcode_minus_L=yes
9061 hardcode_shlibpath_var=no
9065 case $host_vendor in
9067 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9068 hardcode_direct=yes # is this really true???
9071 ## LD is ld it makes a PLAMLIB
9072 ## CC just makes a GrossModule.
9073 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9074 reload_cmds='$CC -r -o $output$reload_objs'
9078 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9079 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9082 runpath_var='LD_RUN_PATH'
9083 hardcode_shlibpath_var=no
9087 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9088 hardcode_shlibpath_var=no
9089 export_dynamic_flag_spec='-Bexport'
9093 if test -d /usr/nec; then
9094 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9095 hardcode_shlibpath_var=no
9096 runpath_var=LD_RUN_PATH
9097 hardcode_runpath_var=yes
9102 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
9103 no_undefined_flag='${wl}-z,text'
9104 archive_cmds_need_lc=no
9105 hardcode_shlibpath_var=no
9106 runpath_var='LD_RUN_PATH'
9108 if test "$GCC" = yes; then
9109 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9110 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9112 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9113 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9117 sysv5* | sco3.2v5* | sco5v6*)
9118 # Note: We can NOT use -z defs as we might desire, because we do not
9119 # link with -lc, and that would cause any symbols used from libc to
9120 # always be unresolved, which means just about no library would
9121 # ever link correctly. If we're not using GNU ld we use -z text
9122 # though, which does catch some bad symbols but isn't as heavy-handed
9124 no_undefined_flag='${wl}-z,text'
9125 allow_undefined_flag='${wl}-z,nodefs'
9126 archive_cmds_need_lc=no
9127 hardcode_shlibpath_var=no
9128 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9129 hardcode_libdir_separator=':'
9130 link_all_deplibs=yes
9131 export_dynamic_flag_spec='${wl}-Bexport'
9132 runpath_var='LD_RUN_PATH'
9134 if test "$GCC" = yes; then
9135 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9136 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9138 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9139 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9144 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9145 hardcode_libdir_flag_spec='-L$libdir'
9146 hardcode_shlibpath_var=no
9155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9156 $as_echo "$ld_shlibs" >&6; }
9157 test "$ld_shlibs" = no && can_build_shared=no
9160 # Do we need to explicitly link libc?
9162 case "x$archive_cmds_need_lc" in
9164 # Assume -lc should be added
9165 archive_cmds_need_lc=yes
9167 if test "$enable_shared" = yes && test "$GCC" = yes; then
9168 case $archive_cmds in
9170 # FIXME: we may have to deal with multi-command sequences.
9173 # Test whether the compiler implicitly links with -lc since on some
9174 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9175 # to ld, don't add -lc before -lgcc.
9176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9177 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9179 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9181 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9182 (eval $ac_compile) 2>&5
9184 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9185 test $ac_status = 0; } 2>conftest.err; then
9188 libobjs=conftest.$ac_objext
9190 wl=$lt_prog_compiler_wl
9191 pic_flag=$lt_prog_compiler_pic
9197 lt_save_allow_undefined_flag=$allow_undefined_flag
9198 allow_undefined_flag=
9199 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9200 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9202 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9203 test $ac_status = 0; }
9205 archive_cmds_need_lc=no
9207 archive_cmds_need_lc=yes
9209 allow_undefined_flag=$lt_save_allow_undefined_flag
9211 cat conftest.err 1>&5
9214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
9215 $as_echo "$archive_cmds_need_lc" >&6; }
9222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9223 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9225 libname_spec='lib$name'
9233 shlibpath_overrides_runpath=unknown
9235 dynamic_linker="$host_os ld.so"
9236 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9237 if test "$GCC" = yes; then
9238 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9239 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9240 # if the path contains ";" then we assume it to be the separator
9241 # otherwise default to the standard path separator (i.e. ":") - it is
9242 # assumed that no part of a normal pathname contains ";" but that should
9243 # okay in the real world where ";" in dirpaths is itself problematic.
9244 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9246 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9249 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9251 need_lib_prefix=unknown
9252 hardcode_into_libs=no
9254 # when you set need_version to no, make sure it does not cause -set_version
9255 # flags to be left without arguments
9256 need_version=unknown
9261 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9262 shlibpath_var=LIBPATH
9264 # AIX 3 has no versioning support, so we append a major version to the name.
9265 soname_spec='${libname}${release}${shared_ext}$major'
9272 hardcode_into_libs=yes
9273 if test "$host_cpu" = ia64; then
9274 # AIX 5 supports IA64
9275 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9276 shlibpath_var=LD_LIBRARY_PATH
9278 # With GCC up to 2.95.x, collect2 would create an import file
9279 # for dependence libraries. The import file would start with
9280 # the line `#! .'. This would cause the generated library to
9281 # depend on `.', always an invalid library. This was fixed in
9282 # development snapshots of GCC prior to 3.0.
9284 aix4 | aix4.[01] | aix4.[01].*)
9285 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9287 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9294 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9295 # soname into executable. Probably we can add versioning support to
9296 # collect2, so additional links can be useful in future.
9297 if test "$aix_use_runtimelinking" = yes; then
9298 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9299 # instead of lib<name>.a to let people know that these are not
9300 # typical AIX shared libraries.
9301 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9303 # We preserve .a as extension for shared libraries through AIX4.2
9304 # and later when we are not doing run time linking.
9305 library_names_spec='${libname}${release}.a $libname.a'
9306 soname_spec='${libname}${release}${shared_ext}$major'
9308 shlibpath_var=LIBPATH
9313 library_names_spec='$libname.ixlibrary $libname.a'
9314 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9315 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'
9319 library_names_spec='${libname}${shared_ext}'
9320 dynamic_linker="$host_os ld.so"
9321 shlibpath_var=LIBRARY_PATH
9327 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9328 soname_spec='${libname}${release}${shared_ext}$major'
9329 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9330 shlibpath_var=LD_LIBRARY_PATH
9331 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9332 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9333 # the default ld.so.conf also contains /usr/contrib/lib and
9334 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9335 # libtool to hard-code these into programs
9338 cygwin* | mingw* | pw32*)
9339 version_type=windows
9344 case $GCC,$host_os in
9345 yes,cygwin* | yes,mingw* | yes,pw32*)
9346 library_names_spec='$libname.dll.a'
9347 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9348 postinstall_cmds='base_file=`basename \${file}`~
9349 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9350 dldir=$destdir/`dirname \$dlpath`~
9351 test -d \$dldir || mkdir -p \$dldir~
9352 $install_prog $dir/$dlname \$dldir/$dlname~
9353 chmod a+x \$dldir/$dlname'
9354 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9355 dlpath=$dir/\$dldll~
9357 shlibpath_overrides_runpath=yes
9361 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9362 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9363 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9366 # MinGW DLLs use traditional 'lib' prefix
9367 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9368 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9369 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9370 # It is most probably a Windows format PATH printed by
9371 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9372 # path with ; separators, and with drive letters. We can handle the
9373 # drive letters (cygwin fileutils understands them), so leave them,
9374 # especially as we might pass files found there to a mingw objdump,
9375 # which wouldn't understand a cygwinified path. Ahh.
9376 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9378 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9382 # pw32 DLLs use 'pw' prefix rather than 'lib'
9383 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9389 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9392 dynamic_linker='Win32 ld.exe'
9393 # FIXME: first we should search . and the directory the executable is in
9397 darwin* | rhapsody*)
9398 dynamic_linker="$host_os dyld"
9402 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9403 soname_spec='${libname}${release}${major}$shared_ext'
9404 shlibpath_overrides_runpath=yes
9405 shlibpath_var=DYLD_LIBRARY_PATH
9406 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9407 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9408 if test "$GCC" = yes; then
9409 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"`
9411 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9413 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9420 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9421 soname_spec='${libname}${release}${shared_ext}$major'
9422 shlibpath_var=LD_LIBRARY_PATH
9433 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9434 soname_spec='${libname}${release}${shared_ext}$major'
9435 shlibpath_var=LD_LIBRARY_PATH
9436 shlibpath_overrides_runpath=no
9437 hardcode_into_libs=yes
9438 dynamic_linker='GNU ld.so'
9441 freebsd* | dragonfly*)
9442 # DragonFly does not have aout. When/if they implement a new
9443 # versioning mechanism, adjust this.
9444 if test -x /usr/bin/objformat; then
9445 objformat=`/usr/bin/objformat`
9448 freebsd[123]*) objformat=aout ;;
9452 version_type=freebsd-$objformat
9453 case $version_type in
9455 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9460 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9464 shlibpath_var=LD_LIBRARY_PATH
9467 shlibpath_overrides_runpath=yes
9469 freebsd3.[01]* | freebsdelf3.[01]*)
9470 shlibpath_overrides_runpath=yes
9471 hardcode_into_libs=yes
9473 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9474 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9475 shlibpath_overrides_runpath=no
9476 hardcode_into_libs=yes
9478 freebsd*) # from 4.6 on
9479 shlibpath_overrides_runpath=yes
9480 hardcode_into_libs=yes
9489 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9490 soname_spec='${libname}${release}${shared_ext}$major'
9491 shlibpath_var=LD_LIBRARY_PATH
9492 hardcode_into_libs=yes
9495 hpux9* | hpux10* | hpux11*)
9496 # Give a soname corresponding to the major version so that dld.sl refuses to
9497 # link against other versions.
9504 hardcode_into_libs=yes
9505 dynamic_linker="$host_os dld.so"
9506 shlibpath_var=LD_LIBRARY_PATH
9507 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9508 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9509 soname_spec='${libname}${release}${shared_ext}$major'
9510 if test "X$HPUX_IA64_MODE" = X32; then
9511 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9513 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9515 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9519 hardcode_into_libs=yes
9520 dynamic_linker="$host_os dld.sl"
9521 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9522 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9523 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9524 soname_spec='${libname}${release}${shared_ext}$major'
9525 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9526 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9530 dynamic_linker="$host_os dld.sl"
9531 shlibpath_var=SHLIB_PATH
9532 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9533 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9534 soname_spec='${libname}${release}${shared_ext}$major'
9537 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9538 postinstall_cmds='chmod 555 $lib'
9545 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9546 soname_spec='${libname}${release}${shared_ext}$major'
9547 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9548 shlibpath_var=LD_LIBRARY_PATH
9549 shlibpath_overrides_runpath=no
9550 hardcode_into_libs=yes
9553 irix5* | irix6* | nonstopux*)
9555 nonstopux*) version_type=nonstopux ;;
9557 if test "$lt_cv_prog_gnu_ld" = yes; then
9565 soname_spec='${libname}${release}${shared_ext}$major'
9566 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9568 irix5* | nonstopux*)
9572 case $LD in # libtool.m4 will add one of these switches to LD
9573 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9574 libsuff= shlibsuff= libmagic=32-bit;;
9575 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9576 libsuff=32 shlibsuff=N32 libmagic=N32;;
9577 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9578 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9579 *) libsuff= shlibsuff= libmagic=never-match;;
9583 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9584 shlibpath_overrides_runpath=no
9585 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9586 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9587 hardcode_into_libs=yes
9590 # No shared lib support for Linux oldld, aout, or coff.
9591 linux*oldld* | linux*aout* | linux*coff*)
9595 # This must be Linux ELF.
9600 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9601 soname_spec='${libname}${release}${shared_ext}$major'
9602 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9603 shlibpath_var=LD_LIBRARY_PATH
9604 shlibpath_overrides_runpath=no
9605 # This implies no fast_install, which is unacceptable.
9606 # Some rework will be needed to allow for fast_install
9607 # before this can be enabled.
9608 hardcode_into_libs=yes
9610 # Append ld.so.conf contents to the search path
9611 if test -f /etc/ld.so.conf; then
9612 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9613 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9616 # We used to test for /lib/ld.so.1 and disable shared libraries on
9617 # powerpc, because MkLinux only supported shared libraries with the
9618 # GNU dynamic linker. Since this was broken with cross compilers,
9619 # most powerpc-linux boxes support dynamic linking these days and
9620 # people can always --disable-shared, the test was removed, and we
9621 # assume the GNU/Linux dynamic linker is in use.
9622 dynamic_linker='GNU/Linux ld.so'
9629 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9630 soname_spec='${libname}${release}${shared_ext}$major'
9631 shlibpath_var=LD_LIBRARY_PATH
9632 shlibpath_overrides_runpath=no
9633 hardcode_into_libs=yes
9634 dynamic_linker='GNU ld.so'
9641 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9642 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9643 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9644 dynamic_linker='NetBSD (a.out) ld.so'
9646 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9647 soname_spec='${libname}${release}${shared_ext}$major'
9648 dynamic_linker='NetBSD ld.elf_so'
9650 shlibpath_var=LD_LIBRARY_PATH
9651 shlibpath_overrides_runpath=yes
9652 hardcode_into_libs=yes
9657 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9658 shlibpath_var=LD_LIBRARY_PATH
9659 shlibpath_overrides_runpath=yes
9666 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9667 soname_spec='${libname}${release}${shared_ext}$major'
9668 shlibpath_var=LD_LIBRARY_PATH
9669 shlibpath_overrides_runpath=yes
9674 sys_lib_dlsearch_path_spec="/usr/lib"
9676 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9678 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9679 *) need_version=no ;;
9681 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9682 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9683 shlibpath_var=LD_LIBRARY_PATH
9684 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9686 openbsd2.[89] | openbsd2.[89].*)
9687 shlibpath_overrides_runpath=no
9690 shlibpath_overrides_runpath=yes
9694 shlibpath_overrides_runpath=yes
9699 libname_spec='$name'
9702 library_names_spec='$libname${shared_ext} $libname.a'
9703 dynamic_linker='OS/2 ld.exe'
9704 shlibpath_var=LIBPATH
9707 osf3* | osf4* | osf5*)
9711 soname_spec='${libname}${release}${shared_ext}$major'
9712 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9713 shlibpath_var=LD_LIBRARY_PATH
9714 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9715 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9722 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9723 soname_spec='${libname}${release}${shared_ext}$major'
9724 shlibpath_var=LD_LIBRARY_PATH
9725 shlibpath_overrides_runpath=yes
9726 hardcode_into_libs=yes
9727 # ldd complains unless libraries are executable
9728 postinstall_cmds='chmod +x $lib'
9733 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9734 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9735 shlibpath_var=LD_LIBRARY_PATH
9736 shlibpath_overrides_runpath=yes
9737 if test "$with_gnu_ld" = yes; then
9745 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9746 soname_spec='${libname}${release}${shared_ext}$major'
9747 shlibpath_var=LD_LIBRARY_PATH
9748 case $host_vendor in
9750 shlibpath_overrides_runpath=no
9752 export_dynamic_flag_spec='${wl}-Blargedynsym'
9753 runpath_var=LD_RUN_PATH
9761 shlibpath_overrides_runpath=no
9762 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9768 if test -d /usr/nec ;then
9770 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9771 soname_spec='$libname${shared_ext}.$major'
9772 shlibpath_var=LD_LIBRARY_PATH
9776 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9777 version_type=freebsd-elf
9780 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9781 soname_spec='${libname}${release}${shared_ext}$major'
9782 shlibpath_var=LD_LIBRARY_PATH
9783 hardcode_into_libs=yes
9784 if test "$with_gnu_ld" = yes; then
9785 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9786 shlibpath_overrides_runpath=no
9788 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9789 shlibpath_overrides_runpath=yes
9792 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9796 sys_lib_dlsearch_path_spec='/usr/lib'
9801 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9802 soname_spec='${libname}${release}${shared_ext}$major'
9803 shlibpath_var=LD_LIBRARY_PATH
9810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
9811 $as_echo "$dynamic_linker" >&6; }
9812 test "$dynamic_linker" = no && can_build_shared=no
9814 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9815 if test "$GCC" = yes; then
9816 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
9820 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9822 if test -n "$hardcode_libdir_flag_spec" || \
9823 test -n "$runpath_var" || \
9824 test "X$hardcode_automatic" = "Xyes" ; then
9826 # We can hardcode non-existant directories.
9827 if test "$hardcode_direct" != no &&
9828 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9829 # have to relink, otherwise we might link with an installed library
9830 # when we should be linking with a yet-to-be-installed one
9831 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9832 test "$hardcode_minus_L" != no; then
9833 # Linking always hardcodes the temporary library directory.
9834 hardcode_action=relink
9836 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9837 hardcode_action=immediate
9840 # We cannot hardcode anything, or else we can only hardcode existing
9842 hardcode_action=unsupported
9844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
9845 $as_echo "$hardcode_action" >&6; }
9847 if test "$hardcode_action" = relink; then
9848 # Fast installation is not supported
9849 enable_fast_install=no
9850 elif test "$shlibpath_overrides_runpath" = yes ||
9851 test "$enable_shared" = no; then
9852 # Fast installation is not necessary
9853 enable_fast_install=needless
9858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
9859 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
9860 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9861 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9862 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9864 $as_echo "yes" >&6; }
9866 # FIXME - insert some real tests, host_os isn't really good enough
9869 if test -n "$STRIP" ; then
9870 striplib="$STRIP -x"
9871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9872 $as_echo "yes" >&6; }
9874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9875 $as_echo "no" >&6; }
9879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9880 $as_echo "no" >&6; }
9885 if test "x$enable_dlopen" != xyes; then
9886 enable_dlopen=unknown
9887 enable_dlopen_self=unknown
9888 enable_dlopen_self_static=unknown
9895 lt_cv_dlopen="load_add_on"
9897 lt_cv_dlopen_self=yes
9901 lt_cv_dlopen="LoadLibrary"
9906 lt_cv_dlopen="dlopen"
9911 # if libdl is installed we need to link against it
9912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9913 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9914 if ${ac_cv_lib_dl_dlopen+:} false; then :
9915 $as_echo_n "(cached) " >&6
9917 ac_check_lib_save_LIBS=$LIBS
9919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9920 /* end confdefs.h. */
9922 /* Override any GCC internal prototype to avoid an error.
9923 Use char because int might match the return type of a GCC
9924 builtin and then its argument prototype would still apply. */
9937 if ac_fn_c_try_link "$LINENO"; then :
9938 ac_cv_lib_dl_dlopen=yes
9940 ac_cv_lib_dl_dlopen=no
9942 rm -f core conftest.err conftest.$ac_objext \
9943 conftest$ac_exeext conftest.$ac_ext
9944 LIBS=$ac_check_lib_save_LIBS
9946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9947 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9948 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
9949 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9954 lt_cv_dlopen_self=yes
9961 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
9962 if test "x$ac_cv_func_shl_load" = xyes; then :
9963 lt_cv_dlopen="shl_load"
9965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
9966 $as_echo_n "checking for shl_load in -ldld... " >&6; }
9967 if ${ac_cv_lib_dld_shl_load+:} false; then :
9968 $as_echo_n "(cached) " >&6
9970 ac_check_lib_save_LIBS=$LIBS
9972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9973 /* end confdefs.h. */
9975 /* Override any GCC internal prototype to avoid an error.
9976 Use char because int might match the return type of a GCC
9977 builtin and then its argument prototype would still apply. */
9990 if ac_fn_c_try_link "$LINENO"; then :
9991 ac_cv_lib_dld_shl_load=yes
9993 ac_cv_lib_dld_shl_load=no
9995 rm -f core conftest.err conftest.$ac_objext \
9996 conftest$ac_exeext conftest.$ac_ext
9997 LIBS=$ac_check_lib_save_LIBS
9999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10000 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10001 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10002 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10004 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10005 if test "x$ac_cv_func_dlopen" = xyes; then :
10006 lt_cv_dlopen="dlopen"
10008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10009 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10010 if ${ac_cv_lib_dl_dlopen+:} false; then :
10011 $as_echo_n "(cached) " >&6
10013 ac_check_lib_save_LIBS=$LIBS
10015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10016 /* end confdefs.h. */
10018 /* Override any GCC internal prototype to avoid an error.
10019 Use char because int might match the return type of a GCC
10020 builtin and then its argument prototype would still apply. */
10033 if ac_fn_c_try_link "$LINENO"; then :
10034 ac_cv_lib_dl_dlopen=yes
10036 ac_cv_lib_dl_dlopen=no
10038 rm -f core conftest.err conftest.$ac_objext \
10039 conftest$ac_exeext conftest.$ac_ext
10040 LIBS=$ac_check_lib_save_LIBS
10042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10043 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10044 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10045 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10048 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10049 if ${ac_cv_lib_svld_dlopen+:} false; then :
10050 $as_echo_n "(cached) " >&6
10052 ac_check_lib_save_LIBS=$LIBS
10053 LIBS="-lsvld $LIBS"
10054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10055 /* end confdefs.h. */
10057 /* Override any GCC internal prototype to avoid an error.
10058 Use char because int might match the return type of a GCC
10059 builtin and then its argument prototype would still apply. */
10072 if ac_fn_c_try_link "$LINENO"; then :
10073 ac_cv_lib_svld_dlopen=yes
10075 ac_cv_lib_svld_dlopen=no
10077 rm -f core conftest.err conftest.$ac_objext \
10078 conftest$ac_exeext conftest.$ac_ext
10079 LIBS=$ac_check_lib_save_LIBS
10081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10082 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10083 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
10084 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10087 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10088 if ${ac_cv_lib_dld_dld_link+:} false; then :
10089 $as_echo_n "(cached) " >&6
10091 ac_check_lib_save_LIBS=$LIBS
10093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10094 /* end confdefs.h. */
10096 /* Override any GCC internal prototype to avoid an error.
10097 Use char because int might match the return type of a GCC
10098 builtin and then its argument prototype would still apply. */
10106 return dld_link ();
10111 if ac_fn_c_try_link "$LINENO"; then :
10112 ac_cv_lib_dld_dld_link=yes
10114 ac_cv_lib_dld_dld_link=no
10116 rm -f core conftest.err conftest.$ac_objext \
10117 conftest$ac_exeext conftest.$ac_ext
10118 LIBS=$ac_check_lib_save_LIBS
10120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10121 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10122 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
10123 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10144 if test "x$lt_cv_dlopen" != xno; then
10150 case $lt_cv_dlopen in
10152 save_CPPFLAGS="$CPPFLAGS"
10153 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10155 save_LDFLAGS="$LDFLAGS"
10156 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10159 LIBS="$lt_cv_dlopen_libs $LIBS"
10161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10162 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10163 if ${lt_cv_dlopen_self+:} false; then :
10164 $as_echo_n "(cached) " >&6
10166 if test "$cross_compiling" = yes; then :
10167 lt_cv_dlopen_self=cross
10169 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10170 lt_status=$lt_dlunknown
10171 cat > conftest.$ac_ext <<EOF
10172 #line 10172 "configure"
10173 #include "confdefs.h"
10182 # define LT_DLGLOBAL RTLD_GLOBAL
10185 # define LT_DLGLOBAL DL_GLOBAL
10187 # define LT_DLGLOBAL 0
10191 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10192 find out it does not work in some platform. */
10193 #ifndef LT_DLLAZY_OR_NOW
10195 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10198 # define LT_DLLAZY_OR_NOW DL_LAZY
10201 # define LT_DLLAZY_OR_NOW RTLD_NOW
10204 # define LT_DLLAZY_OR_NOW DL_NOW
10206 # define LT_DLLAZY_OR_NOW 0
10214 extern "C" void exit (int);
10217 void fnord() { int i=42;}
10220 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10221 int status = $lt_dlunknown;
10225 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10226 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10227 /* dlclose (self); */
10235 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10236 (eval $ac_link) 2>&5
10238 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10239 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10240 (./conftest; exit; ) >&5 2>/dev/null
10242 case x$lt_status in
10243 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10244 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10245 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10248 # compilation failed
10249 lt_cv_dlopen_self=no
10256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10257 $as_echo "$lt_cv_dlopen_self" >&6; }
10259 if test "x$lt_cv_dlopen_self" = xyes; then
10260 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10262 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10263 if ${lt_cv_dlopen_self_static+:} false; then :
10264 $as_echo_n "(cached) " >&6
10266 if test "$cross_compiling" = yes; then :
10267 lt_cv_dlopen_self_static=cross
10269 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10270 lt_status=$lt_dlunknown
10271 cat > conftest.$ac_ext <<EOF
10272 #line 10272 "configure"
10273 #include "confdefs.h"
10282 # define LT_DLGLOBAL RTLD_GLOBAL
10285 # define LT_DLGLOBAL DL_GLOBAL
10287 # define LT_DLGLOBAL 0
10291 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10292 find out it does not work in some platform. */
10293 #ifndef LT_DLLAZY_OR_NOW
10295 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10298 # define LT_DLLAZY_OR_NOW DL_LAZY
10301 # define LT_DLLAZY_OR_NOW RTLD_NOW
10304 # define LT_DLLAZY_OR_NOW DL_NOW
10306 # define LT_DLLAZY_OR_NOW 0
10314 extern "C" void exit (int);
10317 void fnord() { int i=42;}
10320 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10321 int status = $lt_dlunknown;
10325 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10326 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10327 /* dlclose (self); */
10335 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10336 (eval $ac_link) 2>&5
10338 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10339 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10340 (./conftest; exit; ) >&5 2>/dev/null
10342 case x$lt_status in
10343 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10344 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10345 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10348 # compilation failed
10349 lt_cv_dlopen_self_static=no
10356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10357 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10360 CPPFLAGS="$save_CPPFLAGS"
10361 LDFLAGS="$save_LDFLAGS"
10366 case $lt_cv_dlopen_self in
10367 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10368 *) enable_dlopen_self=unknown ;;
10371 case $lt_cv_dlopen_self_static in
10372 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10373 *) enable_dlopen_self_static=unknown ;;
10378 # Report which library types will actually be built
10379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10380 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
10381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10382 $as_echo "$can_build_shared" >&6; }
10384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10385 $as_echo_n "checking whether to build shared libraries... " >&6; }
10386 test "$can_build_shared" = "no" && enable_shared=no
10388 # On AIX, shared libraries and static libraries use the same namespace, and
10389 # are all built from PIC.
10392 test "$enable_shared" = yes && enable_static=no
10393 if test -n "$RANLIB"; then
10394 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10395 postinstall_cmds='$RANLIB $lib'
10400 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10401 test "$enable_shared" = yes && enable_static=no
10405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10406 $as_echo "$enable_shared" >&6; }
10408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10409 $as_echo_n "checking whether to build static libraries... " >&6; }
10410 # Make sure either enable_shared or enable_static is yes.
10411 test "$enable_shared" = yes || enable_static=yes
10412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10413 $as_echo "$enable_static" >&6; }
10415 # The else clause should only fire when bootstrapping the
10416 # libtool distribution, otherwise you forgot to ship ltmain.sh
10417 # with your package, and you will get complaints that there are
10418 # no rules to generate ltmain.sh.
10419 if test -f "$ltmain"; then
10420 # See if we are running on zsh, and set the options which allow our commands through
10421 # without removal of \ escapes.
10422 if test -n "${ZSH_VERSION+set}" ; then
10423 setopt NO_GLOB_SUBST
10425 # Now quote all the things that may contain metacharacters while being
10426 # careful not to overquote the AC_SUBSTed values. We take copies of the
10427 # variables and quote the copies for generation of the libtool script.
10428 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10430 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10431 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10432 deplibs_check_method reload_flag reload_cmds need_locks \
10433 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10434 lt_cv_sys_global_symbol_to_c_name_address \
10435 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10436 old_postinstall_cmds old_postuninstall_cmds \
10440 lt_prog_compiler_wl \
10441 lt_prog_compiler_pic \
10442 lt_prog_compiler_static \
10443 lt_prog_compiler_no_builtin_flag \
10444 export_dynamic_flag_spec \
10445 thread_safe_flag_spec \
10446 whole_archive_flag_spec \
10447 enable_shared_with_static_runtimes \
10449 old_archive_from_new_cmds \
10454 compiler_lib_search_path \
10456 archive_expsym_cmds \
10458 postuninstall_cmds \
10459 old_archive_from_expsyms_cmds \
10460 allow_undefined_flag \
10461 no_undefined_flag \
10462 export_symbols_cmds \
10463 hardcode_libdir_flag_spec \
10464 hardcode_libdir_flag_spec_ld \
10465 hardcode_libdir_separator \
10466 hardcode_automatic \
10468 module_expsym_cmds \
10469 lt_cv_prog_compiler_c_o \
10471 include_expsyms; do
10474 old_archive_cmds | \
10475 old_archive_from_new_cmds | \
10477 archive_expsym_cmds | \
10479 module_expsym_cmds | \
10480 old_archive_from_expsyms_cmds | \
10481 export_symbols_cmds | \
10482 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10483 postinstall_cmds | postuninstall_cmds | \
10484 old_postinstall_cmds | old_postuninstall_cmds | \
10485 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10486 # Double-quote double-evaled strings.
10487 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10490 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10496 *'\$0 --fallback-echo"')
10497 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10501 cfgfile="${ofile}T"
10502 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10504 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ofile" >&5
10505 $as_echo "$as_me: creating $ofile" >&6;}
10507 cat <<__EOF__ >> "$cfgfile"
10510 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10511 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10512 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10514 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10515 # Free Software Foundation, Inc.
10517 # This file is part of GNU Libtool:
10518 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10520 # This program is free software; you can redistribute it and/or modify
10521 # it under the terms of the GNU General Public License as published by
10522 # the Free Software Foundation; either version 2 of the License, or
10523 # (at your option) any later version.
10525 # This program is distributed in the hope that it will be useful, but
10526 # WITHOUT ANY WARRANTY; without even the implied warranty of
10527 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10528 # General Public License for more details.
10530 # You should have received a copy of the GNU General Public License
10531 # along with this program; if not, write to the Free Software
10532 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10534 # As a special exception to the GNU General Public License, if you
10535 # distribute this file as part of a program that contains a
10536 # configuration script generated by Autoconf, you may include it under
10537 # the same distribution terms that you use for the rest of that program.
10539 # A sed program that does not truncate output.
10542 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10543 Xsed="$SED -e 1s/^X//"
10545 # The HP-UX ksh and POSIX shell print the target directory to stdout
10546 # if CDPATH is set.
10547 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10549 # The names of the tagged configurations supported by this script.
10552 # ### BEGIN LIBTOOL CONFIG
10554 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10556 # Shell to use when invoking shell scripts.
10559 # Whether or not to build shared libraries.
10560 build_libtool_libs=$enable_shared
10562 # Whether or not to build static libraries.
10563 build_old_libs=$enable_static
10565 # Whether or not to add -lc for building shared libraries.
10566 build_libtool_need_lc=$archive_cmds_need_lc
10568 # Whether or not to disallow shared libs when runtime libs are static
10569 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10571 # Whether or not to optimize for fast installation.
10572 fast_install=$enable_fast_install
10575 host_alias=$host_alias
10579 # The build system.
10580 build_alias=$build_alias
10584 # An echo program that does not interpret backslashes.
10589 AR_FLAGS=$lt_AR_FLAGS
10594 # LTCC compiler flags.
10595 LTCFLAGS=$lt_LTCFLAGS
10597 # A language-specific compiler.
10600 # Is the compiler the GNU C compiler?
10606 # The linker used to build libraries.
10609 # Whether we need hard or soft links.
10612 # A BSD-compatible nm program.
10615 # A symbol stripping program
10618 # Used to examine libraries when file_magic_cmd begins "file"
10619 MAGIC_CMD=$MAGIC_CMD
10621 # Used on cygwin: DLL creation program.
10624 # Used on cygwin: object dumper.
10627 # Used on cygwin: assembler.
10630 # The name of the directory that contains temporary libtool files.
10633 # How to create reloadable object files.
10634 reload_flag=$lt_reload_flag
10635 reload_cmds=$lt_reload_cmds
10637 # How to pass a linker flag through the compiler.
10638 wl=$lt_lt_prog_compiler_wl
10640 # Object file suffix (normally "o").
10641 objext="$ac_objext"
10643 # Old archive suffix (normally "a").
10646 # Shared library suffix (normally ".so").
10647 shrext_cmds='$shrext_cmds'
10649 # Executable file suffix (normally "").
10652 # Additional compiler flags for building library objects.
10653 pic_flag=$lt_lt_prog_compiler_pic
10656 # What is the maximum length of a command?
10657 max_cmd_len=$lt_cv_sys_max_cmd_len
10659 # Does compiler simultaneously support -c and -o options?
10660 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10662 # Must we lock files when doing compilation?
10663 need_locks=$lt_need_locks
10665 # Do we need the lib prefix for modules?
10666 need_lib_prefix=$need_lib_prefix
10668 # Do we need a version for libraries?
10669 need_version=$need_version
10671 # Whether dlopen is supported.
10672 dlopen_support=$enable_dlopen
10674 # Whether dlopen of programs is supported.
10675 dlopen_self=$enable_dlopen_self
10677 # Whether dlopen of statically linked programs is supported.
10678 dlopen_self_static=$enable_dlopen_self_static
10680 # Compiler flag to prevent dynamic linking.
10681 link_static_flag=$lt_lt_prog_compiler_static
10683 # Compiler flag to turn off builtin functions.
10684 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10686 # Compiler flag to allow reflexive dlopens.
10687 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10689 # Compiler flag to generate shared objects directly from archives.
10690 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10692 # Compiler flag to generate thread-safe objects.
10693 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10695 # Library versioning type.
10696 version_type=$version_type
10698 # Format of library name prefix.
10699 libname_spec=$lt_libname_spec
10701 # List of archive names. First name is the real one, the rest are links.
10702 # The last name is the one that the linker finds with -lNAME.
10703 library_names_spec=$lt_library_names_spec
10705 # The coded name of the library, if different from the real name.
10706 soname_spec=$lt_soname_spec
10708 # Commands used to build and install an old-style archive.
10710 old_archive_cmds=$lt_old_archive_cmds
10711 old_postinstall_cmds=$lt_old_postinstall_cmds
10712 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10714 # Create an old-style archive from a shared archive.
10715 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10717 # Create a temporary old-style archive to link instead of a shared archive.
10718 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10720 # Commands used to build and install a shared archive.
10721 archive_cmds=$lt_archive_cmds
10722 archive_expsym_cmds=$lt_archive_expsym_cmds
10723 postinstall_cmds=$lt_postinstall_cmds
10724 postuninstall_cmds=$lt_postuninstall_cmds
10726 # Commands used to build a loadable module (assumed same as above if empty)
10727 module_cmds=$lt_module_cmds
10728 module_expsym_cmds=$lt_module_expsym_cmds
10730 # Commands to strip libraries.
10731 old_striplib=$lt_old_striplib
10732 striplib=$lt_striplib
10734 # Dependencies to place before the objects being linked to create a
10736 predep_objects=$lt_predep_objects
10738 # Dependencies to place after the objects being linked to create a
10740 postdep_objects=$lt_postdep_objects
10742 # Dependencies to place before the objects being linked to create a
10744 predeps=$lt_predeps
10746 # Dependencies to place after the objects being linked to create a
10748 postdeps=$lt_postdeps
10750 # The library search path used internally by the compiler when linking
10751 # a shared library.
10752 compiler_lib_search_path=$lt_compiler_lib_search_path
10754 # Method to check whether dependent libraries are shared objects.
10755 deplibs_check_method=$lt_deplibs_check_method
10757 # Command to use when deplibs_check_method == file_magic.
10758 file_magic_cmd=$lt_file_magic_cmd
10760 # Flag that allows shared libraries with undefined symbols to be built.
10761 allow_undefined_flag=$lt_allow_undefined_flag
10763 # Flag that forces no undefined symbols.
10764 no_undefined_flag=$lt_no_undefined_flag
10766 # Commands used to finish a libtool library installation in a directory.
10767 finish_cmds=$lt_finish_cmds
10769 # Same as above, but a single script fragment to be evaled but not shown.
10770 finish_eval=$lt_finish_eval
10772 # Take the output of nm and produce a listing of raw symbols and C names.
10773 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10775 # Transform the output of nm in a proper C declaration
10776 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10778 # Transform the output of nm in a C name address pair
10779 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10781 # This is the shared library runtime path variable.
10782 runpath_var=$runpath_var
10784 # This is the shared library path variable.
10785 shlibpath_var=$shlibpath_var
10787 # Is shlibpath searched before the hard-coded library search path?
10788 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10790 # How to hardcode a shared library path into an executable.
10791 hardcode_action=$hardcode_action
10793 # Whether we should hardcode library paths into libraries.
10794 hardcode_into_libs=$hardcode_into_libs
10796 # Flag to hardcode \$libdir into a binary during linking.
10797 # This must work even if \$libdir does not exist.
10798 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10800 # If ld is used when linking, flag to hardcode \$libdir into
10801 # a binary during linking. This must work even if \$libdir does
10803 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10805 # Whether we need a single -rpath flag with a separated argument.
10806 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10808 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10809 # resulting binary.
10810 hardcode_direct=$hardcode_direct
10812 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10813 # resulting binary.
10814 hardcode_minus_L=$hardcode_minus_L
10816 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10817 # the resulting binary.
10818 hardcode_shlibpath_var=$hardcode_shlibpath_var
10820 # Set to yes if building a shared library automatically hardcodes DIR into the library
10821 # and all subsequent libraries and executables linked against it.
10822 hardcode_automatic=$hardcode_automatic
10824 # Variables whose values should be saved in libtool wrapper scripts and
10825 # restored at relink time.
10826 variables_saved_for_relink="$variables_saved_for_relink"
10828 # Whether libtool must link a program against all its dependency libraries.
10829 link_all_deplibs=$link_all_deplibs
10831 # Compile-time system search path for libraries
10832 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10834 # Run-time system search path for libraries
10835 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10837 # Fix the shell variable \$srcfile for the compiler.
10838 fix_srcfile_path="$fix_srcfile_path"
10840 # Set to yes if exported symbols are required.
10841 always_export_symbols=$always_export_symbols
10843 # The commands to list exported symbols.
10844 export_symbols_cmds=$lt_export_symbols_cmds
10846 # The commands to extract the exported symbol list from a shared archive.
10847 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10849 # Symbols that should not be listed in the preloaded symbols.
10850 exclude_expsyms=$lt_exclude_expsyms
10852 # Symbols that must always be exported.
10853 include_expsyms=$lt_include_expsyms
10855 # ### END LIBTOOL CONFIG
10862 cat <<\EOF >> "$cfgfile"
10864 # AIX sometimes has problems with the GCC collect2 program. For some
10865 # reason, if we set the COLLECT_NAMES environment variable, the problems
10866 # vanish in a puff of smoke.
10867 if test "X${COLLECT_NAMES+set}" != Xset; then
10869 export COLLECT_NAMES
10875 # We use sed instead of cat because bash on DJGPP gets confused if
10876 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10877 # text mode, it properly converts lines to CR/LF. This bash problem
10878 # is reportedly fixed, but why not run on old versions too?
10879 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10881 mv -f "$cfgfile" "$ofile" || \
10882 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10886 # If there is no Makefile yet, we rely on a make rule to execute
10887 # `config.status --recheck' to rerun these tests and create the
10888 # libtool script then.
10889 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10890 if test -f "$ltmain_in"; then
10891 test -f Makefile && make "$ltmain"
10897 ac_cpp='$CPP $CPPFLAGS'
10898 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10899 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10900 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10905 # Check whether --with-tags was given.
10906 if test "${with_tags+set}" = set; then :
10907 withval=$with_tags; tagnames="$withval"
10911 if test -f "$ltmain" && test -n "$tagnames"; then
10912 if test ! -f "${ofile}"; then
10913 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: output file \`$ofile' does not exist" >&5
10914 $as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10917 if test -z "$LTCC"; then
10918 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10919 if test -z "$LTCC"; then
10920 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10921 $as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10923 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10924 $as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10927 if test -z "$LTCFLAGS"; then
10928 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10931 # Extract list of available tagged configurations in $ofile.
10932 # Note that this assumes the entire list is on one line.
10933 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10935 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10936 for tagname in $tagnames; do
10938 # Check whether tagname contains only valid characters
10939 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10941 *) as_fn_error $? "invalid tag name: $tagname" "$LINENO" 5
10945 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10947 as_fn_error $? "tag name \"$tagname\" already exists" "$LINENO" 5
10950 # Update the list of available tags.
10951 if test -n "$tagname"; then
10952 echo appending configuration tag \"$tagname\" to $ofile
10956 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10957 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10958 (test "X$CXX" != "Xg++"))) ; then
10960 ac_cpp='$CXXCPP $CPPFLAGS'
10961 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10962 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10963 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10968 archive_cmds_need_lc_CXX=no
10969 allow_undefined_flag_CXX=
10970 always_export_symbols_CXX=no
10971 archive_expsym_cmds_CXX=
10972 export_dynamic_flag_spec_CXX=
10973 hardcode_direct_CXX=no
10974 hardcode_libdir_flag_spec_CXX=
10975 hardcode_libdir_flag_spec_ld_CXX=
10976 hardcode_libdir_separator_CXX=
10977 hardcode_minus_L_CXX=no
10978 hardcode_shlibpath_var_CXX=unsupported
10979 hardcode_automatic_CXX=no
10981 module_expsym_cmds_CXX=
10982 link_all_deplibs_CXX=unknown
10983 old_archive_cmds_CXX=$old_archive_cmds
10984 no_undefined_flag_CXX=
10985 whole_archive_flag_spec_CXX=
10986 enable_shared_with_static_runtimes_CXX=no
10988 # Dependencies to place before and after the object being linked:
10989 predep_objects_CXX=
10990 postdep_objects_CXX=
10993 compiler_lib_search_path_CXX=
10995 # Source file extension for C++ test sources.
10998 # Object file extension for compiled C++ test sources.
11002 # Code to be used in simple compile tests
11003 lt_simple_compile_test_code="int some_variable = 0;\n"
11005 # Code to be used in simple link tests
11006 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
11008 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11010 # If no C compiler was specified, use CC.
11013 # If no C compiler flags were specified, use CFLAGS.
11014 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11016 # Allow CC to be a program name with arguments.
11020 # save warnings/boilerplate of simple test code
11021 ac_outfile=conftest.$ac_objext
11022 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
11023 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11024 _lt_compiler_boilerplate=`cat conftest.err`
11027 ac_outfile=conftest.$ac_objext
11028 printf "$lt_simple_link_test_code" >conftest.$ac_ext
11029 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11030 _lt_linker_boilerplate=`cat conftest.err`
11034 # Allow CC to be a program name with arguments.
11039 lt_save_with_gnu_ld=$with_gnu_ld
11040 lt_save_path_LD=$lt_cv_path_LD
11041 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11042 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11044 $as_unset lt_cv_prog_gnu_ld
11046 if test -n "${lt_cv_path_LDCXX+set}"; then
11047 lt_cv_path_LD=$lt_cv_path_LDCXX
11049 $as_unset lt_cv_path_LD
11051 test -z "${LDCXX+set}" || LD=$LDCXX
11055 for cc_temp in $compiler""; do
11057 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11058 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11063 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11066 # We don't want -fno-exception wen compiling C++ code, so set the
11067 # no_builtin_flag separately
11068 if test "$GXX" = yes; then
11069 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11071 lt_prog_compiler_no_builtin_flag_CXX=
11074 if test "$GXX" = yes; then
11075 # Set up default GNU C++ configuration
11078 # Check whether --with-gnu-ld was given.
11079 if test "${with_gnu_ld+set}" = set; then :
11080 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11086 if test "$GCC" = yes; then
11087 # Check if gcc -print-prog-name=ld gives a path.
11088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11089 $as_echo_n "checking for ld used by $CC... " >&6; }
11092 # gcc leaves a trailing carriage return which upsets mingw
11093 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11095 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11098 # Accept absolute paths.
11100 re_direlt='/[^/][^/]*/\.\./'
11101 # Canonicalize the pathname of ld
11102 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11103 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11104 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11106 test -z "$LD" && LD="$ac_prog"
11109 # If it fails, then pretend we aren't using GCC.
11113 # If it is relative, then search for the first ld in PATH.
11114 with_gnu_ld=unknown
11117 elif test "$with_gnu_ld" = yes; then
11118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11119 $as_echo_n "checking for GNU ld... " >&6; }
11121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11122 $as_echo_n "checking for non-GNU ld... " >&6; }
11124 if ${lt_cv_path_LD+:} false; then :
11125 $as_echo_n "(cached) " >&6
11127 if test -z "$LD"; then
11128 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11129 for ac_dir in $PATH; do
11131 test -z "$ac_dir" && ac_dir=.
11132 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11133 lt_cv_path_LD="$ac_dir/$ac_prog"
11134 # Check to see if the program is GNU ld. I'd rather use --version,
11135 # but apparently some variants of GNU ld only accept -v.
11136 # Break only if it was the GNU/non-GNU ld that we prefer.
11137 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11138 *GNU* | *'with BFD'*)
11139 test "$with_gnu_ld" != no && break
11142 test "$with_gnu_ld" != yes && break
11149 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11153 LD="$lt_cv_path_LD"
11154 if test -n "$LD"; then
11155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11156 $as_echo "$LD" >&6; }
11158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11159 $as_echo "no" >&6; }
11161 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
11162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11163 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11164 if ${lt_cv_prog_gnu_ld+:} false; then :
11165 $as_echo_n "(cached) " >&6
11167 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11168 case `$LD -v 2>&1 </dev/null` in
11169 *GNU* | *'with BFD'*)
11170 lt_cv_prog_gnu_ld=yes
11173 lt_cv_prog_gnu_ld=no
11177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11178 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
11179 with_gnu_ld=$lt_cv_prog_gnu_ld
11183 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11184 # archiving commands below assume that GNU ld is being used.
11185 if test "$with_gnu_ld" = yes; then
11186 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11187 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'
11189 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11190 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11192 # If archive_cmds runs LD, not CC, wlarc should be empty
11193 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11194 # investigate it a little bit more. (MM)
11197 # ancient GNU ld didn't support --whole-archive et. al.
11198 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11199 grep 'no-whole-archive' > /dev/null; then
11200 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11202 whole_archive_flag_spec_CXX=
11208 # A generic and very simple default shared library creation
11209 # command for GNU C++ for the case where it uses the native
11210 # linker, instead of GNU ld. If possible, this setting should
11211 # overridden to take advantage of the native linker features on
11212 # the platform it is being used on.
11213 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11216 # Commands to make compiler produce verbose output that lists
11217 # what "hidden" libraries, object files and flags are used when
11218 # linking a shared library.
11219 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11227 # PORTME: fill in a description of your system's C++ link characteristics
11228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11229 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11233 # FIXME: insert proper C++ library support
11237 if test "$host_cpu" = ia64; then
11238 # On IA64, the linker does run time linking by default, so we don't
11239 # have to do anything special.
11240 aix_use_runtimelinking=no
11241 exp_sym_flag='-Bexport'
11244 aix_use_runtimelinking=no
11246 # Test if we are trying to use run time linking or normal
11247 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11248 # need to do runtime linking.
11249 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11250 for ld_flag in $LDFLAGS; do
11253 aix_use_runtimelinking=yes
11261 exp_sym_flag='-bexport'
11262 no_entry_flag='-bnoentry'
11265 # When large executables or shared objects are built, AIX ld can
11266 # have problems creating the table of contents. If linking a library
11267 # or program results in "error TOC overflow" add -mminimal-toc to
11268 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11269 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11271 archive_cmds_CXX=''
11272 hardcode_direct_CXX=yes
11273 hardcode_libdir_separator_CXX=':'
11274 link_all_deplibs_CXX=yes
11276 if test "$GXX" = yes; then
11277 case $host_os in aix4.[012]|aix4.[012].*)
11278 # We only want to do this on AIX 4.2 and lower, the check
11279 # below for broken collect2 doesn't work under 4.3+
11280 collect2name=`${CC} -print-prog-name=collect2`
11281 if test -f "$collect2name" && \
11282 strings "$collect2name" | grep resolve_lib_name >/dev/null
11284 # We have reworked collect2
11285 hardcode_direct_CXX=yes
11287 # We have old collect2
11288 hardcode_direct_CXX=unsupported
11289 # It fails to find uninstalled libraries when the uninstalled
11290 # path is not listed in the libpath. Setting hardcode_minus_L
11291 # to unsupported forces relinking
11292 hardcode_minus_L_CXX=yes
11293 hardcode_libdir_flag_spec_CXX='-L$libdir'
11294 hardcode_libdir_separator_CXX=
11298 shared_flag='-shared'
11299 if test "$aix_use_runtimelinking" = yes; then
11300 shared_flag="$shared_flag "'${wl}-G'
11304 if test "$host_cpu" = ia64; then
11305 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11306 # chokes on -Wl,-G. The following line is correct:
11309 if test "$aix_use_runtimelinking" = yes; then
11310 shared_flag='${wl}-G'
11312 shared_flag='${wl}-bM:SRE'
11317 # It seems that -bexpall does not export symbols beginning with
11318 # underscore (_), so it is better to generate a list of symbols to export.
11319 always_export_symbols_CXX=yes
11320 if test "$aix_use_runtimelinking" = yes; then
11321 # Warning - without using the other runtime loading flags (-brtl),
11322 # -berok will link without error, but may produce a broken library.
11323 allow_undefined_flag_CXX='-berok'
11324 # Determine the default libpath from the value encoded in an empty executable.
11325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11326 /* end confdefs.h. */
11336 if ac_fn_cxx_try_link "$LINENO"; then :
11338 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11340 # Check for a 64-bit object if we didn't find anything.
11341 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; }
11344 rm -f core conftest.err conftest.$ac_objext \
11345 conftest$ac_exeext conftest.$ac_ext
11346 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11348 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11350 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
11352 if test "$host_cpu" = ia64; then
11353 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11354 allow_undefined_flag_CXX="-z nodefs"
11355 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
11357 # Determine the default libpath from the value encoded in an empty executable.
11358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11359 /* end confdefs.h. */
11369 if ac_fn_cxx_try_link "$LINENO"; then :
11371 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11373 # Check for a 64-bit object if we didn't find anything.
11374 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; }
11377 rm -f core conftest.err conftest.$ac_objext \
11378 conftest$ac_exeext conftest.$ac_ext
11379 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11381 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11382 # Warning - without using the other run time loading flags,
11383 # -berok will link without error, but may produce a broken library.
11384 no_undefined_flag_CXX=' ${wl}-bernotok'
11385 allow_undefined_flag_CXX=' ${wl}-berok'
11386 # Exported symbols can be pulled into shared objects from archives
11387 whole_archive_flag_spec_CXX='$convenience'
11388 archive_cmds_need_lc_CXX=yes
11389 # This is similar to how AIX traditionally builds its shared libraries.
11390 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
11396 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11397 allow_undefined_flag_CXX=unsupported
11398 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11399 # support --undefined. This deserves some investigation. FIXME
11400 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11407 case $cc_basename in
11409 # FIXME: insert proper C++ library support
11415 cygwin* | mingw* | pw32*)
11416 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11417 # as there is no search path for DLLs.
11418 hardcode_libdir_flag_spec_CXX='-L$libdir'
11419 allow_undefined_flag_CXX=unsupported
11420 always_export_symbols_CXX=no
11421 enable_shared_with_static_runtimes_CXX=yes
11423 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11424 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11425 # If the export-symbols file already is a .def file (1st line
11426 # is EXPORTS), use it as is; otherwise, prepend...
11427 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11428 cp $export_symbols $output_objdir/$soname.def;
11430 echo EXPORTS > $output_objdir/$soname.def;
11431 cat $export_symbols >> $output_objdir/$soname.def;
11433 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11438 darwin* | rhapsody*)
11440 rhapsody* | darwin1.[012])
11441 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11444 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11445 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11447 case ${MACOSX_DEPLOYMENT_TARGET} in
11449 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11452 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11458 archive_cmds_need_lc_CXX=no
11459 hardcode_direct_CXX=no
11460 hardcode_automatic_CXX=yes
11461 hardcode_shlibpath_var_CXX=unsupported
11462 whole_archive_flag_spec_CXX=''
11463 link_all_deplibs_CXX=yes
11465 if test "$GXX" = yes ; then
11466 lt_int_apple_cc_single_mod=no
11467 output_verbose_link_cmd='echo'
11468 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11469 lt_int_apple_cc_single_mod=yes
11471 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11472 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11474 archive_cmds_CXX='$CC -r -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'
11476 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11477 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11478 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11479 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}'
11481 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -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}'
11483 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}'
11485 case $cc_basename in
11487 output_verbose_link_cmd='echo'
11488 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
11489 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11490 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11491 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11492 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}'
11502 case $cc_basename in
11504 # FIXME: insert proper C++ library support
11508 # Green Hills C++ Compiler
11509 # FIXME: insert proper C++ library support
11513 # FIXME: insert proper C++ library support
11519 # C++ shared libraries reported to be fairly broken before switch to ELF
11523 archive_cmds_need_lc_CXX=no
11525 freebsd* | kfreebsd*-gnu | dragonfly*)
11526 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11533 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11534 hardcode_libdir_separator_CXX=:
11535 export_dynamic_flag_spec_CXX='${wl}-E'
11536 hardcode_direct_CXX=yes
11537 hardcode_minus_L_CXX=yes # Not in the search PATH,
11538 # but as the default
11539 # location of the library.
11541 case $cc_basename in
11543 # FIXME: insert proper C++ library support
11547 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'
11548 # Commands to make compiler produce verbose output that lists
11549 # what "hidden" libraries, object files and flags are used when
11550 # linking a shared library.
11552 # There doesn't appear to be a way to prevent this compiler from
11553 # explicitly linking system object files so we need to strip them
11554 # from the output so that they don't get included in the library
11556 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'
11559 if test "$GXX" = yes; then
11560 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'
11562 # FIXME: insert proper C++ library support
11569 if test $with_gnu_ld = no; then
11570 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11571 hardcode_libdir_separator_CXX=:
11575 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11578 export_dynamic_flag_spec_CXX='${wl}-E'
11584 hardcode_direct_CXX=no
11585 hardcode_shlibpath_var_CXX=no
11588 hardcode_direct_CXX=yes
11589 hardcode_minus_L_CXX=yes # Not in the search PATH,
11590 # but as the default
11591 # location of the library.
11595 case $cc_basename in
11597 # FIXME: insert proper C++ library support
11603 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11606 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11609 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11612 # Commands to make compiler produce verbose output that lists
11613 # what "hidden" libraries, object files and flags are used when
11614 # linking a shared library.
11616 # There doesn't appear to be a way to prevent this compiler from
11617 # explicitly linking system object files so we need to strip them
11618 # from the output so that they don't get included in the library
11620 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'
11623 if test "$GXX" = yes; then
11624 if test $with_gnu_ld = no; then
11627 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11630 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11633 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'
11638 # FIXME: insert proper C++ library support
11645 hardcode_direct_CXX=no
11646 hardcode_shlibpath_var_CXX=no
11647 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11648 export_dynamic_flag_spec_CXX='${wl}-E'
11649 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11650 # Instead, shared libraries are loaded at an image base (0x10000000 by
11651 # default) and relocated if they conflict, which is a slow very memory
11652 # consuming and fragmenting process. To avoid this, we pick a random,
11653 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11654 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11655 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11656 archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11659 case $cc_basename in
11662 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 ${output_objdir}/so_locations -o $lib'
11664 # Archives containing C++ object files must be created using
11665 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11666 # necessary to make sure instantiated templates are included
11668 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11671 if test "$GXX" = yes; then
11672 if test "$with_gnu_ld" = no; then
11673 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}${output_objdir}/so_locations -o $lib'
11675 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'
11678 link_all_deplibs_CXX=yes
11681 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11682 hardcode_libdir_separator_CXX=:
11685 case $cc_basename in
11687 # Kuck and Associates, Inc. (KAI) C++ Compiler
11689 # KCC will only create a shared library if the output file
11690 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11691 # to its proper name (with version) after linking.
11692 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'
11693 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'
11694 # Commands to make compiler produce verbose output that lists
11695 # what "hidden" libraries, object files and flags are used when
11696 # linking a shared library.
11698 # There doesn't appear to be a way to prevent this compiler from
11699 # explicitly linking system object files so we need to strip them
11700 # from the output so that they don't get included in the library
11702 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'
11704 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11705 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11707 # Archives containing C++ object files must be created using
11708 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11709 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11714 # version 8.0 and above of icpc choke on multiply defined symbols
11715 # if we add $predep_objects and $postdep_objects, however 7.1 and
11716 # earlier do not add the objects themselves.
11717 case `$CC -V 2>&1` in
11719 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11720 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'
11722 *) # Version 8.0 or newer
11725 ia64*) tmp_idyn=' -i_dynamic';;
11727 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11728 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11731 archive_cmds_need_lc_CXX=no
11732 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11733 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11734 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11737 # Portland Group C++ compiler
11738 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11739 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
11741 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11742 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11743 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
11747 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11748 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'
11750 runpath_var=LD_RUN_PATH
11751 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11752 hardcode_libdir_separator_CXX=:
11754 # Commands to make compiler produce verbose output that lists
11755 # what "hidden" libraries, object files and flags are used when
11756 # linking a shared library.
11758 # There doesn't appear to be a way to prevent this compiler from
11759 # explicitly linking system object files so we need to strip them
11760 # from the output so that they don't get included in the library
11762 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'
11767 # FIXME: insert proper C++ library support
11771 # FIXME: insert proper C++ library support
11775 case $cc_basename in
11777 # FIXME: insert proper C++ library support
11781 # FIXME: insert proper C++ library support
11787 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11788 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11790 hardcode_libdir_flag_spec_CXX='-R$libdir'
11791 hardcode_direct_CXX=yes
11792 hardcode_shlibpath_var_CXX=no
11794 # Workaround some broken pre-1.5 toolchains
11795 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11798 # C++ shared libraries are fairly broken
11802 hardcode_direct_CXX=yes
11803 hardcode_shlibpath_var_CXX=no
11804 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11805 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11806 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11807 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11808 export_dynamic_flag_spec_CXX='${wl}-E'
11809 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11811 output_verbose_link_cmd='echo'
11814 case $cc_basename in
11816 # Kuck and Associates, Inc. (KAI) C++ Compiler
11818 # KCC will only create a shared library if the output file
11819 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11820 # to its proper name (with version) after linking.
11821 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'
11823 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11824 hardcode_libdir_separator_CXX=:
11826 # Archives containing C++ object files must be created using
11827 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11828 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11832 # Rational C++ 2.4.1
11833 # FIXME: insert proper C++ library support
11837 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11838 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 ${output_objdir}/so_locations -o $lib'
11840 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11841 hardcode_libdir_separator_CXX=:
11843 # Commands to make compiler produce verbose output that lists
11844 # what "hidden" libraries, object files and flags are used when
11845 # linking a shared library.
11847 # There doesn't appear to be a way to prevent this compiler from
11848 # explicitly linking system object files so we need to strip them
11849 # from the output so that they don't get included in the library
11851 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'
11854 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11855 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11856 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}${output_objdir}/so_locations -o $lib'
11858 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11859 hardcode_libdir_separator_CXX=:
11861 # Commands to make compiler produce verbose output that lists
11862 # what "hidden" libraries, object files and flags are used when
11863 # linking a shared library.
11864 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11867 # FIXME: insert proper C++ library support
11874 case $cc_basename in
11876 # Kuck and Associates, Inc. (KAI) C++ Compiler
11878 # KCC will only create a shared library if the output file
11879 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11880 # to its proper name (with version) after linking.
11881 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'
11883 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11884 hardcode_libdir_separator_CXX=:
11886 # Archives containing C++ object files must be created using
11887 # the KAI C++ compiler.
11888 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11891 # Rational C++ 2.4.1
11892 # FIXME: insert proper C++ library support
11896 allow_undefined_flag_CXX=' -expect_unresolved \*'
11897 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 ${output_objdir}/so_locations -o $lib'
11898 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11899 echo "-hidden">> $lib.exp~
11900 $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 ${output_objdir}/so_locations -o $lib~
11903 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11904 hardcode_libdir_separator_CXX=:
11906 # Commands to make compiler produce verbose output that lists
11907 # what "hidden" libraries, object files and flags are used when
11908 # linking a shared library.
11910 # There doesn't appear to be a way to prevent this compiler from
11911 # explicitly linking system object files so we need to strip them
11912 # from the output so that they don't get included in the library
11914 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'
11917 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11918 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11919 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}${output_objdir}/so_locations -o $lib'
11921 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11922 hardcode_libdir_separator_CXX=:
11924 # Commands to make compiler produce verbose output that lists
11925 # what "hidden" libraries, object files and flags are used when
11926 # linking a shared library.
11927 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11930 # FIXME: insert proper C++ library support
11937 # FIXME: insert proper C++ library support
11941 case $cc_basename in
11944 # FIXME: insert proper C++ library support
11949 # FIXME: insert proper C++ library support
11953 # FIXME: insert proper C++ library support
11959 case $cc_basename in
11961 # Sun C++ 4.2, 5.x and Centerline C++
11962 archive_cmds_need_lc_CXX=yes
11963 no_undefined_flag_CXX=' -zdefs'
11964 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11965 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11966 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11968 hardcode_libdir_flag_spec_CXX='-R$libdir'
11969 hardcode_shlibpath_var_CXX=no
11971 solaris2.[0-5] | solaris2.[0-5].*) ;;
11973 # The C++ compiler is used as linker so we must use $wl
11974 # flag to pass the commands to the underlying system
11975 # linker. We must also pass each convience library through
11976 # to the system linker between allextract/defaultextract.
11977 # The C++ compiler will combine linker options so we
11978 # cannot just pass the convience library names through
11980 # Supported since Solaris 2.6 (maybe 2.5.1?)
11981 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
11984 link_all_deplibs_CXX=yes
11986 output_verbose_link_cmd='echo'
11988 # Archives containing C++ object files must be created using
11989 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11990 # necessary to make sure instantiated templates are included
11992 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11995 # Green Hills C++ Compiler
11996 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11998 # The C++ compiler must be used to create the archive.
11999 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12002 # GNU C++ compiler with Solaris linker
12003 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12004 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12005 if $CC --version | grep -v '^2\.7' > /dev/null; then
12006 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12007 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12008 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12010 # Commands to make compiler produce verbose output that lists
12011 # what "hidden" libraries, object files and flags are used when
12012 # linking a shared library.
12013 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12015 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12017 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12018 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12019 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12021 # Commands to make compiler produce verbose output that lists
12022 # what "hidden" libraries, object files and flags are used when
12023 # linking a shared library.
12024 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12027 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12032 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12033 no_undefined_flag_CXX='${wl}-z,text'
12034 archive_cmds_need_lc_CXX=no
12035 hardcode_shlibpath_var_CXX=no
12036 runpath_var='LD_RUN_PATH'
12038 case $cc_basename in
12040 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12041 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12044 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12045 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12049 sysv5* | sco3.2v5* | sco5v6*)
12050 # Note: We can NOT use -z defs as we might desire, because we do not
12051 # link with -lc, and that would cause any symbols used from libc to
12052 # always be unresolved, which means just about no library would
12053 # ever link correctly. If we're not using GNU ld we use -z text
12054 # though, which does catch some bad symbols but isn't as heavy-handed
12056 # For security reasons, it is highly recommended that you always
12057 # use absolute paths for naming shared libraries, and exclude the
12058 # DT_RUNPATH tag from executables and libraries. But doing so
12059 # requires that you compile everything twice, which is a pain.
12060 # So that behaviour is only enabled if SCOABSPATH is set to a
12061 # non-empty value in the environment. Most likely only useful for
12062 # creating official distributions of packages.
12063 # This is a hack until libtool officially supports absolute path
12064 # names for shared libraries.
12065 no_undefined_flag_CXX='${wl}-z,text'
12066 allow_undefined_flag_CXX='${wl}-z,nodefs'
12067 archive_cmds_need_lc_CXX=no
12068 hardcode_shlibpath_var_CXX=no
12069 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12070 hardcode_libdir_separator_CXX=':'
12071 link_all_deplibs_CXX=yes
12072 export_dynamic_flag_spec_CXX='${wl}-Bexport'
12073 runpath_var='LD_RUN_PATH'
12075 case $cc_basename in
12077 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12078 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12081 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12082 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12087 case $cc_basename in
12089 # NonStop-UX NCC 3.20
12090 # FIXME: insert proper C++ library support
12094 # FIXME: insert proper C++ library support
12100 # FIXME: insert proper C++ library support
12104 # FIXME: insert proper C++ library support
12108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
12109 $as_echo "$ld_shlibs_CXX" >&6; }
12110 test "$ld_shlibs_CXX" = no && can_build_shared=no
12116 cat > conftest.$ac_ext <<EOF
12120 Foo (void) { a = 0; }
12126 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12127 (eval $ac_compile) 2>&5
12129 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12130 test $ac_status = 0; }; then
12131 # Parse the compiler output and extract the necessary
12132 # objects, libraries and library flags.
12134 # Sentinel used to keep track of whether or not we are before
12135 # the conftest object file.
12136 pre_test_object_deps_done=no
12138 # The `*' in the case matches for architectures that use `case' in
12139 # $output_verbose_cmd can trigger glob expansion during the loop
12140 # eval without this substitution.
12141 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12143 for p in `eval $output_verbose_link_cmd`; do
12147 # Some compilers place space between "-{L,R}" and the path.
12148 # Remove the space.
12149 if test $p = "-L" \
12150 || test $p = "-R"; then
12157 if test "$pre_test_object_deps_done" = no; then
12160 # Internal compiler library paths should come after those
12161 # provided the user. The postdeps already come after the
12162 # user supplied libs so there is no need to process them.
12163 if test -z "$compiler_lib_search_path_CXX"; then
12164 compiler_lib_search_path_CXX="${prev}${p}"
12166 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12169 # The "-l" case would never come before the object being
12170 # linked, so don't bother handling this case.
12173 if test -z "$postdeps_CXX"; then
12174 postdeps_CXX="${prev}${p}"
12176 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12182 # This assumes that the test object file only shows up
12183 # once in the compiler output.
12184 if test "$p" = "conftest.$objext"; then
12185 pre_test_object_deps_done=yes
12189 if test "$pre_test_object_deps_done" = no; then
12190 if test -z "$predep_objects_CXX"; then
12191 predep_objects_CXX="$p"
12193 predep_objects_CXX="$predep_objects_CXX $p"
12196 if test -z "$postdep_objects_CXX"; then
12197 postdep_objects_CXX="$p"
12199 postdep_objects_CXX="$postdep_objects_CXX $p"
12204 *) ;; # Ignore the rest.
12212 echo "libtool.m4: error: problem compiling CXX test program"
12215 $rm -f confest.$objext
12217 # PORTME: override above test on systems where it is broken
12220 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12221 # hack all around it, let's just trust "g++" to DTRT.
12222 predep_objects_CXX=
12223 postdep_objects_CXX=
12228 case $cc_basename in
12230 # Adding this requires a known-good setup of shared libraries for
12231 # Sun compiler versions before 5.6, else PIC objects from an old
12232 # archive will be linked into the output, leading to subtle bugs.
12233 postdeps_CXX='-lCstd -lCrun'
12240 case " $postdeps_CXX " in
12241 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12244 lt_prog_compiler_wl_CXX=
12245 lt_prog_compiler_pic_CXX=
12246 lt_prog_compiler_static_CXX=
12248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12249 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12251 # C++ specific cases for pic, static, wl, etc.
12252 if test "$GXX" = yes; then
12253 lt_prog_compiler_wl_CXX='-Wl,'
12254 lt_prog_compiler_static_CXX='-static'
12258 # All AIX code is PIC.
12259 if test "$host_cpu" = ia64; then
12260 # AIX 5 now supports IA64 processor
12261 lt_prog_compiler_static_CXX='-Bstatic'
12265 # FIXME: we need at least 68020 code to build shared libraries, but
12266 # adding the `-m68020' flag to GCC prevents building anything better,
12268 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12270 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12271 # PIC is the default for these OSes.
12273 mingw* | os2* | pw32*)
12274 # This hack is so that the source file can tell whether it is being
12275 # built for inclusion in a dll (and should export symbols for example).
12276 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12278 darwin* | rhapsody*)
12279 # PIC is the default on this platform
12280 # Common symbols not allowed in MH_DYLIB files
12281 lt_prog_compiler_pic_CXX='-fno-common'
12284 # DJGPP does not support shared libraries at all
12285 lt_prog_compiler_pic_CXX=
12288 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12289 # Instead, we relocate shared libraries at runtime.
12292 if test -d /usr/nec; then
12293 lt_prog_compiler_pic_CXX=-Kconform_pic
12297 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12298 # not for PA HP-UX.
12303 lt_prog_compiler_pic_CXX='-fPIC'
12308 lt_prog_compiler_pic_CXX='-fPIC'
12314 # All AIX code is PIC.
12315 if test "$host_cpu" = ia64; then
12316 # AIX 5 now supports IA64 processor
12317 lt_prog_compiler_static_CXX='-Bstatic'
12319 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12323 case $cc_basename in
12325 # Green Hills C++ Compiler
12326 # _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"
12331 # PIC is the default on this platform
12332 # Common symbols not allowed in MH_DYLIB files
12333 case $cc_basename in
12335 lt_prog_compiler_pic_CXX='-qnocommon'
12336 lt_prog_compiler_wl_CXX='-Wl,'
12341 case $cc_basename in
12343 lt_prog_compiler_pic_CXX='-KPIC'
12346 # Green Hills C++ Compiler
12347 lt_prog_compiler_pic_CXX='-pic'
12353 freebsd* | kfreebsd*-gnu | dragonfly*)
12354 # FreeBSD uses GNU C++
12356 hpux9* | hpux10* | hpux11*)
12357 case $cc_basename in
12359 lt_prog_compiler_wl_CXX='-Wl,'
12360 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12361 if test "$host_cpu" != ia64; then
12362 lt_prog_compiler_pic_CXX='+Z'
12366 lt_prog_compiler_wl_CXX='-Wl,'
12367 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12373 lt_prog_compiler_pic_CXX='+Z'
12382 # This is c89, which is MS Visual C++ (no shared libs)
12383 # Anyone wants to do a port?
12385 irix5* | irix6* | nonstopux*)
12386 case $cc_basename in
12388 lt_prog_compiler_wl_CXX='-Wl,'
12389 lt_prog_compiler_static_CXX='-non_shared'
12390 # CC pic flag -KPIC is the default.
12397 case $cc_basename in
12400 lt_prog_compiler_wl_CXX='--backend -Wl,'
12401 lt_prog_compiler_pic_CXX='-fPIC'
12405 lt_prog_compiler_wl_CXX='-Wl,'
12406 lt_prog_compiler_pic_CXX='-KPIC'
12407 lt_prog_compiler_static_CXX='-static'
12410 # Portland Group C++ compiler.
12411 lt_prog_compiler_wl_CXX='-Wl,'
12412 lt_prog_compiler_pic_CXX='-fpic'
12413 lt_prog_compiler_static_CXX='-Bstatic'
12417 # Make sure the PIC flag is empty. It appears that all Alpha
12418 # Linux and Compaq Tru64 Unix objects are PIC.
12419 lt_prog_compiler_pic_CXX=
12420 lt_prog_compiler_static_CXX='-non_shared'
12431 case $cc_basename in
12433 lt_prog_compiler_pic_CXX='-W c,exportall'
12441 osf3* | osf4* | osf5*)
12442 case $cc_basename in
12444 lt_prog_compiler_wl_CXX='--backend -Wl,'
12447 # Rational C++ 2.4.1
12448 lt_prog_compiler_pic_CXX='-pic'
12451 # Digital/Compaq C++
12452 lt_prog_compiler_wl_CXX='-Wl,'
12453 # Make sure the PIC flag is empty. It appears that all Alpha
12454 # Linux and Compaq Tru64 Unix objects are PIC.
12455 lt_prog_compiler_pic_CXX=
12456 lt_prog_compiler_static_CXX='-non_shared'
12465 case $cc_basename in
12467 # Sun C++ 4.2, 5.x and Centerline C++
12468 lt_prog_compiler_pic_CXX='-KPIC'
12469 lt_prog_compiler_static_CXX='-Bstatic'
12470 lt_prog_compiler_wl_CXX='-Qoption ld '
12473 # Green Hills C++ Compiler
12474 lt_prog_compiler_pic_CXX='-PIC'
12481 case $cc_basename in
12484 lt_prog_compiler_pic_CXX='-pic'
12485 lt_prog_compiler_static_CXX='-Bstatic'
12489 lt_prog_compiler_pic_CXX='-pic'
12496 case $cc_basename in
12498 # NonStop-UX NCC 3.20
12499 lt_prog_compiler_pic_CXX='-KPIC'
12505 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12506 case $cc_basename in
12508 lt_prog_compiler_wl_CXX='-Wl,'
12509 lt_prog_compiler_pic_CXX='-KPIC'
12510 lt_prog_compiler_static_CXX='-Bstatic'
12517 lt_prog_compiler_can_build_shared_CXX=no
12522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
12523 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
12526 # Check to make sure the PIC flag actually works.
12528 if test -n "$lt_prog_compiler_pic_CXX"; then
12530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12531 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
12532 if ${lt_prog_compiler_pic_works_CXX+:} false; then :
12533 $as_echo_n "(cached) " >&6
12535 lt_prog_compiler_pic_works_CXX=no
12536 ac_outfile=conftest.$ac_objext
12537 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12538 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12539 # Insert the option either (1) after the last *FLAGS variable, or
12540 # (2) before a word containing "conftest.", or (3) at the end.
12541 # Note that $ac_compile itself does not contain backslashes and begins
12542 # with a dollar sign (not a hyphen), so the echo should work correctly.
12543 # The option is referenced via a variable to avoid confusing sed.
12544 lt_compile=`echo "$ac_compile" | $SED \
12545 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12546 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12547 -e 's:$: $lt_compiler_flag:'`
12548 (eval echo "\"\$as_me:12548: $lt_compile\"" >&5)
12549 (eval "$lt_compile" 2>conftest.err)
12551 cat conftest.err >&5
12552 echo "$as_me:12552: \$? = $ac_status" >&5
12553 if (exit $ac_status) && test -s "$ac_outfile"; then
12554 # The compiler can only warn and ignore the option if not recognized
12555 # So say no if there are warnings other than the usual output.
12556 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12557 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12558 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12559 lt_prog_compiler_pic_works_CXX=yes
12565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_works_CXX" >&5
12566 $as_echo "$lt_prog_compiler_pic_works_CXX" >&6; }
12568 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12569 case $lt_prog_compiler_pic_CXX in
12571 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12574 lt_prog_compiler_pic_CXX=
12575 lt_prog_compiler_can_build_shared_CXX=no
12580 # For platforms which do not support PIC, -DPIC is meaningless:
12582 lt_prog_compiler_pic_CXX=
12585 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12590 # Check to make sure the static flag actually works.
12592 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12594 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12595 if ${lt_prog_compiler_static_works_CXX+:} false; then :
12596 $as_echo_n "(cached) " >&6
12598 lt_prog_compiler_static_works_CXX=no
12599 save_LDFLAGS="$LDFLAGS"
12600 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12601 printf "$lt_simple_link_test_code" > conftest.$ac_ext
12602 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12603 # The linker can only warn and ignore the option if not recognized
12604 # So say no if there are warnings
12605 if test -s conftest.err; then
12606 # Append any errors to the config.log.
12607 cat conftest.err 1>&5
12608 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12609 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12610 if diff conftest.exp conftest.er2 >/dev/null; then
12611 lt_prog_compiler_static_works_CXX=yes
12614 lt_prog_compiler_static_works_CXX=yes
12618 LDFLAGS="$save_LDFLAGS"
12621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_static_works_CXX" >&5
12622 $as_echo "$lt_prog_compiler_static_works_CXX" >&6; }
12624 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12627 lt_prog_compiler_static_CXX=
12631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12632 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12633 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
12634 $as_echo_n "(cached) " >&6
12636 lt_cv_prog_compiler_c_o_CXX=no
12637 $rm -r conftest 2>/dev/null
12641 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12643 lt_compiler_flag="-o out/conftest2.$ac_objext"
12644 # Insert the option either (1) after the last *FLAGS variable, or
12645 # (2) before a word containing "conftest.", or (3) at the end.
12646 # Note that $ac_compile itself does not contain backslashes and begins
12647 # with a dollar sign (not a hyphen), so the echo should work correctly.
12648 lt_compile=`echo "$ac_compile" | $SED \
12649 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12650 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12651 -e 's:$: $lt_compiler_flag:'`
12652 (eval echo "\"\$as_me:12652: $lt_compile\"" >&5)
12653 (eval "$lt_compile" 2>out/conftest.err)
12655 cat out/conftest.err >&5
12656 echo "$as_me:12656: \$? = $ac_status" >&5
12657 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12659 # The compiler can only warn and ignore the option if not recognized
12660 # So say no if there are warnings
12661 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12662 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12663 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12664 lt_cv_prog_compiler_c_o_CXX=yes
12669 # SGI C++ compiler will create directory out/ii_files/ for
12670 # template instantiation
12671 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12672 $rm out/* && rmdir out
12678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12679 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
12682 hard_links="nottested"
12683 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12684 # do not overwrite the value of need_locks provided by the user
12685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12686 $as_echo_n "checking if we can lock with hard links... " >&6; }
12689 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12691 ln conftest.a conftest.b 2>&5 || hard_links=no
12692 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12694 $as_echo "$hard_links" >&6; }
12695 if test "$hard_links" = no; then
12696 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12697 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12705 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12707 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12710 # If we're using GNU nm, then we don't want the "-C" option.
12711 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12712 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12713 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'
12715 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'
12719 export_symbols_cmds_CXX="$ltdll_cmds"
12722 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12725 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
12730 $as_echo "$ld_shlibs_CXX" >&6; }
12731 test "$ld_shlibs_CXX" = no && can_build_shared=no
12734 # Do we need to explicitly link libc?
12736 case "x$archive_cmds_need_lc_CXX" in
12738 # Assume -lc should be added
12739 archive_cmds_need_lc_CXX=yes
12741 if test "$enable_shared" = yes && test "$GCC" = yes; then
12742 case $archive_cmds_CXX in
12744 # FIXME: we may have to deal with multi-command sequences.
12747 # Test whether the compiler implicitly links with -lc since on some
12748 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12749 # to ld, don't add -lc before -lgcc.
12750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12751 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12753 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12755 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12756 (eval $ac_compile) 2>&5
12758 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12759 test $ac_status = 0; } 2>conftest.err; then
12762 libobjs=conftest.$ac_objext
12764 wl=$lt_prog_compiler_wl_CXX
12765 pic_flag=$lt_prog_compiler_pic_CXX
12771 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12772 allow_undefined_flag_CXX=
12773 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12774 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12776 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12777 test $ac_status = 0; }
12779 archive_cmds_need_lc_CXX=no
12781 archive_cmds_need_lc_CXX=yes
12783 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12785 cat conftest.err 1>&5
12788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
12789 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
12796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12797 $as_echo_n "checking dynamic linker characteristics... " >&6; }
12798 library_names_spec=
12799 libname_spec='lib$name'
12803 postuninstall_cmds=
12807 shlibpath_overrides_runpath=unknown
12809 dynamic_linker="$host_os ld.so"
12810 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12811 if test "$GCC" = yes; then
12812 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12813 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12814 # if the path contains ";" then we assume it to be the separator
12815 # otherwise default to the standard path separator (i.e. ":") - it is
12816 # assumed that no part of a normal pathname contains ";" but that should
12817 # okay in the real world where ";" in dirpaths is itself problematic.
12818 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12820 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12823 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12825 need_lib_prefix=unknown
12826 hardcode_into_libs=no
12828 # when you set need_version to no, make sure it does not cause -set_version
12829 # flags to be left without arguments
12830 need_version=unknown
12835 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12836 shlibpath_var=LIBPATH
12838 # AIX 3 has no versioning support, so we append a major version to the name.
12839 soname_spec='${libname}${release}${shared_ext}$major'
12846 hardcode_into_libs=yes
12847 if test "$host_cpu" = ia64; then
12848 # AIX 5 supports IA64
12849 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12850 shlibpath_var=LD_LIBRARY_PATH
12852 # With GCC up to 2.95.x, collect2 would create an import file
12853 # for dependence libraries. The import file would start with
12854 # the line `#! .'. This would cause the generated library to
12855 # depend on `.', always an invalid library. This was fixed in
12856 # development snapshots of GCC prior to 3.0.
12858 aix4 | aix4.[01] | aix4.[01].*)
12859 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12861 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12864 can_build_shared=no
12868 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12869 # soname into executable. Probably we can add versioning support to
12870 # collect2, so additional links can be useful in future.
12871 if test "$aix_use_runtimelinking" = yes; then
12872 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12873 # instead of lib<name>.a to let people know that these are not
12874 # typical AIX shared libraries.
12875 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12877 # We preserve .a as extension for shared libraries through AIX4.2
12878 # and later when we are not doing run time linking.
12879 library_names_spec='${libname}${release}.a $libname.a'
12880 soname_spec='${libname}${release}${shared_ext}$major'
12882 shlibpath_var=LIBPATH
12887 library_names_spec='$libname.ixlibrary $libname.a'
12888 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12889 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'
12893 library_names_spec='${libname}${shared_ext}'
12894 dynamic_linker="$host_os ld.so"
12895 shlibpath_var=LIBRARY_PATH
12901 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12902 soname_spec='${libname}${release}${shared_ext}$major'
12903 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12904 shlibpath_var=LD_LIBRARY_PATH
12905 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12906 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12907 # the default ld.so.conf also contains /usr/contrib/lib and
12908 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12909 # libtool to hard-code these into programs
12912 cygwin* | mingw* | pw32*)
12913 version_type=windows
12918 case $GCC,$host_os in
12919 yes,cygwin* | yes,mingw* | yes,pw32*)
12920 library_names_spec='$libname.dll.a'
12921 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12922 postinstall_cmds='base_file=`basename \${file}`~
12923 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12924 dldir=$destdir/`dirname \$dlpath`~
12925 test -d \$dldir || mkdir -p \$dldir~
12926 $install_prog $dir/$dlname \$dldir/$dlname~
12927 chmod a+x \$dldir/$dlname'
12928 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12929 dlpath=$dir/\$dldll~
12931 shlibpath_overrides_runpath=yes
12935 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12936 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12937 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12940 # MinGW DLLs use traditional 'lib' prefix
12941 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12942 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12943 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12944 # It is most probably a Windows format PATH printed by
12945 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12946 # path with ; separators, and with drive letters. We can handle the
12947 # drive letters (cygwin fileutils understands them), so leave them,
12948 # especially as we might pass files found there to a mingw objdump,
12949 # which wouldn't understand a cygwinified path. Ahh.
12950 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12952 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12956 # pw32 DLLs use 'pw' prefix rather than 'lib'
12957 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12963 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12966 dynamic_linker='Win32 ld.exe'
12967 # FIXME: first we should search . and the directory the executable is in
12971 darwin* | rhapsody*)
12972 dynamic_linker="$host_os dyld"
12973 version_type=darwin
12976 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12977 soname_spec='${libname}${release}${major}$shared_ext'
12978 shlibpath_overrides_runpath=yes
12979 shlibpath_var=DYLD_LIBRARY_PATH
12980 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12981 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12982 if test "$GCC" = yes; then
12983 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"`
12985 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12987 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12994 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12995 soname_spec='${libname}${release}${shared_ext}$major'
12996 shlibpath_var=LD_LIBRARY_PATH
13007 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13008 soname_spec='${libname}${release}${shared_ext}$major'
13009 shlibpath_var=LD_LIBRARY_PATH
13010 shlibpath_overrides_runpath=no
13011 hardcode_into_libs=yes
13012 dynamic_linker='GNU ld.so'
13015 freebsd* | dragonfly*)
13016 # DragonFly does not have aout. When/if they implement a new
13017 # versioning mechanism, adjust this.
13018 if test -x /usr/bin/objformat; then
13019 objformat=`/usr/bin/objformat`
13022 freebsd[123]*) objformat=aout ;;
13023 *) objformat=elf ;;
13026 version_type=freebsd-$objformat
13027 case $version_type in
13029 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13034 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13038 shlibpath_var=LD_LIBRARY_PATH
13041 shlibpath_overrides_runpath=yes
13043 freebsd3.[01]* | freebsdelf3.[01]*)
13044 shlibpath_overrides_runpath=yes
13045 hardcode_into_libs=yes
13047 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13048 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13049 shlibpath_overrides_runpath=no
13050 hardcode_into_libs=yes
13052 freebsd*) # from 4.6 on
13053 shlibpath_overrides_runpath=yes
13054 hardcode_into_libs=yes
13063 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13064 soname_spec='${libname}${release}${shared_ext}$major'
13065 shlibpath_var=LD_LIBRARY_PATH
13066 hardcode_into_libs=yes
13069 hpux9* | hpux10* | hpux11*)
13070 # Give a soname corresponding to the major version so that dld.sl refuses to
13071 # link against other versions.
13078 hardcode_into_libs=yes
13079 dynamic_linker="$host_os dld.so"
13080 shlibpath_var=LD_LIBRARY_PATH
13081 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13082 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13083 soname_spec='${libname}${release}${shared_ext}$major'
13084 if test "X$HPUX_IA64_MODE" = X32; then
13085 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13087 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13089 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13093 hardcode_into_libs=yes
13094 dynamic_linker="$host_os dld.sl"
13095 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13096 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13097 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13098 soname_spec='${libname}${release}${shared_ext}$major'
13099 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13100 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13104 dynamic_linker="$host_os dld.sl"
13105 shlibpath_var=SHLIB_PATH
13106 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13107 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13108 soname_spec='${libname}${release}${shared_ext}$major'
13111 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13112 postinstall_cmds='chmod 555 $lib'
13119 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13120 soname_spec='${libname}${release}${shared_ext}$major'
13121 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13122 shlibpath_var=LD_LIBRARY_PATH
13123 shlibpath_overrides_runpath=no
13124 hardcode_into_libs=yes
13127 irix5* | irix6* | nonstopux*)
13129 nonstopux*) version_type=nonstopux ;;
13131 if test "$lt_cv_prog_gnu_ld" = yes; then
13139 soname_spec='${libname}${release}${shared_ext}$major'
13140 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13142 irix5* | nonstopux*)
13143 libsuff= shlibsuff=
13146 case $LD in # libtool.m4 will add one of these switches to LD
13147 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13148 libsuff= shlibsuff= libmagic=32-bit;;
13149 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13150 libsuff=32 shlibsuff=N32 libmagic=N32;;
13151 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13152 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13153 *) libsuff= shlibsuff= libmagic=never-match;;
13157 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13158 shlibpath_overrides_runpath=no
13159 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13160 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13161 hardcode_into_libs=yes
13164 # No shared lib support for Linux oldld, aout, or coff.
13165 linux*oldld* | linux*aout* | linux*coff*)
13169 # This must be Linux ELF.
13174 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13175 soname_spec='${libname}${release}${shared_ext}$major'
13176 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13177 shlibpath_var=LD_LIBRARY_PATH
13178 shlibpath_overrides_runpath=no
13179 # This implies no fast_install, which is unacceptable.
13180 # Some rework will be needed to allow for fast_install
13181 # before this can be enabled.
13182 hardcode_into_libs=yes
13184 # Append ld.so.conf contents to the search path
13185 if test -f /etc/ld.so.conf; then
13186 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
13187 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13190 # We used to test for /lib/ld.so.1 and disable shared libraries on
13191 # powerpc, because MkLinux only supported shared libraries with the
13192 # GNU dynamic linker. Since this was broken with cross compilers,
13193 # most powerpc-linux boxes support dynamic linking these days and
13194 # people can always --disable-shared, the test was removed, and we
13195 # assume the GNU/Linux dynamic linker is in use.
13196 dynamic_linker='GNU/Linux ld.so'
13203 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13204 soname_spec='${libname}${release}${shared_ext}$major'
13205 shlibpath_var=LD_LIBRARY_PATH
13206 shlibpath_overrides_runpath=no
13207 hardcode_into_libs=yes
13208 dynamic_linker='GNU ld.so'
13215 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13216 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13217 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13218 dynamic_linker='NetBSD (a.out) ld.so'
13220 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13221 soname_spec='${libname}${release}${shared_ext}$major'
13222 dynamic_linker='NetBSD ld.elf_so'
13224 shlibpath_var=LD_LIBRARY_PATH
13225 shlibpath_overrides_runpath=yes
13226 hardcode_into_libs=yes
13231 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13232 shlibpath_var=LD_LIBRARY_PATH
13233 shlibpath_overrides_runpath=yes
13240 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13241 soname_spec='${libname}${release}${shared_ext}$major'
13242 shlibpath_var=LD_LIBRARY_PATH
13243 shlibpath_overrides_runpath=yes
13248 sys_lib_dlsearch_path_spec="/usr/lib"
13250 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13252 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13253 *) need_version=no ;;
13255 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13256 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13257 shlibpath_var=LD_LIBRARY_PATH
13258 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13260 openbsd2.[89] | openbsd2.[89].*)
13261 shlibpath_overrides_runpath=no
13264 shlibpath_overrides_runpath=yes
13268 shlibpath_overrides_runpath=yes
13273 libname_spec='$name'
13276 library_names_spec='$libname${shared_ext} $libname.a'
13277 dynamic_linker='OS/2 ld.exe'
13278 shlibpath_var=LIBPATH
13281 osf3* | osf4* | osf5*)
13285 soname_spec='${libname}${release}${shared_ext}$major'
13286 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13287 shlibpath_var=LD_LIBRARY_PATH
13288 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13289 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13296 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13297 soname_spec='${libname}${release}${shared_ext}$major'
13298 shlibpath_var=LD_LIBRARY_PATH
13299 shlibpath_overrides_runpath=yes
13300 hardcode_into_libs=yes
13301 # ldd complains unless libraries are executable
13302 postinstall_cmds='chmod +x $lib'
13307 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13308 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13309 shlibpath_var=LD_LIBRARY_PATH
13310 shlibpath_overrides_runpath=yes
13311 if test "$with_gnu_ld" = yes; then
13319 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13320 soname_spec='${libname}${release}${shared_ext}$major'
13321 shlibpath_var=LD_LIBRARY_PATH
13322 case $host_vendor in
13324 shlibpath_overrides_runpath=no
13326 export_dynamic_flag_spec='${wl}-Blargedynsym'
13327 runpath_var=LD_RUN_PATH
13335 shlibpath_overrides_runpath=no
13336 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13342 if test -d /usr/nec ;then
13344 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13345 soname_spec='$libname${shared_ext}.$major'
13346 shlibpath_var=LD_LIBRARY_PATH
13350 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13351 version_type=freebsd-elf
13354 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13355 soname_spec='${libname}${release}${shared_ext}$major'
13356 shlibpath_var=LD_LIBRARY_PATH
13357 hardcode_into_libs=yes
13358 if test "$with_gnu_ld" = yes; then
13359 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13360 shlibpath_overrides_runpath=no
13362 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13363 shlibpath_overrides_runpath=yes
13366 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13370 sys_lib_dlsearch_path_spec='/usr/lib'
13375 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13376 soname_spec='${libname}${release}${shared_ext}$major'
13377 shlibpath_var=LD_LIBRARY_PATH
13384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
13385 $as_echo "$dynamic_linker" >&6; }
13386 test "$dynamic_linker" = no && can_build_shared=no
13388 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13389 if test "$GCC" = yes; then
13390 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13394 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13395 hardcode_action_CXX=
13396 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13397 test -n "$runpath_var_CXX" || \
13398 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13400 # We can hardcode non-existant directories.
13401 if test "$hardcode_direct_CXX" != no &&
13402 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13403 # have to relink, otherwise we might link with an installed library
13404 # when we should be linking with a yet-to-be-installed one
13405 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13406 test "$hardcode_minus_L_CXX" != no; then
13407 # Linking always hardcodes the temporary library directory.
13408 hardcode_action_CXX=relink
13410 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13411 hardcode_action_CXX=immediate
13414 # We cannot hardcode anything, or else we can only hardcode existing
13416 hardcode_action_CXX=unsupported
13418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
13419 $as_echo "$hardcode_action_CXX" >&6; }
13421 if test "$hardcode_action_CXX" = relink; then
13422 # Fast installation is not supported
13423 enable_fast_install=no
13424 elif test "$shlibpath_overrides_runpath" = yes ||
13425 test "$enable_shared" = no; then
13426 # Fast installation is not necessary
13427 enable_fast_install=needless
13431 # The else clause should only fire when bootstrapping the
13432 # libtool distribution, otherwise you forgot to ship ltmain.sh
13433 # with your package, and you will get complaints that there are
13434 # no rules to generate ltmain.sh.
13435 if test -f "$ltmain"; then
13436 # See if we are running on zsh, and set the options which allow our commands through
13437 # without removal of \ escapes.
13438 if test -n "${ZSH_VERSION+set}" ; then
13439 setopt NO_GLOB_SUBST
13441 # Now quote all the things that may contain metacharacters while being
13442 # careful not to overquote the AC_SUBSTed values. We take copies of the
13443 # variables and quote the copies for generation of the libtool script.
13444 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13446 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13447 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13448 deplibs_check_method reload_flag reload_cmds need_locks \
13449 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13450 lt_cv_sys_global_symbol_to_c_name_address \
13451 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13452 old_postinstall_cmds old_postuninstall_cmds \
13456 lt_prog_compiler_wl_CXX \
13457 lt_prog_compiler_pic_CXX \
13458 lt_prog_compiler_static_CXX \
13459 lt_prog_compiler_no_builtin_flag_CXX \
13460 export_dynamic_flag_spec_CXX \
13461 thread_safe_flag_spec_CXX \
13462 whole_archive_flag_spec_CXX \
13463 enable_shared_with_static_runtimes_CXX \
13464 old_archive_cmds_CXX \
13465 old_archive_from_new_cmds_CXX \
13466 predep_objects_CXX \
13467 postdep_objects_CXX \
13470 compiler_lib_search_path_CXX \
13472 archive_expsym_cmds_CXX \
13473 postinstall_cmds_CXX \
13474 postuninstall_cmds_CXX \
13475 old_archive_from_expsyms_cmds_CXX \
13476 allow_undefined_flag_CXX \
13477 no_undefined_flag_CXX \
13478 export_symbols_cmds_CXX \
13479 hardcode_libdir_flag_spec_CXX \
13480 hardcode_libdir_flag_spec_ld_CXX \
13481 hardcode_libdir_separator_CXX \
13482 hardcode_automatic_CXX \
13484 module_expsym_cmds_CXX \
13485 lt_cv_prog_compiler_c_o_CXX \
13486 exclude_expsyms_CXX \
13487 include_expsyms_CXX; do
13490 old_archive_cmds_CXX | \
13491 old_archive_from_new_cmds_CXX | \
13492 archive_cmds_CXX | \
13493 archive_expsym_cmds_CXX | \
13494 module_cmds_CXX | \
13495 module_expsym_cmds_CXX | \
13496 old_archive_from_expsyms_cmds_CXX | \
13497 export_symbols_cmds_CXX | \
13498 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13499 postinstall_cmds | postuninstall_cmds | \
13500 old_postinstall_cmds | old_postuninstall_cmds | \
13501 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13502 # Double-quote double-evaled strings.
13503 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13506 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13512 *'\$0 --fallback-echo"')
13513 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13519 cat <<__EOF__ >> "$cfgfile"
13520 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13522 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13524 # Shell to use when invoking shell scripts.
13527 # Whether or not to build shared libraries.
13528 build_libtool_libs=$enable_shared
13530 # Whether or not to build static libraries.
13531 build_old_libs=$enable_static
13533 # Whether or not to add -lc for building shared libraries.
13534 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13536 # Whether or not to disallow shared libs when runtime libs are static
13537 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13539 # Whether or not to optimize for fast installation.
13540 fast_install=$enable_fast_install
13543 host_alias=$host_alias
13547 # The build system.
13548 build_alias=$build_alias
13552 # An echo program that does not interpret backslashes.
13557 AR_FLAGS=$lt_AR_FLAGS
13562 # LTCC compiler flags.
13563 LTCFLAGS=$lt_LTCFLAGS
13565 # A language-specific compiler.
13566 CC=$lt_compiler_CXX
13568 # Is the compiler the GNU C compiler?
13574 # The linker used to build libraries.
13577 # Whether we need hard or soft links.
13580 # A BSD-compatible nm program.
13583 # A symbol stripping program
13586 # Used to examine libraries when file_magic_cmd begins "file"
13587 MAGIC_CMD=$MAGIC_CMD
13589 # Used on cygwin: DLL creation program.
13592 # Used on cygwin: object dumper.
13595 # Used on cygwin: assembler.
13598 # The name of the directory that contains temporary libtool files.
13601 # How to create reloadable object files.
13602 reload_flag=$lt_reload_flag
13603 reload_cmds=$lt_reload_cmds
13605 # How to pass a linker flag through the compiler.
13606 wl=$lt_lt_prog_compiler_wl_CXX
13608 # Object file suffix (normally "o").
13609 objext="$ac_objext"
13611 # Old archive suffix (normally "a").
13614 # Shared library suffix (normally ".so").
13615 shrext_cmds='$shrext_cmds'
13617 # Executable file suffix (normally "").
13620 # Additional compiler flags for building library objects.
13621 pic_flag=$lt_lt_prog_compiler_pic_CXX
13624 # What is the maximum length of a command?
13625 max_cmd_len=$lt_cv_sys_max_cmd_len
13627 # Does compiler simultaneously support -c and -o options?
13628 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13630 # Must we lock files when doing compilation?
13631 need_locks=$lt_need_locks
13633 # Do we need the lib prefix for modules?
13634 need_lib_prefix=$need_lib_prefix
13636 # Do we need a version for libraries?
13637 need_version=$need_version
13639 # Whether dlopen is supported.
13640 dlopen_support=$enable_dlopen
13642 # Whether dlopen of programs is supported.
13643 dlopen_self=$enable_dlopen_self
13645 # Whether dlopen of statically linked programs is supported.
13646 dlopen_self_static=$enable_dlopen_self_static
13648 # Compiler flag to prevent dynamic linking.
13649 link_static_flag=$lt_lt_prog_compiler_static_CXX
13651 # Compiler flag to turn off builtin functions.
13652 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13654 # Compiler flag to allow reflexive dlopens.
13655 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13657 # Compiler flag to generate shared objects directly from archives.
13658 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13660 # Compiler flag to generate thread-safe objects.
13661 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13663 # Library versioning type.
13664 version_type=$version_type
13666 # Format of library name prefix.
13667 libname_spec=$lt_libname_spec
13669 # List of archive names. First name is the real one, the rest are links.
13670 # The last name is the one that the linker finds with -lNAME.
13671 library_names_spec=$lt_library_names_spec
13673 # The coded name of the library, if different from the real name.
13674 soname_spec=$lt_soname_spec
13676 # Commands used to build and install an old-style archive.
13678 old_archive_cmds=$lt_old_archive_cmds_CXX
13679 old_postinstall_cmds=$lt_old_postinstall_cmds
13680 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13682 # Create an old-style archive from a shared archive.
13683 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13685 # Create a temporary old-style archive to link instead of a shared archive.
13686 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13688 # Commands used to build and install a shared archive.
13689 archive_cmds=$lt_archive_cmds_CXX
13690 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13691 postinstall_cmds=$lt_postinstall_cmds
13692 postuninstall_cmds=$lt_postuninstall_cmds
13694 # Commands used to build a loadable module (assumed same as above if empty)
13695 module_cmds=$lt_module_cmds_CXX
13696 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13698 # Commands to strip libraries.
13699 old_striplib=$lt_old_striplib
13700 striplib=$lt_striplib
13702 # Dependencies to place before the objects being linked to create a
13704 predep_objects=$lt_predep_objects_CXX
13706 # Dependencies to place after the objects being linked to create a
13708 postdep_objects=$lt_postdep_objects_CXX
13710 # Dependencies to place before the objects being linked to create a
13712 predeps=$lt_predeps_CXX
13714 # Dependencies to place after the objects being linked to create a
13716 postdeps=$lt_postdeps_CXX
13718 # The library search path used internally by the compiler when linking
13719 # a shared library.
13720 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13722 # Method to check whether dependent libraries are shared objects.
13723 deplibs_check_method=$lt_deplibs_check_method
13725 # Command to use when deplibs_check_method == file_magic.
13726 file_magic_cmd=$lt_file_magic_cmd
13728 # Flag that allows shared libraries with undefined symbols to be built.
13729 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13731 # Flag that forces no undefined symbols.
13732 no_undefined_flag=$lt_no_undefined_flag_CXX
13734 # Commands used to finish a libtool library installation in a directory.
13735 finish_cmds=$lt_finish_cmds
13737 # Same as above, but a single script fragment to be evaled but not shown.
13738 finish_eval=$lt_finish_eval
13740 # Take the output of nm and produce a listing of raw symbols and C names.
13741 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13743 # Transform the output of nm in a proper C declaration
13744 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13746 # Transform the output of nm in a C name address pair
13747 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13749 # This is the shared library runtime path variable.
13750 runpath_var=$runpath_var
13752 # This is the shared library path variable.
13753 shlibpath_var=$shlibpath_var
13755 # Is shlibpath searched before the hard-coded library search path?
13756 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13758 # How to hardcode a shared library path into an executable.
13759 hardcode_action=$hardcode_action_CXX
13761 # Whether we should hardcode library paths into libraries.
13762 hardcode_into_libs=$hardcode_into_libs
13764 # Flag to hardcode \$libdir into a binary during linking.
13765 # This must work even if \$libdir does not exist.
13766 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13768 # If ld is used when linking, flag to hardcode \$libdir into
13769 # a binary during linking. This must work even if \$libdir does
13771 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13773 # Whether we need a single -rpath flag with a separated argument.
13774 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13776 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13777 # resulting binary.
13778 hardcode_direct=$hardcode_direct_CXX
13780 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13781 # resulting binary.
13782 hardcode_minus_L=$hardcode_minus_L_CXX
13784 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13785 # the resulting binary.
13786 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13788 # Set to yes if building a shared library automatically hardcodes DIR into the library
13789 # and all subsequent libraries and executables linked against it.
13790 hardcode_automatic=$hardcode_automatic_CXX
13792 # Variables whose values should be saved in libtool wrapper scripts and
13793 # restored at relink time.
13794 variables_saved_for_relink="$variables_saved_for_relink"
13796 # Whether libtool must link a program against all its dependency libraries.
13797 link_all_deplibs=$link_all_deplibs_CXX
13799 # Compile-time system search path for libraries
13800 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13802 # Run-time system search path for libraries
13803 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13805 # Fix the shell variable \$srcfile for the compiler.
13806 fix_srcfile_path="$fix_srcfile_path_CXX"
13808 # Set to yes if exported symbols are required.
13809 always_export_symbols=$always_export_symbols_CXX
13811 # The commands to list exported symbols.
13812 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13814 # The commands to extract the exported symbol list from a shared archive.
13815 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13817 # Symbols that should not be listed in the preloaded symbols.
13818 exclude_expsyms=$lt_exclude_expsyms_CXX
13820 # Symbols that must always be exported.
13821 include_expsyms=$lt_include_expsyms_CXX
13823 # ### END LIBTOOL TAG CONFIG: $tagname
13829 # If there is no Makefile yet, we rely on a make rule to execute
13830 # `config.status --recheck' to rerun these tests and create the
13831 # libtool script then.
13832 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13833 if test -f "$ltmain_in"; then
13834 test -f Makefile && make "$ltmain"
13840 ac_cpp='$CPP $CPPFLAGS'
13841 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13842 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13843 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13849 with_gnu_ldcxx=$with_gnu_ld
13850 with_gnu_ld=$lt_save_with_gnu_ld
13851 lt_cv_path_LDCXX=$lt_cv_path_LD
13852 lt_cv_path_LD=$lt_save_path_LD
13853 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13854 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13862 if test -n "$F77" && test "X$F77" != "Xno"; then
13865 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13866 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13867 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13870 archive_cmds_need_lc_F77=no
13871 allow_undefined_flag_F77=
13872 always_export_symbols_F77=no
13873 archive_expsym_cmds_F77=
13874 export_dynamic_flag_spec_F77=
13875 hardcode_direct_F77=no
13876 hardcode_libdir_flag_spec_F77=
13877 hardcode_libdir_flag_spec_ld_F77=
13878 hardcode_libdir_separator_F77=
13879 hardcode_minus_L_F77=no
13880 hardcode_automatic_F77=no
13882 module_expsym_cmds_F77=
13883 link_all_deplibs_F77=unknown
13884 old_archive_cmds_F77=$old_archive_cmds
13885 no_undefined_flag_F77=
13886 whole_archive_flag_spec_F77=
13887 enable_shared_with_static_runtimes_F77=no
13889 # Source file extension for f77 test sources.
13892 # Object file extension for compiled f77 test sources.
13896 # Code to be used in simple compile tests
13897 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13899 # Code to be used in simple link tests
13900 lt_simple_link_test_code=" program t\n end\n"
13902 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13904 # If no C compiler was specified, use CC.
13907 # If no C compiler flags were specified, use CFLAGS.
13908 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13910 # Allow CC to be a program name with arguments.
13914 # save warnings/boilerplate of simple test code
13915 ac_outfile=conftest.$ac_objext
13916 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13917 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13918 _lt_compiler_boilerplate=`cat conftest.err`
13921 ac_outfile=conftest.$ac_objext
13922 printf "$lt_simple_link_test_code" >conftest.$ac_ext
13923 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13924 _lt_linker_boilerplate=`cat conftest.err`
13928 # Allow CC to be a program name with arguments.
13933 for cc_temp in $compiler""; do
13935 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13936 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13941 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13945 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13947 $as_echo "$can_build_shared" >&6; }
13949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13950 $as_echo_n "checking whether to build shared libraries... " >&6; }
13951 test "$can_build_shared" = "no" && enable_shared=no
13953 # On AIX, shared libraries and static libraries use the same namespace, and
13954 # are all built from PIC.
13957 test "$enable_shared" = yes && enable_static=no
13958 if test -n "$RANLIB"; then
13959 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13960 postinstall_cmds='$RANLIB $lib'
13964 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13965 test "$enable_shared" = yes && enable_static=no
13969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13970 $as_echo "$enable_shared" >&6; }
13972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13973 $as_echo_n "checking whether to build static libraries... " >&6; }
13974 # Make sure either enable_shared or enable_static is yes.
13975 test "$enable_shared" = yes || enable_static=yes
13976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13977 $as_echo "$enable_static" >&6; }
13982 lt_prog_compiler_wl_F77=
13983 lt_prog_compiler_pic_F77=
13984 lt_prog_compiler_static_F77=
13986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13987 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13989 if test "$GCC" = yes; then
13990 lt_prog_compiler_wl_F77='-Wl,'
13991 lt_prog_compiler_static_F77='-static'
13995 # All AIX code is PIC.
13996 if test "$host_cpu" = ia64; then
13997 # AIX 5 now supports IA64 processor
13998 lt_prog_compiler_static_F77='-Bstatic'
14003 # FIXME: we need at least 68020 code to build shared libraries, but
14004 # adding the `-m68020' flag to GCC prevents building anything better,
14006 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14009 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14010 # PIC is the default for these OSes.
14013 mingw* | pw32* | os2*)
14014 # This hack is so that the source file can tell whether it is being
14015 # built for inclusion in a dll (and should export symbols for example).
14016 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14019 darwin* | rhapsody*)
14020 # PIC is the default on this platform
14021 # Common symbols not allowed in MH_DYLIB files
14022 lt_prog_compiler_pic_F77='-fno-common'
14026 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14027 # Instead, we relocate shared libraries at runtime.
14031 # Just because we use GCC doesn't mean we suddenly get shared libraries
14032 # on systems that don't support them.
14033 lt_prog_compiler_can_build_shared_F77=no
14038 if test -d /usr/nec; then
14039 lt_prog_compiler_pic_F77=-Kconform_pic
14044 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14045 # not for PA HP-UX.
14051 lt_prog_compiler_pic_F77='-fPIC'
14057 lt_prog_compiler_pic_F77='-fPIC'
14061 # PORTME Check for flag to pass linker flags through the system compiler.
14064 lt_prog_compiler_wl_F77='-Wl,'
14065 if test "$host_cpu" = ia64; then
14066 # AIX 5 now supports IA64 processor
14067 lt_prog_compiler_static_F77='-Bstatic'
14069 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14073 # PIC is the default on this platform
14074 # Common symbols not allowed in MH_DYLIB files
14075 case $cc_basename in
14077 lt_prog_compiler_pic_F77='-qnocommon'
14078 lt_prog_compiler_wl_F77='-Wl,'
14083 mingw* | pw32* | os2*)
14084 # This hack is so that the source file can tell whether it is being
14085 # built for inclusion in a dll (and should export symbols for example).
14086 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14089 hpux9* | hpux10* | hpux11*)
14090 lt_prog_compiler_wl_F77='-Wl,'
14091 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14092 # not for PA HP-UX.
14098 lt_prog_compiler_pic_F77='+Z'
14101 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14102 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14105 irix5* | irix6* | nonstopux*)
14106 lt_prog_compiler_wl_F77='-Wl,'
14107 # PIC (with -KPIC) is the default.
14108 lt_prog_compiler_static_F77='-non_shared'
14112 lt_prog_compiler_pic_F77='-KPIC'
14113 lt_prog_compiler_static_F77='-Bstatic'
14117 case $cc_basename in
14119 lt_prog_compiler_wl_F77='-Wl,'
14120 lt_prog_compiler_pic_F77='-KPIC'
14121 lt_prog_compiler_static_F77='-static'
14123 pgcc* | pgf77* | pgf90* | pgf95*)
14124 # Portland Group compilers (*not* the Pentium gcc compiler,
14125 # which looks to be a dead project)
14126 lt_prog_compiler_wl_F77='-Wl,'
14127 lt_prog_compiler_pic_F77='-fpic'
14128 lt_prog_compiler_static_F77='-Bstatic'
14131 lt_prog_compiler_wl_F77='-Wl,'
14132 # All Alpha code is PIC.
14133 lt_prog_compiler_static_F77='-non_shared'
14138 osf3* | osf4* | osf5*)
14139 lt_prog_compiler_wl_F77='-Wl,'
14140 # All OSF/1 code is PIC.
14141 lt_prog_compiler_static_F77='-non_shared'
14145 lt_prog_compiler_pic_F77='-KPIC'
14146 lt_prog_compiler_static_F77='-Bstatic'
14147 case $cc_basename in
14148 f77* | f90* | f95*)
14149 lt_prog_compiler_wl_F77='-Qoption ld ';;
14151 lt_prog_compiler_wl_F77='-Wl,';;
14156 lt_prog_compiler_wl_F77='-Qoption ld '
14157 lt_prog_compiler_pic_F77='-PIC'
14158 lt_prog_compiler_static_F77='-Bstatic'
14161 sysv4 | sysv4.2uw2* | sysv4.3*)
14162 lt_prog_compiler_wl_F77='-Wl,'
14163 lt_prog_compiler_pic_F77='-KPIC'
14164 lt_prog_compiler_static_F77='-Bstatic'
14168 if test -d /usr/nec ;then
14169 lt_prog_compiler_pic_F77='-Kconform_pic'
14170 lt_prog_compiler_static_F77='-Bstatic'
14174 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14175 lt_prog_compiler_wl_F77='-Wl,'
14176 lt_prog_compiler_pic_F77='-KPIC'
14177 lt_prog_compiler_static_F77='-Bstatic'
14181 lt_prog_compiler_wl_F77='-Wl,'
14182 lt_prog_compiler_can_build_shared_F77=no
14186 lt_prog_compiler_pic_F77='-pic'
14187 lt_prog_compiler_static_F77='-Bstatic'
14191 lt_prog_compiler_can_build_shared_F77=no
14196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_F77" >&5
14197 $as_echo "$lt_prog_compiler_pic_F77" >&6; }
14200 # Check to make sure the PIC flag actually works.
14202 if test -n "$lt_prog_compiler_pic_F77"; then
14204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14205 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; }
14206 if ${lt_prog_compiler_pic_works_F77+:} false; then :
14207 $as_echo_n "(cached) " >&6
14209 lt_prog_compiler_pic_works_F77=no
14210 ac_outfile=conftest.$ac_objext
14211 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14212 lt_compiler_flag="$lt_prog_compiler_pic_F77"
14213 # Insert the option either (1) after the last *FLAGS variable, or
14214 # (2) before a word containing "conftest.", or (3) at the end.
14215 # Note that $ac_compile itself does not contain backslashes and begins
14216 # with a dollar sign (not a hyphen), so the echo should work correctly.
14217 # The option is referenced via a variable to avoid confusing sed.
14218 lt_compile=`echo "$ac_compile" | $SED \
14219 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14220 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14221 -e 's:$: $lt_compiler_flag:'`
14222 (eval echo "\"\$as_me:14222: $lt_compile\"" >&5)
14223 (eval "$lt_compile" 2>conftest.err)
14225 cat conftest.err >&5
14226 echo "$as_me:14226: \$? = $ac_status" >&5
14227 if (exit $ac_status) && test -s "$ac_outfile"; then
14228 # The compiler can only warn and ignore the option if not recognized
14229 # So say no if there are warnings other than the usual output.
14230 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14231 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14232 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14233 lt_prog_compiler_pic_works_F77=yes
14239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_works_F77" >&5
14240 $as_echo "$lt_prog_compiler_pic_works_F77" >&6; }
14242 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14243 case $lt_prog_compiler_pic_F77 in
14245 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14248 lt_prog_compiler_pic_F77=
14249 lt_prog_compiler_can_build_shared_F77=no
14254 # For platforms which do not support PIC, -DPIC is meaningless:
14256 lt_prog_compiler_pic_F77=
14259 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14264 # Check to make sure the static flag actually works.
14266 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14268 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14269 if ${lt_prog_compiler_static_works_F77+:} false; then :
14270 $as_echo_n "(cached) " >&6
14272 lt_prog_compiler_static_works_F77=no
14273 save_LDFLAGS="$LDFLAGS"
14274 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14275 printf "$lt_simple_link_test_code" > conftest.$ac_ext
14276 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14277 # The linker can only warn and ignore the option if not recognized
14278 # So say no if there are warnings
14279 if test -s conftest.err; then
14280 # Append any errors to the config.log.
14281 cat conftest.err 1>&5
14282 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14283 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14284 if diff conftest.exp conftest.er2 >/dev/null; then
14285 lt_prog_compiler_static_works_F77=yes
14288 lt_prog_compiler_static_works_F77=yes
14292 LDFLAGS="$save_LDFLAGS"
14295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_static_works_F77" >&5
14296 $as_echo "$lt_prog_compiler_static_works_F77" >&6; }
14298 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14301 lt_prog_compiler_static_F77=
14305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14306 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14307 if ${lt_cv_prog_compiler_c_o_F77+:} false; then :
14308 $as_echo_n "(cached) " >&6
14310 lt_cv_prog_compiler_c_o_F77=no
14311 $rm -r conftest 2>/dev/null
14315 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14317 lt_compiler_flag="-o out/conftest2.$ac_objext"
14318 # Insert the option either (1) after the last *FLAGS variable, or
14319 # (2) before a word containing "conftest.", or (3) at the end.
14320 # Note that $ac_compile itself does not contain backslashes and begins
14321 # with a dollar sign (not a hyphen), so the echo should work correctly.
14322 lt_compile=`echo "$ac_compile" | $SED \
14323 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14324 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14325 -e 's:$: $lt_compiler_flag:'`
14326 (eval echo "\"\$as_me:14326: $lt_compile\"" >&5)
14327 (eval "$lt_compile" 2>out/conftest.err)
14329 cat out/conftest.err >&5
14330 echo "$as_me:14330: \$? = $ac_status" >&5
14331 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14333 # The compiler can only warn and ignore the option if not recognized
14334 # So say no if there are warnings
14335 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14336 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14337 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14338 lt_cv_prog_compiler_c_o_F77=yes
14343 # SGI C++ compiler will create directory out/ii_files/ for
14344 # template instantiation
14345 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14346 $rm out/* && rmdir out
14352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_F77" >&5
14353 $as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
14356 hard_links="nottested"
14357 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14358 # do not overwrite the value of need_locks provided by the user
14359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14360 $as_echo_n "checking if we can lock with hard links... " >&6; }
14363 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14365 ln conftest.a conftest.b 2>&5 || hard_links=no
14366 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14368 $as_echo "$hard_links" >&6; }
14369 if test "$hard_links" = no; then
14370 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14371 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14379 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14382 allow_undefined_flag_F77=
14383 enable_shared_with_static_runtimes_F77=no
14385 archive_expsym_cmds_F77=
14386 old_archive_From_new_cmds_F77=
14387 old_archive_from_expsyms_cmds_F77=
14388 export_dynamic_flag_spec_F77=
14389 whole_archive_flag_spec_F77=
14390 thread_safe_flag_spec_F77=
14391 hardcode_libdir_flag_spec_F77=
14392 hardcode_libdir_flag_spec_ld_F77=
14393 hardcode_libdir_separator_F77=
14394 hardcode_direct_F77=no
14395 hardcode_minus_L_F77=no
14396 hardcode_shlibpath_var_F77=unsupported
14397 link_all_deplibs_F77=unknown
14398 hardcode_automatic_F77=no
14400 module_expsym_cmds_F77=
14401 always_export_symbols_F77=no
14402 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14403 # include_expsyms should be a list of space-separated symbols to be *always*
14404 # included in the symbol list
14405 include_expsyms_F77=
14406 # exclude_expsyms can be an extended regexp of symbols to exclude
14407 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14408 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14409 # as well as any symbol that contains `d'.
14410 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14411 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14412 # platforms (ab)use it in PIC code, but their linkers get confused if
14413 # the symbol is explicitly referenced. Since portable code cannot
14414 # rely on this symbol name, it's probably fine to never include it in
14415 # preloaded symbol tables.
14416 extract_expsyms_cmds=
14417 # Just being paranoid about ensuring that cc_basename is set.
14418 for cc_temp in $compiler""; do
14420 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14421 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14426 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14429 cygwin* | mingw* | pw32*)
14430 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14431 # When not using gcc, we currently assume that we are using
14432 # Microsoft Visual C++.
14433 if test "$GCC" != yes; then
14438 # we just hope/assume this is gcc and not c89 (= MSVC++)
14447 if test "$with_gnu_ld" = yes; then
14448 # If archive_cmds runs LD, not CC, wlarc should be empty
14451 # Set some defaults for GNU ld with shared library support. These
14452 # are reset later if shared libraries are not supported. Putting them
14453 # here allows them to be overridden if necessary.
14454 runpath_var=LD_RUN_PATH
14455 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14456 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14457 # ancient GNU ld didn't support --whole-archive et. al.
14458 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14459 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14461 whole_archive_flag_spec_F77=
14463 supports_anon_versioning=no
14464 case `$LD -v 2>/dev/null` in
14465 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14466 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14467 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14468 *\ 2.11.*) ;; # other 2.11 versions
14469 *) supports_anon_versioning=yes ;;
14472 # See if GNU ld supports shared libraries.
14474 aix3* | aix4* | aix5*)
14475 # On AIX/PPC, the GNU linker is very broken
14476 if test "$host_cpu" != ia64; then
14480 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14481 *** to be unable to reliably create shared libraries on AIX.
14482 *** Therefore, libtool is disabling shared libraries support. If you
14483 *** really care for shared libraries, you may want to modify your PATH
14484 *** so that a non-GNU linker is found, and then restart.
14491 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)'
14492 hardcode_libdir_flag_spec_F77='-L$libdir'
14493 hardcode_minus_L_F77=yes
14495 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14496 # that the semantics of dynamic libraries on AmigaOS, at least up
14497 # to version 4, is to share data among multiple programs linked
14498 # with the same dynamic library. Since this doesn't match the
14499 # behavior of shared libraries on other platforms, we can't use
14505 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14506 allow_undefined_flag_F77=unsupported
14507 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14508 # support --undefined. This deserves some investigation. FIXME
14509 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14515 cygwin* | mingw* | pw32*)
14516 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14517 # as there is no search path for DLLs.
14518 hardcode_libdir_flag_spec_F77='-L$libdir'
14519 allow_undefined_flag_F77=unsupported
14520 always_export_symbols_F77=no
14521 enable_shared_with_static_runtimes_F77=yes
14522 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14524 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14525 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14526 # If the export-symbols file already is a .def file (1st line
14527 # is EXPORTS), use it as is; otherwise, prepend...
14528 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14529 cp $export_symbols $output_objdir/$soname.def;
14531 echo EXPORTS > $output_objdir/$soname.def;
14532 cat $export_symbols >> $output_objdir/$soname.def;
14534 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14541 hardcode_direct_F77=no
14542 hardcode_shlibpath_var_F77=no
14543 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14544 export_dynamic_flag_spec_F77='${wl}-E'
14545 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14546 # Instead, shared libraries are loaded at an image base (0x10000000 by
14547 # default) and relocated if they conflict, which is a slow very memory
14548 # consuming and fragmenting process. To avoid this, we pick a random,
14549 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14550 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14551 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14552 archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14556 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14558 case $cc_basename,$host_cpu in
14559 pgcc*) # Portland Group C compiler
14560 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14561 tmp_addflag=' $pic_flag'
14563 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14564 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14565 tmp_addflag=' $pic_flag -Mnomain' ;;
14566 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14567 tmp_addflag=' -i_dynamic' ;;
14568 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14569 tmp_addflag=' -i_dynamic -nofor_main' ;;
14570 ifc* | ifort*) # Intel Fortran compiler
14571 tmp_addflag=' -nofor_main' ;;
14573 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14575 if test $supports_anon_versioning = yes; then
14576 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14577 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14578 $echo "local: *; };" >> $output_objdir/$libname.ver~
14579 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14587 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14588 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14591 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14592 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14597 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14601 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14602 *** create shared libraries on Solaris systems. Therefore, libtool
14603 *** is disabling shared libraries support. We urge you to upgrade GNU
14604 *** binutils to release 2.9.1 or newer. Another option is to modify
14605 *** your PATH or compiler configuration so that the native linker is
14606 *** used, and then restart.
14609 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14610 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14611 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14617 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14618 case `$LD -v 2>&1` in
14619 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14623 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14624 *** reliably create shared libraries on SCO systems. Therefore, libtool
14625 *** is disabling shared libraries support. We urge you to upgrade GNU
14626 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14627 *** your PATH or compiler configuration so that the native linker is
14628 *** used, and then restart.
14633 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14634 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14635 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14636 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14645 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14647 hardcode_direct_F77=yes
14648 hardcode_shlibpath_var_F77=no
14652 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14653 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14654 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14661 if test "$ld_shlibs_F77" = no; then
14663 hardcode_libdir_flag_spec_F77=
14664 export_dynamic_flag_spec_F77=
14665 whole_archive_flag_spec_F77=
14668 # PORTME fill in a description of your system's linker (not GNU ld)
14671 allow_undefined_flag_F77=unsupported
14672 always_export_symbols_F77=yes
14673 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'
14674 # Note: this linker hardcodes the directories in LIBPATH if there
14675 # are no directories specified by -L.
14676 hardcode_minus_L_F77=yes
14677 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14678 # Neither direct hardcoding nor static linking is supported with a
14680 hardcode_direct_F77=unsupported
14685 if test "$host_cpu" = ia64; then
14686 # On IA64, the linker does run time linking by default, so we don't
14687 # have to do anything special.
14688 aix_use_runtimelinking=no
14689 exp_sym_flag='-Bexport'
14692 # If we're using GNU nm, then we don't want the "-C" option.
14693 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14694 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14695 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'
14697 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'
14699 aix_use_runtimelinking=no
14701 # Test if we are trying to use run time linking or normal
14702 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14703 # need to do runtime linking.
14704 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14705 for ld_flag in $LDFLAGS; do
14706 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14707 aix_use_runtimelinking=yes
14714 exp_sym_flag='-bexport'
14715 no_entry_flag='-bnoentry'
14718 # When large executables or shared objects are built, AIX ld can
14719 # have problems creating the table of contents. If linking a library
14720 # or program results in "error TOC overflow" add -mminimal-toc to
14721 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14722 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14724 archive_cmds_F77=''
14725 hardcode_direct_F77=yes
14726 hardcode_libdir_separator_F77=':'
14727 link_all_deplibs_F77=yes
14729 if test "$GCC" = yes; then
14730 case $host_os in aix4.[012]|aix4.[012].*)
14731 # We only want to do this on AIX 4.2 and lower, the check
14732 # below for broken collect2 doesn't work under 4.3+
14733 collect2name=`${CC} -print-prog-name=collect2`
14734 if test -f "$collect2name" && \
14735 strings "$collect2name" | grep resolve_lib_name >/dev/null
14737 # We have reworked collect2
14738 hardcode_direct_F77=yes
14740 # We have old collect2
14741 hardcode_direct_F77=unsupported
14742 # It fails to find uninstalled libraries when the uninstalled
14743 # path is not listed in the libpath. Setting hardcode_minus_L
14744 # to unsupported forces relinking
14745 hardcode_minus_L_F77=yes
14746 hardcode_libdir_flag_spec_F77='-L$libdir'
14747 hardcode_libdir_separator_F77=
14751 shared_flag='-shared'
14752 if test "$aix_use_runtimelinking" = yes; then
14753 shared_flag="$shared_flag "'${wl}-G'
14757 if test "$host_cpu" = ia64; then
14758 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14759 # chokes on -Wl,-G. The following line is correct:
14762 if test "$aix_use_runtimelinking" = yes; then
14763 shared_flag='${wl}-G'
14765 shared_flag='${wl}-bM:SRE'
14770 # It seems that -bexpall does not export symbols beginning with
14771 # underscore (_), so it is better to generate a list of symbols to export.
14772 always_export_symbols_F77=yes
14773 if test "$aix_use_runtimelinking" = yes; then
14774 # Warning - without using the other runtime loading flags (-brtl),
14775 # -berok will link without error, but may produce a broken library.
14776 allow_undefined_flag_F77='-berok'
14777 # Determine the default libpath from the value encoded in an empty executable.
14778 cat > conftest.$ac_ext <<_ACEOF
14783 if ac_fn_f77_try_link "$LINENO"; then :
14785 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14787 # Check for a 64-bit object if we didn't find anything.
14788 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; }
14791 rm -f core conftest.err conftest.$ac_objext \
14792 conftest$ac_exeext conftest.$ac_ext
14793 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14795 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14796 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
14798 if test "$host_cpu" = ia64; then
14799 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14800 allow_undefined_flag_F77="-z nodefs"
14801 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
14803 # Determine the default libpath from the value encoded in an empty executable.
14804 cat > conftest.$ac_ext <<_ACEOF
14809 if ac_fn_f77_try_link "$LINENO"; then :
14811 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14813 # Check for a 64-bit object if we didn't find anything.
14814 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; }
14817 rm -f core conftest.err conftest.$ac_objext \
14818 conftest$ac_exeext conftest.$ac_ext
14819 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14821 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14822 # Warning - without using the other run time loading flags,
14823 # -berok will link without error, but may produce a broken library.
14824 no_undefined_flag_F77=' ${wl}-bernotok'
14825 allow_undefined_flag_F77=' ${wl}-berok'
14826 # Exported symbols can be pulled into shared objects from archives
14827 whole_archive_flag_spec_F77='$convenience'
14828 archive_cmds_need_lc_F77=yes
14829 # This is similar to how AIX traditionally builds its shared libraries.
14830 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
14836 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)'
14837 hardcode_libdir_flag_spec_F77='-L$libdir'
14838 hardcode_minus_L_F77=yes
14839 # see comment about different semantics on the GNU ld section
14844 export_dynamic_flag_spec_F77=-rdynamic
14847 cygwin* | mingw* | pw32*)
14848 # When not using gcc, we currently assume that we are using
14849 # Microsoft Visual C++.
14850 # hardcode_libdir_flag_spec is actually meaningless, as there is
14851 # no search path for DLLs.
14852 hardcode_libdir_flag_spec_F77=' '
14853 allow_undefined_flag_F77=unsupported
14854 # Tell ltmain to make .lib files, not .a files.
14856 # Tell ltmain to make .dll files, not .so files.
14858 # FIXME: Setting linknames here is a bad hack.
14859 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14860 # The linker will automatically build a .lib file if we build a DLL.
14861 old_archive_From_new_cmds_F77='true'
14862 # FIXME: Should let the user specify the lib program.
14863 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14864 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14865 enable_shared_with_static_runtimes_F77=yes
14868 darwin* | rhapsody*)
14870 rhapsody* | darwin1.[012])
14871 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14874 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14875 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14877 case ${MACOSX_DEPLOYMENT_TARGET} in
14879 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14882 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14888 archive_cmds_need_lc_F77=no
14889 hardcode_direct_F77=no
14890 hardcode_automatic_F77=yes
14891 hardcode_shlibpath_var_F77=unsupported
14892 whole_archive_flag_spec_F77=''
14893 link_all_deplibs_F77=yes
14894 if test "$GCC" = yes ; then
14895 output_verbose_link_cmd='echo'
14896 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14897 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14898 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14899 archive_expsym_cmds_F77='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}'
14900 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}'
14902 case $cc_basename in
14904 output_verbose_link_cmd='echo'
14905 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14906 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14907 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14908 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14909 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}'
14919 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14920 hardcode_libdir_flag_spec_F77='-L$libdir'
14921 hardcode_shlibpath_var_F77=no
14928 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14929 # support. Future versions do this automatically, but an explicit c++rt0.o
14930 # does not break anything, and helps significantly (at the cost of a little
14933 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14934 hardcode_libdir_flag_spec_F77='-R$libdir'
14935 hardcode_direct_F77=yes
14936 hardcode_shlibpath_var_F77=no
14939 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14941 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14942 hardcode_direct_F77=yes
14943 hardcode_minus_L_F77=yes
14944 hardcode_shlibpath_var_F77=no
14947 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14948 freebsd* | kfreebsd*-gnu | dragonfly*)
14949 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14950 hardcode_libdir_flag_spec_F77='-R$libdir'
14951 hardcode_direct_F77=yes
14952 hardcode_shlibpath_var_F77=no
14956 if test "$GCC" = yes; then
14957 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'
14959 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'
14961 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14962 hardcode_libdir_separator_F77=:
14963 hardcode_direct_F77=yes
14965 # hardcode_minus_L: Not really in the search PATH,
14966 # but as the default location of the library.
14967 hardcode_minus_L_F77=yes
14968 export_dynamic_flag_spec_F77='${wl}-E'
14972 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14973 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14975 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14977 if test "$with_gnu_ld" = no; then
14978 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14979 hardcode_libdir_separator_F77=:
14981 hardcode_direct_F77=yes
14982 export_dynamic_flag_spec_F77='${wl}-E'
14984 # hardcode_minus_L: Not really in the search PATH,
14985 # but as the default location of the library.
14986 hardcode_minus_L_F77=yes
14991 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14994 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14997 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15000 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15006 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15009 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15012 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15016 if test "$with_gnu_ld" = no; then
15017 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15018 hardcode_libdir_separator_F77=:
15022 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15023 hardcode_direct_F77=no
15024 hardcode_shlibpath_var_F77=no
15027 hardcode_direct_F77=yes
15028 export_dynamic_flag_spec_F77='${wl}-E'
15030 # hardcode_minus_L: Not really in the search PATH,
15031 # but as the default location of the library.
15032 hardcode_minus_L_F77=yes
15038 irix5* | irix6* | nonstopux*)
15039 if test "$GCC" = yes; then
15040 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'
15042 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'
15043 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15045 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15046 hardcode_libdir_separator_F77=:
15047 link_all_deplibs_F77=yes
15051 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15052 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15054 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15056 hardcode_libdir_flag_spec_F77='-R$libdir'
15057 hardcode_direct_F77=yes
15058 hardcode_shlibpath_var_F77=no
15062 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15063 hardcode_direct_F77=yes
15064 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15065 hardcode_libdir_separator_F77=:
15066 hardcode_shlibpath_var_F77=no
15070 hardcode_direct_F77=yes
15071 hardcode_shlibpath_var_F77=no
15072 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15073 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15074 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15075 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15076 export_dynamic_flag_spec_F77='${wl}-E'
15079 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15080 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15081 hardcode_libdir_flag_spec_F77='-R$libdir'
15084 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15085 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15092 hardcode_libdir_flag_spec_F77='-L$libdir'
15093 hardcode_minus_L_F77=yes
15094 allow_undefined_flag_F77=unsupported
15095 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'
15096 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15100 if test "$GCC" = yes; then
15101 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15102 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'
15104 allow_undefined_flag_F77=' -expect_unresolved \*'
15105 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'
15107 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15108 hardcode_libdir_separator_F77=:
15111 osf4* | osf5*) # as osf3* with the addition of -msym flag
15112 if test "$GCC" = yes; then
15113 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15114 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'
15115 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15117 allow_undefined_flag_F77=' -expect_unresolved \*'
15118 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'
15119 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~
15120 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
15122 # Both c and cxx compiler support -rpath directly
15123 hardcode_libdir_flag_spec_F77='-rpath $libdir'
15125 hardcode_libdir_separator_F77=:
15129 no_undefined_flag_F77=' -z text'
15130 if test "$GCC" = yes; then
15132 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15133 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15134 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15137 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15138 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15139 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15141 hardcode_libdir_flag_spec_F77='-R$libdir'
15142 hardcode_shlibpath_var_F77=no
15144 solaris2.[0-5] | solaris2.[0-5].*) ;;
15146 # The compiler driver will combine linker options so we
15147 # cannot just pass the convience library names through
15148 # without $wl, iff we do not link with $LD.
15149 # Luckily, gcc supports the same syntax we need for Sun Studio.
15150 # Supported since Solaris 2.6 (maybe 2.5.1?)
15153 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
15155 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
15158 link_all_deplibs_F77=yes
15162 if test "x$host_vendor" = xsequent; then
15163 # Use $CC to link under sequent, because it throws in some extra .o
15164 # files that make .init and .fini sections work.
15165 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15167 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15169 hardcode_libdir_flag_spec_F77='-L$libdir'
15170 hardcode_direct_F77=yes
15171 hardcode_minus_L_F77=yes
15172 hardcode_shlibpath_var_F77=no
15176 case $host_vendor in
15178 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15179 hardcode_direct_F77=yes # is this really true???
15182 ## LD is ld it makes a PLAMLIB
15183 ## CC just makes a GrossModule.
15184 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15185 reload_cmds_F77='$CC -r -o $output$reload_objs'
15186 hardcode_direct_F77=no
15189 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15190 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15193 runpath_var='LD_RUN_PATH'
15194 hardcode_shlibpath_var_F77=no
15198 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15199 hardcode_shlibpath_var_F77=no
15200 export_dynamic_flag_spec_F77='-Bexport'
15204 if test -d /usr/nec; then
15205 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15206 hardcode_shlibpath_var_F77=no
15207 runpath_var=LD_RUN_PATH
15208 hardcode_runpath_var=yes
15213 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15214 no_undefined_flag_F77='${wl}-z,text'
15215 archive_cmds_need_lc_F77=no
15216 hardcode_shlibpath_var_F77=no
15217 runpath_var='LD_RUN_PATH'
15219 if test "$GCC" = yes; then
15220 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15221 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15223 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15224 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15228 sysv5* | sco3.2v5* | sco5v6*)
15229 # Note: We can NOT use -z defs as we might desire, because we do not
15230 # link with -lc, and that would cause any symbols used from libc to
15231 # always be unresolved, which means just about no library would
15232 # ever link correctly. If we're not using GNU ld we use -z text
15233 # though, which does catch some bad symbols but isn't as heavy-handed
15235 no_undefined_flag_F77='${wl}-z,text'
15236 allow_undefined_flag_F77='${wl}-z,nodefs'
15237 archive_cmds_need_lc_F77=no
15238 hardcode_shlibpath_var_F77=no
15239 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15240 hardcode_libdir_separator_F77=':'
15241 link_all_deplibs_F77=yes
15242 export_dynamic_flag_spec_F77='${wl}-Bexport'
15243 runpath_var='LD_RUN_PATH'
15245 if test "$GCC" = yes; then
15246 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15247 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15249 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15250 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15255 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15256 hardcode_libdir_flag_spec_F77='-L$libdir'
15257 hardcode_shlibpath_var_F77=no
15266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_F77" >&5
15267 $as_echo "$ld_shlibs_F77" >&6; }
15268 test "$ld_shlibs_F77" = no && can_build_shared=no
15271 # Do we need to explicitly link libc?
15273 case "x$archive_cmds_need_lc_F77" in
15275 # Assume -lc should be added
15276 archive_cmds_need_lc_F77=yes
15278 if test "$enable_shared" = yes && test "$GCC" = yes; then
15279 case $archive_cmds_F77 in
15281 # FIXME: we may have to deal with multi-command sequences.
15284 # Test whether the compiler implicitly links with -lc since on some
15285 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15286 # to ld, don't add -lc before -lgcc.
15287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15288 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15290 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15292 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15293 (eval $ac_compile) 2>&5
15295 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15296 test $ac_status = 0; } 2>conftest.err; then
15299 libobjs=conftest.$ac_objext
15301 wl=$lt_prog_compiler_wl_F77
15302 pic_flag=$lt_prog_compiler_pic_F77
15308 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15309 allow_undefined_flag_F77=
15310 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15311 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15313 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15314 test $ac_status = 0; }
15316 archive_cmds_need_lc_F77=no
15318 archive_cmds_need_lc_F77=yes
15320 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15322 cat conftest.err 1>&5
15325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_F77" >&5
15326 $as_echo "$archive_cmds_need_lc_F77" >&6; }
15333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15334 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15335 library_names_spec=
15336 libname_spec='lib$name'
15340 postuninstall_cmds=
15344 shlibpath_overrides_runpath=unknown
15346 dynamic_linker="$host_os ld.so"
15347 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15348 if test "$GCC" = yes; then
15349 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15350 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15351 # if the path contains ";" then we assume it to be the separator
15352 # otherwise default to the standard path separator (i.e. ":") - it is
15353 # assumed that no part of a normal pathname contains ";" but that should
15354 # okay in the real world where ";" in dirpaths is itself problematic.
15355 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15357 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15360 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15362 need_lib_prefix=unknown
15363 hardcode_into_libs=no
15365 # when you set need_version to no, make sure it does not cause -set_version
15366 # flags to be left without arguments
15367 need_version=unknown
15372 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15373 shlibpath_var=LIBPATH
15375 # AIX 3 has no versioning support, so we append a major version to the name.
15376 soname_spec='${libname}${release}${shared_ext}$major'
15383 hardcode_into_libs=yes
15384 if test "$host_cpu" = ia64; then
15385 # AIX 5 supports IA64
15386 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15387 shlibpath_var=LD_LIBRARY_PATH
15389 # With GCC up to 2.95.x, collect2 would create an import file
15390 # for dependence libraries. The import file would start with
15391 # the line `#! .'. This would cause the generated library to
15392 # depend on `.', always an invalid library. This was fixed in
15393 # development snapshots of GCC prior to 3.0.
15395 aix4 | aix4.[01] | aix4.[01].*)
15396 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15398 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15401 can_build_shared=no
15405 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15406 # soname into executable. Probably we can add versioning support to
15407 # collect2, so additional links can be useful in future.
15408 if test "$aix_use_runtimelinking" = yes; then
15409 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15410 # instead of lib<name>.a to let people know that these are not
15411 # typical AIX shared libraries.
15412 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15414 # We preserve .a as extension for shared libraries through AIX4.2
15415 # and later when we are not doing run time linking.
15416 library_names_spec='${libname}${release}.a $libname.a'
15417 soname_spec='${libname}${release}${shared_ext}$major'
15419 shlibpath_var=LIBPATH
15424 library_names_spec='$libname.ixlibrary $libname.a'
15425 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15426 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'
15430 library_names_spec='${libname}${shared_ext}'
15431 dynamic_linker="$host_os ld.so"
15432 shlibpath_var=LIBRARY_PATH
15438 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15439 soname_spec='${libname}${release}${shared_ext}$major'
15440 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15441 shlibpath_var=LD_LIBRARY_PATH
15442 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15443 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15444 # the default ld.so.conf also contains /usr/contrib/lib and
15445 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15446 # libtool to hard-code these into programs
15449 cygwin* | mingw* | pw32*)
15450 version_type=windows
15455 case $GCC,$host_os in
15456 yes,cygwin* | yes,mingw* | yes,pw32*)
15457 library_names_spec='$libname.dll.a'
15458 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15459 postinstall_cmds='base_file=`basename \${file}`~
15460 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15461 dldir=$destdir/`dirname \$dlpath`~
15462 test -d \$dldir || mkdir -p \$dldir~
15463 $install_prog $dir/$dlname \$dldir/$dlname~
15464 chmod a+x \$dldir/$dlname'
15465 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15466 dlpath=$dir/\$dldll~
15468 shlibpath_overrides_runpath=yes
15472 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15473 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15474 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15477 # MinGW DLLs use traditional 'lib' prefix
15478 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15479 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15480 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15481 # It is most probably a Windows format PATH printed by
15482 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15483 # path with ; separators, and with drive letters. We can handle the
15484 # drive letters (cygwin fileutils understands them), so leave them,
15485 # especially as we might pass files found there to a mingw objdump,
15486 # which wouldn't understand a cygwinified path. Ahh.
15487 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15489 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15493 # pw32 DLLs use 'pw' prefix rather than 'lib'
15494 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15500 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15503 dynamic_linker='Win32 ld.exe'
15504 # FIXME: first we should search . and the directory the executable is in
15508 darwin* | rhapsody*)
15509 dynamic_linker="$host_os dyld"
15510 version_type=darwin
15513 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15514 soname_spec='${libname}${release}${major}$shared_ext'
15515 shlibpath_overrides_runpath=yes
15516 shlibpath_var=DYLD_LIBRARY_PATH
15517 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15518 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15519 if test "$GCC" = yes; then
15520 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"`
15522 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15524 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15531 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15532 soname_spec='${libname}${release}${shared_ext}$major'
15533 shlibpath_var=LD_LIBRARY_PATH
15544 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15545 soname_spec='${libname}${release}${shared_ext}$major'
15546 shlibpath_var=LD_LIBRARY_PATH
15547 shlibpath_overrides_runpath=no
15548 hardcode_into_libs=yes
15549 dynamic_linker='GNU ld.so'
15552 freebsd* | dragonfly*)
15553 # DragonFly does not have aout. When/if they implement a new
15554 # versioning mechanism, adjust this.
15555 if test -x /usr/bin/objformat; then
15556 objformat=`/usr/bin/objformat`
15559 freebsd[123]*) objformat=aout ;;
15560 *) objformat=elf ;;
15563 version_type=freebsd-$objformat
15564 case $version_type in
15566 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15571 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15575 shlibpath_var=LD_LIBRARY_PATH
15578 shlibpath_overrides_runpath=yes
15580 freebsd3.[01]* | freebsdelf3.[01]*)
15581 shlibpath_overrides_runpath=yes
15582 hardcode_into_libs=yes
15584 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15585 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15586 shlibpath_overrides_runpath=no
15587 hardcode_into_libs=yes
15589 freebsd*) # from 4.6 on
15590 shlibpath_overrides_runpath=yes
15591 hardcode_into_libs=yes
15600 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15601 soname_spec='${libname}${release}${shared_ext}$major'
15602 shlibpath_var=LD_LIBRARY_PATH
15603 hardcode_into_libs=yes
15606 hpux9* | hpux10* | hpux11*)
15607 # Give a soname corresponding to the major version so that dld.sl refuses to
15608 # link against other versions.
15615 hardcode_into_libs=yes
15616 dynamic_linker="$host_os dld.so"
15617 shlibpath_var=LD_LIBRARY_PATH
15618 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15619 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15620 soname_spec='${libname}${release}${shared_ext}$major'
15621 if test "X$HPUX_IA64_MODE" = X32; then
15622 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15624 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15626 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15630 hardcode_into_libs=yes
15631 dynamic_linker="$host_os dld.sl"
15632 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15633 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15634 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15635 soname_spec='${libname}${release}${shared_ext}$major'
15636 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15637 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15641 dynamic_linker="$host_os dld.sl"
15642 shlibpath_var=SHLIB_PATH
15643 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15644 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15645 soname_spec='${libname}${release}${shared_ext}$major'
15648 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15649 postinstall_cmds='chmod 555 $lib'
15656 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15657 soname_spec='${libname}${release}${shared_ext}$major'
15658 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15659 shlibpath_var=LD_LIBRARY_PATH
15660 shlibpath_overrides_runpath=no
15661 hardcode_into_libs=yes
15664 irix5* | irix6* | nonstopux*)
15666 nonstopux*) version_type=nonstopux ;;
15668 if test "$lt_cv_prog_gnu_ld" = yes; then
15676 soname_spec='${libname}${release}${shared_ext}$major'
15677 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15679 irix5* | nonstopux*)
15680 libsuff= shlibsuff=
15683 case $LD in # libtool.m4 will add one of these switches to LD
15684 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15685 libsuff= shlibsuff= libmagic=32-bit;;
15686 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15687 libsuff=32 shlibsuff=N32 libmagic=N32;;
15688 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15689 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15690 *) libsuff= shlibsuff= libmagic=never-match;;
15694 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15695 shlibpath_overrides_runpath=no
15696 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15697 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15698 hardcode_into_libs=yes
15701 # No shared lib support for Linux oldld, aout, or coff.
15702 linux*oldld* | linux*aout* | linux*coff*)
15706 # This must be Linux ELF.
15711 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15712 soname_spec='${libname}${release}${shared_ext}$major'
15713 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15714 shlibpath_var=LD_LIBRARY_PATH
15715 shlibpath_overrides_runpath=no
15716 # This implies no fast_install, which is unacceptable.
15717 # Some rework will be needed to allow for fast_install
15718 # before this can be enabled.
15719 hardcode_into_libs=yes
15721 # Append ld.so.conf contents to the search path
15722 if test -f /etc/ld.so.conf; then
15723 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15724 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15727 # We used to test for /lib/ld.so.1 and disable shared libraries on
15728 # powerpc, because MkLinux only supported shared libraries with the
15729 # GNU dynamic linker. Since this was broken with cross compilers,
15730 # most powerpc-linux boxes support dynamic linking these days and
15731 # people can always --disable-shared, the test was removed, and we
15732 # assume the GNU/Linux dynamic linker is in use.
15733 dynamic_linker='GNU/Linux ld.so'
15740 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15741 soname_spec='${libname}${release}${shared_ext}$major'
15742 shlibpath_var=LD_LIBRARY_PATH
15743 shlibpath_overrides_runpath=no
15744 hardcode_into_libs=yes
15745 dynamic_linker='GNU ld.so'
15752 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15753 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15754 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15755 dynamic_linker='NetBSD (a.out) ld.so'
15757 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15758 soname_spec='${libname}${release}${shared_ext}$major'
15759 dynamic_linker='NetBSD ld.elf_so'
15761 shlibpath_var=LD_LIBRARY_PATH
15762 shlibpath_overrides_runpath=yes
15763 hardcode_into_libs=yes
15768 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15769 shlibpath_var=LD_LIBRARY_PATH
15770 shlibpath_overrides_runpath=yes
15777 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15778 soname_spec='${libname}${release}${shared_ext}$major'
15779 shlibpath_var=LD_LIBRARY_PATH
15780 shlibpath_overrides_runpath=yes
15785 sys_lib_dlsearch_path_spec="/usr/lib"
15787 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15789 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15790 *) need_version=no ;;
15792 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15793 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15794 shlibpath_var=LD_LIBRARY_PATH
15795 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15797 openbsd2.[89] | openbsd2.[89].*)
15798 shlibpath_overrides_runpath=no
15801 shlibpath_overrides_runpath=yes
15805 shlibpath_overrides_runpath=yes
15810 libname_spec='$name'
15813 library_names_spec='$libname${shared_ext} $libname.a'
15814 dynamic_linker='OS/2 ld.exe'
15815 shlibpath_var=LIBPATH
15818 osf3* | osf4* | osf5*)
15822 soname_spec='${libname}${release}${shared_ext}$major'
15823 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15824 shlibpath_var=LD_LIBRARY_PATH
15825 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15826 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15833 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15834 soname_spec='${libname}${release}${shared_ext}$major'
15835 shlibpath_var=LD_LIBRARY_PATH
15836 shlibpath_overrides_runpath=yes
15837 hardcode_into_libs=yes
15838 # ldd complains unless libraries are executable
15839 postinstall_cmds='chmod +x $lib'
15844 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15845 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15846 shlibpath_var=LD_LIBRARY_PATH
15847 shlibpath_overrides_runpath=yes
15848 if test "$with_gnu_ld" = yes; then
15856 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15857 soname_spec='${libname}${release}${shared_ext}$major'
15858 shlibpath_var=LD_LIBRARY_PATH
15859 case $host_vendor in
15861 shlibpath_overrides_runpath=no
15863 export_dynamic_flag_spec='${wl}-Blargedynsym'
15864 runpath_var=LD_RUN_PATH
15872 shlibpath_overrides_runpath=no
15873 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15879 if test -d /usr/nec ;then
15881 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15882 soname_spec='$libname${shared_ext}.$major'
15883 shlibpath_var=LD_LIBRARY_PATH
15887 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15888 version_type=freebsd-elf
15891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15892 soname_spec='${libname}${release}${shared_ext}$major'
15893 shlibpath_var=LD_LIBRARY_PATH
15894 hardcode_into_libs=yes
15895 if test "$with_gnu_ld" = yes; then
15896 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15897 shlibpath_overrides_runpath=no
15899 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15900 shlibpath_overrides_runpath=yes
15903 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15907 sys_lib_dlsearch_path_spec='/usr/lib'
15912 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15913 soname_spec='${libname}${release}${shared_ext}$major'
15914 shlibpath_var=LD_LIBRARY_PATH
15921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15922 $as_echo "$dynamic_linker" >&6; }
15923 test "$dynamic_linker" = no && can_build_shared=no
15925 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15926 if test "$GCC" = yes; then
15927 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15931 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15932 hardcode_action_F77=
15933 if test -n "$hardcode_libdir_flag_spec_F77" || \
15934 test -n "$runpath_var_F77" || \
15935 test "X$hardcode_automatic_F77" = "Xyes" ; then
15937 # We can hardcode non-existant directories.
15938 if test "$hardcode_direct_F77" != no &&
15939 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15940 # have to relink, otherwise we might link with an installed library
15941 # when we should be linking with a yet-to-be-installed one
15942 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15943 test "$hardcode_minus_L_F77" != no; then
15944 # Linking always hardcodes the temporary library directory.
15945 hardcode_action_F77=relink
15947 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15948 hardcode_action_F77=immediate
15951 # We cannot hardcode anything, or else we can only hardcode existing
15953 hardcode_action_F77=unsupported
15955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_F77" >&5
15956 $as_echo "$hardcode_action_F77" >&6; }
15958 if test "$hardcode_action_F77" = relink; then
15959 # Fast installation is not supported
15960 enable_fast_install=no
15961 elif test "$shlibpath_overrides_runpath" = yes ||
15962 test "$enable_shared" = no; then
15963 # Fast installation is not necessary
15964 enable_fast_install=needless
15968 # The else clause should only fire when bootstrapping the
15969 # libtool distribution, otherwise you forgot to ship ltmain.sh
15970 # with your package, and you will get complaints that there are
15971 # no rules to generate ltmain.sh.
15972 if test -f "$ltmain"; then
15973 # See if we are running on zsh, and set the options which allow our commands through
15974 # without removal of \ escapes.
15975 if test -n "${ZSH_VERSION+set}" ; then
15976 setopt NO_GLOB_SUBST
15978 # Now quote all the things that may contain metacharacters while being
15979 # careful not to overquote the AC_SUBSTed values. We take copies of the
15980 # variables and quote the copies for generation of the libtool script.
15981 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15983 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15984 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15985 deplibs_check_method reload_flag reload_cmds need_locks \
15986 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15987 lt_cv_sys_global_symbol_to_c_name_address \
15988 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15989 old_postinstall_cmds old_postuninstall_cmds \
15993 lt_prog_compiler_wl_F77 \
15994 lt_prog_compiler_pic_F77 \
15995 lt_prog_compiler_static_F77 \
15996 lt_prog_compiler_no_builtin_flag_F77 \
15997 export_dynamic_flag_spec_F77 \
15998 thread_safe_flag_spec_F77 \
15999 whole_archive_flag_spec_F77 \
16000 enable_shared_with_static_runtimes_F77 \
16001 old_archive_cmds_F77 \
16002 old_archive_from_new_cmds_F77 \
16003 predep_objects_F77 \
16004 postdep_objects_F77 \
16007 compiler_lib_search_path_F77 \
16009 archive_expsym_cmds_F77 \
16010 postinstall_cmds_F77 \
16011 postuninstall_cmds_F77 \
16012 old_archive_from_expsyms_cmds_F77 \
16013 allow_undefined_flag_F77 \
16014 no_undefined_flag_F77 \
16015 export_symbols_cmds_F77 \
16016 hardcode_libdir_flag_spec_F77 \
16017 hardcode_libdir_flag_spec_ld_F77 \
16018 hardcode_libdir_separator_F77 \
16019 hardcode_automatic_F77 \
16021 module_expsym_cmds_F77 \
16022 lt_cv_prog_compiler_c_o_F77 \
16023 exclude_expsyms_F77 \
16024 include_expsyms_F77; do
16027 old_archive_cmds_F77 | \
16028 old_archive_from_new_cmds_F77 | \
16029 archive_cmds_F77 | \
16030 archive_expsym_cmds_F77 | \
16031 module_cmds_F77 | \
16032 module_expsym_cmds_F77 | \
16033 old_archive_from_expsyms_cmds_F77 | \
16034 export_symbols_cmds_F77 | \
16035 extract_expsyms_cmds | reload_cmds | finish_cmds | \
16036 postinstall_cmds | postuninstall_cmds | \
16037 old_postinstall_cmds | old_postuninstall_cmds | \
16038 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16039 # Double-quote double-evaled strings.
16040 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16043 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16049 *'\$0 --fallback-echo"')
16050 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16056 cat <<__EOF__ >> "$cfgfile"
16057 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16059 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16061 # Shell to use when invoking shell scripts.
16064 # Whether or not to build shared libraries.
16065 build_libtool_libs=$enable_shared
16067 # Whether or not to build static libraries.
16068 build_old_libs=$enable_static
16070 # Whether or not to add -lc for building shared libraries.
16071 build_libtool_need_lc=$archive_cmds_need_lc_F77
16073 # Whether or not to disallow shared libs when runtime libs are static
16074 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16076 # Whether or not to optimize for fast installation.
16077 fast_install=$enable_fast_install
16080 host_alias=$host_alias
16084 # The build system.
16085 build_alias=$build_alias
16089 # An echo program that does not interpret backslashes.
16094 AR_FLAGS=$lt_AR_FLAGS
16099 # LTCC compiler flags.
16100 LTCFLAGS=$lt_LTCFLAGS
16102 # A language-specific compiler.
16103 CC=$lt_compiler_F77
16105 # Is the compiler the GNU C compiler?
16111 # The linker used to build libraries.
16114 # Whether we need hard or soft links.
16117 # A BSD-compatible nm program.
16120 # A symbol stripping program
16123 # Used to examine libraries when file_magic_cmd begins "file"
16124 MAGIC_CMD=$MAGIC_CMD
16126 # Used on cygwin: DLL creation program.
16129 # Used on cygwin: object dumper.
16132 # Used on cygwin: assembler.
16135 # The name of the directory that contains temporary libtool files.
16138 # How to create reloadable object files.
16139 reload_flag=$lt_reload_flag
16140 reload_cmds=$lt_reload_cmds
16142 # How to pass a linker flag through the compiler.
16143 wl=$lt_lt_prog_compiler_wl_F77
16145 # Object file suffix (normally "o").
16146 objext="$ac_objext"
16148 # Old archive suffix (normally "a").
16151 # Shared library suffix (normally ".so").
16152 shrext_cmds='$shrext_cmds'
16154 # Executable file suffix (normally "").
16157 # Additional compiler flags for building library objects.
16158 pic_flag=$lt_lt_prog_compiler_pic_F77
16161 # What is the maximum length of a command?
16162 max_cmd_len=$lt_cv_sys_max_cmd_len
16164 # Does compiler simultaneously support -c and -o options?
16165 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16167 # Must we lock files when doing compilation?
16168 need_locks=$lt_need_locks
16170 # Do we need the lib prefix for modules?
16171 need_lib_prefix=$need_lib_prefix
16173 # Do we need a version for libraries?
16174 need_version=$need_version
16176 # Whether dlopen is supported.
16177 dlopen_support=$enable_dlopen
16179 # Whether dlopen of programs is supported.
16180 dlopen_self=$enable_dlopen_self
16182 # Whether dlopen of statically linked programs is supported.
16183 dlopen_self_static=$enable_dlopen_self_static
16185 # Compiler flag to prevent dynamic linking.
16186 link_static_flag=$lt_lt_prog_compiler_static_F77
16188 # Compiler flag to turn off builtin functions.
16189 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16191 # Compiler flag to allow reflexive dlopens.
16192 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16194 # Compiler flag to generate shared objects directly from archives.
16195 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16197 # Compiler flag to generate thread-safe objects.
16198 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16200 # Library versioning type.
16201 version_type=$version_type
16203 # Format of library name prefix.
16204 libname_spec=$lt_libname_spec
16206 # List of archive names. First name is the real one, the rest are links.
16207 # The last name is the one that the linker finds with -lNAME.
16208 library_names_spec=$lt_library_names_spec
16210 # The coded name of the library, if different from the real name.
16211 soname_spec=$lt_soname_spec
16213 # Commands used to build and install an old-style archive.
16215 old_archive_cmds=$lt_old_archive_cmds_F77
16216 old_postinstall_cmds=$lt_old_postinstall_cmds
16217 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16219 # Create an old-style archive from a shared archive.
16220 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16222 # Create a temporary old-style archive to link instead of a shared archive.
16223 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16225 # Commands used to build and install a shared archive.
16226 archive_cmds=$lt_archive_cmds_F77
16227 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16228 postinstall_cmds=$lt_postinstall_cmds
16229 postuninstall_cmds=$lt_postuninstall_cmds
16231 # Commands used to build a loadable module (assumed same as above if empty)
16232 module_cmds=$lt_module_cmds_F77
16233 module_expsym_cmds=$lt_module_expsym_cmds_F77
16235 # Commands to strip libraries.
16236 old_striplib=$lt_old_striplib
16237 striplib=$lt_striplib
16239 # Dependencies to place before the objects being linked to create a
16241 predep_objects=$lt_predep_objects_F77
16243 # Dependencies to place after the objects being linked to create a
16245 postdep_objects=$lt_postdep_objects_F77
16247 # Dependencies to place before the objects being linked to create a
16249 predeps=$lt_predeps_F77
16251 # Dependencies to place after the objects being linked to create a
16253 postdeps=$lt_postdeps_F77
16255 # The library search path used internally by the compiler when linking
16256 # a shared library.
16257 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16259 # Method to check whether dependent libraries are shared objects.
16260 deplibs_check_method=$lt_deplibs_check_method
16262 # Command to use when deplibs_check_method == file_magic.
16263 file_magic_cmd=$lt_file_magic_cmd
16265 # Flag that allows shared libraries with undefined symbols to be built.
16266 allow_undefined_flag=$lt_allow_undefined_flag_F77
16268 # Flag that forces no undefined symbols.
16269 no_undefined_flag=$lt_no_undefined_flag_F77
16271 # Commands used to finish a libtool library installation in a directory.
16272 finish_cmds=$lt_finish_cmds
16274 # Same as above, but a single script fragment to be evaled but not shown.
16275 finish_eval=$lt_finish_eval
16277 # Take the output of nm and produce a listing of raw symbols and C names.
16278 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16280 # Transform the output of nm in a proper C declaration
16281 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16283 # Transform the output of nm in a C name address pair
16284 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16286 # This is the shared library runtime path variable.
16287 runpath_var=$runpath_var
16289 # This is the shared library path variable.
16290 shlibpath_var=$shlibpath_var
16292 # Is shlibpath searched before the hard-coded library search path?
16293 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16295 # How to hardcode a shared library path into an executable.
16296 hardcode_action=$hardcode_action_F77
16298 # Whether we should hardcode library paths into libraries.
16299 hardcode_into_libs=$hardcode_into_libs
16301 # Flag to hardcode \$libdir into a binary during linking.
16302 # This must work even if \$libdir does not exist.
16303 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16305 # If ld is used when linking, flag to hardcode \$libdir into
16306 # a binary during linking. This must work even if \$libdir does
16308 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16310 # Whether we need a single -rpath flag with a separated argument.
16311 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16313 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16314 # resulting binary.
16315 hardcode_direct=$hardcode_direct_F77
16317 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16318 # resulting binary.
16319 hardcode_minus_L=$hardcode_minus_L_F77
16321 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16322 # the resulting binary.
16323 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16325 # Set to yes if building a shared library automatically hardcodes DIR into the library
16326 # and all subsequent libraries and executables linked against it.
16327 hardcode_automatic=$hardcode_automatic_F77
16329 # Variables whose values should be saved in libtool wrapper scripts and
16330 # restored at relink time.
16331 variables_saved_for_relink="$variables_saved_for_relink"
16333 # Whether libtool must link a program against all its dependency libraries.
16334 link_all_deplibs=$link_all_deplibs_F77
16336 # Compile-time system search path for libraries
16337 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16339 # Run-time system search path for libraries
16340 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16342 # Fix the shell variable \$srcfile for the compiler.
16343 fix_srcfile_path="$fix_srcfile_path_F77"
16345 # Set to yes if exported symbols are required.
16346 always_export_symbols=$always_export_symbols_F77
16348 # The commands to list exported symbols.
16349 export_symbols_cmds=$lt_export_symbols_cmds_F77
16351 # The commands to extract the exported symbol list from a shared archive.
16352 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16354 # Symbols that should not be listed in the preloaded symbols.
16355 exclude_expsyms=$lt_exclude_expsyms_F77
16357 # Symbols that must always be exported.
16358 include_expsyms=$lt_include_expsyms_F77
16360 # ### END LIBTOOL TAG CONFIG: $tagname
16366 # If there is no Makefile yet, we rely on a make rule to execute
16367 # `config.status --recheck' to rerun these tests and create the
16368 # libtool script then.
16369 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16370 if test -f "$ltmain_in"; then
16371 test -f Makefile && make "$ltmain"
16377 ac_cpp='$CPP $CPPFLAGS'
16378 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16379 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16380 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16390 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16393 # Source file extension for Java test sources.
16396 # Object file extension for compiled Java test sources.
16400 # Code to be used in simple compile tests
16401 lt_simple_compile_test_code="class foo {}\n"
16403 # Code to be used in simple link tests
16404 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16406 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16408 # If no C compiler was specified, use CC.
16411 # If no C compiler flags were specified, use CFLAGS.
16412 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16414 # Allow CC to be a program name with arguments.
16418 # save warnings/boilerplate of simple test code
16419 ac_outfile=conftest.$ac_objext
16420 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16421 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16422 _lt_compiler_boilerplate=`cat conftest.err`
16425 ac_outfile=conftest.$ac_objext
16426 printf "$lt_simple_link_test_code" >conftest.$ac_ext
16427 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16428 _lt_linker_boilerplate=`cat conftest.err`
16432 # Allow CC to be a program name with arguments.
16437 for cc_temp in $compiler""; do
16439 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16440 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16445 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16448 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16449 archive_cmds_need_lc_GCJ=no
16451 old_archive_cmds_GCJ=$old_archive_cmds
16454 lt_prog_compiler_no_builtin_flag_GCJ=
16456 if test "$GCC" = yes; then
16457 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16461 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
16462 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
16463 $as_echo_n "(cached) " >&6
16465 lt_cv_prog_compiler_rtti_exceptions=no
16466 ac_outfile=conftest.$ac_objext
16467 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16468 lt_compiler_flag="-fno-rtti -fno-exceptions"
16469 # Insert the option either (1) after the last *FLAGS variable, or
16470 # (2) before a word containing "conftest.", or (3) at the end.
16471 # Note that $ac_compile itself does not contain backslashes and begins
16472 # with a dollar sign (not a hyphen), so the echo should work correctly.
16473 # The option is referenced via a variable to avoid confusing sed.
16474 lt_compile=`echo "$ac_compile" | $SED \
16475 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16476 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16477 -e 's:$: $lt_compiler_flag:'`
16478 (eval echo "\"\$as_me:16478: $lt_compile\"" >&5)
16479 (eval "$lt_compile" 2>conftest.err)
16481 cat conftest.err >&5
16482 echo "$as_me:16482: \$? = $ac_status" >&5
16483 if (exit $ac_status) && test -s "$ac_outfile"; then
16484 # The compiler can only warn and ignore the option if not recognized
16485 # So say no if there are warnings other than the usual output.
16486 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16487 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16488 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16489 lt_cv_prog_compiler_rtti_exceptions=yes
16495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16496 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16498 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16499 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16506 lt_prog_compiler_wl_GCJ=
16507 lt_prog_compiler_pic_GCJ=
16508 lt_prog_compiler_static_GCJ=
16510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
16511 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
16513 if test "$GCC" = yes; then
16514 lt_prog_compiler_wl_GCJ='-Wl,'
16515 lt_prog_compiler_static_GCJ='-static'
16519 # All AIX code is PIC.
16520 if test "$host_cpu" = ia64; then
16521 # AIX 5 now supports IA64 processor
16522 lt_prog_compiler_static_GCJ='-Bstatic'
16527 # FIXME: we need at least 68020 code to build shared libraries, but
16528 # adding the `-m68020' flag to GCC prevents building anything better,
16530 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16533 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16534 # PIC is the default for these OSes.
16537 mingw* | pw32* | os2*)
16538 # This hack is so that the source file can tell whether it is being
16539 # built for inclusion in a dll (and should export symbols for example).
16540 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16543 darwin* | rhapsody*)
16544 # PIC is the default on this platform
16545 # Common symbols not allowed in MH_DYLIB files
16546 lt_prog_compiler_pic_GCJ='-fno-common'
16550 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16551 # Instead, we relocate shared libraries at runtime.
16555 # Just because we use GCC doesn't mean we suddenly get shared libraries
16556 # on systems that don't support them.
16557 lt_prog_compiler_can_build_shared_GCJ=no
16562 if test -d /usr/nec; then
16563 lt_prog_compiler_pic_GCJ=-Kconform_pic
16568 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16569 # not for PA HP-UX.
16575 lt_prog_compiler_pic_GCJ='-fPIC'
16581 lt_prog_compiler_pic_GCJ='-fPIC'
16585 # PORTME Check for flag to pass linker flags through the system compiler.
16588 lt_prog_compiler_wl_GCJ='-Wl,'
16589 if test "$host_cpu" = ia64; then
16590 # AIX 5 now supports IA64 processor
16591 lt_prog_compiler_static_GCJ='-Bstatic'
16593 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16597 # PIC is the default on this platform
16598 # Common symbols not allowed in MH_DYLIB files
16599 case $cc_basename in
16601 lt_prog_compiler_pic_GCJ='-qnocommon'
16602 lt_prog_compiler_wl_GCJ='-Wl,'
16607 mingw* | pw32* | os2*)
16608 # This hack is so that the source file can tell whether it is being
16609 # built for inclusion in a dll (and should export symbols for example).
16610 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16613 hpux9* | hpux10* | hpux11*)
16614 lt_prog_compiler_wl_GCJ='-Wl,'
16615 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16616 # not for PA HP-UX.
16622 lt_prog_compiler_pic_GCJ='+Z'
16625 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16626 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16629 irix5* | irix6* | nonstopux*)
16630 lt_prog_compiler_wl_GCJ='-Wl,'
16631 # PIC (with -KPIC) is the default.
16632 lt_prog_compiler_static_GCJ='-non_shared'
16636 lt_prog_compiler_pic_GCJ='-KPIC'
16637 lt_prog_compiler_static_GCJ='-Bstatic'
16641 case $cc_basename in
16643 lt_prog_compiler_wl_GCJ='-Wl,'
16644 lt_prog_compiler_pic_GCJ='-KPIC'
16645 lt_prog_compiler_static_GCJ='-static'
16647 pgcc* | pgf77* | pgf90* | pgf95*)
16648 # Portland Group compilers (*not* the Pentium gcc compiler,
16649 # which looks to be a dead project)
16650 lt_prog_compiler_wl_GCJ='-Wl,'
16651 lt_prog_compiler_pic_GCJ='-fpic'
16652 lt_prog_compiler_static_GCJ='-Bstatic'
16655 lt_prog_compiler_wl_GCJ='-Wl,'
16656 # All Alpha code is PIC.
16657 lt_prog_compiler_static_GCJ='-non_shared'
16662 osf3* | osf4* | osf5*)
16663 lt_prog_compiler_wl_GCJ='-Wl,'
16664 # All OSF/1 code is PIC.
16665 lt_prog_compiler_static_GCJ='-non_shared'
16669 lt_prog_compiler_pic_GCJ='-KPIC'
16670 lt_prog_compiler_static_GCJ='-Bstatic'
16671 case $cc_basename in
16672 f77* | f90* | f95*)
16673 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16675 lt_prog_compiler_wl_GCJ='-Wl,';;
16680 lt_prog_compiler_wl_GCJ='-Qoption ld '
16681 lt_prog_compiler_pic_GCJ='-PIC'
16682 lt_prog_compiler_static_GCJ='-Bstatic'
16685 sysv4 | sysv4.2uw2* | sysv4.3*)
16686 lt_prog_compiler_wl_GCJ='-Wl,'
16687 lt_prog_compiler_pic_GCJ='-KPIC'
16688 lt_prog_compiler_static_GCJ='-Bstatic'
16692 if test -d /usr/nec ;then
16693 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16694 lt_prog_compiler_static_GCJ='-Bstatic'
16698 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16699 lt_prog_compiler_wl_GCJ='-Wl,'
16700 lt_prog_compiler_pic_GCJ='-KPIC'
16701 lt_prog_compiler_static_GCJ='-Bstatic'
16705 lt_prog_compiler_wl_GCJ='-Wl,'
16706 lt_prog_compiler_can_build_shared_GCJ=no
16710 lt_prog_compiler_pic_GCJ='-pic'
16711 lt_prog_compiler_static_GCJ='-Bstatic'
16715 lt_prog_compiler_can_build_shared_GCJ=no
16720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_GCJ" >&5
16721 $as_echo "$lt_prog_compiler_pic_GCJ" >&6; }
16724 # Check to make sure the PIC flag actually works.
16726 if test -n "$lt_prog_compiler_pic_GCJ"; then
16728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16729 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
16730 if ${lt_prog_compiler_pic_works_GCJ+:} false; then :
16731 $as_echo_n "(cached) " >&6
16733 lt_prog_compiler_pic_works_GCJ=no
16734 ac_outfile=conftest.$ac_objext
16735 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16736 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16737 # Insert the option either (1) after the last *FLAGS variable, or
16738 # (2) before a word containing "conftest.", or (3) at the end.
16739 # Note that $ac_compile itself does not contain backslashes and begins
16740 # with a dollar sign (not a hyphen), so the echo should work correctly.
16741 # The option is referenced via a variable to avoid confusing sed.
16742 lt_compile=`echo "$ac_compile" | $SED \
16743 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16744 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16745 -e 's:$: $lt_compiler_flag:'`
16746 (eval echo "\"\$as_me:16746: $lt_compile\"" >&5)
16747 (eval "$lt_compile" 2>conftest.err)
16749 cat conftest.err >&5
16750 echo "$as_me:16750: \$? = $ac_status" >&5
16751 if (exit $ac_status) && test -s "$ac_outfile"; then
16752 # The compiler can only warn and ignore the option if not recognized
16753 # So say no if there are warnings other than the usual output.
16754 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16755 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16756 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16757 lt_prog_compiler_pic_works_GCJ=yes
16763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_works_GCJ" >&5
16764 $as_echo "$lt_prog_compiler_pic_works_GCJ" >&6; }
16766 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16767 case $lt_prog_compiler_pic_GCJ in
16769 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16772 lt_prog_compiler_pic_GCJ=
16773 lt_prog_compiler_can_build_shared_GCJ=no
16778 # For platforms which do not support PIC, -DPIC is meaningless:
16780 lt_prog_compiler_pic_GCJ=
16783 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16788 # Check to make sure the static flag actually works.
16790 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16792 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
16793 if ${lt_prog_compiler_static_works_GCJ+:} false; then :
16794 $as_echo_n "(cached) " >&6
16796 lt_prog_compiler_static_works_GCJ=no
16797 save_LDFLAGS="$LDFLAGS"
16798 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16799 printf "$lt_simple_link_test_code" > conftest.$ac_ext
16800 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16801 # The linker can only warn and ignore the option if not recognized
16802 # So say no if there are warnings
16803 if test -s conftest.err; then
16804 # Append any errors to the config.log.
16805 cat conftest.err 1>&5
16806 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16807 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16808 if diff conftest.exp conftest.er2 >/dev/null; then
16809 lt_prog_compiler_static_works_GCJ=yes
16812 lt_prog_compiler_static_works_GCJ=yes
16816 LDFLAGS="$save_LDFLAGS"
16819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_static_works_GCJ" >&5
16820 $as_echo "$lt_prog_compiler_static_works_GCJ" >&6; }
16822 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16825 lt_prog_compiler_static_GCJ=
16829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16830 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16831 if ${lt_cv_prog_compiler_c_o_GCJ+:} false; then :
16832 $as_echo_n "(cached) " >&6
16834 lt_cv_prog_compiler_c_o_GCJ=no
16835 $rm -r conftest 2>/dev/null
16839 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16841 lt_compiler_flag="-o out/conftest2.$ac_objext"
16842 # Insert the option either (1) after the last *FLAGS variable, or
16843 # (2) before a word containing "conftest.", or (3) at the end.
16844 # Note that $ac_compile itself does not contain backslashes and begins
16845 # with a dollar sign (not a hyphen), so the echo should work correctly.
16846 lt_compile=`echo "$ac_compile" | $SED \
16847 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16848 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16849 -e 's:$: $lt_compiler_flag:'`
16850 (eval echo "\"\$as_me:16850: $lt_compile\"" >&5)
16851 (eval "$lt_compile" 2>out/conftest.err)
16853 cat out/conftest.err >&5
16854 echo "$as_me:16854: \$? = $ac_status" >&5
16855 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16857 # The compiler can only warn and ignore the option if not recognized
16858 # So say no if there are warnings
16859 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16860 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16861 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16862 lt_cv_prog_compiler_c_o_GCJ=yes
16867 # SGI C++ compiler will create directory out/ii_files/ for
16868 # template instantiation
16869 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16870 $rm out/* && rmdir out
16876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16877 $as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16880 hard_links="nottested"
16881 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16882 # do not overwrite the value of need_locks provided by the user
16883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
16884 $as_echo_n "checking if we can lock with hard links... " >&6; }
16887 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16889 ln conftest.a conftest.b 2>&5 || hard_links=no
16890 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
16892 $as_echo "$hard_links" >&6; }
16893 if test "$hard_links" = no; then
16894 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16895 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16903 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16906 allow_undefined_flag_GCJ=
16907 enable_shared_with_static_runtimes_GCJ=no
16909 archive_expsym_cmds_GCJ=
16910 old_archive_From_new_cmds_GCJ=
16911 old_archive_from_expsyms_cmds_GCJ=
16912 export_dynamic_flag_spec_GCJ=
16913 whole_archive_flag_spec_GCJ=
16914 thread_safe_flag_spec_GCJ=
16915 hardcode_libdir_flag_spec_GCJ=
16916 hardcode_libdir_flag_spec_ld_GCJ=
16917 hardcode_libdir_separator_GCJ=
16918 hardcode_direct_GCJ=no
16919 hardcode_minus_L_GCJ=no
16920 hardcode_shlibpath_var_GCJ=unsupported
16921 link_all_deplibs_GCJ=unknown
16922 hardcode_automatic_GCJ=no
16924 module_expsym_cmds_GCJ=
16925 always_export_symbols_GCJ=no
16926 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16927 # include_expsyms should be a list of space-separated symbols to be *always*
16928 # included in the symbol list
16929 include_expsyms_GCJ=
16930 # exclude_expsyms can be an extended regexp of symbols to exclude
16931 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16932 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16933 # as well as any symbol that contains `d'.
16934 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16935 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16936 # platforms (ab)use it in PIC code, but their linkers get confused if
16937 # the symbol is explicitly referenced. Since portable code cannot
16938 # rely on this symbol name, it's probably fine to never include it in
16939 # preloaded symbol tables.
16940 extract_expsyms_cmds=
16941 # Just being paranoid about ensuring that cc_basename is set.
16942 for cc_temp in $compiler""; do
16944 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16945 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16950 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16953 cygwin* | mingw* | pw32*)
16954 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16955 # When not using gcc, we currently assume that we are using
16956 # Microsoft Visual C++.
16957 if test "$GCC" != yes; then
16962 # we just hope/assume this is gcc and not c89 (= MSVC++)
16971 if test "$with_gnu_ld" = yes; then
16972 # If archive_cmds runs LD, not CC, wlarc should be empty
16975 # Set some defaults for GNU ld with shared library support. These
16976 # are reset later if shared libraries are not supported. Putting them
16977 # here allows them to be overridden if necessary.
16978 runpath_var=LD_RUN_PATH
16979 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16980 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16981 # ancient GNU ld didn't support --whole-archive et. al.
16982 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16983 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16985 whole_archive_flag_spec_GCJ=
16987 supports_anon_versioning=no
16988 case `$LD -v 2>/dev/null` in
16989 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16990 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16991 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16992 *\ 2.11.*) ;; # other 2.11 versions
16993 *) supports_anon_versioning=yes ;;
16996 # See if GNU ld supports shared libraries.
16998 aix3* | aix4* | aix5*)
16999 # On AIX/PPC, the GNU linker is very broken
17000 if test "$host_cpu" != ia64; then
17004 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17005 *** to be unable to reliably create shared libraries on AIX.
17006 *** Therefore, libtool is disabling shared libraries support. If you
17007 *** really care for shared libraries, you may want to modify your PATH
17008 *** so that a non-GNU linker is found, and then restart.
17015 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)'
17016 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17017 hardcode_minus_L_GCJ=yes
17019 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17020 # that the semantics of dynamic libraries on AmigaOS, at least up
17021 # to version 4, is to share data among multiple programs linked
17022 # with the same dynamic library. Since this doesn't match the
17023 # behavior of shared libraries on other platforms, we can't use
17029 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17030 allow_undefined_flag_GCJ=unsupported
17031 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17032 # support --undefined. This deserves some investigation. FIXME
17033 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17039 cygwin* | mingw* | pw32*)
17040 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17041 # as there is no search path for DLLs.
17042 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17043 allow_undefined_flag_GCJ=unsupported
17044 always_export_symbols_GCJ=no
17045 enable_shared_with_static_runtimes_GCJ=yes
17046 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17048 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17049 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17050 # If the export-symbols file already is a .def file (1st line
17051 # is EXPORTS), use it as is; otherwise, prepend...
17052 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17053 cp $export_symbols $output_objdir/$soname.def;
17055 echo EXPORTS > $output_objdir/$soname.def;
17056 cat $export_symbols >> $output_objdir/$soname.def;
17058 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17065 hardcode_direct_GCJ=no
17066 hardcode_shlibpath_var_GCJ=no
17067 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17068 export_dynamic_flag_spec_GCJ='${wl}-E'
17069 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17070 # Instead, shared libraries are loaded at an image base (0x10000000 by
17071 # default) and relocated if they conflict, which is a slow very memory
17072 # consuming and fragmenting process. To avoid this, we pick a random,
17073 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17074 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17075 archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17076 archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17080 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17082 case $cc_basename,$host_cpu in
17083 pgcc*) # Portland Group C compiler
17084 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17085 tmp_addflag=' $pic_flag'
17087 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17088 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17089 tmp_addflag=' $pic_flag -Mnomain' ;;
17090 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17091 tmp_addflag=' -i_dynamic' ;;
17092 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17093 tmp_addflag=' -i_dynamic -nofor_main' ;;
17094 ifc* | ifort*) # Intel Fortran compiler
17095 tmp_addflag=' -nofor_main' ;;
17097 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17099 if test $supports_anon_versioning = yes; then
17100 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17101 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17102 $echo "local: *; };" >> $output_objdir/$libname.ver~
17103 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17111 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17112 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17115 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17116 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17121 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17125 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17126 *** create shared libraries on Solaris systems. Therefore, libtool
17127 *** is disabling shared libraries support. We urge you to upgrade GNU
17128 *** binutils to release 2.9.1 or newer. Another option is to modify
17129 *** your PATH or compiler configuration so that the native linker is
17130 *** used, and then restart.
17133 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17134 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17135 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17141 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17142 case `$LD -v 2>&1` in
17143 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17147 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17148 *** reliably create shared libraries on SCO systems. Therefore, libtool
17149 *** is disabling shared libraries support. We urge you to upgrade GNU
17150 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17151 *** your PATH or compiler configuration so that the native linker is
17152 *** used, and then restart.
17157 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17158 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17159 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17160 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17169 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17171 hardcode_direct_GCJ=yes
17172 hardcode_shlibpath_var_GCJ=no
17176 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17177 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17178 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17185 if test "$ld_shlibs_GCJ" = no; then
17187 hardcode_libdir_flag_spec_GCJ=
17188 export_dynamic_flag_spec_GCJ=
17189 whole_archive_flag_spec_GCJ=
17192 # PORTME fill in a description of your system's linker (not GNU ld)
17195 allow_undefined_flag_GCJ=unsupported
17196 always_export_symbols_GCJ=yes
17197 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'
17198 # Note: this linker hardcodes the directories in LIBPATH if there
17199 # are no directories specified by -L.
17200 hardcode_minus_L_GCJ=yes
17201 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17202 # Neither direct hardcoding nor static linking is supported with a
17204 hardcode_direct_GCJ=unsupported
17209 if test "$host_cpu" = ia64; then
17210 # On IA64, the linker does run time linking by default, so we don't
17211 # have to do anything special.
17212 aix_use_runtimelinking=no
17213 exp_sym_flag='-Bexport'
17216 # If we're using GNU nm, then we don't want the "-C" option.
17217 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17218 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17219 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'
17221 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'
17223 aix_use_runtimelinking=no
17225 # Test if we are trying to use run time linking or normal
17226 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17227 # need to do runtime linking.
17228 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17229 for ld_flag in $LDFLAGS; do
17230 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17231 aix_use_runtimelinking=yes
17238 exp_sym_flag='-bexport'
17239 no_entry_flag='-bnoentry'
17242 # When large executables or shared objects are built, AIX ld can
17243 # have problems creating the table of contents. If linking a library
17244 # or program results in "error TOC overflow" add -mminimal-toc to
17245 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17246 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17248 archive_cmds_GCJ=''
17249 hardcode_direct_GCJ=yes
17250 hardcode_libdir_separator_GCJ=':'
17251 link_all_deplibs_GCJ=yes
17253 if test "$GCC" = yes; then
17254 case $host_os in aix4.[012]|aix4.[012].*)
17255 # We only want to do this on AIX 4.2 and lower, the check
17256 # below for broken collect2 doesn't work under 4.3+
17257 collect2name=`${CC} -print-prog-name=collect2`
17258 if test -f "$collect2name" && \
17259 strings "$collect2name" | grep resolve_lib_name >/dev/null
17261 # We have reworked collect2
17262 hardcode_direct_GCJ=yes
17264 # We have old collect2
17265 hardcode_direct_GCJ=unsupported
17266 # It fails to find uninstalled libraries when the uninstalled
17267 # path is not listed in the libpath. Setting hardcode_minus_L
17268 # to unsupported forces relinking
17269 hardcode_minus_L_GCJ=yes
17270 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17271 hardcode_libdir_separator_GCJ=
17275 shared_flag='-shared'
17276 if test "$aix_use_runtimelinking" = yes; then
17277 shared_flag="$shared_flag "'${wl}-G'
17281 if test "$host_cpu" = ia64; then
17282 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17283 # chokes on -Wl,-G. The following line is correct:
17286 if test "$aix_use_runtimelinking" = yes; then
17287 shared_flag='${wl}-G'
17289 shared_flag='${wl}-bM:SRE'
17294 # It seems that -bexpall does not export symbols beginning with
17295 # underscore (_), so it is better to generate a list of symbols to export.
17296 always_export_symbols_GCJ=yes
17297 if test "$aix_use_runtimelinking" = yes; then
17298 # Warning - without using the other runtime loading flags (-brtl),
17299 # -berok will link without error, but may produce a broken library.
17300 allow_undefined_flag_GCJ='-berok'
17301 # Determine the default libpath from the value encoded in an empty executable.
17302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17303 /* end confdefs.h. */
17313 if ac_fn_c_try_link "$LINENO"; then :
17315 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17317 # Check for a 64-bit object if we didn't find anything.
17318 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; }
17321 rm -f core conftest.err conftest.$ac_objext \
17322 conftest$ac_exeext conftest.$ac_ext
17323 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17325 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17326 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
17328 if test "$host_cpu" = ia64; then
17329 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17330 allow_undefined_flag_GCJ="-z nodefs"
17331 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
17333 # Determine the default libpath from the value encoded in an empty executable.
17334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17335 /* end confdefs.h. */
17345 if ac_fn_c_try_link "$LINENO"; then :
17347 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17349 # Check for a 64-bit object if we didn't find anything.
17350 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; }
17353 rm -f core conftest.err conftest.$ac_objext \
17354 conftest$ac_exeext conftest.$ac_ext
17355 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17357 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17358 # Warning - without using the other run time loading flags,
17359 # -berok will link without error, but may produce a broken library.
17360 no_undefined_flag_GCJ=' ${wl}-bernotok'
17361 allow_undefined_flag_GCJ=' ${wl}-berok'
17362 # Exported symbols can be pulled into shared objects from archives
17363 whole_archive_flag_spec_GCJ='$convenience'
17364 archive_cmds_need_lc_GCJ=yes
17365 # This is similar to how AIX traditionally builds its shared libraries.
17366 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
17372 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)'
17373 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17374 hardcode_minus_L_GCJ=yes
17375 # see comment about different semantics on the GNU ld section
17380 export_dynamic_flag_spec_GCJ=-rdynamic
17383 cygwin* | mingw* | pw32*)
17384 # When not using gcc, we currently assume that we are using
17385 # Microsoft Visual C++.
17386 # hardcode_libdir_flag_spec is actually meaningless, as there is
17387 # no search path for DLLs.
17388 hardcode_libdir_flag_spec_GCJ=' '
17389 allow_undefined_flag_GCJ=unsupported
17390 # Tell ltmain to make .lib files, not .a files.
17392 # Tell ltmain to make .dll files, not .so files.
17394 # FIXME: Setting linknames here is a bad hack.
17395 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17396 # The linker will automatically build a .lib file if we build a DLL.
17397 old_archive_From_new_cmds_GCJ='true'
17398 # FIXME: Should let the user specify the lib program.
17399 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17400 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17401 enable_shared_with_static_runtimes_GCJ=yes
17404 darwin* | rhapsody*)
17406 rhapsody* | darwin1.[012])
17407 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17410 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17411 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17413 case ${MACOSX_DEPLOYMENT_TARGET} in
17415 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17418 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17424 archive_cmds_need_lc_GCJ=no
17425 hardcode_direct_GCJ=no
17426 hardcode_automatic_GCJ=yes
17427 hardcode_shlibpath_var_GCJ=unsupported
17428 whole_archive_flag_spec_GCJ=''
17429 link_all_deplibs_GCJ=yes
17430 if test "$GCC" = yes ; then
17431 output_verbose_link_cmd='echo'
17432 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17433 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17434 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17435 archive_expsym_cmds_GCJ='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}'
17436 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}'
17438 case $cc_basename in
17440 output_verbose_link_cmd='echo'
17441 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17442 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17443 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17444 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17445 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}'
17455 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17456 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17457 hardcode_shlibpath_var_GCJ=no
17464 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17465 # support. Future versions do this automatically, but an explicit c++rt0.o
17466 # does not break anything, and helps significantly (at the cost of a little
17469 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17470 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17471 hardcode_direct_GCJ=yes
17472 hardcode_shlibpath_var_GCJ=no
17475 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17477 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17478 hardcode_direct_GCJ=yes
17479 hardcode_minus_L_GCJ=yes
17480 hardcode_shlibpath_var_GCJ=no
17483 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17484 freebsd* | kfreebsd*-gnu | dragonfly*)
17485 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17486 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17487 hardcode_direct_GCJ=yes
17488 hardcode_shlibpath_var_GCJ=no
17492 if test "$GCC" = yes; then
17493 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'
17495 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'
17497 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17498 hardcode_libdir_separator_GCJ=:
17499 hardcode_direct_GCJ=yes
17501 # hardcode_minus_L: Not really in the search PATH,
17502 # but as the default location of the library.
17503 hardcode_minus_L_GCJ=yes
17504 export_dynamic_flag_spec_GCJ='${wl}-E'
17508 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17509 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17511 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17513 if test "$with_gnu_ld" = no; then
17514 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17515 hardcode_libdir_separator_GCJ=:
17517 hardcode_direct_GCJ=yes
17518 export_dynamic_flag_spec_GCJ='${wl}-E'
17520 # hardcode_minus_L: Not really in the search PATH,
17521 # but as the default location of the library.
17522 hardcode_minus_L_GCJ=yes
17527 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17530 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17533 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17536 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17542 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17545 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17548 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17552 if test "$with_gnu_ld" = no; then
17553 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17554 hardcode_libdir_separator_GCJ=:
17558 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17559 hardcode_direct_GCJ=no
17560 hardcode_shlibpath_var_GCJ=no
17563 hardcode_direct_GCJ=yes
17564 export_dynamic_flag_spec_GCJ='${wl}-E'
17566 # hardcode_minus_L: Not really in the search PATH,
17567 # but as the default location of the library.
17568 hardcode_minus_L_GCJ=yes
17574 irix5* | irix6* | nonstopux*)
17575 if test "$GCC" = yes; then
17576 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'
17578 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'
17579 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17581 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17582 hardcode_libdir_separator_GCJ=:
17583 link_all_deplibs_GCJ=yes
17587 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17588 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17590 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17592 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17593 hardcode_direct_GCJ=yes
17594 hardcode_shlibpath_var_GCJ=no
17598 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17599 hardcode_direct_GCJ=yes
17600 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17601 hardcode_libdir_separator_GCJ=:
17602 hardcode_shlibpath_var_GCJ=no
17606 hardcode_direct_GCJ=yes
17607 hardcode_shlibpath_var_GCJ=no
17608 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17609 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17610 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17611 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17612 export_dynamic_flag_spec_GCJ='${wl}-E'
17615 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17616 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17617 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17620 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17621 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17628 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17629 hardcode_minus_L_GCJ=yes
17630 allow_undefined_flag_GCJ=unsupported
17631 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'
17632 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17636 if test "$GCC" = yes; then
17637 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17638 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'
17640 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17641 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'
17643 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17644 hardcode_libdir_separator_GCJ=:
17647 osf4* | osf5*) # as osf3* with the addition of -msym flag
17648 if test "$GCC" = yes; then
17649 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17650 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'
17651 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17653 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17654 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'
17655 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~
17656 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
17658 # Both c and cxx compiler support -rpath directly
17659 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17661 hardcode_libdir_separator_GCJ=:
17665 no_undefined_flag_GCJ=' -z text'
17666 if test "$GCC" = yes; then
17668 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17669 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17670 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17673 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17674 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17675 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17677 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17678 hardcode_shlibpath_var_GCJ=no
17680 solaris2.[0-5] | solaris2.[0-5].*) ;;
17682 # The compiler driver will combine linker options so we
17683 # cannot just pass the convience library names through
17684 # without $wl, iff we do not link with $LD.
17685 # Luckily, gcc supports the same syntax we need for Sun Studio.
17686 # Supported since Solaris 2.6 (maybe 2.5.1?)
17689 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17691 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
17694 link_all_deplibs_GCJ=yes
17698 if test "x$host_vendor" = xsequent; then
17699 # Use $CC to link under sequent, because it throws in some extra .o
17700 # files that make .init and .fini sections work.
17701 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17703 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17705 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17706 hardcode_direct_GCJ=yes
17707 hardcode_minus_L_GCJ=yes
17708 hardcode_shlibpath_var_GCJ=no
17712 case $host_vendor in
17714 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17715 hardcode_direct_GCJ=yes # is this really true???
17718 ## LD is ld it makes a PLAMLIB
17719 ## CC just makes a GrossModule.
17720 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17721 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17722 hardcode_direct_GCJ=no
17725 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17726 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17729 runpath_var='LD_RUN_PATH'
17730 hardcode_shlibpath_var_GCJ=no
17734 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17735 hardcode_shlibpath_var_GCJ=no
17736 export_dynamic_flag_spec_GCJ='-Bexport'
17740 if test -d /usr/nec; then
17741 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17742 hardcode_shlibpath_var_GCJ=no
17743 runpath_var=LD_RUN_PATH
17744 hardcode_runpath_var=yes
17749 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
17750 no_undefined_flag_GCJ='${wl}-z,text'
17751 archive_cmds_need_lc_GCJ=no
17752 hardcode_shlibpath_var_GCJ=no
17753 runpath_var='LD_RUN_PATH'
17755 if test "$GCC" = yes; then
17756 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17757 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17759 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17760 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17764 sysv5* | sco3.2v5* | sco5v6*)
17765 # Note: We can NOT use -z defs as we might desire, because we do not
17766 # link with -lc, and that would cause any symbols used from libc to
17767 # always be unresolved, which means just about no library would
17768 # ever link correctly. If we're not using GNU ld we use -z text
17769 # though, which does catch some bad symbols but isn't as heavy-handed
17771 no_undefined_flag_GCJ='${wl}-z,text'
17772 allow_undefined_flag_GCJ='${wl}-z,nodefs'
17773 archive_cmds_need_lc_GCJ=no
17774 hardcode_shlibpath_var_GCJ=no
17775 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17776 hardcode_libdir_separator_GCJ=':'
17777 link_all_deplibs_GCJ=yes
17778 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17779 runpath_var='LD_RUN_PATH'
17781 if test "$GCC" = yes; then
17782 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17783 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17785 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17786 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17791 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17792 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17793 hardcode_shlibpath_var_GCJ=no
17802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_GCJ" >&5
17803 $as_echo "$ld_shlibs_GCJ" >&6; }
17804 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17807 # Do we need to explicitly link libc?
17809 case "x$archive_cmds_need_lc_GCJ" in
17811 # Assume -lc should be added
17812 archive_cmds_need_lc_GCJ=yes
17814 if test "$enable_shared" = yes && test "$GCC" = yes; then
17815 case $archive_cmds_GCJ in
17817 # FIXME: we may have to deal with multi-command sequences.
17820 # Test whether the compiler implicitly links with -lc since on some
17821 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17822 # to ld, don't add -lc before -lgcc.
17823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17824 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17826 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17828 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17829 (eval $ac_compile) 2>&5
17831 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17832 test $ac_status = 0; } 2>conftest.err; then
17835 libobjs=conftest.$ac_objext
17837 wl=$lt_prog_compiler_wl_GCJ
17838 pic_flag=$lt_prog_compiler_pic_GCJ
17844 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17845 allow_undefined_flag_GCJ=
17846 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17847 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17849 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17850 test $ac_status = 0; }
17852 archive_cmds_need_lc_GCJ=no
17854 archive_cmds_need_lc_GCJ=yes
17856 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17858 cat conftest.err 1>&5
17861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_GCJ" >&5
17862 $as_echo "$archive_cmds_need_lc_GCJ" >&6; }
17869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17870 $as_echo_n "checking dynamic linker characteristics... " >&6; }
17871 library_names_spec=
17872 libname_spec='lib$name'
17876 postuninstall_cmds=
17880 shlibpath_overrides_runpath=unknown
17882 dynamic_linker="$host_os ld.so"
17883 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17884 if test "$GCC" = yes; then
17885 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17886 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17887 # if the path contains ";" then we assume it to be the separator
17888 # otherwise default to the standard path separator (i.e. ":") - it is
17889 # assumed that no part of a normal pathname contains ";" but that should
17890 # okay in the real world where ";" in dirpaths is itself problematic.
17891 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17893 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17896 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17898 need_lib_prefix=unknown
17899 hardcode_into_libs=no
17901 # when you set need_version to no, make sure it does not cause -set_version
17902 # flags to be left without arguments
17903 need_version=unknown
17908 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17909 shlibpath_var=LIBPATH
17911 # AIX 3 has no versioning support, so we append a major version to the name.
17912 soname_spec='${libname}${release}${shared_ext}$major'
17919 hardcode_into_libs=yes
17920 if test "$host_cpu" = ia64; then
17921 # AIX 5 supports IA64
17922 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17923 shlibpath_var=LD_LIBRARY_PATH
17925 # With GCC up to 2.95.x, collect2 would create an import file
17926 # for dependence libraries. The import file would start with
17927 # the line `#! .'. This would cause the generated library to
17928 # depend on `.', always an invalid library. This was fixed in
17929 # development snapshots of GCC prior to 3.0.
17931 aix4 | aix4.[01] | aix4.[01].*)
17932 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17934 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17937 can_build_shared=no
17941 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17942 # soname into executable. Probably we can add versioning support to
17943 # collect2, so additional links can be useful in future.
17944 if test "$aix_use_runtimelinking" = yes; then
17945 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17946 # instead of lib<name>.a to let people know that these are not
17947 # typical AIX shared libraries.
17948 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17950 # We preserve .a as extension for shared libraries through AIX4.2
17951 # and later when we are not doing run time linking.
17952 library_names_spec='${libname}${release}.a $libname.a'
17953 soname_spec='${libname}${release}${shared_ext}$major'
17955 shlibpath_var=LIBPATH
17960 library_names_spec='$libname.ixlibrary $libname.a'
17961 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17962 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'
17966 library_names_spec='${libname}${shared_ext}'
17967 dynamic_linker="$host_os ld.so"
17968 shlibpath_var=LIBRARY_PATH
17974 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17975 soname_spec='${libname}${release}${shared_ext}$major'
17976 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17977 shlibpath_var=LD_LIBRARY_PATH
17978 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17979 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17980 # the default ld.so.conf also contains /usr/contrib/lib and
17981 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17982 # libtool to hard-code these into programs
17985 cygwin* | mingw* | pw32*)
17986 version_type=windows
17991 case $GCC,$host_os in
17992 yes,cygwin* | yes,mingw* | yes,pw32*)
17993 library_names_spec='$libname.dll.a'
17994 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17995 postinstall_cmds='base_file=`basename \${file}`~
17996 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17997 dldir=$destdir/`dirname \$dlpath`~
17998 test -d \$dldir || mkdir -p \$dldir~
17999 $install_prog $dir/$dlname \$dldir/$dlname~
18000 chmod a+x \$dldir/$dlname'
18001 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18002 dlpath=$dir/\$dldll~
18004 shlibpath_overrides_runpath=yes
18008 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18009 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18010 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18013 # MinGW DLLs use traditional 'lib' prefix
18014 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18015 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18016 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18017 # It is most probably a Windows format PATH printed by
18018 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18019 # path with ; separators, and with drive letters. We can handle the
18020 # drive letters (cygwin fileutils understands them), so leave them,
18021 # especially as we might pass files found there to a mingw objdump,
18022 # which wouldn't understand a cygwinified path. Ahh.
18023 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18025 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18029 # pw32 DLLs use 'pw' prefix rather than 'lib'
18030 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18036 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18039 dynamic_linker='Win32 ld.exe'
18040 # FIXME: first we should search . and the directory the executable is in
18044 darwin* | rhapsody*)
18045 dynamic_linker="$host_os dyld"
18046 version_type=darwin
18049 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18050 soname_spec='${libname}${release}${major}$shared_ext'
18051 shlibpath_overrides_runpath=yes
18052 shlibpath_var=DYLD_LIBRARY_PATH
18053 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18054 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18055 if test "$GCC" = yes; then
18056 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"`
18058 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18060 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18067 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18068 soname_spec='${libname}${release}${shared_ext}$major'
18069 shlibpath_var=LD_LIBRARY_PATH
18080 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18081 soname_spec='${libname}${release}${shared_ext}$major'
18082 shlibpath_var=LD_LIBRARY_PATH
18083 shlibpath_overrides_runpath=no
18084 hardcode_into_libs=yes
18085 dynamic_linker='GNU ld.so'
18088 freebsd* | dragonfly*)
18089 # DragonFly does not have aout. When/if they implement a new
18090 # versioning mechanism, adjust this.
18091 if test -x /usr/bin/objformat; then
18092 objformat=`/usr/bin/objformat`
18095 freebsd[123]*) objformat=aout ;;
18096 *) objformat=elf ;;
18099 version_type=freebsd-$objformat
18100 case $version_type in
18102 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18107 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18111 shlibpath_var=LD_LIBRARY_PATH
18114 shlibpath_overrides_runpath=yes
18116 freebsd3.[01]* | freebsdelf3.[01]*)
18117 shlibpath_overrides_runpath=yes
18118 hardcode_into_libs=yes
18120 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18121 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18122 shlibpath_overrides_runpath=no
18123 hardcode_into_libs=yes
18125 freebsd*) # from 4.6 on
18126 shlibpath_overrides_runpath=yes
18127 hardcode_into_libs=yes
18136 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18137 soname_spec='${libname}${release}${shared_ext}$major'
18138 shlibpath_var=LD_LIBRARY_PATH
18139 hardcode_into_libs=yes
18142 hpux9* | hpux10* | hpux11*)
18143 # Give a soname corresponding to the major version so that dld.sl refuses to
18144 # link against other versions.
18151 hardcode_into_libs=yes
18152 dynamic_linker="$host_os dld.so"
18153 shlibpath_var=LD_LIBRARY_PATH
18154 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18155 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18156 soname_spec='${libname}${release}${shared_ext}$major'
18157 if test "X$HPUX_IA64_MODE" = X32; then
18158 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18160 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18162 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18166 hardcode_into_libs=yes
18167 dynamic_linker="$host_os dld.sl"
18168 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18169 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18170 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18171 soname_spec='${libname}${release}${shared_ext}$major'
18172 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18173 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18177 dynamic_linker="$host_os dld.sl"
18178 shlibpath_var=SHLIB_PATH
18179 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18180 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18181 soname_spec='${libname}${release}${shared_ext}$major'
18184 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18185 postinstall_cmds='chmod 555 $lib'
18192 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18193 soname_spec='${libname}${release}${shared_ext}$major'
18194 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18195 shlibpath_var=LD_LIBRARY_PATH
18196 shlibpath_overrides_runpath=no
18197 hardcode_into_libs=yes
18200 irix5* | irix6* | nonstopux*)
18202 nonstopux*) version_type=nonstopux ;;
18204 if test "$lt_cv_prog_gnu_ld" = yes; then
18212 soname_spec='${libname}${release}${shared_ext}$major'
18213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18215 irix5* | nonstopux*)
18216 libsuff= shlibsuff=
18219 case $LD in # libtool.m4 will add one of these switches to LD
18220 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18221 libsuff= shlibsuff= libmagic=32-bit;;
18222 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18223 libsuff=32 shlibsuff=N32 libmagic=N32;;
18224 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18225 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18226 *) libsuff= shlibsuff= libmagic=never-match;;
18230 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18231 shlibpath_overrides_runpath=no
18232 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18233 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18234 hardcode_into_libs=yes
18237 # No shared lib support for Linux oldld, aout, or coff.
18238 linux*oldld* | linux*aout* | linux*coff*)
18242 # This must be Linux ELF.
18247 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18248 soname_spec='${libname}${release}${shared_ext}$major'
18249 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18250 shlibpath_var=LD_LIBRARY_PATH
18251 shlibpath_overrides_runpath=no
18252 # This implies no fast_install, which is unacceptable.
18253 # Some rework will be needed to allow for fast_install
18254 # before this can be enabled.
18255 hardcode_into_libs=yes
18257 # Append ld.so.conf contents to the search path
18258 if test -f /etc/ld.so.conf; then
18259 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18260 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18263 # We used to test for /lib/ld.so.1 and disable shared libraries on
18264 # powerpc, because MkLinux only supported shared libraries with the
18265 # GNU dynamic linker. Since this was broken with cross compilers,
18266 # most powerpc-linux boxes support dynamic linking these days and
18267 # people can always --disable-shared, the test was removed, and we
18268 # assume the GNU/Linux dynamic linker is in use.
18269 dynamic_linker='GNU/Linux ld.so'
18276 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18277 soname_spec='${libname}${release}${shared_ext}$major'
18278 shlibpath_var=LD_LIBRARY_PATH
18279 shlibpath_overrides_runpath=no
18280 hardcode_into_libs=yes
18281 dynamic_linker='GNU ld.so'
18288 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18289 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18290 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18291 dynamic_linker='NetBSD (a.out) ld.so'
18293 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18294 soname_spec='${libname}${release}${shared_ext}$major'
18295 dynamic_linker='NetBSD ld.elf_so'
18297 shlibpath_var=LD_LIBRARY_PATH
18298 shlibpath_overrides_runpath=yes
18299 hardcode_into_libs=yes
18304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18305 shlibpath_var=LD_LIBRARY_PATH
18306 shlibpath_overrides_runpath=yes
18313 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18314 soname_spec='${libname}${release}${shared_ext}$major'
18315 shlibpath_var=LD_LIBRARY_PATH
18316 shlibpath_overrides_runpath=yes
18321 sys_lib_dlsearch_path_spec="/usr/lib"
18323 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18325 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18326 *) need_version=no ;;
18328 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18329 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18330 shlibpath_var=LD_LIBRARY_PATH
18331 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18333 openbsd2.[89] | openbsd2.[89].*)
18334 shlibpath_overrides_runpath=no
18337 shlibpath_overrides_runpath=yes
18341 shlibpath_overrides_runpath=yes
18346 libname_spec='$name'
18349 library_names_spec='$libname${shared_ext} $libname.a'
18350 dynamic_linker='OS/2 ld.exe'
18351 shlibpath_var=LIBPATH
18354 osf3* | osf4* | osf5*)
18358 soname_spec='${libname}${release}${shared_ext}$major'
18359 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18360 shlibpath_var=LD_LIBRARY_PATH
18361 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18362 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18369 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18370 soname_spec='${libname}${release}${shared_ext}$major'
18371 shlibpath_var=LD_LIBRARY_PATH
18372 shlibpath_overrides_runpath=yes
18373 hardcode_into_libs=yes
18374 # ldd complains unless libraries are executable
18375 postinstall_cmds='chmod +x $lib'
18380 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18381 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18382 shlibpath_var=LD_LIBRARY_PATH
18383 shlibpath_overrides_runpath=yes
18384 if test "$with_gnu_ld" = yes; then
18392 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18393 soname_spec='${libname}${release}${shared_ext}$major'
18394 shlibpath_var=LD_LIBRARY_PATH
18395 case $host_vendor in
18397 shlibpath_overrides_runpath=no
18399 export_dynamic_flag_spec='${wl}-Blargedynsym'
18400 runpath_var=LD_RUN_PATH
18408 shlibpath_overrides_runpath=no
18409 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18415 if test -d /usr/nec ;then
18417 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18418 soname_spec='$libname${shared_ext}.$major'
18419 shlibpath_var=LD_LIBRARY_PATH
18423 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18424 version_type=freebsd-elf
18427 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18428 soname_spec='${libname}${release}${shared_ext}$major'
18429 shlibpath_var=LD_LIBRARY_PATH
18430 hardcode_into_libs=yes
18431 if test "$with_gnu_ld" = yes; then
18432 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18433 shlibpath_overrides_runpath=no
18435 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18436 shlibpath_overrides_runpath=yes
18439 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18443 sys_lib_dlsearch_path_spec='/usr/lib'
18448 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18449 soname_spec='${libname}${release}${shared_ext}$major'
18450 shlibpath_var=LD_LIBRARY_PATH
18457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
18458 $as_echo "$dynamic_linker" >&6; }
18459 test "$dynamic_linker" = no && can_build_shared=no
18461 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18462 if test "$GCC" = yes; then
18463 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18467 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18468 hardcode_action_GCJ=
18469 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18470 test -n "$runpath_var_GCJ" || \
18471 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18473 # We can hardcode non-existant directories.
18474 if test "$hardcode_direct_GCJ" != no &&
18475 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18476 # have to relink, otherwise we might link with an installed library
18477 # when we should be linking with a yet-to-be-installed one
18478 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18479 test "$hardcode_minus_L_GCJ" != no; then
18480 # Linking always hardcodes the temporary library directory.
18481 hardcode_action_GCJ=relink
18483 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18484 hardcode_action_GCJ=immediate
18487 # We cannot hardcode anything, or else we can only hardcode existing
18489 hardcode_action_GCJ=unsupported
18491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_GCJ" >&5
18492 $as_echo "$hardcode_action_GCJ" >&6; }
18494 if test "$hardcode_action_GCJ" = relink; then
18495 # Fast installation is not supported
18496 enable_fast_install=no
18497 elif test "$shlibpath_overrides_runpath" = yes ||
18498 test "$enable_shared" = no; then
18499 # Fast installation is not necessary
18500 enable_fast_install=needless
18504 # The else clause should only fire when bootstrapping the
18505 # libtool distribution, otherwise you forgot to ship ltmain.sh
18506 # with your package, and you will get complaints that there are
18507 # no rules to generate ltmain.sh.
18508 if test -f "$ltmain"; then
18509 # See if we are running on zsh, and set the options which allow our commands through
18510 # without removal of \ escapes.
18511 if test -n "${ZSH_VERSION+set}" ; then
18512 setopt NO_GLOB_SUBST
18514 # Now quote all the things that may contain metacharacters while being
18515 # careful not to overquote the AC_SUBSTed values. We take copies of the
18516 # variables and quote the copies for generation of the libtool script.
18517 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18519 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18520 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18521 deplibs_check_method reload_flag reload_cmds need_locks \
18522 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18523 lt_cv_sys_global_symbol_to_c_name_address \
18524 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18525 old_postinstall_cmds old_postuninstall_cmds \
18529 lt_prog_compiler_wl_GCJ \
18530 lt_prog_compiler_pic_GCJ \
18531 lt_prog_compiler_static_GCJ \
18532 lt_prog_compiler_no_builtin_flag_GCJ \
18533 export_dynamic_flag_spec_GCJ \
18534 thread_safe_flag_spec_GCJ \
18535 whole_archive_flag_spec_GCJ \
18536 enable_shared_with_static_runtimes_GCJ \
18537 old_archive_cmds_GCJ \
18538 old_archive_from_new_cmds_GCJ \
18539 predep_objects_GCJ \
18540 postdep_objects_GCJ \
18543 compiler_lib_search_path_GCJ \
18545 archive_expsym_cmds_GCJ \
18546 postinstall_cmds_GCJ \
18547 postuninstall_cmds_GCJ \
18548 old_archive_from_expsyms_cmds_GCJ \
18549 allow_undefined_flag_GCJ \
18550 no_undefined_flag_GCJ \
18551 export_symbols_cmds_GCJ \
18552 hardcode_libdir_flag_spec_GCJ \
18553 hardcode_libdir_flag_spec_ld_GCJ \
18554 hardcode_libdir_separator_GCJ \
18555 hardcode_automatic_GCJ \
18557 module_expsym_cmds_GCJ \
18558 lt_cv_prog_compiler_c_o_GCJ \
18559 exclude_expsyms_GCJ \
18560 include_expsyms_GCJ; do
18563 old_archive_cmds_GCJ | \
18564 old_archive_from_new_cmds_GCJ | \
18565 archive_cmds_GCJ | \
18566 archive_expsym_cmds_GCJ | \
18567 module_cmds_GCJ | \
18568 module_expsym_cmds_GCJ | \
18569 old_archive_from_expsyms_cmds_GCJ | \
18570 export_symbols_cmds_GCJ | \
18571 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18572 postinstall_cmds | postuninstall_cmds | \
18573 old_postinstall_cmds | old_postuninstall_cmds | \
18574 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18575 # Double-quote double-evaled strings.
18576 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18579 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18585 *'\$0 --fallback-echo"')
18586 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18592 cat <<__EOF__ >> "$cfgfile"
18593 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18595 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18597 # Shell to use when invoking shell scripts.
18600 # Whether or not to build shared libraries.
18601 build_libtool_libs=$enable_shared
18603 # Whether or not to build static libraries.
18604 build_old_libs=$enable_static
18606 # Whether or not to add -lc for building shared libraries.
18607 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18609 # Whether or not to disallow shared libs when runtime libs are static
18610 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18612 # Whether or not to optimize for fast installation.
18613 fast_install=$enable_fast_install
18616 host_alias=$host_alias
18620 # The build system.
18621 build_alias=$build_alias
18625 # An echo program that does not interpret backslashes.
18630 AR_FLAGS=$lt_AR_FLAGS
18635 # LTCC compiler flags.
18636 LTCFLAGS=$lt_LTCFLAGS
18638 # A language-specific compiler.
18639 CC=$lt_compiler_GCJ
18641 # Is the compiler the GNU C compiler?
18647 # The linker used to build libraries.
18650 # Whether we need hard or soft links.
18653 # A BSD-compatible nm program.
18656 # A symbol stripping program
18659 # Used to examine libraries when file_magic_cmd begins "file"
18660 MAGIC_CMD=$MAGIC_CMD
18662 # Used on cygwin: DLL creation program.
18665 # Used on cygwin: object dumper.
18668 # Used on cygwin: assembler.
18671 # The name of the directory that contains temporary libtool files.
18674 # How to create reloadable object files.
18675 reload_flag=$lt_reload_flag
18676 reload_cmds=$lt_reload_cmds
18678 # How to pass a linker flag through the compiler.
18679 wl=$lt_lt_prog_compiler_wl_GCJ
18681 # Object file suffix (normally "o").
18682 objext="$ac_objext"
18684 # Old archive suffix (normally "a").
18687 # Shared library suffix (normally ".so").
18688 shrext_cmds='$shrext_cmds'
18690 # Executable file suffix (normally "").
18693 # Additional compiler flags for building library objects.
18694 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18697 # What is the maximum length of a command?
18698 max_cmd_len=$lt_cv_sys_max_cmd_len
18700 # Does compiler simultaneously support -c and -o options?
18701 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18703 # Must we lock files when doing compilation?
18704 need_locks=$lt_need_locks
18706 # Do we need the lib prefix for modules?
18707 need_lib_prefix=$need_lib_prefix
18709 # Do we need a version for libraries?
18710 need_version=$need_version
18712 # Whether dlopen is supported.
18713 dlopen_support=$enable_dlopen
18715 # Whether dlopen of programs is supported.
18716 dlopen_self=$enable_dlopen_self
18718 # Whether dlopen of statically linked programs is supported.
18719 dlopen_self_static=$enable_dlopen_self_static
18721 # Compiler flag to prevent dynamic linking.
18722 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18724 # Compiler flag to turn off builtin functions.
18725 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18727 # Compiler flag to allow reflexive dlopens.
18728 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18730 # Compiler flag to generate shared objects directly from archives.
18731 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18733 # Compiler flag to generate thread-safe objects.
18734 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18736 # Library versioning type.
18737 version_type=$version_type
18739 # Format of library name prefix.
18740 libname_spec=$lt_libname_spec
18742 # List of archive names. First name is the real one, the rest are links.
18743 # The last name is the one that the linker finds with -lNAME.
18744 library_names_spec=$lt_library_names_spec
18746 # The coded name of the library, if different from the real name.
18747 soname_spec=$lt_soname_spec
18749 # Commands used to build and install an old-style archive.
18751 old_archive_cmds=$lt_old_archive_cmds_GCJ
18752 old_postinstall_cmds=$lt_old_postinstall_cmds
18753 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18755 # Create an old-style archive from a shared archive.
18756 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18758 # Create a temporary old-style archive to link instead of a shared archive.
18759 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18761 # Commands used to build and install a shared archive.
18762 archive_cmds=$lt_archive_cmds_GCJ
18763 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18764 postinstall_cmds=$lt_postinstall_cmds
18765 postuninstall_cmds=$lt_postuninstall_cmds
18767 # Commands used to build a loadable module (assumed same as above if empty)
18768 module_cmds=$lt_module_cmds_GCJ
18769 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18771 # Commands to strip libraries.
18772 old_striplib=$lt_old_striplib
18773 striplib=$lt_striplib
18775 # Dependencies to place before the objects being linked to create a
18777 predep_objects=$lt_predep_objects_GCJ
18779 # Dependencies to place after the objects being linked to create a
18781 postdep_objects=$lt_postdep_objects_GCJ
18783 # Dependencies to place before the objects being linked to create a
18785 predeps=$lt_predeps_GCJ
18787 # Dependencies to place after the objects being linked to create a
18789 postdeps=$lt_postdeps_GCJ
18791 # The library search path used internally by the compiler when linking
18792 # a shared library.
18793 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18795 # Method to check whether dependent libraries are shared objects.
18796 deplibs_check_method=$lt_deplibs_check_method
18798 # Command to use when deplibs_check_method == file_magic.
18799 file_magic_cmd=$lt_file_magic_cmd
18801 # Flag that allows shared libraries with undefined symbols to be built.
18802 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18804 # Flag that forces no undefined symbols.
18805 no_undefined_flag=$lt_no_undefined_flag_GCJ
18807 # Commands used to finish a libtool library installation in a directory.
18808 finish_cmds=$lt_finish_cmds
18810 # Same as above, but a single script fragment to be evaled but not shown.
18811 finish_eval=$lt_finish_eval
18813 # Take the output of nm and produce a listing of raw symbols and C names.
18814 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18816 # Transform the output of nm in a proper C declaration
18817 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18819 # Transform the output of nm in a C name address pair
18820 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18822 # This is the shared library runtime path variable.
18823 runpath_var=$runpath_var
18825 # This is the shared library path variable.
18826 shlibpath_var=$shlibpath_var
18828 # Is shlibpath searched before the hard-coded library search path?
18829 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18831 # How to hardcode a shared library path into an executable.
18832 hardcode_action=$hardcode_action_GCJ
18834 # Whether we should hardcode library paths into libraries.
18835 hardcode_into_libs=$hardcode_into_libs
18837 # Flag to hardcode \$libdir into a binary during linking.
18838 # This must work even if \$libdir does not exist.
18839 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18841 # If ld is used when linking, flag to hardcode \$libdir into
18842 # a binary during linking. This must work even if \$libdir does
18844 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18846 # Whether we need a single -rpath flag with a separated argument.
18847 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18849 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18850 # resulting binary.
18851 hardcode_direct=$hardcode_direct_GCJ
18853 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18854 # resulting binary.
18855 hardcode_minus_L=$hardcode_minus_L_GCJ
18857 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18858 # the resulting binary.
18859 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18861 # Set to yes if building a shared library automatically hardcodes DIR into the library
18862 # and all subsequent libraries and executables linked against it.
18863 hardcode_automatic=$hardcode_automatic_GCJ
18865 # Variables whose values should be saved in libtool wrapper scripts and
18866 # restored at relink time.
18867 variables_saved_for_relink="$variables_saved_for_relink"
18869 # Whether libtool must link a program against all its dependency libraries.
18870 link_all_deplibs=$link_all_deplibs_GCJ
18872 # Compile-time system search path for libraries
18873 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18875 # Run-time system search path for libraries
18876 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18878 # Fix the shell variable \$srcfile for the compiler.
18879 fix_srcfile_path="$fix_srcfile_path_GCJ"
18881 # Set to yes if exported symbols are required.
18882 always_export_symbols=$always_export_symbols_GCJ
18884 # The commands to list exported symbols.
18885 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18887 # The commands to extract the exported symbol list from a shared archive.
18888 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18890 # Symbols that should not be listed in the preloaded symbols.
18891 exclude_expsyms=$lt_exclude_expsyms_GCJ
18893 # Symbols that must always be exported.
18894 include_expsyms=$lt_include_expsyms_GCJ
18896 # ### END LIBTOOL TAG CONFIG: $tagname
18902 # If there is no Makefile yet, we rely on a make rule to execute
18903 # `config.status --recheck' to rerun these tests and create the
18904 # libtool script then.
18905 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18906 if test -f "$ltmain_in"; then
18907 test -f Makefile && make "$ltmain"
18913 ac_cpp='$CPP $CPPFLAGS'
18914 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18915 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18916 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18928 # Source file extension for RC test sources.
18931 # Object file extension for compiled RC test sources.
18935 # Code to be used in simple compile tests
18936 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18938 # Code to be used in simple link tests
18939 lt_simple_link_test_code="$lt_simple_compile_test_code"
18941 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18943 # If no C compiler was specified, use CC.
18946 # If no C compiler flags were specified, use CFLAGS.
18947 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18949 # Allow CC to be a program name with arguments.
18953 # save warnings/boilerplate of simple test code
18954 ac_outfile=conftest.$ac_objext
18955 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18956 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18957 _lt_compiler_boilerplate=`cat conftest.err`
18960 ac_outfile=conftest.$ac_objext
18961 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18962 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18963 _lt_linker_boilerplate=`cat conftest.err`
18967 # Allow CC to be a program name with arguments.
18972 for cc_temp in $compiler""; do
18974 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18975 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18980 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18982 lt_cv_prog_compiler_c_o_RC=yes
18984 # The else clause should only fire when bootstrapping the
18985 # libtool distribution, otherwise you forgot to ship ltmain.sh
18986 # with your package, and you will get complaints that there are
18987 # no rules to generate ltmain.sh.
18988 if test -f "$ltmain"; then
18989 # See if we are running on zsh, and set the options which allow our commands through
18990 # without removal of \ escapes.
18991 if test -n "${ZSH_VERSION+set}" ; then
18992 setopt NO_GLOB_SUBST
18994 # Now quote all the things that may contain metacharacters while being
18995 # careful not to overquote the AC_SUBSTed values. We take copies of the
18996 # variables and quote the copies for generation of the libtool script.
18997 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18999 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19000 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19001 deplibs_check_method reload_flag reload_cmds need_locks \
19002 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19003 lt_cv_sys_global_symbol_to_c_name_address \
19004 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19005 old_postinstall_cmds old_postuninstall_cmds \
19009 lt_prog_compiler_wl_RC \
19010 lt_prog_compiler_pic_RC \
19011 lt_prog_compiler_static_RC \
19012 lt_prog_compiler_no_builtin_flag_RC \
19013 export_dynamic_flag_spec_RC \
19014 thread_safe_flag_spec_RC \
19015 whole_archive_flag_spec_RC \
19016 enable_shared_with_static_runtimes_RC \
19017 old_archive_cmds_RC \
19018 old_archive_from_new_cmds_RC \
19019 predep_objects_RC \
19020 postdep_objects_RC \
19023 compiler_lib_search_path_RC \
19025 archive_expsym_cmds_RC \
19026 postinstall_cmds_RC \
19027 postuninstall_cmds_RC \
19028 old_archive_from_expsyms_cmds_RC \
19029 allow_undefined_flag_RC \
19030 no_undefined_flag_RC \
19031 export_symbols_cmds_RC \
19032 hardcode_libdir_flag_spec_RC \
19033 hardcode_libdir_flag_spec_ld_RC \
19034 hardcode_libdir_separator_RC \
19035 hardcode_automatic_RC \
19037 module_expsym_cmds_RC \
19038 lt_cv_prog_compiler_c_o_RC \
19039 exclude_expsyms_RC \
19040 include_expsyms_RC; do
19043 old_archive_cmds_RC | \
19044 old_archive_from_new_cmds_RC | \
19045 archive_cmds_RC | \
19046 archive_expsym_cmds_RC | \
19048 module_expsym_cmds_RC | \
19049 old_archive_from_expsyms_cmds_RC | \
19050 export_symbols_cmds_RC | \
19051 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19052 postinstall_cmds | postuninstall_cmds | \
19053 old_postinstall_cmds | old_postuninstall_cmds | \
19054 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19055 # Double-quote double-evaled strings.
19056 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19059 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19065 *'\$0 --fallback-echo"')
19066 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19072 cat <<__EOF__ >> "$cfgfile"
19073 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19075 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19077 # Shell to use when invoking shell scripts.
19080 # Whether or not to build shared libraries.
19081 build_libtool_libs=$enable_shared
19083 # Whether or not to build static libraries.
19084 build_old_libs=$enable_static
19086 # Whether or not to add -lc for building shared libraries.
19087 build_libtool_need_lc=$archive_cmds_need_lc_RC
19089 # Whether or not to disallow shared libs when runtime libs are static
19090 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19092 # Whether or not to optimize for fast installation.
19093 fast_install=$enable_fast_install
19096 host_alias=$host_alias
19100 # The build system.
19101 build_alias=$build_alias
19105 # An echo program that does not interpret backslashes.
19110 AR_FLAGS=$lt_AR_FLAGS
19115 # LTCC compiler flags.
19116 LTCFLAGS=$lt_LTCFLAGS
19118 # A language-specific compiler.
19121 # Is the compiler the GNU C compiler?
19127 # The linker used to build libraries.
19130 # Whether we need hard or soft links.
19133 # A BSD-compatible nm program.
19136 # A symbol stripping program
19139 # Used to examine libraries when file_magic_cmd begins "file"
19140 MAGIC_CMD=$MAGIC_CMD
19142 # Used on cygwin: DLL creation program.
19145 # Used on cygwin: object dumper.
19148 # Used on cygwin: assembler.
19151 # The name of the directory that contains temporary libtool files.
19154 # How to create reloadable object files.
19155 reload_flag=$lt_reload_flag
19156 reload_cmds=$lt_reload_cmds
19158 # How to pass a linker flag through the compiler.
19159 wl=$lt_lt_prog_compiler_wl_RC
19161 # Object file suffix (normally "o").
19162 objext="$ac_objext"
19164 # Old archive suffix (normally "a").
19167 # Shared library suffix (normally ".so").
19168 shrext_cmds='$shrext_cmds'
19170 # Executable file suffix (normally "").
19173 # Additional compiler flags for building library objects.
19174 pic_flag=$lt_lt_prog_compiler_pic_RC
19177 # What is the maximum length of a command?
19178 max_cmd_len=$lt_cv_sys_max_cmd_len
19180 # Does compiler simultaneously support -c and -o options?
19181 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19183 # Must we lock files when doing compilation?
19184 need_locks=$lt_need_locks
19186 # Do we need the lib prefix for modules?
19187 need_lib_prefix=$need_lib_prefix
19189 # Do we need a version for libraries?
19190 need_version=$need_version
19192 # Whether dlopen is supported.
19193 dlopen_support=$enable_dlopen
19195 # Whether dlopen of programs is supported.
19196 dlopen_self=$enable_dlopen_self
19198 # Whether dlopen of statically linked programs is supported.
19199 dlopen_self_static=$enable_dlopen_self_static
19201 # Compiler flag to prevent dynamic linking.
19202 link_static_flag=$lt_lt_prog_compiler_static_RC
19204 # Compiler flag to turn off builtin functions.
19205 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19207 # Compiler flag to allow reflexive dlopens.
19208 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19210 # Compiler flag to generate shared objects directly from archives.
19211 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19213 # Compiler flag to generate thread-safe objects.
19214 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19216 # Library versioning type.
19217 version_type=$version_type
19219 # Format of library name prefix.
19220 libname_spec=$lt_libname_spec
19222 # List of archive names. First name is the real one, the rest are links.
19223 # The last name is the one that the linker finds with -lNAME.
19224 library_names_spec=$lt_library_names_spec
19226 # The coded name of the library, if different from the real name.
19227 soname_spec=$lt_soname_spec
19229 # Commands used to build and install an old-style archive.
19231 old_archive_cmds=$lt_old_archive_cmds_RC
19232 old_postinstall_cmds=$lt_old_postinstall_cmds
19233 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19235 # Create an old-style archive from a shared archive.
19236 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19238 # Create a temporary old-style archive to link instead of a shared archive.
19239 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19241 # Commands used to build and install a shared archive.
19242 archive_cmds=$lt_archive_cmds_RC
19243 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19244 postinstall_cmds=$lt_postinstall_cmds
19245 postuninstall_cmds=$lt_postuninstall_cmds
19247 # Commands used to build a loadable module (assumed same as above if empty)
19248 module_cmds=$lt_module_cmds_RC
19249 module_expsym_cmds=$lt_module_expsym_cmds_RC
19251 # Commands to strip libraries.
19252 old_striplib=$lt_old_striplib
19253 striplib=$lt_striplib
19255 # Dependencies to place before the objects being linked to create a
19257 predep_objects=$lt_predep_objects_RC
19259 # Dependencies to place after the objects being linked to create a
19261 postdep_objects=$lt_postdep_objects_RC
19263 # Dependencies to place before the objects being linked to create a
19265 predeps=$lt_predeps_RC
19267 # Dependencies to place after the objects being linked to create a
19269 postdeps=$lt_postdeps_RC
19271 # The library search path used internally by the compiler when linking
19272 # a shared library.
19273 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19275 # Method to check whether dependent libraries are shared objects.
19276 deplibs_check_method=$lt_deplibs_check_method
19278 # Command to use when deplibs_check_method == file_magic.
19279 file_magic_cmd=$lt_file_magic_cmd
19281 # Flag that allows shared libraries with undefined symbols to be built.
19282 allow_undefined_flag=$lt_allow_undefined_flag_RC
19284 # Flag that forces no undefined symbols.
19285 no_undefined_flag=$lt_no_undefined_flag_RC
19287 # Commands used to finish a libtool library installation in a directory.
19288 finish_cmds=$lt_finish_cmds
19290 # Same as above, but a single script fragment to be evaled but not shown.
19291 finish_eval=$lt_finish_eval
19293 # Take the output of nm and produce a listing of raw symbols and C names.
19294 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19296 # Transform the output of nm in a proper C declaration
19297 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19299 # Transform the output of nm in a C name address pair
19300 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19302 # This is the shared library runtime path variable.
19303 runpath_var=$runpath_var
19305 # This is the shared library path variable.
19306 shlibpath_var=$shlibpath_var
19308 # Is shlibpath searched before the hard-coded library search path?
19309 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19311 # How to hardcode a shared library path into an executable.
19312 hardcode_action=$hardcode_action_RC
19314 # Whether we should hardcode library paths into libraries.
19315 hardcode_into_libs=$hardcode_into_libs
19317 # Flag to hardcode \$libdir into a binary during linking.
19318 # This must work even if \$libdir does not exist.
19319 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19321 # If ld is used when linking, flag to hardcode \$libdir into
19322 # a binary during linking. This must work even if \$libdir does
19324 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19326 # Whether we need a single -rpath flag with a separated argument.
19327 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19329 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19330 # resulting binary.
19331 hardcode_direct=$hardcode_direct_RC
19333 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19334 # resulting binary.
19335 hardcode_minus_L=$hardcode_minus_L_RC
19337 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19338 # the resulting binary.
19339 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19341 # Set to yes if building a shared library automatically hardcodes DIR into the library
19342 # and all subsequent libraries and executables linked against it.
19343 hardcode_automatic=$hardcode_automatic_RC
19345 # Variables whose values should be saved in libtool wrapper scripts and
19346 # restored at relink time.
19347 variables_saved_for_relink="$variables_saved_for_relink"
19349 # Whether libtool must link a program against all its dependency libraries.
19350 link_all_deplibs=$link_all_deplibs_RC
19352 # Compile-time system search path for libraries
19353 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19355 # Run-time system search path for libraries
19356 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19358 # Fix the shell variable \$srcfile for the compiler.
19359 fix_srcfile_path="$fix_srcfile_path_RC"
19361 # Set to yes if exported symbols are required.
19362 always_export_symbols=$always_export_symbols_RC
19364 # The commands to list exported symbols.
19365 export_symbols_cmds=$lt_export_symbols_cmds_RC
19367 # The commands to extract the exported symbol list from a shared archive.
19368 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19370 # Symbols that should not be listed in the preloaded symbols.
19371 exclude_expsyms=$lt_exclude_expsyms_RC
19373 # Symbols that must always be exported.
19374 include_expsyms=$lt_include_expsyms_RC
19376 # ### END LIBTOOL TAG CONFIG: $tagname
19382 # If there is no Makefile yet, we rely on a make rule to execute
19383 # `config.status --recheck' to rerun these tests and create the
19384 # libtool script then.
19385 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19386 if test -f "$ltmain_in"; then
19387 test -f Makefile && make "$ltmain"
19393 ac_cpp='$CPP $CPPFLAGS'
19394 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19395 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19396 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19403 as_fn_error $? "Unsupported tag name: $tagname" "$LINENO" 5
19407 # Append the new tag name to the list of available tags.
19408 if test -n "$tagname" ; then
19409 available_tags="$available_tags $tagname"
19415 # Now substitute the updated list of available tags.
19416 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19417 mv "${ofile}T" "$ofile"
19421 as_fn_error $? "unable to update list of available tagged configurations." "$LINENO" 5
19427 # This can be used to rebuild libtool when needed
19428 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19430 # Always use our own libtool.
19431 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19433 # Prevent multiple expansion
19454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
19455 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
19456 if test -z "$MKDIR_P"; then
19457 if ${ac_cv_path_mkdir+:} false; then :
19458 $as_echo_n "(cached) " >&6
19460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19461 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
19464 test -z "$as_dir" && as_dir=.
19465 for ac_prog in mkdir gmkdir; do
19466 for ac_exec_ext in '' $ac_executable_extensions; do
19467 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
19468 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
19469 'mkdir (GNU coreutils) '* | \
19470 'mkdir (coreutils) '* | \
19471 'mkdir (fileutils) '4.1*)
19472 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
19482 test -d ./--version && rmdir ./--version
19483 if test "${ac_cv_path_mkdir+set}" = set; then
19484 MKDIR_P="$ac_cv_path_mkdir -p"
19486 # As a last resort, use the slow shell script. Don't cache a
19487 # value for MKDIR_P within a source directory, because that will
19488 # break other packages using the cache if that directory is
19489 # removed, or if the value is a relative name.
19490 MKDIR_P="$ac_install_sh -d"
19493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
19494 $as_echo "$MKDIR_P" >&6; }
19497 # Check for library functions that SQLite can optionally use.
19498 for ac_func in fdatasync usleep fullfsync localtime_r gmtime_r
19500 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19501 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19502 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19503 cat >>confdefs.h <<_ACEOF
19504 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19510 ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
19511 if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
19517 cat >>confdefs.h <<_ACEOF
19518 #define HAVE_DECL_STRERROR_R $ac_have_decl
19521 for ac_func in strerror_r
19523 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
19524 if test "x$ac_cv_func_strerror_r" = xyes; then :
19525 cat >>confdefs.h <<_ACEOF
19526 #define HAVE_STRERROR_R 1
19532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
19533 $as_echo_n "checking whether strerror_r returns char *... " >&6; }
19534 if ${ac_cv_func_strerror_r_char_p+:} false; then :
19535 $as_echo_n "(cached) " >&6
19538 ac_cv_func_strerror_r_char_p=no
19539 if test $ac_cv_have_decl_strerror_r = yes; then
19540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19541 /* end confdefs.h. */
19542 $ac_includes_default
19548 char x = *strerror_r (0, buf, sizeof buf);
19549 char *p = strerror_r (0, buf, sizeof buf);
19556 if ac_fn_c_try_compile "$LINENO"; then :
19557 ac_cv_func_strerror_r_char_p=yes
19559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19561 # strerror_r is not declared. Choose between
19562 # systems that have relatively inaccessible declarations for the
19563 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
19564 # former has a strerror_r that returns char*, while the latter
19565 # has a strerror_r that returns `int'.
19566 # This test should segfault on the DEC system.
19567 if test "$cross_compiling" = yes; then :
19570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19571 /* end confdefs.h. */
19572 $ac_includes_default
19573 extern char *strerror_r ();
19578 char x = *strerror_r (0, buf, sizeof buf);
19579 return ! isalpha (x);
19584 if ac_fn_c_try_run "$LINENO"; then :
19585 ac_cv_func_strerror_r_char_p=yes
19587 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19588 conftest.$ac_objext conftest.beam conftest.$ac_ext
19594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
19595 $as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
19596 if test $ac_cv_func_strerror_r_char_p = yes; then
19598 $as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
19603 ac_config_files="$ac_config_files Makefile sqlite3.pc"
19607 #-----------------------------------------------------------------------
19608 # --enable-readline
19610 # Check whether --enable-readline was given.
19611 if test "${enable_readline+set}" = set; then :
19612 enableval=$enable_readline;
19614 enable_readline=yes
19617 if test x"$enable_readline" != xno ; then
19620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
19621 $as_echo_n "checking for library containing tgetent... " >&6; }
19622 if ${ac_cv_search_tgetent+:} false; then :
19623 $as_echo_n "(cached) " >&6
19625 ac_func_search_save_LIBS=$LIBS
19626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19627 /* end confdefs.h. */
19629 /* Override any GCC internal prototype to avoid an error.
19630 Use char because int might match the return type of a GCC
19631 builtin and then its argument prototype would still apply. */
19644 for ac_lib in '' curses ncurses ncursesw; do
19645 if test -z "$ac_lib"; then
19646 ac_res="none required"
19649 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19651 if ac_fn_c_try_link "$LINENO"; then :
19652 ac_cv_search_tgetent=$ac_res
19654 rm -f core conftest.err conftest.$ac_objext \
19656 if ${ac_cv_search_tgetent+:} false; then :
19660 if ${ac_cv_search_tgetent+:} false; then :
19663 ac_cv_search_tgetent=no
19665 rm conftest.$ac_ext
19666 LIBS=$ac_func_search_save_LIBS
19668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
19669 $as_echo "$ac_cv_search_tgetent" >&6; }
19670 ac_res=$ac_cv_search_tgetent
19671 if test "$ac_res" != no; then :
19672 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing readline" >&5
19677 $as_echo_n "checking for library containing readline... " >&6; }
19678 if ${ac_cv_search_readline+:} false; then :
19679 $as_echo_n "(cached) " >&6
19681 ac_func_search_save_LIBS=$LIBS
19682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19683 /* end confdefs.h. */
19685 /* Override any GCC internal prototype to avoid an error.
19686 Use char because int might match the return type of a GCC
19687 builtin and then its argument prototype would still apply. */
19695 return readline ();
19700 for ac_lib in '' readline; do
19701 if test -z "$ac_lib"; then
19702 ac_res="none required"
19705 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19707 if ac_fn_c_try_link "$LINENO"; then :
19708 ac_cv_search_readline=$ac_res
19710 rm -f core conftest.err conftest.$ac_objext \
19712 if ${ac_cv_search_readline+:} false; then :
19716 if ${ac_cv_search_readline+:} false; then :
19719 ac_cv_search_readline=no
19721 rm conftest.$ac_ext
19722 LIBS=$ac_func_search_save_LIBS
19724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_readline" >&5
19725 $as_echo "$ac_cv_search_readline" >&6; }
19726 ac_res=$ac_cv_search_readline
19727 if test "$ac_res" != no; then :
19728 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19734 for ac_func in readline
19736 ac_fn_c_check_func "$LINENO" "readline" "ac_cv_func_readline"
19737 if test "x$ac_cv_func_readline" = xyes; then :
19738 cat >>confdefs.h <<_ACEOF
19739 #define HAVE_READLINE 1
19745 READLINE_LIBS=$LIBS
19749 #-----------------------------------------------------------------------
19751 #-----------------------------------------------------------------------
19752 # --enable-threadsafe
19754 # Check whether --enable-threadsafe was given.
19755 if test "${enable_threadsafe+set}" = set; then :
19756 enableval=$enable_threadsafe;
19758 enable_threadsafe=yes
19761 THREADSAFE_FLAGS=-DSQLITE_THREADSAFE=0
19762 if test x"$enable_threadsafe" != "xno"; then
19763 THREADSAFE_FLAGS="-D_REENTRANT=1 -DSQLITE_THREADSAFE=1"
19764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5
19765 $as_echo_n "checking for library containing pthread_create... " >&6; }
19766 if ${ac_cv_search_pthread_create+:} false; then :
19767 $as_echo_n "(cached) " >&6
19769 ac_func_search_save_LIBS=$LIBS
19770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19771 /* end confdefs.h. */
19773 /* Override any GCC internal prototype to avoid an error.
19774 Use char because int might match the return type of a GCC
19775 builtin and then its argument prototype would still apply. */
19779 char pthread_create ();
19783 return pthread_create ();
19788 for ac_lib in '' pthread; do
19789 if test -z "$ac_lib"; then
19790 ac_res="none required"
19793 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19795 if ac_fn_c_try_link "$LINENO"; then :
19796 ac_cv_search_pthread_create=$ac_res
19798 rm -f core conftest.err conftest.$ac_objext \
19800 if ${ac_cv_search_pthread_create+:} false; then :
19804 if ${ac_cv_search_pthread_create+:} false; then :
19807 ac_cv_search_pthread_create=no
19809 rm conftest.$ac_ext
19810 LIBS=$ac_func_search_save_LIBS
19812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_create" >&5
19813 $as_echo "$ac_cv_search_pthread_create" >&6; }
19814 ac_res=$ac_cv_search_pthread_create
19815 if test "$ac_res" != no; then :
19816 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19822 #-----------------------------------------------------------------------
19824 #-----------------------------------------------------------------------
19825 # --enable-dynamic-extensions
19827 # Check whether --enable-dynamic-extensions was given.
19828 if test "${enable_dynamic_extensions+set}" = set; then :
19829 enableval=$enable_dynamic_extensions;
19831 enable_dynamic_extensions=yes
19834 if test x"$enable_dynamic_extensions" != "xno"; then
19835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
19836 $as_echo_n "checking for library containing dlopen... " >&6; }
19837 if ${ac_cv_search_dlopen+:} false; then :
19838 $as_echo_n "(cached) " >&6
19840 ac_func_search_save_LIBS=$LIBS
19841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19842 /* end confdefs.h. */
19844 /* Override any GCC internal prototype to avoid an error.
19845 Use char because int might match the return type of a GCC
19846 builtin and then its argument prototype would still apply. */
19859 for ac_lib in '' dl; do
19860 if test -z "$ac_lib"; then
19861 ac_res="none required"
19864 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19866 if ac_fn_c_try_link "$LINENO"; then :
19867 ac_cv_search_dlopen=$ac_res
19869 rm -f core conftest.err conftest.$ac_objext \
19871 if ${ac_cv_search_dlopen+:} false; then :
19875 if ${ac_cv_search_dlopen+:} false; then :
19878 ac_cv_search_dlopen=no
19880 rm conftest.$ac_ext
19881 LIBS=$ac_func_search_save_LIBS
19883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
19884 $as_echo "$ac_cv_search_dlopen" >&6; }
19885 ac_res=$ac_cv_search_dlopen
19886 if test "$ac_res" != no; then :
19887 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19892 DYNAMIC_EXTENSION_FLAGS=-DSQLITE_OMIT_LOAD_EXTENSION=1
19894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for whether to support dynamic extensions" >&5
19895 $as_echo_n "checking for whether to support dynamic extensions... " >&6; }
19896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_dynamic_extensions" >&5
19897 $as_echo "$enable_dynamic_extensions" >&6; }
19899 #-----------------------------------------------------------------------
19901 for ac_func in posix_fallocate
19903 ac_fn_c_check_func "$LINENO" "posix_fallocate" "ac_cv_func_posix_fallocate"
19904 if test "x$ac_cv_func_posix_fallocate" = xyes; then :
19905 cat >>confdefs.h <<_ACEOF
19906 #define HAVE_POSIX_FALLOCATE 1
19913 #-----------------------------------------------------------------------
19914 # UPDATE: Maybe it's better if users just set CFLAGS before invoking
19915 # configure. This option doesn't really add much...
19917 # --enable-tempstore
19919 # AC_ARG_ENABLE(tempstore, [AS_HELP_STRING(
19920 # [--enable-tempstore],
19921 # [in-memory temporary tables (never, no, yes, always) [default=no]])],
19922 # [], [enable_tempstore=no])
19923 # AC_MSG_CHECKING([for whether or not to store temp tables in-memory])
19924 # case "$enable_tempstore" in
19925 # never ) TEMP_STORE=0 ;;
19926 # no ) TEMP_STORE=1 ;;
19927 # always ) TEMP_STORE=3 ;;
19928 # yes ) TEMP_STORE=3 ;;
19931 # enable_tempstore=yes
19934 # AC_MSG_RESULT($enable_tempstore)
19935 # AC_SUBST(TEMP_STORE)
19936 #-----------------------------------------------------------------------
19938 cat >confcache <<\_ACEOF
19939 # This file is a shell script that caches the results of configure
19940 # tests run on this system so they can be shared between configure
19941 # scripts and configure runs, see configure's option --config-cache.
19942 # It is not useful on other systems. If it contains results you don't
19943 # want to keep, you may remove or edit it.
19945 # config.status only pays attention to the cache file if you give it
19946 # the --recheck option to rerun configure.
19948 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19949 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19950 # following values.
19954 # The following way of writing the cache mishandles newlines in values,
19955 # but we know of no workaround that is simple, portable, and efficient.
19956 # So, we kill variables containing newlines.
19957 # Ultrix sh set writes to stderr and can't be redirected directly,
19958 # and sets the high bit in the cache file unless we assign to the vars.
19960 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19961 eval ac_val=\$$ac_var
19965 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19966 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19969 _ | IFS | as_nl) ;; #(
19970 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19971 *) { eval $ac_var=; unset $ac_var;} ;;
19977 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19978 *${as_nl}ac_space=\ *)
19979 # `set' does not quote correctly, so add quotes: double-quote
19980 # substitution turns \\\\ into \\, and sed turns \\ into \.
19983 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19986 # `set' quotes correctly as required by POSIX, so do not add quotes.
19987 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19996 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19998 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20000 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20001 if test -w "$cache_file"; then
20002 if test "x$cache_file" != "x/dev/null"; then
20003 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
20004 $as_echo "$as_me: updating cache $cache_file" >&6;}
20005 if test ! -f "$cache_file" || test -h "$cache_file"; then
20006 cat confcache >"$cache_file"
20008 case $cache_file in #(
20010 mv -f confcache "$cache_file"$$ &&
20011 mv -f "$cache_file"$$ "$cache_file" ;; #(
20013 mv -f confcache "$cache_file" ;;
20018 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
20019 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20024 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20025 # Let make expand exec_prefix.
20026 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20028 # Transform confdefs.h into DEFS.
20029 # Protect against shell expansion while executing Makefile rules.
20030 # Protect against Makefile macro expansion.
20032 # If the first sed substitution is executed (which looks for macros that
20033 # take arguments), then branch to the quote section. Otherwise,
20034 # look for a macro that doesn't take arguments.
20044 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
20046 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
20050 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
20063 DEFS=`sed -n "$ac_script" confdefs.h`
20069 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20070 # 1. Remove the extension, and $U if already installed.
20071 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20072 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
20073 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20074 # will be set to the directory where LIBOBJS objects are built.
20075 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20076 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
20078 LIBOBJS=$ac_libobjs
20080 LTLIBOBJS=$ac_ltlibobjs
20083 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20084 as_fn_error $? "conditional \"AMDEP\" was never defined.
20085 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20087 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20088 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
20089 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20091 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20092 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
20093 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20095 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20096 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
20097 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20100 : "${CONFIG_STATUS=./config.status}"
20102 ac_clean_files_save=$ac_clean_files
20103 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20104 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
20105 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
20107 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
20109 # Generated by $as_me.
20110 # Run this file to recreate the current configuration.
20111 # Compiler output produced by configure, useful for debugging
20112 # configure, is in config.log if it exists.
20115 ac_cs_recheck=false
20118 SHELL=\${CONFIG_SHELL-$SHELL}
20121 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
20122 ## -------------------- ##
20123 ## M4sh Initialization. ##
20124 ## -------------------- ##
20126 # Be more Bourne compatible
20127 DUALCASE=1; export DUALCASE # for MKS sh
20128 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20131 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20132 # is contrary to our usage. Disable this feature.
20133 alias -g '${1+"$@"}'='"$@"'
20134 setopt NO_GLOB_SUBST
20136 case `(set -o) 2>/dev/null` in #(
20148 # Printing a long string crashes Solaris 7 /usr/bin/printf.
20149 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
20150 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
20151 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
20152 # Prefer a ksh shell builtin over an external printf program on Solaris,
20153 # but without wasting forks for bash or zsh.
20154 if test -z "$BASH_VERSION$ZSH_VERSION" \
20155 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
20156 as_echo='print -r --'
20157 as_echo_n='print -rn --'
20158 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
20159 as_echo='printf %s\n'
20160 as_echo_n='printf %s'
20162 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
20163 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
20164 as_echo_n='/usr/ucb/echo -n'
20166 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
20167 as_echo_n_body='eval
20171 expr "X$arg" : "X\\(.*\\)$as_nl";
20172 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
20174 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
20176 export as_echo_n_body
20177 as_echo_n='sh -c $as_echo_n_body as_echo'
20179 export as_echo_body
20180 as_echo='sh -c $as_echo_body as_echo'
20183 # The user is always right.
20184 if test "${PATH_SEPARATOR+set}" != set; then
20186 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20187 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20194 # We need space, tab and new line, in precisely that order. Quoting is
20195 # there to prevent editors from complaining about space-tab.
20196 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20197 # splitting by setting IFS to empty value.)
20200 # Find who we are. Look in the path if we contain no directory separator.
20203 *[\\/]* ) as_myself=$0 ;;
20204 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20205 for as_dir in $PATH
20208 test -z "$as_dir" && as_dir=.
20209 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20215 # We did not find ourselves, most probably we were run as `sh COMMAND'
20216 # in which case we are not to be found in the path.
20217 if test "x$as_myself" = x; then
20220 if test ! -f "$as_myself"; then
20221 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20225 # Unset variables that we do not need and which cause bugs (e.g. in
20226 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
20227 # suppresses any "Segmentation fault" message there. '((' could
20228 # trigger a bug in pdksh 5.2.14.
20229 for as_var in BASH_ENV ENV MAIL MAILPATH
20230 do eval test x\${$as_var+set} = xset \
20231 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
20244 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20247 # as_fn_error STATUS ERROR [LINENO LOG_FD]
20248 # ----------------------------------------
20249 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
20250 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
20251 # script with STATUS, using 1 if that was 0.
20254 as_status=$1; test $as_status -eq 0 && as_status=1
20256 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
20257 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
20259 $as_echo "$as_me: error: $2" >&2
20260 as_fn_exit $as_status
20264 # as_fn_set_status STATUS
20265 # -----------------------
20266 # Set $? to STATUS, without forking.
20267 as_fn_set_status ()
20270 } # as_fn_set_status
20272 # as_fn_exit STATUS
20273 # -----------------
20274 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
20278 as_fn_set_status $1
20284 # Portably unset VAR.
20287 { eval $1=; unset $1;}
20289 as_unset=as_fn_unset
20290 # as_fn_append VAR VALUE
20291 # ----------------------
20292 # Append the text in VALUE to the end of the definition contained in VAR. Take
20293 # advantage of any shell optimizations that allow amortized linear growth over
20294 # repeated appends, instead of the typical quadratic growth present in naive
20296 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
20297 eval 'as_fn_append ()
20308 # as_fn_arith ARG...
20309 # ------------------
20310 # Perform arithmetic evaluation on the ARGs, and store the result in the
20311 # global $as_val. Take advantage of shells that can avoid forks. The arguments
20312 # must be portable across $(()) and expr.
20313 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
20314 eval 'as_fn_arith ()
20321 as_val=`expr "$@" || test $? -eq 1`
20326 if expr a : '\(a\)' >/dev/null 2>&1 &&
20327 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20333 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20334 as_basename=basename
20339 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20345 as_me=`$as_basename -- "$0" ||
20346 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20347 X"$0" : 'X\(//\)$' \| \
20348 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20350 sed '/^.*\/\([^/][^/]*\)\/*$/{
20364 # Avoid depending upon Character Ranges.
20365 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20366 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20367 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20368 as_cr_digits='0123456789'
20369 as_cr_alnum=$as_cr_Letters$as_cr_digits
20371 ECHO_C= ECHO_N= ECHO_T=
20372 case `echo -n x` in #(((((
20374 case `echo 'xy\c'` in
20375 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20377 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
20384 rm -f conf$$ conf$$.exe conf$$.file
20385 if test -d conf$$.dir; then
20386 rm -f conf$$.dir/conf$$.file
20389 mkdir conf$$.dir 2>/dev/null
20391 if (echo >conf$$.file) 2>/dev/null; then
20392 if ln -s conf$$.file conf$$ 2>/dev/null; then
20394 # ... but there are two gotchas:
20395 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20396 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20397 # In both cases, we have to default to `cp -pR'.
20398 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20400 elif ln conf$$.file conf$$ 2>/dev/null; then
20408 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20409 rmdir conf$$.dir 2>/dev/null
20414 # Create "$as_dir" as a directory, including parents if necessary.
20419 -*) as_dir=./$as_dir;;
20421 test -d "$as_dir" || eval $as_mkdir_p || {
20425 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20426 *) as_qdir=$as_dir;;
20428 as_dirs="'$as_qdir' $as_dirs"
20429 as_dir=`$as_dirname -- "$as_dir" ||
20430 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20431 X"$as_dir" : 'X\(//\)[^/]' \| \
20432 X"$as_dir" : 'X\(//\)$' \| \
20433 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20434 $as_echo X"$as_dir" |
20435 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20439 /^X\(\/\/\)[^/].*/{
20452 test -d "$as_dir" && break
20454 test -z "$as_dirs" || eval "mkdir $as_dirs"
20455 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
20459 if mkdir -p . 2>/dev/null; then
20460 as_mkdir_p='mkdir -p "$as_dir"'
20462 test -d ./-p && rmdir ./-p
20467 # as_fn_executable_p FILE
20468 # -----------------------
20469 # Test if FILE is an executable regular file.
20470 as_fn_executable_p ()
20472 test -f "$1" && test -x "$1"
20473 } # as_fn_executable_p
20474 as_test_x='test -x'
20475 as_executable_p=as_fn_executable_p
20477 # Sed expression to map a string onto a valid CPP name.
20478 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20480 # Sed expression to map a string onto a valid variable name.
20481 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20485 ## ----------------------------------- ##
20486 ## Main body of $CONFIG_STATUS script. ##
20487 ## ----------------------------------- ##
20489 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
20491 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20492 # Save the log message, to keep $0 and so on meaningful, and to
20493 # report actual input values of CONFIG_FILES etc. instead of their
20494 # values after options handling.
20496 This file was extended by sqlite $as_me 3.7.17, which was
20497 generated by GNU Autoconf 2.69. Invocation command line was
20499 CONFIG_FILES = $CONFIG_FILES
20500 CONFIG_HEADERS = $CONFIG_HEADERS
20501 CONFIG_LINKS = $CONFIG_LINKS
20502 CONFIG_COMMANDS = $CONFIG_COMMANDS
20505 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20510 case $ac_config_files in *"
20511 "*) set x $ac_config_files; shift; ac_config_files=$*;;
20516 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20517 # Files that config.status was made for.
20518 config_files="$ac_config_files"
20519 config_commands="$ac_config_commands"
20523 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20525 \`$as_me' instantiates files and other configuration actions
20526 from templates according to the current configuration. Unless the files
20527 and actions are specified as TAGs, all are instantiated by default.
20529 Usage: $0 [OPTION]... [TAG]...
20531 -h, --help print this help, then exit
20532 -V, --version print version number and configuration settings, then exit
20533 --config print configuration, then exit
20534 -q, --quiet, --silent
20535 do not print progress messages
20536 -d, --debug don't remove temporary files
20537 --recheck update $as_me by reconfiguring in the same conditions
20538 --file=FILE[:TEMPLATE]
20539 instantiate the configuration file FILE
20541 Configuration files:
20544 Configuration commands:
20547 Report bugs to <http://www.sqlite.org>."
20550 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20551 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
20553 sqlite config.status 3.7.17
20554 configured by $0, generated by GNU Autoconf 2.69,
20555 with options \\"\$ac_cs_config\\"
20557 Copyright (C) 2012 Free Software Foundation, Inc.
20558 This config.status script is free software; the Free Software Foundation
20559 gives unlimited permission to copy, distribute and modify it."
20566 test -n "\$AWK" || AWK=awk
20569 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20570 # The default lists apply if the user does not specify any file.
20576 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20577 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20581 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20593 # Handling of the options.
20594 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20596 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20597 $as_echo "$ac_cs_version"; exit ;;
20598 --config | --confi | --conf | --con | --co | --c )
20599 $as_echo "$ac_cs_config"; exit ;;
20600 --debug | --debu | --deb | --de | --d | -d )
20602 --file | --fil | --fi | --f )
20605 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20606 '') as_fn_error $? "missing file argument" ;;
20608 as_fn_append CONFIG_FILES " '$ac_optarg'"
20609 ac_need_defaults=false;;
20610 --he | --h | --help | --hel | -h )
20611 $as_echo "$ac_cs_usage"; exit ;;
20612 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20613 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20616 # This is an error.
20617 -*) as_fn_error $? "unrecognized option: \`$1'
20618 Try \`$0 --help' for more information." ;;
20620 *) as_fn_append ac_config_targets " $1"
20621 ac_need_defaults=false ;;
20627 ac_configure_extra_args=
20629 if $ac_cs_silent; then
20631 ac_configure_extra_args="$ac_configure_extra_args --silent"
20635 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20636 if \$ac_cs_recheck; then
20637 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20639 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20640 CONFIG_SHELL='$SHELL'
20641 export CONFIG_SHELL
20646 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20650 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20651 ## Running $as_me. ##
20657 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20661 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20665 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20667 # Handling of arguments.
20668 for ac_config_target in $ac_config_targets
20670 case $ac_config_target in
20671 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20672 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20673 "sqlite3.pc") CONFIG_FILES="$CONFIG_FILES sqlite3.pc" ;;
20675 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20680 # If the user did not use the arguments to specify the items to instantiate,
20681 # then the envvar interface is used. Set only those that are not.
20682 # We use the long form for the default assignment because of an extremely
20683 # bizarre bug on SunOS 4.1.3.
20684 if $ac_need_defaults; then
20685 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20686 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20689 # Have a temporary directory for convenience. Make it in the build tree
20690 # simply because there is no reason against having it here, and in addition,
20691 # creating and moving files from /tmp can sometimes cause problems.
20692 # Hook for its removal unless debugging.
20693 # Note that there is a small window in which the directory will not be cleaned:
20694 # after its creation but before its name has been assigned to `$tmp'.
20698 trap 'exit_status=$?
20699 : "${ac_tmp:=$tmp}"
20700 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
20702 trap 'as_fn_exit 1' 1 2 13 15
20704 # Create a (secure) tmp directory for tmp files.
20707 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20711 tmp=./conf$$-$RANDOM
20712 (umask 077 && mkdir "$tmp")
20713 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
20716 # Set up the scripts for CONFIG_FILES section.
20717 # No need to generate them if there are no CONFIG_FILES.
20718 # This happens for instance with `./config.status config.h'.
20719 if test -n "$CONFIG_FILES"; then
20722 ac_cr=`echo X | tr X '\015'`
20723 # On cygwin, bash can eat \r inside `` if the user requested igncr.
20724 # But we know of no other shell where ac_cr would be empty at this
20725 # point, so we can use a bashism as a fallback.
20726 if test "x$ac_cr" = x; then
20727 eval ac_cr=\$\'\\r\'
20729 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20730 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20733 ac_cs_awk_cr=$ac_cr
20736 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20741 echo "cat >conf$$subs.awk <<_ACEOF" &&
20742 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20744 } >conf$$subs.sh ||
20745 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20746 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20748 for ac_last_try in false false false false false :; do
20749 . ./conf$$subs.sh ||
20750 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20752 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20753 if test $ac_delim_n = $ac_delim_num; then
20755 elif $ac_last_try; then
20756 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20758 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20761 rm -f conf$$subs.sh
20763 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20764 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
20768 s/^/S["/; s/!.*/"]=/
20778 s/\(.\{148\}\)..*/\1/
20780 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20785 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20792 s/\(.\{148\}\)..*/\1/
20794 s/["\\]/\\&/g; s/^/"/; s/$/"/
20798 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20803 ' <conf$$subs.awk | sed '
20808 ' >>$CONFIG_STATUS || ac_write_fail=1
20809 rm -f conf$$subs.awk
20810 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20812 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
20813 for (key in S) S_is_set[key] = 1
20819 nfields = split(line, field, "@")
20821 len = length(field[1])
20822 for (i = 2; i < nfields; i++) {
20824 keylen = length(key)
20825 if (S_is_set[key]) {
20827 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20828 len += length(value) + length(field[++i])
20839 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20840 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20841 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20844 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
20845 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
20848 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20849 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
20850 # trailing colons and then remove the whole line if VPATH becomes empty
20851 # (actually we leave an empty line to preserve line numbers).
20852 if test "x$srcdir" = x.; then
20853 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
20871 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20872 fi # test -n "$CONFIG_FILES"
20875 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
20880 :[FHLC]) ac_mode=$ac_tag; continue;;
20882 case $ac_mode$ac_tag in
20884 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
20885 :[FH]-) ac_tag=-:-;;
20886 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20903 -) ac_f="$ac_tmp/stdin";;
20904 *) # Look for the file first in the build tree, then in the source tree
20905 # (if the path is not absolute). The absolute path cannot be DOS-style,
20906 # because $ac_f cannot contain `:'.
20910 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20912 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20914 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20915 as_fn_append ac_file_inputs " '$ac_f'"
20918 # Let's still pretend it is `configure' which instantiates (i.e., don't
20919 # use $as_me), people would be surprised to read:
20920 # /* config.h. Generated by config.status. */
20921 configure_input='Generated from '`
20922 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20924 if test x"$ac_file" != x-; then
20925 configure_input="$ac_file. $configure_input"
20926 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20927 $as_echo "$as_me: creating $ac_file" >&6;}
20929 # Neutralize special characters interpreted by sed in replacement strings.
20930 case $configure_input in #(
20931 *\&* | *\|* | *\\* )
20932 ac_sed_conf_input=`$as_echo "$configure_input" |
20933 sed 's/[\\\\&|]/\\\\&/g'`;; #(
20934 *) ac_sed_conf_input=$configure_input;;
20938 *:-:* | *:-) cat >"$ac_tmp/stdin" \
20939 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
20944 ac_dir=`$as_dirname -- "$ac_file" ||
20945 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20946 X"$ac_file" : 'X\(//\)[^/]' \| \
20947 X"$ac_file" : 'X\(//\)$' \| \
20948 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20949 $as_echo X"$ac_file" |
20950 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20954 /^X\(\/\/\)[^/].*/{
20967 as_dir="$ac_dir"; as_fn_mkdir_p
20971 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20973 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20974 # A ".." for each directory in $ac_dir_suffix.
20975 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20976 case $ac_top_builddir_sub in
20977 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20978 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20981 ac_abs_top_builddir=$ac_pwd
20982 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20983 # for backward compatibility:
20984 ac_top_builddir=$ac_top_build_prefix
20987 .) # We are building in place.
20989 ac_top_srcdir=$ac_top_builddir_sub
20990 ac_abs_top_srcdir=$ac_pwd ;;
20991 [\\/]* | ?:[\\/]* ) # Absolute name.
20992 ac_srcdir=$srcdir$ac_dir_suffix;
20993 ac_top_srcdir=$srcdir
20994 ac_abs_top_srcdir=$srcdir ;;
20995 *) # Relative name.
20996 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20997 ac_top_srcdir=$ac_top_build_prefix$srcdir
20998 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21000 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21010 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21011 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21013 ac_MKDIR_P=$MKDIR_P
21015 [\\/$]* | ?:[\\/]* ) ;;
21016 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21020 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21021 # If the template does not know about datarootdir, expand it.
21022 # FIXME: This hack should be removed a few years after 2.60.
21023 ac_datarootdir_hack=; ac_datarootdir_seen=
21034 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21035 *datarootdir*) ac_datarootdir_seen=yes;;
21036 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21037 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21038 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21040 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21041 ac_datarootdir_hack='
21042 s&@datadir@&$datadir&g
21043 s&@docdir@&$docdir&g
21044 s&@infodir@&$infodir&g
21045 s&@localedir@&$localedir&g
21046 s&@mandir@&$mandir&g
21047 s&\\\${datarootdir}&$datarootdir&g' ;;
21051 # Neutralize VPATH when `$srcdir' = `.'.
21052 # Shell code in configure.ac might set extrasub.
21053 # FIXME: do we really want to maintain this feature?
21054 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21055 ac_sed_extra="$ac_vpsub
21058 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21060 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21061 s|@configure_input@|$ac_sed_conf_input|;t t
21062 s&@top_builddir@&$ac_top_builddir_sub&;t t
21063 s&@top_build_prefix@&$ac_top_build_prefix&;t t
21064 s&@srcdir@&$ac_srcdir&;t t
21065 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21066 s&@top_srcdir@&$ac_top_srcdir&;t t
21067 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21068 s&@builddir@&$ac_builddir&;t t
21069 s&@abs_builddir@&$ac_abs_builddir&;t t
21070 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21071 s&@INSTALL@&$ac_INSTALL&;t t
21072 s&@MKDIR_P@&$ac_MKDIR_P&;t t
21073 $ac_datarootdir_hack
21075 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
21076 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21078 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21079 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
21080 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
21081 "$ac_tmp/out"`; test -z "$ac_out"; } &&
21082 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21083 which seems to be undefined. Please make sure it is defined" >&5
21084 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21085 which seems to be undefined. Please make sure it is defined" >&2;}
21087 rm -f "$ac_tmp/stdin"
21089 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
21090 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
21092 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21096 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21097 $as_echo "$as_me: executing $ac_file commands" >&6;}
21102 case $ac_file$ac_mode in
21103 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
21104 # Strip MF so we end up with the name of the file.
21105 mf=`echo "$mf" | sed -e 's/:.*$//'`
21106 # Check whether this is an Automake generated Makefile or not.
21107 # We used to match only the files named `Makefile.in', but
21108 # some people rename them; so instead we look at the file content.
21109 # Grep'ing the first line is not enough: some people post-process
21110 # each Makefile.in and add a new line on top of each file to say so.
21111 # So let's grep whole file.
21112 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
21113 dirpart=`$as_dirname -- "$mf" ||
21114 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21115 X"$mf" : 'X\(//\)[^/]' \| \
21116 X"$mf" : 'X\(//\)$' \| \
21117 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21119 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21123 /^X\(\/\/\)[^/].*/{
21139 # Extract the definition of DEPDIR, am__include, and am__quote
21140 # from the Makefile without running `make'.
21141 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21142 test -z "$DEPDIR" && continue
21143 am__include=`sed -n 's/^am__include = //p' < "$mf"`
21144 test -z "am__include" && continue
21145 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21146 # When using ansi2knr, U may be empty or an underscore; expand it
21147 U=`sed -n 's/^U = //p' < "$mf"`
21148 # Find all dependency output files, they are included files with
21149 # $(DEPDIR) in their names. We invoke sed twice because it is the
21150 # simplest approach to changing $(DEPDIR) to its actual value in the
21152 for file in `sed -n "
21153 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21154 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21155 # Make sure the directory exists.
21156 test -f "$dirpart/$file" && continue
21157 fdir=`$as_dirname -- "$file" ||
21158 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21159 X"$file" : 'X\(//\)[^/]' \| \
21160 X"$file" : 'X\(//\)$' \| \
21161 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21162 $as_echo X"$file" |
21163 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21167 /^X\(\/\/\)[^/].*/{
21180 as_dir=$dirpart/$fdir; as_fn_mkdir_p
21181 # echo "creating $dirpart/$file"
21182 echo '# dummy' > "$dirpart/$file"
21193 ac_clean_files=$ac_clean_files_save
21195 test $ac_write_fail = 0 ||
21196 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21199 # configure is writing to config.log, and then calls config.status.
21200 # config.status does its own redirection, appending to config.log.
21201 # Unfortunately, on DOS this fails, as config.log is still kept open
21202 # by configure, so config.status won't be able to write to it; its
21203 # output is simply discarded. So we exec the FD to /dev/null,
21204 # effectively closing config.log, so it can be properly (re)opened and
21205 # appended to by config.status. When coming back to configure, we
21206 # need to make the FD available again.
21207 if test "$no_create" != yes; then
21209 ac_config_status_args=
21210 test "$silent" = yes &&
21211 ac_config_status_args="$ac_config_status_args --quiet"
21213 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21215 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21216 # would make configure fail if this is the last instruction.
21217 $ac_cs_success || as_fn_exit 1
21219 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21220 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21221 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}