2 @%:@ Guess values for system-dependent variables and create Makefiles.
3 @%:@ Generated by GNU Autoconf 2.59.
5 @%:@ Copyright (C) 2003 Free Software Foundation, Inc.
6 @%:@ This configure script is free software; the Free Software Foundation
7 @%:@ gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
138 if ("$as_dir/$as_base" -c '
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 s,^['$as_cr_digits']*\n,,
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
182 # Exit status is that of the last command.
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 if expr a : '\(a\)' >/dev/null 2>&1; then
200 rm -f conf$$ conf$$.exe conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
211 elif ln conf$$.file conf$$ 2>/dev/null; then
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
221 test -d ./-p && rmdir ./-p
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235 # We need space, tab and new line, in precisely that order.
245 # Check that we are running under the correct shell.
246 SHELL=${CONFIG_SHELL-/bin/sh}
250 # Remove one level of quotation (which was required for Make).
251 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
256 if test "X$1" = X--no-reexec; then
257 # Discard the --no-reexec flag, and continue.
259 elif test "X$1" = X--fallback-echo; then
260 # Avoid inline document here, it may be left over
262 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
263 # Yippee, $echo works!
266 # Restart under the correct shell.
267 exec $SHELL "$0" --no-reexec ${1+"$@"}
270 if test "X$1" = X--fallback-echo; then
271 # used as fallback echo
279 # The HP-UX ksh and POSIX shell print the target directory to stdout
281 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
283 if test -z "$ECHO"; then
284 if test "X${echo_test_string+set}" != Xset; then
285 # find a string as large as possible, as long as the shell can cope with it
286 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
287 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
288 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
289 echo_test_string="`eval $cmd`" &&
290 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
297 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
298 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
299 test "X$echo_testing_string" = "X$echo_test_string"; then
302 # The Solaris, AIX, and Digital Unix default echo programs unquote
303 # backslashes. This makes it impossible to quote backslashes using
304 # echo "$something" | sed 's/\\/\\\\/g'
306 # So, first we look for a working echo in the user's PATH.
308 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
309 for dir in $PATH /usr/ucb; do
311 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
312 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
313 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
314 test "X$echo_testing_string" = "X$echo_test_string"; then
321 if test "X$echo" = Xecho; then
322 # We didn't find a better echo, so look for alternatives.
323 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
324 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
325 test "X$echo_testing_string" = "X$echo_test_string"; then
326 # This shell has a builtin print -r that does the trick.
328 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
329 test "X$CONFIG_SHELL" != X/bin/ksh; then
330 # If we have ksh, try running configure again with it.
331 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
332 export ORIGINAL_CONFIG_SHELL
333 CONFIG_SHELL=/bin/ksh
335 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
339 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
340 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
341 test "X$echo_testing_string" = "X$echo_test_string"; then
344 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
345 test "X$echo_testing_string" = 'X\t' &&
346 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
347 test "X$echo_testing_string" = "X$echo_test_string"; then
348 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
350 SHELL="$CONFIG_SHELL"
352 echo="$CONFIG_SHELL $0 --fallback-echo"
353 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
354 test "X$echo_testing_string" = 'X\t' &&
355 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
356 test "X$echo_testing_string" = "X$echo_test_string"; then
357 echo="$CONFIG_SHELL $0 --fallback-echo"
359 # maybe with a smaller string...
362 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
363 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
370 if test "$prev" != 'sed 50q "$0"'; then
371 echo_test_string=`eval $prev`
372 export echo_test_string
373 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
375 # Oops. We lost completely, so just stick with echo.
384 # Copy echo and quote the copy suitably for passing to libtool from
385 # the Makefile, instead of quoting the original, which is used later.
387 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
388 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
394 tagnames=${tagnames+${tagnames},}CXX
396 tagnames=${tagnames+${tagnames},}F77
399 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
400 # so uname gets run too.
401 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
408 ac_default_prefix=/usr/local
409 ac_config_libobj_dir=.
414 SHELL=${CONFIG_SHELL-/bin/sh}
416 # Maximum number of lines to put in a shell here document.
417 # This variable seems obsolete. It should probably be removed, and
418 # only ac_max_sed_lines should be used.
419 : ${ac_max_here_lines=38}
421 # Identity of this package.
428 ac_unique_file="configure.in"
429 # Factoring default headers for most tests.
430 ac_includes_default="\
433 # include <sys/types.h>
436 # include <sys/stat.h>
447 # if !STDC_HEADERS && HAVE_MEMORY_H
453 # include <strings.h>
456 # include <inttypes.h>
466 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE am__leading_dot CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE build build_cpu build_vendor build_os host host_cpu host_vendor host_os EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL LIB@&t@OBJS LTLIBOBJS'
469 # Initialize some variables set by options.
471 ac_init_version=false
472 # The variables have the same names as the options, with
473 # dashes changed to underlines.
481 program_transform_name=s,x,x,
489 # Installation directory options.
490 # These are left unexpanded so users can "make install exec_prefix=/foo"
491 # and all the variables that are supposed to be based on exec_prefix
492 # by default will actually change.
493 # Use braces instead of parens because sh, perl, etc. also accept them.
494 bindir='${exec_prefix}/bin'
495 sbindir='${exec_prefix}/sbin'
496 libexecdir='${exec_prefix}/libexec'
497 datadir='${prefix}/share'
498 sysconfdir='${prefix}/etc'
499 sharedstatedir='${prefix}/com'
500 localstatedir='${prefix}/var'
501 libdir='${exec_prefix}/lib'
502 includedir='${prefix}/include'
503 oldincludedir='/usr/include'
504 infodir='${prefix}/info'
505 mandir='${prefix}/man'
510 # If the previous option needs an argument, assign it.
511 if test -n "$ac_prev"; then
512 eval "$ac_prev=\$ac_option"
517 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
519 # Accept the important Cygnus configure options, so we can diagnose typos.
523 -bindir | --bindir | --bindi | --bind | --bin | --bi)
525 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
528 -build | --build | --buil | --bui | --bu)
529 ac_prev=build_alias ;;
530 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
531 build_alias=$ac_optarg ;;
533 -cache-file | --cache-file | --cache-fil | --cache-fi \
534 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
535 ac_prev=cache_file ;;
536 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
537 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
538 cache_file=$ac_optarg ;;
541 cache_file=config.cache ;;
543 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
545 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
547 datadir=$ac_optarg ;;
549 -disable-* | --disable-*)
550 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
551 # Reject names that are not valid shell variable names.
552 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
553 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
554 { (exit 1); exit 1; }; }
555 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
556 eval "enable_$ac_feature=no" ;;
558 -enable-* | --enable-*)
559 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
560 # Reject names that are not valid shell variable names.
561 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
562 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
563 { (exit 1); exit 1; }; }
564 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
566 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
569 eval "enable_$ac_feature='$ac_optarg'" ;;
571 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
572 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
573 | --exec | --exe | --ex)
574 ac_prev=exec_prefix ;;
575 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
576 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
577 | --exec=* | --exe=* | --ex=*)
578 exec_prefix=$ac_optarg ;;
580 -gas | --gas | --ga | --g)
581 # Obsolete; use --with-gas.
584 -help | --help | --hel | --he | -h)
586 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
587 ac_init_help=recursive ;;
588 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
589 ac_init_help=short ;;
591 -host | --host | --hos | --ho)
592 ac_prev=host_alias ;;
593 -host=* | --host=* | --hos=* | --ho=*)
594 host_alias=$ac_optarg ;;
596 -includedir | --includedir | --includedi | --included | --include \
597 | --includ | --inclu | --incl | --inc)
598 ac_prev=includedir ;;
599 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
600 | --includ=* | --inclu=* | --incl=* | --inc=*)
601 includedir=$ac_optarg ;;
603 -infodir | --infodir | --infodi | --infod | --info | --inf)
605 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
606 infodir=$ac_optarg ;;
608 -libdir | --libdir | --libdi | --libd)
610 -libdir=* | --libdir=* | --libdi=* | --libd=*)
613 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
614 | --libexe | --libex | --libe)
615 ac_prev=libexecdir ;;
616 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
617 | --libexe=* | --libex=* | --libe=*)
618 libexecdir=$ac_optarg ;;
620 -localstatedir | --localstatedir | --localstatedi | --localstated \
621 | --localstate | --localstat | --localsta | --localst \
622 | --locals | --local | --loca | --loc | --lo)
623 ac_prev=localstatedir ;;
624 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
625 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
626 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
627 localstatedir=$ac_optarg ;;
629 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
631 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
635 # Obsolete; use --without-fp.
638 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
639 | --no-cr | --no-c | -n)
642 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
643 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
646 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
647 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
648 | --oldin | --oldi | --old | --ol | --o)
649 ac_prev=oldincludedir ;;
650 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
651 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
652 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
653 oldincludedir=$ac_optarg ;;
655 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
657 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
660 -program-prefix | --program-prefix | --program-prefi | --program-pref \
661 | --program-pre | --program-pr | --program-p)
662 ac_prev=program_prefix ;;
663 -program-prefix=* | --program-prefix=* | --program-prefi=* \
664 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
665 program_prefix=$ac_optarg ;;
667 -program-suffix | --program-suffix | --program-suffi | --program-suff \
668 | --program-suf | --program-su | --program-s)
669 ac_prev=program_suffix ;;
670 -program-suffix=* | --program-suffix=* | --program-suffi=* \
671 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
672 program_suffix=$ac_optarg ;;
674 -program-transform-name | --program-transform-name \
675 | --program-transform-nam | --program-transform-na \
676 | --program-transform-n | --program-transform- \
677 | --program-transform | --program-transfor \
678 | --program-transfo | --program-transf \
679 | --program-trans | --program-tran \
680 | --progr-tra | --program-tr | --program-t)
681 ac_prev=program_transform_name ;;
682 -program-transform-name=* | --program-transform-name=* \
683 | --program-transform-nam=* | --program-transform-na=* \
684 | --program-transform-n=* | --program-transform-=* \
685 | --program-transform=* | --program-transfor=* \
686 | --program-transfo=* | --program-transf=* \
687 | --program-trans=* | --program-tran=* \
688 | --progr-tra=* | --program-tr=* | --program-t=*)
689 program_transform_name=$ac_optarg ;;
691 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
692 | -silent | --silent | --silen | --sile | --sil)
695 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
697 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
699 sbindir=$ac_optarg ;;
701 -sharedstatedir | --sharedstatedir | --sharedstatedi \
702 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
703 | --sharedst | --shareds | --shared | --share | --shar \
705 ac_prev=sharedstatedir ;;
706 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
707 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
708 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
710 sharedstatedir=$ac_optarg ;;
712 -site | --site | --sit)
714 -site=* | --site=* | --sit=*)
717 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
719 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
722 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
723 | --syscon | --sysco | --sysc | --sys | --sy)
724 ac_prev=sysconfdir ;;
725 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
726 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
727 sysconfdir=$ac_optarg ;;
729 -target | --target | --targe | --targ | --tar | --ta | --t)
730 ac_prev=target_alias ;;
731 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
732 target_alias=$ac_optarg ;;
734 -v | -verbose | --verbose | --verbos | --verbo | --verb)
737 -version | --version | --versio | --versi | --vers | -V)
741 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
742 # Reject names that are not valid shell variable names.
743 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
744 { echo "$as_me: error: invalid package name: $ac_package" >&2
745 { (exit 1); exit 1; }; }
746 ac_package=`echo $ac_package| sed 's/-/_/g'`
748 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
751 eval "with_$ac_package='$ac_optarg'" ;;
753 -without-* | --without-*)
754 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
755 # Reject names that are not valid shell variable names.
756 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
757 { echo "$as_me: error: invalid package name: $ac_package" >&2
758 { (exit 1); exit 1; }; }
759 ac_package=`echo $ac_package | sed 's/-/_/g'`
760 eval "with_$ac_package=no" ;;
763 # Obsolete; use --with-x.
766 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
767 | --x-incl | --x-inc | --x-in | --x-i)
768 ac_prev=x_includes ;;
769 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
770 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
771 x_includes=$ac_optarg ;;
773 -x-libraries | --x-libraries | --x-librarie | --x-librari \
774 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
775 ac_prev=x_libraries ;;
776 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
777 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
778 x_libraries=$ac_optarg ;;
780 -*) { echo "$as_me: error: unrecognized option: $ac_option
781 Try \`$0 --help' for more information." >&2
782 { (exit 1); exit 1; }; }
786 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
787 # Reject names that are not valid shell variable names.
788 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
789 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
790 { (exit 1); exit 1; }; }
791 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
792 eval "$ac_envvar='$ac_optarg'"
796 # FIXME: should be removed in autoconf 3.0.
797 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
798 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
799 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
800 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
806 if test -n "$ac_prev"; then
807 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
808 { echo "$as_me: error: missing argument to $ac_option" >&2
809 { (exit 1); exit 1; }; }
812 # Be sure to have absolute paths.
813 for ac_var in exec_prefix prefix
815 eval ac_val=$`echo $ac_var`
817 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
818 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
819 { (exit 1); exit 1; }; };;
823 # Be sure to have absolute paths.
824 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
825 localstatedir libdir includedir oldincludedir infodir mandir
827 eval ac_val=$`echo $ac_var`
829 [\\/$]* | ?:[\\/]* ) ;;
830 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
831 { (exit 1); exit 1; }; };;
835 # There might be people who depend on the old broken behavior: `$host'
836 # used to hold the argument of --host etc.
837 # FIXME: To remove some day.
842 # FIXME: To remove some day.
843 if test "x$host_alias" != x; then
844 if test "x$build_alias" = x; then
845 cross_compiling=maybe
846 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
847 If a cross compiler is detected then cross compile mode will be used." >&2
848 elif test "x$build_alias" != "x$host_alias"; then
854 test -n "$host_alias" && ac_tool_prefix=$host_alias-
856 test "$silent" = yes && exec 6>/dev/null
859 # Find the source files, if location was not specified.
860 if test -z "$srcdir"; then
861 ac_srcdir_defaulted=yes
862 # Try the directory containing this script, then its parent.
863 ac_confdir=`(dirname "$0") 2>/dev/null ||
864 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
865 X"$0" : 'X\(//\)[^/]' \| \
866 X"$0" : 'X\(//\)$' \| \
867 X"$0" : 'X\(/\)' \| \
868 . : '\(.\)' 2>/dev/null ||
870 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
871 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
872 /^X\(\/\/\)$/{ s//\1/; q; }
873 /^X\(\/\).*/{ s//\1/; q; }
876 if test ! -r $srcdir/$ac_unique_file; then
880 ac_srcdir_defaulted=no
882 if test ! -r $srcdir/$ac_unique_file; then
883 if test "$ac_srcdir_defaulted" = yes; then
884 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
885 { (exit 1); exit 1; }; }
887 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
888 { (exit 1); exit 1; }; }
891 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
892 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
893 { (exit 1); exit 1; }; }
894 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
895 ac_env_build_alias_set=${build_alias+set}
896 ac_env_build_alias_value=$build_alias
897 ac_cv_env_build_alias_set=${build_alias+set}
898 ac_cv_env_build_alias_value=$build_alias
899 ac_env_host_alias_set=${host_alias+set}
900 ac_env_host_alias_value=$host_alias
901 ac_cv_env_host_alias_set=${host_alias+set}
902 ac_cv_env_host_alias_value=$host_alias
903 ac_env_target_alias_set=${target_alias+set}
904 ac_env_target_alias_value=$target_alias
905 ac_cv_env_target_alias_set=${target_alias+set}
906 ac_cv_env_target_alias_value=$target_alias
907 ac_env_CC_set=${CC+set}
909 ac_cv_env_CC_set=${CC+set}
910 ac_cv_env_CC_value=$CC
911 ac_env_CFLAGS_set=${CFLAGS+set}
912 ac_env_CFLAGS_value=$CFLAGS
913 ac_cv_env_CFLAGS_set=${CFLAGS+set}
914 ac_cv_env_CFLAGS_value=$CFLAGS
915 ac_env_LDFLAGS_set=${LDFLAGS+set}
916 ac_env_LDFLAGS_value=$LDFLAGS
917 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
918 ac_cv_env_LDFLAGS_value=$LDFLAGS
919 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
920 ac_env_CPPFLAGS_value=$CPPFLAGS
921 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
922 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
923 ac_env_CPP_set=${CPP+set}
924 ac_env_CPP_value=$CPP
925 ac_cv_env_CPP_set=${CPP+set}
926 ac_cv_env_CPP_value=$CPP
927 ac_env_CXX_set=${CXX+set}
928 ac_env_CXX_value=$CXX
929 ac_cv_env_CXX_set=${CXX+set}
930 ac_cv_env_CXX_value=$CXX
931 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
932 ac_env_CXXFLAGS_value=$CXXFLAGS
933 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
934 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
935 ac_env_CXXCPP_set=${CXXCPP+set}
936 ac_env_CXXCPP_value=$CXXCPP
937 ac_cv_env_CXXCPP_set=${CXXCPP+set}
938 ac_cv_env_CXXCPP_value=$CXXCPP
939 ac_env_F77_set=${F77+set}
940 ac_env_F77_value=$F77
941 ac_cv_env_F77_set=${F77+set}
942 ac_cv_env_F77_value=$F77
943 ac_env_FFLAGS_set=${FFLAGS+set}
944 ac_env_FFLAGS_value=$FFLAGS
945 ac_cv_env_FFLAGS_set=${FFLAGS+set}
946 ac_cv_env_FFLAGS_value=$FFLAGS
949 # Report the --help message.
951 if test "$ac_init_help" = "long"; then
952 # Omit some internal or obsolete options to make the list less imposing.
953 # This message is too long to be a string in the A/UX 3.1 sh.
955 \`configure' configures this package to adapt to many kinds of systems.
957 Usage: $0 [OPTION]... [VAR=VALUE]...
959 To assign environment variables (e.g., CC, CFLAGS...), specify them as
960 VAR=VALUE. See below for descriptions of some of the useful variables.
962 Defaults for the options are specified in brackets.
965 -h, --help display this help and exit
966 --help=short display options specific to this package
967 --help=recursive display the short help of all the included packages
968 -V, --version display version information and exit
969 -q, --quiet, --silent do not print \`checking...' messages
970 --cache-file=FILE cache test results in FILE [disabled]
971 -C, --config-cache alias for \`--cache-file=config.cache'
972 -n, --no-create do not create output files
973 --srcdir=DIR find the sources in DIR [configure dir or \`..']
978 Installation directories:
979 --prefix=PREFIX install architecture-independent files in PREFIX
981 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
984 By default, \`make install' will install all the files in
985 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
986 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
987 for instance \`--prefix=\$HOME'.
989 For better control, use the options below.
991 Fine tuning of the installation directories:
992 --bindir=DIR user executables [EPREFIX/bin]
993 --sbindir=DIR system admin executables [EPREFIX/sbin]
994 --libexecdir=DIR program executables [EPREFIX/libexec]
995 --datadir=DIR read-only architecture-independent data [PREFIX/share]
996 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
997 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
998 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
999 --libdir=DIR object code libraries [EPREFIX/lib]
1000 --includedir=DIR C header files [PREFIX/include]
1001 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1002 --infodir=DIR info documentation [PREFIX/info]
1003 --mandir=DIR man documentation [PREFIX/man]
1009 --program-prefix=PREFIX prepend PREFIX to installed program names
1010 --program-suffix=SUFFIX append SUFFIX to installed program names
1011 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1014 --build=BUILD configure for building on BUILD [guessed]
1015 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1019 if test -n "$ac_init_help"; then
1024 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1025 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1026 --disable-dependency-tracking Speeds up one-time builds
1027 --enable-dependency-tracking Do not reject slow dependency extractors
1028 --enable-shared@<:@=PKGS@:>@
1029 build shared libraries @<:@default=yes@:>@
1030 --enable-static@<:@=PKGS@:>@
1031 build static libraries @<:@default=yes@:>@
1032 --enable-fast-install@<:@=PKGS@:>@
1033 optimize for fast installation @<:@default=yes@:>@
1034 --disable-libtool-lock avoid locking (might break parallel builds)
1037 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1038 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1039 --with-gnu-ld assume the C compiler uses GNU ld @<:@default=no@:>@
1040 --with-pic try to use only PIC/non-PIC objects @<:@default=use
1042 --with-tags@<:@=TAGS@:>@
1043 include additional configurations @<:@automatic@:>@
1045 Some influential environment variables:
1046 CC C compiler command
1047 CFLAGS C compiler flags
1048 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1049 nonstandard directory <lib dir>
1050 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1051 headers in a nonstandard directory <include dir>
1053 CXX C++ compiler command
1054 CXXFLAGS C++ compiler flags
1055 CXXCPP C++ preprocessor
1056 F77 Fortran 77 compiler command
1057 FFLAGS Fortran 77 compiler flags
1059 Use these variables to override the choices made by `configure' or to help
1060 it to find libraries and programs with nonstandard names/locations.
1065 if test "$ac_init_help" = "recursive"; then
1066 # If there are subdirs, report their specific --help.
1068 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1069 test -d $ac_dir || continue
1072 if test "$ac_dir" != .; then
1073 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1074 # A "../" for each directory in $ac_dir_suffix.
1075 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1077 ac_dir_suffix= ac_top_builddir=
1081 .) # No --srcdir option. We are building in place.
1083 if test -z "$ac_top_builddir"; then
1086 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1088 [\\/]* | ?:[\\/]* ) # Absolute path.
1089 ac_srcdir=$srcdir$ac_dir_suffix;
1090 ac_top_srcdir=$srcdir ;;
1092 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1093 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1096 # Do not use `cd foo && pwd` to compute absolute paths, because
1097 # the directories may not exist.
1099 .) ac_abs_builddir="$ac_dir";;
1102 .) ac_abs_builddir=`pwd`;;
1103 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1104 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1107 case $ac_abs_builddir in
1108 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1110 case ${ac_top_builddir}. in
1111 .) ac_abs_top_builddir=$ac_abs_builddir;;
1112 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1113 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1116 case $ac_abs_builddir in
1117 .) ac_abs_srcdir=$ac_srcdir;;
1120 .) ac_abs_srcdir=$ac_abs_builddir;;
1121 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1122 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1125 case $ac_abs_builddir in
1126 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1128 case $ac_top_srcdir in
1129 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1130 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1131 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1136 # Check for guested configure; otherwise get Cygnus style configure.
1137 if test -f $ac_srcdir/configure.gnu; then
1139 $SHELL $ac_srcdir/configure.gnu --help=recursive
1140 elif test -f $ac_srcdir/configure; then
1142 $SHELL $ac_srcdir/configure --help=recursive
1143 elif test -f $ac_srcdir/configure.ac ||
1144 test -f $ac_srcdir/configure.in; then
1146 $ac_configure --help
1148 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1154 test -n "$ac_init_help" && exit 0
1155 if $ac_init_version; then
1158 Copyright (C) 2003 Free Software Foundation, Inc.
1159 This configure script is free software; the Free Software Foundation
1160 gives unlimited permission to copy, distribute and modify it.
1166 This file contains any messages produced by compilers while
1167 running configure, to aid debugging if configure makes a mistake.
1169 It was created by $as_me, which was
1170 generated by GNU Autoconf 2.59. Invocation command line was
1177 @%:@@%:@ --------- @%:@@%:@
1178 @%:@@%:@ Platform. @%:@@%:@
1179 @%:@@%:@ --------- @%:@@%:@
1181 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1182 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1183 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1184 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1185 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1187 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1188 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1190 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1191 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1192 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1193 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1194 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1195 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1196 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1204 test -z "$as_dir" && as_dir=.
1205 echo "PATH: $as_dir"
1213 @%:@@%:@ ----------- @%:@@%:@
1214 @%:@@%:@ Core tests. @%:@@%:@
1215 @%:@@%:@ ----------- @%:@@%:@
1220 # Keep a trace of the command line.
1221 # Strip out --no-create and --no-recursion so they do not pile up.
1222 # Strip out --silent because we don't want to record it for future runs.
1223 # Also quote any args containing shell meta-characters.
1224 # Make two passes to allow for proper duplicate-argument suppression.
1229 ac_must_keep_next=false
1235 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1236 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1237 | -silent | --silent | --silen | --sile | --sil)
1239 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1240 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1243 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1245 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1246 if test $ac_must_keep_next = true; then
1247 ac_must_keep_next=false # Got value, back to normal.
1250 *=* | --config-cache | -C | -disable-* | --disable-* \
1251 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1252 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1253 | -with-* | --with-* | -without-* | --without-* | --x)
1254 case "$ac_configure_args0 " in
1255 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1258 -* ) ac_must_keep_next=true ;;
1261 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1262 # Get rid of the leading space.
1268 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1269 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1271 # When interrupted or exit'd, cleanup temporary files, and complete
1272 # config.log. We remove comments because anyway the quotes in there
1273 # would cause problems or look ugly.
1274 # WARNING: Be sure not to use single quotes in there, as some shells,
1275 # such as our DU 5.0 friend, will then `close' the trap.
1276 trap 'exit_status=$?
1277 # Save into config.log some information that might help in debugging.
1282 @%:@@%:@ ---------------- @%:@@%:@
1283 @%:@@%:@ Cache variables. @%:@@%:@
1284 @%:@@%:@ ---------------- @%:@@%:@
1287 # The following way of writing the cache mishandles newlines in values,
1290 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1293 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1294 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1298 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1305 @%:@@%:@ ----------------- @%:@@%:@
1306 @%:@@%:@ Output variables. @%:@@%:@
1307 @%:@@%:@ ----------------- @%:@@%:@
1310 for ac_var in $ac_subst_vars
1312 eval ac_val=$`echo $ac_var`
1313 echo "$ac_var='"'"'$ac_val'"'"'"
1317 if test -n "$ac_subst_files"; then
1319 @%:@@%:@ ------------- @%:@@%:@
1320 @%:@@%:@ Output files. @%:@@%:@
1321 @%:@@%:@ ------------- @%:@@%:@
1324 for ac_var in $ac_subst_files
1326 eval ac_val=$`echo $ac_var`
1327 echo "$ac_var='"'"'$ac_val'"'"'"
1332 if test -s confdefs.h; then
1334 @%:@@%:@ ----------- @%:@@%:@
1335 @%:@@%:@ confdefs.h. @%:@@%:@
1336 @%:@@%:@ ----------- @%:@@%:@
1339 sed "/^$/d" confdefs.h | sort
1342 test "$ac_signal" != 0 &&
1343 echo "$as_me: caught signal $ac_signal"
1344 echo "$as_me: exit $exit_status"
1346 rm -f core *.core &&
1347 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1350 for ac_signal in 1 2 13 15; do
1351 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1355 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1356 rm -rf conftest* confdefs.h
1357 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1360 # Predefined preprocessor variables.
1362 cat >>confdefs.h <<_ACEOF
1363 @%:@define PACKAGE_NAME "$PACKAGE_NAME"
1367 cat >>confdefs.h <<_ACEOF
1368 @%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1372 cat >>confdefs.h <<_ACEOF
1373 @%:@define PACKAGE_VERSION "$PACKAGE_VERSION"
1377 cat >>confdefs.h <<_ACEOF
1378 @%:@define PACKAGE_STRING "$PACKAGE_STRING"
1382 cat >>confdefs.h <<_ACEOF
1383 @%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1387 # Let the site file select an alternate cache file if it wants to.
1388 # Prefer explicitly selected file to automatically selected ones.
1389 if test -z "$CONFIG_SITE"; then
1390 if test "x$prefix" != xNONE; then
1391 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1393 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1396 for ac_site_file in $CONFIG_SITE; do
1397 if test -r "$ac_site_file"; then
1398 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1399 echo "$as_me: loading site script $ac_site_file" >&6;}
1400 sed 's/^/| /' "$ac_site_file" >&5
1405 if test -r "$cache_file"; then
1406 # Some versions of bash will fail to source /dev/null (special
1407 # files actually), so we avoid doing that.
1408 if test -f "$cache_file"; then
1409 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1410 echo "$as_me: loading cache $cache_file" >&6;}
1412 [\\/]* | ?:[\\/]* ) . $cache_file;;
1413 *) . ./$cache_file;;
1417 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1418 echo "$as_me: creating cache $cache_file" >&6;}
1422 # Check that the precious variables saved in the cache have kept the same
1424 ac_cache_corrupted=false
1425 for ac_var in `(set) 2>&1 |
1426 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1427 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1428 eval ac_new_set=\$ac_env_${ac_var}_set
1429 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1430 eval ac_new_val="\$ac_env_${ac_var}_value"
1431 case $ac_old_set,$ac_new_set in
1433 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1434 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1435 ac_cache_corrupted=: ;;
1437 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1438 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1439 ac_cache_corrupted=: ;;
1442 if test "x$ac_old_val" != "x$ac_new_val"; then
1443 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1444 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1445 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1446 echo "$as_me: former value: $ac_old_val" >&2;}
1447 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1448 echo "$as_me: current value: $ac_new_val" >&2;}
1449 ac_cache_corrupted=:
1452 # Pass precious variables to config.status.
1453 if test "$ac_new_set" = set; then
1455 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1456 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1457 *) ac_arg=$ac_var=$ac_new_val ;;
1459 case " $ac_configure_args " in
1460 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1461 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1465 if $ac_cache_corrupted; then
1466 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1467 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1468 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1469 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1470 { (exit 1); exit 1; }; }
1474 ac_cpp='$CPP $CPPFLAGS'
1475 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1476 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1477 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1498 ac_config_headers="$ac_config_headers config.h"
1500 am__api_version="1.7"
1502 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1503 if test -f $ac_dir/install-sh; then
1505 ac_install_sh="$ac_aux_dir/install-sh -c"
1507 elif test -f $ac_dir/install.sh; then
1509 ac_install_sh="$ac_aux_dir/install.sh -c"
1511 elif test -f $ac_dir/shtool; then
1513 ac_install_sh="$ac_aux_dir/shtool install -c"
1517 if test -z "$ac_aux_dir"; then
1518 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1519 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1520 { (exit 1); exit 1; }; }
1522 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1523 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1524 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1526 # Find a good install program. We prefer a C program (faster),
1527 # so one script is as good as another. But avoid the broken or
1528 # incompatible versions:
1529 # SysV /etc/install, /usr/sbin/install
1530 # SunOS /usr/etc/install
1531 # IRIX /sbin/install
1533 # AmigaOS /C/install, which installs bootblocks on floppy discs
1534 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1535 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1536 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1537 # OS/2's system install, which has a completely different semantic
1538 # ./install, which can be erroneously created by make from ./install.sh.
1539 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1540 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1541 if test -z "$INSTALL"; then
1542 if test "${ac_cv_path_install+set}" = set; then
1543 echo $ECHO_N "(cached) $ECHO_C" >&6
1545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1549 test -z "$as_dir" && as_dir=.
1550 # Account for people who put trailing slashes in PATH elements.
1552 ./ | .// | /cC/* | \
1553 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1554 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1557 # OSF1 and SCO ODT 3.0 have their own names for install.
1558 # Don't use installbsd from OSF since it installs stuff as root
1560 for ac_prog in ginstall scoinst install; do
1561 for ac_exec_ext in '' $ac_executable_extensions; do
1562 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1563 if test $ac_prog = install &&
1564 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1565 # AIX install. It has an incompatible calling convention.
1567 elif test $ac_prog = install &&
1568 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1569 # program-specific install script used by HP pwplus--don't use.
1572 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1584 if test "${ac_cv_path_install+set}" = set; then
1585 INSTALL=$ac_cv_path_install
1587 # As a last resort, use the slow shell script. We don't cache a
1588 # path for INSTALL within a source directory, because that will
1589 # break other packages using the cache if that directory is
1590 # removed, or if the path is relative.
1591 INSTALL=$ac_install_sh
1594 echo "$as_me:$LINENO: result: $INSTALL" >&5
1595 echo "${ECHO_T}$INSTALL" >&6
1597 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1598 # It thinks the first close brace ends the variable substitution.
1599 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1601 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1603 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1605 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1606 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1609 echo timestamp > conftest.file
1610 # Do `set' in a subshell so we don't clobber the current shell's
1611 # arguments. Must try -L first in case configure is actually a
1612 # symlink; some systems play weird games with the mod time of symlinks
1613 # (eg FreeBSD returns the mod time of the symlink's containing
1616 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1617 if test "$*" = "X"; then
1619 set X `ls -t $srcdir/configure conftest.file`
1622 if test "$*" != "X $srcdir/configure conftest.file" \
1623 && test "$*" != "X conftest.file $srcdir/configure"; then
1625 # If neither matched, then we have a broken ls. This can happen
1626 # if, for instance, CONFIG_SHELL is bash and it inherits a
1627 # broken ls alias from the environment. This has actually
1628 # happened. Such a system could not be considered "sane".
1629 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1630 alias in your environment" >&5
1631 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1632 alias in your environment" >&2;}
1633 { (exit 1); exit 1; }; }
1636 test "$2" = conftest.file
1642 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1643 Check your system clock" >&5
1644 echo "$as_me: error: newly created file is older than distributed files!
1645 Check your system clock" >&2;}
1646 { (exit 1); exit 1; }; }
1648 echo "$as_me:$LINENO: result: yes" >&5
1649 echo "${ECHO_T}yes" >&6
1650 test "$program_prefix" != NONE &&
1651 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1652 # Use a double $ so make ignores it.
1653 test "$program_suffix" != NONE &&
1654 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1655 # Double any \ or $. echo might interpret backslashes.
1656 # By default was `s,x,x', remove it if useless.
1657 cat <<\_ACEOF >conftest.sed
1658 s/[\\$]/&&/g;s/;s,x,x,$//
1660 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1664 # expand $ac_aux_dir to an absolute path
1665 am_aux_dir=`cd $ac_aux_dir && pwd`
1667 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1668 # Use eval to expand $SHELL
1669 if eval "$MISSING --run true"; then
1670 am_missing_run="$MISSING --run "
1673 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1674 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1677 for ac_prog in gawk mawk nawk awk
1679 # Extract the first word of "$ac_prog", so it can be a program name with args.
1680 set dummy $ac_prog; ac_word=$2
1681 echo "$as_me:$LINENO: checking for $ac_word" >&5
1682 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1683 if test "${ac_cv_prog_AWK+set}" = set; then
1684 echo $ECHO_N "(cached) $ECHO_C" >&6
1686 if test -n "$AWK"; then
1687 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1693 test -z "$as_dir" && as_dir=.
1694 for ac_exec_ext in '' $ac_executable_extensions; do
1695 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1696 ac_cv_prog_AWK="$ac_prog"
1697 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1706 if test -n "$AWK"; then
1707 echo "$as_me:$LINENO: result: $AWK" >&5
1708 echo "${ECHO_T}$AWK" >&6
1710 echo "$as_me:$LINENO: result: no" >&5
1711 echo "${ECHO_T}no" >&6
1714 test -n "$AWK" && break
1717 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1718 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1719 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1720 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1721 echo $ECHO_N "(cached) $ECHO_C" >&6
1723 cat >conftest.make <<\_ACEOF
1725 @echo 'ac_maketemp="$(MAKE)"'
1727 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1728 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1729 if test -n "$ac_maketemp"; then
1730 eval ac_cv_prog_make_${ac_make}_set=yes
1732 eval ac_cv_prog_make_${ac_make}_set=no
1736 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1737 echo "$as_me:$LINENO: result: yes" >&5
1738 echo "${ECHO_T}yes" >&6
1741 echo "$as_me:$LINENO: result: no" >&5
1742 echo "${ECHO_T}no" >&6
1743 SET_MAKE="MAKE=${MAKE-make}"
1746 rm -rf .tst 2>/dev/null
1747 mkdir .tst 2>/dev/null
1748 if test -d .tst; then
1753 rmdir .tst 2>/dev/null
1755 # test to see if srcdir already configured
1756 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1757 test -f $srcdir/config.status; then
1758 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1759 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1760 { (exit 1); exit 1; }; }
1763 # test whether we have cygpath
1764 if test -z "$CYGPATH_W"; then
1765 if (cygpath --version) >/dev/null 2>/dev/null; then
1766 CYGPATH_W='cygpath -w'
1773 # Define the identity of the package.
1778 cat >>confdefs.h <<_ACEOF
1779 @%:@define PACKAGE "$PACKAGE"
1783 cat >>confdefs.h <<_ACEOF
1784 @%:@define VERSION "$VERSION"
1787 # Some tools Automake needs.
1789 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1792 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1795 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1798 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1801 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1804 AMTAR=${AMTAR-"${am_missing_run}tar"}
1806 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1808 # Installed binaries are usually stripped using `strip' when the user
1809 # run `make install-strip'. However `strip' might not be the right
1810 # tool to use in cross-compilation environments, therefore Automake
1811 # will honor the `STRIP' environment variable to overrule this program.
1812 if test "$cross_compiling" != no; then
1813 if test -n "$ac_tool_prefix"; then
1814 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1815 set dummy ${ac_tool_prefix}strip; ac_word=$2
1816 echo "$as_me:$LINENO: checking for $ac_word" >&5
1817 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1818 if test "${ac_cv_prog_STRIP+set}" = set; then
1819 echo $ECHO_N "(cached) $ECHO_C" >&6
1821 if test -n "$STRIP"; then
1822 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1828 test -z "$as_dir" && as_dir=.
1829 for ac_exec_ext in '' $ac_executable_extensions; do
1830 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1831 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1832 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1840 STRIP=$ac_cv_prog_STRIP
1841 if test -n "$STRIP"; then
1842 echo "$as_me:$LINENO: result: $STRIP" >&5
1843 echo "${ECHO_T}$STRIP" >&6
1845 echo "$as_me:$LINENO: result: no" >&5
1846 echo "${ECHO_T}no" >&6
1850 if test -z "$ac_cv_prog_STRIP"; then
1852 # Extract the first word of "strip", so it can be a program name with args.
1853 set dummy strip; ac_word=$2
1854 echo "$as_me:$LINENO: checking for $ac_word" >&5
1855 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1856 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1857 echo $ECHO_N "(cached) $ECHO_C" >&6
1859 if test -n "$ac_ct_STRIP"; then
1860 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1866 test -z "$as_dir" && as_dir=.
1867 for ac_exec_ext in '' $ac_executable_extensions; do
1868 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1869 ac_cv_prog_ac_ct_STRIP="strip"
1870 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1876 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1879 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1880 if test -n "$ac_ct_STRIP"; then
1881 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1882 echo "${ECHO_T}$ac_ct_STRIP" >&6
1884 echo "$as_me:$LINENO: result: no" >&5
1885 echo "${ECHO_T}no" >&6
1890 STRIP="$ac_cv_prog_STRIP"
1894 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1896 # We need awk for the "check" target. The system "awk" is bad on
1903 ac_cpp='$CPP $CPPFLAGS'
1904 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1905 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1906 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1909 ac_cpp='$CPP $CPPFLAGS'
1910 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1911 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1912 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1913 if test -n "$ac_tool_prefix"; then
1914 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1915 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1916 echo "$as_me:$LINENO: checking for $ac_word" >&5
1917 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1918 if test "${ac_cv_prog_CC+set}" = set; then
1919 echo $ECHO_N "(cached) $ECHO_C" >&6
1921 if test -n "$CC"; then
1922 ac_cv_prog_CC="$CC" # Let the user override the test.
1924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1928 test -z "$as_dir" && as_dir=.
1929 for ac_exec_ext in '' $ac_executable_extensions; do
1930 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1931 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1932 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1941 if test -n "$CC"; then
1942 echo "$as_me:$LINENO: result: $CC" >&5
1943 echo "${ECHO_T}$CC" >&6
1945 echo "$as_me:$LINENO: result: no" >&5
1946 echo "${ECHO_T}no" >&6
1950 if test -z "$ac_cv_prog_CC"; then
1952 # Extract the first word of "gcc", so it can be a program name with args.
1953 set dummy gcc; ac_word=$2
1954 echo "$as_me:$LINENO: checking for $ac_word" >&5
1955 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1956 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1957 echo $ECHO_N "(cached) $ECHO_C" >&6
1959 if test -n "$ac_ct_CC"; then
1960 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1966 test -z "$as_dir" && as_dir=.
1967 for ac_exec_ext in '' $ac_executable_extensions; do
1968 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1969 ac_cv_prog_ac_ct_CC="gcc"
1970 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1978 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1979 if test -n "$ac_ct_CC"; then
1980 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1981 echo "${ECHO_T}$ac_ct_CC" >&6
1983 echo "$as_me:$LINENO: result: no" >&5
1984 echo "${ECHO_T}no" >&6
1992 if test -z "$CC"; then
1993 if test -n "$ac_tool_prefix"; then
1994 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1995 set dummy ${ac_tool_prefix}cc; ac_word=$2
1996 echo "$as_me:$LINENO: checking for $ac_word" >&5
1997 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1998 if test "${ac_cv_prog_CC+set}" = set; then
1999 echo $ECHO_N "(cached) $ECHO_C" >&6
2001 if test -n "$CC"; then
2002 ac_cv_prog_CC="$CC" # Let the user override the test.
2004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2008 test -z "$as_dir" && as_dir=.
2009 for ac_exec_ext in '' $ac_executable_extensions; do
2010 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2011 ac_cv_prog_CC="${ac_tool_prefix}cc"
2012 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2021 if test -n "$CC"; then
2022 echo "$as_me:$LINENO: result: $CC" >&5
2023 echo "${ECHO_T}$CC" >&6
2025 echo "$as_me:$LINENO: result: no" >&5
2026 echo "${ECHO_T}no" >&6
2030 if test -z "$ac_cv_prog_CC"; then
2032 # Extract the first word of "cc", so it can be a program name with args.
2033 set dummy cc; ac_word=$2
2034 echo "$as_me:$LINENO: checking for $ac_word" >&5
2035 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2036 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2037 echo $ECHO_N "(cached) $ECHO_C" >&6
2039 if test -n "$ac_ct_CC"; then
2040 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2046 test -z "$as_dir" && as_dir=.
2047 for ac_exec_ext in '' $ac_executable_extensions; do
2048 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2049 ac_cv_prog_ac_ct_CC="cc"
2050 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2058 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2059 if test -n "$ac_ct_CC"; then
2060 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2061 echo "${ECHO_T}$ac_ct_CC" >&6
2063 echo "$as_me:$LINENO: result: no" >&5
2064 echo "${ECHO_T}no" >&6
2073 if test -z "$CC"; then
2074 # Extract the first word of "cc", so it can be a program name with args.
2075 set dummy cc; ac_word=$2
2076 echo "$as_me:$LINENO: checking for $ac_word" >&5
2077 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2078 if test "${ac_cv_prog_CC+set}" = set; then
2079 echo $ECHO_N "(cached) $ECHO_C" >&6
2081 if test -n "$CC"; then
2082 ac_cv_prog_CC="$CC" # Let the user override the test.
2085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2089 test -z "$as_dir" && as_dir=.
2090 for ac_exec_ext in '' $ac_executable_extensions; do
2091 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2092 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2093 ac_prog_rejected=yes
2097 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2103 if test $ac_prog_rejected = yes; then
2104 # We found a bogon in the path, so make sure we never use it.
2105 set dummy $ac_cv_prog_CC
2107 if test $@%:@ != 0; then
2108 # We chose a different compiler from the bogus one.
2109 # However, it has the same basename, so the bogon will be chosen
2110 # first if we set CC to just the basename; use the full file name.
2112 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2118 if test -n "$CC"; then
2119 echo "$as_me:$LINENO: result: $CC" >&5
2120 echo "${ECHO_T}$CC" >&6
2122 echo "$as_me:$LINENO: result: no" >&5
2123 echo "${ECHO_T}no" >&6
2127 if test -z "$CC"; then
2128 if test -n "$ac_tool_prefix"; then
2131 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2132 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2133 echo "$as_me:$LINENO: checking for $ac_word" >&5
2134 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2135 if test "${ac_cv_prog_CC+set}" = set; then
2136 echo $ECHO_N "(cached) $ECHO_C" >&6
2138 if test -n "$CC"; then
2139 ac_cv_prog_CC="$CC" # Let the user override the test.
2141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2145 test -z "$as_dir" && as_dir=.
2146 for ac_exec_ext in '' $ac_executable_extensions; do
2147 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2148 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2149 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2158 if test -n "$CC"; then
2159 echo "$as_me:$LINENO: result: $CC" >&5
2160 echo "${ECHO_T}$CC" >&6
2162 echo "$as_me:$LINENO: result: no" >&5
2163 echo "${ECHO_T}no" >&6
2166 test -n "$CC" && break
2169 if test -z "$CC"; then
2173 # Extract the first word of "$ac_prog", so it can be a program name with args.
2174 set dummy $ac_prog; ac_word=$2
2175 echo "$as_me:$LINENO: checking for $ac_word" >&5
2176 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2177 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2178 echo $ECHO_N "(cached) $ECHO_C" >&6
2180 if test -n "$ac_ct_CC"; then
2181 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2187 test -z "$as_dir" && as_dir=.
2188 for ac_exec_ext in '' $ac_executable_extensions; do
2189 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2190 ac_cv_prog_ac_ct_CC="$ac_prog"
2191 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2199 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2200 if test -n "$ac_ct_CC"; then
2201 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2202 echo "${ECHO_T}$ac_ct_CC" >&6
2204 echo "$as_me:$LINENO: result: no" >&5
2205 echo "${ECHO_T}no" >&6
2208 test -n "$ac_ct_CC" && break
2217 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2218 See \`config.log' for more details." >&5
2219 echo "$as_me: error: no acceptable C compiler found in \$PATH
2220 See \`config.log' for more details." >&2;}
2221 { (exit 1); exit 1; }; }
2223 # Provide some information about the compiler.
2224 echo "$as_me:$LINENO:" \
2225 "checking for C compiler version" >&5
2226 ac_compiler=`set X $ac_compile; echo $2`
2227 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2228 (eval $ac_compiler --version </dev/null >&5) 2>&5
2230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2231 (exit $ac_status); }
2232 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2233 (eval $ac_compiler -v </dev/null >&5) 2>&5
2235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2236 (exit $ac_status); }
2237 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2238 (eval $ac_compiler -V </dev/null >&5) 2>&5
2240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2241 (exit $ac_status); }
2243 cat >conftest.$ac_ext <<_ACEOF
2246 cat confdefs.h >>conftest.$ac_ext
2247 cat >>conftest.$ac_ext <<_ACEOF
2248 /* end confdefs.h. */
2258 ac_clean_files_save=$ac_clean_files
2259 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2260 # Try to create an executable without -o first, disregard a.out.
2261 # It will help us diagnose broken compilers, and finding out an intuition
2263 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2264 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2265 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2266 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2267 (eval $ac_link_default) 2>&5
2269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2270 (exit $ac_status); }; then
2271 # Find the output, starting from the most likely. This scheme is
2272 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2275 # Be careful to initialize this variable, since it used to be cached.
2276 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2278 # b.out is created by i960 compilers.
2279 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2281 test -f "$ac_file" || continue
2283 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2286 # This is the source file.
2289 # We found the default executable, but exeext='' is most
2293 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2294 # FIXME: I believe we export ac_cv_exeext for Libtool,
2295 # but it would be cool to find out if it's true. Does anybody
2296 # maintain Libtool? --akim.
2304 echo "$as_me: failed program was:" >&5
2305 sed 's/^/| /' conftest.$ac_ext >&5
2307 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2308 See \`config.log' for more details." >&5
2309 echo "$as_me: error: C compiler cannot create executables
2310 See \`config.log' for more details." >&2;}
2311 { (exit 77); exit 77; }; }
2314 ac_exeext=$ac_cv_exeext
2315 echo "$as_me:$LINENO: result: $ac_file" >&5
2316 echo "${ECHO_T}$ac_file" >&6
2318 # Check the compiler produces executables we can run. If not, either
2319 # the compiler is broken, or we cross compile.
2320 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2321 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2322 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2323 # If not cross compiling, check that we can run a simple program.
2324 if test "$cross_compiling" != yes; then
2325 if { ac_try='./$ac_file'
2326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2330 (exit $ac_status); }; }; then
2333 if test "$cross_compiling" = maybe; then
2336 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2337 If you meant to cross compile, use \`--host'.
2338 See \`config.log' for more details." >&5
2339 echo "$as_me: error: cannot run C compiled programs.
2340 If you meant to cross compile, use \`--host'.
2341 See \`config.log' for more details." >&2;}
2342 { (exit 1); exit 1; }; }
2346 echo "$as_me:$LINENO: result: yes" >&5
2347 echo "${ECHO_T}yes" >&6
2349 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2350 ac_clean_files=$ac_clean_files_save
2351 # Check the compiler produces executables we can run. If not, either
2352 # the compiler is broken, or we cross compile.
2353 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2354 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2355 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2356 echo "${ECHO_T}$cross_compiling" >&6
2358 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2359 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2360 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2361 (eval $ac_link) 2>&5
2363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2364 (exit $ac_status); }; then
2365 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2366 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2367 # work properly (i.e., refer to `conftest.exe'), while it won't with
2369 for ac_file in conftest.exe conftest conftest.*; do
2370 test -f "$ac_file" || continue
2372 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2373 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2380 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2381 See \`config.log' for more details." >&5
2382 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2383 See \`config.log' for more details." >&2;}
2384 { (exit 1); exit 1; }; }
2387 rm -f conftest$ac_cv_exeext
2388 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2389 echo "${ECHO_T}$ac_cv_exeext" >&6
2391 rm -f conftest.$ac_ext
2392 EXEEXT=$ac_cv_exeext
2394 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2395 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2396 if test "${ac_cv_objext+set}" = set; then
2397 echo $ECHO_N "(cached) $ECHO_C" >&6
2399 cat >conftest.$ac_ext <<_ACEOF
2402 cat confdefs.h >>conftest.$ac_ext
2403 cat >>conftest.$ac_ext <<_ACEOF
2404 /* end confdefs.h. */
2414 rm -f conftest.o conftest.obj
2415 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2416 (eval $ac_compile) 2>&5
2418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2419 (exit $ac_status); }; then
2420 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2422 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2423 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2428 echo "$as_me: failed program was:" >&5
2429 sed 's/^/| /' conftest.$ac_ext >&5
2431 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2432 See \`config.log' for more details." >&5
2433 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2434 See \`config.log' for more details." >&2;}
2435 { (exit 1); exit 1; }; }
2438 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2440 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2441 echo "${ECHO_T}$ac_cv_objext" >&6
2442 OBJEXT=$ac_cv_objext
2444 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2445 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2446 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2447 echo $ECHO_N "(cached) $ECHO_C" >&6
2449 cat >conftest.$ac_ext <<_ACEOF
2452 cat confdefs.h >>conftest.$ac_ext
2453 cat >>conftest.$ac_ext <<_ACEOF
2454 /* end confdefs.h. */
2467 rm -f conftest.$ac_objext
2468 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2469 (eval $ac_compile) 2>conftest.er1
2471 grep -v '^ *+' conftest.er1 >conftest.err
2473 cat conftest.err >&5
2474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2475 (exit $ac_status); } &&
2476 { ac_try='test -z "$ac_c_werror_flag"
2477 || test ! -s conftest.err'
2478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2482 (exit $ac_status); }; } &&
2483 { ac_try='test -s conftest.$ac_objext'
2484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2488 (exit $ac_status); }; }; then
2491 echo "$as_me: failed program was:" >&5
2492 sed 's/^/| /' conftest.$ac_ext >&5
2496 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2497 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2500 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2501 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2502 GCC=`test $ac_compiler_gnu = yes && echo yes`
2503 ac_test_CFLAGS=${CFLAGS+set}
2504 ac_save_CFLAGS=$CFLAGS
2506 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2507 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2508 if test "${ac_cv_prog_cc_g+set}" = set; then
2509 echo $ECHO_N "(cached) $ECHO_C" >&6
2511 cat >conftest.$ac_ext <<_ACEOF
2514 cat confdefs.h >>conftest.$ac_ext
2515 cat >>conftest.$ac_ext <<_ACEOF
2516 /* end confdefs.h. */
2526 rm -f conftest.$ac_objext
2527 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2528 (eval $ac_compile) 2>conftest.er1
2530 grep -v '^ *+' conftest.er1 >conftest.err
2532 cat conftest.err >&5
2533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2534 (exit $ac_status); } &&
2535 { ac_try='test -z "$ac_c_werror_flag"
2536 || test ! -s conftest.err'
2537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2541 (exit $ac_status); }; } &&
2542 { ac_try='test -s conftest.$ac_objext'
2543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2547 (exit $ac_status); }; }; then
2550 echo "$as_me: failed program was:" >&5
2551 sed 's/^/| /' conftest.$ac_ext >&5
2555 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2557 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2558 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2559 if test "$ac_test_CFLAGS" = set; then
2560 CFLAGS=$ac_save_CFLAGS
2561 elif test $ac_cv_prog_cc_g = yes; then
2562 if test "$GCC" = yes; then
2568 if test "$GCC" = yes; then
2574 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2575 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2576 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2577 echo $ECHO_N "(cached) $ECHO_C" >&6
2579 ac_cv_prog_cc_stdc=no
2581 cat >conftest.$ac_ext <<_ACEOF
2584 cat confdefs.h >>conftest.$ac_ext
2585 cat >>conftest.$ac_ext <<_ACEOF
2586 /* end confdefs.h. */
2589 #include <sys/types.h>
2590 #include <sys/stat.h>
2591 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2592 struct buf { int x; };
2593 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2594 static char *e (p, i)
2600 static char *f (char * (*g) (char **, int), char **p, ...)
2605 s = g (p, va_arg (v,int));
2610 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2611 function prototypes and stuff, but not '\xHH' hex character constants.
2612 These don't provoke an error unfortunately, instead are silently treated
2613 as 'x'. The following induces an error, until -std1 is added to get
2614 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2615 array size at least. It's necessary to write '\x00'==0 to get something
2616 that's true only with -std1. */
2617 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2619 int test (int i, double x);
2620 struct s1 {int (*f) (int a);};
2621 struct s2 {int (*f) (double a);};
2622 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2628 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2633 # Don't try gcc -ansi; that turns off useful extensions and
2634 # breaks some systems' header files.
2635 # AIX -qlanglvl=ansi
2636 # Ultrix and OSF/1 -std1
2637 # HP-UX 10.20 and later -Ae
2638 # HP-UX older versions -Aa -D_HPUX_SOURCE
2639 # SVR4 -Xc -D__EXTENSIONS__
2640 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2642 CC="$ac_save_CC $ac_arg"
2643 rm -f conftest.$ac_objext
2644 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2645 (eval $ac_compile) 2>conftest.er1
2647 grep -v '^ *+' conftest.er1 >conftest.err
2649 cat conftest.err >&5
2650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2651 (exit $ac_status); } &&
2652 { ac_try='test -z "$ac_c_werror_flag"
2653 || test ! -s conftest.err'
2654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2658 (exit $ac_status); }; } &&
2659 { ac_try='test -s conftest.$ac_objext'
2660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2664 (exit $ac_status); }; }; then
2665 ac_cv_prog_cc_stdc=$ac_arg
2668 echo "$as_me: failed program was:" >&5
2669 sed 's/^/| /' conftest.$ac_ext >&5
2672 rm -f conftest.err conftest.$ac_objext
2674 rm -f conftest.$ac_ext conftest.$ac_objext
2679 case "x$ac_cv_prog_cc_stdc" in
2681 echo "$as_me:$LINENO: result: none needed" >&5
2682 echo "${ECHO_T}none needed" >&6 ;;
2684 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2685 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2686 CC="$CC $ac_cv_prog_cc_stdc" ;;
2689 # Some people use a C++ compiler to compile C. Since we use `exit',
2690 # in C++ we need to declare it. In case someone uses the same compiler
2691 # for both compiling C and C++ we need to have the C++ compiler decide
2692 # the declaration of exit, since it's the most demanding environment.
2693 cat >conftest.$ac_ext <<_ACEOF
2694 @%:@ifndef __cplusplus
2698 rm -f conftest.$ac_objext
2699 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2700 (eval $ac_compile) 2>conftest.er1
2702 grep -v '^ *+' conftest.er1 >conftest.err
2704 cat conftest.err >&5
2705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2706 (exit $ac_status); } &&
2707 { ac_try='test -z "$ac_c_werror_flag"
2708 || test ! -s conftest.err'
2709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2713 (exit $ac_status); }; } &&
2714 { ac_try='test -s conftest.$ac_objext'
2715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2719 (exit $ac_status); }; }; then
2720 for ac_declaration in \
2722 'extern "C" void std::exit (int) throw (); using std::exit;' \
2723 'extern "C" void std::exit (int); using std::exit;' \
2724 'extern "C" void exit (int) throw ();' \
2725 'extern "C" void exit (int);' \
2728 cat >conftest.$ac_ext <<_ACEOF
2731 cat confdefs.h >>conftest.$ac_ext
2732 cat >>conftest.$ac_ext <<_ACEOF
2733 /* end confdefs.h. */
2735 @%:@include <stdlib.h>
2744 rm -f conftest.$ac_objext
2745 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2746 (eval $ac_compile) 2>conftest.er1
2748 grep -v '^ *+' conftest.er1 >conftest.err
2750 cat conftest.err >&5
2751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2752 (exit $ac_status); } &&
2753 { ac_try='test -z "$ac_c_werror_flag"
2754 || test ! -s conftest.err'
2755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2759 (exit $ac_status); }; } &&
2760 { ac_try='test -s conftest.$ac_objext'
2761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2765 (exit $ac_status); }; }; then
2768 echo "$as_me: failed program was:" >&5
2769 sed 's/^/| /' conftest.$ac_ext >&5
2773 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2774 cat >conftest.$ac_ext <<_ACEOF
2777 cat confdefs.h >>conftest.$ac_ext
2778 cat >>conftest.$ac_ext <<_ACEOF
2779 /* end confdefs.h. */
2789 rm -f conftest.$ac_objext
2790 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2791 (eval $ac_compile) 2>conftest.er1
2793 grep -v '^ *+' conftest.er1 >conftest.err
2795 cat conftest.err >&5
2796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2797 (exit $ac_status); } &&
2798 { ac_try='test -z "$ac_c_werror_flag"
2799 || test ! -s conftest.err'
2800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2804 (exit $ac_status); }; } &&
2805 { ac_try='test -s conftest.$ac_objext'
2806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2810 (exit $ac_status); }; }; then
2813 echo "$as_me: failed program was:" >&5
2814 sed 's/^/| /' conftest.$ac_ext >&5
2817 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2820 if test -n "$ac_declaration"; then
2821 echo '#ifdef __cplusplus' >>confdefs.h
2822 echo $ac_declaration >>confdefs.h
2823 echo '#endif' >>confdefs.h
2827 echo "$as_me: failed program was:" >&5
2828 sed 's/^/| /' conftest.$ac_ext >&5
2831 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2833 ac_cpp='$CPP $CPPFLAGS'
2834 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2835 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2836 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2837 DEPDIR="${am__leading_dot}deps"
2839 ac_config_commands="$ac_config_commands depfiles"
2842 am_make=${MAKE-make}
2843 cat > confinc << 'END'
2848 # If we don't find an include directive, just comment out the code.
2849 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2850 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2854 # First try GNU make style include.
2855 echo "include confinc" > confmf
2856 # We grep out `Entering directory' and `Leaving directory'
2857 # messages which can occur if `w' ends up in MAKEFLAGS.
2858 # In particular we don't look at `^make:' because GNU make might
2859 # be invoked under some other name (usually "gmake"), in which
2860 # case it prints its new name instead of `make'.
2861 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2866 # Now try BSD make style include.
2867 if test "$am__include" = "#"; then
2868 echo '.include "confinc"' > confmf
2869 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2870 am__include=.include
2877 echo "$as_me:$LINENO: result: $_am_result" >&5
2878 echo "${ECHO_T}$_am_result" >&6
2879 rm -f confinc confmf
2881 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2882 if test "${enable_dependency_tracking+set}" = set; then
2883 enableval="$enable_dependency_tracking"
2886 if test "x$enable_dependency_tracking" != xno; then
2887 am_depcomp="$ac_aux_dir/depcomp"
2892 if test "x$enable_dependency_tracking" != xno; then
2903 depcc="$CC" am_compiler_list=
2905 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2906 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2907 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2908 echo $ECHO_N "(cached) $ECHO_C" >&6
2910 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2911 # We make a subdir and do the tests there. Otherwise we can end up
2912 # making bogus files that we don't know about and never remove. For
2913 # instance it was reported that on HP-UX the gcc test will end up
2914 # making a dummy file named `D' -- because `-MD' means `put the output
2917 # Copy depcomp to subdir because otherwise we won't find it if we're
2918 # using a relative directory.
2919 cp "$am_depcomp" conftest.dir
2921 # We will build objects and dependencies in a subdirectory because
2922 # it helps to detect inapplicable dependency modes. For instance
2923 # both Tru64's cc and ICC support -MD to output dependencies as a
2924 # side effect of compilation, but ICC will put the dependencies in
2925 # the current directory while Tru64 will put them in the object
2929 am_cv_CC_dependencies_compiler_type=none
2930 if test "$am_compiler_list" = ""; then
2931 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2933 for depmode in $am_compiler_list; do
2934 # Setup a source with many dependencies, because some compilers
2935 # like to wrap large dependency lists on column 80 (with \), and
2936 # we should not choose a depcomp mode which is confused by this.
2938 # We need to recreate these files for each test, as the compiler may
2939 # overwrite some of them when testing with obscure command lines.
2940 # This happens at least with the AIX C compiler.
2942 for i in 1 2 3 4 5 6; do
2943 echo '#include "conftst'$i'.h"' >> sub/conftest.c
2946 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2950 # after this tag, mechanisms are not by side-effect, so they'll
2951 # only be used when explicitly requested
2952 if test "x$enable_dependency_tracking" = xyes; then
2960 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2961 # mode. It turns out that the SunPro C++ compiler does not properly
2962 # handle `-M -o', and we need to detect this.
2963 if depmode=$depmode \
2964 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2965 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2966 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2967 >/dev/null 2>conftest.err &&
2968 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2969 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2970 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2971 # icc doesn't choke on unknown options, it will just issue warnings
2972 # (even with -Werror). So we grep stderr for any message
2973 # that says an option was ignored.
2974 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
2975 am_cv_CC_dependencies_compiler_type=$depmode
2984 am_cv_CC_dependencies_compiler_type=none
2988 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2989 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2990 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2995 test "x$enable_dependency_tracking" != xno \
2996 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
2998 am__fastdepCC_FALSE='#'
3000 am__fastdepCC_TRUE='#'
3001 am__fastdepCC_FALSE=
3005 # Check whether --enable-shared or --disable-shared was given.
3006 if test "${enable_shared+set}" = set; then
3007 enableval="$enable_shared"
3008 p=${PACKAGE-default}
3010 yes) enable_shared=yes ;;
3011 no) enable_shared=no ;;
3014 # Look at the argument we got. We use all the common list separators.
3015 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3016 for pkg in $enableval; do
3018 if test "X$pkg" = "X$p"; then
3029 # Check whether --enable-static or --disable-static was given.
3030 if test "${enable_static+set}" = set; then
3031 enableval="$enable_static"
3032 p=${PACKAGE-default}
3034 yes) enable_static=yes ;;
3035 no) enable_static=no ;;
3038 # Look at the argument we got. We use all the common list separators.
3039 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3040 for pkg in $enableval; do
3042 if test "X$pkg" = "X$p"; then
3053 # Check whether --enable-fast-install or --disable-fast-install was given.
3054 if test "${enable_fast_install+set}" = set; then
3055 enableval="$enable_fast_install"
3056 p=${PACKAGE-default}
3058 yes) enable_fast_install=yes ;;
3059 no) enable_fast_install=no ;;
3061 enable_fast_install=no
3062 # Look at the argument we got. We use all the common list separators.
3063 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3064 for pkg in $enableval; do
3066 if test "X$pkg" = "X$p"; then
3067 enable_fast_install=yes
3074 enable_fast_install=yes
3077 # Make sure we can run config.sub.
3078 $ac_config_sub sun4 >/dev/null 2>&1 ||
3079 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3080 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3081 { (exit 1); exit 1; }; }
3083 echo "$as_me:$LINENO: checking build system type" >&5
3084 echo $ECHO_N "checking build system type... $ECHO_C" >&6
3085 if test "${ac_cv_build+set}" = set; then
3086 echo $ECHO_N "(cached) $ECHO_C" >&6
3088 ac_cv_build_alias=$build_alias
3089 test -z "$ac_cv_build_alias" &&
3090 ac_cv_build_alias=`$ac_config_guess`
3091 test -z "$ac_cv_build_alias" &&
3092 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3093 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3094 { (exit 1); exit 1; }; }
3095 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3096 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3097 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3098 { (exit 1); exit 1; }; }
3101 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3102 echo "${ECHO_T}$ac_cv_build" >&6
3104 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3105 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3106 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3109 echo "$as_me:$LINENO: checking host system type" >&5
3110 echo $ECHO_N "checking host system type... $ECHO_C" >&6
3111 if test "${ac_cv_host+set}" = set; then
3112 echo $ECHO_N "(cached) $ECHO_C" >&6
3114 ac_cv_host_alias=$host_alias
3115 test -z "$ac_cv_host_alias" &&
3116 ac_cv_host_alias=$ac_cv_build_alias
3117 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3118 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3119 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3120 { (exit 1); exit 1; }; }
3123 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3124 echo "${ECHO_T}$ac_cv_host" >&6
3126 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3127 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3128 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3131 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3132 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3133 if test "${lt_cv_path_SED+set}" = set; then
3134 echo $ECHO_N "(cached) $ECHO_C" >&6
3136 # Loop through the user's path and test for sed and gsed.
3137 # Then use that list of sed's as ones to test for truncation.
3138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3142 test -z "$as_dir" && as_dir=.
3143 for lt_ac_prog in sed gsed; do
3144 for ac_exec_ext in '' $ac_executable_extensions; do
3145 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3146 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3153 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3154 # along with /bin/sed that truncates output.
3155 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3156 test ! -f $lt_ac_sed && continue
3157 cat /dev/null > conftest.in
3159 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3160 # Check for GNU sed and select it if it is found.
3161 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3162 lt_cv_path_SED=$lt_ac_sed
3166 cat conftest.in conftest.in >conftest.tmp
3167 mv conftest.tmp conftest.in
3168 cp conftest.in conftest.nl
3170 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3171 cmp -s conftest.out conftest.nl || break
3172 # 10000 chars as input seems more than enough
3173 test $lt_ac_count -gt 10 && break
3174 lt_ac_count=`expr $lt_ac_count + 1`
3175 if test $lt_ac_count -gt $lt_ac_max; then
3176 lt_ac_max=$lt_ac_count
3177 lt_cv_path_SED=$lt_ac_sed
3185 echo "$as_me:$LINENO: result: $SED" >&5
3186 echo "${ECHO_T}$SED" >&6
3188 echo "$as_me:$LINENO: checking for egrep" >&5
3189 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3190 if test "${ac_cv_prog_egrep+set}" = set; then
3191 echo $ECHO_N "(cached) $ECHO_C" >&6
3193 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3194 then ac_cv_prog_egrep='grep -E'
3195 else ac_cv_prog_egrep='egrep'
3198 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3199 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3200 EGREP=$ac_cv_prog_egrep
3204 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3205 if test "${with_gnu_ld+set}" = set; then
3206 withval="$with_gnu_ld"
3207 test "$withval" = no || with_gnu_ld=yes
3212 if test "$GCC" = yes; then
3213 # Check if gcc -print-prog-name=ld gives a path.
3214 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3215 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3218 # gcc leaves a trailing carriage return which upsets mingw
3219 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3221 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3224 # Accept absolute paths.
3226 re_direlt='/[^/][^/]*/\.\./'
3227 # Canonicalize the pathname of ld
3228 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3229 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3230 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3232 test -z "$LD" && LD="$ac_prog"
3235 # If it fails, then pretend we aren't using GCC.
3239 # If it is relative, then search for the first ld in PATH.
3243 elif test "$with_gnu_ld" = yes; then
3244 echo "$as_me:$LINENO: checking for GNU ld" >&5
3245 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3247 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3248 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3250 if test "${lt_cv_path_LD+set}" = set; then
3251 echo $ECHO_N "(cached) $ECHO_C" >&6
3253 if test -z "$LD"; then
3254 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3255 for ac_dir in $PATH; do
3257 test -z "$ac_dir" && ac_dir=.
3258 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3259 lt_cv_path_LD="$ac_dir/$ac_prog"
3260 # Check to see if the program is GNU ld. I'd rather use --version,
3261 # but apparently some GNU ld's only accept -v.
3262 # Break only if it was the GNU/non-GNU ld that we prefer.
3263 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3264 *GNU* | *'with BFD'*)
3265 test "$with_gnu_ld" != no && break
3268 test "$with_gnu_ld" != yes && break
3275 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3280 if test -n "$LD"; then
3281 echo "$as_me:$LINENO: result: $LD" >&5
3282 echo "${ECHO_T}$LD" >&6
3284 echo "$as_me:$LINENO: result: no" >&5
3285 echo "${ECHO_T}no" >&6
3287 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3288 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3289 { (exit 1); exit 1; }; }
3290 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3291 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3292 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3293 echo $ECHO_N "(cached) $ECHO_C" >&6
3295 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3296 case `$LD -v 2>&1 </dev/null` in
3297 *GNU* | *'with BFD'*)
3298 lt_cv_prog_gnu_ld=yes
3301 lt_cv_prog_gnu_ld=no
3305 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3306 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3307 with_gnu_ld=$lt_cv_prog_gnu_ld
3310 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3311 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3312 if test "${lt_cv_ld_reload_flag+set}" = set; then
3313 echo $ECHO_N "(cached) $ECHO_C" >&6
3315 lt_cv_ld_reload_flag='-r'
3317 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3318 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3319 reload_flag=$lt_cv_ld_reload_flag
3320 case $reload_flag in
3322 *) reload_flag=" $reload_flag" ;;
3324 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3327 if test "$GCC" = yes; then
3328 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
3330 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3335 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3336 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3337 if test "${lt_cv_path_NM+set}" = set; then
3338 echo $ECHO_N "(cached) $ECHO_C" >&6
3340 if test -n "$NM"; then
3341 # Let the user override the test.
3344 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3345 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3347 test -z "$ac_dir" && ac_dir=.
3348 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3349 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3350 # Check to see if the nm accepts a BSD-compat flag.
3351 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3352 # nm: unknown option "B" ignored
3353 # Tru64's nm complains that /dev/null is an invalid object file
3354 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3355 */dev/null* | *'Invalid file or object type'*)
3356 lt_cv_path_NM="$tmp_nm -B"
3360 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3362 lt_cv_path_NM="$tmp_nm -p"
3366 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3367 continue # so that we can try to find one that supports BSD flags
3374 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3377 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3378 echo "${ECHO_T}$lt_cv_path_NM" >&6
3381 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3382 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3384 if test "$LN_S" = "ln -s"; then
3385 echo "$as_me:$LINENO: result: yes" >&5
3386 echo "${ECHO_T}yes" >&6
3388 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3389 echo "${ECHO_T}no, using $LN_S" >&6
3392 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3393 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3394 if test "${lt_cv_deplibs_check_method+set}" = set; then
3395 echo $ECHO_N "(cached) $ECHO_C" >&6
3397 lt_cv_file_magic_cmd='$MAGIC_CMD'
3398 lt_cv_file_magic_test_file=
3399 lt_cv_deplibs_check_method='unknown'
3400 # Need to set the preceding variable on all platforms that support
3401 # interlibrary dependencies.
3402 # 'none' -- dependencies not supported.
3403 # `unknown' -- same as none, but documents that we really don't know.
3404 # 'pass_all' -- all dependencies passed with no checks.
3405 # 'test_compile' -- check by making test program.
3406 # 'file_magic [[regex]]' -- check by looking for files in library path
3407 # which responds to the $file_magic_cmd with a given extended regex.
3408 # If you have `file' or equivalent on your system and you're not sure
3409 # whether `pass_all' will *always* work, you probably want this one.
3413 lt_cv_deplibs_check_method=pass_all
3417 lt_cv_deplibs_check_method=pass_all
3421 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3422 lt_cv_file_magic_cmd='/usr/bin/file -L'
3423 lt_cv_file_magic_test_file=/shlib/libc.so
3427 # func_win32_libid is a shell function defined in ltmain.sh
3428 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3429 lt_cv_file_magic_cmd='func_win32_libid'
3433 # Base MSYS/MinGW do not provide the 'file' command needed by
3434 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3435 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3436 lt_cv_file_magic_cmd='$OBJDUMP -f'
3439 darwin* | rhapsody*)
3440 lt_cv_deplibs_check_method=pass_all
3443 freebsd* | kfreebsd*-gnu | dragonfly*)
3444 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3447 # Not sure whether the presence of OpenBSD here was a mistake.
3448 # Let's accept both of them until this is cleared up.
3449 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
3450 lt_cv_file_magic_cmd=/usr/bin/file
3451 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3455 lt_cv_deplibs_check_method=pass_all
3460 lt_cv_deplibs_check_method=pass_all
3463 hpux10.20* | hpux11*)
3464 lt_cv_file_magic_cmd=/usr/bin/file
3467 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3468 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3471 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]'
3472 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3475 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3476 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3481 irix5* | irix6* | nonstopux*)
3483 *-32|*"-32 ") libmagic=32-bit;;
3484 *-n32|*"-n32 ") libmagic=N32;;
3485 *-64|*"-64 ") libmagic=64-bit;;
3486 *) libmagic=never-match;;
3488 lt_cv_deplibs_check_method=pass_all
3491 # This must be Linux ELF.
3493 lt_cv_deplibs_check_method=pass_all
3497 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3498 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3500 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3505 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3506 lt_cv_file_magic_cmd=/usr/bin/file
3507 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3511 lt_cv_deplibs_check_method=unknown
3515 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3516 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
3518 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3522 osf3* | osf4* | osf5*)
3523 lt_cv_deplibs_check_method=pass_all
3527 lt_cv_deplibs_check_method=pass_all
3531 lt_cv_deplibs_check_method=pass_all
3534 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3535 case $host_vendor in
3537 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]'
3538 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3541 lt_cv_deplibs_check_method=pass_all
3544 lt_cv_file_magic_cmd='/bin/file'
3545 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3548 lt_cv_file_magic_cmd='/bin/file'
3549 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3550 lt_cv_file_magic_test_file=/lib/libc.so
3553 lt_cv_deplibs_check_method=pass_all
3558 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
3559 lt_cv_deplibs_check_method=pass_all
3564 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3565 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3566 file_magic_cmd=$lt_cv_file_magic_cmd
3567 deplibs_check_method=$lt_cv_deplibs_check_method
3568 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3573 # If no C compiler was specified, use CC.
3576 # Allow CC to be a program name with arguments.
3580 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3581 if test "${enable_libtool_lock+set}" = set; then
3582 enableval="$enable_libtool_lock"
3585 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3587 # Some flags need to be propagated to the compiler or linker for good
3591 # Find out which ABI we are using.
3592 echo 'int i;' > conftest.$ac_ext
3593 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3594 (eval $ac_compile) 2>&5
3596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3597 (exit $ac_status); }; then
3598 case `/usr/bin/file conftest.$ac_objext` in
3610 # Find out which ABI we are using.
3611 echo '#line __oline__ "configure"' > conftest.$ac_ext
3612 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3613 (eval $ac_compile) 2>&5
3615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3616 (exit $ac_status); }; then
3617 if test "$lt_cv_prog_gnu_ld" = yes; then
3618 case `/usr/bin/file conftest.$ac_objext` in
3620 LD="${LD-ld} -melf32bsmip"
3623 LD="${LD-ld} -melf32bmipn32"
3626 LD="${LD-ld} -melf64bmip"
3630 case `/usr/bin/file conftest.$ac_objext` in
3646 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3647 # Find out which ABI we are using.
3648 echo 'int i;' > conftest.$ac_ext
3649 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3650 (eval $ac_compile) 2>&5
3652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3653 (exit $ac_status); }; then
3654 case "`/usr/bin/file conftest.o`" in
3658 LD="${LD-ld} -m elf_i386"
3660 ppc64-*linux*|powerpc64-*linux*)
3661 LD="${LD-ld} -m elf32ppclinux"
3664 LD="${LD-ld} -m elf_s390"
3667 LD="${LD-ld} -m elf32_sparc"
3674 LD="${LD-ld} -m elf_x86_64"
3676 ppc*-*linux*|powerpc*-*linux*)
3677 LD="${LD-ld} -m elf64ppc"
3680 LD="${LD-ld} -m elf64_s390"
3683 LD="${LD-ld} -m elf64_sparc"
3693 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3694 SAVE_CFLAGS="$CFLAGS"
3695 CFLAGS="$CFLAGS -belf"
3696 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3697 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3698 if test "${lt_cv_cc_needs_belf+set}" = set; then
3699 echo $ECHO_N "(cached) $ECHO_C" >&6
3702 ac_cpp='$CPP $CPPFLAGS'
3703 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3704 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3705 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3707 cat >conftest.$ac_ext <<_ACEOF
3710 cat confdefs.h >>conftest.$ac_ext
3711 cat >>conftest.$ac_ext <<_ACEOF
3712 /* end confdefs.h. */
3722 rm -f conftest.$ac_objext conftest$ac_exeext
3723 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3724 (eval $ac_link) 2>conftest.er1
3726 grep -v '^ *+' conftest.er1 >conftest.err
3728 cat conftest.err >&5
3729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3730 (exit $ac_status); } &&
3731 { ac_try='test -z "$ac_c_werror_flag"
3732 || test ! -s conftest.err'
3733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3737 (exit $ac_status); }; } &&
3738 { ac_try='test -s conftest$ac_exeext'
3739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3743 (exit $ac_status); }; }; then
3744 lt_cv_cc_needs_belf=yes
3746 echo "$as_me: failed program was:" >&5
3747 sed 's/^/| /' conftest.$ac_ext >&5
3749 lt_cv_cc_needs_belf=no
3751 rm -f conftest.err conftest.$ac_objext \
3752 conftest$ac_exeext conftest.$ac_ext
3754 ac_cpp='$CPP $CPPFLAGS'
3755 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3756 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3757 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3760 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3761 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3762 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3763 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3764 CFLAGS="$SAVE_CFLAGS"
3770 need_locks="$enable_libtool_lock"
3774 ac_cpp='$CPP $CPPFLAGS'
3775 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3776 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3777 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3778 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3779 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3780 # On Suns, sometimes $CPP names a directory.
3781 if test -n "$CPP" && test -d "$CPP"; then
3784 if test -z "$CPP"; then
3785 if test "${ac_cv_prog_CPP+set}" = set; then
3786 echo $ECHO_N "(cached) $ECHO_C" >&6
3788 # Double quotes because CPP needs to be expanded
3789 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3792 for ac_c_preproc_warn_flag in '' yes
3794 # Use a header file that comes with gcc, so configuring glibc
3795 # with a fresh cross-compiler works.
3796 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3797 # <limits.h> exists even on freestanding compilers.
3798 # On the NeXT, cc -E runs the code through the compiler's parser,
3799 # not just through cpp. "Syntax error" is here to catch this case.
3800 cat >conftest.$ac_ext <<_ACEOF
3803 cat confdefs.h >>conftest.$ac_ext
3804 cat >>conftest.$ac_ext <<_ACEOF
3805 /* end confdefs.h. */
3807 @%:@ include <limits.h>
3809 @%:@ include <assert.h>
3813 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3814 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3816 grep -v '^ *+' conftest.er1 >conftest.err
3818 cat conftest.err >&5
3819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3820 (exit $ac_status); } >/dev/null; then
3821 if test -s conftest.err; then
3822 ac_cpp_err=$ac_c_preproc_warn_flag
3823 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3830 if test -z "$ac_cpp_err"; then
3833 echo "$as_me: failed program was:" >&5
3834 sed 's/^/| /' conftest.$ac_ext >&5
3836 # Broken: fails on valid input.
3839 rm -f conftest.err conftest.$ac_ext
3841 # OK, works on sane cases. Now check whether non-existent headers
3842 # can be detected and how.
3843 cat >conftest.$ac_ext <<_ACEOF
3846 cat confdefs.h >>conftest.$ac_ext
3847 cat >>conftest.$ac_ext <<_ACEOF
3848 /* end confdefs.h. */
3849 @%:@include <ac_nonexistent.h>
3851 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3852 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3854 grep -v '^ *+' conftest.er1 >conftest.err
3856 cat conftest.err >&5
3857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3858 (exit $ac_status); } >/dev/null; then
3859 if test -s conftest.err; then
3860 ac_cpp_err=$ac_c_preproc_warn_flag
3861 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3868 if test -z "$ac_cpp_err"; then
3869 # Broken: success on invalid input.
3872 echo "$as_me: failed program was:" >&5
3873 sed 's/^/| /' conftest.$ac_ext >&5
3875 # Passes both tests.
3879 rm -f conftest.err conftest.$ac_ext
3882 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3883 rm -f conftest.err conftest.$ac_ext
3884 if $ac_preproc_ok; then
3896 echo "$as_me:$LINENO: result: $CPP" >&5
3897 echo "${ECHO_T}$CPP" >&6
3899 for ac_c_preproc_warn_flag in '' yes
3901 # Use a header file that comes with gcc, so configuring glibc
3902 # with a fresh cross-compiler works.
3903 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3904 # <limits.h> exists even on freestanding compilers.
3905 # On the NeXT, cc -E runs the code through the compiler's parser,
3906 # not just through cpp. "Syntax error" is here to catch this case.
3907 cat >conftest.$ac_ext <<_ACEOF
3910 cat confdefs.h >>conftest.$ac_ext
3911 cat >>conftest.$ac_ext <<_ACEOF
3912 /* end confdefs.h. */
3914 @%:@ include <limits.h>
3916 @%:@ include <assert.h>
3920 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3921 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3923 grep -v '^ *+' conftest.er1 >conftest.err
3925 cat conftest.err >&5
3926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3927 (exit $ac_status); } >/dev/null; then
3928 if test -s conftest.err; then
3929 ac_cpp_err=$ac_c_preproc_warn_flag
3930 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3937 if test -z "$ac_cpp_err"; then
3940 echo "$as_me: failed program was:" >&5
3941 sed 's/^/| /' conftest.$ac_ext >&5
3943 # Broken: fails on valid input.
3946 rm -f conftest.err conftest.$ac_ext
3948 # OK, works on sane cases. Now check whether non-existent headers
3949 # can be detected and how.
3950 cat >conftest.$ac_ext <<_ACEOF
3953 cat confdefs.h >>conftest.$ac_ext
3954 cat >>conftest.$ac_ext <<_ACEOF
3955 /* end confdefs.h. */
3956 @%:@include <ac_nonexistent.h>
3958 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3959 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3961 grep -v '^ *+' conftest.er1 >conftest.err
3963 cat conftest.err >&5
3964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3965 (exit $ac_status); } >/dev/null; then
3966 if test -s conftest.err; then
3967 ac_cpp_err=$ac_c_preproc_warn_flag
3968 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3975 if test -z "$ac_cpp_err"; then
3976 # Broken: success on invalid input.
3979 echo "$as_me: failed program was:" >&5
3980 sed 's/^/| /' conftest.$ac_ext >&5
3982 # Passes both tests.
3986 rm -f conftest.err conftest.$ac_ext
3989 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3990 rm -f conftest.err conftest.$ac_ext
3991 if $ac_preproc_ok; then
3994 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3995 See \`config.log' for more details." >&5
3996 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3997 See \`config.log' for more details." >&2;}
3998 { (exit 1); exit 1; }; }
4002 ac_cpp='$CPP $CPPFLAGS'
4003 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4004 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4005 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4008 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4009 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4010 if test "${ac_cv_header_stdc+set}" = set; then
4011 echo $ECHO_N "(cached) $ECHO_C" >&6
4013 cat >conftest.$ac_ext <<_ACEOF
4016 cat confdefs.h >>conftest.$ac_ext
4017 cat >>conftest.$ac_ext <<_ACEOF
4018 /* end confdefs.h. */
4032 rm -f conftest.$ac_objext
4033 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4034 (eval $ac_compile) 2>conftest.er1
4036 grep -v '^ *+' conftest.er1 >conftest.err
4038 cat conftest.err >&5
4039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4040 (exit $ac_status); } &&
4041 { ac_try='test -z "$ac_c_werror_flag"
4042 || test ! -s conftest.err'
4043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4047 (exit $ac_status); }; } &&
4048 { ac_try='test -s conftest.$ac_objext'
4049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4053 (exit $ac_status); }; }; then
4054 ac_cv_header_stdc=yes
4056 echo "$as_me: failed program was:" >&5
4057 sed 's/^/| /' conftest.$ac_ext >&5
4059 ac_cv_header_stdc=no
4061 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4063 if test $ac_cv_header_stdc = yes; then
4064 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4065 cat >conftest.$ac_ext <<_ACEOF
4068 cat confdefs.h >>conftest.$ac_ext
4069 cat >>conftest.$ac_ext <<_ACEOF
4070 /* end confdefs.h. */
4074 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4075 $EGREP "memchr" >/dev/null 2>&1; then
4078 ac_cv_header_stdc=no
4084 if test $ac_cv_header_stdc = yes; then
4085 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4086 cat >conftest.$ac_ext <<_ACEOF
4089 cat confdefs.h >>conftest.$ac_ext
4090 cat >>conftest.$ac_ext <<_ACEOF
4091 /* end confdefs.h. */
4095 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4096 $EGREP "free" >/dev/null 2>&1; then
4099 ac_cv_header_stdc=no
4105 if test $ac_cv_header_stdc = yes; then
4106 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4107 if test "$cross_compiling" = yes; then
4110 cat >conftest.$ac_ext <<_ACEOF
4113 cat confdefs.h >>conftest.$ac_ext
4114 cat >>conftest.$ac_ext <<_ACEOF
4115 /* end confdefs.h. */
4117 #if ((' ' & 0x0FF) == 0x020)
4118 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4119 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4121 # define ISLOWER(c) \
4122 (('a' <= (c) && (c) <= 'i') \
4123 || ('j' <= (c) && (c) <= 'r') \
4124 || ('s' <= (c) && (c) <= 'z'))
4125 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4128 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4133 for (i = 0; i < 256; i++)
4134 if (XOR (islower (i), ISLOWER (i))
4135 || toupper (i) != TOUPPER (i))
4140 rm -f conftest$ac_exeext
4141 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4142 (eval $ac_link) 2>&5
4144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4145 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4150 (exit $ac_status); }; }; then
4153 echo "$as_me: program exited with status $ac_status" >&5
4154 echo "$as_me: failed program was:" >&5
4155 sed 's/^/| /' conftest.$ac_ext >&5
4158 ac_cv_header_stdc=no
4160 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4164 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4165 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4166 if test $ac_cv_header_stdc = yes; then
4168 cat >>confdefs.h <<\_ACEOF
4169 @%:@define STDC_HEADERS 1
4174 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4184 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4185 inttypes.h stdint.h unistd.h
4187 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4188 echo "$as_me:$LINENO: checking for $ac_header" >&5
4189 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4190 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4191 echo $ECHO_N "(cached) $ECHO_C" >&6
4193 cat >conftest.$ac_ext <<_ACEOF
4196 cat confdefs.h >>conftest.$ac_ext
4197 cat >>conftest.$ac_ext <<_ACEOF
4198 /* end confdefs.h. */
4199 $ac_includes_default
4201 @%:@include <$ac_header>
4203 rm -f conftest.$ac_objext
4204 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4205 (eval $ac_compile) 2>conftest.er1
4207 grep -v '^ *+' conftest.er1 >conftest.err
4209 cat conftest.err >&5
4210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4211 (exit $ac_status); } &&
4212 { ac_try='test -z "$ac_c_werror_flag"
4213 || test ! -s conftest.err'
4214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4218 (exit $ac_status); }; } &&
4219 { ac_try='test -s conftest.$ac_objext'
4220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4224 (exit $ac_status); }; }; then
4225 eval "$as_ac_Header=yes"
4227 echo "$as_me: failed program was:" >&5
4228 sed 's/^/| /' conftest.$ac_ext >&5
4230 eval "$as_ac_Header=no"
4232 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4234 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4235 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4236 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4237 cat >>confdefs.h <<_ACEOF
4238 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4247 for ac_header in dlfcn.h
4249 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4250 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4251 echo "$as_me:$LINENO: checking for $ac_header" >&5
4252 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4253 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4254 echo $ECHO_N "(cached) $ECHO_C" >&6
4256 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4257 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4259 # Is the header compilable?
4260 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4261 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4262 cat >conftest.$ac_ext <<_ACEOF
4265 cat confdefs.h >>conftest.$ac_ext
4266 cat >>conftest.$ac_ext <<_ACEOF
4267 /* end confdefs.h. */
4268 $ac_includes_default
4269 @%:@include <$ac_header>
4271 rm -f conftest.$ac_objext
4272 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4273 (eval $ac_compile) 2>conftest.er1
4275 grep -v '^ *+' conftest.er1 >conftest.err
4277 cat conftest.err >&5
4278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4279 (exit $ac_status); } &&
4280 { ac_try='test -z "$ac_c_werror_flag"
4281 || test ! -s conftest.err'
4282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4286 (exit $ac_status); }; } &&
4287 { ac_try='test -s conftest.$ac_objext'
4288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4292 (exit $ac_status); }; }; then
4293 ac_header_compiler=yes
4295 echo "$as_me: failed program was:" >&5
4296 sed 's/^/| /' conftest.$ac_ext >&5
4298 ac_header_compiler=no
4300 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4301 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4302 echo "${ECHO_T}$ac_header_compiler" >&6
4304 # Is the header present?
4305 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4306 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4307 cat >conftest.$ac_ext <<_ACEOF
4310 cat confdefs.h >>conftest.$ac_ext
4311 cat >>conftest.$ac_ext <<_ACEOF
4312 /* end confdefs.h. */
4313 @%:@include <$ac_header>
4315 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4316 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4318 grep -v '^ *+' conftest.er1 >conftest.err
4320 cat conftest.err >&5
4321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4322 (exit $ac_status); } >/dev/null; then
4323 if test -s conftest.err; then
4324 ac_cpp_err=$ac_c_preproc_warn_flag
4325 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4332 if test -z "$ac_cpp_err"; then
4333 ac_header_preproc=yes
4335 echo "$as_me: failed program was:" >&5
4336 sed 's/^/| /' conftest.$ac_ext >&5
4338 ac_header_preproc=no
4340 rm -f conftest.err conftest.$ac_ext
4341 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4342 echo "${ECHO_T}$ac_header_preproc" >&6
4344 # So? What about this header?
4345 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4347 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4348 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4349 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4350 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4351 ac_header_preproc=yes
4354 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4355 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4356 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4357 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4358 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4359 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4360 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4361 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4362 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4363 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4364 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4365 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4368 @%:@@%:@ ------------------------------------------ @%:@@%:@
4369 @%:@@%:@ Report this to the AC_PACKAGE_NAME lists. @%:@@%:@
4370 @%:@@%:@ ------------------------------------------ @%:@@%:@
4373 sed "s/^/$as_me: WARNING: /" >&2
4376 echo "$as_me:$LINENO: checking for $ac_header" >&5
4377 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4378 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4379 echo $ECHO_N "(cached) $ECHO_C" >&6
4381 eval "$as_ac_Header=\$ac_header_preproc"
4383 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4384 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4387 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4388 cat >>confdefs.h <<_ACEOF
4389 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4397 ac_cpp='$CXXCPP $CPPFLAGS'
4398 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4399 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4400 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4401 if test -n "$ac_tool_prefix"; then
4402 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4404 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4405 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4406 echo "$as_me:$LINENO: checking for $ac_word" >&5
4407 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4408 if test "${ac_cv_prog_CXX+set}" = set; then
4409 echo $ECHO_N "(cached) $ECHO_C" >&6
4411 if test -n "$CXX"; then
4412 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4418 test -z "$as_dir" && as_dir=.
4419 for ac_exec_ext in '' $ac_executable_extensions; do
4420 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4421 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4422 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4431 if test -n "$CXX"; then
4432 echo "$as_me:$LINENO: result: $CXX" >&5
4433 echo "${ECHO_T}$CXX" >&6
4435 echo "$as_me:$LINENO: result: no" >&5
4436 echo "${ECHO_T}no" >&6
4439 test -n "$CXX" && break
4442 if test -z "$CXX"; then
4444 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4446 # Extract the first word of "$ac_prog", so it can be a program name with args.
4447 set dummy $ac_prog; ac_word=$2
4448 echo "$as_me:$LINENO: checking for $ac_word" >&5
4449 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4450 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4451 echo $ECHO_N "(cached) $ECHO_C" >&6
4453 if test -n "$ac_ct_CXX"; then
4454 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4460 test -z "$as_dir" && as_dir=.
4461 for ac_exec_ext in '' $ac_executable_extensions; do
4462 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4463 ac_cv_prog_ac_ct_CXX="$ac_prog"
4464 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4472 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4473 if test -n "$ac_ct_CXX"; then
4474 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4475 echo "${ECHO_T}$ac_ct_CXX" >&6
4477 echo "$as_me:$LINENO: result: no" >&5
4478 echo "${ECHO_T}no" >&6
4481 test -n "$ac_ct_CXX" && break
4483 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4489 # Provide some information about the compiler.
4490 echo "$as_me:$LINENO:" \
4491 "checking for C++ compiler version" >&5
4492 ac_compiler=`set X $ac_compile; echo $2`
4493 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4494 (eval $ac_compiler --version </dev/null >&5) 2>&5
4496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4497 (exit $ac_status); }
4498 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4499 (eval $ac_compiler -v </dev/null >&5) 2>&5
4501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4502 (exit $ac_status); }
4503 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4504 (eval $ac_compiler -V </dev/null >&5) 2>&5
4506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4507 (exit $ac_status); }
4509 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4510 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4511 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4512 echo $ECHO_N "(cached) $ECHO_C" >&6
4514 cat >conftest.$ac_ext <<_ACEOF
4517 cat confdefs.h >>conftest.$ac_ext
4518 cat >>conftest.$ac_ext <<_ACEOF
4519 /* end confdefs.h. */
4532 rm -f conftest.$ac_objext
4533 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4534 (eval $ac_compile) 2>conftest.er1
4536 grep -v '^ *+' conftest.er1 >conftest.err
4538 cat conftest.err >&5
4539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4540 (exit $ac_status); } &&
4541 { ac_try='test -z "$ac_cxx_werror_flag"
4542 || test ! -s conftest.err'
4543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4547 (exit $ac_status); }; } &&
4548 { ac_try='test -s conftest.$ac_objext'
4549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4553 (exit $ac_status); }; }; then
4556 echo "$as_me: failed program was:" >&5
4557 sed 's/^/| /' conftest.$ac_ext >&5
4561 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4562 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4565 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4566 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4567 GXX=`test $ac_compiler_gnu = yes && echo yes`
4568 ac_test_CXXFLAGS=${CXXFLAGS+set}
4569 ac_save_CXXFLAGS=$CXXFLAGS
4571 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4572 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4573 if test "${ac_cv_prog_cxx_g+set}" = set; then
4574 echo $ECHO_N "(cached) $ECHO_C" >&6
4576 cat >conftest.$ac_ext <<_ACEOF
4579 cat confdefs.h >>conftest.$ac_ext
4580 cat >>conftest.$ac_ext <<_ACEOF
4581 /* end confdefs.h. */
4591 rm -f conftest.$ac_objext
4592 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4593 (eval $ac_compile) 2>conftest.er1
4595 grep -v '^ *+' conftest.er1 >conftest.err
4597 cat conftest.err >&5
4598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4599 (exit $ac_status); } &&
4600 { ac_try='test -z "$ac_cxx_werror_flag"
4601 || test ! -s conftest.err'
4602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4606 (exit $ac_status); }; } &&
4607 { ac_try='test -s conftest.$ac_objext'
4608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4612 (exit $ac_status); }; }; then
4613 ac_cv_prog_cxx_g=yes
4615 echo "$as_me: failed program was:" >&5
4616 sed 's/^/| /' conftest.$ac_ext >&5
4620 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4622 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4623 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4624 if test "$ac_test_CXXFLAGS" = set; then
4625 CXXFLAGS=$ac_save_CXXFLAGS
4626 elif test $ac_cv_prog_cxx_g = yes; then
4627 if test "$GXX" = yes; then
4633 if test "$GXX" = yes; then
4639 for ac_declaration in \
4641 'extern "C" void std::exit (int) throw (); using std::exit;' \
4642 'extern "C" void std::exit (int); using std::exit;' \
4643 'extern "C" void exit (int) throw ();' \
4644 'extern "C" void exit (int);' \
4647 cat >conftest.$ac_ext <<_ACEOF
4650 cat confdefs.h >>conftest.$ac_ext
4651 cat >>conftest.$ac_ext <<_ACEOF
4652 /* end confdefs.h. */
4654 @%:@include <stdlib.h>
4663 rm -f conftest.$ac_objext
4664 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4665 (eval $ac_compile) 2>conftest.er1
4667 grep -v '^ *+' conftest.er1 >conftest.err
4669 cat conftest.err >&5
4670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4671 (exit $ac_status); } &&
4672 { ac_try='test -z "$ac_cxx_werror_flag"
4673 || test ! -s conftest.err'
4674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4678 (exit $ac_status); }; } &&
4679 { ac_try='test -s conftest.$ac_objext'
4680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4684 (exit $ac_status); }; }; then
4687 echo "$as_me: failed program was:" >&5
4688 sed 's/^/| /' conftest.$ac_ext >&5
4692 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4693 cat >conftest.$ac_ext <<_ACEOF
4696 cat confdefs.h >>conftest.$ac_ext
4697 cat >>conftest.$ac_ext <<_ACEOF
4698 /* end confdefs.h. */
4708 rm -f conftest.$ac_objext
4709 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4710 (eval $ac_compile) 2>conftest.er1
4712 grep -v '^ *+' conftest.er1 >conftest.err
4714 cat conftest.err >&5
4715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4716 (exit $ac_status); } &&
4717 { ac_try='test -z "$ac_cxx_werror_flag"
4718 || test ! -s conftest.err'
4719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4723 (exit $ac_status); }; } &&
4724 { ac_try='test -s conftest.$ac_objext'
4725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4729 (exit $ac_status); }; }; then
4732 echo "$as_me: failed program was:" >&5
4733 sed 's/^/| /' conftest.$ac_ext >&5
4736 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4739 if test -n "$ac_declaration"; then
4740 echo '#ifdef __cplusplus' >>confdefs.h
4741 echo $ac_declaration >>confdefs.h
4742 echo '#endif' >>confdefs.h
4746 ac_cpp='$CXXCPP $CPPFLAGS'
4747 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4748 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4749 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4751 depcc="$CXX" am_compiler_list=
4753 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4754 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4755 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4756 echo $ECHO_N "(cached) $ECHO_C" >&6
4758 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4759 # We make a subdir and do the tests there. Otherwise we can end up
4760 # making bogus files that we don't know about and never remove. For
4761 # instance it was reported that on HP-UX the gcc test will end up
4762 # making a dummy file named `D' -- because `-MD' means `put the output
4765 # Copy depcomp to subdir because otherwise we won't find it if we're
4766 # using a relative directory.
4767 cp "$am_depcomp" conftest.dir
4769 # We will build objects and dependencies in a subdirectory because
4770 # it helps to detect inapplicable dependency modes. For instance
4771 # both Tru64's cc and ICC support -MD to output dependencies as a
4772 # side effect of compilation, but ICC will put the dependencies in
4773 # the current directory while Tru64 will put them in the object
4777 am_cv_CXX_dependencies_compiler_type=none
4778 if test "$am_compiler_list" = ""; then
4779 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4781 for depmode in $am_compiler_list; do
4782 # Setup a source with many dependencies, because some compilers
4783 # like to wrap large dependency lists on column 80 (with \), and
4784 # we should not choose a depcomp mode which is confused by this.
4786 # We need to recreate these files for each test, as the compiler may
4787 # overwrite some of them when testing with obscure command lines.
4788 # This happens at least with the AIX C compiler.
4790 for i in 1 2 3 4 5 6; do
4791 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4794 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4798 # after this tag, mechanisms are not by side-effect, so they'll
4799 # only be used when explicitly requested
4800 if test "x$enable_dependency_tracking" = xyes; then
4808 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4809 # mode. It turns out that the SunPro C++ compiler does not properly
4810 # handle `-M -o', and we need to detect this.
4811 if depmode=$depmode \
4812 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4813 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4814 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4815 >/dev/null 2>conftest.err &&
4816 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4817 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4818 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4819 # icc doesn't choke on unknown options, it will just issue warnings
4820 # (even with -Werror). So we grep stderr for any message
4821 # that says an option was ignored.
4822 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
4823 am_cv_CXX_dependencies_compiler_type=$depmode
4832 am_cv_CXX_dependencies_compiler_type=none
4836 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4837 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
4838 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4843 test "x$enable_dependency_tracking" != xno \
4844 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4845 am__fastdepCXX_TRUE=
4846 am__fastdepCXX_FALSE='#'
4848 am__fastdepCXX_TRUE='#'
4849 am__fastdepCXX_FALSE=
4855 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
4856 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
4857 (test "X$CXX" != "Xg++"))) ; then
4859 ac_cpp='$CXXCPP $CPPFLAGS'
4860 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4861 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4862 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4863 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4864 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4865 if test -z "$CXXCPP"; then
4866 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4867 echo $ECHO_N "(cached) $ECHO_C" >&6
4869 # Double quotes because CXXCPP needs to be expanded
4870 for CXXCPP in "$CXX -E" "/lib/cpp"
4873 for ac_cxx_preproc_warn_flag in '' yes
4875 # Use a header file that comes with gcc, so configuring glibc
4876 # with a fresh cross-compiler works.
4877 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4878 # <limits.h> exists even on freestanding compilers.
4879 # On the NeXT, cc -E runs the code through the compiler's parser,
4880 # not just through cpp. "Syntax error" is here to catch this case.
4881 cat >conftest.$ac_ext <<_ACEOF
4884 cat confdefs.h >>conftest.$ac_ext
4885 cat >>conftest.$ac_ext <<_ACEOF
4886 /* end confdefs.h. */
4888 @%:@ include <limits.h>
4890 @%:@ include <assert.h>
4894 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4895 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4897 grep -v '^ *+' conftest.er1 >conftest.err
4899 cat conftest.err >&5
4900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4901 (exit $ac_status); } >/dev/null; then
4902 if test -s conftest.err; then
4903 ac_cpp_err=$ac_cxx_preproc_warn_flag
4904 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4911 if test -z "$ac_cpp_err"; then
4914 echo "$as_me: failed program was:" >&5
4915 sed 's/^/| /' conftest.$ac_ext >&5
4917 # Broken: fails on valid input.
4920 rm -f conftest.err conftest.$ac_ext
4922 # OK, works on sane cases. Now check whether non-existent headers
4923 # can be detected and how.
4924 cat >conftest.$ac_ext <<_ACEOF
4927 cat confdefs.h >>conftest.$ac_ext
4928 cat >>conftest.$ac_ext <<_ACEOF
4929 /* end confdefs.h. */
4930 @%:@include <ac_nonexistent.h>
4932 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4933 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4935 grep -v '^ *+' conftest.er1 >conftest.err
4937 cat conftest.err >&5
4938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4939 (exit $ac_status); } >/dev/null; then
4940 if test -s conftest.err; then
4941 ac_cpp_err=$ac_cxx_preproc_warn_flag
4942 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4949 if test -z "$ac_cpp_err"; then
4950 # Broken: success on invalid input.
4953 echo "$as_me: failed program was:" >&5
4954 sed 's/^/| /' conftest.$ac_ext >&5
4956 # Passes both tests.
4960 rm -f conftest.err conftest.$ac_ext
4963 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4964 rm -f conftest.err conftest.$ac_ext
4965 if $ac_preproc_ok; then
4970 ac_cv_prog_CXXCPP=$CXXCPP
4973 CXXCPP=$ac_cv_prog_CXXCPP
4975 ac_cv_prog_CXXCPP=$CXXCPP
4977 echo "$as_me:$LINENO: result: $CXXCPP" >&5
4978 echo "${ECHO_T}$CXXCPP" >&6
4980 for ac_cxx_preproc_warn_flag in '' yes
4982 # Use a header file that comes with gcc, so configuring glibc
4983 # with a fresh cross-compiler works.
4984 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4985 # <limits.h> exists even on freestanding compilers.
4986 # On the NeXT, cc -E runs the code through the compiler's parser,
4987 # not just through cpp. "Syntax error" is here to catch this case.
4988 cat >conftest.$ac_ext <<_ACEOF
4991 cat confdefs.h >>conftest.$ac_ext
4992 cat >>conftest.$ac_ext <<_ACEOF
4993 /* end confdefs.h. */
4995 @%:@ include <limits.h>
4997 @%:@ include <assert.h>
5001 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5002 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5004 grep -v '^ *+' conftest.er1 >conftest.err
5006 cat conftest.err >&5
5007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5008 (exit $ac_status); } >/dev/null; then
5009 if test -s conftest.err; then
5010 ac_cpp_err=$ac_cxx_preproc_warn_flag
5011 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5018 if test -z "$ac_cpp_err"; then
5021 echo "$as_me: failed program was:" >&5
5022 sed 's/^/| /' conftest.$ac_ext >&5
5024 # Broken: fails on valid input.
5027 rm -f conftest.err conftest.$ac_ext
5029 # OK, works on sane cases. Now check whether non-existent headers
5030 # can be detected and how.
5031 cat >conftest.$ac_ext <<_ACEOF
5034 cat confdefs.h >>conftest.$ac_ext
5035 cat >>conftest.$ac_ext <<_ACEOF
5036 /* end confdefs.h. */
5037 @%:@include <ac_nonexistent.h>
5039 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5040 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5042 grep -v '^ *+' conftest.er1 >conftest.err
5044 cat conftest.err >&5
5045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5046 (exit $ac_status); } >/dev/null; then
5047 if test -s conftest.err; then
5048 ac_cpp_err=$ac_cxx_preproc_warn_flag
5049 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5056 if test -z "$ac_cpp_err"; then
5057 # Broken: success on invalid input.
5060 echo "$as_me: failed program was:" >&5
5061 sed 's/^/| /' conftest.$ac_ext >&5
5063 # Passes both tests.
5067 rm -f conftest.err conftest.$ac_ext
5070 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5071 rm -f conftest.err conftest.$ac_ext
5072 if $ac_preproc_ok; then
5075 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5076 See \`config.log' for more details." >&5
5077 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5078 See \`config.log' for more details." >&2;}
5079 { (exit 1); exit 1; }; }
5083 ac_cpp='$CXXCPP $CPPFLAGS'
5084 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5085 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5086 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5092 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5093 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5094 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5095 if test -n "$ac_tool_prefix"; then
5096 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5098 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5099 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5100 echo "$as_me:$LINENO: checking for $ac_word" >&5
5101 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5102 if test "${ac_cv_prog_F77+set}" = set; then
5103 echo $ECHO_N "(cached) $ECHO_C" >&6
5105 if test -n "$F77"; then
5106 ac_cv_prog_F77="$F77" # Let the user override the test.
5108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5112 test -z "$as_dir" && as_dir=.
5113 for ac_exec_ext in '' $ac_executable_extensions; do
5114 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5115 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5116 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5125 if test -n "$F77"; then
5126 echo "$as_me:$LINENO: result: $F77" >&5
5127 echo "${ECHO_T}$F77" >&6
5129 echo "$as_me:$LINENO: result: no" >&5
5130 echo "${ECHO_T}no" >&6
5133 test -n "$F77" && break
5136 if test -z "$F77"; then
5138 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5140 # Extract the first word of "$ac_prog", so it can be a program name with args.
5141 set dummy $ac_prog; ac_word=$2
5142 echo "$as_me:$LINENO: checking for $ac_word" >&5
5143 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5144 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5145 echo $ECHO_N "(cached) $ECHO_C" >&6
5147 if test -n "$ac_ct_F77"; then
5148 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5154 test -z "$as_dir" && as_dir=.
5155 for ac_exec_ext in '' $ac_executable_extensions; do
5156 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5157 ac_cv_prog_ac_ct_F77="$ac_prog"
5158 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5166 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5167 if test -n "$ac_ct_F77"; then
5168 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5169 echo "${ECHO_T}$ac_ct_F77" >&6
5171 echo "$as_me:$LINENO: result: no" >&5
5172 echo "${ECHO_T}no" >&6
5175 test -n "$ac_ct_F77" && break
5182 # Provide some information about the compiler.
5183 echo "$as_me:__oline__:" \
5184 "checking for Fortran 77 compiler version" >&5
5185 ac_compiler=`set X $ac_compile; echo $2`
5186 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5187 (eval $ac_compiler --version </dev/null >&5) 2>&5
5189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5190 (exit $ac_status); }
5191 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5192 (eval $ac_compiler -v </dev/null >&5) 2>&5
5194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5195 (exit $ac_status); }
5196 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5197 (eval $ac_compiler -V </dev/null >&5) 2>&5
5199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5200 (exit $ac_status); }
5203 # If we don't use `.F' as extension, the preprocessor is not run on the
5204 # input file. (Note that this only needs to work for GNU compilers.)
5207 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5208 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5209 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5210 echo $ECHO_N "(cached) $ECHO_C" >&6
5212 cat >conftest.$ac_ext <<_ACEOF
5220 rm -f conftest.$ac_objext
5221 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5222 (eval $ac_compile) 2>conftest.er1
5224 grep -v '^ *+' conftest.er1 >conftest.err
5226 cat conftest.err >&5
5227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5228 (exit $ac_status); } &&
5229 { ac_try='test -z "$ac_f77_werror_flag"
5230 || test ! -s conftest.err'
5231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5235 (exit $ac_status); }; } &&
5236 { ac_try='test -s conftest.$ac_objext'
5237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5241 (exit $ac_status); }; }; then
5244 echo "$as_me: failed program was:" >&5
5245 sed 's/^/| /' conftest.$ac_ext >&5
5249 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5250 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5253 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5254 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5256 ac_test_FFLAGS=${FFLAGS+set}
5257 ac_save_FFLAGS=$FFLAGS
5259 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5260 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5261 if test "${ac_cv_prog_f77_g+set}" = set; then
5262 echo $ECHO_N "(cached) $ECHO_C" >&6
5265 cat >conftest.$ac_ext <<_ACEOF
5270 rm -f conftest.$ac_objext
5271 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5272 (eval $ac_compile) 2>conftest.er1
5274 grep -v '^ *+' conftest.er1 >conftest.err
5276 cat conftest.err >&5
5277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5278 (exit $ac_status); } &&
5279 { ac_try='test -z "$ac_f77_werror_flag"
5280 || test ! -s conftest.err'
5281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5285 (exit $ac_status); }; } &&
5286 { ac_try='test -s conftest.$ac_objext'
5287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5291 (exit $ac_status); }; }; then
5292 ac_cv_prog_f77_g=yes
5294 echo "$as_me: failed program was:" >&5
5295 sed 's/^/| /' conftest.$ac_ext >&5
5299 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5302 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5303 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5304 if test "$ac_test_FFLAGS" = set; then
5305 FFLAGS=$ac_save_FFLAGS
5306 elif test $ac_cv_prog_f77_g = yes; then
5307 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5313 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5320 G77=`test $ac_compiler_gnu = yes && echo yes`
5322 ac_cpp='$CPP $CPPFLAGS'
5323 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5324 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5325 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5329 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5331 # find the maximum length of command line arguments
5332 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5333 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5334 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5335 echo $ECHO_N "(cached) $ECHO_C" >&6
5342 # On DJGPP, this test can blow up pretty badly due to problems in libc
5343 # (any single argument exceeding 2000 bytes causes a buffer overrun
5344 # during glob expansion). Even if it were fixed, the result of this
5345 # check would be larger than it should be.
5346 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5350 # Under GNU Hurd, this test is not required because there is
5351 # no limit to the length of command line arguments.
5352 # Libtool will interpret -1 as no limit whatsoever
5353 lt_cv_sys_max_cmd_len=-1;
5357 # On Win9x/ME, this test blows up -- it succeeds, but takes
5358 # about 5 minutes as the teststring grows exponentially.
5359 # Worse, since 9x/ME are not pre-emptively multitasking,
5360 # you end up with a "frozen" computer, even though with patience
5361 # the test eventually succeeds (with a max line length of 256k).
5362 # Instead, let's just punt: use the minimum linelength reported by
5363 # all of the supported platforms: 8192 (on NT/2K/XP).
5364 lt_cv_sys_max_cmd_len=8192;
5368 # On AmigaOS with pdksh, this test takes hours, literally.
5369 # So we just punt and use a minimum line length of 8192.
5370 lt_cv_sys_max_cmd_len=8192;
5373 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5374 # This has been around since 386BSD, at least. Likely further.
5375 if test -x /sbin/sysctl; then
5376 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5377 elif test -x /usr/sbin/sysctl; then
5378 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5380 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
5382 # And add a safety zone
5383 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5384 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5387 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5388 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5389 # nice to cause kernel panics so lets avoid the loop below.
5390 # First set a reasonable default.
5391 lt_cv_sys_max_cmd_len=16384
5393 if test -x /sbin/sysconfig; then
5394 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5395 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5400 # If test is not a shell built-in, we'll probably end up computing a
5401 # maximum length that is only half of the actual maximum length, but
5403 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5404 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5405 = "XX$teststring") >/dev/null 2>&1 &&
5406 new_result=`expr "X$teststring" : ".*" 2>&1` &&
5407 lt_cv_sys_max_cmd_len=$new_result &&
5408 test $i != 17 # 1/2 MB should be enough
5411 teststring=$teststring$teststring
5414 # Add a significant safety factor because C++ compilers can tack on massive
5415 # amounts of additional arguments before passing them to the linker.
5416 # It appears as though 1/2 is a usable value.
5417 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5423 if test -n $lt_cv_sys_max_cmd_len ; then
5424 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5425 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5427 echo "$as_me:$LINENO: result: none" >&5
5428 echo "${ECHO_T}none" >&6
5434 # Check for command to grab the raw symbol name followed by C symbol from nm.
5435 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5436 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5437 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5438 echo $ECHO_N "(cached) $ECHO_C" >&6
5441 # These are sane defaults that work on at least a few old systems.
5442 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5444 # Character class describing NM global symbol codes.
5445 symcode='[BCDEGRST]'
5447 # Regexp to match symbols that can be accessed directly from C.
5448 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5450 # Transform an extracted symbol line into a proper C declaration
5451 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5453 # Transform an extracted symbol line into symbol name and symbol address
5454 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'"
5456 # Define system-specific variables.
5461 cygwin* | mingw* | pw32*)
5462 symcode='[ABCDGISTW]'
5464 hpux*) # Its linker distinguishes data from code symbols
5465 if test "$host_cpu" = ia64; then
5466 symcode='[ABCDEGRST]'
5468 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5469 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'"
5472 if test "$host_cpu" = ia64; then
5473 symcode='[ABCDGIRSTW]'
5474 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5475 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'"
5479 symcode='[BCDEGRST]'
5482 symcode='[BCDEGQRST]'
5492 # Handle CRLF in mingw tool chain
5496 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5500 # If we're using GNU nm, then use its standard symbol codes.
5501 case `$NM -V 2>&1` in
5502 *GNU* | *'with BFD'*)
5503 symcode='[ABCDGIRSTW]' ;;
5506 # Try without a prefix undercore, then with it.
5507 for ac_symprfx in "" "_"; do
5509 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5510 symxfrm="\\1 $ac_symprfx\\2 \\2"
5512 # Write the raw and C identifiers.
5513 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5515 # Check to see that the pipe works correctly.
5519 cat > conftest.$ac_ext <<EOF
5524 void nm_test_func(){}
5528 int main(){nm_test_var='a';nm_test_func();return(0);}
5531 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5532 (eval $ac_compile) 2>&5
5534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5535 (exit $ac_status); }; then
5536 # Now try to grab the symbols.
5538 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5539 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5542 (exit $ac_status); } && test -s "$nlist"; then
5543 # Try sorting and uniquifying the output.
5544 if sort "$nlist" | uniq > "$nlist"T; then
5545 mv -f "$nlist"T "$nlist"
5550 # Make sure that we snagged all the symbols we need.
5551 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5552 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5553 cat <<EOF > conftest.$ac_ext
5559 # Now generate the symbol file.
5560 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5562 cat <<EOF >> conftest.$ac_ext
5563 #if defined (__STDC__) && __STDC__
5564 # define lt_ptr_t void *
5566 # define lt_ptr_t char *
5570 /* The mapping between symbol names and symbols. */
5575 lt_preloaded_symbols[] =
5578 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5579 cat <<\EOF >> conftest.$ac_ext
5587 # Now try linking the two files.
5588 mv conftest.$ac_objext conftstm.$ac_objext
5589 lt_save_LIBS="$LIBS"
5590 lt_save_CFLAGS="$CFLAGS"
5591 LIBS="conftstm.$ac_objext"
5592 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5593 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5594 (eval $ac_link) 2>&5
5596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5597 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5600 LIBS="$lt_save_LIBS"
5601 CFLAGS="$lt_save_CFLAGS"
5603 echo "cannot find nm_test_func in $nlist" >&5
5606 echo "cannot find nm_test_var in $nlist" >&5
5609 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5612 echo "$progname: failed program was:" >&5
5613 cat conftest.$ac_ext >&5
5615 rm -f conftest* conftst*
5617 # Do not use the global_symbol_pipe unless it works.
5618 if test "$pipe_works" = yes; then
5621 lt_cv_sys_global_symbol_pipe=
5627 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5628 lt_cv_sys_global_symbol_to_cdecl=
5630 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5631 echo "$as_me:$LINENO: result: failed" >&5
5632 echo "${ECHO_T}failed" >&6
5634 echo "$as_me:$LINENO: result: ok" >&5
5635 echo "${ECHO_T}ok" >&6
5638 echo "$as_me:$LINENO: checking for objdir" >&5
5639 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5640 if test "${lt_cv_objdir+set}" = set; then
5641 echo $ECHO_N "(cached) $ECHO_C" >&6
5643 rm -f .libs 2>/dev/null
5644 mkdir .libs 2>/dev/null
5645 if test -d .libs; then
5648 # MS-DOS does not allow filenames that begin with a dot.
5651 rmdir .libs 2>/dev/null
5653 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5654 echo "${ECHO_T}$lt_cv_objdir" >&6
5655 objdir=$lt_cv_objdir
5663 # AIX sometimes has problems with the GCC collect2 program. For some
5664 # reason, if we set the COLLECT_NAMES environment variable, the problems
5665 # vanish in a puff of smoke.
5666 if test "X${COLLECT_NAMES+set}" != Xset; then
5668 export COLLECT_NAMES
5673 # Sed substitution that helps us do robust quoting. It backslashifies
5674 # metacharacters that are still active within double-quoted strings.
5675 Xsed='sed -e 1s/^X//'
5676 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5678 # Same as above, but do not quote variable references.
5679 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5681 # Sed substitution to delay expansion of an escaped shell variable in a
5682 # double_quote_subst'ed string.
5683 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5685 # Sed substitution to avoid accidental globbing in evaled expressions
5686 no_glob_subst='s/\*/\\\*/g'
5692 default_ofile=libtool
5693 can_build_shared=yes
5695 # All known linkers require a `.a' archive for static linking (except M$VC,
5696 # which needs '.lib').
5698 ltmain="$ac_aux_dir/ltmain.sh"
5699 ofile="$default_ofile"
5700 with_gnu_ld="$lt_cv_prog_gnu_ld"
5702 if test -n "$ac_tool_prefix"; then
5703 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5704 set dummy ${ac_tool_prefix}ar; ac_word=$2
5705 echo "$as_me:$LINENO: checking for $ac_word" >&5
5706 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5707 if test "${ac_cv_prog_AR+set}" = set; then
5708 echo $ECHO_N "(cached) $ECHO_C" >&6
5710 if test -n "$AR"; then
5711 ac_cv_prog_AR="$AR" # Let the user override the test.
5713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5717 test -z "$as_dir" && as_dir=.
5718 for ac_exec_ext in '' $ac_executable_extensions; do
5719 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5720 ac_cv_prog_AR="${ac_tool_prefix}ar"
5721 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5730 if test -n "$AR"; then
5731 echo "$as_me:$LINENO: result: $AR" >&5
5732 echo "${ECHO_T}$AR" >&6
5734 echo "$as_me:$LINENO: result: no" >&5
5735 echo "${ECHO_T}no" >&6
5739 if test -z "$ac_cv_prog_AR"; then
5741 # Extract the first word of "ar", so it can be a program name with args.
5742 set dummy ar; ac_word=$2
5743 echo "$as_me:$LINENO: checking for $ac_word" >&5
5744 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5745 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5746 echo $ECHO_N "(cached) $ECHO_C" >&6
5748 if test -n "$ac_ct_AR"; then
5749 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5755 test -z "$as_dir" && as_dir=.
5756 for ac_exec_ext in '' $ac_executable_extensions; do
5757 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5758 ac_cv_prog_ac_ct_AR="ar"
5759 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5765 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5768 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5769 if test -n "$ac_ct_AR"; then
5770 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5771 echo "${ECHO_T}$ac_ct_AR" >&6
5773 echo "$as_me:$LINENO: result: no" >&5
5774 echo "${ECHO_T}no" >&6
5782 if test -n "$ac_tool_prefix"; then
5783 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5784 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5785 echo "$as_me:$LINENO: checking for $ac_word" >&5
5786 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5787 if test "${ac_cv_prog_RANLIB+set}" = set; then
5788 echo $ECHO_N "(cached) $ECHO_C" >&6
5790 if test -n "$RANLIB"; then
5791 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5797 test -z "$as_dir" && as_dir=.
5798 for ac_exec_ext in '' $ac_executable_extensions; do
5799 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5800 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5801 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5809 RANLIB=$ac_cv_prog_RANLIB
5810 if test -n "$RANLIB"; then
5811 echo "$as_me:$LINENO: result: $RANLIB" >&5
5812 echo "${ECHO_T}$RANLIB" >&6
5814 echo "$as_me:$LINENO: result: no" >&5
5815 echo "${ECHO_T}no" >&6
5819 if test -z "$ac_cv_prog_RANLIB"; then
5820 ac_ct_RANLIB=$RANLIB
5821 # Extract the first word of "ranlib", so it can be a program name with args.
5822 set dummy ranlib; ac_word=$2
5823 echo "$as_me:$LINENO: checking for $ac_word" >&5
5824 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5825 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5826 echo $ECHO_N "(cached) $ECHO_C" >&6
5828 if test -n "$ac_ct_RANLIB"; then
5829 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5835 test -z "$as_dir" && as_dir=.
5836 for ac_exec_ext in '' $ac_executable_extensions; do
5837 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5838 ac_cv_prog_ac_ct_RANLIB="ranlib"
5839 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5845 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5848 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5849 if test -n "$ac_ct_RANLIB"; then
5850 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5851 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5853 echo "$as_me:$LINENO: result: no" >&5
5854 echo "${ECHO_T}no" >&6
5857 RANLIB=$ac_ct_RANLIB
5859 RANLIB="$ac_cv_prog_RANLIB"
5862 if test -n "$ac_tool_prefix"; then
5863 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5864 set dummy ${ac_tool_prefix}strip; ac_word=$2
5865 echo "$as_me:$LINENO: checking for $ac_word" >&5
5866 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5867 if test "${ac_cv_prog_STRIP+set}" = set; then
5868 echo $ECHO_N "(cached) $ECHO_C" >&6
5870 if test -n "$STRIP"; then
5871 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5877 test -z "$as_dir" && as_dir=.
5878 for ac_exec_ext in '' $ac_executable_extensions; do
5879 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5880 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5881 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5889 STRIP=$ac_cv_prog_STRIP
5890 if test -n "$STRIP"; then
5891 echo "$as_me:$LINENO: result: $STRIP" >&5
5892 echo "${ECHO_T}$STRIP" >&6
5894 echo "$as_me:$LINENO: result: no" >&5
5895 echo "${ECHO_T}no" >&6
5899 if test -z "$ac_cv_prog_STRIP"; then
5901 # Extract the first word of "strip", so it can be a program name with args.
5902 set dummy strip; ac_word=$2
5903 echo "$as_me:$LINENO: checking for $ac_word" >&5
5904 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5905 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5906 echo $ECHO_N "(cached) $ECHO_C" >&6
5908 if test -n "$ac_ct_STRIP"; then
5909 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5915 test -z "$as_dir" && as_dir=.
5916 for ac_exec_ext in '' $ac_executable_extensions; do
5917 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5918 ac_cv_prog_ac_ct_STRIP="strip"
5919 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5925 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5928 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5929 if test -n "$ac_ct_STRIP"; then
5930 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5931 echo "${ECHO_T}$ac_ct_STRIP" >&6
5933 echo "$as_me:$LINENO: result: no" >&5
5934 echo "${ECHO_T}no" >&6
5939 STRIP="$ac_cv_prog_STRIP"
5944 old_CFLAGS="$CFLAGS"
5946 # Set sane defaults for various variables
5947 test -z "$AR" && AR=ar
5948 test -z "$AR_FLAGS" && AR_FLAGS=cru
5949 test -z "$AS" && AS=as
5950 test -z "$CC" && CC=cc
5951 test -z "$LTCC" && LTCC=$CC
5952 test -z "$DLLTOOL" && DLLTOOL=dlltool
5953 test -z "$LD" && LD=ld
5954 test -z "$LN_S" && LN_S="ln -s"
5955 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5956 test -z "$NM" && NM=nm
5957 test -z "$SED" && SED=sed
5958 test -z "$OBJDUMP" && OBJDUMP=objdump
5959 test -z "$RANLIB" && RANLIB=:
5960 test -z "$STRIP" && STRIP=:
5961 test -z "$ac_objext" && ac_objext=o
5963 # Determine commands to create old-style static archives.
5964 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5965 old_postinstall_cmds='chmod 644 $oldlib'
5966 old_postuninstall_cmds=
5968 if test -n "$RANLIB"; then
5971 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5974 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5977 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5980 for cc_temp in $compiler""; do
5982 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
5983 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
5988 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
5991 # Only perform the check for file, if the check method requires it
5992 case $deplibs_check_method in
5994 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5995 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5996 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5997 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5998 echo $ECHO_N "(cached) $ECHO_C" >&6
6002 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6005 lt_save_MAGIC_CMD="$MAGIC_CMD"
6006 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6007 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6008 for ac_dir in $ac_dummy; do
6010 test -z "$ac_dir" && ac_dir=.
6011 if test -f $ac_dir/${ac_tool_prefix}file; then
6012 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6013 if test -n "$file_magic_test_file"; then
6014 case $deplibs_check_method in
6016 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6017 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6018 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6019 $EGREP "$file_magic_regex" > /dev/null; then
6024 *** Warning: the command libtool uses to detect shared libraries,
6025 *** $file_magic_cmd, produces output that libtool cannot recognize.
6026 *** The result is that libtool may fail to recognize shared libraries
6027 *** as such. This will affect the creation of libtool libraries that
6028 *** depend on shared libraries, but programs linked with such libtool
6029 *** libraries will work regardless of this problem. Nevertheless, you
6030 *** may want to report the problem to your system manager and/or to
6031 *** bug-libtool@gnu.org
6041 MAGIC_CMD="$lt_save_MAGIC_CMD"
6046 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6047 if test -n "$MAGIC_CMD"; then
6048 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6049 echo "${ECHO_T}$MAGIC_CMD" >&6
6051 echo "$as_me:$LINENO: result: no" >&5
6052 echo "${ECHO_T}no" >&6
6055 if test -z "$lt_cv_path_MAGIC_CMD"; then
6056 if test -n "$ac_tool_prefix"; then
6057 echo "$as_me:$LINENO: checking for file" >&5
6058 echo $ECHO_N "checking for file... $ECHO_C" >&6
6059 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6060 echo $ECHO_N "(cached) $ECHO_C" >&6
6064 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6067 lt_save_MAGIC_CMD="$MAGIC_CMD"
6068 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6069 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6070 for ac_dir in $ac_dummy; do
6072 test -z "$ac_dir" && ac_dir=.
6073 if test -f $ac_dir/file; then
6074 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6075 if test -n "$file_magic_test_file"; then
6076 case $deplibs_check_method in
6078 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6079 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6080 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6081 $EGREP "$file_magic_regex" > /dev/null; then
6086 *** Warning: the command libtool uses to detect shared libraries,
6087 *** $file_magic_cmd, produces output that libtool cannot recognize.
6088 *** The result is that libtool may fail to recognize shared libraries
6089 *** as such. This will affect the creation of libtool libraries that
6090 *** depend on shared libraries, but programs linked with such libtool
6091 *** libraries will work regardless of this problem. Nevertheless, you
6092 *** may want to report the problem to your system manager and/or to
6093 *** bug-libtool@gnu.org
6103 MAGIC_CMD="$lt_save_MAGIC_CMD"
6108 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6109 if test -n "$MAGIC_CMD"; then
6110 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6111 echo "${ECHO_T}$MAGIC_CMD" >&6
6113 echo "$as_me:$LINENO: result: no" >&5
6114 echo "${ECHO_T}no" >&6
6129 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6130 if test "${enable_libtool_lock+set}" = set; then
6131 enableval="$enable_libtool_lock"
6134 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6137 # Check whether --with-pic or --without-pic was given.
6138 if test "${with_pic+set}" = set; then
6144 test -z "$pic_mode" && pic_mode=default
6146 # Use C for the default configuration in the libtool script
6150 ac_cpp='$CPP $CPPFLAGS'
6151 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6152 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6153 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6156 # Source file extension for C test sources.
6159 # Object file extension for compiled C test sources.
6163 # Code to be used in simple compile tests
6164 lt_simple_compile_test_code="int some_variable = 0;\n"
6166 # Code to be used in simple link tests
6167 lt_simple_link_test_code='int main(){return(0);}\n'
6170 # If no C compiler was specified, use CC.
6173 # Allow CC to be a program name with arguments.
6177 # save warnings/boilerplate of simple test code
6178 ac_outfile=conftest.$ac_objext
6179 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
6180 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
6181 _lt_compiler_boilerplate=`cat conftest.err`
6184 ac_outfile=conftest.$ac_objext
6185 printf "$lt_simple_link_test_code" >conftest.$ac_ext
6186 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
6187 _lt_linker_boilerplate=`cat conftest.err`
6192 # Check for any special shared library compilation flags.
6195 if test "$GCC" = no; then
6198 lt_prog_cc_shlib='-belf'
6202 if test -n "$lt_prog_cc_shlib"; then
6203 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6204 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6205 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
6207 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6208 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6209 lt_cv_prog_cc_can_build_shared=no
6215 # Check to make sure the static flag actually works.
6217 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6218 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6219 if test "${lt_prog_compiler_static_works+set}" = set; then
6220 echo $ECHO_N "(cached) $ECHO_C" >&6
6222 lt_prog_compiler_static_works=no
6223 save_LDFLAGS="$LDFLAGS"
6224 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6225 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6226 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6227 # The compiler can only warn and ignore the option if not recognized
6228 # So say no if there are warnings
6229 if test -s conftest.err; then
6230 # Append any errors to the config.log.
6231 cat conftest.err 1>&5
6232 $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
6233 $SED '/^$/d' conftest.err >conftest.er2
6234 if diff conftest.exp conftest.er2 >/dev/null; then
6235 lt_prog_compiler_static_works=yes
6238 lt_prog_compiler_static_works=yes
6242 LDFLAGS="$save_LDFLAGS"
6245 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6246 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6248 if test x"$lt_prog_compiler_static_works" = xyes; then
6251 lt_prog_compiler_static=
6257 lt_prog_compiler_no_builtin_flag=
6259 if test "$GCC" = yes; then
6260 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6263 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6264 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6265 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6266 echo $ECHO_N "(cached) $ECHO_C" >&6
6268 lt_cv_prog_compiler_rtti_exceptions=no
6269 ac_outfile=conftest.$ac_objext
6270 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6271 lt_compiler_flag="-fno-rtti -fno-exceptions"
6272 # Insert the option either (1) after the last *FLAGS variable, or
6273 # (2) before a word containing "conftest.", or (3) at the end.
6274 # Note that $ac_compile itself does not contain backslashes and begins
6275 # with a dollar sign (not a hyphen), so the echo should work correctly.
6276 # The option is referenced via a variable to avoid confusing sed.
6277 lt_compile=`echo "$ac_compile" | $SED \
6278 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6279 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6280 -e 's:$: $lt_compiler_flag:'`
6281 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
6282 (eval "$lt_compile" 2>conftest.err)
6284 cat conftest.err >&5
6285 echo "$as_me:__oline__: \$? = $ac_status" >&5
6286 if (exit $ac_status) && test -s "$ac_outfile"; then
6287 # The compiler can only warn and ignore the option if not recognized
6288 # So say no if there are warnings other than the usual output.
6289 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
6290 $SED '/^$/d' conftest.err >conftest.er2
6291 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
6292 lt_cv_prog_compiler_rtti_exceptions=yes
6298 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6299 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6301 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6302 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6309 lt_prog_compiler_wl=
6310 lt_prog_compiler_pic=
6311 lt_prog_compiler_static=
6313 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6314 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6316 if test "$GCC" = yes; then
6317 lt_prog_compiler_wl='-Wl,'
6318 lt_prog_compiler_static='-static'
6322 # All AIX code is PIC.
6323 if test "$host_cpu" = ia64; then
6324 # AIX 5 now supports IA64 processor
6325 lt_prog_compiler_static='-Bstatic'
6330 # FIXME: we need at least 68020 code to build shared libraries, but
6331 # adding the `-m68020' flag to GCC prevents building anything better,
6333 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6336 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6337 # PIC is the default for these OSes.
6340 mingw* | pw32* | os2*)
6341 # This hack is so that the source file can tell whether it is being
6342 # built for inclusion in a dll (and should export symbols for example).
6343 lt_prog_compiler_pic='-DDLL_EXPORT'
6346 darwin* | rhapsody*)
6347 # PIC is the default on this platform
6348 # Common symbols not allowed in MH_DYLIB files
6349 lt_prog_compiler_pic='-fno-common'
6353 # Just because we use GCC doesn't mean we suddenly get shared libraries
6354 # on systems that don't support them.
6355 lt_prog_compiler_can_build_shared=no
6360 if test -d /usr/nec; then
6361 lt_prog_compiler_pic=-Kconform_pic
6366 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6373 lt_prog_compiler_pic='-fPIC'
6379 lt_prog_compiler_pic='-fPIC'
6383 # PORTME Check for flag to pass linker flags through the system compiler.
6386 lt_prog_compiler_wl='-Wl,'
6387 if test "$host_cpu" = ia64; then
6388 # AIX 5 now supports IA64 processor
6389 lt_prog_compiler_static='-Bstatic'
6391 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6395 # PIC is the default on this platform
6396 # Common symbols not allowed in MH_DYLIB files
6397 case $cc_basename in
6399 lt_prog_compiler_pic='-qnocommon'
6400 lt_prog_compiler_wl='-Wl,'
6405 mingw* | pw32* | os2*)
6406 # This hack is so that the source file can tell whether it is being
6407 # built for inclusion in a dll (and should export symbols for example).
6408 lt_prog_compiler_pic='-DDLL_EXPORT'
6411 hpux9* | hpux10* | hpux11*)
6412 lt_prog_compiler_wl='-Wl,'
6413 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6420 lt_prog_compiler_pic='+Z'
6423 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6424 lt_prog_compiler_static='${wl}-a ${wl}archive'
6427 irix5* | irix6* | nonstopux*)
6428 lt_prog_compiler_wl='-Wl,'
6429 # PIC (with -KPIC) is the default.
6430 lt_prog_compiler_static='-non_shared'
6434 lt_prog_compiler_pic='-KPIC'
6435 lt_prog_compiler_static='-Bstatic'
6439 case $cc_basename in
6441 lt_prog_compiler_wl='-Wl,'
6442 lt_prog_compiler_pic='-KPIC'
6443 lt_prog_compiler_static='-static'
6445 pgcc* | pgf77* | pgf90*)
6446 # Portland Group compilers (*not* the Pentium gcc compiler,
6447 # which looks to be a dead project)
6448 lt_prog_compiler_wl='-Wl,'
6449 lt_prog_compiler_pic='-fpic'
6450 lt_prog_compiler_static='-static'
6453 lt_prog_compiler_wl='-Wl,'
6454 # All Alpha code is PIC.
6455 lt_prog_compiler_static='-non_shared'
6460 osf3* | osf4* | osf5*)
6461 lt_prog_compiler_wl='-Wl,'
6462 # All OSF/1 code is PIC.
6463 lt_prog_compiler_static='-non_shared'
6467 lt_prog_compiler_pic='-Kpic'
6468 lt_prog_compiler_static='-dn'
6472 lt_prog_compiler_pic='-KPIC'
6473 lt_prog_compiler_static='-Bstatic'
6474 case $cc_basename in
6476 lt_prog_compiler_wl='-Qoption ld ';;
6478 lt_prog_compiler_wl='-Wl,';;
6483 lt_prog_compiler_wl='-Qoption ld '
6484 lt_prog_compiler_pic='-PIC'
6485 lt_prog_compiler_static='-Bstatic'
6488 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6489 lt_prog_compiler_wl='-Wl,'
6490 lt_prog_compiler_pic='-KPIC'
6491 lt_prog_compiler_static='-Bstatic'
6495 if test -d /usr/nec ;then
6496 lt_prog_compiler_pic='-Kconform_pic'
6497 lt_prog_compiler_static='-Bstatic'
6502 lt_prog_compiler_wl='-Wl,'
6503 lt_prog_compiler_can_build_shared=no
6507 lt_prog_compiler_pic='-pic'
6508 lt_prog_compiler_static='-Bstatic'
6512 lt_prog_compiler_can_build_shared=no
6517 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6518 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6521 # Check to make sure the PIC flag actually works.
6523 if test -n "$lt_prog_compiler_pic"; then
6525 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6526 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6527 if test "${lt_prog_compiler_pic_works+set}" = set; then
6528 echo $ECHO_N "(cached) $ECHO_C" >&6
6530 lt_prog_compiler_pic_works=no
6531 ac_outfile=conftest.$ac_objext
6532 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6533 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6534 # Insert the option either (1) after the last *FLAGS variable, or
6535 # (2) before a word containing "conftest.", or (3) at the end.
6536 # Note that $ac_compile itself does not contain backslashes and begins
6537 # with a dollar sign (not a hyphen), so the echo should work correctly.
6538 # The option is referenced via a variable to avoid confusing sed.
6539 lt_compile=`echo "$ac_compile" | $SED \
6540 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6541 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6542 -e 's:$: $lt_compiler_flag:'`
6543 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
6544 (eval "$lt_compile" 2>conftest.err)
6546 cat conftest.err >&5
6547 echo "$as_me:__oline__: \$? = $ac_status" >&5
6548 if (exit $ac_status) && test -s "$ac_outfile"; then
6549 # The compiler can only warn and ignore the option if not recognized
6550 # So say no if there are warnings other than the usual output.
6551 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
6552 $SED '/^$/d' conftest.err >conftest.er2
6553 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
6554 lt_prog_compiler_pic_works=yes
6560 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6561 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6563 if test x"$lt_prog_compiler_pic_works" = xyes; then
6564 case $lt_prog_compiler_pic in
6566 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6569 lt_prog_compiler_pic=
6570 lt_prog_compiler_can_build_shared=no
6575 # For platforms which do not support PIC, -DPIC is meaningless:
6577 lt_prog_compiler_pic=
6580 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6584 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6585 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6586 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6587 echo $ECHO_N "(cached) $ECHO_C" >&6
6589 lt_cv_prog_compiler_c_o=no
6590 $rm -r conftest 2>/dev/null
6594 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6596 lt_compiler_flag="-o out/conftest2.$ac_objext"
6597 # Insert the option either (1) after the last *FLAGS variable, or
6598 # (2) before a word containing "conftest.", or (3) at the end.
6599 # Note that $ac_compile itself does not contain backslashes and begins
6600 # with a dollar sign (not a hyphen), so the echo should work correctly.
6601 lt_compile=`echo "$ac_compile" | $SED \
6602 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6603 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6604 -e 's:$: $lt_compiler_flag:'`
6605 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
6606 (eval "$lt_compile" 2>out/conftest.err)
6608 cat out/conftest.err >&5
6609 echo "$as_me:__oline__: \$? = $ac_status" >&5
6610 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6612 # The compiler can only warn and ignore the option if not recognized
6613 # So say no if there are warnings
6614 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
6615 $SED '/^$/d' out/conftest.err >out/conftest.er2
6616 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6617 lt_cv_prog_compiler_c_o=yes
6622 # SGI C++ compiler will create directory out/ii_files/ for
6623 # template instantiation
6624 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6625 $rm out/* && rmdir out
6631 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6632 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6635 hard_links="nottested"
6636 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6637 # do not overwrite the value of need_locks provided by the user
6638 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6639 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6642 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6644 ln conftest.a conftest.b 2>&5 || hard_links=no
6645 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6646 echo "$as_me:$LINENO: result: $hard_links" >&5
6647 echo "${ECHO_T}$hard_links" >&6
6648 if test "$hard_links" = no; then
6649 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6650 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6657 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6658 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6661 allow_undefined_flag=
6662 enable_shared_with_static_runtimes=no
6664 archive_expsym_cmds=
6665 old_archive_From_new_cmds=
6666 old_archive_from_expsyms_cmds=
6667 export_dynamic_flag_spec=
6668 whole_archive_flag_spec=
6669 thread_safe_flag_spec=
6670 hardcode_libdir_flag_spec=
6671 hardcode_libdir_flag_spec_ld=
6672 hardcode_libdir_separator=
6675 hardcode_shlibpath_var=unsupported
6676 link_all_deplibs=unknown
6677 hardcode_automatic=no
6680 always_export_symbols=no
6681 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6682 # include_expsyms should be a list of space-separated symbols to be *always*
6683 # included in the symbol list
6685 # exclude_expsyms can be an extended regexp of symbols to exclude
6686 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6687 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6688 # as well as any symbol that contains `d'.
6689 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6690 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6691 # platforms (ab)use it in PIC code, but their linkers get confused if
6692 # the symbol is explicitly referenced. Since portable code cannot
6693 # rely on this symbol name, it's probably fine to never include it in
6694 # preloaded symbol tables.
6695 extract_expsyms_cmds=
6696 # Just being paranoid about ensuring that cc_basename is set.
6697 for cc_temp in $compiler""; do
6699 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6700 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6705 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6708 cygwin* | mingw* | pw32*)
6709 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6710 # When not using gcc, we currently assume that we are using
6711 # Microsoft Visual C++.
6712 if test "$GCC" != yes; then
6722 if test "$with_gnu_ld" = yes; then
6723 # If archive_cmds runs LD, not CC, wlarc should be empty
6726 # Set some defaults for GNU ld with shared library support. These
6727 # are reset later if shared libraries are not supported. Putting them
6728 # here allows them to be overridden if necessary.
6729 runpath_var=LD_RUN_PATH
6730 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6731 export_dynamic_flag_spec='${wl}--export-dynamic'
6732 # ancient GNU ld didn't support --whole-archive et. al.
6733 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6734 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6736 whole_archive_flag_spec=
6738 supports_anon_versioning=no
6739 case `$LD -v 2>/dev/null` in
6740 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6741 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6742 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6743 *\ 2.11.*) ;; # other 2.11 versions
6744 *) supports_anon_versioning=yes ;;
6747 # See if GNU ld supports shared libraries.
6749 aix3* | aix4* | aix5*)
6750 # On AIX/PPC, the GNU linker is very broken
6751 if test "$host_cpu" != ia64; then
6755 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6756 *** to be unable to reliably create shared libraries on AIX.
6757 *** Therefore, libtool is disabling shared libraries support. If you
6758 *** really care for shared libraries, you may want to modify your PATH
6759 *** so that a non-GNU linker is found, and then restart.
6766 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)'
6767 hardcode_libdir_flag_spec='-L$libdir'
6768 hardcode_minus_L=yes
6770 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6771 # that the semantics of dynamic libraries on AmigaOS, at least up
6772 # to version 4, is to share data among multiple programs linked
6773 # with the same dynamic library. Since this doesn't match the
6774 # behavior of shared libraries on other platforms, we can't use
6780 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6781 allow_undefined_flag=unsupported
6782 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6783 # support --undefined. This deserves some investigation. FIXME
6784 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6790 cygwin* | mingw* | pw32*)
6791 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6792 # as there is no search path for DLLs.
6793 hardcode_libdir_flag_spec='-L$libdir'
6794 allow_undefined_flag=unsupported
6795 always_export_symbols=no
6796 enable_shared_with_static_runtimes=yes
6797 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6799 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6800 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6801 # If the export-symbols file already is a .def file (1st line
6802 # is EXPORTS), use it as is; otherwise, prepend...
6803 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6804 cp $export_symbols $output_objdir/$soname.def;
6806 echo EXPORTS > $output_objdir/$soname.def;
6807 cat $export_symbols >> $output_objdir/$soname.def;
6809 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6816 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6818 case $cc_basename,$host_cpu in
6819 pgcc*) # Portland Group C compiler
6820 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'
6821 tmp_addflag=' $pic_flag'
6823 pgf77* | pgf90* ) # Portland Group f77 and f90 compilers
6824 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'
6825 tmp_addflag=' $pic_flag -Mnomain' ;;
6826 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
6827 tmp_addflag=' -i_dynamic' ;;
6828 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
6829 tmp_addflag=' -i_dynamic -nofor_main' ;;
6830 ifc* | ifort*) # Intel Fortran compiler
6831 tmp_addflag=' -nofor_main' ;;
6833 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6835 if test $supports_anon_versioning = yes; then
6836 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6837 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6838 $echo "local: *; };" >> $output_objdir/$libname.ver~
6839 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6847 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6848 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6851 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6852 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6857 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6861 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6862 *** create shared libraries on Solaris systems. Therefore, libtool
6863 *** is disabling shared libraries support. We urge you to upgrade GNU
6864 *** binutils to release 2.9.1 or newer. Another option is to modify
6865 *** your PATH or compiler configuration so that the native linker is
6866 *** used, and then restart.
6869 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6870 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6871 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6878 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6881 hardcode_shlibpath_var=no
6885 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6886 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6887 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6894 if test "$ld_shlibs" = no; then
6896 hardcode_libdir_flag_spec=
6897 export_dynamic_flag_spec=
6898 whole_archive_flag_spec=
6901 # PORTME fill in a description of your system's linker (not GNU ld)
6904 allow_undefined_flag=unsupported
6905 always_export_symbols=yes
6906 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'
6907 # Note: this linker hardcodes the directories in LIBPATH if there
6908 # are no directories specified by -L.
6909 hardcode_minus_L=yes
6910 if test "$GCC" = yes && test -z "$link_static_flag"; then
6911 # Neither direct hardcoding nor static linking is supported with a
6913 hardcode_direct=unsupported
6918 if test "$host_cpu" = ia64; then
6919 # On IA64, the linker does run time linking by default, so we don't
6920 # have to do anything special.
6921 aix_use_runtimelinking=no
6922 exp_sym_flag='-Bexport'
6925 # If we're using GNU nm, then we don't want the "-C" option.
6926 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6927 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6928 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'
6930 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'
6932 aix_use_runtimelinking=no
6934 # Test if we are trying to use run time linking or normal
6935 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6936 # need to do runtime linking.
6937 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6938 for ld_flag in $LDFLAGS; do
6939 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6940 aix_use_runtimelinking=yes
6946 exp_sym_flag='-bexport'
6947 no_entry_flag='-bnoentry'
6950 # When large executables or shared objects are built, AIX ld can
6951 # have problems creating the table of contents. If linking a library
6952 # or program results in "error TOC overflow" add -mminimal-toc to
6953 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6954 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6958 hardcode_libdir_separator=':'
6959 link_all_deplibs=yes
6961 if test "$GCC" = yes; then
6962 case $host_os in aix4.[012]|aix4.[012].*)
6963 # We only want to do this on AIX 4.2 and lower, the check
6964 # below for broken collect2 doesn't work under 4.3+
6965 collect2name=`${CC} -print-prog-name=collect2`
6966 if test -f "$collect2name" && \
6967 strings "$collect2name" | grep resolve_lib_name >/dev/null
6969 # We have reworked collect2
6972 # We have old collect2
6973 hardcode_direct=unsupported
6974 # It fails to find uninstalled libraries when the uninstalled
6975 # path is not listed in the libpath. Setting hardcode_minus_L
6976 # to unsupported forces relinking
6977 hardcode_minus_L=yes
6978 hardcode_libdir_flag_spec='-L$libdir'
6979 hardcode_libdir_separator=
6982 shared_flag='-shared'
6983 if test "$aix_use_runtimelinking" = yes; then
6984 shared_flag="$shared_flag "'${wl}-G'
6988 if test "$host_cpu" = ia64; then
6989 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6990 # chokes on -Wl,-G. The following line is correct:
6993 if test "$aix_use_runtimelinking" = yes; then
6994 shared_flag='${wl}-G'
6996 shared_flag='${wl}-bM:SRE'
7001 # It seems that -bexpall does not export symbols beginning with
7002 # underscore (_), so it is better to generate a list of symbols to export.
7003 always_export_symbols=yes
7004 if test "$aix_use_runtimelinking" = yes; then
7005 # Warning - without using the other runtime loading flags (-brtl),
7006 # -berok will link without error, but may produce a broken library.
7007 allow_undefined_flag='-berok'
7008 # Determine the default libpath from the value encoded in an empty executable.
7009 cat >conftest.$ac_ext <<_ACEOF
7012 cat confdefs.h >>conftest.$ac_ext
7013 cat >>conftest.$ac_ext <<_ACEOF
7014 /* end confdefs.h. */
7024 rm -f conftest.$ac_objext conftest$ac_exeext
7025 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7026 (eval $ac_link) 2>conftest.er1
7028 grep -v '^ *+' conftest.er1 >conftest.err
7030 cat conftest.err >&5
7031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7032 (exit $ac_status); } &&
7033 { ac_try='test -z "$ac_c_werror_flag"
7034 || test ! -s conftest.err'
7035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7039 (exit $ac_status); }; } &&
7040 { ac_try='test -s conftest$ac_exeext'
7041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7045 (exit $ac_status); }; }; then
7047 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7049 # Check for a 64-bit object if we didn't find anything.
7050 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; }
7053 echo "$as_me: failed program was:" >&5
7054 sed 's/^/| /' conftest.$ac_ext >&5
7057 rm -f conftest.err conftest.$ac_objext \
7058 conftest$ac_exeext conftest.$ac_ext
7059 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7061 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7062 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7064 if test "$host_cpu" = ia64; then
7065 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7066 allow_undefined_flag="-z nodefs"
7067 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
7069 # Determine the default libpath from the value encoded in an empty executable.
7070 cat >conftest.$ac_ext <<_ACEOF
7073 cat confdefs.h >>conftest.$ac_ext
7074 cat >>conftest.$ac_ext <<_ACEOF
7075 /* end confdefs.h. */
7085 rm -f conftest.$ac_objext conftest$ac_exeext
7086 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7087 (eval $ac_link) 2>conftest.er1
7089 grep -v '^ *+' conftest.er1 >conftest.err
7091 cat conftest.err >&5
7092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7093 (exit $ac_status); } &&
7094 { ac_try='test -z "$ac_c_werror_flag"
7095 || test ! -s conftest.err'
7096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7100 (exit $ac_status); }; } &&
7101 { ac_try='test -s conftest$ac_exeext'
7102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7106 (exit $ac_status); }; }; then
7108 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7110 # Check for a 64-bit object if we didn't find anything.
7111 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; }
7114 echo "$as_me: failed program was:" >&5
7115 sed 's/^/| /' conftest.$ac_ext >&5
7118 rm -f conftest.err conftest.$ac_objext \
7119 conftest$ac_exeext conftest.$ac_ext
7120 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7122 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7123 # Warning - without using the other run time loading flags,
7124 # -berok will link without error, but may produce a broken library.
7125 no_undefined_flag=' ${wl}-bernotok'
7126 allow_undefined_flag=' ${wl}-berok'
7127 # -bexpall does not export symbols beginning with underscore (_)
7128 always_export_symbols=yes
7129 # Exported symbols can be pulled into shared objects from archives
7130 whole_archive_flag_spec=' '
7131 archive_cmds_need_lc=yes
7132 # This is similar to how AIX traditionally builds it's shared libraries.
7133 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
7139 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)'
7140 hardcode_libdir_flag_spec='-L$libdir'
7141 hardcode_minus_L=yes
7142 # see comment about different semantics on the GNU ld section
7147 export_dynamic_flag_spec=-rdynamic
7150 cygwin* | mingw* | pw32*)
7151 # When not using gcc, we currently assume that we are using
7152 # Microsoft Visual C++.
7153 # hardcode_libdir_flag_spec is actually meaningless, as there is
7154 # no search path for DLLs.
7155 hardcode_libdir_flag_spec=' '
7156 allow_undefined_flag=unsupported
7157 # Tell ltmain to make .lib files, not .a files.
7159 # Tell ltmain to make .dll files, not .so files.
7161 # FIXME: Setting linknames here is a bad hack.
7162 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7163 # The linker will automatically build a .lib file if we build a DLL.
7164 old_archive_From_new_cmds='true'
7165 # FIXME: Should let the user specify the lib program.
7166 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7167 fix_srcfile_path='`cygpath -w "$srcfile"`'
7168 enable_shared_with_static_runtimes=yes
7171 darwin* | rhapsody*)
7173 rhapsody* | darwin1.[012])
7174 allow_undefined_flag='${wl}-undefined ${wl}suppress'
7177 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7178 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7180 case ${MACOSX_DEPLOYMENT_TARGET} in
7182 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7185 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7191 archive_cmds_need_lc=no
7193 hardcode_automatic=yes
7194 hardcode_shlibpath_var=unsupported
7195 whole_archive_flag_spec=''
7196 link_all_deplibs=yes
7197 if test "$GCC" = yes ; then
7198 output_verbose_link_cmd='echo'
7199 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7200 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7201 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7202 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}'
7203 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}'
7205 case $cc_basename in
7207 output_verbose_link_cmd='echo'
7208 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7209 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7210 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7211 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}'
7212 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}'
7222 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7223 hardcode_libdir_flag_spec='-L$libdir'
7224 hardcode_shlibpath_var=no
7231 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7232 # support. Future versions do this automatically, but an explicit c++rt0.o
7233 # does not break anything, and helps significantly (at the cost of a little
7236 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7237 hardcode_libdir_flag_spec='-R$libdir'
7239 hardcode_shlibpath_var=no
7242 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7244 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7246 hardcode_minus_L=yes
7247 hardcode_shlibpath_var=no
7250 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7251 freebsd* | kfreebsd*-gnu | dragonfly*)
7252 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7253 hardcode_libdir_flag_spec='-R$libdir'
7255 hardcode_shlibpath_var=no
7259 if test "$GCC" = yes; then
7260 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'
7262 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'
7264 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7265 hardcode_libdir_separator=:
7268 # hardcode_minus_L: Not really in the search PATH,
7269 # but as the default location of the library.
7270 hardcode_minus_L=yes
7271 export_dynamic_flag_spec='${wl}-E'
7275 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7278 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7281 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7287 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7290 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7294 if test "$with_gnu_ld" = no; then
7297 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7298 hardcode_libdir_flag_spec_ld='+b $libdir'
7299 hardcode_libdir_separator=:
7301 hardcode_shlibpath_var=no
7304 hardcode_libdir_flag_spec='-L$libdir'
7306 hardcode_shlibpath_var=no
7308 # hardcode_minus_L: Not really in the search PATH,
7309 # but as the default location of the library.
7310 hardcode_minus_L=yes
7313 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7314 hardcode_libdir_separator=:
7316 export_dynamic_flag_spec='${wl}-E'
7318 # hardcode_minus_L: Not really in the search PATH,
7319 # but as the default location of the library.
7320 hardcode_minus_L=yes
7326 irix5* | irix6* | nonstopux*)
7327 if test "$GCC" = yes; then
7328 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'
7330 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'
7331 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7333 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7334 hardcode_libdir_separator=:
7335 link_all_deplibs=yes
7339 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7340 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7342 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7344 hardcode_libdir_flag_spec='-R$libdir'
7346 hardcode_shlibpath_var=no
7350 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7352 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7353 hardcode_libdir_separator=:
7354 hardcode_shlibpath_var=no
7359 hardcode_shlibpath_var=no
7360 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7361 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7362 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7363 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7364 export_dynamic_flag_spec='${wl}-E'
7367 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7368 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7369 hardcode_libdir_flag_spec='-R$libdir'
7372 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7373 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7380 hardcode_libdir_flag_spec='-L$libdir'
7381 hardcode_minus_L=yes
7382 allow_undefined_flag=unsupported
7383 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'
7384 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7388 if test "$GCC" = yes; then
7389 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7390 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'
7392 allow_undefined_flag=' -expect_unresolved \*'
7393 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'
7395 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7396 hardcode_libdir_separator=:
7399 osf4* | osf5*) # as osf3* with the addition of -msym flag
7400 if test "$GCC" = yes; then
7401 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7402 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'
7403 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7405 allow_undefined_flag=' -expect_unresolved \*'
7406 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'
7407 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7408 $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'
7410 # Both c and cxx compiler support -rpath directly
7411 hardcode_libdir_flag_spec='-rpath $libdir'
7413 hardcode_libdir_separator=:
7417 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7418 hardcode_shlibpath_var=no
7419 export_dynamic_flag_spec='${wl}-Bexport'
7420 runpath_var=LD_RUN_PATH
7421 hardcode_runpath_var=yes
7425 no_undefined_flag=' -z text'
7426 if test "$GCC" = yes; then
7428 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7429 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7430 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7433 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7434 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7435 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7437 hardcode_libdir_flag_spec='-R$libdir'
7438 hardcode_shlibpath_var=no
7440 solaris2.[0-5] | solaris2.[0-5].*) ;;
7442 # The compiler driver will combine linker options so we
7443 # cannot just pass the convience library names through
7444 # without $wl, iff we do not link with $LD.
7445 # Luckily, gcc supports the same syntax we need for Sun Studio.
7446 # Supported since Solaris 2.6 (maybe 2.5.1?)
7449 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7451 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' ;;
7454 link_all_deplibs=yes
7458 if test "x$host_vendor" = xsequent; then
7459 # Use $CC to link under sequent, because it throws in some extra .o
7460 # files that make .init and .fini sections work.
7461 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7463 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7465 hardcode_libdir_flag_spec='-L$libdir'
7467 hardcode_minus_L=yes
7468 hardcode_shlibpath_var=no
7472 case $host_vendor in
7474 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7475 hardcode_direct=yes # is this really true???
7478 ## LD is ld it makes a PLAMLIB
7479 ## CC just makes a GrossModule.
7480 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7481 reload_cmds='$CC -r -o $output$reload_objs'
7485 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7486 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7489 runpath_var='LD_RUN_PATH'
7490 hardcode_shlibpath_var=no
7494 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7495 hardcode_shlibpath_var=no
7496 export_dynamic_flag_spec='-Bexport'
7500 if test -d /usr/nec; then
7501 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7502 hardcode_shlibpath_var=no
7503 runpath_var=LD_RUN_PATH
7504 hardcode_runpath_var=yes
7510 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7513 hardcode_shlibpath_var=no
7514 hardcode_runpath_var=yes
7515 runpath_var=LD_RUN_PATH
7518 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
7519 no_undefined_flag='${wl}-z ${wl}text'
7520 if test "$GCC" = yes; then
7521 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7523 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7525 runpath_var='LD_RUN_PATH'
7526 hardcode_shlibpath_var=no
7530 no_undefined_flag=' -z text'
7531 # $CC -shared without GNU ld will not create a library from C++
7532 # object files and a static libstdc++, better avoid it by now
7533 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7534 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7535 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7536 hardcode_libdir_flag_spec=
7537 hardcode_shlibpath_var=no
7538 runpath_var='LD_RUN_PATH'
7542 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7543 hardcode_libdir_flag_spec='-L$libdir'
7544 hardcode_shlibpath_var=no
7553 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7554 echo "${ECHO_T}$ld_shlibs" >&6
7555 test "$ld_shlibs" = no && can_build_shared=no
7557 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7558 if test "$GCC" = yes; then
7559 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7563 # Do we need to explicitly link libc?
7565 case "x$archive_cmds_need_lc" in
7567 # Assume -lc should be added
7568 archive_cmds_need_lc=yes
7570 if test "$enable_shared" = yes && test "$GCC" = yes; then
7571 case $archive_cmds in
7573 # FIXME: we may have to deal with multi-command sequences.
7576 # Test whether the compiler implicitly links with -lc since on some
7577 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7578 # to ld, don't add -lc before -lgcc.
7579 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7580 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7582 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7584 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7585 (eval $ac_compile) 2>&5
7587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7588 (exit $ac_status); } 2>conftest.err; then
7591 libobjs=conftest.$ac_objext
7593 wl=$lt_prog_compiler_wl
7599 lt_save_allow_undefined_flag=$allow_undefined_flag
7600 allow_undefined_flag=
7601 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7602 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7605 (exit $ac_status); }
7607 archive_cmds_need_lc=no
7609 archive_cmds_need_lc=yes
7611 allow_undefined_flag=$lt_save_allow_undefined_flag
7613 cat conftest.err 1>&5
7616 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7617 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7624 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7625 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7627 libname_spec='lib$name'
7635 shlibpath_overrides_runpath=unknown
7637 dynamic_linker="$host_os ld.so"
7638 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7639 if test "$GCC" = yes; then
7640 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7641 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7642 # if the path contains ";" then we assume it to be the separator
7643 # otherwise default to the standard path separator (i.e. ":") - it is
7644 # assumed that no part of a normal pathname contains ";" but that should
7645 # okay in the real world where ";" in dirpaths is itself problematic.
7646 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7648 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7651 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7653 need_lib_prefix=unknown
7654 hardcode_into_libs=no
7656 # when you set need_version to no, make sure it does not cause -set_version
7657 # flags to be left without arguments
7658 need_version=unknown
7663 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7664 shlibpath_var=LIBPATH
7666 # AIX 3 has no versioning support, so we append a major version to the name.
7667 soname_spec='${libname}${release}${shared_ext}$major'
7674 hardcode_into_libs=yes
7675 if test "$host_cpu" = ia64; then
7676 # AIX 5 supports IA64
7677 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7678 shlibpath_var=LD_LIBRARY_PATH
7680 # With GCC up to 2.95.x, collect2 would create an import file
7681 # for dependence libraries. The import file would start with
7682 # the line `#! .'. This would cause the generated library to
7683 # depend on `.', always an invalid library. This was fixed in
7684 # development snapshots of GCC prior to 3.0.
7686 aix4 | aix4.[01] | aix4.[01].*)
7687 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7689 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7696 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7697 # soname into executable. Probably we can add versioning support to
7698 # collect2, so additional links can be useful in future.
7699 if test "$aix_use_runtimelinking" = yes; then
7700 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7701 # instead of lib<name>.a to let people know that these are not
7702 # typical AIX shared libraries.
7703 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7705 # We preserve .a as extension for shared libraries through AIX4.2
7706 # and later when we are not doing run time linking.
7707 library_names_spec='${libname}${release}.a $libname.a'
7708 soname_spec='${libname}${release}${shared_ext}$major'
7710 shlibpath_var=LIBPATH
7715 library_names_spec='$libname.ixlibrary $libname.a'
7716 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7717 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'
7721 library_names_spec='${libname}${shared_ext}'
7722 dynamic_linker="$host_os ld.so"
7723 shlibpath_var=LIBRARY_PATH
7729 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7730 soname_spec='${libname}${release}${shared_ext}$major'
7731 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7732 shlibpath_var=LD_LIBRARY_PATH
7733 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7734 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7735 # the default ld.so.conf also contains /usr/contrib/lib and
7736 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7737 # libtool to hard-code these into programs
7740 cygwin* | mingw* | pw32*)
7741 version_type=windows
7746 case $GCC,$host_os in
7747 yes,cygwin* | yes,mingw* | yes,pw32*)
7748 library_names_spec='$libname.dll.a'
7749 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7750 postinstall_cmds='base_file=`basename \${file}`~
7751 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7752 dldir=$destdir/`dirname \$dlpath`~
7753 test -d \$dldir || mkdir -p \$dldir~
7754 $install_prog $dir/$dlname \$dldir/$dlname'
7755 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7756 dlpath=$dir/\$dldll~
7758 shlibpath_overrides_runpath=yes
7762 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7763 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7764 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7767 # MinGW DLLs use traditional 'lib' prefix
7768 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7769 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7770 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7771 # It is most probably a Windows format PATH printed by
7772 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7773 # path with ; separators, and with drive letters. We can handle the
7774 # drive letters (cygwin fileutils understands them), so leave them,
7775 # especially as we might pass files found there to a mingw objdump,
7776 # which wouldn't understand a cygwinified path. Ahh.
7777 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7779 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7783 # pw32 DLLs use 'pw' prefix rather than 'lib'
7784 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7790 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7793 dynamic_linker='Win32 ld.exe'
7794 # FIXME: first we should search . and the directory the executable is in
7798 darwin* | rhapsody*)
7799 dynamic_linker="$host_os dyld"
7803 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7804 soname_spec='${libname}${release}${major}$shared_ext'
7805 shlibpath_overrides_runpath=yes
7806 shlibpath_var=DYLD_LIBRARY_PATH
7807 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
7808 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7809 if test "$GCC" = yes; then
7810 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"`
7812 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7814 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7822 soname_spec='${libname}${release}${shared_ext}$major'
7823 shlibpath_var=LD_LIBRARY_PATH
7834 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7835 soname_spec='${libname}${release}${shared_ext}$major'
7836 shlibpath_var=LD_LIBRARY_PATH
7837 shlibpath_overrides_runpath=no
7838 hardcode_into_libs=yes
7839 dynamic_linker='GNU ld.so'
7842 freebsd* | dragonfly*)
7843 # DragonFly does not have aout. When/if they implement a new
7844 # versioning mechanism, adjust this.
7845 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7846 version_type=freebsd-$objformat
7847 case $version_type in
7849 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7854 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7858 shlibpath_var=LD_LIBRARY_PATH
7861 shlibpath_overrides_runpath=yes
7863 freebsd3.[01]* | freebsdelf3.[01]*)
7864 shlibpath_overrides_runpath=yes
7865 hardcode_into_libs=yes
7868 shlibpath_overrides_runpath=no
7869 hardcode_into_libs=yes
7878 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7879 soname_spec='${libname}${release}${shared_ext}$major'
7880 shlibpath_var=LD_LIBRARY_PATH
7881 hardcode_into_libs=yes
7884 hpux9* | hpux10* | hpux11*)
7885 # Give a soname corresponding to the major version so that dld.sl refuses to
7886 # link against other versions.
7893 hardcode_into_libs=yes
7894 dynamic_linker="$host_os dld.so"
7895 shlibpath_var=LD_LIBRARY_PATH
7896 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7898 soname_spec='${libname}${release}${shared_ext}$major'
7899 if test "X$HPUX_IA64_MODE" = X32; then
7900 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7902 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7904 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7908 hardcode_into_libs=yes
7909 dynamic_linker="$host_os dld.sl"
7910 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7911 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7912 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7913 soname_spec='${libname}${release}${shared_ext}$major'
7914 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7915 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7919 dynamic_linker="$host_os dld.sl"
7920 shlibpath_var=SHLIB_PATH
7921 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7922 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7923 soname_spec='${libname}${release}${shared_ext}$major'
7926 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7927 postinstall_cmds='chmod 555 $lib'
7930 irix5* | irix6* | nonstopux*)
7932 nonstopux*) version_type=nonstopux ;;
7934 if test "$lt_cv_prog_gnu_ld" = yes; then
7942 soname_spec='${libname}${release}${shared_ext}$major'
7943 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7945 irix5* | nonstopux*)
7949 case $LD in # libtool.m4 will add one of these switches to LD
7950 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7951 libsuff= shlibsuff= libmagic=32-bit;;
7952 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7953 libsuff=32 shlibsuff=N32 libmagic=N32;;
7954 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7955 libsuff=64 shlibsuff=64 libmagic=64-bit;;
7956 *) libsuff= shlibsuff= libmagic=never-match;;
7960 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7961 shlibpath_overrides_runpath=no
7962 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7963 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7964 hardcode_into_libs=yes
7967 # No shared lib support for Linux oldld, aout, or coff.
7968 linux*oldld* | linux*aout* | linux*coff*)
7972 # This must be Linux ELF.
7977 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7978 soname_spec='${libname}${release}${shared_ext}$major'
7979 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7980 shlibpath_var=LD_LIBRARY_PATH
7981 shlibpath_overrides_runpath=no
7982 # This implies no fast_install, which is unacceptable.
7983 # Some rework will be needed to allow for fast_install
7984 # before this can be enabled.
7985 hardcode_into_libs=yes
7987 # find out which ABI we are using
7990 x86_64*|s390x*|powerpc64*)
7991 echo '#line __oline__ "configure"' > conftest.$ac_ext
7992 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7993 (eval $ac_compile) 2>&5
7995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7996 (exit $ac_status); }; then
7997 case `/usr/bin/file conftest.$ac_objext` in
8000 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
8008 # Append ld.so.conf contents to the search path
8009 if test -f /etc/ld.so.conf; then
8010 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' ' '`
8011 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
8014 # We used to test for /lib/ld.so.1 and disable shared libraries on
8015 # powerpc, because MkLinux only supported shared libraries with the
8016 # GNU dynamic linker. Since this was broken with cross compilers,
8017 # most powerpc-linux boxes support dynamic linking these days and
8018 # people can always --disable-shared, the test was removed, and we
8019 # assume the GNU/Linux dynamic linker is in use.
8020 dynamic_linker='GNU/Linux ld.so'
8027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8028 soname_spec='${libname}${release}${shared_ext}$major'
8029 shlibpath_var=LD_LIBRARY_PATH
8030 shlibpath_overrides_runpath=no
8031 hardcode_into_libs=yes
8032 dynamic_linker='GNU ld.so'
8039 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8040 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8041 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8042 dynamic_linker='NetBSD (a.out) ld.so'
8044 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8045 soname_spec='${libname}${release}${shared_ext}$major'
8046 dynamic_linker='NetBSD ld.elf_so'
8048 shlibpath_var=LD_LIBRARY_PATH
8049 shlibpath_overrides_runpath=yes
8050 hardcode_into_libs=yes
8055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8056 shlibpath_var=LD_LIBRARY_PATH
8057 shlibpath_overrides_runpath=yes
8064 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8065 soname_spec='${libname}${release}${shared_ext}$major'
8066 shlibpath_var=LD_LIBRARY_PATH
8067 shlibpath_overrides_runpath=yes
8073 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8075 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8076 *) need_version=no ;;
8078 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8079 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8080 shlibpath_var=LD_LIBRARY_PATH
8081 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8083 openbsd2.[89] | openbsd2.[89].*)
8084 shlibpath_overrides_runpath=no
8087 shlibpath_overrides_runpath=yes
8091 shlibpath_overrides_runpath=yes
8096 libname_spec='$name'
8099 library_names_spec='$libname${shared_ext} $libname.a'
8100 dynamic_linker='OS/2 ld.exe'
8101 shlibpath_var=LIBPATH
8104 osf3* | osf4* | osf5*)
8108 soname_spec='${libname}${release}${shared_ext}$major'
8109 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8110 shlibpath_var=LD_LIBRARY_PATH
8111 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8112 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8117 soname_spec='${libname}${release}${shared_ext}$major'
8118 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8119 shlibpath_var=LD_LIBRARY_PATH
8126 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8127 soname_spec='${libname}${release}${shared_ext}$major'
8128 shlibpath_var=LD_LIBRARY_PATH
8129 shlibpath_overrides_runpath=yes
8130 hardcode_into_libs=yes
8131 # ldd complains unless libraries are executable
8132 postinstall_cmds='chmod +x $lib'
8137 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8138 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8139 shlibpath_var=LD_LIBRARY_PATH
8140 shlibpath_overrides_runpath=yes
8141 if test "$with_gnu_ld" = yes; then
8147 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8149 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8150 soname_spec='${libname}${release}${shared_ext}$major'
8151 shlibpath_var=LD_LIBRARY_PATH
8152 case $host_vendor in
8154 shlibpath_overrides_runpath=no
8156 export_dynamic_flag_spec='${wl}-Blargedynsym'
8157 runpath_var=LD_RUN_PATH
8165 shlibpath_overrides_runpath=no
8166 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8172 if test -d /usr/nec ;then
8174 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8175 soname_spec='$libname${shared_ext}.$major'
8176 shlibpath_var=LD_LIBRARY_PATH
8182 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8183 soname_spec='${libname}${release}${shared_ext}$major'
8184 shlibpath_var=LD_LIBRARY_PATH
8191 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8192 echo "${ECHO_T}$dynamic_linker" >&6
8193 test "$dynamic_linker" = no && can_build_shared=no
8195 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8196 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8198 if test -n "$hardcode_libdir_flag_spec" || \
8199 test -n "$runpath_var" || \
8200 test "X$hardcode_automatic" = "Xyes" ; then
8202 # We can hardcode non-existant directories.
8203 if test "$hardcode_direct" != no &&
8204 # If the only mechanism to avoid hardcoding is shlibpath_var, we
8205 # have to relink, otherwise we might link with an installed library
8206 # when we should be linking with a yet-to-be-installed one
8207 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8208 test "$hardcode_minus_L" != no; then
8209 # Linking always hardcodes the temporary library directory.
8210 hardcode_action=relink
8212 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8213 hardcode_action=immediate
8216 # We cannot hardcode anything, or else we can only hardcode existing
8218 hardcode_action=unsupported
8220 echo "$as_me:$LINENO: result: $hardcode_action" >&5
8221 echo "${ECHO_T}$hardcode_action" >&6
8223 if test "$hardcode_action" = relink; then
8224 # Fast installation is not supported
8225 enable_fast_install=no
8226 elif test "$shlibpath_overrides_runpath" = yes ||
8227 test "$enable_shared" = no; then
8228 # Fast installation is not necessary
8229 enable_fast_install=needless
8234 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8235 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8236 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8237 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8238 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8239 echo "$as_me:$LINENO: result: yes" >&5
8240 echo "${ECHO_T}yes" >&6
8242 # FIXME - insert some real tests, host_os isn't really good enough
8245 if test -n "$STRIP" ; then
8246 striplib="$STRIP -x"
8247 echo "$as_me:$LINENO: result: yes" >&5
8248 echo "${ECHO_T}yes" >&6
8250 echo "$as_me:$LINENO: result: no" >&5
8251 echo "${ECHO_T}no" >&6
8255 echo "$as_me:$LINENO: result: no" >&5
8256 echo "${ECHO_T}no" >&6
8261 if test "x$enable_dlopen" != xyes; then
8262 enable_dlopen=unknown
8263 enable_dlopen_self=unknown
8264 enable_dlopen_self_static=unknown
8271 lt_cv_dlopen="load_add_on"
8273 lt_cv_dlopen_self=yes
8277 lt_cv_dlopen="LoadLibrary"
8282 lt_cv_dlopen="dlopen"
8287 # if libdl is installed we need to link against it
8288 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8289 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8290 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8291 echo $ECHO_N "(cached) $ECHO_C" >&6
8293 ac_check_lib_save_LIBS=$LIBS
8295 cat >conftest.$ac_ext <<_ACEOF
8298 cat confdefs.h >>conftest.$ac_ext
8299 cat >>conftest.$ac_ext <<_ACEOF
8300 /* end confdefs.h. */
8302 /* Override any gcc2 internal prototype to avoid an error. */
8306 /* We use char because int might match the return type of a gcc2
8307 builtin and then its argument prototype would still apply. */
8317 rm -f conftest.$ac_objext conftest$ac_exeext
8318 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8319 (eval $ac_link) 2>conftest.er1
8321 grep -v '^ *+' conftest.er1 >conftest.err
8323 cat conftest.err >&5
8324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8325 (exit $ac_status); } &&
8326 { ac_try='test -z "$ac_c_werror_flag"
8327 || test ! -s conftest.err'
8328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8332 (exit $ac_status); }; } &&
8333 { ac_try='test -s conftest$ac_exeext'
8334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8338 (exit $ac_status); }; }; then
8339 ac_cv_lib_dl_dlopen=yes
8341 echo "$as_me: failed program was:" >&5
8342 sed 's/^/| /' conftest.$ac_ext >&5
8344 ac_cv_lib_dl_dlopen=no
8346 rm -f conftest.err conftest.$ac_objext \
8347 conftest$ac_exeext conftest.$ac_ext
8348 LIBS=$ac_check_lib_save_LIBS
8350 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8351 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8352 if test $ac_cv_lib_dl_dlopen = yes; then
8353 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8358 lt_cv_dlopen_self=yes
8365 echo "$as_me:$LINENO: checking for shl_load" >&5
8366 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8367 if test "${ac_cv_func_shl_load+set}" = set; then
8368 echo $ECHO_N "(cached) $ECHO_C" >&6
8370 cat >conftest.$ac_ext <<_ACEOF
8373 cat confdefs.h >>conftest.$ac_ext
8374 cat >>conftest.$ac_ext <<_ACEOF
8375 /* end confdefs.h. */
8376 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8377 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8378 #define shl_load innocuous_shl_load
8380 /* System header to define __stub macros and hopefully few prototypes,
8381 which can conflict with char shl_load (); below.
8382 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8383 <limits.h> exists even on freestanding compilers. */
8386 # include <limits.h>
8388 # include <assert.h>
8393 /* Override any gcc2 internal prototype to avoid an error. */
8398 /* We use char because int might match the return type of a gcc2
8399 builtin and then its argument prototype would still apply. */
8401 /* The GNU C library defines this for functions which it implements
8402 to always fail with ENOSYS. Some functions are actually named
8403 something starting with __ and the normal name is an alias. */
8404 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8407 char (*f) () = shl_load;
8416 return f != shl_load;
8421 rm -f conftest.$ac_objext conftest$ac_exeext
8422 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8423 (eval $ac_link) 2>conftest.er1
8425 grep -v '^ *+' conftest.er1 >conftest.err
8427 cat conftest.err >&5
8428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8429 (exit $ac_status); } &&
8430 { ac_try='test -z "$ac_c_werror_flag"
8431 || test ! -s conftest.err'
8432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8436 (exit $ac_status); }; } &&
8437 { ac_try='test -s conftest$ac_exeext'
8438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8442 (exit $ac_status); }; }; then
8443 ac_cv_func_shl_load=yes
8445 echo "$as_me: failed program was:" >&5
8446 sed 's/^/| /' conftest.$ac_ext >&5
8448 ac_cv_func_shl_load=no
8450 rm -f conftest.err conftest.$ac_objext \
8451 conftest$ac_exeext conftest.$ac_ext
8453 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8454 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8455 if test $ac_cv_func_shl_load = yes; then
8456 lt_cv_dlopen="shl_load"
8458 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8459 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8460 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8461 echo $ECHO_N "(cached) $ECHO_C" >&6
8463 ac_check_lib_save_LIBS=$LIBS
8465 cat >conftest.$ac_ext <<_ACEOF
8468 cat confdefs.h >>conftest.$ac_ext
8469 cat >>conftest.$ac_ext <<_ACEOF
8470 /* end confdefs.h. */
8472 /* Override any gcc2 internal prototype to avoid an error. */
8476 /* We use char because int might match the return type of a gcc2
8477 builtin and then its argument prototype would still apply. */
8487 rm -f conftest.$ac_objext conftest$ac_exeext
8488 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8489 (eval $ac_link) 2>conftest.er1
8491 grep -v '^ *+' conftest.er1 >conftest.err
8493 cat conftest.err >&5
8494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8495 (exit $ac_status); } &&
8496 { ac_try='test -z "$ac_c_werror_flag"
8497 || test ! -s conftest.err'
8498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8502 (exit $ac_status); }; } &&
8503 { ac_try='test -s conftest$ac_exeext'
8504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8508 (exit $ac_status); }; }; then
8509 ac_cv_lib_dld_shl_load=yes
8511 echo "$as_me: failed program was:" >&5
8512 sed 's/^/| /' conftest.$ac_ext >&5
8514 ac_cv_lib_dld_shl_load=no
8516 rm -f conftest.err conftest.$ac_objext \
8517 conftest$ac_exeext conftest.$ac_ext
8518 LIBS=$ac_check_lib_save_LIBS
8520 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8521 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8522 if test $ac_cv_lib_dld_shl_load = yes; then
8523 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8525 echo "$as_me:$LINENO: checking for dlopen" >&5
8526 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8527 if test "${ac_cv_func_dlopen+set}" = set; then
8528 echo $ECHO_N "(cached) $ECHO_C" >&6
8530 cat >conftest.$ac_ext <<_ACEOF
8533 cat confdefs.h >>conftest.$ac_ext
8534 cat >>conftest.$ac_ext <<_ACEOF
8535 /* end confdefs.h. */
8536 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8537 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8538 #define dlopen innocuous_dlopen
8540 /* System header to define __stub macros and hopefully few prototypes,
8541 which can conflict with char dlopen (); below.
8542 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8543 <limits.h> exists even on freestanding compilers. */
8546 # include <limits.h>
8548 # include <assert.h>
8553 /* Override any gcc2 internal prototype to avoid an error. */
8558 /* We use char because int might match the return type of a gcc2
8559 builtin and then its argument prototype would still apply. */
8561 /* The GNU C library defines this for functions which it implements
8562 to always fail with ENOSYS. Some functions are actually named
8563 something starting with __ and the normal name is an alias. */
8564 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8567 char (*f) () = dlopen;
8581 rm -f conftest.$ac_objext conftest$ac_exeext
8582 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8583 (eval $ac_link) 2>conftest.er1
8585 grep -v '^ *+' conftest.er1 >conftest.err
8587 cat conftest.err >&5
8588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8589 (exit $ac_status); } &&
8590 { ac_try='test -z "$ac_c_werror_flag"
8591 || test ! -s conftest.err'
8592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8596 (exit $ac_status); }; } &&
8597 { ac_try='test -s conftest$ac_exeext'
8598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8602 (exit $ac_status); }; }; then
8603 ac_cv_func_dlopen=yes
8605 echo "$as_me: failed program was:" >&5
8606 sed 's/^/| /' conftest.$ac_ext >&5
8608 ac_cv_func_dlopen=no
8610 rm -f conftest.err conftest.$ac_objext \
8611 conftest$ac_exeext conftest.$ac_ext
8613 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8614 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8615 if test $ac_cv_func_dlopen = yes; then
8616 lt_cv_dlopen="dlopen"
8618 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8619 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8620 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8621 echo $ECHO_N "(cached) $ECHO_C" >&6
8623 ac_check_lib_save_LIBS=$LIBS
8625 cat >conftest.$ac_ext <<_ACEOF
8628 cat confdefs.h >>conftest.$ac_ext
8629 cat >>conftest.$ac_ext <<_ACEOF
8630 /* end confdefs.h. */
8632 /* Override any gcc2 internal prototype to avoid an error. */
8636 /* We use char because int might match the return type of a gcc2
8637 builtin and then its argument prototype would still apply. */
8647 rm -f conftest.$ac_objext conftest$ac_exeext
8648 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8649 (eval $ac_link) 2>conftest.er1
8651 grep -v '^ *+' conftest.er1 >conftest.err
8653 cat conftest.err >&5
8654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8655 (exit $ac_status); } &&
8656 { ac_try='test -z "$ac_c_werror_flag"
8657 || test ! -s conftest.err'
8658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8662 (exit $ac_status); }; } &&
8663 { ac_try='test -s conftest$ac_exeext'
8664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8668 (exit $ac_status); }; }; then
8669 ac_cv_lib_dl_dlopen=yes
8671 echo "$as_me: failed program was:" >&5
8672 sed 's/^/| /' conftest.$ac_ext >&5
8674 ac_cv_lib_dl_dlopen=no
8676 rm -f conftest.err conftest.$ac_objext \
8677 conftest$ac_exeext conftest.$ac_ext
8678 LIBS=$ac_check_lib_save_LIBS
8680 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8681 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8682 if test $ac_cv_lib_dl_dlopen = yes; then
8683 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8685 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8686 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8687 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8688 echo $ECHO_N "(cached) $ECHO_C" >&6
8690 ac_check_lib_save_LIBS=$LIBS
8692 cat >conftest.$ac_ext <<_ACEOF
8695 cat confdefs.h >>conftest.$ac_ext
8696 cat >>conftest.$ac_ext <<_ACEOF
8697 /* end confdefs.h. */
8699 /* Override any gcc2 internal prototype to avoid an error. */
8703 /* We use char because int might match the return type of a gcc2
8704 builtin and then its argument prototype would still apply. */
8714 rm -f conftest.$ac_objext conftest$ac_exeext
8715 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8716 (eval $ac_link) 2>conftest.er1
8718 grep -v '^ *+' conftest.er1 >conftest.err
8720 cat conftest.err >&5
8721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8722 (exit $ac_status); } &&
8723 { ac_try='test -z "$ac_c_werror_flag"
8724 || test ! -s conftest.err'
8725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8729 (exit $ac_status); }; } &&
8730 { ac_try='test -s conftest$ac_exeext'
8731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8735 (exit $ac_status); }; }; then
8736 ac_cv_lib_svld_dlopen=yes
8738 echo "$as_me: failed program was:" >&5
8739 sed 's/^/| /' conftest.$ac_ext >&5
8741 ac_cv_lib_svld_dlopen=no
8743 rm -f conftest.err conftest.$ac_objext \
8744 conftest$ac_exeext conftest.$ac_ext
8745 LIBS=$ac_check_lib_save_LIBS
8747 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8748 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8749 if test $ac_cv_lib_svld_dlopen = yes; then
8750 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8752 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8753 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8754 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8755 echo $ECHO_N "(cached) $ECHO_C" >&6
8757 ac_check_lib_save_LIBS=$LIBS
8759 cat >conftest.$ac_ext <<_ACEOF
8762 cat confdefs.h >>conftest.$ac_ext
8763 cat >>conftest.$ac_ext <<_ACEOF
8764 /* end confdefs.h. */
8766 /* Override any gcc2 internal prototype to avoid an error. */
8770 /* We use char because int might match the return type of a gcc2
8771 builtin and then its argument prototype would still apply. */
8781 rm -f conftest.$ac_objext conftest$ac_exeext
8782 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8783 (eval $ac_link) 2>conftest.er1
8785 grep -v '^ *+' conftest.er1 >conftest.err
8787 cat conftest.err >&5
8788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8789 (exit $ac_status); } &&
8790 { ac_try='test -z "$ac_c_werror_flag"
8791 || test ! -s conftest.err'
8792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8796 (exit $ac_status); }; } &&
8797 { ac_try='test -s conftest$ac_exeext'
8798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8802 (exit $ac_status); }; }; then
8803 ac_cv_lib_dld_dld_link=yes
8805 echo "$as_me: failed program was:" >&5
8806 sed 's/^/| /' conftest.$ac_ext >&5
8808 ac_cv_lib_dld_dld_link=no
8810 rm -f conftest.err conftest.$ac_objext \
8811 conftest$ac_exeext conftest.$ac_ext
8812 LIBS=$ac_check_lib_save_LIBS
8814 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8815 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8816 if test $ac_cv_lib_dld_dld_link = yes; then
8817 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8838 if test "x$lt_cv_dlopen" != xno; then
8844 case $lt_cv_dlopen in
8846 save_CPPFLAGS="$CPPFLAGS"
8847 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8849 save_LDFLAGS="$LDFLAGS"
8850 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8853 LIBS="$lt_cv_dlopen_libs $LIBS"
8855 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8856 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8857 if test "${lt_cv_dlopen_self+set}" = set; then
8858 echo $ECHO_N "(cached) $ECHO_C" >&6
8860 if test "$cross_compiling" = yes; then :
8861 lt_cv_dlopen_self=cross
8863 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8864 lt_status=$lt_dlunknown
8865 cat > conftest.$ac_ext <<EOF
8866 #line __oline__ "configure"
8867 #include "confdefs.h"
8876 # define LT_DLGLOBAL RTLD_GLOBAL
8879 # define LT_DLGLOBAL DL_GLOBAL
8881 # define LT_DLGLOBAL 0
8885 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8886 find out it does not work in some platform. */
8887 #ifndef LT_DLLAZY_OR_NOW
8889 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8892 # define LT_DLLAZY_OR_NOW DL_LAZY
8895 # define LT_DLLAZY_OR_NOW RTLD_NOW
8898 # define LT_DLLAZY_OR_NOW DL_NOW
8900 # define LT_DLLAZY_OR_NOW 0
8908 extern "C" void exit (int);
8911 void fnord() { int i=42;}
8914 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8915 int status = $lt_dlunknown;
8919 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8920 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8921 /* dlclose (self); */
8927 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8928 (eval $ac_link) 2>&5
8930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8931 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8932 (./conftest; exit; ) 2>/dev/null
8935 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8936 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8937 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8940 # compilation failed
8941 lt_cv_dlopen_self=no
8948 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8949 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8951 if test "x$lt_cv_dlopen_self" = xyes; then
8952 LDFLAGS="$LDFLAGS $link_static_flag"
8953 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8954 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8955 if test "${lt_cv_dlopen_self_static+set}" = set; then
8956 echo $ECHO_N "(cached) $ECHO_C" >&6
8958 if test "$cross_compiling" = yes; then :
8959 lt_cv_dlopen_self_static=cross
8961 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8962 lt_status=$lt_dlunknown
8963 cat > conftest.$ac_ext <<EOF
8964 #line __oline__ "configure"
8965 #include "confdefs.h"
8974 # define LT_DLGLOBAL RTLD_GLOBAL
8977 # define LT_DLGLOBAL DL_GLOBAL
8979 # define LT_DLGLOBAL 0
8983 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8984 find out it does not work in some platform. */
8985 #ifndef LT_DLLAZY_OR_NOW
8987 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8990 # define LT_DLLAZY_OR_NOW DL_LAZY
8993 # define LT_DLLAZY_OR_NOW RTLD_NOW
8996 # define LT_DLLAZY_OR_NOW DL_NOW
8998 # define LT_DLLAZY_OR_NOW 0
9006 extern "C" void exit (int);
9009 void fnord() { int i=42;}
9012 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9013 int status = $lt_dlunknown;
9017 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9018 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9019 /* dlclose (self); */
9025 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9026 (eval $ac_link) 2>&5
9028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9029 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9030 (./conftest; exit; ) 2>/dev/null
9033 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9034 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9035 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
9038 # compilation failed
9039 lt_cv_dlopen_self_static=no
9046 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9047 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9050 CPPFLAGS="$save_CPPFLAGS"
9051 LDFLAGS="$save_LDFLAGS"
9056 case $lt_cv_dlopen_self in
9057 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9058 *) enable_dlopen_self=unknown ;;
9061 case $lt_cv_dlopen_self_static in
9062 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9063 *) enable_dlopen_self_static=unknown ;;
9068 # Report which librarie types wil actually be built
9069 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9070 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9071 echo "$as_me:$LINENO: result: $can_build_shared" >&5
9072 echo "${ECHO_T}$can_build_shared" >&6
9074 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9075 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9076 test "$can_build_shared" = "no" && enable_shared=no
9078 # On AIX, shared libraries and static libraries use the same namespace, and
9079 # are all built from PIC.
9082 test "$enable_shared" = yes && enable_static=no
9083 if test -n "$RANLIB"; then
9084 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9085 postinstall_cmds='$RANLIB $lib'
9090 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9091 test "$enable_shared" = yes && enable_static=no
9095 echo "$as_me:$LINENO: result: $enable_shared" >&5
9096 echo "${ECHO_T}$enable_shared" >&6
9098 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9099 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9100 # Make sure either enable_shared or enable_static is yes.
9101 test "$enable_shared" = yes || enable_static=yes
9102 echo "$as_me:$LINENO: result: $enable_static" >&5
9103 echo "${ECHO_T}$enable_static" >&6
9105 # The else clause should only fire when bootstrapping the
9106 # libtool distribution, otherwise you forgot to ship ltmain.sh
9107 # with your package, and you will get complaints that there are
9108 # no rules to generate ltmain.sh.
9109 if test -f "$ltmain"; then
9110 # See if we are running on zsh, and set the options which allow our commands through
9111 # without removal of \ escapes.
9112 if test -n "${ZSH_VERSION+set}" ; then
9113 setopt NO_GLOB_SUBST
9115 # Now quote all the things that may contain metacharacters while being
9116 # careful not to overquote the AC_SUBSTed values. We take copies of the
9117 # variables and quote the copies for generation of the libtool script.
9118 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
9120 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9121 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9122 deplibs_check_method reload_flag reload_cmds need_locks \
9123 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9124 lt_cv_sys_global_symbol_to_c_name_address \
9125 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9126 old_postinstall_cmds old_postuninstall_cmds \
9130 lt_prog_compiler_wl \
9131 lt_prog_compiler_pic \
9132 lt_prog_compiler_static \
9133 lt_prog_compiler_no_builtin_flag \
9134 export_dynamic_flag_spec \
9135 thread_safe_flag_spec \
9136 whole_archive_flag_spec \
9137 enable_shared_with_static_runtimes \
9139 old_archive_from_new_cmds \
9144 compiler_lib_search_path \
9146 archive_expsym_cmds \
9148 postuninstall_cmds \
9149 old_archive_from_expsyms_cmds \
9150 allow_undefined_flag \
9152 export_symbols_cmds \
9153 hardcode_libdir_flag_spec \
9154 hardcode_libdir_flag_spec_ld \
9155 hardcode_libdir_separator \
9156 hardcode_automatic \
9158 module_expsym_cmds \
9159 lt_cv_prog_compiler_c_o \
9164 old_archive_cmds | \
9165 old_archive_from_new_cmds | \
9167 archive_expsym_cmds | \
9169 module_expsym_cmds | \
9170 old_archive_from_expsyms_cmds | \
9171 export_symbols_cmds | \
9172 extract_expsyms_cmds | reload_cmds | finish_cmds | \
9173 postinstall_cmds | postuninstall_cmds | \
9174 old_postinstall_cmds | old_postuninstall_cmds | \
9175 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9176 # Double-quote double-evaled strings.
9177 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9180 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9186 *'\$0 --fallback-echo"')
9187 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9192 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9194 { echo "$as_me:$LINENO: creating $ofile" >&5
9195 echo "$as_me: creating $ofile" >&6;}
9197 cat <<__EOF__ >> "$cfgfile"
9200 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9201 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9202 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9204 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9205 # Free Software Foundation, Inc.
9207 # This file is part of GNU Libtool:
9208 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9210 # This program is free software; you can redistribute it and/or modify
9211 # it under the terms of the GNU General Public License as published by
9212 # the Free Software Foundation; either version 2 of the License, or
9213 # (at your option) any later version.
9215 # This program is distributed in the hope that it will be useful, but
9216 # WITHOUT ANY WARRANTY; without even the implied warranty of
9217 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9218 # General Public License for more details.
9220 # You should have received a copy of the GNU General Public License
9221 # along with this program; if not, write to the Free Software
9222 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9224 # As a special exception to the GNU General Public License, if you
9225 # distribute this file as part of a program that contains a
9226 # configuration script generated by Autoconf, you may include it under
9227 # the same distribution terms that you use for the rest of that program.
9229 # A sed program that does not truncate output.
9232 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9233 Xsed="$SED -e 1s/^X//"
9235 # The HP-UX ksh and POSIX shell print the target directory to stdout
9237 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9239 # The names of the tagged configurations supported by this script.
9242 # ### BEGIN LIBTOOL CONFIG
9244 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9246 # Shell to use when invoking shell scripts.
9249 # Whether or not to build shared libraries.
9250 build_libtool_libs=$enable_shared
9252 # Whether or not to build static libraries.
9253 build_old_libs=$enable_static
9255 # Whether or not to add -lc for building shared libraries.
9256 build_libtool_need_lc=$archive_cmds_need_lc
9258 # Whether or not to disallow shared libs when runtime libs are static
9259 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9261 # Whether or not to optimize for fast installation.
9262 fast_install=$enable_fast_install
9265 host_alias=$host_alias
9270 build_alias=$build_alias
9274 # An echo program that does not interpret backslashes.
9279 AR_FLAGS=$lt_AR_FLAGS
9284 # A language-specific compiler.
9287 # Is the compiler the GNU C compiler?
9293 # The linker used to build libraries.
9296 # Whether we need hard or soft links.
9299 # A BSD-compatible nm program.
9302 # A symbol stripping program
9305 # Used to examine libraries when file_magic_cmd begins "file"
9306 MAGIC_CMD=$MAGIC_CMD
9308 # Used on cygwin: DLL creation program.
9311 # Used on cygwin: object dumper.
9314 # Used on cygwin: assembler.
9317 # The name of the directory that contains temporary libtool files.
9320 # How to create reloadable object files.
9321 reload_flag=$lt_reload_flag
9322 reload_cmds=$lt_reload_cmds
9324 # How to pass a linker flag through the compiler.
9325 wl=$lt_lt_prog_compiler_wl
9327 # Object file suffix (normally "o").
9330 # Old archive suffix (normally "a").
9333 # Shared library suffix (normally ".so").
9334 shrext_cmds='$shrext_cmds'
9336 # Executable file suffix (normally "").
9339 # Additional compiler flags for building library objects.
9340 pic_flag=$lt_lt_prog_compiler_pic
9343 # What is the maximum length of a command?
9344 max_cmd_len=$lt_cv_sys_max_cmd_len
9346 # Does compiler simultaneously support -c and -o options?
9347 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9349 # Must we lock files when doing compilation?
9350 need_locks=$lt_need_locks
9352 # Do we need the lib prefix for modules?
9353 need_lib_prefix=$need_lib_prefix
9355 # Do we need a version for libraries?
9356 need_version=$need_version
9358 # Whether dlopen is supported.
9359 dlopen_support=$enable_dlopen
9361 # Whether dlopen of programs is supported.
9362 dlopen_self=$enable_dlopen_self
9364 # Whether dlopen of statically linked programs is supported.
9365 dlopen_self_static=$enable_dlopen_self_static
9367 # Compiler flag to prevent dynamic linking.
9368 link_static_flag=$lt_lt_prog_compiler_static
9370 # Compiler flag to turn off builtin functions.
9371 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9373 # Compiler flag to allow reflexive dlopens.
9374 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9376 # Compiler flag to generate shared objects directly from archives.
9377 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9379 # Compiler flag to generate thread-safe objects.
9380 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9382 # Library versioning type.
9383 version_type=$version_type
9385 # Format of library name prefix.
9386 libname_spec=$lt_libname_spec
9388 # List of archive names. First name is the real one, the rest are links.
9389 # The last name is the one that the linker finds with -lNAME.
9390 library_names_spec=$lt_library_names_spec
9392 # The coded name of the library, if different from the real name.
9393 soname_spec=$lt_soname_spec
9395 # Commands used to build and install an old-style archive.
9397 old_archive_cmds=$lt_old_archive_cmds
9398 old_postinstall_cmds=$lt_old_postinstall_cmds
9399 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9401 # Create an old-style archive from a shared archive.
9402 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9404 # Create a temporary old-style archive to link instead of a shared archive.
9405 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9407 # Commands used to build and install a shared archive.
9408 archive_cmds=$lt_archive_cmds
9409 archive_expsym_cmds=$lt_archive_expsym_cmds
9410 postinstall_cmds=$lt_postinstall_cmds
9411 postuninstall_cmds=$lt_postuninstall_cmds
9413 # Commands used to build a loadable module (assumed same as above if empty)
9414 module_cmds=$lt_module_cmds
9415 module_expsym_cmds=$lt_module_expsym_cmds
9417 # Commands to strip libraries.
9418 old_striplib=$lt_old_striplib
9419 striplib=$lt_striplib
9421 # Dependencies to place before the objects being linked to create a
9423 predep_objects=$lt_predep_objects
9425 # Dependencies to place after the objects being linked to create a
9427 postdep_objects=$lt_postdep_objects
9429 # Dependencies to place before the objects being linked to create a
9433 # Dependencies to place after the objects being linked to create a
9435 postdeps=$lt_postdeps
9437 # The library search path used internally by the compiler when linking
9439 compiler_lib_search_path=$lt_compiler_lib_search_path
9441 # Method to check whether dependent libraries are shared objects.
9442 deplibs_check_method=$lt_deplibs_check_method
9444 # Command to use when deplibs_check_method == file_magic.
9445 file_magic_cmd=$lt_file_magic_cmd
9447 # Flag that allows shared libraries with undefined symbols to be built.
9448 allow_undefined_flag=$lt_allow_undefined_flag
9450 # Flag that forces no undefined symbols.
9451 no_undefined_flag=$lt_no_undefined_flag
9453 # Commands used to finish a libtool library installation in a directory.
9454 finish_cmds=$lt_finish_cmds
9456 # Same as above, but a single script fragment to be evaled but not shown.
9457 finish_eval=$lt_finish_eval
9459 # Take the output of nm and produce a listing of raw symbols and C names.
9460 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9462 # Transform the output of nm in a proper C declaration
9463 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9465 # Transform the output of nm in a C name address pair
9466 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9468 # This is the shared library runtime path variable.
9469 runpath_var=$runpath_var
9471 # This is the shared library path variable.
9472 shlibpath_var=$shlibpath_var
9474 # Is shlibpath searched before the hard-coded library search path?
9475 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9477 # How to hardcode a shared library path into an executable.
9478 hardcode_action=$hardcode_action
9480 # Whether we should hardcode library paths into libraries.
9481 hardcode_into_libs=$hardcode_into_libs
9483 # Flag to hardcode \$libdir into a binary during linking.
9484 # This must work even if \$libdir does not exist.
9485 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9487 # If ld is used when linking, flag to hardcode \$libdir into
9488 # a binary during linking. This must work even if \$libdir does
9490 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9492 # Whether we need a single -rpath flag with a separated argument.
9493 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9495 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9497 hardcode_direct=$hardcode_direct
9499 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9501 hardcode_minus_L=$hardcode_minus_L
9503 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9504 # the resulting binary.
9505 hardcode_shlibpath_var=$hardcode_shlibpath_var
9507 # Set to yes if building a shared library automatically hardcodes DIR into the library
9508 # and all subsequent libraries and executables linked against it.
9509 hardcode_automatic=$hardcode_automatic
9511 # Variables whose values should be saved in libtool wrapper scripts and
9512 # restored at relink time.
9513 variables_saved_for_relink="$variables_saved_for_relink"
9515 # Whether libtool must link a program against all its dependency libraries.
9516 link_all_deplibs=$link_all_deplibs
9518 # Compile-time system search path for libraries
9519 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9521 # Run-time system search path for libraries
9522 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9524 # Fix the shell variable \$srcfile for the compiler.
9525 fix_srcfile_path="$fix_srcfile_path"
9527 # Set to yes if exported symbols are required.
9528 always_export_symbols=$always_export_symbols
9530 # The commands to list exported symbols.
9531 export_symbols_cmds=$lt_export_symbols_cmds
9533 # The commands to extract the exported symbol list from a shared archive.
9534 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9536 # Symbols that should not be listed in the preloaded symbols.
9537 exclude_expsyms=$lt_exclude_expsyms
9539 # Symbols that must always be exported.
9540 include_expsyms=$lt_include_expsyms
9542 # ### END LIBTOOL CONFIG
9549 cat <<\EOF >> "$cfgfile"
9551 # AIX sometimes has problems with the GCC collect2 program. For some
9552 # reason, if we set the COLLECT_NAMES environment variable, the problems
9553 # vanish in a puff of smoke.
9554 if test "X${COLLECT_NAMES+set}" != Xset; then
9556 export COLLECT_NAMES
9562 # We use sed instead of cat because bash on DJGPP gets confused if
9563 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9564 # text mode, it properly converts lines to CR/LF. This bash problem
9565 # is reportedly fixed, but why not run on old versions too?
9566 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9568 mv -f "$cfgfile" "$ofile" || \
9569 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9573 # If there is no Makefile yet, we rely on a make rule to execute
9574 # `config.status --recheck' to rerun these tests and create the
9575 # libtool script then.
9576 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9577 if test -f "$ltmain_in"; then
9578 test -f Makefile && make "$ltmain"
9584 ac_cpp='$CPP $CPPFLAGS'
9585 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9586 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9587 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9592 # Check whether --with-tags or --without-tags was given.
9593 if test "${with_tags+set}" = set; then
9594 withval="$with_tags"
9598 if test -f "$ltmain" && test -n "$tagnames"; then
9599 if test ! -f "${ofile}"; then
9600 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9601 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9604 if test -z "$LTCC"; then
9605 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9606 if test -z "$LTCC"; then
9607 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9608 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9610 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9611 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9615 # Extract list of available tagged configurations in $ofile.
9616 # Note that this assumes the entire list is on one line.
9617 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9619 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9620 for tagname in $tagnames; do
9622 # Check whether tagname contains only valid characters
9623 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9625 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9626 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9627 { (exit 1); exit 1; }; }
9631 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9633 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9634 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9635 { (exit 1); exit 1; }; }
9638 # Update the list of available tags.
9639 if test -n "$tagname"; then
9640 echo appending configuration tag \"$tagname\" to $ofile
9644 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
9645 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
9646 (test "X$CXX" != "Xg++"))) ; then
9648 ac_cpp='$CXXCPP $CPPFLAGS'
9649 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9650 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9651 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9656 archive_cmds_need_lc_CXX=no
9657 allow_undefined_flag_CXX=
9658 always_export_symbols_CXX=no
9659 archive_expsym_cmds_CXX=
9660 export_dynamic_flag_spec_CXX=
9661 hardcode_direct_CXX=no
9662 hardcode_libdir_flag_spec_CXX=
9663 hardcode_libdir_flag_spec_ld_CXX=
9664 hardcode_libdir_separator_CXX=
9665 hardcode_minus_L_CXX=no
9666 hardcode_automatic_CXX=no
9668 module_expsym_cmds_CXX=
9669 link_all_deplibs_CXX=unknown
9670 old_archive_cmds_CXX=$old_archive_cmds
9671 no_undefined_flag_CXX=
9672 whole_archive_flag_spec_CXX=
9673 enable_shared_with_static_runtimes_CXX=no
9675 # Dependencies to place before and after the object being linked:
9677 postdep_objects_CXX=
9680 compiler_lib_search_path_CXX=
9682 # Source file extension for C++ test sources.
9685 # Object file extension for compiled C++ test sources.
9689 # Code to be used in simple compile tests
9690 lt_simple_compile_test_code="int some_variable = 0;\n"
9692 # Code to be used in simple link tests
9693 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9695 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9697 # If no C compiler was specified, use CC.
9700 # Allow CC to be a program name with arguments.
9704 # save warnings/boilerplate of simple test code
9705 ac_outfile=conftest.$ac_objext
9706 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
9707 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
9708 _lt_compiler_boilerplate=`cat conftest.err`
9711 ac_outfile=conftest.$ac_objext
9712 printf "$lt_simple_link_test_code" >conftest.$ac_ext
9713 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
9714 _lt_linker_boilerplate=`cat conftest.err`
9718 # Allow CC to be a program name with arguments.
9723 lt_save_with_gnu_ld=$with_gnu_ld
9724 lt_save_path_LD=$lt_cv_path_LD
9725 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9726 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9728 unset lt_cv_prog_gnu_ld
9730 if test -n "${lt_cv_path_LDCXX+set}"; then
9731 lt_cv_path_LD=$lt_cv_path_LDCXX
9735 test -z "${LDCXX+set}" || LD=$LDCXX
9739 for cc_temp in $compiler""; do
9741 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9742 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9747 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9750 # We don't want -fno-exception wen compiling C++ code, so set the
9751 # no_builtin_flag separately
9752 if test "$GXX" = yes; then
9753 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9755 lt_prog_compiler_no_builtin_flag_CXX=
9758 if test "$GXX" = yes; then
9759 # Set up default GNU C++ configuration
9762 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9763 if test "${with_gnu_ld+set}" = set; then
9764 withval="$with_gnu_ld"
9765 test "$withval" = no || with_gnu_ld=yes
9770 if test "$GCC" = yes; then
9771 # Check if gcc -print-prog-name=ld gives a path.
9772 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9773 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9776 # gcc leaves a trailing carriage return which upsets mingw
9777 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9779 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9782 # Accept absolute paths.
9784 re_direlt='/[^/][^/]*/\.\./'
9785 # Canonicalize the pathname of ld
9786 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9787 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9788 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9790 test -z "$LD" && LD="$ac_prog"
9793 # If it fails, then pretend we aren't using GCC.
9797 # If it is relative, then search for the first ld in PATH.
9801 elif test "$with_gnu_ld" = yes; then
9802 echo "$as_me:$LINENO: checking for GNU ld" >&5
9803 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9805 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9806 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9808 if test "${lt_cv_path_LD+set}" = set; then
9809 echo $ECHO_N "(cached) $ECHO_C" >&6
9811 if test -z "$LD"; then
9812 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9813 for ac_dir in $PATH; do
9815 test -z "$ac_dir" && ac_dir=.
9816 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9817 lt_cv_path_LD="$ac_dir/$ac_prog"
9818 # Check to see if the program is GNU ld. I'd rather use --version,
9819 # but apparently some GNU ld's only accept -v.
9820 # Break only if it was the GNU/non-GNU ld that we prefer.
9821 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9822 *GNU* | *'with BFD'*)
9823 test "$with_gnu_ld" != no && break
9826 test "$with_gnu_ld" != yes && break
9833 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9838 if test -n "$LD"; then
9839 echo "$as_me:$LINENO: result: $LD" >&5
9840 echo "${ECHO_T}$LD" >&6
9842 echo "$as_me:$LINENO: result: no" >&5
9843 echo "${ECHO_T}no" >&6
9845 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9846 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9847 { (exit 1); exit 1; }; }
9848 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9849 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9850 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9851 echo $ECHO_N "(cached) $ECHO_C" >&6
9853 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9854 case `$LD -v 2>&1 </dev/null` in
9855 *GNU* | *'with BFD'*)
9856 lt_cv_prog_gnu_ld=yes
9859 lt_cv_prog_gnu_ld=no
9863 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9864 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9865 with_gnu_ld=$lt_cv_prog_gnu_ld
9869 # Check if GNU C++ uses GNU ld as the underlying linker, since the
9870 # archiving commands below assume that GNU ld is being used.
9871 if test "$with_gnu_ld" = yes; then
9872 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9873 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'
9875 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9876 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9878 # If archive_cmds runs LD, not CC, wlarc should be empty
9879 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9880 # investigate it a little bit more. (MM)
9883 # ancient GNU ld didn't support --whole-archive et. al.
9884 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9885 grep 'no-whole-archive' > /dev/null; then
9886 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9888 whole_archive_flag_spec_CXX=
9894 # A generic and very simple default shared library creation
9895 # command for GNU C++ for the case where it uses the native
9896 # linker, instead of GNU ld. If possible, this setting should
9897 # overridden to take advantage of the native linker features on
9898 # the platform it is being used on.
9899 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9902 # Commands to make compiler produce verbose output that lists
9903 # what "hidden" libraries, object files and flags are used when
9904 # linking a shared library.
9905 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9913 # PORTME: fill in a description of your system's C++ link characteristics
9914 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9915 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9919 # FIXME: insert proper C++ library support
9923 if test "$host_cpu" = ia64; then
9924 # On IA64, the linker does run time linking by default, so we don't
9925 # have to do anything special.
9926 aix_use_runtimelinking=no
9927 exp_sym_flag='-Bexport'
9930 aix_use_runtimelinking=no
9932 # Test if we are trying to use run time linking or normal
9933 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9934 # need to do runtime linking.
9935 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9936 for ld_flag in $LDFLAGS; do
9939 aix_use_runtimelinking=yes
9946 exp_sym_flag='-bexport'
9947 no_entry_flag='-bnoentry'
9950 # When large executables or shared objects are built, AIX ld can
9951 # have problems creating the table of contents. If linking a library
9952 # or program results in "error TOC overflow" add -mminimal-toc to
9953 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9954 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9957 hardcode_direct_CXX=yes
9958 hardcode_libdir_separator_CXX=':'
9959 link_all_deplibs_CXX=yes
9961 if test "$GXX" = yes; then
9962 case $host_os in aix4.[012]|aix4.[012].*)
9963 # We only want to do this on AIX 4.2 and lower, the check
9964 # below for broken collect2 doesn't work under 4.3+
9965 collect2name=`${CC} -print-prog-name=collect2`
9966 if test -f "$collect2name" && \
9967 strings "$collect2name" | grep resolve_lib_name >/dev/null
9969 # We have reworked collect2
9970 hardcode_direct_CXX=yes
9972 # We have old collect2
9973 hardcode_direct_CXX=unsupported
9974 # It fails to find uninstalled libraries when the uninstalled
9975 # path is not listed in the libpath. Setting hardcode_minus_L
9976 # to unsupported forces relinking
9977 hardcode_minus_L_CXX=yes
9978 hardcode_libdir_flag_spec_CXX='-L$libdir'
9979 hardcode_libdir_separator_CXX=
9982 shared_flag='-shared'
9983 if test "$aix_use_runtimelinking" = yes; then
9984 shared_flag="$shared_flag "'${wl}-G'
9988 if test "$host_cpu" = ia64; then
9989 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9990 # chokes on -Wl,-G. The following line is correct:
9993 if test "$aix_use_runtimelinking" = yes; then
9994 shared_flag='${wl}-G'
9996 shared_flag='${wl}-bM:SRE'
10001 # It seems that -bexpall does not export symbols beginning with
10002 # underscore (_), so it is better to generate a list of symbols to export.
10003 always_export_symbols_CXX=yes
10004 if test "$aix_use_runtimelinking" = yes; then
10005 # Warning - without using the other runtime loading flags (-brtl),
10006 # -berok will link without error, but may produce a broken library.
10007 allow_undefined_flag_CXX='-berok'
10008 # Determine the default libpath from the value encoded in an empty executable.
10009 cat >conftest.$ac_ext <<_ACEOF
10012 cat confdefs.h >>conftest.$ac_ext
10013 cat >>conftest.$ac_ext <<_ACEOF
10014 /* end confdefs.h. */
10024 rm -f conftest.$ac_objext conftest$ac_exeext
10025 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10026 (eval $ac_link) 2>conftest.er1
10028 grep -v '^ *+' conftest.er1 >conftest.err
10030 cat conftest.err >&5
10031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10032 (exit $ac_status); } &&
10033 { ac_try='test -z "$ac_cxx_werror_flag"
10034 || test ! -s conftest.err'
10035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10036 (eval $ac_try) 2>&5
10038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10039 (exit $ac_status); }; } &&
10040 { ac_try='test -s conftest$ac_exeext'
10041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10042 (eval $ac_try) 2>&5
10044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10045 (exit $ac_status); }; }; then
10047 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10049 # Check for a 64-bit object if we didn't find anything.
10050 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; }
10053 echo "$as_me: failed program was:" >&5
10054 sed 's/^/| /' conftest.$ac_ext >&5
10057 rm -f conftest.err conftest.$ac_objext \
10058 conftest$ac_exeext conftest.$ac_ext
10059 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10061 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10063 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10065 if test "$host_cpu" = ia64; then
10066 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10067 allow_undefined_flag_CXX="-z nodefs"
10068 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
10070 # Determine the default libpath from the value encoded in an empty executable.
10071 cat >conftest.$ac_ext <<_ACEOF
10074 cat confdefs.h >>conftest.$ac_ext
10075 cat >>conftest.$ac_ext <<_ACEOF
10076 /* end confdefs.h. */
10086 rm -f conftest.$ac_objext conftest$ac_exeext
10087 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10088 (eval $ac_link) 2>conftest.er1
10090 grep -v '^ *+' conftest.er1 >conftest.err
10092 cat conftest.err >&5
10093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10094 (exit $ac_status); } &&
10095 { ac_try='test -z "$ac_cxx_werror_flag"
10096 || test ! -s conftest.err'
10097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10098 (eval $ac_try) 2>&5
10100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10101 (exit $ac_status); }; } &&
10102 { ac_try='test -s conftest$ac_exeext'
10103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10104 (eval $ac_try) 2>&5
10106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10107 (exit $ac_status); }; }; then
10109 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10111 # Check for a 64-bit object if we didn't find anything.
10112 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; }
10115 echo "$as_me: failed program was:" >&5
10116 sed 's/^/| /' conftest.$ac_ext >&5
10119 rm -f conftest.err conftest.$ac_objext \
10120 conftest$ac_exeext conftest.$ac_ext
10121 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10123 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10124 # Warning - without using the other run time loading flags,
10125 # -berok will link without error, but may produce a broken library.
10126 no_undefined_flag_CXX=' ${wl}-bernotok'
10127 allow_undefined_flag_CXX=' ${wl}-berok'
10128 # -bexpall does not export symbols beginning with underscore (_)
10129 always_export_symbols_CXX=yes
10130 # Exported symbols can be pulled into shared objects from archives
10131 whole_archive_flag_spec_CXX=' '
10132 archive_cmds_need_lc_CXX=yes
10133 # This is similar to how AIX traditionally builds it's shared libraries.
10134 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10139 case $cc_basename in
10141 # FIXME: insert proper C++ library support
10148 cygwin* | mingw* | pw32*)
10149 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10150 # as there is no search path for DLLs.
10151 hardcode_libdir_flag_spec_CXX='-L$libdir'
10152 allow_undefined_flag_CXX=unsupported
10153 always_export_symbols_CXX=no
10154 enable_shared_with_static_runtimes_CXX=yes
10156 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10157 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
10158 # If the export-symbols file already is a .def file (1st line
10159 # is EXPORTS), use it as is; otherwise, prepend...
10160 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10161 cp $export_symbols $output_objdir/$soname.def;
10163 echo EXPORTS > $output_objdir/$soname.def;
10164 cat $export_symbols >> $output_objdir/$soname.def;
10166 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
10171 darwin* | rhapsody*)
10173 rhapsody* | darwin1.[012])
10174 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10177 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10178 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10180 case ${MACOSX_DEPLOYMENT_TARGET} in
10182 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10185 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10191 archive_cmds_need_lc_CXX=no
10192 hardcode_direct_CXX=no
10193 hardcode_automatic_CXX=yes
10194 hardcode_shlibpath_var_CXX=unsupported
10195 whole_archive_flag_spec_CXX=''
10196 link_all_deplibs_CXX=yes
10198 if test "$GXX" = yes ; then
10199 lt_int_apple_cc_single_mod=no
10200 output_verbose_link_cmd='echo'
10201 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10202 lt_int_apple_cc_single_mod=yes
10204 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10205 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10207 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'
10209 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10210 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10211 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10212 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}'
10214 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}'
10216 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}'
10218 case $cc_basename in
10220 output_verbose_link_cmd='echo'
10221 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'
10222 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10223 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10224 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}'
10225 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}'
10235 case $cc_basename in
10237 # FIXME: insert proper C++ library support
10241 # Green Hills C++ Compiler
10242 # FIXME: insert proper C++ library support
10246 # FIXME: insert proper C++ library support
10252 # C++ shared libraries reported to be fairly broken before switch to ELF
10256 archive_cmds_need_lc_CXX=no
10258 freebsd* | kfreebsd*-gnu | dragonfly*)
10259 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10266 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10267 hardcode_libdir_separator_CXX=:
10268 export_dynamic_flag_spec_CXX='${wl}-E'
10269 hardcode_direct_CXX=yes
10270 hardcode_minus_L_CXX=yes # Not in the search PATH,
10271 # but as the default
10272 # location of the library.
10274 case $cc_basename in
10276 # FIXME: insert proper C++ library support
10280 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'
10281 # Commands to make compiler produce verbose output that lists
10282 # what "hidden" libraries, object files and flags are used when
10283 # linking a shared library.
10285 # There doesn't appear to be a way to prevent this compiler from
10286 # explicitly linking system object files so we need to strip them
10287 # from the output so that they don't get included in the library
10289 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'
10292 if test "$GXX" = yes; then
10293 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'
10295 # FIXME: insert proper C++ library support
10302 if test $with_gnu_ld = no; then
10303 case "$host_cpu" in
10305 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10306 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10307 hardcode_libdir_separator_CXX=:
10310 hardcode_libdir_flag_spec_CXX='-L$libdir'
10313 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10314 hardcode_libdir_separator_CXX=:
10315 export_dynamic_flag_spec_CXX='${wl}-E'
10319 case "$host_cpu" in
10321 hardcode_direct_CXX=no
10322 hardcode_shlibpath_var_CXX=no
10325 hardcode_direct_CXX=no
10326 hardcode_shlibpath_var_CXX=no
10327 hardcode_minus_L_CXX=yes # Not in the search PATH,
10328 # but as the default
10329 # location of the library.
10332 hardcode_direct_CXX=yes
10333 hardcode_minus_L_CXX=yes # Not in the search PATH,
10334 # but as the default
10335 # location of the library.
10339 case $cc_basename in
10341 # FIXME: insert proper C++ library support
10345 case "$host_cpu" in
10347 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10350 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10353 # Commands to make compiler produce verbose output that lists
10354 # what "hidden" libraries, object files and flags are used when
10355 # linking a shared library.
10357 # There doesn't appear to be a way to prevent this compiler from
10358 # explicitly linking system object files so we need to strip them
10359 # from the output so that they don't get included in the library
10361 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'
10364 if test "$GXX" = yes; then
10365 if test $with_gnu_ld = no; then
10366 case "$host_cpu" in
10368 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10371 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'
10376 # FIXME: insert proper C++ library support
10383 case $cc_basename in
10386 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'
10388 # Archives containing C++ object files must be created using
10389 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10390 # necessary to make sure instantiated templates are included
10392 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10395 if test "$GXX" = yes; then
10396 if test "$with_gnu_ld" = no; then
10397 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'
10399 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'
10402 link_all_deplibs_CXX=yes
10405 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10406 hardcode_libdir_separator_CXX=:
10409 case $cc_basename in
10411 # Kuck and Associates, Inc. (KAI) C++ Compiler
10413 # KCC will only create a shared library if the output file
10414 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10415 # to its proper name (with version) after linking.
10416 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'
10417 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'
10418 # Commands to make compiler produce verbose output that lists
10419 # what "hidden" libraries, object files and flags are used when
10420 # linking a shared library.
10422 # There doesn't appear to be a way to prevent this compiler from
10423 # explicitly linking system object files so we need to strip them
10424 # from the output so that they don't get included in the library
10426 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'
10428 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10429 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10431 # Archives containing C++ object files must be created using
10432 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10433 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10438 # version 8.0 and above of icpc choke on multiply defined symbols
10439 # if we add $predep_objects and $postdep_objects, however 7.1 and
10440 # earlier do not add the objects themselves.
10441 case `$CC -V 2>&1` in
10443 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10444 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'
10446 *) # Version 8.0 or newer
10449 ia64*) tmp_idyn=' -i_dynamic';;
10451 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10452 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'
10455 archive_cmds_need_lc_CXX=no
10456 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10457 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10458 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10461 # Portland Group C++ compiler
10462 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
10463 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'
10465 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10466 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10467 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'
10471 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10472 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'
10474 runpath_var=LD_RUN_PATH
10475 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10476 hardcode_libdir_separator_CXX=:
10478 # Commands to make compiler produce verbose output that lists
10479 # what "hidden" libraries, object files and flags are used when
10480 # linking a shared library.
10482 # There doesn't appear to be a way to prevent this compiler from
10483 # explicitly linking system object files so we need to strip them
10484 # from the output so that they don't get included in the library
10486 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'
10491 # FIXME: insert proper C++ library support
10495 # FIXME: insert proper C++ library support
10499 case $cc_basename in
10501 # FIXME: insert proper C++ library support
10505 # FIXME: insert proper C++ library support
10511 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10512 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10514 hardcode_libdir_flag_spec_CXX='-R$libdir'
10515 hardcode_direct_CXX=yes
10516 hardcode_shlibpath_var_CXX=no
10518 # Workaround some broken pre-1.5 toolchains
10519 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10522 # C++ shared libraries are fairly broken
10526 hardcode_direct_CXX=yes
10527 hardcode_shlibpath_var_CXX=no
10528 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10529 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10530 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10531 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
10532 export_dynamic_flag_spec_CXX='${wl}-E'
10533 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10535 output_verbose_link_cmd='echo'
10538 case $cc_basename in
10540 # Kuck and Associates, Inc. (KAI) C++ Compiler
10542 # KCC will only create a shared library if the output file
10543 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10544 # to its proper name (with version) after linking.
10545 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'
10547 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10548 hardcode_libdir_separator_CXX=:
10550 # Archives containing C++ object files must be created using
10551 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10552 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10556 # Rational C++ 2.4.1
10557 # FIXME: insert proper C++ library support
10561 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10562 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'
10564 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10565 hardcode_libdir_separator_CXX=:
10567 # Commands to make compiler produce verbose output that lists
10568 # what "hidden" libraries, object files and flags are used when
10569 # linking a shared library.
10571 # There doesn't appear to be a way to prevent this compiler from
10572 # explicitly linking system object files so we need to strip them
10573 # from the output so that they don't get included in the library
10575 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'
10578 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10579 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10580 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'
10582 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10583 hardcode_libdir_separator_CXX=:
10585 # Commands to make compiler produce verbose output that lists
10586 # what "hidden" libraries, object files and flags are used when
10587 # linking a shared library.
10588 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10591 # FIXME: insert proper C++ library support
10598 case $cc_basename in
10600 # Kuck and Associates, Inc. (KAI) C++ Compiler
10602 # KCC will only create a shared library if the output file
10603 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10604 # to its proper name (with version) after linking.
10605 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'
10607 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10608 hardcode_libdir_separator_CXX=:
10610 # Archives containing C++ object files must be created using
10611 # the KAI C++ compiler.
10612 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10615 # Rational C++ 2.4.1
10616 # FIXME: insert proper C++ library support
10620 allow_undefined_flag_CXX=' -expect_unresolved \*'
10621 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'
10622 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10623 echo "-hidden">> $lib.exp~
10624 $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~
10627 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10628 hardcode_libdir_separator_CXX=:
10630 # Commands to make compiler produce verbose output that lists
10631 # what "hidden" libraries, object files and flags are used when
10632 # linking a shared library.
10634 # There doesn't appear to be a way to prevent this compiler from
10635 # explicitly linking system object files so we need to strip them
10636 # from the output so that they don't get included in the library
10638 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'
10641 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10642 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10643 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'
10645 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10646 hardcode_libdir_separator_CXX=:
10648 # Commands to make compiler produce verbose output that lists
10649 # what "hidden" libraries, object files and flags are used when
10650 # linking a shared library.
10651 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10654 # FIXME: insert proper C++ library support
10661 # FIXME: insert proper C++ library support
10665 archive_cmds_need_lc_CXX=no
10666 case $cc_basename in
10668 # FIXME: insert proper C++ library support
10672 # FIXME: insert proper C++ library support
10678 case $cc_basename in
10681 # FIXME: insert proper C++ library support
10686 # FIXME: insert proper C++ library support
10690 # FIXME: insert proper C++ library support
10696 case $cc_basename in
10698 # Sun C++ 4.2, 5.x and Centerline C++
10699 no_undefined_flag_CXX=' -zdefs'
10700 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10701 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10702 $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10704 hardcode_libdir_flag_spec_CXX='-R$libdir'
10705 hardcode_shlibpath_var_CXX=no
10707 solaris2.[0-5] | solaris2.[0-5].*) ;;
10709 # The C++ compiler is used as linker so we must use $wl
10710 # flag to pass the commands to the underlying system
10711 # linker. We must also pass each convience library through
10712 # to the system linker between allextract/defaultextract.
10713 # The C++ compiler will combine linker options so we
10714 # cannot just pass the convience library names through
10716 # Supported since Solaris 2.6 (maybe 2.5.1?)
10717 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'
10720 link_all_deplibs_CXX=yes
10722 # Commands to make compiler produce verbose output that lists
10723 # what "hidden" libraries, object files and flags are used when
10724 # linking a shared library.
10726 # There doesn't appear to be a way to prevent this compiler from
10727 # explicitly linking system object files so we need to strip them
10728 # from the output so that they don't get included in the library
10730 output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10732 # Archives containing C++ object files must be created using
10733 # "CC -xar", where "CC" is the Sun C++ compiler. This is
10734 # necessary to make sure instantiated templates are included
10736 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10739 # Green Hills C++ Compiler
10740 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10742 # The C++ compiler must be used to create the archive.
10743 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10746 # GNU C++ compiler with Solaris linker
10747 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10748 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10749 if $CC --version | grep -v '^2\.7' > /dev/null; then
10750 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10751 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10752 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10754 # Commands to make compiler produce verbose output that lists
10755 # what "hidden" libraries, object files and flags are used when
10756 # linking a shared library.
10757 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10759 # g++ 2.7 appears to require `-G' NOT `-shared' on this
10761 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10762 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10763 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10765 # Commands to make compiler produce verbose output that lists
10766 # what "hidden" libraries, object files and flags are used when
10767 # linking a shared library.
10768 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10771 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10776 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10777 archive_cmds_need_lc_CXX=no
10780 case $cc_basename in
10782 # NonStop-UX NCC 3.20
10783 # FIXME: insert proper C++ library support
10787 # FIXME: insert proper C++ library support
10793 # FIXME: insert proper C++ library support
10797 # FIXME: insert proper C++ library support
10801 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10802 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10803 test "$ld_shlibs_CXX" = no && can_build_shared=no
10809 cat > conftest.$ac_ext <<EOF
10813 Foo (void) { a = 0; }
10819 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10820 (eval $ac_compile) 2>&5
10822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10823 (exit $ac_status); }; then
10824 # Parse the compiler output and extract the necessary
10825 # objects, libraries and library flags.
10827 # Sentinel used to keep track of whether or not we are before
10828 # the conftest object file.
10829 pre_test_object_deps_done=no
10831 # The `*' in the case matches for architectures that use `case' in
10832 # $output_verbose_cmd can trigger glob expansion during the loop
10833 # eval without this substitution.
10834 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10836 for p in `eval $output_verbose_link_cmd`; do
10840 # Some compilers place space between "-{L,R}" and the path.
10841 # Remove the space.
10842 if test $p = "-L" \
10843 || test $p = "-R"; then
10850 if test "$pre_test_object_deps_done" = no; then
10853 # Internal compiler library paths should come after those
10854 # provided the user. The postdeps already come after the
10855 # user supplied libs so there is no need to process them.
10856 if test -z "$compiler_lib_search_path_CXX"; then
10857 compiler_lib_search_path_CXX="${prev}${p}"
10859 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10862 # The "-l" case would never come before the object being
10863 # linked, so don't bother handling this case.
10866 if test -z "$postdeps_CXX"; then
10867 postdeps_CXX="${prev}${p}"
10869 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10875 # This assumes that the test object file only shows up
10876 # once in the compiler output.
10877 if test "$p" = "conftest.$objext"; then
10878 pre_test_object_deps_done=yes
10882 if test "$pre_test_object_deps_done" = no; then
10883 if test -z "$predep_objects_CXX"; then
10884 predep_objects_CXX="$p"
10886 predep_objects_CXX="$predep_objects_CXX $p"
10889 if test -z "$postdep_objects_CXX"; then
10890 postdep_objects_CXX="$p"
10892 postdep_objects_CXX="$postdep_objects_CXX $p"
10897 *) ;; # Ignore the rest.
10905 echo "libtool.m4: error: problem compiling CXX test program"
10908 $rm -f confest.$objext
10910 case " $postdeps_CXX " in
10911 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
10914 lt_prog_compiler_wl_CXX=
10915 lt_prog_compiler_pic_CXX=
10916 lt_prog_compiler_static_CXX=
10918 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10919 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10921 # C++ specific cases for pic, static, wl, etc.
10922 if test "$GXX" = yes; then
10923 lt_prog_compiler_wl_CXX='-Wl,'
10924 lt_prog_compiler_static_CXX='-static'
10928 # All AIX code is PIC.
10929 if test "$host_cpu" = ia64; then
10930 # AIX 5 now supports IA64 processor
10931 lt_prog_compiler_static_CXX='-Bstatic'
10935 # FIXME: we need at least 68020 code to build shared libraries, but
10936 # adding the `-m68020' flag to GCC prevents building anything better,
10938 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10940 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10941 # PIC is the default for these OSes.
10943 mingw* | os2* | pw32*)
10944 # This hack is so that the source file can tell whether it is being
10945 # built for inclusion in a dll (and should export symbols for example).
10946 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10948 darwin* | rhapsody*)
10949 # PIC is the default on this platform
10950 # Common symbols not allowed in MH_DYLIB files
10951 lt_prog_compiler_pic_CXX='-fno-common'
10954 # DJGPP does not support shared libraries at all
10955 lt_prog_compiler_pic_CXX=
10958 if test -d /usr/nec; then
10959 lt_prog_compiler_pic_CXX=-Kconform_pic
10963 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10964 # not for PA HP-UX.
10965 case "$host_cpu" in
10969 lt_prog_compiler_pic_CXX='-fPIC'
10974 lt_prog_compiler_pic_CXX='-fPIC'
10980 # All AIX code is PIC.
10981 if test "$host_cpu" = ia64; then
10982 # AIX 5 now supports IA64 processor
10983 lt_prog_compiler_static_CXX='-Bstatic'
10985 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10989 case $cc_basename in
10991 # Green Hills C++ Compiler
10992 # _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"
10997 # PIC is the default on this platform
10998 # Common symbols not allowed in MH_DYLIB files
10999 case $cc_basename in
11001 lt_prog_compiler_pic_CXX='-qnocommon'
11002 lt_prog_compiler_wl_CXX='-Wl,'
11007 case $cc_basename in
11009 lt_prog_compiler_pic_CXX='-KPIC'
11012 # Green Hills C++ Compiler
11013 lt_prog_compiler_pic_CXX='-pic'
11019 freebsd* | kfreebsd*-gnu | dragonfly*)
11020 # FreeBSD uses GNU C++
11022 hpux9* | hpux10* | hpux11*)
11023 case $cc_basename in
11025 lt_prog_compiler_wl_CXX='-Wl,'
11026 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11027 if test "$host_cpu" != ia64; then
11028 lt_prog_compiler_pic_CXX='+Z'
11032 lt_prog_compiler_wl_CXX='-Wl,'
11033 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11034 case "$host_cpu" in
11039 lt_prog_compiler_pic_CXX='+Z'
11047 irix5* | irix6* | nonstopux*)
11048 case $cc_basename in
11050 lt_prog_compiler_wl_CXX='-Wl,'
11051 lt_prog_compiler_static_CXX='-non_shared'
11052 # CC pic flag -KPIC is the default.
11059 case $cc_basename in
11062 lt_prog_compiler_wl_CXX='--backend -Wl,'
11063 lt_prog_compiler_pic_CXX='-fPIC'
11067 lt_prog_compiler_wl_CXX='-Wl,'
11068 lt_prog_compiler_pic_CXX='-KPIC'
11069 lt_prog_compiler_static_CXX='-static'
11072 # Portland Group C++ compiler.
11073 lt_prog_compiler_wl_CXX='-Wl,'
11074 lt_prog_compiler_pic_CXX='-fpic'
11075 lt_prog_compiler_static_CXX='-static'
11079 # Make sure the PIC flag is empty. It appears that all Alpha
11080 # Linux and Compaq Tru64 Unix objects are PIC.
11081 lt_prog_compiler_pic_CXX=
11082 lt_prog_compiler_static_CXX='-non_shared'
11093 case $cc_basename in
11095 lt_prog_compiler_pic_CXX='-W c,exportall'
11103 osf3* | osf4* | osf5*)
11104 case $cc_basename in
11106 lt_prog_compiler_wl_CXX='--backend -Wl,'
11109 # Rational C++ 2.4.1
11110 lt_prog_compiler_pic_CXX='-pic'
11113 # Digital/Compaq C++
11114 lt_prog_compiler_wl_CXX='-Wl,'
11115 # Make sure the PIC flag is empty. It appears that all Alpha
11116 # Linux and Compaq Tru64 Unix objects are PIC.
11117 lt_prog_compiler_pic_CXX=
11118 lt_prog_compiler_static_CXX='-non_shared'
11127 case $cc_basename in
11129 lt_prog_compiler_pic_CXX='-fPIC'
11136 case $cc_basename in
11138 # Sun C++ 4.2, 5.x and Centerline C++
11139 lt_prog_compiler_pic_CXX='-KPIC'
11140 lt_prog_compiler_static_CXX='-Bstatic'
11141 lt_prog_compiler_wl_CXX='-Qoption ld '
11144 # Green Hills C++ Compiler
11145 lt_prog_compiler_pic_CXX='-PIC'
11152 case $cc_basename in
11155 lt_prog_compiler_pic_CXX='-pic'
11156 lt_prog_compiler_static_CXX='-Bstatic'
11160 lt_prog_compiler_pic_CXX='-pic'
11167 case $cc_basename in
11169 # NonStop-UX NCC 3.20
11170 lt_prog_compiler_pic_CXX='-KPIC'
11181 lt_prog_compiler_can_build_shared_CXX=no
11186 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11187 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11190 # Check to make sure the PIC flag actually works.
11192 if test -n "$lt_prog_compiler_pic_CXX"; then
11194 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11195 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11196 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11197 echo $ECHO_N "(cached) $ECHO_C" >&6
11199 lt_prog_compiler_pic_works_CXX=no
11200 ac_outfile=conftest.$ac_objext
11201 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11202 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11203 # Insert the option either (1) after the last *FLAGS variable, or
11204 # (2) before a word containing "conftest.", or (3) at the end.
11205 # Note that $ac_compile itself does not contain backslashes and begins
11206 # with a dollar sign (not a hyphen), so the echo should work correctly.
11207 # The option is referenced via a variable to avoid confusing sed.
11208 lt_compile=`echo "$ac_compile" | $SED \
11209 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11210 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11211 -e 's:$: $lt_compiler_flag:'`
11212 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
11213 (eval "$lt_compile" 2>conftest.err)
11215 cat conftest.err >&5
11216 echo "$as_me:__oline__: \$? = $ac_status" >&5
11217 if (exit $ac_status) && test -s "$ac_outfile"; then
11218 # The compiler can only warn and ignore the option if not recognized
11219 # So say no if there are warnings other than the usual output.
11220 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
11221 $SED '/^$/d' conftest.err >conftest.er2
11222 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
11223 lt_prog_compiler_pic_works_CXX=yes
11229 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11230 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11232 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11233 case $lt_prog_compiler_pic_CXX in
11235 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11238 lt_prog_compiler_pic_CXX=
11239 lt_prog_compiler_can_build_shared_CXX=no
11244 # For platforms which do not support PIC, -DPIC is meaningless:
11246 lt_prog_compiler_pic_CXX=
11249 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11253 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11254 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11255 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11256 echo $ECHO_N "(cached) $ECHO_C" >&6
11258 lt_cv_prog_compiler_c_o_CXX=no
11259 $rm -r conftest 2>/dev/null
11263 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11265 lt_compiler_flag="-o out/conftest2.$ac_objext"
11266 # Insert the option either (1) after the last *FLAGS variable, or
11267 # (2) before a word containing "conftest.", or (3) at the end.
11268 # Note that $ac_compile itself does not contain backslashes and begins
11269 # with a dollar sign (not a hyphen), so the echo should work correctly.
11270 lt_compile=`echo "$ac_compile" | $SED \
11271 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11272 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11273 -e 's:$: $lt_compiler_flag:'`
11274 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
11275 (eval "$lt_compile" 2>out/conftest.err)
11277 cat out/conftest.err >&5
11278 echo "$as_me:__oline__: \$? = $ac_status" >&5
11279 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11281 # The compiler can only warn and ignore the option if not recognized
11282 # So say no if there are warnings
11283 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
11284 $SED '/^$/d' out/conftest.err >out/conftest.er2
11285 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11286 lt_cv_prog_compiler_c_o_CXX=yes
11291 # SGI C++ compiler will create directory out/ii_files/ for
11292 # template instantiation
11293 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11294 $rm out/* && rmdir out
11300 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11301 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11304 hard_links="nottested"
11305 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11306 # do not overwrite the value of need_locks provided by the user
11307 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11308 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11311 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11313 ln conftest.a conftest.b 2>&5 || hard_links=no
11314 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11315 echo "$as_me:$LINENO: result: $hard_links" >&5
11316 echo "${ECHO_T}$hard_links" >&6
11317 if test "$hard_links" = no; then
11318 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11319 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11326 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11327 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11329 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11332 # If we're using GNU nm, then we don't want the "-C" option.
11333 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11334 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11335 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'
11337 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'
11341 export_symbols_cmds_CXX="$ltdll_cmds"
11344 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'
11347 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11351 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11352 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11353 test "$ld_shlibs_CXX" = no && can_build_shared=no
11355 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11356 if test "$GCC" = yes; then
11357 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11361 # Do we need to explicitly link libc?
11363 case "x$archive_cmds_need_lc_CXX" in
11365 # Assume -lc should be added
11366 archive_cmds_need_lc_CXX=yes
11368 if test "$enable_shared" = yes && test "$GCC" = yes; then
11369 case $archive_cmds_CXX in
11371 # FIXME: we may have to deal with multi-command sequences.
11374 # Test whether the compiler implicitly links with -lc since on some
11375 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11376 # to ld, don't add -lc before -lgcc.
11377 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11378 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11380 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11382 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11383 (eval $ac_compile) 2>&5
11385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11386 (exit $ac_status); } 2>conftest.err; then
11389 libobjs=conftest.$ac_objext
11391 wl=$lt_prog_compiler_wl_CXX
11397 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11398 allow_undefined_flag_CXX=
11399 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11400 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11403 (exit $ac_status); }
11405 archive_cmds_need_lc_CXX=no
11407 archive_cmds_need_lc_CXX=yes
11409 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11411 cat conftest.err 1>&5
11414 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11415 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11422 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11423 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11424 library_names_spec=
11425 libname_spec='lib$name'
11429 postuninstall_cmds=
11433 shlibpath_overrides_runpath=unknown
11435 dynamic_linker="$host_os ld.so"
11436 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11437 if test "$GCC" = yes; then
11438 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11439 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11440 # if the path contains ";" then we assume it to be the separator
11441 # otherwise default to the standard path separator (i.e. ":") - it is
11442 # assumed that no part of a normal pathname contains ";" but that should
11443 # okay in the real world where ";" in dirpaths is itself problematic.
11444 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11446 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11449 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11451 need_lib_prefix=unknown
11452 hardcode_into_libs=no
11454 # when you set need_version to no, make sure it does not cause -set_version
11455 # flags to be left without arguments
11456 need_version=unknown
11461 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11462 shlibpath_var=LIBPATH
11464 # AIX 3 has no versioning support, so we append a major version to the name.
11465 soname_spec='${libname}${release}${shared_ext}$major'
11472 hardcode_into_libs=yes
11473 if test "$host_cpu" = ia64; then
11474 # AIX 5 supports IA64
11475 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11476 shlibpath_var=LD_LIBRARY_PATH
11478 # With GCC up to 2.95.x, collect2 would create an import file
11479 # for dependence libraries. The import file would start with
11480 # the line `#! .'. This would cause the generated library to
11481 # depend on `.', always an invalid library. This was fixed in
11482 # development snapshots of GCC prior to 3.0.
11484 aix4 | aix4.[01] | aix4.[01].*)
11485 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11487 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11490 can_build_shared=no
11494 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11495 # soname into executable. Probably we can add versioning support to
11496 # collect2, so additional links can be useful in future.
11497 if test "$aix_use_runtimelinking" = yes; then
11498 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11499 # instead of lib<name>.a to let people know that these are not
11500 # typical AIX shared libraries.
11501 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11503 # We preserve .a as extension for shared libraries through AIX4.2
11504 # and later when we are not doing run time linking.
11505 library_names_spec='${libname}${release}.a $libname.a'
11506 soname_spec='${libname}${release}${shared_ext}$major'
11508 shlibpath_var=LIBPATH
11513 library_names_spec='$libname.ixlibrary $libname.a'
11514 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11515 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'
11519 library_names_spec='${libname}${shared_ext}'
11520 dynamic_linker="$host_os ld.so"
11521 shlibpath_var=LIBRARY_PATH
11527 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11528 soname_spec='${libname}${release}${shared_ext}$major'
11529 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11530 shlibpath_var=LD_LIBRARY_PATH
11531 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11532 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11533 # the default ld.so.conf also contains /usr/contrib/lib and
11534 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11535 # libtool to hard-code these into programs
11538 cygwin* | mingw* | pw32*)
11539 version_type=windows
11544 case $GCC,$host_os in
11545 yes,cygwin* | yes,mingw* | yes,pw32*)
11546 library_names_spec='$libname.dll.a'
11547 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11548 postinstall_cmds='base_file=`basename \${file}`~
11549 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11550 dldir=$destdir/`dirname \$dlpath`~
11551 test -d \$dldir || mkdir -p \$dldir~
11552 $install_prog $dir/$dlname \$dldir/$dlname'
11553 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11554 dlpath=$dir/\$dldll~
11556 shlibpath_overrides_runpath=yes
11560 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11561 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11562 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11565 # MinGW DLLs use traditional 'lib' prefix
11566 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11567 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11568 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11569 # It is most probably a Windows format PATH printed by
11570 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11571 # path with ; separators, and with drive letters. We can handle the
11572 # drive letters (cygwin fileutils understands them), so leave them,
11573 # especially as we might pass files found there to a mingw objdump,
11574 # which wouldn't understand a cygwinified path. Ahh.
11575 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11577 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11581 # pw32 DLLs use 'pw' prefix rather than 'lib'
11582 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11588 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11591 dynamic_linker='Win32 ld.exe'
11592 # FIXME: first we should search . and the directory the executable is in
11596 darwin* | rhapsody*)
11597 dynamic_linker="$host_os dyld"
11598 version_type=darwin
11601 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11602 soname_spec='${libname}${release}${major}$shared_ext'
11603 shlibpath_overrides_runpath=yes
11604 shlibpath_var=DYLD_LIBRARY_PATH
11605 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
11606 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11607 if test "$GCC" = yes; then
11608 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"`
11610 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11612 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11619 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11620 soname_spec='${libname}${release}${shared_ext}$major'
11621 shlibpath_var=LD_LIBRARY_PATH
11632 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11633 soname_spec='${libname}${release}${shared_ext}$major'
11634 shlibpath_var=LD_LIBRARY_PATH
11635 shlibpath_overrides_runpath=no
11636 hardcode_into_libs=yes
11637 dynamic_linker='GNU ld.so'
11640 freebsd* | dragonfly*)
11641 # DragonFly does not have aout. When/if they implement a new
11642 # versioning mechanism, adjust this.
11643 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11644 version_type=freebsd-$objformat
11645 case $version_type in
11647 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11652 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11656 shlibpath_var=LD_LIBRARY_PATH
11659 shlibpath_overrides_runpath=yes
11661 freebsd3.[01]* | freebsdelf3.[01]*)
11662 shlibpath_overrides_runpath=yes
11663 hardcode_into_libs=yes
11666 shlibpath_overrides_runpath=no
11667 hardcode_into_libs=yes
11676 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11677 soname_spec='${libname}${release}${shared_ext}$major'
11678 shlibpath_var=LD_LIBRARY_PATH
11679 hardcode_into_libs=yes
11682 hpux9* | hpux10* | hpux11*)
11683 # Give a soname corresponding to the major version so that dld.sl refuses to
11684 # link against other versions.
11688 case "$host_cpu" in
11691 hardcode_into_libs=yes
11692 dynamic_linker="$host_os dld.so"
11693 shlibpath_var=LD_LIBRARY_PATH
11694 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11695 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11696 soname_spec='${libname}${release}${shared_ext}$major'
11697 if test "X$HPUX_IA64_MODE" = X32; then
11698 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11700 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11702 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11706 hardcode_into_libs=yes
11707 dynamic_linker="$host_os dld.sl"
11708 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11709 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11710 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11711 soname_spec='${libname}${release}${shared_ext}$major'
11712 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11713 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11717 dynamic_linker="$host_os dld.sl"
11718 shlibpath_var=SHLIB_PATH
11719 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11720 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11721 soname_spec='${libname}${release}${shared_ext}$major'
11724 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11725 postinstall_cmds='chmod 555 $lib'
11728 irix5* | irix6* | nonstopux*)
11730 nonstopux*) version_type=nonstopux ;;
11732 if test "$lt_cv_prog_gnu_ld" = yes; then
11740 soname_spec='${libname}${release}${shared_ext}$major'
11741 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11743 irix5* | nonstopux*)
11744 libsuff= shlibsuff=
11747 case $LD in # libtool.m4 will add one of these switches to LD
11748 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11749 libsuff= shlibsuff= libmagic=32-bit;;
11750 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11751 libsuff=32 shlibsuff=N32 libmagic=N32;;
11752 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11753 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11754 *) libsuff= shlibsuff= libmagic=never-match;;
11758 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11759 shlibpath_overrides_runpath=no
11760 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11761 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11762 hardcode_into_libs=yes
11765 # No shared lib support for Linux oldld, aout, or coff.
11766 linux*oldld* | linux*aout* | linux*coff*)
11770 # This must be Linux ELF.
11775 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11776 soname_spec='${libname}${release}${shared_ext}$major'
11777 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11778 shlibpath_var=LD_LIBRARY_PATH
11779 shlibpath_overrides_runpath=no
11780 # This implies no fast_install, which is unacceptable.
11781 # Some rework will be needed to allow for fast_install
11782 # before this can be enabled.
11783 hardcode_into_libs=yes
11785 # find out which ABI we are using
11787 case "$host_cpu" in
11788 x86_64*|s390x*|powerpc64*)
11789 echo '#line __oline__ "configure"' > conftest.$ac_ext
11790 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11791 (eval $ac_compile) 2>&5
11793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11794 (exit $ac_status); }; then
11795 case `/usr/bin/file conftest.$ac_objext` in
11798 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
11806 # Append ld.so.conf contents to the search path
11807 if test -f /etc/ld.so.conf; then
11808 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' ' '`
11809 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
11812 # We used to test for /lib/ld.so.1 and disable shared libraries on
11813 # powerpc, because MkLinux only supported shared libraries with the
11814 # GNU dynamic linker. Since this was broken with cross compilers,
11815 # most powerpc-linux boxes support dynamic linking these days and
11816 # people can always --disable-shared, the test was removed, and we
11817 # assume the GNU/Linux dynamic linker is in use.
11818 dynamic_linker='GNU/Linux ld.so'
11825 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11826 soname_spec='${libname}${release}${shared_ext}$major'
11827 shlibpath_var=LD_LIBRARY_PATH
11828 shlibpath_overrides_runpath=no
11829 hardcode_into_libs=yes
11830 dynamic_linker='GNU ld.so'
11837 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11838 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11839 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11840 dynamic_linker='NetBSD (a.out) ld.so'
11842 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11843 soname_spec='${libname}${release}${shared_ext}$major'
11844 dynamic_linker='NetBSD ld.elf_so'
11846 shlibpath_var=LD_LIBRARY_PATH
11847 shlibpath_overrides_runpath=yes
11848 hardcode_into_libs=yes
11853 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11854 shlibpath_var=LD_LIBRARY_PATH
11855 shlibpath_overrides_runpath=yes
11862 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11863 soname_spec='${libname}${release}${shared_ext}$major'
11864 shlibpath_var=LD_LIBRARY_PATH
11865 shlibpath_overrides_runpath=yes
11871 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11873 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11874 *) need_version=no ;;
11876 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11877 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11878 shlibpath_var=LD_LIBRARY_PATH
11879 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11881 openbsd2.[89] | openbsd2.[89].*)
11882 shlibpath_overrides_runpath=no
11885 shlibpath_overrides_runpath=yes
11889 shlibpath_overrides_runpath=yes
11894 libname_spec='$name'
11897 library_names_spec='$libname${shared_ext} $libname.a'
11898 dynamic_linker='OS/2 ld.exe'
11899 shlibpath_var=LIBPATH
11902 osf3* | osf4* | osf5*)
11906 soname_spec='${libname}${release}${shared_ext}$major'
11907 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11908 shlibpath_var=LD_LIBRARY_PATH
11909 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11910 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11915 soname_spec='${libname}${release}${shared_ext}$major'
11916 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11917 shlibpath_var=LD_LIBRARY_PATH
11924 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11925 soname_spec='${libname}${release}${shared_ext}$major'
11926 shlibpath_var=LD_LIBRARY_PATH
11927 shlibpath_overrides_runpath=yes
11928 hardcode_into_libs=yes
11929 # ldd complains unless libraries are executable
11930 postinstall_cmds='chmod +x $lib'
11935 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11936 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11937 shlibpath_var=LD_LIBRARY_PATH
11938 shlibpath_overrides_runpath=yes
11939 if test "$with_gnu_ld" = yes; then
11945 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11948 soname_spec='${libname}${release}${shared_ext}$major'
11949 shlibpath_var=LD_LIBRARY_PATH
11950 case $host_vendor in
11952 shlibpath_overrides_runpath=no
11954 export_dynamic_flag_spec='${wl}-Blargedynsym'
11955 runpath_var=LD_RUN_PATH
11963 shlibpath_overrides_runpath=no
11964 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11970 if test -d /usr/nec ;then
11972 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11973 soname_spec='$libname${shared_ext}.$major'
11974 shlibpath_var=LD_LIBRARY_PATH
11980 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11981 soname_spec='${libname}${release}${shared_ext}$major'
11982 shlibpath_var=LD_LIBRARY_PATH
11989 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11990 echo "${ECHO_T}$dynamic_linker" >&6
11991 test "$dynamic_linker" = no && can_build_shared=no
11993 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11994 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11995 hardcode_action_CXX=
11996 if test -n "$hardcode_libdir_flag_spec_CXX" || \
11997 test -n "$runpath_var_CXX" || \
11998 test "X$hardcode_automatic_CXX" = "Xyes" ; then
12000 # We can hardcode non-existant directories.
12001 if test "$hardcode_direct_CXX" != no &&
12002 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12003 # have to relink, otherwise we might link with an installed library
12004 # when we should be linking with a yet-to-be-installed one
12005 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12006 test "$hardcode_minus_L_CXX" != no; then
12007 # Linking always hardcodes the temporary library directory.
12008 hardcode_action_CXX=relink
12010 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12011 hardcode_action_CXX=immediate
12014 # We cannot hardcode anything, or else we can only hardcode existing
12016 hardcode_action_CXX=unsupported
12018 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12019 echo "${ECHO_T}$hardcode_action_CXX" >&6
12021 if test "$hardcode_action_CXX" = relink; then
12022 # Fast installation is not supported
12023 enable_fast_install=no
12024 elif test "$shlibpath_overrides_runpath" = yes ||
12025 test "$enable_shared" = no; then
12026 # Fast installation is not necessary
12027 enable_fast_install=needless
12032 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12033 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
12034 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
12035 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12036 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12037 echo "$as_me:$LINENO: result: yes" >&5
12038 echo "${ECHO_T}yes" >&6
12040 # FIXME - insert some real tests, host_os isn't really good enough
12043 if test -n "$STRIP" ; then
12044 striplib="$STRIP -x"
12045 echo "$as_me:$LINENO: result: yes" >&5
12046 echo "${ECHO_T}yes" >&6
12048 echo "$as_me:$LINENO: result: no" >&5
12049 echo "${ECHO_T}no" >&6
12053 echo "$as_me:$LINENO: result: no" >&5
12054 echo "${ECHO_T}no" >&6
12059 if test "x$enable_dlopen" != xyes; then
12060 enable_dlopen=unknown
12061 enable_dlopen_self=unknown
12062 enable_dlopen_self_static=unknown
12069 lt_cv_dlopen="load_add_on"
12071 lt_cv_dlopen_self=yes
12075 lt_cv_dlopen="LoadLibrary"
12080 lt_cv_dlopen="dlopen"
12085 # if libdl is installed we need to link against it
12086 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12087 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12088 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12089 echo $ECHO_N "(cached) $ECHO_C" >&6
12091 ac_check_lib_save_LIBS=$LIBS
12093 cat >conftest.$ac_ext <<_ACEOF
12096 cat confdefs.h >>conftest.$ac_ext
12097 cat >>conftest.$ac_ext <<_ACEOF
12098 /* end confdefs.h. */
12100 /* Override any gcc2 internal prototype to avoid an error. */
12104 /* We use char because int might match the return type of a gcc2
12105 builtin and then its argument prototype would still apply. */
12115 rm -f conftest.$ac_objext conftest$ac_exeext
12116 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12117 (eval $ac_link) 2>conftest.er1
12119 grep -v '^ *+' conftest.er1 >conftest.err
12121 cat conftest.err >&5
12122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12123 (exit $ac_status); } &&
12124 { ac_try='test -z "$ac_cxx_werror_flag"
12125 || test ! -s conftest.err'
12126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12127 (eval $ac_try) 2>&5
12129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12130 (exit $ac_status); }; } &&
12131 { ac_try='test -s conftest$ac_exeext'
12132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12133 (eval $ac_try) 2>&5
12135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12136 (exit $ac_status); }; }; then
12137 ac_cv_lib_dl_dlopen=yes
12139 echo "$as_me: failed program was:" >&5
12140 sed 's/^/| /' conftest.$ac_ext >&5
12142 ac_cv_lib_dl_dlopen=no
12144 rm -f conftest.err conftest.$ac_objext \
12145 conftest$ac_exeext conftest.$ac_ext
12146 LIBS=$ac_check_lib_save_LIBS
12148 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12149 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12150 if test $ac_cv_lib_dl_dlopen = yes; then
12151 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12154 lt_cv_dlopen="dyld"
12156 lt_cv_dlopen_self=yes
12163 echo "$as_me:$LINENO: checking for shl_load" >&5
12164 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
12165 if test "${ac_cv_func_shl_load+set}" = set; then
12166 echo $ECHO_N "(cached) $ECHO_C" >&6
12168 cat >conftest.$ac_ext <<_ACEOF
12171 cat confdefs.h >>conftest.$ac_ext
12172 cat >>conftest.$ac_ext <<_ACEOF
12173 /* end confdefs.h. */
12174 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12175 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12176 #define shl_load innocuous_shl_load
12178 /* System header to define __stub macros and hopefully few prototypes,
12179 which can conflict with char shl_load (); below.
12180 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12181 <limits.h> exists even on freestanding compilers. */
12184 # include <limits.h>
12186 # include <assert.h>
12191 /* Override any gcc2 internal prototype to avoid an error. */
12196 /* We use char because int might match the return type of a gcc2
12197 builtin and then its argument prototype would still apply. */
12199 /* The GNU C library defines this for functions which it implements
12200 to always fail with ENOSYS. Some functions are actually named
12201 something starting with __ and the normal name is an alias. */
12202 #if defined (__stub_shl_load) || defined (__stub___shl_load)
12205 char (*f) () = shl_load;
12214 return f != shl_load;
12219 rm -f conftest.$ac_objext conftest$ac_exeext
12220 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12221 (eval $ac_link) 2>conftest.er1
12223 grep -v '^ *+' conftest.er1 >conftest.err
12225 cat conftest.err >&5
12226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12227 (exit $ac_status); } &&
12228 { ac_try='test -z "$ac_cxx_werror_flag"
12229 || test ! -s conftest.err'
12230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12231 (eval $ac_try) 2>&5
12233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12234 (exit $ac_status); }; } &&
12235 { ac_try='test -s conftest$ac_exeext'
12236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12237 (eval $ac_try) 2>&5
12239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12240 (exit $ac_status); }; }; then
12241 ac_cv_func_shl_load=yes
12243 echo "$as_me: failed program was:" >&5
12244 sed 's/^/| /' conftest.$ac_ext >&5
12246 ac_cv_func_shl_load=no
12248 rm -f conftest.err conftest.$ac_objext \
12249 conftest$ac_exeext conftest.$ac_ext
12251 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12252 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
12253 if test $ac_cv_func_shl_load = yes; then
12254 lt_cv_dlopen="shl_load"
12256 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12257 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
12258 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12259 echo $ECHO_N "(cached) $ECHO_C" >&6
12261 ac_check_lib_save_LIBS=$LIBS
12263 cat >conftest.$ac_ext <<_ACEOF
12266 cat confdefs.h >>conftest.$ac_ext
12267 cat >>conftest.$ac_ext <<_ACEOF
12268 /* end confdefs.h. */
12270 /* Override any gcc2 internal prototype to avoid an error. */
12274 /* We use char because int might match the return type of a gcc2
12275 builtin and then its argument prototype would still apply. */
12285 rm -f conftest.$ac_objext conftest$ac_exeext
12286 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12287 (eval $ac_link) 2>conftest.er1
12289 grep -v '^ *+' conftest.er1 >conftest.err
12291 cat conftest.err >&5
12292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12293 (exit $ac_status); } &&
12294 { ac_try='test -z "$ac_cxx_werror_flag"
12295 || test ! -s conftest.err'
12296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12297 (eval $ac_try) 2>&5
12299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12300 (exit $ac_status); }; } &&
12301 { ac_try='test -s conftest$ac_exeext'
12302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12303 (eval $ac_try) 2>&5
12305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12306 (exit $ac_status); }; }; then
12307 ac_cv_lib_dld_shl_load=yes
12309 echo "$as_me: failed program was:" >&5
12310 sed 's/^/| /' conftest.$ac_ext >&5
12312 ac_cv_lib_dld_shl_load=no
12314 rm -f conftest.err conftest.$ac_objext \
12315 conftest$ac_exeext conftest.$ac_ext
12316 LIBS=$ac_check_lib_save_LIBS
12318 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12319 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
12320 if test $ac_cv_lib_dld_shl_load = yes; then
12321 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12323 echo "$as_me:$LINENO: checking for dlopen" >&5
12324 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12325 if test "${ac_cv_func_dlopen+set}" = set; then
12326 echo $ECHO_N "(cached) $ECHO_C" >&6
12328 cat >conftest.$ac_ext <<_ACEOF
12331 cat confdefs.h >>conftest.$ac_ext
12332 cat >>conftest.$ac_ext <<_ACEOF
12333 /* end confdefs.h. */
12334 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12335 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12336 #define dlopen innocuous_dlopen
12338 /* System header to define __stub macros and hopefully few prototypes,
12339 which can conflict with char dlopen (); below.
12340 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12341 <limits.h> exists even on freestanding compilers. */
12344 # include <limits.h>
12346 # include <assert.h>
12351 /* Override any gcc2 internal prototype to avoid an error. */
12356 /* We use char because int might match the return type of a gcc2
12357 builtin and then its argument prototype would still apply. */
12359 /* The GNU C library defines this for functions which it implements
12360 to always fail with ENOSYS. Some functions are actually named
12361 something starting with __ and the normal name is an alias. */
12362 #if defined (__stub_dlopen) || defined (__stub___dlopen)
12365 char (*f) () = dlopen;
12374 return f != dlopen;
12379 rm -f conftest.$ac_objext conftest$ac_exeext
12380 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12381 (eval $ac_link) 2>conftest.er1
12383 grep -v '^ *+' conftest.er1 >conftest.err
12385 cat conftest.err >&5
12386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12387 (exit $ac_status); } &&
12388 { ac_try='test -z "$ac_cxx_werror_flag"
12389 || test ! -s conftest.err'
12390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12391 (eval $ac_try) 2>&5
12393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12394 (exit $ac_status); }; } &&
12395 { ac_try='test -s conftest$ac_exeext'
12396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12397 (eval $ac_try) 2>&5
12399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12400 (exit $ac_status); }; }; then
12401 ac_cv_func_dlopen=yes
12403 echo "$as_me: failed program was:" >&5
12404 sed 's/^/| /' conftest.$ac_ext >&5
12406 ac_cv_func_dlopen=no
12408 rm -f conftest.err conftest.$ac_objext \
12409 conftest$ac_exeext conftest.$ac_ext
12411 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12412 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12413 if test $ac_cv_func_dlopen = yes; then
12414 lt_cv_dlopen="dlopen"
12416 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12417 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12418 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12419 echo $ECHO_N "(cached) $ECHO_C" >&6
12421 ac_check_lib_save_LIBS=$LIBS
12423 cat >conftest.$ac_ext <<_ACEOF
12426 cat confdefs.h >>conftest.$ac_ext
12427 cat >>conftest.$ac_ext <<_ACEOF
12428 /* end confdefs.h. */
12430 /* Override any gcc2 internal prototype to avoid an error. */
12434 /* We use char because int might match the return type of a gcc2
12435 builtin and then its argument prototype would still apply. */
12445 rm -f conftest.$ac_objext conftest$ac_exeext
12446 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12447 (eval $ac_link) 2>conftest.er1
12449 grep -v '^ *+' conftest.er1 >conftest.err
12451 cat conftest.err >&5
12452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12453 (exit $ac_status); } &&
12454 { ac_try='test -z "$ac_cxx_werror_flag"
12455 || test ! -s conftest.err'
12456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12457 (eval $ac_try) 2>&5
12459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12460 (exit $ac_status); }; } &&
12461 { ac_try='test -s conftest$ac_exeext'
12462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12463 (eval $ac_try) 2>&5
12465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12466 (exit $ac_status); }; }; then
12467 ac_cv_lib_dl_dlopen=yes
12469 echo "$as_me: failed program was:" >&5
12470 sed 's/^/| /' conftest.$ac_ext >&5
12472 ac_cv_lib_dl_dlopen=no
12474 rm -f conftest.err conftest.$ac_objext \
12475 conftest$ac_exeext conftest.$ac_ext
12476 LIBS=$ac_check_lib_save_LIBS
12478 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12479 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12480 if test $ac_cv_lib_dl_dlopen = yes; then
12481 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12483 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12484 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12485 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12486 echo $ECHO_N "(cached) $ECHO_C" >&6
12488 ac_check_lib_save_LIBS=$LIBS
12489 LIBS="-lsvld $LIBS"
12490 cat >conftest.$ac_ext <<_ACEOF
12493 cat confdefs.h >>conftest.$ac_ext
12494 cat >>conftest.$ac_ext <<_ACEOF
12495 /* end confdefs.h. */
12497 /* Override any gcc2 internal prototype to avoid an error. */
12501 /* We use char because int might match the return type of a gcc2
12502 builtin and then its argument prototype would still apply. */
12512 rm -f conftest.$ac_objext conftest$ac_exeext
12513 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12514 (eval $ac_link) 2>conftest.er1
12516 grep -v '^ *+' conftest.er1 >conftest.err
12518 cat conftest.err >&5
12519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12520 (exit $ac_status); } &&
12521 { ac_try='test -z "$ac_cxx_werror_flag"
12522 || test ! -s conftest.err'
12523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12524 (eval $ac_try) 2>&5
12526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12527 (exit $ac_status); }; } &&
12528 { ac_try='test -s conftest$ac_exeext'
12529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12530 (eval $ac_try) 2>&5
12532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12533 (exit $ac_status); }; }; then
12534 ac_cv_lib_svld_dlopen=yes
12536 echo "$as_me: failed program was:" >&5
12537 sed 's/^/| /' conftest.$ac_ext >&5
12539 ac_cv_lib_svld_dlopen=no
12541 rm -f conftest.err conftest.$ac_objext \
12542 conftest$ac_exeext conftest.$ac_ext
12543 LIBS=$ac_check_lib_save_LIBS
12545 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12546 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12547 if test $ac_cv_lib_svld_dlopen = yes; then
12548 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12550 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12551 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12552 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12553 echo $ECHO_N "(cached) $ECHO_C" >&6
12555 ac_check_lib_save_LIBS=$LIBS
12557 cat >conftest.$ac_ext <<_ACEOF
12560 cat confdefs.h >>conftest.$ac_ext
12561 cat >>conftest.$ac_ext <<_ACEOF
12562 /* end confdefs.h. */
12564 /* Override any gcc2 internal prototype to avoid an error. */
12568 /* We use char because int might match the return type of a gcc2
12569 builtin and then its argument prototype would still apply. */
12579 rm -f conftest.$ac_objext conftest$ac_exeext
12580 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12581 (eval $ac_link) 2>conftest.er1
12583 grep -v '^ *+' conftest.er1 >conftest.err
12585 cat conftest.err >&5
12586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12587 (exit $ac_status); } &&
12588 { ac_try='test -z "$ac_cxx_werror_flag"
12589 || test ! -s conftest.err'
12590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12591 (eval $ac_try) 2>&5
12593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12594 (exit $ac_status); }; } &&
12595 { ac_try='test -s conftest$ac_exeext'
12596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12597 (eval $ac_try) 2>&5
12599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12600 (exit $ac_status); }; }; then
12601 ac_cv_lib_dld_dld_link=yes
12603 echo "$as_me: failed program was:" >&5
12604 sed 's/^/| /' conftest.$ac_ext >&5
12606 ac_cv_lib_dld_dld_link=no
12608 rm -f conftest.err conftest.$ac_objext \
12609 conftest$ac_exeext conftest.$ac_ext
12610 LIBS=$ac_check_lib_save_LIBS
12612 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12613 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12614 if test $ac_cv_lib_dld_dld_link = yes; then
12615 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12636 if test "x$lt_cv_dlopen" != xno; then
12642 case $lt_cv_dlopen in
12644 save_CPPFLAGS="$CPPFLAGS"
12645 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12647 save_LDFLAGS="$LDFLAGS"
12648 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12651 LIBS="$lt_cv_dlopen_libs $LIBS"
12653 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12654 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12655 if test "${lt_cv_dlopen_self+set}" = set; then
12656 echo $ECHO_N "(cached) $ECHO_C" >&6
12658 if test "$cross_compiling" = yes; then :
12659 lt_cv_dlopen_self=cross
12661 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12662 lt_status=$lt_dlunknown
12663 cat > conftest.$ac_ext <<EOF
12664 #line __oline__ "configure"
12665 #include "confdefs.h"
12674 # define LT_DLGLOBAL RTLD_GLOBAL
12677 # define LT_DLGLOBAL DL_GLOBAL
12679 # define LT_DLGLOBAL 0
12683 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12684 find out it does not work in some platform. */
12685 #ifndef LT_DLLAZY_OR_NOW
12687 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12690 # define LT_DLLAZY_OR_NOW DL_LAZY
12693 # define LT_DLLAZY_OR_NOW RTLD_NOW
12696 # define LT_DLLAZY_OR_NOW DL_NOW
12698 # define LT_DLLAZY_OR_NOW 0
12706 extern "C" void exit (int);
12709 void fnord() { int i=42;}
12712 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12713 int status = $lt_dlunknown;
12717 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12718 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12719 /* dlclose (self); */
12725 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12726 (eval $ac_link) 2>&5
12728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12729 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12730 (./conftest; exit; ) 2>/dev/null
12732 case x$lt_status in
12733 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12734 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12735 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12738 # compilation failed
12739 lt_cv_dlopen_self=no
12746 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12747 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12749 if test "x$lt_cv_dlopen_self" = xyes; then
12750 LDFLAGS="$LDFLAGS $link_static_flag"
12751 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12752 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12753 if test "${lt_cv_dlopen_self_static+set}" = set; then
12754 echo $ECHO_N "(cached) $ECHO_C" >&6
12756 if test "$cross_compiling" = yes; then :
12757 lt_cv_dlopen_self_static=cross
12759 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12760 lt_status=$lt_dlunknown
12761 cat > conftest.$ac_ext <<EOF
12762 #line __oline__ "configure"
12763 #include "confdefs.h"
12772 # define LT_DLGLOBAL RTLD_GLOBAL
12775 # define LT_DLGLOBAL DL_GLOBAL
12777 # define LT_DLGLOBAL 0
12781 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12782 find out it does not work in some platform. */
12783 #ifndef LT_DLLAZY_OR_NOW
12785 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12788 # define LT_DLLAZY_OR_NOW DL_LAZY
12791 # define LT_DLLAZY_OR_NOW RTLD_NOW
12794 # define LT_DLLAZY_OR_NOW DL_NOW
12796 # define LT_DLLAZY_OR_NOW 0
12804 extern "C" void exit (int);
12807 void fnord() { int i=42;}
12810 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12811 int status = $lt_dlunknown;
12815 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12816 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12817 /* dlclose (self); */
12823 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12824 (eval $ac_link) 2>&5
12826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12827 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12828 (./conftest; exit; ) 2>/dev/null
12830 case x$lt_status in
12831 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12832 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12833 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12836 # compilation failed
12837 lt_cv_dlopen_self_static=no
12844 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12845 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12848 CPPFLAGS="$save_CPPFLAGS"
12849 LDFLAGS="$save_LDFLAGS"
12854 case $lt_cv_dlopen_self in
12855 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12856 *) enable_dlopen_self=unknown ;;
12859 case $lt_cv_dlopen_self_static in
12860 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12861 *) enable_dlopen_self_static=unknown ;;
12866 # The else clause should only fire when bootstrapping the
12867 # libtool distribution, otherwise you forgot to ship ltmain.sh
12868 # with your package, and you will get complaints that there are
12869 # no rules to generate ltmain.sh.
12870 if test -f "$ltmain"; then
12871 # See if we are running on zsh, and set the options which allow our commands through
12872 # without removal of \ escapes.
12873 if test -n "${ZSH_VERSION+set}" ; then
12874 setopt NO_GLOB_SUBST
12876 # Now quote all the things that may contain metacharacters while being
12877 # careful not to overquote the AC_SUBSTed values. We take copies of the
12878 # variables and quote the copies for generation of the libtool script.
12879 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
12881 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12882 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12883 deplibs_check_method reload_flag reload_cmds need_locks \
12884 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12885 lt_cv_sys_global_symbol_to_c_name_address \
12886 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12887 old_postinstall_cmds old_postuninstall_cmds \
12891 lt_prog_compiler_wl_CXX \
12892 lt_prog_compiler_pic_CXX \
12893 lt_prog_compiler_static_CXX \
12894 lt_prog_compiler_no_builtin_flag_CXX \
12895 export_dynamic_flag_spec_CXX \
12896 thread_safe_flag_spec_CXX \
12897 whole_archive_flag_spec_CXX \
12898 enable_shared_with_static_runtimes_CXX \
12899 old_archive_cmds_CXX \
12900 old_archive_from_new_cmds_CXX \
12901 predep_objects_CXX \
12902 postdep_objects_CXX \
12905 compiler_lib_search_path_CXX \
12907 archive_expsym_cmds_CXX \
12908 postinstall_cmds_CXX \
12909 postuninstall_cmds_CXX \
12910 old_archive_from_expsyms_cmds_CXX \
12911 allow_undefined_flag_CXX \
12912 no_undefined_flag_CXX \
12913 export_symbols_cmds_CXX \
12914 hardcode_libdir_flag_spec_CXX \
12915 hardcode_libdir_flag_spec_ld_CXX \
12916 hardcode_libdir_separator_CXX \
12917 hardcode_automatic_CXX \
12919 module_expsym_cmds_CXX \
12920 lt_cv_prog_compiler_c_o_CXX \
12921 exclude_expsyms_CXX \
12922 include_expsyms_CXX; do
12925 old_archive_cmds_CXX | \
12926 old_archive_from_new_cmds_CXX | \
12927 archive_cmds_CXX | \
12928 archive_expsym_cmds_CXX | \
12929 module_cmds_CXX | \
12930 module_expsym_cmds_CXX | \
12931 old_archive_from_expsyms_cmds_CXX | \
12932 export_symbols_cmds_CXX | \
12933 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12934 postinstall_cmds | postuninstall_cmds | \
12935 old_postinstall_cmds | old_postuninstall_cmds | \
12936 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12937 # Double-quote double-evaled strings.
12938 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12941 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12947 *'\$0 --fallback-echo"')
12948 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12954 cat <<__EOF__ >> "$cfgfile"
12955 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12957 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12959 # Shell to use when invoking shell scripts.
12962 # Whether or not to build shared libraries.
12963 build_libtool_libs=$enable_shared
12965 # Whether or not to build static libraries.
12966 build_old_libs=$enable_static
12968 # Whether or not to add -lc for building shared libraries.
12969 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12971 # Whether or not to disallow shared libs when runtime libs are static
12972 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12974 # Whether or not to optimize for fast installation.
12975 fast_install=$enable_fast_install
12978 host_alias=$host_alias
12982 # The build system.
12983 build_alias=$build_alias
12987 # An echo program that does not interpret backslashes.
12992 AR_FLAGS=$lt_AR_FLAGS
12997 # A language-specific compiler.
12998 CC=$lt_compiler_CXX
13000 # Is the compiler the GNU C compiler?
13006 # The linker used to build libraries.
13009 # Whether we need hard or soft links.
13012 # A BSD-compatible nm program.
13015 # A symbol stripping program
13018 # Used to examine libraries when file_magic_cmd begins "file"
13019 MAGIC_CMD=$MAGIC_CMD
13021 # Used on cygwin: DLL creation program.
13024 # Used on cygwin: object dumper.
13027 # Used on cygwin: assembler.
13030 # The name of the directory that contains temporary libtool files.
13033 # How to create reloadable object files.
13034 reload_flag=$lt_reload_flag
13035 reload_cmds=$lt_reload_cmds
13037 # How to pass a linker flag through the compiler.
13038 wl=$lt_lt_prog_compiler_wl_CXX
13040 # Object file suffix (normally "o").
13041 objext="$ac_objext"
13043 # Old archive suffix (normally "a").
13046 # Shared library suffix (normally ".so").
13047 shrext_cmds='$shrext_cmds'
13049 # Executable file suffix (normally "").
13052 # Additional compiler flags for building library objects.
13053 pic_flag=$lt_lt_prog_compiler_pic_CXX
13056 # What is the maximum length of a command?
13057 max_cmd_len=$lt_cv_sys_max_cmd_len
13059 # Does compiler simultaneously support -c and -o options?
13060 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13062 # Must we lock files when doing compilation?
13063 need_locks=$lt_need_locks
13065 # Do we need the lib prefix for modules?
13066 need_lib_prefix=$need_lib_prefix
13068 # Do we need a version for libraries?
13069 need_version=$need_version
13071 # Whether dlopen is supported.
13072 dlopen_support=$enable_dlopen
13074 # Whether dlopen of programs is supported.
13075 dlopen_self=$enable_dlopen_self
13077 # Whether dlopen of statically linked programs is supported.
13078 dlopen_self_static=$enable_dlopen_self_static
13080 # Compiler flag to prevent dynamic linking.
13081 link_static_flag=$lt_lt_prog_compiler_static_CXX
13083 # Compiler flag to turn off builtin functions.
13084 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13086 # Compiler flag to allow reflexive dlopens.
13087 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13089 # Compiler flag to generate shared objects directly from archives.
13090 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13092 # Compiler flag to generate thread-safe objects.
13093 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13095 # Library versioning type.
13096 version_type=$version_type
13098 # Format of library name prefix.
13099 libname_spec=$lt_libname_spec
13101 # List of archive names. First name is the real one, the rest are links.
13102 # The last name is the one that the linker finds with -lNAME.
13103 library_names_spec=$lt_library_names_spec
13105 # The coded name of the library, if different from the real name.
13106 soname_spec=$lt_soname_spec
13108 # Commands used to build and install an old-style archive.
13110 old_archive_cmds=$lt_old_archive_cmds_CXX
13111 old_postinstall_cmds=$lt_old_postinstall_cmds
13112 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13114 # Create an old-style archive from a shared archive.
13115 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13117 # Create a temporary old-style archive to link instead of a shared archive.
13118 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13120 # Commands used to build and install a shared archive.
13121 archive_cmds=$lt_archive_cmds_CXX
13122 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13123 postinstall_cmds=$lt_postinstall_cmds
13124 postuninstall_cmds=$lt_postuninstall_cmds
13126 # Commands used to build a loadable module (assumed same as above if empty)
13127 module_cmds=$lt_module_cmds_CXX
13128 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13130 # Commands to strip libraries.
13131 old_striplib=$lt_old_striplib
13132 striplib=$lt_striplib
13134 # Dependencies to place before the objects being linked to create a
13136 predep_objects=$lt_predep_objects_CXX
13138 # Dependencies to place after the objects being linked to create a
13140 postdep_objects=$lt_postdep_objects_CXX
13142 # Dependencies to place before the objects being linked to create a
13144 predeps=$lt_predeps_CXX
13146 # Dependencies to place after the objects being linked to create a
13148 postdeps=$lt_postdeps_CXX
13150 # The library search path used internally by the compiler when linking
13151 # a shared library.
13152 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13154 # Method to check whether dependent libraries are shared objects.
13155 deplibs_check_method=$lt_deplibs_check_method
13157 # Command to use when deplibs_check_method == file_magic.
13158 file_magic_cmd=$lt_file_magic_cmd
13160 # Flag that allows shared libraries with undefined symbols to be built.
13161 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13163 # Flag that forces no undefined symbols.
13164 no_undefined_flag=$lt_no_undefined_flag_CXX
13166 # Commands used to finish a libtool library installation in a directory.
13167 finish_cmds=$lt_finish_cmds
13169 # Same as above, but a single script fragment to be evaled but not shown.
13170 finish_eval=$lt_finish_eval
13172 # Take the output of nm and produce a listing of raw symbols and C names.
13173 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13175 # Transform the output of nm in a proper C declaration
13176 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13178 # Transform the output of nm in a C name address pair
13179 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13181 # This is the shared library runtime path variable.
13182 runpath_var=$runpath_var
13184 # This is the shared library path variable.
13185 shlibpath_var=$shlibpath_var
13187 # Is shlibpath searched before the hard-coded library search path?
13188 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13190 # How to hardcode a shared library path into an executable.
13191 hardcode_action=$hardcode_action_CXX
13193 # Whether we should hardcode library paths into libraries.
13194 hardcode_into_libs=$hardcode_into_libs
13196 # Flag to hardcode \$libdir into a binary during linking.
13197 # This must work even if \$libdir does not exist.
13198 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13200 # If ld is used when linking, flag to hardcode \$libdir into
13201 # a binary during linking. This must work even if \$libdir does
13203 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13205 # Whether we need a single -rpath flag with a separated argument.
13206 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13208 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13209 # resulting binary.
13210 hardcode_direct=$hardcode_direct_CXX
13212 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13213 # resulting binary.
13214 hardcode_minus_L=$hardcode_minus_L_CXX
13216 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13217 # the resulting binary.
13218 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13220 # Set to yes if building a shared library automatically hardcodes DIR into the library
13221 # and all subsequent libraries and executables linked against it.
13222 hardcode_automatic=$hardcode_automatic_CXX
13224 # Variables whose values should be saved in libtool wrapper scripts and
13225 # restored at relink time.
13226 variables_saved_for_relink="$variables_saved_for_relink"
13228 # Whether libtool must link a program against all its dependency libraries.
13229 link_all_deplibs=$link_all_deplibs_CXX
13231 # Compile-time system search path for libraries
13232 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13234 # Run-time system search path for libraries
13235 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13237 # Fix the shell variable \$srcfile for the compiler.
13238 fix_srcfile_path="$fix_srcfile_path_CXX"
13240 # Set to yes if exported symbols are required.
13241 always_export_symbols=$always_export_symbols_CXX
13243 # The commands to list exported symbols.
13244 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13246 # The commands to extract the exported symbol list from a shared archive.
13247 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13249 # Symbols that should not be listed in the preloaded symbols.
13250 exclude_expsyms=$lt_exclude_expsyms_CXX
13252 # Symbols that must always be exported.
13253 include_expsyms=$lt_include_expsyms_CXX
13255 # ### END LIBTOOL TAG CONFIG: $tagname
13261 # If there is no Makefile yet, we rely on a make rule to execute
13262 # `config.status --recheck' to rerun these tests and create the
13263 # libtool script then.
13264 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13265 if test -f "$ltmain_in"; then
13266 test -f Makefile && make "$ltmain"
13272 ac_cpp='$CPP $CPPFLAGS'
13273 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13274 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13275 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13281 with_gnu_ldcxx=$with_gnu_ld
13282 with_gnu_ld=$lt_save_with_gnu_ld
13283 lt_cv_path_LDCXX=$lt_cv_path_LD
13284 lt_cv_path_LD=$lt_save_path_LD
13285 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13286 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13294 if test -n "$F77" && test "X$F77" != "Xno"; then
13297 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13298 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13299 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13302 archive_cmds_need_lc_F77=no
13303 allow_undefined_flag_F77=
13304 always_export_symbols_F77=no
13305 archive_expsym_cmds_F77=
13306 export_dynamic_flag_spec_F77=
13307 hardcode_direct_F77=no
13308 hardcode_libdir_flag_spec_F77=
13309 hardcode_libdir_flag_spec_ld_F77=
13310 hardcode_libdir_separator_F77=
13311 hardcode_minus_L_F77=no
13312 hardcode_automatic_F77=no
13314 module_expsym_cmds_F77=
13315 link_all_deplibs_F77=unknown
13316 old_archive_cmds_F77=$old_archive_cmds
13317 no_undefined_flag_F77=
13318 whole_archive_flag_spec_F77=
13319 enable_shared_with_static_runtimes_F77=no
13321 # Source file extension for f77 test sources.
13324 # Object file extension for compiled f77 test sources.
13328 # Code to be used in simple compile tests
13329 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13331 # Code to be used in simple link tests
13332 lt_simple_link_test_code=" program t\n end\n"
13334 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13336 # If no C compiler was specified, use CC.
13339 # Allow CC to be a program name with arguments.
13343 # save warnings/boilerplate of simple test code
13344 ac_outfile=conftest.$ac_objext
13345 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13346 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
13347 _lt_compiler_boilerplate=`cat conftest.err`
13350 ac_outfile=conftest.$ac_objext
13351 printf "$lt_simple_link_test_code" >conftest.$ac_ext
13352 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
13353 _lt_linker_boilerplate=`cat conftest.err`
13357 # Allow CC to be a program name with arguments.
13362 for cc_temp in $compiler""; do
13364 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13365 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13370 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13373 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13374 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13375 echo "$as_me:$LINENO: result: $can_build_shared" >&5
13376 echo "${ECHO_T}$can_build_shared" >&6
13378 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13379 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13380 test "$can_build_shared" = "no" && enable_shared=no
13382 # On AIX, shared libraries and static libraries use the same namespace, and
13383 # are all built from PIC.
13386 test "$enable_shared" = yes && enable_static=no
13387 if test -n "$RANLIB"; then
13388 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13389 postinstall_cmds='$RANLIB $lib'
13393 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13394 test "$enable_shared" = yes && enable_static=no
13398 echo "$as_me:$LINENO: result: $enable_shared" >&5
13399 echo "${ECHO_T}$enable_shared" >&6
13401 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13402 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13403 # Make sure either enable_shared or enable_static is yes.
13404 test "$enable_shared" = yes || enable_static=yes
13405 echo "$as_me:$LINENO: result: $enable_static" >&5
13406 echo "${ECHO_T}$enable_static" >&6
13408 test "$ld_shlibs_F77" = no && can_build_shared=no
13413 lt_prog_compiler_wl_F77=
13414 lt_prog_compiler_pic_F77=
13415 lt_prog_compiler_static_F77=
13417 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13418 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13420 if test "$GCC" = yes; then
13421 lt_prog_compiler_wl_F77='-Wl,'
13422 lt_prog_compiler_static_F77='-static'
13426 # All AIX code is PIC.
13427 if test "$host_cpu" = ia64; then
13428 # AIX 5 now supports IA64 processor
13429 lt_prog_compiler_static_F77='-Bstatic'
13434 # FIXME: we need at least 68020 code to build shared libraries, but
13435 # adding the `-m68020' flag to GCC prevents building anything better,
13437 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13440 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13441 # PIC is the default for these OSes.
13444 mingw* | pw32* | os2*)
13445 # This hack is so that the source file can tell whether it is being
13446 # built for inclusion in a dll (and should export symbols for example).
13447 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13450 darwin* | rhapsody*)
13451 # PIC is the default on this platform
13452 # Common symbols not allowed in MH_DYLIB files
13453 lt_prog_compiler_pic_F77='-fno-common'
13457 # Just because we use GCC doesn't mean we suddenly get shared libraries
13458 # on systems that don't support them.
13459 lt_prog_compiler_can_build_shared_F77=no
13464 if test -d /usr/nec; then
13465 lt_prog_compiler_pic_F77=-Kconform_pic
13470 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13471 # not for PA HP-UX.
13472 case "$host_cpu" in
13477 lt_prog_compiler_pic_F77='-fPIC'
13483 lt_prog_compiler_pic_F77='-fPIC'
13487 # PORTME Check for flag to pass linker flags through the system compiler.
13490 lt_prog_compiler_wl_F77='-Wl,'
13491 if test "$host_cpu" = ia64; then
13492 # AIX 5 now supports IA64 processor
13493 lt_prog_compiler_static_F77='-Bstatic'
13495 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13499 # PIC is the default on this platform
13500 # Common symbols not allowed in MH_DYLIB files
13501 case $cc_basename in
13503 lt_prog_compiler_pic_F77='-qnocommon'
13504 lt_prog_compiler_wl_F77='-Wl,'
13509 mingw* | pw32* | os2*)
13510 # This hack is so that the source file can tell whether it is being
13511 # built for inclusion in a dll (and should export symbols for example).
13512 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13515 hpux9* | hpux10* | hpux11*)
13516 lt_prog_compiler_wl_F77='-Wl,'
13517 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13518 # not for PA HP-UX.
13519 case "$host_cpu" in
13524 lt_prog_compiler_pic_F77='+Z'
13527 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13528 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13531 irix5* | irix6* | nonstopux*)
13532 lt_prog_compiler_wl_F77='-Wl,'
13533 # PIC (with -KPIC) is the default.
13534 lt_prog_compiler_static_F77='-non_shared'
13538 lt_prog_compiler_pic_F77='-KPIC'
13539 lt_prog_compiler_static_F77='-Bstatic'
13543 case $cc_basename in
13545 lt_prog_compiler_wl_F77='-Wl,'
13546 lt_prog_compiler_pic_F77='-KPIC'
13547 lt_prog_compiler_static_F77='-static'
13549 pgcc* | pgf77* | pgf90*)
13550 # Portland Group compilers (*not* the Pentium gcc compiler,
13551 # which looks to be a dead project)
13552 lt_prog_compiler_wl_F77='-Wl,'
13553 lt_prog_compiler_pic_F77='-fpic'
13554 lt_prog_compiler_static_F77='-static'
13557 lt_prog_compiler_wl_F77='-Wl,'
13558 # All Alpha code is PIC.
13559 lt_prog_compiler_static_F77='-non_shared'
13564 osf3* | osf4* | osf5*)
13565 lt_prog_compiler_wl_F77='-Wl,'
13566 # All OSF/1 code is PIC.
13567 lt_prog_compiler_static_F77='-non_shared'
13571 lt_prog_compiler_pic_F77='-Kpic'
13572 lt_prog_compiler_static_F77='-dn'
13576 lt_prog_compiler_pic_F77='-KPIC'
13577 lt_prog_compiler_static_F77='-Bstatic'
13578 case $cc_basename in
13579 f77* | f90* | f95*)
13580 lt_prog_compiler_wl_F77='-Qoption ld ';;
13582 lt_prog_compiler_wl_F77='-Wl,';;
13587 lt_prog_compiler_wl_F77='-Qoption ld '
13588 lt_prog_compiler_pic_F77='-PIC'
13589 lt_prog_compiler_static_F77='-Bstatic'
13592 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13593 lt_prog_compiler_wl_F77='-Wl,'
13594 lt_prog_compiler_pic_F77='-KPIC'
13595 lt_prog_compiler_static_F77='-Bstatic'
13599 if test -d /usr/nec ;then
13600 lt_prog_compiler_pic_F77='-Kconform_pic'
13601 lt_prog_compiler_static_F77='-Bstatic'
13606 lt_prog_compiler_wl_F77='-Wl,'
13607 lt_prog_compiler_can_build_shared_F77=no
13611 lt_prog_compiler_pic_F77='-pic'
13612 lt_prog_compiler_static_F77='-Bstatic'
13616 lt_prog_compiler_can_build_shared_F77=no
13621 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13622 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13625 # Check to make sure the PIC flag actually works.
13627 if test -n "$lt_prog_compiler_pic_F77"; then
13629 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13630 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13631 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13632 echo $ECHO_N "(cached) $ECHO_C" >&6
13634 lt_prog_compiler_pic_works_F77=no
13635 ac_outfile=conftest.$ac_objext
13636 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13637 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13638 # Insert the option either (1) after the last *FLAGS variable, or
13639 # (2) before a word containing "conftest.", or (3) at the end.
13640 # Note that $ac_compile itself does not contain backslashes and begins
13641 # with a dollar sign (not a hyphen), so the echo should work correctly.
13642 # The option is referenced via a variable to avoid confusing sed.
13643 lt_compile=`echo "$ac_compile" | $SED \
13644 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13645 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13646 -e 's:$: $lt_compiler_flag:'`
13647 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
13648 (eval "$lt_compile" 2>conftest.err)
13650 cat conftest.err >&5
13651 echo "$as_me:__oline__: \$? = $ac_status" >&5
13652 if (exit $ac_status) && test -s "$ac_outfile"; then
13653 # The compiler can only warn and ignore the option if not recognized
13654 # So say no if there are warnings other than the usual output.
13655 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
13656 $SED '/^$/d' conftest.err >conftest.er2
13657 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
13658 lt_prog_compiler_pic_works_F77=yes
13664 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13665 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13667 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13668 case $lt_prog_compiler_pic_F77 in
13670 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13673 lt_prog_compiler_pic_F77=
13674 lt_prog_compiler_can_build_shared_F77=no
13679 # For platforms which do not support PIC, -DPIC is meaningless:
13681 lt_prog_compiler_pic_F77=
13684 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13688 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13689 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13690 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13691 echo $ECHO_N "(cached) $ECHO_C" >&6
13693 lt_cv_prog_compiler_c_o_F77=no
13694 $rm -r conftest 2>/dev/null
13698 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13700 lt_compiler_flag="-o out/conftest2.$ac_objext"
13701 # Insert the option either (1) after the last *FLAGS variable, or
13702 # (2) before a word containing "conftest.", or (3) at the end.
13703 # Note that $ac_compile itself does not contain backslashes and begins
13704 # with a dollar sign (not a hyphen), so the echo should work correctly.
13705 lt_compile=`echo "$ac_compile" | $SED \
13706 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13707 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13708 -e 's:$: $lt_compiler_flag:'`
13709 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
13710 (eval "$lt_compile" 2>out/conftest.err)
13712 cat out/conftest.err >&5
13713 echo "$as_me:__oline__: \$? = $ac_status" >&5
13714 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13716 # The compiler can only warn and ignore the option if not recognized
13717 # So say no if there are warnings
13718 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
13719 $SED '/^$/d' out/conftest.err >out/conftest.er2
13720 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13721 lt_cv_prog_compiler_c_o_F77=yes
13726 # SGI C++ compiler will create directory out/ii_files/ for
13727 # template instantiation
13728 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13729 $rm out/* && rmdir out
13735 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13736 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13739 hard_links="nottested"
13740 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13741 # do not overwrite the value of need_locks provided by the user
13742 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13743 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13746 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13748 ln conftest.a conftest.b 2>&5 || hard_links=no
13749 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13750 echo "$as_me:$LINENO: result: $hard_links" >&5
13751 echo "${ECHO_T}$hard_links" >&6
13752 if test "$hard_links" = no; then
13753 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13754 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13761 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13762 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13765 allow_undefined_flag_F77=
13766 enable_shared_with_static_runtimes_F77=no
13768 archive_expsym_cmds_F77=
13769 old_archive_From_new_cmds_F77=
13770 old_archive_from_expsyms_cmds_F77=
13771 export_dynamic_flag_spec_F77=
13772 whole_archive_flag_spec_F77=
13773 thread_safe_flag_spec_F77=
13774 hardcode_libdir_flag_spec_F77=
13775 hardcode_libdir_flag_spec_ld_F77=
13776 hardcode_libdir_separator_F77=
13777 hardcode_direct_F77=no
13778 hardcode_minus_L_F77=no
13779 hardcode_shlibpath_var_F77=unsupported
13780 link_all_deplibs_F77=unknown
13781 hardcode_automatic_F77=no
13783 module_expsym_cmds_F77=
13784 always_export_symbols_F77=no
13785 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13786 # include_expsyms should be a list of space-separated symbols to be *always*
13787 # included in the symbol list
13788 include_expsyms_F77=
13789 # exclude_expsyms can be an extended regexp of symbols to exclude
13790 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13791 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13792 # as well as any symbol that contains `d'.
13793 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13794 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13795 # platforms (ab)use it in PIC code, but their linkers get confused if
13796 # the symbol is explicitly referenced. Since portable code cannot
13797 # rely on this symbol name, it's probably fine to never include it in
13798 # preloaded symbol tables.
13799 extract_expsyms_cmds=
13800 # Just being paranoid about ensuring that cc_basename is set.
13801 for cc_temp in $compiler""; do
13803 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13804 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13809 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13812 cygwin* | mingw* | pw32*)
13813 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13814 # When not using gcc, we currently assume that we are using
13815 # Microsoft Visual C++.
13816 if test "$GCC" != yes; then
13826 if test "$with_gnu_ld" = yes; then
13827 # If archive_cmds runs LD, not CC, wlarc should be empty
13830 # Set some defaults for GNU ld with shared library support. These
13831 # are reset later if shared libraries are not supported. Putting them
13832 # here allows them to be overridden if necessary.
13833 runpath_var=LD_RUN_PATH
13834 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13835 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13836 # ancient GNU ld didn't support --whole-archive et. al.
13837 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13838 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13840 whole_archive_flag_spec_F77=
13842 supports_anon_versioning=no
13843 case `$LD -v 2>/dev/null` in
13844 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13845 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13846 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13847 *\ 2.11.*) ;; # other 2.11 versions
13848 *) supports_anon_versioning=yes ;;
13851 # See if GNU ld supports shared libraries.
13853 aix3* | aix4* | aix5*)
13854 # On AIX/PPC, the GNU linker is very broken
13855 if test "$host_cpu" != ia64; then
13859 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13860 *** to be unable to reliably create shared libraries on AIX.
13861 *** Therefore, libtool is disabling shared libraries support. If you
13862 *** really care for shared libraries, you may want to modify your PATH
13863 *** so that a non-GNU linker is found, and then restart.
13870 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)'
13871 hardcode_libdir_flag_spec_F77='-L$libdir'
13872 hardcode_minus_L_F77=yes
13874 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13875 # that the semantics of dynamic libraries on AmigaOS, at least up
13876 # to version 4, is to share data among multiple programs linked
13877 # with the same dynamic library. Since this doesn't match the
13878 # behavior of shared libraries on other platforms, we can't use
13884 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13885 allow_undefined_flag_F77=unsupported
13886 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13887 # support --undefined. This deserves some investigation. FIXME
13888 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13894 cygwin* | mingw* | pw32*)
13895 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13896 # as there is no search path for DLLs.
13897 hardcode_libdir_flag_spec_F77='-L$libdir'
13898 allow_undefined_flag_F77=unsupported
13899 always_export_symbols_F77=no
13900 enable_shared_with_static_runtimes_F77=yes
13901 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13903 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13904 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13905 # If the export-symbols file already is a .def file (1st line
13906 # is EXPORTS), use it as is; otherwise, prepend...
13907 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13908 cp $export_symbols $output_objdir/$soname.def;
13910 echo EXPORTS > $output_objdir/$soname.def;
13911 cat $export_symbols >> $output_objdir/$soname.def;
13913 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13920 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13922 case $cc_basename,$host_cpu in
13923 pgcc*) # Portland Group C compiler
13924 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'
13925 tmp_addflag=' $pic_flag'
13927 pgf77* | pgf90* ) # Portland Group f77 and f90 compilers
13928 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'
13929 tmp_addflag=' $pic_flag -Mnomain' ;;
13930 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
13931 tmp_addflag=' -i_dynamic' ;;
13932 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
13933 tmp_addflag=' -i_dynamic -nofor_main' ;;
13934 ifc* | ifort*) # Intel Fortran compiler
13935 tmp_addflag=' -nofor_main' ;;
13937 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13939 if test $supports_anon_versioning = yes; then
13940 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13941 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13942 $echo "local: *; };" >> $output_objdir/$libname.ver~
13943 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13951 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13952 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13955 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13956 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13961 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13965 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13966 *** create shared libraries on Solaris systems. Therefore, libtool
13967 *** is disabling shared libraries support. We urge you to upgrade GNU
13968 *** binutils to release 2.9.1 or newer. Another option is to modify
13969 *** your PATH or compiler configuration so that the native linker is
13970 *** used, and then restart.
13973 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13974 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13975 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13982 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13984 hardcode_direct_F77=yes
13985 hardcode_shlibpath_var_F77=no
13989 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13990 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13991 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13998 if test "$ld_shlibs_F77" = no; then
14000 hardcode_libdir_flag_spec_F77=
14001 export_dynamic_flag_spec_F77=
14002 whole_archive_flag_spec_F77=
14005 # PORTME fill in a description of your system's linker (not GNU ld)
14008 allow_undefined_flag_F77=unsupported
14009 always_export_symbols_F77=yes
14010 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'
14011 # Note: this linker hardcodes the directories in LIBPATH if there
14012 # are no directories specified by -L.
14013 hardcode_minus_L_F77=yes
14014 if test "$GCC" = yes && test -z "$link_static_flag"; then
14015 # Neither direct hardcoding nor static linking is supported with a
14017 hardcode_direct_F77=unsupported
14022 if test "$host_cpu" = ia64; then
14023 # On IA64, the linker does run time linking by default, so we don't
14024 # have to do anything special.
14025 aix_use_runtimelinking=no
14026 exp_sym_flag='-Bexport'
14029 # If we're using GNU nm, then we don't want the "-C" option.
14030 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14031 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14032 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'
14034 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'
14036 aix_use_runtimelinking=no
14038 # Test if we are trying to use run time linking or normal
14039 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14040 # need to do runtime linking.
14041 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14042 for ld_flag in $LDFLAGS; do
14043 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14044 aix_use_runtimelinking=yes
14050 exp_sym_flag='-bexport'
14051 no_entry_flag='-bnoentry'
14054 # When large executables or shared objects are built, AIX ld can
14055 # have problems creating the table of contents. If linking a library
14056 # or program results in "error TOC overflow" add -mminimal-toc to
14057 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14058 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14060 archive_cmds_F77=''
14061 hardcode_direct_F77=yes
14062 hardcode_libdir_separator_F77=':'
14063 link_all_deplibs_F77=yes
14065 if test "$GCC" = yes; then
14066 case $host_os in aix4.[012]|aix4.[012].*)
14067 # We only want to do this on AIX 4.2 and lower, the check
14068 # below for broken collect2 doesn't work under 4.3+
14069 collect2name=`${CC} -print-prog-name=collect2`
14070 if test -f "$collect2name" && \
14071 strings "$collect2name" | grep resolve_lib_name >/dev/null
14073 # We have reworked collect2
14074 hardcode_direct_F77=yes
14076 # We have old collect2
14077 hardcode_direct_F77=unsupported
14078 # It fails to find uninstalled libraries when the uninstalled
14079 # path is not listed in the libpath. Setting hardcode_minus_L
14080 # to unsupported forces relinking
14081 hardcode_minus_L_F77=yes
14082 hardcode_libdir_flag_spec_F77='-L$libdir'
14083 hardcode_libdir_separator_F77=
14086 shared_flag='-shared'
14087 if test "$aix_use_runtimelinking" = yes; then
14088 shared_flag="$shared_flag "'${wl}-G'
14092 if test "$host_cpu" = ia64; then
14093 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14094 # chokes on -Wl,-G. The following line is correct:
14097 if test "$aix_use_runtimelinking" = yes; then
14098 shared_flag='${wl}-G'
14100 shared_flag='${wl}-bM:SRE'
14105 # It seems that -bexpall does not export symbols beginning with
14106 # underscore (_), so it is better to generate a list of symbols to export.
14107 always_export_symbols_F77=yes
14108 if test "$aix_use_runtimelinking" = yes; then
14109 # Warning - without using the other runtime loading flags (-brtl),
14110 # -berok will link without error, but may produce a broken library.
14111 allow_undefined_flag_F77='-berok'
14112 # Determine the default libpath from the value encoded in an empty executable.
14113 cat >conftest.$ac_ext <<_ACEOF
14118 rm -f conftest.$ac_objext conftest$ac_exeext
14119 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14120 (eval $ac_link) 2>conftest.er1
14122 grep -v '^ *+' conftest.er1 >conftest.err
14124 cat conftest.err >&5
14125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14126 (exit $ac_status); } &&
14127 { ac_try='test -z "$ac_f77_werror_flag"
14128 || test ! -s conftest.err'
14129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14130 (eval $ac_try) 2>&5
14132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14133 (exit $ac_status); }; } &&
14134 { ac_try='test -s conftest$ac_exeext'
14135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14136 (eval $ac_try) 2>&5
14138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14139 (exit $ac_status); }; }; then
14141 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14143 # Check for a 64-bit object if we didn't find anything.
14144 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; }
14147 echo "$as_me: failed program was:" >&5
14148 sed 's/^/| /' conftest.$ac_ext >&5
14151 rm -f conftest.err conftest.$ac_objext \
14152 conftest$ac_exeext conftest.$ac_ext
14153 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14155 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14156 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
14158 if test "$host_cpu" = ia64; then
14159 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14160 allow_undefined_flag_F77="-z nodefs"
14161 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
14163 # Determine the default libpath from the value encoded in an empty executable.
14164 cat >conftest.$ac_ext <<_ACEOF
14169 rm -f conftest.$ac_objext conftest$ac_exeext
14170 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14171 (eval $ac_link) 2>conftest.er1
14173 grep -v '^ *+' conftest.er1 >conftest.err
14175 cat conftest.err >&5
14176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14177 (exit $ac_status); } &&
14178 { ac_try='test -z "$ac_f77_werror_flag"
14179 || test ! -s conftest.err'
14180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14181 (eval $ac_try) 2>&5
14183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14184 (exit $ac_status); }; } &&
14185 { ac_try='test -s conftest$ac_exeext'
14186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14187 (eval $ac_try) 2>&5
14189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14190 (exit $ac_status); }; }; then
14192 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14194 # Check for a 64-bit object if we didn't find anything.
14195 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; }
14198 echo "$as_me: failed program was:" >&5
14199 sed 's/^/| /' conftest.$ac_ext >&5
14202 rm -f conftest.err conftest.$ac_objext \
14203 conftest$ac_exeext conftest.$ac_ext
14204 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14206 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14207 # Warning - without using the other run time loading flags,
14208 # -berok will link without error, but may produce a broken library.
14209 no_undefined_flag_F77=' ${wl}-bernotok'
14210 allow_undefined_flag_F77=' ${wl}-berok'
14211 # -bexpall does not export symbols beginning with underscore (_)
14212 always_export_symbols_F77=yes
14213 # Exported symbols can be pulled into shared objects from archives
14214 whole_archive_flag_spec_F77=' '
14215 archive_cmds_need_lc_F77=yes
14216 # This is similar to how AIX traditionally builds it's shared libraries.
14217 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
14223 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)'
14224 hardcode_libdir_flag_spec_F77='-L$libdir'
14225 hardcode_minus_L_F77=yes
14226 # see comment about different semantics on the GNU ld section
14231 export_dynamic_flag_spec_F77=-rdynamic
14234 cygwin* | mingw* | pw32*)
14235 # When not using gcc, we currently assume that we are using
14236 # Microsoft Visual C++.
14237 # hardcode_libdir_flag_spec is actually meaningless, as there is
14238 # no search path for DLLs.
14239 hardcode_libdir_flag_spec_F77=' '
14240 allow_undefined_flag_F77=unsupported
14241 # Tell ltmain to make .lib files, not .a files.
14243 # Tell ltmain to make .dll files, not .so files.
14245 # FIXME: Setting linknames here is a bad hack.
14246 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14247 # The linker will automatically build a .lib file if we build a DLL.
14248 old_archive_From_new_cmds_F77='true'
14249 # FIXME: Should let the user specify the lib program.
14250 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14251 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14252 enable_shared_with_static_runtimes_F77=yes
14255 darwin* | rhapsody*)
14257 rhapsody* | darwin1.[012])
14258 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14261 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14262 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14264 case ${MACOSX_DEPLOYMENT_TARGET} in
14266 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14269 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14275 archive_cmds_need_lc_F77=no
14276 hardcode_direct_F77=no
14277 hardcode_automatic_F77=yes
14278 hardcode_shlibpath_var_F77=unsupported
14279 whole_archive_flag_spec_F77=''
14280 link_all_deplibs_F77=yes
14281 if test "$GCC" = yes ; then
14282 output_verbose_link_cmd='echo'
14283 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14284 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14285 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
14286 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}'
14287 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}'
14289 case $cc_basename in
14291 output_verbose_link_cmd='echo'
14292 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14293 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14294 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
14295 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}'
14296 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}'
14306 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14307 hardcode_libdir_flag_spec_F77='-L$libdir'
14308 hardcode_shlibpath_var_F77=no
14315 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14316 # support. Future versions do this automatically, but an explicit c++rt0.o
14317 # does not break anything, and helps significantly (at the cost of a little
14320 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14321 hardcode_libdir_flag_spec_F77='-R$libdir'
14322 hardcode_direct_F77=yes
14323 hardcode_shlibpath_var_F77=no
14326 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14328 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14329 hardcode_direct_F77=yes
14330 hardcode_minus_L_F77=yes
14331 hardcode_shlibpath_var_F77=no
14334 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14335 freebsd* | kfreebsd*-gnu | dragonfly*)
14336 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14337 hardcode_libdir_flag_spec_F77='-R$libdir'
14338 hardcode_direct_F77=yes
14339 hardcode_shlibpath_var_F77=no
14343 if test "$GCC" = yes; then
14344 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'
14346 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'
14348 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14349 hardcode_libdir_separator_F77=:
14350 hardcode_direct_F77=yes
14352 # hardcode_minus_L: Not really in the search PATH,
14353 # but as the default location of the library.
14354 hardcode_minus_L_F77=yes
14355 export_dynamic_flag_spec_F77='${wl}-E'
14359 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14360 case "$host_cpu" in
14362 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14365 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14369 case "$host_cpu" in
14371 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
14374 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14378 if test "$with_gnu_ld" = no; then
14379 case "$host_cpu" in
14381 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14382 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14383 hardcode_libdir_separator_F77=:
14384 hardcode_direct_F77=no
14385 hardcode_shlibpath_var_F77=no
14388 hardcode_libdir_flag_spec_F77='-L$libdir'
14389 hardcode_direct_F77=no
14390 hardcode_shlibpath_var_F77=no
14392 # hardcode_minus_L: Not really in the search PATH,
14393 # but as the default location of the library.
14394 hardcode_minus_L_F77=yes
14397 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14398 hardcode_libdir_separator_F77=:
14399 hardcode_direct_F77=yes
14400 export_dynamic_flag_spec_F77='${wl}-E'
14402 # hardcode_minus_L: Not really in the search PATH,
14403 # but as the default location of the library.
14404 hardcode_minus_L_F77=yes
14410 irix5* | irix6* | nonstopux*)
14411 if test "$GCC" = yes; then
14412 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'
14414 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'
14415 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14417 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14418 hardcode_libdir_separator_F77=:
14419 link_all_deplibs_F77=yes
14423 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14424 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14426 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14428 hardcode_libdir_flag_spec_F77='-R$libdir'
14429 hardcode_direct_F77=yes
14430 hardcode_shlibpath_var_F77=no
14434 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14435 hardcode_direct_F77=yes
14436 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14437 hardcode_libdir_separator_F77=:
14438 hardcode_shlibpath_var_F77=no
14442 hardcode_direct_F77=yes
14443 hardcode_shlibpath_var_F77=no
14444 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14445 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14446 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14447 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14448 export_dynamic_flag_spec_F77='${wl}-E'
14451 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14452 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14453 hardcode_libdir_flag_spec_F77='-R$libdir'
14456 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14457 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14464 hardcode_libdir_flag_spec_F77='-L$libdir'
14465 hardcode_minus_L_F77=yes
14466 allow_undefined_flag_F77=unsupported
14467 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'
14468 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14472 if test "$GCC" = yes; then
14473 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14474 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'
14476 allow_undefined_flag_F77=' -expect_unresolved \*'
14477 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'
14479 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14480 hardcode_libdir_separator_F77=:
14483 osf4* | osf5*) # as osf3* with the addition of -msym flag
14484 if test "$GCC" = yes; then
14485 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14486 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'
14487 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14489 allow_undefined_flag_F77=' -expect_unresolved \*'
14490 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'
14491 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~
14492 $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'
14494 # Both c and cxx compiler support -rpath directly
14495 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14497 hardcode_libdir_separator_F77=:
14501 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14502 hardcode_shlibpath_var_F77=no
14503 export_dynamic_flag_spec_F77='${wl}-Bexport'
14504 runpath_var=LD_RUN_PATH
14505 hardcode_runpath_var=yes
14509 no_undefined_flag_F77=' -z text'
14510 if test "$GCC" = yes; then
14512 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14513 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14514 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14517 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14518 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14519 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14521 hardcode_libdir_flag_spec_F77='-R$libdir'
14522 hardcode_shlibpath_var_F77=no
14524 solaris2.[0-5] | solaris2.[0-5].*) ;;
14526 # The compiler driver will combine linker options so we
14527 # cannot just pass the convience library names through
14528 # without $wl, iff we do not link with $LD.
14529 # Luckily, gcc supports the same syntax we need for Sun Studio.
14530 # Supported since Solaris 2.6 (maybe 2.5.1?)
14533 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14535 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' ;;
14538 link_all_deplibs_F77=yes
14542 if test "x$host_vendor" = xsequent; then
14543 # Use $CC to link under sequent, because it throws in some extra .o
14544 # files that make .init and .fini sections work.
14545 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14547 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14549 hardcode_libdir_flag_spec_F77='-L$libdir'
14550 hardcode_direct_F77=yes
14551 hardcode_minus_L_F77=yes
14552 hardcode_shlibpath_var_F77=no
14556 case $host_vendor in
14558 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14559 hardcode_direct_F77=yes # is this really true???
14562 ## LD is ld it makes a PLAMLIB
14563 ## CC just makes a GrossModule.
14564 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14565 reload_cmds_F77='$CC -r -o $output$reload_objs'
14566 hardcode_direct_F77=no
14569 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14570 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14573 runpath_var='LD_RUN_PATH'
14574 hardcode_shlibpath_var_F77=no
14578 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14579 hardcode_shlibpath_var_F77=no
14580 export_dynamic_flag_spec_F77='-Bexport'
14584 if test -d /usr/nec; then
14585 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14586 hardcode_shlibpath_var_F77=no
14587 runpath_var=LD_RUN_PATH
14588 hardcode_runpath_var=yes
14594 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14595 hardcode_direct_F77=yes
14596 hardcode_minus_L_F77=no
14597 hardcode_shlibpath_var_F77=no
14598 hardcode_runpath_var=yes
14599 runpath_var=LD_RUN_PATH
14602 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
14603 no_undefined_flag_F77='${wl}-z ${wl}text'
14604 if test "$GCC" = yes; then
14605 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14607 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14609 runpath_var='LD_RUN_PATH'
14610 hardcode_shlibpath_var_F77=no
14614 no_undefined_flag_F77=' -z text'
14615 # $CC -shared without GNU ld will not create a library from C++
14616 # object files and a static libstdc++, better avoid it by now
14617 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14618 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14619 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14620 hardcode_libdir_flag_spec_F77=
14621 hardcode_shlibpath_var_F77=no
14622 runpath_var='LD_RUN_PATH'
14626 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14627 hardcode_libdir_flag_spec_F77='-L$libdir'
14628 hardcode_shlibpath_var_F77=no
14637 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14638 echo "${ECHO_T}$ld_shlibs_F77" >&6
14639 test "$ld_shlibs_F77" = no && can_build_shared=no
14641 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14642 if test "$GCC" = yes; then
14643 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14647 # Do we need to explicitly link libc?
14649 case "x$archive_cmds_need_lc_F77" in
14651 # Assume -lc should be added
14652 archive_cmds_need_lc_F77=yes
14654 if test "$enable_shared" = yes && test "$GCC" = yes; then
14655 case $archive_cmds_F77 in
14657 # FIXME: we may have to deal with multi-command sequences.
14660 # Test whether the compiler implicitly links with -lc since on some
14661 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14662 # to ld, don't add -lc before -lgcc.
14663 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14664 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14666 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14668 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14669 (eval $ac_compile) 2>&5
14671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14672 (exit $ac_status); } 2>conftest.err; then
14675 libobjs=conftest.$ac_objext
14677 wl=$lt_prog_compiler_wl_F77
14683 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14684 allow_undefined_flag_F77=
14685 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14686 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14689 (exit $ac_status); }
14691 archive_cmds_need_lc_F77=no
14693 archive_cmds_need_lc_F77=yes
14695 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14697 cat conftest.err 1>&5
14700 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14701 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14708 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14709 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14710 library_names_spec=
14711 libname_spec='lib$name'
14715 postuninstall_cmds=
14719 shlibpath_overrides_runpath=unknown
14721 dynamic_linker="$host_os ld.so"
14722 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14723 if test "$GCC" = yes; then
14724 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14725 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14726 # if the path contains ";" then we assume it to be the separator
14727 # otherwise default to the standard path separator (i.e. ":") - it is
14728 # assumed that no part of a normal pathname contains ";" but that should
14729 # okay in the real world where ";" in dirpaths is itself problematic.
14730 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14732 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14735 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14737 need_lib_prefix=unknown
14738 hardcode_into_libs=no
14740 # when you set need_version to no, make sure it does not cause -set_version
14741 # flags to be left without arguments
14742 need_version=unknown
14747 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14748 shlibpath_var=LIBPATH
14750 # AIX 3 has no versioning support, so we append a major version to the name.
14751 soname_spec='${libname}${release}${shared_ext}$major'
14758 hardcode_into_libs=yes
14759 if test "$host_cpu" = ia64; then
14760 # AIX 5 supports IA64
14761 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14762 shlibpath_var=LD_LIBRARY_PATH
14764 # With GCC up to 2.95.x, collect2 would create an import file
14765 # for dependence libraries. The import file would start with
14766 # the line `#! .'. This would cause the generated library to
14767 # depend on `.', always an invalid library. This was fixed in
14768 # development snapshots of GCC prior to 3.0.
14770 aix4 | aix4.[01] | aix4.[01].*)
14771 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14773 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14776 can_build_shared=no
14780 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14781 # soname into executable. Probably we can add versioning support to
14782 # collect2, so additional links can be useful in future.
14783 if test "$aix_use_runtimelinking" = yes; then
14784 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14785 # instead of lib<name>.a to let people know that these are not
14786 # typical AIX shared libraries.
14787 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14789 # We preserve .a as extension for shared libraries through AIX4.2
14790 # and later when we are not doing run time linking.
14791 library_names_spec='${libname}${release}.a $libname.a'
14792 soname_spec='${libname}${release}${shared_ext}$major'
14794 shlibpath_var=LIBPATH
14799 library_names_spec='$libname.ixlibrary $libname.a'
14800 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14801 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'
14805 library_names_spec='${libname}${shared_ext}'
14806 dynamic_linker="$host_os ld.so"
14807 shlibpath_var=LIBRARY_PATH
14813 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14814 soname_spec='${libname}${release}${shared_ext}$major'
14815 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14816 shlibpath_var=LD_LIBRARY_PATH
14817 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14818 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14819 # the default ld.so.conf also contains /usr/contrib/lib and
14820 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14821 # libtool to hard-code these into programs
14824 cygwin* | mingw* | pw32*)
14825 version_type=windows
14830 case $GCC,$host_os in
14831 yes,cygwin* | yes,mingw* | yes,pw32*)
14832 library_names_spec='$libname.dll.a'
14833 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14834 postinstall_cmds='base_file=`basename \${file}`~
14835 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14836 dldir=$destdir/`dirname \$dlpath`~
14837 test -d \$dldir || mkdir -p \$dldir~
14838 $install_prog $dir/$dlname \$dldir/$dlname'
14839 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14840 dlpath=$dir/\$dldll~
14842 shlibpath_overrides_runpath=yes
14846 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14847 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14848 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14851 # MinGW DLLs use traditional 'lib' prefix
14852 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14853 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14854 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14855 # It is most probably a Windows format PATH printed by
14856 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14857 # path with ; separators, and with drive letters. We can handle the
14858 # drive letters (cygwin fileutils understands them), so leave them,
14859 # especially as we might pass files found there to a mingw objdump,
14860 # which wouldn't understand a cygwinified path. Ahh.
14861 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14863 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14867 # pw32 DLLs use 'pw' prefix rather than 'lib'
14868 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14874 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14877 dynamic_linker='Win32 ld.exe'
14878 # FIXME: first we should search . and the directory the executable is in
14882 darwin* | rhapsody*)
14883 dynamic_linker="$host_os dyld"
14884 version_type=darwin
14887 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14888 soname_spec='${libname}${release}${major}$shared_ext'
14889 shlibpath_overrides_runpath=yes
14890 shlibpath_var=DYLD_LIBRARY_PATH
14891 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
14892 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14893 if test "$GCC" = yes; then
14894 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"`
14896 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14898 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14905 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14906 soname_spec='${libname}${release}${shared_ext}$major'
14907 shlibpath_var=LD_LIBRARY_PATH
14918 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14919 soname_spec='${libname}${release}${shared_ext}$major'
14920 shlibpath_var=LD_LIBRARY_PATH
14921 shlibpath_overrides_runpath=no
14922 hardcode_into_libs=yes
14923 dynamic_linker='GNU ld.so'
14926 freebsd* | dragonfly*)
14927 # DragonFly does not have aout. When/if they implement a new
14928 # versioning mechanism, adjust this.
14929 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14930 version_type=freebsd-$objformat
14931 case $version_type in
14933 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14938 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14942 shlibpath_var=LD_LIBRARY_PATH
14945 shlibpath_overrides_runpath=yes
14947 freebsd3.[01]* | freebsdelf3.[01]*)
14948 shlibpath_overrides_runpath=yes
14949 hardcode_into_libs=yes
14952 shlibpath_overrides_runpath=no
14953 hardcode_into_libs=yes
14962 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14963 soname_spec='${libname}${release}${shared_ext}$major'
14964 shlibpath_var=LD_LIBRARY_PATH
14965 hardcode_into_libs=yes
14968 hpux9* | hpux10* | hpux11*)
14969 # Give a soname corresponding to the major version so that dld.sl refuses to
14970 # link against other versions.
14974 case "$host_cpu" in
14977 hardcode_into_libs=yes
14978 dynamic_linker="$host_os dld.so"
14979 shlibpath_var=LD_LIBRARY_PATH
14980 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14981 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14982 soname_spec='${libname}${release}${shared_ext}$major'
14983 if test "X$HPUX_IA64_MODE" = X32; then
14984 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14986 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14988 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14992 hardcode_into_libs=yes
14993 dynamic_linker="$host_os dld.sl"
14994 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14995 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14996 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14997 soname_spec='${libname}${release}${shared_ext}$major'
14998 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14999 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15003 dynamic_linker="$host_os dld.sl"
15004 shlibpath_var=SHLIB_PATH
15005 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15006 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15007 soname_spec='${libname}${release}${shared_ext}$major'
15010 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15011 postinstall_cmds='chmod 555 $lib'
15014 irix5* | irix6* | nonstopux*)
15016 nonstopux*) version_type=nonstopux ;;
15018 if test "$lt_cv_prog_gnu_ld" = yes; then
15026 soname_spec='${libname}${release}${shared_ext}$major'
15027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15029 irix5* | nonstopux*)
15030 libsuff= shlibsuff=
15033 case $LD in # libtool.m4 will add one of these switches to LD
15034 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15035 libsuff= shlibsuff= libmagic=32-bit;;
15036 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15037 libsuff=32 shlibsuff=N32 libmagic=N32;;
15038 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15039 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15040 *) libsuff= shlibsuff= libmagic=never-match;;
15044 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15045 shlibpath_overrides_runpath=no
15046 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15047 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15048 hardcode_into_libs=yes
15051 # No shared lib support for Linux oldld, aout, or coff.
15052 linux*oldld* | linux*aout* | linux*coff*)
15056 # This must be Linux ELF.
15061 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15062 soname_spec='${libname}${release}${shared_ext}$major'
15063 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15064 shlibpath_var=LD_LIBRARY_PATH
15065 shlibpath_overrides_runpath=no
15066 # This implies no fast_install, which is unacceptable.
15067 # Some rework will be needed to allow for fast_install
15068 # before this can be enabled.
15069 hardcode_into_libs=yes
15071 # find out which ABI we are using
15073 case "$host_cpu" in
15074 x86_64*|s390x*|powerpc64*)
15075 echo '#line __oline__ "configure"' > conftest.$ac_ext
15076 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15077 (eval $ac_compile) 2>&5
15079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15080 (exit $ac_status); }; then
15081 case `/usr/bin/file conftest.$ac_objext` in
15084 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
15092 # Append ld.so.conf contents to the search path
15093 if test -f /etc/ld.so.conf; then
15094 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' ' '`
15095 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
15098 # We used to test for /lib/ld.so.1 and disable shared libraries on
15099 # powerpc, because MkLinux only supported shared libraries with the
15100 # GNU dynamic linker. Since this was broken with cross compilers,
15101 # most powerpc-linux boxes support dynamic linking these days and
15102 # people can always --disable-shared, the test was removed, and we
15103 # assume the GNU/Linux dynamic linker is in use.
15104 dynamic_linker='GNU/Linux ld.so'
15111 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15112 soname_spec='${libname}${release}${shared_ext}$major'
15113 shlibpath_var=LD_LIBRARY_PATH
15114 shlibpath_overrides_runpath=no
15115 hardcode_into_libs=yes
15116 dynamic_linker='GNU ld.so'
15123 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15124 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15125 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15126 dynamic_linker='NetBSD (a.out) ld.so'
15128 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15129 soname_spec='${libname}${release}${shared_ext}$major'
15130 dynamic_linker='NetBSD ld.elf_so'
15132 shlibpath_var=LD_LIBRARY_PATH
15133 shlibpath_overrides_runpath=yes
15134 hardcode_into_libs=yes
15139 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15140 shlibpath_var=LD_LIBRARY_PATH
15141 shlibpath_overrides_runpath=yes
15148 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15149 soname_spec='${libname}${release}${shared_ext}$major'
15150 shlibpath_var=LD_LIBRARY_PATH
15151 shlibpath_overrides_runpath=yes
15157 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15159 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15160 *) need_version=no ;;
15162 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15163 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15164 shlibpath_var=LD_LIBRARY_PATH
15165 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15167 openbsd2.[89] | openbsd2.[89].*)
15168 shlibpath_overrides_runpath=no
15171 shlibpath_overrides_runpath=yes
15175 shlibpath_overrides_runpath=yes
15180 libname_spec='$name'
15183 library_names_spec='$libname${shared_ext} $libname.a'
15184 dynamic_linker='OS/2 ld.exe'
15185 shlibpath_var=LIBPATH
15188 osf3* | osf4* | osf5*)
15192 soname_spec='${libname}${release}${shared_ext}$major'
15193 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15194 shlibpath_var=LD_LIBRARY_PATH
15195 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15196 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15201 soname_spec='${libname}${release}${shared_ext}$major'
15202 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15203 shlibpath_var=LD_LIBRARY_PATH
15210 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15211 soname_spec='${libname}${release}${shared_ext}$major'
15212 shlibpath_var=LD_LIBRARY_PATH
15213 shlibpath_overrides_runpath=yes
15214 hardcode_into_libs=yes
15215 # ldd complains unless libraries are executable
15216 postinstall_cmds='chmod +x $lib'
15221 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15222 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15223 shlibpath_var=LD_LIBRARY_PATH
15224 shlibpath_overrides_runpath=yes
15225 if test "$with_gnu_ld" = yes; then
15231 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15233 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15234 soname_spec='${libname}${release}${shared_ext}$major'
15235 shlibpath_var=LD_LIBRARY_PATH
15236 case $host_vendor in
15238 shlibpath_overrides_runpath=no
15240 export_dynamic_flag_spec='${wl}-Blargedynsym'
15241 runpath_var=LD_RUN_PATH
15249 shlibpath_overrides_runpath=no
15250 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15256 if test -d /usr/nec ;then
15258 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15259 soname_spec='$libname${shared_ext}.$major'
15260 shlibpath_var=LD_LIBRARY_PATH
15266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15267 soname_spec='${libname}${release}${shared_ext}$major'
15268 shlibpath_var=LD_LIBRARY_PATH
15275 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15276 echo "${ECHO_T}$dynamic_linker" >&6
15277 test "$dynamic_linker" = no && can_build_shared=no
15279 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15280 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15281 hardcode_action_F77=
15282 if test -n "$hardcode_libdir_flag_spec_F77" || \
15283 test -n "$runpath_var_F77" || \
15284 test "X$hardcode_automatic_F77" = "Xyes" ; then
15286 # We can hardcode non-existant directories.
15287 if test "$hardcode_direct_F77" != no &&
15288 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15289 # have to relink, otherwise we might link with an installed library
15290 # when we should be linking with a yet-to-be-installed one
15291 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15292 test "$hardcode_minus_L_F77" != no; then
15293 # Linking always hardcodes the temporary library directory.
15294 hardcode_action_F77=relink
15296 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15297 hardcode_action_F77=immediate
15300 # We cannot hardcode anything, or else we can only hardcode existing
15302 hardcode_action_F77=unsupported
15304 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15305 echo "${ECHO_T}$hardcode_action_F77" >&6
15307 if test "$hardcode_action_F77" = relink; then
15308 # Fast installation is not supported
15309 enable_fast_install=no
15310 elif test "$shlibpath_overrides_runpath" = yes ||
15311 test "$enable_shared" = no; then
15312 # Fast installation is not necessary
15313 enable_fast_install=needless
15318 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15319 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15320 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15321 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15322 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15323 echo "$as_me:$LINENO: result: yes" >&5
15324 echo "${ECHO_T}yes" >&6
15326 # FIXME - insert some real tests, host_os isn't really good enough
15329 if test -n "$STRIP" ; then
15330 striplib="$STRIP -x"
15331 echo "$as_me:$LINENO: result: yes" >&5
15332 echo "${ECHO_T}yes" >&6
15334 echo "$as_me:$LINENO: result: no" >&5
15335 echo "${ECHO_T}no" >&6
15339 echo "$as_me:$LINENO: result: no" >&5
15340 echo "${ECHO_T}no" >&6
15347 # The else clause should only fire when bootstrapping the
15348 # libtool distribution, otherwise you forgot to ship ltmain.sh
15349 # with your package, and you will get complaints that there are
15350 # no rules to generate ltmain.sh.
15351 if test -f "$ltmain"; then
15352 # See if we are running on zsh, and set the options which allow our commands through
15353 # without removal of \ escapes.
15354 if test -n "${ZSH_VERSION+set}" ; then
15355 setopt NO_GLOB_SUBST
15357 # Now quote all the things that may contain metacharacters while being
15358 # careful not to overquote the AC_SUBSTed values. We take copies of the
15359 # variables and quote the copies for generation of the libtool script.
15360 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
15362 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15363 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15364 deplibs_check_method reload_flag reload_cmds need_locks \
15365 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15366 lt_cv_sys_global_symbol_to_c_name_address \
15367 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15368 old_postinstall_cmds old_postuninstall_cmds \
15372 lt_prog_compiler_wl_F77 \
15373 lt_prog_compiler_pic_F77 \
15374 lt_prog_compiler_static_F77 \
15375 lt_prog_compiler_no_builtin_flag_F77 \
15376 export_dynamic_flag_spec_F77 \
15377 thread_safe_flag_spec_F77 \
15378 whole_archive_flag_spec_F77 \
15379 enable_shared_with_static_runtimes_F77 \
15380 old_archive_cmds_F77 \
15381 old_archive_from_new_cmds_F77 \
15382 predep_objects_F77 \
15383 postdep_objects_F77 \
15386 compiler_lib_search_path_F77 \
15388 archive_expsym_cmds_F77 \
15389 postinstall_cmds_F77 \
15390 postuninstall_cmds_F77 \
15391 old_archive_from_expsyms_cmds_F77 \
15392 allow_undefined_flag_F77 \
15393 no_undefined_flag_F77 \
15394 export_symbols_cmds_F77 \
15395 hardcode_libdir_flag_spec_F77 \
15396 hardcode_libdir_flag_spec_ld_F77 \
15397 hardcode_libdir_separator_F77 \
15398 hardcode_automatic_F77 \
15400 module_expsym_cmds_F77 \
15401 lt_cv_prog_compiler_c_o_F77 \
15402 exclude_expsyms_F77 \
15403 include_expsyms_F77; do
15406 old_archive_cmds_F77 | \
15407 old_archive_from_new_cmds_F77 | \
15408 archive_cmds_F77 | \
15409 archive_expsym_cmds_F77 | \
15410 module_cmds_F77 | \
15411 module_expsym_cmds_F77 | \
15412 old_archive_from_expsyms_cmds_F77 | \
15413 export_symbols_cmds_F77 | \
15414 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15415 postinstall_cmds | postuninstall_cmds | \
15416 old_postinstall_cmds | old_postuninstall_cmds | \
15417 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15418 # Double-quote double-evaled strings.
15419 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15422 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15428 *'\$0 --fallback-echo"')
15429 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15435 cat <<__EOF__ >> "$cfgfile"
15436 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15438 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15440 # Shell to use when invoking shell scripts.
15443 # Whether or not to build shared libraries.
15444 build_libtool_libs=$enable_shared
15446 # Whether or not to build static libraries.
15447 build_old_libs=$enable_static
15449 # Whether or not to add -lc for building shared libraries.
15450 build_libtool_need_lc=$archive_cmds_need_lc_F77
15452 # Whether or not to disallow shared libs when runtime libs are static
15453 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15455 # Whether or not to optimize for fast installation.
15456 fast_install=$enable_fast_install
15459 host_alias=$host_alias
15463 # The build system.
15464 build_alias=$build_alias
15468 # An echo program that does not interpret backslashes.
15473 AR_FLAGS=$lt_AR_FLAGS
15478 # A language-specific compiler.
15479 CC=$lt_compiler_F77
15481 # Is the compiler the GNU C compiler?
15487 # The linker used to build libraries.
15490 # Whether we need hard or soft links.
15493 # A BSD-compatible nm program.
15496 # A symbol stripping program
15499 # Used to examine libraries when file_magic_cmd begins "file"
15500 MAGIC_CMD=$MAGIC_CMD
15502 # Used on cygwin: DLL creation program.
15505 # Used on cygwin: object dumper.
15508 # Used on cygwin: assembler.
15511 # The name of the directory that contains temporary libtool files.
15514 # How to create reloadable object files.
15515 reload_flag=$lt_reload_flag
15516 reload_cmds=$lt_reload_cmds
15518 # How to pass a linker flag through the compiler.
15519 wl=$lt_lt_prog_compiler_wl_F77
15521 # Object file suffix (normally "o").
15522 objext="$ac_objext"
15524 # Old archive suffix (normally "a").
15527 # Shared library suffix (normally ".so").
15528 shrext_cmds='$shrext_cmds'
15530 # Executable file suffix (normally "").
15533 # Additional compiler flags for building library objects.
15534 pic_flag=$lt_lt_prog_compiler_pic_F77
15537 # What is the maximum length of a command?
15538 max_cmd_len=$lt_cv_sys_max_cmd_len
15540 # Does compiler simultaneously support -c and -o options?
15541 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15543 # Must we lock files when doing compilation?
15544 need_locks=$lt_need_locks
15546 # Do we need the lib prefix for modules?
15547 need_lib_prefix=$need_lib_prefix
15549 # Do we need a version for libraries?
15550 need_version=$need_version
15552 # Whether dlopen is supported.
15553 dlopen_support=$enable_dlopen
15555 # Whether dlopen of programs is supported.
15556 dlopen_self=$enable_dlopen_self
15558 # Whether dlopen of statically linked programs is supported.
15559 dlopen_self_static=$enable_dlopen_self_static
15561 # Compiler flag to prevent dynamic linking.
15562 link_static_flag=$lt_lt_prog_compiler_static_F77
15564 # Compiler flag to turn off builtin functions.
15565 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15567 # Compiler flag to allow reflexive dlopens.
15568 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15570 # Compiler flag to generate shared objects directly from archives.
15571 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15573 # Compiler flag to generate thread-safe objects.
15574 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15576 # Library versioning type.
15577 version_type=$version_type
15579 # Format of library name prefix.
15580 libname_spec=$lt_libname_spec
15582 # List of archive names. First name is the real one, the rest are links.
15583 # The last name is the one that the linker finds with -lNAME.
15584 library_names_spec=$lt_library_names_spec
15586 # The coded name of the library, if different from the real name.
15587 soname_spec=$lt_soname_spec
15589 # Commands used to build and install an old-style archive.
15591 old_archive_cmds=$lt_old_archive_cmds_F77
15592 old_postinstall_cmds=$lt_old_postinstall_cmds
15593 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15595 # Create an old-style archive from a shared archive.
15596 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15598 # Create a temporary old-style archive to link instead of a shared archive.
15599 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15601 # Commands used to build and install a shared archive.
15602 archive_cmds=$lt_archive_cmds_F77
15603 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15604 postinstall_cmds=$lt_postinstall_cmds
15605 postuninstall_cmds=$lt_postuninstall_cmds
15607 # Commands used to build a loadable module (assumed same as above if empty)
15608 module_cmds=$lt_module_cmds_F77
15609 module_expsym_cmds=$lt_module_expsym_cmds_F77
15611 # Commands to strip libraries.
15612 old_striplib=$lt_old_striplib
15613 striplib=$lt_striplib
15615 # Dependencies to place before the objects being linked to create a
15617 predep_objects=$lt_predep_objects_F77
15619 # Dependencies to place after the objects being linked to create a
15621 postdep_objects=$lt_postdep_objects_F77
15623 # Dependencies to place before the objects being linked to create a
15625 predeps=$lt_predeps_F77
15627 # Dependencies to place after the objects being linked to create a
15629 postdeps=$lt_postdeps_F77
15631 # The library search path used internally by the compiler when linking
15632 # a shared library.
15633 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15635 # Method to check whether dependent libraries are shared objects.
15636 deplibs_check_method=$lt_deplibs_check_method
15638 # Command to use when deplibs_check_method == file_magic.
15639 file_magic_cmd=$lt_file_magic_cmd
15641 # Flag that allows shared libraries with undefined symbols to be built.
15642 allow_undefined_flag=$lt_allow_undefined_flag_F77
15644 # Flag that forces no undefined symbols.
15645 no_undefined_flag=$lt_no_undefined_flag_F77
15647 # Commands used to finish a libtool library installation in a directory.
15648 finish_cmds=$lt_finish_cmds
15650 # Same as above, but a single script fragment to be evaled but not shown.
15651 finish_eval=$lt_finish_eval
15653 # Take the output of nm and produce a listing of raw symbols and C names.
15654 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15656 # Transform the output of nm in a proper C declaration
15657 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15659 # Transform the output of nm in a C name address pair
15660 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15662 # This is the shared library runtime path variable.
15663 runpath_var=$runpath_var
15665 # This is the shared library path variable.
15666 shlibpath_var=$shlibpath_var
15668 # Is shlibpath searched before the hard-coded library search path?
15669 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15671 # How to hardcode a shared library path into an executable.
15672 hardcode_action=$hardcode_action_F77
15674 # Whether we should hardcode library paths into libraries.
15675 hardcode_into_libs=$hardcode_into_libs
15677 # Flag to hardcode \$libdir into a binary during linking.
15678 # This must work even if \$libdir does not exist.
15679 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15681 # If ld is used when linking, flag to hardcode \$libdir into
15682 # a binary during linking. This must work even if \$libdir does
15684 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15686 # Whether we need a single -rpath flag with a separated argument.
15687 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15689 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15690 # resulting binary.
15691 hardcode_direct=$hardcode_direct_F77
15693 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15694 # resulting binary.
15695 hardcode_minus_L=$hardcode_minus_L_F77
15697 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15698 # the resulting binary.
15699 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15701 # Set to yes if building a shared library automatically hardcodes DIR into the library
15702 # and all subsequent libraries and executables linked against it.
15703 hardcode_automatic=$hardcode_automatic_F77
15705 # Variables whose values should be saved in libtool wrapper scripts and
15706 # restored at relink time.
15707 variables_saved_for_relink="$variables_saved_for_relink"
15709 # Whether libtool must link a program against all its dependency libraries.
15710 link_all_deplibs=$link_all_deplibs_F77
15712 # Compile-time system search path for libraries
15713 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15715 # Run-time system search path for libraries
15716 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15718 # Fix the shell variable \$srcfile for the compiler.
15719 fix_srcfile_path="$fix_srcfile_path_F77"
15721 # Set to yes if exported symbols are required.
15722 always_export_symbols=$always_export_symbols_F77
15724 # The commands to list exported symbols.
15725 export_symbols_cmds=$lt_export_symbols_cmds_F77
15727 # The commands to extract the exported symbol list from a shared archive.
15728 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15730 # Symbols that should not be listed in the preloaded symbols.
15731 exclude_expsyms=$lt_exclude_expsyms_F77
15733 # Symbols that must always be exported.
15734 include_expsyms=$lt_include_expsyms_F77
15736 # ### END LIBTOOL TAG CONFIG: $tagname
15742 # If there is no Makefile yet, we rely on a make rule to execute
15743 # `config.status --recheck' to rerun these tests and create the
15744 # libtool script then.
15745 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15746 if test -f "$ltmain_in"; then
15747 test -f Makefile && make "$ltmain"
15753 ac_cpp='$CPP $CPPFLAGS'
15754 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15755 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15756 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15766 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15770 # Source file extension for Java test sources.
15773 # Object file extension for compiled Java test sources.
15777 # Code to be used in simple compile tests
15778 lt_simple_compile_test_code="class foo {}\n"
15780 # Code to be used in simple link tests
15781 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
15783 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15785 # If no C compiler was specified, use CC.
15788 # Allow CC to be a program name with arguments.
15792 # save warnings/boilerplate of simple test code
15793 ac_outfile=conftest.$ac_objext
15794 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
15795 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
15796 _lt_compiler_boilerplate=`cat conftest.err`
15799 ac_outfile=conftest.$ac_objext
15800 printf "$lt_simple_link_test_code" >conftest.$ac_ext
15801 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
15802 _lt_linker_boilerplate=`cat conftest.err`
15806 # Allow CC to be a program name with arguments.
15811 for cc_temp in $compiler""; do
15813 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15814 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15819 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15822 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15823 archive_cmds_need_lc_GCJ=no
15825 old_archive_cmds_GCJ=$old_archive_cmds
15828 lt_prog_compiler_no_builtin_flag_GCJ=
15830 if test "$GCC" = yes; then
15831 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15834 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15835 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15836 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15837 echo $ECHO_N "(cached) $ECHO_C" >&6
15839 lt_cv_prog_compiler_rtti_exceptions=no
15840 ac_outfile=conftest.$ac_objext
15841 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15842 lt_compiler_flag="-fno-rtti -fno-exceptions"
15843 # Insert the option either (1) after the last *FLAGS variable, or
15844 # (2) before a word containing "conftest.", or (3) at the end.
15845 # Note that $ac_compile itself does not contain backslashes and begins
15846 # with a dollar sign (not a hyphen), so the echo should work correctly.
15847 # The option is referenced via a variable to avoid confusing sed.
15848 lt_compile=`echo "$ac_compile" | $SED \
15849 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15850 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15851 -e 's:$: $lt_compiler_flag:'`
15852 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
15853 (eval "$lt_compile" 2>conftest.err)
15855 cat conftest.err >&5
15856 echo "$as_me:__oline__: \$? = $ac_status" >&5
15857 if (exit $ac_status) && test -s "$ac_outfile"; then
15858 # The compiler can only warn and ignore the option if not recognized
15859 # So say no if there are warnings other than the usual output.
15860 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
15861 $SED '/^$/d' conftest.err >conftest.er2
15862 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
15863 lt_cv_prog_compiler_rtti_exceptions=yes
15869 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15870 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15872 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15873 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15880 lt_prog_compiler_wl_GCJ=
15881 lt_prog_compiler_pic_GCJ=
15882 lt_prog_compiler_static_GCJ=
15884 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15885 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15887 if test "$GCC" = yes; then
15888 lt_prog_compiler_wl_GCJ='-Wl,'
15889 lt_prog_compiler_static_GCJ='-static'
15893 # All AIX code is PIC.
15894 if test "$host_cpu" = ia64; then
15895 # AIX 5 now supports IA64 processor
15896 lt_prog_compiler_static_GCJ='-Bstatic'
15901 # FIXME: we need at least 68020 code to build shared libraries, but
15902 # adding the `-m68020' flag to GCC prevents building anything better,
15904 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15907 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15908 # PIC is the default for these OSes.
15911 mingw* | pw32* | os2*)
15912 # This hack is so that the source file can tell whether it is being
15913 # built for inclusion in a dll (and should export symbols for example).
15914 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15917 darwin* | rhapsody*)
15918 # PIC is the default on this platform
15919 # Common symbols not allowed in MH_DYLIB files
15920 lt_prog_compiler_pic_GCJ='-fno-common'
15924 # Just because we use GCC doesn't mean we suddenly get shared libraries
15925 # on systems that don't support them.
15926 lt_prog_compiler_can_build_shared_GCJ=no
15931 if test -d /usr/nec; then
15932 lt_prog_compiler_pic_GCJ=-Kconform_pic
15937 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15938 # not for PA HP-UX.
15939 case "$host_cpu" in
15944 lt_prog_compiler_pic_GCJ='-fPIC'
15950 lt_prog_compiler_pic_GCJ='-fPIC'
15954 # PORTME Check for flag to pass linker flags through the system compiler.
15957 lt_prog_compiler_wl_GCJ='-Wl,'
15958 if test "$host_cpu" = ia64; then
15959 # AIX 5 now supports IA64 processor
15960 lt_prog_compiler_static_GCJ='-Bstatic'
15962 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15966 # PIC is the default on this platform
15967 # Common symbols not allowed in MH_DYLIB files
15968 case $cc_basename in
15970 lt_prog_compiler_pic_GCJ='-qnocommon'
15971 lt_prog_compiler_wl_GCJ='-Wl,'
15976 mingw* | pw32* | os2*)
15977 # This hack is so that the source file can tell whether it is being
15978 # built for inclusion in a dll (and should export symbols for example).
15979 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15982 hpux9* | hpux10* | hpux11*)
15983 lt_prog_compiler_wl_GCJ='-Wl,'
15984 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15985 # not for PA HP-UX.
15986 case "$host_cpu" in
15991 lt_prog_compiler_pic_GCJ='+Z'
15994 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15995 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15998 irix5* | irix6* | nonstopux*)
15999 lt_prog_compiler_wl_GCJ='-Wl,'
16000 # PIC (with -KPIC) is the default.
16001 lt_prog_compiler_static_GCJ='-non_shared'
16005 lt_prog_compiler_pic_GCJ='-KPIC'
16006 lt_prog_compiler_static_GCJ='-Bstatic'
16010 case $cc_basename in
16012 lt_prog_compiler_wl_GCJ='-Wl,'
16013 lt_prog_compiler_pic_GCJ='-KPIC'
16014 lt_prog_compiler_static_GCJ='-static'
16016 pgcc* | pgf77* | pgf90*)
16017 # Portland Group compilers (*not* the Pentium gcc compiler,
16018 # which looks to be a dead project)
16019 lt_prog_compiler_wl_GCJ='-Wl,'
16020 lt_prog_compiler_pic_GCJ='-fpic'
16021 lt_prog_compiler_static_GCJ='-static'
16024 lt_prog_compiler_wl_GCJ='-Wl,'
16025 # All Alpha code is PIC.
16026 lt_prog_compiler_static_GCJ='-non_shared'
16031 osf3* | osf4* | osf5*)
16032 lt_prog_compiler_wl_GCJ='-Wl,'
16033 # All OSF/1 code is PIC.
16034 lt_prog_compiler_static_GCJ='-non_shared'
16038 lt_prog_compiler_pic_GCJ='-Kpic'
16039 lt_prog_compiler_static_GCJ='-dn'
16043 lt_prog_compiler_pic_GCJ='-KPIC'
16044 lt_prog_compiler_static_GCJ='-Bstatic'
16045 case $cc_basename in
16046 f77* | f90* | f95*)
16047 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16049 lt_prog_compiler_wl_GCJ='-Wl,';;
16054 lt_prog_compiler_wl_GCJ='-Qoption ld '
16055 lt_prog_compiler_pic_GCJ='-PIC'
16056 lt_prog_compiler_static_GCJ='-Bstatic'
16059 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16060 lt_prog_compiler_wl_GCJ='-Wl,'
16061 lt_prog_compiler_pic_GCJ='-KPIC'
16062 lt_prog_compiler_static_GCJ='-Bstatic'
16066 if test -d /usr/nec ;then
16067 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16068 lt_prog_compiler_static_GCJ='-Bstatic'
16073 lt_prog_compiler_wl_GCJ='-Wl,'
16074 lt_prog_compiler_can_build_shared_GCJ=no
16078 lt_prog_compiler_pic_GCJ='-pic'
16079 lt_prog_compiler_static_GCJ='-Bstatic'
16083 lt_prog_compiler_can_build_shared_GCJ=no
16088 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16089 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
16092 # Check to make sure the PIC flag actually works.
16094 if test -n "$lt_prog_compiler_pic_GCJ"; then
16096 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16097 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
16098 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16099 echo $ECHO_N "(cached) $ECHO_C" >&6
16101 lt_prog_compiler_pic_works_GCJ=no
16102 ac_outfile=conftest.$ac_objext
16103 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16104 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16105 # Insert the option either (1) after the last *FLAGS variable, or
16106 # (2) before a word containing "conftest.", or (3) at the end.
16107 # Note that $ac_compile itself does not contain backslashes and begins
16108 # with a dollar sign (not a hyphen), so the echo should work correctly.
16109 # The option is referenced via a variable to avoid confusing sed.
16110 lt_compile=`echo "$ac_compile" | $SED \
16111 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16112 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16113 -e 's:$: $lt_compiler_flag:'`
16114 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
16115 (eval "$lt_compile" 2>conftest.err)
16117 cat conftest.err >&5
16118 echo "$as_me:__oline__: \$? = $ac_status" >&5
16119 if (exit $ac_status) && test -s "$ac_outfile"; then
16120 # The compiler can only warn and ignore the option if not recognized
16121 # So say no if there are warnings other than the usual output.
16122 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
16123 $SED '/^$/d' conftest.err >conftest.er2
16124 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
16125 lt_prog_compiler_pic_works_GCJ=yes
16131 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16132 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
16134 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16135 case $lt_prog_compiler_pic_GCJ in
16137 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16140 lt_prog_compiler_pic_GCJ=
16141 lt_prog_compiler_can_build_shared_GCJ=no
16146 # For platforms which do not support PIC, -DPIC is meaningless:
16148 lt_prog_compiler_pic_GCJ=
16151 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16155 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16156 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16157 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16158 echo $ECHO_N "(cached) $ECHO_C" >&6
16160 lt_cv_prog_compiler_c_o_GCJ=no
16161 $rm -r conftest 2>/dev/null
16165 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16167 lt_compiler_flag="-o out/conftest2.$ac_objext"
16168 # Insert the option either (1) after the last *FLAGS variable, or
16169 # (2) before a word containing "conftest.", or (3) at the end.
16170 # Note that $ac_compile itself does not contain backslashes and begins
16171 # with a dollar sign (not a hyphen), so the echo should work correctly.
16172 lt_compile=`echo "$ac_compile" | $SED \
16173 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16174 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16175 -e 's:$: $lt_compiler_flag:'`
16176 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
16177 (eval "$lt_compile" 2>out/conftest.err)
16179 cat out/conftest.err >&5
16180 echo "$as_me:__oline__: \$? = $ac_status" >&5
16181 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16183 # The compiler can only warn and ignore the option if not recognized
16184 # So say no if there are warnings
16185 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
16186 $SED '/^$/d' out/conftest.err >out/conftest.er2
16187 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16188 lt_cv_prog_compiler_c_o_GCJ=yes
16193 # SGI C++ compiler will create directory out/ii_files/ for
16194 # template instantiation
16195 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16196 $rm out/* && rmdir out
16202 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16203 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
16206 hard_links="nottested"
16207 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16208 # do not overwrite the value of need_locks provided by the user
16209 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16210 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16213 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16215 ln conftest.a conftest.b 2>&5 || hard_links=no
16216 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16217 echo "$as_me:$LINENO: result: $hard_links" >&5
16218 echo "${ECHO_T}$hard_links" >&6
16219 if test "$hard_links" = no; then
16220 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16221 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16228 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16229 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16232 allow_undefined_flag_GCJ=
16233 enable_shared_with_static_runtimes_GCJ=no
16235 archive_expsym_cmds_GCJ=
16236 old_archive_From_new_cmds_GCJ=
16237 old_archive_from_expsyms_cmds_GCJ=
16238 export_dynamic_flag_spec_GCJ=
16239 whole_archive_flag_spec_GCJ=
16240 thread_safe_flag_spec_GCJ=
16241 hardcode_libdir_flag_spec_GCJ=
16242 hardcode_libdir_flag_spec_ld_GCJ=
16243 hardcode_libdir_separator_GCJ=
16244 hardcode_direct_GCJ=no
16245 hardcode_minus_L_GCJ=no
16246 hardcode_shlibpath_var_GCJ=unsupported
16247 link_all_deplibs_GCJ=unknown
16248 hardcode_automatic_GCJ=no
16250 module_expsym_cmds_GCJ=
16251 always_export_symbols_GCJ=no
16252 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16253 # include_expsyms should be a list of space-separated symbols to be *always*
16254 # included in the symbol list
16255 include_expsyms_GCJ=
16256 # exclude_expsyms can be an extended regexp of symbols to exclude
16257 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16258 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16259 # as well as any symbol that contains `d'.
16260 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16261 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16262 # platforms (ab)use it in PIC code, but their linkers get confused if
16263 # the symbol is explicitly referenced. Since portable code cannot
16264 # rely on this symbol name, it's probably fine to never include it in
16265 # preloaded symbol tables.
16266 extract_expsyms_cmds=
16267 # Just being paranoid about ensuring that cc_basename is set.
16268 for cc_temp in $compiler""; do
16270 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16271 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16276 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16279 cygwin* | mingw* | pw32*)
16280 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16281 # When not using gcc, we currently assume that we are using
16282 # Microsoft Visual C++.
16283 if test "$GCC" != yes; then
16293 if test "$with_gnu_ld" = yes; then
16294 # If archive_cmds runs LD, not CC, wlarc should be empty
16297 # Set some defaults for GNU ld with shared library support. These
16298 # are reset later if shared libraries are not supported. Putting them
16299 # here allows them to be overridden if necessary.
16300 runpath_var=LD_RUN_PATH
16301 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16302 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16303 # ancient GNU ld didn't support --whole-archive et. al.
16304 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16305 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16307 whole_archive_flag_spec_GCJ=
16309 supports_anon_versioning=no
16310 case `$LD -v 2>/dev/null` in
16311 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16312 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16313 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16314 *\ 2.11.*) ;; # other 2.11 versions
16315 *) supports_anon_versioning=yes ;;
16318 # See if GNU ld supports shared libraries.
16320 aix3* | aix4* | aix5*)
16321 # On AIX/PPC, the GNU linker is very broken
16322 if test "$host_cpu" != ia64; then
16326 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16327 *** to be unable to reliably create shared libraries on AIX.
16328 *** Therefore, libtool is disabling shared libraries support. If you
16329 *** really care for shared libraries, you may want to modify your PATH
16330 *** so that a non-GNU linker is found, and then restart.
16337 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)'
16338 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16339 hardcode_minus_L_GCJ=yes
16341 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16342 # that the semantics of dynamic libraries on AmigaOS, at least up
16343 # to version 4, is to share data among multiple programs linked
16344 # with the same dynamic library. Since this doesn't match the
16345 # behavior of shared libraries on other platforms, we can't use
16351 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16352 allow_undefined_flag_GCJ=unsupported
16353 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16354 # support --undefined. This deserves some investigation. FIXME
16355 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16361 cygwin* | mingw* | pw32*)
16362 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16363 # as there is no search path for DLLs.
16364 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16365 allow_undefined_flag_GCJ=unsupported
16366 always_export_symbols_GCJ=no
16367 enable_shared_with_static_runtimes_GCJ=yes
16368 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16370 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16371 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16372 # If the export-symbols file already is a .def file (1st line
16373 # is EXPORTS), use it as is; otherwise, prepend...
16374 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16375 cp $export_symbols $output_objdir/$soname.def;
16377 echo EXPORTS > $output_objdir/$soname.def;
16378 cat $export_symbols >> $output_objdir/$soname.def;
16380 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16387 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16389 case $cc_basename,$host_cpu in
16390 pgcc*) # Portland Group C compiler
16391 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'
16392 tmp_addflag=' $pic_flag'
16394 pgf77* | pgf90* ) # Portland Group f77 and f90 compilers
16395 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'
16396 tmp_addflag=' $pic_flag -Mnomain' ;;
16397 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16398 tmp_addflag=' -i_dynamic' ;;
16399 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16400 tmp_addflag=' -i_dynamic -nofor_main' ;;
16401 ifc* | ifort*) # Intel Fortran compiler
16402 tmp_addflag=' -nofor_main' ;;
16404 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16406 if test $supports_anon_versioning = yes; then
16407 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16408 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16409 $echo "local: *; };" >> $output_objdir/$libname.ver~
16410 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16418 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16419 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16422 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16423 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16428 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16432 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16433 *** create shared libraries on Solaris systems. Therefore, libtool
16434 *** is disabling shared libraries support. We urge you to upgrade GNU
16435 *** binutils to release 2.9.1 or newer. Another option is to modify
16436 *** your PATH or compiler configuration so that the native linker is
16437 *** used, and then restart.
16440 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16441 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16442 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16449 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16451 hardcode_direct_GCJ=yes
16452 hardcode_shlibpath_var_GCJ=no
16456 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16457 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16458 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16465 if test "$ld_shlibs_GCJ" = no; then
16467 hardcode_libdir_flag_spec_GCJ=
16468 export_dynamic_flag_spec_GCJ=
16469 whole_archive_flag_spec_GCJ=
16472 # PORTME fill in a description of your system's linker (not GNU ld)
16475 allow_undefined_flag_GCJ=unsupported
16476 always_export_symbols_GCJ=yes
16477 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'
16478 # Note: this linker hardcodes the directories in LIBPATH if there
16479 # are no directories specified by -L.
16480 hardcode_minus_L_GCJ=yes
16481 if test "$GCC" = yes && test -z "$link_static_flag"; then
16482 # Neither direct hardcoding nor static linking is supported with a
16484 hardcode_direct_GCJ=unsupported
16489 if test "$host_cpu" = ia64; then
16490 # On IA64, the linker does run time linking by default, so we don't
16491 # have to do anything special.
16492 aix_use_runtimelinking=no
16493 exp_sym_flag='-Bexport'
16496 # If we're using GNU nm, then we don't want the "-C" option.
16497 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16498 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16499 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'
16501 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'
16503 aix_use_runtimelinking=no
16505 # Test if we are trying to use run time linking or normal
16506 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16507 # need to do runtime linking.
16508 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16509 for ld_flag in $LDFLAGS; do
16510 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16511 aix_use_runtimelinking=yes
16517 exp_sym_flag='-bexport'
16518 no_entry_flag='-bnoentry'
16521 # When large executables or shared objects are built, AIX ld can
16522 # have problems creating the table of contents. If linking a library
16523 # or program results in "error TOC overflow" add -mminimal-toc to
16524 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16525 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16527 archive_cmds_GCJ=''
16528 hardcode_direct_GCJ=yes
16529 hardcode_libdir_separator_GCJ=':'
16530 link_all_deplibs_GCJ=yes
16532 if test "$GCC" = yes; then
16533 case $host_os in aix4.[012]|aix4.[012].*)
16534 # We only want to do this on AIX 4.2 and lower, the check
16535 # below for broken collect2 doesn't work under 4.3+
16536 collect2name=`${CC} -print-prog-name=collect2`
16537 if test -f "$collect2name" && \
16538 strings "$collect2name" | grep resolve_lib_name >/dev/null
16540 # We have reworked collect2
16541 hardcode_direct_GCJ=yes
16543 # We have old collect2
16544 hardcode_direct_GCJ=unsupported
16545 # It fails to find uninstalled libraries when the uninstalled
16546 # path is not listed in the libpath. Setting hardcode_minus_L
16547 # to unsupported forces relinking
16548 hardcode_minus_L_GCJ=yes
16549 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16550 hardcode_libdir_separator_GCJ=
16553 shared_flag='-shared'
16554 if test "$aix_use_runtimelinking" = yes; then
16555 shared_flag="$shared_flag "'${wl}-G'
16559 if test "$host_cpu" = ia64; then
16560 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16561 # chokes on -Wl,-G. The following line is correct:
16564 if test "$aix_use_runtimelinking" = yes; then
16565 shared_flag='${wl}-G'
16567 shared_flag='${wl}-bM:SRE'
16572 # It seems that -bexpall does not export symbols beginning with
16573 # underscore (_), so it is better to generate a list of symbols to export.
16574 always_export_symbols_GCJ=yes
16575 if test "$aix_use_runtimelinking" = yes; then
16576 # Warning - without using the other runtime loading flags (-brtl),
16577 # -berok will link without error, but may produce a broken library.
16578 allow_undefined_flag_GCJ='-berok'
16579 # Determine the default libpath from the value encoded in an empty executable.
16580 cat >conftest.$ac_ext <<_ACEOF
16583 cat confdefs.h >>conftest.$ac_ext
16584 cat >>conftest.$ac_ext <<_ACEOF
16585 /* end confdefs.h. */
16595 rm -f conftest.$ac_objext conftest$ac_exeext
16596 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16597 (eval $ac_link) 2>conftest.er1
16599 grep -v '^ *+' conftest.er1 >conftest.err
16601 cat conftest.err >&5
16602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16603 (exit $ac_status); } &&
16604 { ac_try='test -z "$ac_c_werror_flag"
16605 || test ! -s conftest.err'
16606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16607 (eval $ac_try) 2>&5
16609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16610 (exit $ac_status); }; } &&
16611 { ac_try='test -s conftest$ac_exeext'
16612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16613 (eval $ac_try) 2>&5
16615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16616 (exit $ac_status); }; }; then
16618 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16620 # Check for a 64-bit object if we didn't find anything.
16621 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; }
16624 echo "$as_me: failed program was:" >&5
16625 sed 's/^/| /' conftest.$ac_ext >&5
16628 rm -f conftest.err conftest.$ac_objext \
16629 conftest$ac_exeext conftest.$ac_ext
16630 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16632 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16633 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
16635 if test "$host_cpu" = ia64; then
16636 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16637 allow_undefined_flag_GCJ="-z nodefs"
16638 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
16640 # Determine the default libpath from the value encoded in an empty executable.
16641 cat >conftest.$ac_ext <<_ACEOF
16644 cat confdefs.h >>conftest.$ac_ext
16645 cat >>conftest.$ac_ext <<_ACEOF
16646 /* end confdefs.h. */
16656 rm -f conftest.$ac_objext conftest$ac_exeext
16657 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16658 (eval $ac_link) 2>conftest.er1
16660 grep -v '^ *+' conftest.er1 >conftest.err
16662 cat conftest.err >&5
16663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16664 (exit $ac_status); } &&
16665 { ac_try='test -z "$ac_c_werror_flag"
16666 || test ! -s conftest.err'
16667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16668 (eval $ac_try) 2>&5
16670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16671 (exit $ac_status); }; } &&
16672 { ac_try='test -s conftest$ac_exeext'
16673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16674 (eval $ac_try) 2>&5
16676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16677 (exit $ac_status); }; }; then
16679 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16681 # Check for a 64-bit object if we didn't find anything.
16682 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; }
16685 echo "$as_me: failed program was:" >&5
16686 sed 's/^/| /' conftest.$ac_ext >&5
16689 rm -f conftest.err conftest.$ac_objext \
16690 conftest$ac_exeext conftest.$ac_ext
16691 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16693 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16694 # Warning - without using the other run time loading flags,
16695 # -berok will link without error, but may produce a broken library.
16696 no_undefined_flag_GCJ=' ${wl}-bernotok'
16697 allow_undefined_flag_GCJ=' ${wl}-berok'
16698 # -bexpall does not export symbols beginning with underscore (_)
16699 always_export_symbols_GCJ=yes
16700 # Exported symbols can be pulled into shared objects from archives
16701 whole_archive_flag_spec_GCJ=' '
16702 archive_cmds_need_lc_GCJ=yes
16703 # This is similar to how AIX traditionally builds it's shared libraries.
16704 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
16710 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)'
16711 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16712 hardcode_minus_L_GCJ=yes
16713 # see comment about different semantics on the GNU ld section
16718 export_dynamic_flag_spec_GCJ=-rdynamic
16721 cygwin* | mingw* | pw32*)
16722 # When not using gcc, we currently assume that we are using
16723 # Microsoft Visual C++.
16724 # hardcode_libdir_flag_spec is actually meaningless, as there is
16725 # no search path for DLLs.
16726 hardcode_libdir_flag_spec_GCJ=' '
16727 allow_undefined_flag_GCJ=unsupported
16728 # Tell ltmain to make .lib files, not .a files.
16730 # Tell ltmain to make .dll files, not .so files.
16732 # FIXME: Setting linknames here is a bad hack.
16733 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16734 # The linker will automatically build a .lib file if we build a DLL.
16735 old_archive_From_new_cmds_GCJ='true'
16736 # FIXME: Should let the user specify the lib program.
16737 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16738 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
16739 enable_shared_with_static_runtimes_GCJ=yes
16742 darwin* | rhapsody*)
16744 rhapsody* | darwin1.[012])
16745 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16748 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16749 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16751 case ${MACOSX_DEPLOYMENT_TARGET} in
16753 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16756 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16762 archive_cmds_need_lc_GCJ=no
16763 hardcode_direct_GCJ=no
16764 hardcode_automatic_GCJ=yes
16765 hardcode_shlibpath_var_GCJ=unsupported
16766 whole_archive_flag_spec_GCJ=''
16767 link_all_deplibs_GCJ=yes
16768 if test "$GCC" = yes ; then
16769 output_verbose_link_cmd='echo'
16770 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16771 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16772 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16773 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}'
16774 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}'
16776 case $cc_basename in
16778 output_verbose_link_cmd='echo'
16779 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16780 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16781 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16782 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}'
16783 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}'
16793 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16794 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16795 hardcode_shlibpath_var_GCJ=no
16802 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16803 # support. Future versions do this automatically, but an explicit c++rt0.o
16804 # does not break anything, and helps significantly (at the cost of a little
16807 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16808 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16809 hardcode_direct_GCJ=yes
16810 hardcode_shlibpath_var_GCJ=no
16813 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16815 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16816 hardcode_direct_GCJ=yes
16817 hardcode_minus_L_GCJ=yes
16818 hardcode_shlibpath_var_GCJ=no
16821 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16822 freebsd* | kfreebsd*-gnu | dragonfly*)
16823 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16824 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16825 hardcode_direct_GCJ=yes
16826 hardcode_shlibpath_var_GCJ=no
16830 if test "$GCC" = yes; then
16831 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'
16833 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'
16835 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16836 hardcode_libdir_separator_GCJ=:
16837 hardcode_direct_GCJ=yes
16839 # hardcode_minus_L: Not really in the search PATH,
16840 # but as the default location of the library.
16841 hardcode_minus_L_GCJ=yes
16842 export_dynamic_flag_spec_GCJ='${wl}-E'
16846 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16847 case "$host_cpu" in
16849 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16852 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16856 case "$host_cpu" in
16858 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16861 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16865 if test "$with_gnu_ld" = no; then
16866 case "$host_cpu" in
16868 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16869 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16870 hardcode_libdir_separator_GCJ=:
16871 hardcode_direct_GCJ=no
16872 hardcode_shlibpath_var_GCJ=no
16875 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16876 hardcode_direct_GCJ=no
16877 hardcode_shlibpath_var_GCJ=no
16879 # hardcode_minus_L: Not really in the search PATH,
16880 # but as the default location of the library.
16881 hardcode_minus_L_GCJ=yes
16884 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16885 hardcode_libdir_separator_GCJ=:
16886 hardcode_direct_GCJ=yes
16887 export_dynamic_flag_spec_GCJ='${wl}-E'
16889 # hardcode_minus_L: Not really in the search PATH,
16890 # but as the default location of the library.
16891 hardcode_minus_L_GCJ=yes
16897 irix5* | irix6* | nonstopux*)
16898 if test "$GCC" = yes; then
16899 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'
16901 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'
16902 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16904 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16905 hardcode_libdir_separator_GCJ=:
16906 link_all_deplibs_GCJ=yes
16910 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16911 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16913 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16915 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16916 hardcode_direct_GCJ=yes
16917 hardcode_shlibpath_var_GCJ=no
16921 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16922 hardcode_direct_GCJ=yes
16923 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16924 hardcode_libdir_separator_GCJ=:
16925 hardcode_shlibpath_var_GCJ=no
16929 hardcode_direct_GCJ=yes
16930 hardcode_shlibpath_var_GCJ=no
16931 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16932 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16933 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16934 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16935 export_dynamic_flag_spec_GCJ='${wl}-E'
16938 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16939 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16940 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16943 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16944 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16951 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16952 hardcode_minus_L_GCJ=yes
16953 allow_undefined_flag_GCJ=unsupported
16954 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'
16955 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16959 if test "$GCC" = yes; then
16960 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16961 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'
16963 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16964 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'
16966 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16967 hardcode_libdir_separator_GCJ=:
16970 osf4* | osf5*) # as osf3* with the addition of -msym flag
16971 if test "$GCC" = yes; then
16972 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16973 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'
16974 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16976 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16977 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'
16978 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~
16979 $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'
16981 # Both c and cxx compiler support -rpath directly
16982 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16984 hardcode_libdir_separator_GCJ=:
16988 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16989 hardcode_shlibpath_var_GCJ=no
16990 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16991 runpath_var=LD_RUN_PATH
16992 hardcode_runpath_var=yes
16996 no_undefined_flag_GCJ=' -z text'
16997 if test "$GCC" = yes; then
16999 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17000 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17001 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17004 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17005 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17006 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17008 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17009 hardcode_shlibpath_var_GCJ=no
17011 solaris2.[0-5] | solaris2.[0-5].*) ;;
17013 # The compiler driver will combine linker options so we
17014 # cannot just pass the convience library names through
17015 # without $wl, iff we do not link with $LD.
17016 # Luckily, gcc supports the same syntax we need for Sun Studio.
17017 # Supported since Solaris 2.6 (maybe 2.5.1?)
17020 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17022 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' ;;
17025 link_all_deplibs_GCJ=yes
17029 if test "x$host_vendor" = xsequent; then
17030 # Use $CC to link under sequent, because it throws in some extra .o
17031 # files that make .init and .fini sections work.
17032 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17034 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17036 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17037 hardcode_direct_GCJ=yes
17038 hardcode_minus_L_GCJ=yes
17039 hardcode_shlibpath_var_GCJ=no
17043 case $host_vendor in
17045 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17046 hardcode_direct_GCJ=yes # is this really true???
17049 ## LD is ld it makes a PLAMLIB
17050 ## CC just makes a GrossModule.
17051 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17052 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17053 hardcode_direct_GCJ=no
17056 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17057 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17060 runpath_var='LD_RUN_PATH'
17061 hardcode_shlibpath_var_GCJ=no
17065 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17066 hardcode_shlibpath_var_GCJ=no
17067 export_dynamic_flag_spec_GCJ='-Bexport'
17071 if test -d /usr/nec; then
17072 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17073 hardcode_shlibpath_var_GCJ=no
17074 runpath_var=LD_RUN_PATH
17075 hardcode_runpath_var=yes
17081 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17082 hardcode_direct_GCJ=yes
17083 hardcode_minus_L_GCJ=no
17084 hardcode_shlibpath_var_GCJ=no
17085 hardcode_runpath_var=yes
17086 runpath_var=LD_RUN_PATH
17089 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
17090 no_undefined_flag_GCJ='${wl}-z ${wl}text'
17091 if test "$GCC" = yes; then
17092 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17094 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17096 runpath_var='LD_RUN_PATH'
17097 hardcode_shlibpath_var_GCJ=no
17101 no_undefined_flag_GCJ=' -z text'
17102 # $CC -shared without GNU ld will not create a library from C++
17103 # object files and a static libstdc++, better avoid it by now
17104 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17105 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17106 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17107 hardcode_libdir_flag_spec_GCJ=
17108 hardcode_shlibpath_var_GCJ=no
17109 runpath_var='LD_RUN_PATH'
17113 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17114 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17115 hardcode_shlibpath_var_GCJ=no
17124 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17125 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
17126 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17128 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17129 if test "$GCC" = yes; then
17130 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17134 # Do we need to explicitly link libc?
17136 case "x$archive_cmds_need_lc_GCJ" in
17138 # Assume -lc should be added
17139 archive_cmds_need_lc_GCJ=yes
17141 if test "$enable_shared" = yes && test "$GCC" = yes; then
17142 case $archive_cmds_GCJ in
17144 # FIXME: we may have to deal with multi-command sequences.
17147 # Test whether the compiler implicitly links with -lc since on some
17148 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17149 # to ld, don't add -lc before -lgcc.
17150 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17151 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
17153 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17155 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17156 (eval $ac_compile) 2>&5
17158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17159 (exit $ac_status); } 2>conftest.err; then
17162 libobjs=conftest.$ac_objext
17164 wl=$lt_prog_compiler_wl_GCJ
17170 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17171 allow_undefined_flag_GCJ=
17172 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17173 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17176 (exit $ac_status); }
17178 archive_cmds_need_lc_GCJ=no
17180 archive_cmds_need_lc_GCJ=yes
17182 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17184 cat conftest.err 1>&5
17187 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17188 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
17195 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17196 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17197 library_names_spec=
17198 libname_spec='lib$name'
17202 postuninstall_cmds=
17206 shlibpath_overrides_runpath=unknown
17208 dynamic_linker="$host_os ld.so"
17209 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17210 if test "$GCC" = yes; then
17211 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17212 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17213 # if the path contains ";" then we assume it to be the separator
17214 # otherwise default to the standard path separator (i.e. ":") - it is
17215 # assumed that no part of a normal pathname contains ";" but that should
17216 # okay in the real world where ";" in dirpaths is itself problematic.
17217 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17219 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17222 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17224 need_lib_prefix=unknown
17225 hardcode_into_libs=no
17227 # when you set need_version to no, make sure it does not cause -set_version
17228 # flags to be left without arguments
17229 need_version=unknown
17234 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17235 shlibpath_var=LIBPATH
17237 # AIX 3 has no versioning support, so we append a major version to the name.
17238 soname_spec='${libname}${release}${shared_ext}$major'
17245 hardcode_into_libs=yes
17246 if test "$host_cpu" = ia64; then
17247 # AIX 5 supports IA64
17248 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17249 shlibpath_var=LD_LIBRARY_PATH
17251 # With GCC up to 2.95.x, collect2 would create an import file
17252 # for dependence libraries. The import file would start with
17253 # the line `#! .'. This would cause the generated library to
17254 # depend on `.', always an invalid library. This was fixed in
17255 # development snapshots of GCC prior to 3.0.
17257 aix4 | aix4.[01] | aix4.[01].*)
17258 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17260 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17263 can_build_shared=no
17267 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17268 # soname into executable. Probably we can add versioning support to
17269 # collect2, so additional links can be useful in future.
17270 if test "$aix_use_runtimelinking" = yes; then
17271 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17272 # instead of lib<name>.a to let people know that these are not
17273 # typical AIX shared libraries.
17274 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17276 # We preserve .a as extension for shared libraries through AIX4.2
17277 # and later when we are not doing run time linking.
17278 library_names_spec='${libname}${release}.a $libname.a'
17279 soname_spec='${libname}${release}${shared_ext}$major'
17281 shlibpath_var=LIBPATH
17286 library_names_spec='$libname.ixlibrary $libname.a'
17287 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17288 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'
17292 library_names_spec='${libname}${shared_ext}'
17293 dynamic_linker="$host_os ld.so"
17294 shlibpath_var=LIBRARY_PATH
17300 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17301 soname_spec='${libname}${release}${shared_ext}$major'
17302 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17303 shlibpath_var=LD_LIBRARY_PATH
17304 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17305 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17306 # the default ld.so.conf also contains /usr/contrib/lib and
17307 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17308 # libtool to hard-code these into programs
17311 cygwin* | mingw* | pw32*)
17312 version_type=windows
17317 case $GCC,$host_os in
17318 yes,cygwin* | yes,mingw* | yes,pw32*)
17319 library_names_spec='$libname.dll.a'
17320 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17321 postinstall_cmds='base_file=`basename \${file}`~
17322 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17323 dldir=$destdir/`dirname \$dlpath`~
17324 test -d \$dldir || mkdir -p \$dldir~
17325 $install_prog $dir/$dlname \$dldir/$dlname'
17326 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17327 dlpath=$dir/\$dldll~
17329 shlibpath_overrides_runpath=yes
17333 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17334 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17335 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17338 # MinGW DLLs use traditional 'lib' prefix
17339 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17340 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17341 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17342 # It is most probably a Windows format PATH printed by
17343 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17344 # path with ; separators, and with drive letters. We can handle the
17345 # drive letters (cygwin fileutils understands them), so leave them,
17346 # especially as we might pass files found there to a mingw objdump,
17347 # which wouldn't understand a cygwinified path. Ahh.
17348 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17350 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17354 # pw32 DLLs use 'pw' prefix rather than 'lib'
17355 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17361 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17364 dynamic_linker='Win32 ld.exe'
17365 # FIXME: first we should search . and the directory the executable is in
17369 darwin* | rhapsody*)
17370 dynamic_linker="$host_os dyld"
17371 version_type=darwin
17374 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17375 soname_spec='${libname}${release}${major}$shared_ext'
17376 shlibpath_overrides_runpath=yes
17377 shlibpath_var=DYLD_LIBRARY_PATH
17378 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
17379 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17380 if test "$GCC" = yes; then
17381 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"`
17383 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17385 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17392 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17393 soname_spec='${libname}${release}${shared_ext}$major'
17394 shlibpath_var=LD_LIBRARY_PATH
17405 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17406 soname_spec='${libname}${release}${shared_ext}$major'
17407 shlibpath_var=LD_LIBRARY_PATH
17408 shlibpath_overrides_runpath=no
17409 hardcode_into_libs=yes
17410 dynamic_linker='GNU ld.so'
17413 freebsd* | dragonfly*)
17414 # DragonFly does not have aout. When/if they implement a new
17415 # versioning mechanism, adjust this.
17416 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17417 version_type=freebsd-$objformat
17418 case $version_type in
17420 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17425 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17429 shlibpath_var=LD_LIBRARY_PATH
17432 shlibpath_overrides_runpath=yes
17434 freebsd3.[01]* | freebsdelf3.[01]*)
17435 shlibpath_overrides_runpath=yes
17436 hardcode_into_libs=yes
17439 shlibpath_overrides_runpath=no
17440 hardcode_into_libs=yes
17449 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17450 soname_spec='${libname}${release}${shared_ext}$major'
17451 shlibpath_var=LD_LIBRARY_PATH
17452 hardcode_into_libs=yes
17455 hpux9* | hpux10* | hpux11*)
17456 # Give a soname corresponding to the major version so that dld.sl refuses to
17457 # link against other versions.
17461 case "$host_cpu" in
17464 hardcode_into_libs=yes
17465 dynamic_linker="$host_os dld.so"
17466 shlibpath_var=LD_LIBRARY_PATH
17467 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17468 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17469 soname_spec='${libname}${release}${shared_ext}$major'
17470 if test "X$HPUX_IA64_MODE" = X32; then
17471 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17473 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17475 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17479 hardcode_into_libs=yes
17480 dynamic_linker="$host_os dld.sl"
17481 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17482 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17483 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17484 soname_spec='${libname}${release}${shared_ext}$major'
17485 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17486 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17490 dynamic_linker="$host_os dld.sl"
17491 shlibpath_var=SHLIB_PATH
17492 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17493 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17494 soname_spec='${libname}${release}${shared_ext}$major'
17497 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17498 postinstall_cmds='chmod 555 $lib'
17501 irix5* | irix6* | nonstopux*)
17503 nonstopux*) version_type=nonstopux ;;
17505 if test "$lt_cv_prog_gnu_ld" = yes; then
17513 soname_spec='${libname}${release}${shared_ext}$major'
17514 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17516 irix5* | nonstopux*)
17517 libsuff= shlibsuff=
17520 case $LD in # libtool.m4 will add one of these switches to LD
17521 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17522 libsuff= shlibsuff= libmagic=32-bit;;
17523 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17524 libsuff=32 shlibsuff=N32 libmagic=N32;;
17525 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17526 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17527 *) libsuff= shlibsuff= libmagic=never-match;;
17531 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17532 shlibpath_overrides_runpath=no
17533 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17534 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17535 hardcode_into_libs=yes
17538 # No shared lib support for Linux oldld, aout, or coff.
17539 linux*oldld* | linux*aout* | linux*coff*)
17543 # This must be Linux ELF.
17548 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17549 soname_spec='${libname}${release}${shared_ext}$major'
17550 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17551 shlibpath_var=LD_LIBRARY_PATH
17552 shlibpath_overrides_runpath=no
17553 # This implies no fast_install, which is unacceptable.
17554 # Some rework will be needed to allow for fast_install
17555 # before this can be enabled.
17556 hardcode_into_libs=yes
17558 # find out which ABI we are using
17560 case "$host_cpu" in
17561 x86_64*|s390x*|powerpc64*)
17562 echo '#line __oline__ "configure"' > conftest.$ac_ext
17563 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17564 (eval $ac_compile) 2>&5
17566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17567 (exit $ac_status); }; then
17568 case `/usr/bin/file conftest.$ac_objext` in
17571 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
17579 # Append ld.so.conf contents to the search path
17580 if test -f /etc/ld.so.conf; then
17581 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' ' '`
17582 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
17585 # We used to test for /lib/ld.so.1 and disable shared libraries on
17586 # powerpc, because MkLinux only supported shared libraries with the
17587 # GNU dynamic linker. Since this was broken with cross compilers,
17588 # most powerpc-linux boxes support dynamic linking these days and
17589 # people can always --disable-shared, the test was removed, and we
17590 # assume the GNU/Linux dynamic linker is in use.
17591 dynamic_linker='GNU/Linux ld.so'
17598 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17599 soname_spec='${libname}${release}${shared_ext}$major'
17600 shlibpath_var=LD_LIBRARY_PATH
17601 shlibpath_overrides_runpath=no
17602 hardcode_into_libs=yes
17603 dynamic_linker='GNU ld.so'
17610 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17611 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17612 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17613 dynamic_linker='NetBSD (a.out) ld.so'
17615 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17616 soname_spec='${libname}${release}${shared_ext}$major'
17617 dynamic_linker='NetBSD ld.elf_so'
17619 shlibpath_var=LD_LIBRARY_PATH
17620 shlibpath_overrides_runpath=yes
17621 hardcode_into_libs=yes
17626 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17627 shlibpath_var=LD_LIBRARY_PATH
17628 shlibpath_overrides_runpath=yes
17635 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17636 soname_spec='${libname}${release}${shared_ext}$major'
17637 shlibpath_var=LD_LIBRARY_PATH
17638 shlibpath_overrides_runpath=yes
17644 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17646 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17647 *) need_version=no ;;
17649 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17650 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17651 shlibpath_var=LD_LIBRARY_PATH
17652 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17654 openbsd2.[89] | openbsd2.[89].*)
17655 shlibpath_overrides_runpath=no
17658 shlibpath_overrides_runpath=yes
17662 shlibpath_overrides_runpath=yes
17667 libname_spec='$name'
17670 library_names_spec='$libname${shared_ext} $libname.a'
17671 dynamic_linker='OS/2 ld.exe'
17672 shlibpath_var=LIBPATH
17675 osf3* | osf4* | osf5*)
17679 soname_spec='${libname}${release}${shared_ext}$major'
17680 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17681 shlibpath_var=LD_LIBRARY_PATH
17682 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17683 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17688 soname_spec='${libname}${release}${shared_ext}$major'
17689 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17690 shlibpath_var=LD_LIBRARY_PATH
17697 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17698 soname_spec='${libname}${release}${shared_ext}$major'
17699 shlibpath_var=LD_LIBRARY_PATH
17700 shlibpath_overrides_runpath=yes
17701 hardcode_into_libs=yes
17702 # ldd complains unless libraries are executable
17703 postinstall_cmds='chmod +x $lib'
17708 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17709 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17710 shlibpath_var=LD_LIBRARY_PATH
17711 shlibpath_overrides_runpath=yes
17712 if test "$with_gnu_ld" = yes; then
17718 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17720 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17721 soname_spec='${libname}${release}${shared_ext}$major'
17722 shlibpath_var=LD_LIBRARY_PATH
17723 case $host_vendor in
17725 shlibpath_overrides_runpath=no
17727 export_dynamic_flag_spec='${wl}-Blargedynsym'
17728 runpath_var=LD_RUN_PATH
17736 shlibpath_overrides_runpath=no
17737 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17743 if test -d /usr/nec ;then
17745 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17746 soname_spec='$libname${shared_ext}.$major'
17747 shlibpath_var=LD_LIBRARY_PATH
17753 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17754 soname_spec='${libname}${release}${shared_ext}$major'
17755 shlibpath_var=LD_LIBRARY_PATH
17762 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17763 echo "${ECHO_T}$dynamic_linker" >&6
17764 test "$dynamic_linker" = no && can_build_shared=no
17766 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17767 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17768 hardcode_action_GCJ=
17769 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17770 test -n "$runpath_var_GCJ" || \
17771 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17773 # We can hardcode non-existant directories.
17774 if test "$hardcode_direct_GCJ" != no &&
17775 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17776 # have to relink, otherwise we might link with an installed library
17777 # when we should be linking with a yet-to-be-installed one
17778 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17779 test "$hardcode_minus_L_GCJ" != no; then
17780 # Linking always hardcodes the temporary library directory.
17781 hardcode_action_GCJ=relink
17783 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17784 hardcode_action_GCJ=immediate
17787 # We cannot hardcode anything, or else we can only hardcode existing
17789 hardcode_action_GCJ=unsupported
17791 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17792 echo "${ECHO_T}$hardcode_action_GCJ" >&6
17794 if test "$hardcode_action_GCJ" = relink; then
17795 # Fast installation is not supported
17796 enable_fast_install=no
17797 elif test "$shlibpath_overrides_runpath" = yes ||
17798 test "$enable_shared" = no; then
17799 # Fast installation is not necessary
17800 enable_fast_install=needless
17805 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17806 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17807 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17808 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17809 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17810 echo "$as_me:$LINENO: result: yes" >&5
17811 echo "${ECHO_T}yes" >&6
17813 # FIXME - insert some real tests, host_os isn't really good enough
17816 if test -n "$STRIP" ; then
17817 striplib="$STRIP -x"
17818 echo "$as_me:$LINENO: result: yes" >&5
17819 echo "${ECHO_T}yes" >&6
17821 echo "$as_me:$LINENO: result: no" >&5
17822 echo "${ECHO_T}no" >&6
17826 echo "$as_me:$LINENO: result: no" >&5
17827 echo "${ECHO_T}no" >&6
17832 if test "x$enable_dlopen" != xyes; then
17833 enable_dlopen=unknown
17834 enable_dlopen_self=unknown
17835 enable_dlopen_self_static=unknown
17842 lt_cv_dlopen="load_add_on"
17844 lt_cv_dlopen_self=yes
17848 lt_cv_dlopen="LoadLibrary"
17853 lt_cv_dlopen="dlopen"
17858 # if libdl is installed we need to link against it
17859 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17860 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17861 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17862 echo $ECHO_N "(cached) $ECHO_C" >&6
17864 ac_check_lib_save_LIBS=$LIBS
17866 cat >conftest.$ac_ext <<_ACEOF
17869 cat confdefs.h >>conftest.$ac_ext
17870 cat >>conftest.$ac_ext <<_ACEOF
17871 /* end confdefs.h. */
17873 /* Override any gcc2 internal prototype to avoid an error. */
17877 /* We use char because int might match the return type of a gcc2
17878 builtin and then its argument prototype would still apply. */
17888 rm -f conftest.$ac_objext conftest$ac_exeext
17889 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17890 (eval $ac_link) 2>conftest.er1
17892 grep -v '^ *+' conftest.er1 >conftest.err
17894 cat conftest.err >&5
17895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17896 (exit $ac_status); } &&
17897 { ac_try='test -z "$ac_c_werror_flag"
17898 || test ! -s conftest.err'
17899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17900 (eval $ac_try) 2>&5
17902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17903 (exit $ac_status); }; } &&
17904 { ac_try='test -s conftest$ac_exeext'
17905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17906 (eval $ac_try) 2>&5
17908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17909 (exit $ac_status); }; }; then
17910 ac_cv_lib_dl_dlopen=yes
17912 echo "$as_me: failed program was:" >&5
17913 sed 's/^/| /' conftest.$ac_ext >&5
17915 ac_cv_lib_dl_dlopen=no
17917 rm -f conftest.err conftest.$ac_objext \
17918 conftest$ac_exeext conftest.$ac_ext
17919 LIBS=$ac_check_lib_save_LIBS
17921 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17922 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17923 if test $ac_cv_lib_dl_dlopen = yes; then
17924 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17927 lt_cv_dlopen="dyld"
17929 lt_cv_dlopen_self=yes
17936 echo "$as_me:$LINENO: checking for shl_load" >&5
17937 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17938 if test "${ac_cv_func_shl_load+set}" = set; then
17939 echo $ECHO_N "(cached) $ECHO_C" >&6
17941 cat >conftest.$ac_ext <<_ACEOF
17944 cat confdefs.h >>conftest.$ac_ext
17945 cat >>conftest.$ac_ext <<_ACEOF
17946 /* end confdefs.h. */
17947 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17948 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17949 #define shl_load innocuous_shl_load
17951 /* System header to define __stub macros and hopefully few prototypes,
17952 which can conflict with char shl_load (); below.
17953 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17954 <limits.h> exists even on freestanding compilers. */
17957 # include <limits.h>
17959 # include <assert.h>
17964 /* Override any gcc2 internal prototype to avoid an error. */
17969 /* We use char because int might match the return type of a gcc2
17970 builtin and then its argument prototype would still apply. */
17972 /* The GNU C library defines this for functions which it implements
17973 to always fail with ENOSYS. Some functions are actually named
17974 something starting with __ and the normal name is an alias. */
17975 #if defined (__stub_shl_load) || defined (__stub___shl_load)
17978 char (*f) () = shl_load;
17987 return f != shl_load;
17992 rm -f conftest.$ac_objext conftest$ac_exeext
17993 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17994 (eval $ac_link) 2>conftest.er1
17996 grep -v '^ *+' conftest.er1 >conftest.err
17998 cat conftest.err >&5
17999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18000 (exit $ac_status); } &&
18001 { ac_try='test -z "$ac_c_werror_flag"
18002 || test ! -s conftest.err'
18003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18004 (eval $ac_try) 2>&5
18006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18007 (exit $ac_status); }; } &&
18008 { ac_try='test -s conftest$ac_exeext'
18009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18010 (eval $ac_try) 2>&5
18012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18013 (exit $ac_status); }; }; then
18014 ac_cv_func_shl_load=yes
18016 echo "$as_me: failed program was:" >&5
18017 sed 's/^/| /' conftest.$ac_ext >&5
18019 ac_cv_func_shl_load=no
18021 rm -f conftest.err conftest.$ac_objext \
18022 conftest$ac_exeext conftest.$ac_ext
18024 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
18025 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
18026 if test $ac_cv_func_shl_load = yes; then
18027 lt_cv_dlopen="shl_load"
18029 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
18030 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
18031 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
18032 echo $ECHO_N "(cached) $ECHO_C" >&6
18034 ac_check_lib_save_LIBS=$LIBS
18036 cat >conftest.$ac_ext <<_ACEOF
18039 cat confdefs.h >>conftest.$ac_ext
18040 cat >>conftest.$ac_ext <<_ACEOF
18041 /* end confdefs.h. */
18043 /* Override any gcc2 internal prototype to avoid an error. */
18047 /* We use char because int might match the return type of a gcc2
18048 builtin and then its argument prototype would still apply. */
18058 rm -f conftest.$ac_objext conftest$ac_exeext
18059 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18060 (eval $ac_link) 2>conftest.er1
18062 grep -v '^ *+' conftest.er1 >conftest.err
18064 cat conftest.err >&5
18065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18066 (exit $ac_status); } &&
18067 { ac_try='test -z "$ac_c_werror_flag"
18068 || test ! -s conftest.err'
18069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18070 (eval $ac_try) 2>&5
18072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18073 (exit $ac_status); }; } &&
18074 { ac_try='test -s conftest$ac_exeext'
18075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18076 (eval $ac_try) 2>&5
18078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18079 (exit $ac_status); }; }; then
18080 ac_cv_lib_dld_shl_load=yes
18082 echo "$as_me: failed program was:" >&5
18083 sed 's/^/| /' conftest.$ac_ext >&5
18085 ac_cv_lib_dld_shl_load=no
18087 rm -f conftest.err conftest.$ac_objext \
18088 conftest$ac_exeext conftest.$ac_ext
18089 LIBS=$ac_check_lib_save_LIBS
18091 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
18092 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
18093 if test $ac_cv_lib_dld_shl_load = yes; then
18094 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
18096 echo "$as_me:$LINENO: checking for dlopen" >&5
18097 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
18098 if test "${ac_cv_func_dlopen+set}" = set; then
18099 echo $ECHO_N "(cached) $ECHO_C" >&6
18101 cat >conftest.$ac_ext <<_ACEOF
18104 cat confdefs.h >>conftest.$ac_ext
18105 cat >>conftest.$ac_ext <<_ACEOF
18106 /* end confdefs.h. */
18107 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
18108 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18109 #define dlopen innocuous_dlopen
18111 /* System header to define __stub macros and hopefully few prototypes,
18112 which can conflict with char dlopen (); below.
18113 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18114 <limits.h> exists even on freestanding compilers. */
18117 # include <limits.h>
18119 # include <assert.h>
18124 /* Override any gcc2 internal prototype to avoid an error. */
18129 /* We use char because int might match the return type of a gcc2
18130 builtin and then its argument prototype would still apply. */
18132 /* The GNU C library defines this for functions which it implements
18133 to always fail with ENOSYS. Some functions are actually named
18134 something starting with __ and the normal name is an alias. */
18135 #if defined (__stub_dlopen) || defined (__stub___dlopen)
18138 char (*f) () = dlopen;
18147 return f != dlopen;
18152 rm -f conftest.$ac_objext conftest$ac_exeext
18153 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18154 (eval $ac_link) 2>conftest.er1
18156 grep -v '^ *+' conftest.er1 >conftest.err
18158 cat conftest.err >&5
18159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18160 (exit $ac_status); } &&
18161 { ac_try='test -z "$ac_c_werror_flag"
18162 || test ! -s conftest.err'
18163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18164 (eval $ac_try) 2>&5
18166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18167 (exit $ac_status); }; } &&
18168 { ac_try='test -s conftest$ac_exeext'
18169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18170 (eval $ac_try) 2>&5
18172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18173 (exit $ac_status); }; }; then
18174 ac_cv_func_dlopen=yes
18176 echo "$as_me: failed program was:" >&5
18177 sed 's/^/| /' conftest.$ac_ext >&5
18179 ac_cv_func_dlopen=no
18181 rm -f conftest.err conftest.$ac_objext \
18182 conftest$ac_exeext conftest.$ac_ext
18184 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
18185 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
18186 if test $ac_cv_func_dlopen = yes; then
18187 lt_cv_dlopen="dlopen"
18189 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18190 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
18191 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18192 echo $ECHO_N "(cached) $ECHO_C" >&6
18194 ac_check_lib_save_LIBS=$LIBS
18196 cat >conftest.$ac_ext <<_ACEOF
18199 cat confdefs.h >>conftest.$ac_ext
18200 cat >>conftest.$ac_ext <<_ACEOF
18201 /* end confdefs.h. */
18203 /* Override any gcc2 internal prototype to avoid an error. */
18207 /* We use char because int might match the return type of a gcc2
18208 builtin and then its argument prototype would still apply. */
18218 rm -f conftest.$ac_objext conftest$ac_exeext
18219 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18220 (eval $ac_link) 2>conftest.er1
18222 grep -v '^ *+' conftest.er1 >conftest.err
18224 cat conftest.err >&5
18225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18226 (exit $ac_status); } &&
18227 { ac_try='test -z "$ac_c_werror_flag"
18228 || test ! -s conftest.err'
18229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18230 (eval $ac_try) 2>&5
18232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18233 (exit $ac_status); }; } &&
18234 { ac_try='test -s conftest$ac_exeext'
18235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18236 (eval $ac_try) 2>&5
18238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18239 (exit $ac_status); }; }; then
18240 ac_cv_lib_dl_dlopen=yes
18242 echo "$as_me: failed program was:" >&5
18243 sed 's/^/| /' conftest.$ac_ext >&5
18245 ac_cv_lib_dl_dlopen=no
18247 rm -f conftest.err conftest.$ac_objext \
18248 conftest$ac_exeext conftest.$ac_ext
18249 LIBS=$ac_check_lib_save_LIBS
18251 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18252 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18253 if test $ac_cv_lib_dl_dlopen = yes; then
18254 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18256 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
18257 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
18258 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
18259 echo $ECHO_N "(cached) $ECHO_C" >&6
18261 ac_check_lib_save_LIBS=$LIBS
18262 LIBS="-lsvld $LIBS"
18263 cat >conftest.$ac_ext <<_ACEOF
18266 cat confdefs.h >>conftest.$ac_ext
18267 cat >>conftest.$ac_ext <<_ACEOF
18268 /* end confdefs.h. */
18270 /* Override any gcc2 internal prototype to avoid an error. */
18274 /* We use char because int might match the return type of a gcc2
18275 builtin and then its argument prototype would still apply. */
18285 rm -f conftest.$ac_objext conftest$ac_exeext
18286 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18287 (eval $ac_link) 2>conftest.er1
18289 grep -v '^ *+' conftest.er1 >conftest.err
18291 cat conftest.err >&5
18292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18293 (exit $ac_status); } &&
18294 { ac_try='test -z "$ac_c_werror_flag"
18295 || test ! -s conftest.err'
18296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18297 (eval $ac_try) 2>&5
18299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18300 (exit $ac_status); }; } &&
18301 { ac_try='test -s conftest$ac_exeext'
18302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18303 (eval $ac_try) 2>&5
18305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18306 (exit $ac_status); }; }; then
18307 ac_cv_lib_svld_dlopen=yes
18309 echo "$as_me: failed program was:" >&5
18310 sed 's/^/| /' conftest.$ac_ext >&5
18312 ac_cv_lib_svld_dlopen=no
18314 rm -f conftest.err conftest.$ac_objext \
18315 conftest$ac_exeext conftest.$ac_ext
18316 LIBS=$ac_check_lib_save_LIBS
18318 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
18319 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
18320 if test $ac_cv_lib_svld_dlopen = yes; then
18321 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18323 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
18324 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
18325 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
18326 echo $ECHO_N "(cached) $ECHO_C" >&6
18328 ac_check_lib_save_LIBS=$LIBS
18330 cat >conftest.$ac_ext <<_ACEOF
18333 cat confdefs.h >>conftest.$ac_ext
18334 cat >>conftest.$ac_ext <<_ACEOF
18335 /* end confdefs.h. */
18337 /* Override any gcc2 internal prototype to avoid an error. */
18341 /* We use char because int might match the return type of a gcc2
18342 builtin and then its argument prototype would still apply. */
18352 rm -f conftest.$ac_objext conftest$ac_exeext
18353 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18354 (eval $ac_link) 2>conftest.er1
18356 grep -v '^ *+' conftest.er1 >conftest.err
18358 cat conftest.err >&5
18359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18360 (exit $ac_status); } &&
18361 { ac_try='test -z "$ac_c_werror_flag"
18362 || test ! -s conftest.err'
18363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18364 (eval $ac_try) 2>&5
18366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18367 (exit $ac_status); }; } &&
18368 { ac_try='test -s conftest$ac_exeext'
18369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18370 (eval $ac_try) 2>&5
18372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18373 (exit $ac_status); }; }; then
18374 ac_cv_lib_dld_dld_link=yes
18376 echo "$as_me: failed program was:" >&5
18377 sed 's/^/| /' conftest.$ac_ext >&5
18379 ac_cv_lib_dld_dld_link=no
18381 rm -f conftest.err conftest.$ac_objext \
18382 conftest$ac_exeext conftest.$ac_ext
18383 LIBS=$ac_check_lib_save_LIBS
18385 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
18386 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
18387 if test $ac_cv_lib_dld_dld_link = yes; then
18388 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
18409 if test "x$lt_cv_dlopen" != xno; then
18415 case $lt_cv_dlopen in
18417 save_CPPFLAGS="$CPPFLAGS"
18418 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18420 save_LDFLAGS="$LDFLAGS"
18421 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18424 LIBS="$lt_cv_dlopen_libs $LIBS"
18426 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18427 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
18428 if test "${lt_cv_dlopen_self+set}" = set; then
18429 echo $ECHO_N "(cached) $ECHO_C" >&6
18431 if test "$cross_compiling" = yes; then :
18432 lt_cv_dlopen_self=cross
18434 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18435 lt_status=$lt_dlunknown
18436 cat > conftest.$ac_ext <<EOF
18437 #line __oline__ "configure"
18438 #include "confdefs.h"
18447 # define LT_DLGLOBAL RTLD_GLOBAL
18450 # define LT_DLGLOBAL DL_GLOBAL
18452 # define LT_DLGLOBAL 0
18456 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18457 find out it does not work in some platform. */
18458 #ifndef LT_DLLAZY_OR_NOW
18460 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18463 # define LT_DLLAZY_OR_NOW DL_LAZY
18466 # define LT_DLLAZY_OR_NOW RTLD_NOW
18469 # define LT_DLLAZY_OR_NOW DL_NOW
18471 # define LT_DLLAZY_OR_NOW 0
18479 extern "C" void exit (int);
18482 void fnord() { int i=42;}
18485 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18486 int status = $lt_dlunknown;
18490 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18491 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18492 /* dlclose (self); */
18498 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18499 (eval $ac_link) 2>&5
18501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18502 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18503 (./conftest; exit; ) 2>/dev/null
18505 case x$lt_status in
18506 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18507 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18508 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18511 # compilation failed
18512 lt_cv_dlopen_self=no
18519 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18520 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18522 if test "x$lt_cv_dlopen_self" = xyes; then
18523 LDFLAGS="$LDFLAGS $link_static_flag"
18524 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18525 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18526 if test "${lt_cv_dlopen_self_static+set}" = set; then
18527 echo $ECHO_N "(cached) $ECHO_C" >&6
18529 if test "$cross_compiling" = yes; then :
18530 lt_cv_dlopen_self_static=cross
18532 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18533 lt_status=$lt_dlunknown
18534 cat > conftest.$ac_ext <<EOF
18535 #line __oline__ "configure"
18536 #include "confdefs.h"
18545 # define LT_DLGLOBAL RTLD_GLOBAL
18548 # define LT_DLGLOBAL DL_GLOBAL
18550 # define LT_DLGLOBAL 0
18554 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18555 find out it does not work in some platform. */
18556 #ifndef LT_DLLAZY_OR_NOW
18558 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18561 # define LT_DLLAZY_OR_NOW DL_LAZY
18564 # define LT_DLLAZY_OR_NOW RTLD_NOW
18567 # define LT_DLLAZY_OR_NOW DL_NOW
18569 # define LT_DLLAZY_OR_NOW 0
18577 extern "C" void exit (int);
18580 void fnord() { int i=42;}
18583 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18584 int status = $lt_dlunknown;
18588 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18589 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18590 /* dlclose (self); */
18596 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18597 (eval $ac_link) 2>&5
18599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18600 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18601 (./conftest; exit; ) 2>/dev/null
18603 case x$lt_status in
18604 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18605 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18606 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18609 # compilation failed
18610 lt_cv_dlopen_self_static=no
18617 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18618 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18621 CPPFLAGS="$save_CPPFLAGS"
18622 LDFLAGS="$save_LDFLAGS"
18627 case $lt_cv_dlopen_self in
18628 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18629 *) enable_dlopen_self=unknown ;;
18632 case $lt_cv_dlopen_self_static in
18633 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18634 *) enable_dlopen_self_static=unknown ;;
18639 # The else clause should only fire when bootstrapping the
18640 # libtool distribution, otherwise you forgot to ship ltmain.sh
18641 # with your package, and you will get complaints that there are
18642 # no rules to generate ltmain.sh.
18643 if test -f "$ltmain"; then
18644 # See if we are running on zsh, and set the options which allow our commands through
18645 # without removal of \ escapes.
18646 if test -n "${ZSH_VERSION+set}" ; then
18647 setopt NO_GLOB_SUBST
18649 # Now quote all the things that may contain metacharacters while being
18650 # careful not to overquote the AC_SUBSTed values. We take copies of the
18651 # variables and quote the copies for generation of the libtool script.
18652 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18654 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18655 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18656 deplibs_check_method reload_flag reload_cmds need_locks \
18657 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18658 lt_cv_sys_global_symbol_to_c_name_address \
18659 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18660 old_postinstall_cmds old_postuninstall_cmds \
18664 lt_prog_compiler_wl_GCJ \
18665 lt_prog_compiler_pic_GCJ \
18666 lt_prog_compiler_static_GCJ \
18667 lt_prog_compiler_no_builtin_flag_GCJ \
18668 export_dynamic_flag_spec_GCJ \
18669 thread_safe_flag_spec_GCJ \
18670 whole_archive_flag_spec_GCJ \
18671 enable_shared_with_static_runtimes_GCJ \
18672 old_archive_cmds_GCJ \
18673 old_archive_from_new_cmds_GCJ \
18674 predep_objects_GCJ \
18675 postdep_objects_GCJ \
18678 compiler_lib_search_path_GCJ \
18680 archive_expsym_cmds_GCJ \
18681 postinstall_cmds_GCJ \
18682 postuninstall_cmds_GCJ \
18683 old_archive_from_expsyms_cmds_GCJ \
18684 allow_undefined_flag_GCJ \
18685 no_undefined_flag_GCJ \
18686 export_symbols_cmds_GCJ \
18687 hardcode_libdir_flag_spec_GCJ \
18688 hardcode_libdir_flag_spec_ld_GCJ \
18689 hardcode_libdir_separator_GCJ \
18690 hardcode_automatic_GCJ \
18692 module_expsym_cmds_GCJ \
18693 lt_cv_prog_compiler_c_o_GCJ \
18694 exclude_expsyms_GCJ \
18695 include_expsyms_GCJ; do
18698 old_archive_cmds_GCJ | \
18699 old_archive_from_new_cmds_GCJ | \
18700 archive_cmds_GCJ | \
18701 archive_expsym_cmds_GCJ | \
18702 module_cmds_GCJ | \
18703 module_expsym_cmds_GCJ | \
18704 old_archive_from_expsyms_cmds_GCJ | \
18705 export_symbols_cmds_GCJ | \
18706 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18707 postinstall_cmds | postuninstall_cmds | \
18708 old_postinstall_cmds | old_postuninstall_cmds | \
18709 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18710 # Double-quote double-evaled strings.
18711 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18714 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18720 *'\$0 --fallback-echo"')
18721 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18727 cat <<__EOF__ >> "$cfgfile"
18728 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18730 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18732 # Shell to use when invoking shell scripts.
18735 # Whether or not to build shared libraries.
18736 build_libtool_libs=$enable_shared
18738 # Whether or not to build static libraries.
18739 build_old_libs=$enable_static
18741 # Whether or not to add -lc for building shared libraries.
18742 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18744 # Whether or not to disallow shared libs when runtime libs are static
18745 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18747 # Whether or not to optimize for fast installation.
18748 fast_install=$enable_fast_install
18751 host_alias=$host_alias
18755 # The build system.
18756 build_alias=$build_alias
18760 # An echo program that does not interpret backslashes.
18765 AR_FLAGS=$lt_AR_FLAGS
18770 # A language-specific compiler.
18771 CC=$lt_compiler_GCJ
18773 # Is the compiler the GNU C compiler?
18779 # The linker used to build libraries.
18782 # Whether we need hard or soft links.
18785 # A BSD-compatible nm program.
18788 # A symbol stripping program
18791 # Used to examine libraries when file_magic_cmd begins "file"
18792 MAGIC_CMD=$MAGIC_CMD
18794 # Used on cygwin: DLL creation program.
18797 # Used on cygwin: object dumper.
18800 # Used on cygwin: assembler.
18803 # The name of the directory that contains temporary libtool files.
18806 # How to create reloadable object files.
18807 reload_flag=$lt_reload_flag
18808 reload_cmds=$lt_reload_cmds
18810 # How to pass a linker flag through the compiler.
18811 wl=$lt_lt_prog_compiler_wl_GCJ
18813 # Object file suffix (normally "o").
18814 objext="$ac_objext"
18816 # Old archive suffix (normally "a").
18819 # Shared library suffix (normally ".so").
18820 shrext_cmds='$shrext_cmds'
18822 # Executable file suffix (normally "").
18825 # Additional compiler flags for building library objects.
18826 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18829 # What is the maximum length of a command?
18830 max_cmd_len=$lt_cv_sys_max_cmd_len
18832 # Does compiler simultaneously support -c and -o options?
18833 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18835 # Must we lock files when doing compilation?
18836 need_locks=$lt_need_locks
18838 # Do we need the lib prefix for modules?
18839 need_lib_prefix=$need_lib_prefix
18841 # Do we need a version for libraries?
18842 need_version=$need_version
18844 # Whether dlopen is supported.
18845 dlopen_support=$enable_dlopen
18847 # Whether dlopen of programs is supported.
18848 dlopen_self=$enable_dlopen_self
18850 # Whether dlopen of statically linked programs is supported.
18851 dlopen_self_static=$enable_dlopen_self_static
18853 # Compiler flag to prevent dynamic linking.
18854 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18856 # Compiler flag to turn off builtin functions.
18857 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18859 # Compiler flag to allow reflexive dlopens.
18860 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18862 # Compiler flag to generate shared objects directly from archives.
18863 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18865 # Compiler flag to generate thread-safe objects.
18866 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18868 # Library versioning type.
18869 version_type=$version_type
18871 # Format of library name prefix.
18872 libname_spec=$lt_libname_spec
18874 # List of archive names. First name is the real one, the rest are links.
18875 # The last name is the one that the linker finds with -lNAME.
18876 library_names_spec=$lt_library_names_spec
18878 # The coded name of the library, if different from the real name.
18879 soname_spec=$lt_soname_spec
18881 # Commands used to build and install an old-style archive.
18883 old_archive_cmds=$lt_old_archive_cmds_GCJ
18884 old_postinstall_cmds=$lt_old_postinstall_cmds
18885 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18887 # Create an old-style archive from a shared archive.
18888 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18890 # Create a temporary old-style archive to link instead of a shared archive.
18891 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18893 # Commands used to build and install a shared archive.
18894 archive_cmds=$lt_archive_cmds_GCJ
18895 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18896 postinstall_cmds=$lt_postinstall_cmds
18897 postuninstall_cmds=$lt_postuninstall_cmds
18899 # Commands used to build a loadable module (assumed same as above if empty)
18900 module_cmds=$lt_module_cmds_GCJ
18901 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18903 # Commands to strip libraries.
18904 old_striplib=$lt_old_striplib
18905 striplib=$lt_striplib
18907 # Dependencies to place before the objects being linked to create a
18909 predep_objects=$lt_predep_objects_GCJ
18911 # Dependencies to place after the objects being linked to create a
18913 postdep_objects=$lt_postdep_objects_GCJ
18915 # Dependencies to place before the objects being linked to create a
18917 predeps=$lt_predeps_GCJ
18919 # Dependencies to place after the objects being linked to create a
18921 postdeps=$lt_postdeps_GCJ
18923 # The library search path used internally by the compiler when linking
18924 # a shared library.
18925 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18927 # Method to check whether dependent libraries are shared objects.
18928 deplibs_check_method=$lt_deplibs_check_method
18930 # Command to use when deplibs_check_method == file_magic.
18931 file_magic_cmd=$lt_file_magic_cmd
18933 # Flag that allows shared libraries with undefined symbols to be built.
18934 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18936 # Flag that forces no undefined symbols.
18937 no_undefined_flag=$lt_no_undefined_flag_GCJ
18939 # Commands used to finish a libtool library installation in a directory.
18940 finish_cmds=$lt_finish_cmds
18942 # Same as above, but a single script fragment to be evaled but not shown.
18943 finish_eval=$lt_finish_eval
18945 # Take the output of nm and produce a listing of raw symbols and C names.
18946 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18948 # Transform the output of nm in a proper C declaration
18949 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18951 # Transform the output of nm in a C name address pair
18952 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18954 # This is the shared library runtime path variable.
18955 runpath_var=$runpath_var
18957 # This is the shared library path variable.
18958 shlibpath_var=$shlibpath_var
18960 # Is shlibpath searched before the hard-coded library search path?
18961 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18963 # How to hardcode a shared library path into an executable.
18964 hardcode_action=$hardcode_action_GCJ
18966 # Whether we should hardcode library paths into libraries.
18967 hardcode_into_libs=$hardcode_into_libs
18969 # Flag to hardcode \$libdir into a binary during linking.
18970 # This must work even if \$libdir does not exist.
18971 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18973 # If ld is used when linking, flag to hardcode \$libdir into
18974 # a binary during linking. This must work even if \$libdir does
18976 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18978 # Whether we need a single -rpath flag with a separated argument.
18979 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18981 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18982 # resulting binary.
18983 hardcode_direct=$hardcode_direct_GCJ
18985 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18986 # resulting binary.
18987 hardcode_minus_L=$hardcode_minus_L_GCJ
18989 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18990 # the resulting binary.
18991 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18993 # Set to yes if building a shared library automatically hardcodes DIR into the library
18994 # and all subsequent libraries and executables linked against it.
18995 hardcode_automatic=$hardcode_automatic_GCJ
18997 # Variables whose values should be saved in libtool wrapper scripts and
18998 # restored at relink time.
18999 variables_saved_for_relink="$variables_saved_for_relink"
19001 # Whether libtool must link a program against all its dependency libraries.
19002 link_all_deplibs=$link_all_deplibs_GCJ
19004 # Compile-time system search path for libraries
19005 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19007 # Run-time system search path for libraries
19008 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19010 # Fix the shell variable \$srcfile for the compiler.
19011 fix_srcfile_path="$fix_srcfile_path_GCJ"
19013 # Set to yes if exported symbols are required.
19014 always_export_symbols=$always_export_symbols_GCJ
19016 # The commands to list exported symbols.
19017 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19019 # The commands to extract the exported symbol list from a shared archive.
19020 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19022 # Symbols that should not be listed in the preloaded symbols.
19023 exclude_expsyms=$lt_exclude_expsyms_GCJ
19025 # Symbols that must always be exported.
19026 include_expsyms=$lt_include_expsyms_GCJ
19028 # ### END LIBTOOL TAG CONFIG: $tagname
19034 # If there is no Makefile yet, we rely on a make rule to execute
19035 # `config.status --recheck' to rerun these tests and create the
19036 # libtool script then.
19037 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19038 if test -f "$ltmain_in"; then
19039 test -f Makefile && make "$ltmain"
19045 ac_cpp='$CPP $CPPFLAGS'
19046 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19047 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19048 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19061 # Source file extension for RC test sources.
19064 # Object file extension for compiled RC test sources.
19068 # Code to be used in simple compile tests
19069 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
19071 # Code to be used in simple link tests
19072 lt_simple_link_test_code="$lt_simple_compile_test_code"
19074 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19076 # If no C compiler was specified, use CC.
19079 # Allow CC to be a program name with arguments.
19083 # save warnings/boilerplate of simple test code
19084 ac_outfile=conftest.$ac_objext
19085 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
19086 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
19087 _lt_compiler_boilerplate=`cat conftest.err`
19090 ac_outfile=conftest.$ac_objext
19091 printf "$lt_simple_link_test_code" >conftest.$ac_ext
19092 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
19093 _lt_linker_boilerplate=`cat conftest.err`
19097 # Allow CC to be a program name with arguments.
19102 for cc_temp in $compiler""; do
19104 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19105 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19110 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19112 lt_cv_prog_compiler_c_o_RC=yes
19114 # The else clause should only fire when bootstrapping the
19115 # libtool distribution, otherwise you forgot to ship ltmain.sh
19116 # with your package, and you will get complaints that there are
19117 # no rules to generate ltmain.sh.
19118 if test -f "$ltmain"; then
19119 # See if we are running on zsh, and set the options which allow our commands through
19120 # without removal of \ escapes.
19121 if test -n "${ZSH_VERSION+set}" ; then
19122 setopt NO_GLOB_SUBST
19124 # Now quote all the things that may contain metacharacters while being
19125 # careful not to overquote the AC_SUBSTed values. We take copies of the
19126 # variables and quote the copies for generation of the libtool script.
19127 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
19129 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19130 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19131 deplibs_check_method reload_flag reload_cmds need_locks \
19132 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19133 lt_cv_sys_global_symbol_to_c_name_address \
19134 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19135 old_postinstall_cmds old_postuninstall_cmds \
19139 lt_prog_compiler_wl_RC \
19140 lt_prog_compiler_pic_RC \
19141 lt_prog_compiler_static_RC \
19142 lt_prog_compiler_no_builtin_flag_RC \
19143 export_dynamic_flag_spec_RC \
19144 thread_safe_flag_spec_RC \
19145 whole_archive_flag_spec_RC \
19146 enable_shared_with_static_runtimes_RC \
19147 old_archive_cmds_RC \
19148 old_archive_from_new_cmds_RC \
19149 predep_objects_RC \
19150 postdep_objects_RC \
19153 compiler_lib_search_path_RC \
19155 archive_expsym_cmds_RC \
19156 postinstall_cmds_RC \
19157 postuninstall_cmds_RC \
19158 old_archive_from_expsyms_cmds_RC \
19159 allow_undefined_flag_RC \
19160 no_undefined_flag_RC \
19161 export_symbols_cmds_RC \
19162 hardcode_libdir_flag_spec_RC \
19163 hardcode_libdir_flag_spec_ld_RC \
19164 hardcode_libdir_separator_RC \
19165 hardcode_automatic_RC \
19167 module_expsym_cmds_RC \
19168 lt_cv_prog_compiler_c_o_RC \
19169 exclude_expsyms_RC \
19170 include_expsyms_RC; do
19173 old_archive_cmds_RC | \
19174 old_archive_from_new_cmds_RC | \
19175 archive_cmds_RC | \
19176 archive_expsym_cmds_RC | \
19178 module_expsym_cmds_RC | \
19179 old_archive_from_expsyms_cmds_RC | \
19180 export_symbols_cmds_RC | \
19181 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19182 postinstall_cmds | postuninstall_cmds | \
19183 old_postinstall_cmds | old_postuninstall_cmds | \
19184 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19185 # Double-quote double-evaled strings.
19186 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19189 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19195 *'\$0 --fallback-echo"')
19196 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19202 cat <<__EOF__ >> "$cfgfile"
19203 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19205 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19207 # Shell to use when invoking shell scripts.
19210 # Whether or not to build shared libraries.
19211 build_libtool_libs=$enable_shared
19213 # Whether or not to build static libraries.
19214 build_old_libs=$enable_static
19216 # Whether or not to add -lc for building shared libraries.
19217 build_libtool_need_lc=$archive_cmds_need_lc_RC
19219 # Whether or not to disallow shared libs when runtime libs are static
19220 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19222 # Whether or not to optimize for fast installation.
19223 fast_install=$enable_fast_install
19226 host_alias=$host_alias
19230 # The build system.
19231 build_alias=$build_alias
19235 # An echo program that does not interpret backslashes.
19240 AR_FLAGS=$lt_AR_FLAGS
19245 # A language-specific compiler.
19248 # Is the compiler the GNU C compiler?
19254 # The linker used to build libraries.
19257 # Whether we need hard or soft links.
19260 # A BSD-compatible nm program.
19263 # A symbol stripping program
19266 # Used to examine libraries when file_magic_cmd begins "file"
19267 MAGIC_CMD=$MAGIC_CMD
19269 # Used on cygwin: DLL creation program.
19272 # Used on cygwin: object dumper.
19275 # Used on cygwin: assembler.
19278 # The name of the directory that contains temporary libtool files.
19281 # How to create reloadable object files.
19282 reload_flag=$lt_reload_flag
19283 reload_cmds=$lt_reload_cmds
19285 # How to pass a linker flag through the compiler.
19286 wl=$lt_lt_prog_compiler_wl_RC
19288 # Object file suffix (normally "o").
19289 objext="$ac_objext"
19291 # Old archive suffix (normally "a").
19294 # Shared library suffix (normally ".so").
19295 shrext_cmds='$shrext_cmds'
19297 # Executable file suffix (normally "").
19300 # Additional compiler flags for building library objects.
19301 pic_flag=$lt_lt_prog_compiler_pic_RC
19304 # What is the maximum length of a command?
19305 max_cmd_len=$lt_cv_sys_max_cmd_len
19307 # Does compiler simultaneously support -c and -o options?
19308 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19310 # Must we lock files when doing compilation?
19311 need_locks=$lt_need_locks
19313 # Do we need the lib prefix for modules?
19314 need_lib_prefix=$need_lib_prefix
19316 # Do we need a version for libraries?
19317 need_version=$need_version
19319 # Whether dlopen is supported.
19320 dlopen_support=$enable_dlopen
19322 # Whether dlopen of programs is supported.
19323 dlopen_self=$enable_dlopen_self
19325 # Whether dlopen of statically linked programs is supported.
19326 dlopen_self_static=$enable_dlopen_self_static
19328 # Compiler flag to prevent dynamic linking.
19329 link_static_flag=$lt_lt_prog_compiler_static_RC
19331 # Compiler flag to turn off builtin functions.
19332 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19334 # Compiler flag to allow reflexive dlopens.
19335 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19337 # Compiler flag to generate shared objects directly from archives.
19338 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19340 # Compiler flag to generate thread-safe objects.
19341 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19343 # Library versioning type.
19344 version_type=$version_type
19346 # Format of library name prefix.
19347 libname_spec=$lt_libname_spec
19349 # List of archive names. First name is the real one, the rest are links.
19350 # The last name is the one that the linker finds with -lNAME.
19351 library_names_spec=$lt_library_names_spec
19353 # The coded name of the library, if different from the real name.
19354 soname_spec=$lt_soname_spec
19356 # Commands used to build and install an old-style archive.
19358 old_archive_cmds=$lt_old_archive_cmds_RC
19359 old_postinstall_cmds=$lt_old_postinstall_cmds
19360 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19362 # Create an old-style archive from a shared archive.
19363 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19365 # Create a temporary old-style archive to link instead of a shared archive.
19366 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19368 # Commands used to build and install a shared archive.
19369 archive_cmds=$lt_archive_cmds_RC
19370 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19371 postinstall_cmds=$lt_postinstall_cmds
19372 postuninstall_cmds=$lt_postuninstall_cmds
19374 # Commands used to build a loadable module (assumed same as above if empty)
19375 module_cmds=$lt_module_cmds_RC
19376 module_expsym_cmds=$lt_module_expsym_cmds_RC
19378 # Commands to strip libraries.
19379 old_striplib=$lt_old_striplib
19380 striplib=$lt_striplib
19382 # Dependencies to place before the objects being linked to create a
19384 predep_objects=$lt_predep_objects_RC
19386 # Dependencies to place after the objects being linked to create a
19388 postdep_objects=$lt_postdep_objects_RC
19390 # Dependencies to place before the objects being linked to create a
19392 predeps=$lt_predeps_RC
19394 # Dependencies to place after the objects being linked to create a
19396 postdeps=$lt_postdeps_RC
19398 # The library search path used internally by the compiler when linking
19399 # a shared library.
19400 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19402 # Method to check whether dependent libraries are shared objects.
19403 deplibs_check_method=$lt_deplibs_check_method
19405 # Command to use when deplibs_check_method == file_magic.
19406 file_magic_cmd=$lt_file_magic_cmd
19408 # Flag that allows shared libraries with undefined symbols to be built.
19409 allow_undefined_flag=$lt_allow_undefined_flag_RC
19411 # Flag that forces no undefined symbols.
19412 no_undefined_flag=$lt_no_undefined_flag_RC
19414 # Commands used to finish a libtool library installation in a directory.
19415 finish_cmds=$lt_finish_cmds
19417 # Same as above, but a single script fragment to be evaled but not shown.
19418 finish_eval=$lt_finish_eval
19420 # Take the output of nm and produce a listing of raw symbols and C names.
19421 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19423 # Transform the output of nm in a proper C declaration
19424 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19426 # Transform the output of nm in a C name address pair
19427 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19429 # This is the shared library runtime path variable.
19430 runpath_var=$runpath_var
19432 # This is the shared library path variable.
19433 shlibpath_var=$shlibpath_var
19435 # Is shlibpath searched before the hard-coded library search path?
19436 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19438 # How to hardcode a shared library path into an executable.
19439 hardcode_action=$hardcode_action_RC
19441 # Whether we should hardcode library paths into libraries.
19442 hardcode_into_libs=$hardcode_into_libs
19444 # Flag to hardcode \$libdir into a binary during linking.
19445 # This must work even if \$libdir does not exist.
19446 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19448 # If ld is used when linking, flag to hardcode \$libdir into
19449 # a binary during linking. This must work even if \$libdir does
19451 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19453 # Whether we need a single -rpath flag with a separated argument.
19454 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19456 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19457 # resulting binary.
19458 hardcode_direct=$hardcode_direct_RC
19460 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19461 # resulting binary.
19462 hardcode_minus_L=$hardcode_minus_L_RC
19464 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19465 # the resulting binary.
19466 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19468 # Set to yes if building a shared library automatically hardcodes DIR into the library
19469 # and all subsequent libraries and executables linked against it.
19470 hardcode_automatic=$hardcode_automatic_RC
19472 # Variables whose values should be saved in libtool wrapper scripts and
19473 # restored at relink time.
19474 variables_saved_for_relink="$variables_saved_for_relink"
19476 # Whether libtool must link a program against all its dependency libraries.
19477 link_all_deplibs=$link_all_deplibs_RC
19479 # Compile-time system search path for libraries
19480 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19482 # Run-time system search path for libraries
19483 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19485 # Fix the shell variable \$srcfile for the compiler.
19486 fix_srcfile_path="$fix_srcfile_path_RC"
19488 # Set to yes if exported symbols are required.
19489 always_export_symbols=$always_export_symbols_RC
19491 # The commands to list exported symbols.
19492 export_symbols_cmds=$lt_export_symbols_cmds_RC
19494 # The commands to extract the exported symbol list from a shared archive.
19495 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19497 # Symbols that should not be listed in the preloaded symbols.
19498 exclude_expsyms=$lt_exclude_expsyms_RC
19500 # Symbols that must always be exported.
19501 include_expsyms=$lt_include_expsyms_RC
19503 # ### END LIBTOOL TAG CONFIG: $tagname
19509 # If there is no Makefile yet, we rely on a make rule to execute
19510 # `config.status --recheck' to rerun these tests and create the
19511 # libtool script then.
19512 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19513 if test -f "$ltmain_in"; then
19514 test -f Makefile && make "$ltmain"
19520 ac_cpp='$CPP $CPPFLAGS'
19521 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19522 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19523 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19530 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19531 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19532 { (exit 1); exit 1; }; }
19536 # Append the new tag name to the list of available tags.
19537 if test -n "$tagname" ; then
19538 available_tags="$available_tags $tagname"
19544 # Now substitute the updated list of available tags.
19545 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19546 mv "${ofile}T" "$ofile"
19550 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19551 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19552 { (exit 1); exit 1; }; }
19558 # This can be used to rebuild libtool when needed
19559 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19561 # Always use our own libtool.
19562 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19564 # Prevent multiple expansion
19586 ac_config_files="$ac_config_files Makefile src/Makefile"
19587 cat >confcache <<\_ACEOF
19588 # This file is a shell script that caches the results of configure
19589 # tests run on this system so they can be shared between configure
19590 # scripts and configure runs, see configure's option --config-cache.
19591 # It is not useful on other systems. If it contains results you don't
19592 # want to keep, you may remove or edit it.
19594 # config.status only pays attention to the cache file if you give it
19595 # the --recheck option to rerun configure.
19597 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19598 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19599 # following values.
19603 # The following way of writing the cache mishandles newlines in values,
19604 # but we know of no workaround that is simple, portable, and efficient.
19605 # So, don't put newlines in cache variables' values.
19606 # Ultrix sh set writes to stderr and can't be redirected directly,
19607 # and sets the high bit in the cache file unless we assign to the vars.
19610 case `(ac_space=' '; set | grep ac_space) 2>&1` in
19612 # `set' does not quote correctly, so add quotes (double-quote
19613 # substitution turns \\\\ into \\, and sed turns \\ into \).
19616 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19619 # `set' quotes correctly as required by POSIX, so do not add quotes.
19621 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
19628 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19630 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19632 if diff $cache_file confcache >/dev/null 2>&1; then :; else
19633 if test -w $cache_file; then
19634 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
19635 cat confcache >$cache_file
19637 echo "not updating unwritable cache $cache_file"
19642 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19643 # Let make expand exec_prefix.
19644 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19646 # VPATH may cause trouble with some makes, so we remove $(srcdir),
19647 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19648 # trailing colons and then remove the whole line if VPATH becomes empty
19649 # (actually we leave an empty line to preserve line numbers).
19650 if test "x$srcdir" = x.; then
19651 ac_vpsub='/^[ ]*VPATH[ ]*=/{
19652 s/:*\$(srcdir):*/:/;
19653 s/:*\${srcdir}:*/:/;
19655 s/^\([^=]*=[ ]*\):*/\1/;
19661 DEFS=-DHAVE_CONFIG_H
19665 for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue
19666 # 1. Remove the extension, and $U if already installed.
19667 ac_i=`echo "$ac_i" |
19668 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
19670 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
19671 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
19673 LIB@&t@OBJS=$ac_libobjs
19675 LTLIBOBJS=$ac_ltlibobjs
19678 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19679 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
19680 Usually this means the macro was only invoked conditionally." >&5
19681 echo "$as_me: error: conditional \"AMDEP\" was never defined.
19682 Usually this means the macro was only invoked conditionally." >&2;}
19683 { (exit 1); exit 1; }; }
19685 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19686 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
19687 Usually this means the macro was only invoked conditionally." >&5
19688 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
19689 Usually this means the macro was only invoked conditionally." >&2;}
19690 { (exit 1); exit 1; }; }
19692 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
19693 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
19694 Usually this means the macro was only invoked conditionally." >&5
19695 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
19696 Usually this means the macro was only invoked conditionally." >&2;}
19697 { (exit 1); exit 1; }; }
19700 : ${CONFIG_STATUS=./config.status}
19701 ac_clean_files_save=$ac_clean_files
19702 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19703 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
19704 echo "$as_me: creating $CONFIG_STATUS" >&6;}
19705 cat >$CONFIG_STATUS <<_ACEOF
19707 # Generated by $as_me.
19708 # Run this file to recreate the current configuration.
19709 # Compiler output produced by configure, useful for debugging
19710 # configure, is in config.log if it exists.
19713 ac_cs_recheck=false
19715 SHELL=\${CONFIG_SHELL-$SHELL}
19718 cat >>$CONFIG_STATUS <<\_ACEOF
19719 ## --------------------- ##
19720 ## M4sh Initialization. ##
19721 ## --------------------- ##
19723 # Be Bourne compatible
19724 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19727 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19728 # is contrary to our usage. Disable this feature.
19729 alias -g '${1+"$@"}'='"$@"'
19730 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
19733 DUALCASE=1; export DUALCASE # for MKS sh
19735 # Support unset when possible.
19736 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
19743 # Work around bugs in pre-3.0 UWIN ksh.
19744 $as_unset ENV MAIL MAILPATH
19751 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
19752 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
19753 LC_TELEPHONE LC_TIME
19755 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
19756 eval $as_var=C; export $as_var
19762 # Required to use basename.
19763 if expr a : '\(a\)' >/dev/null 2>&1; then
19769 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
19770 as_basename=basename
19776 # Name of the executable.
19777 as_me=`$as_basename "$0" ||
19778 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19779 X"$0" : 'X\(//\)$' \| \
19780 X"$0" : 'X\(/\)$' \| \
19781 . : '\(.\)' 2>/dev/null ||
19783 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
19784 /^X\/\(\/\/\)$/{ s//\1/; q; }
19785 /^X\/\(\/\).*/{ s//\1/; q; }
19789 # PATH needs CR, and LINENO needs CR and PATH.
19790 # Avoid depending upon Character Ranges.
19791 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19792 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19793 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19794 as_cr_digits='0123456789'
19795 as_cr_alnum=$as_cr_Letters$as_cr_digits
19797 # The user is always right.
19798 if test "${PATH_SEPARATOR+set}" != set; then
19799 echo "#! /bin/sh" >conf$$.sh
19800 echo "exit 0" >>conf$$.sh
19802 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
19811 as_lineno_1=$LINENO
19812 as_lineno_2=$LINENO
19813 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19814 test "x$as_lineno_1" != "x$as_lineno_2" &&
19815 test "x$as_lineno_3" = "x$as_lineno_2" || {
19816 # Find who we are. Look in the path if we contain no path at all
19819 *[\\/]* ) as_myself=$0 ;;
19820 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19821 for as_dir in $PATH
19824 test -z "$as_dir" && as_dir=.
19825 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19830 # We did not find ourselves, most probably we were run as `sh COMMAND'
19831 # in which case we are not to be found in the path.
19832 if test "x$as_myself" = x; then
19835 if test ! -f "$as_myself"; then
19836 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
19837 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
19838 { (exit 1); exit 1; }; }
19840 case $CONFIG_SHELL in
19842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19843 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
19846 test -z "$as_dir" && as_dir=.
19847 for as_base in sh bash ksh sh5; do
19850 if ("$as_dir/$as_base" -c '
19851 as_lineno_1=$LINENO
19852 as_lineno_2=$LINENO
19853 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19854 test "x$as_lineno_1" != "x$as_lineno_2" &&
19855 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
19856 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
19857 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
19858 CONFIG_SHELL=$as_dir/$as_base
19859 export CONFIG_SHELL
19860 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
19868 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
19869 # uniformly replaced by the line number. The first 'sed' inserts a
19870 # line-number line before each line; the second 'sed' does the real
19871 # work. The second script uses 'N' to pair each line-number line
19872 # with the numbered line, and appends trailing '-' during
19873 # substitution so that $LINENO is not a special case at line end.
19874 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
19875 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
19876 sed '=' <$as_myself |
19881 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
19884 s,^['$as_cr_digits']*\n,,
19885 ' >$as_me.lineno &&
19886 chmod +x $as_me.lineno ||
19887 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
19888 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
19889 { (exit 1); exit 1; }; }
19891 # Don't try to exec as it changes $[0], causing all sort of problems
19892 # (the dirname of $[0] is not the place where we might find the
19893 # original and so on. Autoconf is especially sensible to this).
19895 # Exit status is that of the last command.
19900 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
19901 *c*,-n*) ECHO_N= ECHO_C='
19903 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
19904 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
19907 if expr a : '\(a\)' >/dev/null 2>&1; then
19913 rm -f conf$$ conf$$.exe conf$$.file
19915 if ln -s conf$$.file conf$$ 2>/dev/null; then
19916 # We could just check for DJGPP; but this test a) works b) is more generic
19917 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
19918 if test -f conf$$.exe; then
19919 # Don't use ln at all; we don't have any links
19924 elif ln conf$$.file conf$$ 2>/dev/null; then
19929 rm -f conf$$ conf$$.exe conf$$.file
19931 if mkdir -p . 2>/dev/null; then
19934 test -d ./-p && rmdir ./-p
19938 as_executable_p="test -f"
19940 # Sed expression to map a string onto a valid CPP name.
19941 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19943 # Sed expression to map a string onto a valid variable name.
19944 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19948 # We need space, tab and new line, in precisely that order.
19958 # Open the log real soon, to keep \$[0] and so on meaningful, and to
19959 # report actual input values of CONFIG_FILES etc. instead of their
19960 # values after options handling. Logging --version etc. is OK.
19964 sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX
19965 @%:@@%:@ Running $as_me. @%:@@%:@
19970 This file was extended by $as_me, which was
19971 generated by GNU Autoconf 2.59. Invocation command line was
19973 CONFIG_FILES = $CONFIG_FILES
19974 CONFIG_HEADERS = $CONFIG_HEADERS
19975 CONFIG_LINKS = $CONFIG_LINKS
19976 CONFIG_COMMANDS = $CONFIG_COMMANDS
19980 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
19984 # Files that config.status was made for.
19985 if test -n "$ac_config_files"; then
19986 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
19989 if test -n "$ac_config_headers"; then
19990 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
19993 if test -n "$ac_config_links"; then
19994 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
19997 if test -n "$ac_config_commands"; then
19998 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
20001 cat >>$CONFIG_STATUS <<\_ACEOF
20004 \`$as_me' instantiates files from templates according to the
20005 current configuration.
20007 Usage: $0 [OPTIONS] [FILE]...
20009 -h, --help print this help, then exit
20010 -V, --version print version number, then exit
20011 -q, --quiet do not print progress messages
20012 -d, --debug don't remove temporary files
20013 --recheck update $as_me by reconfiguring in the same conditions
20014 --file=FILE[:TEMPLATE]
20015 instantiate the configuration file FILE
20016 --header=FILE[:TEMPLATE]
20017 instantiate the configuration header FILE
20019 Configuration files:
20022 Configuration headers:
20025 Configuration commands:
20028 Report bugs to <bug-autoconf@gnu.org>."
20031 cat >>$CONFIG_STATUS <<_ACEOF
20034 configured by $0, generated by GNU Autoconf 2.59,
20035 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
20037 Copyright (C) 2003 Free Software Foundation, Inc.
20038 This config.status script is free software; the Free Software Foundation
20039 gives unlimited permission to copy, distribute and modify it."
20044 cat >>$CONFIG_STATUS <<\_ACEOF
20045 # If no file are specified by the user, then we need to provide default
20046 # value. By we need to know if files were specified by the user.
20052 ac_option=`expr "x$1" : 'x\([^=]*\)='`
20053 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
20061 *) # This is not an option, so the user has probably given explicit
20064 ac_need_defaults=false;;
20068 # Handling of the options.
20070 cat >>$CONFIG_STATUS <<\_ACEOF
20071 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20073 --version | --vers* | -V )
20074 echo "$ac_cs_version"; exit 0 ;;
20076 # Conflict between --help and --header
20077 { { echo "$as_me:$LINENO: error: ambiguous option: $1
20078 Try \`$0 --help' for more information." >&5
20079 echo "$as_me: error: ambiguous option: $1
20080 Try \`$0 --help' for more information." >&2;}
20081 { (exit 1); exit 1; }; };;
20082 --help | --hel | -h )
20083 echo "$ac_cs_usage"; exit 0 ;;
20084 --debug | --d* | -d )
20086 --file | --fil | --fi | --f )
20088 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20089 ac_need_defaults=false;;
20090 --header | --heade | --head | --hea )
20092 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20093 ac_need_defaults=false;;
20094 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20095 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20098 # This is an error.
20099 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
20100 Try \`$0 --help' for more information." >&5
20101 echo "$as_me: error: unrecognized option: $1
20102 Try \`$0 --help' for more information." >&2;}
20103 { (exit 1); exit 1; }; } ;;
20105 *) ac_config_targets="$ac_config_targets $1" ;;
20111 ac_configure_extra_args=
20113 if $ac_cs_silent; then
20115 ac_configure_extra_args="$ac_configure_extra_args --silent"
20119 cat >>$CONFIG_STATUS <<_ACEOF
20120 if \$ac_cs_recheck; then
20121 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20122 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20127 cat >>$CONFIG_STATUS <<_ACEOF
20129 # INIT-COMMANDS section.
20132 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20138 cat >>$CONFIG_STATUS <<\_ACEOF
20139 for ac_config_target in $ac_config_targets
20141 case "$ac_config_target" in
20142 # Handling of arguments.
20143 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20144 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
20145 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20146 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20147 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20148 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20149 { (exit 1); exit 1; }; };;
20153 # If the user did not use the arguments to specify the items to instantiate,
20154 # then the envvar interface is used. Set only those that are not.
20155 # We use the long form for the default assignment because of an extremely
20156 # bizarre bug on SunOS 4.1.3.
20157 if $ac_need_defaults; then
20158 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20159 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20160 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20163 # Have a temporary directory for convenience. Make it in the build tree
20164 # simply because there is no reason to put it here, and in addition,
20165 # creating and moving files from /tmp can sometimes cause problems.
20166 # Create a temporary directory, and hook for its removal unless debugging.
20169 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
20170 trap '{ (exit 1); exit 1; }' 1 2 13 15
20173 # Create a (secure) tmp directory for tmp files.
20176 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
20177 test -n "$tmp" && test -d "$tmp"
20180 tmp=./confstat$$-$RANDOM
20181 (umask 077 && mkdir $tmp)
20184 echo "$me: cannot create a temporary directory in ." >&2
20185 { (exit 1); exit 1; }
20190 cat >>$CONFIG_STATUS <<_ACEOF
20193 # CONFIG_FILES section.
20196 # No need to generate the scripts if there are no CONFIG_FILES.
20197 # This happens for instance when ./config.status config.h
20198 if test -n "\$CONFIG_FILES"; then
20199 # Protect against being on the right side of a sed subst in config.status.
20200 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
20201 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
20202 s,@SHELL@,$SHELL,;t t
20203 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
20204 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
20205 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
20206 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
20207 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
20208 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
20209 s,@exec_prefix@,$exec_prefix,;t t
20210 s,@prefix@,$prefix,;t t
20211 s,@program_transform_name@,$program_transform_name,;t t
20212 s,@bindir@,$bindir,;t t
20213 s,@sbindir@,$sbindir,;t t
20214 s,@libexecdir@,$libexecdir,;t t
20215 s,@datadir@,$datadir,;t t
20216 s,@sysconfdir@,$sysconfdir,;t t
20217 s,@sharedstatedir@,$sharedstatedir,;t t
20218 s,@localstatedir@,$localstatedir,;t t
20219 s,@libdir@,$libdir,;t t
20220 s,@includedir@,$includedir,;t t
20221 s,@oldincludedir@,$oldincludedir,;t t
20222 s,@infodir@,$infodir,;t t
20223 s,@mandir@,$mandir,;t t
20224 s,@build_alias@,$build_alias,;t t
20225 s,@host_alias@,$host_alias,;t t
20226 s,@target_alias@,$target_alias,;t t
20227 s,@DEFS@,$DEFS,;t t
20228 s,@ECHO_C@,$ECHO_C,;t t
20229 s,@ECHO_N@,$ECHO_N,;t t
20230 s,@ECHO_T@,$ECHO_T,;t t
20231 s,@LIBS@,$LIBS,;t t
20232 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
20233 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
20234 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
20235 s,@CYGPATH_W@,$CYGPATH_W,;t t
20236 s,@PACKAGE@,$PACKAGE,;t t
20237 s,@VERSION@,$VERSION,;t t
20238 s,@ACLOCAL@,$ACLOCAL,;t t
20239 s,@AUTOCONF@,$AUTOCONF,;t t
20240 s,@AUTOMAKE@,$AUTOMAKE,;t t
20241 s,@AUTOHEADER@,$AUTOHEADER,;t t
20242 s,@MAKEINFO@,$MAKEINFO,;t t
20243 s,@AMTAR@,$AMTAR,;t t
20244 s,@install_sh@,$install_sh,;t t
20245 s,@STRIP@,$STRIP,;t t
20246 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
20247 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
20249 s,@SET_MAKE@,$SET_MAKE,;t t
20250 s,@am__leading_dot@,$am__leading_dot,;t t
20252 s,@CFLAGS@,$CFLAGS,;t t
20253 s,@LDFLAGS@,$LDFLAGS,;t t
20254 s,@CPPFLAGS@,$CPPFLAGS,;t t
20255 s,@ac_ct_CC@,$ac_ct_CC,;t t
20256 s,@EXEEXT@,$EXEEXT,;t t
20257 s,@OBJEXT@,$OBJEXT,;t t
20258 s,@DEPDIR@,$DEPDIR,;t t
20259 s,@am__include@,$am__include,;t t
20260 s,@am__quote@,$am__quote,;t t
20261 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
20262 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
20263 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
20264 s,@CCDEPMODE@,$CCDEPMODE,;t t
20265 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
20266 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
20267 s,@build@,$build,;t t
20268 s,@build_cpu@,$build_cpu,;t t
20269 s,@build_vendor@,$build_vendor,;t t
20270 s,@build_os@,$build_os,;t t
20271 s,@host@,$host,;t t
20272 s,@host_cpu@,$host_cpu,;t t
20273 s,@host_vendor@,$host_vendor,;t t
20274 s,@host_os@,$host_os,;t t
20275 s,@EGREP@,$EGREP,;t t
20276 s,@LN_S@,$LN_S,;t t
20277 s,@ECHO@,$ECHO,;t t
20279 s,@ac_ct_AR@,$ac_ct_AR,;t t
20280 s,@RANLIB@,$RANLIB,;t t
20281 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
20284 s,@CXXFLAGS@,$CXXFLAGS,;t t
20285 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
20286 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
20287 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
20288 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
20289 s,@CXXCPP@,$CXXCPP,;t t
20291 s,@FFLAGS@,$FFLAGS,;t t
20292 s,@ac_ct_F77@,$ac_ct_F77,;t t
20293 s,@LIBTOOL@,$LIBTOOL,;t t
20294 s,@LIB@&t@OBJS@,$LIB@&t@OBJS,;t t
20295 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
20300 cat >>$CONFIG_STATUS <<\_ACEOF
20301 # Split the substitutions into bite-sized pieces for seds with
20302 # small command number limits, like on Digital OSF/1 and HP-UX.
20303 ac_max_sed_lines=48
20304 ac_sed_frag=1 # Number of current file.
20305 ac_beg=1 # First line for current file.
20306 ac_end=$ac_max_sed_lines # Line after last line for current file.
20309 while $ac_more_lines; do
20310 if test $ac_beg -gt 1; then
20311 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20313 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20315 if test ! -s $tmp/subs.frag; then
20316 ac_more_lines=false
20318 # The purpose of the label and of the branching condition is to
20319 # speed up the sed processing (if there are no `@' at all, there
20320 # is no need to browse any of the substitutions).
20321 # These are the two extra sed commands mentioned above.
20323 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
20324 if test -z "$ac_sed_cmds"; then
20325 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
20327 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
20329 ac_sed_frag=`expr $ac_sed_frag + 1`
20331 ac_end=`expr $ac_end + $ac_max_sed_lines`
20334 if test -z "$ac_sed_cmds"; then
20337 fi # test -n "$CONFIG_FILES"
20340 cat >>$CONFIG_STATUS <<\_ACEOF
20341 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
20342 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20344 - | *:- | *:-:* ) # input from stdin
20346 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20347 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20348 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20349 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20350 * ) ac_file_in=$ac_file.in ;;
20353 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
20354 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20355 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20356 X"$ac_file" : 'X\(//\)[^/]' \| \
20357 X"$ac_file" : 'X\(//\)$' \| \
20358 X"$ac_file" : 'X\(/\)' \| \
20359 . : '\(.\)' 2>/dev/null ||
20361 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20362 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20363 /^X\(\/\/\)$/{ s//\1/; q; }
20364 /^X\(\/\).*/{ s//\1/; q; }
20366 { if $as_mkdir_p; then
20371 while test ! -d "$as_dir"; do
20372 as_dirs="$as_dir $as_dirs"
20373 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20374 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20375 X"$as_dir" : 'X\(//\)[^/]' \| \
20376 X"$as_dir" : 'X\(//\)$' \| \
20377 X"$as_dir" : 'X\(/\)' \| \
20378 . : '\(.\)' 2>/dev/null ||
20380 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20381 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20382 /^X\(\/\/\)$/{ s//\1/; q; }
20383 /^X\(\/\).*/{ s//\1/; q; }
20386 test ! -n "$as_dirs" || mkdir $as_dirs
20387 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20388 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20389 { (exit 1); exit 1; }; }; }
20393 if test "$ac_dir" != .; then
20394 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20395 # A "../" for each directory in $ac_dir_suffix.
20396 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20398 ac_dir_suffix= ac_top_builddir=
20402 .) # No --srcdir option. We are building in place.
20404 if test -z "$ac_top_builddir"; then
20407 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20409 [\\/]* | ?:[\\/]* ) # Absolute path.
20410 ac_srcdir=$srcdir$ac_dir_suffix;
20411 ac_top_srcdir=$srcdir ;;
20412 *) # Relative path.
20413 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20414 ac_top_srcdir=$ac_top_builddir$srcdir ;;
20417 # Do not use `cd foo && pwd` to compute absolute paths, because
20418 # the directories may not exist.
20420 .) ac_abs_builddir="$ac_dir";;
20423 .) ac_abs_builddir=`pwd`;;
20424 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
20425 *) ac_abs_builddir=`pwd`/"$ac_dir";;
20428 case $ac_abs_builddir in
20429 .) ac_abs_top_builddir=${ac_top_builddir}.;;
20431 case ${ac_top_builddir}. in
20432 .) ac_abs_top_builddir=$ac_abs_builddir;;
20433 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
20434 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
20437 case $ac_abs_builddir in
20438 .) ac_abs_srcdir=$ac_srcdir;;
20441 .) ac_abs_srcdir=$ac_abs_builddir;;
20442 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
20443 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
20446 case $ac_abs_builddir in
20447 .) ac_abs_top_srcdir=$ac_top_srcdir;;
20449 case $ac_top_srcdir in
20450 .) ac_abs_top_srcdir=$ac_abs_builddir;;
20451 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
20452 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
20458 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20459 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
20462 if test x"$ac_file" != x-; then
20463 { echo "$as_me:$LINENO: creating $ac_file" >&5
20464 echo "$as_me: creating $ac_file" >&6;}
20467 # Let's still pretend it is `configure' which instantiates (i.e., don't
20468 # use $as_me), people would be surprised to read:
20469 # /* config.h. Generated by config.status. */
20470 if test x"$ac_file" = x-; then
20473 configure_input="$ac_file. "
20475 configure_input=$configure_input"Generated from `echo $ac_file_in |
20476 sed 's,.*/,,'` by configure."
20478 # First look for the input files in the build tree, otherwise in the
20480 ac_file_inputs=`IFS=:
20481 for f in $ac_file_in; do
20483 -) echo $tmp/stdin ;;
20485 # Absolute (can't be DOS-style, as IFS=:)
20486 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20487 echo "$as_me: error: cannot find input file: $f" >&2;}
20488 { (exit 1); exit 1; }; }
20491 if test -f "$f"; then
20494 elif test -f "$srcdir/$f"; then
20499 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20500 echo "$as_me: error: cannot find input file: $f" >&2;}
20501 { (exit 1); exit 1; }; }
20504 done` || { (exit 1); exit 1; }
20506 cat >>$CONFIG_STATUS <<_ACEOF
20510 cat >>$CONFIG_STATUS <<\_ACEOF
20512 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20513 s,@configure_input@,$configure_input,;t t
20514 s,@srcdir@,$ac_srcdir,;t t
20515 s,@abs_srcdir@,$ac_abs_srcdir,;t t
20516 s,@top_srcdir@,$ac_top_srcdir,;t t
20517 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
20518 s,@builddir@,$ac_builddir,;t t
20519 s,@abs_builddir@,$ac_abs_builddir,;t t
20520 s,@top_builddir@,$ac_top_builddir,;t t
20521 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
20522 s,@INSTALL@,$ac_INSTALL,;t t
20523 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
20525 if test x"$ac_file" != x-; then
20526 mv $tmp/out $ac_file
20534 cat >>$CONFIG_STATUS <<\_ACEOF
20537 # CONFIG_HEADER section.
20540 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
20541 # NAME is the cpp macro being defined and VALUE is the value it is being given.
20543 # ac_d sets the value in "#define NAME VALUE" lines.
20544 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
20545 ac_dB='[ ].*$,\1#\2'
20548 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
20549 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
20550 ac_uB='$,\1#\2define\3'
20554 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
20555 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20557 - | *:- | *:-:* ) # input from stdin
20559 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20560 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20561 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20562 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20563 * ) ac_file_in=$ac_file.in ;;
20566 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
20567 echo "$as_me: creating $ac_file" >&6;}
20569 # First look for the input files in the build tree, otherwise in the
20571 ac_file_inputs=`IFS=:
20572 for f in $ac_file_in; do
20574 -) echo $tmp/stdin ;;
20576 # Absolute (can't be DOS-style, as IFS=:)
20577 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20578 echo "$as_me: error: cannot find input file: $f" >&2;}
20579 { (exit 1); exit 1; }; }
20580 # Do quote $f, to prevent DOS paths from being IFS'd.
20583 if test -f "$f"; then
20586 elif test -f "$srcdir/$f"; then
20591 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20592 echo "$as_me: error: cannot find input file: $f" >&2;}
20593 { (exit 1); exit 1; }; }
20596 done` || { (exit 1); exit 1; }
20597 # Remove the trailing spaces.
20598 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
20602 # Transform confdefs.h into two sed scripts, `conftest.defines' and
20603 # `conftest.undefs', that substitutes the proper values into
20604 # config.h.in to produce config.h. The first handles `#define'
20605 # templates, and the second `#undef' templates.
20606 # And first: Protect against being on the right side of a sed subst in
20607 # config.status. Protect against being in an unquoted here document
20608 # in config.status.
20609 rm -f conftest.defines conftest.undefs
20610 # Using a here document instead of a string reduces the quoting nightmare.
20611 # Putting comments in sed scripts is not portable.
20613 # `end' is used to avoid that the second main sed command (meant for
20614 # 0-ary CPP macros) applies to n-ary macro definitions.
20615 # See the Autoconf documentation for `clear'.
20616 cat >confdef2sed.sed <<\_ACEOF
20621 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
20623 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
20626 # If some macros were called several times there might be several times
20627 # the same #defines, which is useless. Nevertheless, we may not want to
20628 # sort them, since we want the *last* AC-DEFINE to be honored.
20629 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
20630 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
20631 rm -f confdef2sed.sed
20633 # This sed command replaces #undef with comments. This is necessary, for
20634 # example, in the case of _POSIX_SOURCE, which is predefined and required
20635 # on some systems where configure will not decide to define it.
20636 cat >>conftest.undefs <<\_ACEOF
20637 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
20640 # Break up conftest.defines because some shells have a limit on the size
20641 # of here documents, and old seds have small limits too (100 cmds).
20642 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
20643 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
20644 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
20645 echo ' :' >>$CONFIG_STATUS
20646 rm -f conftest.tail
20647 while grep . conftest.defines >/dev/null
20649 # Write a limited-size here document to $tmp/defines.sed.
20650 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
20651 # Speed up: don't consider the non `#define' lines.
20652 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
20653 # Work around the forget-to-reset-the-flag bug.
20654 echo 't clr' >>$CONFIG_STATUS
20655 echo ': clr' >>$CONFIG_STATUS
20656 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
20658 sed -f $tmp/defines.sed $tmp/in >$tmp/out
20660 mv $tmp/out $tmp/in
20662 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
20663 rm -f conftest.defines
20664 mv conftest.tail conftest.defines
20666 rm -f conftest.defines
20667 echo ' fi # grep' >>$CONFIG_STATUS
20668 echo >>$CONFIG_STATUS
20670 # Break up conftest.undefs because some shells have a limit on the size
20671 # of here documents, and old seds have small limits too (100 cmds).
20672 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
20673 rm -f conftest.tail
20674 while grep . conftest.undefs >/dev/null
20676 # Write a limited-size here document to $tmp/undefs.sed.
20677 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
20678 # Speed up: don't consider the non `#undef'
20679 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
20680 # Work around the forget-to-reset-the-flag bug.
20681 echo 't clr' >>$CONFIG_STATUS
20682 echo ': clr' >>$CONFIG_STATUS
20683 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
20685 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
20687 mv $tmp/out $tmp/in
20689 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
20690 rm -f conftest.undefs
20691 mv conftest.tail conftest.undefs
20693 rm -f conftest.undefs
20695 cat >>$CONFIG_STATUS <<\_ACEOF
20696 # Let's still pretend it is `configure' which instantiates (i.e., don't
20697 # use $as_me), people would be surprised to read:
20698 # /* config.h. Generated by config.status. */
20699 if test x"$ac_file" = x-; then
20700 echo "/* Generated by configure. */" >$tmp/config.h
20702 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
20704 cat $tmp/in >>$tmp/config.h
20706 if test x"$ac_file" != x-; then
20707 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
20708 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
20709 echo "$as_me: $ac_file is unchanged" >&6;}
20711 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20712 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20713 X"$ac_file" : 'X\(//\)[^/]' \| \
20714 X"$ac_file" : 'X\(//\)$' \| \
20715 X"$ac_file" : 'X\(/\)' \| \
20716 . : '\(.\)' 2>/dev/null ||
20718 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20719 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20720 /^X\(\/\/\)$/{ s//\1/; q; }
20721 /^X\(\/\).*/{ s//\1/; q; }
20723 { if $as_mkdir_p; then
20728 while test ! -d "$as_dir"; do
20729 as_dirs="$as_dir $as_dirs"
20730 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20731 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20732 X"$as_dir" : 'X\(//\)[^/]' \| \
20733 X"$as_dir" : 'X\(//\)$' \| \
20734 X"$as_dir" : 'X\(/\)' \| \
20735 . : '\(.\)' 2>/dev/null ||
20737 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20738 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20739 /^X\(\/\/\)$/{ s//\1/; q; }
20740 /^X\(\/\).*/{ s//\1/; q; }
20743 test ! -n "$as_dirs" || mkdir $as_dirs
20744 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20745 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20746 { (exit 1); exit 1; }; }; }
20749 mv $tmp/config.h $ac_file
20753 rm -f $tmp/config.h
20755 # Compute $ac_file's index in $config_headers.
20757 for _am_header in $config_headers :; do
20758 case $_am_header in
20759 $ac_file | $ac_file:* )
20762 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20765 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
20766 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20767 X$ac_file : 'X\(//\)[^/]' \| \
20768 X$ac_file : 'X\(//\)$' \| \
20769 X$ac_file : 'X\(/\)' \| \
20770 . : '\(.\)' 2>/dev/null ||
20772 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20773 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20774 /^X\(\/\/\)$/{ s//\1/; q; }
20775 /^X\(\/\).*/{ s//\1/; q; }
20776 s/.*/./; q'`/stamp-h$_am_stamp_count
20779 cat >>$CONFIG_STATUS <<\_ACEOF
20782 # CONFIG_COMMANDS section.
20784 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
20785 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
20786 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
20787 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
20788 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20789 X"$ac_dest" : 'X\(//\)[^/]' \| \
20790 X"$ac_dest" : 'X\(//\)$' \| \
20791 X"$ac_dest" : 'X\(/\)' \| \
20792 . : '\(.\)' 2>/dev/null ||
20794 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20795 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20796 /^X\(\/\/\)$/{ s//\1/; q; }
20797 /^X\(\/\).*/{ s//\1/; q; }
20799 { if $as_mkdir_p; then
20804 while test ! -d "$as_dir"; do
20805 as_dirs="$as_dir $as_dirs"
20806 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20807 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20808 X"$as_dir" : 'X\(//\)[^/]' \| \
20809 X"$as_dir" : 'X\(//\)$' \| \
20810 X"$as_dir" : 'X\(/\)' \| \
20811 . : '\(.\)' 2>/dev/null ||
20813 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20814 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20815 /^X\(\/\/\)$/{ s//\1/; q; }
20816 /^X\(\/\).*/{ s//\1/; q; }
20819 test ! -n "$as_dirs" || mkdir $as_dirs
20820 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20821 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20822 { (exit 1); exit 1; }; }; }
20826 if test "$ac_dir" != .; then
20827 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20828 # A "../" for each directory in $ac_dir_suffix.
20829 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20831 ac_dir_suffix= ac_top_builddir=
20835 .) # No --srcdir option. We are building in place.
20837 if test -z "$ac_top_builddir"; then
20840 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20842 [\\/]* | ?:[\\/]* ) # Absolute path.
20843 ac_srcdir=$srcdir$ac_dir_suffix;
20844 ac_top_srcdir=$srcdir ;;
20845 *) # Relative path.
20846 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20847 ac_top_srcdir=$ac_top_builddir$srcdir ;;
20850 # Do not use `cd foo && pwd` to compute absolute paths, because
20851 # the directories may not exist.
20853 .) ac_abs_builddir="$ac_dir";;
20856 .) ac_abs_builddir=`pwd`;;
20857 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
20858 *) ac_abs_builddir=`pwd`/"$ac_dir";;
20861 case $ac_abs_builddir in
20862 .) ac_abs_top_builddir=${ac_top_builddir}.;;
20864 case ${ac_top_builddir}. in
20865 .) ac_abs_top_builddir=$ac_abs_builddir;;
20866 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
20867 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
20870 case $ac_abs_builddir in
20871 .) ac_abs_srcdir=$ac_srcdir;;
20874 .) ac_abs_srcdir=$ac_abs_builddir;;
20875 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
20876 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
20879 case $ac_abs_builddir in
20880 .) ac_abs_top_srcdir=$ac_top_srcdir;;
20882 case $ac_top_srcdir in
20883 .) ac_abs_top_srcdir=$ac_abs_builddir;;
20884 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
20885 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
20890 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
20891 echo "$as_me: executing $ac_dest commands" >&6;}
20893 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
20894 # Strip MF so we end up with the name of the file.
20895 mf=`echo "$mf" | sed -e 's/:.*$//'`
20896 # Check whether this is an Automake generated Makefile or not.
20897 # We used to match only the files named `Makefile.in', but
20898 # some people rename them; so instead we look at the file content.
20899 # Grep'ing the first line is not enough: some people post-process
20900 # each Makefile.in and add a new line on top of each file to say so.
20901 # So let's grep whole file.
20902 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
20903 dirpart=`(dirname "$mf") 2>/dev/null ||
20904 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20905 X"$mf" : 'X\(//\)[^/]' \| \
20906 X"$mf" : 'X\(//\)$' \| \
20907 X"$mf" : 'X\(/\)' \| \
20908 . : '\(.\)' 2>/dev/null ||
20910 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20911 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20912 /^X\(\/\/\)$/{ s//\1/; q; }
20913 /^X\(\/\).*/{ s//\1/; q; }
20918 grep '^DEP_FILES *= *[^ @%:@]' < "$mf" > /dev/null || continue
20919 # Extract the definition of DEP_FILES from the Makefile without
20921 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
20922 test -z "$DEPDIR" && continue
20923 # When using ansi2knr, U may be empty or an underscore; expand it
20924 U=`sed -n -e '/^U = / s///p' < "$mf"`
20925 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
20926 # We invoke sed twice because it is the simplest approach to
20927 # changing $(DEPDIR) to its actual value in the expansion.
20928 for file in `sed -n -e '
20929 /^DEP_FILES = .*\\\\$/ {
20938 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
20939 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
20940 # Make sure the directory exists.
20941 test -f "$dirpart/$file" && continue
20942 fdir=`(dirname "$file") 2>/dev/null ||
20943 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20944 X"$file" : 'X\(//\)[^/]' \| \
20945 X"$file" : 'X\(//\)$' \| \
20946 X"$file" : 'X\(/\)' \| \
20947 . : '\(.\)' 2>/dev/null ||
20949 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20950 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20951 /^X\(\/\/\)$/{ s//\1/; q; }
20952 /^X\(\/\).*/{ s//\1/; q; }
20954 { if $as_mkdir_p; then
20955 mkdir -p $dirpart/$fdir
20957 as_dir=$dirpart/$fdir
20959 while test ! -d "$as_dir"; do
20960 as_dirs="$as_dir $as_dirs"
20961 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20962 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20963 X"$as_dir" : 'X\(//\)[^/]' \| \
20964 X"$as_dir" : 'X\(//\)$' \| \
20965 X"$as_dir" : 'X\(/\)' \| \
20966 . : '\(.\)' 2>/dev/null ||
20968 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20969 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20970 /^X\(\/\/\)$/{ s//\1/; q; }
20971 /^X\(\/\).*/{ s//\1/; q; }
20974 test ! -n "$as_dirs" || mkdir $as_dirs
20975 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
20976 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
20977 { (exit 1); exit 1; }; }; }
20979 # echo "creating $dirpart/$file"
20980 echo '# dummy' > "$dirpart/$file"
20988 cat >>$CONFIG_STATUS <<\_ACEOF
20990 { (exit 0); exit 0; }
20992 chmod +x $CONFIG_STATUS
20993 ac_clean_files=$ac_clean_files_save
20996 # configure is writing to config.log, and then calls config.status.
20997 # config.status does its own redirection, appending to config.log.
20998 # Unfortunately, on DOS this fails, as config.log is still kept open
20999 # by configure, so config.status won't be able to write to it; its
21000 # output is simply discarded. So we exec the FD to /dev/null,
21001 # effectively closing config.log, so it can be properly (re)opened and
21002 # appended to by config.status. When coming back to configure, we
21003 # need to make the FD available again.
21004 if test "$no_create" != yes; then
21006 ac_config_status_args=
21007 test "$silent" = yes &&
21008 ac_config_status_args="$ac_config_status_args --quiet"
21010 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21012 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21013 # would make configure fail if this is the last instruction.
21014 $ac_cs_success || { (exit 1); exit 1; }